@aws-sdk/client-billingconductor 3.211.0 → 3.213.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.
@@ -118,6 +118,7 @@ var ValidationExceptionReason;
118
118
  ValidationExceptionReason["DUPLICATE_PRICINGRULE_ARNS"] = "DUPLICATE_PRICINGRULE_ARNS";
119
119
  ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
120
120
  ValidationExceptionReason["ILLEGAL_ACCOUNTS"] = "ILLEGAL_ACCOUNTS";
121
+ ValidationExceptionReason["ILLEGAL_BILLING_ENTITY"] = "ILLEGAL_BILLING_ENTITY";
121
122
  ValidationExceptionReason["ILLEGAL_BILLING_PERIOD"] = "ILLEGAL_BILLING_PERIOD";
122
123
  ValidationExceptionReason["ILLEGAL_BILLING_PERIOD_RANGE"] = "ILLEGAL_BILLING_PERIOD_RANGE";
123
124
  ValidationExceptionReason["ILLEGAL_CHARGE_DETAILS"] = "ILLEGAL_CHARGE_DETAILS";
@@ -126,6 +127,7 @@ var ValidationExceptionReason;
126
127
  ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM_MODIFICATION"] = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION";
127
128
  ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM_UPDATE"] = "ILLEGAL_CUSTOMLINEITEM_UPDATE";
128
129
  ValidationExceptionReason["ILLEGAL_EXPRESSION"] = "ILLEGAL_EXPRESSION";
130
+ ValidationExceptionReason["ILLEGAL_MODIFIER_PERCENTAGE"] = "ILLEGAL_MODIFIER_PERCENTAGE";
129
131
  ValidationExceptionReason["ILLEGAL_PRIMARY_ACCOUNT"] = "ILLEGAL_PRIMARY_ACCOUNT";
130
132
  ValidationExceptionReason["ILLEGAL_RESOURCE_ARNS"] = "ILLEGAL_RESOURCE_ARNS";
131
133
  ValidationExceptionReason["ILLEGAL_SCOPE"] = "ILLEGAL_SCOPE";
@@ -205,6 +207,7 @@ var CustomLineItemRelationship;
205
207
  })(CustomLineItemRelationship = exports.CustomLineItemRelationship || (exports.CustomLineItemRelationship = {}));
206
208
  var PricingRuleScope;
207
209
  (function (PricingRuleScope) {
210
+ PricingRuleScope["BILLING_ENTITY"] = "BILLING_ENTITY";
208
211
  PricingRuleScope["GLOBAL"] = "GLOBAL";
209
212
  PricingRuleScope["SERVICE"] = "SERVICE";
210
213
  })(PricingRuleScope = exports.PricingRuleScope || (exports.PricingRuleScope = {}));
@@ -206,6 +206,7 @@ const serializeAws_restJson1CreatePricingRuleCommand = async (input, context) =>
206
206
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-pricing-rule";
207
207
  let body;
208
208
  body = JSON.stringify({
209
+ ...(input.BillingEntity != null && { BillingEntity: input.BillingEntity }),
209
210
  ...(input.Description != null && { Description: input.Description }),
210
211
  ...(input.ModifierPercentage != null && { ModifierPercentage: (0, smithy_client_1.serializeFloat)(input.ModifierPercentage) }),
211
212
  ...(input.Name != null && { Name: input.Name }),
@@ -2308,6 +2309,9 @@ const deserializeAws_restJson1UpdatePricingRuleCommand = async (output, context)
2308
2309
  if (data.AssociatedPricingPlanCount != null) {
2309
2310
  contents.AssociatedPricingPlanCount = (0, smithy_client_1.expectLong)(data.AssociatedPricingPlanCount);
2310
2311
  }
2312
+ if (data.BillingEntity != null) {
2313
+ contents.BillingEntity = (0, smithy_client_1.expectString)(data.BillingEntity);
2314
+ }
2311
2315
  if (data.Description != null) {
2312
2316
  contents.Description = (0, smithy_client_1.expectString)(data.Description);
2313
2317
  }
@@ -2675,10 +2679,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
2675
2679
  if (value === null) {
2676
2680
  return acc;
2677
2681
  }
2678
- return {
2679
- ...acc,
2680
- [key]: value,
2681
- };
2682
+ acc[key] = value;
2683
+ return acc;
2682
2684
  }, {});
2683
2685
  };
2684
2686
  const serializeAws_restJson1UpdateCustomLineItemChargeDetails = (input, context) => {
@@ -2965,6 +2967,7 @@ const deserializeAws_restJson1PricingRuleListElement = (output, context) => {
2965
2967
  return {
2966
2968
  Arn: (0, smithy_client_1.expectString)(output.Arn),
2967
2969
  AssociatedPricingPlanCount: (0, smithy_client_1.expectLong)(output.AssociatedPricingPlanCount),
2970
+ BillingEntity: (0, smithy_client_1.expectString)(output.BillingEntity),
2968
2971
  CreationTime: (0, smithy_client_1.expectLong)(output.CreationTime),
2969
2972
  Description: (0, smithy_client_1.expectString)(output.Description),
2970
2973
  LastModifiedTime: (0, smithy_client_1.expectLong)(output.LastModifiedTime),
@@ -2980,10 +2983,8 @@ const deserializeAws_restJson1TagMap = (output, context) => {
2980
2983
  if (value === null) {
2981
2984
  return acc;
2982
2985
  }
2983
- return {
2984
- ...acc,
2985
- [key]: (0, smithy_client_1.expectString)(value),
2986
- };
2986
+ acc[key] = (0, smithy_client_1.expectString)(value);
2987
+ return acc;
2987
2988
  }, {});
2988
2989
  };
2989
2990
  const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
@@ -107,6 +107,7 @@ export var ValidationExceptionReason;
107
107
  ValidationExceptionReason["DUPLICATE_PRICINGRULE_ARNS"] = "DUPLICATE_PRICINGRULE_ARNS";
108
108
  ValidationExceptionReason["FIELD_VALIDATION_FAILED"] = "FIELD_VALIDATION_FAILED";
109
109
  ValidationExceptionReason["ILLEGAL_ACCOUNTS"] = "ILLEGAL_ACCOUNTS";
110
+ ValidationExceptionReason["ILLEGAL_BILLING_ENTITY"] = "ILLEGAL_BILLING_ENTITY";
110
111
  ValidationExceptionReason["ILLEGAL_BILLING_PERIOD"] = "ILLEGAL_BILLING_PERIOD";
111
112
  ValidationExceptionReason["ILLEGAL_BILLING_PERIOD_RANGE"] = "ILLEGAL_BILLING_PERIOD_RANGE";
112
113
  ValidationExceptionReason["ILLEGAL_CHARGE_DETAILS"] = "ILLEGAL_CHARGE_DETAILS";
@@ -115,6 +116,7 @@ export var ValidationExceptionReason;
115
116
  ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM_MODIFICATION"] = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION";
116
117
  ValidationExceptionReason["ILLEGAL_CUSTOMLINEITEM_UPDATE"] = "ILLEGAL_CUSTOMLINEITEM_UPDATE";
117
118
  ValidationExceptionReason["ILLEGAL_EXPRESSION"] = "ILLEGAL_EXPRESSION";
119
+ ValidationExceptionReason["ILLEGAL_MODIFIER_PERCENTAGE"] = "ILLEGAL_MODIFIER_PERCENTAGE";
118
120
  ValidationExceptionReason["ILLEGAL_PRIMARY_ACCOUNT"] = "ILLEGAL_PRIMARY_ACCOUNT";
119
121
  ValidationExceptionReason["ILLEGAL_RESOURCE_ARNS"] = "ILLEGAL_RESOURCE_ARNS";
120
122
  ValidationExceptionReason["ILLEGAL_SCOPE"] = "ILLEGAL_SCOPE";
@@ -193,6 +195,7 @@ export var CustomLineItemRelationship;
193
195
  })(CustomLineItemRelationship || (CustomLineItemRelationship = {}));
194
196
  export var PricingRuleScope;
195
197
  (function (PricingRuleScope) {
198
+ PricingRuleScope["BILLING_ENTITY"] = "BILLING_ENTITY";
196
199
  PricingRuleScope["GLOBAL"] = "GLOBAL";
197
200
  PricingRuleScope["SERVICE"] = "SERVICE";
198
201
  })(PricingRuleScope || (PricingRuleScope = {}));
@@ -195,6 +195,7 @@ export const serializeAws_restJson1CreatePricingRuleCommand = async (input, cont
195
195
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-pricing-rule";
196
196
  let body;
197
197
  body = JSON.stringify({
198
+ ...(input.BillingEntity != null && { BillingEntity: input.BillingEntity }),
198
199
  ...(input.Description != null && { Description: input.Description }),
199
200
  ...(input.ModifierPercentage != null && { ModifierPercentage: __serializeFloat(input.ModifierPercentage) }),
200
201
  ...(input.Name != null && { Name: input.Name }),
@@ -2243,6 +2244,9 @@ export const deserializeAws_restJson1UpdatePricingRuleCommand = async (output, c
2243
2244
  if (data.AssociatedPricingPlanCount != null) {
2244
2245
  contents.AssociatedPricingPlanCount = __expectLong(data.AssociatedPricingPlanCount);
2245
2246
  }
2247
+ if (data.BillingEntity != null) {
2248
+ contents.BillingEntity = __expectString(data.BillingEntity);
2249
+ }
2246
2250
  if (data.Description != null) {
2247
2251
  contents.Description = __expectString(data.Description);
2248
2252
  }
@@ -2609,10 +2613,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
2609
2613
  if (value === null) {
2610
2614
  return acc;
2611
2615
  }
2612
- return {
2613
- ...acc,
2614
- [key]: value,
2615
- };
2616
+ acc[key] = value;
2617
+ return acc;
2616
2618
  }, {});
2617
2619
  };
2618
2620
  const serializeAws_restJson1UpdateCustomLineItemChargeDetails = (input, context) => {
@@ -2899,6 +2901,7 @@ const deserializeAws_restJson1PricingRuleListElement = (output, context) => {
2899
2901
  return {
2900
2902
  Arn: __expectString(output.Arn),
2901
2903
  AssociatedPricingPlanCount: __expectLong(output.AssociatedPricingPlanCount),
2904
+ BillingEntity: __expectString(output.BillingEntity),
2902
2905
  CreationTime: __expectLong(output.CreationTime),
2903
2906
  Description: __expectString(output.Description),
2904
2907
  LastModifiedTime: __expectLong(output.LastModifiedTime),
@@ -2914,10 +2917,8 @@ const deserializeAws_restJson1TagMap = (output, context) => {
2914
2917
  if (value === null) {
2915
2918
  return acc;
2916
2919
  }
2917
- return {
2918
- ...acc,
2919
- [key]: __expectString(value),
2920
- };
2920
+ acc[key] = __expectString(value);
2921
+ return acc;
2921
2922
  }, {});
2922
2923
  };
2923
2924
  const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
@@ -225,6 +225,7 @@ export declare enum ValidationExceptionReason {
225
225
  DUPLICATE_PRICINGRULE_ARNS = "DUPLICATE_PRICINGRULE_ARNS",
226
226
  FIELD_VALIDATION_FAILED = "FIELD_VALIDATION_FAILED",
227
227
  ILLEGAL_ACCOUNTS = "ILLEGAL_ACCOUNTS",
228
+ ILLEGAL_BILLING_ENTITY = "ILLEGAL_BILLING_ENTITY",
228
229
  ILLEGAL_BILLING_PERIOD = "ILLEGAL_BILLING_PERIOD",
229
230
  ILLEGAL_BILLING_PERIOD_RANGE = "ILLEGAL_BILLING_PERIOD_RANGE",
230
231
  ILLEGAL_CHARGE_DETAILS = "ILLEGAL_CHARGE_DETAILS",
@@ -233,6 +234,7 @@ export declare enum ValidationExceptionReason {
233
234
  ILLEGAL_CUSTOMLINEITEM_MODIFICATION = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION",
234
235
  ILLEGAL_CUSTOMLINEITEM_UPDATE = "ILLEGAL_CUSTOMLINEITEM_UPDATE",
235
236
  ILLEGAL_EXPRESSION = "ILLEGAL_EXPRESSION",
237
+ ILLEGAL_MODIFIER_PERCENTAGE = "ILLEGAL_MODIFIER_PERCENTAGE",
236
238
  ILLEGAL_PRIMARY_ACCOUNT = "ILLEGAL_PRIMARY_ACCOUNT",
237
239
  ILLEGAL_RESOURCE_ARNS = "ILLEGAL_RESOURCE_ARNS",
238
240
  ILLEGAL_SCOPE = "ILLEGAL_SCOPE",
@@ -1750,6 +1752,7 @@ export interface UpdatePricingPlanOutput {
1750
1752
  LastModifiedTime?: number;
1751
1753
  }
1752
1754
  export declare enum PricingRuleScope {
1755
+ BILLING_ENTITY = "BILLING_ENTITY",
1753
1756
  GLOBAL = "GLOBAL",
1754
1757
  SERVICE = "SERVICE"
1755
1758
  }
@@ -1802,6 +1805,12 @@ export interface CreatePricingRuleInput {
1802
1805
  * </p>
1803
1806
  */
1804
1807
  Tags?: Record<string, string>;
1808
+ /**
1809
+ * <p>
1810
+ * The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
1811
+ * </p>
1812
+ */
1813
+ BillingEntity?: string;
1805
1814
  }
1806
1815
  export interface CreatePricingRuleOutput {
1807
1816
  /**
@@ -1919,6 +1928,12 @@ export interface PricingRuleListElement {
1919
1928
  * <p> The most recent time when the pricing rule was modified. </p>
1920
1929
  */
1921
1930
  LastModifiedTime?: number;
1931
+ /**
1932
+ * <p>
1933
+ * The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
1934
+ * </p>
1935
+ */
1936
+ BillingEntity?: string;
1922
1937
  }
1923
1938
  export interface ListPricingRulesOutput {
1924
1939
  /**
@@ -2070,6 +2085,12 @@ export interface UpdatePricingRuleOutput {
2070
2085
  * </p>
2071
2086
  */
2072
2087
  LastModifiedTime?: number;
2088
+ /**
2089
+ * <p>
2090
+ * The seller of services provided by Amazon Web Services, their affiliates, or third-party providers selling services via Amazon Web Services Marketplace.
2091
+ * </p>
2092
+ */
2093
+ BillingEntity?: string;
2073
2094
  }
2074
2095
  export interface TagResourceRequest {
2075
2096
  /**
@@ -93,6 +93,7 @@ export declare enum ValidationExceptionReason {
93
93
  DUPLICATE_PRICINGRULE_ARNS = "DUPLICATE_PRICINGRULE_ARNS",
94
94
  FIELD_VALIDATION_FAILED = "FIELD_VALIDATION_FAILED",
95
95
  ILLEGAL_ACCOUNTS = "ILLEGAL_ACCOUNTS",
96
+ ILLEGAL_BILLING_ENTITY = "ILLEGAL_BILLING_ENTITY",
96
97
  ILLEGAL_BILLING_PERIOD = "ILLEGAL_BILLING_PERIOD",
97
98
  ILLEGAL_BILLING_PERIOD_RANGE = "ILLEGAL_BILLING_PERIOD_RANGE",
98
99
  ILLEGAL_CHARGE_DETAILS = "ILLEGAL_CHARGE_DETAILS",
@@ -101,6 +102,7 @@ export declare enum ValidationExceptionReason {
101
102
  ILLEGAL_CUSTOMLINEITEM_MODIFICATION = "ILLEGAL_CUSTOMLINEITEM_MODIFICATION",
102
103
  ILLEGAL_CUSTOMLINEITEM_UPDATE = "ILLEGAL_CUSTOMLINEITEM_UPDATE",
103
104
  ILLEGAL_EXPRESSION = "ILLEGAL_EXPRESSION",
105
+ ILLEGAL_MODIFIER_PERCENTAGE = "ILLEGAL_MODIFIER_PERCENTAGE",
104
106
  ILLEGAL_PRIMARY_ACCOUNT = "ILLEGAL_PRIMARY_ACCOUNT",
105
107
  ILLEGAL_RESOURCE_ARNS = "ILLEGAL_RESOURCE_ARNS",
106
108
  ILLEGAL_SCOPE = "ILLEGAL_SCOPE",
@@ -535,6 +537,7 @@ export interface UpdatePricingPlanOutput {
535
537
  LastModifiedTime?: number;
536
538
  }
537
539
  export declare enum PricingRuleScope {
540
+ BILLING_ENTITY = "BILLING_ENTITY",
538
541
  GLOBAL = "GLOBAL",
539
542
  SERVICE = "SERVICE",
540
543
  }
@@ -551,6 +554,7 @@ export interface CreatePricingRuleInput {
551
554
  ModifierPercentage: number | undefined;
552
555
  Service?: string;
553
556
  Tags?: Record<string, string>;
557
+ BillingEntity?: string;
554
558
  }
555
559
  export interface CreatePricingRuleOutput {
556
560
  Arn?: string;
@@ -581,6 +585,7 @@ export interface PricingRuleListElement {
581
585
  AssociatedPricingPlanCount?: number;
582
586
  CreationTime?: number;
583
587
  LastModifiedTime?: number;
588
+ BillingEntity?: string;
584
589
  }
585
590
  export interface ListPricingRulesOutput {
586
591
  BillingPeriod?: string;
@@ -616,6 +621,7 @@ export interface UpdatePricingRuleOutput {
616
621
  Service?: string;
617
622
  AssociatedPricingPlanCount?: number;
618
623
  LastModifiedTime?: number;
624
+ BillingEntity?: string;
619
625
  }
620
626
  export interface TagResourceRequest {
621
627
  ResourceArn: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-billingconductor",
3
3
  "description": "AWS SDK for JavaScript Billingconductor Client for Node.js, Browser and React Native",
4
- "version": "3.211.0",
4
+ "version": "3.213.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",
@@ -19,36 +19,36 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.211.0",
23
- "@aws-sdk/config-resolver": "3.209.0",
24
- "@aws-sdk/credential-provider-node": "3.211.0",
25
- "@aws-sdk/fetch-http-handler": "3.208.0",
26
- "@aws-sdk/hash-node": "3.208.0",
27
- "@aws-sdk/invalid-dependency": "3.208.0",
28
- "@aws-sdk/middleware-content-length": "3.208.0",
29
- "@aws-sdk/middleware-endpoint": "3.208.0",
30
- "@aws-sdk/middleware-host-header": "3.208.0",
31
- "@aws-sdk/middleware-logger": "3.208.0",
32
- "@aws-sdk/middleware-recursion-detection": "3.208.0",
33
- "@aws-sdk/middleware-retry": "3.209.0",
34
- "@aws-sdk/middleware-serde": "3.208.0",
35
- "@aws-sdk/middleware-signing": "3.208.0",
36
- "@aws-sdk/middleware-stack": "3.208.0",
37
- "@aws-sdk/middleware-user-agent": "3.208.0",
38
- "@aws-sdk/node-config-provider": "3.209.0",
39
- "@aws-sdk/node-http-handler": "3.208.0",
40
- "@aws-sdk/protocol-http": "3.208.0",
41
- "@aws-sdk/smithy-client": "3.209.0",
42
- "@aws-sdk/types": "3.208.0",
43
- "@aws-sdk/url-parser": "3.208.0",
22
+ "@aws-sdk/client-sts": "3.213.0",
23
+ "@aws-sdk/config-resolver": "3.212.0",
24
+ "@aws-sdk/credential-provider-node": "3.212.0",
25
+ "@aws-sdk/fetch-http-handler": "3.212.0",
26
+ "@aws-sdk/hash-node": "3.212.0",
27
+ "@aws-sdk/invalid-dependency": "3.212.0",
28
+ "@aws-sdk/middleware-content-length": "3.212.0",
29
+ "@aws-sdk/middleware-endpoint": "3.212.0",
30
+ "@aws-sdk/middleware-host-header": "3.212.0",
31
+ "@aws-sdk/middleware-logger": "3.212.0",
32
+ "@aws-sdk/middleware-recursion-detection": "3.212.0",
33
+ "@aws-sdk/middleware-retry": "3.212.0",
34
+ "@aws-sdk/middleware-serde": "3.212.0",
35
+ "@aws-sdk/middleware-signing": "3.212.0",
36
+ "@aws-sdk/middleware-stack": "3.212.0",
37
+ "@aws-sdk/middleware-user-agent": "3.212.0",
38
+ "@aws-sdk/node-config-provider": "3.212.0",
39
+ "@aws-sdk/node-http-handler": "3.212.0",
40
+ "@aws-sdk/protocol-http": "3.212.0",
41
+ "@aws-sdk/smithy-client": "3.212.0",
42
+ "@aws-sdk/types": "3.212.0",
43
+ "@aws-sdk/url-parser": "3.212.0",
44
44
  "@aws-sdk/util-base64": "3.208.0",
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
- "@aws-sdk/util-defaults-mode-browser": "3.209.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.209.0",
49
- "@aws-sdk/util-endpoints": "3.211.0",
50
- "@aws-sdk/util-user-agent-browser": "3.208.0",
51
- "@aws-sdk/util-user-agent-node": "3.209.0",
47
+ "@aws-sdk/util-defaults-mode-browser": "3.212.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.212.0",
49
+ "@aws-sdk/util-endpoints": "3.212.0",
50
+ "@aws-sdk/util-user-agent-browser": "3.212.0",
51
+ "@aws-sdk/util-user-agent-node": "3.212.0",
52
52
  "@aws-sdk/util-utf8-browser": "3.188.0",
53
53
  "@aws-sdk/util-utf8-node": "3.208.0",
54
54
  "tslib": "^2.3.1",