Skip to content

Commit

Permalink
removes super builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Berkay Dinçer committed Jan 25, 2021
1 parent 8e6cfde commit 26248f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
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
@Builder
public class InitCheckoutPaymentRequest {

protected BigDecimal price;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package io.craftgate.response;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.SuperBuilder;

@Data
@SuperBuilder
@Builder
public class InitCheckoutPaymentResponse {

protected String token;
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/io/craftgate/sample/PaymentSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,9 @@ void init_checkout_payment() {
.price(BigDecimal.valueOf(100))
.paidPrice(BigDecimal.valueOf(100))
.walletPrice(BigDecimal.ZERO)
.buyerMemberId(1L)
.installment(1)
.callbackUrl("https://www.your-website.com/craftgate-3DSecure-callback")
.currency(Currency.TRY)
.conversationId("456d1297-908e-4bd6-a13b-4be31a6e47d5")
.paymentGroup(PaymentGroup.LISTING_OR_SUBSCRIPTION)
Expand Down

0 comments on commit 26248f6

Please sign in to comment.