@aws-sdk/client-payments 0.0.0-stage → 3.1175.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/LICENSE +201 -0
- package/README.md +222 -2
- package/dist-cjs/index.js +972 -0
- package/dist-es/Payments.js +27 -0
- package/dist-es/PaymentsClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/BatchGetFinancialRecordCommand.js +4 -0
- package/dist-es/commands/GetAccountBalanceCommand.js +4 -0
- package/dist-es/commands/GetFinancialRecordCommand.js +4 -0
- package/dist-es/commands/GetPaymentInstrumentCommand.js +4 -0
- package/dist-es/commands/ListFinancialRecordsCommand.js +4 -0
- package/dist-es/commands/ListPaymentInstrumentsCommand.js +4 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoint/EndpointParameters.js +11 -0
- package/dist-es/endpoint/bdd.js +29 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +10 -0
- package/dist-es/models/PaymentsServiceException.js +9 -0
- package/dist-es/models/enums.js +89 -0
- package/dist-es/models/errors.js +84 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/pagination/GetAccountBalancePaginator.js +4 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListFinancialRecordsPaginator.js +4 -0
- package/dist-es/pagination/ListPaymentInstrumentsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +406 -0
- package/dist-types/Payments.d.ts +81 -0
- package/dist-types/PaymentsClient.d.ts +193 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/BatchGetFinancialRecordCommand.d.ts +231 -0
- package/dist-types/commands/GetAccountBalanceCommand.d.ts +124 -0
- package/dist-types/commands/GetFinancialRecordCommand.d.ts +200 -0
- package/dist-types/commands/GetPaymentInstrumentCommand.d.ts +163 -0
- package/dist-types/commands/ListFinancialRecordsCommand.d.ts +188 -0
- package/dist-types/commands/ListPaymentInstrumentsCommand.d.ts +126 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +44 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +18 -0
- package/dist-types/models/PaymentsServiceException.d.ts +15 -0
- package/dist-types/models/enums.d.ts +225 -0
- package/dist-types/models/errors.d.ts +108 -0
- package/dist-types/models/models_0.d.ts +936 -0
- package/dist-types/pagination/GetAccountBalancePaginator.d.ts +7 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListFinancialRecordsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListPaymentInstrumentsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +58 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +55 -0
- package/dist-types/ts3.4/Payments.d.ts +138 -0
- package/dist-types/ts3.4/PaymentsClient.d.ts +136 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +25 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/BatchGetFinancialRecordCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetAccountBalanceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetFinancialRecordCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetPaymentInstrumentCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListFinancialRecordsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListPaymentInstrumentsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +13 -0
- package/dist-types/ts3.4/models/PaymentsServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/enums.d.ts +111 -0
- package/dist-types/ts3.4/models/errors.d.ts +45 -0
- package/dist-types/ts3.4/models/models_0.d.ts +340 -0
- package/dist-types/ts3.4/pagination/GetAccountBalancePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListFinancialRecordsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListPaymentInstrumentsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +55 -0
- package/package.json +67 -4
|
@@ -0,0 +1,936 @@
|
|
|
1
|
+
import type { BalanceType, BankAccountType, BatchErrorCode, CardBrand, CardType, DueStatus, FinancialRecordSortField, FinancialRecordStatus, FinancialRecordType, InvoiceFrequency, LineOfBusiness, PaymentInstrumentStatus, PaymentMethod, SettlementStatus, SortOrder } from "./enums";
|
|
2
|
+
/**
|
|
3
|
+
* <p>A monetary amount expressed as a decimal string in the currency's standard unit.</p>
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export interface CurrencyAmount {
|
|
7
|
+
/**
|
|
8
|
+
* <p>The amount, as a decimal string, such as <code>10.99</code>. The number of decimal places can differ between amounts, for example <code>0.0</code> and <code>1000.24</code>.</p>
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
value: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* <p>The ISO 4217 currency code for the amount (for example, <code>USD</code>).</p>
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
currency: string | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* <p>An amount of the balance that <code>GetAccountBalance</code> returns: the total for one merchant of record in one currency.</p>
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
22
|
+
export interface AccountBalance {
|
|
23
|
+
/**
|
|
24
|
+
* <p>The amount, in the currency that the records making up this balance were issued in.</p>
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
amount: CurrencyAmount | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* <p>The merchant of record that issued the invoices or credit memos that make up this amount.</p>
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
merchantOfRecord: string | undefined;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* <p>A way to identify a financial record. Specify exactly one member: the ID that Amazon Web Services Payments issued, in <code>identifier</code>, or the invoice ID that Amazon Web Services Invoicing issued, in <code>invoiceIdentifier</code>. If you specify both or neither, the request fails with <code>ValidationException</code>.</p>
|
|
36
|
+
* @public
|
|
37
|
+
*/
|
|
38
|
+
export type FinancialRecordKey = FinancialRecordKey.IdentifierMember | FinancialRecordKey.InvoiceIdentifierMember | FinancialRecordKey.$UnknownMember;
|
|
39
|
+
/**
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
export declare namespace FinancialRecordKey {
|
|
43
|
+
/**
|
|
44
|
+
* <p>The ID that Amazon Web Services Payments issued for the record.</p>
|
|
45
|
+
* @public
|
|
46
|
+
*/
|
|
47
|
+
interface IdentifierMember {
|
|
48
|
+
identifier: string;
|
|
49
|
+
invoiceIdentifier?: never;
|
|
50
|
+
$unknown?: never;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* <p>The invoice ID that Amazon Web Services Invoicing issued for an invoice or a credit memo.</p>
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
interface InvoiceIdentifierMember {
|
|
57
|
+
identifier?: never;
|
|
58
|
+
invoiceIdentifier: string;
|
|
59
|
+
$unknown?: never;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
interface $UnknownMember {
|
|
65
|
+
identifier?: never;
|
|
66
|
+
invoiceIdentifier?: never;
|
|
67
|
+
$unknown: [string, any];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @deprecated unused in schema-serde mode.
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
interface Visitor<T> {
|
|
74
|
+
identifier: (value: string) => T;
|
|
75
|
+
invoiceIdentifier: (value: string) => T;
|
|
76
|
+
_: (name: string, value: any) => T;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
export interface BatchGetFinancialRecordRequest {
|
|
83
|
+
/**
|
|
84
|
+
* <p>The keys of the financial records to retrieve. Each key is either the record's ID or its invoice ID.</p>
|
|
85
|
+
* @public
|
|
86
|
+
*/
|
|
87
|
+
keys: FinancialRecordKey[] | undefined;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* <p>The reason that one of the records requested from <code>BatchGetFinancialRecord</code> couldn't be returned. The other records in the request are unaffected.</p>
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
export interface FinancialRecordError {
|
|
94
|
+
/**
|
|
95
|
+
* <p>The key of the record that couldn't be retrieved, as you requested it.</p>
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
key: FinancialRecordKey | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* <p>The error code that indicates why the retrieval failed. The following values are valid:</p> <ul> <li> <p> <code>NOT_FOUND</code> – No financial record on your account matches the key.</p> </li> <li> <p> <code>INTERNAL_ERROR</code> – An internal error occurred while processing this record. The other records in the request are unaffected. You can retry this record.</p> </li> </ul>
|
|
101
|
+
* @public
|
|
102
|
+
*/
|
|
103
|
+
code: BatchErrorCode | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* <p>A description of why the operation couldn't retrieve this record. The wording can change at any time and isn't localized, so don't parse this value. To handle the error in your code, use <code>code</code> instead.</p>
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
message: string | undefined;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* <p>How much of the record's <code>amount</code> is outstanding, processing, settled, and canceled. The four balances add up to <code>amount</code>. Each balance is in the currency of <code>amount</code>, and a balance with nothing in it is 0.</p>
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
export interface Balances {
|
|
115
|
+
/**
|
|
116
|
+
* <p>The part of the amount that isn't settled and has no settlement in progress. For an invoice, this is what remains to pay. For a credit memo, this is the credit that isn't yet applied. This balance doesn't include <code>processing</code>.</p>
|
|
117
|
+
* @public
|
|
118
|
+
*/
|
|
119
|
+
outstanding: CurrencyAmount | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* <p>The part of the amount with a settlement in progress, for example a payment that's submitted but not yet confirmed. It moves to <code>settled</code> when the settlement completes, and back to <code>outstanding</code> when the settlement fails. This balance is more than 0 only when the <code>status</code> is <code>PROCESSING</code>.</p>
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
processing: CurrencyAmount | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* <p>The part of the amount that is settled. For an invoice, this is the amount paid or covered by credit memos. For a credit memo, this is the amount applied to invoices. This balance is 0 when nothing is settled yet.</p>
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
settled: CurrencyAmount | undefined;
|
|
130
|
+
/**
|
|
131
|
+
* <p>The part of the amount that was canceled and isn't settled, for example when an invoice is voided. When a partly settled record is canceled, it keeps its <code>settled</code> balance, and the rest of the amount moves to <code>canceled</code>. This balance is more than 0 only when the <code>status</code> is <code>CANCELED</code>.</p>
|
|
132
|
+
* @public
|
|
133
|
+
*/
|
|
134
|
+
canceled: CurrencyAmount | undefined;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* <p>The Amazon Web Services business unit that issued a financial record. A business unit has two parts: the merchant of record, which is the Amazon Web Services entity that issued the record, and the line of business within that entity.</p>
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
export interface BusinessUnit {
|
|
141
|
+
/**
|
|
142
|
+
* <p>The Amazon Web Services entity that issued the invoice and collects payment for it, such as <code>Amazon Web Services, Inc.</code> or <code>Amazon Web Services EMEA SARL</code>. This is the invoicing entity shown in the Amazon Web Services Billing and Cost Management console. For Amazon Web Services Marketplace purchases, it can differ from the seller of record.</p>
|
|
143
|
+
* @public
|
|
144
|
+
*/
|
|
145
|
+
merchantOfRecord: string | undefined;
|
|
146
|
+
/**
|
|
147
|
+
* <p>The line of business within the merchant of record that issued the record. This member is absent when the line of business isn't known for the record. The following values are valid:</p> <ul> <li> <p> <code>AWS_CLOUD_SERVICES</code> – Your usage of Amazon Web Services services.</p> </li> <li> <p> <code>PROSERVE_MARKETING_AND_TRAINING</code> – Amazon Web Services Professional Services, marketing, and training: consulting, events, and training that Amazon Web Services sells.</p> </li> <li> <p> <code>AWS_MARKETPLACE</code> – Products that you bought from sellers in Amazon Web Services Marketplace.</p> </li> </ul>
|
|
148
|
+
* @public
|
|
149
|
+
*/
|
|
150
|
+
lineOfBusiness?: LineOfBusiness | undefined;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* <p>A billing period, as a half-open date range: <code>startDate</code> is inclusive and <code>endDate</code> is exclusive. Both members are calendar dates, carried as the timestamp of 00:00:00 UTC on that day.</p>
|
|
154
|
+
* @public
|
|
155
|
+
*/
|
|
156
|
+
export interface BillingPeriod {
|
|
157
|
+
/**
|
|
158
|
+
* <p>The first day of the billing period, inclusive, as the timestamp of 00:00:00 UTC on that day.</p>
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
startDate: Date | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* <p>The day after the last day of the billing period, exclusive, as the timestamp of 00:00:00 UTC on that day. A calendar month runs from the first of the month to the first of the next month.</p>
|
|
164
|
+
* @public
|
|
165
|
+
*/
|
|
166
|
+
endDate: Date | undefined;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* <p>The details of a credit memo: the invoice ID that Amazon Web Services Invoicing issued for it and the billing period that it applies to.</p>
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
export interface CreditMemoDetails {
|
|
173
|
+
/**
|
|
174
|
+
* <p>The invoice ID that Amazon Web Services Invoicing issued for the credit memo: the document number printed on it, shown in the Amazon Web Services Billing and Cost Management console and returned by the Amazon Web Services Invoicing API as <code>InvoiceId</code>. <code>GetFinancialRecord</code> and <code>BatchGetFinancialRecord</code> also accept it, as <code>invoiceIdentifier</code>.</p>
|
|
175
|
+
* @public
|
|
176
|
+
*/
|
|
177
|
+
invoiceId: string | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* <p>The billing period the credit memo applies to: the period of the usage it credits.</p>
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
182
|
+
billingPeriod: BillingPeriod | undefined;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* <p>The details of an invoice: the invoice ID that Amazon Web Services Invoicing issued, the billing period that the invoice covers, its due date and due status, its payment terms, and its frequency.</p>
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export interface InvoiceDetails {
|
|
189
|
+
/**
|
|
190
|
+
* <p>The invoice ID that Amazon Web Services Invoicing issued for the invoice: the document number printed on it, shown in the Amazon Web Services Billing and Cost Management console and returned by the Amazon Web Services Invoicing API as <code>InvoiceId</code>. <code>GetFinancialRecord</code> and <code>BatchGetFinancialRecord</code> also accept it, as <code>invoiceIdentifier</code>.</p>
|
|
191
|
+
* @public
|
|
192
|
+
*/
|
|
193
|
+
invoiceId: string | undefined;
|
|
194
|
+
/**
|
|
195
|
+
* <p>Whether the invoice is due or past its due date. This member is present only while the invoice's <code>status</code> is <code>OUTSTANDING</code>. It's absent when the <code>status</code> is <code>PROCESSING</code>, <code>SETTLED</code>, or <code>CANCELED</code>. The following values are valid:</p> <ul> <li> <p> <code>DUE</code> – The due date hasn't passed.</p> </li> <li> <p> <code>PAST_DUE</code> – The due date has passed, and the invoice is still outstanding.</p> </li> </ul>
|
|
196
|
+
* @public
|
|
197
|
+
*/
|
|
198
|
+
dueStatus?: DueStatus | undefined;
|
|
199
|
+
/**
|
|
200
|
+
* <p>The billing period the invoice covers: the period of the usage it bills.</p>
|
|
201
|
+
* @public
|
|
202
|
+
*/
|
|
203
|
+
billingPeriod: BillingPeriod | undefined;
|
|
204
|
+
/**
|
|
205
|
+
* <p>The calendar date by which the invoice must be paid, as the timestamp of 00:00:00 UTC on that day. The invoice is past due from the following day.</p>
|
|
206
|
+
* @public
|
|
207
|
+
*/
|
|
208
|
+
dueDate: Date | undefined;
|
|
209
|
+
/**
|
|
210
|
+
* <p>The payment terms for the invoice, as Amazon Web Services Invoicing issued them, such as <code>Net30</code>. The due date follows from these terms. This member is absent when Amazon Web Services Invoicing didn't issue payment terms for the invoice.</p>
|
|
211
|
+
* @public
|
|
212
|
+
*/
|
|
213
|
+
paymentTerms?: string | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* <p>Whether the invoice was issued once or as part of a billing cycle. The following values are valid:</p> <ul> <li> <p> <code>ONE_TIME</code> – A single invoice that isn't part of a billing cycle.</p> </li> <li> <p> <code>RECURRING</code> – One invoice of a billing cycle, such as your monthly invoice.</p> </li> </ul>
|
|
216
|
+
* @public
|
|
217
|
+
*/
|
|
218
|
+
invoiceFrequency: InvoiceFrequency | undefined;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* <p>The attributes that exist only for one type of financial record. The populated member matches the record's <code>type</code>.</p>
|
|
222
|
+
* @public
|
|
223
|
+
*/
|
|
224
|
+
export type FinancialRecordDetails = FinancialRecordDetails.CreditMemoDetailsMember | FinancialRecordDetails.InvoiceDetailsMember | FinancialRecordDetails.$UnknownMember;
|
|
225
|
+
/**
|
|
226
|
+
* @public
|
|
227
|
+
*/
|
|
228
|
+
export declare namespace FinancialRecordDetails {
|
|
229
|
+
/**
|
|
230
|
+
* <p>The details of an invoice. Populated when <code>type</code> is <code>INVOICE</code>.</p>
|
|
231
|
+
* @public
|
|
232
|
+
*/
|
|
233
|
+
interface InvoiceDetailsMember {
|
|
234
|
+
invoiceDetails: InvoiceDetails;
|
|
235
|
+
creditMemoDetails?: never;
|
|
236
|
+
$unknown?: never;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* <p>The details of a credit memo. Populated when <code>type</code> is <code>CREDIT_MEMO</code>.</p>
|
|
240
|
+
* @public
|
|
241
|
+
*/
|
|
242
|
+
interface CreditMemoDetailsMember {
|
|
243
|
+
invoiceDetails?: never;
|
|
244
|
+
creditMemoDetails: CreditMemoDetails;
|
|
245
|
+
$unknown?: never;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* @public
|
|
249
|
+
*/
|
|
250
|
+
interface $UnknownMember {
|
|
251
|
+
invoiceDetails?: never;
|
|
252
|
+
creditMemoDetails?: never;
|
|
253
|
+
$unknown: [string, any];
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* @deprecated unused in schema-serde mode.
|
|
257
|
+
*
|
|
258
|
+
*/
|
|
259
|
+
interface Visitor<T> {
|
|
260
|
+
invoiceDetails: (value: InvoiceDetails) => T;
|
|
261
|
+
creditMemoDetails: (value: CreditMemoDetails) => T;
|
|
262
|
+
_: (name: string, value: any) => T;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* <p>An invoice or a credit memo on your account, with the details that are specific to its type.</p>
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
export interface FinancialRecord {
|
|
270
|
+
/**
|
|
271
|
+
* <p>The ID that Amazon Web Services Payments issued for the record, such as <code>INV-5364-6253-7364-1342</code>. To retrieve the record again, pass this value to <code>GetFinancialRecord</code> or <code>BatchGetFinancialRecord</code> as <code>identifier</code>.</p>
|
|
272
|
+
* @public
|
|
273
|
+
*/
|
|
274
|
+
id: string | undefined;
|
|
275
|
+
/**
|
|
276
|
+
* <p>The type of the financial record. The populated member of <code>details</code> matches this type. The following values are valid:</p> <ul> <li> <p> <code>INVOICE</code> – An invoice: a bill from Amazon Web Services. Payments and credit memos applied to the invoice settle it.</p> </li> <li> <p> <code>CREDIT_MEMO</code> – A credit memo: a credit issued to your account, for example for a billing correction or a service credit. Applying it to one or more invoices settles it.</p> </li> </ul>
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
279
|
+
type: FinancialRecordType | undefined;
|
|
280
|
+
/**
|
|
281
|
+
* <p>The Amazon Web Services business unit that issued the record: its merchant of record and its line of business.</p>
|
|
282
|
+
* @public
|
|
283
|
+
*/
|
|
284
|
+
businessUnit: BusinessUnit | undefined;
|
|
285
|
+
/**
|
|
286
|
+
* <p>The total amount of the financial record, in the currency that the record was issued in. The amount doesn't change as the record is settled. <code>balances</code> shows how much of it is in each settlement state.</p>
|
|
287
|
+
* @public
|
|
288
|
+
*/
|
|
289
|
+
amount: CurrencyAmount | undefined;
|
|
290
|
+
/**
|
|
291
|
+
* <p>How much of <code>amount</code> is outstanding, processing, settled, and canceled.</p>
|
|
292
|
+
* @public
|
|
293
|
+
*/
|
|
294
|
+
balances: Balances | undefined;
|
|
295
|
+
/**
|
|
296
|
+
* <p>Whether the record is open or closed. If you receive a <code>status</code> value that you don't recognize, use this member to tell open records from closed ones. The following values are valid:</p> <ul> <li> <p> <code>OPEN</code> – Part of the amount is outstanding or processing. The <code>status</code> is <code>OUTSTANDING</code> or <code>PROCESSING</code>.</p> </li> <li> <p> <code>CLOSED</code> – The whole amount is settled or canceled. The <code>status</code> is <code>SETTLED</code> or <code>CANCELED</code>.</p> </li> </ul> <p>A <code>CLOSED</code> record becomes <code>OPEN</code> again if a payment or credit applied to it is reversed. Its <code>closedAt</code> is then absent until the record closes again.</p>
|
|
297
|
+
* @public
|
|
298
|
+
*/
|
|
299
|
+
settlementStatus: SettlementStatus | undefined;
|
|
300
|
+
/**
|
|
301
|
+
* <p>The settlement stage of the record. The following values are valid:</p> <ul> <li> <p> <code>OUTSTANDING</code> – Part of the amount isn't settled, and no settlement is in progress on the record. For an invoice, <code>dueStatus</code> shows whether it's due or past due. The <code>settlementStatus</code> is <code>OPEN</code>.</p> </li> <li> <p> <code>PROCESSING</code> – A settlement of part or all of the amount is in progress, for example a payment that's submitted but not yet confirmed. <code>PROCESSING</code> takes precedence over <code>OUTSTANDING</code>: while any part of the amount is processing, the status is <code>PROCESSING</code>, even if another part is still outstanding. The <code>settlementStatus</code> is <code>OPEN</code>.</p> </li> <li> <p> <code>SETTLED</code> – The whole amount is settled. The <code>settlementStatus</code> is <code>CLOSED</code>.</p> </li> <li> <p> <code>CANCELED</code> – The record is canceled. The part of the amount that wasn't settled isn't collected or applied. The <code>settlementStatus</code> is <code>CLOSED</code>.</p> </li> </ul>
|
|
302
|
+
* @public
|
|
303
|
+
*/
|
|
304
|
+
status: FinancialRecordStatus | undefined;
|
|
305
|
+
/**
|
|
306
|
+
* <p>The date and time, in UTC, when this record was issued.</p>
|
|
307
|
+
* @public
|
|
308
|
+
*/
|
|
309
|
+
issuedAt: Date | undefined;
|
|
310
|
+
/**
|
|
311
|
+
* <p>The date and time, in UTC, when the record was last closed, that is, when its <code>status</code> last became <code>SETTLED</code> or <code>CANCELED</code>. This member is absent while the <code>settlementStatus</code> is <code>OPEN</code>, including after a closed record reopens.</p>
|
|
312
|
+
* @public
|
|
313
|
+
*/
|
|
314
|
+
closedAt?: Date | undefined;
|
|
315
|
+
/**
|
|
316
|
+
* <p>The attributes that exist only for the record's type. The populated member matches <code>type</code>: <code>invoiceDetails</code> for an <code>INVOICE</code>, <code>creditMemoDetails</code> for a <code>CREDIT_MEMO</code>.</p>
|
|
317
|
+
* @public
|
|
318
|
+
*/
|
|
319
|
+
details: FinancialRecordDetails | undefined;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* @public
|
|
323
|
+
*/
|
|
324
|
+
export interface BatchGetFinancialRecordResponse {
|
|
325
|
+
/**
|
|
326
|
+
* <p>The financial records that the operation retrieved, in no particular order. This list contains fewer records than you requested when <code>errors</code> names one or more keys.</p>
|
|
327
|
+
* @public
|
|
328
|
+
*/
|
|
329
|
+
financialRecords: FinancialRecord[] | undefined;
|
|
330
|
+
/**
|
|
331
|
+
* <p>The errors for the records that the operation couldn't retrieve, one for each record, with the key as you requested it and the reason. This list is empty when the operation retrieved every record.</p>
|
|
332
|
+
* @public
|
|
333
|
+
*/
|
|
334
|
+
errors: FinancialRecordError[] | undefined;
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* <p>A request member that failed validation.</p>
|
|
338
|
+
* @public
|
|
339
|
+
*/
|
|
340
|
+
export interface ValidationExceptionField {
|
|
341
|
+
/**
|
|
342
|
+
* <p>The name of the request member that failed validation. For a member nested inside another member, the name is a path from the request root, with the segments separated by periods.</p>
|
|
343
|
+
* @public
|
|
344
|
+
*/
|
|
345
|
+
name: string | undefined;
|
|
346
|
+
/**
|
|
347
|
+
* <p>A description of why this member failed validation.</p>
|
|
348
|
+
* @public
|
|
349
|
+
*/
|
|
350
|
+
message: string | undefined;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* @public
|
|
354
|
+
*/
|
|
355
|
+
export interface GetAccountBalanceRequest {
|
|
356
|
+
/**
|
|
357
|
+
* <p>The balance to retrieve. You can specify only one balance type in a single request. Each balance adds up the <code>outstanding</code> balance of the records that have the status <code>OUTSTANDING</code>. A record that is <code>PROCESSING</code>, <code>SETTLED</code>, or <code>CANCELED</code> isn't included, even when part of its amount is outstanding. The following values are valid:</p> <ul> <li> <p> <code>INVOICES_DUE</code> – The outstanding balance of your <code>OUTSTANDING</code> invoices that aren't past their due date, where <code>dueStatus</code> is <code>DUE</code>.</p> </li> <li> <p> <code>INVOICES_PAST_DUE</code> – The outstanding balance of your <code>OUTSTANDING</code> invoices that are past their due date, where <code>dueStatus</code> is <code>PAST_DUE</code>.</p> </li> <li> <p> <code>OUTSTANDING_CREDIT_MEMOS</code> – The outstanding balance of your <code>OUTSTANDING</code> credit memos: the credit that isn't yet applied to an invoice.</p> </li> </ul>
|
|
358
|
+
* @public
|
|
359
|
+
*/
|
|
360
|
+
balanceType: BalanceType | undefined;
|
|
361
|
+
/**
|
|
362
|
+
* <p>The pagination token from the <code>nextToken</code> of the previous response. Omit it to get the first page. Tokens expire. If the token is malformed or expired, or doesn't match the original request, the request fails with <code>ValidationException</code> and the reason <code>INVALID_PAGINATION_TOKEN</code>. In that case, start again from the first page.</p>
|
|
363
|
+
* @public
|
|
364
|
+
*/
|
|
365
|
+
nextToken?: string | undefined;
|
|
366
|
+
/**
|
|
367
|
+
* <p>The maximum number of results to return in one page. The default is 100. A page can contain fewer results even when more remain. Use <code>nextToken</code> to find out whether more results are available.</p>
|
|
368
|
+
* @public
|
|
369
|
+
*/
|
|
370
|
+
maxResults?: number | undefined;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* @public
|
|
374
|
+
*/
|
|
375
|
+
export interface GetAccountBalanceResponse {
|
|
376
|
+
/**
|
|
377
|
+
* <p>The balance, as one amount for each merchant of record and currency. This list is empty when your account has nothing in the requested balance.</p>
|
|
378
|
+
* @public
|
|
379
|
+
*/
|
|
380
|
+
accountBalances: AccountBalance[] | undefined;
|
|
381
|
+
/**
|
|
382
|
+
* <p>The pagination token that indicates the next set of results to retrieve. This value is absent when there are no more results.</p>
|
|
383
|
+
* @public
|
|
384
|
+
*/
|
|
385
|
+
nextToken?: string | undefined;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* @public
|
|
389
|
+
*/
|
|
390
|
+
export interface GetFinancialRecordRequest {
|
|
391
|
+
/**
|
|
392
|
+
* <p>The ID that Amazon Web Services Payments issued for the financial record, as returned in <code>id</code>.</p>
|
|
393
|
+
* @public
|
|
394
|
+
*/
|
|
395
|
+
identifier?: string | undefined;
|
|
396
|
+
/**
|
|
397
|
+
* <p>The invoice ID that Amazon Web Services Invoicing issued for an invoice or a credit memo. The operation returns the record that has this invoice ID.</p>
|
|
398
|
+
* @public
|
|
399
|
+
*/
|
|
400
|
+
invoiceIdentifier?: string | undefined;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* @public
|
|
404
|
+
*/
|
|
405
|
+
export interface GetFinancialRecordResponse {
|
|
406
|
+
/**
|
|
407
|
+
* <p>The requested financial record.</p>
|
|
408
|
+
* @public
|
|
409
|
+
*/
|
|
410
|
+
financialRecord: FinancialRecord | undefined;
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* @public
|
|
414
|
+
*/
|
|
415
|
+
export interface GetPaymentInstrumentRequest {
|
|
416
|
+
/**
|
|
417
|
+
* <p>The instrument to retrieve. Specify one of the following:</p> <ul> <li> <p>The Amazon Resource Name (ARN) of the instrument, as <code>ListPaymentInstruments</code> returns in <code>arn</code>. The ARN must be for an instrument on your account.</p> </li> <li> <p>The ID of the instrument, as <code>ListPaymentInstruments</code> returns in <code>id</code>.</p> </li> </ul>
|
|
418
|
+
* @public
|
|
419
|
+
*/
|
|
420
|
+
identifier: string | undefined;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* <p>The details of a card payment instrument.</p>
|
|
424
|
+
* @public
|
|
425
|
+
*/
|
|
426
|
+
export interface Card {
|
|
427
|
+
/**
|
|
428
|
+
* <p>The network the card runs on.</p>
|
|
429
|
+
* @public
|
|
430
|
+
*/
|
|
431
|
+
brand?: CardBrand | undefined;
|
|
432
|
+
/**
|
|
433
|
+
* <p>The last four digits of the card number.</p>
|
|
434
|
+
* @public
|
|
435
|
+
*/
|
|
436
|
+
last4: string | undefined;
|
|
437
|
+
/**
|
|
438
|
+
* <p>The calendar month that the card expires in.</p>
|
|
439
|
+
* @public
|
|
440
|
+
*/
|
|
441
|
+
expirationMonth?: number | undefined;
|
|
442
|
+
/**
|
|
443
|
+
* <p>The calendar year that the card expires in.</p>
|
|
444
|
+
* @public
|
|
445
|
+
*/
|
|
446
|
+
expirationYear?: number | undefined;
|
|
447
|
+
/**
|
|
448
|
+
* <p>Whether the card is a credit card or a debit card.</p>
|
|
449
|
+
* @public
|
|
450
|
+
*/
|
|
451
|
+
cardType?: CardType | undefined;
|
|
452
|
+
/**
|
|
453
|
+
* <p>The bank that issued the card.</p>
|
|
454
|
+
* @public
|
|
455
|
+
*/
|
|
456
|
+
issuingBank?: string | undefined;
|
|
457
|
+
/**
|
|
458
|
+
* <p>The country of the bank that issued the card.</p>
|
|
459
|
+
* @public
|
|
460
|
+
*/
|
|
461
|
+
issuerCountry?: string | undefined;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* <p>The details of a China bank redirect instrument. A retail instrument is registered with one bank and carries that bank's code. A corporate instrument isn't registered with a bank.</p>
|
|
465
|
+
* @public
|
|
466
|
+
*/
|
|
467
|
+
export interface CnBankRedirect {
|
|
468
|
+
/**
|
|
469
|
+
* <p>The code of the bank that the instrument is registered with. This member is present only for retail instruments.</p>
|
|
470
|
+
* @public
|
|
471
|
+
*/
|
|
472
|
+
bankCode?: string | undefined;
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* <p>The details of an India net banking instrument. The instrument is registered with one bank.</p>
|
|
476
|
+
* @public
|
|
477
|
+
*/
|
|
478
|
+
export interface InNetBanking {
|
|
479
|
+
/**
|
|
480
|
+
* <p>The code of the bank that the instrument is registered with.</p>
|
|
481
|
+
* @public
|
|
482
|
+
*/
|
|
483
|
+
bankCode: string | undefined;
|
|
484
|
+
/**
|
|
485
|
+
* <p>The name of the bank that the instrument is registered with.</p>
|
|
486
|
+
* @public
|
|
487
|
+
*/
|
|
488
|
+
bankName?: string | undefined;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* <p>The details of a bank account that is debited over Single Euro Payments Area (SEPA) Direct Debit.</p>
|
|
492
|
+
* @public
|
|
493
|
+
*/
|
|
494
|
+
export interface SepaBankAccount {
|
|
495
|
+
/**
|
|
496
|
+
* <p>The last one to four characters of the account number. This member is absent until your bank provides the account details, for example before you complete authentication with your bank.</p>
|
|
497
|
+
* @public
|
|
498
|
+
*/
|
|
499
|
+
accountNumberTail?: string | undefined;
|
|
500
|
+
/**
|
|
501
|
+
* <p>The name on the account.</p>
|
|
502
|
+
* @public
|
|
503
|
+
*/
|
|
504
|
+
accountHolderName?: string | undefined;
|
|
505
|
+
/**
|
|
506
|
+
* <p>The bank holding the account.</p>
|
|
507
|
+
* @public
|
|
508
|
+
*/
|
|
509
|
+
bankName?: string | undefined;
|
|
510
|
+
/**
|
|
511
|
+
* <p>Whether the account is a checking account or a savings account.</p>
|
|
512
|
+
* @public
|
|
513
|
+
*/
|
|
514
|
+
accountType?: BankAccountType | undefined;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* <p>The details of a bank account that is debited over Bacs Direct Debit.</p>
|
|
518
|
+
* @public
|
|
519
|
+
*/
|
|
520
|
+
export interface UkBacsBankAccount {
|
|
521
|
+
/**
|
|
522
|
+
* <p>The last one to four characters of the account number. This member is absent until your bank provides the account details, for example before you complete authentication with your bank.</p>
|
|
523
|
+
* @public
|
|
524
|
+
*/
|
|
525
|
+
accountNumberTail?: string | undefined;
|
|
526
|
+
/**
|
|
527
|
+
* <p>The name on the account.</p>
|
|
528
|
+
* @public
|
|
529
|
+
*/
|
|
530
|
+
accountHolderName?: string | undefined;
|
|
531
|
+
/**
|
|
532
|
+
* <p>The bank holding the account.</p>
|
|
533
|
+
* @public
|
|
534
|
+
*/
|
|
535
|
+
bankName?: string | undefined;
|
|
536
|
+
/**
|
|
537
|
+
* <p>Whether the account is a checking account or a savings account.</p>
|
|
538
|
+
* @public
|
|
539
|
+
*/
|
|
540
|
+
accountType?: BankAccountType | undefined;
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* <p>The details of a Unified Payments Interface (UPI) instrument.</p>
|
|
544
|
+
* @public
|
|
545
|
+
*/
|
|
546
|
+
export interface Upi {
|
|
547
|
+
/**
|
|
548
|
+
* <p>The name of the UPI app that the instrument is registered with.</p>
|
|
549
|
+
* @public
|
|
550
|
+
*/
|
|
551
|
+
appName?: string | undefined;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* <p>The details of a bank account that is debited over Automated Clearing House (ACH).</p>
|
|
555
|
+
* @public
|
|
556
|
+
*/
|
|
557
|
+
export interface UsAchBankAccount {
|
|
558
|
+
/**
|
|
559
|
+
* <p>The last one to four characters of the account number. This member is absent until your bank provides the account details, for example before you complete authentication with your bank.</p>
|
|
560
|
+
* @public
|
|
561
|
+
*/
|
|
562
|
+
accountNumberTail?: string | undefined;
|
|
563
|
+
/**
|
|
564
|
+
* <p>The name on the account.</p>
|
|
565
|
+
* @public
|
|
566
|
+
*/
|
|
567
|
+
accountHolderName?: string | undefined;
|
|
568
|
+
/**
|
|
569
|
+
* <p>The bank holding the account.</p>
|
|
570
|
+
* @public
|
|
571
|
+
*/
|
|
572
|
+
bankName?: string | undefined;
|
|
573
|
+
/**
|
|
574
|
+
* <p>Whether the account is a checking account or a savings account.</p>
|
|
575
|
+
* @public
|
|
576
|
+
*/
|
|
577
|
+
accountType?: BankAccountType | undefined;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* <p>The details that are specific to a payment instrument's payment method.</p>
|
|
581
|
+
* @public
|
|
582
|
+
*/
|
|
583
|
+
export type PaymentInstrumentDetails = PaymentInstrumentDetails.CardMember | PaymentInstrumentDetails.CnBankRedirectMember | PaymentInstrumentDetails.InNetBankingMember | PaymentInstrumentDetails.SepaBankAccountMember | PaymentInstrumentDetails.UkBacsBankAccountMember | PaymentInstrumentDetails.UpiMember | PaymentInstrumentDetails.UsAchBankAccountMember | PaymentInstrumentDetails.$UnknownMember;
|
|
584
|
+
/**
|
|
585
|
+
* @public
|
|
586
|
+
*/
|
|
587
|
+
export declare namespace PaymentInstrumentDetails {
|
|
588
|
+
/**
|
|
589
|
+
* <p>The details of a card payment instrument.</p>
|
|
590
|
+
* @public
|
|
591
|
+
*/
|
|
592
|
+
interface CardMember {
|
|
593
|
+
card: Card;
|
|
594
|
+
usAchBankAccount?: never;
|
|
595
|
+
sepaBankAccount?: never;
|
|
596
|
+
ukBacsBankAccount?: never;
|
|
597
|
+
inNetBanking?: never;
|
|
598
|
+
cnBankRedirect?: never;
|
|
599
|
+
upi?: never;
|
|
600
|
+
$unknown?: never;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* <p>The details of a bank account that is debited over Automated Clearing House (ACH).</p>
|
|
604
|
+
* @public
|
|
605
|
+
*/
|
|
606
|
+
interface UsAchBankAccountMember {
|
|
607
|
+
card?: never;
|
|
608
|
+
usAchBankAccount: UsAchBankAccount;
|
|
609
|
+
sepaBankAccount?: never;
|
|
610
|
+
ukBacsBankAccount?: never;
|
|
611
|
+
inNetBanking?: never;
|
|
612
|
+
cnBankRedirect?: never;
|
|
613
|
+
upi?: never;
|
|
614
|
+
$unknown?: never;
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* <p>The details of a bank account that is debited over Single Euro Payments Area (SEPA) Direct Debit.</p>
|
|
618
|
+
* @public
|
|
619
|
+
*/
|
|
620
|
+
interface SepaBankAccountMember {
|
|
621
|
+
card?: never;
|
|
622
|
+
usAchBankAccount?: never;
|
|
623
|
+
sepaBankAccount: SepaBankAccount;
|
|
624
|
+
ukBacsBankAccount?: never;
|
|
625
|
+
inNetBanking?: never;
|
|
626
|
+
cnBankRedirect?: never;
|
|
627
|
+
upi?: never;
|
|
628
|
+
$unknown?: never;
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* <p>The details of a bank account that is debited over Bacs Direct Debit.</p>
|
|
632
|
+
* @public
|
|
633
|
+
*/
|
|
634
|
+
interface UkBacsBankAccountMember {
|
|
635
|
+
card?: never;
|
|
636
|
+
usAchBankAccount?: never;
|
|
637
|
+
sepaBankAccount?: never;
|
|
638
|
+
ukBacsBankAccount: UkBacsBankAccount;
|
|
639
|
+
inNetBanking?: never;
|
|
640
|
+
cnBankRedirect?: never;
|
|
641
|
+
upi?: never;
|
|
642
|
+
$unknown?: never;
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* <p>The details of an India net banking instrument.</p>
|
|
646
|
+
* @public
|
|
647
|
+
*/
|
|
648
|
+
interface InNetBankingMember {
|
|
649
|
+
card?: never;
|
|
650
|
+
usAchBankAccount?: never;
|
|
651
|
+
sepaBankAccount?: never;
|
|
652
|
+
ukBacsBankAccount?: never;
|
|
653
|
+
inNetBanking: InNetBanking;
|
|
654
|
+
cnBankRedirect?: never;
|
|
655
|
+
upi?: never;
|
|
656
|
+
$unknown?: never;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* <p>The details of a China bank redirect instrument.</p>
|
|
660
|
+
* @public
|
|
661
|
+
*/
|
|
662
|
+
interface CnBankRedirectMember {
|
|
663
|
+
card?: never;
|
|
664
|
+
usAchBankAccount?: never;
|
|
665
|
+
sepaBankAccount?: never;
|
|
666
|
+
ukBacsBankAccount?: never;
|
|
667
|
+
inNetBanking?: never;
|
|
668
|
+
cnBankRedirect: CnBankRedirect;
|
|
669
|
+
upi?: never;
|
|
670
|
+
$unknown?: never;
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* <p>The details of a Unified Payments Interface (UPI) instrument.</p>
|
|
674
|
+
* @public
|
|
675
|
+
*/
|
|
676
|
+
interface UpiMember {
|
|
677
|
+
card?: never;
|
|
678
|
+
usAchBankAccount?: never;
|
|
679
|
+
sepaBankAccount?: never;
|
|
680
|
+
ukBacsBankAccount?: never;
|
|
681
|
+
inNetBanking?: never;
|
|
682
|
+
cnBankRedirect?: never;
|
|
683
|
+
upi: Upi;
|
|
684
|
+
$unknown?: never;
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* @public
|
|
688
|
+
*/
|
|
689
|
+
interface $UnknownMember {
|
|
690
|
+
card?: never;
|
|
691
|
+
usAchBankAccount?: never;
|
|
692
|
+
sepaBankAccount?: never;
|
|
693
|
+
ukBacsBankAccount?: never;
|
|
694
|
+
inNetBanking?: never;
|
|
695
|
+
cnBankRedirect?: never;
|
|
696
|
+
upi?: never;
|
|
697
|
+
$unknown: [string, any];
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* @deprecated unused in schema-serde mode.
|
|
701
|
+
*
|
|
702
|
+
*/
|
|
703
|
+
interface Visitor<T> {
|
|
704
|
+
card: (value: Card) => T;
|
|
705
|
+
usAchBankAccount: (value: UsAchBankAccount) => T;
|
|
706
|
+
sepaBankAccount: (value: SepaBankAccount) => T;
|
|
707
|
+
ukBacsBankAccount: (value: UkBacsBankAccount) => T;
|
|
708
|
+
inNetBanking: (value: InNetBanking) => T;
|
|
709
|
+
cnBankRedirect: (value: CnBankRedirect) => T;
|
|
710
|
+
upi: (value: Upi) => T;
|
|
711
|
+
_: (name: string, value: any) => T;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* <p>A payment instrument on your account, such as a card or a bank account.</p>
|
|
716
|
+
* @public
|
|
717
|
+
*/
|
|
718
|
+
export interface PaymentInstrument {
|
|
719
|
+
/**
|
|
720
|
+
* <p>The Amazon Resource Name (ARN) of the instrument. To allow or deny <code>GetPaymentInstrument</code> for this instrument, use the ARN in the <code>Resource</code> element of an Amazon Web Services Identity and Access Management (IAM) policy.</p>
|
|
721
|
+
* @public
|
|
722
|
+
*/
|
|
723
|
+
arn: string | undefined;
|
|
724
|
+
/**
|
|
725
|
+
* <p>The payment method of the instrument. The following values are valid:</p> <ul> <li> <p> <code>CARD</code> – A credit or debit card.</p> </li> <li> <p> <code>US_ACH_BANK_ACCOUNT</code> – A US bank account debited over Automated Clearing House (ACH).</p> </li> <li> <p> <code>SEPA_BANK_ACCOUNT</code> – A bank account debited over Single Euro Payments Area (SEPA) Direct Debit.</p> </li> <li> <p> <code>UK_BACS_BANK_ACCOUNT</code> – A UK bank account debited over Bacs Direct Debit.</p> </li> <li> <p> <code>IN_NET_BANKING</code> – India net banking. You authorize each payment on your bank's website.</p> </li> <li> <p> <code>CN_BANK_REDIRECT</code> – China bank redirect. You authorize each payment on your bank's website.</p> </li> <li> <p> <code>UPI</code> – Unified Payments Interface, the India real-time payment system.</p> </li> <li> <p> <code>PIX</code> – Pix, the Brazilian Central Bank instant payment system.</p> </li> <li> <p> <code>PAY_BY_INVOICE</code> – Pay by invoice. You pay each invoice yourself, for example by bank transfer, instead of Amazon Web Services collecting payment from a card or a bank account.</p> </li> </ul>
|
|
726
|
+
* @public
|
|
727
|
+
*/
|
|
728
|
+
paymentMethod: PaymentMethod | undefined;
|
|
729
|
+
/**
|
|
730
|
+
* <p>The current status of the instrument. The following values are valid:</p> <ul> <li> <p> <code>ACTIVE</code> – The instrument is set up, and Amazon Web Services can use it for payments. <code>ACTIVE</code> doesn't confirm that the instrument is verified or that a payment with it will succeed. You don't need to take action.</p> </li> <li> <p> <code>INVALID</code> – Amazon Web Services can't use the instrument for payments, for example because its Direct Debit or UPI mandate is no longer valid. This status is permanent. The instrument doesn't return to <code>ACTIVE</code>. To pay with this payment method again, add a new payment instrument.</p> </li> <li> <p> <code>PENDING_SETUP</code> – The instrument needs an action from you before Amazon Web Services can use it, such as resuming a paused UPI mandate in your UPI app. Amazon Web Services doesn't use the instrument for payments until you complete that action.</p> </li> <li> <p> <code>SETUP_IN_PROGRESS</code> – You completed the setup steps, and setup of the instrument is in progress, for example while a Direct Debit or UPI mandate waits for confirmation. Amazon Web Services doesn't use the instrument for payments until setup is complete. You don't need to take action.</p> </li> </ul>
|
|
731
|
+
* @public
|
|
732
|
+
*/
|
|
733
|
+
status: PaymentInstrumentStatus | undefined;
|
|
734
|
+
/**
|
|
735
|
+
* <p>The details that are specific to the instrument's payment method. This member is absent for a payment method that has no additional details.</p>
|
|
736
|
+
* @public
|
|
737
|
+
*/
|
|
738
|
+
details?: PaymentInstrumentDetails | undefined;
|
|
739
|
+
/**
|
|
740
|
+
* <p>The date and time, in UTC, when the instrument was registered.</p>
|
|
741
|
+
* @public
|
|
742
|
+
*/
|
|
743
|
+
createdAt?: Date | undefined;
|
|
744
|
+
/**
|
|
745
|
+
* <p>The date and time, in UTC, when the instrument was last changed.</p>
|
|
746
|
+
* @public
|
|
747
|
+
*/
|
|
748
|
+
updatedAt?: Date | undefined;
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* @public
|
|
752
|
+
*/
|
|
753
|
+
export interface GetPaymentInstrumentResponse {
|
|
754
|
+
/**
|
|
755
|
+
* <p>The payment instrument, including the details that are specific to its payment method.</p>
|
|
756
|
+
* @public
|
|
757
|
+
*/
|
|
758
|
+
paymentInstrument: PaymentInstrument | undefined;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* @public
|
|
762
|
+
*/
|
|
763
|
+
export interface ListFinancialRecordsRequest {
|
|
764
|
+
/**
|
|
765
|
+
* <p>The financial record types to return. The following values are valid:</p> <ul> <li> <p> <code>INVOICE</code> – An invoice: a bill from Amazon Web Services. Payments and credit memos applied to the invoice settle it.</p> </li> <li> <p> <code>CREDIT_MEMO</code> – A credit memo: a credit issued to your account, for example for a billing correction or a service credit. Applying it to one or more invoices settles it.</p> </li> </ul>
|
|
766
|
+
* @public
|
|
767
|
+
*/
|
|
768
|
+
types: FinancialRecordType[] | undefined;
|
|
769
|
+
/**
|
|
770
|
+
* <p>The settlement statuses to filter by. <code>OPEN</code> returns records whose <code>status</code> is <code>OUTSTANDING</code> or <code>PROCESSING</code>. <code>CLOSED</code> returns records whose <code>status</code> is <code>SETTLED</code> or <code>CANCELED</code>. When you omit this member, the operation returns records with both settlement statuses.</p>
|
|
771
|
+
* @public
|
|
772
|
+
*/
|
|
773
|
+
settlementStatuses?: SettlementStatus[] | undefined;
|
|
774
|
+
/**
|
|
775
|
+
* <p>The earliest date and time to return records for, inclusive. The operation returns the records that were issued at or after this time.</p>
|
|
776
|
+
* @public
|
|
777
|
+
*/
|
|
778
|
+
issuedAfter?: Date | undefined;
|
|
779
|
+
/**
|
|
780
|
+
* <p>The latest date and time to return records for, exclusive. The operation returns the records that were issued before this time. When you specify both <code>issuedAfter</code> and <code>issuedBefore</code>, <code>issuedBefore</code> must be later than <code>issuedAfter</code>.</p>
|
|
781
|
+
* @public
|
|
782
|
+
*/
|
|
783
|
+
issuedBefore?: Date | undefined;
|
|
784
|
+
/**
|
|
785
|
+
* <p>The field to sort the results by. The default is <code>ISSUED_AT</code>, the date and time when the record was issued.</p>
|
|
786
|
+
* @public
|
|
787
|
+
*/
|
|
788
|
+
sortBy?: FinancialRecordSortField | undefined;
|
|
789
|
+
/**
|
|
790
|
+
* <p>The order to sort the results in. The default is <code>DESCENDING</code>, which returns the newest records first. <code>ASCENDING</code> returns the oldest records first.</p>
|
|
791
|
+
* @public
|
|
792
|
+
*/
|
|
793
|
+
sortOrder?: SortOrder | undefined;
|
|
794
|
+
/**
|
|
795
|
+
* <p>The pagination token from the <code>nextToken</code> of the previous response. Omit it to get the first page. Tokens expire. If the token is malformed or expired, or doesn't match the original request, the request fails with <code>ValidationException</code> and the reason <code>INVALID_PAGINATION_TOKEN</code>. In that case, start again from the first page.</p>
|
|
796
|
+
* @public
|
|
797
|
+
*/
|
|
798
|
+
nextToken?: string | undefined;
|
|
799
|
+
/**
|
|
800
|
+
* <p>The maximum number of results to return in one page. The default is 100. A page can contain fewer results even when more remain. Use <code>nextToken</code> to find out whether more results are available.</p>
|
|
801
|
+
* @public
|
|
802
|
+
*/
|
|
803
|
+
maxResults?: number | undefined;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* <p>A financial record as <code>ListFinancialRecords</code> returns it, without the details that are specific to its type. To get the full record, use <code>GetFinancialRecord</code> or <code>BatchGetFinancialRecord</code>.</p>
|
|
807
|
+
* @public
|
|
808
|
+
*/
|
|
809
|
+
export interface FinancialRecordSummary {
|
|
810
|
+
/**
|
|
811
|
+
* <p>The ID that Amazon Web Services Payments issued for the record. To retrieve the full record, pass this value to <code>GetFinancialRecord</code> or <code>BatchGetFinancialRecord</code> as <code>identifier</code>.</p>
|
|
812
|
+
* @public
|
|
813
|
+
*/
|
|
814
|
+
id: string | undefined;
|
|
815
|
+
/**
|
|
816
|
+
* <p>The type of the financial record. On the full record, the populated member of <code>details</code> matches this type. The following values are valid:</p> <ul> <li> <p> <code>INVOICE</code> – An invoice: a bill from Amazon Web Services. Payments and credit memos applied to the invoice settle it.</p> </li> <li> <p> <code>CREDIT_MEMO</code> – A credit memo: a credit issued to your account, for example for a billing correction or a service credit. Applying it to one or more invoices settles it.</p> </li> </ul>
|
|
817
|
+
* @public
|
|
818
|
+
*/
|
|
819
|
+
type: FinancialRecordType | undefined;
|
|
820
|
+
/**
|
|
821
|
+
* <p>The Amazon Web Services business unit that issued the record: its merchant of record and its line of business.</p>
|
|
822
|
+
* @public
|
|
823
|
+
*/
|
|
824
|
+
businessUnit: BusinessUnit | undefined;
|
|
825
|
+
/**
|
|
826
|
+
* <p>The total amount of the financial record, in the currency that the record was issued in. The amount doesn't change as the record is settled. <code>balances</code> shows how much of it is in each settlement state.</p>
|
|
827
|
+
* @public
|
|
828
|
+
*/
|
|
829
|
+
amount: CurrencyAmount | undefined;
|
|
830
|
+
/**
|
|
831
|
+
* <p>How much of <code>amount</code> is outstanding, processing, settled, and canceled.</p>
|
|
832
|
+
* @public
|
|
833
|
+
*/
|
|
834
|
+
balances: Balances | undefined;
|
|
835
|
+
/**
|
|
836
|
+
* <p>Whether the record is open or closed. If you receive a <code>status</code> value that you don't recognize, use this member to tell open records from closed ones. The following values are valid:</p> <ul> <li> <p> <code>OPEN</code> – Part of the amount is outstanding or processing. The <code>status</code> is <code>OUTSTANDING</code> or <code>PROCESSING</code>.</p> </li> <li> <p> <code>CLOSED</code> – The whole amount is settled or canceled. The <code>status</code> is <code>SETTLED</code> or <code>CANCELED</code>.</p> </li> </ul> <p>A <code>CLOSED</code> record becomes <code>OPEN</code> again if a payment or credit applied to it is reversed. Its <code>closedAt</code> is then absent until the record closes again.</p>
|
|
837
|
+
* @public
|
|
838
|
+
*/
|
|
839
|
+
settlementStatus: SettlementStatus | undefined;
|
|
840
|
+
/**
|
|
841
|
+
* <p>The settlement stage of the record. The following values are valid:</p> <ul> <li> <p> <code>OUTSTANDING</code> – Part of the amount isn't settled, and no settlement is in progress on the record. For an invoice, <code>dueStatus</code> shows whether it's due or past due. The <code>settlementStatus</code> is <code>OPEN</code>.</p> </li> <li> <p> <code>PROCESSING</code> – A settlement of part or all of the amount is in progress, for example a payment that's submitted but not yet confirmed. <code>PROCESSING</code> takes precedence over <code>OUTSTANDING</code>: while any part of the amount is processing, the status is <code>PROCESSING</code>, even if another part is still outstanding. The <code>settlementStatus</code> is <code>OPEN</code>.</p> </li> <li> <p> <code>SETTLED</code> – The whole amount is settled. The <code>settlementStatus</code> is <code>CLOSED</code>.</p> </li> <li> <p> <code>CANCELED</code> – The record is canceled. The part of the amount that wasn't settled isn't collected or applied. The <code>settlementStatus</code> is <code>CLOSED</code>.</p> </li> </ul>
|
|
842
|
+
* @public
|
|
843
|
+
*/
|
|
844
|
+
status: FinancialRecordStatus | undefined;
|
|
845
|
+
/**
|
|
846
|
+
* <p>The date and time, in UTC, when this record was issued.</p>
|
|
847
|
+
* @public
|
|
848
|
+
*/
|
|
849
|
+
issuedAt: Date | undefined;
|
|
850
|
+
/**
|
|
851
|
+
* <p>The date and time, in UTC, when the record was last closed, that is, when its <code>status</code> last became <code>SETTLED</code> or <code>CANCELED</code>. This member is absent while the <code>settlementStatus</code> is <code>OPEN</code>, including after a closed record reopens.</p>
|
|
852
|
+
* @public
|
|
853
|
+
*/
|
|
854
|
+
closedAt?: Date | undefined;
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* @public
|
|
858
|
+
*/
|
|
859
|
+
export interface ListFinancialRecordsResponse {
|
|
860
|
+
/**
|
|
861
|
+
* <p>The financial record summaries that match your filters, in the requested order. This list is empty when no record matches.</p>
|
|
862
|
+
* @public
|
|
863
|
+
*/
|
|
864
|
+
financialRecordSummaries: FinancialRecordSummary[] | undefined;
|
|
865
|
+
/**
|
|
866
|
+
* <p>The pagination token that indicates the next set of results to retrieve. This value is absent when there are no more results.</p>
|
|
867
|
+
* @public
|
|
868
|
+
*/
|
|
869
|
+
nextToken?: string | undefined;
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* @public
|
|
873
|
+
*/
|
|
874
|
+
export interface ListPaymentInstrumentsRequest {
|
|
875
|
+
/**
|
|
876
|
+
* <p>The pagination token from the <code>nextToken</code> of the previous response. Omit it to get the first page. Tokens expire. If the token is malformed or expired, or doesn't match the original request, the request fails with <code>ValidationException</code> and the reason <code>INVALID_PAGINATION_TOKEN</code>. In that case, start again from the first page.</p>
|
|
877
|
+
* @public
|
|
878
|
+
*/
|
|
879
|
+
nextToken?: string | undefined;
|
|
880
|
+
/**
|
|
881
|
+
* <p>The maximum number of payment instruments to return in one page. The default is 25. A page can contain fewer payment instruments even when more remain. Use <code>nextToken</code> to find out whether more payment instruments are available.</p>
|
|
882
|
+
* @public
|
|
883
|
+
*/
|
|
884
|
+
maxResults?: number | undefined;
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* <p>A payment instrument as it appears in <code>ListPaymentInstruments</code>. Call <code>GetPaymentInstrument</code> for the full instrument, including the details specific to its payment method such as a card's last four digits and expiration.</p>
|
|
888
|
+
* @public
|
|
889
|
+
*/
|
|
890
|
+
export interface PaymentInstrumentSummary {
|
|
891
|
+
/**
|
|
892
|
+
* <p>The ID of the instrument, unique within your account. It's the last segment of the instrument's ARN.</p>
|
|
893
|
+
* @public
|
|
894
|
+
*/
|
|
895
|
+
id: string | undefined;
|
|
896
|
+
/**
|
|
897
|
+
* <p>The Amazon Resource Name (ARN) of the instrument. To allow or deny <code>GetPaymentInstrument</code> for this instrument, use the ARN in the <code>Resource</code> element of an Amazon Web Services Identity and Access Management (IAM) policy.</p>
|
|
898
|
+
* @public
|
|
899
|
+
*/
|
|
900
|
+
arn: string | undefined;
|
|
901
|
+
/**
|
|
902
|
+
* <p>The payment method of the instrument. The following values are valid:</p> <ul> <li> <p> <code>CARD</code> – A credit or debit card.</p> </li> <li> <p> <code>US_ACH_BANK_ACCOUNT</code> – A US bank account debited over Automated Clearing House (ACH).</p> </li> <li> <p> <code>SEPA_BANK_ACCOUNT</code> – A bank account debited over Single Euro Payments Area (SEPA) Direct Debit.</p> </li> <li> <p> <code>UK_BACS_BANK_ACCOUNT</code> – A UK bank account debited over Bacs Direct Debit.</p> </li> <li> <p> <code>IN_NET_BANKING</code> – India net banking. You authorize each payment on your bank's website.</p> </li> <li> <p> <code>CN_BANK_REDIRECT</code> – China bank redirect. You authorize each payment on your bank's website.</p> </li> <li> <p> <code>UPI</code> – Unified Payments Interface, the India real-time payment system.</p> </li> <li> <p> <code>PIX</code> – Pix, the Brazilian Central Bank instant payment system.</p> </li> <li> <p> <code>PAY_BY_INVOICE</code> – Pay by invoice. You pay each invoice yourself, for example by bank transfer, instead of Amazon Web Services collecting payment from a card or a bank account.</p> </li> </ul>
|
|
903
|
+
* @public
|
|
904
|
+
*/
|
|
905
|
+
paymentMethod: PaymentMethod | undefined;
|
|
906
|
+
/**
|
|
907
|
+
* <p>The current status of the instrument. The following values are valid:</p> <ul> <li> <p> <code>ACTIVE</code> – The instrument is set up, and Amazon Web Services can use it for payments. <code>ACTIVE</code> doesn't confirm that the instrument is verified or that a payment with it will succeed. You don't need to take action.</p> </li> <li> <p> <code>INVALID</code> – Amazon Web Services can't use the instrument for payments, for example because its Direct Debit or UPI mandate is no longer valid. This status is permanent. The instrument doesn't return to <code>ACTIVE</code>. To pay with this payment method again, add a new payment instrument.</p> </li> <li> <p> <code>PENDING_SETUP</code> – The instrument needs an action from you before Amazon Web Services can use it, such as resuming a paused UPI mandate in your UPI app. Amazon Web Services doesn't use the instrument for payments until you complete that action.</p> </li> <li> <p> <code>SETUP_IN_PROGRESS</code> – You completed the setup steps, and setup of the instrument is in progress, for example while a Direct Debit or UPI mandate waits for confirmation. Amazon Web Services doesn't use the instrument for payments until setup is complete. You don't need to take action.</p> </li> </ul>
|
|
908
|
+
* @public
|
|
909
|
+
*/
|
|
910
|
+
status: PaymentInstrumentStatus | undefined;
|
|
911
|
+
/**
|
|
912
|
+
* <p>The date and time, in UTC, when the instrument was registered.</p>
|
|
913
|
+
* @public
|
|
914
|
+
*/
|
|
915
|
+
createdAt?: Date | undefined;
|
|
916
|
+
/**
|
|
917
|
+
* <p>The date and time, in UTC, when the instrument was last changed.</p>
|
|
918
|
+
* @public
|
|
919
|
+
*/
|
|
920
|
+
updatedAt?: Date | undefined;
|
|
921
|
+
}
|
|
922
|
+
/**
|
|
923
|
+
* @public
|
|
924
|
+
*/
|
|
925
|
+
export interface ListPaymentInstrumentsResponse {
|
|
926
|
+
/**
|
|
927
|
+
* <p>The payment instruments on your account, one summary for each instrument. This list is empty when your account has no payment instruments.</p>
|
|
928
|
+
* @public
|
|
929
|
+
*/
|
|
930
|
+
paymentInstrumentSummaries: PaymentInstrumentSummary[] | undefined;
|
|
931
|
+
/**
|
|
932
|
+
* <p>The pagination token that indicates the next set of results to retrieve. This value is absent when there are no more results.</p>
|
|
933
|
+
* @public
|
|
934
|
+
*/
|
|
935
|
+
nextToken?: string | undefined;
|
|
936
|
+
}
|