-
Notifications
You must be signed in to change notification settings - Fork 0
/
credit-cards.ts
36 lines (30 loc) · 1.04 KB
/
credit-cards.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../../core';
import { APIResource } from '../../resource';
import * as CreditCardsAPI from './credit-cards';
export class CreditCards extends APIResource {
/**
* Retrieve test credit card information. This includes its token, which is
* generated against the `4111 1111 1111 1004` test card.
*/
list(options?: Core.RequestOptions): Core.APIPromise<CreditCardListResponse> {
return this._client.get('/testing/credit-cards', options);
}
}
export interface CreditCardListResponse {
/**
* The expiration date of the credit card. TODO TO MAKE EXPIRATION REUSABLE
*/
expiration: string;
/**
* The last 4 digits of the credit card number.
*/
last4: string;
/**
* The credit card network.
*/
network: 'visa' | 'mastercard' | 'amex' | 'discover' | 'jcb' | 'unionpay' | 'alliancedata' | 'citiplcc';
}
export namespace CreditCards {
export import CreditCardListResponse = CreditCardsAPI.CreditCardListResponse;
}