@aws-sdk/client-payments 0.0.0-stage → 3.1174.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,972 @@
|
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, getDefaultSocketTimeout, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
2
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createAggregatedClient } = require("@smithy/core/client");
|
|
4
|
+
const { Command: $Command } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = $Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
13
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
14
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
15
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
16
|
+
const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
|
|
17
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
18
|
+
|
|
19
|
+
const defaultPaymentsHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
20
|
+
return {
|
|
21
|
+
operation: getSmithyContext(context).operation,
|
|
22
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
23
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
24
|
+
})(),
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
28
|
+
return {
|
|
29
|
+
schemeId: "aws.auth#sigv4",
|
|
30
|
+
signingProperties: {
|
|
31
|
+
name: "payments",
|
|
32
|
+
region: authParameters.region,
|
|
33
|
+
},
|
|
34
|
+
propertiesExtractor: (config, context) => ({
|
|
35
|
+
signingProperties: {
|
|
36
|
+
config,
|
|
37
|
+
context,
|
|
38
|
+
},
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
const defaultPaymentsHttpAuthSchemeProvider = (authParameters) => {
|
|
43
|
+
const options = [];
|
|
44
|
+
switch (authParameters.operation) {
|
|
45
|
+
default: {
|
|
46
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return options;
|
|
50
|
+
};
|
|
51
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
52
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
53
|
+
return Object.assign(config_0, {
|
|
54
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const resolveClientEndpointParameters = (options) => {
|
|
59
|
+
return Object.assign(options, {
|
|
60
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
61
|
+
defaultSigningName: "payments",
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
const commonParams = {
|
|
65
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
66
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
67
|
+
Region: { type: "builtInParams", name: "region" },
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
var version = "3.0.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const a = "isSet", b = { "ref": "Endpoint" }, c = { "authSchemes": [{ "name": "sigv4", "signingRegion": "{PartitionResult#implicitGlobalRegion}" }] }, d = [{ "ref": "Region" }];
|
|
75
|
+
const _data = {
|
|
76
|
+
conditions: [
|
|
77
|
+
[a, [b]],
|
|
78
|
+
[a, d],
|
|
79
|
+
["aws.partition", d, "PartitionResult"],
|
|
80
|
+
["booleanEquals", [{ ref: "UseFIPS" }, true]]
|
|
81
|
+
],
|
|
82
|
+
results: [
|
|
83
|
+
[-1],
|
|
84
|
+
[-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
85
|
+
[b, {}],
|
|
86
|
+
["https://payments-fips.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", c],
|
|
87
|
+
["https://payments.{PartitionResult#implicitGlobalRegion}.{PartitionResult#dualStackDnsSuffix}", c],
|
|
88
|
+
[-1, "Invalid Configuration: Missing Region"]
|
|
89
|
+
]
|
|
90
|
+
};
|
|
91
|
+
const root = 2;
|
|
92
|
+
const r = 100_000_000;
|
|
93
|
+
const nodes = new Int32Array([
|
|
94
|
+
-1, 1, -1,
|
|
95
|
+
0, 6, 3,
|
|
96
|
+
1, 4, r + 5,
|
|
97
|
+
2, 5, r + 5,
|
|
98
|
+
3, r + 3, r + 4,
|
|
99
|
+
3, r + 1, r + 2,
|
|
100
|
+
]);
|
|
101
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
102
|
+
|
|
103
|
+
const cache = new EndpointCache({
|
|
104
|
+
size: 50,
|
|
105
|
+
params: ["Endpoint", "Region", "UseFIPS"],
|
|
106
|
+
});
|
|
107
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
108
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
109
|
+
endpointParams: endpointParams,
|
|
110
|
+
logger: context.logger,
|
|
111
|
+
}));
|
|
112
|
+
};
|
|
113
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
114
|
+
|
|
115
|
+
class PaymentsServiceException extends ServiceException {
|
|
116
|
+
static shapeId = "smithy.ts.sdk.synthetic.com.amazonaws.payments#PaymentsServiceException";
|
|
117
|
+
constructor(options) {
|
|
118
|
+
super(options);
|
|
119
|
+
Object.setPrototypeOf(this, PaymentsServiceException.prototype);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
class AccessDeniedException extends PaymentsServiceException {
|
|
124
|
+
static shapeId = "com.amazonaws.payments#AccessDeniedException";
|
|
125
|
+
name = "AccessDeniedException";
|
|
126
|
+
$fault = "client";
|
|
127
|
+
reason;
|
|
128
|
+
constructor(opts) {
|
|
129
|
+
super({
|
|
130
|
+
name: "AccessDeniedException",
|
|
131
|
+
$fault: "client",
|
|
132
|
+
...opts,
|
|
133
|
+
});
|
|
134
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
135
|
+
this.reason = opts.reason;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
class InternalServerException extends PaymentsServiceException {
|
|
139
|
+
static shapeId = "com.amazonaws.payments#InternalServerException";
|
|
140
|
+
name = "InternalServerException";
|
|
141
|
+
$fault = "server";
|
|
142
|
+
$retryable = {};
|
|
143
|
+
retryAfterSeconds;
|
|
144
|
+
constructor(opts) {
|
|
145
|
+
super({
|
|
146
|
+
name: "InternalServerException",
|
|
147
|
+
$fault: "server",
|
|
148
|
+
...opts,
|
|
149
|
+
});
|
|
150
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
151
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
class ThrottlingException extends PaymentsServiceException {
|
|
155
|
+
static shapeId = "com.amazonaws.payments#ThrottlingException";
|
|
156
|
+
name = "ThrottlingException";
|
|
157
|
+
$fault = "client";
|
|
158
|
+
$retryable = {
|
|
159
|
+
throttling: true,
|
|
160
|
+
};
|
|
161
|
+
retryAfterSeconds;
|
|
162
|
+
constructor(opts) {
|
|
163
|
+
super({
|
|
164
|
+
name: "ThrottlingException",
|
|
165
|
+
$fault: "client",
|
|
166
|
+
...opts,
|
|
167
|
+
});
|
|
168
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
169
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
class ValidationException extends PaymentsServiceException {
|
|
173
|
+
static shapeId = "com.amazonaws.payments#ValidationException";
|
|
174
|
+
name = "ValidationException";
|
|
175
|
+
$fault = "client";
|
|
176
|
+
reason;
|
|
177
|
+
fieldList;
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "ValidationException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
185
|
+
this.reason = opts.reason;
|
|
186
|
+
this.fieldList = opts.fieldList;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
class ResourceNotFoundException extends PaymentsServiceException {
|
|
190
|
+
static shapeId = "com.amazonaws.payments#ResourceNotFoundException";
|
|
191
|
+
name = "ResourceNotFoundException";
|
|
192
|
+
$fault = "client";
|
|
193
|
+
resourceId;
|
|
194
|
+
resourceType;
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "ResourceNotFoundException",
|
|
198
|
+
$fault: "client",
|
|
199
|
+
...opts,
|
|
200
|
+
});
|
|
201
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
202
|
+
this.resourceId = opts.resourceId;
|
|
203
|
+
this.resourceType = opts.resourceType;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const _AB = "AccountBalance";
|
|
208
|
+
const _ABL = "AccountBalanceList";
|
|
209
|
+
const _ADE = "AccessDeniedException";
|
|
210
|
+
const _AHN = "AccountHolderName";
|
|
211
|
+
const _B = "Balances";
|
|
212
|
+
const _BANT = "BankAccountNumberTail";
|
|
213
|
+
const _BGFR = "BatchGetFinancialRecord";
|
|
214
|
+
const _BGFRR = "BatchGetFinancialRecordRequest";
|
|
215
|
+
const _BGFRRa = "BatchGetFinancialRecordResponse";
|
|
216
|
+
const _BP = "BillingPeriod";
|
|
217
|
+
const _BU = "BusinessUnit";
|
|
218
|
+
const _C = "Card";
|
|
219
|
+
const _CA = "CurrencyAmount";
|
|
220
|
+
const _CBR = "CnBankRedirect";
|
|
221
|
+
const _CMD = "CreditMemoDetails";
|
|
222
|
+
const _EM = "ExpirationMonth";
|
|
223
|
+
const _EY = "ExpirationYear";
|
|
224
|
+
const _FR = "FinancialRecord";
|
|
225
|
+
const _FRD = "FinancialRecordDetails";
|
|
226
|
+
const _FRE = "FinancialRecordError";
|
|
227
|
+
const _FREL = "FinancialRecordErrorList";
|
|
228
|
+
const _FRK = "FinancialRecordKey";
|
|
229
|
+
const _FRKL = "FinancialRecordKeyList";
|
|
230
|
+
const _FRL = "FinancialRecordList";
|
|
231
|
+
const _FRS = "FinancialRecordSummary";
|
|
232
|
+
const _FRSL = "FinancialRecordSummaryList";
|
|
233
|
+
const _GAB = "GetAccountBalance";
|
|
234
|
+
const _GABR = "GetAccountBalanceRequest";
|
|
235
|
+
const _GABRe = "GetAccountBalanceResponse";
|
|
236
|
+
const _GFR = "GetFinancialRecord";
|
|
237
|
+
const _GFRR = "GetFinancialRecordRequest";
|
|
238
|
+
const _GFRRe = "GetFinancialRecordResponse";
|
|
239
|
+
const _GPI = "GetPaymentInstrument";
|
|
240
|
+
const _GPIR = "GetPaymentInstrumentRequest";
|
|
241
|
+
const _GPIRe = "GetPaymentInstrumentResponse";
|
|
242
|
+
const _ID = "InvoiceDetails";
|
|
243
|
+
const _INB = "InNetBanking";
|
|
244
|
+
const _ISE = "InternalServerException";
|
|
245
|
+
const _L = "Last4";
|
|
246
|
+
const _LFR = "ListFinancialRecords";
|
|
247
|
+
const _LFRR = "ListFinancialRecordsRequest";
|
|
248
|
+
const _LFRRi = "ListFinancialRecordsResponse";
|
|
249
|
+
const _LPI = "ListPaymentInstruments";
|
|
250
|
+
const _LPIR = "ListPaymentInstrumentsRequest";
|
|
251
|
+
const _LPIRi = "ListPaymentInstrumentsResponse";
|
|
252
|
+
const _PI = "PaymentInstrument";
|
|
253
|
+
const _PID = "PaymentInstrumentDetails";
|
|
254
|
+
const _PIS = "PaymentInstrumentSummary";
|
|
255
|
+
const _PISL = "PaymentInstrumentSummaryList";
|
|
256
|
+
const _RNFE = "ResourceNotFoundException";
|
|
257
|
+
const _SBA = "SepaBankAccount";
|
|
258
|
+
const _TE = "ThrottlingException";
|
|
259
|
+
const _U = "Upi";
|
|
260
|
+
const _UABA = "UsAchBankAccount";
|
|
261
|
+
const _UBBA = "UkBacsBankAccount";
|
|
262
|
+
const _VE = "ValidationException";
|
|
263
|
+
const _VEF = "ValidationExceptionField";
|
|
264
|
+
const _VEFL = "ValidationExceptionFieldList";
|
|
265
|
+
const _a = "amount";
|
|
266
|
+
const _aB = "accountBalances";
|
|
267
|
+
const _aHN = "accountHolderName";
|
|
268
|
+
const _aN = "appName";
|
|
269
|
+
const _aNT = "accountNumberTail";
|
|
270
|
+
const _aT = "accountType";
|
|
271
|
+
const _ar = "arn";
|
|
272
|
+
const _b = "brand";
|
|
273
|
+
const _bC = "bankCode";
|
|
274
|
+
const _bN = "bankName";
|
|
275
|
+
const _bP = "billingPeriod";
|
|
276
|
+
const _bT = "balanceType";
|
|
277
|
+
const _bU = "businessUnit";
|
|
278
|
+
const _ba = "balances";
|
|
279
|
+
const _c = "client";
|
|
280
|
+
const _cA = "closedAt";
|
|
281
|
+
const _cAr = "createdAt";
|
|
282
|
+
const _cBR = "cnBankRedirect";
|
|
283
|
+
const _cMD = "creditMemoDetails";
|
|
284
|
+
const _cT = "cardType";
|
|
285
|
+
const _ca = "canceled";
|
|
286
|
+
const _car = "card";
|
|
287
|
+
const _co = "code";
|
|
288
|
+
const _cu = "currency";
|
|
289
|
+
const _d = "details";
|
|
290
|
+
const _dD = "dueDate";
|
|
291
|
+
const _dS = "dueStatus";
|
|
292
|
+
const _e = "error";
|
|
293
|
+
const _eD = "endDate";
|
|
294
|
+
const _eM = "expirationMonth";
|
|
295
|
+
const _eY = "expirationYear";
|
|
296
|
+
const _er = "errors";
|
|
297
|
+
const _fL = "fieldList";
|
|
298
|
+
const _fR = "financialRecords";
|
|
299
|
+
const _fRS = "financialRecordSummaries";
|
|
300
|
+
const _fRi = "financialRecord";
|
|
301
|
+
const _hE = "httpError";
|
|
302
|
+
const _i = "id";
|
|
303
|
+
const _iA = "issuedAt";
|
|
304
|
+
const _iAs = "issuedAfter";
|
|
305
|
+
const _iB = "issuingBank";
|
|
306
|
+
const _iBs = "issuedBefore";
|
|
307
|
+
const _iC = "issuerCountry";
|
|
308
|
+
const _iD = "invoiceDetails";
|
|
309
|
+
const _iF = "invoiceFrequency";
|
|
310
|
+
const _iI = "invoiceId";
|
|
311
|
+
const _iIn = "invoiceIdentifier";
|
|
312
|
+
const _iNB = "inNetBanking";
|
|
313
|
+
const _id = "identifier";
|
|
314
|
+
const _k = "keys";
|
|
315
|
+
const _ke = "key";
|
|
316
|
+
const _l = "last4";
|
|
317
|
+
const _lOB = "lineOfBusiness";
|
|
318
|
+
const _m = "message";
|
|
319
|
+
const _mOR = "merchantOfRecord";
|
|
320
|
+
const _mR = "maxResults";
|
|
321
|
+
const _n = "name";
|
|
322
|
+
const _nT = "nextToken";
|
|
323
|
+
const _o = "outstanding";
|
|
324
|
+
const _p = "processing";
|
|
325
|
+
const _pI = "paymentInstrument";
|
|
326
|
+
const _pIS = "paymentInstrumentSummaries";
|
|
327
|
+
const _pM = "paymentMethod";
|
|
328
|
+
const _pT = "paymentTerms";
|
|
329
|
+
const _r = "reason";
|
|
330
|
+
const _rAS = "retryAfterSeconds";
|
|
331
|
+
const _rI = "resourceId";
|
|
332
|
+
const _rT = "resourceType";
|
|
333
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.payments";
|
|
334
|
+
const _sB = "sortBy";
|
|
335
|
+
const _sBA = "sepaBankAccount";
|
|
336
|
+
const _sD = "startDate";
|
|
337
|
+
const _sO = "sortOrder";
|
|
338
|
+
const _sS = "settlementStatus";
|
|
339
|
+
const _sSe = "settlementStatuses";
|
|
340
|
+
const _se = "server";
|
|
341
|
+
const _set = "settled";
|
|
342
|
+
const _st = "status";
|
|
343
|
+
const _t = "type";
|
|
344
|
+
const _ty = "types";
|
|
345
|
+
const _u = "upi";
|
|
346
|
+
const _uA = "updatedAt";
|
|
347
|
+
const _uABA = "usAchBankAccount";
|
|
348
|
+
const _uBBA = "ukBacsBankAccount";
|
|
349
|
+
const _v = "value";
|
|
350
|
+
const n0 = "com.amazonaws.payments";
|
|
351
|
+
const _s_registry = new TypeRegistry(_s);
|
|
352
|
+
var PaymentsServiceException$ = [-3, _s, "PaymentsServiceException", 0, [], []];
|
|
353
|
+
_s_registry.registerError(PaymentsServiceException$, PaymentsServiceException);
|
|
354
|
+
const n0_registry = new TypeRegistry(n0);
|
|
355
|
+
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
356
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
357
|
+
[_m, _r],
|
|
358
|
+
[0, 0], 1
|
|
359
|
+
];
|
|
360
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
361
|
+
var InternalServerException$ = [-3, n0, _ISE,
|
|
362
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
363
|
+
[_m, _rAS],
|
|
364
|
+
[0, 1], 1
|
|
365
|
+
];
|
|
366
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
367
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
368
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
369
|
+
[_m, _rI, _rT],
|
|
370
|
+
[0, 0, 0], 1
|
|
371
|
+
];
|
|
372
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
373
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
374
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
375
|
+
[_m, _rAS],
|
|
376
|
+
[0, 1], 1
|
|
377
|
+
];
|
|
378
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
379
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
380
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
381
|
+
[_m, _r, _fL],
|
|
382
|
+
[0, 0, () => ValidationExceptionFieldList], 2
|
|
383
|
+
];
|
|
384
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
385
|
+
const errorTypeRegistries = [
|
|
386
|
+
_s_registry,
|
|
387
|
+
n0_registry,
|
|
388
|
+
];
|
|
389
|
+
var AccountHolderName = [0, n0, _AHN, 8, 0];
|
|
390
|
+
var BankAccountNumberTail = [0, n0, _BANT, 8, 0];
|
|
391
|
+
var ExpirationMonth = [0, n0, _EM, 8, 1];
|
|
392
|
+
var ExpirationYear = [0, n0, _EY, 8, 1];
|
|
393
|
+
var Last4 = [0, n0, _L, 8, 0];
|
|
394
|
+
var AccountBalance$ = [3, n0, _AB,
|
|
395
|
+
0,
|
|
396
|
+
[_a, _mOR],
|
|
397
|
+
[() => CurrencyAmount$, 0], 2
|
|
398
|
+
];
|
|
399
|
+
var Balances$ = [3, n0, _B,
|
|
400
|
+
0,
|
|
401
|
+
[_o, _p, _set, _ca],
|
|
402
|
+
[() => CurrencyAmount$, () => CurrencyAmount$, () => CurrencyAmount$, () => CurrencyAmount$], 4
|
|
403
|
+
];
|
|
404
|
+
var BatchGetFinancialRecordRequest$ = [3, n0, _BGFRR,
|
|
405
|
+
0,
|
|
406
|
+
[_k],
|
|
407
|
+
[() => FinancialRecordKeyList], 1
|
|
408
|
+
];
|
|
409
|
+
var BatchGetFinancialRecordResponse$ = [3, n0, _BGFRRa,
|
|
410
|
+
0,
|
|
411
|
+
[_fR, _er],
|
|
412
|
+
[() => FinancialRecordList, () => FinancialRecordErrorList], 2
|
|
413
|
+
];
|
|
414
|
+
var BillingPeriod$ = [3, n0, _BP,
|
|
415
|
+
0,
|
|
416
|
+
[_sD, _eD],
|
|
417
|
+
[4, 4], 2
|
|
418
|
+
];
|
|
419
|
+
var BusinessUnit$ = [3, n0, _BU,
|
|
420
|
+
0,
|
|
421
|
+
[_mOR, _lOB],
|
|
422
|
+
[0, 0], 1
|
|
423
|
+
];
|
|
424
|
+
var Card$ = [3, n0, _C,
|
|
425
|
+
0,
|
|
426
|
+
[_l, _b, _eM, _eY, _cT, _iB, _iC],
|
|
427
|
+
[[() => Last4, 0], 0, [() => ExpirationMonth, 0], [() => ExpirationYear, 0], 0, 0, 0], 1
|
|
428
|
+
];
|
|
429
|
+
var CnBankRedirect$ = [3, n0, _CBR,
|
|
430
|
+
0,
|
|
431
|
+
[_bC],
|
|
432
|
+
[0]
|
|
433
|
+
];
|
|
434
|
+
var CreditMemoDetails$ = [3, n0, _CMD,
|
|
435
|
+
0,
|
|
436
|
+
[_iI, _bP],
|
|
437
|
+
[0, () => BillingPeriod$], 2
|
|
438
|
+
];
|
|
439
|
+
var CurrencyAmount$ = [3, n0, _CA,
|
|
440
|
+
0,
|
|
441
|
+
[_v, _cu],
|
|
442
|
+
[0, 0], 2
|
|
443
|
+
];
|
|
444
|
+
var FinancialRecord$ = [3, n0, _FR,
|
|
445
|
+
0,
|
|
446
|
+
[_i, _t, _bU, _a, _ba, _sS, _st, _iA, _d, _cA],
|
|
447
|
+
[0, 0, () => BusinessUnit$, () => CurrencyAmount$, () => Balances$, 0, 0, 4, () => FinancialRecordDetails$, 4], 9
|
|
448
|
+
];
|
|
449
|
+
var FinancialRecordError$ = [3, n0, _FRE,
|
|
450
|
+
0,
|
|
451
|
+
[_ke, _co, _m],
|
|
452
|
+
[() => FinancialRecordKey$, 0, 0], 3
|
|
453
|
+
];
|
|
454
|
+
var FinancialRecordSummary$ = [3, n0, _FRS,
|
|
455
|
+
0,
|
|
456
|
+
[_i, _t, _bU, _a, _ba, _sS, _st, _iA, _cA],
|
|
457
|
+
[0, 0, () => BusinessUnit$, () => CurrencyAmount$, () => Balances$, 0, 0, 4, 4], 8
|
|
458
|
+
];
|
|
459
|
+
var GetAccountBalanceRequest$ = [3, n0, _GABR,
|
|
460
|
+
0,
|
|
461
|
+
[_bT, _nT, _mR],
|
|
462
|
+
[0, 0, 1], 1
|
|
463
|
+
];
|
|
464
|
+
var GetAccountBalanceResponse$ = [3, n0, _GABRe,
|
|
465
|
+
0,
|
|
466
|
+
[_aB, _nT],
|
|
467
|
+
[() => AccountBalanceList, 0], 1
|
|
468
|
+
];
|
|
469
|
+
var GetFinancialRecordRequest$ = [3, n0, _GFRR,
|
|
470
|
+
0,
|
|
471
|
+
[_id, _iIn],
|
|
472
|
+
[0, 0]
|
|
473
|
+
];
|
|
474
|
+
var GetFinancialRecordResponse$ = [3, n0, _GFRRe,
|
|
475
|
+
0,
|
|
476
|
+
[_fRi],
|
|
477
|
+
[() => FinancialRecord$], 1
|
|
478
|
+
];
|
|
479
|
+
var GetPaymentInstrumentRequest$ = [3, n0, _GPIR,
|
|
480
|
+
0,
|
|
481
|
+
[_id],
|
|
482
|
+
[0], 1
|
|
483
|
+
];
|
|
484
|
+
var GetPaymentInstrumentResponse$ = [3, n0, _GPIRe,
|
|
485
|
+
0,
|
|
486
|
+
[_pI],
|
|
487
|
+
[[() => PaymentInstrument$, 0]], 1
|
|
488
|
+
];
|
|
489
|
+
var InNetBanking$ = [3, n0, _INB,
|
|
490
|
+
0,
|
|
491
|
+
[_bC, _bN],
|
|
492
|
+
[0, 0], 1
|
|
493
|
+
];
|
|
494
|
+
var InvoiceDetails$ = [3, n0, _ID,
|
|
495
|
+
0,
|
|
496
|
+
[_iI, _bP, _dD, _iF, _dS, _pT],
|
|
497
|
+
[0, () => BillingPeriod$, 4, 0, 0, 0], 4
|
|
498
|
+
];
|
|
499
|
+
var ListFinancialRecordsRequest$ = [3, n0, _LFRR,
|
|
500
|
+
0,
|
|
501
|
+
[_ty, _sSe, _iAs, _iBs, _sB, _sO, _nT, _mR],
|
|
502
|
+
[64 | 0, 64 | 0, 4, 4, 0, 0, 0, 1], 1
|
|
503
|
+
];
|
|
504
|
+
var ListFinancialRecordsResponse$ = [3, n0, _LFRRi,
|
|
505
|
+
0,
|
|
506
|
+
[_fRS, _nT],
|
|
507
|
+
[() => FinancialRecordSummaryList, 0], 1
|
|
508
|
+
];
|
|
509
|
+
var ListPaymentInstrumentsRequest$ = [3, n0, _LPIR,
|
|
510
|
+
0,
|
|
511
|
+
[_nT, _mR],
|
|
512
|
+
[0, 1]
|
|
513
|
+
];
|
|
514
|
+
var ListPaymentInstrumentsResponse$ = [3, n0, _LPIRi,
|
|
515
|
+
0,
|
|
516
|
+
[_pIS, _nT],
|
|
517
|
+
[() => PaymentInstrumentSummaryList, 0], 1
|
|
518
|
+
];
|
|
519
|
+
var PaymentInstrument$ = [3, n0, _PI,
|
|
520
|
+
0,
|
|
521
|
+
[_ar, _pM, _st, _d, _cAr, _uA],
|
|
522
|
+
[0, 0, 0, [() => PaymentInstrumentDetails$, 0], 4, 4], 3
|
|
523
|
+
];
|
|
524
|
+
var PaymentInstrumentSummary$ = [3, n0, _PIS,
|
|
525
|
+
0,
|
|
526
|
+
[_i, _ar, _pM, _st, _cAr, _uA],
|
|
527
|
+
[0, 0, 0, 0, 4, 4], 4
|
|
528
|
+
];
|
|
529
|
+
var SepaBankAccount$ = [3, n0, _SBA,
|
|
530
|
+
0,
|
|
531
|
+
[_aNT, _aHN, _bN, _aT],
|
|
532
|
+
[[() => BankAccountNumberTail, 0], [() => AccountHolderName, 0], 0, 0]
|
|
533
|
+
];
|
|
534
|
+
var UkBacsBankAccount$ = [3, n0, _UBBA,
|
|
535
|
+
0,
|
|
536
|
+
[_aNT, _aHN, _bN, _aT],
|
|
537
|
+
[[() => BankAccountNumberTail, 0], [() => AccountHolderName, 0], 0, 0]
|
|
538
|
+
];
|
|
539
|
+
var Upi$ = [3, n0, _U,
|
|
540
|
+
0,
|
|
541
|
+
[_aN],
|
|
542
|
+
[0]
|
|
543
|
+
];
|
|
544
|
+
var UsAchBankAccount$ = [3, n0, _UABA,
|
|
545
|
+
0,
|
|
546
|
+
[_aNT, _aHN, _bN, _aT],
|
|
547
|
+
[[() => BankAccountNumberTail, 0], [() => AccountHolderName, 0], 0, 0]
|
|
548
|
+
];
|
|
549
|
+
var ValidationExceptionField$ = [3, n0, _VEF,
|
|
550
|
+
0,
|
|
551
|
+
[_n, _m],
|
|
552
|
+
[0, 0], 2
|
|
553
|
+
];
|
|
554
|
+
var AccountBalanceList = [1, n0, _ABL,
|
|
555
|
+
0, () => AccountBalance$
|
|
556
|
+
];
|
|
557
|
+
var FinancialRecordErrorList = [1, n0, _FREL,
|
|
558
|
+
0, () => FinancialRecordError$
|
|
559
|
+
];
|
|
560
|
+
var FinancialRecordKeyList = [1, n0, _FRKL,
|
|
561
|
+
0, () => FinancialRecordKey$
|
|
562
|
+
];
|
|
563
|
+
var FinancialRecordList = [1, n0, _FRL,
|
|
564
|
+
0, () => FinancialRecord$
|
|
565
|
+
];
|
|
566
|
+
var FinancialRecordSummaryList = [1, n0, _FRSL,
|
|
567
|
+
0, () => FinancialRecordSummary$
|
|
568
|
+
];
|
|
569
|
+
var PaymentInstrumentSummaryList = [1, n0, _PISL,
|
|
570
|
+
0, () => PaymentInstrumentSummary$
|
|
571
|
+
];
|
|
572
|
+
var ValidationExceptionFieldList = [1, n0, _VEFL,
|
|
573
|
+
0, () => ValidationExceptionField$
|
|
574
|
+
];
|
|
575
|
+
var FinancialRecordDetails$ = [4, n0, _FRD,
|
|
576
|
+
0,
|
|
577
|
+
[_iD, _cMD],
|
|
578
|
+
[() => InvoiceDetails$, () => CreditMemoDetails$]
|
|
579
|
+
];
|
|
580
|
+
var FinancialRecordKey$ = [4, n0, _FRK,
|
|
581
|
+
0,
|
|
582
|
+
[_id, _iIn],
|
|
583
|
+
[0, 0]
|
|
584
|
+
];
|
|
585
|
+
var PaymentInstrumentDetails$ = [4, n0, _PID,
|
|
586
|
+
0,
|
|
587
|
+
[_car, _uABA, _sBA, _uBBA, _iNB, _cBR, _u],
|
|
588
|
+
[[() => Card$, 0], [() => UsAchBankAccount$, 0], [() => SepaBankAccount$, 0], [() => UkBacsBankAccount$, 0], () => InNetBanking$, () => CnBankRedirect$, () => Upi$]
|
|
589
|
+
];
|
|
590
|
+
var BatchGetFinancialRecord$ = [9, n0, _BGFR,
|
|
591
|
+
0, () => BatchGetFinancialRecordRequest$, () => BatchGetFinancialRecordResponse$
|
|
592
|
+
];
|
|
593
|
+
var GetAccountBalance$ = [9, n0, _GAB,
|
|
594
|
+
0, () => GetAccountBalanceRequest$, () => GetAccountBalanceResponse$
|
|
595
|
+
];
|
|
596
|
+
var GetFinancialRecord$ = [9, n0, _GFR,
|
|
597
|
+
0, () => GetFinancialRecordRequest$, () => GetFinancialRecordResponse$
|
|
598
|
+
];
|
|
599
|
+
var GetPaymentInstrument$ = [9, n0, _GPI,
|
|
600
|
+
0, () => GetPaymentInstrumentRequest$, () => GetPaymentInstrumentResponse$
|
|
601
|
+
];
|
|
602
|
+
var ListFinancialRecords$ = [9, n0, _LFR,
|
|
603
|
+
0, () => ListFinancialRecordsRequest$, () => ListFinancialRecordsResponse$
|
|
604
|
+
];
|
|
605
|
+
var ListPaymentInstruments$ = [9, n0, _LPI,
|
|
606
|
+
0, () => ListPaymentInstrumentsRequest$, () => ListPaymentInstrumentsResponse$
|
|
607
|
+
];
|
|
608
|
+
|
|
609
|
+
const getRuntimeConfig$1 = (config) => {
|
|
610
|
+
return {
|
|
611
|
+
apiVersion: "2026-09-23",
|
|
612
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
613
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
614
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
615
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
616
|
+
extensions: config?.extensions ?? [],
|
|
617
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultPaymentsHttpAuthSchemeProvider,
|
|
618
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
619
|
+
{
|
|
620
|
+
schemeId: "aws.auth#sigv4",
|
|
621
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
622
|
+
signer: new AwsSdkSigV4Signer(),
|
|
623
|
+
},
|
|
624
|
+
],
|
|
625
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
626
|
+
protocol: config?.protocol ?? AwsJson1_0Protocol,
|
|
627
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
628
|
+
defaultNamespace: "com.amazonaws.payments",
|
|
629
|
+
errorTypeRegistries,
|
|
630
|
+
version: "2026-09-23",
|
|
631
|
+
serviceTarget: "AWSPayments",
|
|
632
|
+
},
|
|
633
|
+
serviceId: config?.serviceId ?? "Payments",
|
|
634
|
+
sha256: config?.sha256 ?? Sha256,
|
|
635
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
636
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
637
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
const getRuntimeConfig = (config) => {
|
|
642
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
643
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
644
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
645
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
646
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
647
|
+
const loaderConfig = {
|
|
648
|
+
profile: config?.profile,
|
|
649
|
+
logger: clientSharedValues.logger,
|
|
650
|
+
};
|
|
651
|
+
return {
|
|
652
|
+
...clientSharedValues,
|
|
653
|
+
...config,
|
|
654
|
+
runtime: "node",
|
|
655
|
+
defaultsMode,
|
|
656
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
657
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
658
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
659
|
+
defaultSocketTimeout: getDefaultSocketTimeout(config?.requestHandler, 300_000),
|
|
660
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
661
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
662
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
663
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
664
|
+
retryMode: config?.retryMode ??
|
|
665
|
+
loadConfig({
|
|
666
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
667
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
668
|
+
}, config),
|
|
669
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
670
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
671
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
672
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
673
|
+
};
|
|
674
|
+
};
|
|
675
|
+
|
|
676
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
677
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
678
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
679
|
+
let _credentials = runtimeConfig.credentials;
|
|
680
|
+
return {
|
|
681
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
682
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
683
|
+
if (index === -1) {
|
|
684
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
685
|
+
}
|
|
686
|
+
else {
|
|
687
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
httpAuthSchemes() {
|
|
691
|
+
return _httpAuthSchemes;
|
|
692
|
+
},
|
|
693
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
694
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
695
|
+
},
|
|
696
|
+
httpAuthSchemeProvider() {
|
|
697
|
+
return _httpAuthSchemeProvider;
|
|
698
|
+
},
|
|
699
|
+
setCredentials(credentials) {
|
|
700
|
+
_credentials = credentials;
|
|
701
|
+
},
|
|
702
|
+
credentials() {
|
|
703
|
+
return _credentials;
|
|
704
|
+
},
|
|
705
|
+
};
|
|
706
|
+
};
|
|
707
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
708
|
+
return {
|
|
709
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
710
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
711
|
+
credentials: config.credentials(),
|
|
712
|
+
};
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
716
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
717
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
718
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
class PaymentsClient extends Client {
|
|
722
|
+
config;
|
|
723
|
+
constructor(...[configuration]) {
|
|
724
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
725
|
+
super(_config_0);
|
|
726
|
+
this.initConfig = _config_0;
|
|
727
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
728
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
729
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
730
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
731
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
732
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
733
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
734
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
735
|
+
this.config = _config_8;
|
|
736
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
737
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
738
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
739
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
740
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
741
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
742
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
743
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
744
|
+
httpAuthSchemeParametersProvider: defaultPaymentsHttpAuthSchemeParametersProvider,
|
|
745
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
746
|
+
"aws.auth#sigv4": config.credentials,
|
|
747
|
+
}),
|
|
748
|
+
}));
|
|
749
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
750
|
+
}
|
|
751
|
+
destroy() {
|
|
752
|
+
super.destroy();
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
const command = makeBuilder(commonParams, "AWSPayments", "PaymentsClient", getEndpointPlugin);
|
|
757
|
+
const _ep0 = {};
|
|
758
|
+
const _mw0 = (Command, cs, config, o) => [];
|
|
759
|
+
|
|
760
|
+
class BatchGetFinancialRecordCommand extends command(_ep0, _mw0, "BatchGetFinancialRecord", BatchGetFinancialRecord$) {
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
class GetAccountBalanceCommand extends command(_ep0, _mw0, "GetAccountBalance", GetAccountBalance$) {
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
class GetFinancialRecordCommand extends command(_ep0, _mw0, "GetFinancialRecord", GetFinancialRecord$) {
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
class GetPaymentInstrumentCommand extends command(_ep0, _mw0, "GetPaymentInstrument", GetPaymentInstrument$) {
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
class ListFinancialRecordsCommand extends command(_ep0, _mw0, "ListFinancialRecords", ListFinancialRecords$) {
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
class ListPaymentInstrumentsCommand extends command(_ep0, _mw0, "ListPaymentInstruments", ListPaymentInstruments$) {
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
const paginateGetAccountBalance = createPaginator(PaymentsClient, GetAccountBalanceCommand, "nextToken", "nextToken", "maxResults");
|
|
779
|
+
|
|
780
|
+
const paginateListFinancialRecords = createPaginator(PaymentsClient, ListFinancialRecordsCommand, "nextToken", "nextToken", "maxResults");
|
|
781
|
+
|
|
782
|
+
const paginateListPaymentInstruments = createPaginator(PaymentsClient, ListPaymentInstrumentsCommand, "nextToken", "nextToken", "maxResults");
|
|
783
|
+
|
|
784
|
+
const commands = {
|
|
785
|
+
BatchGetFinancialRecordCommand,
|
|
786
|
+
GetAccountBalanceCommand,
|
|
787
|
+
GetFinancialRecordCommand,
|
|
788
|
+
GetPaymentInstrumentCommand,
|
|
789
|
+
ListFinancialRecordsCommand,
|
|
790
|
+
ListPaymentInstrumentsCommand,
|
|
791
|
+
};
|
|
792
|
+
const paginators = {
|
|
793
|
+
paginateGetAccountBalance,
|
|
794
|
+
paginateListFinancialRecords,
|
|
795
|
+
paginateListPaymentInstruments,
|
|
796
|
+
};
|
|
797
|
+
class Payments extends PaymentsClient {
|
|
798
|
+
}
|
|
799
|
+
createAggregatedClient(commands, Payments, { paginators });
|
|
800
|
+
|
|
801
|
+
const AccessDeniedExceptionReason = {
|
|
802
|
+
INVALID_ACCOUNT_STATE: "INVALID_ACCOUNT_STATE",
|
|
803
|
+
NOT_AUTHORIZED: "NOT_AUTHORIZED",
|
|
804
|
+
OTHER: "OTHER",
|
|
805
|
+
};
|
|
806
|
+
const BatchErrorCode = {
|
|
807
|
+
INTERNAL_ERROR: "INTERNAL_ERROR",
|
|
808
|
+
NOT_FOUND: "NOT_FOUND",
|
|
809
|
+
};
|
|
810
|
+
const LineOfBusiness = {
|
|
811
|
+
AWS_CLOUD_SERVICES: "AWS_CLOUD_SERVICES",
|
|
812
|
+
AWS_MARKETPLACE: "AWS_MARKETPLACE",
|
|
813
|
+
PROSERVE_MARKETING_AND_TRAINING: "PROSERVE_MARKETING_AND_TRAINING",
|
|
814
|
+
};
|
|
815
|
+
const DueStatus = {
|
|
816
|
+
DUE: "DUE",
|
|
817
|
+
PAST_DUE: "PAST_DUE",
|
|
818
|
+
};
|
|
819
|
+
const InvoiceFrequency = {
|
|
820
|
+
ONE_TIME: "ONE_TIME",
|
|
821
|
+
RECURRING: "RECURRING",
|
|
822
|
+
};
|
|
823
|
+
const SettlementStatus = {
|
|
824
|
+
CLOSED: "CLOSED",
|
|
825
|
+
OPEN: "OPEN",
|
|
826
|
+
};
|
|
827
|
+
const FinancialRecordStatus = {
|
|
828
|
+
CANCELED: "CANCELED",
|
|
829
|
+
OUTSTANDING: "OUTSTANDING",
|
|
830
|
+
PROCESSING: "PROCESSING",
|
|
831
|
+
SETTLED: "SETTLED",
|
|
832
|
+
};
|
|
833
|
+
const FinancialRecordType = {
|
|
834
|
+
CREDIT_MEMO: "CREDIT_MEMO",
|
|
835
|
+
INVOICE: "INVOICE",
|
|
836
|
+
};
|
|
837
|
+
const ValidationExceptionReason = {
|
|
838
|
+
CANNOT_PARSE: "CANNOT_PARSE",
|
|
839
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
840
|
+
INVALID_PAGINATION_TOKEN: "INVALID_PAGINATION_TOKEN",
|
|
841
|
+
OTHER: "OTHER",
|
|
842
|
+
UNSUPPORTED_ACTION: "UNSUPPORTED_ACTION",
|
|
843
|
+
};
|
|
844
|
+
const BalanceType = {
|
|
845
|
+
INVOICES_DUE: "INVOICES_DUE",
|
|
846
|
+
INVOICES_PAST_DUE: "INVOICES_PAST_DUE",
|
|
847
|
+
OUTSTANDING_CREDIT_MEMOS: "OUTSTANDING_CREDIT_MEMOS",
|
|
848
|
+
};
|
|
849
|
+
const CardBrand = {
|
|
850
|
+
AMEX: "AMEX",
|
|
851
|
+
CHINA_UNIONPAY: "CHINA_UNIONPAY",
|
|
852
|
+
DISCOVER: "DISCOVER",
|
|
853
|
+
JCB: "JCB",
|
|
854
|
+
MASTERCARD: "MASTERCARD",
|
|
855
|
+
RUPAY: "RUPAY",
|
|
856
|
+
VISA: "VISA",
|
|
857
|
+
};
|
|
858
|
+
const CardType = {
|
|
859
|
+
CREDIT: "CREDIT",
|
|
860
|
+
DEBIT: "DEBIT",
|
|
861
|
+
};
|
|
862
|
+
const BankAccountType = {
|
|
863
|
+
CHECKING: "CHECKING",
|
|
864
|
+
SAVINGS: "SAVINGS",
|
|
865
|
+
};
|
|
866
|
+
const PaymentMethod = {
|
|
867
|
+
CARD: "CARD",
|
|
868
|
+
CN_BANK_REDIRECT: "CN_BANK_REDIRECT",
|
|
869
|
+
IN_NET_BANKING: "IN_NET_BANKING",
|
|
870
|
+
PAY_BY_INVOICE: "PAY_BY_INVOICE",
|
|
871
|
+
PIX: "PIX",
|
|
872
|
+
SEPA_BANK_ACCOUNT: "SEPA_BANK_ACCOUNT",
|
|
873
|
+
UK_BACS_BANK_ACCOUNT: "UK_BACS_BANK_ACCOUNT",
|
|
874
|
+
UPI: "UPI",
|
|
875
|
+
US_ACH_BANK_ACCOUNT: "US_ACH_BANK_ACCOUNT",
|
|
876
|
+
};
|
|
877
|
+
const PaymentInstrumentStatus = {
|
|
878
|
+
ACTIVE: "ACTIVE",
|
|
879
|
+
INVALID: "INVALID",
|
|
880
|
+
PENDING_SETUP: "PENDING_SETUP",
|
|
881
|
+
SETUP_IN_PROGRESS: "SETUP_IN_PROGRESS",
|
|
882
|
+
};
|
|
883
|
+
const FinancialRecordSortField = {
|
|
884
|
+
ISSUED_AT: "ISSUED_AT",
|
|
885
|
+
};
|
|
886
|
+
const SortOrder = {
|
|
887
|
+
ASCENDING: "ASCENDING",
|
|
888
|
+
DESCENDING: "DESCENDING",
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
892
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
893
|
+
exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;
|
|
894
|
+
exports.AccountBalance$ = AccountBalance$;
|
|
895
|
+
exports.BalanceType = BalanceType;
|
|
896
|
+
exports.Balances$ = Balances$;
|
|
897
|
+
exports.BankAccountType = BankAccountType;
|
|
898
|
+
exports.BatchErrorCode = BatchErrorCode;
|
|
899
|
+
exports.BatchGetFinancialRecord$ = BatchGetFinancialRecord$;
|
|
900
|
+
exports.BatchGetFinancialRecordCommand = BatchGetFinancialRecordCommand;
|
|
901
|
+
exports.BatchGetFinancialRecordRequest$ = BatchGetFinancialRecordRequest$;
|
|
902
|
+
exports.BatchGetFinancialRecordResponse$ = BatchGetFinancialRecordResponse$;
|
|
903
|
+
exports.BillingPeriod$ = BillingPeriod$;
|
|
904
|
+
exports.BusinessUnit$ = BusinessUnit$;
|
|
905
|
+
exports.Card$ = Card$;
|
|
906
|
+
exports.CardBrand = CardBrand;
|
|
907
|
+
exports.CardType = CardType;
|
|
908
|
+
exports.CnBankRedirect$ = CnBankRedirect$;
|
|
909
|
+
exports.CreditMemoDetails$ = CreditMemoDetails$;
|
|
910
|
+
exports.CurrencyAmount$ = CurrencyAmount$;
|
|
911
|
+
exports.DueStatus = DueStatus;
|
|
912
|
+
exports.FinancialRecord$ = FinancialRecord$;
|
|
913
|
+
exports.FinancialRecordDetails$ = FinancialRecordDetails$;
|
|
914
|
+
exports.FinancialRecordError$ = FinancialRecordError$;
|
|
915
|
+
exports.FinancialRecordKey$ = FinancialRecordKey$;
|
|
916
|
+
exports.FinancialRecordSortField = FinancialRecordSortField;
|
|
917
|
+
exports.FinancialRecordStatus = FinancialRecordStatus;
|
|
918
|
+
exports.FinancialRecordSummary$ = FinancialRecordSummary$;
|
|
919
|
+
exports.FinancialRecordType = FinancialRecordType;
|
|
920
|
+
exports.GetAccountBalance$ = GetAccountBalance$;
|
|
921
|
+
exports.GetAccountBalanceCommand = GetAccountBalanceCommand;
|
|
922
|
+
exports.GetAccountBalanceRequest$ = GetAccountBalanceRequest$;
|
|
923
|
+
exports.GetAccountBalanceResponse$ = GetAccountBalanceResponse$;
|
|
924
|
+
exports.GetFinancialRecord$ = GetFinancialRecord$;
|
|
925
|
+
exports.GetFinancialRecordCommand = GetFinancialRecordCommand;
|
|
926
|
+
exports.GetFinancialRecordRequest$ = GetFinancialRecordRequest$;
|
|
927
|
+
exports.GetFinancialRecordResponse$ = GetFinancialRecordResponse$;
|
|
928
|
+
exports.GetPaymentInstrument$ = GetPaymentInstrument$;
|
|
929
|
+
exports.GetPaymentInstrumentCommand = GetPaymentInstrumentCommand;
|
|
930
|
+
exports.GetPaymentInstrumentRequest$ = GetPaymentInstrumentRequest$;
|
|
931
|
+
exports.GetPaymentInstrumentResponse$ = GetPaymentInstrumentResponse$;
|
|
932
|
+
exports.InNetBanking$ = InNetBanking$;
|
|
933
|
+
exports.InternalServerException = InternalServerException;
|
|
934
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
935
|
+
exports.InvoiceDetails$ = InvoiceDetails$;
|
|
936
|
+
exports.InvoiceFrequency = InvoiceFrequency;
|
|
937
|
+
exports.LineOfBusiness = LineOfBusiness;
|
|
938
|
+
exports.ListFinancialRecords$ = ListFinancialRecords$;
|
|
939
|
+
exports.ListFinancialRecordsCommand = ListFinancialRecordsCommand;
|
|
940
|
+
exports.ListFinancialRecordsRequest$ = ListFinancialRecordsRequest$;
|
|
941
|
+
exports.ListFinancialRecordsResponse$ = ListFinancialRecordsResponse$;
|
|
942
|
+
exports.ListPaymentInstruments$ = ListPaymentInstruments$;
|
|
943
|
+
exports.ListPaymentInstrumentsCommand = ListPaymentInstrumentsCommand;
|
|
944
|
+
exports.ListPaymentInstrumentsRequest$ = ListPaymentInstrumentsRequest$;
|
|
945
|
+
exports.ListPaymentInstrumentsResponse$ = ListPaymentInstrumentsResponse$;
|
|
946
|
+
exports.PaymentInstrument$ = PaymentInstrument$;
|
|
947
|
+
exports.PaymentInstrumentDetails$ = PaymentInstrumentDetails$;
|
|
948
|
+
exports.PaymentInstrumentStatus = PaymentInstrumentStatus;
|
|
949
|
+
exports.PaymentInstrumentSummary$ = PaymentInstrumentSummary$;
|
|
950
|
+
exports.PaymentMethod = PaymentMethod;
|
|
951
|
+
exports.Payments = Payments;
|
|
952
|
+
exports.PaymentsClient = PaymentsClient;
|
|
953
|
+
exports.PaymentsServiceException = PaymentsServiceException;
|
|
954
|
+
exports.PaymentsServiceException$ = PaymentsServiceException$;
|
|
955
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
956
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
957
|
+
exports.SepaBankAccount$ = SepaBankAccount$;
|
|
958
|
+
exports.SettlementStatus = SettlementStatus;
|
|
959
|
+
exports.SortOrder = SortOrder;
|
|
960
|
+
exports.ThrottlingException = ThrottlingException;
|
|
961
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
962
|
+
exports.UkBacsBankAccount$ = UkBacsBankAccount$;
|
|
963
|
+
exports.Upi$ = Upi$;
|
|
964
|
+
exports.UsAchBankAccount$ = UsAchBankAccount$;
|
|
965
|
+
exports.ValidationException = ValidationException;
|
|
966
|
+
exports.ValidationException$ = ValidationException$;
|
|
967
|
+
exports.ValidationExceptionField$ = ValidationExceptionField$;
|
|
968
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
969
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
970
|
+
exports.paginateGetAccountBalance = paginateGetAccountBalance;
|
|
971
|
+
exports.paginateListFinancialRecords = paginateListFinancialRecords;
|
|
972
|
+
exports.paginateListPaymentInstruments = paginateListPaymentInstruments;
|