-
Notifications
You must be signed in to change notification settings - Fork 29
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
Silviana Ghita
committed
Jan 29, 2024
1 parent
7fd2928
commit ca142f2
Showing
7 changed files
with
220 additions
and
16 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
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
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
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,34 @@ | ||
package com.mangopay.entities; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class BinData { | ||
|
||
/** | ||
* The subtype of the card product. Examples include: CLASSIC, GOLD, PLATINUM, PREPAID, etc. | ||
*/ | ||
@SerializedName("SubType") | ||
private String subType; | ||
|
||
/** | ||
* The card brand. Examples include: AMERICAN EXPRESS, DISCOVER, JCB, MASTERCARD, VISA, etc. | ||
*/ | ||
@SerializedName("Brand") | ||
private String brand; | ||
|
||
public String getSubType() { | ||
return subType; | ||
} | ||
|
||
public void setSubType(String subType) { | ||
this.subType = subType; | ||
} | ||
|
||
public String getBrand() { | ||
return brand; | ||
} | ||
|
||
public void setBrand(String brand) { | ||
this.brand = brand; | ||
} | ||
} |
135 changes: 135 additions & 0 deletions
135
src/main/java/com/mangopay/entities/PaymentMethodMetadata.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,135 @@ | ||
package com.mangopay.entities; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import com.mangopay.core.EntityBase; | ||
|
||
public class PaymentMethodMetadata extends EntityBase { | ||
|
||
/** | ||
* The type of metadata. Allowed values: BIN, GOOGLE_PAY | ||
*/ | ||
@SerializedName("Type") | ||
private String type; | ||
|
||
/** | ||
* The bank identification number (BIN). (Format: 6 or 8 digits) | ||
*/ | ||
@SerializedName("Bin") | ||
private String bin; | ||
|
||
/** | ||
* The tokenized payment data provided by the third-party payment method. | ||
*/ | ||
@SerializedName("Token") | ||
private String token; | ||
|
||
/** | ||
* In the case of Google Pay, the format of the Token. | ||
* PAN_ONLY – The card is registered in the Google account and requires 3DS authentication. | ||
* CRYPTOGRAM_3DS – The card is enrolled in the customer’s Google Wallet and authentication is handled by the Android device. | ||
*/ | ||
@SerializedName("TokenFormat") | ||
private String tokenFormat; | ||
|
||
/** | ||
* The type of the card. Allowed / Returned / Default values: CREDIT, DEBIT, CHARGE CARD | ||
*/ | ||
@SerializedName("CardType") | ||
private String cardType; | ||
|
||
/** | ||
* The country where the card was issued. Format: ISO-3166 alpha-2 two-letter country code | ||
*/ | ||
@SerializedName("IssuerCountryCode") | ||
private String issuerCountryCode; | ||
|
||
/** | ||
* The name of the card issuer. | ||
*/ | ||
@SerializedName("IssuingBank") | ||
private String issuingBank; | ||
|
||
/** | ||
* Whether the card is held in a personal or commercial capacity. | ||
*/ | ||
@SerializedName("CommercialIndicator") | ||
private String commercialIndicator; | ||
|
||
/** | ||
* Additional data about the card based on the BIN. In the case of co-branded card products, two objects are returned. | ||
*/ | ||
@SerializedName("BinData") | ||
private BinData[] binData; | ||
|
||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public String getBin() { | ||
return bin; | ||
} | ||
|
||
public void setBin(String bin) { | ||
this.bin = bin; | ||
} | ||
|
||
public String getToken() { | ||
return token; | ||
} | ||
|
||
public void setToken(String token) { | ||
this.token = token; | ||
} | ||
|
||
public String getTokenFormat() { | ||
return tokenFormat; | ||
} | ||
|
||
public void setTokenFormat(String tokenFormat) { | ||
this.tokenFormat = tokenFormat; | ||
} | ||
|
||
public String getCardType() { | ||
return cardType; | ||
} | ||
|
||
public void setCardType(String cardType) { | ||
this.cardType = cardType; | ||
} | ||
|
||
public String getIssuerCountryCode() { | ||
return issuerCountryCode; | ||
} | ||
|
||
public void setIssuerCountryCode(String issuerCountryCode) { | ||
this.issuerCountryCode = issuerCountryCode; | ||
} | ||
|
||
public String getIssuingBank() { | ||
return issuingBank; | ||
} | ||
|
||
public void setIssuingBank(String issuingBank) { | ||
this.issuingBank = issuingBank; | ||
} | ||
|
||
public String getCommercialIndicator() { | ||
return commercialIndicator; | ||
} | ||
|
||
public void setCommercialIndicator(String commercialIndicator) { | ||
this.commercialIndicator = commercialIndicator; | ||
} | ||
|
||
public BinData[] getBinData() { | ||
return binData; | ||
} | ||
|
||
public void setBinData(BinData[] binData) { | ||
this.binData = binData; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#Tue Dec 05 17:19:57 EET 2023 | ||
#Mon Jan 29 22:37:41 EET 2024 | ||
version=2.34.0 |
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