Skip to content

Commit

Permalink
Update Card Metadata response (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
armando-rodriguez-cko authored Oct 11, 2024
1 parent 6b0d3c8 commit d63bf60
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/checkout/common/CardType.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

public enum CardType {

@SerializedName(value = "Charge", alternate = {"CHARGE", "charge"})
CHARGE,
@SerializedName(value = "Credit", alternate = {"CREDIT", "credit"})
CREDIT,
@SerializedName(value = "Debit", alternate = {"DEBIT", "debit"})
DEBIT,
@SerializedName(value = "Deferred Debit", alternate = {"DEFERRED DEBIT", "deferred_debit"})
DEFERRED_DEBIT,
@SerializedName(value = "Prepaid", alternate = {"PREPAID", "prepaid"})
PREPAID,
@SerializedName(value = "Charge", alternate = {"CHARGE", "charge"})
CHARGE,
@SerializedName(value = "Deferred Debit", alternate = {"DEFERRED DEBIT", "deferred_debit"})
DEFERRED_DEBIT,

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.checkout.metadata.card;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

@Data
public final class AccountFundingTransaction {

@SerializedName("aft_indicator")
private AftIndicator aftIndicator;
}
11 changes: 11 additions & 0 deletions src/main/java/com/checkout/metadata/card/AftIndicator.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.checkout.metadata.card;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

@Data
public final class AftIndicator {

@SerializedName("pull_funds")
private PullFunds pullFunds;
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
package com.checkout.metadata.card;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

@Data
public final class CardMetadataPayouts {

@SerializedName("domestic_non_money_transfer")
private PayoutsTransactionsType domesticNonMoneyTransfer;

@SerializedName("cross_border_non_money_transfer")
private PayoutsTransactionsType crossBorderNonMoneyTransfer;

@SerializedName("domestic_gambling")
private PayoutsTransactionsType domesticGambling;

@SerializedName("cross_border_gambling")
private PayoutsTransactionsType crossBorderGambling;

@SerializedName("domestic_money_transfer")
private PayoutsTransactionsType domesticMoneyTransfer;

@SerializedName("cross_border_money_transfer")
private PayoutsTransactionsType crossBorderMoneyTransfer;
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ public final class CardMetadataResponse extends HttpMetadata {

@SerializedName("scheme_metadata")
private SchemeMetadata schemeMetadata;

@SerializedName("account_funding_transaction")
private AccountFundingTransaction accountFundingTransaction;
}
13 changes: 13 additions & 0 deletions src/main/java/com/checkout/metadata/card/PullFunds.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.checkout.metadata.card;

import com.google.gson.annotations.SerializedName;
import lombok.Data;

@Data
public final class PullFunds {

@SerializedName("cross_border")
private Boolean crossBorder;

private Boolean domestic;
}
8 changes: 3 additions & 5 deletions src/main/java/com/checkout/metadata/card/SchemeMetadata.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
package com.checkout.metadata.card;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public final class SchemeMetadata {

private PinlessDebitSchemeMetadata accel;

private PinlessDebitSchemeMetadata pulse;
private List<PinlessDebitSchemeMetadata> pulse;

private PinlessDebitSchemeMetadata nyce;

Expand Down

0 comments on commit d63bf60

Please sign in to comment.