@aws-sdk/client-invoicing 3.1129.0 → 3.1131.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.
Files changed (34) hide show
  1. package/README.md +14 -0
  2. package/dist-cjs/index.js +108 -3
  3. package/dist-es/Invoicing.js +8 -0
  4. package/dist-es/commands/ListProcurementPortalSuppliersCommand.js +4 -0
  5. package/dist-es/commands/ListProcurementPortalsCommand.js +4 -0
  6. package/dist-es/commands/index.js +2 -0
  7. package/dist-es/models/enums.js +4 -0
  8. package/dist-es/pagination/ListProcurementPortalSuppliersPaginator.js +4 -0
  9. package/dist-es/pagination/ListProcurementPortalsPaginator.js +4 -0
  10. package/dist-es/pagination/index.js +2 -0
  11. package/dist-es/schemas/schemas_0.js +74 -2
  12. package/dist-types/Invoicing.d.ts +29 -0
  13. package/dist-types/InvoicingClient.d.ts +4 -2
  14. package/dist-types/commands/ListProcurementPortalSuppliersCommand.d.ts +128 -0
  15. package/dist-types/commands/ListProcurementPortalsCommand.d.ts +155 -0
  16. package/dist-types/commands/index.d.ts +2 -0
  17. package/dist-types/models/enums.d.ts +18 -0
  18. package/dist-types/models/models_0.d.ts +145 -1
  19. package/dist-types/pagination/ListProcurementPortalSuppliersPaginator.d.ts +7 -0
  20. package/dist-types/pagination/ListProcurementPortalsPaginator.d.ts +7 -0
  21. package/dist-types/pagination/index.d.ts +2 -0
  22. package/dist-types/schemas/schemas_0.d.ts +10 -0
  23. package/dist-types/ts3.4/Invoicing.d.ts +49 -0
  24. package/dist-types/ts3.4/InvoicingClient.d.ts +12 -0
  25. package/dist-types/ts3.4/commands/ListProcurementPortalSuppliersCommand.d.ts +42 -0
  26. package/dist-types/ts3.4/commands/ListProcurementPortalsCommand.d.ts +39 -0
  27. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  28. package/dist-types/ts3.4/models/enums.d.ts +5 -0
  29. package/dist-types/ts3.4/models/models_0.d.ts +37 -0
  30. package/dist-types/ts3.4/pagination/ListProcurementPortalSuppliersPaginator.d.ts +11 -0
  31. package/dist-types/ts3.4/pagination/ListProcurementPortalsPaginator.d.ts +11 -0
  32. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  33. package/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -0
  34. package/package.json +1 -1
@@ -10,6 +10,8 @@ import { type GetProcurementPortalPreferenceCommandInput, type GetProcurementPor
10
10
  import { type ListInvoiceSummariesCommandInput, type ListInvoiceSummariesCommandOutput } from "./commands/ListInvoiceSummariesCommand";
11
11
  import { type ListInvoiceUnitsCommandInput, type ListInvoiceUnitsCommandOutput } from "./commands/ListInvoiceUnitsCommand";
12
12
  import { type ListProcurementPortalPreferencesCommandInput, type ListProcurementPortalPreferencesCommandOutput } from "./commands/ListProcurementPortalPreferencesCommand";
13
+ import { type ListProcurementPortalsCommandInput, type ListProcurementPortalsCommandOutput } from "./commands/ListProcurementPortalsCommand";
14
+ import { type ListProcurementPortalSuppliersCommandInput, type ListProcurementPortalSuppliersCommandOutput } from "./commands/ListProcurementPortalSuppliersCommand";
13
15
  import { type ListTagsForResourceCommandInput, type ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
14
16
  import { type PutProcurementPortalPreferenceCommandInput, type PutProcurementPortalPreferenceCommandOutput } from "./commands/PutProcurementPortalPreferenceCommand";
15
17
  import { type SendProcurementPortalValidationCommandInput, type SendProcurementPortalValidationCommandOutput } from "./commands/SendProcurementPortalValidationCommand";
@@ -88,6 +90,19 @@ export interface Invoicing {
88
90
  listProcurementPortalPreferences(args: ListProcurementPortalPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<ListProcurementPortalPreferencesCommandOutput>;
89
91
  listProcurementPortalPreferences(args: ListProcurementPortalPreferencesCommandInput, cb: (err: any, data?: ListProcurementPortalPreferencesCommandOutput) => void): void;
90
92
  listProcurementPortalPreferences(args: ListProcurementPortalPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProcurementPortalPreferencesCommandOutput) => void): void;
93
+ /**
94
+ * @see {@link ListProcurementPortalsCommand}
95
+ */
96
+ listProcurementPortals(): Promise<ListProcurementPortalsCommandOutput>;
97
+ listProcurementPortals(args: ListProcurementPortalsCommandInput, options?: __HttpHandlerOptions): Promise<ListProcurementPortalsCommandOutput>;
98
+ listProcurementPortals(args: ListProcurementPortalsCommandInput, cb: (err: any, data?: ListProcurementPortalsCommandOutput) => void): void;
99
+ listProcurementPortals(args: ListProcurementPortalsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProcurementPortalsCommandOutput) => void): void;
100
+ /**
101
+ * @see {@link ListProcurementPortalSuppliersCommand}
102
+ */
103
+ listProcurementPortalSuppliers(args: ListProcurementPortalSuppliersCommandInput, options?: __HttpHandlerOptions): Promise<ListProcurementPortalSuppliersCommandOutput>;
104
+ listProcurementPortalSuppliers(args: ListProcurementPortalSuppliersCommandInput, cb: (err: any, data?: ListProcurementPortalSuppliersCommandOutput) => void): void;
105
+ listProcurementPortalSuppliers(args: ListProcurementPortalSuppliersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListProcurementPortalSuppliersCommandOutput) => void): void;
91
106
  /**
92
107
  * @see {@link ListTagsForResourceCommand}
93
108
  */
@@ -157,6 +172,20 @@ export interface Invoicing {
157
172
  * @returns AsyncIterable of {@link ListProcurementPortalPreferencesCommandOutput}.
158
173
  */
159
174
  paginateListProcurementPortalPreferences(args?: ListProcurementPortalPreferencesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListProcurementPortalPreferencesCommandOutput>;
175
+ /**
176
+ * @see {@link ListProcurementPortalsCommand}
177
+ * @param args - command input.
178
+ * @param paginationConfig - optional pagination config.
179
+ * @returns AsyncIterable of {@link ListProcurementPortalsCommandOutput}.
180
+ */
181
+ paginateListProcurementPortals(args?: ListProcurementPortalsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListProcurementPortalsCommandOutput>;
182
+ /**
183
+ * @see {@link ListProcurementPortalSuppliersCommand}
184
+ * @param args - command input.
185
+ * @param paginationConfig - optional pagination config.
186
+ * @returns AsyncIterable of {@link ListProcurementPortalSuppliersCommandOutput}.
187
+ */
188
+ paginateListProcurementPortalSuppliers(args: ListProcurementPortalSuppliersCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListProcurementPortalSuppliersCommandOutput>;
160
189
  }
161
190
  /**
162
191
  * <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>
@@ -17,6 +17,8 @@ import type { GetProcurementPortalPreferenceCommandInput, GetProcurementPortalPr
17
17
  import type { ListInvoiceSummariesCommandInput, ListInvoiceSummariesCommandOutput } from "./commands/ListInvoiceSummariesCommand";
18
18
  import type { ListInvoiceUnitsCommandInput, ListInvoiceUnitsCommandOutput } from "./commands/ListInvoiceUnitsCommand";
19
19
  import type { ListProcurementPortalPreferencesCommandInput, ListProcurementPortalPreferencesCommandOutput } from "./commands/ListProcurementPortalPreferencesCommand";
20
+ import type { ListProcurementPortalsCommandInput, ListProcurementPortalsCommandOutput } from "./commands/ListProcurementPortalsCommand";
21
+ import type { ListProcurementPortalSuppliersCommandInput, ListProcurementPortalSuppliersCommandOutput } from "./commands/ListProcurementPortalSuppliersCommand";
20
22
  import type { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
21
23
  import type { PutProcurementPortalPreferenceCommandInput, PutProcurementPortalPreferenceCommandOutput } from "./commands/PutProcurementPortalPreferenceCommand";
22
24
  import type { SendProcurementPortalValidationCommandInput, SendProcurementPortalValidationCommandOutput } from "./commands/SendProcurementPortalValidationCommand";
@@ -31,11 +33,11 @@ export { __Client };
31
33
  /**
32
34
  * @public
33
35
  */
34
- export type ServiceInputTypes = BatchGetInvoiceProfileCommandInput | CreateInvoiceUnitCommandInput | CreateProcurementPortalPreferenceCommandInput | DeleteInvoiceUnitCommandInput | DeleteProcurementPortalPreferenceCommandInput | GetInvoicePDFCommandInput | GetInvoiceUnitCommandInput | GetProcurementPortalPreferenceCommandInput | ListInvoiceSummariesCommandInput | ListInvoiceUnitsCommandInput | ListProcurementPortalPreferencesCommandInput | ListTagsForResourceCommandInput | PutProcurementPortalPreferenceCommandInput | SendProcurementPortalValidationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateInvoiceUnitCommandInput | UpdateProcurementPortalPreferenceStatusCommandInput | VerifyProcurementPortalValidationCommandInput;
36
+ export type ServiceInputTypes = BatchGetInvoiceProfileCommandInput | CreateInvoiceUnitCommandInput | CreateProcurementPortalPreferenceCommandInput | DeleteInvoiceUnitCommandInput | DeleteProcurementPortalPreferenceCommandInput | GetInvoicePDFCommandInput | GetInvoiceUnitCommandInput | GetProcurementPortalPreferenceCommandInput | ListInvoiceSummariesCommandInput | ListInvoiceUnitsCommandInput | ListProcurementPortalPreferencesCommandInput | ListProcurementPortalSuppliersCommandInput | ListProcurementPortalsCommandInput | ListTagsForResourceCommandInput | PutProcurementPortalPreferenceCommandInput | SendProcurementPortalValidationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateInvoiceUnitCommandInput | UpdateProcurementPortalPreferenceStatusCommandInput | VerifyProcurementPortalValidationCommandInput;
35
37
  /**
36
38
  * @public
37
39
  */
38
- export type ServiceOutputTypes = BatchGetInvoiceProfileCommandOutput | CreateInvoiceUnitCommandOutput | CreateProcurementPortalPreferenceCommandOutput | DeleteInvoiceUnitCommandOutput | DeleteProcurementPortalPreferenceCommandOutput | GetInvoicePDFCommandOutput | GetInvoiceUnitCommandOutput | GetProcurementPortalPreferenceCommandOutput | ListInvoiceSummariesCommandOutput | ListInvoiceUnitsCommandOutput | ListProcurementPortalPreferencesCommandOutput | ListTagsForResourceCommandOutput | PutProcurementPortalPreferenceCommandOutput | SendProcurementPortalValidationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateInvoiceUnitCommandOutput | UpdateProcurementPortalPreferenceStatusCommandOutput | VerifyProcurementPortalValidationCommandOutput;
40
+ export type ServiceOutputTypes = BatchGetInvoiceProfileCommandOutput | CreateInvoiceUnitCommandOutput | CreateProcurementPortalPreferenceCommandOutput | DeleteInvoiceUnitCommandOutput | DeleteProcurementPortalPreferenceCommandOutput | GetInvoicePDFCommandOutput | GetInvoiceUnitCommandOutput | GetProcurementPortalPreferenceCommandOutput | ListInvoiceSummariesCommandOutput | ListInvoiceUnitsCommandOutput | ListProcurementPortalPreferencesCommandOutput | ListProcurementPortalSuppliersCommandOutput | ListProcurementPortalsCommandOutput | ListTagsForResourceCommandOutput | PutProcurementPortalPreferenceCommandOutput | SendProcurementPortalValidationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateInvoiceUnitCommandOutput | UpdateProcurementPortalPreferenceStatusCommandOutput | VerifyProcurementPortalValidationCommandOutput;
39
41
  /**
40
42
  * @public
41
43
  */
@@ -0,0 +1,128 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListProcurementPortalSuppliersRequest, ListProcurementPortalSuppliersResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListProcurementPortalSuppliersCommand}.
11
+ */
12
+ export interface ListProcurementPortalSuppliersCommandInput extends ListProcurementPortalSuppliersRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListProcurementPortalSuppliersCommand}.
18
+ */
19
+ export interface ListProcurementPortalSuppliersCommandOutput extends ListProcurementPortalSuppliersResponse, __MetadataBearer {
20
+ }
21
+ declare const ListProcurementPortalSuppliersCommand_base: {
22
+ new (input: ListProcurementPortalSuppliersCommandInput): import("@smithy/core/client").CommandImpl<ListProcurementPortalSuppliersCommandInput, ListProcurementPortalSuppliersCommandOutput, import("..").InvoicingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: ListProcurementPortalSuppliersCommandInput): import("@smithy/core/client").CommandImpl<ListProcurementPortalSuppliersCommandInput, ListProcurementPortalSuppliersCommandOutput, import("..").InvoicingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Returns the suppliers configured for a specified procurement portal, including supplier identifiers and associated metadata. For faster, more reliable responses, use pagination.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { InvoicingClient, ListProcurementPortalSuppliersCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
32
+ * // const { InvoicingClient, ListProcurementPortalSuppliersCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
33
+ * // import type { InvoicingClientConfig } from "@aws-sdk/client-invoicing";
34
+ * const config = {}; // type is InvoicingClientConfig
35
+ * const client = new InvoicingClient(config);
36
+ * const input = { // ListProcurementPortalSuppliersRequest
37
+ * PortalIdentifier: "STRING_VALUE", // required
38
+ * NextToken: "STRING_VALUE",
39
+ * MaxResults: Number("int"),
40
+ * };
41
+ * const command = new ListProcurementPortalSuppliersCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // ListProcurementPortalSuppliersResponse
44
+ * // ProcurementPortalSuppliers: [ // ProcurementPortalSuppliers // required
45
+ * // { // ProcurementPortalSupplier
46
+ * // SupplierIdentifier: "STRING_VALUE", // required
47
+ * // SellerOfRecord: "STRING_VALUE",
48
+ * // CountryCode: "STRING_VALUE",
49
+ * // Environment: "PROD" || "TEST",
50
+ * // },
51
+ * // ],
52
+ * // NextToken: "STRING_VALUE",
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param ListProcurementPortalSuppliersCommandInput - {@link ListProcurementPortalSuppliersCommandInput}
58
+ * @returns {@link ListProcurementPortalSuppliersCommandOutput}
59
+ * @see {@link ListProcurementPortalSuppliersCommandInput} for command's `input` shape.
60
+ * @see {@link ListProcurementPortalSuppliersCommandOutput} for command's `response` shape.
61
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>You don't have sufficient access to perform this action.</p>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p>The processing request failed because of an unknown error, exception, or failure. </p>
68
+ *
69
+ * @throws {@link ResourceNotFoundException} (client fault)
70
+ * <p>The resource could not be found. </p>
71
+ *
72
+ * @throws {@link ThrottlingException} (client fault)
73
+ * <p>The request was denied due to request throttling.</p>
74
+ *
75
+ * @throws {@link ValidationException} (client fault)
76
+ * <p> The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
77
+ *
78
+ * @throws {@link InvoicingServiceException}
79
+ * <p>Base exception class for all service exceptions from Invoicing service.</p>
80
+ *
81
+ *
82
+ * @example ListProcurementPortalSuppliers
83
+ * ```javascript
84
+ * //
85
+ * const input = {
86
+ * PortalIdentifier: "KXMJQWBRNP"
87
+ * };
88
+ * const command = new ListProcurementPortalSuppliersCommand(input);
89
+ * const response = await client.send(command);
90
+ * /* response is
91
+ * {
92
+ * ProcurementPortalSuppliers: [
93
+ * {
94
+ * Environment: "PROD",
95
+ * SellerOfRecord: "AWS_INC",
96
+ * SupplierIdentifier: "AN01010639538"
97
+ * },
98
+ * {
99
+ * CountryCode: "DE",
100
+ * Environment: "PROD",
101
+ * SellerOfRecord: "AWS_EUROPE",
102
+ * SupplierIdentifier: "AN01401912735"
103
+ * },
104
+ * {
105
+ * Environment: "TEST",
106
+ * SellerOfRecord: "AWS_INC",
107
+ * SupplierIdentifier: "AN01010639538-T"
108
+ * }
109
+ * ]
110
+ * }
111
+ * *\/
112
+ * ```
113
+ *
114
+ * @public
115
+ */
116
+ export declare class ListProcurementPortalSuppliersCommand extends ListProcurementPortalSuppliersCommand_base {
117
+ /** @internal type navigation helper, not in runtime. */
118
+ protected static __types: {
119
+ api: {
120
+ input: ListProcurementPortalSuppliersRequest;
121
+ output: ListProcurementPortalSuppliersResponse;
122
+ };
123
+ sdk: {
124
+ input: ListProcurementPortalSuppliersCommandInput;
125
+ output: ListProcurementPortalSuppliersCommandOutput;
126
+ };
127
+ };
128
+ }
@@ -0,0 +1,155 @@
1
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import type { ListProcurementPortalsRequest, ListProcurementPortalsResponse } from "../models/models_0";
3
+ /**
4
+ * @public
5
+ */
6
+ export type { __MetadataBearer };
7
+ /**
8
+ * @public
9
+ *
10
+ * The input for {@link ListProcurementPortalsCommand}.
11
+ */
12
+ export interface ListProcurementPortalsCommandInput extends ListProcurementPortalsRequest {
13
+ }
14
+ /**
15
+ * @public
16
+ *
17
+ * The output of {@link ListProcurementPortalsCommand}.
18
+ */
19
+ export interface ListProcurementPortalsCommandOutput extends ListProcurementPortalsResponse, __MetadataBearer {
20
+ }
21
+ declare const ListProcurementPortalsCommand_base: {
22
+ new (input: ListProcurementPortalsCommandInput): import("@smithy/core/client").CommandImpl<ListProcurementPortalsCommandInput, ListProcurementPortalsCommandOutput, import("..").InvoicingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (...[input]: [] | [ListProcurementPortalsCommandInput]): import("@smithy/core/client").CommandImpl<ListProcurementPortalsCommandInput, ListProcurementPortalsCommandOutput, import("..").InvoicingClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
25
+ };
26
+ /**
27
+ * <p>Returns the Amazon Web Services-supported procurement portals for e-invoice delivery and purchase order retrieval. Each entry includes the portal identifier, name, and default feature configurations, which define the supported document and attachment types. For faster, more reliable responses, use pagination.</p>
28
+ * @example
29
+ * Use a bare-bones client and the command you need to make an API call.
30
+ * ```javascript
31
+ * import { InvoicingClient, ListProcurementPortalsCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
32
+ * // const { InvoicingClient, ListProcurementPortalsCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
33
+ * // import type { InvoicingClientConfig } from "@aws-sdk/client-invoicing";
34
+ * const config = {}; // type is InvoicingClientConfig
35
+ * const client = new InvoicingClient(config);
36
+ * const input = { // ListProcurementPortalsRequest
37
+ * NextToken: "STRING_VALUE",
38
+ * MaxResults: Number("int"),
39
+ * };
40
+ * const command = new ListProcurementPortalsCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListProcurementPortalsResponse
43
+ * // ProcurementPortals: [ // ProcurementPortals // required
44
+ * // { // ProcurementPortal
45
+ * // PortalIdentifier: "STRING_VALUE", // required
46
+ * // PortalName: "SAP_BUSINESS_NETWORK" || "COUPA", // required
47
+ * // PortalDisplayName: "STRING_VALUE",
48
+ * // DefaultFeatureConfigurations: { // FeatureConfigurations
49
+ * // InvoiceConfiguration: { // InvoiceConfiguration
50
+ * // DocumentTypes: [ // EinvoiceDeliveryDocumentTypes
51
+ * // "AWS_CLOUD_INVOICE" || "AWS_CLOUD_CREDIT_MEMO" || "AWS_MARKETPLACE_INVOICE" || "AWS_MARKETPLACE_CREDIT_MEMO" || "AWS_REQUEST_FOR_PAYMENT",
52
+ * // ],
53
+ * // AttachmentTypes: [ // EinvoiceDeliveryAttachmentTypes
54
+ * // "INVOICE_PDF" || "RFP_PDF",
55
+ * // ],
56
+ * // },
57
+ * // },
58
+ * // },
59
+ * // ],
60
+ * // NextToken: "STRING_VALUE",
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param ListProcurementPortalsCommandInput - {@link ListProcurementPortalsCommandInput}
66
+ * @returns {@link ListProcurementPortalsCommandOutput}
67
+ * @see {@link ListProcurementPortalsCommandInput} for command's `input` shape.
68
+ * @see {@link ListProcurementPortalsCommandOutput} for command's `response` shape.
69
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
70
+ *
71
+ * @throws {@link AccessDeniedException} (client fault)
72
+ * <p>You don't have sufficient access to perform this action.</p>
73
+ *
74
+ * @throws {@link InternalServerException} (server fault)
75
+ * <p>The processing request failed because of an unknown error, exception, or failure. </p>
76
+ *
77
+ * @throws {@link ThrottlingException} (client fault)
78
+ * <p>The request was denied due to request throttling.</p>
79
+ *
80
+ * @throws {@link ValidationException} (client fault)
81
+ * <p> The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
82
+ *
83
+ * @throws {@link InvoicingServiceException}
84
+ * <p>Base exception class for all service exceptions from Invoicing service.</p>
85
+ *
86
+ *
87
+ * @example ListProcurementPortals
88
+ * ```javascript
89
+ * //
90
+ * const input = { /* empty *\/ };
91
+ * const command = new ListProcurementPortalsCommand(input);
92
+ * const response = await client.send(command);
93
+ * /* response is
94
+ * {
95
+ * ProcurementPortals: [
96
+ * {
97
+ * DefaultFeatureConfigurations: {
98
+ * InvoiceConfiguration: {
99
+ * AttachmentTypes: [
100
+ * "INVOICE_PDF",
101
+ * "RFP_PDF"
102
+ * ],
103
+ * DocumentTypes: [
104
+ * "AWS_CLOUD_INVOICE",
105
+ * "AWS_CLOUD_CREDIT_MEMO",
106
+ * "AWS_MARKETPLACE_INVOICE",
107
+ * "AWS_MARKETPLACE_CREDIT_MEMO",
108
+ * "AWS_REQUEST_FOR_PAYMENT"
109
+ * ]
110
+ * }
111
+ * },
112
+ * PortalDisplayName: "SAP Business Network",
113
+ * PortalIdentifier: "KXMJQWBRNP",
114
+ * PortalName: "SAP_BUSINESS_NETWORK"
115
+ * },
116
+ * {
117
+ * DefaultFeatureConfigurations: {
118
+ * InvoiceConfiguration: {
119
+ * AttachmentTypes: [
120
+ * "INVOICE_PDF",
121
+ * "RFP_PDF"
122
+ * ],
123
+ * DocumentTypes: [
124
+ * "AWS_CLOUD_INVOICE",
125
+ * "AWS_CLOUD_CREDIT_MEMO",
126
+ * "AWS_MARKETPLACE_INVOICE",
127
+ * "AWS_MARKETPLACE_CREDIT_MEMO",
128
+ * "AWS_REQUEST_FOR_PAYMENT"
129
+ * ]
130
+ * }
131
+ * },
132
+ * PortalDisplayName: "Coupa",
133
+ * PortalIdentifier: "THZVCGFLDY",
134
+ * PortalName: "COUPA"
135
+ * }
136
+ * ]
137
+ * }
138
+ * *\/
139
+ * ```
140
+ *
141
+ * @public
142
+ */
143
+ export declare class ListProcurementPortalsCommand extends ListProcurementPortalsCommand_base {
144
+ /** @internal type navigation helper, not in runtime. */
145
+ protected static __types: {
146
+ api: {
147
+ input: ListProcurementPortalsRequest;
148
+ output: ListProcurementPortalsResponse;
149
+ };
150
+ sdk: {
151
+ input: ListProcurementPortalsCommandInput;
152
+ output: ListProcurementPortalsCommandOutput;
153
+ };
154
+ };
155
+ }
@@ -9,6 +9,8 @@ export * from "./GetProcurementPortalPreferenceCommand";
9
9
  export * from "./ListInvoiceSummariesCommand";
10
10
  export * from "./ListInvoiceUnitsCommand";
11
11
  export * from "./ListProcurementPortalPreferencesCommand";
12
+ export * from "./ListProcurementPortalSuppliersCommand";
13
+ export * from "./ListProcurementPortalsCommand";
12
14
  export * from "./ListTagsForResourceCommand";
13
15
  export * from "./PutProcurementPortalPreferenceCommand";
14
16
  export * from "./SendProcurementPortalValidationCommand";
@@ -248,3 +248,21 @@ export declare const ListInvoiceSummariesResourceType: {
248
248
  * @public
249
249
  */
250
250
  export type ListInvoiceSummariesResourceType = (typeof ListInvoiceSummariesResourceType)[keyof typeof ListInvoiceSummariesResourceType];
251
+ /**
252
+ * @public
253
+ * @enum
254
+ */
255
+ export declare const ProcurementPortalEnv: {
256
+ /**
257
+ * <p>The production environment.</p>
258
+ */
259
+ readonly PROD: "PROD";
260
+ /**
261
+ * <p>The sandbox or test environment.</p>
262
+ */
263
+ readonly TEST: "TEST";
264
+ };
265
+ /**
266
+ * @public
267
+ */
268
+ export type ProcurementPortalEnv = (typeof ProcurementPortalEnv)[keyof typeof ProcurementPortalEnv];
@@ -1,4 +1,4 @@
1
- import type { BillingEntity, BillType, BuyerDomain, ConnectionTestingMethod, EinvoiceDeliveryAttachmentType, EinvoiceDeliveryDocumentType, EinvoiceDeliveryStatus, InvoiceFrequency, InvoiceType, ListInvoiceSummariesResourceType, ProcurementPortalName, ProcurementPortalPreferenceStatus, Protocol, PurchaseOrderDataSourceType, ReceiverRole, SupplementalDocumentType, SupplierDomain, TaxAuthorityStatus } from "./enums";
1
+ import type { BillingEntity, BillType, BuyerDomain, ConnectionTestingMethod, EinvoiceDeliveryAttachmentType, EinvoiceDeliveryDocumentType, EinvoiceDeliveryStatus, InvoiceFrequency, InvoiceType, ListInvoiceSummariesResourceType, ProcurementPortalEnv, ProcurementPortalName, ProcurementPortalPreferenceStatus, Protocol, PurchaseOrderDataSourceType, ReceiverRole, SupplementalDocumentType, SupplierDomain, TaxAuthorityStatus } from "./enums";
2
2
  /**
3
3
  * <p> The discounted amount. </p>
4
4
  * @public
@@ -670,6 +670,33 @@ export interface Entity {
670
670
  */
671
671
  BillingEntity?: BillingEntity | undefined;
672
672
  }
673
+ /**
674
+ * <p>Specifies the supported document types and attachment types for invoice delivery to a procurement portal.</p>
675
+ * @public
676
+ */
677
+ export interface InvoiceConfiguration {
678
+ /**
679
+ * <p>The e-invoice document types supported by the procurement portal.</p>
680
+ * @public
681
+ */
682
+ DocumentTypes?: EinvoiceDeliveryDocumentType[] | undefined;
683
+ /**
684
+ * <p>The attachment types supported by the procurement portal for e-invoice delivery.</p>
685
+ * @public
686
+ */
687
+ AttachmentTypes?: EinvoiceDeliveryAttachmentType[] | undefined;
688
+ }
689
+ /**
690
+ * <p>Contains the default feature configuration settings for a procurement portal.</p>
691
+ * @public
692
+ */
693
+ export interface FeatureConfigurations {
694
+ /**
695
+ * <p>The invoice configuration settings for the procurement portal.</p>
696
+ * @public
697
+ */
698
+ InvoiceConfiguration?: InvoiceConfiguration | undefined;
699
+ }
673
700
  /**
674
701
  * <p>An optional input to the list API. If multiple filters are specified, the returned list will be a configuration that match all of the provided filters. Supported filter types are <code>InvoiceReceivers</code>, <code>Names</code>, and <code>Accounts</code>. </p>
675
702
  * @public
@@ -1426,6 +1453,123 @@ export interface ListProcurementPortalPreferencesResponse {
1426
1453
  */
1427
1454
  NextToken?: string | undefined;
1428
1455
  }
1456
+ /**
1457
+ * @public
1458
+ */
1459
+ export interface ListProcurementPortalsRequest {
1460
+ /**
1461
+ * <p>The token for the next set of results. You received this token from a previous call.</p>
1462
+ * @public
1463
+ */
1464
+ NextToken?: string | undefined;
1465
+ /**
1466
+ * <p>The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. Default is 100.</p>
1467
+ * @public
1468
+ */
1469
+ MaxResults?: number | undefined;
1470
+ }
1471
+ /**
1472
+ * <p>Contains metadata for a procurement portal, including the portal identifier, name, and default feature configurations.</p>
1473
+ * @public
1474
+ */
1475
+ export interface ProcurementPortal {
1476
+ /**
1477
+ * <p>The unique identifier of the procurement portal.</p>
1478
+ * @public
1479
+ */
1480
+ PortalIdentifier: string | undefined;
1481
+ /**
1482
+ * <p>The name of the procurement portal.</p>
1483
+ * @public
1484
+ */
1485
+ PortalName: ProcurementPortalName | undefined;
1486
+ /**
1487
+ * <p>The display name of the procurement portal.</p>
1488
+ * @public
1489
+ */
1490
+ PortalDisplayName?: string | undefined;
1491
+ /**
1492
+ * <p>The default feature configurations for the procurement portal.</p>
1493
+ * @public
1494
+ */
1495
+ DefaultFeatureConfigurations?: FeatureConfigurations | undefined;
1496
+ }
1497
+ /**
1498
+ * @public
1499
+ */
1500
+ export interface ListProcurementPortalsResponse {
1501
+ /**
1502
+ * <p>The list of procurement portals available for configuration.</p>
1503
+ * @public
1504
+ */
1505
+ ProcurementPortals: ProcurementPortal[] | undefined;
1506
+ /**
1507
+ * <p>The token to use to retrieve the next set of results, or null if there are no more results.</p>
1508
+ * @public
1509
+ */
1510
+ NextToken?: string | undefined;
1511
+ }
1512
+ /**
1513
+ * @public
1514
+ */
1515
+ export interface ListProcurementPortalSuppliersRequest {
1516
+ /**
1517
+ * <p>The unique identifier of the procurement portal for which to list suppliers. Use the <code>PortalIdentifier</code> value returned by <code>ListProcurementPortals</code>.</p>
1518
+ * @public
1519
+ */
1520
+ PortalIdentifier: string | undefined;
1521
+ /**
1522
+ * <p>The token for the next set of results. You received this token from a previous call.</p>
1523
+ * @public
1524
+ */
1525
+ NextToken?: string | undefined;
1526
+ /**
1527
+ * <p>The maximum number of results to return in a single call. To retrieve the remaining results, make another call with the returned NextToken value. Default is 100.</p>
1528
+ * @public
1529
+ */
1530
+ MaxResults?: number | undefined;
1531
+ }
1532
+ /**
1533
+ * <p>Contains metadata for a supplier configured within a procurement portal.</p>
1534
+ * @public
1535
+ */
1536
+ export interface ProcurementPortalSupplier {
1537
+ /**
1538
+ * <p>The unique identifier of the supplier within the procurement portal.</p>
1539
+ * @public
1540
+ */
1541
+ SupplierIdentifier: string | undefined;
1542
+ /**
1543
+ * <p>The Amazon Web Services seller of record associated with the supplier—the Amazon Web Services legal entity that issues invoices for the account (for example, <code>AWS_INC</code> or <code>AWS_EUROPE</code>).</p>
1544
+ * @public
1545
+ */
1546
+ SellerOfRecord?: string | undefined;
1547
+ /**
1548
+ * <p>The two-letter ISO 3166-1 alpha-2 country code associated with the supplier.</p>
1549
+ * @public
1550
+ */
1551
+ CountryCode?: string | undefined;
1552
+ /**
1553
+ * <p>The environment identifier for the supplier in the procurement portal. PROD for production env, or TEST for sandbox/test env.</p>
1554
+ * @public
1555
+ */
1556
+ Environment?: ProcurementPortalEnv | undefined;
1557
+ }
1558
+ /**
1559
+ * @public
1560
+ */
1561
+ export interface ListProcurementPortalSuppliersResponse {
1562
+ /**
1563
+ * <p>The list of suppliers configured for the specified procurement portal.</p>
1564
+ * @public
1565
+ */
1566
+ ProcurementPortalSuppliers: ProcurementPortalSupplier[] | undefined;
1567
+ /**
1568
+ * <p>The token to use to retrieve the next set of results, or null if there are no more results.</p>
1569
+ * @public
1570
+ */
1571
+ NextToken?: string | undefined;
1572
+ }
1429
1573
  /**
1430
1574
  * @public
1431
1575
  */
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListProcurementPortalSuppliersCommandInput, ListProcurementPortalSuppliersCommandOutput } from "../commands/ListProcurementPortalSuppliersCommand";
3
+ import type { InvoicingPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListProcurementPortalSuppliers: (config: InvoicingPaginationConfiguration, input: ListProcurementPortalSuppliersCommandInput, ...rest: any[]) => Paginator<ListProcurementPortalSuppliersCommandOutput>;
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListProcurementPortalsCommandInput, ListProcurementPortalsCommandOutput } from "../commands/ListProcurementPortalsCommand";
3
+ import type { InvoicingPaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListProcurementPortals: (config: InvoicingPaginationConfiguration, input: ListProcurementPortalsCommandInput, ...rest: any[]) => Paginator<ListProcurementPortalsCommandOutput>;
@@ -2,3 +2,5 @@ export * from "./Interfaces";
2
2
  export * from "./ListInvoiceSummariesPaginator";
3
3
  export * from "./ListInvoiceUnitsPaginator";
4
4
  export * from "./ListProcurementPortalPreferencesPaginator";
5
+ export * from "./ListProcurementPortalsPaginator";
6
+ export * from "./ListProcurementPortalSuppliersPaginator";
@@ -33,6 +33,7 @@ export declare var DiscountsBreakdown$: StaticStructureSchema;
33
33
  export declare var DiscountsBreakdownAmount$: StaticStructureSchema;
34
34
  export declare var EinvoiceDeliveryPreference$: StaticStructureSchema;
35
35
  export declare var Entity$: StaticStructureSchema;
36
+ export declare var FeatureConfigurations$: StaticStructureSchema;
36
37
  export declare var FeesBreakdown$: StaticStructureSchema;
37
38
  export declare var FeesBreakdownAmount$: StaticStructureSchema;
38
39
  export declare var Filters$: StaticStructureSchema;
@@ -42,6 +43,7 @@ export declare var GetInvoiceUnitRequest$: StaticStructureSchema;
42
43
  export declare var GetInvoiceUnitResponse$: StaticStructureSchema;
43
44
  export declare var GetProcurementPortalPreferenceRequest$: StaticStructureSchema;
44
45
  export declare var GetProcurementPortalPreferenceResponse$: StaticStructureSchema;
46
+ export declare var InvoiceConfiguration$: StaticStructureSchema;
45
47
  export declare var InvoiceCurrencyAmount$: StaticStructureSchema;
46
48
  export declare var InvoicePDF$: StaticStructureSchema;
47
49
  export declare var InvoiceProfile$: StaticStructureSchema;
@@ -56,11 +58,17 @@ export declare var ListInvoiceUnitsRequest$: StaticStructureSchema;
56
58
  export declare var ListInvoiceUnitsResponse$: StaticStructureSchema;
57
59
  export declare var ListProcurementPortalPreferencesRequest$: StaticStructureSchema;
58
60
  export declare var ListProcurementPortalPreferencesResponse$: StaticStructureSchema;
61
+ export declare var ListProcurementPortalsRequest$: StaticStructureSchema;
62
+ export declare var ListProcurementPortalsResponse$: StaticStructureSchema;
63
+ export declare var ListProcurementPortalSuppliersRequest$: StaticStructureSchema;
64
+ export declare var ListProcurementPortalSuppliersResponse$: StaticStructureSchema;
59
65
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
60
66
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
67
+ export declare var ProcurementPortal$: StaticStructureSchema;
61
68
  export declare var ProcurementPortalPreference$: StaticStructureSchema;
62
69
  export declare var ProcurementPortalPreferenceSelector$: StaticStructureSchema;
63
70
  export declare var ProcurementPortalPreferenceSummary$: StaticStructureSchema;
71
+ export declare var ProcurementPortalSupplier$: StaticStructureSchema;
64
72
  export declare var PurchaseOrderDataSource$: StaticStructureSchema;
65
73
  export declare var PutProcurementPortalPreferenceRequest$: StaticStructureSchema;
66
74
  export declare var PutProcurementPortalPreferenceResponse$: StaticStructureSchema;
@@ -95,6 +103,8 @@ export declare var GetProcurementPortalPreference$: StaticOperationSchema;
95
103
  export declare var ListInvoiceSummaries$: StaticOperationSchema;
96
104
  export declare var ListInvoiceUnits$: StaticOperationSchema;
97
105
  export declare var ListProcurementPortalPreferences$: StaticOperationSchema;
106
+ export declare var ListProcurementPortals$: StaticOperationSchema;
107
+ export declare var ListProcurementPortalSuppliers$: StaticOperationSchema;
98
108
  export declare var ListTagsForResource$: StaticOperationSchema;
99
109
  export declare var PutProcurementPortalPreference$: StaticOperationSchema;
100
110
  export declare var SendProcurementPortalValidation$: StaticOperationSchema;