-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Berkay Dinçer
committed
Jan 22, 2021
1 parent
8bb86b6
commit 455f608
Showing
4 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/io/craftgate/request/InitCheckoutPaymentRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package io.craftgate.request; | ||
|
||
import io.craftgate.model.Currency; | ||
import io.craftgate.model.PaymentGroup; | ||
import io.craftgate.model.PaymentPhase; | ||
import io.craftgate.request.dto.PaymentItem; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
import java.math.BigDecimal; | ||
import java.util.List; | ||
|
||
@Data | ||
@SuperBuilder | ||
public class InitCheckoutPaymentRequest { | ||
|
||
protected BigDecimal price; | ||
protected BigDecimal paidPrice; | ||
|
||
@Builder.Default | ||
protected BigDecimal walletPrice = BigDecimal.ZERO; | ||
|
||
protected Currency currency; | ||
protected PaymentGroup paymentGroup; | ||
protected String conversationId; | ||
protected Integer installment; | ||
protected String callbackUrl; | ||
|
||
@Builder.Default | ||
protected PaymentPhase paymentPhase = PaymentPhase.AUTH; | ||
|
||
protected String cardUserKey; | ||
|
||
protected Long buyerMemberId; | ||
protected List<PaymentItem> items; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/io/craftgate/response/InitCheckoutPaymentResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.craftgate.response; | ||
|
||
import lombok.Data; | ||
import lombok.experimental.SuperBuilder; | ||
|
||
@Data | ||
@SuperBuilder | ||
public class InitCheckoutPaymentResponse { | ||
|
||
protected String token; | ||
protected String pageUrl; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters