Skip to content

Commit

Permalink
Merge pull request #410 from Mangopay/feature/card-holder-name
Browse files Browse the repository at this point in the history
Feature/card holder name
  • Loading branch information
iulian03 authored May 24, 2024
2 parents 848dbba + 91b4ccd commit c5bcd13
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/models/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ module.exports = EntityBase.extend({
Active: null,
Currency: null,
Validity: null,
Fingerprint: null
Fingerprint: null,
CardHolderName: null
}
});
3 changes: 2 additions & 1 deletion lib/models/CardRegistration.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ var CardRegistration = Model.extend({
ResultCode: null,
ResultMessage: null,
Currency: null,
Status: null
Status: null,
CardHolderName: null
},

getReadOnlyProperties: function() {
Expand Down
5 changes: 5 additions & 0 deletions typings/models/card.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ export namespace card {
* A unique representation of a 16-digits card number
*/
Fingerprint: string;

/**
* The cardholder’s name shown on the payment card
*/
CardHolderName: string;
}

interface UpdateCard {
Expand Down
18 changes: 16 additions & 2 deletions typings/models/cardRegistration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,22 @@ import { card } from "./card";
import { entityBase } from "./entityBase";

export namespace cardRegistration {
type UpdateCardRegistration = PickPartialRequired<CardRegistrationData,
"Tag" | "RegistrationData", "Id">;
type UpdateCardRegistration = {
/**
* The unique identifier of the Card Registration object.
*/
Id: string;

/**
* The string returned by the tokenization server after the Tokenize the card call is made.
*/
RegistrationData: string;

/**
* The cardholder’s name shown on the payment card
*/
CardHolderName?: string;
}

interface CardRegistrationData extends entityBase.EntityBaseData {
/**
Expand Down

0 comments on commit c5bcd13

Please sign in to comment.