@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
package/dist-es/Invoicing.js
CHANGED
|
@@ -1,28 +1,40 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { BatchGetInvoiceProfileCommand, } from "./commands/BatchGetInvoiceProfileCommand";
|
|
3
3
|
import { CreateInvoiceUnitCommand, } from "./commands/CreateInvoiceUnitCommand";
|
|
4
|
+
import { CreateProcurementPortalPreferenceCommand, } from "./commands/CreateProcurementPortalPreferenceCommand";
|
|
4
5
|
import { DeleteInvoiceUnitCommand, } from "./commands/DeleteInvoiceUnitCommand";
|
|
6
|
+
import { DeleteProcurementPortalPreferenceCommand, } from "./commands/DeleteProcurementPortalPreferenceCommand";
|
|
5
7
|
import { GetInvoicePDFCommand, } from "./commands/GetInvoicePDFCommand";
|
|
6
8
|
import { GetInvoiceUnitCommand, } from "./commands/GetInvoiceUnitCommand";
|
|
9
|
+
import { GetProcurementPortalPreferenceCommand, } from "./commands/GetProcurementPortalPreferenceCommand";
|
|
7
10
|
import { ListInvoiceSummariesCommand, } from "./commands/ListInvoiceSummariesCommand";
|
|
8
11
|
import { ListInvoiceUnitsCommand, } from "./commands/ListInvoiceUnitsCommand";
|
|
12
|
+
import { ListProcurementPortalPreferencesCommand, } from "./commands/ListProcurementPortalPreferencesCommand";
|
|
9
13
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
14
|
+
import { PutProcurementPortalPreferenceCommand, } from "./commands/PutProcurementPortalPreferenceCommand";
|
|
10
15
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
11
16
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
12
17
|
import { UpdateInvoiceUnitCommand, } from "./commands/UpdateInvoiceUnitCommand";
|
|
18
|
+
import { UpdateProcurementPortalPreferenceStatusCommand, } from "./commands/UpdateProcurementPortalPreferenceStatusCommand";
|
|
13
19
|
import { InvoicingClient } from "./InvoicingClient";
|
|
14
20
|
const commands = {
|
|
15
21
|
BatchGetInvoiceProfileCommand,
|
|
16
22
|
CreateInvoiceUnitCommand,
|
|
23
|
+
CreateProcurementPortalPreferenceCommand,
|
|
17
24
|
DeleteInvoiceUnitCommand,
|
|
25
|
+
DeleteProcurementPortalPreferenceCommand,
|
|
18
26
|
GetInvoicePDFCommand,
|
|
19
27
|
GetInvoiceUnitCommand,
|
|
28
|
+
GetProcurementPortalPreferenceCommand,
|
|
20
29
|
ListInvoiceSummariesCommand,
|
|
21
30
|
ListInvoiceUnitsCommand,
|
|
31
|
+
ListProcurementPortalPreferencesCommand,
|
|
22
32
|
ListTagsForResourceCommand,
|
|
33
|
+
PutProcurementPortalPreferenceCommand,
|
|
23
34
|
TagResourceCommand,
|
|
24
35
|
UntagResourceCommand,
|
|
25
36
|
UpdateInvoiceUnitCommand,
|
|
37
|
+
UpdateProcurementPortalPreferenceStatusCommand,
|
|
26
38
|
};
|
|
27
39
|
export class Invoicing extends InvoicingClient {
|
|
28
40
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateProcurementPortalPreference } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateProcurementPortalPreferenceCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Invoicing", "CreateProcurementPortalPreference", {})
|
|
13
|
+
.n("InvoicingClient", "CreateProcurementPortalPreferenceCommand")
|
|
14
|
+
.sc(CreateProcurementPortalPreference)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { DeleteProcurementPortalPreference } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DeleteProcurementPortalPreferenceCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Invoicing", "DeleteProcurementPortalPreference", {})
|
|
13
|
+
.n("InvoicingClient", "DeleteProcurementPortalPreferenceCommand")
|
|
14
|
+
.sc(DeleteProcurementPortalPreference)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetProcurementPortalPreference } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetProcurementPortalPreferenceCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Invoicing", "GetProcurementPortalPreference", {})
|
|
13
|
+
.n("InvoicingClient", "GetProcurementPortalPreferenceCommand")
|
|
14
|
+
.sc(GetProcurementPortalPreference)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListProcurementPortalPreferences } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListProcurementPortalPreferencesCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Invoicing", "ListProcurementPortalPreferences", {})
|
|
13
|
+
.n("InvoicingClient", "ListProcurementPortalPreferencesCommand")
|
|
14
|
+
.sc(ListProcurementPortalPreferences)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { PutProcurementPortalPreference } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class PutProcurementPortalPreferenceCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Invoicing", "PutProcurementPortalPreference", {})
|
|
13
|
+
.n("InvoicingClient", "PutProcurementPortalPreferenceCommand")
|
|
14
|
+
.sc(PutProcurementPortalPreference)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { UpdateProcurementPortalPreferenceStatus } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class UpdateProcurementPortalPreferenceStatusCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Invoicing", "UpdateProcurementPortalPreferenceStatus", {})
|
|
13
|
+
.n("InvoicingClient", "UpdateProcurementPortalPreferenceStatusCommand")
|
|
14
|
+
.sc(UpdateProcurementPortalPreferenceStatus)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -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";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -14,6 +14,46 @@ export const ValidationExceptionReason = {
|
|
|
14
14
|
TAX_SETTINGS_ERROR: "taxSettingsError",
|
|
15
15
|
UNKNOWN_OPERATION: "unknownOperation",
|
|
16
16
|
};
|
|
17
|
+
export const BuyerDomain = {
|
|
18
|
+
NetworkID: "NetworkID",
|
|
19
|
+
};
|
|
20
|
+
export const ConnectionTestingMethod = {
|
|
21
|
+
PROD_ENV_DOLLAR_TEST: "PROD_ENV_DOLLAR_TEST",
|
|
22
|
+
TEST_ENV_REPLAY_TEST: "TEST_ENV_REPLAY_TEST",
|
|
23
|
+
};
|
|
24
|
+
export const EinvoiceDeliveryAttachmentType = {
|
|
25
|
+
INVOICE_PDF: "INVOICE_PDF",
|
|
26
|
+
RFP_PDF: "RFP_PDF",
|
|
27
|
+
};
|
|
28
|
+
export const EinvoiceDeliveryDocumentType = {
|
|
29
|
+
AWS_CLOUD_CREDIT_MEMO: "AWS_CLOUD_CREDIT_MEMO",
|
|
30
|
+
AWS_CLOUD_INVOICE: "AWS_CLOUD_INVOICE",
|
|
31
|
+
AWS_MARKETPLACE_CREDIT_MEMO: "AWS_MARKETPLACE_CREDIT_MEMO",
|
|
32
|
+
AWS_MARKETPLACE_INVOICE: "AWS_MARKETPLACE_INVOICE",
|
|
33
|
+
AWS_REQUEST_FOR_PAYMENT: "AWS_REQUEST_FOR_PAYMENT",
|
|
34
|
+
};
|
|
35
|
+
export const Protocol = {
|
|
36
|
+
CXML: "CXML",
|
|
37
|
+
};
|
|
38
|
+
export const PurchaseOrderDataSourceType = {
|
|
39
|
+
ASSOCIATED_PURCHASE_ORDER_REQUIRED: "ASSOCIATED_PURCHASE_ORDER_REQUIRED",
|
|
40
|
+
PURCHASE_ORDER_NOT_REQUIRED: "PURCHASE_ORDER_NOT_REQUIRED",
|
|
41
|
+
};
|
|
42
|
+
export const ProcurementPortalName = {
|
|
43
|
+
COUPA: "COUPA",
|
|
44
|
+
SAP_BUSINESS_NETWORK: "SAP_BUSINESS_NETWORK",
|
|
45
|
+
};
|
|
46
|
+
export const SupplierDomain = {
|
|
47
|
+
NetworkID: "NetworkID",
|
|
48
|
+
};
|
|
49
|
+
export const ProcurementPortalPreferenceStatus = {
|
|
50
|
+
ACTIVE: "ACTIVE",
|
|
51
|
+
PENDING_VERIFICATION: "PENDING_VERIFICATION",
|
|
52
|
+
SUSPENDED: "SUSPENDED",
|
|
53
|
+
TEST_FAILED: "TEST_FAILED",
|
|
54
|
+
TEST_INITIALIZATION_FAILED: "TEST_INITIALIZATION_FAILED",
|
|
55
|
+
TEST_INITIALIZED: "TEST_INITIALIZED",
|
|
56
|
+
};
|
|
17
57
|
export const InvoiceType = {
|
|
18
58
|
CREDIT_MEMO: "CREDIT_MEMO",
|
|
19
59
|
INVOICE: "INVOICE",
|
package/dist-es/models/errors.js
CHANGED
|
@@ -71,6 +71,22 @@ export class ValidationException extends __BaseException {
|
|
|
71
71
|
this.fieldList = opts.fieldList;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
export class ConflictException extends __BaseException {
|
|
75
|
+
name = "ConflictException";
|
|
76
|
+
$fault = "client";
|
|
77
|
+
resourceId;
|
|
78
|
+
resourceType;
|
|
79
|
+
constructor(opts) {
|
|
80
|
+
super({
|
|
81
|
+
name: "ConflictException",
|
|
82
|
+
$fault: "client",
|
|
83
|
+
...opts,
|
|
84
|
+
});
|
|
85
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
86
|
+
this.resourceId = opts.resourceId;
|
|
87
|
+
this.resourceType = opts.resourceType;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
74
90
|
export class ServiceQuotaExceededException extends __BaseException {
|
|
75
91
|
name = "ServiceQuotaExceededException";
|
|
76
92
|
$fault = "client";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListProcurementPortalPreferencesCommand, } from "../commands/ListProcurementPortalPreferencesCommand";
|
|
3
|
+
import { InvoicingClient } from "../InvoicingClient";
|
|
4
|
+
export const paginateListProcurementPortalPreferences = createPaginator(InvoicingClient, ListProcurementPortalPreferencesCommand, "NextToken", "NextToken", "MaxResults");
|