@aws-sdk/client-invoicing 3.893.0 → 3.895.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 +7 -7
- 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
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListInvoiceUnits = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListInvoiceUnitsCommand_1 = require("../commands/ListInvoiceUnitsCommand");
|
|
6
|
-
const InvoicingClient_1 = require("../InvoicingClient");
|
|
7
|
-
exports.paginateListInvoiceUnits = (0, core_1.createPaginator)(InvoicingClient_1.InvoicingClient, ListInvoiceUnitsCommand_1.ListInvoiceUnitsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./ListInvoiceSummariesPaginator"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./ListInvoiceUnitsPaginator"), exports);
|
|
@@ -1,439 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateInvoiceUnitCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListInvoiceUnitsCommand = exports.de_ListInvoiceSummariesCommand = exports.de_GetInvoiceUnitCommand = exports.de_DeleteInvoiceUnitCommand = exports.de_CreateInvoiceUnitCommand = exports.de_BatchGetInvoiceProfileCommand = exports.se_UpdateInvoiceUnitCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListInvoiceUnitsCommand = exports.se_ListInvoiceSummariesCommand = exports.se_GetInvoiceUnitCommand = exports.se_DeleteInvoiceUnitCommand = exports.se_CreateInvoiceUnitCommand = exports.se_BatchGetInvoiceProfileCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const InvoicingServiceException_1 = require("../models/InvoicingServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_BatchGetInvoiceProfileCommand = async (input, context) => {
|
|
10
|
-
const headers = sharedHeaders("BatchGetInvoiceProfile");
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
-
};
|
|
15
|
-
exports.se_BatchGetInvoiceProfileCommand = se_BatchGetInvoiceProfileCommand;
|
|
16
|
-
const se_CreateInvoiceUnitCommand = async (input, context) => {
|
|
17
|
-
const headers = sharedHeaders("CreateInvoiceUnit");
|
|
18
|
-
let body;
|
|
19
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
|
-
};
|
|
22
|
-
exports.se_CreateInvoiceUnitCommand = se_CreateInvoiceUnitCommand;
|
|
23
|
-
const se_DeleteInvoiceUnitCommand = async (input, context) => {
|
|
24
|
-
const headers = sharedHeaders("DeleteInvoiceUnit");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
|
-
};
|
|
29
|
-
exports.se_DeleteInvoiceUnitCommand = se_DeleteInvoiceUnitCommand;
|
|
30
|
-
const se_GetInvoiceUnitCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("GetInvoiceUnit");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(se_GetInvoiceUnitRequest(input, context));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
exports.se_GetInvoiceUnitCommand = se_GetInvoiceUnitCommand;
|
|
37
|
-
const se_ListInvoiceSummariesCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("ListInvoiceSummaries");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(se_ListInvoiceSummariesRequest(input, context));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
exports.se_ListInvoiceSummariesCommand = se_ListInvoiceSummariesCommand;
|
|
44
|
-
const se_ListInvoiceUnitsCommand = async (input, context) => {
|
|
45
|
-
const headers = sharedHeaders("ListInvoiceUnits");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify(se_ListInvoiceUnitsRequest(input, context));
|
|
48
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
-
};
|
|
50
|
-
exports.se_ListInvoiceUnitsCommand = se_ListInvoiceUnitsCommand;
|
|
51
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
52
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
53
|
-
let body;
|
|
54
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
|
-
};
|
|
57
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
58
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
59
|
-
const headers = sharedHeaders("TagResource");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
|
-
};
|
|
64
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
65
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
66
|
-
const headers = sharedHeaders("UntagResource");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
|
-
};
|
|
71
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
72
|
-
const se_UpdateInvoiceUnitCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("UpdateInvoiceUnit");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
exports.se_UpdateInvoiceUnitCommand = se_UpdateInvoiceUnitCommand;
|
|
79
|
-
const de_BatchGetInvoiceProfileCommand = async (output, context) => {
|
|
80
|
-
if (output.statusCode >= 300) {
|
|
81
|
-
return de_CommandError(output, context);
|
|
82
|
-
}
|
|
83
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
84
|
-
let contents = {};
|
|
85
|
-
contents = (0, smithy_client_1._json)(data);
|
|
86
|
-
const response = {
|
|
87
|
-
$metadata: deserializeMetadata(output),
|
|
88
|
-
...contents,
|
|
89
|
-
};
|
|
90
|
-
return response;
|
|
91
|
-
};
|
|
92
|
-
exports.de_BatchGetInvoiceProfileCommand = de_BatchGetInvoiceProfileCommand;
|
|
93
|
-
const de_CreateInvoiceUnitCommand = async (output, context) => {
|
|
94
|
-
if (output.statusCode >= 300) {
|
|
95
|
-
return de_CommandError(output, context);
|
|
96
|
-
}
|
|
97
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
98
|
-
let contents = {};
|
|
99
|
-
contents = (0, smithy_client_1._json)(data);
|
|
100
|
-
const response = {
|
|
101
|
-
$metadata: deserializeMetadata(output),
|
|
102
|
-
...contents,
|
|
103
|
-
};
|
|
104
|
-
return response;
|
|
105
|
-
};
|
|
106
|
-
exports.de_CreateInvoiceUnitCommand = de_CreateInvoiceUnitCommand;
|
|
107
|
-
const de_DeleteInvoiceUnitCommand = async (output, context) => {
|
|
108
|
-
if (output.statusCode >= 300) {
|
|
109
|
-
return de_CommandError(output, context);
|
|
110
|
-
}
|
|
111
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
112
|
-
let contents = {};
|
|
113
|
-
contents = (0, smithy_client_1._json)(data);
|
|
114
|
-
const response = {
|
|
115
|
-
$metadata: deserializeMetadata(output),
|
|
116
|
-
...contents,
|
|
117
|
-
};
|
|
118
|
-
return response;
|
|
119
|
-
};
|
|
120
|
-
exports.de_DeleteInvoiceUnitCommand = de_DeleteInvoiceUnitCommand;
|
|
121
|
-
const de_GetInvoiceUnitCommand = async (output, context) => {
|
|
122
|
-
if (output.statusCode >= 300) {
|
|
123
|
-
return de_CommandError(output, context);
|
|
124
|
-
}
|
|
125
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
126
|
-
let contents = {};
|
|
127
|
-
contents = de_GetInvoiceUnitResponse(data, context);
|
|
128
|
-
const response = {
|
|
129
|
-
$metadata: deserializeMetadata(output),
|
|
130
|
-
...contents,
|
|
131
|
-
};
|
|
132
|
-
return response;
|
|
133
|
-
};
|
|
134
|
-
exports.de_GetInvoiceUnitCommand = de_GetInvoiceUnitCommand;
|
|
135
|
-
const de_ListInvoiceSummariesCommand = async (output, context) => {
|
|
136
|
-
if (output.statusCode >= 300) {
|
|
137
|
-
return de_CommandError(output, context);
|
|
138
|
-
}
|
|
139
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
140
|
-
let contents = {};
|
|
141
|
-
contents = de_ListInvoiceSummariesResponse(data, context);
|
|
142
|
-
const response = {
|
|
143
|
-
$metadata: deserializeMetadata(output),
|
|
144
|
-
...contents,
|
|
145
|
-
};
|
|
146
|
-
return response;
|
|
147
|
-
};
|
|
148
|
-
exports.de_ListInvoiceSummariesCommand = de_ListInvoiceSummariesCommand;
|
|
149
|
-
const de_ListInvoiceUnitsCommand = async (output, context) => {
|
|
150
|
-
if (output.statusCode >= 300) {
|
|
151
|
-
return de_CommandError(output, context);
|
|
152
|
-
}
|
|
153
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
154
|
-
let contents = {};
|
|
155
|
-
contents = de_ListInvoiceUnitsResponse(data, context);
|
|
156
|
-
const response = {
|
|
157
|
-
$metadata: deserializeMetadata(output),
|
|
158
|
-
...contents,
|
|
159
|
-
};
|
|
160
|
-
return response;
|
|
161
|
-
};
|
|
162
|
-
exports.de_ListInvoiceUnitsCommand = de_ListInvoiceUnitsCommand;
|
|
163
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
164
|
-
if (output.statusCode >= 300) {
|
|
165
|
-
return de_CommandError(output, context);
|
|
166
|
-
}
|
|
167
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
168
|
-
let contents = {};
|
|
169
|
-
contents = (0, smithy_client_1._json)(data);
|
|
170
|
-
const response = {
|
|
171
|
-
$metadata: deserializeMetadata(output),
|
|
172
|
-
...contents,
|
|
173
|
-
};
|
|
174
|
-
return response;
|
|
175
|
-
};
|
|
176
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
177
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
178
|
-
if (output.statusCode >= 300) {
|
|
179
|
-
return de_CommandError(output, context);
|
|
180
|
-
}
|
|
181
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
182
|
-
let contents = {};
|
|
183
|
-
contents = (0, smithy_client_1._json)(data);
|
|
184
|
-
const response = {
|
|
185
|
-
$metadata: deserializeMetadata(output),
|
|
186
|
-
...contents,
|
|
187
|
-
};
|
|
188
|
-
return response;
|
|
189
|
-
};
|
|
190
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
191
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
192
|
-
if (output.statusCode >= 300) {
|
|
193
|
-
return de_CommandError(output, context);
|
|
194
|
-
}
|
|
195
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
196
|
-
let contents = {};
|
|
197
|
-
contents = (0, smithy_client_1._json)(data);
|
|
198
|
-
const response = {
|
|
199
|
-
$metadata: deserializeMetadata(output),
|
|
200
|
-
...contents,
|
|
201
|
-
};
|
|
202
|
-
return response;
|
|
203
|
-
};
|
|
204
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
205
|
-
const de_UpdateInvoiceUnitCommand = async (output, context) => {
|
|
206
|
-
if (output.statusCode >= 300) {
|
|
207
|
-
return de_CommandError(output, context);
|
|
208
|
-
}
|
|
209
|
-
const data = await (0, core_1.parseJsonBody)(output.body, context);
|
|
210
|
-
let contents = {};
|
|
211
|
-
contents = (0, smithy_client_1._json)(data);
|
|
212
|
-
const response = {
|
|
213
|
-
$metadata: deserializeMetadata(output),
|
|
214
|
-
...contents,
|
|
215
|
-
};
|
|
216
|
-
return response;
|
|
217
|
-
};
|
|
218
|
-
exports.de_UpdateInvoiceUnitCommand = de_UpdateInvoiceUnitCommand;
|
|
219
|
-
const de_CommandError = async (output, context) => {
|
|
220
|
-
const parsedOutput = {
|
|
221
|
-
...output,
|
|
222
|
-
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
223
|
-
};
|
|
224
|
-
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
225
|
-
switch (errorCode) {
|
|
226
|
-
case "AccessDeniedException":
|
|
227
|
-
case "com.amazonaws.invoicing#AccessDeniedException":
|
|
228
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
229
|
-
case "InternalServerException":
|
|
230
|
-
case "com.amazonaws.invoicing#InternalServerException":
|
|
231
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
232
|
-
case "ResourceNotFoundException":
|
|
233
|
-
case "com.amazonaws.invoicing#ResourceNotFoundException":
|
|
234
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
235
|
-
case "ThrottlingException":
|
|
236
|
-
case "com.amazonaws.invoicing#ThrottlingException":
|
|
237
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
238
|
-
case "ValidationException":
|
|
239
|
-
case "com.amazonaws.invoicing#ValidationException":
|
|
240
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
241
|
-
case "ServiceQuotaExceededException":
|
|
242
|
-
case "com.amazonaws.invoicing#ServiceQuotaExceededException":
|
|
243
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
244
|
-
default:
|
|
245
|
-
const parsedBody = parsedOutput.body;
|
|
246
|
-
return throwDefaultError({
|
|
247
|
-
output,
|
|
248
|
-
parsedBody,
|
|
249
|
-
errorCode,
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
254
|
-
const body = parsedOutput.body;
|
|
255
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
256
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
257
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
258
|
-
...deserialized,
|
|
259
|
-
});
|
|
260
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
261
|
-
};
|
|
262
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
263
|
-
const body = parsedOutput.body;
|
|
264
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
265
|
-
const exception = new models_0_1.InternalServerException({
|
|
266
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
267
|
-
...deserialized,
|
|
268
|
-
});
|
|
269
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
270
|
-
};
|
|
271
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
272
|
-
const body = parsedOutput.body;
|
|
273
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
274
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
275
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
276
|
-
...deserialized,
|
|
277
|
-
});
|
|
278
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
279
|
-
};
|
|
280
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
281
|
-
const body = parsedOutput.body;
|
|
282
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
283
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
284
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
285
|
-
...deserialized,
|
|
286
|
-
});
|
|
287
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
288
|
-
};
|
|
289
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
290
|
-
const body = parsedOutput.body;
|
|
291
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
292
|
-
const exception = new models_0_1.ThrottlingException({
|
|
293
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
294
|
-
...deserialized,
|
|
295
|
-
});
|
|
296
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
297
|
-
};
|
|
298
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
299
|
-
const body = parsedOutput.body;
|
|
300
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
301
|
-
const exception = new models_0_1.ValidationException({
|
|
302
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
303
|
-
...deserialized,
|
|
304
|
-
});
|
|
305
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
306
|
-
};
|
|
307
|
-
const se_DateInterval = (input, context) => {
|
|
308
|
-
return (0, smithy_client_1.take)(input, {
|
|
309
|
-
EndDate: (_) => _.getTime() / 1_000,
|
|
310
|
-
StartDate: (_) => _.getTime() / 1_000,
|
|
311
|
-
});
|
|
312
|
-
};
|
|
313
|
-
const se_GetInvoiceUnitRequest = (input, context) => {
|
|
314
|
-
return (0, smithy_client_1.take)(input, {
|
|
315
|
-
AsOf: (_) => _.getTime() / 1_000,
|
|
316
|
-
InvoiceUnitArn: [],
|
|
317
|
-
});
|
|
318
|
-
};
|
|
319
|
-
const se_InvoiceSummariesFilter = (input, context) => {
|
|
320
|
-
return (0, smithy_client_1.take)(input, {
|
|
321
|
-
BillingPeriod: smithy_client_1._json,
|
|
322
|
-
InvoicingEntity: [],
|
|
323
|
-
TimeInterval: (_) => se_DateInterval(_, context),
|
|
324
|
-
});
|
|
325
|
-
};
|
|
326
|
-
const se_ListInvoiceSummariesRequest = (input, context) => {
|
|
327
|
-
return (0, smithy_client_1.take)(input, {
|
|
328
|
-
Filter: (_) => se_InvoiceSummariesFilter(_, context),
|
|
329
|
-
MaxResults: [],
|
|
330
|
-
NextToken: [],
|
|
331
|
-
Selector: smithy_client_1._json,
|
|
332
|
-
});
|
|
333
|
-
};
|
|
334
|
-
const se_ListInvoiceUnitsRequest = (input, context) => {
|
|
335
|
-
return (0, smithy_client_1.take)(input, {
|
|
336
|
-
AsOf: (_) => _.getTime() / 1_000,
|
|
337
|
-
Filters: smithy_client_1._json,
|
|
338
|
-
MaxResults: [],
|
|
339
|
-
NextToken: [],
|
|
340
|
-
});
|
|
341
|
-
};
|
|
342
|
-
const de_GetInvoiceUnitResponse = (output, context) => {
|
|
343
|
-
return (0, smithy_client_1.take)(output, {
|
|
344
|
-
Description: smithy_client_1.expectString,
|
|
345
|
-
InvoiceReceiver: smithy_client_1.expectString,
|
|
346
|
-
InvoiceUnitArn: smithy_client_1.expectString,
|
|
347
|
-
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
348
|
-
Name: smithy_client_1.expectString,
|
|
349
|
-
Rule: smithy_client_1._json,
|
|
350
|
-
TaxInheritanceDisabled: smithy_client_1.expectBoolean,
|
|
351
|
-
});
|
|
352
|
-
};
|
|
353
|
-
const de_InvoiceSummaries = (output, context) => {
|
|
354
|
-
const retVal = (output || [])
|
|
355
|
-
.filter((e) => e != null)
|
|
356
|
-
.map((entry) => {
|
|
357
|
-
return de_InvoiceSummary(entry, context);
|
|
358
|
-
});
|
|
359
|
-
return retVal;
|
|
360
|
-
};
|
|
361
|
-
const de_InvoiceSummary = (output, context) => {
|
|
362
|
-
return (0, smithy_client_1.take)(output, {
|
|
363
|
-
AccountId: smithy_client_1.expectString,
|
|
364
|
-
BaseCurrencyAmount: smithy_client_1._json,
|
|
365
|
-
BillingPeriod: smithy_client_1._json,
|
|
366
|
-
DueDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
367
|
-
Entity: smithy_client_1._json,
|
|
368
|
-
InvoiceId: smithy_client_1.expectString,
|
|
369
|
-
InvoiceType: smithy_client_1.expectString,
|
|
370
|
-
IssuedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
371
|
-
OriginalInvoiceId: smithy_client_1.expectString,
|
|
372
|
-
PaymentCurrencyAmount: smithy_client_1._json,
|
|
373
|
-
PurchaseOrderNumber: smithy_client_1.expectString,
|
|
374
|
-
TaxCurrencyAmount: smithy_client_1._json,
|
|
375
|
-
});
|
|
376
|
-
};
|
|
377
|
-
const de_InvoiceUnit = (output, context) => {
|
|
378
|
-
return (0, smithy_client_1.take)(output, {
|
|
379
|
-
Description: smithy_client_1.expectString,
|
|
380
|
-
InvoiceReceiver: smithy_client_1.expectString,
|
|
381
|
-
InvoiceUnitArn: smithy_client_1.expectString,
|
|
382
|
-
LastModified: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
383
|
-
Name: smithy_client_1.expectString,
|
|
384
|
-
Rule: smithy_client_1._json,
|
|
385
|
-
TaxInheritanceDisabled: smithy_client_1.expectBoolean,
|
|
386
|
-
});
|
|
387
|
-
};
|
|
388
|
-
const de_InvoiceUnits = (output, context) => {
|
|
389
|
-
const retVal = (output || [])
|
|
390
|
-
.filter((e) => e != null)
|
|
391
|
-
.map((entry) => {
|
|
392
|
-
return de_InvoiceUnit(entry, context);
|
|
393
|
-
});
|
|
394
|
-
return retVal;
|
|
395
|
-
};
|
|
396
|
-
const de_ListInvoiceSummariesResponse = (output, context) => {
|
|
397
|
-
return (0, smithy_client_1.take)(output, {
|
|
398
|
-
InvoiceSummaries: (_) => de_InvoiceSummaries(_, context),
|
|
399
|
-
NextToken: smithy_client_1.expectString,
|
|
400
|
-
});
|
|
401
|
-
};
|
|
402
|
-
const de_ListInvoiceUnitsResponse = (output, context) => {
|
|
403
|
-
return (0, smithy_client_1.take)(output, {
|
|
404
|
-
InvoiceUnits: (_) => de_InvoiceUnits(_, context),
|
|
405
|
-
NextToken: smithy_client_1.expectString,
|
|
406
|
-
});
|
|
407
|
-
};
|
|
408
|
-
const deserializeMetadata = (output) => ({
|
|
409
|
-
httpStatusCode: output.statusCode,
|
|
410
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
411
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
412
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
413
|
-
});
|
|
414
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
415
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(InvoicingServiceException_1.InvoicingServiceException);
|
|
416
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
417
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
418
|
-
const contents = {
|
|
419
|
-
protocol,
|
|
420
|
-
hostname,
|
|
421
|
-
port,
|
|
422
|
-
method: "POST",
|
|
423
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
424
|
-
headers,
|
|
425
|
-
};
|
|
426
|
-
if (resolvedHostname !== undefined) {
|
|
427
|
-
contents.hostname = resolvedHostname;
|
|
428
|
-
}
|
|
429
|
-
if (body !== undefined) {
|
|
430
|
-
contents.body = body;
|
|
431
|
-
}
|
|
432
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
433
|
-
};
|
|
434
|
-
function sharedHeaders(operation) {
|
|
435
|
-
return {
|
|
436
|
-
"content-type": "application/x-amz-json-1.0",
|
|
437
|
-
"x-amz-target": `Invoicing.${operation}`,
|
|
438
|
-
};
|
|
439
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = Object.assign((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig), (0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig), (0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig));
|
|
10
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
|
-
return Object.assign(runtimeConfig, (0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), (0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration));
|
|
12
|
-
};
|
|
13
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|