increase 0.308.0 → 0.310.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 +0 -3
- package/index.d.ts +0 -3
- package/index.d.ts.map +1 -1
- package/index.js +0 -4
- package/index.js.map +1 -1
- package/index.mjs +0 -4
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -6
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/resources/routing-numbers.d.ts +7 -0
- package/resources/routing-numbers.d.ts.map +1 -1
- package/resources/routing-numbers.js.map +1 -1
- package/resources/routing-numbers.mjs.map +1 -1
- package/resources/simulations/index.d.ts +0 -1
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +1 -3
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +0 -1
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts +0 -4
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +0 -4
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +0 -4
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/transactions.d.ts +0 -12
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/src/index.ts +0 -18
- package/src/resources/index.ts +0 -7
- package/src/resources/routing-numbers.ts +8 -0
- package/src/resources/simulations/index.ts +0 -1
- package/src/resources/simulations/simulations.ts +0 -6
- package/src/resources/transactions.ts +0 -15
- 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-disputes.d.ts +0 -262
- package/resources/card-disputes.d.ts.map +0 -1
- package/resources/card-disputes.js +0 -49
- package/resources/card-disputes.js.map +0 -1
- package/resources/card-disputes.mjs +0 -44
- package/resources/card-disputes.mjs.map +0 -1
- package/resources/simulations/card-disputes.d.ts +0 -45
- package/resources/simulations/card-disputes.d.ts.map +0 -1
- package/resources/simulations/card-disputes.js +0 -27
- package/resources/simulations/card-disputes.js.map +0 -1
- package/resources/simulations/card-disputes.mjs +0 -23
- package/resources/simulations/card-disputes.mjs.map +0 -1
- package/src/resources/card-disputes.ts +0 -326
- package/src/resources/simulations/card-disputes.ts +0 -56
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../resource.js";
|
|
2
|
-
import * as Core from "../core.js";
|
|
3
|
-
import { Page, type PageParams } from "../pagination.js";
|
|
4
|
-
export declare class CardDisputes extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a Card Dispute
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const cardDispute = await client.cardDisputes.create({
|
|
11
|
-
* disputed_transaction_id:
|
|
12
|
-
* 'transaction_uyrp7fld2ium70oa7oi',
|
|
13
|
-
* explanation: 'Unauthorized recurring transaction.',
|
|
14
|
-
* });
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
create(body: CardDisputeCreateParams, options?: Core.RequestOptions): Core.APIPromise<CardDispute>;
|
|
18
|
-
/**
|
|
19
|
-
* Retrieve a Card Dispute
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```ts
|
|
23
|
-
* const cardDispute = await client.cardDisputes.retrieve(
|
|
24
|
-
* 'card_dispute_h9sc95nbl1cgltpp7men',
|
|
25
|
-
* );
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
retrieve(cardDisputeId: string, options?: Core.RequestOptions): Core.APIPromise<CardDispute>;
|
|
29
|
-
/**
|
|
30
|
-
* List Card Disputes
|
|
31
|
-
*
|
|
32
|
-
* @example
|
|
33
|
-
* ```ts
|
|
34
|
-
* // Automatically fetches more pages as needed.
|
|
35
|
-
* for await (const cardDispute of client.cardDisputes.list()) {
|
|
36
|
-
* // ...
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
list(query?: CardDisputeListParams, options?: Core.RequestOptions): Core.PagePromise<CardDisputesPage, CardDispute>;
|
|
41
|
-
list(options?: Core.RequestOptions): Core.PagePromise<CardDisputesPage, CardDispute>;
|
|
42
|
-
}
|
|
43
|
-
export declare class CardDisputesPage extends Page<CardDispute> {
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* If unauthorized activity occurs on a card, you can create a Card Dispute and
|
|
47
|
-
* we'll return the funds if appropriate.
|
|
48
|
-
*/
|
|
49
|
-
export interface CardDispute {
|
|
50
|
-
/**
|
|
51
|
-
* The Card Dispute identifier.
|
|
52
|
-
*/
|
|
53
|
-
id: string;
|
|
54
|
-
/**
|
|
55
|
-
* If the Card Dispute's status is `accepted`, this will contain details of the
|
|
56
|
-
* successful dispute.
|
|
57
|
-
*/
|
|
58
|
-
acceptance: CardDispute.Acceptance | null;
|
|
59
|
-
/**
|
|
60
|
-
* The amount of the dispute, if provided, or the transaction amount otherwise.
|
|
61
|
-
*/
|
|
62
|
-
amount: number | null;
|
|
63
|
-
/**
|
|
64
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
65
|
-
* the Card Dispute was created.
|
|
66
|
-
*/
|
|
67
|
-
created_at: string;
|
|
68
|
-
/**
|
|
69
|
-
* The identifier of the Transaction that was disputed.
|
|
70
|
-
*/
|
|
71
|
-
disputed_transaction_id: string;
|
|
72
|
-
/**
|
|
73
|
-
* Why you disputed the Transaction in question.
|
|
74
|
-
*/
|
|
75
|
-
explanation: string;
|
|
76
|
-
/**
|
|
77
|
-
* The idempotency key you chose for this object. This value is unique across
|
|
78
|
-
* Increase and is used to ensure that a request is only processed once. Learn more
|
|
79
|
-
* about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
80
|
-
*/
|
|
81
|
-
idempotency_key: string | null;
|
|
82
|
-
/**
|
|
83
|
-
* If the Card Dispute's status is `lost`, this will contain details of the lost
|
|
84
|
-
* dispute.
|
|
85
|
-
*/
|
|
86
|
-
loss: CardDispute.Loss | null;
|
|
87
|
-
/**
|
|
88
|
-
* If the Card Dispute's status is `rejected`, this will contain details of the
|
|
89
|
-
* unsuccessful dispute.
|
|
90
|
-
*/
|
|
91
|
-
rejection: CardDispute.Rejection | null;
|
|
92
|
-
/**
|
|
93
|
-
* The results of the Dispute investigation.
|
|
94
|
-
*
|
|
95
|
-
* - `pending_reviewing` - The Card Dispute is pending review.
|
|
96
|
-
* - `pending_user_information` - Increase has requested more information related
|
|
97
|
-
* to the Card Dispute from you.
|
|
98
|
-
* - `accepted` - The Card Dispute has been accepted and your funds have been
|
|
99
|
-
* returned. The card dispute will eventually transition into `won` or `lost`
|
|
100
|
-
* depending on the outcome.
|
|
101
|
-
* - `rejected` - The Card Dispute has been rejected.
|
|
102
|
-
* - `lost` - The Card Dispute has been lost and funds previously credited from the
|
|
103
|
-
* acceptance have been debited.
|
|
104
|
-
* - `won` - The Card Dispute has been won and no further action can be taken.
|
|
105
|
-
*/
|
|
106
|
-
status: 'pending_reviewing' | 'pending_user_information' | 'accepted' | 'rejected' | 'lost' | 'won';
|
|
107
|
-
/**
|
|
108
|
-
* A constant representing the object's type. For this resource it will always be
|
|
109
|
-
* `card_dispute`.
|
|
110
|
-
*/
|
|
111
|
-
type: 'card_dispute';
|
|
112
|
-
/**
|
|
113
|
-
* If the Card Dispute's status is `won`, this will contain details of the won
|
|
114
|
-
* dispute.
|
|
115
|
-
*/
|
|
116
|
-
win: CardDispute.Win | null;
|
|
117
|
-
}
|
|
118
|
-
export declare namespace CardDispute {
|
|
119
|
-
/**
|
|
120
|
-
* If the Card Dispute's status is `accepted`, this will contain details of the
|
|
121
|
-
* successful dispute.
|
|
122
|
-
*/
|
|
123
|
-
interface Acceptance {
|
|
124
|
-
/**
|
|
125
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
126
|
-
* the Card Dispute was accepted.
|
|
127
|
-
*/
|
|
128
|
-
accepted_at: string;
|
|
129
|
-
/**
|
|
130
|
-
* The identifier of the Card Dispute that was accepted.
|
|
131
|
-
*/
|
|
132
|
-
card_dispute_id: string;
|
|
133
|
-
/**
|
|
134
|
-
* The identifier of the Transaction that was created to return the disputed funds
|
|
135
|
-
* to your account.
|
|
136
|
-
*/
|
|
137
|
-
transaction_id: string;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* If the Card Dispute's status is `lost`, this will contain details of the lost
|
|
141
|
-
* dispute.
|
|
142
|
-
*/
|
|
143
|
-
interface Loss {
|
|
144
|
-
/**
|
|
145
|
-
* The identifier of the Card Dispute that was lost.
|
|
146
|
-
*/
|
|
147
|
-
card_dispute_id: string;
|
|
148
|
-
/**
|
|
149
|
-
* Why the Card Dispute was lost.
|
|
150
|
-
*/
|
|
151
|
-
explanation: string;
|
|
152
|
-
/**
|
|
153
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
154
|
-
* the Card Dispute was lost.
|
|
155
|
-
*/
|
|
156
|
-
lost_at: string;
|
|
157
|
-
/**
|
|
158
|
-
* The identifier of the Transaction that was created to debit the disputed funds
|
|
159
|
-
* from your account.
|
|
160
|
-
*/
|
|
161
|
-
transaction_id: string;
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* If the Card Dispute's status is `rejected`, this will contain details of the
|
|
165
|
-
* unsuccessful dispute.
|
|
166
|
-
*/
|
|
167
|
-
interface Rejection {
|
|
168
|
-
/**
|
|
169
|
-
* The identifier of the Card Dispute that was rejected.
|
|
170
|
-
*/
|
|
171
|
-
card_dispute_id: string;
|
|
172
|
-
/**
|
|
173
|
-
* Why the Card Dispute was rejected.
|
|
174
|
-
*/
|
|
175
|
-
explanation: string;
|
|
176
|
-
/**
|
|
177
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
178
|
-
* the Card Dispute was rejected.
|
|
179
|
-
*/
|
|
180
|
-
rejected_at: string;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* If the Card Dispute's status is `won`, this will contain details of the won
|
|
184
|
-
* dispute.
|
|
185
|
-
*/
|
|
186
|
-
interface Win {
|
|
187
|
-
/**
|
|
188
|
-
* The identifier of the Card Dispute that was won.
|
|
189
|
-
*/
|
|
190
|
-
card_dispute_id: string;
|
|
191
|
-
/**
|
|
192
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
193
|
-
* the Card Dispute was won.
|
|
194
|
-
*/
|
|
195
|
-
won_at: string;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
export interface CardDisputeCreateParams {
|
|
199
|
-
/**
|
|
200
|
-
* The Transaction you wish to dispute. This Transaction must have a `source_type`
|
|
201
|
-
* of `card_settlement`.
|
|
202
|
-
*/
|
|
203
|
-
disputed_transaction_id: string;
|
|
204
|
-
/**
|
|
205
|
-
* Why you are disputing this Transaction.
|
|
206
|
-
*/
|
|
207
|
-
explanation: string;
|
|
208
|
-
/**
|
|
209
|
-
* The monetary amount of the part of the transaction that is being disputed. This
|
|
210
|
-
* is optional and will default to the full amount of the transaction if not
|
|
211
|
-
* provided. If provided, the amount must be less than or equal to the amount of
|
|
212
|
-
* the transaction.
|
|
213
|
-
*/
|
|
214
|
-
amount?: number;
|
|
215
|
-
}
|
|
216
|
-
export interface CardDisputeListParams extends PageParams {
|
|
217
|
-
created_at?: CardDisputeListParams.CreatedAt;
|
|
218
|
-
/**
|
|
219
|
-
* Filter records to the one with the specified `idempotency_key` you chose for
|
|
220
|
-
* that object. This value is unique across Increase and is used to ensure that a
|
|
221
|
-
* request is only processed once. Learn more about
|
|
222
|
-
* [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
223
|
-
*/
|
|
224
|
-
idempotency_key?: string;
|
|
225
|
-
status?: CardDisputeListParams.Status;
|
|
226
|
-
}
|
|
227
|
-
export declare namespace CardDisputeListParams {
|
|
228
|
-
interface CreatedAt {
|
|
229
|
-
/**
|
|
230
|
-
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
231
|
-
* timestamp.
|
|
232
|
-
*/
|
|
233
|
-
after?: string;
|
|
234
|
-
/**
|
|
235
|
-
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
236
|
-
* timestamp.
|
|
237
|
-
*/
|
|
238
|
-
before?: string;
|
|
239
|
-
/**
|
|
240
|
-
* Return results on or after this
|
|
241
|
-
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
242
|
-
*/
|
|
243
|
-
on_or_after?: string;
|
|
244
|
-
/**
|
|
245
|
-
* Return results on or before this
|
|
246
|
-
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
247
|
-
*/
|
|
248
|
-
on_or_before?: string;
|
|
249
|
-
}
|
|
250
|
-
interface Status {
|
|
251
|
-
/**
|
|
252
|
-
* Filter Card Disputes for those with the specified status or statuses. For GET
|
|
253
|
-
* requests, this should be encoded as a comma-delimited string, such as
|
|
254
|
-
* `?in=one,two,three`.
|
|
255
|
-
*/
|
|
256
|
-
in?: Array<'pending_reviewing' | 'pending_user_information' | 'accepted' | 'rejected' | 'lost' | 'won'>;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
export declare namespace CardDisputes {
|
|
260
|
-
export { type CardDispute as CardDispute, CardDisputesPage as CardDisputesPage, type CardDisputeCreateParams as CardDisputeCreateParams, type CardDisputeListParams as CardDisputeListParams, };
|
|
261
|
-
}
|
|
262
|
-
//# sourceMappingURL=card-disputes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-disputes.d.ts","sourceRoot":"","sources":["../src/resources/card-disputes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aA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AU;IACvD,UAAU,CAAC,EAAE,qBAAqB,CAAC,SAAS,CAAC;IAE7C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,MAAM,CAAC,EAAE,qBAAqB,CAAC,MAAM,CAAC;CACvC;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,SAAS;QACxB;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;WAGG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;IAED,UAAiB,MAAM;QACrB;;;;WAIG;QACH,EAAE,CAAC,EAAE,KAAK,CAAC,mBAAmB,GAAG,0BAA0B,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC,CAAC;KACzG;CACF;AAID,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,WAAW,IAAI,WAAW,EAC/B,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -1,49 +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.CardDisputesPage = exports.CardDisputes = void 0;
|
|
5
|
-
const resource_1 = require("../resource.js");
|
|
6
|
-
const core_1 = require("../core.js");
|
|
7
|
-
const pagination_1 = require("../pagination.js");
|
|
8
|
-
class CardDisputes extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a Card Dispute
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const cardDispute = await client.cardDisputes.create({
|
|
15
|
-
* disputed_transaction_id:
|
|
16
|
-
* 'transaction_uyrp7fld2ium70oa7oi',
|
|
17
|
-
* explanation: 'Unauthorized recurring transaction.',
|
|
18
|
-
* });
|
|
19
|
-
* ```
|
|
20
|
-
*/
|
|
21
|
-
create(body, options) {
|
|
22
|
-
return this._client.post('/card_disputes', { body, ...options });
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Retrieve a Card Dispute
|
|
26
|
-
*
|
|
27
|
-
* @example
|
|
28
|
-
* ```ts
|
|
29
|
-
* const cardDispute = await client.cardDisputes.retrieve(
|
|
30
|
-
* 'card_dispute_h9sc95nbl1cgltpp7men',
|
|
31
|
-
* );
|
|
32
|
-
* ```
|
|
33
|
-
*/
|
|
34
|
-
retrieve(cardDisputeId, options) {
|
|
35
|
-
return this._client.get(`/card_disputes/${cardDisputeId}`, options);
|
|
36
|
-
}
|
|
37
|
-
list(query = {}, options) {
|
|
38
|
-
if ((0, core_1.isRequestOptions)(query)) {
|
|
39
|
-
return this.list({}, query);
|
|
40
|
-
}
|
|
41
|
-
return this._client.getAPIList('/card_disputes', CardDisputesPage, { query, ...options });
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.CardDisputes = CardDisputes;
|
|
45
|
-
class CardDisputesPage extends pagination_1.Page {
|
|
46
|
-
}
|
|
47
|
-
exports.CardDisputesPage = CardDisputesPage;
|
|
48
|
-
CardDisputes.CardDisputesPage = CardDisputesPage;
|
|
49
|
-
//# sourceMappingURL=card-disputes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-disputes.js","sourceRoot":"","sources":["../src/resources/card-disputes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAE3C,iDAAsD;AAEtD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAA6B,EAAE,OAA6B;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAkBD,IAAI,CACF,QAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,IAAA,uBAAgB,EAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AAxDD,oCAwDC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAAG;AAA1D,4CAA0D;AA2P1D,YAAY,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../resource.mjs";
|
|
3
|
-
import { isRequestOptions } from "../core.mjs";
|
|
4
|
-
import { Page } from "../pagination.mjs";
|
|
5
|
-
export class CardDisputes extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create a Card Dispute
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const cardDispute = await client.cardDisputes.create({
|
|
12
|
-
* disputed_transaction_id:
|
|
13
|
-
* 'transaction_uyrp7fld2ium70oa7oi',
|
|
14
|
-
* explanation: 'Unauthorized recurring transaction.',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
create(body, options) {
|
|
19
|
-
return this._client.post('/card_disputes', { body, ...options });
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Retrieve a Card Dispute
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```ts
|
|
26
|
-
* const cardDispute = await client.cardDisputes.retrieve(
|
|
27
|
-
* 'card_dispute_h9sc95nbl1cgltpp7men',
|
|
28
|
-
* );
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
retrieve(cardDisputeId, options) {
|
|
32
|
-
return this._client.get(`/card_disputes/${cardDisputeId}`, options);
|
|
33
|
-
}
|
|
34
|
-
list(query = {}, options) {
|
|
35
|
-
if (isRequestOptions(query)) {
|
|
36
|
-
return this.list({}, query);
|
|
37
|
-
}
|
|
38
|
-
return this._client.getAPIList('/card_disputes', CardDisputesPage, { query, ...options });
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
export class CardDisputesPage extends Page {
|
|
42
|
-
}
|
|
43
|
-
CardDisputes.CardDisputesPage = CardDisputesPage;
|
|
44
|
-
//# sourceMappingURL=card-disputes.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-disputes.mjs","sourceRoot":"","sources":["../src/resources/card-disputes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,IAAI,EAAmB;AAEhC,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,IAA6B,EAAE,OAA6B;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnE,CAAC;IAED;;;;;;;;;OASG;IACH,QAAQ,CAAC,aAAqB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,aAAa,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAkBD,IAAI,CACF,QAAqD,EAAE,EACvD,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;CACF;AAED,MAAM,OAAO,gBAAiB,SAAQ,IAAiB;CAAG;AA2P1D,YAAY,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../resource.js";
|
|
2
|
-
import * as Core from "../../core.js";
|
|
3
|
-
import * as CardDisputesAPI from "../card-disputes.js";
|
|
4
|
-
export declare class CardDisputes extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* After a [Card Dispute](#card-disputes) is created in production, the dispute
|
|
7
|
-
* will be reviewed. Since no review happens in sandbox, this endpoint simulates
|
|
8
|
-
* moving a Card Dispute into a rejected or accepted state. A Card Dispute can only
|
|
9
|
-
* be actioned one time and must have a status of `pending_reviewing`.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const cardDispute =
|
|
14
|
-
* await client.simulations.cardDisputes.action(
|
|
15
|
-
* 'card_dispute_h9sc95nbl1cgltpp7men',
|
|
16
|
-
* { status: 'rejected' },
|
|
17
|
-
* );
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
action(cardDisputeId: string, body: CardDisputeActionParams, options?: Core.RequestOptions): Core.APIPromise<CardDisputesAPI.CardDispute>;
|
|
21
|
-
}
|
|
22
|
-
export interface CardDisputeActionParams {
|
|
23
|
-
/**
|
|
24
|
-
* The status to move the dispute to.
|
|
25
|
-
*
|
|
26
|
-
* - `pending_user_information` - Increase has requested more information related
|
|
27
|
-
* to the Card Dispute from you.
|
|
28
|
-
* - `accepted` - The Card Dispute has been accepted and your funds have been
|
|
29
|
-
* returned. The card dispute will eventually transition into `won` or `lost`
|
|
30
|
-
* depending on the outcome.
|
|
31
|
-
* - `rejected` - The Card Dispute has been rejected.
|
|
32
|
-
* - `lost` - The Card Dispute has been lost and funds previously credited from the
|
|
33
|
-
* acceptance have been debited.
|
|
34
|
-
* - `won` - The Card Dispute has been won and no further action can be taken.
|
|
35
|
-
*/
|
|
36
|
-
status: 'pending_user_information' | 'accepted' | 'rejected' | 'lost' | 'won';
|
|
37
|
-
/**
|
|
38
|
-
* Why the dispute was rejected. Not required for accepting disputes.
|
|
39
|
-
*/
|
|
40
|
-
explanation?: string;
|
|
41
|
-
}
|
|
42
|
-
export declare namespace CardDisputes {
|
|
43
|
-
export { type CardDisputeActionParams as CardDisputeActionParams };
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=card-disputes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-disputes.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/card-disputes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,eAAe,MAAM,kBAAkB,CAAC;AAEpD,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,WAAW,CAAC;CAGhD;AAED,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;;;;;OAYG;IACH,MAAM,EAAE,0BAA0B,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,KAAK,CAAC;IAE9E;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,CAAC;CACpE"}
|
|
@@ -1,27 +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.CardDisputes = void 0;
|
|
5
|
-
const resource_1 = require("../../resource.js");
|
|
6
|
-
class CardDisputes extends resource_1.APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* After a [Card Dispute](#card-disputes) is created in production, the dispute
|
|
9
|
-
* will be reviewed. Since no review happens in sandbox, this endpoint simulates
|
|
10
|
-
* moving a Card Dispute into a rejected or accepted state. A Card Dispute can only
|
|
11
|
-
* be actioned one time and must have a status of `pending_reviewing`.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const cardDispute =
|
|
16
|
-
* await client.simulations.cardDisputes.action(
|
|
17
|
-
* 'card_dispute_h9sc95nbl1cgltpp7men',
|
|
18
|
-
* { status: 'rejected' },
|
|
19
|
-
* );
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
action(cardDisputeId, body, options) {
|
|
23
|
-
return this._client.post(`/simulations/card_disputes/${cardDisputeId}/action`, { body, ...options });
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.CardDisputes = CardDisputes;
|
|
27
|
-
//# sourceMappingURL=card-disputes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-disputes.js","sourceRoot":"","sources":["../../src/resources/simulations/card-disputes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAI7C,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,aAAa,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF;AAvBD,oCAuBC"}
|
|
@@ -1,23 +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 CardDisputes extends APIResource {
|
|
4
|
-
/**
|
|
5
|
-
* After a [Card Dispute](#card-disputes) is created in production, the dispute
|
|
6
|
-
* will be reviewed. Since no review happens in sandbox, this endpoint simulates
|
|
7
|
-
* moving a Card Dispute into a rejected or accepted state. A Card Dispute can only
|
|
8
|
-
* be actioned one time and must have a status of `pending_reviewing`.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const cardDispute =
|
|
13
|
-
* await client.simulations.cardDisputes.action(
|
|
14
|
-
* 'card_dispute_h9sc95nbl1cgltpp7men',
|
|
15
|
-
* { status: 'rejected' },
|
|
16
|
-
* );
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
action(cardDisputeId, body, options) {
|
|
20
|
-
return this._client.post(`/simulations/card_disputes/${cardDisputeId}/action`, { body, ...options });
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=card-disputes.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card-disputes.mjs","sourceRoot":"","sources":["../../src/resources/simulations/card-disputes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,aAAqB,EACrB,IAA6B,EAC7B,OAA6B;QAE7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,aAAa,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvG,CAAC;CACF"}
|