increase 0.317.0 → 0.319.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/index.d.mts +2 -5
- package/index.d.ts +2 -5
- package/index.d.ts.map +1 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/index.mjs +0 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/cards.d.ts +110 -5
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js +44 -0
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs +44 -0
- package/resources/cards.mjs.map +1 -1
- package/resources/event-subscriptions.d.ts +8 -0
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/event-subscriptions.js.map +1 -1
- package/resources/event-subscriptions.mjs.map +1 -1
- package/resources/index.d.ts +1 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -5
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/src/index.ts +8 -14
- package/src/resources/cards.ts +142 -5
- package/src/resources/event-subscriptions.ts +9 -0
- package/src/resources/index.ts +4 -6
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/card-details.d.ts +0 -116
- package/resources/card-details.d.ts.map +0 -1
- package/resources/card-details.js +0 -53
- package/resources/card-details.js.map +0 -1
- package/resources/card-details.mjs +0 -49
- package/resources/card-details.mjs.map +0 -1
- package/src/resources/card-details.ts +0 -152
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.CardDetails = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
6
|
-
class CardDetails extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Update a Card's PIN
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const cardDetails = await client.cardDetails.update(
|
|
13
|
-
* 'card_oubs0hwk5rn6knuecxg2',
|
|
14
|
-
* { pin: '1234' },
|
|
15
|
-
* );
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
update(cardId, body, options) {
|
|
19
|
-
return this._client.patch(`/cards/${cardId}/details`, { body, ...options });
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Create an iframe URL for a Card to display the card details. More details about
|
|
23
|
-
* styling and usage can be found in the
|
|
24
|
-
* [documentation](/documentation/embedded-card-component).
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* const cardIframeURL =
|
|
29
|
-
* await client.cardDetails.createDetailsIframe(
|
|
30
|
-
* 'card_oubs0hwk5rn6knuecxg2',
|
|
31
|
-
* );
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
createDetailsIframe(cardId, body, options) {
|
|
35
|
-
return this._client.post(`/cards/${cardId}/create_details_iframe`, { body, ...options });
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Sensitive details for a Card include the primary account number, expiry, card
|
|
39
|
-
* verification code, and PIN.
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* ```ts
|
|
43
|
-
* const cardDetails = await client.cardDetails.details(
|
|
44
|
-
* 'card_oubs0hwk5rn6knuecxg2',
|
|
45
|
-
* );
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
details(cardId, options) {
|
|
49
|
-
return this._client.get(`/cards/${cardId}/details`, options);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.CardDetails = CardDetails;
|
|
53
|
-
//# sourceMappingURL=card-details.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-details.js","sourceRoot":"","sources":["../src/resources/card-details.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAc,EACd,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,MAAM,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,mBAAmB,CACjB,MAAc,EACd,IAAyC,EACzC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,MAAM,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,MAAc,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF;AAvDD,kCAuDC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../resource.mjs";
|
|
3
|
-
export class CardDetails extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* Update a Card's PIN
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```ts
|
|
9
|
-
* const cardDetails = await client.cardDetails.update(
|
|
10
|
-
* 'card_oubs0hwk5rn6knuecxg2',
|
|
11
|
-
* { pin: '1234' },
|
|
12
|
-
* );
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
update(cardId, body, options) {
|
|
16
|
-
return this._client.patch(`/cards/${cardId}/details`, { body, ...options });
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Create an iframe URL for a Card to display the card details. More details about
|
|
20
|
-
* styling and usage can be found in the
|
|
21
|
-
* [documentation](/documentation/embedded-card-component).
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const cardIframeURL =
|
|
26
|
-
* await client.cardDetails.createDetailsIframe(
|
|
27
|
-
* 'card_oubs0hwk5rn6knuecxg2',
|
|
28
|
-
* );
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
createDetailsIframe(cardId, body, options) {
|
|
32
|
-
return this._client.post(`/cards/${cardId}/create_details_iframe`, { body, ...options });
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Sensitive details for a Card include the primary account number, expiry, card
|
|
36
|
-
* verification code, and PIN.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* const cardDetails = await client.cardDetails.details(
|
|
41
|
-
* 'card_oubs0hwk5rn6knuecxg2',
|
|
42
|
-
* );
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
details(cardId, options) {
|
|
46
|
-
return this._client.get(`/cards/${cardId}/details`, options);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=card-details.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-details.mjs","sourceRoot":"","sources":["../src/resources/card-details.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAc,EACd,IAA4B,EAC5B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,MAAM,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,mBAAmB,CACjB,MAAc,EACd,IAAyC,EACzC,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,MAAM,wBAAwB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,MAAc,EAAE,OAA6B;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,MAAM,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;CACF"}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../resource';
|
|
4
|
-
import * as Core from '../core';
|
|
5
|
-
|
|
6
|
-
export class CardDetails extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Update a Card's PIN
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const cardDetails = await client.cardDetails.update(
|
|
13
|
-
* 'card_oubs0hwk5rn6knuecxg2',
|
|
14
|
-
* { pin: '1234' },
|
|
15
|
-
* );
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
update(
|
|
19
|
-
cardId: string,
|
|
20
|
-
body: CardDetailUpdateParams,
|
|
21
|
-
options?: Core.RequestOptions,
|
|
22
|
-
): Core.APIPromise<CardDetails> {
|
|
23
|
-
return this._client.patch(`/cards/${cardId}/details`, { body, ...options });
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Create an iframe URL for a Card to display the card details. More details about
|
|
28
|
-
* styling and usage can be found in the
|
|
29
|
-
* [documentation](/documentation/embedded-card-component).
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const cardIframeURL =
|
|
34
|
-
* await client.cardDetails.createDetailsIframe(
|
|
35
|
-
* 'card_oubs0hwk5rn6knuecxg2',
|
|
36
|
-
* );
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
createDetailsIframe(
|
|
40
|
-
cardId: string,
|
|
41
|
-
body: CardDetailCreateDetailsIframeParams,
|
|
42
|
-
options?: Core.RequestOptions,
|
|
43
|
-
): Core.APIPromise<CardIframeURL> {
|
|
44
|
-
return this._client.post(`/cards/${cardId}/create_details_iframe`, { body, ...options });
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Sensitive details for a Card include the primary account number, expiry, card
|
|
49
|
-
* verification code, and PIN.
|
|
50
|
-
*
|
|
51
|
-
* @example
|
|
52
|
-
* ```ts
|
|
53
|
-
* const cardDetails = await client.cardDetails.details(
|
|
54
|
-
* 'card_oubs0hwk5rn6knuecxg2',
|
|
55
|
-
* );
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
details(cardId: string, options?: Core.RequestOptions): Core.APIPromise<CardDetails> {
|
|
59
|
-
return this._client.get(`/cards/${cardId}/details`, options);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* An object containing the sensitive details (card number, CVC, PIN, etc) for a
|
|
65
|
-
* Card. These details are not included in the Card object. If you'd prefer to
|
|
66
|
-
* never access these details directly, you can use the
|
|
67
|
-
* [embedded iframe](/documentation/embedded-card-component) to display the
|
|
68
|
-
* information to your users.
|
|
69
|
-
*/
|
|
70
|
-
export interface CardDetails {
|
|
71
|
-
/**
|
|
72
|
-
* The identifier for the Card for which sensitive details have been returned.
|
|
73
|
-
*/
|
|
74
|
-
card_id: string;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* The month the card expires in M format (e.g., August is 8).
|
|
78
|
-
*/
|
|
79
|
-
expiration_month: number;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* The year the card expires in YYYY format (e.g., 2025).
|
|
83
|
-
*/
|
|
84
|
-
expiration_year: number;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* The 4-digit PIN for the card, for use with ATMs.
|
|
88
|
-
*/
|
|
89
|
-
pin: string;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* The card number.
|
|
93
|
-
*/
|
|
94
|
-
primary_account_number: string;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* A constant representing the object's type. For this resource it will always be
|
|
98
|
-
* `card_details`.
|
|
99
|
-
*/
|
|
100
|
-
type: 'card_details';
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* The three-digit verification code for the card. It's also known as the Card
|
|
104
|
-
* Verification Code (CVC), the Card Verification Value (CVV), or the Card
|
|
105
|
-
* Identification (CID).
|
|
106
|
-
*/
|
|
107
|
-
verification_code: string;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* An object containing the iframe URL for a Card.
|
|
112
|
-
*/
|
|
113
|
-
export interface CardIframeURL {
|
|
114
|
-
/**
|
|
115
|
-
* The time the iframe URL will expire.
|
|
116
|
-
*/
|
|
117
|
-
expires_at: string;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* The iframe URL for the Card. Treat this as an opaque URL.
|
|
121
|
-
*/
|
|
122
|
-
iframe_url: string;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* A constant representing the object's type. For this resource it will always be
|
|
126
|
-
* `card_iframe_url`.
|
|
127
|
-
*/
|
|
128
|
-
type: 'card_iframe_url';
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface CardDetailUpdateParams {
|
|
132
|
-
/**
|
|
133
|
-
* The 4-digit PIN for the card, for use with ATMs.
|
|
134
|
-
*/
|
|
135
|
-
pin: string;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
export interface CardDetailCreateDetailsIframeParams {
|
|
139
|
-
/**
|
|
140
|
-
* The identifier of the Physical Card to retrieve details for.
|
|
141
|
-
*/
|
|
142
|
-
physical_card_id?: string;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export declare namespace CardDetails {
|
|
146
|
-
export {
|
|
147
|
-
type CardDetails as CardDetails,
|
|
148
|
-
type CardIframeURL as CardIframeURL,
|
|
149
|
-
type CardDetailUpdateParams as CardDetailUpdateParams,
|
|
150
|
-
type CardDetailCreateDetailsIframeParams as CardDetailCreateDetailsIframeParams,
|
|
151
|
-
};
|
|
152
|
-
}
|