stigg-api-client-v2 3.81.0__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.

@@ -59,6 +59,7 @@ from .enums import (
59
59
  DiscountType,
60
60
  EntitlementBehavior,
61
61
  EntitlementResetPeriod,
62
+ EntitlementsStateAccessDeniedReason,
62
63
  EntitySelectionMode,
63
64
  EnvironmentAccessRole,
64
65
  EnvironmentProvisionStatus,
@@ -193,6 +194,7 @@ from .fragments import (
193
194
  CouponFragmentSyncStates,
194
195
  CreditGrantFragment,
195
196
  CreditGrantFragmentCost,
197
+ CreditLedgerFragment,
196
198
  CreditsBalanceSummaryFragment,
197
199
  CreditsBalanceSummaryFragmentBalances,
198
200
  CreditsBalanceSummaryFragmentBalancesCurrency,
@@ -548,6 +550,11 @@ from .get_coupons import (
548
550
  )
549
551
  from .get_credit_balance import GetCreditBalance, GetCreditBalanceCreditBalanceSummary
550
552
  from .get_credit_grants import GetCreditGrants, GetCreditGrantsCreditGrants
553
+ from .get_credit_ledger import (
554
+ GetCreditLedger,
555
+ GetCreditLedgerCreditsLedger,
556
+ GetCreditLedgerCreditsLedgerEvents,
557
+ )
551
558
  from .get_customer_by_id import GetCustomerById, GetCustomerByIdGetCustomerByRefId
552
559
  from .get_customer_portal_by_ref_id import (
553
560
  GetCustomerPortalByRefId,
@@ -559,6 +566,11 @@ from .get_customer_statistics import (
559
566
  )
560
567
  from .get_entitlement import GetEntitlement, GetEntitlementEntitlement
561
568
  from .get_entitlements import GetEntitlements, GetEntitlementsEntitlements
569
+ from .get_entitlements_state import (
570
+ GetEntitlementsState,
571
+ GetEntitlementsStateEntitlementsState,
572
+ GetEntitlementsStateEntitlementsStateEntitlements,
573
+ )
562
574
  from .get_mock_paywall import (
563
575
  GetMockPaywall,
564
576
  GetMockPaywallMockPaywall,
@@ -1173,6 +1185,7 @@ __all__ = [
1173
1185
  "CreditGrantInput",
1174
1186
  "CreditGrantType",
1175
1187
  "CreditLedgerEventType",
1188
+ "CreditLedgerFragment",
1176
1189
  "CreditLedgerInput",
1177
1190
  "CreditRateInput",
1178
1191
  "CreditsBalanceSummaryFragment",
@@ -1311,6 +1324,7 @@ __all__ = [
1311
1324
  "EntitlementUsageUpdated",
1312
1325
  "EntitlementUsageUpdatedEntitlement",
1313
1326
  "EntitlementUsageUpdatedUsage",
1327
+ "EntitlementsStateAccessDeniedReason",
1314
1328
  "EntitlementsUpdatedPayload",
1315
1329
  "EntitlementsUpdatedPayloadEntitlements",
1316
1330
  "EntitySelectionMode",
@@ -1389,6 +1403,9 @@ __all__ = [
1389
1403
  "GetCreditGrants",
1390
1404
  "GetCreditGrantsCreditGrants",
1391
1405
  "GetCreditGrantsInput",
1406
+ "GetCreditLedger",
1407
+ "GetCreditLedgerCreditsLedger",
1408
+ "GetCreditLedgerCreditsLedgerEvents",
1392
1409
  "GetCustomerById",
1393
1410
  "GetCustomerByIdGetCustomerByRefId",
1394
1411
  "GetCustomerByRefIdInput",
@@ -1400,6 +1417,9 @@ __all__ = [
1400
1417
  "GetEntitlementEntitlement",
1401
1418
  "GetEntitlements",
1402
1419
  "GetEntitlementsEntitlements",
1420
+ "GetEntitlementsState",
1421
+ "GetEntitlementsStateEntitlementsState",
1422
+ "GetEntitlementsStateEntitlementsStateEntitlements",
1403
1423
  "GetMockPaywall",
1404
1424
  "GetMockPaywallMockPaywall",
1405
1425
  "GetMockPaywallMockPaywallConfiguration",
@@ -21,11 +21,13 @@ 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
27
28
  from .get_entitlement import GetEntitlement
28
29
  from .get_entitlements import GetEntitlements
30
+ from .get_entitlements_state import GetEntitlementsState
29
31
  from .get_mock_paywall import GetMockPaywall
30
32
  from .get_paywall import GetPaywall
31
33
  from .get_products import GetProducts
@@ -46,6 +48,7 @@ from .input_types import (
46
48
  CheckoutStateInput,
47
49
  CreditBalanceSummaryInput,
48
50
  CreditGrantInput,
51
+ CreditLedgerInput,
49
52
  CursorPaging,
50
53
  CustomerPortalInput,
51
54
  DelegateSubscriptionToCustomerInput,
@@ -5286,6 +5289,87 @@ class AsyncClient(AsyncBaseClient):
5286
5289
  data = self.get_data(response)
5287
5290
  return GetEntitlements.model_validate(data)
5288
5291
 
5292
+ async def get_entitlements_state(
5293
+ self, input: FetchEntitlementsQuery, **kwargs: Any
5294
+ ) -> GetEntitlementsState:
5295
+ _query = gql(
5296
+ """
5297
+ query GetEntitlementsState($query: FetchEntitlementsQuery!) {
5298
+ entitlementsState(query: $query) {
5299
+ entitlements {
5300
+ ...EntitlementFragment
5301
+ }
5302
+ accessDeniedReason
5303
+ }
5304
+ }
5305
+
5306
+ fragment EntitlementFragment on Entitlement {
5307
+ __typename
5308
+ isGranted
5309
+ accessDeniedReason
5310
+ customerId
5311
+ resourceId
5312
+ usageLimit
5313
+ hasUnlimitedUsage
5314
+ hasSoftLimit
5315
+ currentUsage
5316
+ requestedUsage
5317
+ requestedValues
5318
+ enumValues
5319
+ entitlementUpdatedAt
5320
+ usageUpdatedAt
5321
+ usagePeriodAnchor
5322
+ usagePeriodStart
5323
+ usagePeriodEnd
5324
+ nextResetDate
5325
+ resetPeriod
5326
+ resetPeriodConfiguration {
5327
+ ...ResetPeriodConfigurationFragment
5328
+ }
5329
+ feature {
5330
+ ...FeatureFragment
5331
+ }
5332
+ }
5333
+
5334
+ fragment FeatureFragment on EntitlementFeature {
5335
+ __typename
5336
+ featureType
5337
+ meterType
5338
+ featureUnits
5339
+ featureUnitsPlural
5340
+ description
5341
+ displayName
5342
+ refId
5343
+ unitTransformation {
5344
+ divide
5345
+ round
5346
+ }
5347
+ }
5348
+
5349
+ fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {
5350
+ __typename
5351
+ ... on YearlyResetPeriodConfig {
5352
+ yearlyAccordingTo
5353
+ }
5354
+ ... on MonthlyResetPeriodConfig {
5355
+ monthlyAccordingTo
5356
+ }
5357
+ ... on WeeklyResetPeriodConfig {
5358
+ weeklyAccordingTo
5359
+ }
5360
+ }
5361
+ """
5362
+ )
5363
+ variables: Dict[str, object] = {"query": input}
5364
+ response = await self.execute(
5365
+ query=_query,
5366
+ operation_name="GetEntitlementsState",
5367
+ variables=variables,
5368
+ **kwargs
5369
+ )
5370
+ data = self.get_data(response)
5371
+ return GetEntitlementsState.model_validate(data)
5372
+
5289
5373
  async def get_entitlement(
5290
5374
  self, input: FetchEntitlementQuery, **kwargs: Any
5291
5375
  ) -> GetEntitlement:
@@ -6677,3 +6761,36 @@ class AsyncClient(AsyncBaseClient):
6677
6761
  )
6678
6762
  data = self.get_data(response)
6679
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,11 +21,13 @@ 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
27
28
  from .get_entitlement import GetEntitlement
28
29
  from .get_entitlements import GetEntitlements
30
+ from .get_entitlements_state import GetEntitlementsState
29
31
  from .get_mock_paywall import GetMockPaywall
30
32
  from .get_paywall import GetPaywall
31
33
  from .get_products import GetProducts
@@ -46,6 +48,7 @@ from .input_types import (
46
48
  CheckoutStateInput,
47
49
  CreditBalanceSummaryInput,
48
50
  CreditGrantInput,
51
+ CreditLedgerInput,
49
52
  CursorPaging,
50
53
  CustomerPortalInput,
51
54
  DelegateSubscriptionToCustomerInput,
@@ -5282,6 +5285,87 @@ class Client(BaseClient):
5282
5285
  data = self.get_data(response)
5283
5286
  return GetEntitlements.model_validate(data)
5284
5287
 
5288
+ def get_entitlements_state(
5289
+ self, input: FetchEntitlementsQuery, **kwargs: Any
5290
+ ) -> GetEntitlementsState:
5291
+ _query = gql(
5292
+ """
5293
+ query GetEntitlementsState($query: FetchEntitlementsQuery!) {
5294
+ entitlementsState(query: $query) {
5295
+ entitlements {
5296
+ ...EntitlementFragment
5297
+ }
5298
+ accessDeniedReason
5299
+ }
5300
+ }
5301
+
5302
+ fragment EntitlementFragment on Entitlement {
5303
+ __typename
5304
+ isGranted
5305
+ accessDeniedReason
5306
+ customerId
5307
+ resourceId
5308
+ usageLimit
5309
+ hasUnlimitedUsage
5310
+ hasSoftLimit
5311
+ currentUsage
5312
+ requestedUsage
5313
+ requestedValues
5314
+ enumValues
5315
+ entitlementUpdatedAt
5316
+ usageUpdatedAt
5317
+ usagePeriodAnchor
5318
+ usagePeriodStart
5319
+ usagePeriodEnd
5320
+ nextResetDate
5321
+ resetPeriod
5322
+ resetPeriodConfiguration {
5323
+ ...ResetPeriodConfigurationFragment
5324
+ }
5325
+ feature {
5326
+ ...FeatureFragment
5327
+ }
5328
+ }
5329
+
5330
+ fragment FeatureFragment on EntitlementFeature {
5331
+ __typename
5332
+ featureType
5333
+ meterType
5334
+ featureUnits
5335
+ featureUnitsPlural
5336
+ description
5337
+ displayName
5338
+ refId
5339
+ unitTransformation {
5340
+ divide
5341
+ round
5342
+ }
5343
+ }
5344
+
5345
+ fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {
5346
+ __typename
5347
+ ... on YearlyResetPeriodConfig {
5348
+ yearlyAccordingTo
5349
+ }
5350
+ ... on MonthlyResetPeriodConfig {
5351
+ monthlyAccordingTo
5352
+ }
5353
+ ... on WeeklyResetPeriodConfig {
5354
+ weeklyAccordingTo
5355
+ }
5356
+ }
5357
+ """
5358
+ )
5359
+ variables: Dict[str, object] = {"query": input}
5360
+ response = self.execute(
5361
+ query=_query,
5362
+ operation_name="GetEntitlementsState",
5363
+ variables=variables,
5364
+ **kwargs
5365
+ )
5366
+ data = self.get_data(response)
5367
+ return GetEntitlementsState.model_validate(data)
5368
+
5285
5369
  def get_entitlement(
5286
5370
  self, input: FetchEntitlementQuery, **kwargs: Any
5287
5371
  ) -> GetEntitlement:
@@ -6671,3 +6755,36 @@ class Client(BaseClient):
6671
6755
  )
6672
6756
  data = self.get_data(response)
6673
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)
stigg/generated/enums.py CHANGED
@@ -377,6 +377,11 @@ class EntitlementResetPeriod(str, Enum):
377
377
  YEAR = "YEAR"
378
378
 
379
379
 
380
+ class EntitlementsStateAccessDeniedReason(str, Enum):
381
+ CustomerNotFound = "CustomerNotFound"
382
+ NoActiveSubscription = "NoActiveSubscription"
383
+
384
+
380
385
  class EntitySelectionMode(str, Enum):
381
386
  BLACK_LIST = "BLACK_LIST"
382
387
  WHITE_LIST = "WHITE_LIST"
@@ -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,
@@ -315,190 +316,6 @@ class EntitlementFragmentFeature(FeatureFragment):
315
316
  pass
316
317
 
317
318
 
318
- class SlimCustomerFragment(BaseModel):
319
- id: Any
320
- name: Optional[str] = Field(default=None)
321
- email: Optional[str] = Field(default=None)
322
- created_at: Optional[Any] = Field(alias="createdAt", default=None)
323
- updated_at: Any = Field(alias="updatedAt")
324
- ref_id: str = Field(alias="refId")
325
- customer_id: str = Field(alias="customerId")
326
- billing_id: Optional[str] = Field(alias="billingId", default=None)
327
- additional_meta_data: Optional[Any] = Field(
328
- alias="additionalMetaData", default=None
329
- )
330
- aws_marketplace_customer_id: Optional[str] = Field(
331
- alias="awsMarketplaceCustomerId", default=None
332
- )
333
-
334
-
335
- class CustomerResourceFragment(BaseModel):
336
- resource_id: str = Field(alias="resourceId")
337
-
338
-
339
- class TotalPriceFragment(BaseModel):
340
- sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
341
- total: "TotalPriceFragmentTotal"
342
-
343
-
344
- class TotalPriceFragmentSubTotal(BaseModel):
345
- amount: float
346
- currency: Currency
347
-
348
-
349
- class TotalPriceFragmentTotal(BaseModel):
350
- amount: float
351
- currency: Currency
352
-
353
-
354
- class SubscriptionInvoiceFragment(BaseModel):
355
- billing_id: str = Field(alias="billingId")
356
- status: SubscriptionInvoiceStatus
357
- created_at: Any = Field(alias="createdAt")
358
- due_date: Optional[Any] = Field(alias="dueDate", default=None)
359
- updated_at: Any = Field(alias="updatedAt")
360
- error_message: Optional[str] = Field(alias="errorMessage", default=None)
361
- requires_action: bool = Field(alias="requiresAction")
362
- payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
363
- payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
364
- pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
365
- billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
366
- alias="billingReason", default=None
367
- )
368
- currency: Optional[str] = Field(default=None)
369
- sub_total: Optional[float] = Field(alias="subTotal", default=None)
370
- sub_total_excluding_tax: Optional[float] = Field(
371
- alias="subTotalExcludingTax", default=None
372
- )
373
- total: Optional[float] = Field(default=None)
374
- total_excluding_tax: Optional[float] = Field(
375
- alias="totalExcludingTax", default=None
376
- )
377
- tax: Optional[float] = Field(default=None)
378
- amount_due: Optional[float] = Field(alias="amountDue", default=None)
379
- attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
380
-
381
-
382
- class PlanCompatiblePackageGroupsFragment(BaseModel):
383
- package_group_id: str = Field(alias="packageGroupId")
384
- display_name: str = Field(alias="displayName")
385
- addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
386
- default=None
387
- )
388
- options: "PlanCompatiblePackageGroupsFragmentOptions"
389
-
390
-
391
- class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
392
- pass
393
-
394
-
395
- class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
396
- min_items: Optional[float] = Field(alias="minItems", default=None)
397
- free_items: Optional[float] = Field(alias="freeItems", default=None)
398
-
399
-
400
- class ProductFragment(BaseModel):
401
- ref_id: str = Field(alias="refId")
402
- display_name: Optional[str] = Field(alias="displayName", default=None)
403
- description: Optional[str] = Field(default=None)
404
- additional_meta_data: Optional[Any] = Field(
405
- alias="additionalMetaData", default=None
406
- )
407
- product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
408
-
409
-
410
- class ProductFragmentProductSettings(BaseModel):
411
- downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
412
- alias="downgradePlan", default=None
413
- )
414
-
415
-
416
- class ProductFragmentProductSettingsDowngradePlan(BaseModel):
417
- ref_id: str = Field(alias="refId")
418
- display_name: str = Field(alias="displayName")
419
-
420
-
421
- class PlanFragment(BaseModel):
422
- id: Any
423
- ref_id: str = Field(alias="refId")
424
- display_name: str = Field(alias="displayName")
425
- description: Optional[str] = Field(default=None)
426
- billing_id: Optional[str] = Field(alias="billingId", default=None)
427
- version_number: int = Field(alias="versionNumber")
428
- additional_meta_data: Optional[Any] = Field(
429
- alias="additionalMetaData", default=None
430
- )
431
- hidden_from_widgets: Optional[List[WidgetType]] = Field(
432
- alias="hiddenFromWidgets", default=None
433
- )
434
- product: "PlanFragmentProduct"
435
- base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
436
- entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
437
- inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
438
- alias="inheritedEntitlements", default=None
439
- )
440
- compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
441
- alias="compatibleAddons", default=None
442
- )
443
- compatible_package_groups: Optional[
444
- List["PlanFragmentCompatiblePackageGroups"]
445
- ] = Field(alias="compatiblePackageGroups", default=None)
446
- prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
447
- overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
448
- alias="overagePrices", default=None
449
- )
450
- pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
451
- default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
452
- alias="defaultTrialConfig", default=None
453
- )
454
-
455
-
456
- class PlanFragmentProduct(ProductFragment):
457
- pass
458
-
459
-
460
- class PlanFragmentBasePlan(BaseModel):
461
- ref_id: str = Field(alias="refId")
462
- display_name: str = Field(alias="displayName")
463
-
464
-
465
- class PlanFragmentEntitlements(PackageEntitlementFragment):
466
- pass
467
-
468
-
469
- class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
470
- pass
471
-
472
-
473
- class PlanFragmentCompatibleAddons(AddonFragment):
474
- pass
475
-
476
-
477
- class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
478
- pass
479
-
480
-
481
- class PlanFragmentPrices(PriceFragment):
482
- pass
483
-
484
-
485
- class PlanFragmentOveragePrices(OveragePriceFragment):
486
- pass
487
-
488
-
489
- class PlanFragmentDefaultTrialConfig(BaseModel):
490
- duration: float
491
- units: TrialPeriodUnits
492
- budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
493
- trial_end_behavior: Optional[TrialEndBehavior] = Field(
494
- alias="trialEndBehavior", default=None
495
- )
496
-
497
-
498
- class PlanFragmentDefaultTrialConfigBudget(BaseModel):
499
- limit: float
500
-
501
-
502
319
  class SubscriptionScheduledUpdateData(BaseModel):
503
320
  subscription_schedule_type: SubscriptionScheduleType = Field(
504
321
  alias="subscriptionScheduleType"
@@ -637,28 +454,152 @@ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
637
454
  quantity: float
638
455
 
639
456
 
640
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
641
- BaseModel
642
- ):
643
- plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
644
- addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
645
- feature_id: Optional[str] = Field(alias="featureId", default=None)
457
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
458
+ BaseModel
459
+ ):
460
+ plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
461
+ addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
462
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
463
+
464
+
465
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
466
+ BaseModel
467
+ ):
468
+ typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
469
+ plan_ref_id: str = Field(alias="planRefId")
470
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
471
+
472
+
473
+ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
474
+ BaseModel
475
+ ):
476
+ typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
477
+ new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
478
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
479
+
480
+
481
+ class PlanCompatiblePackageGroupsFragment(BaseModel):
482
+ package_group_id: str = Field(alias="packageGroupId")
483
+ display_name: str = Field(alias="displayName")
484
+ addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
485
+ default=None
486
+ )
487
+ options: "PlanCompatiblePackageGroupsFragmentOptions"
488
+
489
+
490
+ class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
491
+ pass
492
+
493
+
494
+ class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
495
+ min_items: Optional[float] = Field(alias="minItems", default=None)
496
+ free_items: Optional[float] = Field(alias="freeItems", default=None)
497
+
498
+
499
+ class ProductFragment(BaseModel):
500
+ ref_id: str = Field(alias="refId")
501
+ display_name: Optional[str] = Field(alias="displayName", default=None)
502
+ description: Optional[str] = Field(default=None)
503
+ additional_meta_data: Optional[Any] = Field(
504
+ alias="additionalMetaData", default=None
505
+ )
506
+ product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
507
+
508
+
509
+ class ProductFragmentProductSettings(BaseModel):
510
+ downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
511
+ alias="downgradePlan", default=None
512
+ )
513
+
514
+
515
+ class ProductFragmentProductSettingsDowngradePlan(BaseModel):
516
+ ref_id: str = Field(alias="refId")
517
+ display_name: str = Field(alias="displayName")
518
+
519
+
520
+ class PlanFragment(BaseModel):
521
+ id: Any
522
+ ref_id: str = Field(alias="refId")
523
+ display_name: str = Field(alias="displayName")
524
+ description: Optional[str] = Field(default=None)
525
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
526
+ version_number: int = Field(alias="versionNumber")
527
+ additional_meta_data: Optional[Any] = Field(
528
+ alias="additionalMetaData", default=None
529
+ )
530
+ hidden_from_widgets: Optional[List[WidgetType]] = Field(
531
+ alias="hiddenFromWidgets", default=None
532
+ )
533
+ product: "PlanFragmentProduct"
534
+ base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
535
+ entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
536
+ inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
537
+ alias="inheritedEntitlements", default=None
538
+ )
539
+ compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
540
+ alias="compatibleAddons", default=None
541
+ )
542
+ compatible_package_groups: Optional[
543
+ List["PlanFragmentCompatiblePackageGroups"]
544
+ ] = Field(alias="compatiblePackageGroups", default=None)
545
+ prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
546
+ overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
547
+ alias="overagePrices", default=None
548
+ )
549
+ pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
550
+ default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
551
+ alias="defaultTrialConfig", default=None
552
+ )
553
+
554
+
555
+ class PlanFragmentProduct(ProductFragment):
556
+ pass
557
+
558
+
559
+ class PlanFragmentBasePlan(BaseModel):
560
+ ref_id: str = Field(alias="refId")
561
+ display_name: str = Field(alias="displayName")
562
+
563
+
564
+ class PlanFragmentEntitlements(PackageEntitlementFragment):
565
+ pass
566
+
567
+
568
+ class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
569
+ pass
570
+
571
+
572
+ class PlanFragmentCompatibleAddons(AddonFragment):
573
+ pass
574
+
575
+
576
+ class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
577
+ pass
578
+
579
+
580
+ class PlanFragmentPrices(PriceFragment):
581
+ pass
582
+
583
+
584
+ class PlanFragmentOveragePrices(OveragePriceFragment):
585
+ pass
586
+
587
+
588
+ class PlanFragmentDefaultTrialConfig(BaseModel):
589
+ duration: float
590
+ units: TrialPeriodUnits
591
+ budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
592
+ trial_end_behavior: Optional[TrialEndBehavior] = Field(
593
+ alias="trialEndBehavior", default=None
594
+ )
646
595
 
647
596
 
648
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
649
- BaseModel
650
- ):
651
- typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
652
- plan_ref_id: str = Field(alias="planRefId")
653
- feature_id: Optional[str] = Field(alias="featureId", default=None)
597
+ class PlanFragmentDefaultTrialConfigBudget(BaseModel):
598
+ limit: float
654
599
 
655
600
 
656
- class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
657
- BaseModel
658
- ):
659
- typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
660
- new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
661
- feature_id: Optional[str] = Field(alias="featureId", default=None)
601
+ class CustomerResourceFragment(BaseModel):
602
+ resource_id: str = Field(alias="resourceId")
662
603
 
663
604
 
664
605
  class SubscriptionFutureUpdateData(BaseModel):
@@ -815,10 +756,70 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
815
756
  feature_id: Optional[str] = Field(alias="featureId", default=None)
816
757
 
817
758
 
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
+
818
804
  class SubscriptionTrialConfigurationFragment(BaseModel):
819
805
  trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
820
806
 
821
807
 
808
+ class TotalPriceFragment(BaseModel):
809
+ sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
810
+ total: "TotalPriceFragmentTotal"
811
+
812
+
813
+ class TotalPriceFragmentSubTotal(BaseModel):
814
+ amount: float
815
+ currency: Currency
816
+
817
+
818
+ class TotalPriceFragmentTotal(BaseModel):
819
+ amount: float
820
+ currency: Currency
821
+
822
+
822
823
  class SubscriptionFragment(BaseModel):
823
824
  id: Any
824
825
  subscription_id: str = Field(alias="subscriptionId")
@@ -1005,10 +1006,45 @@ class CheckoutConfigurationFragmentContent(BaseModel):
1005
1006
  )
1006
1007
 
1007
1008
 
1009
+ class StripeCheckoutCredentialsFragment(BaseModel):
1010
+ account_id: Optional[str] = Field(alias="accountId", default=None)
1011
+ setup_secret: str = Field(alias="setupSecret")
1012
+ public_key: Optional[str] = Field(alias="publicKey", default=None)
1013
+
1014
+
1008
1015
  class ZuoraCheckoutCredentialsFragment(BaseModel):
1009
1016
  publishable_key: str = Field(alias="publishableKey")
1010
1017
 
1011
1018
 
1019
+ class PromotionalEntitlementFragment(BaseModel):
1020
+ status: PromotionalEntitlementStatus
1021
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1022
+ feature_id: Any = Field(alias="featureId")
1023
+ has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1024
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1025
+ reset_period: Optional[EntitlementResetPeriod] = Field(
1026
+ alias="resetPeriod", default=None
1027
+ )
1028
+ end_date: Optional[Any] = Field(alias="endDate", default=None)
1029
+ is_visible: bool = Field(alias="isVisible")
1030
+ feature: "PromotionalEntitlementFragmentFeature"
1031
+
1032
+
1033
+ class PromotionalEntitlementFragmentFeature(BaseModel):
1034
+ feature_type: FeatureType = Field(alias="featureType")
1035
+ meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1036
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1037
+ feature_units_plural: Optional[str] = Field(
1038
+ alias="featureUnitsPlural", default=None
1039
+ )
1040
+ display_name: str = Field(alias="displayName")
1041
+ description: Optional[str] = Field(default=None)
1042
+ ref_id: str = Field(alias="refId")
1043
+ additional_meta_data: Optional[Any] = Field(
1044
+ alias="additionalMetaData", default=None
1045
+ )
1046
+
1047
+
1012
1048
  class CouponFragment(BaseModel):
1013
1049
  id: Any
1014
1050
  discount_value: float = Field(alias="discountValue")
@@ -1043,35 +1079,6 @@ class CouponFragmentSyncStates(BaseModel):
1043
1079
  status: SyncStatus
1044
1080
 
1045
1081
 
1046
- class PromotionalEntitlementFragment(BaseModel):
1047
- status: PromotionalEntitlementStatus
1048
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1049
- feature_id: Any = Field(alias="featureId")
1050
- has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1051
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1052
- reset_period: Optional[EntitlementResetPeriod] = Field(
1053
- alias="resetPeriod", default=None
1054
- )
1055
- end_date: Optional[Any] = Field(alias="endDate", default=None)
1056
- is_visible: bool = Field(alias="isVisible")
1057
- feature: "PromotionalEntitlementFragmentFeature"
1058
-
1059
-
1060
- class PromotionalEntitlementFragmentFeature(BaseModel):
1061
- feature_type: FeatureType = Field(alias="featureType")
1062
- meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1063
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1064
- feature_units_plural: Optional[str] = Field(
1065
- alias="featureUnitsPlural", default=None
1066
- )
1067
- display_name: str = Field(alias="displayName")
1068
- description: Optional[str] = Field(default=None)
1069
- ref_id: str = Field(alias="refId")
1070
- additional_meta_data: Optional[Any] = Field(
1071
- alias="additionalMetaData", default=None
1072
- )
1073
-
1074
-
1075
1082
  class CustomerFragment(SlimCustomerFragment):
1076
1083
  has_payment_method: bool = Field(alias="hasPaymentMethod")
1077
1084
  has_active_subscription: bool = Field(alias="hasActiveSubscription")
@@ -1130,12 +1137,6 @@ class CustomerFragmentPromotionalEntitlements(PromotionalEntitlementFragment):
1130
1137
  pass
1131
1138
 
1132
1139
 
1133
- class StripeCheckoutCredentialsFragment(BaseModel):
1134
- account_id: Optional[str] = Field(alias="accountId", default=None)
1135
- setup_secret: str = Field(alias="setupSecret")
1136
- public_key: Optional[str] = Field(alias="publicKey", default=None)
1137
-
1138
-
1139
1140
  class CheckoutStateFragment(BaseModel):
1140
1141
  configuration: Optional["CheckoutStateFragmentConfiguration"] = Field(default=None)
1141
1142
  setup_secret: str = Field(alias="setupSecret")
@@ -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,39 +1365,11 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
1352
1365
  pass
1353
1366
 
1354
1367
 
1355
- class CustomerPortalSubscriptionPriceFragment(BaseModel):
1356
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1357
- billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
1358
- block_size: Optional[float] = Field(alias="blockSize", default=None)
1359
- price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
1360
- default=None
1361
- )
1362
- credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
1363
- alias="creditRate", default=None
1364
- )
1365
- feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
1366
- default=None
1367
- )
1368
-
1369
-
1370
- class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
1371
- amount: float
1372
- currency: Currency
1373
-
1374
-
1375
- class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
1376
- amount: float
1377
- custom_currency_id: Any = Field(alias="customCurrencyId")
1378
-
1379
-
1380
- class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1381
- id: Any
1382
- ref_id: str = Field(alias="refId")
1368
+ class CustomerPortalSubscriptionAddonFragment(BaseModel):
1369
+ addon_id: str = Field(alias="addonId")
1370
+ description: Optional[str] = Field(default=None)
1383
1371
  display_name: str = Field(alias="displayName")
1384
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1385
- feature_units_plural: Optional[str] = Field(
1386
- alias="featureUnitsPlural", default=None
1387
- )
1372
+ quantity: int
1388
1373
 
1389
1374
 
1390
1375
  class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
@@ -1556,11 +1541,39 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
1556
1541
  feature_id: Optional[str] = Field(alias="featureId", default=None)
1557
1542
 
1558
1543
 
1559
- class CustomerPortalSubscriptionAddonFragment(BaseModel):
1560
- addon_id: str = Field(alias="addonId")
1561
- description: Optional[str] = Field(default=None)
1544
+ class CustomerPortalSubscriptionPriceFragment(BaseModel):
1545
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1546
+ billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
1547
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
1548
+ price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
1549
+ default=None
1550
+ )
1551
+ credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
1552
+ alias="creditRate", default=None
1553
+ )
1554
+ feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
1555
+ default=None
1556
+ )
1557
+
1558
+
1559
+ class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
1560
+ amount: float
1561
+ currency: Currency
1562
+
1563
+
1564
+ class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
1565
+ amount: float
1566
+ custom_currency_id: Any = Field(alias="customCurrencyId")
1567
+
1568
+
1569
+ class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1570
+ id: Any
1571
+ ref_id: str = Field(alias="refId")
1562
1572
  display_name: str = Field(alias="displayName")
1563
- quantity: int
1573
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1574
+ feature_units_plural: Optional[str] = Field(
1575
+ alias="featureUnitsPlural", default=None
1576
+ )
1564
1577
 
1565
1578
 
1566
1579
  class CustomerPortalSubscriptionFragment(BaseModel):
@@ -2965,35 +2978,36 @@ OveragePriceFragment.model_rebuild()
2965
2978
  AddonFragment.model_rebuild()
2966
2979
  FeatureFragment.model_rebuild()
2967
2980
  EntitlementFragment.model_rebuild()
2968
- SlimCustomerFragment.model_rebuild()
2969
- CustomerResourceFragment.model_rebuild()
2970
- TotalPriceFragment.model_rebuild()
2971
- SubscriptionInvoiceFragment.model_rebuild()
2981
+ SubscriptionScheduledUpdateData.model_rebuild()
2972
2982
  PlanCompatiblePackageGroupsFragment.model_rebuild()
2973
2983
  ProductFragment.model_rebuild()
2974
2984
  PlanFragment.model_rebuild()
2975
- SubscriptionScheduledUpdateData.model_rebuild()
2985
+ CustomerResourceFragment.model_rebuild()
2976
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()
2996
+ StripeCheckoutCredentialsFragment.model_rebuild()
2983
2997
  ZuoraCheckoutCredentialsFragment.model_rebuild()
2984
- CouponFragment.model_rebuild()
2985
2998
  PromotionalEntitlementFragment.model_rebuild()
2999
+ CouponFragment.model_rebuild()
2986
3000
  CustomerFragment.model_rebuild()
2987
- StripeCheckoutCredentialsFragment.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()
2994
- CustomerPortalSubscriptionPriceFragment.model_rebuild()
2995
- CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
2996
3008
  CustomerPortalSubscriptionAddonFragment.model_rebuild()
3009
+ CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
3010
+ CustomerPortalSubscriptionPriceFragment.model_rebuild()
2997
3011
  CustomerPortalSubscriptionFragment.model_rebuild()
2998
3012
  CustomerPortalPromotionalEntitlementFragment.model_rebuild()
2999
3013
  CustomerPortalFragment.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()
@@ -0,0 +1,31 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: operations.graphql
3
+
4
+ from typing import List, Optional
5
+
6
+ from stigg._vendors.pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .enums import EntitlementsStateAccessDeniedReason
10
+ from .fragments import EntitlementFragment
11
+
12
+
13
+ class GetEntitlementsState(BaseModel):
14
+ entitlements_state: "GetEntitlementsStateEntitlementsState" = Field(
15
+ alias="entitlementsState"
16
+ )
17
+
18
+
19
+ class GetEntitlementsStateEntitlementsState(BaseModel):
20
+ entitlements: List["GetEntitlementsStateEntitlementsStateEntitlements"]
21
+ access_denied_reason: Optional[EntitlementsStateAccessDeniedReason] = Field(
22
+ alias="accessDeniedReason"
23
+ )
24
+
25
+
26
+ class GetEntitlementsStateEntitlementsStateEntitlements(EntitlementFragment):
27
+ pass
28
+
29
+
30
+ GetEntitlementsState.model_rebuild()
31
+ GetEntitlementsStateEntitlementsState.model_rebuild()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client-v2
3
- Version: 3.81.0
3
+ Version: 3.88.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -106,36 +106,38 @@ 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=_MIzHAiZgy6Qwd5caf-AC2UXy4Yzy9HsI9dTzLmAS-0,76546
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=amUI5dWUrea7KRTzOHSxtILgGspGeSaTmx5qnIyOciU,185898
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=sgeRc13PLziv1rxhhDzeNvOToCUiiijZ1QNV6U6dnEY,185211
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
122
122
  stigg/generated/detach_customer_payment_method.py,sha256=ACXlC2xsGaUP723OrayFZQ9SbXxe8TtVUYdG1gqcYFc,523
123
- stigg/generated/enums.py,sha256=GUBhhmgXbKhCp6QDgT9ZIaAEKqChO3IQDwKxXjB8Mf4,38870
123
+ stigg/generated/enums.py,sha256=uz0ELcMolFbn8vz4GbOy1HyzaoIrFkGfJ6t9tcyklmA,39018
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=ZWSTvpiIxtpCQ2bi_dKhsnsrl0f6htI-Rm58mBeM4Rg,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
137
138
  stigg/generated/get_entitlement.py,sha256=gWJdx41Qu9eYc0ktxkb-r0dtfmdiZJABzPyp2RVHA4w,316
138
139
  stigg/generated/get_entitlements.py,sha256=wnCoYCrWWZVgVSpfsXHYgS3agVJADMaZWcUwV7jb3NI,354
140
+ stigg/generated/get_entitlements_state.py,sha256=6sp2qshAXO7FnjXAOVWSxDdp9e7YRdldctIFjLumIuo,863
139
141
  stigg/generated/get_mock_paywall.py,sha256=tAI7sp2LWZm850kmHqKWZKfgGNTa1iChl3BIxKq_JvI,762
140
142
  stigg/generated/get_paywall.py,sha256=kfgwz9cfpgg4FAcAAhXxOOe5OjAQQraufWNabnAgW5E,280
141
143
  stigg/generated/get_products.py,sha256=Zzq8FAAsml-X14PISP9BcS0E8B8J7N5IDSCrnH2vD1g,568
@@ -168,7 +170,7 @@ stigg/generated/unarchive_customer.py,sha256=0OVttDrNNOHp6xIpLfDj--XfZL0ogkSpy9e
168
170
  stigg/generated/unlink_promotional_entitlements_group.py,sha256=8UIRQ0CNvReRfX0LZmDYkRn9mMjZm9n41YG6-p7Z8qU,636
169
171
  stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
170
172
  stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
171
- stigg_api_client_v2-3.81.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
172
- stigg_api_client_v2-3.81.0.dist-info/METADATA,sha256=LcMEpt4lwOrjhNpB-oJm5QeSaTVJtS-pmoqkpc_LvEM,2257
173
- stigg_api_client_v2-3.81.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
174
- stigg_api_client_v2-3.81.0.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,,