stigg-api-client-v2 3.84.1__py3-none-any.whl → 3.88.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.

@@ -194,6 +194,7 @@ from .fragments import (
194
194
  CouponFragmentSyncStates,
195
195
  CreditGrantFragment,
196
196
  CreditGrantFragmentCost,
197
+ CreditLedgerFragment,
197
198
  CreditsBalanceSummaryFragment,
198
199
  CreditsBalanceSummaryFragmentBalances,
199
200
  CreditsBalanceSummaryFragmentBalancesCurrency,
@@ -549,6 +550,11 @@ from .get_coupons import (
549
550
  )
550
551
  from .get_credit_balance import GetCreditBalance, GetCreditBalanceCreditBalanceSummary
551
552
  from .get_credit_grants import GetCreditGrants, GetCreditGrantsCreditGrants
553
+ from .get_credit_ledger import (
554
+ GetCreditLedger,
555
+ GetCreditLedgerCreditsLedger,
556
+ GetCreditLedgerCreditsLedgerEvents,
557
+ )
552
558
  from .get_customer_by_id import GetCustomerById, GetCustomerByIdGetCustomerByRefId
553
559
  from .get_customer_portal_by_ref_id import (
554
560
  GetCustomerPortalByRefId,
@@ -1179,6 +1185,7 @@ __all__ = [
1179
1185
  "CreditGrantInput",
1180
1186
  "CreditGrantType",
1181
1187
  "CreditLedgerEventType",
1188
+ "CreditLedgerFragment",
1182
1189
  "CreditLedgerInput",
1183
1190
  "CreditRateInput",
1184
1191
  "CreditsBalanceSummaryFragment",
@@ -1396,6 +1403,9 @@ __all__ = [
1396
1403
  "GetCreditGrants",
1397
1404
  "GetCreditGrantsCreditGrants",
1398
1405
  "GetCreditGrantsInput",
1406
+ "GetCreditLedger",
1407
+ "GetCreditLedgerCreditsLedger",
1408
+ "GetCreditLedgerCreditsLedgerEvents",
1399
1409
  "GetCustomerById",
1400
1410
  "GetCustomerByIdGetCustomerByRefId",
1401
1411
  "GetCustomerByRefIdInput",
@@ -21,6 +21,7 @@ from .get_checkout_state import GetCheckoutState
21
21
  from .get_coupons import GetCoupons
22
22
  from .get_credit_balance import GetCreditBalance
23
23
  from .get_credit_grants import GetCreditGrants
24
+ from .get_credit_ledger import GetCreditLedger
24
25
  from .get_customer_by_id import GetCustomerById
25
26
  from .get_customer_portal_by_ref_id import GetCustomerPortalByRefId
26
27
  from .get_customer_statistics import GetCustomerStatistics
@@ -47,6 +48,7 @@ from .input_types import (
47
48
  CheckoutStateInput,
48
49
  CreditBalanceSummaryInput,
49
50
  CreditGrantInput,
51
+ CreditLedgerInput,
50
52
  CursorPaging,
51
53
  CustomerPortalInput,
52
54
  DelegateSubscriptionToCustomerInput,
@@ -6759,3 +6761,36 @@ class AsyncClient(AsyncBaseClient):
6759
6761
  )
6760
6762
  data = self.get_data(response)
6761
6763
  return GetCreditGrants.model_validate(data)
6764
+
6765
+ async def get_credit_ledger(
6766
+ self, input: CreditLedgerInput, **kwargs: Any
6767
+ ) -> GetCreditLedger:
6768
+ query = gql(
6769
+ """
6770
+ query GetCreditLedger($input: CreditLedgerInput!) {
6771
+ creditsLedger(input: $input) {
6772
+ events {
6773
+ ...CreditLedgerFragment
6774
+ }
6775
+ }
6776
+ }
6777
+
6778
+ fragment CreditLedgerFragment on CreditLedgerEvent {
6779
+ timestamp
6780
+ eventType
6781
+ customerId
6782
+ resourceId
6783
+ eventId
6784
+ featureId
6785
+ amount
6786
+ creditGrantId
6787
+ creditCurrencyId
6788
+ }
6789
+ """
6790
+ )
6791
+ variables: Dict[str, object] = {"input": input}
6792
+ response = await self.execute(
6793
+ query=query, operation_name="GetCreditLedger", variables=variables, **kwargs
6794
+ )
6795
+ data = self.get_data(response)
6796
+ return GetCreditLedger.model_validate(data)
stigg/generated/client.py CHANGED
@@ -21,6 +21,7 @@ from .get_checkout_state import GetCheckoutState
21
21
  from .get_coupons import GetCoupons
22
22
  from .get_credit_balance import GetCreditBalance
23
23
  from .get_credit_grants import GetCreditGrants
24
+ from .get_credit_ledger import GetCreditLedger
24
25
  from .get_customer_by_id import GetCustomerById
25
26
  from .get_customer_portal_by_ref_id import GetCustomerPortalByRefId
26
27
  from .get_customer_statistics import GetCustomerStatistics
@@ -47,6 +48,7 @@ from .input_types import (
47
48
  CheckoutStateInput,
48
49
  CreditBalanceSummaryInput,
49
50
  CreditGrantInput,
51
+ CreditLedgerInput,
50
52
  CursorPaging,
51
53
  CustomerPortalInput,
52
54
  DelegateSubscriptionToCustomerInput,
@@ -6753,3 +6755,36 @@ class Client(BaseClient):
6753
6755
  )
6754
6756
  data = self.get_data(response)
6755
6757
  return GetCreditGrants.model_validate(data)
6758
+
6759
+ def get_credit_ledger(
6760
+ self, input: CreditLedgerInput, **kwargs: Any
6761
+ ) -> GetCreditLedger:
6762
+ query = gql(
6763
+ """
6764
+ query GetCreditLedger($input: CreditLedgerInput!) {
6765
+ creditsLedger(input: $input) {
6766
+ events {
6767
+ ...CreditLedgerFragment
6768
+ }
6769
+ }
6770
+ }
6771
+
6772
+ fragment CreditLedgerFragment on CreditLedgerEvent {
6773
+ timestamp
6774
+ eventType
6775
+ customerId
6776
+ resourceId
6777
+ eventId
6778
+ featureId
6779
+ amount
6780
+ creditGrantId
6781
+ creditCurrencyId
6782
+ }
6783
+ """
6784
+ )
6785
+ variables: Dict[str, object] = {"input": input}
6786
+ response = self.execute(
6787
+ query=query, operation_name="GetCreditLedger", variables=variables, **kwargs
6788
+ )
6789
+ data = self.get_data(response)
6790
+ return GetCreditLedger.model_validate(data)
@@ -16,6 +16,7 @@ from .enums import (
16
16
  CouponStatus,
17
17
  CouponType,
18
18
  CreditGrantType,
19
+ CreditLedgerEventType,
19
20
  Currency,
20
21
  DiscountDurationType,
21
22
  DiscountType,
@@ -81,29 +82,41 @@ class PriceTierFragmentFlatPrice(BaseModel):
81
82
  currency: Currency
82
83
 
83
84
 
84
- class OveragePriceFragment(BaseModel):
85
+ class PriceFragment(BaseModel):
85
86
  billing_model: BillingModel = Field(alias="billingModel")
86
87
  billing_period: BillingPeriod = Field(alias="billingPeriod")
88
+ billing_cadence: BillingCadence = Field(alias="billingCadence")
87
89
  billing_id: Optional[str] = Field(alias="billingId", default=None)
90
+ min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
91
+ max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
88
92
  billing_country_code: Optional[str] = Field(
89
93
  alias="billingCountryCode", default=None
90
94
  )
91
- price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
95
+ price: Optional["PriceFragmentPrice"] = Field(default=None)
96
+ credit_rate: Optional["PriceFragmentCreditRate"] = Field(
97
+ alias="creditRate", default=None
98
+ )
92
99
  tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
93
- tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
94
- feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
100
+ tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
101
+ feature: Optional["PriceFragmentFeature"] = Field(default=None)
102
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
95
103
 
96
104
 
97
- class OveragePriceFragmentPrice(BaseModel):
105
+ class PriceFragmentPrice(BaseModel):
98
106
  amount: float
99
107
  currency: Currency
100
108
 
101
109
 
102
- class OveragePriceFragmentTiers(PriceTierFragment):
110
+ class PriceFragmentCreditRate(BaseModel):
111
+ amount: float
112
+ custom_currency_id: Any = Field(alias="customCurrencyId")
113
+
114
+
115
+ class PriceFragmentTiers(PriceTierFragment):
103
116
  pass
104
117
 
105
118
 
106
- class OveragePriceFragmentFeature(BaseModel):
119
+ class PriceFragmentFeature(BaseModel):
107
120
  ref_id: str = Field(alias="refId")
108
121
  feature_units: Optional[str] = Field(alias="featureUnits", default=None)
109
122
  feature_units_plural: Optional[str] = Field(
@@ -148,41 +161,29 @@ class PackageEntitlementFragmentFeature(BaseModel):
148
161
  )
149
162
 
150
163
 
151
- class PriceFragment(BaseModel):
164
+ class OveragePriceFragment(BaseModel):
152
165
  billing_model: BillingModel = Field(alias="billingModel")
153
166
  billing_period: BillingPeriod = Field(alias="billingPeriod")
154
- billing_cadence: BillingCadence = Field(alias="billingCadence")
155
167
  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)
158
168
  billing_country_code: Optional[str] = Field(
159
169
  alias="billingCountryCode", default=None
160
170
  )
161
- price: Optional["PriceFragmentPrice"] = Field(default=None)
162
- credit_rate: Optional["PriceFragmentCreditRate"] = Field(
163
- alias="creditRate", default=None
164
- )
171
+ price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
165
172
  tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", 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)
173
+ tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
174
+ feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
169
175
 
170
176
 
171
- class PriceFragmentPrice(BaseModel):
177
+ class OveragePriceFragmentPrice(BaseModel):
172
178
  amount: float
173
179
  currency: Currency
174
180
 
175
181
 
176
- class PriceFragmentCreditRate(BaseModel):
177
- amount: float
178
- custom_currency_id: Any = Field(alias="customCurrencyId")
179
-
180
-
181
- class PriceFragmentTiers(PriceTierFragment):
182
+ class OveragePriceFragmentTiers(PriceTierFragment):
182
183
  pass
183
184
 
184
185
 
185
- class PriceFragmentFeature(BaseModel):
186
+ class OveragePriceFragmentFeature(BaseModel):
186
187
  ref_id: str = Field(alias="refId")
187
188
  feature_units: Optional[str] = Field(alias="featureUnits", default=None)
188
189
  feature_units_plural: Optional[str] = Field(
@@ -315,51 +316,6 @@ class EntitlementFragmentFeature(FeatureFragment):
315
316
  pass
316
317
 
317
318
 
318
- class SubscriptionInvoiceFragment(BaseModel):
319
- billing_id: str = Field(alias="billingId")
320
- status: SubscriptionInvoiceStatus
321
- created_at: Any = Field(alias="createdAt")
322
- due_date: Optional[Any] = Field(alias="dueDate", default=None)
323
- updated_at: Any = Field(alias="updatedAt")
324
- error_message: Optional[str] = Field(alias="errorMessage", default=None)
325
- requires_action: bool = Field(alias="requiresAction")
326
- payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
327
- payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
328
- pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
329
- billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
330
- alias="billingReason", default=None
331
- )
332
- currency: Optional[str] = Field(default=None)
333
- sub_total: Optional[float] = Field(alias="subTotal", default=None)
334
- sub_total_excluding_tax: Optional[float] = Field(
335
- alias="subTotalExcludingTax", default=None
336
- )
337
- total: Optional[float] = Field(default=None)
338
- total_excluding_tax: Optional[float] = Field(
339
- alias="totalExcludingTax", default=None
340
- )
341
- tax: Optional[float] = Field(default=None)
342
- amount_due: Optional[float] = Field(alias="amountDue", default=None)
343
- attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
344
-
345
-
346
- class SlimCustomerFragment(BaseModel):
347
- id: Any
348
- name: Optional[str] = Field(default=None)
349
- email: Optional[str] = Field(default=None)
350
- created_at: Optional[Any] = Field(alias="createdAt", default=None)
351
- updated_at: Any = Field(alias="updatedAt")
352
- ref_id: str = Field(alias="refId")
353
- customer_id: str = Field(alias="customerId")
354
- billing_id: Optional[str] = Field(alias="billingId", default=None)
355
- additional_meta_data: Optional[Any] = Field(
356
- alias="additionalMetaData", default=None
357
- )
358
- aws_marketplace_customer_id: Optional[str] = Field(
359
- alias="awsMarketplaceCustomerId", default=None
360
- )
361
-
362
-
363
319
  class SubscriptionScheduledUpdateData(BaseModel):
364
320
  subscription_schedule_type: SubscriptionScheduleType = Field(
365
321
  alias="subscriptionScheduleType"
@@ -642,6 +598,10 @@ class PlanFragmentDefaultTrialConfigBudget(BaseModel):
642
598
  limit: float
643
599
 
644
600
 
601
+ class CustomerResourceFragment(BaseModel):
602
+ resource_id: str = Field(alias="resourceId")
603
+
604
+
645
605
  class SubscriptionFutureUpdateData(BaseModel):
646
606
  subscription_schedule_type: SubscriptionScheduleType = Field(
647
607
  alias="subscriptionScheduleType"
@@ -796,8 +756,53 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
796
756
  feature_id: Optional[str] = Field(alias="featureId", default=None)
797
757
 
798
758
 
799
- class CustomerResourceFragment(BaseModel):
800
- resource_id: str = Field(alias="resourceId")
759
+ class SlimCustomerFragment(BaseModel):
760
+ id: Any
761
+ name: Optional[str] = Field(default=None)
762
+ email: Optional[str] = Field(default=None)
763
+ created_at: Optional[Any] = Field(alias="createdAt", default=None)
764
+ updated_at: Any = Field(alias="updatedAt")
765
+ ref_id: str = Field(alias="refId")
766
+ customer_id: str = Field(alias="customerId")
767
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
768
+ additional_meta_data: Optional[Any] = Field(
769
+ alias="additionalMetaData", default=None
770
+ )
771
+ aws_marketplace_customer_id: Optional[str] = Field(
772
+ alias="awsMarketplaceCustomerId", default=None
773
+ )
774
+
775
+
776
+ class SubscriptionInvoiceFragment(BaseModel):
777
+ billing_id: str = Field(alias="billingId")
778
+ status: SubscriptionInvoiceStatus
779
+ created_at: Any = Field(alias="createdAt")
780
+ due_date: Optional[Any] = Field(alias="dueDate", default=None)
781
+ updated_at: Any = Field(alias="updatedAt")
782
+ error_message: Optional[str] = Field(alias="errorMessage", default=None)
783
+ requires_action: bool = Field(alias="requiresAction")
784
+ payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
785
+ payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
786
+ pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
787
+ billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
788
+ alias="billingReason", default=None
789
+ )
790
+ currency: Optional[str] = Field(default=None)
791
+ sub_total: Optional[float] = Field(alias="subTotal", default=None)
792
+ sub_total_excluding_tax: Optional[float] = Field(
793
+ alias="subTotalExcludingTax", default=None
794
+ )
795
+ total: Optional[float] = Field(default=None)
796
+ total_excluding_tax: Optional[float] = Field(
797
+ alias="totalExcludingTax", default=None
798
+ )
799
+ tax: Optional[float] = Field(default=None)
800
+ amount_due: Optional[float] = Field(alias="amountDue", default=None)
801
+ attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
802
+
803
+
804
+ class SubscriptionTrialConfigurationFragment(BaseModel):
805
+ trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
801
806
 
802
807
 
803
808
  class TotalPriceFragment(BaseModel):
@@ -815,10 +820,6 @@ class TotalPriceFragmentTotal(BaseModel):
815
820
  currency: Currency
816
821
 
817
822
 
818
- class SubscriptionTrialConfigurationFragment(BaseModel):
819
- trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
820
-
821
-
822
823
  class SubscriptionFragment(BaseModel):
823
824
  id: Any
824
825
  subscription_id: str = Field(alias="subscriptionId")
@@ -1005,16 +1006,16 @@ class CheckoutConfigurationFragmentContent(BaseModel):
1005
1006
  )
1006
1007
 
1007
1008
 
1008
- class ZuoraCheckoutCredentialsFragment(BaseModel):
1009
- publishable_key: str = Field(alias="publishableKey")
1010
-
1011
-
1012
1009
  class StripeCheckoutCredentialsFragment(BaseModel):
1013
1010
  account_id: Optional[str] = Field(alias="accountId", default=None)
1014
1011
  setup_secret: str = Field(alias="setupSecret")
1015
1012
  public_key: Optional[str] = Field(alias="publicKey", default=None)
1016
1013
 
1017
1014
 
1015
+ class ZuoraCheckoutCredentialsFragment(BaseModel):
1016
+ publishable_key: str = Field(alias="publishableKey")
1017
+
1018
+
1018
1019
  class PromotionalEntitlementFragment(BaseModel):
1019
1020
  status: PromotionalEntitlementStatus
1020
1021
  usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
@@ -1222,6 +1223,18 @@ class CreditGrantFragmentCost(BaseModel):
1222
1223
  currency: Currency
1223
1224
 
1224
1225
 
1226
+ class CreditLedgerFragment(BaseModel):
1227
+ timestamp: str
1228
+ event_type: CreditLedgerEventType = Field(alias="eventType")
1229
+ customer_id: str = Field(alias="customerId")
1230
+ resource_id: Optional[str] = Field(alias="resourceId", default=None)
1231
+ event_id: Optional[str] = Field(alias="eventId", default=None)
1232
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
1233
+ amount: float
1234
+ credit_grant_id: str = Field(alias="creditGrantId")
1235
+ credit_currency_id: str = Field(alias="creditCurrencyId")
1236
+
1237
+
1225
1238
  class CreditsBalanceSummaryFragment(BaseModel):
1226
1239
  customer_id: str = Field(alias="customerId")
1227
1240
  balances: List["CreditsBalanceSummaryFragmentBalances"]
@@ -1352,6 +1365,13 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
1352
1365
  pass
1353
1366
 
1354
1367
 
1368
+ class CustomerPortalSubscriptionAddonFragment(BaseModel):
1369
+ addon_id: str = Field(alias="addonId")
1370
+ description: Optional[str] = Field(default=None)
1371
+ display_name: str = Field(alias="displayName")
1372
+ quantity: int
1373
+
1374
+
1355
1375
  class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
1356
1376
  subscription_schedule_type: SubscriptionScheduleType = Field(
1357
1377
  alias="subscriptionScheduleType"
@@ -1556,13 +1576,6 @@ class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1556
1576
  )
1557
1577
 
1558
1578
 
1559
- class CustomerPortalSubscriptionAddonFragment(BaseModel):
1560
- addon_id: str = Field(alias="addonId")
1561
- description: Optional[str] = Field(default=None)
1562
- display_name: str = Field(alias="displayName")
1563
- quantity: int
1564
-
1565
-
1566
1579
  class CustomerPortalSubscriptionFragment(BaseModel):
1567
1580
  subscription_id: str = Field(alias="subscriptionId")
1568
1581
  plan_id: str = Field(alias="planId")
@@ -1904,6 +1917,41 @@ class MockPaywallAddonDependencyFragment(BaseModel):
1904
1917
  description: Optional[str] = Field(default=None)
1905
1918
 
1906
1919
 
1920
+ class MockPaywallPackageEntitlementFragment(BaseModel):
1921
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1922
+ has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
1923
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1924
+ reset_period: Optional[EntitlementResetPeriod] = Field(
1925
+ alias="resetPeriod", default=None
1926
+ )
1927
+ hidden_from_widgets: Optional[List[WidgetType]] = Field(
1928
+ alias="hiddenFromWidgets", default=None
1929
+ )
1930
+ display_name_override: Optional[str] = Field(
1931
+ alias="displayNameOverride", default=None
1932
+ )
1933
+ enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
1934
+ is_granted: bool = Field(alias="isGranted")
1935
+ feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
1936
+ default=None
1937
+ )
1938
+
1939
+
1940
+ class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
1941
+ feature_type: FeatureType = Field(alias="featureType")
1942
+ meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1943
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1944
+ feature_units_plural: Optional[str] = Field(
1945
+ alias="featureUnitsPlural", default=None
1946
+ )
1947
+ display_name: str = Field(alias="displayName")
1948
+ description: Optional[str] = Field(default=None)
1949
+ ref_id: str = Field(alias="refId")
1950
+ additional_meta_data: Optional[Any] = Field(
1951
+ alias="additionalMetaData", default=None
1952
+ )
1953
+
1954
+
1907
1955
  class MockPaywallPriceFragment(BaseModel):
1908
1956
  billing_model: BillingModel = Field(alias="billingModel")
1909
1957
  billing_period: BillingPeriod = Field(alias="billingPeriod")
@@ -1946,41 +1994,6 @@ class MockPaywallPriceFragmentFeature(BaseModel):
1946
1994
  display_name: str = Field(alias="displayName")
1947
1995
 
1948
1996
 
1949
- class MockPaywallPackageEntitlementFragment(BaseModel):
1950
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1951
- has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
1952
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1953
- reset_period: Optional[EntitlementResetPeriod] = Field(
1954
- alias="resetPeriod", default=None
1955
- )
1956
- hidden_from_widgets: Optional[List[WidgetType]] = Field(
1957
- alias="hiddenFromWidgets", default=None
1958
- )
1959
- display_name_override: Optional[str] = Field(
1960
- alias="displayNameOverride", default=None
1961
- )
1962
- enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
1963
- is_granted: bool = Field(alias="isGranted")
1964
- feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
1965
- default=None
1966
- )
1967
-
1968
-
1969
- class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
1970
- feature_type: FeatureType = Field(alias="featureType")
1971
- meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1972
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1973
- feature_units_plural: Optional[str] = Field(
1974
- alias="featureUnitsPlural", default=None
1975
- )
1976
- display_name: str = Field(alias="displayName")
1977
- description: Optional[str] = Field(default=None)
1978
- ref_id: str = Field(alias="refId")
1979
- additional_meta_data: Optional[Any] = Field(
1980
- alias="additionalMetaData", default=None
1981
- )
1982
-
1983
-
1984
1997
  class MockPaywallAddonFragment(BaseModel):
1985
1998
  ref_id: str = Field(alias="refId")
1986
1999
  display_name: str = Field(alias="displayName")
@@ -2959,41 +2972,42 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
2959
2972
 
2960
2973
  AddonDependencyFragment.model_rebuild()
2961
2974
  PriceTierFragment.model_rebuild()
2962
- OveragePriceFragment.model_rebuild()
2963
- PackageEntitlementFragment.model_rebuild()
2964
2975
  PriceFragment.model_rebuild()
2976
+ PackageEntitlementFragment.model_rebuild()
2977
+ OveragePriceFragment.model_rebuild()
2965
2978
  AddonFragment.model_rebuild()
2966
2979
  FeatureFragment.model_rebuild()
2967
2980
  EntitlementFragment.model_rebuild()
2968
- SubscriptionInvoiceFragment.model_rebuild()
2969
- SlimCustomerFragment.model_rebuild()
2970
2981
  SubscriptionScheduledUpdateData.model_rebuild()
2971
2982
  PlanCompatiblePackageGroupsFragment.model_rebuild()
2972
2983
  ProductFragment.model_rebuild()
2973
2984
  PlanFragment.model_rebuild()
2974
- SubscriptionFutureUpdateData.model_rebuild()
2975
2985
  CustomerResourceFragment.model_rebuild()
2976
- TotalPriceFragment.model_rebuild()
2986
+ SubscriptionFutureUpdateData.model_rebuild()
2987
+ SlimCustomerFragment.model_rebuild()
2988
+ SubscriptionInvoiceFragment.model_rebuild()
2977
2989
  SubscriptionTrialConfigurationFragment.model_rebuild()
2990
+ TotalPriceFragment.model_rebuild()
2978
2991
  SubscriptionFragment.model_rebuild()
2979
2992
  ApplySubscriptionFragment.model_rebuild()
2980
2993
  FontVariantFragment.model_rebuild()
2981
2994
  TypographyConfigurationFragment.model_rebuild()
2982
2995
  CheckoutConfigurationFragment.model_rebuild()
2983
- ZuoraCheckoutCredentialsFragment.model_rebuild()
2984
2996
  StripeCheckoutCredentialsFragment.model_rebuild()
2997
+ ZuoraCheckoutCredentialsFragment.model_rebuild()
2985
2998
  PromotionalEntitlementFragment.model_rebuild()
2986
2999
  CouponFragment.model_rebuild()
2987
3000
  CustomerFragment.model_rebuild()
2988
3001
  CheckoutStateFragment.model_rebuild()
2989
3002
  CreditGrantFragment.model_rebuild()
3003
+ CreditLedgerFragment.model_rebuild()
2990
3004
  CreditsBalanceSummaryFragment.model_rebuild()
2991
3005
  CustomerPortalBillingInformationFragment.model_rebuild()
2992
3006
  CustomerPortalConfigurationFragment.model_rebuild()
2993
3007
  CustomerPortalEntitlementFragment.model_rebuild()
3008
+ CustomerPortalSubscriptionAddonFragment.model_rebuild()
2994
3009
  CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
2995
3010
  CustomerPortalSubscriptionPriceFragment.model_rebuild()
2996
- CustomerPortalSubscriptionAddonFragment.model_rebuild()
2997
3011
  CustomerPortalSubscriptionFragment.model_rebuild()
2998
3012
  CustomerPortalPromotionalEntitlementFragment.model_rebuild()
2999
3013
  CustomerPortalFragment.model_rebuild()
@@ -3005,8 +3019,8 @@ EntitlementsUpdatedPayload.model_rebuild()
3005
3019
  ImmediateSubscriptionPreviewInvoiceFragment.model_rebuild()
3006
3020
  LayoutConfigurationFragment.model_rebuild()
3007
3021
  MockPaywallAddonDependencyFragment.model_rebuild()
3008
- MockPaywallPriceFragment.model_rebuild()
3009
3022
  MockPaywallPackageEntitlementFragment.model_rebuild()
3023
+ MockPaywallPriceFragment.model_rebuild()
3010
3024
  MockPaywallAddonFragment.model_rebuild()
3011
3025
  MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
3012
3026
  MockPaywallPlanFragment.model_rebuild()
@@ -0,0 +1,25 @@
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 CreditLedgerFragment
10
+
11
+
12
+ class GetCreditLedger(BaseModel):
13
+ credits_ledger: "GetCreditLedgerCreditsLedger" = Field(alias="creditsLedger")
14
+
15
+
16
+ class GetCreditLedgerCreditsLedger(BaseModel):
17
+ events: List["GetCreditLedgerCreditsLedgerEvents"]
18
+
19
+
20
+ class GetCreditLedgerCreditsLedgerEvents(CreditLedgerFragment):
21
+ pass
22
+
23
+
24
+ GetCreditLedger.model_rebuild()
25
+ GetCreditLedgerCreditsLedger.model_rebuild()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client-v2
3
- Version: 3.84.1
3
+ Version: 3.88.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=a2uqgR2h76C6ESmJ8Q6dkxKUNZZwmE8ps7-wCQ8Nwck,76924
109
+ stigg/generated/__init__.py,sha256=uVDTPBsbVlNJE7KwAMmGaaD6YCYxLSOT2xWeEtCLK9E,77209
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=YYS6C8Xy1X-zyM5TIYWKpsyInRq31GH1WR8dUjBaFQo,188348
113
+ stigg/generated/async_client.py,sha256=jcUcAcOqiLVl1MEl2ul_9NZ5CtqcxLRGA_EK982J6pc,189408
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=gImxn-q8RfJ4_MTDJhSr2JjCRKWVvHgEm5ofvZdUHEM,187649
118
+ stigg/generated/client.py,sha256=4gld5Wxld7UM4DzoF7vzwvMuVv0sKC6ryDosGh6a0k8,188697
119
119
  stigg/generated/create_payment_session.py,sha256=VRPT8Bbvb_evFHMav9y_pXWHMVbkRy9csf5SJCCUARk,470
120
120
  stigg/generated/create_subscription.py,sha256=vbpBJ_daXHcQDtvU3vbwSr2E7s4VGRHxqPavyTV3Mtk,457
121
121
  stigg/generated/delegate_subscription_to_customer.py,sha256=0TgQDO0Hk-z7X7PGtqhvciqa8IjkToK9cpiX3Kqu_UY,561
@@ -124,13 +124,14 @@ stigg/generated/enums.py,sha256=uz0ELcMolFbn8vz4GbOy1HyzaoIrFkGfJ6t9tcyklmA,3901
124
124
  stigg/generated/estimate_subscription.py,sha256=c0_vg0A_Hi8fdjeGudWZ0WziUF9jcjX5rlRitGMAMaQ,479
125
125
  stigg/generated/estimate_subscription_update.py,sha256=ZYIFqqHHDfzhrOn95QnMmPNTXZ7JrKWRlUFzk8fWwKA,528
126
126
  stigg/generated/exceptions.py,sha256=OQu-ZYCCV4VyMWTd1HR8gIjIK2CrA_JMlFxqOAJugWY,2411
127
- stigg/generated/fragments.py,sha256=q7F9pkVGhN2OYFIoJKiXLL0v36LAbA5DvT2jQm1DUXA,108321
127
+ stigg/generated/fragments.py,sha256=KUqueH-9nuFAXWtOS0gCRnmPqO7dMRAsFTMRAq_D7MA,108906
128
128
  stigg/generated/get_active_subscriptions.py,sha256=ngZ9jr8vzGI59wT8FhUFl46a8j9waoNjeZ1_lrcu2ww,513
129
129
  stigg/generated/get_active_subscriptions_list.py,sha256=Awi9al2MXxdt_y7ZnWYZh8U3R9XiX50c7TyO4WZxyhw,541
130
130
  stigg/generated/get_checkout_state.py,sha256=SAOXGAND879dwb7R5mr5LPZuPVuMUDwNR5M4mgmHv6w,409
131
131
  stigg/generated/get_coupons.py,sha256=KiDyZKrIWLlXCORhEfwjZWw6urYALU6Z7dUn-1xc3j4,547
132
132
  stigg/generated/get_credit_balance.py,sha256=b7PFYjOneQVXinRSgI2RQr0bvgPNmpGefljo99jZsFQ,468
133
133
  stigg/generated/get_credit_grants.py,sha256=NOfbXNyS2G4tGrsxQVj2mISPKbkaTSLCRGEKd6cKAzQ,428
134
+ stigg/generated/get_credit_ledger.py,sha256=MKfqQJCQF7ymb0d6cwTafQv6S7WrWg3-TAoKxB7JnD8,583
134
135
  stigg/generated/get_customer_by_id.py,sha256=g_7q4ncmz6GH4Tl9fnlRYh-bxG5vHXsf9EDPEbqvdyA,505
135
136
  stigg/generated/get_customer_portal_by_ref_id.py,sha256=k_P5_2HA4xlr46s6KRJ3Y4wr5nLBve592BMMKWlWPTM,461
136
137
  stigg/generated/get_customer_statistics.py,sha256=4lchx8yhXTJ_Jtjqnn1BySLrcmla46VBUAxT8Jp5NjQ,515
@@ -169,7 +170,7 @@ stigg/generated/unarchive_customer.py,sha256=0OVttDrNNOHp6xIpLfDj--XfZL0ogkSpy9e
169
170
  stigg/generated/unlink_promotional_entitlements_group.py,sha256=8UIRQ0CNvReRfX0LZmDYkRn9mMjZm9n41YG6-p7Z8qU,636
170
171
  stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
171
172
  stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
172
- stigg_api_client_v2-3.84.1.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
173
- stigg_api_client_v2-3.84.1.dist-info/METADATA,sha256=XnoAaHXCrAR3Il56-yqV6ruDmFTByk-xaCsAdhMLZug,2257
174
- stigg_api_client_v2-3.84.1.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
175
- stigg_api_client_v2-3.84.1.dist-info/RECORD,,
173
+ stigg_api_client_v2-3.88.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
174
+ stigg_api_client_v2-3.88.0.dist-info/METADATA,sha256=vIwO6a_4gZIY17M23xM-eDUM5rXYr0BVqZ3AyjIFTaY,2257
175
+ stigg_api_client_v2-3.88.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
176
+ stigg_api_client_v2-3.88.0.dist-info/RECORD,,