@aws-sdk/client-invoicing 3.893.0 → 3.894.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/dist-cjs/index.js +1021 -10
- package/package.json +6 -6
- package/dist-cjs/Invoicing.js +0 -31
- package/dist-cjs/InvoicingClient.js +0 -52
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
- package/dist-cjs/commands/BatchGetInvoiceProfileCommand.js +0 -27
- package/dist-cjs/commands/CreateInvoiceUnitCommand.js +0 -26
- package/dist-cjs/commands/DeleteInvoiceUnitCommand.js +0 -26
- package/dist-cjs/commands/GetInvoiceUnitCommand.js +0 -26
- package/dist-cjs/commands/ListInvoiceSummariesCommand.js +0 -26
- package/dist-cjs/commands/ListInvoiceUnitsCommand.js +0 -26
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
- package/dist-cjs/commands/TagResourceCommand.js +0 -26
- package/dist-cjs/commands/UntagResourceCommand.js +0 -26
- package/dist-cjs/commands/UpdateInvoiceUnitCommand.js +0 -26
- package/dist-cjs/commands/index.js +0 -13
- package/dist-cjs/endpoint/EndpointParameters.js +0 -15
- package/dist-cjs/extensionConfiguration.js +0 -2
- package/dist-cjs/models/InvoicingServiceException.js +0 -12
- package/dist-cjs/models/index.js +0 -4
- package/dist-cjs/models/models_0.js +0 -135
- package/dist-cjs/pagination/Interfaces.js +0 -2
- package/dist-cjs/pagination/ListInvoiceSummariesPaginator.js +0 -7
- package/dist-cjs/pagination/ListInvoiceUnitsPaginator.js +0 -7
- package/dist-cjs/pagination/index.js +0 -6
- package/dist-cjs/protocols/Aws_json1_0.js +0 -439
- package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js
CHANGED
|
@@ -1,11 +1,1022 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
+
BatchGetInvoiceProfileCommand: () => BatchGetInvoiceProfileCommand,
|
|
26
|
+
BatchGetInvoiceProfileResponseFilterSensitiveLog: () => BatchGetInvoiceProfileResponseFilterSensitiveLog,
|
|
27
|
+
CreateInvoiceUnitCommand: () => CreateInvoiceUnitCommand,
|
|
28
|
+
DeleteInvoiceUnitCommand: () => DeleteInvoiceUnitCommand,
|
|
29
|
+
GetInvoiceUnitCommand: () => GetInvoiceUnitCommand,
|
|
30
|
+
InternalServerException: () => InternalServerException,
|
|
31
|
+
InvoiceProfileFilterSensitiveLog: () => InvoiceProfileFilterSensitiveLog,
|
|
32
|
+
InvoiceType: () => InvoiceType,
|
|
33
|
+
Invoicing: () => Invoicing,
|
|
34
|
+
InvoicingClient: () => InvoicingClient,
|
|
35
|
+
InvoicingServiceException: () => InvoicingServiceException,
|
|
36
|
+
ListInvoiceSummariesCommand: () => ListInvoiceSummariesCommand,
|
|
37
|
+
ListInvoiceSummariesResourceType: () => ListInvoiceSummariesResourceType,
|
|
38
|
+
ListInvoiceUnitsCommand: () => ListInvoiceUnitsCommand,
|
|
39
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
40
|
+
ReceiverAddressFilterSensitiveLog: () => ReceiverAddressFilterSensitiveLog,
|
|
41
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
42
|
+
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
43
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
44
|
+
ThrottlingException: () => ThrottlingException,
|
|
45
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
46
|
+
UpdateInvoiceUnitCommand: () => UpdateInvoiceUnitCommand,
|
|
47
|
+
ValidationException: () => ValidationException,
|
|
48
|
+
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
49
|
+
__Client: () => import_smithy_client.Client,
|
|
50
|
+
paginateListInvoiceSummaries: () => paginateListInvoiceSummaries,
|
|
51
|
+
paginateListInvoiceUnits: () => paginateListInvoiceUnits
|
|
52
|
+
});
|
|
53
|
+
module.exports = __toCommonJS(index_exports);
|
|
54
|
+
|
|
55
|
+
// src/InvoicingClient.ts
|
|
56
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
57
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
58
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
59
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
60
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
61
|
+
var import_core = require("@smithy/core");
|
|
62
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
63
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
64
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
65
|
+
|
|
66
|
+
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
67
|
+
|
|
68
|
+
// src/endpoint/EndpointParameters.ts
|
|
69
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
70
|
+
return Object.assign(options, {
|
|
71
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
72
|
+
defaultSigningName: "invoicing"
|
|
73
|
+
});
|
|
74
|
+
}, "resolveClientEndpointParameters");
|
|
75
|
+
var commonParams = {
|
|
76
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
77
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
78
|
+
Region: { type: "builtInParams", name: "region" }
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// src/InvoicingClient.ts
|
|
82
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
83
|
+
|
|
84
|
+
// src/runtimeExtensions.ts
|
|
85
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
86
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
87
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
88
|
+
|
|
89
|
+
// src/auth/httpAuthExtensionConfiguration.ts
|
|
90
|
+
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
91
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
92
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
93
|
+
let _credentials = runtimeConfig.credentials;
|
|
94
|
+
return {
|
|
95
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
96
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
97
|
+
if (index === -1) {
|
|
98
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
99
|
+
} else {
|
|
100
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
httpAuthSchemes() {
|
|
104
|
+
return _httpAuthSchemes;
|
|
105
|
+
},
|
|
106
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
107
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
108
|
+
},
|
|
109
|
+
httpAuthSchemeProvider() {
|
|
110
|
+
return _httpAuthSchemeProvider;
|
|
111
|
+
},
|
|
112
|
+
setCredentials(credentials) {
|
|
113
|
+
_credentials = credentials;
|
|
114
|
+
},
|
|
115
|
+
credentials() {
|
|
116
|
+
return _credentials;
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
}, "getHttpAuthExtensionConfiguration");
|
|
120
|
+
var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
|
|
121
|
+
return {
|
|
122
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
123
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
124
|
+
credentials: config.credentials()
|
|
125
|
+
};
|
|
126
|
+
}, "resolveHttpAuthRuntimeConfig");
|
|
127
|
+
|
|
128
|
+
// src/runtimeExtensions.ts
|
|
129
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
130
|
+
const extensionConfiguration = Object.assign(
|
|
131
|
+
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
132
|
+
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
133
|
+
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
134
|
+
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
135
|
+
);
|
|
136
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
137
|
+
return Object.assign(
|
|
138
|
+
runtimeConfig,
|
|
139
|
+
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
140
|
+
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
141
|
+
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
142
|
+
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
143
|
+
);
|
|
144
|
+
}, "resolveRuntimeExtensions");
|
|
145
|
+
|
|
146
|
+
// src/InvoicingClient.ts
|
|
147
|
+
var InvoicingClient = class extends import_smithy_client.Client {
|
|
148
|
+
static {
|
|
149
|
+
__name(this, "InvoicingClient");
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* The resolved configuration of InvoicingClient class. This is resolved and normalized from the {@link InvoicingClientConfig | constructor configuration interface}.
|
|
153
|
+
*/
|
|
154
|
+
config;
|
|
155
|
+
constructor(...[configuration]) {
|
|
156
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
157
|
+
super(_config_0);
|
|
158
|
+
this.initConfig = _config_0;
|
|
159
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
160
|
+
const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
|
|
161
|
+
const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
|
|
162
|
+
const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
|
|
163
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
164
|
+
const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
|
|
165
|
+
const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
|
|
166
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
167
|
+
this.config = _config_8;
|
|
168
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
169
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
170
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
171
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
172
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
173
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
174
|
+
this.middlewareStack.use(
|
|
175
|
+
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
176
|
+
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultInvoicingHttpAuthSchemeParametersProvider,
|
|
177
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
178
|
+
"aws.auth#sigv4": config.credentials
|
|
179
|
+
}), "identityProviderConfigProvider")
|
|
180
|
+
})
|
|
181
|
+
);
|
|
182
|
+
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
186
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
187
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
188
|
+
*/
|
|
189
|
+
destroy() {
|
|
190
|
+
super.destroy();
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
// src/Invoicing.ts
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
// src/commands/BatchGetInvoiceProfileCommand.ts
|
|
198
|
+
|
|
199
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
// src/models/models_0.ts
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
// src/models/InvoicingServiceException.ts
|
|
206
|
+
|
|
207
|
+
var InvoicingServiceException = class _InvoicingServiceException extends import_smithy_client.ServiceException {
|
|
208
|
+
static {
|
|
209
|
+
__name(this, "InvoicingServiceException");
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* @internal
|
|
213
|
+
*/
|
|
214
|
+
constructor(options) {
|
|
215
|
+
super(options);
|
|
216
|
+
Object.setPrototypeOf(this, _InvoicingServiceException.prototype);
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
// src/models/models_0.ts
|
|
221
|
+
var AccessDeniedException = class _AccessDeniedException extends InvoicingServiceException {
|
|
222
|
+
static {
|
|
223
|
+
__name(this, "AccessDeniedException");
|
|
224
|
+
}
|
|
225
|
+
name = "AccessDeniedException";
|
|
226
|
+
$fault = "client";
|
|
227
|
+
/**
|
|
228
|
+
* <p>You don't have sufficient access to perform this action. </p>
|
|
229
|
+
* @public
|
|
230
|
+
*/
|
|
231
|
+
resourceName;
|
|
232
|
+
/**
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
constructor(opts) {
|
|
236
|
+
super({
|
|
237
|
+
name: "AccessDeniedException",
|
|
238
|
+
$fault: "client",
|
|
239
|
+
...opts
|
|
240
|
+
});
|
|
241
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
242
|
+
this.resourceName = opts.resourceName;
|
|
243
|
+
}
|
|
244
|
+
};
|
|
245
|
+
var InternalServerException = class _InternalServerException extends InvoicingServiceException {
|
|
246
|
+
static {
|
|
247
|
+
__name(this, "InternalServerException");
|
|
248
|
+
}
|
|
249
|
+
name = "InternalServerException";
|
|
250
|
+
$fault = "server";
|
|
251
|
+
/**
|
|
252
|
+
* <p>The processing request failed because of an unknown error, exception, or failure.</p>
|
|
253
|
+
* @public
|
|
254
|
+
*/
|
|
255
|
+
retryAfterSeconds;
|
|
256
|
+
/**
|
|
257
|
+
* @internal
|
|
258
|
+
*/
|
|
259
|
+
constructor(opts) {
|
|
260
|
+
super({
|
|
261
|
+
name: "InternalServerException",
|
|
262
|
+
$fault: "server",
|
|
263
|
+
...opts
|
|
264
|
+
});
|
|
265
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
266
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
var ResourceNotFoundException = class _ResourceNotFoundException extends InvoicingServiceException {
|
|
270
|
+
static {
|
|
271
|
+
__name(this, "ResourceNotFoundException");
|
|
272
|
+
}
|
|
273
|
+
name = "ResourceNotFoundException";
|
|
274
|
+
$fault = "client";
|
|
275
|
+
/**
|
|
276
|
+
* <p>The resource could not be found.</p>
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
279
|
+
resourceName;
|
|
280
|
+
/**
|
|
281
|
+
* @internal
|
|
282
|
+
*/
|
|
283
|
+
constructor(opts) {
|
|
284
|
+
super({
|
|
285
|
+
name: "ResourceNotFoundException",
|
|
286
|
+
$fault: "client",
|
|
287
|
+
...opts
|
|
288
|
+
});
|
|
289
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
290
|
+
this.resourceName = opts.resourceName;
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
var ThrottlingException = class _ThrottlingException extends InvoicingServiceException {
|
|
294
|
+
static {
|
|
295
|
+
__name(this, "ThrottlingException");
|
|
296
|
+
}
|
|
297
|
+
name = "ThrottlingException";
|
|
298
|
+
$fault = "client";
|
|
299
|
+
/**
|
|
300
|
+
* @internal
|
|
301
|
+
*/
|
|
302
|
+
constructor(opts) {
|
|
303
|
+
super({
|
|
304
|
+
name: "ThrottlingException",
|
|
305
|
+
$fault: "client",
|
|
306
|
+
...opts
|
|
307
|
+
});
|
|
308
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
var ValidationExceptionReason = {
|
|
312
|
+
ACCOUNT_MEMBERSHIP_ERROR: "accountMembershipError",
|
|
313
|
+
CANNOT_PARSE: "cannotParse",
|
|
314
|
+
DUPLICATE_INVOICE_UNIT: "duplicateInvoiceUnit",
|
|
315
|
+
EXPIRED_NEXT_TOKEN: "expiredNextToken",
|
|
316
|
+
FIELD_VALIDATION_FAILED: "fieldValidationFailed",
|
|
317
|
+
INVALID_INPUT: "invalidInput",
|
|
318
|
+
INVALID_NEXT_TOKEN: "invalidNextToken",
|
|
319
|
+
MAX_ACCOUNTS_EXCEEDED: "maxAccountsExceeded",
|
|
320
|
+
MAX_INVOICE_UNITS_EXCEEDED: "maxInvoiceUnitsExceeded",
|
|
321
|
+
MUTUAL_EXCLUSION_ERROR: "mutualExclusionError",
|
|
322
|
+
NON_MEMBERS_PRESENT: "nonMemberPresent",
|
|
323
|
+
OTHER: "other",
|
|
324
|
+
TAX_SETTINGS_ERROR: "taxSettingsError",
|
|
325
|
+
UNKNOWN_OPERATION: "unknownOperation"
|
|
326
|
+
};
|
|
327
|
+
var ValidationException = class _ValidationException extends InvoicingServiceException {
|
|
328
|
+
static {
|
|
329
|
+
__name(this, "ValidationException");
|
|
330
|
+
}
|
|
331
|
+
name = "ValidationException";
|
|
332
|
+
$fault = "client";
|
|
333
|
+
/**
|
|
334
|
+
* <p>You don't have sufficient access to perform this action. </p>
|
|
335
|
+
* @public
|
|
336
|
+
*/
|
|
337
|
+
resourceName;
|
|
338
|
+
/**
|
|
339
|
+
* <p>You don't have sufficient access to perform this action. </p>
|
|
340
|
+
* @public
|
|
341
|
+
*/
|
|
342
|
+
reason;
|
|
343
|
+
/**
|
|
344
|
+
* <p> The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
345
|
+
* @public
|
|
346
|
+
*/
|
|
347
|
+
fieldList;
|
|
348
|
+
/**
|
|
349
|
+
* @internal
|
|
350
|
+
*/
|
|
351
|
+
constructor(opts) {
|
|
352
|
+
super({
|
|
353
|
+
name: "ValidationException",
|
|
354
|
+
$fault: "client",
|
|
355
|
+
...opts
|
|
356
|
+
});
|
|
357
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
358
|
+
this.resourceName = opts.resourceName;
|
|
359
|
+
this.reason = opts.reason;
|
|
360
|
+
this.fieldList = opts.fieldList;
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
var InvoiceType = {
|
|
364
|
+
CREDIT_MEMO: "CREDIT_MEMO",
|
|
365
|
+
INVOICE: "INVOICE"
|
|
366
|
+
};
|
|
367
|
+
var ListInvoiceSummariesResourceType = {
|
|
368
|
+
ACCOUNT_ID: "ACCOUNT_ID",
|
|
369
|
+
INVOICE_ID: "INVOICE_ID"
|
|
370
|
+
};
|
|
371
|
+
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends InvoicingServiceException {
|
|
372
|
+
static {
|
|
373
|
+
__name(this, "ServiceQuotaExceededException");
|
|
374
|
+
}
|
|
375
|
+
name = "ServiceQuotaExceededException";
|
|
376
|
+
$fault = "client";
|
|
377
|
+
/**
|
|
378
|
+
* @internal
|
|
379
|
+
*/
|
|
380
|
+
constructor(opts) {
|
|
381
|
+
super({
|
|
382
|
+
name: "ServiceQuotaExceededException",
|
|
383
|
+
$fault: "client",
|
|
384
|
+
...opts
|
|
385
|
+
});
|
|
386
|
+
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
var ReceiverAddressFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
390
|
+
...obj
|
|
391
|
+
}), "ReceiverAddressFilterSensitiveLog");
|
|
392
|
+
var InvoiceProfileFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
393
|
+
...obj,
|
|
394
|
+
...obj.ReceiverAddress && { ReceiverAddress: import_smithy_client.SENSITIVE_STRING },
|
|
395
|
+
...obj.ReceiverEmail && { ReceiverEmail: import_smithy_client.SENSITIVE_STRING },
|
|
396
|
+
...obj.TaxRegistrationNumber && { TaxRegistrationNumber: import_smithy_client.SENSITIVE_STRING }
|
|
397
|
+
}), "InvoiceProfileFilterSensitiveLog");
|
|
398
|
+
var BatchGetInvoiceProfileResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
399
|
+
...obj,
|
|
400
|
+
...obj.Profiles && { Profiles: obj.Profiles.map((item) => InvoiceProfileFilterSensitiveLog(item)) }
|
|
401
|
+
}), "BatchGetInvoiceProfileResponseFilterSensitiveLog");
|
|
402
|
+
|
|
403
|
+
// src/protocols/Aws_json1_0.ts
|
|
404
|
+
var import_core2 = require("@aws-sdk/core");
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
var se_BatchGetInvoiceProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
408
|
+
const headers = sharedHeaders("BatchGetInvoiceProfile");
|
|
409
|
+
let body;
|
|
410
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
411
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
412
|
+
}, "se_BatchGetInvoiceProfileCommand");
|
|
413
|
+
var se_CreateInvoiceUnitCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
414
|
+
const headers = sharedHeaders("CreateInvoiceUnit");
|
|
415
|
+
let body;
|
|
416
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
417
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
418
|
+
}, "se_CreateInvoiceUnitCommand");
|
|
419
|
+
var se_DeleteInvoiceUnitCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
420
|
+
const headers = sharedHeaders("DeleteInvoiceUnit");
|
|
421
|
+
let body;
|
|
422
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
423
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
424
|
+
}, "se_DeleteInvoiceUnitCommand");
|
|
425
|
+
var se_GetInvoiceUnitCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
426
|
+
const headers = sharedHeaders("GetInvoiceUnit");
|
|
427
|
+
let body;
|
|
428
|
+
body = JSON.stringify(se_GetInvoiceUnitRequest(input, context));
|
|
429
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
430
|
+
}, "se_GetInvoiceUnitCommand");
|
|
431
|
+
var se_ListInvoiceSummariesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
432
|
+
const headers = sharedHeaders("ListInvoiceSummaries");
|
|
433
|
+
let body;
|
|
434
|
+
body = JSON.stringify(se_ListInvoiceSummariesRequest(input, context));
|
|
435
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
436
|
+
}, "se_ListInvoiceSummariesCommand");
|
|
437
|
+
var se_ListInvoiceUnitsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
438
|
+
const headers = sharedHeaders("ListInvoiceUnits");
|
|
439
|
+
let body;
|
|
440
|
+
body = JSON.stringify(se_ListInvoiceUnitsRequest(input, context));
|
|
441
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
442
|
+
}, "se_ListInvoiceUnitsCommand");
|
|
443
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
444
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
445
|
+
let body;
|
|
446
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
447
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
448
|
+
}, "se_ListTagsForResourceCommand");
|
|
449
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
450
|
+
const headers = sharedHeaders("TagResource");
|
|
451
|
+
let body;
|
|
452
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
453
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
454
|
+
}, "se_TagResourceCommand");
|
|
455
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
456
|
+
const headers = sharedHeaders("UntagResource");
|
|
457
|
+
let body;
|
|
458
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
459
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
460
|
+
}, "se_UntagResourceCommand");
|
|
461
|
+
var se_UpdateInvoiceUnitCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
462
|
+
const headers = sharedHeaders("UpdateInvoiceUnit");
|
|
463
|
+
let body;
|
|
464
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
465
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
466
|
+
}, "se_UpdateInvoiceUnitCommand");
|
|
467
|
+
var de_BatchGetInvoiceProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
468
|
+
if (output.statusCode >= 300) {
|
|
469
|
+
return de_CommandError(output, context);
|
|
470
|
+
}
|
|
471
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
472
|
+
let contents = {};
|
|
473
|
+
contents = (0, import_smithy_client._json)(data);
|
|
474
|
+
const response = {
|
|
475
|
+
$metadata: deserializeMetadata(output),
|
|
476
|
+
...contents
|
|
477
|
+
};
|
|
478
|
+
return response;
|
|
479
|
+
}, "de_BatchGetInvoiceProfileCommand");
|
|
480
|
+
var de_CreateInvoiceUnitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
481
|
+
if (output.statusCode >= 300) {
|
|
482
|
+
return de_CommandError(output, context);
|
|
483
|
+
}
|
|
484
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
485
|
+
let contents = {};
|
|
486
|
+
contents = (0, import_smithy_client._json)(data);
|
|
487
|
+
const response = {
|
|
488
|
+
$metadata: deserializeMetadata(output),
|
|
489
|
+
...contents
|
|
490
|
+
};
|
|
491
|
+
return response;
|
|
492
|
+
}, "de_CreateInvoiceUnitCommand");
|
|
493
|
+
var de_DeleteInvoiceUnitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
494
|
+
if (output.statusCode >= 300) {
|
|
495
|
+
return de_CommandError(output, context);
|
|
496
|
+
}
|
|
497
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
498
|
+
let contents = {};
|
|
499
|
+
contents = (0, import_smithy_client._json)(data);
|
|
500
|
+
const response = {
|
|
501
|
+
$metadata: deserializeMetadata(output),
|
|
502
|
+
...contents
|
|
503
|
+
};
|
|
504
|
+
return response;
|
|
505
|
+
}, "de_DeleteInvoiceUnitCommand");
|
|
506
|
+
var de_GetInvoiceUnitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
507
|
+
if (output.statusCode >= 300) {
|
|
508
|
+
return de_CommandError(output, context);
|
|
509
|
+
}
|
|
510
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
511
|
+
let contents = {};
|
|
512
|
+
contents = de_GetInvoiceUnitResponse(data, context);
|
|
513
|
+
const response = {
|
|
514
|
+
$metadata: deserializeMetadata(output),
|
|
515
|
+
...contents
|
|
516
|
+
};
|
|
517
|
+
return response;
|
|
518
|
+
}, "de_GetInvoiceUnitCommand");
|
|
519
|
+
var de_ListInvoiceSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
520
|
+
if (output.statusCode >= 300) {
|
|
521
|
+
return de_CommandError(output, context);
|
|
522
|
+
}
|
|
523
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
524
|
+
let contents = {};
|
|
525
|
+
contents = de_ListInvoiceSummariesResponse(data, context);
|
|
526
|
+
const response = {
|
|
527
|
+
$metadata: deserializeMetadata(output),
|
|
528
|
+
...contents
|
|
529
|
+
};
|
|
530
|
+
return response;
|
|
531
|
+
}, "de_ListInvoiceSummariesCommand");
|
|
532
|
+
var de_ListInvoiceUnitsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
533
|
+
if (output.statusCode >= 300) {
|
|
534
|
+
return de_CommandError(output, context);
|
|
535
|
+
}
|
|
536
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
537
|
+
let contents = {};
|
|
538
|
+
contents = de_ListInvoiceUnitsResponse(data, context);
|
|
539
|
+
const response = {
|
|
540
|
+
$metadata: deserializeMetadata(output),
|
|
541
|
+
...contents
|
|
542
|
+
};
|
|
543
|
+
return response;
|
|
544
|
+
}, "de_ListInvoiceUnitsCommand");
|
|
545
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
546
|
+
if (output.statusCode >= 300) {
|
|
547
|
+
return de_CommandError(output, context);
|
|
548
|
+
}
|
|
549
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
550
|
+
let contents = {};
|
|
551
|
+
contents = (0, import_smithy_client._json)(data);
|
|
552
|
+
const response = {
|
|
553
|
+
$metadata: deserializeMetadata(output),
|
|
554
|
+
...contents
|
|
555
|
+
};
|
|
556
|
+
return response;
|
|
557
|
+
}, "de_ListTagsForResourceCommand");
|
|
558
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
559
|
+
if (output.statusCode >= 300) {
|
|
560
|
+
return de_CommandError(output, context);
|
|
561
|
+
}
|
|
562
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
563
|
+
let contents = {};
|
|
564
|
+
contents = (0, import_smithy_client._json)(data);
|
|
565
|
+
const response = {
|
|
566
|
+
$metadata: deserializeMetadata(output),
|
|
567
|
+
...contents
|
|
568
|
+
};
|
|
569
|
+
return response;
|
|
570
|
+
}, "de_TagResourceCommand");
|
|
571
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
572
|
+
if (output.statusCode >= 300) {
|
|
573
|
+
return de_CommandError(output, context);
|
|
574
|
+
}
|
|
575
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
576
|
+
let contents = {};
|
|
577
|
+
contents = (0, import_smithy_client._json)(data);
|
|
578
|
+
const response = {
|
|
579
|
+
$metadata: deserializeMetadata(output),
|
|
580
|
+
...contents
|
|
581
|
+
};
|
|
582
|
+
return response;
|
|
583
|
+
}, "de_UntagResourceCommand");
|
|
584
|
+
var de_UpdateInvoiceUnitCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
585
|
+
if (output.statusCode >= 300) {
|
|
586
|
+
return de_CommandError(output, context);
|
|
587
|
+
}
|
|
588
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
589
|
+
let contents = {};
|
|
590
|
+
contents = (0, import_smithy_client._json)(data);
|
|
591
|
+
const response = {
|
|
592
|
+
$metadata: deserializeMetadata(output),
|
|
593
|
+
...contents
|
|
594
|
+
};
|
|
595
|
+
return response;
|
|
596
|
+
}, "de_UpdateInvoiceUnitCommand");
|
|
597
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
598
|
+
const parsedOutput = {
|
|
599
|
+
...output,
|
|
600
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
601
|
+
};
|
|
602
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
603
|
+
switch (errorCode) {
|
|
604
|
+
case "AccessDeniedException":
|
|
605
|
+
case "com.amazonaws.invoicing#AccessDeniedException":
|
|
606
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
607
|
+
case "InternalServerException":
|
|
608
|
+
case "com.amazonaws.invoicing#InternalServerException":
|
|
609
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
610
|
+
case "ResourceNotFoundException":
|
|
611
|
+
case "com.amazonaws.invoicing#ResourceNotFoundException":
|
|
612
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
613
|
+
case "ThrottlingException":
|
|
614
|
+
case "com.amazonaws.invoicing#ThrottlingException":
|
|
615
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
616
|
+
case "ValidationException":
|
|
617
|
+
case "com.amazonaws.invoicing#ValidationException":
|
|
618
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
619
|
+
case "ServiceQuotaExceededException":
|
|
620
|
+
case "com.amazonaws.invoicing#ServiceQuotaExceededException":
|
|
621
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
622
|
+
default:
|
|
623
|
+
const parsedBody = parsedOutput.body;
|
|
624
|
+
return throwDefaultError({
|
|
625
|
+
output,
|
|
626
|
+
parsedBody,
|
|
627
|
+
errorCode
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
}, "de_CommandError");
|
|
631
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
632
|
+
const body = parsedOutput.body;
|
|
633
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
634
|
+
const exception = new AccessDeniedException({
|
|
635
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
636
|
+
...deserialized
|
|
637
|
+
});
|
|
638
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
639
|
+
}, "de_AccessDeniedExceptionRes");
|
|
640
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
641
|
+
const body = parsedOutput.body;
|
|
642
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
643
|
+
const exception = new InternalServerException({
|
|
644
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
645
|
+
...deserialized
|
|
646
|
+
});
|
|
647
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
648
|
+
}, "de_InternalServerExceptionRes");
|
|
649
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
650
|
+
const body = parsedOutput.body;
|
|
651
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
652
|
+
const exception = new ResourceNotFoundException({
|
|
653
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
654
|
+
...deserialized
|
|
655
|
+
});
|
|
656
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
657
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
658
|
+
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
659
|
+
const body = parsedOutput.body;
|
|
660
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
661
|
+
const exception = new ServiceQuotaExceededException({
|
|
662
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
663
|
+
...deserialized
|
|
664
|
+
});
|
|
665
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
666
|
+
}, "de_ServiceQuotaExceededExceptionRes");
|
|
667
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
668
|
+
const body = parsedOutput.body;
|
|
669
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
670
|
+
const exception = new ThrottlingException({
|
|
671
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
672
|
+
...deserialized
|
|
673
|
+
});
|
|
674
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
675
|
+
}, "de_ThrottlingExceptionRes");
|
|
676
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
677
|
+
const body = parsedOutput.body;
|
|
678
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
679
|
+
const exception = new ValidationException({
|
|
680
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
681
|
+
...deserialized
|
|
682
|
+
});
|
|
683
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
684
|
+
}, "de_ValidationExceptionRes");
|
|
685
|
+
var se_DateInterval = /* @__PURE__ */ __name((input, context) => {
|
|
686
|
+
return (0, import_smithy_client.take)(input, {
|
|
687
|
+
EndDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndDate"),
|
|
688
|
+
StartDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartDate")
|
|
689
|
+
});
|
|
690
|
+
}, "se_DateInterval");
|
|
691
|
+
var se_GetInvoiceUnitRequest = /* @__PURE__ */ __name((input, context) => {
|
|
692
|
+
return (0, import_smithy_client.take)(input, {
|
|
693
|
+
AsOf: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "AsOf"),
|
|
694
|
+
InvoiceUnitArn: []
|
|
695
|
+
});
|
|
696
|
+
}, "se_GetInvoiceUnitRequest");
|
|
697
|
+
var se_InvoiceSummariesFilter = /* @__PURE__ */ __name((input, context) => {
|
|
698
|
+
return (0, import_smithy_client.take)(input, {
|
|
699
|
+
BillingPeriod: import_smithy_client._json,
|
|
700
|
+
InvoicingEntity: [],
|
|
701
|
+
TimeInterval: /* @__PURE__ */ __name((_) => se_DateInterval(_, context), "TimeInterval")
|
|
702
|
+
});
|
|
703
|
+
}, "se_InvoiceSummariesFilter");
|
|
704
|
+
var se_ListInvoiceSummariesRequest = /* @__PURE__ */ __name((input, context) => {
|
|
705
|
+
return (0, import_smithy_client.take)(input, {
|
|
706
|
+
Filter: /* @__PURE__ */ __name((_) => se_InvoiceSummariesFilter(_, context), "Filter"),
|
|
707
|
+
MaxResults: [],
|
|
708
|
+
NextToken: [],
|
|
709
|
+
Selector: import_smithy_client._json
|
|
710
|
+
});
|
|
711
|
+
}, "se_ListInvoiceSummariesRequest");
|
|
712
|
+
var se_ListInvoiceUnitsRequest = /* @__PURE__ */ __name((input, context) => {
|
|
713
|
+
return (0, import_smithy_client.take)(input, {
|
|
714
|
+
AsOf: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "AsOf"),
|
|
715
|
+
Filters: import_smithy_client._json,
|
|
716
|
+
MaxResults: [],
|
|
717
|
+
NextToken: []
|
|
718
|
+
});
|
|
719
|
+
}, "se_ListInvoiceUnitsRequest");
|
|
720
|
+
var de_GetInvoiceUnitResponse = /* @__PURE__ */ __name((output, context) => {
|
|
721
|
+
return (0, import_smithy_client.take)(output, {
|
|
722
|
+
Description: import_smithy_client.expectString,
|
|
723
|
+
InvoiceReceiver: import_smithy_client.expectString,
|
|
724
|
+
InvoiceUnitArn: import_smithy_client.expectString,
|
|
725
|
+
LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModified"),
|
|
726
|
+
Name: import_smithy_client.expectString,
|
|
727
|
+
Rule: import_smithy_client._json,
|
|
728
|
+
TaxInheritanceDisabled: import_smithy_client.expectBoolean
|
|
729
|
+
});
|
|
730
|
+
}, "de_GetInvoiceUnitResponse");
|
|
731
|
+
var de_InvoiceSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
732
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
733
|
+
return de_InvoiceSummary(entry, context);
|
|
734
|
+
});
|
|
735
|
+
return retVal;
|
|
736
|
+
}, "de_InvoiceSummaries");
|
|
737
|
+
var de_InvoiceSummary = /* @__PURE__ */ __name((output, context) => {
|
|
738
|
+
return (0, import_smithy_client.take)(output, {
|
|
739
|
+
AccountId: import_smithy_client.expectString,
|
|
740
|
+
BaseCurrencyAmount: import_smithy_client._json,
|
|
741
|
+
BillingPeriod: import_smithy_client._json,
|
|
742
|
+
DueDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "DueDate"),
|
|
743
|
+
Entity: import_smithy_client._json,
|
|
744
|
+
InvoiceId: import_smithy_client.expectString,
|
|
745
|
+
InvoiceType: import_smithy_client.expectString,
|
|
746
|
+
IssuedDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "IssuedDate"),
|
|
747
|
+
OriginalInvoiceId: import_smithy_client.expectString,
|
|
748
|
+
PaymentCurrencyAmount: import_smithy_client._json,
|
|
749
|
+
PurchaseOrderNumber: import_smithy_client.expectString,
|
|
750
|
+
TaxCurrencyAmount: import_smithy_client._json
|
|
751
|
+
});
|
|
752
|
+
}, "de_InvoiceSummary");
|
|
753
|
+
var de_InvoiceUnit = /* @__PURE__ */ __name((output, context) => {
|
|
754
|
+
return (0, import_smithy_client.take)(output, {
|
|
755
|
+
Description: import_smithy_client.expectString,
|
|
756
|
+
InvoiceReceiver: import_smithy_client.expectString,
|
|
757
|
+
InvoiceUnitArn: import_smithy_client.expectString,
|
|
758
|
+
LastModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModified"),
|
|
759
|
+
Name: import_smithy_client.expectString,
|
|
760
|
+
Rule: import_smithy_client._json,
|
|
761
|
+
TaxInheritanceDisabled: import_smithy_client.expectBoolean
|
|
762
|
+
});
|
|
763
|
+
}, "de_InvoiceUnit");
|
|
764
|
+
var de_InvoiceUnits = /* @__PURE__ */ __name((output, context) => {
|
|
765
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
766
|
+
return de_InvoiceUnit(entry, context);
|
|
767
|
+
});
|
|
768
|
+
return retVal;
|
|
769
|
+
}, "de_InvoiceUnits");
|
|
770
|
+
var de_ListInvoiceSummariesResponse = /* @__PURE__ */ __name((output, context) => {
|
|
771
|
+
return (0, import_smithy_client.take)(output, {
|
|
772
|
+
InvoiceSummaries: /* @__PURE__ */ __name((_) => de_InvoiceSummaries(_, context), "InvoiceSummaries"),
|
|
773
|
+
NextToken: import_smithy_client.expectString
|
|
774
|
+
});
|
|
775
|
+
}, "de_ListInvoiceSummariesResponse");
|
|
776
|
+
var de_ListInvoiceUnitsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
777
|
+
return (0, import_smithy_client.take)(output, {
|
|
778
|
+
InvoiceUnits: /* @__PURE__ */ __name((_) => de_InvoiceUnits(_, context), "InvoiceUnits"),
|
|
779
|
+
NextToken: import_smithy_client.expectString
|
|
780
|
+
});
|
|
781
|
+
}, "de_ListInvoiceUnitsResponse");
|
|
782
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
783
|
+
httpStatusCode: output.statusCode,
|
|
784
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
785
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
786
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
787
|
+
}), "deserializeMetadata");
|
|
788
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(InvoicingServiceException);
|
|
789
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
790
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
791
|
+
const contents = {
|
|
792
|
+
protocol,
|
|
793
|
+
hostname,
|
|
794
|
+
port,
|
|
795
|
+
method: "POST",
|
|
796
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
797
|
+
headers
|
|
798
|
+
};
|
|
799
|
+
if (resolvedHostname !== void 0) {
|
|
800
|
+
contents.hostname = resolvedHostname;
|
|
801
|
+
}
|
|
802
|
+
if (body !== void 0) {
|
|
803
|
+
contents.body = body;
|
|
804
|
+
}
|
|
805
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
806
|
+
}, "buildHttpRpcRequest");
|
|
807
|
+
function sharedHeaders(operation) {
|
|
808
|
+
return {
|
|
809
|
+
"content-type": "application/x-amz-json-1.0",
|
|
810
|
+
"x-amz-target": `Invoicing.${operation}`
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
814
|
+
|
|
815
|
+
// src/commands/BatchGetInvoiceProfileCommand.ts
|
|
816
|
+
var BatchGetInvoiceProfileCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
817
|
+
return [
|
|
818
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
819
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
820
|
+
];
|
|
821
|
+
}).s("Invoicing", "BatchGetInvoiceProfile", {}).n("InvoicingClient", "BatchGetInvoiceProfileCommand").f(void 0, BatchGetInvoiceProfileResponseFilterSensitiveLog).ser(se_BatchGetInvoiceProfileCommand).de(de_BatchGetInvoiceProfileCommand).build() {
|
|
822
|
+
static {
|
|
823
|
+
__name(this, "BatchGetInvoiceProfileCommand");
|
|
824
|
+
}
|
|
825
|
+
};
|
|
826
|
+
|
|
827
|
+
// src/commands/CreateInvoiceUnitCommand.ts
|
|
828
|
+
|
|
829
|
+
|
|
830
|
+
|
|
831
|
+
var CreateInvoiceUnitCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
832
|
+
return [
|
|
833
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
834
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
835
|
+
];
|
|
836
|
+
}).s("Invoicing", "CreateInvoiceUnit", {}).n("InvoicingClient", "CreateInvoiceUnitCommand").f(void 0, void 0).ser(se_CreateInvoiceUnitCommand).de(de_CreateInvoiceUnitCommand).build() {
|
|
837
|
+
static {
|
|
838
|
+
__name(this, "CreateInvoiceUnitCommand");
|
|
839
|
+
}
|
|
840
|
+
};
|
|
841
|
+
|
|
842
|
+
// src/commands/DeleteInvoiceUnitCommand.ts
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
var DeleteInvoiceUnitCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
847
|
+
return [
|
|
848
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
849
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
850
|
+
];
|
|
851
|
+
}).s("Invoicing", "DeleteInvoiceUnit", {}).n("InvoicingClient", "DeleteInvoiceUnitCommand").f(void 0, void 0).ser(se_DeleteInvoiceUnitCommand).de(de_DeleteInvoiceUnitCommand).build() {
|
|
852
|
+
static {
|
|
853
|
+
__name(this, "DeleteInvoiceUnitCommand");
|
|
854
|
+
}
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
// src/commands/GetInvoiceUnitCommand.ts
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
var GetInvoiceUnitCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
862
|
+
return [
|
|
863
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
864
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
865
|
+
];
|
|
866
|
+
}).s("Invoicing", "GetInvoiceUnit", {}).n("InvoicingClient", "GetInvoiceUnitCommand").f(void 0, void 0).ser(se_GetInvoiceUnitCommand).de(de_GetInvoiceUnitCommand).build() {
|
|
867
|
+
static {
|
|
868
|
+
__name(this, "GetInvoiceUnitCommand");
|
|
869
|
+
}
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
// src/commands/ListInvoiceSummariesCommand.ts
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
var ListInvoiceSummariesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
877
|
+
return [
|
|
878
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
879
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
880
|
+
];
|
|
881
|
+
}).s("Invoicing", "ListInvoiceSummaries", {}).n("InvoicingClient", "ListInvoiceSummariesCommand").f(void 0, void 0).ser(se_ListInvoiceSummariesCommand).de(de_ListInvoiceSummariesCommand).build() {
|
|
882
|
+
static {
|
|
883
|
+
__name(this, "ListInvoiceSummariesCommand");
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
// src/commands/ListInvoiceUnitsCommand.ts
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
|
|
891
|
+
var ListInvoiceUnitsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
892
|
+
return [
|
|
893
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
894
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
895
|
+
];
|
|
896
|
+
}).s("Invoicing", "ListInvoiceUnits", {}).n("InvoicingClient", "ListInvoiceUnitsCommand").f(void 0, void 0).ser(se_ListInvoiceUnitsCommand).de(de_ListInvoiceUnitsCommand).build() {
|
|
897
|
+
static {
|
|
898
|
+
__name(this, "ListInvoiceUnitsCommand");
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
907
|
+
return [
|
|
908
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
909
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
910
|
+
];
|
|
911
|
+
}).s("Invoicing", "ListTagsForResource", {}).n("InvoicingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
912
|
+
static {
|
|
913
|
+
__name(this, "ListTagsForResourceCommand");
|
|
914
|
+
}
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
// src/commands/TagResourceCommand.ts
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
|
|
921
|
+
var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
922
|
+
return [
|
|
923
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
924
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
925
|
+
];
|
|
926
|
+
}).s("Invoicing", "TagResource", {}).n("InvoicingClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
927
|
+
static {
|
|
928
|
+
__name(this, "TagResourceCommand");
|
|
929
|
+
}
|
|
930
|
+
};
|
|
931
|
+
|
|
932
|
+
// src/commands/UntagResourceCommand.ts
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
937
|
+
return [
|
|
938
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
939
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
940
|
+
];
|
|
941
|
+
}).s("Invoicing", "UntagResource", {}).n("InvoicingClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
942
|
+
static {
|
|
943
|
+
__name(this, "UntagResourceCommand");
|
|
944
|
+
}
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
// src/commands/UpdateInvoiceUnitCommand.ts
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
var UpdateInvoiceUnitCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
952
|
+
return [
|
|
953
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
954
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
955
|
+
];
|
|
956
|
+
}).s("Invoicing", "UpdateInvoiceUnit", {}).n("InvoicingClient", "UpdateInvoiceUnitCommand").f(void 0, void 0).ser(se_UpdateInvoiceUnitCommand).de(de_UpdateInvoiceUnitCommand).build() {
|
|
957
|
+
static {
|
|
958
|
+
__name(this, "UpdateInvoiceUnitCommand");
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
|
|
962
|
+
// src/Invoicing.ts
|
|
963
|
+
var commands = {
|
|
964
|
+
BatchGetInvoiceProfileCommand,
|
|
965
|
+
CreateInvoiceUnitCommand,
|
|
966
|
+
DeleteInvoiceUnitCommand,
|
|
967
|
+
GetInvoiceUnitCommand,
|
|
968
|
+
ListInvoiceSummariesCommand,
|
|
969
|
+
ListInvoiceUnitsCommand,
|
|
970
|
+
ListTagsForResourceCommand,
|
|
971
|
+
TagResourceCommand,
|
|
972
|
+
UntagResourceCommand,
|
|
973
|
+
UpdateInvoiceUnitCommand
|
|
974
|
+
};
|
|
975
|
+
var Invoicing = class extends InvoicingClient {
|
|
976
|
+
static {
|
|
977
|
+
__name(this, "Invoicing");
|
|
978
|
+
}
|
|
979
|
+
};
|
|
980
|
+
(0, import_smithy_client.createAggregatedClient)(commands, Invoicing);
|
|
981
|
+
|
|
982
|
+
// src/pagination/ListInvoiceSummariesPaginator.ts
|
|
983
|
+
|
|
984
|
+
var paginateListInvoiceSummaries = (0, import_core.createPaginator)(InvoicingClient, ListInvoiceSummariesCommand, "NextToken", "NextToken", "MaxResults");
|
|
985
|
+
|
|
986
|
+
// src/pagination/ListInvoiceUnitsPaginator.ts
|
|
987
|
+
|
|
988
|
+
var paginateListInvoiceUnits = (0, import_core.createPaginator)(InvoicingClient, ListInvoiceUnitsCommand, "NextToken", "NextToken", "MaxResults");
|
|
989
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
990
|
+
|
|
991
|
+
0 && (module.exports = {
|
|
992
|
+
InvoicingServiceException,
|
|
993
|
+
__Client,
|
|
994
|
+
InvoicingClient,
|
|
995
|
+
Invoicing,
|
|
996
|
+
$Command,
|
|
997
|
+
BatchGetInvoiceProfileCommand,
|
|
998
|
+
CreateInvoiceUnitCommand,
|
|
999
|
+
DeleteInvoiceUnitCommand,
|
|
1000
|
+
GetInvoiceUnitCommand,
|
|
1001
|
+
ListInvoiceSummariesCommand,
|
|
1002
|
+
ListInvoiceUnitsCommand,
|
|
1003
|
+
ListTagsForResourceCommand,
|
|
1004
|
+
TagResourceCommand,
|
|
1005
|
+
UntagResourceCommand,
|
|
1006
|
+
UpdateInvoiceUnitCommand,
|
|
1007
|
+
paginateListInvoiceSummaries,
|
|
1008
|
+
paginateListInvoiceUnits,
|
|
1009
|
+
AccessDeniedException,
|
|
1010
|
+
InternalServerException,
|
|
1011
|
+
ResourceNotFoundException,
|
|
1012
|
+
ThrottlingException,
|
|
1013
|
+
ValidationExceptionReason,
|
|
1014
|
+
ValidationException,
|
|
1015
|
+
InvoiceType,
|
|
1016
|
+
ListInvoiceSummariesResourceType,
|
|
1017
|
+
ServiceQuotaExceededException,
|
|
1018
|
+
ReceiverAddressFilterSensitiveLog,
|
|
1019
|
+
InvoiceProfileFilterSensitiveLog,
|
|
1020
|
+
BatchGetInvoiceProfileResponseFilterSensitiveLog
|
|
1021
|
+
});
|
|
1022
|
+
|