@aws-sdk/client-invoicing 3.703.0 → 3.704.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/dist-types/commands/BatchGetInvoiceProfileCommand.d.ts +32 -0
- package/dist-types/commands/CreateInvoiceUnitCommand.d.ts +30 -0
- package/dist-types/commands/DeleteInvoiceUnitCommand.d.ts +16 -0
- package/dist-types/commands/GetInvoiceUnitCommand.d.ts +53 -0
- package/dist-types/commands/ListInvoiceUnitsCommand.d.ts +138 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +21 -0
- package/dist-types/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +14 -0
- package/dist-types/commands/UpdateInvoiceUnitCommand.d.ts +41 -0
- package/package.json +1 -1
|
@@ -95,6 +95,38 @@ declare const BatchGetInvoiceProfileCommand_base: {
|
|
|
95
95
|
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
96
96
|
*
|
|
97
97
|
* @public
|
|
98
|
+
* @example BatchGetInvoiceProfile
|
|
99
|
+
* ```javascript
|
|
100
|
+
* //
|
|
101
|
+
* const input = {
|
|
102
|
+
* "AccountIds": [
|
|
103
|
+
* "111111111111"
|
|
104
|
+
* ]
|
|
105
|
+
* };
|
|
106
|
+
* const command = new BatchGetInvoiceProfileCommand(input);
|
|
107
|
+
* const response = await client.send(command);
|
|
108
|
+
* /* response ==
|
|
109
|
+
* {
|
|
110
|
+
* "Profiles": [
|
|
111
|
+
* {
|
|
112
|
+
* "AccountId": "111111111111",
|
|
113
|
+
* "Issuer": "Test",
|
|
114
|
+
* "ReceiverAddress": {
|
|
115
|
+
* "AddressLine1": "Test",
|
|
116
|
+
* "City": "Test",
|
|
117
|
+
* "CountryCode": "LU",
|
|
118
|
+
* "PostalCode": "Test",
|
|
119
|
+
* "StateOrRegion": "Test"
|
|
120
|
+
* },
|
|
121
|
+
* "ReceiverEmail": "test@amazon.com",
|
|
122
|
+
* "ReceiverName": "TestAccount"
|
|
123
|
+
* }
|
|
124
|
+
* ]
|
|
125
|
+
* }
|
|
126
|
+
* *\/
|
|
127
|
+
* // example id: example-1
|
|
128
|
+
* ```
|
|
129
|
+
*
|
|
98
130
|
*/
|
|
99
131
|
export declare class BatchGetInvoiceProfileCommand extends BatchGetInvoiceProfileCommand_base {
|
|
100
132
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -84,6 +84,36 @@ declare const CreateInvoiceUnitCommand_base: {
|
|
|
84
84
|
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
85
85
|
*
|
|
86
86
|
* @public
|
|
87
|
+
* @example CreateInvoiceUnit
|
|
88
|
+
* ```javascript
|
|
89
|
+
* //
|
|
90
|
+
* const input = {
|
|
91
|
+
* "Description": "Example Invoice Unit Description",
|
|
92
|
+
* "InvoiceReceiver": "111111111111",
|
|
93
|
+
* "Name": "Example Invoice Unit",
|
|
94
|
+
* "ResourceTags": [
|
|
95
|
+
* {
|
|
96
|
+
* "Key": "TagKey",
|
|
97
|
+
* "Value": "TagValue"
|
|
98
|
+
* }
|
|
99
|
+
* ],
|
|
100
|
+
* "Rule": {
|
|
101
|
+
* "LinkedAccounts": [
|
|
102
|
+
* "222222222222"
|
|
103
|
+
* ]
|
|
104
|
+
* },
|
|
105
|
+
* "TaxInheritanceDisabled": false
|
|
106
|
+
* };
|
|
107
|
+
* const command = new CreateInvoiceUnitCommand(input);
|
|
108
|
+
* const response = await client.send(command);
|
|
109
|
+
* /* response ==
|
|
110
|
+
* {
|
|
111
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
|
|
112
|
+
* }
|
|
113
|
+
* *\/
|
|
114
|
+
* // example id: example-1
|
|
115
|
+
* ```
|
|
116
|
+
*
|
|
87
117
|
*/
|
|
88
118
|
export declare class CreateInvoiceUnitCommand extends CreateInvoiceUnitCommand_base {
|
|
89
119
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -75,6 +75,22 @@ declare const DeleteInvoiceUnitCommand_base: {
|
|
|
75
75
|
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
76
76
|
*
|
|
77
77
|
* @public
|
|
78
|
+
* @example DeleteInvoiceUnit
|
|
79
|
+
* ```javascript
|
|
80
|
+
* //
|
|
81
|
+
* const input = {
|
|
82
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
|
|
83
|
+
* };
|
|
84
|
+
* const command = new DeleteInvoiceUnitCommand(input);
|
|
85
|
+
* const response = await client.send(command);
|
|
86
|
+
* /* response ==
|
|
87
|
+
* {
|
|
88
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
|
|
89
|
+
* }
|
|
90
|
+
* *\/
|
|
91
|
+
* // example id: example-1
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
78
94
|
*/
|
|
79
95
|
export declare class DeleteInvoiceUnitCommand extends DeleteInvoiceUnitCommand_base {
|
|
80
96
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -85,6 +85,59 @@ declare const GetInvoiceUnitCommand_base: {
|
|
|
85
85
|
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
86
86
|
*
|
|
87
87
|
* @public
|
|
88
|
+
* @example GetInvoiceUnit as of current time
|
|
89
|
+
* ```javascript
|
|
90
|
+
* //
|
|
91
|
+
* const input = {
|
|
92
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
|
|
93
|
+
* };
|
|
94
|
+
* const command = new GetInvoiceUnitCommand(input);
|
|
95
|
+
* const response = await client.send(command);
|
|
96
|
+
* /* response ==
|
|
97
|
+
* {
|
|
98
|
+
* "Description": "Description changed on 1733788800",
|
|
99
|
+
* "InvoiceReceiver": "111111111111",
|
|
100
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
|
|
101
|
+
* "LastModified": 1733788800,
|
|
102
|
+
* "Name": "Example Invoice Unit A",
|
|
103
|
+
* "Rule": {
|
|
104
|
+
* "LinkedAccounts": [
|
|
105
|
+
* "222222222222"
|
|
106
|
+
* ]
|
|
107
|
+
* },
|
|
108
|
+
* "TaxInheritanceDisabled": false
|
|
109
|
+
* }
|
|
110
|
+
* *\/
|
|
111
|
+
* // example id: example-1
|
|
112
|
+
* ```
|
|
113
|
+
*
|
|
114
|
+
* @example GetInvoiceUnit as of specified time
|
|
115
|
+
* ```javascript
|
|
116
|
+
* //
|
|
117
|
+
* const input = {
|
|
118
|
+
* "AsOf": 1733097600,
|
|
119
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/87654321"
|
|
120
|
+
* };
|
|
121
|
+
* const command = new GetInvoiceUnitCommand(input);
|
|
122
|
+
* const response = await client.send(command);
|
|
123
|
+
* /* response ==
|
|
124
|
+
* {
|
|
125
|
+
* "Description": "Description changed on 1733011200",
|
|
126
|
+
* "InvoiceReceiver": "333333333333",
|
|
127
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/87654321",
|
|
128
|
+
* "LastModified": 1733011200,
|
|
129
|
+
* "Name": "Example Invoice Unit B",
|
|
130
|
+
* "Rule": {
|
|
131
|
+
* "LinkedAccounts": [
|
|
132
|
+
* "333333333333"
|
|
133
|
+
* ]
|
|
134
|
+
* },
|
|
135
|
+
* "TaxInheritanceDisabled": false
|
|
136
|
+
* }
|
|
137
|
+
* *\/
|
|
138
|
+
* // example id: example-2
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
88
141
|
*/
|
|
89
142
|
export declare class GetInvoiceUnitCommand extends GetInvoiceUnitCommand_base {
|
|
90
143
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -98,6 +98,144 @@ declare const ListInvoiceUnitsCommand_base: {
|
|
|
98
98
|
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
99
99
|
*
|
|
100
100
|
* @public
|
|
101
|
+
* @example ListInvoiceUnits without filters as of current time
|
|
102
|
+
* ```javascript
|
|
103
|
+
* //
|
|
104
|
+
* const input = {};
|
|
105
|
+
* const command = new ListInvoiceUnitsCommand(input);
|
|
106
|
+
* const response = await client.send(command);
|
|
107
|
+
* /* response ==
|
|
108
|
+
* {
|
|
109
|
+
* "InvoiceUnits": [
|
|
110
|
+
* {
|
|
111
|
+
* "Description": "Description changed on 1733788800",
|
|
112
|
+
* "InvoiceReceiver": "111111111111",
|
|
113
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
|
|
114
|
+
* "LastModified": 1733788800,
|
|
115
|
+
* "Name": "Example Invoice Unit A",
|
|
116
|
+
* "Rule": {
|
|
117
|
+
* "LinkedAccounts": [
|
|
118
|
+
* "222222222222"
|
|
119
|
+
* ]
|
|
120
|
+
* },
|
|
121
|
+
* "TaxInheritanceDisabled": false
|
|
122
|
+
* },
|
|
123
|
+
* {
|
|
124
|
+
* "Description": "Description changed on 1733788800",
|
|
125
|
+
* "InvoiceReceiver": "333333333333",
|
|
126
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/87654321",
|
|
127
|
+
* "LastModified": 1733788800,
|
|
128
|
+
* "Name": "Example Invoice Unit B",
|
|
129
|
+
* "Rule": {
|
|
130
|
+
* "LinkedAccounts": [
|
|
131
|
+
* "333333333333"
|
|
132
|
+
* ]
|
|
133
|
+
* },
|
|
134
|
+
* "TaxInheritanceDisabled": true
|
|
135
|
+
* }
|
|
136
|
+
* ]
|
|
137
|
+
* }
|
|
138
|
+
* *\/
|
|
139
|
+
* // example id: example-1
|
|
140
|
+
* ```
|
|
141
|
+
*
|
|
142
|
+
* @example ListInvoiceUnits with filters as of specified time
|
|
143
|
+
* ```javascript
|
|
144
|
+
* //
|
|
145
|
+
* const input = {
|
|
146
|
+
* "AsOf": 1733097600,
|
|
147
|
+
* "Filters": {
|
|
148
|
+
* "InvoiceReceivers": [
|
|
149
|
+
* "333333333333"
|
|
150
|
+
* ]
|
|
151
|
+
* }
|
|
152
|
+
* };
|
|
153
|
+
* const command = new ListInvoiceUnitsCommand(input);
|
|
154
|
+
* const response = await client.send(command);
|
|
155
|
+
* /* response ==
|
|
156
|
+
* {
|
|
157
|
+
* "InvoiceUnits": [
|
|
158
|
+
* {
|
|
159
|
+
* "Description": "Description changed on 1733011200",
|
|
160
|
+
* "InvoiceReceiver": "333333333333",
|
|
161
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/87654321",
|
|
162
|
+
* "LastModified": 1733011200,
|
|
163
|
+
* "Name": "Example Invoice Unit B",
|
|
164
|
+
* "Rule": {
|
|
165
|
+
* "LinkedAccounts": [
|
|
166
|
+
* "333333333333"
|
|
167
|
+
* ]
|
|
168
|
+
* },
|
|
169
|
+
* "TaxInheritanceDisabled": false
|
|
170
|
+
* }
|
|
171
|
+
* ]
|
|
172
|
+
* }
|
|
173
|
+
* *\/
|
|
174
|
+
* // example id: example-2
|
|
175
|
+
* ```
|
|
176
|
+
*
|
|
177
|
+
* @example ListInvoiceUnits with pagination - first page
|
|
178
|
+
* ```javascript
|
|
179
|
+
* //
|
|
180
|
+
* const input = {
|
|
181
|
+
* "MaxResults": 1
|
|
182
|
+
* };
|
|
183
|
+
* const command = new ListInvoiceUnitsCommand(input);
|
|
184
|
+
* const response = await client.send(command);
|
|
185
|
+
* /* response ==
|
|
186
|
+
* {
|
|
187
|
+
* "InvoiceUnits": [
|
|
188
|
+
* {
|
|
189
|
+
* "Description": "Description changed on 1733788800",
|
|
190
|
+
* "InvoiceReceiver": "111111111111",
|
|
191
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
|
|
192
|
+
* "LastModified": 1733788800,
|
|
193
|
+
* "Name": "Example Invoice Unit A",
|
|
194
|
+
* "Rule": {
|
|
195
|
+
* "LinkedAccounts": [
|
|
196
|
+
* "222222222222"
|
|
197
|
+
* ]
|
|
198
|
+
* },
|
|
199
|
+
* "TaxInheritanceDisabled": false
|
|
200
|
+
* }
|
|
201
|
+
* ],
|
|
202
|
+
* "NextToken": "nextTokenExample"
|
|
203
|
+
* }
|
|
204
|
+
* *\/
|
|
205
|
+
* // example id: example-3
|
|
206
|
+
* ```
|
|
207
|
+
*
|
|
208
|
+
* @example ListInvoiceUnits with pagination - second page
|
|
209
|
+
* ```javascript
|
|
210
|
+
* //
|
|
211
|
+
* const input = {
|
|
212
|
+
* "MaxResults": 1,
|
|
213
|
+
* "NextToken": "nextTokenExample"
|
|
214
|
+
* };
|
|
215
|
+
* const command = new ListInvoiceUnitsCommand(input);
|
|
216
|
+
* const response = await client.send(command);
|
|
217
|
+
* /* response ==
|
|
218
|
+
* {
|
|
219
|
+
* "InvoiceUnits": [
|
|
220
|
+
* {
|
|
221
|
+
* "Description": "Description changed on 1733788800",
|
|
222
|
+
* "InvoiceReceiver": "333333333333",
|
|
223
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/87654321",
|
|
224
|
+
* "LastModified": 1733788800,
|
|
225
|
+
* "Name": "Example Invoice Unit B",
|
|
226
|
+
* "Rule": {
|
|
227
|
+
* "LinkedAccounts": [
|
|
228
|
+
* "333333333333"
|
|
229
|
+
* ]
|
|
230
|
+
* },
|
|
231
|
+
* "TaxInheritanceDisabled": true
|
|
232
|
+
* }
|
|
233
|
+
* ]
|
|
234
|
+
* }
|
|
235
|
+
* *\/
|
|
236
|
+
* // example id: example-4
|
|
237
|
+
* ```
|
|
238
|
+
*
|
|
101
239
|
*/
|
|
102
240
|
export declare class ListInvoiceUnitsCommand extends ListInvoiceUnitsCommand_base {
|
|
103
241
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -80,6 +80,27 @@ declare const ListTagsForResourceCommand_base: {
|
|
|
80
80
|
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
81
81
|
*
|
|
82
82
|
* @public
|
|
83
|
+
* @example ListTagsForResource
|
|
84
|
+
* ```javascript
|
|
85
|
+
* //
|
|
86
|
+
* const input = {
|
|
87
|
+
* "ResourceArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
|
|
88
|
+
* };
|
|
89
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
90
|
+
* const response = await client.send(command);
|
|
91
|
+
* /* response ==
|
|
92
|
+
* {
|
|
93
|
+
* "ResourceTags": [
|
|
94
|
+
* {
|
|
95
|
+
* "Key": "TagKey",
|
|
96
|
+
* "Value": "TagValue"
|
|
97
|
+
* }
|
|
98
|
+
* ]
|
|
99
|
+
* }
|
|
100
|
+
* *\/
|
|
101
|
+
* // example id: example-1
|
|
102
|
+
* ```
|
|
103
|
+
*
|
|
83
104
|
*/
|
|
84
105
|
export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
|
|
85
106
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -83,6 +83,23 @@ declare const TagResourceCommand_base: {
|
|
|
83
83
|
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
84
84
|
*
|
|
85
85
|
* @public
|
|
86
|
+
* @example TagResource
|
|
87
|
+
* ```javascript
|
|
88
|
+
* //
|
|
89
|
+
* const input = {
|
|
90
|
+
* "ResourceArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
|
|
91
|
+
* "ResourceTags": [
|
|
92
|
+
* {
|
|
93
|
+
* "Key": "TagKey",
|
|
94
|
+
* "Value": "TagValue"
|
|
95
|
+
* }
|
|
96
|
+
* ]
|
|
97
|
+
* };
|
|
98
|
+
* const command = new TagResourceCommand(input);
|
|
99
|
+
* await client.send(command);
|
|
100
|
+
* // example id: example-1
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
86
103
|
*/
|
|
87
104
|
export declare class TagResourceCommand extends TagResourceCommand_base {
|
|
88
105
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -77,6 +77,20 @@ declare const UntagResourceCommand_base: {
|
|
|
77
77
|
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
78
78
|
*
|
|
79
79
|
* @public
|
|
80
|
+
* @example UntagResource
|
|
81
|
+
* ```javascript
|
|
82
|
+
* //
|
|
83
|
+
* const input = {
|
|
84
|
+
* "ResourceArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
|
|
85
|
+
* "ResourceTagKeys": [
|
|
86
|
+
* "TagKey"
|
|
87
|
+
* ]
|
|
88
|
+
* };
|
|
89
|
+
* const command = new UntagResourceCommand(input);
|
|
90
|
+
* await client.send(command);
|
|
91
|
+
* // example id: example-1
|
|
92
|
+
* ```
|
|
93
|
+
*
|
|
80
94
|
*/
|
|
81
95
|
export declare class UntagResourceCommand extends UntagResourceCommand_base {
|
|
82
96
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -81,6 +81,47 @@ declare const UpdateInvoiceUnitCommand_base: {
|
|
|
81
81
|
* <p>Base exception class for all service exceptions from Invoicing service.</p>
|
|
82
82
|
*
|
|
83
83
|
* @public
|
|
84
|
+
* @example UpdateInvoiceUnit with all updatable fields
|
|
85
|
+
* ```javascript
|
|
86
|
+
* //
|
|
87
|
+
* const input = {
|
|
88
|
+
* "Description": "Updated IU description",
|
|
89
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678",
|
|
90
|
+
* "Rule": {
|
|
91
|
+
* "LinkedAccounts": [
|
|
92
|
+
* "111111111111",
|
|
93
|
+
* "222222222222"
|
|
94
|
+
* ]
|
|
95
|
+
* },
|
|
96
|
+
* "TaxInheritanceDisabled": false
|
|
97
|
+
* };
|
|
98
|
+
* const command = new UpdateInvoiceUnitCommand(input);
|
|
99
|
+
* const response = await client.send(command);
|
|
100
|
+
* /* response ==
|
|
101
|
+
* {
|
|
102
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
|
|
103
|
+
* }
|
|
104
|
+
* *\/
|
|
105
|
+
* // example id: example-1
|
|
106
|
+
* ```
|
|
107
|
+
*
|
|
108
|
+
* @example UpdateInvoiceUnit with specific fields
|
|
109
|
+
* ```javascript
|
|
110
|
+
* //
|
|
111
|
+
* const input = {
|
|
112
|
+
* "Description": "Updated IU description. All other fields remain unchanged",
|
|
113
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
|
|
114
|
+
* };
|
|
115
|
+
* const command = new UpdateInvoiceUnitCommand(input);
|
|
116
|
+
* const response = await client.send(command);
|
|
117
|
+
* /* response ==
|
|
118
|
+
* {
|
|
119
|
+
* "InvoiceUnitArn": "arn:aws:invoicing::000000000000:invoice-unit/12345678"
|
|
120
|
+
* }
|
|
121
|
+
* *\/
|
|
122
|
+
* // example id: example-2
|
|
123
|
+
* ```
|
|
124
|
+
*
|
|
84
125
|
*/
|
|
85
126
|
export declare class UpdateInvoiceUnitCommand extends UpdateInvoiceUnitCommand_base {
|
|
86
127
|
/** @internal type navigation helper, not in runtime. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-invoicing",
|
|
3
3
|
"description": "AWS SDK for JavaScript Invoicing Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.704.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|