@aws-sdk/client-invoicing 3.956.0 → 3.958.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/README.md +1 -22
- package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-cjs/index.js +364 -455
- package/dist-cjs/runtimeConfig.browser.js +1 -2
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +363 -454
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -9,10 +9,8 @@ AWS SDK for JavaScript Invoicing Client for Node.js, Browser and React Native.
|
|
|
9
9
|
<p> <b>Amazon Web Services Invoice Configuration</b> </p> <p>You can use Amazon Web Services Invoice Configuration APIs to programmatically create, update, delete, get, and list invoice units. You can also programmatically fetch the information of the invoice receiver. For example, business legal name, address, and invoicing contacts. </p> <p>You can use Amazon Web Services Invoice Configuration to receive separate Amazon Web Services invoices based your organizational needs. By using Amazon Web Services Invoice Configuration, you can configure invoice units that are groups of Amazon Web Services accounts that represent your business entities, and receive separate invoices for each business entity. You can also assign a unique member or payer account as the invoice receiver for each invoice unit. As you create new accounts within your Organizations using Amazon Web Services Invoice Configuration APIs, you can automate the creation of new invoice units and subsequently automate the addition of new accounts to your invoice units.</p> <p> <b>Amazon Web Services Procurement Portal Preferences</b> </p> <p>You can use Amazon Web Services Procurement Portal Preferences APIs to programmatically create, update, delete, get, and list procurement portal connections and e-invoice delivery settings. You can also programmatically fetch and modify the status of procurement portal configurations. For example, SAP Business Network or Coupa connections, configure e-invoice delivery and purchase order retrieval features.</p> <p>You can use Amazon Web Services Procurement Portal Preferences to connect e-invoice delivery to your procurement portals based on your organizational needs. By using Amazon Web Services Procurement Portal Preferences, you can configure connections to SAP Business Network and Coupa procurement portals that retrieve purchase orders and deliver Amazon Web Services invoices on the same day they are generated. You can also set up testing environments to validate invoice delivery without affecting live transactions, and manage contact information for portal setup and support. </p> <p>Administrative users should understand that billing read-only policies will show all procurement portal connection details. Review your IAM policies to ensure appropriate access controls are in place for procurement portal preferences.</p> <p> <b>Amazon Web Services Invoice Management</b> </p> <p>You can use Amazon Web Services Invoice Management APIs to programmatically list invoice summaries and get invoice documents. You can also programmatically fetch invoice documents with S3 pre-signed URLs.</p> <p>You can use Amazon Web Services Invoice Management to access invoice information based on your organizational needs. By using Amazon Web Services Invoice Management, you can retrieve paginated lists of invoice summaries that include invoice metadata such as invoice IDs, amounts, and currencies without downloading documents. You can also download invoice documents in PDF format using S3 pre-signed URLs with built-in expiration. As you manage invoices across your organization using Amazon Web Services Invoice Management APIs, you can create invoice retrieval processes and integrate invoice data into your financial systems.</p> <p>Service endpoint</p> <p>You can use the following endpoints for Amazon Web Services Invoice Configuration, Amazon Web Services Procurement Portal Preferences, and Amazon Web Services Invoice Management:</p> <ul> <li> <p> <code>https://invoicing.us-east-1.api.aws</code> </p> </li> </ul>
|
|
10
10
|
|
|
11
11
|
## Installing
|
|
12
|
-
|
|
13
12
|
To install this package, simply type add or install @aws-sdk/client-invoicing
|
|
14
13
|
using your favorite package manager:
|
|
15
|
-
|
|
16
14
|
- `npm install @aws-sdk/client-invoicing`
|
|
17
15
|
- `yarn add @aws-sdk/client-invoicing`
|
|
18
16
|
- `pnpm add @aws-sdk/client-invoicing`
|
|
@@ -48,9 +46,7 @@ To send a request, you:
|
|
|
48
46
|
// a client can be shared by different commands.
|
|
49
47
|
const client = new InvoicingClient({ region: "REGION" });
|
|
50
48
|
|
|
51
|
-
const params = {
|
|
52
|
-
/** input parameters */
|
|
53
|
-
};
|
|
49
|
+
const params = { /** input parameters */ };
|
|
54
50
|
const command = new ListInvoiceUnitsCommand(params);
|
|
55
51
|
```
|
|
56
52
|
|
|
@@ -209,7 +205,6 @@ BatchGetInvoiceProfile
|
|
|
209
205
|
</summary>
|
|
210
206
|
|
|
211
207
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/BatchGetInvoiceProfileCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/BatchGetInvoiceProfileCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/BatchGetInvoiceProfileCommandOutput/)
|
|
212
|
-
|
|
213
208
|
</details>
|
|
214
209
|
<details>
|
|
215
210
|
<summary>
|
|
@@ -217,7 +212,6 @@ CreateInvoiceUnit
|
|
|
217
212
|
</summary>
|
|
218
213
|
|
|
219
214
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/CreateInvoiceUnitCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/CreateInvoiceUnitCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/CreateInvoiceUnitCommandOutput/)
|
|
220
|
-
|
|
221
215
|
</details>
|
|
222
216
|
<details>
|
|
223
217
|
<summary>
|
|
@@ -225,7 +219,6 @@ CreateProcurementPortalPreference
|
|
|
225
219
|
</summary>
|
|
226
220
|
|
|
227
221
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/CreateProcurementPortalPreferenceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/CreateProcurementPortalPreferenceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/CreateProcurementPortalPreferenceCommandOutput/)
|
|
228
|
-
|
|
229
222
|
</details>
|
|
230
223
|
<details>
|
|
231
224
|
<summary>
|
|
@@ -233,7 +226,6 @@ DeleteInvoiceUnit
|
|
|
233
226
|
</summary>
|
|
234
227
|
|
|
235
228
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/DeleteInvoiceUnitCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/DeleteInvoiceUnitCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/DeleteInvoiceUnitCommandOutput/)
|
|
236
|
-
|
|
237
229
|
</details>
|
|
238
230
|
<details>
|
|
239
231
|
<summary>
|
|
@@ -241,7 +233,6 @@ DeleteProcurementPortalPreference
|
|
|
241
233
|
</summary>
|
|
242
234
|
|
|
243
235
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/DeleteProcurementPortalPreferenceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/DeleteProcurementPortalPreferenceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/DeleteProcurementPortalPreferenceCommandOutput/)
|
|
244
|
-
|
|
245
236
|
</details>
|
|
246
237
|
<details>
|
|
247
238
|
<summary>
|
|
@@ -249,7 +240,6 @@ GetInvoicePDF
|
|
|
249
240
|
</summary>
|
|
250
241
|
|
|
251
242
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/GetInvoicePDFCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/GetInvoicePDFCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/GetInvoicePDFCommandOutput/)
|
|
252
|
-
|
|
253
243
|
</details>
|
|
254
244
|
<details>
|
|
255
245
|
<summary>
|
|
@@ -257,7 +247,6 @@ GetInvoiceUnit
|
|
|
257
247
|
</summary>
|
|
258
248
|
|
|
259
249
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/GetInvoiceUnitCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/GetInvoiceUnitCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/GetInvoiceUnitCommandOutput/)
|
|
260
|
-
|
|
261
250
|
</details>
|
|
262
251
|
<details>
|
|
263
252
|
<summary>
|
|
@@ -265,7 +254,6 @@ GetProcurementPortalPreference
|
|
|
265
254
|
</summary>
|
|
266
255
|
|
|
267
256
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/GetProcurementPortalPreferenceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/GetProcurementPortalPreferenceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/GetProcurementPortalPreferenceCommandOutput/)
|
|
268
|
-
|
|
269
257
|
</details>
|
|
270
258
|
<details>
|
|
271
259
|
<summary>
|
|
@@ -273,7 +261,6 @@ ListInvoiceSummaries
|
|
|
273
261
|
</summary>
|
|
274
262
|
|
|
275
263
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/ListInvoiceSummariesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListInvoiceSummariesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListInvoiceSummariesCommandOutput/)
|
|
276
|
-
|
|
277
264
|
</details>
|
|
278
265
|
<details>
|
|
279
266
|
<summary>
|
|
@@ -281,7 +268,6 @@ ListInvoiceUnits
|
|
|
281
268
|
</summary>
|
|
282
269
|
|
|
283
270
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/ListInvoiceUnitsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListInvoiceUnitsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListInvoiceUnitsCommandOutput/)
|
|
284
|
-
|
|
285
271
|
</details>
|
|
286
272
|
<details>
|
|
287
273
|
<summary>
|
|
@@ -289,7 +275,6 @@ ListProcurementPortalPreferences
|
|
|
289
275
|
</summary>
|
|
290
276
|
|
|
291
277
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/ListProcurementPortalPreferencesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListProcurementPortalPreferencesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListProcurementPortalPreferencesCommandOutput/)
|
|
292
|
-
|
|
293
278
|
</details>
|
|
294
279
|
<details>
|
|
295
280
|
<summary>
|
|
@@ -297,7 +282,6 @@ ListTagsForResource
|
|
|
297
282
|
</summary>
|
|
298
283
|
|
|
299
284
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/ListTagsForResourceCommandOutput/)
|
|
300
|
-
|
|
301
285
|
</details>
|
|
302
286
|
<details>
|
|
303
287
|
<summary>
|
|
@@ -305,7 +289,6 @@ PutProcurementPortalPreference
|
|
|
305
289
|
</summary>
|
|
306
290
|
|
|
307
291
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/PutProcurementPortalPreferenceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/PutProcurementPortalPreferenceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/PutProcurementPortalPreferenceCommandOutput/)
|
|
308
|
-
|
|
309
292
|
</details>
|
|
310
293
|
<details>
|
|
311
294
|
<summary>
|
|
@@ -313,7 +296,6 @@ TagResource
|
|
|
313
296
|
</summary>
|
|
314
297
|
|
|
315
298
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/TagResourceCommandOutput/)
|
|
316
|
-
|
|
317
299
|
</details>
|
|
318
300
|
<details>
|
|
319
301
|
<summary>
|
|
@@ -321,7 +303,6 @@ UntagResource
|
|
|
321
303
|
</summary>
|
|
322
304
|
|
|
323
305
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/UntagResourceCommandOutput/)
|
|
324
|
-
|
|
325
306
|
</details>
|
|
326
307
|
<details>
|
|
327
308
|
<summary>
|
|
@@ -329,7 +310,6 @@ UpdateInvoiceUnit
|
|
|
329
310
|
</summary>
|
|
330
311
|
|
|
331
312
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/UpdateInvoiceUnitCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/UpdateInvoiceUnitCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/UpdateInvoiceUnitCommandOutput/)
|
|
332
|
-
|
|
333
313
|
</details>
|
|
334
314
|
<details>
|
|
335
315
|
<summary>
|
|
@@ -337,5 +317,4 @@ UpdateProcurementPortalPreferenceStatus
|
|
|
337
317
|
</summary>
|
|
338
318
|
|
|
339
319
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/invoicing/command/UpdateProcurementPortalPreferenceStatusCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/UpdateProcurementPortalPreferenceStatusCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-invoicing/Interface/UpdateProcurementPortalPreferenceStatusCommandOutput/)
|
|
340
|
-
|
|
341
320
|
</details>
|
|
@@ -6,10 +6,9 @@ const util_middleware_1 = require("@smithy/util-middleware");
|
|
|
6
6
|
const defaultInvoicingHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
8
|
operation: (0, util_middleware_1.getSmithyContext)(context).operation,
|
|
9
|
-
region:
|
|
10
|
-
(
|
|
11
|
-
|
|
12
|
-
})(),
|
|
9
|
+
region: await (0, util_middleware_1.normalizeProvider)(config.region)() || (() => {
|
|
10
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
|
+
})(),
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
14
|
exports.defaultInvoicingHttpAuthSchemeParametersProvider = defaultInvoicingHttpAuthSchemeParametersProvider;
|