stigg-api-client-v2 3.107.0__py3-none-any.whl → 3.108.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.
- stigg/generated/__init__.py +3 -0
- stigg/generated/async_client.py +43 -0
- stigg/generated/client.py +43 -0
- stigg/generated/fragments.py +174 -174
- stigg/generated/void_credit_grant.py +18 -0
- {stigg_api_client_v2-3.107.0.dist-info → stigg_api_client_v2-3.108.0.dist-info}/METADATA +1 -1
- {stigg_api_client_v2-3.107.0.dist-info → stigg_api_client_v2-3.108.0.dist-info}/RECORD +9 -8
- {stigg_api_client_v2-3.107.0.dist-info → stigg_api_client_v2-3.108.0.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-3.107.0.dist-info → stigg_api_client_v2-3.108.0.dist-info}/WHEEL +0 -0
stigg/generated/__init__.py
CHANGED
|
@@ -1072,6 +1072,7 @@ from .update_subscription import (
|
|
|
1072
1072
|
UpdateSubscription,
|
|
1073
1073
|
UpdateSubscriptionUpdateSubscription,
|
|
1074
1074
|
)
|
|
1075
|
+
from .void_credit_grant import VoidCreditGrant, VoidCreditGrantVoidCreditGrant
|
|
1075
1076
|
|
|
1076
1077
|
__all__ = [
|
|
1077
1078
|
"AccessDeniedReason",
|
|
@@ -2085,7 +2086,9 @@ __all__ = [
|
|
|
2085
2086
|
"VendorIdentifier",
|
|
2086
2087
|
"VendorIdentifierFilterComparison",
|
|
2087
2088
|
"VendorType",
|
|
2089
|
+
"VoidCreditGrant",
|
|
2088
2090
|
"VoidCreditGrantInput",
|
|
2091
|
+
"VoidCreditGrantVoidCreditGrant",
|
|
2089
2092
|
"WeeklyAccordingTo",
|
|
2090
2093
|
"WeeklyResetPeriodConfigInput",
|
|
2091
2094
|
"WidgetConfigurationUpdateInput",
|
stigg/generated/async_client.py
CHANGED
|
@@ -94,6 +94,7 @@ from .input_types import (
|
|
|
94
94
|
UsageEventsReportInput,
|
|
95
95
|
UsageHistoryInput,
|
|
96
96
|
UsageHistoryV2Input,
|
|
97
|
+
VoidCreditGrantInput,
|
|
97
98
|
)
|
|
98
99
|
from .migrate_subscription_to_latest import MigrateSubscriptionToLatest
|
|
99
100
|
from .preview_next_invoice import PreviewNextInvoice
|
|
@@ -112,6 +113,7 @@ from .unarchive_customer import UnarchiveCustomer
|
|
|
112
113
|
from .unlink_promotional_entitlements_group import UnlinkPromotionalEntitlementsGroup
|
|
113
114
|
from .update_customer import UpdateCustomer
|
|
114
115
|
from .update_subscription import UpdateSubscription
|
|
116
|
+
from .void_credit_grant import VoidCreditGrant
|
|
115
117
|
|
|
116
118
|
|
|
117
119
|
def gql(q: str) -> str:
|
|
@@ -3139,6 +3141,47 @@ class AsyncClient(AsyncBaseClient):
|
|
|
3139
3141
|
data = self.get_data(response)
|
|
3140
3142
|
return CreatePaymentSession.model_validate(data)
|
|
3141
3143
|
|
|
3144
|
+
async def void_credit_grant(
|
|
3145
|
+
self, input: VoidCreditGrantInput, **kwargs: Any
|
|
3146
|
+
) -> VoidCreditGrant:
|
|
3147
|
+
query = gql(
|
|
3148
|
+
"""
|
|
3149
|
+
mutation VoidCreditGrant($input: VoidCreditGrantInput!) {
|
|
3150
|
+
voidCreditGrant(input: $input) {
|
|
3151
|
+
...CreditGrantFragment
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
|
|
3155
|
+
fragment CreditGrantFragment on CreditGrant {
|
|
3156
|
+
grantId
|
|
3157
|
+
amount
|
|
3158
|
+
comment
|
|
3159
|
+
currencyId
|
|
3160
|
+
customerId
|
|
3161
|
+
displayName
|
|
3162
|
+
effectiveAt
|
|
3163
|
+
expireAt
|
|
3164
|
+
grantType
|
|
3165
|
+
priority
|
|
3166
|
+
consumedAmount
|
|
3167
|
+
cost {
|
|
3168
|
+
amount
|
|
3169
|
+
currency
|
|
3170
|
+
}
|
|
3171
|
+
createdAt
|
|
3172
|
+
updatedAt
|
|
3173
|
+
resourceId
|
|
3174
|
+
additionalMetaData
|
|
3175
|
+
}
|
|
3176
|
+
"""
|
|
3177
|
+
)
|
|
3178
|
+
variables: Dict[str, object] = {"input": input}
|
|
3179
|
+
response = await self.execute(
|
|
3180
|
+
query=query, operation_name="VoidCreditGrant", variables=variables, **kwargs
|
|
3181
|
+
)
|
|
3182
|
+
data = self.get_data(response)
|
|
3183
|
+
return VoidCreditGrant.model_validate(data)
|
|
3184
|
+
|
|
3142
3185
|
async def get_customer_by_id(
|
|
3143
3186
|
self, input: GetCustomerByRefIdInput, **kwargs: Any
|
|
3144
3187
|
) -> GetCustomerById:
|
stigg/generated/client.py
CHANGED
|
@@ -94,6 +94,7 @@ from .input_types import (
|
|
|
94
94
|
UsageEventsReportInput,
|
|
95
95
|
UsageHistoryInput,
|
|
96
96
|
UsageHistoryV2Input,
|
|
97
|
+
VoidCreditGrantInput,
|
|
97
98
|
)
|
|
98
99
|
from .migrate_subscription_to_latest import MigrateSubscriptionToLatest
|
|
99
100
|
from .preview_next_invoice import PreviewNextInvoice
|
|
@@ -112,6 +113,7 @@ from .unarchive_customer import UnarchiveCustomer
|
|
|
112
113
|
from .unlink_promotional_entitlements_group import UnlinkPromotionalEntitlementsGroup
|
|
113
114
|
from .update_customer import UpdateCustomer
|
|
114
115
|
from .update_subscription import UpdateSubscription
|
|
116
|
+
from .void_credit_grant import VoidCreditGrant
|
|
115
117
|
|
|
116
118
|
|
|
117
119
|
def gql(q: str) -> str:
|
|
@@ -3135,6 +3137,47 @@ class Client(BaseClient):
|
|
|
3135
3137
|
data = self.get_data(response)
|
|
3136
3138
|
return CreatePaymentSession.model_validate(data)
|
|
3137
3139
|
|
|
3140
|
+
def void_credit_grant(
|
|
3141
|
+
self, input: VoidCreditGrantInput, **kwargs: Any
|
|
3142
|
+
) -> VoidCreditGrant:
|
|
3143
|
+
query = gql(
|
|
3144
|
+
"""
|
|
3145
|
+
mutation VoidCreditGrant($input: VoidCreditGrantInput!) {
|
|
3146
|
+
voidCreditGrant(input: $input) {
|
|
3147
|
+
...CreditGrantFragment
|
|
3148
|
+
}
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
fragment CreditGrantFragment on CreditGrant {
|
|
3152
|
+
grantId
|
|
3153
|
+
amount
|
|
3154
|
+
comment
|
|
3155
|
+
currencyId
|
|
3156
|
+
customerId
|
|
3157
|
+
displayName
|
|
3158
|
+
effectiveAt
|
|
3159
|
+
expireAt
|
|
3160
|
+
grantType
|
|
3161
|
+
priority
|
|
3162
|
+
consumedAmount
|
|
3163
|
+
cost {
|
|
3164
|
+
amount
|
|
3165
|
+
currency
|
|
3166
|
+
}
|
|
3167
|
+
createdAt
|
|
3168
|
+
updatedAt
|
|
3169
|
+
resourceId
|
|
3170
|
+
additionalMetaData
|
|
3171
|
+
}
|
|
3172
|
+
"""
|
|
3173
|
+
)
|
|
3174
|
+
variables: Dict[str, object] = {"input": input}
|
|
3175
|
+
response = self.execute(
|
|
3176
|
+
query=query, operation_name="VoidCreditGrant", variables=variables, **kwargs
|
|
3177
|
+
)
|
|
3178
|
+
data = self.get_data(response)
|
|
3179
|
+
return VoidCreditGrant.model_validate(data)
|
|
3180
|
+
|
|
3138
3181
|
def get_customer_by_id(
|
|
3139
3182
|
self, input: GetCustomerByRefIdInput, **kwargs: Any
|
|
3140
3183
|
) -> GetCustomerById:
|
stigg/generated/fragments.py
CHANGED
|
@@ -82,51 +82,6 @@ class PriceTierFragmentFlatPrice(BaseModel):
|
|
|
82
82
|
currency: Currency
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
class PriceFragment(BaseModel):
|
|
86
|
-
billing_model: BillingModel = Field(alias="billingModel")
|
|
87
|
-
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
88
|
-
billing_cadence: BillingCadence = Field(alias="billingCadence")
|
|
89
|
-
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
90
|
-
min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
|
|
91
|
-
max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
|
|
92
|
-
billing_country_code: Optional[str] = Field(
|
|
93
|
-
alias="billingCountryCode", default=None
|
|
94
|
-
)
|
|
95
|
-
price: Optional["PriceFragmentPrice"] = Field(default=None)
|
|
96
|
-
credit_rate: Optional["PriceFragmentCreditRate"] = Field(
|
|
97
|
-
alias="creditRate", default=None
|
|
98
|
-
)
|
|
99
|
-
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
100
|
-
tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
|
|
101
|
-
feature: Optional["PriceFragmentFeature"] = Field(default=None)
|
|
102
|
-
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
class PriceFragmentPrice(BaseModel):
|
|
106
|
-
amount: float
|
|
107
|
-
currency: Currency
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
class PriceFragmentCreditRate(BaseModel):
|
|
111
|
-
amount: float
|
|
112
|
-
custom_currency_id: Optional[Any] = Field(alias="customCurrencyId", default=None)
|
|
113
|
-
currency_id: str = Field(alias="currencyId")
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
class PriceFragmentTiers(PriceTierFragment):
|
|
117
|
-
pass
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
class PriceFragmentFeature(BaseModel):
|
|
121
|
-
ref_id: str = Field(alias="refId")
|
|
122
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
123
|
-
feature_units_plural: Optional[str] = Field(
|
|
124
|
-
alias="featureUnitsPlural", default=None
|
|
125
|
-
)
|
|
126
|
-
display_name: str = Field(alias="displayName")
|
|
127
|
-
description: Optional[str] = Field(default=None)
|
|
128
|
-
|
|
129
|
-
|
|
130
85
|
class OveragePriceFragment(BaseModel):
|
|
131
86
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
132
87
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
@@ -194,6 +149,51 @@ class PackageEntitlementFragmentFeature(BaseModel):
|
|
|
194
149
|
)
|
|
195
150
|
|
|
196
151
|
|
|
152
|
+
class PriceFragment(BaseModel):
|
|
153
|
+
billing_model: BillingModel = Field(alias="billingModel")
|
|
154
|
+
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
155
|
+
billing_cadence: BillingCadence = Field(alias="billingCadence")
|
|
156
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
157
|
+
min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
|
|
158
|
+
max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
|
|
159
|
+
billing_country_code: Optional[str] = Field(
|
|
160
|
+
alias="billingCountryCode", default=None
|
|
161
|
+
)
|
|
162
|
+
price: Optional["PriceFragmentPrice"] = Field(default=None)
|
|
163
|
+
credit_rate: Optional["PriceFragmentCreditRate"] = Field(
|
|
164
|
+
alias="creditRate", default=None
|
|
165
|
+
)
|
|
166
|
+
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
167
|
+
tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
|
|
168
|
+
feature: Optional["PriceFragmentFeature"] = Field(default=None)
|
|
169
|
+
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
class PriceFragmentPrice(BaseModel):
|
|
173
|
+
amount: float
|
|
174
|
+
currency: Currency
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
class PriceFragmentCreditRate(BaseModel):
|
|
178
|
+
amount: float
|
|
179
|
+
custom_currency_id: Optional[Any] = Field(alias="customCurrencyId", default=None)
|
|
180
|
+
currency_id: str = Field(alias="currencyId")
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
class PriceFragmentTiers(PriceTierFragment):
|
|
184
|
+
pass
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
class PriceFragmentFeature(BaseModel):
|
|
188
|
+
ref_id: str = Field(alias="refId")
|
|
189
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
190
|
+
feature_units_plural: Optional[str] = Field(
|
|
191
|
+
alias="featureUnitsPlural", default=None
|
|
192
|
+
)
|
|
193
|
+
display_name: str = Field(alias="displayName")
|
|
194
|
+
description: Optional[str] = Field(default=None)
|
|
195
|
+
|
|
196
|
+
|
|
197
197
|
class AddonFragment(BaseModel):
|
|
198
198
|
id: Any
|
|
199
199
|
ref_id: str = Field(alias="refId")
|
|
@@ -326,6 +326,21 @@ class EntitlementFragmentCreditRate(BaseModel):
|
|
|
326
326
|
currency_id: str = Field(alias="currencyId")
|
|
327
327
|
|
|
328
328
|
|
|
329
|
+
class TotalPriceFragment(BaseModel):
|
|
330
|
+
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
331
|
+
total: "TotalPriceFragmentTotal"
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
class TotalPriceFragmentSubTotal(BaseModel):
|
|
335
|
+
amount: float
|
|
336
|
+
currency: Currency
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
class TotalPriceFragmentTotal(BaseModel):
|
|
340
|
+
amount: float
|
|
341
|
+
currency: Currency
|
|
342
|
+
|
|
343
|
+
|
|
329
344
|
class SubscriptionFutureUpdateData(BaseModel):
|
|
330
345
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
331
346
|
alias="subscriptionScheduleType"
|
|
@@ -480,23 +495,36 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
|
|
|
480
495
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
481
496
|
|
|
482
497
|
|
|
483
|
-
class
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
class TotalPriceFragment(BaseModel):
|
|
488
|
-
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
489
|
-
total: "TotalPriceFragmentTotal"
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
class TotalPriceFragmentSubTotal(BaseModel):
|
|
493
|
-
amount: float
|
|
494
|
-
currency: Currency
|
|
498
|
+
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
499
|
+
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
495
500
|
|
|
496
501
|
|
|
497
|
-
class
|
|
498
|
-
|
|
499
|
-
|
|
502
|
+
class SubscriptionInvoiceFragment(BaseModel):
|
|
503
|
+
billing_id: str = Field(alias="billingId")
|
|
504
|
+
status: SubscriptionInvoiceStatus
|
|
505
|
+
created_at: Any = Field(alias="createdAt")
|
|
506
|
+
due_date: Optional[Any] = Field(alias="dueDate", default=None)
|
|
507
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
508
|
+
error_message: Optional[str] = Field(alias="errorMessage", default=None)
|
|
509
|
+
requires_action: bool = Field(alias="requiresAction")
|
|
510
|
+
payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
|
|
511
|
+
payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
|
|
512
|
+
pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
|
|
513
|
+
billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
|
|
514
|
+
alias="billingReason", default=None
|
|
515
|
+
)
|
|
516
|
+
currency: Optional[str] = Field(default=None)
|
|
517
|
+
sub_total: Optional[float] = Field(alias="subTotal", default=None)
|
|
518
|
+
sub_total_excluding_tax: Optional[float] = Field(
|
|
519
|
+
alias="subTotalExcludingTax", default=None
|
|
520
|
+
)
|
|
521
|
+
total: Optional[float] = Field(default=None)
|
|
522
|
+
total_excluding_tax: Optional[float] = Field(
|
|
523
|
+
alias="totalExcludingTax", default=None
|
|
524
|
+
)
|
|
525
|
+
tax: Optional[float] = Field(default=None)
|
|
526
|
+
amount_due: Optional[float] = Field(alias="amountDue", default=None)
|
|
527
|
+
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
500
528
|
|
|
501
529
|
|
|
502
530
|
class SubscriptionScheduledUpdateData(BaseModel):
|
|
@@ -661,6 +689,27 @@ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
|
|
|
661
689
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
662
690
|
|
|
663
691
|
|
|
692
|
+
class SlimCustomerFragment(BaseModel):
|
|
693
|
+
id: Any
|
|
694
|
+
name: Optional[str] = Field(default=None)
|
|
695
|
+
email: Optional[str] = Field(default=None)
|
|
696
|
+
created_at: Optional[Any] = Field(alias="createdAt", default=None)
|
|
697
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
698
|
+
ref_id: str = Field(alias="refId")
|
|
699
|
+
customer_id: str = Field(alias="customerId")
|
|
700
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
701
|
+
additional_meta_data: Optional[Any] = Field(
|
|
702
|
+
alias="additionalMetaData", default=None
|
|
703
|
+
)
|
|
704
|
+
aws_marketplace_customer_id: Optional[str] = Field(
|
|
705
|
+
alias="awsMarketplaceCustomerId", default=None
|
|
706
|
+
)
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
class CustomerResourceFragment(BaseModel):
|
|
710
|
+
resource_id: str = Field(alias="resourceId")
|
|
711
|
+
|
|
712
|
+
|
|
664
713
|
class PlanCompatiblePackageGroupsFragment(BaseModel):
|
|
665
714
|
package_group_id: str = Field(alias="packageGroupId")
|
|
666
715
|
display_name: str = Field(alias="displayName")
|
|
@@ -781,55 +830,6 @@ class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
|
781
830
|
limit: float
|
|
782
831
|
|
|
783
832
|
|
|
784
|
-
class SlimCustomerFragment(BaseModel):
|
|
785
|
-
id: Any
|
|
786
|
-
name: Optional[str] = Field(default=None)
|
|
787
|
-
email: Optional[str] = Field(default=None)
|
|
788
|
-
created_at: Optional[Any] = Field(alias="createdAt", default=None)
|
|
789
|
-
updated_at: Any = Field(alias="updatedAt")
|
|
790
|
-
ref_id: str = Field(alias="refId")
|
|
791
|
-
customer_id: str = Field(alias="customerId")
|
|
792
|
-
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
793
|
-
additional_meta_data: Optional[Any] = Field(
|
|
794
|
-
alias="additionalMetaData", default=None
|
|
795
|
-
)
|
|
796
|
-
aws_marketplace_customer_id: Optional[str] = Field(
|
|
797
|
-
alias="awsMarketplaceCustomerId", default=None
|
|
798
|
-
)
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
802
|
-
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
class SubscriptionInvoiceFragment(BaseModel):
|
|
806
|
-
billing_id: str = Field(alias="billingId")
|
|
807
|
-
status: SubscriptionInvoiceStatus
|
|
808
|
-
created_at: Any = Field(alias="createdAt")
|
|
809
|
-
due_date: Optional[Any] = Field(alias="dueDate", default=None)
|
|
810
|
-
updated_at: Any = Field(alias="updatedAt")
|
|
811
|
-
error_message: Optional[str] = Field(alias="errorMessage", default=None)
|
|
812
|
-
requires_action: bool = Field(alias="requiresAction")
|
|
813
|
-
payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
|
|
814
|
-
payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
|
|
815
|
-
pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
|
|
816
|
-
billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
|
|
817
|
-
alias="billingReason", default=None
|
|
818
|
-
)
|
|
819
|
-
currency: Optional[str] = Field(default=None)
|
|
820
|
-
sub_total: Optional[float] = Field(alias="subTotal", default=None)
|
|
821
|
-
sub_total_excluding_tax: Optional[float] = Field(
|
|
822
|
-
alias="subTotalExcludingTax", default=None
|
|
823
|
-
)
|
|
824
|
-
total: Optional[float] = Field(default=None)
|
|
825
|
-
total_excluding_tax: Optional[float] = Field(
|
|
826
|
-
alias="totalExcludingTax", default=None
|
|
827
|
-
)
|
|
828
|
-
tax: Optional[float] = Field(default=None)
|
|
829
|
-
amount_due: Optional[float] = Field(alias="amountDue", default=None)
|
|
830
|
-
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
831
|
-
|
|
832
|
-
|
|
833
833
|
class SubscriptionFragment(BaseModel):
|
|
834
834
|
id: Any
|
|
835
835
|
subscription_id: str = Field(alias="subscriptionId")
|
|
@@ -1016,16 +1016,6 @@ class CheckoutConfigurationFragmentContent(BaseModel):
|
|
|
1016
1016
|
)
|
|
1017
1017
|
|
|
1018
1018
|
|
|
1019
|
-
class StripeCheckoutCredentialsFragment(BaseModel):
|
|
1020
|
-
account_id: Optional[str] = Field(alias="accountId", default=None)
|
|
1021
|
-
setup_secret: str = Field(alias="setupSecret")
|
|
1022
|
-
public_key: Optional[str] = Field(alias="publicKey", default=None)
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
class ZuoraCheckoutCredentialsFragment(BaseModel):
|
|
1026
|
-
publishable_key: str = Field(alias="publishableKey")
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
1019
|
class CouponFragment(BaseModel):
|
|
1030
1020
|
id: Any
|
|
1031
1021
|
discount_value: float = Field(alias="discountValue")
|
|
@@ -1147,6 +1137,16 @@ class CustomerFragmentPromotionalEntitlements(PromotionalEntitlementFragment):
|
|
|
1147
1137
|
pass
|
|
1148
1138
|
|
|
1149
1139
|
|
|
1140
|
+
class ZuoraCheckoutCredentialsFragment(BaseModel):
|
|
1141
|
+
publishable_key: str = Field(alias="publishableKey")
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
class StripeCheckoutCredentialsFragment(BaseModel):
|
|
1145
|
+
account_id: Optional[str] = Field(alias="accountId", default=None)
|
|
1146
|
+
setup_secret: str = Field(alias="setupSecret")
|
|
1147
|
+
public_key: Optional[str] = Field(alias="publicKey", default=None)
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
1150
|
class CheckoutStateFragment(BaseModel):
|
|
1151
1151
|
configuration: Optional["CheckoutStateFragmentConfiguration"] = Field(default=None)
|
|
1152
1152
|
setup_secret: str = Field(alias="setupSecret")
|
|
@@ -1435,6 +1435,16 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
|
|
|
1435
1435
|
pass
|
|
1436
1436
|
|
|
1437
1437
|
|
|
1438
|
+
class CustomerPortalPromotionalEntitlementFragment(BaseModel):
|
|
1439
|
+
display_name: str = Field(alias="displayName")
|
|
1440
|
+
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1441
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1442
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1443
|
+
period: PromotionalEntitlementPeriod
|
|
1444
|
+
start_date: Any = Field(alias="startDate")
|
|
1445
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1446
|
+
|
|
1447
|
+
|
|
1438
1448
|
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
1439
1449
|
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1440
1450
|
billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
|
|
@@ -1750,16 +1760,6 @@ class CustomerPortalSubscriptionFragmentScheduledUpdates(
|
|
|
1750
1760
|
pass
|
|
1751
1761
|
|
|
1752
1762
|
|
|
1753
|
-
class CustomerPortalPromotionalEntitlementFragment(BaseModel):
|
|
1754
|
-
display_name: str = Field(alias="displayName")
|
|
1755
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1756
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1757
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1758
|
-
period: PromotionalEntitlementPeriod
|
|
1759
|
-
start_date: Any = Field(alias="startDate")
|
|
1760
|
-
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
1763
|
class CustomerPortalFragment(BaseModel):
|
|
1764
1764
|
subscriptions: List["CustomerPortalFragmentSubscriptions"]
|
|
1765
1765
|
entitlements: List["CustomerPortalFragmentEntitlements"]
|
|
@@ -1987,41 +1987,6 @@ class MockPaywallAddonDependencyFragment(BaseModel):
|
|
|
1987
1987
|
description: Optional[str] = Field(default=None)
|
|
1988
1988
|
|
|
1989
1989
|
|
|
1990
|
-
class MockPaywallPackageEntitlementFragment(BaseModel):
|
|
1991
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1992
|
-
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
1993
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1994
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1995
|
-
alias="resetPeriod", default=None
|
|
1996
|
-
)
|
|
1997
|
-
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
1998
|
-
alias="hiddenFromWidgets", default=None
|
|
1999
|
-
)
|
|
2000
|
-
display_name_override: Optional[str] = Field(
|
|
2001
|
-
alias="displayNameOverride", default=None
|
|
2002
|
-
)
|
|
2003
|
-
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
2004
|
-
is_granted: bool = Field(alias="isGranted")
|
|
2005
|
-
feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
|
|
2006
|
-
default=None
|
|
2007
|
-
)
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
2011
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
2012
|
-
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
2013
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
2014
|
-
feature_units_plural: Optional[str] = Field(
|
|
2015
|
-
alias="featureUnitsPlural", default=None
|
|
2016
|
-
)
|
|
2017
|
-
display_name: str = Field(alias="displayName")
|
|
2018
|
-
description: Optional[str] = Field(default=None)
|
|
2019
|
-
ref_id: str = Field(alias="refId")
|
|
2020
|
-
additional_meta_data: Optional[Any] = Field(
|
|
2021
|
-
alias="additionalMetaData", default=None
|
|
2022
|
-
)
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
1990
|
class MockPaywallPriceFragment(BaseModel):
|
|
2026
1991
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
2027
1992
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
@@ -2064,6 +2029,41 @@ class MockPaywallPriceFragmentFeature(BaseModel):
|
|
|
2064
2029
|
display_name: str = Field(alias="displayName")
|
|
2065
2030
|
|
|
2066
2031
|
|
|
2032
|
+
class MockPaywallPackageEntitlementFragment(BaseModel):
|
|
2033
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
2034
|
+
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
2035
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
2036
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
2037
|
+
alias="resetPeriod", default=None
|
|
2038
|
+
)
|
|
2039
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
2040
|
+
alias="hiddenFromWidgets", default=None
|
|
2041
|
+
)
|
|
2042
|
+
display_name_override: Optional[str] = Field(
|
|
2043
|
+
alias="displayNameOverride", default=None
|
|
2044
|
+
)
|
|
2045
|
+
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
2046
|
+
is_granted: bool = Field(alias="isGranted")
|
|
2047
|
+
feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
|
|
2048
|
+
default=None
|
|
2049
|
+
)
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
2053
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
2054
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
2055
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
2056
|
+
feature_units_plural: Optional[str] = Field(
|
|
2057
|
+
alias="featureUnitsPlural", default=None
|
|
2058
|
+
)
|
|
2059
|
+
display_name: str = Field(alias="displayName")
|
|
2060
|
+
description: Optional[str] = Field(default=None)
|
|
2061
|
+
ref_id: str = Field(alias="refId")
|
|
2062
|
+
additional_meta_data: Optional[Any] = Field(
|
|
2063
|
+
alias="additionalMetaData", default=None
|
|
2064
|
+
)
|
|
2065
|
+
|
|
2066
|
+
|
|
2067
2067
|
class MockPaywallAddonFragment(BaseModel):
|
|
2068
2068
|
ref_id: str = Field(alias="refId")
|
|
2069
2069
|
display_name: str = Field(alias="displayName")
|
|
@@ -3042,32 +3042,32 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
|
|
|
3042
3042
|
|
|
3043
3043
|
AddonDependencyFragment.model_rebuild()
|
|
3044
3044
|
PriceTierFragment.model_rebuild()
|
|
3045
|
-
PriceFragment.model_rebuild()
|
|
3046
3045
|
OveragePriceFragment.model_rebuild()
|
|
3047
3046
|
PackageEntitlementFragment.model_rebuild()
|
|
3047
|
+
PriceFragment.model_rebuild()
|
|
3048
3048
|
AddonFragment.model_rebuild()
|
|
3049
3049
|
FeatureFragment.model_rebuild()
|
|
3050
3050
|
EntitlementFragment.model_rebuild()
|
|
3051
|
-
SubscriptionFutureUpdateData.model_rebuild()
|
|
3052
|
-
CustomerResourceFragment.model_rebuild()
|
|
3053
3051
|
TotalPriceFragment.model_rebuild()
|
|
3052
|
+
SubscriptionFutureUpdateData.model_rebuild()
|
|
3053
|
+
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
3054
|
+
SubscriptionInvoiceFragment.model_rebuild()
|
|
3054
3055
|
SubscriptionScheduledUpdateData.model_rebuild()
|
|
3056
|
+
SlimCustomerFragment.model_rebuild()
|
|
3057
|
+
CustomerResourceFragment.model_rebuild()
|
|
3055
3058
|
PlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
3056
3059
|
ProductFragment.model_rebuild()
|
|
3057
3060
|
PlanFragment.model_rebuild()
|
|
3058
|
-
SlimCustomerFragment.model_rebuild()
|
|
3059
|
-
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
3060
|
-
SubscriptionInvoiceFragment.model_rebuild()
|
|
3061
3061
|
SubscriptionFragment.model_rebuild()
|
|
3062
3062
|
ApplySubscriptionFragment.model_rebuild()
|
|
3063
3063
|
FontVariantFragment.model_rebuild()
|
|
3064
3064
|
TypographyConfigurationFragment.model_rebuild()
|
|
3065
3065
|
CheckoutConfigurationFragment.model_rebuild()
|
|
3066
|
-
StripeCheckoutCredentialsFragment.model_rebuild()
|
|
3067
|
-
ZuoraCheckoutCredentialsFragment.model_rebuild()
|
|
3068
3066
|
CouponFragment.model_rebuild()
|
|
3069
3067
|
PromotionalEntitlementFragment.model_rebuild()
|
|
3070
3068
|
CustomerFragment.model_rebuild()
|
|
3069
|
+
ZuoraCheckoutCredentialsFragment.model_rebuild()
|
|
3070
|
+
StripeCheckoutCredentialsFragment.model_rebuild()
|
|
3071
3071
|
CheckoutStateFragment.model_rebuild()
|
|
3072
3072
|
CreditBalanceFragment.model_rebuild()
|
|
3073
3073
|
CreditBalanceUpdatedPayload.model_rebuild()
|
|
@@ -3079,11 +3079,11 @@ CreditsBalanceSummaryFragment.model_rebuild()
|
|
|
3079
3079
|
CustomerPortalBillingInformationFragment.model_rebuild()
|
|
3080
3080
|
CustomerPortalConfigurationFragment.model_rebuild()
|
|
3081
3081
|
CustomerPortalEntitlementFragment.model_rebuild()
|
|
3082
|
+
CustomerPortalPromotionalEntitlementFragment.model_rebuild()
|
|
3082
3083
|
CustomerPortalSubscriptionPriceFragment.model_rebuild()
|
|
3083
3084
|
CustomerPortalSubscriptionAddonFragment.model_rebuild()
|
|
3084
3085
|
CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
|
|
3085
3086
|
CustomerPortalSubscriptionFragment.model_rebuild()
|
|
3086
|
-
CustomerPortalPromotionalEntitlementFragment.model_rebuild()
|
|
3087
3087
|
CustomerPortalFragment.model_rebuild()
|
|
3088
3088
|
CustomerStatisticsFragment.model_rebuild()
|
|
3089
3089
|
CustomerWithSubscriptionsFragment.model_rebuild()
|
|
@@ -3093,8 +3093,8 @@ EntitlementsUpdatedPayload.model_rebuild()
|
|
|
3093
3093
|
ImmediateSubscriptionPreviewInvoiceFragment.model_rebuild()
|
|
3094
3094
|
LayoutConfigurationFragment.model_rebuild()
|
|
3095
3095
|
MockPaywallAddonDependencyFragment.model_rebuild()
|
|
3096
|
-
MockPaywallPackageEntitlementFragment.model_rebuild()
|
|
3097
3096
|
MockPaywallPriceFragment.model_rebuild()
|
|
3097
|
+
MockPaywallPackageEntitlementFragment.model_rebuild()
|
|
3098
3098
|
MockPaywallAddonFragment.model_rebuild()
|
|
3099
3099
|
MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
3100
3100
|
MockPaywallPlanFragment.model_rebuild()
|
|
@@ -0,0 +1,18 @@
|
|
|
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 CreditGrantFragment
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class VoidCreditGrant(BaseModel):
|
|
11
|
+
void_credit_grant: "VoidCreditGrantVoidCreditGrant" = Field(alias="voidCreditGrant")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class VoidCreditGrantVoidCreditGrant(CreditGrantFragment):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
VoidCreditGrant.model_rebuild()
|
|
@@ -106,16 +106,16 @@ stigg/_vendors/pydantic-2.6.4.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
106
106
|
stigg/_vendors/pydantic-2.6.4.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
|
|
107
107
|
stigg/_vendors/pydantic-2.6.4.dist-info/licenses/LICENSE,sha256=qeGG88oWte74QxjnpwFyE1GgDLe4rjpDlLZ7SeNSnvM,1129
|
|
108
108
|
stigg/client.py,sha256=RWrVnxo9zHFXka8KJVE4sMgyek70ispQk0vqOINCvM0,8335
|
|
109
|
-
stigg/generated/__init__.py,sha256=
|
|
109
|
+
stigg/generated/__init__.py,sha256=xwYBK0s9WkNoL-9QnvqV-jrkktMHlK2P__uOGcKatKM,78603
|
|
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=
|
|
113
|
+
stigg/generated/async_client.py,sha256=KGB6qwieGt5JUtjD0Dl_Mf198lPKMkRKb0Ic7DMNi6E,193599
|
|
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=
|
|
118
|
+
stigg/generated/client.py,sha256=nJ1GDv1Ky9F1wPvCbtxwvV69hxh_ag5VQwZXpj9qIQ8,192864
|
|
119
119
|
stigg/generated/create_payment_session.py,sha256=VRPT8Bbvb_evFHMav9y_pXWHMVbkRy9csf5SJCCUARk,470
|
|
120
120
|
stigg/generated/create_subscription.py,sha256=vbpBJ_daXHcQDtvU3vbwSr2E7s4VGRHxqPavyTV3Mtk,457
|
|
121
121
|
stigg/generated/delegate_subscription_to_customer.py,sha256=0TgQDO0Hk-z7X7PGtqhvciqa8IjkToK9cpiX3Kqu_UY,561
|
|
@@ -124,7 +124,7 @@ stigg/generated/enums.py,sha256=JUtjNl58vJpWeq_Ucdm_TVQ0AJ_zvqywKvWkj8D9rMI,3979
|
|
|
124
124
|
stigg/generated/estimate_subscription.py,sha256=c0_vg0A_Hi8fdjeGudWZ0WziUF9jcjX5rlRitGMAMaQ,479
|
|
125
125
|
stigg/generated/estimate_subscription_update.py,sha256=ZYIFqqHHDfzhrOn95QnMmPNTXZ7JrKWRlUFzk8fWwKA,528
|
|
126
126
|
stigg/generated/exceptions.py,sha256=OQu-ZYCCV4VyMWTd1HR8gIjIK2CrA_JMlFxqOAJugWY,2411
|
|
127
|
-
stigg/generated/fragments.py,sha256=
|
|
127
|
+
stigg/generated/fragments.py,sha256=ehRa81XN4LsaEimz_tGDcXSN58g7KtyAMEEBVujg0Z8,111377
|
|
128
128
|
stigg/generated/get_active_subscriptions.py,sha256=ngZ9jr8vzGI59wT8FhUFl46a8j9waoNjeZ1_lrcu2ww,513
|
|
129
129
|
stigg/generated/get_active_subscriptions_list.py,sha256=Awi9al2MXxdt_y7ZnWYZh8U3R9XiX50c7TyO4WZxyhw,541
|
|
130
130
|
stigg/generated/get_checkout_state.py,sha256=SAOXGAND879dwb7R5mr5LPZuPVuMUDwNR5M4mgmHv6w,409
|
|
@@ -171,7 +171,8 @@ stigg/generated/unarchive_customer.py,sha256=0OVttDrNNOHp6xIpLfDj--XfZL0ogkSpy9e
|
|
|
171
171
|
stigg/generated/unlink_promotional_entitlements_group.py,sha256=8UIRQ0CNvReRfX0LZmDYkRn9mMjZm9n41YG6-p7Z8qU,636
|
|
172
172
|
stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
|
|
173
173
|
stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
|
|
174
|
-
|
|
175
|
-
stigg_api_client_v2-3.
|
|
176
|
-
stigg_api_client_v2-3.
|
|
177
|
-
stigg_api_client_v2-3.
|
|
174
|
+
stigg/generated/void_credit_grant.py,sha256=uQ22Xb2vwMOJfqh48GU2fhZ6Dcv9nHNIx_UJpjmJSBU,410
|
|
175
|
+
stigg_api_client_v2-3.108.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
|
|
176
|
+
stigg_api_client_v2-3.108.0.dist-info/METADATA,sha256=ruc6JTq1SYu3CjygJvsCaf0eNtpKobOGXS6pTdJZSNs,2258
|
|
177
|
+
stigg_api_client_v2-3.108.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
178
|
+
stigg_api_client_v2-3.108.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|