stigg-api-client-v2 3.59.2__py3-none-any.whl → 3.62.0__py3-none-any.whl

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.

Potentially problematic release.


This version of stigg-api-client-v2 might be problematic. Click here for more details.

@@ -188,6 +188,7 @@ from .fragments import (
188
188
  CreditsBalanceSummaryFragment,
189
189
  CreditsBalanceSummaryFragmentBalances,
190
190
  CreditsBalanceSummaryFragmentBalancesCurrency,
191
+ CreditsBalanceSummaryFragmentBalancesCurrencyUnits,
191
192
  CustomerFragment,
192
193
  CustomerFragmentCoupon,
193
194
  CustomerFragmentEligibleForTrial,
@@ -579,6 +580,10 @@ from .grant_promotional_entitlements import (
579
580
  GrantPromotionalEntitlements,
580
581
  GrantPromotionalEntitlementsGrantPromotionalEntitlements,
581
582
  )
583
+ from .grant_promotional_entitlements_group import (
584
+ GrantPromotionalEntitlementsGroup,
585
+ GrantPromotionalEntitlementsGroupGrantPromotionalEntitlementsGroup,
586
+ )
582
587
  from .import_customer import ImportCustomer, ImportCustomerImportCustomer
583
588
  from .import_customer_bulk import ImportCustomerBulk
584
589
  from .import_subscriptions_bulk import ImportSubscriptionsBulk
@@ -987,6 +992,10 @@ from .revoke_promotional_entitlement import (
987
992
  RevokePromotionalEntitlement,
988
993
  RevokePromotionalEntitlementRevokePromotionalEntitlement,
989
994
  )
995
+ from .revoke_promotional_entitlements_group import (
996
+ RevokePromotionalEntitlementsGroup,
997
+ RevokePromotionalEntitlementsGroupRevokePromotionalEntitlementsGroup,
998
+ )
990
999
  from .transfer_subscription import (
991
1000
  TransferSubscription,
992
1001
  TransferSubscriptionTransferSubscription,
@@ -996,6 +1005,10 @@ from .transfer_subscription_to_resource import (
996
1005
  TransferSubscriptionToResourceTransferSubscriptionToResource,
997
1006
  )
998
1007
  from .unarchive_customer import UnarchiveCustomer, UnarchiveCustomerUnarchiveCustomer
1008
+ from .unlink_promotional_entitlements_group import (
1009
+ UnlinkPromotionalEntitlementsGroup,
1010
+ UnlinkPromotionalEntitlementsGroupUnlinkPromotionalEntitlementsGroup,
1011
+ )
999
1012
  from .update_customer import UpdateCustomer, UpdateCustomerUpdateCustomer
1000
1013
  from .update_subscription import (
1001
1014
  UpdateSubscription,
@@ -1133,6 +1146,7 @@ __all__ = [
1133
1146
  "CreditsBalanceSummaryFragment",
1134
1147
  "CreditsBalanceSummaryFragmentBalances",
1135
1148
  "CreditsBalanceSummaryFragmentBalancesCurrency",
1149
+ "CreditsBalanceSummaryFragmentBalancesCurrencyUnits",
1136
1150
  "Currency",
1137
1151
  "CursorPaging",
1138
1152
  "CustomCurrencyInput",
@@ -1388,6 +1402,8 @@ __all__ = [
1388
1402
  "GrantPromotionalEntitlementInput",
1389
1403
  "GrantPromotionalEntitlements",
1390
1404
  "GrantPromotionalEntitlementsGrantPromotionalEntitlements",
1405
+ "GrantPromotionalEntitlementsGroup",
1406
+ "GrantPromotionalEntitlementsGroupGrantPromotionalEntitlementsGroup",
1391
1407
  "GrantPromotionalEntitlementsGroupInput",
1392
1408
  "GrantPromotionalEntitlementsInput",
1393
1409
  "GraphQLClientError",
@@ -1650,7 +1666,9 @@ __all__ = [
1650
1666
  "RevokePromotionalEntitlement",
1651
1667
  "RevokePromotionalEntitlementInput",
1652
1668
  "RevokePromotionalEntitlementRevokePromotionalEntitlement",
1669
+ "RevokePromotionalEntitlementsGroup",
1653
1670
  "RevokePromotionalEntitlementsGroupInput",
1671
+ "RevokePromotionalEntitlementsGroupRevokePromotionalEntitlementsGroup",
1654
1672
  "SalesforceCredentialsInput",
1655
1673
  "ScheduleStrategy",
1656
1674
  "SetAccessRolesInput",
@@ -1903,7 +1921,9 @@ __all__ = [
1903
1921
  "UnitTransformationRound",
1904
1922
  "UnitsInput",
1905
1923
  "UnlinkFeatureGroupFromPackageInput",
1924
+ "UnlinkPromotionalEntitlementsGroup",
1906
1925
  "UnlinkPromotionalEntitlementsGroupInput",
1926
+ "UnlinkPromotionalEntitlementsGroupUnlinkPromotionalEntitlementsGroup",
1907
1927
  "UpdateAccountInput",
1908
1928
  "UpdateCouponInput",
1909
1929
  "UpdateCreditGrantInput",
@@ -35,6 +35,7 @@ from .get_usage_history import GetUsageHistory
35
35
  from .get_usage_history_v_2 import GetUsageHistoryV2
36
36
  from .grant_credits import GrantCredits
37
37
  from .grant_promotional_entitlements import GrantPromotionalEntitlements
38
+ from .grant_promotional_entitlements_group import GrantPromotionalEntitlementsGroup
38
39
  from .import_customer import ImportCustomer
39
40
  from .import_customer_bulk import ImportCustomerBulk
40
41
  from .import_subscriptions_bulk import ImportSubscriptionsBulk
@@ -58,6 +59,7 @@ from .input_types import (
58
59
  GetCustomerByRefIdInput,
59
60
  GetPaywallInput,
60
61
  GetSubscriptionInput,
62
+ GrantPromotionalEntitlementsGroupInput,
61
63
  GrantPromotionalEntitlementsInput,
62
64
  ImportCustomerBulkInput,
63
65
  ImportCustomerInput,
@@ -69,6 +71,7 @@ from .input_types import (
69
71
  ReportUsageBulkInput,
70
72
  ReportUsageInput,
71
73
  RevokePromotionalEntitlementInput,
74
+ RevokePromotionalEntitlementsGroupInput,
72
75
  SubscriptionCancellationInput,
73
76
  SubscriptionInput,
74
77
  SubscriptionMigrationInput,
@@ -78,6 +81,7 @@ from .input_types import (
78
81
  TransferSubscriptionInput,
79
82
  TransferSubscriptionToResourceInput,
80
83
  UnarchiveCustomerInput,
84
+ UnlinkPromotionalEntitlementsGroupInput,
81
85
  UpdateCustomerInput,
82
86
  UpdateSubscriptionInput,
83
87
  UsageEventsReportInput,
@@ -94,9 +98,11 @@ from .report_event import ReportEvent
94
98
  from .report_usage import ReportUsage
95
99
  from .report_usage_bulk import ReportUsageBulk
96
100
  from .revoke_promotional_entitlement import RevokePromotionalEntitlement
101
+ from .revoke_promotional_entitlements_group import RevokePromotionalEntitlementsGroup
97
102
  from .transfer_subscription import TransferSubscription
98
103
  from .transfer_subscription_to_resource import TransferSubscriptionToResource
99
104
  from .unarchive_customer import UnarchiveCustomer
105
+ from .unlink_promotional_entitlements_group import UnlinkPromotionalEntitlementsGroup
100
106
  from .update_customer import UpdateCustomer
101
107
  from .update_subscription import UpdateSubscription
102
108
 
@@ -2946,6 +2952,135 @@ class AsyncClient(AsyncBaseClient):
2946
2952
  data = self.get_data(response)
2947
2953
  return GrantCredits.model_validate(data)
2948
2954
 
2955
+ async def grant_promotional_entitlements_group(
2956
+ self, input: GrantPromotionalEntitlementsGroupInput, **kwargs: Any
2957
+ ) -> GrantPromotionalEntitlementsGroup:
2958
+ query = gql(
2959
+ """
2960
+ mutation GrantPromotionalEntitlementsGroup($input: GrantPromotionalEntitlementsGroupInput!) {
2961
+ grantPromotionalEntitlementsGroup(input: $input) {
2962
+ ...PromotionalEntitlementFragment
2963
+ }
2964
+ }
2965
+
2966
+ fragment PromotionalEntitlementFragment on PromotionalEntitlement {
2967
+ status
2968
+ usageLimit
2969
+ featureId
2970
+ hasUnlimitedUsage
2971
+ hasSoftLimit
2972
+ resetPeriod
2973
+ endDate
2974
+ isVisible
2975
+ feature {
2976
+ featureType
2977
+ meterType
2978
+ featureUnits
2979
+ featureUnitsPlural
2980
+ displayName
2981
+ description
2982
+ refId
2983
+ additionalMetaData
2984
+ }
2985
+ }
2986
+ """
2987
+ )
2988
+ variables: Dict[str, object] = {"input": input}
2989
+ response = await self.execute(
2990
+ query=query,
2991
+ operation_name="GrantPromotionalEntitlementsGroup",
2992
+ variables=variables,
2993
+ **kwargs
2994
+ )
2995
+ data = self.get_data(response)
2996
+ return GrantPromotionalEntitlementsGroup.model_validate(data)
2997
+
2998
+ async def revoke_promotional_entitlements_group(
2999
+ self, input: RevokePromotionalEntitlementsGroupInput, **kwargs: Any
3000
+ ) -> RevokePromotionalEntitlementsGroup:
3001
+ query = gql(
3002
+ """
3003
+ mutation RevokePromotionalEntitlementsGroup($input: RevokePromotionalEntitlementsGroupInput!) {
3004
+ revokePromotionalEntitlementsGroup(input: $input) {
3005
+ ...PromotionalEntitlementFragment
3006
+ }
3007
+ }
3008
+
3009
+ fragment PromotionalEntitlementFragment on PromotionalEntitlement {
3010
+ status
3011
+ usageLimit
3012
+ featureId
3013
+ hasUnlimitedUsage
3014
+ hasSoftLimit
3015
+ resetPeriod
3016
+ endDate
3017
+ isVisible
3018
+ feature {
3019
+ featureType
3020
+ meterType
3021
+ featureUnits
3022
+ featureUnitsPlural
3023
+ displayName
3024
+ description
3025
+ refId
3026
+ additionalMetaData
3027
+ }
3028
+ }
3029
+ """
3030
+ )
3031
+ variables: Dict[str, object] = {"input": input}
3032
+ response = await self.execute(
3033
+ query=query,
3034
+ operation_name="RevokePromotionalEntitlementsGroup",
3035
+ variables=variables,
3036
+ **kwargs
3037
+ )
3038
+ data = self.get_data(response)
3039
+ return RevokePromotionalEntitlementsGroup.model_validate(data)
3040
+
3041
+ async def unlink_promotional_entitlements_group(
3042
+ self, input: UnlinkPromotionalEntitlementsGroupInput, **kwargs: Any
3043
+ ) -> UnlinkPromotionalEntitlementsGroup:
3044
+ query = gql(
3045
+ """
3046
+ mutation UnlinkPromotionalEntitlementsGroup($input: UnlinkPromotionalEntitlementsGroupInput!) {
3047
+ unlinkPromotionalEntitlementsGroup(input: $input) {
3048
+ ...PromotionalEntitlementFragment
3049
+ }
3050
+ }
3051
+
3052
+ fragment PromotionalEntitlementFragment on PromotionalEntitlement {
3053
+ status
3054
+ usageLimit
3055
+ featureId
3056
+ hasUnlimitedUsage
3057
+ hasSoftLimit
3058
+ resetPeriod
3059
+ endDate
3060
+ isVisible
3061
+ feature {
3062
+ featureType
3063
+ meterType
3064
+ featureUnits
3065
+ featureUnitsPlural
3066
+ displayName
3067
+ description
3068
+ refId
3069
+ additionalMetaData
3070
+ }
3071
+ }
3072
+ """
3073
+ )
3074
+ variables: Dict[str, object] = {"input": input}
3075
+ response = await self.execute(
3076
+ query=query,
3077
+ operation_name="UnlinkPromotionalEntitlementsGroup",
3078
+ variables=variables,
3079
+ **kwargs
3080
+ )
3081
+ data = self.get_data(response)
3082
+ return UnlinkPromotionalEntitlementsGroup.model_validate(data)
3083
+
2949
3084
  async def get_customer_by_id(
2950
3085
  self, input: GetCustomerByRefIdInput, **kwargs: Any
2951
3086
  ) -> GetCustomerById:
@@ -6434,6 +6569,10 @@ class AsyncClient(AsyncBaseClient):
6434
6569
  currencyId
6435
6570
  displayName
6436
6571
  symbol
6572
+ units {
6573
+ singular
6574
+ plural
6575
+ }
6437
6576
  }
6438
6577
  currentBalance
6439
6578
  totalConsumed
stigg/generated/client.py CHANGED
@@ -35,6 +35,7 @@ from .get_usage_history import GetUsageHistory
35
35
  from .get_usage_history_v_2 import GetUsageHistoryV2
36
36
  from .grant_credits import GrantCredits
37
37
  from .grant_promotional_entitlements import GrantPromotionalEntitlements
38
+ from .grant_promotional_entitlements_group import GrantPromotionalEntitlementsGroup
38
39
  from .import_customer import ImportCustomer
39
40
  from .import_customer_bulk import ImportCustomerBulk
40
41
  from .import_subscriptions_bulk import ImportSubscriptionsBulk
@@ -58,6 +59,7 @@ from .input_types import (
58
59
  GetCustomerByRefIdInput,
59
60
  GetPaywallInput,
60
61
  GetSubscriptionInput,
62
+ GrantPromotionalEntitlementsGroupInput,
61
63
  GrantPromotionalEntitlementsInput,
62
64
  ImportCustomerBulkInput,
63
65
  ImportCustomerInput,
@@ -69,6 +71,7 @@ from .input_types import (
69
71
  ReportUsageBulkInput,
70
72
  ReportUsageInput,
71
73
  RevokePromotionalEntitlementInput,
74
+ RevokePromotionalEntitlementsGroupInput,
72
75
  SubscriptionCancellationInput,
73
76
  SubscriptionInput,
74
77
  SubscriptionMigrationInput,
@@ -78,6 +81,7 @@ from .input_types import (
78
81
  TransferSubscriptionInput,
79
82
  TransferSubscriptionToResourceInput,
80
83
  UnarchiveCustomerInput,
84
+ UnlinkPromotionalEntitlementsGroupInput,
81
85
  UpdateCustomerInput,
82
86
  UpdateSubscriptionInput,
83
87
  UsageEventsReportInput,
@@ -94,9 +98,11 @@ from .report_event import ReportEvent
94
98
  from .report_usage import ReportUsage
95
99
  from .report_usage_bulk import ReportUsageBulk
96
100
  from .revoke_promotional_entitlement import RevokePromotionalEntitlement
101
+ from .revoke_promotional_entitlements_group import RevokePromotionalEntitlementsGroup
97
102
  from .transfer_subscription import TransferSubscription
98
103
  from .transfer_subscription_to_resource import TransferSubscriptionToResource
99
104
  from .unarchive_customer import UnarchiveCustomer
105
+ from .unlink_promotional_entitlements_group import UnlinkPromotionalEntitlementsGroup
100
106
  from .update_customer import UpdateCustomer
101
107
  from .update_subscription import UpdateSubscription
102
108
 
@@ -2942,6 +2948,135 @@ class Client(BaseClient):
2942
2948
  data = self.get_data(response)
2943
2949
  return GrantCredits.model_validate(data)
2944
2950
 
2951
+ def grant_promotional_entitlements_group(
2952
+ self, input: GrantPromotionalEntitlementsGroupInput, **kwargs: Any
2953
+ ) -> GrantPromotionalEntitlementsGroup:
2954
+ query = gql(
2955
+ """
2956
+ mutation GrantPromotionalEntitlementsGroup($input: GrantPromotionalEntitlementsGroupInput!) {
2957
+ grantPromotionalEntitlementsGroup(input: $input) {
2958
+ ...PromotionalEntitlementFragment
2959
+ }
2960
+ }
2961
+
2962
+ fragment PromotionalEntitlementFragment on PromotionalEntitlement {
2963
+ status
2964
+ usageLimit
2965
+ featureId
2966
+ hasUnlimitedUsage
2967
+ hasSoftLimit
2968
+ resetPeriod
2969
+ endDate
2970
+ isVisible
2971
+ feature {
2972
+ featureType
2973
+ meterType
2974
+ featureUnits
2975
+ featureUnitsPlural
2976
+ displayName
2977
+ description
2978
+ refId
2979
+ additionalMetaData
2980
+ }
2981
+ }
2982
+ """
2983
+ )
2984
+ variables: Dict[str, object] = {"input": input}
2985
+ response = self.execute(
2986
+ query=query,
2987
+ operation_name="GrantPromotionalEntitlementsGroup",
2988
+ variables=variables,
2989
+ **kwargs
2990
+ )
2991
+ data = self.get_data(response)
2992
+ return GrantPromotionalEntitlementsGroup.model_validate(data)
2993
+
2994
+ def revoke_promotional_entitlements_group(
2995
+ self, input: RevokePromotionalEntitlementsGroupInput, **kwargs: Any
2996
+ ) -> RevokePromotionalEntitlementsGroup:
2997
+ query = gql(
2998
+ """
2999
+ mutation RevokePromotionalEntitlementsGroup($input: RevokePromotionalEntitlementsGroupInput!) {
3000
+ revokePromotionalEntitlementsGroup(input: $input) {
3001
+ ...PromotionalEntitlementFragment
3002
+ }
3003
+ }
3004
+
3005
+ fragment PromotionalEntitlementFragment on PromotionalEntitlement {
3006
+ status
3007
+ usageLimit
3008
+ featureId
3009
+ hasUnlimitedUsage
3010
+ hasSoftLimit
3011
+ resetPeriod
3012
+ endDate
3013
+ isVisible
3014
+ feature {
3015
+ featureType
3016
+ meterType
3017
+ featureUnits
3018
+ featureUnitsPlural
3019
+ displayName
3020
+ description
3021
+ refId
3022
+ additionalMetaData
3023
+ }
3024
+ }
3025
+ """
3026
+ )
3027
+ variables: Dict[str, object] = {"input": input}
3028
+ response = self.execute(
3029
+ query=query,
3030
+ operation_name="RevokePromotionalEntitlementsGroup",
3031
+ variables=variables,
3032
+ **kwargs
3033
+ )
3034
+ data = self.get_data(response)
3035
+ return RevokePromotionalEntitlementsGroup.model_validate(data)
3036
+
3037
+ def unlink_promotional_entitlements_group(
3038
+ self, input: UnlinkPromotionalEntitlementsGroupInput, **kwargs: Any
3039
+ ) -> UnlinkPromotionalEntitlementsGroup:
3040
+ query = gql(
3041
+ """
3042
+ mutation UnlinkPromotionalEntitlementsGroup($input: UnlinkPromotionalEntitlementsGroupInput!) {
3043
+ unlinkPromotionalEntitlementsGroup(input: $input) {
3044
+ ...PromotionalEntitlementFragment
3045
+ }
3046
+ }
3047
+
3048
+ fragment PromotionalEntitlementFragment on PromotionalEntitlement {
3049
+ status
3050
+ usageLimit
3051
+ featureId
3052
+ hasUnlimitedUsage
3053
+ hasSoftLimit
3054
+ resetPeriod
3055
+ endDate
3056
+ isVisible
3057
+ feature {
3058
+ featureType
3059
+ meterType
3060
+ featureUnits
3061
+ featureUnitsPlural
3062
+ displayName
3063
+ description
3064
+ refId
3065
+ additionalMetaData
3066
+ }
3067
+ }
3068
+ """
3069
+ )
3070
+ variables: Dict[str, object] = {"input": input}
3071
+ response = self.execute(
3072
+ query=query,
3073
+ operation_name="UnlinkPromotionalEntitlementsGroup",
3074
+ variables=variables,
3075
+ **kwargs
3076
+ )
3077
+ data = self.get_data(response)
3078
+ return UnlinkPromotionalEntitlementsGroup.model_validate(data)
3079
+
2945
3080
  def get_customer_by_id(
2946
3081
  self, input: GetCustomerByRefIdInput, **kwargs: Any
2947
3082
  ) -> GetCustomerById:
@@ -6428,6 +6563,10 @@ class Client(BaseClient):
6428
6563
  currencyId
6429
6564
  displayName
6430
6565
  symbol
6566
+ units {
6567
+ singular
6568
+ plural
6569
+ }
6431
6570
  }
6432
6571
  currentBalance
6433
6572
  totalConsumed
@@ -116,41 +116,29 @@ class PriceTierFragmentFlatPrice(BaseModel):
116
116
  currency: Currency
117
117
 
118
118
 
119
- class PriceFragment(BaseModel):
119
+ class OveragePriceFragment(BaseModel):
120
120
  billing_model: BillingModel = Field(alias="billingModel")
121
121
  billing_period: BillingPeriod = Field(alias="billingPeriod")
122
- billing_cadence: BillingCadence = Field(alias="billingCadence")
123
122
  billing_id: Optional[str] = Field(alias="billingId", default=None)
124
- min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
125
- max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
126
123
  billing_country_code: Optional[str] = Field(
127
124
  alias="billingCountryCode", default=None
128
125
  )
129
- price: Optional["PriceFragmentPrice"] = Field(default=None)
130
- credit_rate: Optional["PriceFragmentCreditRate"] = Field(
131
- alias="creditRate", default=None
132
- )
126
+ price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
133
127
  tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
134
- tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
135
- feature: Optional["PriceFragmentFeature"] = Field(default=None)
136
- block_size: Optional[float] = Field(alias="blockSize", default=None)
128
+ tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
129
+ feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
137
130
 
138
131
 
139
- class PriceFragmentPrice(BaseModel):
132
+ class OveragePriceFragmentPrice(BaseModel):
140
133
  amount: float
141
134
  currency: Currency
142
135
 
143
136
 
144
- class PriceFragmentCreditRate(BaseModel):
145
- amount: float
146
- custom_currency_id: Any = Field(alias="customCurrencyId")
147
-
148
-
149
- class PriceFragmentTiers(PriceTierFragment):
137
+ class OveragePriceFragmentTiers(PriceTierFragment):
150
138
  pass
151
139
 
152
140
 
153
- class PriceFragmentFeature(BaseModel):
141
+ class OveragePriceFragmentFeature(BaseModel):
154
142
  ref_id: str = Field(alias="refId")
155
143
  feature_units: Optional[str] = Field(alias="featureUnits", default=None)
156
144
  feature_units_plural: Optional[str] = Field(
@@ -160,29 +148,41 @@ class PriceFragmentFeature(BaseModel):
160
148
  description: Optional[str] = Field(default=None)
161
149
 
162
150
 
163
- class OveragePriceFragment(BaseModel):
151
+ class PriceFragment(BaseModel):
164
152
  billing_model: BillingModel = Field(alias="billingModel")
165
153
  billing_period: BillingPeriod = Field(alias="billingPeriod")
154
+ billing_cadence: BillingCadence = Field(alias="billingCadence")
166
155
  billing_id: Optional[str] = Field(alias="billingId", default=None)
156
+ min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
157
+ max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
167
158
  billing_country_code: Optional[str] = Field(
168
159
  alias="billingCountryCode", default=None
169
160
  )
170
- price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
161
+ price: Optional["PriceFragmentPrice"] = Field(default=None)
162
+ credit_rate: Optional["PriceFragmentCreditRate"] = Field(
163
+ alias="creditRate", default=None
164
+ )
171
165
  tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
172
- tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
173
- feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
166
+ tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
167
+ feature: Optional["PriceFragmentFeature"] = Field(default=None)
168
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
174
169
 
175
170
 
176
- class OveragePriceFragmentPrice(BaseModel):
171
+ class PriceFragmentPrice(BaseModel):
177
172
  amount: float
178
173
  currency: Currency
179
174
 
180
175
 
181
- class OveragePriceFragmentTiers(PriceTierFragment):
176
+ class PriceFragmentCreditRate(BaseModel):
177
+ amount: float
178
+ custom_currency_id: Any = Field(alias="customCurrencyId")
179
+
180
+
181
+ class PriceFragmentTiers(PriceTierFragment):
182
182
  pass
183
183
 
184
184
 
185
- class OveragePriceFragmentFeature(BaseModel):
185
+ class PriceFragmentFeature(BaseModel):
186
186
  ref_id: str = Field(alias="refId")
187
187
  feature_units: Optional[str] = Field(alias="featureUnits", default=None)
188
188
  feature_units_plural: Optional[str] = Field(
@@ -230,6 +230,55 @@ class AddonFragmentDependencies(AddonDependencyFragment):
230
230
  pass
231
231
 
232
232
 
233
+ class SlimCustomerFragment(BaseModel):
234
+ id: Any
235
+ name: Optional[str] = Field(default=None)
236
+ email: Optional[str] = Field(default=None)
237
+ created_at: Optional[Any] = Field(alias="createdAt", default=None)
238
+ updated_at: Any = Field(alias="updatedAt")
239
+ ref_id: str = Field(alias="refId")
240
+ customer_id: str = Field(alias="customerId")
241
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
242
+ additional_meta_data: Optional[Any] = Field(
243
+ alias="additionalMetaData", default=None
244
+ )
245
+ aws_marketplace_customer_id: Optional[str] = Field(
246
+ alias="awsMarketplaceCustomerId", default=None
247
+ )
248
+
249
+
250
+ class SubscriptionInvoiceFragment(BaseModel):
251
+ billing_id: str = Field(alias="billingId")
252
+ status: SubscriptionInvoiceStatus
253
+ created_at: Any = Field(alias="createdAt")
254
+ due_date: Optional[Any] = Field(alias="dueDate", default=None)
255
+ updated_at: Any = Field(alias="updatedAt")
256
+ error_message: Optional[str] = Field(alias="errorMessage", default=None)
257
+ requires_action: bool = Field(alias="requiresAction")
258
+ payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
259
+ payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
260
+ pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
261
+ billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
262
+ alias="billingReason", default=None
263
+ )
264
+ currency: Optional[str] = Field(default=None)
265
+ sub_total: Optional[float] = Field(alias="subTotal", default=None)
266
+ sub_total_excluding_tax: Optional[float] = Field(
267
+ alias="subTotalExcludingTax", default=None
268
+ )
269
+ total: Optional[float] = Field(default=None)
270
+ total_excluding_tax: Optional[float] = Field(
271
+ alias="totalExcludingTax", default=None
272
+ )
273
+ tax: Optional[float] = Field(default=None)
274
+ amount_due: Optional[float] = Field(alias="amountDue", default=None)
275
+ attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
276
+
277
+
278
+ class CustomerResourceFragment(BaseModel):
279
+ resource_id: str = Field(alias="resourceId")
280
+
281
+
233
282
  class SubscriptionScheduledUpdateData(BaseModel):
234
283
  subscription_schedule_type: SubscriptionScheduleType = Field(
235
284
  alias="subscriptionScheduleType"
@@ -392,53 +441,23 @@ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
392
441
  feature_id: Optional[str] = Field(alias="featureId", default=None)
393
442
 
394
443
 
395
- class CustomerResourceFragment(BaseModel):
396
- resource_id: str = Field(alias="resourceId")
444
+ class TotalPriceFragment(BaseModel):
445
+ sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
446
+ total: "TotalPriceFragmentTotal"
397
447
 
398
448
 
399
- class SlimCustomerFragment(BaseModel):
400
- id: Any
401
- name: Optional[str] = Field(default=None)
402
- email: Optional[str] = Field(default=None)
403
- created_at: Optional[Any] = Field(alias="createdAt", default=None)
404
- updated_at: Any = Field(alias="updatedAt")
405
- ref_id: str = Field(alias="refId")
406
- customer_id: str = Field(alias="customerId")
407
- billing_id: Optional[str] = Field(alias="billingId", default=None)
408
- additional_meta_data: Optional[Any] = Field(
409
- alias="additionalMetaData", default=None
410
- )
411
- aws_marketplace_customer_id: Optional[str] = Field(
412
- alias="awsMarketplaceCustomerId", default=None
413
- )
449
+ class TotalPriceFragmentSubTotal(BaseModel):
450
+ amount: float
451
+ currency: Currency
414
452
 
415
453
 
416
- class SubscriptionInvoiceFragment(BaseModel):
417
- billing_id: str = Field(alias="billingId")
418
- status: SubscriptionInvoiceStatus
419
- created_at: Any = Field(alias="createdAt")
420
- due_date: Optional[Any] = Field(alias="dueDate", default=None)
421
- updated_at: Any = Field(alias="updatedAt")
422
- error_message: Optional[str] = Field(alias="errorMessage", default=None)
423
- requires_action: bool = Field(alias="requiresAction")
424
- payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
425
- payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
426
- pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
427
- billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
428
- alias="billingReason", default=None
429
- )
430
- currency: Optional[str] = Field(default=None)
431
- sub_total: Optional[float] = Field(alias="subTotal", default=None)
432
- sub_total_excluding_tax: Optional[float] = Field(
433
- alias="subTotalExcludingTax", default=None
434
- )
435
- total: Optional[float] = Field(default=None)
436
- total_excluding_tax: Optional[float] = Field(
437
- alias="totalExcludingTax", default=None
438
- )
439
- tax: Optional[float] = Field(default=None)
440
- amount_due: Optional[float] = Field(alias="amountDue", default=None)
441
- attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
454
+ class TotalPriceFragmentTotal(BaseModel):
455
+ amount: float
456
+ currency: Currency
457
+
458
+
459
+ class SubscriptionTrialConfigurationFragment(BaseModel):
460
+ trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
442
461
 
443
462
 
444
463
  class SubscriptionFutureUpdateData(BaseModel):
@@ -595,19 +614,25 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
595
614
  feature_id: Optional[str] = Field(alias="featureId", default=None)
596
615
 
597
616
 
598
- class TotalPriceFragment(BaseModel):
599
- sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
600
- total: "TotalPriceFragmentTotal"
617
+ class ProductFragment(BaseModel):
618
+ ref_id: str = Field(alias="refId")
619
+ display_name: Optional[str] = Field(alias="displayName", default=None)
620
+ description: Optional[str] = Field(default=None)
621
+ additional_meta_data: Optional[Any] = Field(
622
+ alias="additionalMetaData", default=None
623
+ )
624
+ product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
601
625
 
602
626
 
603
- class TotalPriceFragmentSubTotal(BaseModel):
604
- amount: float
605
- currency: Currency
627
+ class ProductFragmentProductSettings(BaseModel):
628
+ downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
629
+ alias="downgradePlan", default=None
630
+ )
606
631
 
607
632
 
608
- class TotalPriceFragmentTotal(BaseModel):
609
- amount: float
610
- currency: Currency
633
+ class ProductFragmentProductSettingsDowngradePlan(BaseModel):
634
+ ref_id: str = Field(alias="refId")
635
+ display_name: str = Field(alias="displayName")
611
636
 
612
637
 
613
638
  class PlanCompatiblePackageGroupsFragment(BaseModel):
@@ -628,27 +653,6 @@ class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
628
653
  free_items: Optional[float] = Field(alias="freeItems", default=None)
629
654
 
630
655
 
631
- class ProductFragment(BaseModel):
632
- ref_id: str = Field(alias="refId")
633
- display_name: Optional[str] = Field(alias="displayName", default=None)
634
- description: Optional[str] = Field(default=None)
635
- additional_meta_data: Optional[Any] = Field(
636
- alias="additionalMetaData", default=None
637
- )
638
- product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
639
-
640
-
641
- class ProductFragmentProductSettings(BaseModel):
642
- downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
643
- alias="downgradePlan", default=None
644
- )
645
-
646
-
647
- class ProductFragmentProductSettingsDowngradePlan(BaseModel):
648
- ref_id: str = Field(alias="refId")
649
- display_name: str = Field(alias="displayName")
650
-
651
-
652
656
  class PlanFragment(BaseModel):
653
657
  id: Any
654
658
  ref_id: str = Field(alias="refId")
@@ -730,10 +734,6 @@ class PlanFragmentDefaultTrialConfigBudget(BaseModel):
730
734
  limit: float
731
735
 
732
736
 
733
- class SubscriptionTrialConfigurationFragment(BaseModel):
734
- trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
735
-
736
-
737
737
  class SubscriptionFragment(BaseModel):
738
738
  id: Any
739
739
  subscription_id: str = Field(alias="subscriptionId")
@@ -1005,35 +1005,6 @@ class CheckoutConfigurationFragmentContent(BaseModel):
1005
1005
  )
1006
1006
 
1007
1007
 
1008
- class PromotionalEntitlementFragment(BaseModel):
1009
- status: PromotionalEntitlementStatus
1010
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1011
- feature_id: Any = Field(alias="featureId")
1012
- has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1013
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1014
- reset_period: Optional[EntitlementResetPeriod] = Field(
1015
- alias="resetPeriod", default=None
1016
- )
1017
- end_date: Optional[Any] = Field(alias="endDate", default=None)
1018
- is_visible: bool = Field(alias="isVisible")
1019
- feature: "PromotionalEntitlementFragmentFeature"
1020
-
1021
-
1022
- class PromotionalEntitlementFragmentFeature(BaseModel):
1023
- feature_type: FeatureType = Field(alias="featureType")
1024
- meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1025
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1026
- feature_units_plural: Optional[str] = Field(
1027
- alias="featureUnitsPlural", default=None
1028
- )
1029
- display_name: str = Field(alias="displayName")
1030
- description: Optional[str] = Field(default=None)
1031
- ref_id: str = Field(alias="refId")
1032
- additional_meta_data: Optional[Any] = Field(
1033
- alias="additionalMetaData", default=None
1034
- )
1035
-
1036
-
1037
1008
  class CouponFragment(BaseModel):
1038
1009
  id: Any
1039
1010
  discount_value: float = Field(alias="discountValue")
@@ -1068,6 +1039,35 @@ class CouponFragmentSyncStates(BaseModel):
1068
1039
  status: SyncStatus
1069
1040
 
1070
1041
 
1042
+ class PromotionalEntitlementFragment(BaseModel):
1043
+ status: PromotionalEntitlementStatus
1044
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1045
+ feature_id: Any = Field(alias="featureId")
1046
+ has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1047
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1048
+ reset_period: Optional[EntitlementResetPeriod] = Field(
1049
+ alias="resetPeriod", default=None
1050
+ )
1051
+ end_date: Optional[Any] = Field(alias="endDate", default=None)
1052
+ is_visible: bool = Field(alias="isVisible")
1053
+ feature: "PromotionalEntitlementFragmentFeature"
1054
+
1055
+
1056
+ class PromotionalEntitlementFragmentFeature(BaseModel):
1057
+ feature_type: FeatureType = Field(alias="featureType")
1058
+ meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1059
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1060
+ feature_units_plural: Optional[str] = Field(
1061
+ alias="featureUnitsPlural", default=None
1062
+ )
1063
+ display_name: str = Field(alias="displayName")
1064
+ description: Optional[str] = Field(default=None)
1065
+ ref_id: str = Field(alias="refId")
1066
+ additional_meta_data: Optional[Any] = Field(
1067
+ alias="additionalMetaData", default=None
1068
+ )
1069
+
1070
+
1071
1071
  class CustomerFragment(SlimCustomerFragment):
1072
1072
  has_payment_method: bool = Field(alias="hasPaymentMethod")
1073
1073
  has_active_subscription: bool = Field(alias="hasActiveSubscription")
@@ -1212,6 +1212,14 @@ class CreditsBalanceSummaryFragmentBalancesCurrency(BaseModel):
1212
1212
  currency_id: str = Field(alias="currencyId")
1213
1213
  display_name: str = Field(alias="displayName")
1214
1214
  symbol: Optional[str] = Field(default=None)
1215
+ units: Optional["CreditsBalanceSummaryFragmentBalancesCurrencyUnits"] = Field(
1216
+ default=None
1217
+ )
1218
+
1219
+
1220
+ class CreditsBalanceSummaryFragmentBalancesCurrencyUnits(BaseModel):
1221
+ singular: str
1222
+ plural: str
1215
1223
 
1216
1224
 
1217
1225
  class CustomerPortalBillingInformationFragment(BaseModel):
@@ -1318,6 +1326,16 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
1318
1326
  pass
1319
1327
 
1320
1328
 
1329
+ class CustomerPortalPromotionalEntitlementFragment(BaseModel):
1330
+ display_name: str = Field(alias="displayName")
1331
+ has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1332
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1333
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1334
+ period: PromotionalEntitlementPeriod
1335
+ start_date: Any = Field(alias="startDate")
1336
+ end_date: Optional[Any] = Field(alias="endDate", default=None)
1337
+
1338
+
1321
1339
  class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
1322
1340
  subscription_schedule_type: SubscriptionScheduleType = Field(
1323
1341
  alias="subscriptionScheduleType"
@@ -1487,13 +1505,6 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
1487
1505
  feature_id: Optional[str] = Field(alias="featureId", default=None)
1488
1506
 
1489
1507
 
1490
- class CustomerPortalSubscriptionAddonFragment(BaseModel):
1491
- addon_id: str = Field(alias="addonId")
1492
- description: Optional[str] = Field(default=None)
1493
- display_name: str = Field(alias="displayName")
1494
- quantity: int
1495
-
1496
-
1497
1508
  class CustomerPortalSubscriptionPriceFragment(BaseModel):
1498
1509
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1499
1510
  billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
@@ -1529,6 +1540,13 @@ class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1529
1540
  )
1530
1541
 
1531
1542
 
1543
+ class CustomerPortalSubscriptionAddonFragment(BaseModel):
1544
+ addon_id: str = Field(alias="addonId")
1545
+ description: Optional[str] = Field(default=None)
1546
+ display_name: str = Field(alias="displayName")
1547
+ quantity: int
1548
+
1549
+
1532
1550
  class CustomerPortalSubscriptionFragment(BaseModel):
1533
1551
  subscription_id: str = Field(alias="subscriptionId")
1534
1552
  plan_id: str = Field(alias="planId")
@@ -1633,16 +1651,6 @@ class CustomerPortalSubscriptionFragmentScheduledUpdates(
1633
1651
  pass
1634
1652
 
1635
1653
 
1636
- class CustomerPortalPromotionalEntitlementFragment(BaseModel):
1637
- display_name: str = Field(alias="displayName")
1638
- has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1639
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1640
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1641
- period: PromotionalEntitlementPeriod
1642
- start_date: Any = Field(alias="startDate")
1643
- end_date: Optional[Any] = Field(alias="endDate", default=None)
1644
-
1645
-
1646
1654
  class CustomerPortalFragment(BaseModel):
1647
1655
  subscriptions: List["CustomerPortalFragmentSubscriptions"]
1648
1656
  entitlements: List["CustomerPortalFragmentEntitlements"]
@@ -1870,6 +1878,41 @@ class MockPaywallAddonDependencyFragment(BaseModel):
1870
1878
  description: Optional[str] = Field(default=None)
1871
1879
 
1872
1880
 
1881
+ class MockPaywallPackageEntitlementFragment(BaseModel):
1882
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1883
+ has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
1884
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1885
+ reset_period: Optional[EntitlementResetPeriod] = Field(
1886
+ alias="resetPeriod", default=None
1887
+ )
1888
+ hidden_from_widgets: Optional[List[WidgetType]] = Field(
1889
+ alias="hiddenFromWidgets", default=None
1890
+ )
1891
+ display_name_override: Optional[str] = Field(
1892
+ alias="displayNameOverride", default=None
1893
+ )
1894
+ enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
1895
+ is_granted: bool = Field(alias="isGranted")
1896
+ feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
1897
+ default=None
1898
+ )
1899
+
1900
+
1901
+ class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
1902
+ feature_type: FeatureType = Field(alias="featureType")
1903
+ meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1904
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1905
+ feature_units_plural: Optional[str] = Field(
1906
+ alias="featureUnitsPlural", default=None
1907
+ )
1908
+ display_name: str = Field(alias="displayName")
1909
+ description: Optional[str] = Field(default=None)
1910
+ ref_id: str = Field(alias="refId")
1911
+ additional_meta_data: Optional[Any] = Field(
1912
+ alias="additionalMetaData", default=None
1913
+ )
1914
+
1915
+
1873
1916
  class MockPaywallPriceFragment(BaseModel):
1874
1917
  billing_model: BillingModel = Field(alias="billingModel")
1875
1918
  billing_period: BillingPeriod = Field(alias="billingPeriod")
@@ -1912,41 +1955,6 @@ class MockPaywallPriceFragmentFeature(BaseModel):
1912
1955
  display_name: str = Field(alias="displayName")
1913
1956
 
1914
1957
 
1915
- class MockPaywallPackageEntitlementFragment(BaseModel):
1916
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1917
- has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
1918
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1919
- reset_period: Optional[EntitlementResetPeriod] = Field(
1920
- alias="resetPeriod", default=None
1921
- )
1922
- hidden_from_widgets: Optional[List[WidgetType]] = Field(
1923
- alias="hiddenFromWidgets", default=None
1924
- )
1925
- display_name_override: Optional[str] = Field(
1926
- alias="displayNameOverride", default=None
1927
- )
1928
- enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
1929
- is_granted: bool = Field(alias="isGranted")
1930
- feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
1931
- default=None
1932
- )
1933
-
1934
-
1935
- class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
1936
- feature_type: FeatureType = Field(alias="featureType")
1937
- meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1938
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1939
- feature_units_plural: Optional[str] = Field(
1940
- alias="featureUnitsPlural", default=None
1941
- )
1942
- display_name: str = Field(alias="displayName")
1943
- description: Optional[str] = Field(default=None)
1944
- ref_id: str = Field(alias="refId")
1945
- additional_meta_data: Optional[Any] = Field(
1946
- alias="additionalMetaData", default=None
1947
- )
1948
-
1949
-
1950
1958
  class MockPaywallAddonFragment(BaseModel):
1951
1959
  ref_id: str = Field(alias="refId")
1952
1960
  display_name: str = Field(alias="displayName")
@@ -2922,19 +2930,19 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
2922
2930
  AddonDependencyFragment.model_rebuild()
2923
2931
  PackageEntitlementFragment.model_rebuild()
2924
2932
  PriceTierFragment.model_rebuild()
2925
- PriceFragment.model_rebuild()
2926
2933
  OveragePriceFragment.model_rebuild()
2934
+ PriceFragment.model_rebuild()
2927
2935
  AddonFragment.model_rebuild()
2928
- SubscriptionScheduledUpdateData.model_rebuild()
2929
- CustomerResourceFragment.model_rebuild()
2930
2936
  SlimCustomerFragment.model_rebuild()
2931
2937
  SubscriptionInvoiceFragment.model_rebuild()
2932
- SubscriptionFutureUpdateData.model_rebuild()
2938
+ CustomerResourceFragment.model_rebuild()
2939
+ SubscriptionScheduledUpdateData.model_rebuild()
2933
2940
  TotalPriceFragment.model_rebuild()
2934
- PlanCompatiblePackageGroupsFragment.model_rebuild()
2941
+ SubscriptionTrialConfigurationFragment.model_rebuild()
2942
+ SubscriptionFutureUpdateData.model_rebuild()
2935
2943
  ProductFragment.model_rebuild()
2944
+ PlanCompatiblePackageGroupsFragment.model_rebuild()
2936
2945
  PlanFragment.model_rebuild()
2937
- SubscriptionTrialConfigurationFragment.model_rebuild()
2938
2946
  SubscriptionFragment.model_rebuild()
2939
2947
  FeatureFragment.model_rebuild()
2940
2948
  EntitlementFragment.model_rebuild()
@@ -2942,8 +2950,8 @@ ApplySubscriptionFragment.model_rebuild()
2942
2950
  FontVariantFragment.model_rebuild()
2943
2951
  TypographyConfigurationFragment.model_rebuild()
2944
2952
  CheckoutConfigurationFragment.model_rebuild()
2945
- PromotionalEntitlementFragment.model_rebuild()
2946
2953
  CouponFragment.model_rebuild()
2954
+ PromotionalEntitlementFragment.model_rebuild()
2947
2955
  CustomerFragment.model_rebuild()
2948
2956
  CheckoutStateFragment.model_rebuild()
2949
2957
  CreditGrantFragment.model_rebuild()
@@ -2951,11 +2959,11 @@ CreditsBalanceSummaryFragment.model_rebuild()
2951
2959
  CustomerPortalBillingInformationFragment.model_rebuild()
2952
2960
  CustomerPortalConfigurationFragment.model_rebuild()
2953
2961
  CustomerPortalEntitlementFragment.model_rebuild()
2962
+ CustomerPortalPromotionalEntitlementFragment.model_rebuild()
2954
2963
  CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
2955
- CustomerPortalSubscriptionAddonFragment.model_rebuild()
2956
2964
  CustomerPortalSubscriptionPriceFragment.model_rebuild()
2965
+ CustomerPortalSubscriptionAddonFragment.model_rebuild()
2957
2966
  CustomerPortalSubscriptionFragment.model_rebuild()
2958
- CustomerPortalPromotionalEntitlementFragment.model_rebuild()
2959
2967
  CustomerPortalFragment.model_rebuild()
2960
2968
  CustomerStatisticsFragment.model_rebuild()
2961
2969
  CustomerWithSubscriptionsFragment.model_rebuild()
@@ -2965,8 +2973,8 @@ EntitlementsUpdatedPayload.model_rebuild()
2965
2973
  ImmediateSubscriptionPreviewInvoiceFragment.model_rebuild()
2966
2974
  LayoutConfigurationFragment.model_rebuild()
2967
2975
  MockPaywallAddonDependencyFragment.model_rebuild()
2968
- MockPaywallPriceFragment.model_rebuild()
2969
2976
  MockPaywallPackageEntitlementFragment.model_rebuild()
2977
+ MockPaywallPriceFragment.model_rebuild()
2970
2978
  MockPaywallAddonFragment.model_rebuild()
2971
2979
  MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
2972
2980
  MockPaywallPlanFragment.model_rebuild()
@@ -0,0 +1,24 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: operations.graphql
3
+
4
+ from typing import List
5
+
6
+ from stigg._vendors.pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .fragments import PromotionalEntitlementFragment
10
+
11
+
12
+ class GrantPromotionalEntitlementsGroup(BaseModel):
13
+ grant_promotional_entitlements_group: List[
14
+ "GrantPromotionalEntitlementsGroupGrantPromotionalEntitlementsGroup"
15
+ ] = Field(alias="grantPromotionalEntitlementsGroup")
16
+
17
+
18
+ class GrantPromotionalEntitlementsGroupGrantPromotionalEntitlementsGroup(
19
+ PromotionalEntitlementFragment
20
+ ):
21
+ pass
22
+
23
+
24
+ GrantPromotionalEntitlementsGroup.model_rebuild()
@@ -0,0 +1,24 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: operations.graphql
3
+
4
+ from typing import List
5
+
6
+ from stigg._vendors.pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .fragments import PromotionalEntitlementFragment
10
+
11
+
12
+ class RevokePromotionalEntitlementsGroup(BaseModel):
13
+ revoke_promotional_entitlements_group: List[
14
+ "RevokePromotionalEntitlementsGroupRevokePromotionalEntitlementsGroup"
15
+ ] = Field(alias="revokePromotionalEntitlementsGroup")
16
+
17
+
18
+ class RevokePromotionalEntitlementsGroupRevokePromotionalEntitlementsGroup(
19
+ PromotionalEntitlementFragment
20
+ ):
21
+ pass
22
+
23
+
24
+ RevokePromotionalEntitlementsGroup.model_rebuild()
@@ -0,0 +1,24 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: operations.graphql
3
+
4
+ from typing import List
5
+
6
+ from stigg._vendors.pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .fragments import PromotionalEntitlementFragment
10
+
11
+
12
+ class UnlinkPromotionalEntitlementsGroup(BaseModel):
13
+ unlink_promotional_entitlements_group: List[
14
+ "UnlinkPromotionalEntitlementsGroupUnlinkPromotionalEntitlementsGroup"
15
+ ] = Field(alias="unlinkPromotionalEntitlementsGroup")
16
+
17
+
18
+ class UnlinkPromotionalEntitlementsGroupUnlinkPromotionalEntitlementsGroup(
19
+ PromotionalEntitlementFragment
20
+ ):
21
+ pass
22
+
23
+
24
+ UnlinkPromotionalEntitlementsGroup.model_rebuild()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client-v2
3
- Version: 3.59.2
3
+ Version: 3.62.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -106,16 +106,16 @@ stigg/_vendors/pydantic-2.6.4.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCe
106
106
  stigg/_vendors/pydantic-2.6.4.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
107
107
  stigg/_vendors/pydantic-2.6.4.dist-info/licenses/LICENSE,sha256=qeGG88oWte74QxjnpwFyE1GgDLe4rjpDlLZ7SeNSnvM,1129
108
108
  stigg/client.py,sha256=RWrVnxo9zHFXka8KJVE4sMgyek70ispQk0vqOINCvM0,8335
109
- stigg/generated/__init__.py,sha256=IeT9vYKGoOkdNAwqm8twvLl2bY81EWGKg8iMZWrlyrk,74024
109
+ stigg/generated/__init__.py,sha256=m3rLX51Y6E1RlXFjzwu4ccdOdt3nnUNgsLOF1_8ISMc,74992
110
110
  stigg/generated/apply_subscription.py,sha256=Vbs-QZZxN16pUpt3Hp7Jvvcc5o_8xwJK9oTLQQjH0ZA,451
111
111
  stigg/generated/archive_customer.py,sha256=3N3iBiT2Vvzfb0ckV3o57A6lmJ_ef7JNPaMX_Jtcg6c,396
112
112
  stigg/generated/async_base_client.py,sha256=zqd6IhYxpalyA6KQkeGhXgSurC0vXSwSWmSlM2zZ0VM,12593
113
- stigg/generated/async_client.py,sha256=_gbW7HPK1DYZdytT7tfkJVrFfziM-GrB7S29uwSEjGg,179645
113
+ stigg/generated/async_client.py,sha256=L91D8H9RqJ9LmFBXJpvXBrKfiRheOphSHLf1ilFJ4u4,184383
114
114
  stigg/generated/base_client.py,sha256=nAto-nOqrOHFTLqdRy2ZDpT1afgsqCzf6hTeBh5MyPQ,6674
115
115
  stigg/generated/base_model.py,sha256=0rs99bmZqPbltlPVMfhExeA5zD6ATQFaNZVsxGNonI4,635
116
116
  stigg/generated/cancel_subscription.py,sha256=pKrMFmKjGIuWvnVCYQ8brWQO9_JeTnfScgGQjztuN-o,457
117
117
  stigg/generated/cancel_subscription_updates.py,sha256=T1C9vyppzZi_91pEnIGkHUL3GEsvtf5EMwr1f01tjbM,241
118
- stigg/generated/client.py,sha256=zBvjwKMocm02W2CIXwZ4hXTv983k-xB1B3r5WWBfZ4g,179006
118
+ stigg/generated/client.py,sha256=S3IQdR4v5a3m0LfUTffEUiHlTXDdbKAlc5qy8bOCEIw,183708
119
119
  stigg/generated/create_subscription.py,sha256=vbpBJ_daXHcQDtvU3vbwSr2E7s4VGRHxqPavyTV3Mtk,457
120
120
  stigg/generated/delegate_subscription_to_customer.py,sha256=0TgQDO0Hk-z7X7PGtqhvciqa8IjkToK9cpiX3Kqu_UY,561
121
121
  stigg/generated/detach_customer_payment_method.py,sha256=ACXlC2xsGaUP723OrayFZQ9SbXxe8TtVUYdG1gqcYFc,523
@@ -123,7 +123,7 @@ stigg/generated/enums.py,sha256=4wSfEXeZZqMSjsCsSG8baVg3Si8sjzV3bp_unHWHBtQ,3800
123
123
  stigg/generated/estimate_subscription.py,sha256=c0_vg0A_Hi8fdjeGudWZ0WziUF9jcjX5rlRitGMAMaQ,479
124
124
  stigg/generated/estimate_subscription_update.py,sha256=ZYIFqqHHDfzhrOn95QnMmPNTXZ7JrKWRlUFzk8fWwKA,528
125
125
  stigg/generated/exceptions.py,sha256=OQu-ZYCCV4VyMWTd1HR8gIjIK2CrA_JMlFxqOAJugWY,2411
126
- stigg/generated/fragments.py,sha256=252lBJk5HFWUyekjBNRO50po4Q7n8B6JOJtb3yK4vs8,106791
126
+ stigg/generated/fragments.py,sha256=nb6SVV8IhyW7vlOM8zb814iFqdNJ1Ni-yl7QvUzoCvQ,107006
127
127
  stigg/generated/get_active_subscriptions.py,sha256=ngZ9jr8vzGI59wT8FhUFl46a8j9waoNjeZ1_lrcu2ww,513
128
128
  stigg/generated/get_active_subscriptions_list.py,sha256=Awi9al2MXxdt_y7ZnWYZh8U3R9XiX50c7TyO4WZxyhw,541
129
129
  stigg/generated/get_checkout_state.py,sha256=SAOXGAND879dwb7R5mr5LPZuPVuMUDwNR5M4mgmHv6w,409
@@ -145,6 +145,7 @@ stigg/generated/get_usage_history.py,sha256=3gwU1NOGkw0p3hLd2rjxJmN79iN7_GqtZhOu
145
145
  stigg/generated/get_usage_history_v_2.py,sha256=qs93P7pxfl-Yu_zSGa2dhHACeY1efR7V42Vmg7h_7Jk,421
146
146
  stigg/generated/grant_credits.py,sha256=rZE6D8PvPqnYde1RZUEUW0JAnHXaK7Zp46nKMynfKVE,420
147
147
  stigg/generated/grant_promotional_entitlements.py,sha256=72PRYuqecL-0SkWb7deygkhHNOMOkCcBVXbQVNrHhrU,587
148
+ stigg/generated/grant_promotional_entitlements_group.py,sha256=iQwCd07VFaYbsN_E-MEcT0n-MHMcP6iijuahnuu04BQ,628
148
149
  stigg/generated/import_customer.py,sha256=yEtrEB7T-Aykv3AUl-rAQz2XL6hKL0j-7JL3h-xi87o,403
149
150
  stigg/generated/import_customer_bulk.py,sha256=miLn2ScWlPOH1IipltY5Vgd-ZQ_BkBk9t3-EsLvU5ZQ,284
150
151
  stigg/generated/import_subscriptions_bulk.py,sha256=QgitpZkjE7eBhP1o5W0PTVAbKOvz61dNoeBAWupIcgU,297
@@ -159,12 +160,14 @@ stigg/generated/report_event.py,sha256=O_8Y2W-oGNLW0OeH1TtJUFmzTJexoXNoritIH-SUb
159
160
  stigg/generated/report_usage.py,sha256=5J-nkJoVMi_JYWV50MTl78MHlzsC5035GxSih1S8c_w,377
160
161
  stigg/generated/report_usage_bulk.py,sha256=QIJcyfKFe1urtQEzZ3hiVD0fZS00KFGsLTFE3sHnY9U,455
161
162
  stigg/generated/revoke_promotional_entitlement.py,sha256=OOn7AIiQbzbO7J21mvYJdVtFIzOhuyF52GjhrFscmCk,502
163
+ stigg/generated/revoke_promotional_entitlements_group.py,sha256=U9BHC5bbY-S9-w5BWiDAJthPJKXS2S3-8QY6hIU5vhs,636
162
164
  stigg/generated/transfer_subscription.py,sha256=FFYUD-I9EjeU5jvdq3a8fpdc7PmF-zC-9NyLcGXFHw8,473
163
165
  stigg/generated/transfer_subscription_to_resource.py,sha256=4-N7quYhHpVTGPi6EV-U_dJRQZYoByALDy-z77UufyE,561
164
166
  stigg/generated/unarchive_customer.py,sha256=0OVttDrNNOHp6xIpLfDj--XfZL0ogkSpy9eW71jND2k,441
167
+ stigg/generated/unlink_promotional_entitlements_group.py,sha256=8UIRQ0CNvReRfX0LZmDYkRn9mMjZm9n41YG6-p7Z8qU,636
165
168
  stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
166
169
  stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
167
- stigg_api_client_v2-3.59.2.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
168
- stigg_api_client_v2-3.59.2.dist-info/METADATA,sha256=6Jxfn5OZEvu6beuLp8ztbiYjI55dWSJbddfXtM7XHSE,2257
169
- stigg_api_client_v2-3.59.2.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
170
- stigg_api_client_v2-3.59.2.dist-info/RECORD,,
170
+ stigg_api_client_v2-3.62.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
171
+ stigg_api_client_v2-3.62.0.dist-info/METADATA,sha256=enf3P0nGoZBazAMY_X0XdbfgC382QbaBjqKWJzSUtas,2257
172
+ stigg_api_client_v2-3.62.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
173
+ stigg_api_client_v2-3.62.0.dist-info/RECORD,,