@aws-sdk/client-invoicing 3.936.0 → 3.938.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 (47) hide show
  1. package/README.md +49 -1
  2. package/dist-cjs/index.js +465 -8
  3. package/dist-es/Invoicing.js +12 -0
  4. package/dist-es/commands/CreateProcurementPortalPreferenceCommand.js +16 -0
  5. package/dist-es/commands/DeleteProcurementPortalPreferenceCommand.js +16 -0
  6. package/dist-es/commands/GetProcurementPortalPreferenceCommand.js +16 -0
  7. package/dist-es/commands/ListProcurementPortalPreferencesCommand.js +16 -0
  8. package/dist-es/commands/PutProcurementPortalPreferenceCommand.js +16 -0
  9. package/dist-es/commands/UpdateProcurementPortalPreferenceStatusCommand.js +16 -0
  10. package/dist-es/commands/index.js +6 -0
  11. package/dist-es/models/enums.js +40 -0
  12. package/dist-es/models/errors.js +16 -0
  13. package/dist-es/pagination/ListProcurementPortalPreferencesPaginator.js +4 -0
  14. package/dist-es/pagination/index.js +1 -0
  15. package/dist-es/schemas/schemas_0.js +317 -9
  16. package/dist-types/Invoicing.d.ts +44 -1
  17. package/dist-types/InvoicingClient.d.ts +9 -3
  18. package/dist-types/commands/CreateProcurementPortalPreferenceCommand.d.ts +217 -0
  19. package/dist-types/commands/DeleteProcurementPortalPreferenceCommand.d.ts +107 -0
  20. package/dist-types/commands/GetProcurementPortalPreferenceCommand.d.ts +230 -0
  21. package/dist-types/commands/ListProcurementPortalPreferencesCommand.d.ts +229 -0
  22. package/dist-types/commands/PutProcurementPortalPreferenceCommand.d.ts +196 -0
  23. package/dist-types/commands/UpdateProcurementPortalPreferenceStatusCommand.d.ts +118 -0
  24. package/dist-types/commands/index.d.ts +6 -0
  25. package/dist-types/index.d.ts +1 -1
  26. package/dist-types/models/enums.d.ts +112 -0
  27. package/dist-types/models/errors.d.ts +22 -0
  28. package/dist-types/models/models_0.d.ts +634 -1
  29. package/dist-types/pagination/ListProcurementPortalPreferencesPaginator.d.ts +7 -0
  30. package/dist-types/pagination/index.d.ts +1 -0
  31. package/dist-types/schemas/schemas_0.d.ts +34 -0
  32. package/dist-types/ts3.4/Invoicing.d.ts +121 -0
  33. package/dist-types/ts3.4/InvoicingClient.d.ts +38 -2
  34. package/dist-types/ts3.4/commands/CreateProcurementPortalPreferenceCommand.d.ts +51 -0
  35. package/dist-types/ts3.4/commands/DeleteProcurementPortalPreferenceCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/GetProcurementPortalPreferenceCommand.d.ts +51 -0
  37. package/dist-types/ts3.4/commands/ListProcurementPortalPreferencesCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/PutProcurementPortalPreferenceCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/UpdateProcurementPortalPreferenceStatusCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  41. package/dist-types/ts3.4/models/enums.d.ts +56 -0
  42. package/dist-types/ts3.4/models/errors.d.ts +7 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +174 -1
  44. package/dist-types/ts3.4/pagination/ListProcurementPortalPreferencesPaginator.d.ts +11 -0
  45. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  46. package/dist-types/ts3.4/schemas/schemas_0.d.ts +34 -0
  47. package/package.json +1 -1
@@ -0,0 +1,229 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
4
+ import { ListProcurementPortalPreferencesRequest, ListProcurementPortalPreferencesResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListProcurementPortalPreferencesCommand}.
14
+ */
15
+ export interface ListProcurementPortalPreferencesCommandInput extends ListProcurementPortalPreferencesRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListProcurementPortalPreferencesCommand}.
21
+ */
22
+ export interface ListProcurementPortalPreferencesCommandOutput extends ListProcurementPortalPreferencesResponse, __MetadataBearer {
23
+ }
24
+ declare const ListProcurementPortalPreferencesCommand_base: {
25
+ new (input: ListProcurementPortalPreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<ListProcurementPortalPreferencesCommandInput, ListProcurementPortalPreferencesCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListProcurementPortalPreferencesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListProcurementPortalPreferencesCommandInput, ListProcurementPortalPreferencesCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves a list of procurement portal preferences associated with the Amazon Web Services account.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { InvoicingClient, ListProcurementPortalPreferencesCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
35
+ * // const { InvoicingClient, ListProcurementPortalPreferencesCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
36
+ * // import type { InvoicingClientConfig } from "@aws-sdk/client-invoicing";
37
+ * const config = {}; // type is InvoicingClientConfig
38
+ * const client = new InvoicingClient(config);
39
+ * const input = { // ListProcurementPortalPreferencesRequest
40
+ * NextToken: "STRING_VALUE",
41
+ * MaxResults: Number("int"),
42
+ * };
43
+ * const command = new ListProcurementPortalPreferencesCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListProcurementPortalPreferencesResponse
46
+ * // ProcurementPortalPreferences: [ // ProcurementPortalPreferenceSummaries
47
+ * // { // ProcurementPortalPreferenceSummary
48
+ * // AwsAccountId: "STRING_VALUE", // required
49
+ * // ProcurementPortalPreferenceArn: "STRING_VALUE", // required
50
+ * // ProcurementPortalName: "SAP_BUSINESS_NETWORK" || "COUPA", // required
51
+ * // BuyerDomain: "NetworkID", // required
52
+ * // BuyerIdentifier: "STRING_VALUE", // required
53
+ * // SupplierDomain: "NetworkID", // required
54
+ * // SupplierIdentifier: "STRING_VALUE", // required
55
+ * // Selector: { // ProcurementPortalPreferenceSelector
56
+ * // InvoiceUnitArns: [ // InvoiceUnitArns
57
+ * // "STRING_VALUE",
58
+ * // ],
59
+ * // SellerOfRecords: [ // SellerOfRecords
60
+ * // "STRING_VALUE",
61
+ * // ],
62
+ * // },
63
+ * // EinvoiceDeliveryEnabled: true || false, // required
64
+ * // PurchaseOrderRetrievalEnabled: true || false, // required
65
+ * // EinvoiceDeliveryPreferenceStatus: "PENDING_VERIFICATION" || "TEST_INITIALIZED" || "TEST_INITIALIZATION_FAILED" || "TEST_FAILED" || "ACTIVE" || "SUSPENDED",
66
+ * // EinvoiceDeliveryPreferenceStatusReason: "STRING_VALUE",
67
+ * // PurchaseOrderRetrievalPreferenceStatus: "PENDING_VERIFICATION" || "TEST_INITIALIZED" || "TEST_INITIALIZATION_FAILED" || "TEST_FAILED" || "ACTIVE" || "SUSPENDED",
68
+ * // PurchaseOrderRetrievalPreferenceStatusReason: "STRING_VALUE",
69
+ * // Version: Number("long"), // required
70
+ * // CreateDate: new Date("TIMESTAMP"), // required
71
+ * // LastUpdateDate: new Date("TIMESTAMP"), // required
72
+ * // },
73
+ * // ],
74
+ * // NextToken: "STRING_VALUE",
75
+ * // };
76
+ *
77
+ * ```
78
+ *
79
+ * @param ListProcurementPortalPreferencesCommandInput - {@link ListProcurementPortalPreferencesCommandInput}
80
+ * @returns {@link ListProcurementPortalPreferencesCommandOutput}
81
+ * @see {@link ListProcurementPortalPreferencesCommandInput} for command's `input` shape.
82
+ * @see {@link ListProcurementPortalPreferencesCommandOutput} for command's `response` shape.
83
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
84
+ *
85
+ * @throws {@link AccessDeniedException} (client fault)
86
+ * <p>You don't have sufficient access to perform this action.</p>
87
+ *
88
+ * @throws {@link ConflictException} (client fault)
89
+ * <p>The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.</p>
90
+ *
91
+ * @throws {@link InternalServerException} (server fault)
92
+ * <p>The processing request failed because of an unknown error, exception, or failure. </p>
93
+ *
94
+ * @throws {@link ServiceQuotaExceededException} (client fault)
95
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded. </p>
96
+ *
97
+ * @throws {@link ThrottlingException} (client fault)
98
+ * <p>The request was denied due to request throttling.</p>
99
+ *
100
+ * @throws {@link ValidationException} (client fault)
101
+ * <p> The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
102
+ *
103
+ * @throws {@link InvoicingServiceException}
104
+ * <p>Base exception class for all service exceptions from Invoicing service.</p>
105
+ *
106
+ *
107
+ * @example ListProcurementPortalPreferences for Coupa prefs. First Call with following pages
108
+ * ```javascript
109
+ * //
110
+ * const input = {
111
+ * MaxResults: 2
112
+ * };
113
+ * const command = new ListProcurementPortalPreferencesCommand(input);
114
+ * const response = await client.send(command);
115
+ * /* response is
116
+ * {
117
+ * NextToken: "AAQA-EFRSURBSGpkVFU5MVNUVWNXTzNoUEptWEFGcEt0QzBBeHZaZmRUU2w3L0hRQmdDeEx3R0NuSnF2NjM5NGNmM1I5KzNIQzNnT0FBQUFmakI4QmdrcWhraUc5dzBCQndhZ2J6QnRBZ0VBTUdnR0NTcUdTSWIzRFFFSEFUQWVCZ2xnaGtnQlpRTUVBUzR3RVFRTVhPSnhEQ04rWk1idnAyb1RBZ0VRZ0RzbFJBeFlXMk9RRGFtTU8vdFc0MUJlTFFNU2hPR1E5bDM3MHcyS05mSjIzbU93MG1aVXk1MzBiWWVsZ3FaZzhjMndhTjZtNzNYTWd3bnpsZz09E8JRNUKK1r2-b9X8Qd1RAOSKHZOCy-UCpOQjJdSfZHcUefTH0YmlIW8ykllegYUWB1D1NjDjC3u2z2e4cLBTmQhrQewSBW-I_i8okXup9RWN60eMOnB6dl5jUiinJ-FjY_jGjbOkiWuJhXteDKP16RfVRW7mxp2-v1-B8gPPxGLolXHBHrb8gt18P8eWs8RcvRRmmbGUy5qa6nFH5WiCq9Bx2fTUTy9Iz_xZooNuiqC6y119EGQqJ9WsWsIUa8MbWHFXtn9-Uriz7osYocbFm1Evv_NCn3YK-wFy9rUlUskcM2n9AqvPYhOyf0reV7E8cErZFR_Ev8l008QcxQfaqK19-gKR9clddwoDzMVfVuyiW3vbzUXz7fzQLr-UMLCGdE3yHf1oz2SEbcxhHZ2eh7-9wEYDv0v92wXg7m7xaYvaKuVBPKqBaq66GdpS1HTfakkjRGvsoBStXWVgPahISglPO__-Ym5NnXOw2wENBVXZ7RsVe6nJ1X15bB1RDkqLV8xJD0L83snuCEBtM9pyUUQOPvfGHzC4yRusMgBav_y1kq0wjqsbJV5EhHV_SIwf-WZa_A==",
118
+ * ProcurementPortalPreferences: [
119
+ * {
120
+ * AwsAccountId: "111111111111",
121
+ * BuyerDomain: "NetworkID",
122
+ * BuyerIdentifier: "BuyerId_2",
123
+ * CreateDate: 1.750375489242E9,
124
+ * EinvoiceDeliveryEnabled: true,
125
+ * EinvoiceDeliveryPreferenceStatus: "PENDING_VERIFICATION",
126
+ * LastUpdateDate: 1.750375489242E9,
127
+ * ProcurementPortalName: "COUPA",
128
+ * ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/1c7c6d71-fbc1-45bd-a18c-40cb61810679",
129
+ * PurchaseOrderRetrievalEnabled: true,
130
+ * PurchaseOrderRetrievalPreferenceStatus: "PENDING_VERIFICATION",
131
+ * Selector: {
132
+ * InvoiceUnitArns: [
133
+ * "arn:aws:invoicing::111111111111:invoice-unit/12345679"
134
+ * ],
135
+ * SellerOfRecords: [
136
+ * "AWS_INC"
137
+ * ]
138
+ * },
139
+ * SupplierDomain: "NetworkID",
140
+ * SupplierIdentifier: "SupplierId_1",
141
+ * Version: 1
142
+ * },
143
+ * {
144
+ * AwsAccountId: "111111111111",
145
+ * BuyerDomain: "NetworkID",
146
+ * BuyerIdentifier: "BuyerId_4",
147
+ * CreateDate: 1.750375489242E9,
148
+ * EinvoiceDeliveryEnabled: true,
149
+ * EinvoiceDeliveryPreferenceStatus: "PENDING_VERIFICATION",
150
+ * LastUpdateDate: 1.750375489242E9,
151
+ * ProcurementPortalName: "COUPA",
152
+ * ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/ae467ebd-ec8c-4089-b904-a7cd9e76f970",
153
+ * PurchaseOrderRetrievalEnabled: true,
154
+ * PurchaseOrderRetrievalPreferenceStatus: "PENDING_VERIFICATION",
155
+ * Selector: {
156
+ * InvoiceUnitArns: [
157
+ * "arn:aws:invoicing::111111111111:invoice-unit/12345678"
158
+ * ],
159
+ * SellerOfRecords: [
160
+ * "AWS_INC"
161
+ * ]
162
+ * },
163
+ * SupplierDomain: "NetworkID",
164
+ * SupplierIdentifier: "SupplierId_1",
165
+ * Version: 1
166
+ * }
167
+ * ]
168
+ * }
169
+ * *\/
170
+ * ```
171
+ *
172
+ * @example ListProcurementPortalPreferences for Coupa prefs. Second Call with the last page
173
+ * ```javascript
174
+ * //
175
+ * const input = {
176
+ * MaxResults: 2,
177
+ * NextToken: "AAQA-EFRSURBSGpkVFU5MVNUVWNXTzNoUEptWEFGcEt0QzBBeHZaZmRUU2w3L0hRQmdDeEx3R0NuSnF2NjM5NGNmM1I5KzNIQzNnT0FBQUFmakI4QmdrcWhraUc5dzBCQndhZ2J6QnRBZ0VBTUdnR0NTcUdTSWIzRFFFSEFUQWVCZ2xnaGtnQlpRTUVBUzR3RVFRTVhPSnhEQ04rWk1idnAyb1RBZ0VRZ0RzbFJBeFlXMk9RRGFtTU8vdFc0MUJlTFFNU2hPR1E5bDM3MHcyS05mSjIzbU93MG1aVXk1MzBiWWVsZ3FaZzhjMndhTjZtNzNYTWd3bnpsZz09E8JRNUKK1r2-b9X8Qd1RAOSKHZOCy-UCpOQjJdSfZHcUefTH0YmlIW8ykllegYUWB1D1NjDjC3u2z2e4cLBTmQhrQewSBW-I_i8okXup9RWN60eMOnB6dl5jUiinJ-FjY_jGjbOkiWuJhXteDKP16RfVRW7mxp2-v1-B8gPPxGLolXHBHrb8gt18P8eWs8RcvRRmmbGUy5qa6nFH5WiCq9Bx2fTUTy9Iz_xZooNuiqC6y119EGQqJ9WsWsIUa8MbWHFXtn9-Uriz7osYocbFm1Evv_NCn3YK-wFy9rUlUskcM2n9AqvPYhOyf0reV7E8cErZFR_Ev8l008QcxQfaqK19-gKR9clddwoDzMVfVuyiW3vbzUXz7fzQLr-UMLCGdE3yHf1oz2SEbcxhHZ2eh7-9wEYDv0v92wXg7m7xaYvaKuVBPKqBaq66GdpS1HTfakkjRGvsoBStXWVgPahISglPO__-Ym5NnXOw2wENBVXZ7RsVe6nJ1X15bB1RDkqLV8xJD0L83snuCEBtM9pyUUQOPvfGHzC4yRusMgBav_y1kq0wjqsbJV5EhHV_SIwf-WZa_A=="
178
+ * };
179
+ * const command = new ListProcurementPortalPreferencesCommand(input);
180
+ * const response = await client.send(command);
181
+ * /* response is
182
+ * {
183
+ * ProcurementPortalPreferences: [
184
+ * {
185
+ * AwsAccountId: "111111111111",
186
+ * BuyerDomain: "NetworkID",
187
+ * BuyerIdentifier: "BuyerId_1",
188
+ * CreateDate: 1.750375489242E9,
189
+ * EinvoiceDeliveryEnabled: true,
190
+ * EinvoiceDeliveryPreferenceStatus: "TEST_INITIALIZED",
191
+ * EinvoiceDeliveryPreferenceStatusReason: "test initialized example reason",
192
+ * LastUpdateDate: 1.750375489242E9,
193
+ * ProcurementPortalName: "COUPA",
194
+ * ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/f71dd02e-f855-4b13-b793-0fd25c0b3ecd",
195
+ * PurchaseOrderRetrievalEnabled: true,
196
+ * PurchaseOrderRetrievalPreferenceStatus: "TEST_INITIALIZED",
197
+ * PurchaseOrderRetrievalPreferenceStatusReason: "test initialized example reason",
198
+ * Selector: {
199
+ * InvoiceUnitArns: [
200
+ * "arn:aws:invoicing::111111111111:invoice-unit/12345678"
201
+ * ],
202
+ * SellerOfRecords: [
203
+ * "AWS_INC"
204
+ * ]
205
+ * },
206
+ * SupplierDomain: "NetworkID",
207
+ * SupplierIdentifier: "SupplierId_1",
208
+ * Version: 3
209
+ * }
210
+ * ]
211
+ * }
212
+ * *\/
213
+ * ```
214
+ *
215
+ * @public
216
+ */
217
+ export declare class ListProcurementPortalPreferencesCommand extends ListProcurementPortalPreferencesCommand_base {
218
+ /** @internal type navigation helper, not in runtime. */
219
+ protected static __types: {
220
+ api: {
221
+ input: ListProcurementPortalPreferencesRequest;
222
+ output: ListProcurementPortalPreferencesResponse;
223
+ };
224
+ sdk: {
225
+ input: ListProcurementPortalPreferencesCommandInput;
226
+ output: ListProcurementPortalPreferencesCommandOutput;
227
+ };
228
+ };
229
+ }
@@ -0,0 +1,196 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
4
+ import { PutProcurementPortalPreferenceRequest, PutProcurementPortalPreferenceResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutProcurementPortalPreferenceCommand}.
14
+ */
15
+ export interface PutProcurementPortalPreferenceCommandInput extends PutProcurementPortalPreferenceRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutProcurementPortalPreferenceCommand}.
21
+ */
22
+ export interface PutProcurementPortalPreferenceCommandOutput extends PutProcurementPortalPreferenceResponse, __MetadataBearer {
23
+ }
24
+ declare const PutProcurementPortalPreferenceCommand_base: {
25
+ new (input: PutProcurementPortalPreferenceCommandInput): import("@smithy/smithy-client").CommandImpl<PutProcurementPortalPreferenceCommandInput, PutProcurementPortalPreferenceCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: PutProcurementPortalPreferenceCommandInput): import("@smithy/smithy-client").CommandImpl<PutProcurementPortalPreferenceCommandInput, PutProcurementPortalPreferenceCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates an existing procurement portal preference configuration. This operation can modify settings for e-invoice delivery and purchase order retrieval.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { InvoicingClient, PutProcurementPortalPreferenceCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
35
+ * // const { InvoicingClient, PutProcurementPortalPreferenceCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
36
+ * // import type { InvoicingClientConfig } from "@aws-sdk/client-invoicing";
37
+ * const config = {}; // type is InvoicingClientConfig
38
+ * const client = new InvoicingClient(config);
39
+ * const input = { // PutProcurementPortalPreferenceRequest
40
+ * ProcurementPortalPreferenceArn: "STRING_VALUE", // required
41
+ * Selector: { // ProcurementPortalPreferenceSelector
42
+ * InvoiceUnitArns: [ // InvoiceUnitArns
43
+ * "STRING_VALUE",
44
+ * ],
45
+ * SellerOfRecords: [ // SellerOfRecords
46
+ * "STRING_VALUE",
47
+ * ],
48
+ * },
49
+ * ProcurementPortalSharedSecret: "STRING_VALUE",
50
+ * ProcurementPortalInstanceEndpoint: "STRING_VALUE",
51
+ * TestEnvPreference: { // TestEnvPreferenceInput
52
+ * BuyerDomain: "NetworkID", // required
53
+ * BuyerIdentifier: "STRING_VALUE", // required
54
+ * SupplierDomain: "NetworkID", // required
55
+ * SupplierIdentifier: "STRING_VALUE", // required
56
+ * ProcurementPortalSharedSecret: "STRING_VALUE",
57
+ * ProcurementPortalInstanceEndpoint: "STRING_VALUE",
58
+ * },
59
+ * EinvoiceDeliveryEnabled: true || false, // required
60
+ * EinvoiceDeliveryPreference: { // EinvoiceDeliveryPreference
61
+ * EinvoiceDeliveryDocumentTypes: [ // EinvoiceDeliveryDocumentTypes // required
62
+ * "AWS_CLOUD_INVOICE" || "AWS_CLOUD_CREDIT_MEMO" || "AWS_MARKETPLACE_INVOICE" || "AWS_MARKETPLACE_CREDIT_MEMO" || "AWS_REQUEST_FOR_PAYMENT",
63
+ * ],
64
+ * EinvoiceDeliveryAttachmentTypes: [ // EinvoiceDeliveryAttachmentTypes
65
+ * "INVOICE_PDF" || "RFP_PDF",
66
+ * ],
67
+ * Protocol: "CXML", // required
68
+ * PurchaseOrderDataSources: [ // PurchaseOrderDataSources // required
69
+ * { // PurchaseOrderDataSource
70
+ * EinvoiceDeliveryDocumentType: "AWS_CLOUD_INVOICE" || "AWS_CLOUD_CREDIT_MEMO" || "AWS_MARKETPLACE_INVOICE" || "AWS_MARKETPLACE_CREDIT_MEMO" || "AWS_REQUEST_FOR_PAYMENT",
71
+ * PurchaseOrderDataSourceType: "ASSOCIATED_PURCHASE_ORDER_REQUIRED" || "PURCHASE_ORDER_NOT_REQUIRED",
72
+ * },
73
+ * ],
74
+ * ConnectionTestingMethod: "PROD_ENV_DOLLAR_TEST" || "TEST_ENV_REPLAY_TEST", // required
75
+ * EinvoiceDeliveryActivationDate: new Date("TIMESTAMP"), // required
76
+ * },
77
+ * PurchaseOrderRetrievalEnabled: true || false, // required
78
+ * Contacts: [ // Contacts // required
79
+ * { // Contact
80
+ * Name: "STRING_VALUE",
81
+ * Email: "STRING_VALUE",
82
+ * },
83
+ * ],
84
+ * };
85
+ * const command = new PutProcurementPortalPreferenceCommand(input);
86
+ * const response = await client.send(command);
87
+ * // { // PutProcurementPortalPreferenceResponse
88
+ * // ProcurementPortalPreferenceArn: "STRING_VALUE", // required
89
+ * // };
90
+ *
91
+ * ```
92
+ *
93
+ * @param PutProcurementPortalPreferenceCommandInput - {@link PutProcurementPortalPreferenceCommandInput}
94
+ * @returns {@link PutProcurementPortalPreferenceCommandOutput}
95
+ * @see {@link PutProcurementPortalPreferenceCommandInput} for command's `input` shape.
96
+ * @see {@link PutProcurementPortalPreferenceCommandOutput} for command's `response` shape.
97
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
98
+ *
99
+ * @throws {@link AccessDeniedException} (client fault)
100
+ * <p>You don't have sufficient access to perform this action.</p>
101
+ *
102
+ * @throws {@link ConflictException} (client fault)
103
+ * <p>The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.</p>
104
+ *
105
+ * @throws {@link InternalServerException} (server fault)
106
+ * <p>The processing request failed because of an unknown error, exception, or failure. </p>
107
+ *
108
+ * @throws {@link ResourceNotFoundException} (client fault)
109
+ * <p>The resource could not be found. </p>
110
+ *
111
+ * @throws {@link ServiceQuotaExceededException} (client fault)
112
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded. </p>
113
+ *
114
+ * @throws {@link ThrottlingException} (client fault)
115
+ * <p>The request was denied due to request throttling.</p>
116
+ *
117
+ * @throws {@link ValidationException} (client fault)
118
+ * <p> The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
119
+ *
120
+ * @throws {@link InvoicingServiceException}
121
+ * <p>Base exception class for all service exceptions from Invoicing service.</p>
122
+ *
123
+ *
124
+ * @example PutProcurementPortalPreference for Coupa pref
125
+ * ```javascript
126
+ * //
127
+ * const input = {
128
+ * Contacts: [
129
+ * {
130
+ * Email: "example-placeholder2@amazon.com",
131
+ * Name: "John Doe2"
132
+ * }
133
+ * ],
134
+ * EinvoiceDeliveryEnabled: true,
135
+ * EinvoiceDeliveryPreference: {
136
+ * ConnectionTestingMethod: "PROD_ENV_DOLLAR_TEST",
137
+ * EinvoiceDeliveryActivationDate: 1.750279280091E9,
138
+ * EinvoiceDeliveryAttachmentTypes: [
139
+ * "INVOICE_PDF"
140
+ * ],
141
+ * EinvoiceDeliveryDocumentTypes: [
142
+ * "AWS_CLOUD_INVOICE"
143
+ * ],
144
+ * Protocol: "CXML",
145
+ * PurchaseOrderDataSources: [
146
+ * {
147
+ * EinvoiceDeliveryDocumentType: "AWS_CLOUD_INVOICE",
148
+ * PurchaseOrderDataSourceType: "ASSOCIATED_PURCHASE_ORDER_REQUIRED"
149
+ * }
150
+ * ]
151
+ * },
152
+ * ProcurementPortalInstanceEndpoint: "https://www.placeholder-domain.test",
153
+ * ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/f71dd02e-f855-4b13-b793-0fd25c0b3ecd",
154
+ * ProcurementPortalSharedSecret: "Coupa_Secret_2",
155
+ * PurchaseOrderRetrievalEnabled: true,
156
+ * Selector: {
157
+ * InvoiceUnitArns: [
158
+ * "arn:aws:invoicing::111111111111:invoice-unit/12345679"
159
+ * ],
160
+ * SellerOfRecords: [
161
+ * "AWS_INC"
162
+ * ]
163
+ * },
164
+ * TestEnvPreference: {
165
+ * BuyerDomain: "NetworkID",
166
+ * BuyerIdentifier: "BuyerId_1_Test",
167
+ * ProcurementPortalInstanceEndpoint: "https://www.placeholder-domain.test",
168
+ * ProcurementPortalSharedSecret: "Coupa_Secret_test_2",
169
+ * SupplierDomain: "NetworkID",
170
+ * SupplierIdentifier: "SupplierId_1_Test"
171
+ * }
172
+ * };
173
+ * const command = new PutProcurementPortalPreferenceCommand(input);
174
+ * const response = await client.send(command);
175
+ * /* response is
176
+ * {
177
+ * ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/f71dd02e-f855-4b13-b793-0fd25c0b3ecd"
178
+ * }
179
+ * *\/
180
+ * ```
181
+ *
182
+ * @public
183
+ */
184
+ export declare class PutProcurementPortalPreferenceCommand extends PutProcurementPortalPreferenceCommand_base {
185
+ /** @internal type navigation helper, not in runtime. */
186
+ protected static __types: {
187
+ api: {
188
+ input: PutProcurementPortalPreferenceRequest;
189
+ output: PutProcurementPortalPreferenceResponse;
190
+ };
191
+ sdk: {
192
+ input: PutProcurementPortalPreferenceCommandInput;
193
+ output: PutProcurementPortalPreferenceCommandOutput;
194
+ };
195
+ };
196
+ }
@@ -0,0 +1,118 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../InvoicingClient";
4
+ import { UpdateProcurementPortalPreferenceStatusRequest, UpdateProcurementPortalPreferenceStatusResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateProcurementPortalPreferenceStatusCommand}.
14
+ */
15
+ export interface UpdateProcurementPortalPreferenceStatusCommandInput extends UpdateProcurementPortalPreferenceStatusRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateProcurementPortalPreferenceStatusCommand}.
21
+ */
22
+ export interface UpdateProcurementPortalPreferenceStatusCommandOutput extends UpdateProcurementPortalPreferenceStatusResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateProcurementPortalPreferenceStatusCommand_base: {
25
+ new (input: UpdateProcurementPortalPreferenceStatusCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateProcurementPortalPreferenceStatusCommandInput, UpdateProcurementPortalPreferenceStatusCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateProcurementPortalPreferenceStatusCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateProcurementPortalPreferenceStatusCommandInput, UpdateProcurementPortalPreferenceStatusCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates the status of a procurement portal preference, including the activation state of e-invoice delivery and purchase order retrieval features.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { InvoicingClient, UpdateProcurementPortalPreferenceStatusCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
35
+ * // const { InvoicingClient, UpdateProcurementPortalPreferenceStatusCommand } = require("@aws-sdk/client-invoicing"); // CommonJS import
36
+ * // import type { InvoicingClientConfig } from "@aws-sdk/client-invoicing";
37
+ * const config = {}; // type is InvoicingClientConfig
38
+ * const client = new InvoicingClient(config);
39
+ * const input = { // UpdateProcurementPortalPreferenceStatusRequest
40
+ * ProcurementPortalPreferenceArn: "STRING_VALUE", // required
41
+ * EinvoiceDeliveryPreferenceStatus: "PENDING_VERIFICATION" || "TEST_INITIALIZED" || "TEST_INITIALIZATION_FAILED" || "TEST_FAILED" || "ACTIVE" || "SUSPENDED",
42
+ * EinvoiceDeliveryPreferenceStatusReason: "STRING_VALUE",
43
+ * PurchaseOrderRetrievalPreferenceStatus: "PENDING_VERIFICATION" || "TEST_INITIALIZED" || "TEST_INITIALIZATION_FAILED" || "TEST_FAILED" || "ACTIVE" || "SUSPENDED",
44
+ * PurchaseOrderRetrievalPreferenceStatusReason: "STRING_VALUE",
45
+ * };
46
+ * const command = new UpdateProcurementPortalPreferenceStatusCommand(input);
47
+ * const response = await client.send(command);
48
+ * // { // UpdateProcurementPortalPreferenceStatusResponse
49
+ * // ProcurementPortalPreferenceArn: "STRING_VALUE", // required
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param UpdateProcurementPortalPreferenceStatusCommandInput - {@link UpdateProcurementPortalPreferenceStatusCommandInput}
55
+ * @returns {@link UpdateProcurementPortalPreferenceStatusCommandOutput}
56
+ * @see {@link UpdateProcurementPortalPreferenceStatusCommandInput} for command's `input` shape.
57
+ * @see {@link UpdateProcurementPortalPreferenceStatusCommandOutput} for command's `response` shape.
58
+ * @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
59
+ *
60
+ * @throws {@link AccessDeniedException} (client fault)
61
+ * <p>You don't have sufficient access to perform this action.</p>
62
+ *
63
+ * @throws {@link ConflictException} (client fault)
64
+ * <p>The request could not be completed due to a conflict with the current state of the resource. This exception occurs when a concurrent modification is detected during an update operation, or when attempting to create a resource that already exists.</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 ServiceQuotaExceededException} (client fault)
73
+ * <p>The request was rejected because it attempted to create resources beyond the current Amazon Web Services account limits. The error message describes the limit exceeded. </p>
74
+ *
75
+ * @throws {@link ThrottlingException} (client fault)
76
+ * <p>The request was denied due to request throttling.</p>
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ * <p> The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
80
+ *
81
+ * @throws {@link InvoicingServiceException}
82
+ * <p>Base exception class for all service exceptions from Invoicing service.</p>
83
+ *
84
+ *
85
+ * @example UpdateProcurementPortalPreference for EinvoiceDeliveryPreferenceStatus and PurchaseOrderRetrievalPreferenceStatus
86
+ * ```javascript
87
+ * //
88
+ * const input = {
89
+ * EinvoiceDeliveryPreferenceStatus: "SUSPENDED",
90
+ * EinvoiceDeliveryPreferenceStatusReason: "suspended example reason",
91
+ * ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/f71dd02e-f855-4b13-b793-0fd25c0b3ecd",
92
+ * PurchaseOrderRetrievalPreferenceStatus: "SUSPENDED",
93
+ * PurchaseOrderRetrievalPreferenceStatusReason: "suspended example reason"
94
+ * };
95
+ * const command = new UpdateProcurementPortalPreferenceStatusCommand(input);
96
+ * const response = await client.send(command);
97
+ * /* response is
98
+ * {
99
+ * ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/f71dd02e-f855-4b13-b793-0fd25c0b3ecd"
100
+ * }
101
+ * *\/
102
+ * ```
103
+ *
104
+ * @public
105
+ */
106
+ export declare class UpdateProcurementPortalPreferenceStatusCommand extends UpdateProcurementPortalPreferenceStatusCommand_base {
107
+ /** @internal type navigation helper, not in runtime. */
108
+ protected static __types: {
109
+ api: {
110
+ input: UpdateProcurementPortalPreferenceStatusRequest;
111
+ output: UpdateProcurementPortalPreferenceStatusResponse;
112
+ };
113
+ sdk: {
114
+ input: UpdateProcurementPortalPreferenceStatusCommandInput;
115
+ output: UpdateProcurementPortalPreferenceStatusCommandOutput;
116
+ };
117
+ };
118
+ }
@@ -1,11 +1,17 @@
1
1
  export * from "./BatchGetInvoiceProfileCommand";
2
2
  export * from "./CreateInvoiceUnitCommand";
3
+ export * from "./CreateProcurementPortalPreferenceCommand";
3
4
  export * from "./DeleteInvoiceUnitCommand";
5
+ export * from "./DeleteProcurementPortalPreferenceCommand";
4
6
  export * from "./GetInvoicePDFCommand";
5
7
  export * from "./GetInvoiceUnitCommand";
8
+ export * from "./GetProcurementPortalPreferenceCommand";
6
9
  export * from "./ListInvoiceSummariesCommand";
7
10
  export * from "./ListInvoiceUnitsCommand";
11
+ export * from "./ListProcurementPortalPreferencesCommand";
8
12
  export * from "./ListTagsForResourceCommand";
13
+ export * from "./PutProcurementPortalPreferenceCommand";
9
14
  export * from "./TagResourceCommand";
10
15
  export * from "./UntagResourceCommand";
11
16
  export * from "./UpdateInvoiceUnitCommand";
17
+ export * from "./UpdateProcurementPortalPreferenceStatusCommand";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * <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>Service endpoint</p> <p>You can use the following endpoints for Amazon Web Services Invoice Configuration:</p> <ul> <li> <p> <code>https://invoicing.us-east-1.api.aws</code> </p> </li> </ul>
2
+ * <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>
3
3
  *
4
4
  * @packageDocumentation
5
5
  */