@mbanq/core-sdk-js / commands / UpdateCardFeature
Function: UpdateCardFeature()
UpdateCardFeature(
cardId,data):Command<{cardId:number;data: {atmWithdrawalsEnabled?:boolean;blockedCountries?:string[];contactlessPaymentEnabled?:boolean;internationalPaymentsEnabled?:boolean;onlinePaymentEnabled?:boolean;posPaymentEnabled?:boolean; }; }, {changes: {atmWithdrawalsEnabled:boolean;blockedCountries:string[];contactlessPaymentEnabled:boolean;internationalPaymentsEnabled:boolean;onlinePaymentEnabled:boolean;posPaymentEnabled:boolean; };clientId:number;id:number;resourceId:number; }>
Defined in: src/commands/rest/card.ts:746
Update card features
Enables or disables specific features for a card such as international transactions, online purchases, ATM withdrawals, contactless payments, etc.
Parameters
cardId
number
The unique identifier of the card to update
data
atmWithdrawalsEnabled?
boolean = ...
blockedCountries?
string[] = ...
contactlessPaymentEnabled?
boolean = ...
internationalPaymentsEnabled?
boolean = ...
onlinePaymentEnabled?
boolean = ...
posPaymentEnabled?
boolean = ...
Returns
Command<{ cardId: number; data: { atmWithdrawalsEnabled?: boolean; blockedCountries?: string[]; contactlessPaymentEnabled?: boolean; internationalPaymentsEnabled?: boolean; onlinePaymentEnabled?: boolean; posPaymentEnabled?: boolean; }; }, { changes: { atmWithdrawalsEnabled: boolean; blockedCountries: string[]; contactlessPaymentEnabled: boolean; internationalPaymentsEnabled: boolean; onlinePaymentEnabled: boolean; posPaymentEnabled: boolean; }; clientId: number; id: number; resourceId: number; }>
Command object that executes the API request and returns updated features
Example
const command = UpdateCardFeature(67890, {
posPaymentEnabled: true,
onlinePaymentEnabled: true,
atmWithdrawalsEnabled: false,
internationalPaymentsEnabled: true,
blockedCountries: ['US', 'CA']
});
const result = await client.request(command);