increase 0.7.1 → 0.8.1
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 +71 -0
- package/README.md +8 -4
- package/_shims/ReadableStream.d.ts +38 -0
- package/_shims/ReadableStream.js +5 -0
- package/_shims/ReadableStream.mjs +7 -0
- package/_shims/ReadableStream.node.d.ts +6 -0
- package/_shims/ReadableStream.node.d.ts.map +1 -0
- package/_shims/ReadableStream.node.js +14 -0
- package/_shims/ReadableStream.node.js.map +1 -0
- package/_shims/ReadableStream.node.mjs +3 -0
- package/_shims/ReadableStream.node.mjs.map +1 -0
- package/_shims/fetch.js +1 -1
- package/core.d.ts +11 -10
- package/core.d.ts.map +1 -1
- package/core.js +123 -60
- package/core.js.map +1 -1
- package/core.mjs +113 -20
- package/core.mjs.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.js +12 -3
- package/error.js.map +1 -1
- package/error.mjs +12 -3
- package/error.mjs.map +1 -1
- package/index.d.mts +9 -5
- package/index.d.ts +9 -5
- package/index.d.ts.map +1 -1
- package/index.js +15 -11
- package/index.js.map +1 -1
- package/index.mjs +15 -11
- package/index.mjs.map +1 -1
- package/package.json +4 -4
- package/resources/account-numbers.d.ts.map +1 -1
- package/resources/account-statements.d.ts.map +1 -1
- package/resources/account-transfers.d.ts.map +1 -1
- package/resources/accounts.d.ts.map +1 -1
- package/resources/ach-prenotifications.d.ts.map +1 -1
- package/resources/ach-transfers.d.ts.map +1 -1
- package/resources/balance-lookups.d.ts.map +1 -1
- package/resources/bookkeeping-accounts.d.ts.map +1 -1
- package/resources/bookkeeping-entries.d.ts.map +1 -1
- package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
- package/resources/card-disputes.d.ts.map +1 -1
- package/resources/card-profiles.d.ts +17 -4
- package/resources/card-profiles.d.ts.map +1 -1
- package/resources/card-profiles.js.map +1 -1
- package/resources/card-profiles.mjs.map +1 -1
- package/resources/card-purchase-supplements.d.ts +270 -0
- package/resources/card-purchase-supplements.d.ts.map +1 -0
- package/resources/card-purchase-supplements.js +28 -0
- package/resources/card-purchase-supplements.js.map +1 -0
- package/resources/card-purchase-supplements.mjs +21 -0
- package/resources/card-purchase-supplements.mjs.map +1 -0
- package/resources/cards.d.ts.map +1 -1
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-transfers.d.ts +184 -98
- package/resources/check-transfers.d.ts.map +1 -1
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +9 -7
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/digital-wallet-tokens.d.ts.map +1 -1
- package/resources/documents.d.ts.map +1 -1
- package/resources/entities/beneficial-owners.d.ts +219 -0
- package/resources/entities/beneficial-owners.d.ts.map +1 -0
- package/resources/entities/beneficial-owners.js +18 -0
- package/resources/entities/beneficial-owners.js.map +1 -0
- package/resources/entities/beneficial-owners.mjs +12 -0
- package/resources/entities/beneficial-owners.mjs.map +1 -0
- package/resources/entities/entities.d.ts +4 -0
- package/resources/entities/entities.d.ts.map +1 -1
- package/resources/entities/entities.js +3 -0
- package/resources/entities/entities.js.map +1 -1
- package/resources/entities/entities.mjs +3 -0
- package/resources/entities/entities.mjs.map +1 -1
- package/resources/entities/index.d.ts +1 -0
- package/resources/entities/index.d.ts.map +1 -1
- package/resources/entities/index.js +8 -0
- package/resources/entities/index.js.map +1 -1
- package/resources/entities/index.mjs +1 -0
- package/resources/entities/index.mjs.map +1 -1
- package/resources/entities/supplemental-documents.d.ts.map +1 -1
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/events.d.ts.map +1 -1
- package/resources/exports.d.ts.map +1 -1
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/files.d.ts.map +1 -1
- package/resources/groups.d.ts.map +1 -1
- package/resources/inbound-ach-transfer-returns.d.ts.map +1 -1
- package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/index.d.ts +6 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +18 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/limits.d.ts +2 -2
- package/resources/limits.d.ts.map +1 -1
- package/resources/oauth-connections.d.ts.map +1 -1
- package/resources/pending-transactions.d.ts +11 -7
- package/resources/pending-transactions.d.ts.map +1 -1
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/programs.d.ts.map +1 -1
- package/resources/real-time-decisions.d.ts +49 -7
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/real-time-decisions.js.map +1 -1
- package/resources/real-time-decisions.mjs.map +1 -1
- package/resources/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/routing-numbers.d.ts.map +1 -1
- package/resources/shared.d.ts +2 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/simulations/account-statements.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +952 -26
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/card-disputes.d.ts.map +1 -1
- package/resources/simulations/card-refunds.d.ts.map +1 -1
- package/resources/simulations/cards.d.ts +20 -14
- package/resources/simulations/cards.d.ts.map +1 -1
- package/resources/simulations/cards.js.map +1 -1
- package/resources/simulations/cards.mjs.map +1 -1
- package/resources/simulations/digital-wallet-token-requests.d.ts.map +1 -1
- package/resources/simulations/documents.d.ts.map +1 -1
- package/resources/simulations/inbound-funds-holds.d.ts +4 -0
- package/resources/simulations/inbound-funds-holds.d.ts.map +1 -1
- package/resources/simulations/inbound-funds-holds.js.map +1 -1
- package/resources/simulations/inbound-funds-holds.mjs.map +1 -1
- package/resources/simulations/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/simulations/interest-payments.d.ts +951 -19
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/programs.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.d.ts +952 -26
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +943 -19
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/transactions.d.ts +943 -20
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-drawdown-requests.d.ts.map +1 -1
- package/resources/wire-transfers.d.ts.map +1 -1
- package/src/_shims/ReadableStream.d.ts +38 -0
- package/src/_shims/ReadableStream.js +5 -0
- package/src/_shims/ReadableStream.mjs +7 -0
- package/src/_shims/ReadableStream.node.ts +6 -0
- package/src/_shims/fetch.deno.ts +23 -0
- package/src/_shims/fetch.js +1 -1
- package/src/_shims/formdata.deno.ts +16 -0
- package/src/core.ts +130 -21
- package/src/error.ts +11 -1
- package/src/index.ts +23 -16
- package/src/resources/account-numbers.ts +1 -1
- package/src/resources/account-statements.ts +1 -1
- package/src/resources/account-transfers.ts +1 -1
- package/src/resources/accounts.ts +1 -1
- package/src/resources/ach-prenotifications.ts +1 -1
- package/src/resources/ach-transfers.ts +1 -1
- package/src/resources/balance-lookups.ts +1 -1
- package/src/resources/bookkeeping-accounts.ts +1 -1
- package/src/resources/bookkeeping-entries.ts +1 -1
- package/src/resources/bookkeeping-entry-sets.ts +1 -1
- package/src/resources/card-disputes.ts +1 -1
- package/src/resources/card-profiles.ts +19 -5
- package/src/resources/card-purchase-supplements.ts +331 -0
- package/src/resources/cards.ts +1 -1
- package/src/resources/check-deposits.ts +1 -1
- package/src/resources/check-transfers.ts +208 -113
- package/src/resources/declined-transactions.ts +11 -9
- package/src/resources/digital-wallet-tokens.ts +1 -1
- package/src/resources/documents.ts +1 -1
- package/src/resources/entities/beneficial-owners.ts +255 -0
- package/src/resources/entities/entities.ts +6 -1
- package/src/resources/entities/index.ts +1 -0
- package/src/resources/entities/supplemental-documents.ts +1 -1
- package/src/resources/event-subscriptions.ts +1 -1
- package/src/resources/events.ts +1 -1
- package/src/resources/exports.ts +1 -1
- package/src/resources/external-accounts.ts +1 -1
- package/src/resources/files.ts +1 -1
- package/src/resources/groups.ts +1 -1
- package/src/resources/inbound-ach-transfer-returns.ts +1 -1
- package/src/resources/inbound-wire-drawdown-requests.ts +1 -1
- package/src/resources/index.ts +6 -0
- package/src/resources/limits.ts +3 -3
- package/src/resources/oauth-connections.ts +1 -1
- package/src/resources/pending-transactions.ts +14 -9
- package/src/resources/programs.ts +1 -1
- package/src/resources/real-time-decisions.ts +57 -9
- package/src/resources/real-time-payments-transfers.ts +1 -1
- package/src/resources/routing-numbers.ts +1 -1
- package/src/resources/shared.ts +2 -0
- package/src/resources/simulations/account-statements.ts +1 -1
- package/src/resources/simulations/ach-transfers.ts +1091 -30
- package/src/resources/simulations/card-disputes.ts +1 -1
- package/src/resources/simulations/card-refunds.ts +1 -1
- package/src/resources/simulations/cards.ts +24 -17
- package/src/resources/simulations/digital-wallet-token-requests.ts +1 -1
- package/src/resources/simulations/documents.ts +1 -1
- package/src/resources/simulations/inbound-funds-holds.ts +6 -1
- package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
- package/src/resources/simulations/interest-payments.ts +1091 -22
- package/src/resources/simulations/programs.ts +1 -1
- package/src/resources/simulations/real-time-payments-transfers.ts +1091 -30
- package/src/resources/simulations/simulations.ts +1 -1
- package/src/resources/simulations/wire-transfers.ts +1081 -22
- package/src/resources/transactions.ts +1081 -23
- package/src/resources/wire-drawdown-requests.ts +1 -1
- package/src/resources/wire-transfers.ts +1 -1
- package/src/uploads.ts +7 -6
- package/src/version.ts +1 -1
- package/uploads.d.ts +5 -4
- package/uploads.d.ts.map +1 -1
- package/uploads.js +2 -2
- package/uploads.js.map +1 -1
- package/uploads.mjs +2 -2
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class AccountTransfers extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class Accounts extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class ACHPrenotifications extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class ACHTransfers extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class BookkeepingAccounts extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class BookkeepingEntries extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class CardDisputes extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class CardProfiles extends APIResource {
|
|
@@ -171,22 +171,36 @@ export namespace CardProfile {
|
|
|
171
171
|
/**
|
|
172
172
|
* The identifier of the File containing the physical card's back image.
|
|
173
173
|
*/
|
|
174
|
-
back_image_file_id: string;
|
|
174
|
+
back_image_file_id: string | null;
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
177
|
* The identifier of the File containing the physical card's carrier image.
|
|
178
178
|
*/
|
|
179
|
-
carrier_image_file_id: string;
|
|
179
|
+
carrier_image_file_id: string | null;
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* A phone number the user can contact to receive support for their card.
|
|
183
183
|
*/
|
|
184
|
-
contact_phone: string;
|
|
184
|
+
contact_phone: string | null;
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
187
|
* The identifier of the File containing the physical card's front image.
|
|
188
188
|
*/
|
|
189
|
-
front_image_file_id: string;
|
|
189
|
+
front_image_file_id: string | null;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The status of the Physical Card Profile.
|
|
193
|
+
*
|
|
194
|
+
* - `not_eligible` - The Card Profile is not eligible for physical cards.
|
|
195
|
+
* - `rejected` - There is an issue with the Physical Card Profile preventing it
|
|
196
|
+
* from use.
|
|
197
|
+
* - `pending_reviewing` - The card profile is awaiting review by Increase.
|
|
198
|
+
* - `pending_submitting` - The card profile is awaiting submission to the
|
|
199
|
+
* fulfillment provider.
|
|
200
|
+
* - `submitted` - The Physical Card Profile has been submitted to the fulfillment
|
|
201
|
+
* provider.
|
|
202
|
+
*/
|
|
203
|
+
status: 'not_eligible' | 'rejected' | 'pending_reviewing' | 'pending_submitting' | 'submitted';
|
|
190
204
|
}
|
|
191
205
|
}
|
|
192
206
|
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from '../core';
|
|
4
|
+
import { APIResource } from '../resource';
|
|
5
|
+
import { isRequestOptions } from '../core';
|
|
6
|
+
import * as API from './index';
|
|
7
|
+
import { Page, PageParams } from '../pagination';
|
|
8
|
+
|
|
9
|
+
export class CardPurchaseSupplements extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Retrieve a Card Purchase Supplement
|
|
12
|
+
*/
|
|
13
|
+
retrieve(
|
|
14
|
+
cardPurchaseSupplementId: string,
|
|
15
|
+
options?: Core.RequestOptions,
|
|
16
|
+
): Promise<Core.APIResponse<CardPurchaseSupplement>> {
|
|
17
|
+
return this.get(`/card_purchase_supplements/${cardPurchaseSupplementId}`, options);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* List Card Purchase Supplements
|
|
22
|
+
*/
|
|
23
|
+
list(
|
|
24
|
+
query?: CardPurchaseSupplementListParams,
|
|
25
|
+
options?: Core.RequestOptions,
|
|
26
|
+
): Core.PagePromise<CardPurchaseSupplementsPage>;
|
|
27
|
+
list(options?: Core.RequestOptions): Core.PagePromise<CardPurchaseSupplementsPage>;
|
|
28
|
+
list(
|
|
29
|
+
query: CardPurchaseSupplementListParams | Core.RequestOptions = {},
|
|
30
|
+
options?: Core.RequestOptions,
|
|
31
|
+
): Core.PagePromise<CardPurchaseSupplementsPage> {
|
|
32
|
+
if (isRequestOptions(query)) {
|
|
33
|
+
return this.list({}, query);
|
|
34
|
+
}
|
|
35
|
+
return this.getAPIList('/card_purchase_supplements', CardPurchaseSupplementsPage, { query, ...options });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export class CardPurchaseSupplementsPage extends Page<CardPurchaseSupplement> {}
|
|
40
|
+
// alias so we can export it in the namespace
|
|
41
|
+
type _CardPurchaseSupplementsPage = CardPurchaseSupplementsPage;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Additional information about a card purchase (e.g., settlement or refund), such
|
|
45
|
+
* as level 3 line item data.
|
|
46
|
+
*/
|
|
47
|
+
export interface CardPurchaseSupplement {
|
|
48
|
+
/**
|
|
49
|
+
* The Card Purchase Supplement identifier.
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The ID of the Card Payment this transaction belongs to.
|
|
55
|
+
*/
|
|
56
|
+
card_payment_id: string | null;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Invoice-level information about the payment.
|
|
60
|
+
*/
|
|
61
|
+
invoice: CardPurchaseSupplement.Invoice | null;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Line item information, such as individual products purchased.
|
|
65
|
+
*/
|
|
66
|
+
line_items: Array<CardPurchaseSupplement.LineItem> | null;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The ID of the transaction.
|
|
70
|
+
*/
|
|
71
|
+
transaction_id: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* A constant representing the object's type. For this resource it will always be
|
|
75
|
+
* `card_purchase_supplement`.
|
|
76
|
+
*/
|
|
77
|
+
type: 'card_purchase_supplement';
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export namespace CardPurchaseSupplement {
|
|
81
|
+
/**
|
|
82
|
+
* Invoice-level information about the payment.
|
|
83
|
+
*/
|
|
84
|
+
export interface Invoice {
|
|
85
|
+
/**
|
|
86
|
+
* Discount given to cardholder.
|
|
87
|
+
*/
|
|
88
|
+
discount_amount: number | null;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the discount.
|
|
92
|
+
*/
|
|
93
|
+
discount_currency: string | null;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Indicates how the merchant applied the discount.
|
|
97
|
+
*
|
|
98
|
+
* - `no_invoice_level_discount_provided` - No invoice level discount provided
|
|
99
|
+
* - `tax_calculated_on_post_discount_invoice_total` - Tax calculated on post
|
|
100
|
+
* discount invoice total
|
|
101
|
+
* - `tax_calculated_on_pre_discount_invoice_total` - Tax calculated on pre
|
|
102
|
+
* discount invoice total
|
|
103
|
+
*/
|
|
104
|
+
discount_treatment_code:
|
|
105
|
+
| 'no_invoice_level_discount_provided'
|
|
106
|
+
| 'tax_calculated_on_post_discount_invoice_total'
|
|
107
|
+
| 'tax_calculated_on_pre_discount_invoice_total'
|
|
108
|
+
| null;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Amount of duty taxes.
|
|
112
|
+
*/
|
|
113
|
+
duty_tax_amount: number | null;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the duty tax.
|
|
117
|
+
*/
|
|
118
|
+
duty_tax_currency: string | null;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Date the order was taken.
|
|
122
|
+
*/
|
|
123
|
+
order_date: string | null;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The shipping cost.
|
|
127
|
+
*/
|
|
128
|
+
shipping_amount: number | null;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the shipping
|
|
132
|
+
* cost.
|
|
133
|
+
*/
|
|
134
|
+
shipping_currency: string | null;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Country code of the shipping destination.
|
|
138
|
+
*/
|
|
139
|
+
shipping_destination_country_code: string | null;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Postal code of the shipping destination.
|
|
143
|
+
*/
|
|
144
|
+
shipping_destination_postal_code: string | null;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Postal code of the location being shipped from.
|
|
148
|
+
*/
|
|
149
|
+
shipping_source_postal_code: string | null;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Taxes paid for freight and shipping.
|
|
153
|
+
*/
|
|
154
|
+
shipping_tax_amount: number | null;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the shipping
|
|
158
|
+
* tax.
|
|
159
|
+
*/
|
|
160
|
+
shipping_tax_currency: string | null;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Tax rate for freight and shipping.
|
|
164
|
+
*/
|
|
165
|
+
shipping_tax_rate: string | null;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Indicates how the merchant applied taxes.
|
|
169
|
+
*
|
|
170
|
+
* - `no_tax_applies` - No tax applies
|
|
171
|
+
* - `net_price_line_item_level` - Net price line item level
|
|
172
|
+
* - `net_price_invoice_level` - Net price invoice level
|
|
173
|
+
* - `gross_price_line_item_level` - Gross price line item level
|
|
174
|
+
* - `gross_price_invoice_level` - Gross price invoice level
|
|
175
|
+
*/
|
|
176
|
+
tax_treatments:
|
|
177
|
+
| 'no_tax_applies'
|
|
178
|
+
| 'net_price_line_item_level'
|
|
179
|
+
| 'net_price_invoice_level'
|
|
180
|
+
| 'gross_price_line_item_level'
|
|
181
|
+
| 'gross_price_invoice_level'
|
|
182
|
+
| null;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Value added tax invoice reference number.
|
|
186
|
+
*/
|
|
187
|
+
unique_value_added_tax_invoice_reference: string | null;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface LineItem {
|
|
191
|
+
/**
|
|
192
|
+
* Indicates the type of line item.
|
|
193
|
+
*
|
|
194
|
+
* - `normal` - Normal
|
|
195
|
+
* - `credit` - Credit
|
|
196
|
+
* - `payment` - Purchase
|
|
197
|
+
*/
|
|
198
|
+
detail_indicator: 'normal' | 'credit' | 'payment' | null;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Discount amount for this specific line item.
|
|
202
|
+
*/
|
|
203
|
+
discount_amount: number | null;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the discount.
|
|
207
|
+
*/
|
|
208
|
+
discount_currency: string | null;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Indicates how the merchant applied the discount for this specific line item.
|
|
212
|
+
*
|
|
213
|
+
* - `no_line_item_level_discount_provided` - No line item level discount provided
|
|
214
|
+
* - `tax_calculated_on_post_discount_line_item_total` - Tax calculated on post
|
|
215
|
+
* discount line item total
|
|
216
|
+
* - `tax_calculated_on_pre_discount_line_item_total` - Tax calculated on pre
|
|
217
|
+
* discount line item total
|
|
218
|
+
*/
|
|
219
|
+
discount_treatment_code:
|
|
220
|
+
| 'no_line_item_level_discount_provided'
|
|
221
|
+
| 'tax_calculated_on_post_discount_line_item_total'
|
|
222
|
+
| 'tax_calculated_on_pre_discount_line_item_total'
|
|
223
|
+
| null;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Code used to categorize the purchase item.
|
|
227
|
+
*/
|
|
228
|
+
item_commodity_code: string | null;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Description of the purchase item.
|
|
232
|
+
*/
|
|
233
|
+
item_descriptor: string | null;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* The number of units of the product being purchased.
|
|
237
|
+
*/
|
|
238
|
+
item_quantity: string | null;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Code used to categorize the product being purchased.
|
|
242
|
+
*/
|
|
243
|
+
product_code: string | null;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Sales tax amount for this line item.
|
|
247
|
+
*/
|
|
248
|
+
sales_tax_amount: number | null;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the sales tax
|
|
252
|
+
* assessed.
|
|
253
|
+
*/
|
|
254
|
+
sales_tax_currency: string | null;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Sales tax rate for this line item.
|
|
258
|
+
*/
|
|
259
|
+
sales_tax_rate: string | null;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Total amount of all line items
|
|
263
|
+
*/
|
|
264
|
+
total_amount: number | null;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the totla
|
|
268
|
+
* amount.
|
|
269
|
+
*/
|
|
270
|
+
total_amount_currency: string | null;
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Cost of line item per unit of measure, in major units.
|
|
274
|
+
*/
|
|
275
|
+
unit_cost: string | null;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the unit cost.
|
|
279
|
+
*/
|
|
280
|
+
unit_cost_currency: string | null;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Code indicating unit of measure (gallons, etc.)
|
|
284
|
+
*/
|
|
285
|
+
unit_of_measure_code: string | null;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export interface CardPurchaseSupplementListParams extends PageParams {
|
|
290
|
+
/**
|
|
291
|
+
* Filter Card Purchase Supplements to ones belonging to the specified Card
|
|
292
|
+
* Payment.
|
|
293
|
+
*/
|
|
294
|
+
card_payment_id?: string;
|
|
295
|
+
|
|
296
|
+
created_at?: CardPurchaseSupplementListParams.CreatedAt;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export namespace CardPurchaseSupplementListParams {
|
|
300
|
+
export interface CreatedAt {
|
|
301
|
+
/**
|
|
302
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
303
|
+
* timestamp.
|
|
304
|
+
*/
|
|
305
|
+
after?: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
309
|
+
* timestamp.
|
|
310
|
+
*/
|
|
311
|
+
before?: string;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Return results on or after this
|
|
315
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
316
|
+
*/
|
|
317
|
+
on_or_after?: string;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Return results on or before this
|
|
321
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
322
|
+
*/
|
|
323
|
+
on_or_before?: string;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export namespace CardPurchaseSupplements {
|
|
328
|
+
export import CardPurchaseSupplement = API.CardPurchaseSupplement;
|
|
329
|
+
export type CardPurchaseSupplementsPage = _CardPurchaseSupplementsPage;
|
|
330
|
+
export import CardPurchaseSupplementListParams = API.CardPurchaseSupplementListParams;
|
|
331
|
+
}
|
package/src/resources/cards.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class Cards extends APIResource {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as Core from '../core';
|
|
4
4
|
import { APIResource } from '../resource';
|
|
5
5
|
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as API from '
|
|
6
|
+
import * as API from './index';
|
|
7
7
|
import { Page, PageParams } from '../pagination';
|
|
8
8
|
|
|
9
9
|
export class CheckDeposits extends APIResource {
|