@aws-sdk/client-invoicing 3.936.0 → 3.939.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 +49 -1
- package/dist-cjs/index.js +465 -8
- package/dist-es/Invoicing.js +12 -0
- package/dist-es/commands/CreateProcurementPortalPreferenceCommand.js +16 -0
- package/dist-es/commands/DeleteProcurementPortalPreferenceCommand.js +16 -0
- package/dist-es/commands/GetProcurementPortalPreferenceCommand.js +16 -0
- package/dist-es/commands/ListProcurementPortalPreferencesCommand.js +16 -0
- package/dist-es/commands/PutProcurementPortalPreferenceCommand.js +16 -0
- package/dist-es/commands/UpdateProcurementPortalPreferenceStatusCommand.js +16 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/enums.js +40 -0
- package/dist-es/models/errors.js +16 -0
- package/dist-es/pagination/ListProcurementPortalPreferencesPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +317 -9
- package/dist-types/Invoicing.d.ts +44 -1
- package/dist-types/InvoicingClient.d.ts +9 -3
- package/dist-types/commands/CreateProcurementPortalPreferenceCommand.d.ts +217 -0
- package/dist-types/commands/DeleteProcurementPortalPreferenceCommand.d.ts +107 -0
- package/dist-types/commands/GetProcurementPortalPreferenceCommand.d.ts +230 -0
- package/dist-types/commands/ListProcurementPortalPreferencesCommand.d.ts +229 -0
- package/dist-types/commands/PutProcurementPortalPreferenceCommand.d.ts +196 -0
- package/dist-types/commands/UpdateProcurementPortalPreferenceStatusCommand.d.ts +118 -0
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/index.d.ts +1 -1
- package/dist-types/models/enums.d.ts +112 -0
- package/dist-types/models/errors.d.ts +22 -0
- package/dist-types/models/models_0.d.ts +634 -1
- package/dist-types/pagination/ListProcurementPortalPreferencesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +34 -0
- package/dist-types/ts3.4/Invoicing.d.ts +121 -0
- package/dist-types/ts3.4/InvoicingClient.d.ts +38 -2
- package/dist-types/ts3.4/commands/CreateProcurementPortalPreferenceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteProcurementPortalPreferenceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetProcurementPortalPreferenceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListProcurementPortalPreferencesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutProcurementPortalPreferenceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateProcurementPortalPreferenceStatusCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/enums.d.ts +56 -0
- package/dist-types/ts3.4/models/errors.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +174 -1
- package/dist-types/ts3.4/pagination/ListProcurementPortalPreferencesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +34 -0
- package/package.json +2 -2
|
@@ -9,26 +9,32 @@ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalc
|
|
|
9
9
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
10
10
|
import { BatchGetInvoiceProfileCommandInput, BatchGetInvoiceProfileCommandOutput } from "./commands/BatchGetInvoiceProfileCommand";
|
|
11
11
|
import { CreateInvoiceUnitCommandInput, CreateInvoiceUnitCommandOutput } from "./commands/CreateInvoiceUnitCommand";
|
|
12
|
+
import { CreateProcurementPortalPreferenceCommandInput, CreateProcurementPortalPreferenceCommandOutput } from "./commands/CreateProcurementPortalPreferenceCommand";
|
|
12
13
|
import { DeleteInvoiceUnitCommandInput, DeleteInvoiceUnitCommandOutput } from "./commands/DeleteInvoiceUnitCommand";
|
|
14
|
+
import { DeleteProcurementPortalPreferenceCommandInput, DeleteProcurementPortalPreferenceCommandOutput } from "./commands/DeleteProcurementPortalPreferenceCommand";
|
|
13
15
|
import { GetInvoicePDFCommandInput, GetInvoicePDFCommandOutput } from "./commands/GetInvoicePDFCommand";
|
|
14
16
|
import { GetInvoiceUnitCommandInput, GetInvoiceUnitCommandOutput } from "./commands/GetInvoiceUnitCommand";
|
|
17
|
+
import { GetProcurementPortalPreferenceCommandInput, GetProcurementPortalPreferenceCommandOutput } from "./commands/GetProcurementPortalPreferenceCommand";
|
|
15
18
|
import { ListInvoiceSummariesCommandInput, ListInvoiceSummariesCommandOutput } from "./commands/ListInvoiceSummariesCommand";
|
|
16
19
|
import { ListInvoiceUnitsCommandInput, ListInvoiceUnitsCommandOutput } from "./commands/ListInvoiceUnitsCommand";
|
|
20
|
+
import { ListProcurementPortalPreferencesCommandInput, ListProcurementPortalPreferencesCommandOutput } from "./commands/ListProcurementPortalPreferencesCommand";
|
|
17
21
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
22
|
+
import { PutProcurementPortalPreferenceCommandInput, PutProcurementPortalPreferenceCommandOutput } from "./commands/PutProcurementPortalPreferenceCommand";
|
|
18
23
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
19
24
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
20
25
|
import { UpdateInvoiceUnitCommandInput, UpdateInvoiceUnitCommandOutput } from "./commands/UpdateInvoiceUnitCommand";
|
|
26
|
+
import { UpdateProcurementPortalPreferenceStatusCommandInput, UpdateProcurementPortalPreferenceStatusCommandOutput } from "./commands/UpdateProcurementPortalPreferenceStatusCommand";
|
|
21
27
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
22
28
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
23
29
|
export { __Client };
|
|
24
30
|
/**
|
|
25
31
|
* @public
|
|
26
32
|
*/
|
|
27
|
-
export type ServiceInputTypes = BatchGetInvoiceProfileCommandInput | CreateInvoiceUnitCommandInput | DeleteInvoiceUnitCommandInput | GetInvoicePDFCommandInput | GetInvoiceUnitCommandInput | ListInvoiceSummariesCommandInput | ListInvoiceUnitsCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateInvoiceUnitCommandInput;
|
|
33
|
+
export type ServiceInputTypes = BatchGetInvoiceProfileCommandInput | CreateInvoiceUnitCommandInput | CreateProcurementPortalPreferenceCommandInput | DeleteInvoiceUnitCommandInput | DeleteProcurementPortalPreferenceCommandInput | GetInvoicePDFCommandInput | GetInvoiceUnitCommandInput | GetProcurementPortalPreferenceCommandInput | ListInvoiceSummariesCommandInput | ListInvoiceUnitsCommandInput | ListProcurementPortalPreferencesCommandInput | ListTagsForResourceCommandInput | PutProcurementPortalPreferenceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateInvoiceUnitCommandInput | UpdateProcurementPortalPreferenceStatusCommandInput;
|
|
28
34
|
/**
|
|
29
35
|
* @public
|
|
30
36
|
*/
|
|
31
|
-
export type ServiceOutputTypes = BatchGetInvoiceProfileCommandOutput | CreateInvoiceUnitCommandOutput | DeleteInvoiceUnitCommandOutput | GetInvoicePDFCommandOutput | GetInvoiceUnitCommandOutput | ListInvoiceSummariesCommandOutput | ListInvoiceUnitsCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateInvoiceUnitCommandOutput;
|
|
37
|
+
export type ServiceOutputTypes = BatchGetInvoiceProfileCommandOutput | CreateInvoiceUnitCommandOutput | CreateProcurementPortalPreferenceCommandOutput | DeleteInvoiceUnitCommandOutput | DeleteProcurementPortalPreferenceCommandOutput | GetInvoicePDFCommandOutput | GetInvoiceUnitCommandOutput | GetProcurementPortalPreferenceCommandOutput | ListInvoiceSummariesCommandOutput | ListInvoiceUnitsCommandOutput | ListProcurementPortalPreferencesCommandOutput | ListTagsForResourceCommandOutput | PutProcurementPortalPreferenceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateInvoiceUnitCommandOutput | UpdateProcurementPortalPreferenceStatusCommandOutput;
|
|
32
38
|
/**
|
|
33
39
|
* @public
|
|
34
40
|
*/
|
|
@@ -189,7 +195,7 @@ export type InvoicingClientResolvedConfigType = __SmithyResolvedConfiguration<__
|
|
|
189
195
|
export interface InvoicingClientResolvedConfig extends InvoicingClientResolvedConfigType {
|
|
190
196
|
}
|
|
191
197
|
/**
|
|
192
|
-
* <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>
|
|
198
|
+
* <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>
|
|
193
199
|
* @public
|
|
194
200
|
*/
|
|
195
201
|
export declare class InvoicingClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, InvoicingClientResolvedConfig> {
|
|
@@ -0,0 +1,217 @@
|
|
|
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 { CreateProcurementPortalPreferenceRequest, CreateProcurementPortalPreferenceResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateProcurementPortalPreferenceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateProcurementPortalPreferenceCommandInput extends CreateProcurementPortalPreferenceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateProcurementPortalPreferenceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateProcurementPortalPreferenceCommandOutput extends CreateProcurementPortalPreferenceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateProcurementPortalPreferenceCommand_base: {
|
|
25
|
+
new (input: CreateProcurementPortalPreferenceCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProcurementPortalPreferenceCommandInput, CreateProcurementPortalPreferenceCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateProcurementPortalPreferenceCommandInput): import("@smithy/smithy-client").CommandImpl<CreateProcurementPortalPreferenceCommandInput, CreateProcurementPortalPreferenceCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Creates a procurement portal preference configuration for e-invoice delivery and purchase order retrieval. This preference defines how invoices are delivered to a procurement portal and how purchase orders are retrieved.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { InvoicingClient, CreateProcurementPortalPreferenceCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
|
|
35
|
+
* // const { InvoicingClient, CreateProcurementPortalPreferenceCommand } = 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 = { // CreateProcurementPortalPreferenceRequest
|
|
40
|
+
* ProcurementPortalName: "SAP_BUSINESS_NETWORK" || "COUPA", // required
|
|
41
|
+
* BuyerDomain: "NetworkID", // required
|
|
42
|
+
* BuyerIdentifier: "STRING_VALUE", // required
|
|
43
|
+
* SupplierDomain: "NetworkID", // required
|
|
44
|
+
* SupplierIdentifier: "STRING_VALUE", // required
|
|
45
|
+
* Selector: { // ProcurementPortalPreferenceSelector
|
|
46
|
+
* InvoiceUnitArns: [ // InvoiceUnitArns
|
|
47
|
+
* "STRING_VALUE",
|
|
48
|
+
* ],
|
|
49
|
+
* SellerOfRecords: [ // SellerOfRecords
|
|
50
|
+
* "STRING_VALUE",
|
|
51
|
+
* ],
|
|
52
|
+
* },
|
|
53
|
+
* ProcurementPortalSharedSecret: "STRING_VALUE",
|
|
54
|
+
* ProcurementPortalInstanceEndpoint: "STRING_VALUE",
|
|
55
|
+
* TestEnvPreference: { // TestEnvPreferenceInput
|
|
56
|
+
* BuyerDomain: "NetworkID", // required
|
|
57
|
+
* BuyerIdentifier: "STRING_VALUE", // required
|
|
58
|
+
* SupplierDomain: "NetworkID", // required
|
|
59
|
+
* SupplierIdentifier: "STRING_VALUE", // required
|
|
60
|
+
* ProcurementPortalSharedSecret: "STRING_VALUE",
|
|
61
|
+
* ProcurementPortalInstanceEndpoint: "STRING_VALUE",
|
|
62
|
+
* },
|
|
63
|
+
* EinvoiceDeliveryEnabled: true || false, // required
|
|
64
|
+
* EinvoiceDeliveryPreference: { // EinvoiceDeliveryPreference
|
|
65
|
+
* EinvoiceDeliveryDocumentTypes: [ // EinvoiceDeliveryDocumentTypes // required
|
|
66
|
+
* "AWS_CLOUD_INVOICE" || "AWS_CLOUD_CREDIT_MEMO" || "AWS_MARKETPLACE_INVOICE" || "AWS_MARKETPLACE_CREDIT_MEMO" || "AWS_REQUEST_FOR_PAYMENT",
|
|
67
|
+
* ],
|
|
68
|
+
* EinvoiceDeliveryAttachmentTypes: [ // EinvoiceDeliveryAttachmentTypes
|
|
69
|
+
* "INVOICE_PDF" || "RFP_PDF",
|
|
70
|
+
* ],
|
|
71
|
+
* Protocol: "CXML", // required
|
|
72
|
+
* PurchaseOrderDataSources: [ // PurchaseOrderDataSources // required
|
|
73
|
+
* { // PurchaseOrderDataSource
|
|
74
|
+
* EinvoiceDeliveryDocumentType: "AWS_CLOUD_INVOICE" || "AWS_CLOUD_CREDIT_MEMO" || "AWS_MARKETPLACE_INVOICE" || "AWS_MARKETPLACE_CREDIT_MEMO" || "AWS_REQUEST_FOR_PAYMENT",
|
|
75
|
+
* PurchaseOrderDataSourceType: "ASSOCIATED_PURCHASE_ORDER_REQUIRED" || "PURCHASE_ORDER_NOT_REQUIRED",
|
|
76
|
+
* },
|
|
77
|
+
* ],
|
|
78
|
+
* ConnectionTestingMethod: "PROD_ENV_DOLLAR_TEST" || "TEST_ENV_REPLAY_TEST", // required
|
|
79
|
+
* EinvoiceDeliveryActivationDate: new Date("TIMESTAMP"), // required
|
|
80
|
+
* },
|
|
81
|
+
* PurchaseOrderRetrievalEnabled: true || false, // required
|
|
82
|
+
* Contacts: [ // Contacts // required
|
|
83
|
+
* { // Contact
|
|
84
|
+
* Name: "STRING_VALUE",
|
|
85
|
+
* Email: "STRING_VALUE",
|
|
86
|
+
* },
|
|
87
|
+
* ],
|
|
88
|
+
* ResourceTags: [ // ResourceTagList
|
|
89
|
+
* { // ResourceTag
|
|
90
|
+
* Key: "STRING_VALUE", // required
|
|
91
|
+
* Value: "STRING_VALUE", // required
|
|
92
|
+
* },
|
|
93
|
+
* ],
|
|
94
|
+
* ClientToken: "STRING_VALUE",
|
|
95
|
+
* };
|
|
96
|
+
* const command = new CreateProcurementPortalPreferenceCommand(input);
|
|
97
|
+
* const response = await client.send(command);
|
|
98
|
+
* // { // CreateProcurementPortalPreferenceResponse
|
|
99
|
+
* // ProcurementPortalPreferenceArn: "STRING_VALUE", // required
|
|
100
|
+
* // };
|
|
101
|
+
*
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
104
|
+
* @param CreateProcurementPortalPreferenceCommandInput - {@link CreateProcurementPortalPreferenceCommandInput}
|
|
105
|
+
* @returns {@link CreateProcurementPortalPreferenceCommandOutput}
|
|
106
|
+
* @see {@link CreateProcurementPortalPreferenceCommandInput} for command's `input` shape.
|
|
107
|
+
* @see {@link CreateProcurementPortalPreferenceCommandOutput} for command's `response` shape.
|
|
108
|
+
* @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
111
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link ConflictException} (client fault)
|
|
114
|
+
* <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>
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link InternalServerException} (server fault)
|
|
117
|
+
* <p>The processing request failed because of an unknown error, exception, or failure. </p>
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
120
|
+
* <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>
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
123
|
+
* <p>The request was denied due to request throttling.</p>
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ValidationException} (client fault)
|
|
126
|
+
* <p> The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link InvoicingServiceException}
|
|
129
|
+
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
130
|
+
*
|
|
131
|
+
*
|
|
132
|
+
* @example CreateProcurementPortalPreference for Coupa
|
|
133
|
+
* ```javascript
|
|
134
|
+
* //
|
|
135
|
+
* const input = {
|
|
136
|
+
* BuyerDomain: "NetworkID",
|
|
137
|
+
* BuyerIdentifier: "BuyerId_1",
|
|
138
|
+
* ClientToken: "e362c68e-4e74-48d7-9228-0bc5aa447b42",
|
|
139
|
+
* Contacts: [
|
|
140
|
+
* {
|
|
141
|
+
* Email: "example-placeholder@amazon.com",
|
|
142
|
+
* Name: "John Doe"
|
|
143
|
+
* }
|
|
144
|
+
* ],
|
|
145
|
+
* EinvoiceDeliveryEnabled: true,
|
|
146
|
+
* EinvoiceDeliveryPreference: {
|
|
147
|
+
* ConnectionTestingMethod: "PROD_ENV_DOLLAR_TEST",
|
|
148
|
+
* EinvoiceDeliveryActivationDate: 1.750279280091E9,
|
|
149
|
+
* EinvoiceDeliveryAttachmentTypes: [
|
|
150
|
+
* "INVOICE_PDF"
|
|
151
|
+
* ],
|
|
152
|
+
* EinvoiceDeliveryDocumentTypes: [
|
|
153
|
+
* "AWS_CLOUD_INVOICE"
|
|
154
|
+
* ],
|
|
155
|
+
* Protocol: "CXML",
|
|
156
|
+
* PurchaseOrderDataSources: [
|
|
157
|
+
* {
|
|
158
|
+
* EinvoiceDeliveryDocumentType: "AWS_CLOUD_INVOICE",
|
|
159
|
+
* PurchaseOrderDataSourceType: "ASSOCIATED_PURCHASE_ORDER_REQUIRED"
|
|
160
|
+
* }
|
|
161
|
+
* ]
|
|
162
|
+
* },
|
|
163
|
+
* ProcurementPortalInstanceEndpoint: "https://www.placeholder-domain.test",
|
|
164
|
+
* ProcurementPortalName: "COUPA",
|
|
165
|
+
* ProcurementPortalSharedSecret: "Coupa_Secret",
|
|
166
|
+
* PurchaseOrderRetrievalEnabled: true,
|
|
167
|
+
* ResourceTags: [
|
|
168
|
+
* {
|
|
169
|
+
* Key: "testKey",
|
|
170
|
+
* Value: "testValue"
|
|
171
|
+
* }
|
|
172
|
+
* ],
|
|
173
|
+
* Selector: {
|
|
174
|
+
* InvoiceUnitArns: [
|
|
175
|
+
* "arn:aws:invoicing::111111111111:invoice-unit/12345678",
|
|
176
|
+
* "arn:aws:invoicing::111111111111:invoice-unit/12345679"
|
|
177
|
+
* ],
|
|
178
|
+
* SellerOfRecords: [
|
|
179
|
+
* "AWS_INC",
|
|
180
|
+
* "AWS_EUROPE"
|
|
181
|
+
* ]
|
|
182
|
+
* },
|
|
183
|
+
* SupplierDomain: "NetworkID",
|
|
184
|
+
* SupplierIdentifier: "SupplierId_1",
|
|
185
|
+
* TestEnvPreference: {
|
|
186
|
+
* BuyerDomain: "NetworkID",
|
|
187
|
+
* BuyerIdentifier: "BuyerId_1_Test",
|
|
188
|
+
* ProcurementPortalInstanceEndpoint: "https://www.placeholder-domain.test",
|
|
189
|
+
* ProcurementPortalSharedSecret: "Coupa_Secret_test",
|
|
190
|
+
* SupplierDomain: "NetworkID",
|
|
191
|
+
* SupplierIdentifier: "SupplierId_1_Test"
|
|
192
|
+
* }
|
|
193
|
+
* };
|
|
194
|
+
* const command = new CreateProcurementPortalPreferenceCommand(input);
|
|
195
|
+
* const response = await client.send(command);
|
|
196
|
+
* /* response is
|
|
197
|
+
* {
|
|
198
|
+
* ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/a34fd666-7810-4414-9360-aaa4bcab0abd"
|
|
199
|
+
* }
|
|
200
|
+
* *\/
|
|
201
|
+
* ```
|
|
202
|
+
*
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
export declare class CreateProcurementPortalPreferenceCommand extends CreateProcurementPortalPreferenceCommand_base {
|
|
206
|
+
/** @internal type navigation helper, not in runtime. */
|
|
207
|
+
protected static __types: {
|
|
208
|
+
api: {
|
|
209
|
+
input: CreateProcurementPortalPreferenceRequest;
|
|
210
|
+
output: CreateProcurementPortalPreferenceResponse;
|
|
211
|
+
};
|
|
212
|
+
sdk: {
|
|
213
|
+
input: CreateProcurementPortalPreferenceCommandInput;
|
|
214
|
+
output: CreateProcurementPortalPreferenceCommandOutput;
|
|
215
|
+
};
|
|
216
|
+
};
|
|
217
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 { DeleteProcurementPortalPreferenceRequest, DeleteProcurementPortalPreferenceResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteProcurementPortalPreferenceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteProcurementPortalPreferenceCommandInput extends DeleteProcurementPortalPreferenceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteProcurementPortalPreferenceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteProcurementPortalPreferenceCommandOutput extends DeleteProcurementPortalPreferenceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteProcurementPortalPreferenceCommand_base: {
|
|
25
|
+
new (input: DeleteProcurementPortalPreferenceCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteProcurementPortalPreferenceCommandInput, DeleteProcurementPortalPreferenceCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: DeleteProcurementPortalPreferenceCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteProcurementPortalPreferenceCommandInput, DeleteProcurementPortalPreferenceCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Deletes an existing procurement portal preference. This action cannot be undone. Active e-invoice delivery and PO retrieval configurations will be terminated.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { InvoicingClient, DeleteProcurementPortalPreferenceCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
|
|
35
|
+
* // const { InvoicingClient, DeleteProcurementPortalPreferenceCommand } = 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 = { // DeleteProcurementPortalPreferenceRequest
|
|
40
|
+
* ProcurementPortalPreferenceArn: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new DeleteProcurementPortalPreferenceCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // DeleteProcurementPortalPreferenceResponse
|
|
45
|
+
* // ProcurementPortalPreferenceArn: "STRING_VALUE", // required
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param DeleteProcurementPortalPreferenceCommandInput - {@link DeleteProcurementPortalPreferenceCommandInput}
|
|
51
|
+
* @returns {@link DeleteProcurementPortalPreferenceCommandOutput}
|
|
52
|
+
* @see {@link DeleteProcurementPortalPreferenceCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link DeleteProcurementPortalPreferenceCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
57
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link InternalServerException} (server fault)
|
|
60
|
+
* <p>The processing request failed because of an unknown error, exception, or failure. </p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
63
|
+
* <p>The resource could not be found. </p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
66
|
+
* <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>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
69
|
+
* <p>The request was denied due to request throttling.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link ValidationException} (client fault)
|
|
72
|
+
* <p> The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link InvoicingServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
* @example DeleteProcurementPortalPreference call
|
|
79
|
+
* ```javascript
|
|
80
|
+
* //
|
|
81
|
+
* const input = {
|
|
82
|
+
* ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/f71dd02e-f855-4b13-b793-0fd25c0b3ecd"
|
|
83
|
+
* };
|
|
84
|
+
* const command = new DeleteProcurementPortalPreferenceCommand(input);
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* /* response is
|
|
87
|
+
* {
|
|
88
|
+
* ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/f71dd02e-f855-4b13-b793-0fd25c0b3ecd"
|
|
89
|
+
* }
|
|
90
|
+
* *\/
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
93
|
+
* @public
|
|
94
|
+
*/
|
|
95
|
+
export declare class DeleteProcurementPortalPreferenceCommand extends DeleteProcurementPortalPreferenceCommand_base {
|
|
96
|
+
/** @internal type navigation helper, not in runtime. */
|
|
97
|
+
protected static __types: {
|
|
98
|
+
api: {
|
|
99
|
+
input: DeleteProcurementPortalPreferenceRequest;
|
|
100
|
+
output: DeleteProcurementPortalPreferenceResponse;
|
|
101
|
+
};
|
|
102
|
+
sdk: {
|
|
103
|
+
input: DeleteProcurementPortalPreferenceCommandInput;
|
|
104
|
+
output: DeleteProcurementPortalPreferenceCommandOutput;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
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 { GetProcurementPortalPreferenceRequest, GetProcurementPortalPreferenceResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetProcurementPortalPreferenceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetProcurementPortalPreferenceCommandInput extends GetProcurementPortalPreferenceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetProcurementPortalPreferenceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetProcurementPortalPreferenceCommandOutput extends GetProcurementPortalPreferenceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetProcurementPortalPreferenceCommand_base: {
|
|
25
|
+
new (input: GetProcurementPortalPreferenceCommandInput): import("@smithy/smithy-client").CommandImpl<GetProcurementPortalPreferenceCommandInput, GetProcurementPortalPreferenceCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: GetProcurementPortalPreferenceCommandInput): import("@smithy/smithy-client").CommandImpl<GetProcurementPortalPreferenceCommandInput, GetProcurementPortalPreferenceCommandOutput, InvoicingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Retrieves the details of a specific procurement portal preference configuration.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { InvoicingClient, GetProcurementPortalPreferenceCommand } from "@aws-sdk/client-invoicing"; // ES Modules import
|
|
35
|
+
* // const { InvoicingClient, GetProcurementPortalPreferenceCommand } = 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 = { // GetProcurementPortalPreferenceRequest
|
|
40
|
+
* ProcurementPortalPreferenceArn: "STRING_VALUE", // required
|
|
41
|
+
* };
|
|
42
|
+
* const command = new GetProcurementPortalPreferenceCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // GetProcurementPortalPreferenceResponse
|
|
45
|
+
* // ProcurementPortalPreference: { // ProcurementPortalPreference
|
|
46
|
+
* // AwsAccountId: "STRING_VALUE", // required
|
|
47
|
+
* // ProcurementPortalPreferenceArn: "STRING_VALUE", // required
|
|
48
|
+
* // ProcurementPortalName: "SAP_BUSINESS_NETWORK" || "COUPA", // required
|
|
49
|
+
* // BuyerDomain: "NetworkID", // required
|
|
50
|
+
* // BuyerIdentifier: "STRING_VALUE", // required
|
|
51
|
+
* // SupplierDomain: "NetworkID", // required
|
|
52
|
+
* // SupplierIdentifier: "STRING_VALUE", // required
|
|
53
|
+
* // Selector: { // ProcurementPortalPreferenceSelector
|
|
54
|
+
* // InvoiceUnitArns: [ // InvoiceUnitArns
|
|
55
|
+
* // "STRING_VALUE",
|
|
56
|
+
* // ],
|
|
57
|
+
* // SellerOfRecords: [ // SellerOfRecords
|
|
58
|
+
* // "STRING_VALUE",
|
|
59
|
+
* // ],
|
|
60
|
+
* // },
|
|
61
|
+
* // ProcurementPortalSharedSecret: "STRING_VALUE",
|
|
62
|
+
* // ProcurementPortalInstanceEndpoint: "STRING_VALUE",
|
|
63
|
+
* // PurchaseOrderRetrievalEndpoint: "STRING_VALUE",
|
|
64
|
+
* // TestEnvPreference: { // TestEnvPreference
|
|
65
|
+
* // BuyerDomain: "NetworkID", // required
|
|
66
|
+
* // BuyerIdentifier: "STRING_VALUE", // required
|
|
67
|
+
* // SupplierDomain: "NetworkID", // required
|
|
68
|
+
* // SupplierIdentifier: "STRING_VALUE", // required
|
|
69
|
+
* // ProcurementPortalSharedSecret: "STRING_VALUE",
|
|
70
|
+
* // ProcurementPortalInstanceEndpoint: "STRING_VALUE",
|
|
71
|
+
* // PurchaseOrderRetrievalEndpoint: "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // EinvoiceDeliveryEnabled: true || false, // required
|
|
74
|
+
* // EinvoiceDeliveryPreference: { // EinvoiceDeliveryPreference
|
|
75
|
+
* // EinvoiceDeliveryDocumentTypes: [ // EinvoiceDeliveryDocumentTypes // required
|
|
76
|
+
* // "AWS_CLOUD_INVOICE" || "AWS_CLOUD_CREDIT_MEMO" || "AWS_MARKETPLACE_INVOICE" || "AWS_MARKETPLACE_CREDIT_MEMO" || "AWS_REQUEST_FOR_PAYMENT",
|
|
77
|
+
* // ],
|
|
78
|
+
* // EinvoiceDeliveryAttachmentTypes: [ // EinvoiceDeliveryAttachmentTypes
|
|
79
|
+
* // "INVOICE_PDF" || "RFP_PDF",
|
|
80
|
+
* // ],
|
|
81
|
+
* // Protocol: "CXML", // required
|
|
82
|
+
* // PurchaseOrderDataSources: [ // PurchaseOrderDataSources // required
|
|
83
|
+
* // { // PurchaseOrderDataSource
|
|
84
|
+
* // EinvoiceDeliveryDocumentType: "AWS_CLOUD_INVOICE" || "AWS_CLOUD_CREDIT_MEMO" || "AWS_MARKETPLACE_INVOICE" || "AWS_MARKETPLACE_CREDIT_MEMO" || "AWS_REQUEST_FOR_PAYMENT",
|
|
85
|
+
* // PurchaseOrderDataSourceType: "ASSOCIATED_PURCHASE_ORDER_REQUIRED" || "PURCHASE_ORDER_NOT_REQUIRED",
|
|
86
|
+
* // },
|
|
87
|
+
* // ],
|
|
88
|
+
* // ConnectionTestingMethod: "PROD_ENV_DOLLAR_TEST" || "TEST_ENV_REPLAY_TEST", // required
|
|
89
|
+
* // EinvoiceDeliveryActivationDate: new Date("TIMESTAMP"), // required
|
|
90
|
+
* // },
|
|
91
|
+
* // PurchaseOrderRetrievalEnabled: true || false, // required
|
|
92
|
+
* // Contacts: [ // Contacts
|
|
93
|
+
* // { // Contact
|
|
94
|
+
* // Name: "STRING_VALUE",
|
|
95
|
+
* // Email: "STRING_VALUE",
|
|
96
|
+
* // },
|
|
97
|
+
* // ],
|
|
98
|
+
* // EinvoiceDeliveryPreferenceStatus: "PENDING_VERIFICATION" || "TEST_INITIALIZED" || "TEST_INITIALIZATION_FAILED" || "TEST_FAILED" || "ACTIVE" || "SUSPENDED",
|
|
99
|
+
* // EinvoiceDeliveryPreferenceStatusReason: "STRING_VALUE",
|
|
100
|
+
* // PurchaseOrderRetrievalPreferenceStatus: "PENDING_VERIFICATION" || "TEST_INITIALIZED" || "TEST_INITIALIZATION_FAILED" || "TEST_FAILED" || "ACTIVE" || "SUSPENDED",
|
|
101
|
+
* // PurchaseOrderRetrievalPreferenceStatusReason: "STRING_VALUE",
|
|
102
|
+
* // Version: Number("long"), // required
|
|
103
|
+
* // CreateDate: new Date("TIMESTAMP"), // required
|
|
104
|
+
* // LastUpdateDate: new Date("TIMESTAMP"), // required
|
|
105
|
+
* // },
|
|
106
|
+
* // };
|
|
107
|
+
*
|
|
108
|
+
* ```
|
|
109
|
+
*
|
|
110
|
+
* @param GetProcurementPortalPreferenceCommandInput - {@link GetProcurementPortalPreferenceCommandInput}
|
|
111
|
+
* @returns {@link GetProcurementPortalPreferenceCommandOutput}
|
|
112
|
+
* @see {@link GetProcurementPortalPreferenceCommandInput} for command's `input` shape.
|
|
113
|
+
* @see {@link GetProcurementPortalPreferenceCommandOutput} for command's `response` shape.
|
|
114
|
+
* @see {@link InvoicingClientResolvedConfig | config} for InvoicingClient's `config` shape.
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
117
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link ConflictException} (client fault)
|
|
120
|
+
* <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>
|
|
121
|
+
*
|
|
122
|
+
* @throws {@link InternalServerException} (server fault)
|
|
123
|
+
* <p>The processing request failed because of an unknown error, exception, or failure. </p>
|
|
124
|
+
*
|
|
125
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
126
|
+
* <p>The resource could not be found. </p>
|
|
127
|
+
*
|
|
128
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
129
|
+
* <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>
|
|
130
|
+
*
|
|
131
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
132
|
+
* <p>The request was denied due to request throttling.</p>
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link ValidationException} (client fault)
|
|
135
|
+
* <p> The input fails to satisfy the constraints specified by an Amazon Web Services service. </p>
|
|
136
|
+
*
|
|
137
|
+
* @throws {@link InvoicingServiceException}
|
|
138
|
+
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
139
|
+
*
|
|
140
|
+
*
|
|
141
|
+
* @example GetProcurementPortalPreference for Coupa pref
|
|
142
|
+
* ```javascript
|
|
143
|
+
* //
|
|
144
|
+
* const input = {
|
|
145
|
+
* ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/a34fd666-7810-4414-9360-aaa4bcab0abd"
|
|
146
|
+
* };
|
|
147
|
+
* const command = new GetProcurementPortalPreferenceCommand(input);
|
|
148
|
+
* const response = await client.send(command);
|
|
149
|
+
* /* response is
|
|
150
|
+
* {
|
|
151
|
+
* ProcurementPortalPreference: {
|
|
152
|
+
* AwsAccountId: "111111111111",
|
|
153
|
+
* BuyerDomain: "NetworkID",
|
|
154
|
+
* BuyerIdentifier: "BuyerId_1",
|
|
155
|
+
* Contacts: [
|
|
156
|
+
* {
|
|
157
|
+
* Email: "example-placeholder@amazon.com",
|
|
158
|
+
* Name: "John Doe"
|
|
159
|
+
* }
|
|
160
|
+
* ],
|
|
161
|
+
* CreateDate: 1.750375489242E9,
|
|
162
|
+
* EinvoiceDeliveryEnabled: true,
|
|
163
|
+
* EinvoiceDeliveryPreference: {
|
|
164
|
+
* ConnectionTestingMethod: "PROD_ENV_DOLLAR_TEST",
|
|
165
|
+
* EinvoiceDeliveryActivationDate: 1.750279280091E9,
|
|
166
|
+
* EinvoiceDeliveryAttachmentTypes: [
|
|
167
|
+
* "INVOICE_PDF"
|
|
168
|
+
* ],
|
|
169
|
+
* EinvoiceDeliveryDocumentTypes: [
|
|
170
|
+
* "AWS_CLOUD_INVOICE"
|
|
171
|
+
* ],
|
|
172
|
+
* Protocol: "CXML",
|
|
173
|
+
* PurchaseOrderDataSources: [
|
|
174
|
+
* {
|
|
175
|
+
* EinvoiceDeliveryDocumentType: "AWS_CLOUD_INVOICE",
|
|
176
|
+
* PurchaseOrderDataSourceType: "ASSOCIATED_PURCHASE_ORDER_REQUIRED"
|
|
177
|
+
* }
|
|
178
|
+
* ]
|
|
179
|
+
* },
|
|
180
|
+
* EinvoiceDeliveryPreferenceStatus: "PENDING_VERIFICATION",
|
|
181
|
+
* LastUpdateDate: 1.750375489242E9,
|
|
182
|
+
* ProcurementPortalInstanceEndpoint: "https://www.placeholder-domain.test",
|
|
183
|
+
* ProcurementPortalName: "COUPA",
|
|
184
|
+
* ProcurementPortalPreferenceArn: "arn:aws:invoicing::111111111111:procurement-portal-preference/a34fd666-7810-4414-9360-aaa4bcab0abd",
|
|
185
|
+
* ProcurementPortalSharedSecret: "Coupa_Secret",
|
|
186
|
+
* PurchaseOrderRetrievalEnabled: true,
|
|
187
|
+
* PurchaseOrderRetrievalEndpoint: "https://www.placeholder-domain.test",
|
|
188
|
+
* PurchaseOrderRetrievalPreferenceStatus: "PENDING_VERIFICATION",
|
|
189
|
+
* Selector: {
|
|
190
|
+
* InvoiceUnitArns: [
|
|
191
|
+
* "arn:aws:invoicing::111111111111:invoice-unit/12345678",
|
|
192
|
+
* "arn:aws:invoicing::111111111111:invoice-unit/12345679"
|
|
193
|
+
* ],
|
|
194
|
+
* SellerOfRecords: [
|
|
195
|
+
* "AWS_INC",
|
|
196
|
+
* "AWS_EUROPE"
|
|
197
|
+
* ]
|
|
198
|
+
* },
|
|
199
|
+
* SupplierDomain: "NetworkID",
|
|
200
|
+
* SupplierIdentifier: "SupplierId_1",
|
|
201
|
+
* TestEnvPreference: {
|
|
202
|
+
* BuyerDomain: "NetworkID",
|
|
203
|
+
* BuyerIdentifier: "BuyerId_1_Test",
|
|
204
|
+
* ProcurementPortalInstanceEndpoint: "https://www.placeholder-domain.test",
|
|
205
|
+
* ProcurementPortalSharedSecret: "Coupa_Secret_test",
|
|
206
|
+
* PurchaseOrderRetrievalEndpoint: "https://www.placeholder-domain.test",
|
|
207
|
+
* SupplierDomain: "NetworkID",
|
|
208
|
+
* SupplierIdentifier: "SupplierId_1_Test"
|
|
209
|
+
* },
|
|
210
|
+
* Version: 1
|
|
211
|
+
* }
|
|
212
|
+
* }
|
|
213
|
+
* *\/
|
|
214
|
+
* ```
|
|
215
|
+
*
|
|
216
|
+
* @public
|
|
217
|
+
*/
|
|
218
|
+
export declare class GetProcurementPortalPreferenceCommand extends GetProcurementPortalPreferenceCommand_base {
|
|
219
|
+
/** @internal type navigation helper, not in runtime. */
|
|
220
|
+
protected static __types: {
|
|
221
|
+
api: {
|
|
222
|
+
input: GetProcurementPortalPreferenceRequest;
|
|
223
|
+
output: GetProcurementPortalPreferenceResponse;
|
|
224
|
+
};
|
|
225
|
+
sdk: {
|
|
226
|
+
input: GetProcurementPortalPreferenceCommandInput;
|
|
227
|
+
output: GetProcurementPortalPreferenceCommandOutput;
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
}
|