@sumup/sdk
Version:
The official TypeScript SDK for the SumUp API
37 lines • 1.1 kB
TypeScript
import type { CardType } from "./card-type";
import type { MandateResponse } from "./mandate-response";
/**
* Payment Instrument Response
*
* Payment Instrument Response
*/
export type PaymentInstrumentResponse = {
/**
* Unique token identifying the saved payment card for a customer.
*/
readonly token?: string;
/**
* Indicates whether the payment instrument is active and can be used for payments. To deactivate it, send a `DELETE` request to the resource endpoint.
*/
readonly active?: boolean;
/**
* Type of the payment instrument.
*/
type?: "card";
/**
* Details of the payment card.
*/
card?: {
/**
* Last 4 digits of the payment card number.
*/
readonly last_4_digits?: string;
type?: CardType;
};
mandate?: MandateResponse;
/**
* Creation date of payment instrument. Response format expressed according to [ISO8601](https://en.wikipedia.org/wiki/ISO_8601) code.
*/
created_at?: string;
};
//# sourceMappingURL=payment-instrument-response.d.ts.map