Skip to content

Commit 2e49349

Browse files
author
awstools
committed
feat(client-invoicing): Add support for adding Billing transfers in Invoice configuration
1 parent cee2e72 commit 2e49349

File tree

7 files changed

+61
-7
lines changed

7 files changed

+61
-7
lines changed

clients/client-invoicing/src/commands/CreateInvoiceUnitCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ export interface CreateInvoiceUnitCommandOutput extends CreateInvoiceUnitRespons
4242
* Description: "STRING_VALUE",
4343
* TaxInheritanceDisabled: true || false,
4444
* Rule: { // InvoiceUnitRule
45-
* LinkedAccounts: [ // AccountIdList
45+
* LinkedAccounts: [ // RuleAccountIdList
46+
* "STRING_VALUE",
47+
* ],
48+
* BillSourceAccounts: [
4649
* "STRING_VALUE",
4750
* ],
4851
* },

clients/client-invoicing/src/commands/GetInvoiceUnitCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ export interface GetInvoiceUnitCommandOutput extends GetInvoiceUnitResponse, __M
4949
* // Description: "STRING_VALUE",
5050
* // TaxInheritanceDisabled: true || false,
5151
* // Rule: { // InvoiceUnitRule
52-
* // LinkedAccounts: [ // AccountIdList
52+
* // LinkedAccounts: [ // RuleAccountIdList
53+
* // "STRING_VALUE",
54+
* // ],
55+
* // BillSourceAccounts: [
5356
* // "STRING_VALUE",
5457
* // ],
5558
* // },

clients/client-invoicing/src/commands/ListInvoiceUnitsCommand.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ export interface ListInvoiceUnitsCommandOutput extends ListInvoiceUnitsResponse,
4747
* Accounts: [
4848
* "STRING_VALUE",
4949
* ],
50+
* BillSourceAccounts: [
51+
* "STRING_VALUE",
52+
* ],
5053
* },
5154
* NextToken: "STRING_VALUE",
5255
* MaxResults: Number("int"),
@@ -63,7 +66,10 @@ export interface ListInvoiceUnitsCommandOutput extends ListInvoiceUnitsResponse,
6366
* // Description: "STRING_VALUE",
6467
* // TaxInheritanceDisabled: true || false,
6568
* // Rule: { // InvoiceUnitRule
66-
* // LinkedAccounts: [ // AccountIdList
69+
* // LinkedAccounts: [ // RuleAccountIdList
70+
* // "STRING_VALUE",
71+
* // ],
72+
* // BillSourceAccounts: [
6773
* // "STRING_VALUE",
6874
* // ],
6975
* // },

clients/client-invoicing/src/commands/UpdateInvoiceUnitCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ export interface UpdateInvoiceUnitCommandOutput extends UpdateInvoiceUnitRespons
4141
* Description: "STRING_VALUE",
4242
* TaxInheritanceDisabled: true || false,
4343
* Rule: { // InvoiceUnitRule
44-
* LinkedAccounts: [ // AccountIdList
44+
* LinkedAccounts: [ // RuleAccountIdList
45+
* "STRING_VALUE",
46+
* ],
47+
* BillSourceAccounts: [
4548
* "STRING_VALUE",
4649
* ],
4750
* },

clients/client-invoicing/src/models/models_0.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,12 @@ export interface InvoiceUnitRule {
345345
* @public
346346
*/
347347
LinkedAccounts?: string[] | undefined;
348+
349+
/**
350+
* <p> A list of Amazon Web Services account account IDs that have delegated their billing responsibility to the receiver account through transfer billing. Unlike linked accounts, these bill source accounts can be payer accounts from other organizations that have authorized billing transfer to this account. </p>
351+
* @public
352+
*/
353+
BillSourceAccounts?: string[] | undefined;
348354
}
349355

350356
/**
@@ -497,6 +503,12 @@ export interface Filters {
497503
* @public
498504
*/
499505
Accounts?: string[] | undefined;
506+
507+
/**
508+
* <p> A list of Amazon Web Services account account IDs used to filter invoice units. These are payer accounts from other Organizations that have delegated their billing responsibility to the receiver account through the billing transfer feature. </p>
509+
* @public
510+
*/
511+
BillSourceAccounts?: string[] | undefined;
500512
}
501513

502514
/**

clients/client-invoicing/src/schemas/schemas_0.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const _BGIP = "BatchGetInvoiceProfile";
1414
const _BGIPR = "BatchGetInvoiceProfileRequest";
1515
const _BGIPRa = "BatchGetInvoiceProfileResponse";
1616
const _BP = "BillingPeriod";
17+
const _BSA = "BillSourceAccounts";
1718
const _C = "City";
1819
const _CC = "CurrencyCode";
1920
const _CCo = "CountryCode";
@@ -227,7 +228,7 @@ export var DiscountsBreakdownAmount: StaticStructureSchema = [3, n0, _DBA, 0, [_
227228
export var Entity: StaticStructureSchema = [3, n0, _E, 0, [_IE], [0]];
228229
export var FeesBreakdown: StaticStructureSchema = [3, n0, _FB, 0, [_B, _TA], [() => FeesBreakdownAmountList, 0]];
229230
export var FeesBreakdownAmount: StaticStructureSchema = [3, n0, _FBA, 0, [_De, _A, _Ra], [0, 0, 0]];
230-
export var Filters: StaticStructureSchema = [3, n0, _Fi, 0, [_Na, _IRn, _Ac], [64 | 0, 64 | 0, 64 | 0]];
231+
export var Filters: StaticStructureSchema = [3, n0, _Fi, 0, [_Na, _IRn, _Ac, _BSA], [64 | 0, 64 | 0, 64 | 0, 64 | 0]];
231232
export var GetInvoicePDFRequest: StaticStructureSchema = [3, n0, _GIPDFR, 0, [_II], [0]];
232233
export var GetInvoicePDFResponse: StaticStructureSchema = [3, n0, _GIPDFRe, 0, [_IPDF], [() => InvoicePDF]];
233234
export var GetInvoiceUnitRequest: StaticStructureSchema = [3, n0, _GIUR, 0, [_IUA, _AO], [0, 4]];
@@ -330,7 +331,7 @@ export var InvoiceUnit: StaticStructureSchema = [
330331
[_IUA, _IR, _N, _De, _TID, _R, _LM],
331332
[0, 0, 0, 0, 2, () => InvoiceUnitRule, 4],
332333
];
333-
export var InvoiceUnitRule: StaticStructureSchema = [3, n0, _IUR, 0, [_LA], [64 | 0]];
334+
export var InvoiceUnitRule: StaticStructureSchema = [3, n0, _IUR, 0, [_LA, _BSA], [64 | 0, 64 | 0]];
334335
export var ListInvoiceSummariesRequest: StaticStructureSchema = [
335336
3,
336337
n0,
@@ -457,6 +458,8 @@ export var ProfileList: StaticListSchema = [1, n0, _PL, 0, [() => InvoiceProfile
457458
export var ResourceTagKeyList = 64 | 0;
458459

459460
export var ResourceTagList: StaticListSchema = [1, n0, _RTL, 0, () => ResourceTag];
461+
export var RuleAccountIdList = 64 | 0;
462+
460463
export var SupplementalDocuments: StaticListSchema = [1, n0, _SDu, 0, () => SupplementalDocument];
461464
export var TaxesBreakdownAmountList: StaticListSchema = [1, n0, _TBAL, 0, () => TaxesBreakdownAmount];
462465
export var ValidationExceptionFieldList: StaticListSchema = [1, n0, _VEFL, 0, () => ValidationExceptionField];

codegen/sdk-codegen/aws-models/invoicing.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,12 @@
588588
"traits": {
589589
"smithy.api#documentation": "<p> You can specify a list of Amazon Web Services account IDs inside filters to return invoice units that match only the specified accounts. If multiple accounts are provided, the result is an <code>OR</code> condition (match any) of the specified accounts. The specified account IDs are matched with either the receiver or the linked accounts in the rules. </p>"
590590
}
591+
},
592+
"BillSourceAccounts": {
593+
"target": "com.amazonaws.invoicing#AccountIdList",
594+
"traits": {
595+
"smithy.api#documentation": "<p> A list of Amazon Web Services account account IDs used to filter invoice units. These are payer accounts from other Organizations that have delegated their billing responsibility to the receiver account through the billing transfer feature. </p>"
596+
}
591597
}
592598
},
593599
"traits": {
@@ -1203,10 +1209,16 @@
12031209
"type": "structure",
12041210
"members": {
12051211
"LinkedAccounts": {
1206-
"target": "com.amazonaws.invoicing#AccountIdList",
1212+
"target": "com.amazonaws.invoicing#RuleAccountIdList",
12071213
"traits": {
12081214
"smithy.api#documentation": "<p>The list of <code>LINKED_ACCOUNT</code> IDs where charges are included within the invoice unit. </p>"
12091215
}
1216+
},
1217+
"BillSourceAccounts": {
1218+
"target": "com.amazonaws.invoicing#RuleAccountIdList",
1219+
"traits": {
1220+
"smithy.api#documentation": "<p> A list of Amazon Web Services account account IDs that have delegated their billing responsibility to the receiver account through transfer billing. Unlike linked accounts, these bill source accounts can be payer accounts from other organizations that have authorized billing transfer to this account. </p>"
1221+
}
12101222
}
12111223
},
12121224
"traits": {
@@ -2642,6 +2654,18 @@
26422654
}
26432655
}
26442656
},
2657+
"com.amazonaws.invoicing#RuleAccountIdList": {
2658+
"type": "list",
2659+
"member": {
2660+
"target": "com.amazonaws.invoicing#AccountIdString"
2661+
},
2662+
"traits": {
2663+
"smithy.api#length": {
2664+
"min": 0,
2665+
"max": 1000
2666+
}
2667+
}
2668+
},
26452669
"com.amazonaws.invoicing#SensitiveBasicStringWithoutSpace": {
26462670
"type": "string",
26472671
"traits": {

0 commit comments

Comments
 (0)