stigg-api-client-v2 3.13.0__py3-none-any.whl → 3.17.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.
@@ -211,6 +211,7 @@ from .fragments import (
211
211
  CustomerPortalSubscriptionFragmentBillingPeriodRange,
212
212
  CustomerPortalSubscriptionFragmentPrices,
213
213
  CustomerPortalSubscriptionFragmentPricing,
214
+ CustomerPortalSubscriptionFragmentPricingCreditRate,
214
215
  CustomerPortalSubscriptionFragmentPricingFeature,
215
216
  CustomerPortalSubscriptionFragmentPricingPrice,
216
217
  CustomerPortalSubscriptionFragmentScheduledUpdates,
@@ -219,6 +220,7 @@ from .fragments import (
219
220
  CustomerPortalSubscriptionFragmentTotalPriceSubTotal,
220
221
  CustomerPortalSubscriptionFragmentTotalPriceTotal,
221
222
  CustomerPortalSubscriptionPriceFragment,
223
+ CustomerPortalSubscriptionPriceFragmentCreditRate,
222
224
  CustomerPortalSubscriptionPriceFragmentFeature,
223
225
  CustomerPortalSubscriptionPriceFragmentPrice,
224
226
  CustomerPortalSubscriptionScheduledUpdateDataFragment,
@@ -294,6 +296,7 @@ from .fragments import (
294
296
  MockPaywallPlanFragmentPrices,
295
297
  MockPaywallPlanFragmentProduct,
296
298
  MockPaywallPriceFragment,
299
+ MockPaywallPriceFragmentCreditRate,
297
300
  MockPaywallPriceFragmentFeature,
298
301
  MockPaywallPriceFragmentPrice,
299
302
  MockPaywallPriceFragmentTiers,
@@ -335,6 +338,7 @@ from .fragments import (
335
338
  PlanFragmentPrices,
336
339
  PlanFragmentProduct,
337
340
  PriceFragment,
341
+ PriceFragmentCreditRate,
338
342
  PriceFragmentFeature,
339
343
  PriceFragmentPrice,
340
344
  PriceFragmentTiers,
@@ -634,6 +638,7 @@ from .input_types import (
634
638
  CreateWorkflowTriggerInput,
635
639
  CreditBalanceSummaryInput,
636
640
  CreditGrantInput,
641
+ CreditRateInput,
637
642
  CursorPaging,
638
643
  CustomCurrencyInput,
639
644
  CustomerBillingInfo,
@@ -1105,6 +1110,7 @@ __all__ = [
1105
1110
  "CreditBalanceSummaryInput",
1106
1111
  "CreditGrantInput",
1107
1112
  "CreditGrantType",
1113
+ "CreditRateInput",
1108
1114
  "Currency",
1109
1115
  "CursorPaging",
1110
1116
  "CustomCurrencyInput",
@@ -1145,6 +1151,7 @@ __all__ = [
1145
1151
  "CustomerPortalSubscriptionFragmentBillingPeriodRange",
1146
1152
  "CustomerPortalSubscriptionFragmentPrices",
1147
1153
  "CustomerPortalSubscriptionFragmentPricing",
1154
+ "CustomerPortalSubscriptionFragmentPricingCreditRate",
1148
1155
  "CustomerPortalSubscriptionFragmentPricingFeature",
1149
1156
  "CustomerPortalSubscriptionFragmentPricingPrice",
1150
1157
  "CustomerPortalSubscriptionFragmentScheduledUpdates",
@@ -1153,6 +1160,7 @@ __all__ = [
1153
1160
  "CustomerPortalSubscriptionFragmentTotalPriceSubTotal",
1154
1161
  "CustomerPortalSubscriptionFragmentTotalPriceTotal",
1155
1162
  "CustomerPortalSubscriptionPriceFragment",
1163
+ "CustomerPortalSubscriptionPriceFragmentCreditRate",
1156
1164
  "CustomerPortalSubscriptionPriceFragmentFeature",
1157
1165
  "CustomerPortalSubscriptionPriceFragmentPrice",
1158
1166
  "CustomerPortalSubscriptionScheduledUpdateDataFragment",
@@ -1442,6 +1450,7 @@ __all__ = [
1442
1450
  "MockPaywallPlanFragmentPrices",
1443
1451
  "MockPaywallPlanFragmentProduct",
1444
1452
  "MockPaywallPriceFragment",
1453
+ "MockPaywallPriceFragmentCreditRate",
1445
1454
  "MockPaywallPriceFragmentFeature",
1446
1455
  "MockPaywallPriceFragmentPrice",
1447
1456
  "MockPaywallPriceFragmentTiers",
@@ -1536,6 +1545,7 @@ __all__ = [
1536
1545
  "PriceFilter",
1537
1546
  "PriceFilterPackageDTOFilter",
1538
1547
  "PriceFragment",
1548
+ "PriceFragmentCreditRate",
1539
1549
  "PriceFragmentFeature",
1540
1550
  "PriceFragmentPrice",
1541
1551
  "PriceFragmentTiers",
@@ -170,6 +170,10 @@ class AsyncClient(AsyncBaseClient):
170
170
  amount
171
171
  currency
172
172
  }
173
+ creditRate {
174
+ amount
175
+ customCurrencyId
176
+ }
173
177
  tiersMode
174
178
  tiers {
175
179
  ...PriceTierFragment
@@ -584,6 +588,10 @@ class AsyncClient(AsyncBaseClient):
584
588
  amount
585
589
  currency
586
590
  }
591
+ creditRate {
592
+ amount
593
+ customCurrencyId
594
+ }
587
595
  tiersMode
588
596
  tiers {
589
597
  ...PriceTierFragment
@@ -941,6 +949,10 @@ class AsyncClient(AsyncBaseClient):
941
949
  amount
942
950
  currency
943
951
  }
952
+ creditRate {
953
+ amount
954
+ customCurrencyId
955
+ }
944
956
  tiersMode
945
957
  tiers {
946
958
  ...PriceTierFragment
@@ -1249,6 +1261,10 @@ class AsyncClient(AsyncBaseClient):
1249
1261
  amount
1250
1262
  currency
1251
1263
  }
1264
+ creditRate {
1265
+ amount
1266
+ customCurrencyId
1267
+ }
1252
1268
  tiersMode
1253
1269
  tiers {
1254
1270
  ...PriceTierFragment
@@ -1397,6 +1413,10 @@ class AsyncClient(AsyncBaseClient):
1397
1413
  amount
1398
1414
  currency
1399
1415
  }
1416
+ creditRate {
1417
+ amount
1418
+ customCurrencyId
1419
+ }
1400
1420
  tiersMode
1401
1421
  tiers {
1402
1422
  ...PriceTierFragment
@@ -1928,6 +1948,10 @@ class AsyncClient(AsyncBaseClient):
1928
1948
  amount
1929
1949
  currency
1930
1950
  }
1951
+ creditRate {
1952
+ amount
1953
+ customCurrencyId
1954
+ }
1931
1955
  tiersMode
1932
1956
  tiers {
1933
1957
  ...PriceTierFragment
@@ -2208,6 +2232,10 @@ class AsyncClient(AsyncBaseClient):
2208
2232
  amount
2209
2233
  currency
2210
2234
  }
2235
+ creditRate {
2236
+ amount
2237
+ customCurrencyId
2238
+ }
2211
2239
  tiersMode
2212
2240
  tiers {
2213
2241
  ...PriceTierFragment
@@ -2432,6 +2460,10 @@ class AsyncClient(AsyncBaseClient):
2432
2460
  amount
2433
2461
  currency
2434
2462
  }
2463
+ creditRate {
2464
+ amount
2465
+ customCurrencyId
2466
+ }
2435
2467
  tiersMode
2436
2468
  tiers {
2437
2469
  ...PriceTierFragment
@@ -2580,6 +2612,10 @@ class AsyncClient(AsyncBaseClient):
2580
2612
  amount
2581
2613
  currency
2582
2614
  }
2615
+ creditRate {
2616
+ amount
2617
+ customCurrencyId
2618
+ }
2583
2619
  tiersMode
2584
2620
  tiers {
2585
2621
  ...PriceTierFragment
@@ -2728,6 +2764,10 @@ class AsyncClient(AsyncBaseClient):
2728
2764
  amount
2729
2765
  currency
2730
2766
  }
2767
+ creditRate {
2768
+ amount
2769
+ customCurrencyId
2770
+ }
2731
2771
  tiersMode
2732
2772
  tiers {
2733
2773
  ...PriceTierFragment
@@ -3072,6 +3112,10 @@ class AsyncClient(AsyncBaseClient):
3072
3112
  amount
3073
3113
  currency
3074
3114
  }
3115
+ creditRate {
3116
+ amount
3117
+ customCurrencyId
3118
+ }
3075
3119
  tiersMode
3076
3120
  tiers {
3077
3121
  ...PriceTierFragment
@@ -3528,6 +3572,10 @@ class AsyncClient(AsyncBaseClient):
3528
3572
  amount
3529
3573
  currency
3530
3574
  }
3575
+ creditRate {
3576
+ amount
3577
+ customCurrencyId
3578
+ }
3531
3579
  tiersMode
3532
3580
  tiers {
3533
3581
  ...PriceTierFragment
@@ -4064,6 +4112,10 @@ class AsyncClient(AsyncBaseClient):
4064
4112
  amount
4065
4113
  currency
4066
4114
  }
4115
+ creditRate {
4116
+ amount
4117
+ customCurrencyId
4118
+ }
4067
4119
  tiersMode
4068
4120
  tiers {
4069
4121
  ...PriceTierFragment
@@ -4642,6 +4694,10 @@ class AsyncClient(AsyncBaseClient):
4642
4694
  amount
4643
4695
  currency
4644
4696
  }
4697
+ creditRate {
4698
+ amount
4699
+ customCurrencyId
4700
+ }
4645
4701
  tiersMode
4646
4702
  tiers {
4647
4703
  ...PriceTierFragment
@@ -5246,6 +5302,10 @@ class AsyncClient(AsyncBaseClient):
5246
5302
  amount
5247
5303
  currency
5248
5304
  }
5305
+ creditRate {
5306
+ amount
5307
+ customCurrencyId
5308
+ }
5249
5309
  feature {
5250
5310
  featureUnits
5251
5311
  featureUnitsPlural
@@ -5288,6 +5348,10 @@ class AsyncClient(AsyncBaseClient):
5288
5348
  amount
5289
5349
  currency
5290
5350
  }
5351
+ creditRate {
5352
+ amount
5353
+ customCurrencyId
5354
+ }
5291
5355
  feature {
5292
5356
  id
5293
5357
  refId
@@ -5701,6 +5765,10 @@ class AsyncClient(AsyncBaseClient):
5701
5765
  amount
5702
5766
  currency
5703
5767
  }
5768
+ creditRate {
5769
+ amount
5770
+ customCurrencyId
5771
+ }
5704
5772
  tiersMode
5705
5773
  tiers {
5706
5774
  ...PriceTierFragment
@@ -6126,6 +6194,10 @@ class AsyncClient(AsyncBaseClient):
6126
6194
  amount
6127
6195
  currency
6128
6196
  }
6197
+ creditRate {
6198
+ amount
6199
+ customCurrencyId
6200
+ }
6129
6201
  tiersMode
6130
6202
  tiers {
6131
6203
  ...PriceTierFragment
stigg/generated/client.py CHANGED
@@ -170,6 +170,10 @@ class Client(BaseClient):
170
170
  amount
171
171
  currency
172
172
  }
173
+ creditRate {
174
+ amount
175
+ customCurrencyId
176
+ }
173
177
  tiersMode
174
178
  tiers {
175
179
  ...PriceTierFragment
@@ -584,6 +588,10 @@ class Client(BaseClient):
584
588
  amount
585
589
  currency
586
590
  }
591
+ creditRate {
592
+ amount
593
+ customCurrencyId
594
+ }
587
595
  tiersMode
588
596
  tiers {
589
597
  ...PriceTierFragment
@@ -941,6 +949,10 @@ class Client(BaseClient):
941
949
  amount
942
950
  currency
943
951
  }
952
+ creditRate {
953
+ amount
954
+ customCurrencyId
955
+ }
944
956
  tiersMode
945
957
  tiers {
946
958
  ...PriceTierFragment
@@ -1249,6 +1261,10 @@ class Client(BaseClient):
1249
1261
  amount
1250
1262
  currency
1251
1263
  }
1264
+ creditRate {
1265
+ amount
1266
+ customCurrencyId
1267
+ }
1252
1268
  tiersMode
1253
1269
  tiers {
1254
1270
  ...PriceTierFragment
@@ -1397,6 +1413,10 @@ class Client(BaseClient):
1397
1413
  amount
1398
1414
  currency
1399
1415
  }
1416
+ creditRate {
1417
+ amount
1418
+ customCurrencyId
1419
+ }
1400
1420
  tiersMode
1401
1421
  tiers {
1402
1422
  ...PriceTierFragment
@@ -1928,6 +1948,10 @@ class Client(BaseClient):
1928
1948
  amount
1929
1949
  currency
1930
1950
  }
1951
+ creditRate {
1952
+ amount
1953
+ customCurrencyId
1954
+ }
1931
1955
  tiersMode
1932
1956
  tiers {
1933
1957
  ...PriceTierFragment
@@ -2206,6 +2230,10 @@ class Client(BaseClient):
2206
2230
  amount
2207
2231
  currency
2208
2232
  }
2233
+ creditRate {
2234
+ amount
2235
+ customCurrencyId
2236
+ }
2209
2237
  tiersMode
2210
2238
  tiers {
2211
2239
  ...PriceTierFragment
@@ -2430,6 +2458,10 @@ class Client(BaseClient):
2430
2458
  amount
2431
2459
  currency
2432
2460
  }
2461
+ creditRate {
2462
+ amount
2463
+ customCurrencyId
2464
+ }
2433
2465
  tiersMode
2434
2466
  tiers {
2435
2467
  ...PriceTierFragment
@@ -2578,6 +2610,10 @@ class Client(BaseClient):
2578
2610
  amount
2579
2611
  currency
2580
2612
  }
2613
+ creditRate {
2614
+ amount
2615
+ customCurrencyId
2616
+ }
2581
2617
  tiersMode
2582
2618
  tiers {
2583
2619
  ...PriceTierFragment
@@ -2726,6 +2762,10 @@ class Client(BaseClient):
2726
2762
  amount
2727
2763
  currency
2728
2764
  }
2765
+ creditRate {
2766
+ amount
2767
+ customCurrencyId
2768
+ }
2729
2769
  tiersMode
2730
2770
  tiers {
2731
2771
  ...PriceTierFragment
@@ -3070,6 +3110,10 @@ class Client(BaseClient):
3070
3110
  amount
3071
3111
  currency
3072
3112
  }
3113
+ creditRate {
3114
+ amount
3115
+ customCurrencyId
3116
+ }
3073
3117
  tiersMode
3074
3118
  tiers {
3075
3119
  ...PriceTierFragment
@@ -3526,6 +3570,10 @@ class Client(BaseClient):
3526
3570
  amount
3527
3571
  currency
3528
3572
  }
3573
+ creditRate {
3574
+ amount
3575
+ customCurrencyId
3576
+ }
3529
3577
  tiersMode
3530
3578
  tiers {
3531
3579
  ...PriceTierFragment
@@ -4062,6 +4110,10 @@ class Client(BaseClient):
4062
4110
  amount
4063
4111
  currency
4064
4112
  }
4113
+ creditRate {
4114
+ amount
4115
+ customCurrencyId
4116
+ }
4065
4117
  tiersMode
4066
4118
  tiers {
4067
4119
  ...PriceTierFragment
@@ -4640,6 +4692,10 @@ class Client(BaseClient):
4640
4692
  amount
4641
4693
  currency
4642
4694
  }
4695
+ creditRate {
4696
+ amount
4697
+ customCurrencyId
4698
+ }
4643
4699
  tiersMode
4644
4700
  tiers {
4645
4701
  ...PriceTierFragment
@@ -5244,6 +5300,10 @@ class Client(BaseClient):
5244
5300
  amount
5245
5301
  currency
5246
5302
  }
5303
+ creditRate {
5304
+ amount
5305
+ customCurrencyId
5306
+ }
5247
5307
  feature {
5248
5308
  featureUnits
5249
5309
  featureUnitsPlural
@@ -5286,6 +5346,10 @@ class Client(BaseClient):
5286
5346
  amount
5287
5347
  currency
5288
5348
  }
5349
+ creditRate {
5350
+ amount
5351
+ customCurrencyId
5352
+ }
5289
5353
  feature {
5290
5354
  id
5291
5355
  refId
@@ -5699,6 +5763,10 @@ class Client(BaseClient):
5699
5763
  amount
5700
5764
  currency
5701
5765
  }
5766
+ creditRate {
5767
+ amount
5768
+ customCurrencyId
5769
+ }
5702
5770
  tiersMode
5703
5771
  tiers {
5704
5772
  ...PriceTierFragment
@@ -6122,6 +6190,10 @@ class Client(BaseClient):
6122
6190
  amount
6123
6191
  currency
6124
6192
  }
6193
+ creditRate {
6194
+ amount
6195
+ customCurrencyId
6196
+ }
6125
6197
  tiersMode
6126
6198
  tiers {
6127
6199
  ...PriceTierFragment
stigg/generated/enums.py CHANGED
@@ -94,6 +94,7 @@ class BillingCadence(str, Enum):
94
94
 
95
95
 
96
96
  class BillingModel(str, Enum):
97
+ CREDIT_BASED = "CREDIT_BASED"
97
98
  FLAT_FEE = "FLAT_FEE"
98
99
  MINIMUM_SPEND = "MINIMUM_SPEND"
99
100
  PER_UNIT = "PER_UNIT"
@@ -112,40 +112,6 @@ class OveragePriceFragmentFeature(BaseModel):
112
112
  description: Optional[str] = Field(default=None)
113
113
 
114
114
 
115
- class PackageEntitlementFragment(BaseModel):
116
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
117
- has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
118
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
119
- feature_id: str = Field(alias="featureId")
120
- reset_period: Optional[EntitlementResetPeriod] = Field(
121
- alias="resetPeriod", default=None
122
- )
123
- hidden_from_widgets: Optional[List[WidgetType]] = Field(
124
- alias="hiddenFromWidgets", default=None
125
- )
126
- is_custom: Optional[bool] = Field(alias="isCustom", default=None)
127
- display_name_override: Optional[str] = Field(
128
- alias="displayNameOverride", default=None
129
- )
130
- enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
131
- feature: "PackageEntitlementFragmentFeature"
132
-
133
-
134
- class PackageEntitlementFragmentFeature(BaseModel):
135
- feature_type: FeatureType = Field(alias="featureType")
136
- meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
137
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
138
- feature_units_plural: Optional[str] = Field(
139
- alias="featureUnitsPlural", default=None
140
- )
141
- display_name: str = Field(alias="displayName")
142
- description: Optional[str] = Field(default=None)
143
- ref_id: str = Field(alias="refId")
144
- additional_meta_data: Optional[Any] = Field(
145
- alias="additionalMetaData", default=None
146
- )
147
-
148
-
149
115
  class PriceFragment(BaseModel):
150
116
  billing_model: BillingModel = Field(alias="billingModel")
151
117
  billing_period: BillingPeriod = Field(alias="billingPeriod")
@@ -157,6 +123,9 @@ class PriceFragment(BaseModel):
157
123
  alias="billingCountryCode", default=None
158
124
  )
159
125
  price: Optional["PriceFragmentPrice"] = Field(default=None)
126
+ credit_rate: Optional["PriceFragmentCreditRate"] = Field(
127
+ alias="creditRate", default=None
128
+ )
160
129
  tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
161
130
  tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
162
131
  feature: Optional["PriceFragmentFeature"] = Field(default=None)
@@ -168,6 +137,11 @@ class PriceFragmentPrice(BaseModel):
168
137
  currency: Currency
169
138
 
170
139
 
140
+ class PriceFragmentCreditRate(BaseModel):
141
+ amount: float
142
+ custom_currency_id: Any = Field(alias="customCurrencyId")
143
+
144
+
171
145
  class PriceFragmentTiers(PriceTierFragment):
172
146
  pass
173
147
 
@@ -182,6 +156,40 @@ class PriceFragmentFeature(BaseModel):
182
156
  description: Optional[str] = Field(default=None)
183
157
 
184
158
 
159
+ class PackageEntitlementFragment(BaseModel):
160
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
161
+ has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
162
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
163
+ feature_id: str = Field(alias="featureId")
164
+ reset_period: Optional[EntitlementResetPeriod] = Field(
165
+ alias="resetPeriod", default=None
166
+ )
167
+ hidden_from_widgets: Optional[List[WidgetType]] = Field(
168
+ alias="hiddenFromWidgets", default=None
169
+ )
170
+ is_custom: Optional[bool] = Field(alias="isCustom", default=None)
171
+ display_name_override: Optional[str] = Field(
172
+ alias="displayNameOverride", default=None
173
+ )
174
+ enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
175
+ feature: "PackageEntitlementFragmentFeature"
176
+
177
+
178
+ class PackageEntitlementFragmentFeature(BaseModel):
179
+ feature_type: FeatureType = Field(alias="featureType")
180
+ meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
181
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
182
+ feature_units_plural: Optional[str] = Field(
183
+ alias="featureUnitsPlural", default=None
184
+ )
185
+ display_name: str = Field(alias="displayName")
186
+ description: Optional[str] = Field(default=None)
187
+ ref_id: str = Field(alias="refId")
188
+ additional_meta_data: Optional[Any] = Field(
189
+ alias="additionalMetaData", default=None
190
+ )
191
+
192
+
185
193
  class AddonFragment(BaseModel):
186
194
  id: Any
187
195
  ref_id: str = Field(alias="refId")
@@ -391,48 +399,6 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
391
399
  feature_id: Optional[str] = Field(alias="featureId", default=None)
392
400
 
393
401
 
394
- class TotalPriceFragment(BaseModel):
395
- sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
396
- total: "TotalPriceFragmentTotal"
397
-
398
-
399
- class TotalPriceFragmentSubTotal(BaseModel):
400
- amount: float
401
- currency: Currency
402
-
403
-
404
- class TotalPriceFragmentTotal(BaseModel):
405
- amount: float
406
- currency: Currency
407
-
408
-
409
- class SubscriptionInvoiceFragment(BaseModel):
410
- billing_id: str = Field(alias="billingId")
411
- status: SubscriptionInvoiceStatus
412
- created_at: Any = Field(alias="createdAt")
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)
434
-
435
-
436
402
  class SubscriptionScheduledUpdateData(BaseModel):
437
403
  subscription_schedule_type: SubscriptionScheduleType = Field(
438
404
  alias="subscriptionScheduleType"
@@ -595,6 +561,48 @@ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
595
561
  feature_id: Optional[str] = Field(alias="featureId", default=None)
596
562
 
597
563
 
564
+ class SubscriptionInvoiceFragment(BaseModel):
565
+ billing_id: str = Field(alias="billingId")
566
+ status: SubscriptionInvoiceStatus
567
+ created_at: Any = Field(alias="createdAt")
568
+ updated_at: Any = Field(alias="updatedAt")
569
+ error_message: Optional[str] = Field(alias="errorMessage", default=None)
570
+ requires_action: bool = Field(alias="requiresAction")
571
+ payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
572
+ payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
573
+ pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
574
+ billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
575
+ alias="billingReason", default=None
576
+ )
577
+ currency: Optional[str] = Field(default=None)
578
+ sub_total: Optional[float] = Field(alias="subTotal", default=None)
579
+ sub_total_excluding_tax: Optional[float] = Field(
580
+ alias="subTotalExcludingTax", default=None
581
+ )
582
+ total: Optional[float] = Field(default=None)
583
+ total_excluding_tax: Optional[float] = Field(
584
+ alias="totalExcludingTax", default=None
585
+ )
586
+ tax: Optional[float] = Field(default=None)
587
+ amount_due: Optional[float] = Field(alias="amountDue", default=None)
588
+ attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
589
+
590
+
591
+ class TotalPriceFragment(BaseModel):
592
+ sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
593
+ total: "TotalPriceFragmentTotal"
594
+
595
+
596
+ class TotalPriceFragmentSubTotal(BaseModel):
597
+ amount: float
598
+ currency: Currency
599
+
600
+
601
+ class TotalPriceFragmentTotal(BaseModel):
602
+ amount: float
603
+ currency: Currency
604
+
605
+
598
606
  class SubscriptionTrialConfigurationFragment(BaseModel):
599
607
  trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
600
608
 
@@ -1263,13 +1271,6 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
1263
1271
  pass
1264
1272
 
1265
1273
 
1266
- class CustomerPortalSubscriptionAddonFragment(BaseModel):
1267
- addon_id: str = Field(alias="addonId")
1268
- description: Optional[str] = Field(default=None)
1269
- display_name: str = Field(alias="displayName")
1270
- quantity: int
1271
-
1272
-
1273
1274
  class CustomerPortalSubscriptionPriceFragment(BaseModel):
1274
1275
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1275
1276
  billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
@@ -1277,6 +1278,9 @@ class CustomerPortalSubscriptionPriceFragment(BaseModel):
1277
1278
  price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
1278
1279
  default=None
1279
1280
  )
1281
+ credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
1282
+ alias="creditRate", default=None
1283
+ )
1280
1284
  feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
1281
1285
  default=None
1282
1286
  )
@@ -1287,6 +1291,11 @@ class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
1287
1291
  currency: Currency
1288
1292
 
1289
1293
 
1294
+ class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
1295
+ amount: float
1296
+ custom_currency_id: Any = Field(alias="customCurrencyId")
1297
+
1298
+
1290
1299
  class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1291
1300
  id: Any
1292
1301
  ref_id: str = Field(alias="refId")
@@ -1297,6 +1306,13 @@ class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1297
1306
  )
1298
1307
 
1299
1308
 
1309
+ class CustomerPortalSubscriptionAddonFragment(BaseModel):
1310
+ addon_id: str = Field(alias="addonId")
1311
+ description: Optional[str] = Field(default=None)
1312
+ display_name: str = Field(alias="displayName")
1313
+ quantity: int
1314
+
1315
+
1300
1316
  class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
1301
1317
  subscription_schedule_type: SubscriptionScheduleType = Field(
1302
1318
  alias="subscriptionScheduleType"
@@ -1504,6 +1520,9 @@ class CustomerPortalSubscriptionFragmentPricing(BaseModel):
1504
1520
  price: Optional["CustomerPortalSubscriptionFragmentPricingPrice"] = Field(
1505
1521
  default=None
1506
1522
  )
1523
+ credit_rate: Optional[
1524
+ "CustomerPortalSubscriptionFragmentPricingCreditRate"
1525
+ ] = Field(alias="creditRate", default=None)
1507
1526
  feature: Optional["CustomerPortalSubscriptionFragmentPricingFeature"] = Field(
1508
1527
  default=None
1509
1528
  )
@@ -1514,6 +1533,11 @@ class CustomerPortalSubscriptionFragmentPricingPrice(BaseModel):
1514
1533
  currency: Currency
1515
1534
 
1516
1535
 
1536
+ class CustomerPortalSubscriptionFragmentPricingCreditRate(BaseModel):
1537
+ amount: float
1538
+ custom_currency_id: Any = Field(alias="customCurrencyId")
1539
+
1540
+
1517
1541
  class CustomerPortalSubscriptionFragmentPricingFeature(BaseModel):
1518
1542
  feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1519
1543
  feature_units_plural: Optional[str] = Field(
@@ -1799,40 +1823,6 @@ class MockPaywallAddonDependencyFragment(BaseModel):
1799
1823
  description: Optional[str] = Field(default=None)
1800
1824
 
1801
1825
 
1802
- class MockPaywallPriceFragment(BaseModel):
1803
- billing_model: BillingModel = Field(alias="billingModel")
1804
- billing_period: BillingPeriod = Field(alias="billingPeriod")
1805
- billing_id: Optional[str] = Field(alias="billingId", default=None)
1806
- min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
1807
- max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
1808
- billing_country_code: Optional[str] = Field(
1809
- alias="billingCountryCode", default=None
1810
- )
1811
- price: Optional["MockPaywallPriceFragmentPrice"] = Field(default=None)
1812
- tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
1813
- tiers: Optional[List["MockPaywallPriceFragmentTiers"]] = Field(default=None)
1814
- feature: Optional["MockPaywallPriceFragmentFeature"] = Field(default=None)
1815
- block_size: Optional[float] = Field(alias="blockSize", default=None)
1816
-
1817
-
1818
- class MockPaywallPriceFragmentPrice(BaseModel):
1819
- amount: float
1820
- currency: Currency
1821
-
1822
-
1823
- class MockPaywallPriceFragmentTiers(PriceTierFragment):
1824
- pass
1825
-
1826
-
1827
- class MockPaywallPriceFragmentFeature(BaseModel):
1828
- ref_id: str = Field(alias="refId")
1829
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1830
- feature_units_plural: Optional[str] = Field(
1831
- alias="featureUnitsPlural", default=None
1832
- )
1833
- display_name: str = Field(alias="displayName")
1834
-
1835
-
1836
1826
  class MockPaywallPackageEntitlementFragment(BaseModel):
1837
1827
  usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1838
1828
  has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
@@ -1867,6 +1857,48 @@ class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
1867
1857
  )
1868
1858
 
1869
1859
 
1860
+ class MockPaywallPriceFragment(BaseModel):
1861
+ billing_model: BillingModel = Field(alias="billingModel")
1862
+ billing_period: BillingPeriod = Field(alias="billingPeriod")
1863
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
1864
+ min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
1865
+ max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
1866
+ billing_country_code: Optional[str] = Field(
1867
+ alias="billingCountryCode", default=None
1868
+ )
1869
+ price: Optional["MockPaywallPriceFragmentPrice"] = Field(default=None)
1870
+ credit_rate: Optional["MockPaywallPriceFragmentCreditRate"] = Field(
1871
+ alias="creditRate", default=None
1872
+ )
1873
+ tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
1874
+ tiers: Optional[List["MockPaywallPriceFragmentTiers"]] = Field(default=None)
1875
+ feature: Optional["MockPaywallPriceFragmentFeature"] = Field(default=None)
1876
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
1877
+
1878
+
1879
+ class MockPaywallPriceFragmentPrice(BaseModel):
1880
+ amount: float
1881
+ currency: Currency
1882
+
1883
+
1884
+ class MockPaywallPriceFragmentCreditRate(BaseModel):
1885
+ amount: float
1886
+ custom_currency_id: Any = Field(alias="customCurrencyId")
1887
+
1888
+
1889
+ class MockPaywallPriceFragmentTiers(PriceTierFragment):
1890
+ pass
1891
+
1892
+
1893
+ class MockPaywallPriceFragmentFeature(BaseModel):
1894
+ ref_id: str = Field(alias="refId")
1895
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1896
+ feature_units_plural: Optional[str] = Field(
1897
+ alias="featureUnitsPlural", default=None
1898
+ )
1899
+ display_name: str = Field(alias="displayName")
1900
+
1901
+
1870
1902
  class MockPaywallAddonFragment(BaseModel):
1871
1903
  ref_id: str = Field(alias="refId")
1872
1904
  display_name: str = Field(alias="displayName")
@@ -2842,14 +2874,14 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
2842
2874
  AddonDependencyFragment.model_rebuild()
2843
2875
  PriceTierFragment.model_rebuild()
2844
2876
  OveragePriceFragment.model_rebuild()
2845
- PackageEntitlementFragment.model_rebuild()
2846
2877
  PriceFragment.model_rebuild()
2878
+ PackageEntitlementFragment.model_rebuild()
2847
2879
  AddonFragment.model_rebuild()
2848
2880
  SlimCustomerFragment.model_rebuild()
2849
2881
  SubscriptionFutureUpdateData.model_rebuild()
2850
- TotalPriceFragment.model_rebuild()
2851
- SubscriptionInvoiceFragment.model_rebuild()
2852
2882
  SubscriptionScheduledUpdateData.model_rebuild()
2883
+ SubscriptionInvoiceFragment.model_rebuild()
2884
+ TotalPriceFragment.model_rebuild()
2853
2885
  SubscriptionTrialConfigurationFragment.model_rebuild()
2854
2886
  ProductFragment.model_rebuild()
2855
2887
  PlanCompatiblePackageGroupsFragment.model_rebuild()
@@ -2869,8 +2901,8 @@ CheckoutStateFragment.model_rebuild()
2869
2901
  CustomerPortalBillingInformationFragment.model_rebuild()
2870
2902
  CustomerPortalConfigurationFragment.model_rebuild()
2871
2903
  CustomerPortalEntitlementFragment.model_rebuild()
2872
- CustomerPortalSubscriptionAddonFragment.model_rebuild()
2873
2904
  CustomerPortalSubscriptionPriceFragment.model_rebuild()
2905
+ CustomerPortalSubscriptionAddonFragment.model_rebuild()
2874
2906
  CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
2875
2907
  CustomerPortalSubscriptionFragment.model_rebuild()
2876
2908
  CustomerPortalPromotionalEntitlementFragment.model_rebuild()
@@ -2883,8 +2915,8 @@ EntitlementsUpdatedPayload.model_rebuild()
2883
2915
  ImmediateSubscriptionPreviewInvoiceFragment.model_rebuild()
2884
2916
  LayoutConfigurationFragment.model_rebuild()
2885
2917
  MockPaywallAddonDependencyFragment.model_rebuild()
2886
- MockPaywallPriceFragment.model_rebuild()
2887
2918
  MockPaywallPackageEntitlementFragment.model_rebuild()
2919
+ MockPaywallPriceFragment.model_rebuild()
2888
2920
  MockPaywallAddonFragment.model_rebuild()
2889
2921
  MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
2890
2922
  MockPaywallPlanFragment.model_rebuild()
@@ -818,6 +818,11 @@ class CreditGrantInput(BaseModel):
818
818
  resource_id: Optional[str] = Field(alias="resourceId", default=None)
819
819
 
820
820
 
821
+ class CreditRateInput(BaseModel):
822
+ amount: float
823
+ custom_currency_id: Any = Field(alias="customCurrencyId")
824
+
825
+
821
826
  class CursorPaging(BaseModel):
822
827
  after: Optional[Any] = None
823
828
  before: Optional[Any] = None
@@ -3064,6 +3069,7 @@ class PriceOverrideInput(BaseModel):
3064
3069
  addon_id: Optional[str] = Field(alias="addonId", default=None)
3065
3070
  base_charge: Optional[bool] = Field(alias="baseCharge", default=None)
3066
3071
  block_size: Optional[float] = Field(alias="blockSize", default=None)
3072
+ credit_rate: Optional["CreditRateInput"] = Field(alias="creditRate", default=None)
3067
3073
  feature_id: Optional[str] = Field(alias="featureId", default=None)
3068
3074
  price: Optional["MoneyInputDTO"] = None
3069
3075
  tiers: Optional[List["PriceTierInput"]] = None
@@ -3075,6 +3081,7 @@ class PricePeriodInput(BaseModel):
3075
3081
  )
3076
3082
  billing_period: BillingPeriod = Field(alias="billingPeriod")
3077
3083
  block_size: Optional[float] = Field(alias="blockSize", default=None)
3084
+ credit_rate: Optional["CreditRateInput"] = Field(alias="creditRate", default=None)
3078
3085
  price: Optional["MoneyInputDTO"] = None
3079
3086
  tiers: Optional[List["PriceTierInput"]] = None
3080
3087
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client-v2
3
- Version: 3.13.0
3
+ Version: 3.17.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -106,24 +106,24 @@ 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=1NwSDRRF2Zck63DVg8bpqsho8-SNmD40eAjpihh1Y18,72323
109
+ stigg/generated/__init__.py,sha256=HBg_YUSnCNwFLkdEhykDfj7zrqJFpUXKKplmM4CXOHA,72737
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=rfldCLtIqR4oQunbiTuRjXLdbYjzAn4D08dh5pEQl9s,173739
113
+ stigg/generated/async_client.py,sha256=KX-YthspWi29okbvAFYzsPl2Suq5RA_v2UvE2GdFUeM,175529
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=tGqbCewOFV2YP6igue7hQZghW3XraHyV0OXcoKfsssE,173150
118
+ stigg/generated/client.py,sha256=WIS31TSPUg8gKGvs5aSEBG_RSv8f8yCD80oUqCLUCvI,174940
119
119
  stigg/generated/create_subscription.py,sha256=vbpBJ_daXHcQDtvU3vbwSr2E7s4VGRHxqPavyTV3Mtk,457
120
120
  stigg/generated/delegate_subscription_to_customer.py,sha256=0TgQDO0Hk-z7X7PGtqhvciqa8IjkToK9cpiX3Kqu_UY,561
121
121
  stigg/generated/detach_customer_payment_method.py,sha256=ACXlC2xsGaUP723OrayFZQ9SbXxe8TtVUYdG1gqcYFc,523
122
- stigg/generated/enums.py,sha256=IBdVrDWJHe3rvboZKigp1mkiyEqKcnR3blfG3Fu-fHc,37670
122
+ stigg/generated/enums.py,sha256=2MIh7g7PjqixNbmzG1DvjV3Hk74STdUIlE0HFok575I,37704
123
123
  stigg/generated/estimate_subscription.py,sha256=c0_vg0A_Hi8fdjeGudWZ0WziUF9jcjX5rlRitGMAMaQ,479
124
124
  stigg/generated/estimate_subscription_update.py,sha256=ZYIFqqHHDfzhrOn95QnMmPNTXZ7JrKWRlUFzk8fWwKA,528
125
125
  stigg/generated/exceptions.py,sha256=OQu-ZYCCV4VyMWTd1HR8gIjIK2CrA_JMlFxqOAJugWY,2411
126
- stigg/generated/fragments.py,sha256=22jArwsgEbbP3DDyEpHD1_4KVUBLR2ZKU4FIcYC0lok,103850
126
+ stigg/generated/fragments.py,sha256=ZJj1_h8vczLXwF6161BxWCX4_V-E_LFG4-a-Kg9RIjM,104912
127
127
  stigg/generated/get_active_subscriptions.py,sha256=ngZ9jr8vzGI59wT8FhUFl46a8j9waoNjeZ1_lrcu2ww,513
128
128
  stigg/generated/get_active_subscriptions_list.py,sha256=Awi9al2MXxdt_y7ZnWYZh8U3R9XiX50c7TyO4WZxyhw,541
129
129
  stigg/generated/get_checkout_state.py,sha256=SAOXGAND879dwb7R5mr5LPZuPVuMUDwNR5M4mgmHv6w,409
@@ -145,7 +145,7 @@ stigg/generated/grant_promotional_entitlements.py,sha256=72PRYuqecL-0SkWb7deygkh
145
145
  stigg/generated/import_customer.py,sha256=yEtrEB7T-Aykv3AUl-rAQz2XL6hKL0j-7JL3h-xi87o,403
146
146
  stigg/generated/import_customer_bulk.py,sha256=miLn2ScWlPOH1IipltY5Vgd-ZQ_BkBk9t3-EsLvU5ZQ,284
147
147
  stigg/generated/import_subscriptions_bulk.py,sha256=QgitpZkjE7eBhP1o5W0PTVAbKOvz61dNoeBAWupIcgU,297
148
- stigg/generated/input_types.py,sha256=kW2dYYIEjDjeLaTm-rwEqzFuRcPpytVEGnrVldxHEig,204912
148
+ stigg/generated/input_types.py,sha256=oV8jhOxz2NvvIPB--9UqF11dvHPIixa64uTI-Xc8ogk,205202
149
149
  stigg/generated/migrate_subscription_to_latest.py,sha256=qQDwH7EodYAeJFb62IIl-MAEB5MbthgCJ0v1RMxpdYk,516
150
150
  stigg/generated/preview_next_invoice.py,sha256=MiQ4Gv7Ve1Hv60xhaQi7uj82aq0xLP2UB-gjvcQdOL8,478
151
151
  stigg/generated/preview_subscription.py,sha256=Qo2vlFs7sFzqaE8J_e-EHTRfLvG46lko-dcJMxDSCR0,475
@@ -161,7 +161,7 @@ stigg/generated/transfer_subscription_to_resource.py,sha256=4-N7quYhHpVTGPi6EV-U
161
161
  stigg/generated/unarchive_customer.py,sha256=0OVttDrNNOHp6xIpLfDj--XfZL0ogkSpy9eW71jND2k,441
162
162
  stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
163
163
  stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
164
- stigg_api_client_v2-3.13.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
165
- stigg_api_client_v2-3.13.0.dist-info/METADATA,sha256=Tyo5E1k674RPdVBP6WS6gcZP66sw_2VA89SV7Li2r30,2257
166
- stigg_api_client_v2-3.13.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
167
- stigg_api_client_v2-3.13.0.dist-info/RECORD,,
164
+ stigg_api_client_v2-3.17.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
165
+ stigg_api_client_v2-3.17.0.dist-info/METADATA,sha256=luo3Y24PkwpHUBwgo6hretpJgHzgd6UJigjI7ObpFzY,2257
166
+ stigg_api_client_v2-3.17.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
167
+ stigg_api_client_v2-3.17.0.dist-info/RECORD,,