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