@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,200 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetFinancialRecordRequest, GetFinancialRecordResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetFinancialRecordCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetFinancialRecordCommandInput extends GetFinancialRecordRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetFinancialRecordCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetFinancialRecordCommandOutput extends GetFinancialRecordResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetFinancialRecordCommand_base: {
|
|
22
|
+
new (input: GetFinancialRecordCommandInput): import("@smithy/core/client").CommandImpl<GetFinancialRecordCommandInput, GetFinancialRecordCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (...[input]: [] | [GetFinancialRecordCommandInput]): import("@smithy/core/client").CommandImpl<GetFinancialRecordCommandInput, GetFinancialRecordCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves a single financial record, including the details that are specific to its type. Specify exactly one of the following:</p> <ul> <li> <p>The ID that Amazon Web Services Payments issued for the record, in <code>identifier</code>.</p> </li> <li> <p>The invoice ID that Amazon Web Services Invoicing issued for an invoice or a credit memo, in <code>invoiceIdentifier</code>.</p> </li> </ul> <p>If you specify both or neither, the request fails with <code>ValidationException</code>. If no record on your account matches, the request fails with <code>ResourceNotFoundException</code>.</p> <p>This operation provides strongly consistent reads.</p> <p>To use this operation, you must have Amazon Web Services Identity and Access Management (IAM) permission for both <code>payments:GetFinancialRecord</code> and <code>payments:GetPaymentStatus</code>.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { PaymentsClient, GetFinancialRecordCommand } from "@aws-sdk/client-payments"; // ES Modules import
|
|
32
|
+
* // const { PaymentsClient, GetFinancialRecordCommand } = require("@aws-sdk/client-payments"); // CommonJS import
|
|
33
|
+
* // import type { PaymentsClientConfig } from "@aws-sdk/client-payments";
|
|
34
|
+
* const config = {}; // type is PaymentsClientConfig
|
|
35
|
+
* const client = new PaymentsClient(config);
|
|
36
|
+
* const input = { // GetFinancialRecordRequest
|
|
37
|
+
* identifier: "STRING_VALUE",
|
|
38
|
+
* invoiceIdentifier: "STRING_VALUE",
|
|
39
|
+
* };
|
|
40
|
+
* const command = new GetFinancialRecordCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // GetFinancialRecordResponse
|
|
43
|
+
* // financialRecord: { // FinancialRecord
|
|
44
|
+
* // id: "STRING_VALUE", // required
|
|
45
|
+
* // type: "INVOICE" || "CREDIT_MEMO", // required
|
|
46
|
+
* // businessUnit: { // BusinessUnit
|
|
47
|
+
* // merchantOfRecord: "STRING_VALUE", // required
|
|
48
|
+
* // lineOfBusiness: "AWS_CLOUD_SERVICES" || "PROSERVE_MARKETING_AND_TRAINING" || "AWS_MARKETPLACE",
|
|
49
|
+
* // },
|
|
50
|
+
* // amount: { // CurrencyAmount
|
|
51
|
+
* // value: "STRING_VALUE", // required
|
|
52
|
+
* // currency: "STRING_VALUE", // required
|
|
53
|
+
* // },
|
|
54
|
+
* // balances: { // Balances
|
|
55
|
+
* // outstanding: {
|
|
56
|
+
* // value: "STRING_VALUE", // required
|
|
57
|
+
* // currency: "STRING_VALUE", // required
|
|
58
|
+
* // },
|
|
59
|
+
* // processing: {
|
|
60
|
+
* // value: "STRING_VALUE", // required
|
|
61
|
+
* // currency: "STRING_VALUE", // required
|
|
62
|
+
* // },
|
|
63
|
+
* // settled: {
|
|
64
|
+
* // value: "STRING_VALUE", // required
|
|
65
|
+
* // currency: "STRING_VALUE", // required
|
|
66
|
+
* // },
|
|
67
|
+
* // canceled: {
|
|
68
|
+
* // value: "STRING_VALUE", // required
|
|
69
|
+
* // currency: "STRING_VALUE", // required
|
|
70
|
+
* // },
|
|
71
|
+
* // },
|
|
72
|
+
* // settlementStatus: "OPEN" || "CLOSED", // required
|
|
73
|
+
* // status: "OUTSTANDING" || "PROCESSING" || "SETTLED" || "CANCELED", // required
|
|
74
|
+
* // issuedAt: new Date("TIMESTAMP"), // required
|
|
75
|
+
* // closedAt: new Date("TIMESTAMP"),
|
|
76
|
+
* // details: { // FinancialRecordDetails Union: only one key present
|
|
77
|
+
* // invoiceDetails: { // InvoiceDetails
|
|
78
|
+
* // invoiceId: "STRING_VALUE", // required
|
|
79
|
+
* // dueStatus: "DUE" || "PAST_DUE",
|
|
80
|
+
* // billingPeriod: { // BillingPeriod
|
|
81
|
+
* // startDate: new Date("TIMESTAMP"), // required
|
|
82
|
+
* // endDate: new Date("TIMESTAMP"), // required
|
|
83
|
+
* // },
|
|
84
|
+
* // dueDate: new Date("TIMESTAMP"), // required
|
|
85
|
+
* // paymentTerms: "STRING_VALUE",
|
|
86
|
+
* // invoiceFrequency: "ONE_TIME" || "RECURRING", // required
|
|
87
|
+
* // },
|
|
88
|
+
* // creditMemoDetails: { // CreditMemoDetails
|
|
89
|
+
* // invoiceId: "STRING_VALUE", // required
|
|
90
|
+
* // billingPeriod: {
|
|
91
|
+
* // startDate: new Date("TIMESTAMP"), // required
|
|
92
|
+
* // endDate: new Date("TIMESTAMP"), // required
|
|
93
|
+
* // },
|
|
94
|
+
* // },
|
|
95
|
+
* // },
|
|
96
|
+
* // },
|
|
97
|
+
* // };
|
|
98
|
+
*
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* @param GetFinancialRecordCommandInput - {@link GetFinancialRecordCommandInput}
|
|
102
|
+
* @returns {@link GetFinancialRecordCommandOutput}
|
|
103
|
+
* @see {@link GetFinancialRecordCommandInput} for command's `input` shape.
|
|
104
|
+
* @see {@link GetFinancialRecordCommandOutput} for command's `response` shape.
|
|
105
|
+
* @see {@link PaymentsClientResolvedConfig | config} for PaymentsClient's `config` shape.
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
108
|
+
* <p>The request is denied because you don't have sufficient access to perform this operation. Verify that you have the required permissions and try again. This error is also returned, instead of <code>ResourceNotFoundException</code>, when you aren't authorized for the resource, so the response doesn't reveal whether the resource exists.</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link InternalServerException} (server fault)
|
|
111
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. Retry your request.</p>
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
114
|
+
* <p>The requested resource couldn't be found. Verify that the resource ID is correct. This error is returned only when you're authorized for the resource.</p>
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
117
|
+
* <p>The request was denied due to request throttling. Reduce the frequency of your requests and try again.</p>
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link ValidationException} (client fault)
|
|
120
|
+
* <p>The request isn't valid. Check <code>reason</code> and <code>fieldList</code> for the cause, correct the request, and try again.</p>
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link PaymentsServiceException}
|
|
123
|
+
* <p>Base exception class for all service exceptions from Payments service.</p>
|
|
124
|
+
*
|
|
125
|
+
*
|
|
126
|
+
* @example Invoke GetFinancialRecord
|
|
127
|
+
* ```javascript
|
|
128
|
+
* //
|
|
129
|
+
* const input = {
|
|
130
|
+
* identifier: "INV-1234-5678-9012-3456"
|
|
131
|
+
* };
|
|
132
|
+
* const command = new GetFinancialRecordCommand(input);
|
|
133
|
+
* const response = await client.send(command);
|
|
134
|
+
* /* response is
|
|
135
|
+
* {
|
|
136
|
+
* financialRecord: {
|
|
137
|
+
* amount: {
|
|
138
|
+
* currency: "USD",
|
|
139
|
+
* value: "1000.24"
|
|
140
|
+
* },
|
|
141
|
+
* balances: {
|
|
142
|
+
* canceled: {
|
|
143
|
+
* currency: "USD",
|
|
144
|
+
* value: "0.0"
|
|
145
|
+
* },
|
|
146
|
+
* outstanding: {
|
|
147
|
+
* currency: "USD",
|
|
148
|
+
* value: "0.0"
|
|
149
|
+
* },
|
|
150
|
+
* processing: {
|
|
151
|
+
* currency: "USD",
|
|
152
|
+
* value: "0.0"
|
|
153
|
+
* },
|
|
154
|
+
* settled: {
|
|
155
|
+
* currency: "USD",
|
|
156
|
+
* value: "1000.24"
|
|
157
|
+
* }
|
|
158
|
+
* },
|
|
159
|
+
* businessUnit: {
|
|
160
|
+
* lineOfBusiness: "AWS_CLOUD_SERVICES",
|
|
161
|
+
* merchantOfRecord: "Amazon Web Services, Inc."
|
|
162
|
+
* },
|
|
163
|
+
* closedAt: 1736208000,
|
|
164
|
+
* details: {
|
|
165
|
+
* invoiceDetails: {
|
|
166
|
+
* billingPeriod: {
|
|
167
|
+
* endDate: 1735689600,
|
|
168
|
+
* startDate: 1733011200
|
|
169
|
+
* },
|
|
170
|
+
* dueDate: 1738281600,
|
|
171
|
+
* invoiceFrequency: "RECURRING",
|
|
172
|
+
* invoiceId: "536462537364",
|
|
173
|
+
* paymentTerms: "Net30"
|
|
174
|
+
* }
|
|
175
|
+
* },
|
|
176
|
+
* id: "INV-1234-5678-9012-3456",
|
|
177
|
+
* issuedAt: 1735689600,
|
|
178
|
+
* settlementStatus: "CLOSED",
|
|
179
|
+
* status: "SETTLED",
|
|
180
|
+
* type: "INVOICE"
|
|
181
|
+
* }
|
|
182
|
+
* }
|
|
183
|
+
* *\/
|
|
184
|
+
* ```
|
|
185
|
+
*
|
|
186
|
+
* @public
|
|
187
|
+
*/
|
|
188
|
+
export declare class GetFinancialRecordCommand extends GetFinancialRecordCommand_base {
|
|
189
|
+
/** @internal type navigation helper, not in runtime. */
|
|
190
|
+
protected static __types: {
|
|
191
|
+
api: {
|
|
192
|
+
input: GetFinancialRecordRequest;
|
|
193
|
+
output: GetFinancialRecordResponse;
|
|
194
|
+
};
|
|
195
|
+
sdk: {
|
|
196
|
+
input: GetFinancialRecordCommandInput;
|
|
197
|
+
output: GetFinancialRecordCommandOutput;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { GetPaymentInstrumentRequest, GetPaymentInstrumentResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link GetPaymentInstrumentCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface GetPaymentInstrumentCommandInput extends GetPaymentInstrumentRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link GetPaymentInstrumentCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface GetPaymentInstrumentCommandOutput extends GetPaymentInstrumentResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const GetPaymentInstrumentCommand_base: {
|
|
22
|
+
new (input: GetPaymentInstrumentCommandInput): import("@smithy/core/client").CommandImpl<GetPaymentInstrumentCommandInput, GetPaymentInstrumentCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: GetPaymentInstrumentCommandInput): import("@smithy/core/client").CommandImpl<GetPaymentInstrumentCommandInput, GetPaymentInstrumentCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Retrieves a payment instrument on your account, including the details that are specific to its payment method, such as a card's last four digits. Identify the instrument by its Amazon Resource Name (ARN) or by its ID. <code>ListPaymentInstruments</code> returns both.</p> <p>To use this operation, you must have Amazon Web Services Identity and Access Management (IAM) permission for <code>payments:GetPaymentInstrument</code>. You can scope this permission to the instrument's ARN.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { PaymentsClient, GetPaymentInstrumentCommand } from "@aws-sdk/client-payments"; // ES Modules import
|
|
32
|
+
* // const { PaymentsClient, GetPaymentInstrumentCommand } = require("@aws-sdk/client-payments"); // CommonJS import
|
|
33
|
+
* // import type { PaymentsClientConfig } from "@aws-sdk/client-payments";
|
|
34
|
+
* const config = {}; // type is PaymentsClientConfig
|
|
35
|
+
* const client = new PaymentsClient(config);
|
|
36
|
+
* const input = { // GetPaymentInstrumentRequest
|
|
37
|
+
* identifier: "STRING_VALUE", // required
|
|
38
|
+
* };
|
|
39
|
+
* const command = new GetPaymentInstrumentCommand(input);
|
|
40
|
+
* const response = await client.send(command);
|
|
41
|
+
* // { // GetPaymentInstrumentResponse
|
|
42
|
+
* // paymentInstrument: { // PaymentInstrument
|
|
43
|
+
* // arn: "STRING_VALUE", // required
|
|
44
|
+
* // paymentMethod: "CARD" || "US_ACH_BANK_ACCOUNT" || "SEPA_BANK_ACCOUNT" || "UK_BACS_BANK_ACCOUNT" || "IN_NET_BANKING" || "CN_BANK_REDIRECT" || "UPI" || "PIX" || "PAY_BY_INVOICE", // required
|
|
45
|
+
* // status: "ACTIVE" || "PENDING_SETUP" || "SETUP_IN_PROGRESS" || "INVALID", // required
|
|
46
|
+
* // details: { // PaymentInstrumentDetails Union: only one key present
|
|
47
|
+
* // card: { // Card
|
|
48
|
+
* // brand: "VISA" || "MASTERCARD" || "AMEX" || "DISCOVER" || "JCB" || "RUPAY" || "CHINA_UNIONPAY",
|
|
49
|
+
* // last4: "STRING_VALUE", // required
|
|
50
|
+
* // expirationMonth: Number("int"),
|
|
51
|
+
* // expirationYear: Number("int"),
|
|
52
|
+
* // cardType: "CREDIT" || "DEBIT",
|
|
53
|
+
* // issuingBank: "STRING_VALUE",
|
|
54
|
+
* // issuerCountry: "STRING_VALUE",
|
|
55
|
+
* // },
|
|
56
|
+
* // usAchBankAccount: { // UsAchBankAccount
|
|
57
|
+
* // accountNumberTail: "STRING_VALUE",
|
|
58
|
+
* // accountHolderName: "STRING_VALUE",
|
|
59
|
+
* // bankName: "STRING_VALUE",
|
|
60
|
+
* // accountType: "CHECKING" || "SAVINGS",
|
|
61
|
+
* // },
|
|
62
|
+
* // sepaBankAccount: { // SepaBankAccount
|
|
63
|
+
* // accountNumberTail: "STRING_VALUE",
|
|
64
|
+
* // accountHolderName: "STRING_VALUE",
|
|
65
|
+
* // bankName: "STRING_VALUE",
|
|
66
|
+
* // accountType: "CHECKING" || "SAVINGS",
|
|
67
|
+
* // },
|
|
68
|
+
* // ukBacsBankAccount: { // UkBacsBankAccount
|
|
69
|
+
* // accountNumberTail: "STRING_VALUE",
|
|
70
|
+
* // accountHolderName: "STRING_VALUE",
|
|
71
|
+
* // bankName: "STRING_VALUE",
|
|
72
|
+
* // accountType: "CHECKING" || "SAVINGS",
|
|
73
|
+
* // },
|
|
74
|
+
* // inNetBanking: { // InNetBanking
|
|
75
|
+
* // bankCode: "STRING_VALUE", // required
|
|
76
|
+
* // bankName: "STRING_VALUE",
|
|
77
|
+
* // },
|
|
78
|
+
* // cnBankRedirect: { // CnBankRedirect
|
|
79
|
+
* // bankCode: "STRING_VALUE",
|
|
80
|
+
* // },
|
|
81
|
+
* // upi: { // Upi
|
|
82
|
+
* // appName: "STRING_VALUE",
|
|
83
|
+
* // },
|
|
84
|
+
* // },
|
|
85
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
86
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
87
|
+
* // },
|
|
88
|
+
* // };
|
|
89
|
+
*
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @param GetPaymentInstrumentCommandInput - {@link GetPaymentInstrumentCommandInput}
|
|
93
|
+
* @returns {@link GetPaymentInstrumentCommandOutput}
|
|
94
|
+
* @see {@link GetPaymentInstrumentCommandInput} for command's `input` shape.
|
|
95
|
+
* @see {@link GetPaymentInstrumentCommandOutput} for command's `response` shape.
|
|
96
|
+
* @see {@link PaymentsClientResolvedConfig | config} for PaymentsClient's `config` shape.
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
99
|
+
* <p>The request is denied because you don't have sufficient access to perform this operation. Verify that you have the required permissions and try again. This error is also returned, instead of <code>ResourceNotFoundException</code>, when you aren't authorized for the resource, so the response doesn't reveal whether the resource exists.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link InternalServerException} (server fault)
|
|
102
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. Retry your request.</p>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
105
|
+
* <p>The requested resource couldn't be found. Verify that the resource ID is correct. This error is returned only when you're authorized for the resource.</p>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
108
|
+
* <p>The request was denied due to request throttling. Reduce the frequency of your requests and try again.</p>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link ValidationException} (client fault)
|
|
111
|
+
* <p>The request isn't valid. Check <code>reason</code> and <code>fieldList</code> for the cause, correct the request, and try again.</p>
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link PaymentsServiceException}
|
|
114
|
+
* <p>Base exception class for all service exceptions from Payments service.</p>
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
* @example Invoke GetPaymentInstrument
|
|
118
|
+
* ```javascript
|
|
119
|
+
* //
|
|
120
|
+
* const input = {
|
|
121
|
+
* identifier: "arn:aws:payments::123456789012:payment-instrument:1a2b3c4d-5e6f-7a8b-9c0d-111122223333"
|
|
122
|
+
* };
|
|
123
|
+
* const command = new GetPaymentInstrumentCommand(input);
|
|
124
|
+
* const response = await client.send(command);
|
|
125
|
+
* /* response is
|
|
126
|
+
* {
|
|
127
|
+
* paymentInstrument: {
|
|
128
|
+
* arn: "arn:aws:payments::123456789012:payment-instrument:1a2b3c4d-5e6f-7a8b-9c0d-111122223333",
|
|
129
|
+
* createdAt: 1735689600,
|
|
130
|
+
* details: {
|
|
131
|
+
* card: {
|
|
132
|
+
* brand: "VISA",
|
|
133
|
+
* cardType: "CREDIT",
|
|
134
|
+
* expirationMonth: 7,
|
|
135
|
+
* expirationYear: 2030,
|
|
136
|
+
* issuerCountry: "US",
|
|
137
|
+
* issuingBank: "Example Bank",
|
|
138
|
+
* last4: "1111"
|
|
139
|
+
* }
|
|
140
|
+
* },
|
|
141
|
+
* paymentMethod: "CARD",
|
|
142
|
+
* status: "ACTIVE",
|
|
143
|
+
* updatedAt: 1738368000
|
|
144
|
+
* }
|
|
145
|
+
* }
|
|
146
|
+
* *\/
|
|
147
|
+
* ```
|
|
148
|
+
*
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
export declare class GetPaymentInstrumentCommand extends GetPaymentInstrumentCommand_base {
|
|
152
|
+
/** @internal type navigation helper, not in runtime. */
|
|
153
|
+
protected static __types: {
|
|
154
|
+
api: {
|
|
155
|
+
input: GetPaymentInstrumentRequest;
|
|
156
|
+
output: GetPaymentInstrumentResponse;
|
|
157
|
+
};
|
|
158
|
+
sdk: {
|
|
159
|
+
input: GetPaymentInstrumentCommandInput;
|
|
160
|
+
output: GetPaymentInstrumentCommandOutput;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { ListFinancialRecordsRequest, ListFinancialRecordsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link ListFinancialRecordsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface ListFinancialRecordsCommandInput extends ListFinancialRecordsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link ListFinancialRecordsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface ListFinancialRecordsCommandOutput extends ListFinancialRecordsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const ListFinancialRecordsCommand_base: {
|
|
22
|
+
new (input: ListFinancialRecordsCommandInput): import("@smithy/core/client").CommandImpl<ListFinancialRecordsCommandInput, ListFinancialRecordsCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: ListFinancialRecordsCommandInput): import("@smithy/core/client").CommandImpl<ListFinancialRecordsCommandInput, ListFinancialRecordsCommandOutput, import("..").PaymentsClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Lists the financial records on your account, with the newest first by default. A financial record is an invoice or a credit memo. You must specify at least one record type in <code>types</code>. You can narrow the results further by settlement status and issue date. This operation returns summaries. To get the details that are specific to a record's type, use <code>GetFinancialRecord</code> or <code>BatchGetFinancialRecord</code>. Results are paginated. Use <code>nextToken</code> to retrieve more results.</p> <p>To use this operation, you must have Amazon Web Services Identity and Access Management (IAM) permission for both <code>payments:ListFinancialRecords</code> and <code>payments:GetPaymentStatus</code>.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { PaymentsClient, ListFinancialRecordsCommand } from "@aws-sdk/client-payments"; // ES Modules import
|
|
32
|
+
* // const { PaymentsClient, ListFinancialRecordsCommand } = require("@aws-sdk/client-payments"); // CommonJS import
|
|
33
|
+
* // import type { PaymentsClientConfig } from "@aws-sdk/client-payments";
|
|
34
|
+
* const config = {}; // type is PaymentsClientConfig
|
|
35
|
+
* const client = new PaymentsClient(config);
|
|
36
|
+
* const input = { // ListFinancialRecordsRequest
|
|
37
|
+
* types: [ // FinancialRecordTypeList // required
|
|
38
|
+
* "INVOICE" || "CREDIT_MEMO",
|
|
39
|
+
* ],
|
|
40
|
+
* settlementStatuses: [ // SettlementStatusList
|
|
41
|
+
* "OPEN" || "CLOSED",
|
|
42
|
+
* ],
|
|
43
|
+
* issuedAfter: new Date("TIMESTAMP"),
|
|
44
|
+
* issuedBefore: new Date("TIMESTAMP"),
|
|
45
|
+
* sortBy: "ISSUED_AT",
|
|
46
|
+
* sortOrder: "ASCENDING" || "DESCENDING",
|
|
47
|
+
* nextToken: "STRING_VALUE",
|
|
48
|
+
* maxResults: Number("int"),
|
|
49
|
+
* };
|
|
50
|
+
* const command = new ListFinancialRecordsCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // { // ListFinancialRecordsResponse
|
|
53
|
+
* // financialRecordSummaries: [ // FinancialRecordSummaryList // required
|
|
54
|
+
* // { // FinancialRecordSummary
|
|
55
|
+
* // id: "STRING_VALUE", // required
|
|
56
|
+
* // type: "INVOICE" || "CREDIT_MEMO", // required
|
|
57
|
+
* // businessUnit: { // BusinessUnit
|
|
58
|
+
* // merchantOfRecord: "STRING_VALUE", // required
|
|
59
|
+
* // lineOfBusiness: "AWS_CLOUD_SERVICES" || "PROSERVE_MARKETING_AND_TRAINING" || "AWS_MARKETPLACE",
|
|
60
|
+
* // },
|
|
61
|
+
* // amount: { // CurrencyAmount
|
|
62
|
+
* // value: "STRING_VALUE", // required
|
|
63
|
+
* // currency: "STRING_VALUE", // required
|
|
64
|
+
* // },
|
|
65
|
+
* // balances: { // Balances
|
|
66
|
+
* // outstanding: {
|
|
67
|
+
* // value: "STRING_VALUE", // required
|
|
68
|
+
* // currency: "STRING_VALUE", // required
|
|
69
|
+
* // },
|
|
70
|
+
* // processing: {
|
|
71
|
+
* // value: "STRING_VALUE", // required
|
|
72
|
+
* // currency: "STRING_VALUE", // required
|
|
73
|
+
* // },
|
|
74
|
+
* // settled: {
|
|
75
|
+
* // value: "STRING_VALUE", // required
|
|
76
|
+
* // currency: "STRING_VALUE", // required
|
|
77
|
+
* // },
|
|
78
|
+
* // canceled: {
|
|
79
|
+
* // value: "STRING_VALUE", // required
|
|
80
|
+
* // currency: "STRING_VALUE", // required
|
|
81
|
+
* // },
|
|
82
|
+
* // },
|
|
83
|
+
* // settlementStatus: "OPEN" || "CLOSED", // required
|
|
84
|
+
* // status: "OUTSTANDING" || "PROCESSING" || "SETTLED" || "CANCELED", // required
|
|
85
|
+
* // issuedAt: new Date("TIMESTAMP"), // required
|
|
86
|
+
* // closedAt: new Date("TIMESTAMP"),
|
|
87
|
+
* // },
|
|
88
|
+
* // ],
|
|
89
|
+
* // nextToken: "STRING_VALUE",
|
|
90
|
+
* // };
|
|
91
|
+
*
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
94
|
+
* @param ListFinancialRecordsCommandInput - {@link ListFinancialRecordsCommandInput}
|
|
95
|
+
* @returns {@link ListFinancialRecordsCommandOutput}
|
|
96
|
+
* @see {@link ListFinancialRecordsCommandInput} for command's `input` shape.
|
|
97
|
+
* @see {@link ListFinancialRecordsCommandOutput} for command's `response` shape.
|
|
98
|
+
* @see {@link PaymentsClientResolvedConfig | config} for PaymentsClient's `config` shape.
|
|
99
|
+
*
|
|
100
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
101
|
+
* <p>The request is denied because you don't have sufficient access to perform this operation. Verify that you have the required permissions and try again. This error is also returned, instead of <code>ResourceNotFoundException</code>, when you aren't authorized for the resource, so the response doesn't reveal whether the resource exists.</p>
|
|
102
|
+
*
|
|
103
|
+
* @throws {@link InternalServerException} (server fault)
|
|
104
|
+
* <p>The request processing failed because of an unknown error, exception, or failure. Retry your request.</p>
|
|
105
|
+
*
|
|
106
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
107
|
+
* <p>The request was denied due to request throttling. Reduce the frequency of your requests and try again.</p>
|
|
108
|
+
*
|
|
109
|
+
* @throws {@link ValidationException} (client fault)
|
|
110
|
+
* <p>The request isn't valid. Check <code>reason</code> and <code>fieldList</code> for the cause, correct the request, and try again.</p>
|
|
111
|
+
*
|
|
112
|
+
* @throws {@link PaymentsServiceException}
|
|
113
|
+
* <p>Base exception class for all service exceptions from Payments service.</p>
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
* @example Invoke ListFinancialRecords
|
|
117
|
+
* ```javascript
|
|
118
|
+
* //
|
|
119
|
+
* const input = {
|
|
120
|
+
* maxResults: 5,
|
|
121
|
+
* settlementStatuses: [
|
|
122
|
+
* "CLOSED"
|
|
123
|
+
* ],
|
|
124
|
+
* sortBy: "ISSUED_AT",
|
|
125
|
+
* sortOrder: "DESCENDING",
|
|
126
|
+
* types: [
|
|
127
|
+
* "INVOICE"
|
|
128
|
+
* ]
|
|
129
|
+
* };
|
|
130
|
+
* const command = new ListFinancialRecordsCommand(input);
|
|
131
|
+
* const response = await client.send(command);
|
|
132
|
+
* /* response is
|
|
133
|
+
* {
|
|
134
|
+
* financialRecordSummaries: [
|
|
135
|
+
* {
|
|
136
|
+
* amount: {
|
|
137
|
+
* currency: "USD",
|
|
138
|
+
* value: "1000.24"
|
|
139
|
+
* },
|
|
140
|
+
* balances: {
|
|
141
|
+
* canceled: {
|
|
142
|
+
* currency: "USD",
|
|
143
|
+
* value: "0.0"
|
|
144
|
+
* },
|
|
145
|
+
* outstanding: {
|
|
146
|
+
* currency: "USD",
|
|
147
|
+
* value: "0.0"
|
|
148
|
+
* },
|
|
149
|
+
* processing: {
|
|
150
|
+
* currency: "USD",
|
|
151
|
+
* value: "0.0"
|
|
152
|
+
* },
|
|
153
|
+
* settled: {
|
|
154
|
+
* currency: "USD",
|
|
155
|
+
* value: "1000.24"
|
|
156
|
+
* }
|
|
157
|
+
* },
|
|
158
|
+
* businessUnit: {
|
|
159
|
+
* lineOfBusiness: "AWS_CLOUD_SERVICES",
|
|
160
|
+
* merchantOfRecord: "Amazon Web Services, Inc."
|
|
161
|
+
* },
|
|
162
|
+
* closedAt: 1736208000,
|
|
163
|
+
* id: "INV-1234-5678-9012-3456",
|
|
164
|
+
* issuedAt: 1735689600,
|
|
165
|
+
* settlementStatus: "CLOSED",
|
|
166
|
+
* status: "SETTLED",
|
|
167
|
+
* type: "INVOICE"
|
|
168
|
+
* }
|
|
169
|
+
* ]
|
|
170
|
+
* }
|
|
171
|
+
* *\/
|
|
172
|
+
* ```
|
|
173
|
+
*
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
export declare class ListFinancialRecordsCommand extends ListFinancialRecordsCommand_base {
|
|
177
|
+
/** @internal type navigation helper, not in runtime. */
|
|
178
|
+
protected static __types: {
|
|
179
|
+
api: {
|
|
180
|
+
input: ListFinancialRecordsRequest;
|
|
181
|
+
output: ListFinancialRecordsResponse;
|
|
182
|
+
};
|
|
183
|
+
sdk: {
|
|
184
|
+
input: ListFinancialRecordsCommandInput;
|
|
185
|
+
output: ListFinancialRecordsCommandOutput;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
}
|