-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdigital-card-art.ts
More file actions
75 lines (62 loc) · 1.96 KB
/
Copy pathdigital-card-art.ts
File metadata and controls
75 lines (62 loc) · 1.96 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../core/resource';
import { APIPromise } from '../core/api-promise';
import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
import { RequestOptions } from '../internal/request-options';
import { path } from '../internal/utils/path';
export class DigitalCardArtResource extends APIResource {
/**
* Get digital card art by token.
*/
retrieve(digitalCardArtToken: string, options?: RequestOptions): APIPromise<DigitalCardArt> {
return this._client.get(path`/v1/digital_card_art/${digitalCardArtToken}`, options);
}
/**
* List digital card art.
*/
list(
query: DigitalCardArtListParams | null | undefined = {},
options?: RequestOptions,
): PagePromise<DigitalCardArtsCursorPage, DigitalCardArt> {
return this._client.getAPIList('/v1/digital_card_art', CursorPage<DigitalCardArt>, { query, ...options });
}
}
export type DigitalCardArtsCursorPage = CursorPage<DigitalCardArt>;
export interface DigitalCardArt {
/**
* Globally unique identifier for the card art.
*/
token: string;
/**
* Globally unique identifier for the card program.
*/
card_program_token: string;
/**
* Timestamp of when card art was created.
*/
created: string;
/**
* Description of the card art.
*/
description: string;
/**
* Whether the card art is enabled.
*/
is_enabled: boolean;
/**
* Card network.
*/
network: 'MASTERCARD' | 'VISA';
/**
* Whether the card art is the default card art to be added upon tokenization.
*/
is_card_program_default?: boolean;
}
export interface DigitalCardArtListParams extends CursorPageParams {}
export declare namespace DigitalCardArtResource {
export {
type DigitalCardArt as DigitalCardArt,
type DigitalCardArtsCursorPage as DigitalCardArtsCursorPage,
type DigitalCardArtListParams as DigitalCardArtListParams,
};
}