Skip to content

Commit

Permalink
add payment source to payment search (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
lemiorhan authored Oct 13, 2021
1 parent 418ad32 commit 1b313e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/io/craftgate/request/SearchPaymentsRequest.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.craftgate.request;

import io.craftgate.model.Currency;
import io.craftgate.model.PaymentSource;
import io.craftgate.model.PaymentStatus;
import io.craftgate.model.PaymentType;
import lombok.Builder;
Expand All @@ -24,6 +25,7 @@ public class SearchPaymentsRequest {
private String orderId;
private PaymentType paymentType;
private PaymentStatus paymentStatus;
private PaymentSource paymentSource;
private String binNumber;
private String lastFourDigits;
private Currency currency;
Expand Down
1 change: 1 addition & 0 deletions src/test/java/io/craftgate/sample/PaymentSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ void create_payment() {
assertEquals(request.getWalletPrice(), response.getWalletPrice());
assertEquals(request.getCurrency(), response.getCurrency());
assertEquals(request.getInstallment(), response.getInstallment());
assertEquals(PaymentSource.API, response.getPaymentSource());
assertEquals(request.getPaymentGroup(), response.getPaymentGroup());
assertEquals(request.getPaymentPhase(), response.getPaymentPhase());
assertEquals(false, response.getIsThreeDS());
Expand Down

0 comments on commit 1b313e8

Please sign in to comment.