Skip to content

Commit

Permalink
Merge pull request #407 from Mangopay/feature/payment-method-metadata…
Browse files Browse the repository at this point in the history
…-update

updated PaymentMethodMetadata
  • Loading branch information
iulian03 authored Apr 30, 2024
2 parents e4caae4 + 8e4ea53 commit 06761c7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
8 changes: 0 additions & 8 deletions lib/models/PaymentMethodMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ var PaymentMethodMetadata = EntityBase.extend({
* CRYPTOGRAM_3DS – The card is enrolled in the customer’s Google Wallet and authentication is handled by the Android device.
*/
TokenFormat: null,
/**
* The type of the card. Allowed / Returned / Default values: CREDIT, DEBIT, CHARGE CARD
*/
CardType: null,
/**
* The country where the card was issued. Format: ISO-3166 alpha-2 two-letter country code
*/
Expand All @@ -32,10 +28,6 @@ var PaymentMethodMetadata = EntityBase.extend({
* The name of the card issuer.
*/
IssuingBank: null,
/**
* Whether the card is held in a personal or commercial capacity.
*/
CommercialIndicator: null,
/**
* Additional data about the card based on the BIN. In the case of co-branded card products, two objects are returned.
*/
Expand Down
26 changes: 18 additions & 8 deletions typings/models/payIn.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1982,43 +1982,51 @@ export namespace payIn {
* The card brand. Examples include: AMERICAN EXPRESS, DISCOVER, JCB, MASTERCARD, VISA, etc.
*/
Brand: string;

/**
* Whether the card is held in a personal or commercial capacity.
*/
CommercialIndicator: string;

/**
* The type of the card. Allowed / Returned / Default values: CREDIT, DEBIT, CHARGE CARD
*/
CardType: string;
}

interface PaymentMethodMetadata {
/**
* The type of metadata. Allowed values: BIN, GOOGLE_PAY
*/
Type: string;

/**
* The bank identification number (BIN). (Format: 6 or 8 digits)
*/
Bin: string;

/**
* The tokenized payment data provided by the third-party payment method.
*/
Token: string;

/**
* 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.
*/
TokenFormat: string;
/**
* The type of the card. Allowed / Returned / Default values: CREDIT, DEBIT, CHARGE CARD
*/
CardType: string;

/**
* The country where the card was issued. Format: ISO-3166 alpha-2 two-letter country code
*/
IssuerCountryCode: string;

/**
* The name of the card issuer.
*/
IssuingBank: string;
/**
* Whether the card is held in a personal or commercial capacity.
*/
CommercialIndicator: string;

/**
* Additional data about the card based on the BIN. In the case of co-branded card products, two objects are returned.
*/
Expand All @@ -2030,10 +2038,12 @@ export namespace payIn {
* The type of metadata. Allowed values: BIN, GOOGLE_PAY
*/
Type: string;

/**
* The bank identification number (BIN). (Format: 6 or 8 digits)
*/
Bin?: string;

/**
* The tokenized payment data provided by the third-party payment method.
*/
Expand Down

0 comments on commit 06761c7

Please sign in to comment.