increase 0.59.0 → 0.60.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 +31 -0
- package/README.md +41 -17
- package/error.d.ts.map +1 -1
- package/error.js +0 -3
- package/error.js.map +1 -1
- package/error.mjs +0 -3
- package/error.mjs.map +1 -1
- package/index.d.mts +190 -172
- package/index.d.ts +190 -172
- package/index.d.ts.map +1 -1
- package/index.js +96 -87
- package/index.js.map +1 -1
- package/index.mjs +96 -87
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/cards.d.ts +1 -1
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js +1 -1
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs +1 -1
- package/resources/cards.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +2 -231
- 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/{entities/entities.d.ts → entities.d.ts} +276 -46
- package/resources/entities.d.ts.map +1 -0
- package/resources/{entities/entities.js → entities.js} +28 -17
- package/resources/entities.js.map +1 -0
- package/resources/{entities/entities.mjs → entities.mjs} +28 -17
- package/resources/entities.mjs.map +1 -0
- package/resources/groups.d.ts +1 -1
- package/resources/groups.d.ts.map +1 -1
- package/resources/groups.js +1 -1
- package/resources/groups.js.map +1 -1
- package/resources/groups.mjs +1 -1
- package/resources/groups.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts +218 -7
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js +8 -8
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs +8 -8
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/inbound-check-deposits.d.ts +25 -1
- package/resources/inbound-check-deposits.d.ts.map +1 -1
- package/resources/inbound-check-deposits.js +6 -0
- package/resources/inbound-check-deposits.js.map +1 -1
- package/resources/inbound-check-deposits.mjs +6 -0
- package/resources/inbound-check-deposits.mjs.map +1 -1
- package/resources/inbound-mail-items.d.ts +0 -14
- package/resources/inbound-mail-items.d.ts.map +1 -1
- package/resources/inbound-mail-items.js.map +1 -1
- package/resources/inbound-mail-items.mjs.map +1 -1
- package/resources/inbound-wire-transfers.d.ts +4 -0
- package/resources/inbound-wire-transfers.d.ts.map +1 -1
- package/resources/inbound-wire-transfers.js.map +1 -1
- package/resources/inbound-wire-transfers.mjs.map +1 -1
- package/resources/index.d.ts +11 -8
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +15 -6
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +7 -4
- package/resources/index.mjs.map +1 -1
- package/resources/{intrafi/account-enrollments.d.ts → intrafi-account-enrollments.d.ts} +17 -17
- package/resources/intrafi-account-enrollments.d.ts.map +1 -0
- package/resources/{intrafi/account-enrollments.js → intrafi-account-enrollments.js} +11 -11
- package/resources/intrafi-account-enrollments.js.map +1 -0
- package/resources/{intrafi/account-enrollments.mjs → intrafi-account-enrollments.mjs} +9 -9
- package/resources/intrafi-account-enrollments.mjs.map +1 -0
- package/resources/{intrafi/balances.d.ts → intrafi-balances.d.ts} +7 -7
- package/resources/intrafi-balances.d.ts.map +1 -0
- package/resources/{intrafi/balances.js → intrafi-balances.js} +7 -7
- package/resources/intrafi-balances.js.map +1 -0
- package/resources/{intrafi/balances.mjs → intrafi-balances.mjs} +5 -5
- package/resources/intrafi-balances.mjs.map +1 -0
- package/resources/{intrafi/exclusions.d.ts → intrafi-exclusions.d.ts} +15 -15
- package/resources/intrafi-exclusions.d.ts.map +1 -0
- package/resources/{intrafi/exclusions.js → intrafi-exclusions.js} +11 -11
- package/resources/intrafi-exclusions.js.map +1 -0
- package/resources/{intrafi/exclusions.mjs → intrafi-exclusions.mjs} +9 -9
- package/resources/intrafi-exclusions.mjs.map +1 -0
- package/resources/lockboxes.d.ts +0 -14
- package/resources/lockboxes.d.ts.map +1 -1
- package/resources/lockboxes.js.map +1 -1
- package/resources/lockboxes.mjs.map +1 -1
- package/resources/routing-numbers.d.ts +5 -5
- package/resources/routing-numbers.d.ts.map +1 -1
- package/resources/routing-numbers.js +5 -5
- package/resources/routing-numbers.js.map +1 -1
- package/resources/routing-numbers.mjs +3 -3
- package/resources/routing-numbers.mjs.map +1 -1
- package/resources/simulations/ach-transfers.d.ts +10 -61
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js +10 -14
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs +10 -14
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/card-authorization-expirations.d.ts +20 -0
- package/resources/simulations/card-authorization-expirations.d.ts.map +1 -0
- package/resources/simulations/card-authorization-expirations.js +17 -0
- package/resources/simulations/card-authorization-expirations.js.map +1 -0
- package/resources/simulations/card-authorization-expirations.mjs +13 -0
- package/resources/simulations/card-authorization-expirations.mjs.map +1 -0
- package/resources/simulations/card-authorizations.d.ts +91 -0
- package/resources/simulations/card-authorizations.d.ts.map +1 -0
- package/resources/simulations/{cards.js → card-authorizations.js} +7 -17
- package/resources/simulations/card-authorizations.js.map +1 -0
- package/resources/simulations/{cards.mjs → card-authorizations.mjs} +5 -15
- package/resources/simulations/card-authorizations.mjs.map +1 -0
- package/resources/simulations/card-fuel-confirmations.d.ts +27 -0
- package/resources/simulations/card-fuel-confirmations.d.ts.map +1 -0
- package/resources/simulations/card-fuel-confirmations.js +19 -0
- package/resources/simulations/card-fuel-confirmations.js.map +1 -0
- package/resources/simulations/card-fuel-confirmations.mjs +15 -0
- package/resources/simulations/card-fuel-confirmations.mjs.map +1 -0
- package/resources/simulations/card-increments.d.ts +32 -0
- package/resources/simulations/card-increments.d.ts.map +1 -0
- package/resources/simulations/card-increments.js +18 -0
- package/resources/simulations/card-increments.js.map +1 -0
- package/resources/simulations/card-increments.mjs +14 -0
- package/resources/simulations/card-increments.mjs.map +1 -0
- package/resources/simulations/card-reversals.d.ts +28 -0
- package/resources/simulations/card-reversals.d.ts.map +1 -0
- package/resources/simulations/card-reversals.js +20 -0
- package/resources/simulations/card-reversals.js.map +1 -0
- package/resources/simulations/card-reversals.mjs +16 -0
- package/resources/simulations/card-reversals.mjs.map +1 -0
- package/resources/simulations/card-settlements.d.ts +34 -0
- package/resources/simulations/card-settlements.d.ts.map +1 -0
- package/resources/simulations/card-settlements.js +21 -0
- package/resources/simulations/card-settlements.js.map +1 -0
- package/resources/simulations/card-settlements.mjs +17 -0
- package/resources/simulations/card-settlements.mjs.map +1 -0
- package/resources/simulations/inbound-ach-transfers.d.ts +89 -0
- package/resources/simulations/inbound-ach-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-ach-transfers.js +26 -0
- package/resources/simulations/inbound-ach-transfers.js.map +1 -0
- package/resources/simulations/inbound-ach-transfers.mjs +22 -0
- package/resources/simulations/inbound-ach-transfers.mjs.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.d.ts +71 -0
- package/resources/simulations/inbound-real-time-payments-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.js +18 -0
- package/resources/simulations/inbound-real-time-payments-transfers.js.map +1 -0
- package/resources/simulations/inbound-real-time-payments-transfers.mjs +14 -0
- package/resources/simulations/inbound-real-time-payments-transfers.mjs.map +1 -0
- package/resources/simulations/inbound-wire-transfers.d.ts +99 -0
- package/resources/simulations/inbound-wire-transfers.d.ts.map +1 -0
- package/resources/simulations/inbound-wire-transfers.js +17 -0
- package/resources/simulations/inbound-wire-transfers.js.map +1 -0
- package/resources/simulations/inbound-wire-transfers.mjs +13 -0
- package/resources/simulations/inbound-wire-transfers.mjs.map +1 -0
- package/resources/simulations/index.d.ts +14 -7
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +21 -7
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +11 -4
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/interest-payments.js +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/physical-cards.d.ts +3 -3
- package/resources/simulations/physical-cards.js +2 -2
- package/resources/simulations/physical-cards.mjs +2 -2
- package/resources/simulations/real-time-payments-transfers.d.ts +0 -3686
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js +0 -7
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs +0 -7
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts +67 -118
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +45 -54
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +45 -54
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +10 -85
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js +14 -5
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs +14 -5
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/{entities/supplemental-documents.d.ts → supplemental-documents.d.ts} +17 -10
- package/resources/supplemental-documents.d.ts.map +1 -0
- package/resources/{entities/supplemental-documents.js → supplemental-documents.js} +9 -9
- package/resources/supplemental-documents.js.map +1 -0
- package/resources/{entities/supplemental-documents.mjs → supplemental-documents.mjs} +7 -7
- package/resources/supplemental-documents.mjs.map +1 -0
- package/resources/transactions.d.ts +6 -276
- 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-transfers.d.ts +4 -13
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js +0 -17
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs +0 -17
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/error.ts +0 -8
- package/src/index.ts +210 -189
- package/src/resources/cards.ts +1 -1
- package/src/resources/declined-transactions.ts +0 -297
- package/src/resources/{entities/entities.ts → entities.ts} +351 -56
- package/src/resources/groups.ts +1 -1
- package/src/resources/inbound-ach-transfers.ts +288 -13
- package/src/resources/inbound-check-deposits.ts +34 -1
- package/src/resources/inbound-mail-items.ts +0 -16
- package/src/resources/inbound-wire-transfers.ts +5 -0
- package/src/resources/index.ts +32 -14
- package/src/resources/{intrafi/account-enrollments.ts → intrafi-account-enrollments.ts} +18 -18
- package/src/resources/{intrafi/balances.ts → intrafi-balances.ts} +6 -6
- package/src/resources/{intrafi/exclusions.ts → intrafi-exclusions.ts} +19 -16
- package/src/resources/lockboxes.ts +0 -16
- package/src/resources/routing-numbers.ts +6 -6
- package/src/resources/simulations/ach-transfers.ts +15 -76
- package/src/resources/simulations/card-authorization-expirations.ts +29 -0
- package/src/resources/simulations/card-authorizations.ts +112 -0
- package/src/resources/simulations/card-fuel-confirmations.ts +37 -0
- package/src/resources/simulations/card-increments.ts +43 -0
- package/src/resources/simulations/card-reversals.ts +38 -0
- package/src/resources/simulations/card-settlements.ts +45 -0
- package/src/resources/simulations/inbound-ach-transfers.ts +124 -0
- package/src/resources/simulations/inbound-real-time-payments-transfers.ts +89 -0
- package/src/resources/simulations/inbound-wire-transfers.ts +124 -0
- package/src/resources/simulations/index.ts +26 -21
- package/src/resources/simulations/interest-payments.ts +1 -1
- package/src/resources/simulations/physical-cards.ts +5 -5
- package/src/resources/simulations/real-time-payments-transfers.ts +0 -4659
- package/src/resources/simulations/simulations.ts +80 -157
- package/src/resources/simulations/wire-transfers.ts +18 -104
- package/src/resources/{entities/supplemental-documents.ts → supplemental-documents.ts} +21 -13
- package/src/resources/transactions.ts +5 -350
- package/src/resources/wire-transfers.ts +5 -19
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/entities/beneficial-owners.d.ts +0 -279
- package/resources/entities/beneficial-owners.d.ts.map +0 -1
- package/resources/entities/beneficial-owners.js +0 -29
- package/resources/entities/beneficial-owners.js.map +0 -1
- package/resources/entities/beneficial-owners.mjs +0 -25
- package/resources/entities/beneficial-owners.mjs.map +0 -1
- package/resources/entities/entities.d.ts.map +0 -1
- package/resources/entities/entities.js.map +0 -1
- package/resources/entities/entities.mjs.map +0 -1
- package/resources/entities/index.d.ts +0 -5
- package/resources/entities/index.d.ts.map +0 -1
- package/resources/entities/index.js +0 -15
- package/resources/entities/index.js.map +0 -1
- package/resources/entities/index.mjs +0 -6
- package/resources/entities/index.mjs.map +0 -1
- package/resources/entities/industry-code.d.ts +0 -23
- package/resources/entities/industry-code.d.ts.map +0 -1
- package/resources/entities/industry-code.js +0 -17
- package/resources/entities/industry-code.js.map +0 -1
- package/resources/entities/industry-code.mjs +0 -13
- package/resources/entities/industry-code.mjs.map +0 -1
- package/resources/entities/supplemental-documents.d.ts.map +0 -1
- package/resources/entities/supplemental-documents.js.map +0 -1
- package/resources/entities/supplemental-documents.mjs.map +0 -1
- package/resources/intrafi/account-enrollments.d.ts.map +0 -1
- package/resources/intrafi/account-enrollments.js.map +0 -1
- package/resources/intrafi/account-enrollments.mjs.map +0 -1
- package/resources/intrafi/balances.d.ts.map +0 -1
- package/resources/intrafi/balances.js.map +0 -1
- package/resources/intrafi/balances.mjs.map +0 -1
- package/resources/intrafi/exclusions.d.ts.map +0 -1
- package/resources/intrafi/exclusions.js.map +0 -1
- package/resources/intrafi/exclusions.mjs.map +0 -1
- package/resources/intrafi/index.d.ts +0 -5
- package/resources/intrafi/index.d.ts.map +0 -1
- package/resources/intrafi/index.js +0 -15
- package/resources/intrafi/index.js.map +0 -1
- package/resources/intrafi/index.mjs +0 -6
- package/resources/intrafi/index.mjs.map +0 -1
- package/resources/intrafi/intrafi.d.ts +0 -24
- package/resources/intrafi/intrafi.d.ts.map +0 -1
- package/resources/intrafi/intrafi.js +0 -48
- package/resources/intrafi/intrafi.js.map +0 -1
- package/resources/intrafi/intrafi.mjs +0 -21
- package/resources/intrafi/intrafi.mjs.map +0 -1
- package/resources/simulations/cards.d.ts +0 -1763
- package/resources/simulations/cards.d.ts.map +0 -1
- package/resources/simulations/cards.js.map +0 -1
- package/resources/simulations/cards.mjs.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.d.ts +0 -285
- package/resources/simulations/inbound-international-ach-transfers.d.ts.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.js +0 -21
- package/resources/simulations/inbound-international-ach-transfers.js.map +0 -1
- package/resources/simulations/inbound-international-ach-transfers.mjs +0 -17
- package/resources/simulations/inbound-international-ach-transfers.mjs.map +0 -1
- package/src/resources/entities/beneficial-owners.ts +0 -346
- package/src/resources/entities/index.ts +0 -25
- package/src/resources/entities/industry-code.ts +0 -33
- package/src/resources/intrafi/index.ts +0 -18
- package/src/resources/intrafi/intrafi.ts +0 -29
- package/src/resources/simulations/cards.ts +0 -2188
- package/src/resources/simulations/inbound-international-ach-transfers.ts +0 -367
|
@@ -1,2188 +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
|
-
import * as CardsAPI from './cards';
|
|
6
|
-
import * as TransactionsAPI from '../transactions';
|
|
7
|
-
|
|
8
|
-
export class Cards extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Simulates a purchase authorization on a [Card](#cards). Depending on the balance
|
|
11
|
-
* available to the card and the `amount` submitted, the authorization activity
|
|
12
|
-
* will result in a [Pending Transaction](#pending-transactions) of type
|
|
13
|
-
* `card_authorization` or a [Declined Transaction](#declined-transactions) of type
|
|
14
|
-
* `card_decline`. You can pass either a Card id or a
|
|
15
|
-
* [Digital Wallet Token](#digital-wallet-tokens) id to simulate the two different
|
|
16
|
-
* ways purchases can be made.
|
|
17
|
-
*/
|
|
18
|
-
authorize(
|
|
19
|
-
body: CardAuthorizeParams,
|
|
20
|
-
options?: Core.RequestOptions,
|
|
21
|
-
): Core.APIPromise<CardAuthorizationSimulation> {
|
|
22
|
-
return this._client.post('/simulations/card_authorizations', { body, ...options });
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Simulates the settlement of an authorization by a card acquirer. After a card
|
|
27
|
-
* authorization is created, the merchant will eventually send a settlement. This
|
|
28
|
-
* simulates that event, which may occur many days after the purchase in
|
|
29
|
-
* production. The amount settled can be different from the amount originally
|
|
30
|
-
* authorized, for example, when adding a tip to a restaurant bill.
|
|
31
|
-
*/
|
|
32
|
-
settlement(
|
|
33
|
-
body: CardSettlementParams,
|
|
34
|
-
options?: Core.RequestOptions,
|
|
35
|
-
): Core.APIPromise<TransactionsAPI.Transaction> {
|
|
36
|
-
return this._client.post('/simulations/card_settlements', { body, ...options });
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The results of a Card Authorization simulation.
|
|
42
|
-
*/
|
|
43
|
-
export interface CardAuthorizationSimulation {
|
|
44
|
-
/**
|
|
45
|
-
* If the authorization attempt fails, this will contain the resulting
|
|
46
|
-
* [Declined Transaction](#declined-transactions) object. The Declined
|
|
47
|
-
* Transaction's `source` will be of `category: card_decline`.
|
|
48
|
-
*/
|
|
49
|
-
declined_transaction: CardAuthorizationSimulation.DeclinedTransaction | null;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* If the authorization attempt succeeds, this will contain the resulting Pending
|
|
53
|
-
* Transaction object. The Pending Transaction's `source` will be of
|
|
54
|
-
* `category: card_authorization`.
|
|
55
|
-
*/
|
|
56
|
-
pending_transaction: CardAuthorizationSimulation.PendingTransaction | null;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* A constant representing the object's type. For this resource it will always be
|
|
60
|
-
* `inbound_card_authorization_simulation_result`.
|
|
61
|
-
*/
|
|
62
|
-
type: 'inbound_card_authorization_simulation_result';
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export namespace CardAuthorizationSimulation {
|
|
66
|
-
/**
|
|
67
|
-
* If the authorization attempt fails, this will contain the resulting
|
|
68
|
-
* [Declined Transaction](#declined-transactions) object. The Declined
|
|
69
|
-
* Transaction's `source` will be of `category: card_decline`.
|
|
70
|
-
*/
|
|
71
|
-
export interface DeclinedTransaction {
|
|
72
|
-
/**
|
|
73
|
-
* The Declined Transaction identifier.
|
|
74
|
-
*/
|
|
75
|
-
id: string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* The identifier for the Account the Declined Transaction belongs to.
|
|
79
|
-
*/
|
|
80
|
-
account_id: string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* The Declined Transaction amount in the minor unit of its currency. For dollars,
|
|
84
|
-
* for example, this is cents.
|
|
85
|
-
*/
|
|
86
|
-
amount: number;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the
|
|
90
|
-
* Transaction occurred.
|
|
91
|
-
*/
|
|
92
|
-
created_at: string;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Declined
|
|
96
|
-
* Transaction's currency. This will match the currency on the Declined
|
|
97
|
-
* Transaction's Account.
|
|
98
|
-
*
|
|
99
|
-
* - `CAD` - Canadian Dollar (CAD)
|
|
100
|
-
* - `CHF` - Swiss Franc (CHF)
|
|
101
|
-
* - `EUR` - Euro (EUR)
|
|
102
|
-
* - `GBP` - British Pound (GBP)
|
|
103
|
-
* - `JPY` - Japanese Yen (JPY)
|
|
104
|
-
* - `USD` - US Dollar (USD)
|
|
105
|
-
*/
|
|
106
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* This is the description the vendor provides.
|
|
110
|
-
*/
|
|
111
|
-
description: string;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* The identifier for the route this Declined Transaction came through. Routes are
|
|
115
|
-
* things like cards and ACH details.
|
|
116
|
-
*/
|
|
117
|
-
route_id: string | null;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* The type of the route this Declined Transaction came through.
|
|
121
|
-
*
|
|
122
|
-
* - `account_number` - An Account Number.
|
|
123
|
-
* - `card` - A Card.
|
|
124
|
-
* - `lockbox` - A Lockbox.
|
|
125
|
-
*/
|
|
126
|
-
route_type: 'account_number' | 'card' | 'lockbox' | null;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* This is an object giving more details on the network-level event that caused the
|
|
130
|
-
* Declined Transaction. For example, for a card transaction this lists the
|
|
131
|
-
* merchant's industry and location. Note that for backwards compatibility reasons,
|
|
132
|
-
* additional undocumented keys may appear in this object. These should be treated
|
|
133
|
-
* as deprecated and will be removed in the future.
|
|
134
|
-
*/
|
|
135
|
-
source: DeclinedTransaction.Source;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* A constant representing the object's type. For this resource it will always be
|
|
139
|
-
* `declined_transaction`.
|
|
140
|
-
*/
|
|
141
|
-
type: 'declined_transaction';
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export namespace DeclinedTransaction {
|
|
145
|
-
/**
|
|
146
|
-
* This is an object giving more details on the network-level event that caused the
|
|
147
|
-
* Declined Transaction. For example, for a card transaction this lists the
|
|
148
|
-
* merchant's industry and location. Note that for backwards compatibility reasons,
|
|
149
|
-
* additional undocumented keys may appear in this object. These should be treated
|
|
150
|
-
* as deprecated and will be removed in the future.
|
|
151
|
-
*/
|
|
152
|
-
export interface Source {
|
|
153
|
-
/**
|
|
154
|
-
* An ACH Decline object. This field will be present in the JSON response if and
|
|
155
|
-
* only if `category` is equal to `ach_decline`.
|
|
156
|
-
*/
|
|
157
|
-
ach_decline: Source.ACHDecline | null;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* A Card Decline object. This field will be present in the JSON response if and
|
|
161
|
-
* only if `category` is equal to `card_decline`.
|
|
162
|
-
*/
|
|
163
|
-
card_decline: Source.CardDecline | null;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* The type of the resource. We may add additional possible values for this enum
|
|
167
|
-
* over time; your application should be able to handle such additions gracefully.
|
|
168
|
-
*
|
|
169
|
-
* - `ach_decline` - ACH Decline: details will be under the `ach_decline` object.
|
|
170
|
-
* - `card_decline` - Card Decline: details will be under the `card_decline`
|
|
171
|
-
* object.
|
|
172
|
-
* - `check_decline` - Check Decline: details will be under the `check_decline`
|
|
173
|
-
* object.
|
|
174
|
-
* - `inbound_real_time_payments_transfer_decline` - Inbound Real-Time Payments
|
|
175
|
-
* Transfer Decline: details will be under the
|
|
176
|
-
* `inbound_real_time_payments_transfer_decline` object.
|
|
177
|
-
* - `international_ach_decline` - International ACH Decline: details will be under
|
|
178
|
-
* the `international_ach_decline` object.
|
|
179
|
-
* - `wire_decline` - Wire Decline: details will be under the `wire_decline`
|
|
180
|
-
* object.
|
|
181
|
-
* - `check_deposit_rejection` - Check Deposit Rejection: details will be under the
|
|
182
|
-
* `check_deposit_rejection` object.
|
|
183
|
-
* - `other` - The Declined Transaction was made for an undocumented or deprecated
|
|
184
|
-
* reason.
|
|
185
|
-
*/
|
|
186
|
-
category:
|
|
187
|
-
| 'ach_decline'
|
|
188
|
-
| 'card_decline'
|
|
189
|
-
| 'check_decline'
|
|
190
|
-
| 'inbound_real_time_payments_transfer_decline'
|
|
191
|
-
| 'international_ach_decline'
|
|
192
|
-
| 'wire_decline'
|
|
193
|
-
| 'check_deposit_rejection'
|
|
194
|
-
| 'other';
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* A Check Decline object. This field will be present in the JSON response if and
|
|
198
|
-
* only if `category` is equal to `check_decline`.
|
|
199
|
-
*/
|
|
200
|
-
check_decline: Source.CheckDecline | null;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* A Check Deposit Rejection object. This field will be present in the JSON
|
|
204
|
-
* response if and only if `category` is equal to `check_deposit_rejection`.
|
|
205
|
-
*/
|
|
206
|
-
check_deposit_rejection: Source.CheckDepositRejection | null;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* An Inbound Real-Time Payments Transfer Decline object. This field will be
|
|
210
|
-
* present in the JSON response if and only if `category` is equal to
|
|
211
|
-
* `inbound_real_time_payments_transfer_decline`.
|
|
212
|
-
*/
|
|
213
|
-
inbound_real_time_payments_transfer_decline: Source.InboundRealTimePaymentsTransferDecline | null;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* An International ACH Decline object. This field will be present in the JSON
|
|
217
|
-
* response if and only if `category` is equal to `international_ach_decline`.
|
|
218
|
-
*/
|
|
219
|
-
international_ach_decline: Source.InternationalACHDecline | null;
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* A Wire Decline object. This field will be present in the JSON response if and
|
|
223
|
-
* only if `category` is equal to `wire_decline`.
|
|
224
|
-
*/
|
|
225
|
-
wire_decline: Source.WireDecline | null;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export namespace Source {
|
|
229
|
-
/**
|
|
230
|
-
* An ACH Decline object. This field will be present in the JSON response if and
|
|
231
|
-
* only if `category` is equal to `ach_decline`.
|
|
232
|
-
*/
|
|
233
|
-
export interface ACHDecline {
|
|
234
|
-
/**
|
|
235
|
-
* The ACH Decline's identifier.
|
|
236
|
-
*/
|
|
237
|
-
id: string;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* The declined amount in the minor unit of the destination account currency. For
|
|
241
|
-
* dollars, for example, this is cents.
|
|
242
|
-
*/
|
|
243
|
-
amount: number;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* The identifier of the Inbound ACH Transfer object associated with this decline.
|
|
247
|
-
*/
|
|
248
|
-
inbound_ach_transfer_id: string;
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* The descriptive date of the transfer.
|
|
252
|
-
*/
|
|
253
|
-
originator_company_descriptive_date: string | null;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* The additional information included with the transfer.
|
|
257
|
-
*/
|
|
258
|
-
originator_company_discretionary_data: string | null;
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* The identifier of the company that initiated the transfer.
|
|
262
|
-
*/
|
|
263
|
-
originator_company_id: string;
|
|
264
|
-
|
|
265
|
-
/**
|
|
266
|
-
* The name of the company that initiated the transfer.
|
|
267
|
-
*/
|
|
268
|
-
originator_company_name: string;
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* Why the ACH transfer was declined.
|
|
272
|
-
*
|
|
273
|
-
* - `ach_route_canceled` - The account number is canceled.
|
|
274
|
-
* - `ach_route_disabled` - The account number is disabled.
|
|
275
|
-
* - `breaches_limit` - The transaction would cause an Increase limit to be
|
|
276
|
-
* exceeded.
|
|
277
|
-
* - `credit_entry_refused_by_receiver` - A credit was refused. This is a
|
|
278
|
-
* reasonable default reason for decline of credits.
|
|
279
|
-
* - `duplicate_return` - A rare return reason. The return this message refers to
|
|
280
|
-
* was a duplicate.
|
|
281
|
-
* - `entity_not_active` - The account's entity is not active.
|
|
282
|
-
* - `field_error` - There was an error with one of the required fields.
|
|
283
|
-
* - `group_locked` - Your account is inactive.
|
|
284
|
-
* - `insufficient_funds` - Your account contains insufficient funds.
|
|
285
|
-
* - `misrouted_return` - A rare return reason. The return this message refers to
|
|
286
|
-
* was misrouted.
|
|
287
|
-
* - `return_of_erroneous_or_reversing_debit` - The originating financial
|
|
288
|
-
* institution made a mistake and this return corrects it.
|
|
289
|
-
* - `no_ach_route` - The account number that was debited does not exist.
|
|
290
|
-
* - `originator_request` - The originating financial institution asked for this
|
|
291
|
-
* transfer to be returned.
|
|
292
|
-
* - `transaction_not_allowed` - The transaction is not allowed per Increase's
|
|
293
|
-
* terms.
|
|
294
|
-
* - `user_initiated` - Your integration declined this transfer via the API.
|
|
295
|
-
*/
|
|
296
|
-
reason:
|
|
297
|
-
| 'ach_route_canceled'
|
|
298
|
-
| 'ach_route_disabled'
|
|
299
|
-
| 'breaches_limit'
|
|
300
|
-
| 'credit_entry_refused_by_receiver'
|
|
301
|
-
| 'duplicate_return'
|
|
302
|
-
| 'entity_not_active'
|
|
303
|
-
| 'field_error'
|
|
304
|
-
| 'group_locked'
|
|
305
|
-
| 'insufficient_funds'
|
|
306
|
-
| 'misrouted_return'
|
|
307
|
-
| 'return_of_erroneous_or_reversing_debit'
|
|
308
|
-
| 'no_ach_route'
|
|
309
|
-
| 'originator_request'
|
|
310
|
-
| 'transaction_not_allowed'
|
|
311
|
-
| 'user_initiated';
|
|
312
|
-
|
|
313
|
-
/**
|
|
314
|
-
* The id of the receiver of the transfer.
|
|
315
|
-
*/
|
|
316
|
-
receiver_id_number: string | null;
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* The name of the receiver of the transfer.
|
|
320
|
-
*/
|
|
321
|
-
receiver_name: string | null;
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* The trace number of the transfer.
|
|
325
|
-
*/
|
|
326
|
-
trace_number: string;
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* A constant representing the object's type. For this resource it will always be
|
|
330
|
-
* `ach_decline`.
|
|
331
|
-
*/
|
|
332
|
-
type: 'ach_decline';
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* A Card Decline object. This field will be present in the JSON response if and
|
|
337
|
-
* only if `category` is equal to `card_decline`.
|
|
338
|
-
*/
|
|
339
|
-
export interface CardDecline {
|
|
340
|
-
/**
|
|
341
|
-
* The Card Decline identifier.
|
|
342
|
-
*/
|
|
343
|
-
id: string;
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Whether this authorization was approved by Increase, the card network through
|
|
347
|
-
* stand-in processing, or the user through a real-time decision.
|
|
348
|
-
*
|
|
349
|
-
* - `user` - This object was actioned by the user through a real-time decision.
|
|
350
|
-
* - `increase` - This object was actioned by Increase without user intervention.
|
|
351
|
-
* - `network` - This object was actioned by the network, through stand-in
|
|
352
|
-
* processing.
|
|
353
|
-
*/
|
|
354
|
-
actioner: 'user' | 'increase' | 'network';
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* The declined amount in the minor unit of the destination account currency. For
|
|
358
|
-
* dollars, for example, this is cents.
|
|
359
|
-
*/
|
|
360
|
-
amount: number;
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* The ID of the Card Payment this transaction belongs to.
|
|
364
|
-
*/
|
|
365
|
-
card_payment_id: string;
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
|
|
369
|
-
* account currency.
|
|
370
|
-
*
|
|
371
|
-
* - `CAD` - Canadian Dollar (CAD)
|
|
372
|
-
* - `CHF` - Swiss Franc (CHF)
|
|
373
|
-
* - `EUR` - Euro (EUR)
|
|
374
|
-
* - `GBP` - British Pound (GBP)
|
|
375
|
-
* - `JPY` - Japanese Yen (JPY)
|
|
376
|
-
* - `USD` - US Dollar (USD)
|
|
377
|
-
*/
|
|
378
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* The identifier of the declined transaction created for this Card Decline.
|
|
382
|
-
*/
|
|
383
|
-
declined_transaction_id: string;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* If the authorization was made via a Digital Wallet Token (such as an Apple Pay
|
|
387
|
-
* purchase), the identifier of the token that was used.
|
|
388
|
-
*/
|
|
389
|
-
digital_wallet_token_id: string | null;
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
393
|
-
* is transacting with.
|
|
394
|
-
*/
|
|
395
|
-
merchant_acceptor_id: string;
|
|
396
|
-
|
|
397
|
-
/**
|
|
398
|
-
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
399
|
-
* card is transacting with.
|
|
400
|
-
*/
|
|
401
|
-
merchant_category_code: string | null;
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* The city the merchant resides in.
|
|
405
|
-
*/
|
|
406
|
-
merchant_city: string | null;
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* The country the merchant resides in.
|
|
410
|
-
*/
|
|
411
|
-
merchant_country: string | null;
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* The merchant descriptor of the merchant the card is transacting with.
|
|
415
|
-
*/
|
|
416
|
-
merchant_descriptor: string;
|
|
417
|
-
|
|
418
|
-
/**
|
|
419
|
-
* The state the merchant resides in.
|
|
420
|
-
*/
|
|
421
|
-
merchant_state: string | null;
|
|
422
|
-
|
|
423
|
-
/**
|
|
424
|
-
* Fields specific to the `network`.
|
|
425
|
-
*/
|
|
426
|
-
network_details: CardDecline.NetworkDetails;
|
|
427
|
-
|
|
428
|
-
/**
|
|
429
|
-
* Network-specific identifiers for a specific request or transaction.
|
|
430
|
-
*/
|
|
431
|
-
network_identifiers: CardDecline.NetworkIdentifiers;
|
|
432
|
-
|
|
433
|
-
/**
|
|
434
|
-
* The risk score generated by the card network. For Visa this is the Visa Advanced
|
|
435
|
-
* Authorization risk score, from 0 to 99, where 99 is the riskiest.
|
|
436
|
-
*/
|
|
437
|
-
network_risk_score: number | null;
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* If the authorization was made in-person with a physical card, the Physical Card
|
|
441
|
-
* that was used.
|
|
442
|
-
*/
|
|
443
|
-
physical_card_id: string | null;
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* The declined amount in the minor unit of the transaction's presentment currency.
|
|
447
|
-
*/
|
|
448
|
-
presentment_amount: number;
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
452
|
-
* transaction's presentment currency.
|
|
453
|
-
*/
|
|
454
|
-
presentment_currency: string;
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* The processing category describes the intent behind the authorization, such as
|
|
458
|
-
* whether it was used for bill payments or an automatic fuel dispenser.
|
|
459
|
-
*
|
|
460
|
-
* - `account_funding` - Account funding transactions are transactions used to
|
|
461
|
-
* e.g., fund an account or transfer funds between accounts.
|
|
462
|
-
* - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
|
|
463
|
-
* when a card is used at a gas pump, prior to the actual transaction amount
|
|
464
|
-
* being known. They are followed by an advice message that updates the amount of
|
|
465
|
-
* the pending transaction.
|
|
466
|
-
* - `bill_payment` - A transaction used to pay a bill.
|
|
467
|
-
* - `purchase` - A regular purchase.
|
|
468
|
-
* - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
|
|
469
|
-
* be convertible to cash.
|
|
470
|
-
* - `refund` - A refund card authorization, sometimes referred to as a credit
|
|
471
|
-
* voucher authorization, where funds are credited to the cardholder.
|
|
472
|
-
*/
|
|
473
|
-
processing_category:
|
|
474
|
-
| 'account_funding'
|
|
475
|
-
| 'automatic_fuel_dispenser'
|
|
476
|
-
| 'bill_payment'
|
|
477
|
-
| 'purchase'
|
|
478
|
-
| 'quasi_cash'
|
|
479
|
-
| 'refund';
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* The identifier of the Real-Time Decision sent to approve or decline this
|
|
483
|
-
* transaction.
|
|
484
|
-
*/
|
|
485
|
-
real_time_decision_id: string | null;
|
|
486
|
-
|
|
487
|
-
/**
|
|
488
|
-
* Why the transaction was declined.
|
|
489
|
-
*
|
|
490
|
-
* - `card_not_active` - The Card was not active.
|
|
491
|
-
* - `physical_card_not_active` - The Physical Card was not active.
|
|
492
|
-
* - `entity_not_active` - The account's entity was not active.
|
|
493
|
-
* - `group_locked` - The account was inactive.
|
|
494
|
-
* - `insufficient_funds` - The Card's Account did not have a sufficient available
|
|
495
|
-
* balance.
|
|
496
|
-
* - `cvv2_mismatch` - The given CVV2 did not match the card's value.
|
|
497
|
-
* - `card_expiration_mismatch` - The given expiration date did not match the
|
|
498
|
-
* card's value. Only applies when a CVV2 is present.
|
|
499
|
-
* - `transaction_not_allowed` - The attempted card transaction is not allowed per
|
|
500
|
-
* Increase's terms.
|
|
501
|
-
* - `breaches_limit` - The transaction was blocked by a Limit.
|
|
502
|
-
* - `webhook_declined` - Your application declined the transaction via webhook.
|
|
503
|
-
* - `webhook_timed_out` - Your application webhook did not respond without the
|
|
504
|
-
* required timeout.
|
|
505
|
-
* - `declined_by_stand_in_processing` - Declined by stand-in processing.
|
|
506
|
-
* - `invalid_physical_card` - The card read had an invalid CVV, dCVV, or
|
|
507
|
-
* authorization request cryptogram.
|
|
508
|
-
* - `missing_original_authorization` - The original card authorization for this
|
|
509
|
-
* incremental authorization does not exist.
|
|
510
|
-
* - `suspected_fraud` - The transaction was suspected to be fraudulent. Please
|
|
511
|
-
* reach out to support@increase.com for more information.
|
|
512
|
-
*/
|
|
513
|
-
reason:
|
|
514
|
-
| 'card_not_active'
|
|
515
|
-
| 'physical_card_not_active'
|
|
516
|
-
| 'entity_not_active'
|
|
517
|
-
| 'group_locked'
|
|
518
|
-
| 'insufficient_funds'
|
|
519
|
-
| 'cvv2_mismatch'
|
|
520
|
-
| 'card_expiration_mismatch'
|
|
521
|
-
| 'transaction_not_allowed'
|
|
522
|
-
| 'breaches_limit'
|
|
523
|
-
| 'webhook_declined'
|
|
524
|
-
| 'webhook_timed_out'
|
|
525
|
-
| 'declined_by_stand_in_processing'
|
|
526
|
-
| 'invalid_physical_card'
|
|
527
|
-
| 'missing_original_authorization'
|
|
528
|
-
| 'suspected_fraud';
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* Fields related to verification of cardholder-provided values.
|
|
532
|
-
*/
|
|
533
|
-
verification: CardDecline.Verification;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
export namespace CardDecline {
|
|
537
|
-
/**
|
|
538
|
-
* Fields specific to the `network`.
|
|
539
|
-
*/
|
|
540
|
-
export interface NetworkDetails {
|
|
541
|
-
/**
|
|
542
|
-
* The payment network used to process this card authorization.
|
|
543
|
-
*
|
|
544
|
-
* - `visa` - Visa
|
|
545
|
-
*/
|
|
546
|
-
category: 'visa';
|
|
547
|
-
|
|
548
|
-
/**
|
|
549
|
-
* Fields specific to the `visa` network.
|
|
550
|
-
*/
|
|
551
|
-
visa: NetworkDetails.Visa | null;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
export namespace NetworkDetails {
|
|
555
|
-
/**
|
|
556
|
-
* Fields specific to the `visa` network.
|
|
557
|
-
*/
|
|
558
|
-
export interface Visa {
|
|
559
|
-
/**
|
|
560
|
-
* For electronic commerce transactions, this identifies the level of security used
|
|
561
|
-
* in obtaining the customer's payment credential. For mail or telephone order
|
|
562
|
-
* transactions, identifies the type of mail or telephone order.
|
|
563
|
-
*
|
|
564
|
-
* - `mail_phone_order` - Single transaction of a mail/phone order: Use to indicate
|
|
565
|
-
* that the transaction is a mail/phone order purchase, not a recurring
|
|
566
|
-
* transaction or installment payment. For domestic transactions in the US
|
|
567
|
-
* region, this value may also indicate one bill payment transaction in the
|
|
568
|
-
* card-present or card-absent environments.
|
|
569
|
-
* - `recurring` - Recurring transaction: Payment indicator used to indicate a
|
|
570
|
-
* recurring transaction that originates from an acquirer in the US region.
|
|
571
|
-
* - `installment` - Installment payment: Payment indicator used to indicate one
|
|
572
|
-
* purchase of goods or services that is billed to the account in multiple
|
|
573
|
-
* charges over a period of time agreed upon by the cardholder and merchant from
|
|
574
|
-
* transactions that originate from an acquirer in the US region.
|
|
575
|
-
* - `unknown_mail_phone_order` - Unknown classification: other mail order: Use to
|
|
576
|
-
* indicate that the type of mail/telephone order is unknown.
|
|
577
|
-
* - `secure_electronic_commerce` - Secure electronic commerce transaction: Use to
|
|
578
|
-
* indicate that the electronic commerce transaction has been authenticated using
|
|
579
|
-
* e.g., 3-D Secure
|
|
580
|
-
* - `non_authenticated_security_transaction_at_3ds_capable_merchant` -
|
|
581
|
-
* Non-authenticated security transaction at a 3-D Secure-capable merchant, and
|
|
582
|
-
* merchant attempted to authenticate the cardholder using 3-D Secure: Use to
|
|
583
|
-
* identify an electronic commerce transaction where the merchant attempted to
|
|
584
|
-
* authenticate the cardholder using 3-D Secure, but was unable to complete the
|
|
585
|
-
* authentication because the issuer or cardholder does not participate in the
|
|
586
|
-
* 3-D Secure program.
|
|
587
|
-
* - `non_authenticated_security_transaction` - Non-authenticated security
|
|
588
|
-
* transaction: Use to identify an electronic commerce transaction that uses data
|
|
589
|
-
* encryption for security however , cardholder authentication is not performed
|
|
590
|
-
* using 3-D Secure.
|
|
591
|
-
* - `non_secure_transaction` - Non-secure transaction: Use to identify an
|
|
592
|
-
* electronic commerce transaction that has no data protection.
|
|
593
|
-
*/
|
|
594
|
-
electronic_commerce_indicator:
|
|
595
|
-
| 'mail_phone_order'
|
|
596
|
-
| 'recurring'
|
|
597
|
-
| 'installment'
|
|
598
|
-
| 'unknown_mail_phone_order'
|
|
599
|
-
| 'secure_electronic_commerce'
|
|
600
|
-
| 'non_authenticated_security_transaction_at_3ds_capable_merchant'
|
|
601
|
-
| 'non_authenticated_security_transaction'
|
|
602
|
-
| 'non_secure_transaction'
|
|
603
|
-
| null;
|
|
604
|
-
|
|
605
|
-
/**
|
|
606
|
-
* The method used to enter the cardholder's primary account number and card
|
|
607
|
-
* expiration date.
|
|
608
|
-
*
|
|
609
|
-
* - `unknown` - Unknown
|
|
610
|
-
* - `manual` - Manual key entry
|
|
611
|
-
* - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
|
|
612
|
-
* value
|
|
613
|
-
* - `optical_code` - Optical code
|
|
614
|
-
* - `integrated_circuit_card` - Contact chip card
|
|
615
|
-
* - `contactless` - Contactless read of chip card
|
|
616
|
-
* - `credential_on_file` - Transaction initiated using a credential that has
|
|
617
|
-
* previously been stored on file
|
|
618
|
-
* - `magnetic_stripe` - Magnetic stripe read
|
|
619
|
-
* - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
|
|
620
|
-
* - `integrated_circuit_card_no_cvv` - Contact chip card, without card
|
|
621
|
-
* verification value
|
|
622
|
-
*/
|
|
623
|
-
point_of_service_entry_mode:
|
|
624
|
-
| 'unknown'
|
|
625
|
-
| 'manual'
|
|
626
|
-
| 'magnetic_stripe_no_cvv'
|
|
627
|
-
| 'optical_code'
|
|
628
|
-
| 'integrated_circuit_card'
|
|
629
|
-
| 'contactless'
|
|
630
|
-
| 'credential_on_file'
|
|
631
|
-
| 'magnetic_stripe'
|
|
632
|
-
| 'contactless_magnetic_stripe'
|
|
633
|
-
| 'integrated_circuit_card_no_cvv'
|
|
634
|
-
| null;
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
/**
|
|
639
|
-
* Network-specific identifiers for a specific request or transaction.
|
|
640
|
-
*/
|
|
641
|
-
export interface NetworkIdentifiers {
|
|
642
|
-
/**
|
|
643
|
-
* A life-cycle identifier used across e.g., an authorization and a reversal.
|
|
644
|
-
* Expected to be unique per acquirer within a window of time. For some card
|
|
645
|
-
* networks the retrieval reference number includes the trace counter.
|
|
646
|
-
*/
|
|
647
|
-
retrieval_reference_number: string | null;
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* A counter used to verify an individual authorization. Expected to be unique per
|
|
651
|
-
* acquirer within a window of time.
|
|
652
|
-
*/
|
|
653
|
-
trace_number: string | null;
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* A globally unique transaction identifier provided by the card network, used
|
|
657
|
-
* across multiple life-cycle requests.
|
|
658
|
-
*/
|
|
659
|
-
transaction_id: string | null;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
/**
|
|
663
|
-
* Fields related to verification of cardholder-provided values.
|
|
664
|
-
*/
|
|
665
|
-
export interface Verification {
|
|
666
|
-
/**
|
|
667
|
-
* Fields related to verification of the Card Verification Code, a 3-digit code on
|
|
668
|
-
* the back of the card.
|
|
669
|
-
*/
|
|
670
|
-
card_verification_code: Verification.CardVerificationCode;
|
|
671
|
-
|
|
672
|
-
/**
|
|
673
|
-
* Cardholder address provided in the authorization request and the address on file
|
|
674
|
-
* we verified it against.
|
|
675
|
-
*/
|
|
676
|
-
cardholder_address: Verification.CardholderAddress;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
export namespace Verification {
|
|
680
|
-
/**
|
|
681
|
-
* Fields related to verification of the Card Verification Code, a 3-digit code on
|
|
682
|
-
* the back of the card.
|
|
683
|
-
*/
|
|
684
|
-
export interface CardVerificationCode {
|
|
685
|
-
/**
|
|
686
|
-
* The result of verifying the Card Verification Code.
|
|
687
|
-
*
|
|
688
|
-
* - `not_checked` - No card verification code was provided in the authorization
|
|
689
|
-
* request.
|
|
690
|
-
* - `match` - The card verification code matched the one on file.
|
|
691
|
-
* - `no_match` - The card verification code did not match the one on file.
|
|
692
|
-
*/
|
|
693
|
-
result: 'not_checked' | 'match' | 'no_match';
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
/**
|
|
697
|
-
* Cardholder address provided in the authorization request and the address on file
|
|
698
|
-
* we verified it against.
|
|
699
|
-
*/
|
|
700
|
-
export interface CardholderAddress {
|
|
701
|
-
/**
|
|
702
|
-
* Line 1 of the address on file for the cardholder.
|
|
703
|
-
*/
|
|
704
|
-
actual_line1: string | null;
|
|
705
|
-
|
|
706
|
-
/**
|
|
707
|
-
* The postal code of the address on file for the cardholder.
|
|
708
|
-
*/
|
|
709
|
-
actual_postal_code: string | null;
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* The cardholder address line 1 provided for verification in the authorization
|
|
713
|
-
* request.
|
|
714
|
-
*/
|
|
715
|
-
provided_line1: string | null;
|
|
716
|
-
|
|
717
|
-
/**
|
|
718
|
-
* The postal code provided for verification in the authorization request.
|
|
719
|
-
*/
|
|
720
|
-
provided_postal_code: string | null;
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
* The address verification result returned to the card network.
|
|
724
|
-
*
|
|
725
|
-
* - `not_checked` - No adress was provided in the authorization request.
|
|
726
|
-
* - `postal_code_match_address_not_checked` - Postal code matches, but the street
|
|
727
|
-
* address was not verified.
|
|
728
|
-
* - `postal_code_match_address_no_match` - Postal code matches, but the street
|
|
729
|
-
* address does not match.
|
|
730
|
-
* - `postal_code_no_match_address_match` - Postal code does not match, but the
|
|
731
|
-
* street address matches.
|
|
732
|
-
* - `match` - Postal code and street address match.
|
|
733
|
-
* - `no_match` - Postal code and street address do not match.
|
|
734
|
-
*/
|
|
735
|
-
result:
|
|
736
|
-
| 'not_checked'
|
|
737
|
-
| 'postal_code_match_address_not_checked'
|
|
738
|
-
| 'postal_code_match_address_no_match'
|
|
739
|
-
| 'postal_code_no_match_address_match'
|
|
740
|
-
| 'match'
|
|
741
|
-
| 'no_match';
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
/**
|
|
747
|
-
* A Check Decline object. This field will be present in the JSON response if and
|
|
748
|
-
* only if `category` is equal to `check_decline`.
|
|
749
|
-
*/
|
|
750
|
-
export interface CheckDecline {
|
|
751
|
-
/**
|
|
752
|
-
* The declined amount in the minor unit of the destination account currency. For
|
|
753
|
-
* dollars, for example, this is cents.
|
|
754
|
-
*/
|
|
755
|
-
amount: number;
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* A computer-readable number printed on the MICR line of business checks, usually
|
|
759
|
-
* the check number. This is useful for positive pay checks, but can be unreliably
|
|
760
|
-
* transmitted by the bank of first deposit.
|
|
761
|
-
*/
|
|
762
|
-
auxiliary_on_us: string | null;
|
|
763
|
-
|
|
764
|
-
/**
|
|
765
|
-
* The identifier of the API File object containing an image of the back of the
|
|
766
|
-
* declined check.
|
|
767
|
-
*/
|
|
768
|
-
back_image_file_id: string | null;
|
|
769
|
-
|
|
770
|
-
/**
|
|
771
|
-
* The identifier of the Check Transfer object associated with this decline.
|
|
772
|
-
*/
|
|
773
|
-
check_transfer_id: string | null;
|
|
774
|
-
|
|
775
|
-
/**
|
|
776
|
-
* The identifier of the API File object containing an image of the front of the
|
|
777
|
-
* declined check.
|
|
778
|
-
*/
|
|
779
|
-
front_image_file_id: string | null;
|
|
780
|
-
|
|
781
|
-
/**
|
|
782
|
-
* The identifier of the Inbound Check Deposit object associated with this decline.
|
|
783
|
-
*/
|
|
784
|
-
inbound_check_deposit_id: string | null;
|
|
785
|
-
|
|
786
|
-
/**
|
|
787
|
-
* Why the check was declined.
|
|
788
|
-
*
|
|
789
|
-
* - `ach_route_disabled` - The account number is disabled.
|
|
790
|
-
* - `ach_route_canceled` - The account number is canceled.
|
|
791
|
-
* - `altered_or_fictitious` - The deposited check was altered or fictitious.
|
|
792
|
-
* - `breaches_limit` - The transaction would cause a limit to be exceeded.
|
|
793
|
-
* - `entity_not_active` - The account's entity is not active.
|
|
794
|
-
* - `group_locked` - Your account is inactive.
|
|
795
|
-
* - `insufficient_funds` - Your account contains insufficient funds.
|
|
796
|
-
* - `stop_payment_requested` - Stop payment requested for this check.
|
|
797
|
-
* - `duplicate_presentment` - The check was a duplicate deposit.
|
|
798
|
-
* - `not_authorized` - The check was not authorized.
|
|
799
|
-
* - `amount_mismatch` - The amount the receiving bank is attempting to deposit
|
|
800
|
-
* does not match the amount on the check.
|
|
801
|
-
* - `not_our_item` - The check attempting to be deposited does not belong to
|
|
802
|
-
* Increase.
|
|
803
|
-
* - `no_account_number_found` - The account number on the check does not exist at
|
|
804
|
-
* Increase.
|
|
805
|
-
* - `refer_to_image` - The check is not readable. Please refer to the image.
|
|
806
|
-
* - `unable_to_process` - The check cannot be processed. This is rare: please
|
|
807
|
-
* contact support.
|
|
808
|
-
* - `user_initiated` - Your integration declined this check via the API.
|
|
809
|
-
*/
|
|
810
|
-
reason:
|
|
811
|
-
| 'ach_route_disabled'
|
|
812
|
-
| 'ach_route_canceled'
|
|
813
|
-
| 'altered_or_fictitious'
|
|
814
|
-
| 'breaches_limit'
|
|
815
|
-
| 'entity_not_active'
|
|
816
|
-
| 'group_locked'
|
|
817
|
-
| 'insufficient_funds'
|
|
818
|
-
| 'stop_payment_requested'
|
|
819
|
-
| 'duplicate_presentment'
|
|
820
|
-
| 'not_authorized'
|
|
821
|
-
| 'amount_mismatch'
|
|
822
|
-
| 'not_our_item'
|
|
823
|
-
| 'no_account_number_found'
|
|
824
|
-
| 'refer_to_image'
|
|
825
|
-
| 'unable_to_process'
|
|
826
|
-
| 'user_initiated';
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
/**
|
|
830
|
-
* A Check Deposit Rejection object. This field will be present in the JSON
|
|
831
|
-
* response if and only if `category` is equal to `check_deposit_rejection`.
|
|
832
|
-
*/
|
|
833
|
-
export interface CheckDepositRejection {
|
|
834
|
-
/**
|
|
835
|
-
* The rejected amount in the minor unit of check's currency. For dollars, for
|
|
836
|
-
* example, this is cents.
|
|
837
|
-
*/
|
|
838
|
-
amount: number;
|
|
839
|
-
|
|
840
|
-
/**
|
|
841
|
-
* The identifier of the Check Deposit that was rejected.
|
|
842
|
-
*/
|
|
843
|
-
check_deposit_id: string;
|
|
844
|
-
|
|
845
|
-
/**
|
|
846
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's
|
|
847
|
-
* currency.
|
|
848
|
-
*
|
|
849
|
-
* - `CAD` - Canadian Dollar (CAD)
|
|
850
|
-
* - `CHF` - Swiss Franc (CHF)
|
|
851
|
-
* - `EUR` - Euro (EUR)
|
|
852
|
-
* - `GBP` - British Pound (GBP)
|
|
853
|
-
* - `JPY` - Japanese Yen (JPY)
|
|
854
|
-
* - `USD` - US Dollar (USD)
|
|
855
|
-
*/
|
|
856
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
857
|
-
|
|
858
|
-
/**
|
|
859
|
-
* Why the check deposit was rejected.
|
|
860
|
-
*
|
|
861
|
-
* - `incomplete_image` - The check's image is incomplete.
|
|
862
|
-
* - `duplicate` - This is a duplicate check submission.
|
|
863
|
-
* - `poor_image_quality` - This check has poor image quality.
|
|
864
|
-
* - `incorrect_amount` - The check was deposited with the incorrect amount.
|
|
865
|
-
* - `incorrect_recipient` - The check is made out to someone other than the
|
|
866
|
-
* account holder.
|
|
867
|
-
* - `not_eligible_for_mobile_deposit` - This check was not eligible for mobile
|
|
868
|
-
* deposit.
|
|
869
|
-
* - `missing_required_data_elements` - This check is missing at least one required
|
|
870
|
-
* field.
|
|
871
|
-
* - `suspected_fraud` - This check is suspected to be fraudulent.
|
|
872
|
-
* - `deposit_window_expired` - This check's deposit window has expired.
|
|
873
|
-
* - `unknown` - The check was rejected for an unknown reason.
|
|
874
|
-
*/
|
|
875
|
-
reason:
|
|
876
|
-
| 'incomplete_image'
|
|
877
|
-
| 'duplicate'
|
|
878
|
-
| 'poor_image_quality'
|
|
879
|
-
| 'incorrect_amount'
|
|
880
|
-
| 'incorrect_recipient'
|
|
881
|
-
| 'not_eligible_for_mobile_deposit'
|
|
882
|
-
| 'missing_required_data_elements'
|
|
883
|
-
| 'suspected_fraud'
|
|
884
|
-
| 'deposit_window_expired'
|
|
885
|
-
| 'unknown';
|
|
886
|
-
|
|
887
|
-
/**
|
|
888
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
889
|
-
* the check deposit was rejected.
|
|
890
|
-
*/
|
|
891
|
-
rejected_at: string;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
/**
|
|
895
|
-
* An Inbound Real-Time Payments Transfer Decline object. This field will be
|
|
896
|
-
* present in the JSON response if and only if `category` is equal to
|
|
897
|
-
* `inbound_real_time_payments_transfer_decline`.
|
|
898
|
-
*/
|
|
899
|
-
export interface InboundRealTimePaymentsTransferDecline {
|
|
900
|
-
/**
|
|
901
|
-
* The declined amount in the minor unit of the destination account currency. For
|
|
902
|
-
* dollars, for example, this is cents.
|
|
903
|
-
*/
|
|
904
|
-
amount: number;
|
|
905
|
-
|
|
906
|
-
/**
|
|
907
|
-
* The name the sender of the transfer specified as the recipient of the transfer.
|
|
908
|
-
*/
|
|
909
|
-
creditor_name: string;
|
|
910
|
-
|
|
911
|
-
/**
|
|
912
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the declined
|
|
913
|
-
* transfer's currency. This will always be "USD" for a Real-Time Payments
|
|
914
|
-
* transfer.
|
|
915
|
-
*
|
|
916
|
-
* - `CAD` - Canadian Dollar (CAD)
|
|
917
|
-
* - `CHF` - Swiss Franc (CHF)
|
|
918
|
-
* - `EUR` - Euro (EUR)
|
|
919
|
-
* - `GBP` - British Pound (GBP)
|
|
920
|
-
* - `JPY` - Japanese Yen (JPY)
|
|
921
|
-
* - `USD` - US Dollar (USD)
|
|
922
|
-
*/
|
|
923
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
924
|
-
|
|
925
|
-
/**
|
|
926
|
-
* The account number of the account that sent the transfer.
|
|
927
|
-
*/
|
|
928
|
-
debtor_account_number: string;
|
|
929
|
-
|
|
930
|
-
/**
|
|
931
|
-
* The name provided by the sender of the transfer.
|
|
932
|
-
*/
|
|
933
|
-
debtor_name: string;
|
|
934
|
-
|
|
935
|
-
/**
|
|
936
|
-
* The routing number of the account that sent the transfer.
|
|
937
|
-
*/
|
|
938
|
-
debtor_routing_number: string;
|
|
939
|
-
|
|
940
|
-
/**
|
|
941
|
-
* Why the transfer was declined.
|
|
942
|
-
*
|
|
943
|
-
* - `account_number_canceled` - The account number is canceled.
|
|
944
|
-
* - `account_number_disabled` - The account number is disabled.
|
|
945
|
-
* - `account_restricted` - Your account is restricted.
|
|
946
|
-
* - `group_locked` - Your account is inactive.
|
|
947
|
-
* - `entity_not_active` - The account's entity is not active.
|
|
948
|
-
* - `real_time_payments_not_enabled` - Your account is not enabled to receive
|
|
949
|
-
* Real-Time Payments transfers.
|
|
950
|
-
*/
|
|
951
|
-
reason:
|
|
952
|
-
| 'account_number_canceled'
|
|
953
|
-
| 'account_number_disabled'
|
|
954
|
-
| 'account_restricted'
|
|
955
|
-
| 'group_locked'
|
|
956
|
-
| 'entity_not_active'
|
|
957
|
-
| 'real_time_payments_not_enabled';
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
* Additional information included with the transfer.
|
|
961
|
-
*/
|
|
962
|
-
remittance_information: string | null;
|
|
963
|
-
|
|
964
|
-
/**
|
|
965
|
-
* The Real-Time Payments network identification of the declined transfer.
|
|
966
|
-
*/
|
|
967
|
-
transaction_identification: string;
|
|
968
|
-
}
|
|
969
|
-
|
|
970
|
-
/**
|
|
971
|
-
* An International ACH Decline object. This field will be present in the JSON
|
|
972
|
-
* response if and only if `category` is equal to `international_ach_decline`.
|
|
973
|
-
*/
|
|
974
|
-
export interface InternationalACHDecline {
|
|
975
|
-
/**
|
|
976
|
-
* The declined amount in the minor unit of the destination account currency. For
|
|
977
|
-
* dollars, for example, this is cents.
|
|
978
|
-
*/
|
|
979
|
-
amount: number;
|
|
980
|
-
|
|
981
|
-
/**
|
|
982
|
-
* The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
|
|
983
|
-
* country code of the destination country.
|
|
984
|
-
*/
|
|
985
|
-
destination_country_code: string;
|
|
986
|
-
|
|
987
|
-
/**
|
|
988
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
|
|
989
|
-
* destination bank account.
|
|
990
|
-
*/
|
|
991
|
-
destination_currency_code: string;
|
|
992
|
-
|
|
993
|
-
/**
|
|
994
|
-
* A description of how the foreign exchange rate was calculated.
|
|
995
|
-
*
|
|
996
|
-
* - `fixed_to_variable` - The originator chose an amount in their own currency.
|
|
997
|
-
* The settled amount in USD was converted using the exchange rate.
|
|
998
|
-
* - `variable_to_fixed` - The originator chose an amount to settle in USD. The
|
|
999
|
-
* originator's amount was variable; known only after the foreign exchange
|
|
1000
|
-
* conversion.
|
|
1001
|
-
* - `fixed_to_fixed` - The amount was originated and settled as a fixed amount in
|
|
1002
|
-
* USD. There is no foreign exchange conversion.
|
|
1003
|
-
*/
|
|
1004
|
-
foreign_exchange_indicator: 'fixed_to_variable' | 'variable_to_fixed' | 'fixed_to_fixed';
|
|
1005
|
-
|
|
1006
|
-
/**
|
|
1007
|
-
* Depending on the `foreign_exchange_reference_indicator`, an exchange rate or a
|
|
1008
|
-
* reference to a well-known rate.
|
|
1009
|
-
*/
|
|
1010
|
-
foreign_exchange_reference: string | null;
|
|
1011
|
-
|
|
1012
|
-
/**
|
|
1013
|
-
* An instruction of how to interpret the `foreign_exchange_reference` field for
|
|
1014
|
-
* this Transaction.
|
|
1015
|
-
*
|
|
1016
|
-
* - `foreign_exchange_rate` - The ACH file contains a foreign exchange rate.
|
|
1017
|
-
* - `foreign_exchange_reference_number` - The ACH file contains a reference to a
|
|
1018
|
-
* well-known foreign exchange rate.
|
|
1019
|
-
* - `blank` - There is no foreign exchange for this transfer, so the
|
|
1020
|
-
* `foreign_exchange_reference` field is blank.
|
|
1021
|
-
*/
|
|
1022
|
-
foreign_exchange_reference_indicator:
|
|
1023
|
-
| 'foreign_exchange_rate'
|
|
1024
|
-
| 'foreign_exchange_reference_number'
|
|
1025
|
-
| 'blank';
|
|
1026
|
-
|
|
1027
|
-
/**
|
|
1028
|
-
* The amount in the minor unit of the foreign payment currency. For dollars, for
|
|
1029
|
-
* example, this is cents.
|
|
1030
|
-
*/
|
|
1031
|
-
foreign_payment_amount: number;
|
|
1032
|
-
|
|
1033
|
-
/**
|
|
1034
|
-
* A reference number in the foreign banking infrastructure.
|
|
1035
|
-
*/
|
|
1036
|
-
foreign_trace_number: string | null;
|
|
1037
|
-
|
|
1038
|
-
/**
|
|
1039
|
-
* The type of transfer. Set by the originator.
|
|
1040
|
-
*
|
|
1041
|
-
* - `annuity` - Sent as `ANN` in the Nacha file.
|
|
1042
|
-
* - `business_or_commercial` - Sent as `BUS` in the Nacha file.
|
|
1043
|
-
* - `deposit` - Sent as `DEP` in the Nacha file.
|
|
1044
|
-
* - `loan` - Sent as `LOA` in the Nacha file.
|
|
1045
|
-
* - `miscellaneous` - Sent as `MIS` in the Nacha file.
|
|
1046
|
-
* - `mortgage` - Sent as `MOR` in the Nacha file.
|
|
1047
|
-
* - `pension` - Sent as `PEN` in the Nacha file.
|
|
1048
|
-
* - `remittance` - Sent as `REM` in the Nacha file.
|
|
1049
|
-
* - `rent_or_lease` - Sent as `RLS` in the Nacha file.
|
|
1050
|
-
* - `salary_or_payroll` - Sent as `SAL` in the Nacha file.
|
|
1051
|
-
* - `tax` - Sent as `TAX` in the Nacha file.
|
|
1052
|
-
* - `accounts_receivable` - Sent as `ARC` in the Nacha file.
|
|
1053
|
-
* - `back_office_conversion` - Sent as `BOC` in the Nacha file.
|
|
1054
|
-
* - `machine_transfer` - Sent as `MTE` in the Nacha file.
|
|
1055
|
-
* - `point_of_purchase` - Sent as `POP` in the Nacha file.
|
|
1056
|
-
* - `point_of_sale` - Sent as `POS` in the Nacha file.
|
|
1057
|
-
* - `represented_check` - Sent as `RCK` in the Nacha file.
|
|
1058
|
-
* - `shared_network_transaction` - Sent as `SHR` in the Nacha file.
|
|
1059
|
-
* - `telphone_initiated` - Sent as `TEL` in the Nacha file.
|
|
1060
|
-
* - `internet_initiated` - Sent as `WEB` in the Nacha file.
|
|
1061
|
-
*/
|
|
1062
|
-
international_transaction_type_code:
|
|
1063
|
-
| 'annuity'
|
|
1064
|
-
| 'business_or_commercial'
|
|
1065
|
-
| 'deposit'
|
|
1066
|
-
| 'loan'
|
|
1067
|
-
| 'miscellaneous'
|
|
1068
|
-
| 'mortgage'
|
|
1069
|
-
| 'pension'
|
|
1070
|
-
| 'remittance'
|
|
1071
|
-
| 'rent_or_lease'
|
|
1072
|
-
| 'salary_or_payroll'
|
|
1073
|
-
| 'tax'
|
|
1074
|
-
| 'accounts_receivable'
|
|
1075
|
-
| 'back_office_conversion'
|
|
1076
|
-
| 'machine_transfer'
|
|
1077
|
-
| 'point_of_purchase'
|
|
1078
|
-
| 'point_of_sale'
|
|
1079
|
-
| 'represented_check'
|
|
1080
|
-
| 'shared_network_transaction'
|
|
1081
|
-
| 'telphone_initiated'
|
|
1082
|
-
| 'internet_initiated';
|
|
1083
|
-
|
|
1084
|
-
/**
|
|
1085
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code for the
|
|
1086
|
-
* originating bank account.
|
|
1087
|
-
*/
|
|
1088
|
-
originating_currency_code: string;
|
|
1089
|
-
|
|
1090
|
-
/**
|
|
1091
|
-
* The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
|
|
1092
|
-
* country code of the originating branch country.
|
|
1093
|
-
*/
|
|
1094
|
-
originating_depository_financial_institution_branch_country: string;
|
|
1095
|
-
|
|
1096
|
-
/**
|
|
1097
|
-
* An identifier for the originating bank. One of an International Bank Account
|
|
1098
|
-
* Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
|
|
1099
|
-
* domestic identifier like a US Routing Number.
|
|
1100
|
-
*/
|
|
1101
|
-
originating_depository_financial_institution_id: string;
|
|
1102
|
-
|
|
1103
|
-
/**
|
|
1104
|
-
* An instruction of how to interpret the
|
|
1105
|
-
* `originating_depository_financial_institution_id` field for this Transaction.
|
|
1106
|
-
*
|
|
1107
|
-
* - `national_clearing_system_number` - A domestic clearing system number. In the
|
|
1108
|
-
* US, for example, this is the American Banking Association (ABA) routing
|
|
1109
|
-
* number.
|
|
1110
|
-
* - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
|
|
1111
|
-
* - `iban` - An International Bank Account Number.
|
|
1112
|
-
*/
|
|
1113
|
-
originating_depository_financial_institution_id_qualifier:
|
|
1114
|
-
| 'national_clearing_system_number'
|
|
1115
|
-
| 'bic_code'
|
|
1116
|
-
| 'iban';
|
|
1117
|
-
|
|
1118
|
-
/**
|
|
1119
|
-
* The name of the originating bank. Sometimes this will refer to an American bank
|
|
1120
|
-
* and obscure the correspondent foreign bank.
|
|
1121
|
-
*/
|
|
1122
|
-
originating_depository_financial_institution_name: string;
|
|
1123
|
-
|
|
1124
|
-
/**
|
|
1125
|
-
* A portion of the originator address. This may be incomplete.
|
|
1126
|
-
*/
|
|
1127
|
-
originator_city: string;
|
|
1128
|
-
|
|
1129
|
-
/**
|
|
1130
|
-
* A description field set by the originator.
|
|
1131
|
-
*/
|
|
1132
|
-
originator_company_entry_description: string;
|
|
1133
|
-
|
|
1134
|
-
/**
|
|
1135
|
-
* A portion of the originator address. The
|
|
1136
|
-
* [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
|
|
1137
|
-
* code of the originator country.
|
|
1138
|
-
*/
|
|
1139
|
-
originator_country: string;
|
|
1140
|
-
|
|
1141
|
-
/**
|
|
1142
|
-
* An identifier for the originating company. This is generally stable across
|
|
1143
|
-
* multiple ACH transfers.
|
|
1144
|
-
*/
|
|
1145
|
-
originator_identification: string;
|
|
1146
|
-
|
|
1147
|
-
/**
|
|
1148
|
-
* Either the name of the originator or an intermediary money transmitter.
|
|
1149
|
-
*/
|
|
1150
|
-
originator_name: string;
|
|
1151
|
-
|
|
1152
|
-
/**
|
|
1153
|
-
* A portion of the originator address. This may be incomplete.
|
|
1154
|
-
*/
|
|
1155
|
-
originator_postal_code: string | null;
|
|
1156
|
-
|
|
1157
|
-
/**
|
|
1158
|
-
* A portion of the originator address. This may be incomplete.
|
|
1159
|
-
*/
|
|
1160
|
-
originator_state_or_province: string | null;
|
|
1161
|
-
|
|
1162
|
-
/**
|
|
1163
|
-
* A portion of the originator address. This may be incomplete.
|
|
1164
|
-
*/
|
|
1165
|
-
originator_street_address: string;
|
|
1166
|
-
|
|
1167
|
-
/**
|
|
1168
|
-
* A description field set by the originator.
|
|
1169
|
-
*/
|
|
1170
|
-
payment_related_information: string | null;
|
|
1171
|
-
|
|
1172
|
-
/**
|
|
1173
|
-
* A description field set by the originator.
|
|
1174
|
-
*/
|
|
1175
|
-
payment_related_information2: string | null;
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* A portion of the receiver address. This may be incomplete.
|
|
1179
|
-
*/
|
|
1180
|
-
receiver_city: string;
|
|
1181
|
-
|
|
1182
|
-
/**
|
|
1183
|
-
* A portion of the receiver address. The
|
|
1184
|
-
* [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2 country
|
|
1185
|
-
* code of the receiver country.
|
|
1186
|
-
*/
|
|
1187
|
-
receiver_country: string;
|
|
1188
|
-
|
|
1189
|
-
/**
|
|
1190
|
-
* An identification number the originator uses for the receiver.
|
|
1191
|
-
*/
|
|
1192
|
-
receiver_identification_number: string | null;
|
|
1193
|
-
|
|
1194
|
-
/**
|
|
1195
|
-
* A portion of the receiver address. This may be incomplete.
|
|
1196
|
-
*/
|
|
1197
|
-
receiver_postal_code: string | null;
|
|
1198
|
-
|
|
1199
|
-
/**
|
|
1200
|
-
* A portion of the receiver address. This may be incomplete.
|
|
1201
|
-
*/
|
|
1202
|
-
receiver_state_or_province: string | null;
|
|
1203
|
-
|
|
1204
|
-
/**
|
|
1205
|
-
* A portion of the receiver address. This may be incomplete.
|
|
1206
|
-
*/
|
|
1207
|
-
receiver_street_address: string;
|
|
1208
|
-
|
|
1209
|
-
/**
|
|
1210
|
-
* The name of the receiver of the transfer. This is not verified by Increase.
|
|
1211
|
-
*/
|
|
1212
|
-
receiving_company_or_individual_name: string;
|
|
1213
|
-
|
|
1214
|
-
/**
|
|
1215
|
-
* The [ISO 3166](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2), Alpha-2
|
|
1216
|
-
* country code of the receiving bank country.
|
|
1217
|
-
*/
|
|
1218
|
-
receiving_depository_financial_institution_country: string;
|
|
1219
|
-
|
|
1220
|
-
/**
|
|
1221
|
-
* An identifier for the receiving bank. One of an International Bank Account
|
|
1222
|
-
* Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
|
|
1223
|
-
* domestic identifier like a US Routing Number.
|
|
1224
|
-
*/
|
|
1225
|
-
receiving_depository_financial_institution_id: string;
|
|
1226
|
-
|
|
1227
|
-
/**
|
|
1228
|
-
* An instruction of how to interpret the
|
|
1229
|
-
* `receiving_depository_financial_institution_id` field for this Transaction.
|
|
1230
|
-
*
|
|
1231
|
-
* - `national_clearing_system_number` - A domestic clearing system number. In the
|
|
1232
|
-
* US, for example, this is the American Banking Association (ABA) routing
|
|
1233
|
-
* number.
|
|
1234
|
-
* - `bic_code` - The SWIFT Bank Identifier Code (BIC) of the bank.
|
|
1235
|
-
* - `iban` - An International Bank Account Number.
|
|
1236
|
-
*/
|
|
1237
|
-
receiving_depository_financial_institution_id_qualifier:
|
|
1238
|
-
| 'national_clearing_system_number'
|
|
1239
|
-
| 'bic_code'
|
|
1240
|
-
| 'iban';
|
|
1241
|
-
|
|
1242
|
-
/**
|
|
1243
|
-
* The name of the receiving bank, as set by the sending financial institution.
|
|
1244
|
-
*/
|
|
1245
|
-
receiving_depository_financial_institution_name: string;
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* A 15 digit number recorded in the Nacha file and available to both the
|
|
1249
|
-
* originating and receiving bank. Along with the amount, date, and originating
|
|
1250
|
-
* routing number, this can be used to identify the ACH transfer at either bank.
|
|
1251
|
-
* ACH trace numbers are not unique, but are
|
|
1252
|
-
* [used to correlate returns](https://increase.com/documentation/ach-returns#ach-returns).
|
|
1253
|
-
*/
|
|
1254
|
-
trace_number: string;
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
/**
|
|
1258
|
-
* A Wire Decline object. This field will be present in the JSON response if and
|
|
1259
|
-
* only if `category` is equal to `wire_decline`.
|
|
1260
|
-
*/
|
|
1261
|
-
export interface WireDecline {
|
|
1262
|
-
/**
|
|
1263
|
-
* The identifier of the Inbound Wire Transfer that was declined.
|
|
1264
|
-
*/
|
|
1265
|
-
inbound_wire_transfer_id: string;
|
|
1266
|
-
|
|
1267
|
-
/**
|
|
1268
|
-
* Why the wire transfer was declined.
|
|
1269
|
-
*
|
|
1270
|
-
* - `account_number_canceled` - The account number is canceled.
|
|
1271
|
-
* - `account_number_disabled` - The account number is disabled.
|
|
1272
|
-
* - `entity_not_active` - The account's entity is not active.
|
|
1273
|
-
* - `group_locked` - Your account is inactive.
|
|
1274
|
-
* - `no_account_number` - The beneficiary account number does not exist.
|
|
1275
|
-
* - `transaction_not_allowed` - The transaction is not allowed per Increase's
|
|
1276
|
-
* terms.
|
|
1277
|
-
*/
|
|
1278
|
-
reason:
|
|
1279
|
-
| 'account_number_canceled'
|
|
1280
|
-
| 'account_number_disabled'
|
|
1281
|
-
| 'entity_not_active'
|
|
1282
|
-
| 'group_locked'
|
|
1283
|
-
| 'no_account_number'
|
|
1284
|
-
| 'transaction_not_allowed';
|
|
1285
|
-
}
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
/**
|
|
1290
|
-
* If the authorization attempt succeeds, this will contain the resulting Pending
|
|
1291
|
-
* Transaction object. The Pending Transaction's `source` will be of
|
|
1292
|
-
* `category: card_authorization`.
|
|
1293
|
-
*/
|
|
1294
|
-
export interface PendingTransaction {
|
|
1295
|
-
/**
|
|
1296
|
-
* The Pending Transaction identifier.
|
|
1297
|
-
*/
|
|
1298
|
-
id: string;
|
|
1299
|
-
|
|
1300
|
-
/**
|
|
1301
|
-
* The identifier for the account this Pending Transaction belongs to.
|
|
1302
|
-
*/
|
|
1303
|
-
account_id: string;
|
|
1304
|
-
|
|
1305
|
-
/**
|
|
1306
|
-
* The Pending Transaction amount in the minor unit of its currency. For dollars,
|
|
1307
|
-
* for example, this is cents.
|
|
1308
|
-
*/
|
|
1309
|
-
amount: number;
|
|
1310
|
-
|
|
1311
|
-
/**
|
|
1312
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
1313
|
-
* Transaction was completed.
|
|
1314
|
-
*/
|
|
1315
|
-
completed_at: string | null;
|
|
1316
|
-
|
|
1317
|
-
/**
|
|
1318
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
|
|
1319
|
-
* Transaction occurred.
|
|
1320
|
-
*/
|
|
1321
|
-
created_at: string;
|
|
1322
|
-
|
|
1323
|
-
/**
|
|
1324
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the Pending
|
|
1325
|
-
* Transaction's currency. This will match the currency on the Pending
|
|
1326
|
-
* Transaction's Account.
|
|
1327
|
-
*
|
|
1328
|
-
* - `CAD` - Canadian Dollar (CAD)
|
|
1329
|
-
* - `CHF` - Swiss Franc (CHF)
|
|
1330
|
-
* - `EUR` - Euro (EUR)
|
|
1331
|
-
* - `GBP` - British Pound (GBP)
|
|
1332
|
-
* - `JPY` - Japanese Yen (JPY)
|
|
1333
|
-
* - `USD` - US Dollar (USD)
|
|
1334
|
-
*/
|
|
1335
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
1336
|
-
|
|
1337
|
-
/**
|
|
1338
|
-
* For a Pending Transaction related to a transfer, this is the description you
|
|
1339
|
-
* provide. For a Pending Transaction related to a payment, this is the description
|
|
1340
|
-
* the vendor provides.
|
|
1341
|
-
*/
|
|
1342
|
-
description: string;
|
|
1343
|
-
|
|
1344
|
-
/**
|
|
1345
|
-
* The identifier for the route this Pending Transaction came through. Routes are
|
|
1346
|
-
* things like cards and ACH details.
|
|
1347
|
-
*/
|
|
1348
|
-
route_id: string | null;
|
|
1349
|
-
|
|
1350
|
-
/**
|
|
1351
|
-
* The type of the route this Pending Transaction came through.
|
|
1352
|
-
*
|
|
1353
|
-
* - `account_number` - An Account Number.
|
|
1354
|
-
* - `card` - A Card.
|
|
1355
|
-
* - `lockbox` - A Lockbox.
|
|
1356
|
-
*/
|
|
1357
|
-
route_type: 'account_number' | 'card' | 'lockbox' | null;
|
|
1358
|
-
|
|
1359
|
-
/**
|
|
1360
|
-
* This is an object giving more details on the network-level event that caused the
|
|
1361
|
-
* Pending Transaction. For example, for a card transaction this lists the
|
|
1362
|
-
* merchant's industry and location.
|
|
1363
|
-
*/
|
|
1364
|
-
source: PendingTransaction.Source;
|
|
1365
|
-
|
|
1366
|
-
/**
|
|
1367
|
-
* Whether the Pending Transaction has been confirmed and has an associated
|
|
1368
|
-
* Transaction.
|
|
1369
|
-
*
|
|
1370
|
-
* - `pending` - The Pending Transaction is still awaiting confirmation.
|
|
1371
|
-
* - `complete` - The Pending Transaction is confirmed. An associated Transaction
|
|
1372
|
-
* exists for this object. The Pending Transaction will no longer count against
|
|
1373
|
-
* your balance and can generally be hidden from UIs, etc.
|
|
1374
|
-
*/
|
|
1375
|
-
status: 'pending' | 'complete';
|
|
1376
|
-
|
|
1377
|
-
/**
|
|
1378
|
-
* A constant representing the object's type. For this resource it will always be
|
|
1379
|
-
* `pending_transaction`.
|
|
1380
|
-
*/
|
|
1381
|
-
type: 'pending_transaction';
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
export namespace PendingTransaction {
|
|
1385
|
-
/**
|
|
1386
|
-
* This is an object giving more details on the network-level event that caused the
|
|
1387
|
-
* Pending Transaction. For example, for a card transaction this lists the
|
|
1388
|
-
* merchant's industry and location.
|
|
1389
|
-
*/
|
|
1390
|
-
export interface Source {
|
|
1391
|
-
/**
|
|
1392
|
-
* An Account Transfer Instruction object. This field will be present in the JSON
|
|
1393
|
-
* response if and only if `category` is equal to `account_transfer_instruction`.
|
|
1394
|
-
*/
|
|
1395
|
-
account_transfer_instruction: Source.AccountTransferInstruction | null;
|
|
1396
|
-
|
|
1397
|
-
/**
|
|
1398
|
-
* An ACH Transfer Instruction object. This field will be present in the JSON
|
|
1399
|
-
* response if and only if `category` is equal to `ach_transfer_instruction`.
|
|
1400
|
-
*/
|
|
1401
|
-
ach_transfer_instruction: Source.ACHTransferInstruction | null;
|
|
1402
|
-
|
|
1403
|
-
/**
|
|
1404
|
-
* A Card Authorization object. This field will be present in the JSON response if
|
|
1405
|
-
* and only if `category` is equal to `card_authorization`.
|
|
1406
|
-
*/
|
|
1407
|
-
card_authorization: Source.CardAuthorization | null;
|
|
1408
|
-
|
|
1409
|
-
/**
|
|
1410
|
-
* The type of the resource. We may add additional possible values for this enum
|
|
1411
|
-
* over time; your application should be able to handle such additions gracefully.
|
|
1412
|
-
*
|
|
1413
|
-
* - `account_transfer_instruction` - Account Transfer Instruction: details will be
|
|
1414
|
-
* under the `account_transfer_instruction` object.
|
|
1415
|
-
* - `ach_transfer_instruction` - ACH Transfer Instruction: details will be under
|
|
1416
|
-
* the `ach_transfer_instruction` object.
|
|
1417
|
-
* - `card_authorization` - Card Authorization: details will be under the
|
|
1418
|
-
* `card_authorization` object.
|
|
1419
|
-
* - `check_deposit_instruction` - Check Deposit Instruction: details will be under
|
|
1420
|
-
* the `check_deposit_instruction` object.
|
|
1421
|
-
* - `check_transfer_instruction` - Check Transfer Instruction: details will be
|
|
1422
|
-
* under the `check_transfer_instruction` object.
|
|
1423
|
-
* - `inbound_funds_hold` - Inbound Funds Hold: details will be under the
|
|
1424
|
-
* `inbound_funds_hold` object.
|
|
1425
|
-
* - `real_time_payments_transfer_instruction` - Real-Time Payments Transfer
|
|
1426
|
-
* Instruction: details will be under the
|
|
1427
|
-
* `real_time_payments_transfer_instruction` object.
|
|
1428
|
-
* - `wire_transfer_instruction` - Wire Transfer Instruction: details will be under
|
|
1429
|
-
* the `wire_transfer_instruction` object.
|
|
1430
|
-
* - `other` - The Pending Transaction was made for an undocumented or deprecated
|
|
1431
|
-
* reason.
|
|
1432
|
-
*/
|
|
1433
|
-
category:
|
|
1434
|
-
| 'account_transfer_instruction'
|
|
1435
|
-
| 'ach_transfer_instruction'
|
|
1436
|
-
| 'card_authorization'
|
|
1437
|
-
| 'check_deposit_instruction'
|
|
1438
|
-
| 'check_transfer_instruction'
|
|
1439
|
-
| 'inbound_funds_hold'
|
|
1440
|
-
| 'real_time_payments_transfer_instruction'
|
|
1441
|
-
| 'wire_transfer_instruction'
|
|
1442
|
-
| 'other';
|
|
1443
|
-
|
|
1444
|
-
/**
|
|
1445
|
-
* A Check Deposit Instruction object. This field will be present in the JSON
|
|
1446
|
-
* response if and only if `category` is equal to `check_deposit_instruction`.
|
|
1447
|
-
*/
|
|
1448
|
-
check_deposit_instruction: Source.CheckDepositInstruction | null;
|
|
1449
|
-
|
|
1450
|
-
/**
|
|
1451
|
-
* A Check Transfer Instruction object. This field will be present in the JSON
|
|
1452
|
-
* response if and only if `category` is equal to `check_transfer_instruction`.
|
|
1453
|
-
*/
|
|
1454
|
-
check_transfer_instruction: Source.CheckTransferInstruction | null;
|
|
1455
|
-
|
|
1456
|
-
/**
|
|
1457
|
-
* An Inbound Funds Hold object. This field will be present in the JSON response if
|
|
1458
|
-
* and only if `category` is equal to `inbound_funds_hold`.
|
|
1459
|
-
*/
|
|
1460
|
-
inbound_funds_hold: Source.InboundFundsHold | null;
|
|
1461
|
-
|
|
1462
|
-
/**
|
|
1463
|
-
* A Real-Time Payments Transfer Instruction object. This field will be present in
|
|
1464
|
-
* the JSON response if and only if `category` is equal to
|
|
1465
|
-
* `real_time_payments_transfer_instruction`.
|
|
1466
|
-
*/
|
|
1467
|
-
real_time_payments_transfer_instruction: Source.RealTimePaymentsTransferInstruction | null;
|
|
1468
|
-
|
|
1469
|
-
/**
|
|
1470
|
-
* A Wire Transfer Instruction object. This field will be present in the JSON
|
|
1471
|
-
* response if and only if `category` is equal to `wire_transfer_instruction`.
|
|
1472
|
-
*/
|
|
1473
|
-
wire_transfer_instruction: Source.WireTransferInstruction | null;
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
export namespace Source {
|
|
1477
|
-
/**
|
|
1478
|
-
* An Account Transfer Instruction object. This field will be present in the JSON
|
|
1479
|
-
* response if and only if `category` is equal to `account_transfer_instruction`.
|
|
1480
|
-
*/
|
|
1481
|
-
export interface AccountTransferInstruction {
|
|
1482
|
-
/**
|
|
1483
|
-
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
1484
|
-
* for example, this is cents.
|
|
1485
|
-
*/
|
|
1486
|
-
amount: number;
|
|
1487
|
-
|
|
1488
|
-
/**
|
|
1489
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
|
|
1490
|
-
* account currency.
|
|
1491
|
-
*
|
|
1492
|
-
* - `CAD` - Canadian Dollar (CAD)
|
|
1493
|
-
* - `CHF` - Swiss Franc (CHF)
|
|
1494
|
-
* - `EUR` - Euro (EUR)
|
|
1495
|
-
* - `GBP` - British Pound (GBP)
|
|
1496
|
-
* - `JPY` - Japanese Yen (JPY)
|
|
1497
|
-
* - `USD` - US Dollar (USD)
|
|
1498
|
-
*/
|
|
1499
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
1500
|
-
|
|
1501
|
-
/**
|
|
1502
|
-
* The identifier of the Account Transfer that led to this Pending Transaction.
|
|
1503
|
-
*/
|
|
1504
|
-
transfer_id: string;
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
/**
|
|
1508
|
-
* An ACH Transfer Instruction object. This field will be present in the JSON
|
|
1509
|
-
* response if and only if `category` is equal to `ach_transfer_instruction`.
|
|
1510
|
-
*/
|
|
1511
|
-
export interface ACHTransferInstruction {
|
|
1512
|
-
/**
|
|
1513
|
-
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
1514
|
-
* for example, this is cents.
|
|
1515
|
-
*/
|
|
1516
|
-
amount: number;
|
|
1517
|
-
|
|
1518
|
-
/**
|
|
1519
|
-
* The identifier of the ACH Transfer that led to this Pending Transaction.
|
|
1520
|
-
*/
|
|
1521
|
-
transfer_id: string;
|
|
1522
|
-
}
|
|
1523
|
-
|
|
1524
|
-
/**
|
|
1525
|
-
* A Card Authorization object. This field will be present in the JSON response if
|
|
1526
|
-
* and only if `category` is equal to `card_authorization`.
|
|
1527
|
-
*/
|
|
1528
|
-
export interface CardAuthorization {
|
|
1529
|
-
/**
|
|
1530
|
-
* The Card Authorization identifier.
|
|
1531
|
-
*/
|
|
1532
|
-
id: string;
|
|
1533
|
-
|
|
1534
|
-
/**
|
|
1535
|
-
* Whether this authorization was approved by Increase, the card network through
|
|
1536
|
-
* stand-in processing, or the user through a real-time decision.
|
|
1537
|
-
*
|
|
1538
|
-
* - `user` - This object was actioned by the user through a real-time decision.
|
|
1539
|
-
* - `increase` - This object was actioned by Increase without user intervention.
|
|
1540
|
-
* - `network` - This object was actioned by the network, through stand-in
|
|
1541
|
-
* processing.
|
|
1542
|
-
*/
|
|
1543
|
-
actioner: 'user' | 'increase' | 'network';
|
|
1544
|
-
|
|
1545
|
-
/**
|
|
1546
|
-
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
1547
|
-
* for example, this is cents.
|
|
1548
|
-
*/
|
|
1549
|
-
amount: number;
|
|
1550
|
-
|
|
1551
|
-
/**
|
|
1552
|
-
* The ID of the Card Payment this transaction belongs to.
|
|
1553
|
-
*/
|
|
1554
|
-
card_payment_id: string;
|
|
1555
|
-
|
|
1556
|
-
/**
|
|
1557
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
1558
|
-
* transaction's currency.
|
|
1559
|
-
*
|
|
1560
|
-
* - `CAD` - Canadian Dollar (CAD)
|
|
1561
|
-
* - `CHF` - Swiss Franc (CHF)
|
|
1562
|
-
* - `EUR` - Euro (EUR)
|
|
1563
|
-
* - `GBP` - British Pound (GBP)
|
|
1564
|
-
* - `JPY` - Japanese Yen (JPY)
|
|
1565
|
-
* - `USD` - US Dollar (USD)
|
|
1566
|
-
*/
|
|
1567
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
1568
|
-
|
|
1569
|
-
/**
|
|
1570
|
-
* If the authorization was made via a Digital Wallet Token (such as an Apple Pay
|
|
1571
|
-
* purchase), the identifier of the token that was used.
|
|
1572
|
-
*/
|
|
1573
|
-
digital_wallet_token_id: string | null;
|
|
1574
|
-
|
|
1575
|
-
/**
|
|
1576
|
-
* The direction descibes the direction the funds will move, either from the
|
|
1577
|
-
* cardholder to the merchant or from the merchant to the cardholder.
|
|
1578
|
-
*
|
|
1579
|
-
* - `settlement` - A regular card authorization where funds are debited from the
|
|
1580
|
-
* cardholder.
|
|
1581
|
-
* - `refund` - A refund card authorization, sometimes referred to as a credit
|
|
1582
|
-
* voucher authorization, where funds are credited to the cardholder.
|
|
1583
|
-
*/
|
|
1584
|
-
direction: 'settlement' | 'refund';
|
|
1585
|
-
|
|
1586
|
-
/**
|
|
1587
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) when this authorization
|
|
1588
|
-
* will expire and the pending transaction will be released.
|
|
1589
|
-
*/
|
|
1590
|
-
expires_at: string;
|
|
1591
|
-
|
|
1592
|
-
/**
|
|
1593
|
-
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
1594
|
-
* is transacting with.
|
|
1595
|
-
*/
|
|
1596
|
-
merchant_acceptor_id: string;
|
|
1597
|
-
|
|
1598
|
-
/**
|
|
1599
|
-
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
1600
|
-
* card is transacting with.
|
|
1601
|
-
*/
|
|
1602
|
-
merchant_category_code: string | null;
|
|
1603
|
-
|
|
1604
|
-
/**
|
|
1605
|
-
* The city the merchant resides in.
|
|
1606
|
-
*/
|
|
1607
|
-
merchant_city: string | null;
|
|
1608
|
-
|
|
1609
|
-
/**
|
|
1610
|
-
* The country the merchant resides in.
|
|
1611
|
-
*/
|
|
1612
|
-
merchant_country: string | null;
|
|
1613
|
-
|
|
1614
|
-
/**
|
|
1615
|
-
* The merchant descriptor of the merchant the card is transacting with.
|
|
1616
|
-
*/
|
|
1617
|
-
merchant_descriptor: string;
|
|
1618
|
-
|
|
1619
|
-
/**
|
|
1620
|
-
* Fields specific to the `network`.
|
|
1621
|
-
*/
|
|
1622
|
-
network_details: CardAuthorization.NetworkDetails;
|
|
1623
|
-
|
|
1624
|
-
/**
|
|
1625
|
-
* Network-specific identifiers for a specific request or transaction.
|
|
1626
|
-
*/
|
|
1627
|
-
network_identifiers: CardAuthorization.NetworkIdentifiers;
|
|
1628
|
-
|
|
1629
|
-
/**
|
|
1630
|
-
* The risk score generated by the card network. For Visa this is the Visa Advanced
|
|
1631
|
-
* Authorization risk score, from 0 to 99, where 99 is the riskiest.
|
|
1632
|
-
*/
|
|
1633
|
-
network_risk_score: number | null;
|
|
1634
|
-
|
|
1635
|
-
/**
|
|
1636
|
-
* The identifier of the Pending Transaction associated with this Transaction.
|
|
1637
|
-
*/
|
|
1638
|
-
pending_transaction_id: string | null;
|
|
1639
|
-
|
|
1640
|
-
/**
|
|
1641
|
-
* If the authorization was made in-person with a physical card, the Physical Card
|
|
1642
|
-
* that was used.
|
|
1643
|
-
*/
|
|
1644
|
-
physical_card_id: string | null;
|
|
1645
|
-
|
|
1646
|
-
/**
|
|
1647
|
-
* The pending amount in the minor unit of the transaction's presentment currency.
|
|
1648
|
-
*/
|
|
1649
|
-
presentment_amount: number;
|
|
1650
|
-
|
|
1651
|
-
/**
|
|
1652
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
1653
|
-
* transaction's presentment currency.
|
|
1654
|
-
*/
|
|
1655
|
-
presentment_currency: string;
|
|
1656
|
-
|
|
1657
|
-
/**
|
|
1658
|
-
* The processing category describes the intent behind the authorization, such as
|
|
1659
|
-
* whether it was used for bill payments or an automatic fuel dispenser.
|
|
1660
|
-
*
|
|
1661
|
-
* - `account_funding` - Account funding transactions are transactions used to
|
|
1662
|
-
* e.g., fund an account or transfer funds between accounts.
|
|
1663
|
-
* - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
|
|
1664
|
-
* when a card is used at a gas pump, prior to the actual transaction amount
|
|
1665
|
-
* being known. They are followed by an advice message that updates the amount of
|
|
1666
|
-
* the pending transaction.
|
|
1667
|
-
* - `bill_payment` - A transaction used to pay a bill.
|
|
1668
|
-
* - `purchase` - A regular purchase.
|
|
1669
|
-
* - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
|
|
1670
|
-
* be convertible to cash.
|
|
1671
|
-
* - `refund` - A refund card authorization, sometimes referred to as a credit
|
|
1672
|
-
* voucher authorization, where funds are credited to the cardholder.
|
|
1673
|
-
*/
|
|
1674
|
-
processing_category:
|
|
1675
|
-
| 'account_funding'
|
|
1676
|
-
| 'automatic_fuel_dispenser'
|
|
1677
|
-
| 'bill_payment'
|
|
1678
|
-
| 'purchase'
|
|
1679
|
-
| 'quasi_cash'
|
|
1680
|
-
| 'refund';
|
|
1681
|
-
|
|
1682
|
-
/**
|
|
1683
|
-
* The identifier of the Real-Time Decision sent to approve or decline this
|
|
1684
|
-
* transaction.
|
|
1685
|
-
*/
|
|
1686
|
-
real_time_decision_id: string | null;
|
|
1687
|
-
|
|
1688
|
-
/**
|
|
1689
|
-
* A constant representing the object's type. For this resource it will always be
|
|
1690
|
-
* `card_authorization`.
|
|
1691
|
-
*/
|
|
1692
|
-
type: 'card_authorization';
|
|
1693
|
-
|
|
1694
|
-
/**
|
|
1695
|
-
* Fields related to verification of cardholder-provided values.
|
|
1696
|
-
*/
|
|
1697
|
-
verification: CardAuthorization.Verification;
|
|
1698
|
-
}
|
|
1699
|
-
|
|
1700
|
-
export namespace CardAuthorization {
|
|
1701
|
-
/**
|
|
1702
|
-
* Fields specific to the `network`.
|
|
1703
|
-
*/
|
|
1704
|
-
export interface NetworkDetails {
|
|
1705
|
-
/**
|
|
1706
|
-
* The payment network used to process this card authorization.
|
|
1707
|
-
*
|
|
1708
|
-
* - `visa` - Visa
|
|
1709
|
-
*/
|
|
1710
|
-
category: 'visa';
|
|
1711
|
-
|
|
1712
|
-
/**
|
|
1713
|
-
* Fields specific to the `visa` network.
|
|
1714
|
-
*/
|
|
1715
|
-
visa: NetworkDetails.Visa | null;
|
|
1716
|
-
}
|
|
1717
|
-
|
|
1718
|
-
export namespace NetworkDetails {
|
|
1719
|
-
/**
|
|
1720
|
-
* Fields specific to the `visa` network.
|
|
1721
|
-
*/
|
|
1722
|
-
export interface Visa {
|
|
1723
|
-
/**
|
|
1724
|
-
* For electronic commerce transactions, this identifies the level of security used
|
|
1725
|
-
* in obtaining the customer's payment credential. For mail or telephone order
|
|
1726
|
-
* transactions, identifies the type of mail or telephone order.
|
|
1727
|
-
*
|
|
1728
|
-
* - `mail_phone_order` - Single transaction of a mail/phone order: Use to indicate
|
|
1729
|
-
* that the transaction is a mail/phone order purchase, not a recurring
|
|
1730
|
-
* transaction or installment payment. For domestic transactions in the US
|
|
1731
|
-
* region, this value may also indicate one bill payment transaction in the
|
|
1732
|
-
* card-present or card-absent environments.
|
|
1733
|
-
* - `recurring` - Recurring transaction: Payment indicator used to indicate a
|
|
1734
|
-
* recurring transaction that originates from an acquirer in the US region.
|
|
1735
|
-
* - `installment` - Installment payment: Payment indicator used to indicate one
|
|
1736
|
-
* purchase of goods or services that is billed to the account in multiple
|
|
1737
|
-
* charges over a period of time agreed upon by the cardholder and merchant from
|
|
1738
|
-
* transactions that originate from an acquirer in the US region.
|
|
1739
|
-
* - `unknown_mail_phone_order` - Unknown classification: other mail order: Use to
|
|
1740
|
-
* indicate that the type of mail/telephone order is unknown.
|
|
1741
|
-
* - `secure_electronic_commerce` - Secure electronic commerce transaction: Use to
|
|
1742
|
-
* indicate that the electronic commerce transaction has been authenticated using
|
|
1743
|
-
* e.g., 3-D Secure
|
|
1744
|
-
* - `non_authenticated_security_transaction_at_3ds_capable_merchant` -
|
|
1745
|
-
* Non-authenticated security transaction at a 3-D Secure-capable merchant, and
|
|
1746
|
-
* merchant attempted to authenticate the cardholder using 3-D Secure: Use to
|
|
1747
|
-
* identify an electronic commerce transaction where the merchant attempted to
|
|
1748
|
-
* authenticate the cardholder using 3-D Secure, but was unable to complete the
|
|
1749
|
-
* authentication because the issuer or cardholder does not participate in the
|
|
1750
|
-
* 3-D Secure program.
|
|
1751
|
-
* - `non_authenticated_security_transaction` - Non-authenticated security
|
|
1752
|
-
* transaction: Use to identify an electronic commerce transaction that uses data
|
|
1753
|
-
* encryption for security however , cardholder authentication is not performed
|
|
1754
|
-
* using 3-D Secure.
|
|
1755
|
-
* - `non_secure_transaction` - Non-secure transaction: Use to identify an
|
|
1756
|
-
* electronic commerce transaction that has no data protection.
|
|
1757
|
-
*/
|
|
1758
|
-
electronic_commerce_indicator:
|
|
1759
|
-
| 'mail_phone_order'
|
|
1760
|
-
| 'recurring'
|
|
1761
|
-
| 'installment'
|
|
1762
|
-
| 'unknown_mail_phone_order'
|
|
1763
|
-
| 'secure_electronic_commerce'
|
|
1764
|
-
| 'non_authenticated_security_transaction_at_3ds_capable_merchant'
|
|
1765
|
-
| 'non_authenticated_security_transaction'
|
|
1766
|
-
| 'non_secure_transaction'
|
|
1767
|
-
| null;
|
|
1768
|
-
|
|
1769
|
-
/**
|
|
1770
|
-
* The method used to enter the cardholder's primary account number and card
|
|
1771
|
-
* expiration date.
|
|
1772
|
-
*
|
|
1773
|
-
* - `unknown` - Unknown
|
|
1774
|
-
* - `manual` - Manual key entry
|
|
1775
|
-
* - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
|
|
1776
|
-
* value
|
|
1777
|
-
* - `optical_code` - Optical code
|
|
1778
|
-
* - `integrated_circuit_card` - Contact chip card
|
|
1779
|
-
* - `contactless` - Contactless read of chip card
|
|
1780
|
-
* - `credential_on_file` - Transaction initiated using a credential that has
|
|
1781
|
-
* previously been stored on file
|
|
1782
|
-
* - `magnetic_stripe` - Magnetic stripe read
|
|
1783
|
-
* - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
|
|
1784
|
-
* - `integrated_circuit_card_no_cvv` - Contact chip card, without card
|
|
1785
|
-
* verification value
|
|
1786
|
-
*/
|
|
1787
|
-
point_of_service_entry_mode:
|
|
1788
|
-
| 'unknown'
|
|
1789
|
-
| 'manual'
|
|
1790
|
-
| 'magnetic_stripe_no_cvv'
|
|
1791
|
-
| 'optical_code'
|
|
1792
|
-
| 'integrated_circuit_card'
|
|
1793
|
-
| 'contactless'
|
|
1794
|
-
| 'credential_on_file'
|
|
1795
|
-
| 'magnetic_stripe'
|
|
1796
|
-
| 'contactless_magnetic_stripe'
|
|
1797
|
-
| 'integrated_circuit_card_no_cvv'
|
|
1798
|
-
| null;
|
|
1799
|
-
}
|
|
1800
|
-
}
|
|
1801
|
-
|
|
1802
|
-
/**
|
|
1803
|
-
* Network-specific identifiers for a specific request or transaction.
|
|
1804
|
-
*/
|
|
1805
|
-
export interface NetworkIdentifiers {
|
|
1806
|
-
/**
|
|
1807
|
-
* A life-cycle identifier used across e.g., an authorization and a reversal.
|
|
1808
|
-
* Expected to be unique per acquirer within a window of time. For some card
|
|
1809
|
-
* networks the retrieval reference number includes the trace counter.
|
|
1810
|
-
*/
|
|
1811
|
-
retrieval_reference_number: string | null;
|
|
1812
|
-
|
|
1813
|
-
/**
|
|
1814
|
-
* A counter used to verify an individual authorization. Expected to be unique per
|
|
1815
|
-
* acquirer within a window of time.
|
|
1816
|
-
*/
|
|
1817
|
-
trace_number: string | null;
|
|
1818
|
-
|
|
1819
|
-
/**
|
|
1820
|
-
* A globally unique transaction identifier provided by the card network, used
|
|
1821
|
-
* across multiple life-cycle requests.
|
|
1822
|
-
*/
|
|
1823
|
-
transaction_id: string | null;
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
/**
|
|
1827
|
-
* Fields related to verification of cardholder-provided values.
|
|
1828
|
-
*/
|
|
1829
|
-
export interface Verification {
|
|
1830
|
-
/**
|
|
1831
|
-
* Fields related to verification of the Card Verification Code, a 3-digit code on
|
|
1832
|
-
* the back of the card.
|
|
1833
|
-
*/
|
|
1834
|
-
card_verification_code: Verification.CardVerificationCode;
|
|
1835
|
-
|
|
1836
|
-
/**
|
|
1837
|
-
* Cardholder address provided in the authorization request and the address on file
|
|
1838
|
-
* we verified it against.
|
|
1839
|
-
*/
|
|
1840
|
-
cardholder_address: Verification.CardholderAddress;
|
|
1841
|
-
}
|
|
1842
|
-
|
|
1843
|
-
export namespace Verification {
|
|
1844
|
-
/**
|
|
1845
|
-
* Fields related to verification of the Card Verification Code, a 3-digit code on
|
|
1846
|
-
* the back of the card.
|
|
1847
|
-
*/
|
|
1848
|
-
export interface CardVerificationCode {
|
|
1849
|
-
/**
|
|
1850
|
-
* The result of verifying the Card Verification Code.
|
|
1851
|
-
*
|
|
1852
|
-
* - `not_checked` - No card verification code was provided in the authorization
|
|
1853
|
-
* request.
|
|
1854
|
-
* - `match` - The card verification code matched the one on file.
|
|
1855
|
-
* - `no_match` - The card verification code did not match the one on file.
|
|
1856
|
-
*/
|
|
1857
|
-
result: 'not_checked' | 'match' | 'no_match';
|
|
1858
|
-
}
|
|
1859
|
-
|
|
1860
|
-
/**
|
|
1861
|
-
* Cardholder address provided in the authorization request and the address on file
|
|
1862
|
-
* we verified it against.
|
|
1863
|
-
*/
|
|
1864
|
-
export interface CardholderAddress {
|
|
1865
|
-
/**
|
|
1866
|
-
* Line 1 of the address on file for the cardholder.
|
|
1867
|
-
*/
|
|
1868
|
-
actual_line1: string | null;
|
|
1869
|
-
|
|
1870
|
-
/**
|
|
1871
|
-
* The postal code of the address on file for the cardholder.
|
|
1872
|
-
*/
|
|
1873
|
-
actual_postal_code: string | null;
|
|
1874
|
-
|
|
1875
|
-
/**
|
|
1876
|
-
* The cardholder address line 1 provided for verification in the authorization
|
|
1877
|
-
* request.
|
|
1878
|
-
*/
|
|
1879
|
-
provided_line1: string | null;
|
|
1880
|
-
|
|
1881
|
-
/**
|
|
1882
|
-
* The postal code provided for verification in the authorization request.
|
|
1883
|
-
*/
|
|
1884
|
-
provided_postal_code: string | null;
|
|
1885
|
-
|
|
1886
|
-
/**
|
|
1887
|
-
* The address verification result returned to the card network.
|
|
1888
|
-
*
|
|
1889
|
-
* - `not_checked` - No adress was provided in the authorization request.
|
|
1890
|
-
* - `postal_code_match_address_not_checked` - Postal code matches, but the street
|
|
1891
|
-
* address was not verified.
|
|
1892
|
-
* - `postal_code_match_address_no_match` - Postal code matches, but the street
|
|
1893
|
-
* address does not match.
|
|
1894
|
-
* - `postal_code_no_match_address_match` - Postal code does not match, but the
|
|
1895
|
-
* street address matches.
|
|
1896
|
-
* - `match` - Postal code and street address match.
|
|
1897
|
-
* - `no_match` - Postal code and street address do not match.
|
|
1898
|
-
*/
|
|
1899
|
-
result:
|
|
1900
|
-
| 'not_checked'
|
|
1901
|
-
| 'postal_code_match_address_not_checked'
|
|
1902
|
-
| 'postal_code_match_address_no_match'
|
|
1903
|
-
| 'postal_code_no_match_address_match'
|
|
1904
|
-
| 'match'
|
|
1905
|
-
| 'no_match';
|
|
1906
|
-
}
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
|
|
1910
|
-
/**
|
|
1911
|
-
* A Check Deposit Instruction object. This field will be present in the JSON
|
|
1912
|
-
* response if and only if `category` is equal to `check_deposit_instruction`.
|
|
1913
|
-
*/
|
|
1914
|
-
export interface CheckDepositInstruction {
|
|
1915
|
-
/**
|
|
1916
|
-
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
1917
|
-
* for example, this is cents.
|
|
1918
|
-
*/
|
|
1919
|
-
amount: number;
|
|
1920
|
-
|
|
1921
|
-
/**
|
|
1922
|
-
* The identifier of the File containing the image of the back of the check that
|
|
1923
|
-
* was deposited.
|
|
1924
|
-
*/
|
|
1925
|
-
back_image_file_id: string | null;
|
|
1926
|
-
|
|
1927
|
-
/**
|
|
1928
|
-
* The identifier of the Check Deposit.
|
|
1929
|
-
*/
|
|
1930
|
-
check_deposit_id: string | null;
|
|
1931
|
-
|
|
1932
|
-
/**
|
|
1933
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
|
1934
|
-
* transaction's currency.
|
|
1935
|
-
*
|
|
1936
|
-
* - `CAD` - Canadian Dollar (CAD)
|
|
1937
|
-
* - `CHF` - Swiss Franc (CHF)
|
|
1938
|
-
* - `EUR` - Euro (EUR)
|
|
1939
|
-
* - `GBP` - British Pound (GBP)
|
|
1940
|
-
* - `JPY` - Japanese Yen (JPY)
|
|
1941
|
-
* - `USD` - US Dollar (USD)
|
|
1942
|
-
*/
|
|
1943
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
1944
|
-
|
|
1945
|
-
/**
|
|
1946
|
-
* The identifier of the File containing the image of the front of the check that
|
|
1947
|
-
* was deposited.
|
|
1948
|
-
*/
|
|
1949
|
-
front_image_file_id: string;
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
/**
|
|
1953
|
-
* A Check Transfer Instruction object. This field will be present in the JSON
|
|
1954
|
-
* response if and only if `category` is equal to `check_transfer_instruction`.
|
|
1955
|
-
*/
|
|
1956
|
-
export interface CheckTransferInstruction {
|
|
1957
|
-
/**
|
|
1958
|
-
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
1959
|
-
* for example, this is cents.
|
|
1960
|
-
*/
|
|
1961
|
-
amount: number;
|
|
1962
|
-
|
|
1963
|
-
/**
|
|
1964
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the check's
|
|
1965
|
-
* currency.
|
|
1966
|
-
*
|
|
1967
|
-
* - `CAD` - Canadian Dollar (CAD)
|
|
1968
|
-
* - `CHF` - Swiss Franc (CHF)
|
|
1969
|
-
* - `EUR` - Euro (EUR)
|
|
1970
|
-
* - `GBP` - British Pound (GBP)
|
|
1971
|
-
* - `JPY` - Japanese Yen (JPY)
|
|
1972
|
-
* - `USD` - US Dollar (USD)
|
|
1973
|
-
*/
|
|
1974
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
1975
|
-
|
|
1976
|
-
/**
|
|
1977
|
-
* The identifier of the Check Transfer that led to this Pending Transaction.
|
|
1978
|
-
*/
|
|
1979
|
-
transfer_id: string;
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
/**
|
|
1983
|
-
* An Inbound Funds Hold object. This field will be present in the JSON response if
|
|
1984
|
-
* and only if `category` is equal to `inbound_funds_hold`.
|
|
1985
|
-
*/
|
|
1986
|
-
export interface InboundFundsHold {
|
|
1987
|
-
/**
|
|
1988
|
-
* The Inbound Funds Hold identifier.
|
|
1989
|
-
*/
|
|
1990
|
-
id: string;
|
|
1991
|
-
|
|
1992
|
-
/**
|
|
1993
|
-
* The held amount in the minor unit of the account's currency. For dollars, for
|
|
1994
|
-
* example, this is cents.
|
|
1995
|
-
*/
|
|
1996
|
-
amount: number;
|
|
1997
|
-
|
|
1998
|
-
/**
|
|
1999
|
-
* When the hold will be released automatically. Certain conditions may cause it to
|
|
2000
|
-
* be released before this time.
|
|
2001
|
-
*/
|
|
2002
|
-
automatically_releases_at: string;
|
|
2003
|
-
|
|
2004
|
-
/**
|
|
2005
|
-
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the hold
|
|
2006
|
-
* was created.
|
|
2007
|
-
*/
|
|
2008
|
-
created_at: string;
|
|
2009
|
-
|
|
2010
|
-
/**
|
|
2011
|
-
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the hold's
|
|
2012
|
-
* currency.
|
|
2013
|
-
*
|
|
2014
|
-
* - `CAD` - Canadian Dollar (CAD)
|
|
2015
|
-
* - `CHF` - Swiss Franc (CHF)
|
|
2016
|
-
* - `EUR` - Euro (EUR)
|
|
2017
|
-
* - `GBP` - British Pound (GBP)
|
|
2018
|
-
* - `JPY` - Japanese Yen (JPY)
|
|
2019
|
-
* - `USD` - US Dollar (USD)
|
|
2020
|
-
*/
|
|
2021
|
-
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
2022
|
-
|
|
2023
|
-
/**
|
|
2024
|
-
* The ID of the Transaction for which funds were held.
|
|
2025
|
-
*/
|
|
2026
|
-
held_transaction_id: string | null;
|
|
2027
|
-
|
|
2028
|
-
/**
|
|
2029
|
-
* The ID of the Pending Transaction representing the held funds.
|
|
2030
|
-
*/
|
|
2031
|
-
pending_transaction_id: string | null;
|
|
2032
|
-
|
|
2033
|
-
/**
|
|
2034
|
-
* When the hold was released (if it has been released).
|
|
2035
|
-
*/
|
|
2036
|
-
released_at: string | null;
|
|
2037
|
-
|
|
2038
|
-
/**
|
|
2039
|
-
* The status of the hold.
|
|
2040
|
-
*
|
|
2041
|
-
* - `held` - Funds are still being held.
|
|
2042
|
-
* - `complete` - Funds have been released.
|
|
2043
|
-
*/
|
|
2044
|
-
status: 'held' | 'complete';
|
|
2045
|
-
|
|
2046
|
-
/**
|
|
2047
|
-
* A constant representing the object's type. For this resource it will always be
|
|
2048
|
-
* `inbound_funds_hold`.
|
|
2049
|
-
*/
|
|
2050
|
-
type: 'inbound_funds_hold';
|
|
2051
|
-
}
|
|
2052
|
-
|
|
2053
|
-
/**
|
|
2054
|
-
* A Real-Time Payments Transfer Instruction object. This field will be present in
|
|
2055
|
-
* the JSON response if and only if `category` is equal to
|
|
2056
|
-
* `real_time_payments_transfer_instruction`.
|
|
2057
|
-
*/
|
|
2058
|
-
export interface RealTimePaymentsTransferInstruction {
|
|
2059
|
-
/**
|
|
2060
|
-
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
2061
|
-
* for example, this is cents.
|
|
2062
|
-
*/
|
|
2063
|
-
amount: number;
|
|
2064
|
-
|
|
2065
|
-
/**
|
|
2066
|
-
* The identifier of the Real-Time Payments Transfer that led to this Pending
|
|
2067
|
-
* Transaction.
|
|
2068
|
-
*/
|
|
2069
|
-
transfer_id: string;
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
/**
|
|
2073
|
-
* A Wire Transfer Instruction object. This field will be present in the JSON
|
|
2074
|
-
* response if and only if `category` is equal to `wire_transfer_instruction`.
|
|
2075
|
-
*/
|
|
2076
|
-
export interface WireTransferInstruction {
|
|
2077
|
-
/**
|
|
2078
|
-
* The account number for the destination account.
|
|
2079
|
-
*/
|
|
2080
|
-
account_number: string;
|
|
2081
|
-
|
|
2082
|
-
/**
|
|
2083
|
-
* The pending amount in the minor unit of the transaction's currency. For dollars,
|
|
2084
|
-
* for example, this is cents.
|
|
2085
|
-
*/
|
|
2086
|
-
amount: number;
|
|
2087
|
-
|
|
2088
|
-
/**
|
|
2089
|
-
* The message that will show on the recipient's bank statement.
|
|
2090
|
-
*/
|
|
2091
|
-
message_to_recipient: string;
|
|
2092
|
-
|
|
2093
|
-
/**
|
|
2094
|
-
* The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
|
|
2095
|
-
* destination account.
|
|
2096
|
-
*/
|
|
2097
|
-
routing_number: string;
|
|
2098
|
-
|
|
2099
|
-
/**
|
|
2100
|
-
* The identifier of the Wire Transfer that led to this Pending Transaction.
|
|
2101
|
-
*/
|
|
2102
|
-
transfer_id: string;
|
|
2103
|
-
}
|
|
2104
|
-
}
|
|
2105
|
-
}
|
|
2106
|
-
}
|
|
2107
|
-
|
|
2108
|
-
export interface CardAuthorizeParams {
|
|
2109
|
-
/**
|
|
2110
|
-
* The authorization amount in cents.
|
|
2111
|
-
*/
|
|
2112
|
-
amount: number;
|
|
2113
|
-
|
|
2114
|
-
/**
|
|
2115
|
-
* The identifier of the Card to be authorized.
|
|
2116
|
-
*/
|
|
2117
|
-
card_id?: string;
|
|
2118
|
-
|
|
2119
|
-
/**
|
|
2120
|
-
* The identifier of the Digital Wallet Token to be authorized.
|
|
2121
|
-
*/
|
|
2122
|
-
digital_wallet_token_id?: string;
|
|
2123
|
-
|
|
2124
|
-
/**
|
|
2125
|
-
* The identifier of the Event Subscription to use. If provided, will override the
|
|
2126
|
-
* default real time event subscription. Because you can only create one real time
|
|
2127
|
-
* decision event subscription, you can use this field to route events to any
|
|
2128
|
-
* specified event subscription for testing purposes.
|
|
2129
|
-
*/
|
|
2130
|
-
event_subscription_id?: string;
|
|
2131
|
-
|
|
2132
|
-
/**
|
|
2133
|
-
* The merchant identifier (commonly abbreviated as MID) of the merchant the card
|
|
2134
|
-
* is transacting with.
|
|
2135
|
-
*/
|
|
2136
|
-
merchant_acceptor_id?: string;
|
|
2137
|
-
|
|
2138
|
-
/**
|
|
2139
|
-
* The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
|
|
2140
|
-
* card is transacting with.
|
|
2141
|
-
*/
|
|
2142
|
-
merchant_category_code?: string;
|
|
2143
|
-
|
|
2144
|
-
/**
|
|
2145
|
-
* The city the merchant resides in.
|
|
2146
|
-
*/
|
|
2147
|
-
merchant_city?: string;
|
|
2148
|
-
|
|
2149
|
-
/**
|
|
2150
|
-
* The country the merchant resides in.
|
|
2151
|
-
*/
|
|
2152
|
-
merchant_country?: string;
|
|
2153
|
-
|
|
2154
|
-
/**
|
|
2155
|
-
* The merchant descriptor of the merchant the card is transacting with.
|
|
2156
|
-
*/
|
|
2157
|
-
merchant_descriptor?: string;
|
|
2158
|
-
|
|
2159
|
-
/**
|
|
2160
|
-
* The identifier of the Physical Card to be authorized.
|
|
2161
|
-
*/
|
|
2162
|
-
physical_card_id?: string;
|
|
2163
|
-
}
|
|
2164
|
-
|
|
2165
|
-
export interface CardSettlementParams {
|
|
2166
|
-
/**
|
|
2167
|
-
* The identifier of the Card to create a settlement on.
|
|
2168
|
-
*/
|
|
2169
|
-
card_id: string;
|
|
2170
|
-
|
|
2171
|
-
/**
|
|
2172
|
-
* The identifier of the Pending Transaction for the Card Authorization you wish to
|
|
2173
|
-
* settle.
|
|
2174
|
-
*/
|
|
2175
|
-
pending_transaction_id: string;
|
|
2176
|
-
|
|
2177
|
-
/**
|
|
2178
|
-
* The amount to be settled. This defaults to the amount of the Pending Transaction
|
|
2179
|
-
* being settled.
|
|
2180
|
-
*/
|
|
2181
|
-
amount?: number;
|
|
2182
|
-
}
|
|
2183
|
-
|
|
2184
|
-
export namespace Cards {
|
|
2185
|
-
export import CardAuthorizationSimulation = CardsAPI.CardAuthorizationSimulation;
|
|
2186
|
-
export import CardAuthorizeParams = CardsAPI.CardAuthorizeParams;
|
|
2187
|
-
export import CardSettlementParams = CardsAPI.CardSettlementParams;
|
|
2188
|
-
}
|