stigg-api-client-v2 0.693.0__py3-none-any.whl → 5.9.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.
Files changed (75) hide show
  1. stigg/_edge_utils.py +58 -0
  2. stigg/client.py +97 -21
  3. stigg/generated/__init__.py +734 -42
  4. stigg/generated/apply_subscription.py +4 -12
  5. stigg/generated/archive_customer.py +2 -3
  6. stigg/generated/async_base_client.py +187 -29
  7. stigg/generated/async_client.py +3659 -620
  8. stigg/generated/base_client.py +144 -23
  9. stigg/generated/base_model.py +16 -47
  10. stigg/generated/cancel_subscription.py +2 -3
  11. stigg/generated/cancel_subscription_updates.py +1 -4
  12. stigg/generated/client.py +3661 -616
  13. stigg/generated/create_payment_session.py +20 -0
  14. stigg/generated/create_subscription.py +2 -3
  15. stigg/generated/delegate_subscription_to_customer.py +22 -0
  16. stigg/generated/detach_customer_payment_method.py +20 -0
  17. stigg/generated/enums.py +426 -7
  18. stigg/generated/estimate_subscription.py +2 -3
  19. stigg/generated/estimate_subscription_update.py +2 -3
  20. stigg/generated/exceptions.py +9 -5
  21. stigg/generated/fragments.py +1864 -701
  22. stigg/generated/get_active_subscriptions.py +2 -3
  23. stigg/generated/get_active_subscriptions_list.py +22 -0
  24. stigg/generated/get_checkout_state.py +2 -3
  25. stigg/generated/get_coupons.py +4 -5
  26. stigg/generated/get_credit_balance.py +20 -0
  27. stigg/generated/get_credit_grants.py +36 -0
  28. stigg/generated/get_credit_ledger.py +25 -0
  29. stigg/generated/get_credit_usage.py +18 -0
  30. stigg/generated/get_customer_by_id.py +2 -3
  31. stigg/generated/get_customer_portal_by_ref_id.py +2 -3
  32. stigg/generated/get_customer_statistics.py +2 -3
  33. stigg/generated/get_entitlement.py +2 -3
  34. stigg/generated/get_entitlements.py +2 -3
  35. stigg/generated/get_entitlements_state.py +31 -0
  36. stigg/generated/get_mock_paywall.py +3 -5
  37. stigg/generated/get_paywall.py +2 -3
  38. stigg/generated/get_products.py +4 -5
  39. stigg/generated/get_sdk_configuration.py +3 -3
  40. stigg/generated/get_subscription.py +18 -0
  41. stigg/generated/get_subscriptions.py +35 -0
  42. stigg/generated/get_usage_history.py +2 -3
  43. stigg/generated/get_usage_history_v_2.py +18 -0
  44. stigg/generated/grant_credits.py +20 -0
  45. stigg/generated/grant_promotional_entitlements.py +2 -3
  46. stigg/generated/grant_promotional_entitlements_group.py +24 -0
  47. stigg/generated/import_customer.py +2 -3
  48. stigg/generated/import_customer_bulk.py +1 -4
  49. stigg/generated/import_subscriptions_bulk.py +1 -4
  50. stigg/generated/input_types.py +3871 -1878
  51. stigg/generated/migrate_subscription_to_latest.py +2 -3
  52. stigg/generated/preview_next_invoice.py +20 -0
  53. stigg/generated/preview_subscription.py +2 -3
  54. stigg/generated/provision_customer.py +4 -22
  55. stigg/generated/provision_subscription.py +4 -15
  56. stigg/generated/report_entitlement_check_requested.py +1 -4
  57. stigg/generated/report_event.py +1 -4
  58. stigg/generated/report_usage.py +6 -13
  59. stigg/generated/report_usage_bulk.py +22 -0
  60. stigg/generated/revoke_promotional_entitlement.py +5 -4
  61. stigg/generated/revoke_promotional_entitlements_group.py +24 -0
  62. stigg/generated/transfer_subscription.py +2 -3
  63. stigg/generated/transfer_subscription_to_resource.py +22 -0
  64. stigg/generated/unarchive_customer.py +2 -3
  65. stigg/generated/unlink_promotional_entitlements_group.py +24 -0
  66. stigg/generated/update_customer.py +2 -3
  67. stigg/generated/update_subscription.py +2 -3
  68. stigg/generated/void_credit_grant.py +18 -0
  69. {stigg_api_client_v2-0.693.0.dist-info → stigg_api_client_v2-5.9.0.dist-info}/METADATA +3 -4
  70. stigg_api_client_v2-5.9.0.dist-info/RECORD +73 -0
  71. stigg/edge_utils.py +0 -28
  72. stigg/generated/scalars.py +0 -6
  73. stigg_api_client_v2-0.693.0.dist-info/RECORD +0 -54
  74. {stigg_api_client_v2-0.693.0.dist-info → stigg_api_client_v2-5.9.0.dist-info}/LICENSE +0 -0
  75. {stigg_api_client_v2-0.693.0.dist-info → stigg_api_client_v2-5.9.0.dist-info}/WHEEL +0 -0
stigg/generated/enums.py CHANGED
@@ -1,20 +1,36 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: ../api-client-schema/src/generated/schema.graphql
3
3
 
4
4
  from enum import Enum
5
5
 
6
6
 
7
7
  class AccessDeniedReason(str, Enum):
8
+ BudgetExceeded = "BudgetExceeded"
8
9
  CustomerIsArchived = "CustomerIsArchived"
9
10
  CustomerNotFound = "CustomerNotFound"
10
11
  CustomerResourceNotFound = "CustomerResourceNotFound"
11
12
  FeatureNotFound = "FeatureNotFound"
13
+ FeatureTypeMismatch = "FeatureTypeMismatch"
14
+ InsufficientCredits = "InsufficientCredits"
12
15
  NoActiveSubscription = "NoActiveSubscription"
13
16
  NoFeatureEntitlementInSubscription = "NoFeatureEntitlementInSubscription"
14
17
  RequestedUsageExceedingLimit = "RequestedUsageExceedingLimit"
18
+ RequestedValuesMismatch = "RequestedValuesMismatch"
19
+ Revoked = "Revoked"
15
20
  Unknown = "Unknown"
16
21
 
17
22
 
23
+ class AccountAccessMethod(str, Enum):
24
+ AUTHORIZED_DOMAIN = "AUTHORIZED_DOMAIN"
25
+ INVITE_ONLY = "INVITE_ONLY"
26
+ SSO = "SSO"
27
+
28
+
29
+ class AccountAccessRole(str, Enum):
30
+ MEMBER = "MEMBER"
31
+ OWNER = "OWNER"
32
+
33
+
18
34
  class AccountStatus(str, Enum):
19
35
  ACTIVE = "ACTIVE"
20
36
  BLOCKED = "BLOCKED"
@@ -57,16 +73,32 @@ class ApiKeySortFields(str, Enum):
57
73
 
58
74
  class ApiKeyType(str, Enum):
59
75
  CLIENT = "CLIENT"
76
+ SALESFORCE = "SALESFORCE"
60
77
  SERVER = "SERVER"
78
+ WORKFLOW = "WORKFLOW"
79
+
80
+
81
+ class Auth0ApplicationType(str, Enum):
82
+ BOTH = "BOTH"
83
+ INDIVIDUAL = "INDIVIDUAL"
84
+ ORGANIZATION = "ORGANIZATION"
61
85
 
62
86
 
63
87
  class BillingAnchor(str, Enum):
64
88
  START_OF_THE_MONTH = "START_OF_THE_MONTH"
89
+ SUBSCRIPTIONS_CONSOLIDATE_BILLING = "SUBSCRIPTIONS_CONSOLIDATE_BILLING"
65
90
  SUBSCRIPTION_START = "SUBSCRIPTION_START"
66
91
 
67
92
 
93
+ class BillingCadence(str, Enum):
94
+ ONE_OFF = "ONE_OFF"
95
+ RECURRING = "RECURRING"
96
+
97
+
68
98
  class BillingModel(str, Enum):
99
+ CREDIT_BASED = "CREDIT_BASED"
69
100
  FLAT_FEE = "FLAT_FEE"
101
+ MINIMUM_SPEND = "MINIMUM_SPEND"
70
102
  PER_UNIT = "PER_UNIT"
71
103
  USAGE_BASED = "USAGE_BASED"
72
104
 
@@ -78,6 +110,7 @@ class BillingPeriod(str, Enum):
78
110
 
79
111
  class BillingVendorIdentifier(str, Enum):
80
112
  STRIPE = "STRIPE"
113
+ ZUORA = "ZUORA"
81
114
 
82
115
 
83
116
  class ChangeType(str, Enum):
@@ -106,11 +139,18 @@ class CouponSortFields(str, Enum):
106
139
  id = "id"
107
140
  name = "name"
108
141
  refId = "refId"
142
+ source = "source"
109
143
  status = "status"
110
144
  type = "type"
111
145
  updatedAt = "updatedAt"
112
146
 
113
147
 
148
+ class CouponSource(str, Enum):
149
+ STIGG = "STIGG"
150
+ STIGG_ADHOC = "STIGG_ADHOC"
151
+ STRIPE = "STRIPE"
152
+
153
+
114
154
  class CouponStatus(str, Enum):
115
155
  ACTIVE = "ACTIVE"
116
156
  ARCHIVED = "ARCHIVED"
@@ -121,6 +161,25 @@ class CouponType(str, Enum):
121
161
  PERCENTAGE = "PERCENTAGE"
122
162
 
123
163
 
164
+ class CreditGrantType(str, Enum):
165
+ PAID = "PAID"
166
+ PROMOTIONAL = "PROMOTIONAL"
167
+
168
+
169
+ class CreditLedgerEventType(str, Enum):
170
+ CREDITS_CONSUMED = "CREDITS_CONSUMED"
171
+ CREDITS_EXPIRED = "CREDITS_EXPIRED"
172
+ CREDITS_GRANTED = "CREDITS_GRANTED"
173
+ CREDITS_VOIDED = "CREDITS_VOIDED"
174
+
175
+
176
+ class CreditUsageTimeRange(str, Enum):
177
+ LAST_DAY = "LAST_DAY"
178
+ LAST_MONTH = "LAST_MONTH"
179
+ LAST_WEEK = "LAST_WEEK"
180
+ LAST_YEAR = "LAST_YEAR"
181
+
182
+
124
183
  class Currency(str, Enum):
125
184
  AED = "AED"
126
185
  ALL = "ALL"
@@ -136,6 +195,7 @@ class Currency(str, Enum):
136
195
  BIF = "BIF"
137
196
  BMD = "BMD"
138
197
  BND = "BND"
198
+ BRL = "BRL"
139
199
  BSD = "BSD"
140
200
  BWP = "BWP"
141
201
  BYN = "BYN"
@@ -246,6 +306,7 @@ class CustomerResourceSortFields(str, Enum):
246
306
 
247
307
 
248
308
  class CustomerSortFields(str, Enum):
309
+ awsMarketplaceCustomerId = "awsMarketplaceCustomerId"
249
310
  billingId = "billingId"
250
311
  createdAt = "createdAt"
251
312
  crmHubspotCompanyId = "crmHubspotCompanyId"
@@ -258,26 +319,33 @@ class CustomerSortFields(str, Enum):
258
319
  id = "id"
259
320
  name = "name"
260
321
  refId = "refId"
322
+ salesforceId = "salesforceId"
261
323
  searchQuery = "searchQuery"
262
324
  updatedAt = "updatedAt"
263
325
 
264
326
 
265
327
  class CustomerSubscriptionSortFields(str, Enum):
328
+ billingCycleAnchor = "billingCycleAnchor"
266
329
  billingId = "billingId"
267
330
  cancelReason = "cancelReason"
268
331
  cancellationDate = "cancellationDate"
269
332
  createdAt = "createdAt"
270
333
  crmId = "crmId"
271
334
  crmLinkUrl = "crmLinkUrl"
335
+ currentBillingPeriodEnd = "currentBillingPeriodEnd"
336
+ currentBillingPeriodStart = "currentBillingPeriodStart"
337
+ customerId = "customerId"
272
338
  effectiveEndDate = "effectiveEndDate"
273
339
  endDate = "endDate"
274
340
  environmentId = "environmentId"
275
341
  id = "id"
276
342
  oldBillingId = "oldBillingId"
343
+ payingCustomerId = "payingCustomerId"
277
344
  paymentCollection = "paymentCollection"
278
345
  pricingType = "pricingType"
279
346
  refId = "refId"
280
347
  resourceId = "resourceId"
348
+ salesforceId = "salesforceId"
281
349
  startDate = "startDate"
282
350
  status = "status"
283
351
  subscriptionId = "subscriptionId"
@@ -305,11 +373,22 @@ class DiscountType(str, Enum):
305
373
  PERCENTAGE = "PERCENTAGE"
306
374
 
307
375
 
376
+ class EntitlementBehavior(str, Enum):
377
+ Increment = "Increment"
378
+ Override = "Override"
379
+
380
+
308
381
  class EntitlementResetPeriod(str, Enum):
309
382
  DAY = "DAY"
310
383
  HOUR = "HOUR"
311
384
  MONTH = "MONTH"
312
385
  WEEK = "WEEK"
386
+ YEAR = "YEAR"
387
+
388
+
389
+ class EntitlementsStateAccessDeniedReason(str, Enum):
390
+ CustomerNotFound = "CustomerNotFound"
391
+ NoActiveSubscription = "NoActiveSubscription"
313
392
 
314
393
 
315
394
  class EntitySelectionMode(str, Enum):
@@ -317,6 +396,13 @@ class EntitySelectionMode(str, Enum):
317
396
  WHITE_LIST = "WHITE_LIST"
318
397
 
319
398
 
399
+ class EnvironmentAccessRole(str, Enum):
400
+ ADMIN = "ADMIN"
401
+ NONE = "NONE"
402
+ SUPPORT = "SUPPORT"
403
+ VIEWER = "VIEWER"
404
+
405
+
320
406
  class EnvironmentProvisionStatus(str, Enum):
321
407
  DONE = "DONE"
322
408
  FAILED = "FAILED"
@@ -332,42 +418,83 @@ class EnvironmentSortFields(str, Enum):
332
418
  slug = "slug"
333
419
 
334
420
 
421
+ class EnvironmentType(str, Enum):
422
+ DEVELOPMENT = "DEVELOPMENT"
423
+ PRODUCTION = "PRODUCTION"
424
+ SANDBOX = "SANDBOX"
425
+
426
+
335
427
  class ErrorCode(str, Enum):
428
+ AccessDeniedError = "AccessDeniedError"
336
429
  AccountNotFoundError = "AccountNotFoundError"
430
+ AddonDependencyMissingError = "AddonDependencyMissingError"
337
431
  AddonHasToHavePriceError = "AddonHasToHavePriceError"
432
+ AddonIsCompatibleWithGroup = "AddonIsCompatibleWithGroup"
433
+ AddonIsCompatibleWithPlan = "AddonIsCompatibleWithPlan"
338
434
  AddonNotFound = "AddonNotFound"
435
+ AddonQuantityExceedsLimitError = "AddonQuantityExceedsLimitError"
339
436
  AddonWithDraftCannotBeDeletedError = "AddonWithDraftCannotBeDeletedError"
437
+ AddonsNotFound = "AddonsNotFound"
438
+ AmountTooLarge = "AmountTooLarge"
340
439
  ArchivedCouponCantBeApplied = "ArchivedCouponCantBeApplied"
341
440
  AuthCustomerMismatch = "AuthCustomerMismatch"
441
+ AuthCustomerReadonly = "AuthCustomerReadonly"
342
442
  AwsMarketplaceIntegrationError = "AwsMarketplaceIntegrationError"
343
443
  AwsMarketplaceIntegrationValidationError = (
344
444
  "AwsMarketplaceIntegrationValidationError"
345
445
  )
346
446
  BadUserInput = "BadUserInput"
447
+ BillingIntegrationAlreadyExistsError = "BillingIntegrationAlreadyExistsError"
448
+ BillingIntegrationMissing = "BillingIntegrationMissing"
347
449
  BillingPeriodMissingError = "BillingPeriodMissingError"
450
+ CanNotUpdateEntitlementsFeatureGroup = "CanNotUpdateEntitlementsFeatureGroup"
451
+ CannotAddOverrideEntitlementToPlan = "CannotAddOverrideEntitlementToPlan"
348
452
  CannotArchiveFeatureError = "CannotArchiveFeatureError"
453
+ CannotArchiveFeatureGroupError = "CannotArchiveFeatureGroupError"
454
+ CannotChangeBillingIntegration = "CannotChangeBillingIntegration"
349
455
  CannotDeleteCustomerError = "CannotDeleteCustomerError"
456
+ CannotDeleteDefaultIntegration = "CannotDeleteDefaultIntegration"
350
457
  CannotDeleteFeatureError = "CannotDeleteFeatureError"
351
458
  CannotDeleteProductError = "CannotDeleteProductError"
352
459
  CannotEditPackageInNonDraftMode = "CannotEditPackageInNonDraftMode"
460
+ CannotRemovePaymentMethodFromCustomerError = (
461
+ "CannotRemovePaymentMethodFromCustomerError"
462
+ )
353
463
  CannotReportUsageForEntitlementWithMeterError = (
354
464
  "CannotReportUsageForEntitlementWithMeterError"
355
465
  )
466
+ CannotUpdateExpireAtForExpiredCreditGrantError = (
467
+ "CannotUpdateExpireAtForExpiredCreditGrantError"
468
+ )
469
+ CannotUpdateUnitTransformationError = "CannotUpdateUnitTransformationError"
356
470
  CannotUpsertToPackageThatHasDraft = "CannotUpsertToPackageThatHasDraft"
471
+ ChangingPayingCustomerIsNotSupportedError = (
472
+ "ChangingPayingCustomerIsNotSupportedError"
473
+ )
357
474
  CheckoutIsNotSupported = "CheckoutIsNotSupported"
358
- CheckoutOptionsMissing = "CheckoutOptionsMissing"
359
475
  CouponNotFound = "CouponNotFound"
476
+ CreditGrantAlreadyVoided = "CreditGrantAlreadyVoided"
477
+ CreditGrantNotFound = "CreditGrantNotFound"
478
+ CustomCurrencyNotFound = "CustomCurrencyNotFound"
360
479
  CustomerAlreadyHaveCustomerCoupon = "CustomerAlreadyHaveCustomerCoupon"
361
480
  CustomerAlreadyUsesCoupon = "CustomerAlreadyUsesCoupon"
362
- CustomerHasNoPaymentMethod = "CustomerHasNoPaymentMethod"
481
+ CustomerHasNoEmailAddress = "CustomerHasNoEmailAddress"
363
482
  CustomerNoBillingId = "CustomerNoBillingId"
364
483
  CustomerNotFound = "CustomerNotFound"
365
484
  CustomerResourceNotFound = "CustomerResourceNotFound"
485
+ DeprecatedEstimateSubscriptionError = "DeprecatedEstimateSubscriptionError"
366
486
  DowngradeBillingPeriodNotSupportedError = "DowngradeBillingPeriodNotSupportedError"
487
+ DraftAddonCantBeArchived = "DraftAddonCantBeArchived"
488
+ DraftAlreadyExists = "DraftAlreadyExists"
367
489
  DraftPlanCantBeArchived = "DraftPlanCantBeArchived"
490
+ DuplicateAddonProvisionedError = "DuplicateAddonProvisionedError"
491
+ DuplicateIntegrationNotAllowed = "DuplicateIntegrationNotAllowed"
368
492
  DuplicateProductValidationError = "DuplicateProductValidationError"
369
493
  DuplicatedEntityNotAllowed = "DuplicatedEntityNotAllowed"
370
494
  EditAllowedOnDraftPackageOnlyError = "EditAllowedOnDraftPackageOnlyError"
495
+ EntitlementBelongsToFeatureGroupError = "EntitlementBelongsToFeatureGroupError"
496
+ EntitlementLimitExceededError = "EntitlementLimitExceededError"
497
+ EntitlementUsageOutOfRangeError = "EntitlementUsageOutOfRangeError"
371
498
  EntitlementsMustBelongToSamePackage = "EntitlementsMustBelongToSamePackage"
372
499
  EntityIdDifferentFromRefIdError = "EntityIdDifferentFromRefIdError"
373
500
  EntityIsArchivedError = "EntityIsArchivedError"
@@ -375,13 +502,28 @@ class ErrorCode(str, Enum):
375
502
  ExperimentAlreadyRunning = "ExperimentAlreadyRunning"
376
503
  ExperimentNotFoundError = "ExperimentNotFoundError"
377
504
  ExperimentStatusError = "ExperimentStatusError"
505
+ ExpireAtMustBeLaterThanEffectiveAtError = "ExpireAtMustBeLaterThanEffectiveAtError"
378
506
  FailedToCreateCheckoutSessionError = "FailedToCreateCheckoutSessionError"
379
507
  FailedToImportCustomer = "FailedToImportCustomer"
508
+ FailedToImportSubscriptions = "FailedToImportSubscriptions"
509
+ FailedToResolveBillingIntegration = "FailedToResolveBillingIntegration"
510
+ FeatureConfigurationExceededLimitError = "FeatureConfigurationExceededLimitError"
511
+ FeatureGroupMissingFeaturesError = "FeatureGroupMissingFeaturesError"
512
+ FeatureGroupNotFoundError = "FeatureGroupNotFoundError"
513
+ FeatureNotBelongToFeatureGroupError = "FeatureNotBelongToFeatureGroupError"
380
514
  FeatureNotFound = "FeatureNotFound"
381
515
  FetchAllCountriesPricesNotAllowed = "FetchAllCountriesPricesNotAllowed"
516
+ FreePlanCantHaveCompatiblePackageGroupError = (
517
+ "FreePlanCantHaveCompatiblePackageGroupError"
518
+ )
519
+ GraphQLAliasesLimitExceeded = "GraphQLAliasesLimitExceeded"
520
+ GraphQLBatchedOperationsLimitExceeded = "GraphQLBatchedOperationsLimitExceeded"
521
+ GraphQLUnsupportedDirective = "GraphQLUnsupportedDirective"
522
+ HubspotIntegrationError = "HubspotIntegrationError"
382
523
  IdentityForbidden = "IdentityForbidden"
383
524
  ImportAlreadyInProgress = "ImportAlreadyInProgress"
384
525
  ImportSubscriptionsBulkError = "ImportSubscriptionsBulkError"
526
+ IncompatibleSubscriptionAddon = "IncompatibleSubscriptionAddon"
385
527
  InitStripePaymentMethodError = "InitStripePaymentMethodError"
386
528
  IntegrationNotFound = "IntegrationNotFound"
387
529
  IntegrationValidationError = "IntegrationValidationError"
@@ -389,6 +531,7 @@ class ErrorCode(str, Enum):
389
531
  InvalidAddressError = "InvalidAddressError"
390
532
  InvalidArgumentError = "InvalidArgumentError"
391
533
  InvalidCancellationDate = "InvalidCancellationDate"
534
+ InvalidDoggoSignatureError = "InvalidDoggoSignatureError"
392
535
  InvalidEntitlementResetPeriod = "InvalidEntitlementResetPeriod"
393
536
  InvalidMemberDelete = "InvalidMemberDelete"
394
537
  InvalidMetadataError = "InvalidMetadataError"
@@ -397,18 +540,29 @@ class ErrorCode(str, Enum):
397
540
  InvalidUpdatePriceUnitAmountError = "InvalidUpdatePriceUnitAmountError"
398
541
  MemberInvitationError = "MemberInvitationError"
399
542
  MemberNotFound = "MemberNotFound"
543
+ MergeEnvironmentValidationError = "MergeEnvironmentValidationError"
400
544
  MeterMustBeAssociatedToMeteredFeature = "MeterMustBeAssociatedToMeteredFeature"
401
545
  MeteringNotAvailableForFeatureType = "MeteringNotAvailableForFeatureType"
402
546
  MissingEntityIdError = "MissingEntityIdError"
547
+ MissingSubscriptionInvoiceError = "MissingSubscriptionInvoiceError"
548
+ MultiSubscriptionCantBeAutoCancellationSourceError = (
549
+ "MultiSubscriptionCantBeAutoCancellationSourceError"
550
+ )
551
+ NoActiveSubscriptionForCustomer = "NoActiveSubscriptionForCustomer"
552
+ NoDraftOfferFound = "NoDraftOfferFound"
553
+ NoFeatureEntitlementError = "NoFeatureEntitlementError"
403
554
  NoFeatureEntitlementInSubscription = "NoFeatureEntitlementInSubscription"
404
555
  NoProductsAvailable = "NoProductsAvailable"
556
+ OfferAlreadyExists = "OfferAlreadyExists"
557
+ OfferNotFound = "OfferNotFound"
405
558
  OperationNotAllowedDuringInProgressExperiment = (
406
559
  "OperationNotAllowedDuringInProgressExperiment"
407
560
  )
408
561
  PackageAlreadyPublished = "PackageAlreadyPublished"
562
+ PackageGroupMinItemsError = "PackageGroupMinItemsError"
563
+ PackageGroupNotFound = "PackageGroupNotFound"
409
564
  PackagePricingTypeNotSet = "PackagePricingTypeNotSet"
410
565
  PaymentMethodNotFoundError = "PaymentMethodNotFoundError"
411
- PlanAlreadyExtended = "PlanAlreadyExtended"
412
566
  PlanCannotBePublishWhenBasePlanIsDraft = "PlanCannotBePublishWhenBasePlanIsDraft"
413
567
  PlanCannotBePublishWhenCompatibleAddonIsDraft = (
414
568
  "PlanCannotBePublishWhenCompatibleAddonIsDraft"
@@ -418,7 +572,9 @@ class ErrorCode(str, Enum):
418
572
  PlanNotFound = "PlanNotFound"
419
573
  PlanWithChildCantBeDeleted = "PlanWithChildCantBeDeleted"
420
574
  PlansCircularDependencyError = "PlansCircularDependencyError"
575
+ PreparePaymentMethodFormError = "PreparePaymentMethodFormError"
421
576
  PriceNotFound = "PriceNotFound"
577
+ ProductNotFoundError = "ProductNotFoundError"
422
578
  PromotionCodeCustomerNotFirstPurchase = "PromotionCodeCustomerNotFirstPurchase"
423
579
  PromotionCodeMaxRedemptionsReached = "PromotionCodeMaxRedemptionsReached"
424
580
  PromotionCodeMinimumAmountNotReached = "PromotionCodeMinimumAmountNotReached"
@@ -428,27 +584,81 @@ class ErrorCode(str, Enum):
428
584
  PromotionalEntitlementNotFoundError = "PromotionalEntitlementNotFoundError"
429
585
  RateLimitExceeded = "RateLimitExceeded"
430
586
  RecalculateEntitlementsError = "RecalculateEntitlementsError"
587
+ RequiredSsoAuthenticationError = "RequiredSsoAuthenticationError"
431
588
  ResyncAlreadyInProgress = "ResyncAlreadyInProgress"
432
589
  ScheduledMigrationAlreadyExistsError = "ScheduledMigrationAlreadyExistsError"
433
590
  SelectedBillingModelDoesntMatchImportedItemError = (
434
591
  "SelectedBillingModelDoesntMatchImportedItemError"
435
592
  )
593
+ SingleSubscriptionCantBeAutoCancellationTargetError = (
594
+ "SingleSubscriptionCantBeAutoCancellationTargetError"
595
+ )
436
596
  StripeCustomerIsDeleted = "StripeCustomerIsDeleted"
437
597
  StripeError = "StripeError"
438
598
  SubscriptionAlreadyCanceledOrExpired = "SubscriptionAlreadyCanceledOrExpired"
439
599
  SubscriptionAlreadyOnLatestPlanError = "SubscriptionAlreadyOnLatestPlanError"
600
+ SubscriptionDoesNotHaveBillingPeriod = "SubscriptionDoesNotHaveBillingPeriod"
601
+ SubscriptionInvoiceStatusError = "SubscriptionInvoiceStatusError"
440
602
  SubscriptionMustHaveSinglePlanError = "SubscriptionMustHaveSinglePlanError"
603
+ SubscriptionNoBillingId = "SubscriptionNoBillingId"
441
604
  SubscriptionNotFound = "SubscriptionNotFound"
605
+ TooManyCustomCurrencies = "TooManyCustomCurrencies"
442
606
  TooManySubscriptionsPerCustomer = "TooManySubscriptionsPerCustomer"
443
- TrialMinDateError = "TrialMinDateError"
444
607
  TrialMustBeCancelledImmediately = "TrialMustBeCancelledImmediately"
445
608
  UnPublishedPackage = "UnPublishedPackage"
446
609
  Unauthenticated = "Unauthenticated"
447
- UncompatibleSubscriptionAddon = "UncompatibleSubscriptionAddon"
448
610
  UnexpectedError = "UnexpectedError"
449
611
  UnsupportedFeatureType = "UnsupportedFeatureType"
612
+ UnsupportedParameter = "UnsupportedParameter"
450
613
  UnsupportedSubscriptionScheduleType = "UnsupportedSubscriptionScheduleType"
451
614
  UnsupportedVendorIdentifier = "UnsupportedVendorIdentifier"
615
+ UsageMeasurementDiffOutOfRangeError = "UsageMeasurementDiffOutOfRangeError"
616
+ VersionExceedsMaxValueError = "VersionExceedsMaxValueError"
617
+ WorkflowTriggerNotFound = "WorkflowTriggerNotFound"
618
+
619
+
620
+ class EventActor(str, Enum):
621
+ APP_CUSTOMER = "APP_CUSTOMER"
622
+ APP_PUBLIC = "APP_PUBLIC"
623
+ APP_SERVER = "APP_SERVER"
624
+ AWS = "AWS"
625
+ IMPORT = "IMPORT"
626
+ MIGRATION = "MIGRATION"
627
+ SALESFORCE = "SALESFORCE"
628
+ SCHEDULER = "SCHEDULER"
629
+ SERVICE = "SERVICE"
630
+ STRIPE = "STRIPE"
631
+ SUPPORT = "SUPPORT"
632
+ SYSTEM = "SYSTEM"
633
+ USER = "USER"
634
+ WORKFLOW = "WORKFLOW"
635
+
636
+
637
+ class EventEntityType(str, Enum):
638
+ ADDON = "ADDON"
639
+ COUPON = "COUPON"
640
+ CREDIT = "CREDIT"
641
+ CUSTOMER = "CUSTOMER"
642
+ ENTITLEMENT = "ENTITLEMENT"
643
+ FEATURE = "FEATURE"
644
+ FEATURE_GROUP = "FEATURE_GROUP"
645
+ IMPORT = "IMPORT"
646
+ MEASUREMENT = "MEASUREMENT"
647
+ PACKAGE = "PACKAGE"
648
+ PACKAGE_GROUP = "PACKAGE_GROUP"
649
+ PLAN = "PLAN"
650
+ PRODUCT = "PRODUCT"
651
+ PROMOTIONAL_ENTITLEMENT = "PROMOTIONAL_ENTITLEMENT"
652
+ SUBSCRIPTION = "SUBSCRIPTION"
653
+
654
+
655
+ class EventLogSortFields(str, Enum):
656
+ createdAt = "createdAt"
657
+ entityId = "entityId"
658
+ environmentId = "environmentId"
659
+ eventLogType = "eventLogType"
660
+ id = "id"
661
+ parentEntityId = "parentEntityId"
452
662
 
453
663
 
454
664
  class EventLogType(str, Enum):
@@ -459,6 +669,21 @@ class EventLogType(str, Enum):
459
669
  COUPON_CREATED = "COUPON_CREATED"
460
670
  COUPON_UPDATED = "COUPON_UPDATED"
461
671
  CREATE_SUBSCRIPTION_FAILED = "CREATE_SUBSCRIPTION_FAILED"
672
+ CREDITS_BALANCE_DEPLETED_OLD = "CREDITS_BALANCE_DEPLETED_OLD"
673
+ CREDITS_BALANCE_LOW_OLD = "CREDITS_BALANCE_LOW_OLD"
674
+ CREDITS_GRANT_BALANCE_LOW_OLD = "CREDITS_GRANT_BALANCE_LOW_OLD"
675
+ CREDITS_GRANT_DEPLETED_OLD = "CREDITS_GRANT_DEPLETED_OLD"
676
+ CREDITS_GRANT_EXPIRED_OLD = "CREDITS_GRANT_EXPIRED_OLD"
677
+ CREDITS_GRANT_GRANTED_OLD = "CREDITS_GRANT_GRANTED_OLD"
678
+ CREDITS_GRANT_UPDATED_OLD = "CREDITS_GRANT_UPDATED_OLD"
679
+ CREDIT_BALANCE_DEPLETED = "CREDIT_BALANCE_DEPLETED"
680
+ CREDIT_BALANCE_LOW = "CREDIT_BALANCE_LOW"
681
+ CREDIT_GRANT_BALANCE_LOW = "CREDIT_GRANT_BALANCE_LOW"
682
+ CREDIT_GRANT_CREATED = "CREDIT_GRANT_CREATED"
683
+ CREDIT_GRANT_DEPLETED = "CREDIT_GRANT_DEPLETED"
684
+ CREDIT_GRANT_EXPIRED = "CREDIT_GRANT_EXPIRED"
685
+ CREDIT_GRANT_UPDATED = "CREDIT_GRANT_UPDATED"
686
+ CREDIT_GRANT_VOIDED = "CREDIT_GRANT_VOIDED"
462
687
  CUSTOMER_CREATED = "CUSTOMER_CREATED"
463
688
  CUSTOMER_DELETED = "CUSTOMER_DELETED"
464
689
  CUSTOMER_ENTITLEMENT_CALCULATION_TRIGGERED = (
@@ -469,8 +694,12 @@ class EventLogType(str, Enum):
469
694
  "CUSTOMER_RESOURCE_ENTITLEMENT_CALCULATION_TRIGGERED"
470
695
  )
471
696
  CUSTOMER_UPDATED = "CUSTOMER_UPDATED"
697
+ EDGE_API_CLIENT_CONFIGURATION_DATA_RESYNC = (
698
+ "EDGE_API_CLIENT_CONFIGURATION_DATA_RESYNC"
699
+ )
472
700
  EDGE_API_CUSTOMER_DATA_RESYNC = "EDGE_API_CUSTOMER_DATA_RESYNC"
473
701
  EDGE_API_DATA_RESYNC = "EDGE_API_DATA_RESYNC"
702
+ EDGE_API_DOGGO_RESYNC = "EDGE_API_DOGGO_RESYNC"
474
703
  EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC = (
475
704
  "EDGE_API_PACKAGE_ENTITLEMENTS_DATA_RESYNC"
476
705
  )
@@ -479,15 +708,22 @@ class EventLogType(str, Enum):
479
708
  ENTITLEMENT_DENIED = "ENTITLEMENT_DENIED"
480
709
  ENTITLEMENT_GRANTED = "ENTITLEMENT_GRANTED"
481
710
  ENTITLEMENT_REQUESTED = "ENTITLEMENT_REQUESTED"
711
+ ENTITLEMENT_USAGE_EXCEEDED = "ENTITLEMENT_USAGE_EXCEEDED"
482
712
  ENVIRONMENT_DELETED = "ENVIRONMENT_DELETED"
483
713
  FEATURE_ARCHIVED = "FEATURE_ARCHIVED"
484
714
  FEATURE_CREATED = "FEATURE_CREATED"
485
715
  FEATURE_DELETED = "FEATURE_DELETED"
716
+ FEATURE_GROUP_ARCHIVED = "FEATURE_GROUP_ARCHIVED"
717
+ FEATURE_GROUP_CREATED = "FEATURE_GROUP_CREATED"
718
+ FEATURE_GROUP_UN_ARCHIVED = "FEATURE_GROUP_UN_ARCHIVED"
719
+ FEATURE_GROUP_UPDATED = "FEATURE_GROUP_UPDATED"
486
720
  FEATURE_UPDATED = "FEATURE_UPDATED"
487
721
  IMPORT_INTEGRATION_CATALOG_TRIGGERED = "IMPORT_INTEGRATION_CATALOG_TRIGGERED"
488
722
  IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED = "IMPORT_INTEGRATION_CUSTOMERS_TRIGGERED"
489
723
  IMPORT_SUBSCRIPTIONS_BULK_TRIGGERED = "IMPORT_SUBSCRIPTIONS_BULK_TRIGGERED"
490
724
  MEASUREMENT_REPORTED = "MEASUREMENT_REPORTED"
725
+ PACKAGE_GROUP_CREATED = "PACKAGE_GROUP_CREATED"
726
+ PACKAGE_GROUP_UPDATED = "PACKAGE_GROUP_UPDATED"
491
727
  PACKAGE_PUBLISHED = "PACKAGE_PUBLISHED"
492
728
  PLAN_CREATED = "PLAN_CREATED"
493
729
  PLAN_DELETED = "PLAN_DELETED"
@@ -495,6 +731,7 @@ class EventLogType(str, Enum):
495
731
  PRODUCT_CREATED = "PRODUCT_CREATED"
496
732
  PRODUCT_DELETED = "PRODUCT_DELETED"
497
733
  PRODUCT_UPDATED = "PRODUCT_UPDATED"
734
+ PROMOTIONAL_ENTITLEMENT_ENDS_SOON = "PROMOTIONAL_ENTITLEMENT_ENDS_SOON"
498
735
  PROMOTIONAL_ENTITLEMENT_EXPIRED = "PROMOTIONAL_ENTITLEMENT_EXPIRED"
499
736
  PROMOTIONAL_ENTITLEMENT_GRANTED = "PROMOTIONAL_ENTITLEMENT_GRANTED"
500
737
  PROMOTIONAL_ENTITLEMENT_REVOKED = "PROMOTIONAL_ENTITLEMENT_REVOKED"
@@ -502,14 +739,18 @@ class EventLogType(str, Enum):
502
739
  RECALCULATE_ENTITLEMENTS_TRIGGERED = "RECALCULATE_ENTITLEMENTS_TRIGGERED"
503
740
  RESYNC_INTEGRATION_TRIGGERED = "RESYNC_INTEGRATION_TRIGGERED"
504
741
  SUBSCRIPTIONS_MIGRATED = "SUBSCRIPTIONS_MIGRATED"
742
+ SUBSCRIPTIONS_MIGRATION_TRIGGERED = "SUBSCRIPTIONS_MIGRATION_TRIGGERED"
743
+ SUBSCRIPTION_BILLING_MONTH_ENDS_SOON = "SUBSCRIPTION_BILLING_MONTH_ENDS_SOON"
505
744
  SUBSCRIPTION_CANCELED = "SUBSCRIPTION_CANCELED"
506
745
  SUBSCRIPTION_CREATED = "SUBSCRIPTION_CREATED"
507
746
  SUBSCRIPTION_EXPIRED = "SUBSCRIPTION_EXPIRED"
747
+ SUBSCRIPTION_SPENT_LIMIT_EXCEEDED = "SUBSCRIPTION_SPENT_LIMIT_EXCEEDED"
508
748
  SUBSCRIPTION_TRIAL_CONVERTED = "SUBSCRIPTION_TRIAL_CONVERTED"
509
749
  SUBSCRIPTION_TRIAL_ENDS_SOON = "SUBSCRIPTION_TRIAL_ENDS_SOON"
510
750
  SUBSCRIPTION_TRIAL_EXPIRED = "SUBSCRIPTION_TRIAL_EXPIRED"
511
751
  SUBSCRIPTION_TRIAL_STARTED = "SUBSCRIPTION_TRIAL_STARTED"
512
752
  SUBSCRIPTION_UPDATED = "SUBSCRIPTION_UPDATED"
753
+ SUBSCRIPTION_USAGE_CHARGE_TRIGGERED = "SUBSCRIPTION_USAGE_CHARGE_TRIGGERED"
513
754
  SUBSCRIPTION_USAGE_UPDATED = "SUBSCRIPTION_USAGE_UPDATED"
514
755
  SYNC_FAILED = "SYNC_FAILED"
515
756
  WIDGET_CONFIGURATION_UPDATED = "WIDGET_CONFIGURATION_UPDATED"
@@ -531,6 +772,23 @@ class ExperimentStatus(str, Enum):
531
772
  IN_PROGRESS = "IN_PROGRESS"
532
773
 
533
774
 
775
+ class FeatureGroupSortFields(str, Enum):
776
+ createdAt = "createdAt"
777
+ displayName = "displayName"
778
+ environmentId = "environmentId"
779
+ featureGroupId = "featureGroupId"
780
+ id = "id"
781
+ isLatest = "isLatest"
782
+ status = "status"
783
+ updatedAt = "updatedAt"
784
+ versionNumber = "versionNumber"
785
+
786
+
787
+ class FeatureGroupStatus(str, Enum):
788
+ ARCHIVED = "ARCHIVED"
789
+ PUBLISHED = "PUBLISHED"
790
+
791
+
534
792
  class FeatureSortFields(str, Enum):
535
793
  createdAt = "createdAt"
536
794
  description = "description"
@@ -552,6 +810,7 @@ class FeatureStatus(str, Enum):
552
810
 
553
811
  class FeatureType(str, Enum):
554
812
  BOOLEAN = "BOOLEAN"
813
+ ENUM = "ENUM"
555
814
  NUMBER = "NUMBER"
556
815
 
557
816
 
@@ -586,10 +845,25 @@ class IntegrationSortFields(str, Enum):
586
845
  environmentId = "environmentId"
587
846
  id = "id"
588
847
  vendorIdentifier = "vendorIdentifier"
848
+ vendorType = "vendorType"
849
+
850
+
851
+ class InvoiceLineItemType(str, Enum):
852
+ AddonCharge = "AddonCharge"
853
+ BaseCharge = "BaseCharge"
854
+ InAdvanceCommitmentCharge = "InAdvanceCommitmentCharge"
855
+ MinimumSpendAdjustmentCharge = "MinimumSpendAdjustmentCharge"
856
+ MinimumSpendCharge = "MinimumSpendCharge"
857
+ Other = "Other"
858
+ OverageCharge = "OverageCharge"
859
+ PayAsYouGoCharge = "PayAsYouGoCharge"
860
+ TierCharge = "TierCharge"
861
+ ZeroAmountBaseCharge = "ZeroAmountBaseCharge"
589
862
 
590
863
 
591
864
  class MemberSortFields(str, Enum):
592
865
  createdAt = "createdAt"
866
+ email = "email"
593
867
  id = "id"
594
868
 
595
869
 
@@ -601,7 +875,7 @@ class MemberStatus(str, Enum):
601
875
  class MeterType(str, Enum):
602
876
  FLUCTUATING = "Fluctuating"
603
877
  INCREMENTAL = "Incremental"
604
- NONE = "None"
878
+ None_ = "None"
605
879
 
606
880
 
607
881
  class MonthlyAccordingTo(str, Enum):
@@ -609,6 +883,28 @@ class MonthlyAccordingTo(str, Enum):
609
883
  SubscriptionStart = "SubscriptionStart"
610
884
 
611
885
 
886
+ class OfferSortFields(str, Enum):
887
+ createdAt = "createdAt"
888
+ environmentId = "environmentId"
889
+ id = "id"
890
+ isDefault = "isDefault"
891
+ isLatest = "isLatest"
892
+ offerId = "offerId"
893
+ status = "status"
894
+ version = "version"
895
+
896
+
897
+ class OfferStatus(str, Enum):
898
+ ARCHIVED = "ARCHIVED"
899
+ DRAFT = "DRAFT"
900
+ PUBLISHED = "PUBLISHED"
901
+
902
+
903
+ class OverageBillingPeriod(str, Enum):
904
+ MONTHLY = "MONTHLY"
905
+ ON_SUBSCRIPTION_RENEWAL = "ON_SUBSCRIPTION_RENEWAL"
906
+
907
+
612
908
  class PackageDTOSortFields(str, Enum):
613
909
  billingId = "billingId"
614
910
  createdAt = "createdAt"
@@ -633,6 +929,24 @@ class PackageEntitlementSortFields(str, Enum):
633
929
  updatedAt = "updatedAt"
634
930
 
635
931
 
932
+ class PackageGroupSortFields(str, Enum):
933
+ createdAt = "createdAt"
934
+ displayName = "displayName"
935
+ environmentId = "environmentId"
936
+ isLatest = "isLatest"
937
+ packageGroupId = "packageGroupId"
938
+ productId = "productId"
939
+ status = "status"
940
+ updatedAt = "updatedAt"
941
+ versionNumber = "versionNumber"
942
+
943
+
944
+ class PackageGroupStatus(str, Enum):
945
+ ARCHIVED = "ARCHIVED"
946
+ DRAFT = "DRAFT"
947
+ PUBLISHED = "PUBLISHED"
948
+
949
+
636
950
  class PackageStatus(str, Enum):
637
951
  ARCHIVED = "ARCHIVED"
638
952
  DRAFT = "DRAFT"
@@ -646,9 +960,22 @@ class PaymentCollection(str, Enum):
646
960
  PROCESSING = "PROCESSING"
647
961
 
648
962
 
963
+ class PaymentCollectionMethod(str, Enum):
964
+ CHARGE = "CHARGE"
965
+ INVOICE = "INVOICE"
966
+ NONE = "NONE"
967
+
968
+
649
969
  class PaymentMethodType(str, Enum):
650
970
  BANK = "BANK"
651
971
  CARD = "CARD"
972
+ CASH_APP = "CASH_APP"
973
+
974
+
975
+ class PlanChangeType(str, Enum):
976
+ DOWNGRADE = "DOWNGRADE"
977
+ NONE = "NONE"
978
+ UPGRADE = "UPGRADE"
652
979
 
653
980
 
654
981
  class PlanSortFields(str, Enum):
@@ -668,6 +995,7 @@ class PlanSortFields(str, Enum):
668
995
 
669
996
 
670
997
  class PriceSortFields(str, Enum):
998
+ billingCadence = "billingCadence"
671
999
  billingId = "billingId"
672
1000
  billingModel = "billingModel"
673
1001
  billingPeriod = "billingPeriod"
@@ -691,6 +1019,7 @@ class ProductSortFields(str, Enum):
691
1019
  environmentId = "environmentId"
692
1020
  id = "id"
693
1021
  isDefaultProduct = "isDefaultProduct"
1022
+ multipleSubscriptions = "multipleSubscriptions"
694
1023
  refId = "refId"
695
1024
  updatedAt = "updatedAt"
696
1025
 
@@ -733,6 +1062,12 @@ class PublishMigrationType(str, Enum):
733
1062
  NEW_CUSTOMERS = "NEW_CUSTOMERS"
734
1063
 
735
1064
 
1065
+ class ScheduleStrategy(str, Enum):
1066
+ END_OF_BILLING_MONTH = "END_OF_BILLING_MONTH"
1067
+ END_OF_BILLING_PERIOD = "END_OF_BILLING_PERIOD"
1068
+ IMMEDIATE = "IMMEDIATE"
1069
+
1070
+
736
1071
  class SortDirection(str, Enum):
737
1072
  ASC = "ASC"
738
1073
  DESC = "DESC"
@@ -757,6 +1092,7 @@ class SubscriptionAddonSortFields(str, Enum):
757
1092
 
758
1093
 
759
1094
  class SubscriptionCancelReason(str, Enum):
1095
+ AutoCancellationRule = "AutoCancellationRule"
760
1096
  CancelledByBilling = "CancelledByBilling"
761
1097
  CustomerArchived = "CustomerArchived"
762
1098
  DetachBilling = "DetachBilling"
@@ -780,6 +1116,12 @@ class SubscriptionCancellationTime(str, Enum):
780
1116
  SPECIFIC_DATE = "SPECIFIC_DATE"
781
1117
 
782
1118
 
1119
+ class SubscriptionCouponStatus(str, Enum):
1120
+ ACTIVE = "ACTIVE"
1121
+ EXPIRED = "EXPIRED"
1122
+ REMOVED = "REMOVED"
1123
+
1124
+
783
1125
  class SubscriptionDecisionStrategy(str, Enum):
784
1126
  PREDEFINED_FREE_PLAN = "PREDEFINED_FREE_PLAN"
785
1127
  PREDEFINED_TRIAL_PLAN = "PREDEFINED_TRIAL_PLAN"
@@ -800,6 +1142,15 @@ class SubscriptionEntitlementSortFields(str, Enum):
800
1142
  updatedAt = "updatedAt"
801
1143
 
802
1144
 
1145
+ class SubscriptionInvoiceBillingReason(str, Enum):
1146
+ BILLING_CYCLE = "BILLING_CYCLE"
1147
+ MANUAL = "MANUAL"
1148
+ MINIMUM_INVOICE_AMOUNT_EXCEEDED = "MINIMUM_INVOICE_AMOUNT_EXCEEDED"
1149
+ OTHER = "OTHER"
1150
+ SUBSCRIPTION_CREATION = "SUBSCRIPTION_CREATION"
1151
+ SUBSCRIPTION_UPDATE = "SUBSCRIPTION_UPDATE"
1152
+
1153
+
803
1154
  class SubscriptionInvoiceStatus(str, Enum):
804
1155
  CANCELED = "CANCELED"
805
1156
  OPEN = "OPEN"
@@ -823,11 +1174,35 @@ class SubscriptionPriceSortFields(str, Enum):
823
1174
  billingModel = "billingModel"
824
1175
  createdAt = "createdAt"
825
1176
  featureId = "featureId"
1177
+ hasSoftLimit = "hasSoftLimit"
826
1178
  id = "id"
827
1179
  updatedAt = "updatedAt"
828
1180
  usageLimit = "usageLimit"
829
1181
 
830
1182
 
1183
+ class SubscriptionProrationBehavior(str, Enum):
1184
+ CREATE_PRORATIONS = "CREATE_PRORATIONS"
1185
+ INVOICE_IMMEDIATELY = "INVOICE_IMMEDIATELY"
1186
+ NONE = "NONE"
1187
+
1188
+
1189
+ class SubscriptionQuerySortFields(str, Enum):
1190
+ billingId = "billingId"
1191
+ cancellationDate = "cancellationDate"
1192
+ createdAt = "createdAt"
1193
+ customerId = "customerId"
1194
+ endDate = "endDate"
1195
+ environmentId = "environmentId"
1196
+ paymentCollection = "paymentCollection"
1197
+ pricingType = "pricingType"
1198
+ productId = "productId"
1199
+ resourceId = "resourceId"
1200
+ salesforceId = "salesforceId"
1201
+ startDate = "startDate"
1202
+ status = "status"
1203
+ subscriptionId = "subscriptionId"
1204
+
1205
+
831
1206
  class SubscriptionScheduleStatus(str, Enum):
832
1207
  Canceled = "Canceled"
833
1208
  Done = "Done"
@@ -837,10 +1212,15 @@ class SubscriptionScheduleStatus(str, Enum):
837
1212
 
838
1213
 
839
1214
  class SubscriptionScheduleType(str, Enum):
1215
+ AdditionalMetaData = "AdditionalMetaData"
840
1216
  Addon = "Addon"
1217
+ BillingInfoMetadata = "BillingInfoMetadata"
841
1218
  BillingPeriod = "BillingPeriod"
1219
+ Coupon = "Coupon"
842
1220
  Downgrade = "Downgrade"
843
1221
  MigrateToLatest = "MigrateToLatest"
1222
+ Plan = "Plan"
1223
+ PriceOverride = "PriceOverride"
844
1224
  UnitAmount = "UnitAmount"
845
1225
 
846
1226
 
@@ -859,6 +1239,12 @@ class SubscriptionStatus(str, Enum):
859
1239
  PAYMENT_PENDING = "PAYMENT_PENDING"
860
1240
 
861
1241
 
1242
+ class SubscriptionUpdateUsageCutoffBehavior(str, Enum):
1243
+ ALWAYS_RESET = "ALWAYS_RESET"
1244
+ BILLING_PERIOD_CHANGE = "BILLING_PERIOD_CHANGE"
1245
+ NEVER_RESET = "NEVER_RESET"
1246
+
1247
+
862
1248
  class SyncStatus(str, Enum):
863
1249
  ERROR = "ERROR"
864
1250
  NO_SYNC_REQUIRED = "NO_SYNC_REQUIRED"
@@ -879,6 +1265,7 @@ class TaskType(str, Enum):
879
1265
  IMPORT_INTEGRATION_CATALOG = "IMPORT_INTEGRATION_CATALOG"
880
1266
  IMPORT_INTEGRATION_CUSTOMERS = "IMPORT_INTEGRATION_CUSTOMERS"
881
1267
  IMPORT_SUBSCRIPTIONS_BULK = "IMPORT_SUBSCRIPTIONS_BULK"
1268
+ RECALCULATE_BATCH_ENTITLEMENTS = "RECALCULATE_BATCH_ENTITLEMENTS"
882
1269
  RECALCULATE_ENTITLEMENTS = "RECALCULATE_ENTITLEMENTS"
883
1270
  RESYNC_INTEGRATION = "RESYNC_INTEGRATION"
884
1271
  SUBSCRIPTION_MIGRATION = "SUBSCRIPTION_MIGRATION"
@@ -890,11 +1277,26 @@ class TiersMode(str, Enum):
890
1277
  VOLUME = "VOLUME"
891
1278
 
892
1279
 
1280
+ class TrialEndBehavior(str, Enum):
1281
+ CANCEL_SUBSCRIPTION = "CANCEL_SUBSCRIPTION"
1282
+ CONVERT_TO_PAID = "CONVERT_TO_PAID"
1283
+
1284
+
893
1285
  class TrialPeriodUnits(str, Enum):
894
1286
  DAY = "DAY"
895
1287
  MONTH = "MONTH"
896
1288
 
897
1289
 
1290
+ class UnitTransformationRound(str, Enum):
1291
+ DOWN = "DOWN"
1292
+ UP = "UP"
1293
+
1294
+
1295
+ class UsageMarkerType(str, Enum):
1296
+ PERIODIC_RESET = "PERIODIC_RESET"
1297
+ SUBSCRIPTION_CHANGE_RESET = "SUBSCRIPTION_CHANGE_RESET"
1298
+
1299
+
898
1300
  class UsageMeasurementSortFields(str, Enum):
899
1301
  createdAt = "createdAt"
900
1302
  environmentId = "environmentId"
@@ -907,12 +1309,25 @@ class UsageUpdateBehavior(str, Enum):
907
1309
 
908
1310
 
909
1311
  class VendorIdentifier(str, Enum):
1312
+ AUTH0 = "AUTH0"
910
1313
  AWS_MARKETPLACE = "AWS_MARKETPLACE"
1314
+ BIG_QUERY = "BIG_QUERY"
911
1315
  HUBSPOT = "HUBSPOT"
1316
+ OPEN_FGA = "OPEN_FGA"
1317
+ SALESFORCE = "SALESFORCE"
1318
+ SNOWFLAKE = "SNOWFLAKE"
912
1319
  STRIPE = "STRIPE"
913
1320
  ZUORA = "ZUORA"
914
1321
 
915
1322
 
1323
+ class VendorType(str, Enum):
1324
+ AUTH = "AUTH"
1325
+ BILLING = "BILLING"
1326
+ CRM = "CRM"
1327
+ DATA_EXPORT = "DATA_EXPORT"
1328
+ MARKETPLACE = "MARKETPLACE"
1329
+
1330
+
916
1331
  class WeeklyAccordingTo(str, Enum):
917
1332
  EveryFriday = "EveryFriday"
918
1333
  EveryMonday = "EveryMonday"
@@ -930,6 +1345,10 @@ class WidgetType(str, Enum):
930
1345
  PAYWALL = "PAYWALL"
931
1346
 
932
1347
 
1348
+ class YearlyAccordingTo(str, Enum):
1349
+ SubscriptionStart = "SubscriptionStart"
1350
+
1351
+
933
1352
  class experimentGroupType(str, Enum):
934
1353
  CONTROL = "CONTROL"
935
1354
  VARIANT = "VARIANT"