Skip to content

Commit 8d4230e

Browse files
This release adds support for line item filtering in for the custom line item resource.
1 parent 901a6f9 commit 8d4230e

14 files changed

+862
-237
lines changed

generator/ServiceModels/billingconductor/billingconductor-2021-07-30.api.json

Lines changed: 43 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,8 @@
10491049
"members":{
10501050
"Flat":{"shape":"CustomLineItemFlatChargeDetails"},
10511051
"Percentage":{"shape":"CustomLineItemPercentageChargeDetails"},
1052-
"Type":{"shape":"CustomLineItemType"}
1052+
"Type":{"shape":"CustomLineItemType"},
1053+
"LineItemFilters":{"shape":"LineItemFiltersList"}
10531054
}
10541055
},
10551056
"CustomLineItemChargeValue":{
@@ -1279,6 +1280,39 @@
12791280
"exception":true,
12801281
"fault":true
12811282
},
1283+
"LineItemFilter":{
1284+
"type":"structure",
1285+
"required":[
1286+
"Attribute",
1287+
"MatchOption",
1288+
"Values"
1289+
],
1290+
"members":{
1291+
"Attribute":{"shape":"LineItemFilterAttributeName"},
1292+
"MatchOption":{"shape":"MatchOption"},
1293+
"Values":{"shape":"LineItemFilterValuesList"}
1294+
}
1295+
},
1296+
"LineItemFilterAttributeName":{
1297+
"type":"string",
1298+
"enum":["LINE_ITEM_TYPE"]
1299+
},
1300+
"LineItemFilterValue":{
1301+
"type":"string",
1302+
"enum":["SAVINGS_PLAN_NEGATION"]
1303+
},
1304+
"LineItemFilterValuesList":{
1305+
"type":"list",
1306+
"member":{"shape":"LineItemFilterValue"},
1307+
"max":1,
1308+
"min":1
1309+
},
1310+
"LineItemFiltersList":{
1311+
"type":"list",
1312+
"member":{"shape":"LineItemFilter"},
1313+
"max":1,
1314+
"min":0
1315+
},
12821316
"ListAccountAssociationsFilter":{
12831317
"type":"structure",
12841318
"members":{
@@ -1361,7 +1395,8 @@
13611395
"members":{
13621396
"Flat":{"shape":"ListCustomLineItemFlatChargeDetails"},
13631397
"Percentage":{"shape":"ListCustomLineItemPercentageChargeDetails"},
1364-
"Type":{"shape":"CustomLineItemType"}
1398+
"Type":{"shape":"CustomLineItemType"},
1399+
"LineItemFilters":{"shape":"LineItemFiltersList"}
13651400
}
13661401
},
13671402
"ListCustomLineItemFlatChargeDetails":{
@@ -1572,6 +1607,10 @@
15721607
},
15731608
"Margin":{"type":"string"},
15741609
"MarginPercentage":{"type":"string"},
1610+
"MatchOption":{
1611+
"type":"string",
1612+
"enum":["NOT_EQUAL"]
1613+
},
15751614
"MaxBillingGroupResults":{
15761615
"type":"integer",
15771616
"box":true,
@@ -1920,7 +1959,8 @@
19201959
"type":"structure",
19211960
"members":{
19221961
"Flat":{"shape":"UpdateCustomLineItemFlatChargeDetails"},
1923-
"Percentage":{"shape":"UpdateCustomLineItemPercentageChargeDetails"}
1962+
"Percentage":{"shape":"UpdateCustomLineItemPercentageChargeDetails"},
1963+
"LineItemFilters":{"shape":"LineItemFiltersList"}
19241964
}
19251965
},
19261966
"UpdateCustomLineItemFlatChargeDetails":{

generator/ServiceModels/billingconductor/billingconductor-2021-07-30.docs.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,38 @@
689689
"refs": {
690690
}
691691
},
692+
"LineItemFilter": {
693+
"base": "<p>A representation of the line item filter for your custom line item. You can use line item filters to include or exclude specific resource values from the billing group's total cost. For example, if you create a custom line item and you want to filter out a value, such as Savings Plan discounts, you can update <code>LineItemFilter</code> to exclude it.</p>",
694+
"refs": {
695+
"LineItemFiltersList$member": null
696+
}
697+
},
698+
"LineItemFilterAttributeName": {
699+
"base": null,
700+
"refs": {
701+
"LineItemFilter$Attribute": "<p>The attribute of the line item filter. This specifies what attribute that you can filter on.</p>"
702+
}
703+
},
704+
"LineItemFilterValue": {
705+
"base": null,
706+
"refs": {
707+
"LineItemFilterValuesList$member": null
708+
}
709+
},
710+
"LineItemFilterValuesList": {
711+
"base": null,
712+
"refs": {
713+
"LineItemFilter$Values": "<p>The values of the line item filter. This specifies the values to filter on. Currently, you can only exclude Savings Plan discounts.</p>"
714+
}
715+
},
716+
"LineItemFiltersList": {
717+
"base": null,
718+
"refs": {
719+
"CustomLineItemChargeDetails$LineItemFilters": "<p>A representation of the line item filter.</p>",
720+
"ListCustomLineItemChargeDetails$LineItemFilters": "<p>A representation of the line item filter.</p>",
721+
"UpdateCustomLineItemChargeDetails$LineItemFilters": "<p>A representation of the line item filter.</p>"
722+
}
723+
},
692724
"ListAccountAssociationsFilter": {
693725
"base": "<p>The filter on the account ID of the linked account, or any of the following:</p> <p> <code>MONITORED</code>: linked accounts that are associated to billing groups.</p> <p> <code>UNMONITORED</code>: linked accounts that are not associated to billing groups.</p> <p> <code>Billing Group Arn</code>: linked accounts that are associated to the provided Billing Group Arn.</p>",
694726
"refs": {
@@ -903,6 +935,12 @@
903935
"BillingGroupCostReportElement$MarginPercentage": "<p>The percentage of billing group margin.</p>"
904936
}
905937
},
938+
"MatchOption": {
939+
"base": null,
940+
"refs": {
941+
"LineItemFilter$MatchOption": "<p>The match criteria of the line item filter. This parameter specifies whether not to include the resource value from the billing group total cost.</p>"
942+
}
943+
},
906944
"MaxBillingGroupResults": {
907945
"base": null,
908946
"refs": {

0 commit comments

Comments
 (0)