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

@@ -10,6 +10,10 @@ from .cancel_subscription import (
10
10
  CancelSubscriptionCancelSubscription,
11
11
  )
12
12
  from .cancel_subscription_updates import CancelSubscriptionUpdates
13
+ from .create_payment_session import (
14
+ CreatePaymentSession,
15
+ CreatePaymentSessionCreatePaymentSession,
16
+ )
13
17
  from .create_subscription import (
14
18
  CreateSubscription,
15
19
  CreateSubscriptionCreateSubscription,
@@ -175,6 +179,8 @@ from .fragments import (
175
179
  CheckoutStateFragment,
176
180
  CheckoutStateFragmentActiveSubscription,
177
181
  CheckoutStateFragmentBillingIntegration,
182
+ CheckoutStateFragmentBillingIntegrationBillingCredentialsStripeCheckoutCredentials,
183
+ CheckoutStateFragmentBillingIntegrationBillingCredentialsZuoraCheckoutCredentials,
178
184
  CheckoutStateFragmentBillingIntegrationCredentials,
179
185
  CheckoutStateFragmentConfiguration,
180
186
  CheckoutStateFragmentCustomer,
@@ -315,6 +321,7 @@ from .fragments import (
315
321
  PackageEntitlementFragmentFeature,
316
322
  PackagePublishedPayload,
317
323
  PageInfoFragment,
324
+ PaymentSessionFragment,
318
325
  PaywallCalculatedPricePointsFragment,
319
326
  PaywallCalculatedPricePointsFragmentFeature,
320
327
  PaywallConfigurationFragment,
@@ -385,6 +392,7 @@ from .fragments import (
385
392
  SlimSubscriptionFragmentV2Plan,
386
393
  SlimSubscriptionFragmentV2Resource,
387
394
  SlimSubscriptionFragmentV2TrialConfiguration,
395
+ StripeCheckoutCredentialsFragment,
388
396
  SubscriptionFragment,
389
397
  SubscriptionFragmentAddons,
390
398
  SubscriptionFragmentAddonsAddon,
@@ -519,6 +527,7 @@ from .fragments import (
519
527
  UsageHistoryV2FragmentSeriesPoints,
520
528
  UsageHistoryV2FragmentSeriesTags,
521
529
  UsageUpdatedFragment,
530
+ ZuoraCheckoutCredentialsFragment,
522
531
  )
523
532
  from .get_active_subscriptions import (
524
533
  GetActiveSubscriptions,
@@ -805,6 +814,7 @@ from .input_types import (
805
814
  PackagePublishInput,
806
815
  PackageStatusFilterComparison,
807
816
  PaymentCollectionFilterComparison,
817
+ PaymentSessionInput,
808
818
  PaywallColorsPaletteInput,
809
819
  PaywallConfigurationInput,
810
820
  PaywallLayoutConfigurationInput,
@@ -1095,6 +1105,8 @@ __all__ = [
1095
1105
  "CheckoutStateFragment",
1096
1106
  "CheckoutStateFragmentActiveSubscription",
1097
1107
  "CheckoutStateFragmentBillingIntegration",
1108
+ "CheckoutStateFragmentBillingIntegrationBillingCredentialsStripeCheckoutCredentials",
1109
+ "CheckoutStateFragmentBillingIntegrationBillingCredentialsZuoraCheckoutCredentials",
1098
1110
  "CheckoutStateFragmentBillingIntegrationCredentials",
1099
1111
  "CheckoutStateFragmentConfiguration",
1100
1112
  "CheckoutStateFragmentCustomer",
@@ -1132,6 +1144,8 @@ __all__ = [
1132
1144
  "CreateOneProductInput",
1133
1145
  "CreateOrUpdateAwsMarketplaceProductInput",
1134
1146
  "CreatePackageGroup",
1147
+ "CreatePaymentSession",
1148
+ "CreatePaymentSessionCreatePaymentSession",
1135
1149
  "CreateSubscription",
1136
1150
  "CreateSubscriptionCreateSubscription",
1137
1151
  "CreateWorkflowTriggerInput",
@@ -1541,6 +1555,8 @@ __all__ = [
1541
1555
  "PaymentCollectionFilterComparison",
1542
1556
  "PaymentCollectionMethod",
1543
1557
  "PaymentMethodType",
1558
+ "PaymentSessionFragment",
1559
+ "PaymentSessionInput",
1544
1560
  "PaywallCalculatedPricePointsFragment",
1545
1561
  "PaywallCalculatedPricePointsFragmentFeature",
1546
1562
  "PaywallColorsPaletteInput",
@@ -1708,6 +1724,7 @@ __all__ = [
1708
1724
  "StartExperimentInput",
1709
1725
  "StopExperimentInput",
1710
1726
  "StringFieldComparison",
1727
+ "StripeCheckoutCredentialsFragment",
1711
1728
  "StripeCredentialsInput",
1712
1729
  "StripeCustomerSearchInput",
1713
1730
  "StripeProductSearchInput",
@@ -1986,6 +2003,7 @@ __all__ = [
1986
2003
  "WorkflowsLoginInput",
1987
2004
  "YearlyAccordingTo",
1988
2005
  "YearlyResetPeriodConfigInput",
2006
+ "ZuoraCheckoutCredentialsFragment",
1989
2007
  "ZuoraCredentialsInput",
1990
2008
  "experimentGroupType",
1991
2009
  ]
@@ -9,6 +9,7 @@ from .async_base_client import AsyncBaseClient
9
9
  from .base_model import UNSET, UnsetType
10
10
  from .cancel_subscription import CancelSubscription
11
11
  from .cancel_subscription_updates import CancelSubscriptionUpdates
12
+ from .create_payment_session import CreatePaymentSession
12
13
  from .create_subscription import CreateSubscription
13
14
  from .delegate_subscription_to_customer import DelegateSubscriptionToCustomer
14
15
  from .detach_customer_payment_method import DetachCustomerPaymentMethod
@@ -64,6 +65,7 @@ from .input_types import (
64
65
  ImportCustomerBulkInput,
65
66
  ImportCustomerInput,
66
67
  ImportSubscriptionsBulkInput,
68
+ PaymentSessionInput,
67
69
  PreviewNextInvoiceInput,
68
70
  PreviewSubscriptionInput,
69
71
  ProvisionCustomerInput,
@@ -3081,6 +3083,32 @@ class AsyncClient(AsyncBaseClient):
3081
3083
  data = self.get_data(response)
3082
3084
  return UnlinkPromotionalEntitlementsGroup.model_validate(data)
3083
3085
 
3086
+ async def create_payment_session(
3087
+ self, input: PaymentSessionInput, **kwargs: Any
3088
+ ) -> CreatePaymentSession:
3089
+ query = gql(
3090
+ """
3091
+ mutation CreatePaymentSession($input: PaymentSessionInput!) {
3092
+ createPaymentSession(input: $input) {
3093
+ ...PaymentSessionFragment
3094
+ }
3095
+ }
3096
+
3097
+ fragment PaymentSessionFragment on PaymentSession {
3098
+ token
3099
+ }
3100
+ """
3101
+ )
3102
+ variables: Dict[str, object] = {"input": input}
3103
+ response = await self.execute(
3104
+ query=query,
3105
+ operation_name="CreatePaymentSession",
3106
+ variables=variables,
3107
+ **kwargs
3108
+ )
3109
+ data = self.get_data(response)
3110
+ return CreatePaymentSession.model_validate(data)
3111
+
3084
3112
  async def get_customer_by_id(
3085
3113
  self, input: GetCustomerByRefIdInput, **kwargs: Any
3086
3114
  ) -> GetCustomerById:
@@ -5779,6 +5807,14 @@ class AsyncClient(AsyncBaseClient):
5779
5807
  }
5780
5808
  billingIntegration {
5781
5809
  billingIdentifier
5810
+ billingCredentials {
5811
+ ... on StripeCheckoutCredentials {
5812
+ ...StripeCheckoutCredentialsFragment
5813
+ }
5814
+ ... on ZuoraCheckoutCredentials {
5815
+ ...ZuoraCheckoutCredentialsFragment
5816
+ }
5817
+ }
5782
5818
  credentials {
5783
5819
  accountId
5784
5820
  publicKey
@@ -6101,6 +6137,12 @@ class AsyncClient(AsyncBaseClient):
6101
6137
  awsMarketplaceCustomerId
6102
6138
  }
6103
6139
 
6140
+ fragment StripeCheckoutCredentialsFragment on StripeCheckoutCredentials {
6141
+ accountId
6142
+ setupSecret
6143
+ publicKey
6144
+ }
6145
+
6104
6146
  fragment SubscriptionFragment on CustomerSubscription {
6105
6147
  id
6106
6148
  subscriptionId
@@ -6244,6 +6286,10 @@ class AsyncClient(AsyncBaseClient):
6244
6286
  ...FontVariantFragment
6245
6287
  }
6246
6288
  }
6289
+
6290
+ fragment ZuoraCheckoutCredentialsFragment on ZuoraCheckoutCredentials {
6291
+ publishableKey
6292
+ }
6247
6293
  """
6248
6294
  )
6249
6295
  variables: Dict[str, object] = {"input": input}
stigg/generated/client.py CHANGED
@@ -9,6 +9,7 @@ from .base_client import BaseClient
9
9
  from .base_model import UNSET, UnsetType
10
10
  from .cancel_subscription import CancelSubscription
11
11
  from .cancel_subscription_updates import CancelSubscriptionUpdates
12
+ from .create_payment_session import CreatePaymentSession
12
13
  from .create_subscription import CreateSubscription
13
14
  from .delegate_subscription_to_customer import DelegateSubscriptionToCustomer
14
15
  from .detach_customer_payment_method import DetachCustomerPaymentMethod
@@ -64,6 +65,7 @@ from .input_types import (
64
65
  ImportCustomerBulkInput,
65
66
  ImportCustomerInput,
66
67
  ImportSubscriptionsBulkInput,
68
+ PaymentSessionInput,
67
69
  PreviewNextInvoiceInput,
68
70
  PreviewSubscriptionInput,
69
71
  ProvisionCustomerInput,
@@ -3077,6 +3079,32 @@ class Client(BaseClient):
3077
3079
  data = self.get_data(response)
3078
3080
  return UnlinkPromotionalEntitlementsGroup.model_validate(data)
3079
3081
 
3082
+ def create_payment_session(
3083
+ self, input: PaymentSessionInput, **kwargs: Any
3084
+ ) -> CreatePaymentSession:
3085
+ query = gql(
3086
+ """
3087
+ mutation CreatePaymentSession($input: PaymentSessionInput!) {
3088
+ createPaymentSession(input: $input) {
3089
+ ...PaymentSessionFragment
3090
+ }
3091
+ }
3092
+
3093
+ fragment PaymentSessionFragment on PaymentSession {
3094
+ token
3095
+ }
3096
+ """
3097
+ )
3098
+ variables: Dict[str, object] = {"input": input}
3099
+ response = self.execute(
3100
+ query=query,
3101
+ operation_name="CreatePaymentSession",
3102
+ variables=variables,
3103
+ **kwargs
3104
+ )
3105
+ data = self.get_data(response)
3106
+ return CreatePaymentSession.model_validate(data)
3107
+
3080
3108
  def get_customer_by_id(
3081
3109
  self, input: GetCustomerByRefIdInput, **kwargs: Any
3082
3110
  ) -> GetCustomerById:
@@ -5775,6 +5803,14 @@ class Client(BaseClient):
5775
5803
  }
5776
5804
  billingIntegration {
5777
5805
  billingIdentifier
5806
+ billingCredentials {
5807
+ ... on StripeCheckoutCredentials {
5808
+ ...StripeCheckoutCredentialsFragment
5809
+ }
5810
+ ... on ZuoraCheckoutCredentials {
5811
+ ...ZuoraCheckoutCredentialsFragment
5812
+ }
5813
+ }
5778
5814
  credentials {
5779
5815
  accountId
5780
5816
  publicKey
@@ -6097,6 +6133,12 @@ class Client(BaseClient):
6097
6133
  awsMarketplaceCustomerId
6098
6134
  }
6099
6135
 
6136
+ fragment StripeCheckoutCredentialsFragment on StripeCheckoutCredentials {
6137
+ accountId
6138
+ setupSecret
6139
+ publicKey
6140
+ }
6141
+
6100
6142
  fragment SubscriptionFragment on CustomerSubscription {
6101
6143
  id
6102
6144
  subscriptionId
@@ -6240,6 +6282,10 @@ class Client(BaseClient):
6240
6282
  ...FontVariantFragment
6241
6283
  }
6242
6284
  }
6285
+
6286
+ fragment ZuoraCheckoutCredentialsFragment on ZuoraCheckoutCredentials {
6287
+ publishableKey
6288
+ }
6243
6289
  """
6244
6290
  )
6245
6291
  variables: Dict[str, object] = {"input": input}
@@ -0,0 +1,20 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: operations.graphql
3
+
4
+ from stigg._vendors.pydantic import Field
5
+
6
+ from .base_model import BaseModel
7
+ from .fragments import PaymentSessionFragment
8
+
9
+
10
+ class CreatePaymentSession(BaseModel):
11
+ create_payment_session: "CreatePaymentSessionCreatePaymentSession" = Field(
12
+ alias="createPaymentSession"
13
+ )
14
+
15
+
16
+ class CreatePaymentSessionCreatePaymentSession(PaymentSessionFragment):
17
+ pass
18
+
19
+
20
+ CreatePaymentSession.model_rebuild()
stigg/generated/enums.py CHANGED
@@ -110,6 +110,7 @@ class BillingPeriod(str, Enum):
110
110
 
111
111
  class BillingVendorIdentifier(str, Enum):
112
112
  STRIPE = "STRIPE"
113
+ ZUORA = "ZUORA"
113
114
 
114
115
 
115
116
  class ChangeType(str, Enum):
@@ -116,41 +116,29 @@ class PriceTierFragmentFlatPrice(BaseModel):
116
116
  currency: Currency
117
117
 
118
118
 
119
- class PriceFragment(BaseModel):
119
+ class OveragePriceFragment(BaseModel):
120
120
  billing_model: BillingModel = Field(alias="billingModel")
121
121
  billing_period: BillingPeriod = Field(alias="billingPeriod")
122
- billing_cadence: BillingCadence = Field(alias="billingCadence")
123
122
  billing_id: Optional[str] = Field(alias="billingId", default=None)
124
- min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
125
- max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
126
123
  billing_country_code: Optional[str] = Field(
127
124
  alias="billingCountryCode", default=None
128
125
  )
129
- price: Optional["PriceFragmentPrice"] = Field(default=None)
130
- credit_rate: Optional["PriceFragmentCreditRate"] = Field(
131
- alias="creditRate", default=None
132
- )
126
+ price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
133
127
  tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
134
- tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
135
- feature: Optional["PriceFragmentFeature"] = Field(default=None)
136
- block_size: Optional[float] = Field(alias="blockSize", default=None)
128
+ tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
129
+ feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
137
130
 
138
131
 
139
- class PriceFragmentPrice(BaseModel):
132
+ class OveragePriceFragmentPrice(BaseModel):
140
133
  amount: float
141
134
  currency: Currency
142
135
 
143
136
 
144
- class PriceFragmentCreditRate(BaseModel):
145
- amount: float
146
- custom_currency_id: Any = Field(alias="customCurrencyId")
147
-
148
-
149
- class PriceFragmentTiers(PriceTierFragment):
137
+ class OveragePriceFragmentTiers(PriceTierFragment):
150
138
  pass
151
139
 
152
140
 
153
- class PriceFragmentFeature(BaseModel):
141
+ class OveragePriceFragmentFeature(BaseModel):
154
142
  ref_id: str = Field(alias="refId")
155
143
  feature_units: Optional[str] = Field(alias="featureUnits", default=None)
156
144
  feature_units_plural: Optional[str] = Field(
@@ -160,29 +148,41 @@ class PriceFragmentFeature(BaseModel):
160
148
  description: Optional[str] = Field(default=None)
161
149
 
162
150
 
163
- class OveragePriceFragment(BaseModel):
151
+ class PriceFragment(BaseModel):
164
152
  billing_model: BillingModel = Field(alias="billingModel")
165
153
  billing_period: BillingPeriod = Field(alias="billingPeriod")
154
+ billing_cadence: BillingCadence = Field(alias="billingCadence")
166
155
  billing_id: Optional[str] = Field(alias="billingId", default=None)
156
+ min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
157
+ max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
167
158
  billing_country_code: Optional[str] = Field(
168
159
  alias="billingCountryCode", default=None
169
160
  )
170
- price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
161
+ price: Optional["PriceFragmentPrice"] = Field(default=None)
162
+ credit_rate: Optional["PriceFragmentCreditRate"] = Field(
163
+ alias="creditRate", default=None
164
+ )
171
165
  tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
172
- tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
173
- feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
166
+ tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
167
+ feature: Optional["PriceFragmentFeature"] = Field(default=None)
168
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
174
169
 
175
170
 
176
- class OveragePriceFragmentPrice(BaseModel):
171
+ class PriceFragmentPrice(BaseModel):
177
172
  amount: float
178
173
  currency: Currency
179
174
 
180
175
 
181
- class OveragePriceFragmentTiers(PriceTierFragment):
176
+ class PriceFragmentCreditRate(BaseModel):
177
+ amount: float
178
+ custom_currency_id: Any = Field(alias="customCurrencyId")
179
+
180
+
181
+ class PriceFragmentTiers(PriceTierFragment):
182
182
  pass
183
183
 
184
184
 
185
- class OveragePriceFragmentFeature(BaseModel):
185
+ class PriceFragmentFeature(BaseModel):
186
186
  ref_id: str = Field(alias="refId")
187
187
  feature_units: Optional[str] = Field(alias="featureUnits", default=None)
188
188
  feature_units_plural: Optional[str] = Field(
@@ -230,6 +230,168 @@ class AddonFragmentDependencies(AddonDependencyFragment):
230
230
  pass
231
231
 
232
232
 
233
+ class SubscriptionScheduledUpdateData(BaseModel):
234
+ subscription_schedule_type: SubscriptionScheduleType = Field(
235
+ alias="subscriptionScheduleType"
236
+ )
237
+ schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
238
+ scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
239
+ target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
240
+ alias="targetPackage", default=None
241
+ )
242
+ schedule_variables: Optional[
243
+ Annotated[
244
+ Union[
245
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
246
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
247
+ "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
248
+ "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
249
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
250
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
251
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
252
+ "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
253
+ ],
254
+ Field(discriminator="typename__"),
255
+ ]
256
+ ] = Field(alias="scheduleVariables", default=None)
257
+
258
+
259
+ class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
260
+ id: Any
261
+ ref_id: str = Field(alias="refId")
262
+ display_name: str = Field(alias="displayName")
263
+
264
+
265
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
266
+ typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
267
+ addon_ref_id: str = Field(alias="addonRefId")
268
+ new_quantity: float = Field(alias="newQuantity")
269
+
270
+
271
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
272
+ BaseModel
273
+ ):
274
+ typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
275
+ addon_ref_id: str = Field(alias="addonRefId")
276
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
277
+
278
+
279
+ class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
280
+ BaseModel
281
+ ):
282
+ typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
283
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
284
+
285
+
286
+ class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
287
+ typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
288
+
289
+
290
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
291
+ BaseModel
292
+ ):
293
+ typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
294
+ downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
295
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
296
+ billable_features: Optional[
297
+ List[
298
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
299
+ ]
300
+ ] = Field(alias="billableFeatures", default=None)
301
+ addons: Optional[
302
+ List[
303
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
304
+ ]
305
+ ] = Field(default=None)
306
+ price_overrides: Optional[
307
+ List[
308
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
309
+ ]
310
+ ] = Field(alias="priceOverrides", default=None)
311
+
312
+
313
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
314
+ BaseModel
315
+ ):
316
+ feature_id: str = Field(alias="featureId")
317
+ quantity: float
318
+
319
+
320
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
321
+ BaseModel
322
+ ):
323
+ addon_ref_id: str = Field(alias="addonRefId")
324
+ quantity: float
325
+
326
+
327
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
328
+ BaseModel
329
+ ):
330
+ plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
331
+ addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
332
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
333
+
334
+
335
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
336
+ typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
337
+ plan_ref_id: str = Field(alias="planRefId")
338
+ change_type: PlanChangeType = Field(alias="changeType")
339
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
340
+ billable_features: Optional[
341
+ List[
342
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
343
+ ]
344
+ ] = Field(alias="billableFeatures", default=None)
345
+ addons: Optional[
346
+ List[
347
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
348
+ ]
349
+ ] = Field(default=None)
350
+ price_overrides: Optional[
351
+ List[
352
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
353
+ ]
354
+ ] = Field(alias="priceOverrides", default=None)
355
+
356
+
357
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
358
+ BaseModel
359
+ ):
360
+ feature_id: str = Field(alias="featureId")
361
+ quantity: float
362
+
363
+
364
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
365
+ BaseModel
366
+ ):
367
+ addon_ref_id: str = Field(alias="addonRefId")
368
+ quantity: float
369
+
370
+
371
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
372
+ BaseModel
373
+ ):
374
+ plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
375
+ addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
376
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
377
+
378
+
379
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
380
+ BaseModel
381
+ ):
382
+ typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
383
+ plan_ref_id: str = Field(alias="planRefId")
384
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
385
+
386
+
387
+ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
388
+ BaseModel
389
+ ):
390
+ typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
391
+ new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
392
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
393
+
394
+
233
395
  class SlimCustomerFragment(BaseModel):
234
396
  id: Any
235
397
  name: Optional[str] = Field(default=None)
@@ -247,10 +409,6 @@ class SlimCustomerFragment(BaseModel):
247
409
  )
248
410
 
249
411
 
250
- class CustomerResourceFragment(BaseModel):
251
- resource_id: str = Field(alias="resourceId")
252
-
253
-
254
412
  class SubscriptionFutureUpdateData(BaseModel):
255
413
  subscription_schedule_type: SubscriptionScheduleType = Field(
256
414
  alias="subscriptionScheduleType"
@@ -405,50 +563,23 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
405
563
  feature_id: Optional[str] = Field(alias="featureId", default=None)
406
564
 
407
565
 
408
- class SubscriptionInvoiceFragment(BaseModel):
409
- billing_id: str = Field(alias="billingId")
410
- status: SubscriptionInvoiceStatus
411
- created_at: Any = Field(alias="createdAt")
412
- due_date: Optional[Any] = Field(alias="dueDate", default=None)
413
- updated_at: Any = Field(alias="updatedAt")
414
- error_message: Optional[str] = Field(alias="errorMessage", default=None)
415
- requires_action: bool = Field(alias="requiresAction")
416
- payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
417
- payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
418
- pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
419
- billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
420
- alias="billingReason", default=None
421
- )
422
- currency: Optional[str] = Field(default=None)
423
- sub_total: Optional[float] = Field(alias="subTotal", default=None)
424
- sub_total_excluding_tax: Optional[float] = Field(
425
- alias="subTotalExcludingTax", default=None
426
- )
427
- total: Optional[float] = Field(default=None)
428
- total_excluding_tax: Optional[float] = Field(
429
- alias="totalExcludingTax", default=None
430
- )
431
- tax: Optional[float] = Field(default=None)
432
- amount_due: Optional[float] = Field(alias="amountDue", default=None)
433
- attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
566
+ class SubscriptionTrialConfigurationFragment(BaseModel):
567
+ trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
434
568
 
435
569
 
436
- class PlanCompatiblePackageGroupsFragment(BaseModel):
437
- package_group_id: str = Field(alias="packageGroupId")
438
- display_name: str = Field(alias="displayName")
439
- addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
440
- default=None
441
- )
442
- options: "PlanCompatiblePackageGroupsFragmentOptions"
570
+ class TotalPriceFragment(BaseModel):
571
+ sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
572
+ total: "TotalPriceFragmentTotal"
443
573
 
444
574
 
445
- class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
446
- pass
575
+ class TotalPriceFragmentSubTotal(BaseModel):
576
+ amount: float
577
+ currency: Currency
447
578
 
448
579
 
449
- class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
450
- min_items: Optional[float] = Field(alias="minItems", default=None)
451
- free_items: Optional[float] = Field(alias="freeItems", default=None)
580
+ class TotalPriceFragmentTotal(BaseModel):
581
+ amount: float
582
+ currency: Currency
452
583
 
453
584
 
454
585
  class ProductFragment(BaseModel):
@@ -472,6 +603,24 @@ class ProductFragmentProductSettingsDowngradePlan(BaseModel):
472
603
  display_name: str = Field(alias="displayName")
473
604
 
474
605
 
606
+ class PlanCompatiblePackageGroupsFragment(BaseModel):
607
+ package_group_id: str = Field(alias="packageGroupId")
608
+ display_name: str = Field(alias="displayName")
609
+ addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
610
+ default=None
611
+ )
612
+ options: "PlanCompatiblePackageGroupsFragmentOptions"
613
+
614
+
615
+ class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
616
+ pass
617
+
618
+
619
+ class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
620
+ min_items: Optional[float] = Field(alias="minItems", default=None)
621
+ free_items: Optional[float] = Field(alias="freeItems", default=None)
622
+
623
+
475
624
  class PlanFragment(BaseModel):
476
625
  id: Any
477
626
  ref_id: str = Field(alias="refId")
@@ -528,210 +677,61 @@ class PlanFragmentCompatibleAddons(AddonFragment):
528
677
  pass
529
678
 
530
679
 
531
- class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
532
- pass
533
-
534
-
535
- class PlanFragmentPrices(PriceFragment):
536
- pass
537
-
538
-
539
- class PlanFragmentOveragePrices(OveragePriceFragment):
540
- pass
541
-
542
-
543
- class PlanFragmentDefaultTrialConfig(BaseModel):
544
- duration: float
545
- units: TrialPeriodUnits
546
- budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
547
- trial_end_behavior: Optional[TrialEndBehavior] = Field(
548
- alias="trialEndBehavior", default=None
549
- )
550
-
551
-
552
- class PlanFragmentDefaultTrialConfigBudget(BaseModel):
553
- limit: float
554
-
555
-
556
- class SubscriptionScheduledUpdateData(BaseModel):
557
- subscription_schedule_type: SubscriptionScheduleType = Field(
558
- alias="subscriptionScheduleType"
559
- )
560
- schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
561
- scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
562
- target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
563
- alias="targetPackage", default=None
564
- )
565
- schedule_variables: Optional[
566
- Annotated[
567
- Union[
568
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
569
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
570
- "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
571
- "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
572
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
573
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
574
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
575
- "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
576
- ],
577
- Field(discriminator="typename__"),
578
- ]
579
- ] = Field(alias="scheduleVariables", default=None)
580
-
581
-
582
- class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
583
- id: Any
584
- ref_id: str = Field(alias="refId")
585
- display_name: str = Field(alias="displayName")
586
-
587
-
588
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
589
- typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
590
- addon_ref_id: str = Field(alias="addonRefId")
591
- new_quantity: float = Field(alias="newQuantity")
592
-
593
-
594
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
595
- BaseModel
596
- ):
597
- typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
598
- addon_ref_id: str = Field(alias="addonRefId")
599
- feature_id: Optional[str] = Field(alias="featureId", default=None)
600
-
601
-
602
- class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
603
- BaseModel
604
- ):
605
- typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
606
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
607
-
608
-
609
- class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
610
- typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
611
-
612
-
613
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
614
- BaseModel
615
- ):
616
- typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
617
- downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
618
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
619
- billable_features: Optional[
620
- List[
621
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
622
- ]
623
- ] = Field(alias="billableFeatures", default=None)
624
- addons: Optional[
625
- List[
626
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
627
- ]
628
- ] = Field(default=None)
629
- price_overrides: Optional[
630
- List[
631
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
632
- ]
633
- ] = Field(alias="priceOverrides", default=None)
634
-
635
-
636
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
637
- BaseModel
638
- ):
639
- feature_id: str = Field(alias="featureId")
640
- quantity: float
641
-
642
-
643
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
644
- BaseModel
645
- ):
646
- addon_ref_id: str = Field(alias="addonRefId")
647
- quantity: float
648
-
649
-
650
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
651
- BaseModel
652
- ):
653
- plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
654
- addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
655
- feature_id: Optional[str] = Field(alias="featureId", default=None)
656
-
657
-
658
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
659
- typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
660
- plan_ref_id: str = Field(alias="planRefId")
661
- change_type: PlanChangeType = Field(alias="changeType")
662
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
663
- billable_features: Optional[
664
- List[
665
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
666
- ]
667
- ] = Field(alias="billableFeatures", default=None)
668
- addons: Optional[
669
- List[
670
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
671
- ]
672
- ] = Field(default=None)
673
- price_overrides: Optional[
674
- List[
675
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
676
- ]
677
- ] = Field(alias="priceOverrides", default=None)
678
-
679
-
680
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
681
- BaseModel
682
- ):
683
- feature_id: str = Field(alias="featureId")
684
- quantity: float
685
-
686
-
687
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
688
- BaseModel
689
- ):
690
- addon_ref_id: str = Field(alias="addonRefId")
691
- quantity: float
692
-
693
-
694
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
695
- BaseModel
696
- ):
697
- plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
698
- addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
699
- feature_id: Optional[str] = Field(alias="featureId", default=None)
700
-
701
-
702
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
703
- BaseModel
704
- ):
705
- typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
706
- plan_ref_id: str = Field(alias="planRefId")
707
- feature_id: Optional[str] = Field(alias="featureId", default=None)
680
+ class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
681
+ pass
708
682
 
709
683
 
710
- class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
711
- BaseModel
712
- ):
713
- typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
714
- new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
715
- feature_id: Optional[str] = Field(alias="featureId", default=None)
684
+ class PlanFragmentPrices(PriceFragment):
685
+ pass
716
686
 
717
687
 
718
- class SubscriptionTrialConfigurationFragment(BaseModel):
719
- trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
688
+ class PlanFragmentOveragePrices(OveragePriceFragment):
689
+ pass
720
690
 
721
691
 
722
- class TotalPriceFragment(BaseModel):
723
- sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
724
- total: "TotalPriceFragmentTotal"
692
+ class PlanFragmentDefaultTrialConfig(BaseModel):
693
+ duration: float
694
+ units: TrialPeriodUnits
695
+ budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
696
+ trial_end_behavior: Optional[TrialEndBehavior] = Field(
697
+ alias="trialEndBehavior", default=None
698
+ )
725
699
 
726
700
 
727
- class TotalPriceFragmentSubTotal(BaseModel):
728
- amount: float
729
- currency: Currency
701
+ class PlanFragmentDefaultTrialConfigBudget(BaseModel):
702
+ limit: float
730
703
 
731
704
 
732
- class TotalPriceFragmentTotal(BaseModel):
733
- amount: float
734
- currency: Currency
705
+ class CustomerResourceFragment(BaseModel):
706
+ resource_id: str = Field(alias="resourceId")
707
+
708
+
709
+ class SubscriptionInvoiceFragment(BaseModel):
710
+ billing_id: str = Field(alias="billingId")
711
+ status: SubscriptionInvoiceStatus
712
+ created_at: Any = Field(alias="createdAt")
713
+ due_date: Optional[Any] = Field(alias="dueDate", default=None)
714
+ updated_at: Any = Field(alias="updatedAt")
715
+ error_message: Optional[str] = Field(alias="errorMessage", default=None)
716
+ requires_action: bool = Field(alias="requiresAction")
717
+ payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
718
+ payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
719
+ pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
720
+ billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
721
+ alias="billingReason", default=None
722
+ )
723
+ currency: Optional[str] = Field(default=None)
724
+ sub_total: Optional[float] = Field(alias="subTotal", default=None)
725
+ sub_total_excluding_tax: Optional[float] = Field(
726
+ alias="subTotalExcludingTax", default=None
727
+ )
728
+ total: Optional[float] = Field(default=None)
729
+ total_excluding_tax: Optional[float] = Field(
730
+ alias="totalExcludingTax", default=None
731
+ )
732
+ tax: Optional[float] = Field(default=None)
733
+ amount_due: Optional[float] = Field(alias="amountDue", default=None)
734
+ attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
735
735
 
736
736
 
737
737
  class SubscriptionFragment(BaseModel):
@@ -1005,33 +1005,10 @@ class CheckoutConfigurationFragmentContent(BaseModel):
1005
1005
  )
1006
1006
 
1007
1007
 
1008
- class PromotionalEntitlementFragment(BaseModel):
1009
- status: PromotionalEntitlementStatus
1010
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1011
- feature_id: Any = Field(alias="featureId")
1012
- has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1013
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1014
- reset_period: Optional[EntitlementResetPeriod] = Field(
1015
- alias="resetPeriod", default=None
1016
- )
1017
- end_date: Optional[Any] = Field(alias="endDate", default=None)
1018
- is_visible: bool = Field(alias="isVisible")
1019
- feature: "PromotionalEntitlementFragmentFeature"
1020
-
1021
-
1022
- class PromotionalEntitlementFragmentFeature(BaseModel):
1023
- feature_type: FeatureType = Field(alias="featureType")
1024
- meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1025
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1026
- feature_units_plural: Optional[str] = Field(
1027
- alias="featureUnitsPlural", default=None
1028
- )
1029
- display_name: str = Field(alias="displayName")
1030
- description: Optional[str] = Field(default=None)
1031
- ref_id: str = Field(alias="refId")
1032
- additional_meta_data: Optional[Any] = Field(
1033
- alias="additionalMetaData", default=None
1034
- )
1008
+ class StripeCheckoutCredentialsFragment(BaseModel):
1009
+ account_id: Optional[str] = Field(alias="accountId", default=None)
1010
+ setup_secret: str = Field(alias="setupSecret")
1011
+ public_key: Optional[str] = Field(alias="publicKey", default=None)
1035
1012
 
1036
1013
 
1037
1014
  class CouponFragment(BaseModel):
@@ -1068,6 +1045,35 @@ class CouponFragmentSyncStates(BaseModel):
1068
1045
  status: SyncStatus
1069
1046
 
1070
1047
 
1048
+ class PromotionalEntitlementFragment(BaseModel):
1049
+ status: PromotionalEntitlementStatus
1050
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1051
+ feature_id: Any = Field(alias="featureId")
1052
+ has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1053
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1054
+ reset_period: Optional[EntitlementResetPeriod] = Field(
1055
+ alias="resetPeriod", default=None
1056
+ )
1057
+ end_date: Optional[Any] = Field(alias="endDate", default=None)
1058
+ is_visible: bool = Field(alias="isVisible")
1059
+ feature: "PromotionalEntitlementFragmentFeature"
1060
+
1061
+
1062
+ class PromotionalEntitlementFragmentFeature(BaseModel):
1063
+ feature_type: FeatureType = Field(alias="featureType")
1064
+ meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1065
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1066
+ feature_units_plural: Optional[str] = Field(
1067
+ alias="featureUnitsPlural", default=None
1068
+ )
1069
+ display_name: str = Field(alias="displayName")
1070
+ description: Optional[str] = Field(default=None)
1071
+ ref_id: str = Field(alias="refId")
1072
+ additional_meta_data: Optional[Any] = Field(
1073
+ alias="additionalMetaData", default=None
1074
+ )
1075
+
1076
+
1071
1077
  class CustomerFragment(SlimCustomerFragment):
1072
1078
  has_payment_method: bool = Field(alias="hasPaymentMethod")
1073
1079
  has_active_subscription: bool = Field(alias="hasActiveSubscription")
@@ -1126,6 +1132,10 @@ class CustomerFragmentPromotionalEntitlements(PromotionalEntitlementFragment):
1126
1132
  pass
1127
1133
 
1128
1134
 
1135
+ class ZuoraCheckoutCredentialsFragment(BaseModel):
1136
+ publishable_key: str = Field(alias="publishableKey")
1137
+
1138
+
1129
1139
  class CheckoutStateFragment(BaseModel):
1130
1140
  configuration: Optional["CheckoutStateFragmentConfiguration"] = Field(default=None)
1131
1141
  setup_secret: str = Field(alias="setupSecret")
@@ -1162,12 +1172,28 @@ class CheckoutStateFragmentPlan(PlanFragment):
1162
1172
 
1163
1173
  class CheckoutStateFragmentBillingIntegration(BaseModel):
1164
1174
  billing_identifier: BillingVendorIdentifier = Field(alias="billingIdentifier")
1175
+ billing_credentials: Union[
1176
+ "CheckoutStateFragmentBillingIntegrationBillingCredentialsStripeCheckoutCredentials",
1177
+ "CheckoutStateFragmentBillingIntegrationBillingCredentialsZuoraCheckoutCredentials",
1178
+ ] = Field(alias="billingCredentials", discriminator="typename__")
1165
1179
  credentials: "CheckoutStateFragmentBillingIntegrationCredentials"
1166
1180
 
1167
1181
 
1182
+ class CheckoutStateFragmentBillingIntegrationBillingCredentialsStripeCheckoutCredentials(
1183
+ StripeCheckoutCredentialsFragment
1184
+ ):
1185
+ typename__: Literal["StripeCheckoutCredentials"] = Field(alias="__typename")
1186
+
1187
+
1188
+ class CheckoutStateFragmentBillingIntegrationBillingCredentialsZuoraCheckoutCredentials(
1189
+ ZuoraCheckoutCredentialsFragment
1190
+ ):
1191
+ typename__: Literal["ZuoraCheckoutCredentials"] = Field(alias="__typename")
1192
+
1193
+
1168
1194
  class CheckoutStateFragmentBillingIntegrationCredentials(BaseModel):
1169
- account_id: str = Field(alias="accountId")
1170
- public_key: str = Field(alias="publicKey")
1195
+ account_id: Optional[str] = Field(alias="accountId", default=None)
1196
+ public_key: Optional[str] = Field(alias="publicKey", default=None)
1171
1197
 
1172
1198
 
1173
1199
  class CreditGrantFragment(BaseModel):
@@ -1326,46 +1352,14 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
1326
1352
  pass
1327
1353
 
1328
1354
 
1329
- class CustomerPortalSubscriptionPriceFragment(BaseModel):
1330
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1331
- billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
1332
- block_size: Optional[float] = Field(alias="blockSize", default=None)
1333
- price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
1334
- default=None
1335
- )
1336
- credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
1337
- alias="creditRate", default=None
1338
- )
1339
- feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
1340
- default=None
1341
- )
1342
-
1343
-
1344
- class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
1345
- amount: float
1346
- currency: Currency
1347
-
1348
-
1349
- class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
1350
- amount: float
1351
- custom_currency_id: Any = Field(alias="customCurrencyId")
1352
-
1353
-
1354
- class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1355
- id: Any
1356
- ref_id: str = Field(alias="refId")
1357
- display_name: str = Field(alias="displayName")
1358
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1359
- feature_units_plural: Optional[str] = Field(
1360
- alias="featureUnitsPlural", default=None
1361
- )
1362
-
1363
-
1364
- class CustomerPortalSubscriptionAddonFragment(BaseModel):
1365
- addon_id: str = Field(alias="addonId")
1366
- description: Optional[str] = Field(default=None)
1355
+ class CustomerPortalPromotionalEntitlementFragment(BaseModel):
1367
1356
  display_name: str = Field(alias="displayName")
1368
- quantity: int
1357
+ has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1358
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1359
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1360
+ period: PromotionalEntitlementPeriod
1361
+ start_date: Any = Field(alias="startDate")
1362
+ end_date: Optional[Any] = Field(alias="endDate", default=None)
1369
1363
 
1370
1364
 
1371
1365
  class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
@@ -1537,6 +1531,48 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
1537
1531
  feature_id: Optional[str] = Field(alias="featureId", default=None)
1538
1532
 
1539
1533
 
1534
+ class CustomerPortalSubscriptionAddonFragment(BaseModel):
1535
+ addon_id: str = Field(alias="addonId")
1536
+ description: Optional[str] = Field(default=None)
1537
+ display_name: str = Field(alias="displayName")
1538
+ quantity: int
1539
+
1540
+
1541
+ class CustomerPortalSubscriptionPriceFragment(BaseModel):
1542
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1543
+ billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
1544
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
1545
+ price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
1546
+ default=None
1547
+ )
1548
+ credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
1549
+ alias="creditRate", default=None
1550
+ )
1551
+ feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
1552
+ default=None
1553
+ )
1554
+
1555
+
1556
+ class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
1557
+ amount: float
1558
+ currency: Currency
1559
+
1560
+
1561
+ class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
1562
+ amount: float
1563
+ custom_currency_id: Any = Field(alias="customCurrencyId")
1564
+
1565
+
1566
+ class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1567
+ id: Any
1568
+ ref_id: str = Field(alias="refId")
1569
+ display_name: str = Field(alias="displayName")
1570
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1571
+ feature_units_plural: Optional[str] = Field(
1572
+ alias="featureUnitsPlural", default=None
1573
+ )
1574
+
1575
+
1540
1576
  class CustomerPortalSubscriptionFragment(BaseModel):
1541
1577
  subscription_id: str = Field(alias="subscriptionId")
1542
1578
  plan_id: str = Field(alias="planId")
@@ -1641,16 +1677,6 @@ class CustomerPortalSubscriptionFragmentScheduledUpdates(
1641
1677
  pass
1642
1678
 
1643
1679
 
1644
- class CustomerPortalPromotionalEntitlementFragment(BaseModel):
1645
- display_name: str = Field(alias="displayName")
1646
- has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1647
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1648
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1649
- period: PromotionalEntitlementPeriod
1650
- start_date: Any = Field(alias="startDate")
1651
- end_date: Optional[Any] = Field(alias="endDate", default=None)
1652
-
1653
-
1654
1680
  class CustomerPortalFragment(BaseModel):
1655
1681
  subscriptions: List["CustomerPortalFragmentSubscriptions"]
1656
1682
  entitlements: List["CustomerPortalFragmentEntitlements"]
@@ -2106,6 +2132,10 @@ class PageInfoFragment(BaseModel):
2106
2132
  has_previous_page: Optional[bool] = Field(alias="hasPreviousPage", default=None)
2107
2133
 
2108
2134
 
2135
+ class PaymentSessionFragment(BaseModel):
2136
+ token: str
2137
+
2138
+
2109
2139
  class PaywallCalculatedPricePointsFragment(BaseModel):
2110
2140
  plan_id: str = Field(alias="planId")
2111
2141
  additional_charges_may_apply: Optional[bool] = Field(
@@ -2930,19 +2960,19 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
2930
2960
  AddonDependencyFragment.model_rebuild()
2931
2961
  PackageEntitlementFragment.model_rebuild()
2932
2962
  PriceTierFragment.model_rebuild()
2933
- PriceFragment.model_rebuild()
2934
2963
  OveragePriceFragment.model_rebuild()
2964
+ PriceFragment.model_rebuild()
2935
2965
  AddonFragment.model_rebuild()
2966
+ SubscriptionScheduledUpdateData.model_rebuild()
2936
2967
  SlimCustomerFragment.model_rebuild()
2937
- CustomerResourceFragment.model_rebuild()
2938
2968
  SubscriptionFutureUpdateData.model_rebuild()
2939
- SubscriptionInvoiceFragment.model_rebuild()
2940
- PlanCompatiblePackageGroupsFragment.model_rebuild()
2941
- ProductFragment.model_rebuild()
2942
- PlanFragment.model_rebuild()
2943
- SubscriptionScheduledUpdateData.model_rebuild()
2944
2969
  SubscriptionTrialConfigurationFragment.model_rebuild()
2945
2970
  TotalPriceFragment.model_rebuild()
2971
+ ProductFragment.model_rebuild()
2972
+ PlanCompatiblePackageGroupsFragment.model_rebuild()
2973
+ PlanFragment.model_rebuild()
2974
+ CustomerResourceFragment.model_rebuild()
2975
+ SubscriptionInvoiceFragment.model_rebuild()
2946
2976
  SubscriptionFragment.model_rebuild()
2947
2977
  FeatureFragment.model_rebuild()
2948
2978
  EntitlementFragment.model_rebuild()
@@ -2950,20 +2980,22 @@ ApplySubscriptionFragment.model_rebuild()
2950
2980
  FontVariantFragment.model_rebuild()
2951
2981
  TypographyConfigurationFragment.model_rebuild()
2952
2982
  CheckoutConfigurationFragment.model_rebuild()
2953
- PromotionalEntitlementFragment.model_rebuild()
2983
+ StripeCheckoutCredentialsFragment.model_rebuild()
2954
2984
  CouponFragment.model_rebuild()
2985
+ PromotionalEntitlementFragment.model_rebuild()
2955
2986
  CustomerFragment.model_rebuild()
2987
+ ZuoraCheckoutCredentialsFragment.model_rebuild()
2956
2988
  CheckoutStateFragment.model_rebuild()
2957
2989
  CreditGrantFragment.model_rebuild()
2958
2990
  CreditsBalanceSummaryFragment.model_rebuild()
2959
2991
  CustomerPortalBillingInformationFragment.model_rebuild()
2960
2992
  CustomerPortalConfigurationFragment.model_rebuild()
2961
2993
  CustomerPortalEntitlementFragment.model_rebuild()
2962
- CustomerPortalSubscriptionPriceFragment.model_rebuild()
2963
- CustomerPortalSubscriptionAddonFragment.model_rebuild()
2994
+ CustomerPortalPromotionalEntitlementFragment.model_rebuild()
2964
2995
  CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
2996
+ CustomerPortalSubscriptionAddonFragment.model_rebuild()
2997
+ CustomerPortalSubscriptionPriceFragment.model_rebuild()
2965
2998
  CustomerPortalSubscriptionFragment.model_rebuild()
2966
- CustomerPortalPromotionalEntitlementFragment.model_rebuild()
2967
2999
  CustomerPortalFragment.model_rebuild()
2968
3000
  CustomerStatisticsFragment.model_rebuild()
2969
3001
  CustomerWithSubscriptionsFragment.model_rebuild()
@@ -2980,6 +3012,7 @@ MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
2980
3012
  MockPaywallPlanFragment.model_rebuild()
2981
3013
  PackagePublishedPayload.model_rebuild()
2982
3014
  PageInfoFragment.model_rebuild()
3015
+ PaymentSessionFragment.model_rebuild()
2983
3016
  PaywallCalculatedPricePointsFragment.model_rebuild()
2984
3017
  PaywallConfigurationFragment.model_rebuild()
2985
3018
  PaywallCurrencyFragment.model_rebuild()
@@ -2824,6 +2824,14 @@ class PaymentCollectionFilterComparison(BaseModel):
2824
2824
  not_like: Optional[PaymentCollection] = Field(alias="notLike", default=None)
2825
2825
 
2826
2826
 
2827
+ class PaymentSessionInput(BaseModel):
2828
+ billing_country_code: Optional[str] = Field(
2829
+ alias="billingCountryCode", default=None
2830
+ )
2831
+ customer_id: str = Field(alias="customerId")
2832
+ plan_id: str = Field(alias="planId")
2833
+
2834
+
2827
2835
  class PaywallColorsPaletteInput(BaseModel):
2828
2836
  background_color: Optional[str] = Field(alias="backgroundColor", default=None)
2829
2837
  border_color: Optional[str] = Field(alias="borderColor", default=None)
@@ -5046,6 +5054,7 @@ class ZuoraCredentialsInput(BaseModel):
5046
5054
  client_secret: str = Field(alias="clientSecret")
5047
5055
  payment_gateway_id: Optional[str] = Field(alias="paymentGatewayId", default=None)
5048
5056
  payment_page_id: Optional[str] = Field(alias="paymentPageId", default=None)
5057
+ publishable_key: Optional[str] = Field(alias="publishableKey", default=None)
5049
5058
  stripe_publishable_key: Optional[str] = Field(
5050
5059
  alias="stripePublishableKey", default=None
5051
5060
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client-v2
3
- Version: 3.65.0
3
+ Version: 3.68.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -106,24 +106,25 @@ 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=m3rLX51Y6E1RlXFjzwu4ccdOdt3nnUNgsLOF1_8ISMc,74992
109
+ stigg/generated/__init__.py,sha256=KA9vGJXr7P8BaI332yvPSEzs0zwYt5bk6Y1NMQA-TrI,75802
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=L91D8H9RqJ9LmFBXJpvXBrKfiRheOphSHLf1ilFJ4u4,184383
113
+ stigg/generated/async_client.py,sha256=amUI5dWUrea7KRTzOHSxtILgGspGeSaTmx5qnIyOciU,185898
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=S3IQdR4v5a3m0LfUTffEUiHlTXDdbKAlc5qy8bOCEIw,183708
118
+ stigg/generated/client.py,sha256=sgeRc13PLziv1rxhhDzeNvOToCUiiijZ1QNV6U6dnEY,185211
119
+ stigg/generated/create_payment_session.py,sha256=VRPT8Bbvb_evFHMav9y_pXWHMVbkRy9csf5SJCCUARk,470
119
120
  stigg/generated/create_subscription.py,sha256=vbpBJ_daXHcQDtvU3vbwSr2E7s4VGRHxqPavyTV3Mtk,457
120
121
  stigg/generated/delegate_subscription_to_customer.py,sha256=0TgQDO0Hk-z7X7PGtqhvciqa8IjkToK9cpiX3Kqu_UY,561
121
122
  stigg/generated/detach_customer_payment_method.py,sha256=ACXlC2xsGaUP723OrayFZQ9SbXxe8TtVUYdG1gqcYFc,523
122
- stigg/generated/enums.py,sha256=4wSfEXeZZqMSjsCsSG8baVg3Si8sjzV3bp_unHWHBtQ,38008
123
+ stigg/generated/enums.py,sha256=M1ZmZioTo8XlPc3APutraJ74Ap81K1MEmGXE-1CDsBc,38028
123
124
  stigg/generated/estimate_subscription.py,sha256=c0_vg0A_Hi8fdjeGudWZ0WziUF9jcjX5rlRitGMAMaQ,479
124
125
  stigg/generated/estimate_subscription_update.py,sha256=ZYIFqqHHDfzhrOn95QnMmPNTXZ7JrKWRlUFzk8fWwKA,528
125
126
  stigg/generated/exceptions.py,sha256=OQu-ZYCCV4VyMWTd1HR8gIjIK2CrA_JMlFxqOAJugWY,2411
126
- stigg/generated/fragments.py,sha256=kkPeD3cqBgQwbsnbc-_yhidtT3FluNlgWiuwZzE1D2A,107006
127
+ stigg/generated/fragments.py,sha256=H-9GxwSY9kUr-11vVeU-6KLlb-NAbjFrkt0DhhbAf7Q,108321
127
128
  stigg/generated/get_active_subscriptions.py,sha256=ngZ9jr8vzGI59wT8FhUFl46a8j9waoNjeZ1_lrcu2ww,513
128
129
  stigg/generated/get_active_subscriptions_list.py,sha256=Awi9al2MXxdt_y7ZnWYZh8U3R9XiX50c7TyO4WZxyhw,541
129
130
  stigg/generated/get_checkout_state.py,sha256=SAOXGAND879dwb7R5mr5LPZuPVuMUDwNR5M4mgmHv6w,409
@@ -149,7 +150,7 @@ stigg/generated/grant_promotional_entitlements_group.py,sha256=iQwCd07VFaYbsN_E-
149
150
  stigg/generated/import_customer.py,sha256=yEtrEB7T-Aykv3AUl-rAQz2XL6hKL0j-7JL3h-xi87o,403
150
151
  stigg/generated/import_customer_bulk.py,sha256=miLn2ScWlPOH1IipltY5Vgd-ZQ_BkBk9t3-EsLvU5ZQ,284
151
152
  stigg/generated/import_subscriptions_bulk.py,sha256=QgitpZkjE7eBhP1o5W0PTVAbKOvz61dNoeBAWupIcgU,297
152
- stigg/generated/input_types.py,sha256=F45-CFe7xiljfMp-HwsBKzvvKtlRVefT1Vrl9Zd6UcI,207384
153
+ stigg/generated/input_types.py,sha256=uPODKRjfa2ztPcjwwJnfG2YHwI4FLxqTeC4Ed6wrRsM,207699
153
154
  stigg/generated/migrate_subscription_to_latest.py,sha256=qQDwH7EodYAeJFb62IIl-MAEB5MbthgCJ0v1RMxpdYk,516
154
155
  stigg/generated/preview_next_invoice.py,sha256=MiQ4Gv7Ve1Hv60xhaQi7uj82aq0xLP2UB-gjvcQdOL8,478
155
156
  stigg/generated/preview_subscription.py,sha256=Qo2vlFs7sFzqaE8J_e-EHTRfLvG46lko-dcJMxDSCR0,475
@@ -167,7 +168,7 @@ stigg/generated/unarchive_customer.py,sha256=0OVttDrNNOHp6xIpLfDj--XfZL0ogkSpy9e
167
168
  stigg/generated/unlink_promotional_entitlements_group.py,sha256=8UIRQ0CNvReRfX0LZmDYkRn9mMjZm9n41YG6-p7Z8qU,636
168
169
  stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
169
170
  stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
170
- stigg_api_client_v2-3.65.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
171
- stigg_api_client_v2-3.65.0.dist-info/METADATA,sha256=nfG10x9IBKdq0OziyeXlXFVsBU5KWluDTVZ2xah2i2Q,2257
172
- stigg_api_client_v2-3.65.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
173
- stigg_api_client_v2-3.65.0.dist-info/RECORD,,
171
+ stigg_api_client_v2-3.68.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
172
+ stigg_api_client_v2-3.68.0.dist-info/METADATA,sha256=nl-6b1nqANjFST7VYLAfoDu_4PWHDofdo0bVHHAKZU4,2257
173
+ stigg_api_client_v2-3.68.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
174
+ stigg_api_client_v2-3.68.0.dist-info/RECORD,,