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

@@ -6,15 +6,31 @@ from typing import List
6
6
  from stigg._vendors.pydantic import Field
7
7
 
8
8
  from .base_model import BaseModel
9
- from .fragments import CreditGrantFragment
9
+ from .fragments import CreditGrantFragment, PageInfoFragment
10
10
 
11
11
 
12
12
  class GetCreditGrants(BaseModel):
13
- credit_grants: List["GetCreditGrantsCreditGrants"] = Field(alias="creditGrants")
13
+ credit_grants: "GetCreditGrantsCreditGrants" = Field(alias="creditGrants")
14
14
 
15
15
 
16
- class GetCreditGrantsCreditGrants(CreditGrantFragment):
16
+ class GetCreditGrantsCreditGrants(BaseModel):
17
+ page_info: "GetCreditGrantsCreditGrantsPageInfo" = Field(alias="pageInfo")
18
+ edges: List["GetCreditGrantsCreditGrantsEdges"]
19
+ total_count: int = Field(alias="totalCount")
20
+
21
+
22
+ class GetCreditGrantsCreditGrantsPageInfo(PageInfoFragment):
23
+ pass
24
+
25
+
26
+ class GetCreditGrantsCreditGrantsEdges(BaseModel):
27
+ node: "GetCreditGrantsCreditGrantsEdgesNode"
28
+
29
+
30
+ class GetCreditGrantsCreditGrantsEdgesNode(CreditGrantFragment):
17
31
  pass
18
32
 
19
33
 
20
34
  GetCreditGrants.model_rebuild()
35
+ GetCreditGrantsCreditGrants.model_rebuild()
36
+ GetCreditGrantsCreditGrantsEdges.model_rebuild()
@@ -25,6 +25,7 @@ from .enums import (
25
25
  CouponStatus,
26
26
  CouponType,
27
27
  CreditGrantType,
28
+ CreditUsageTimeRange,
28
29
  Currency,
29
30
  CustomerResourceSortFields,
30
31
  CustomerSortFields,
@@ -866,6 +867,16 @@ class CreditRateInput(BaseModel):
866
867
  custom_currency_id: Any = Field(alias="customCurrencyId")
867
868
 
868
869
 
870
+ class CreditUsageInput(BaseModel):
871
+ currency_id: Optional[str] = Field(alias="currencyId", default=None)
872
+ customer_id: str = Field(alias="customerId")
873
+ environment_id: Optional[Any] = Field(alias="environmentId", default=None)
874
+ resource_id: Optional[str] = Field(alias="resourceId", default=None)
875
+ time_range: Optional[CreditUsageTimeRange] = Field(
876
+ alias="timeRange", default=CreditUsageTimeRange.LAST_MONTH
877
+ )
878
+
879
+
869
880
  class CursorPaging(BaseModel):
870
881
  after: Optional[Any] = None
871
882
  before: Optional[Any] = None
@@ -2036,6 +2047,7 @@ class GetCreditGrantsInput(BaseModel):
2036
2047
  currency_id: Optional[str] = Field(alias="currencyId", default=None)
2037
2048
  customer_id: str = Field(alias="customerId")
2038
2049
  environment_id: Optional[Any] = Field(alias="environmentId", default=None)
2050
+ paging: Optional["CursorPaging"] = None
2039
2051
  resource_id: Optional[str] = Field(alias="resourceId", default=None)
2040
2052
 
2041
2053
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client-v2
3
- Version: 3.88.0
3
+ Version: 3.95.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -106,31 +106,31 @@ 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=uVDTPBsbVlNJE7KwAMmGaaD6YCYxLSOT2xWeEtCLK9E,77209
109
+ stigg/generated/__init__.py,sha256=O27FmDyrjVge1y36rYbnexjFv7AhqYJ0m82tD6z7eFU,77570
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=jcUcAcOqiLVl1MEl2ul_9NZ5CtqcxLRGA_EK982J6pc,189408
113
+ stigg/generated/async_client.py,sha256=S-ETIi3kMgBSQYnlh0f8cnH_8eS0oHEGFTi6BxVSobE,189782
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=4gld5Wxld7UM4DzoF7vzwvMuVv0sKC6ryDosGh6a0k8,188697
118
+ stigg/generated/client.py,sha256=b5IGQHwt0HoTMFHTfk3jdiTImURYS3E3TJ2dQG0IfWU,189071
119
119
  stigg/generated/create_payment_session.py,sha256=VRPT8Bbvb_evFHMav9y_pXWHMVbkRy9csf5SJCCUARk,470
120
120
  stigg/generated/create_subscription.py,sha256=vbpBJ_daXHcQDtvU3vbwSr2E7s4VGRHxqPavyTV3Mtk,457
121
121
  stigg/generated/delegate_subscription_to_customer.py,sha256=0TgQDO0Hk-z7X7PGtqhvciqa8IjkToK9cpiX3Kqu_UY,561
122
122
  stigg/generated/detach_customer_payment_method.py,sha256=ACXlC2xsGaUP723OrayFZQ9SbXxe8TtVUYdG1gqcYFc,523
123
- stigg/generated/enums.py,sha256=uz0ELcMolFbn8vz4GbOy1HyzaoIrFkGfJ6t9tcyklmA,39018
123
+ stigg/generated/enums.py,sha256=1K6mEtm-zwrD9awYdLmovzADI6pMUzSOA2wi6_xhXQ8,39171
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=KUqueH-9nuFAXWtOS0gCRnmPqO7dMRAsFTMRAq_D7MA,108906
127
+ stigg/generated/fragments.py,sha256=7nV-EH34r4vbhFhudxupUG3DyFrwmBVC8Swli7Pc5Iw,108906
128
128
  stigg/generated/get_active_subscriptions.py,sha256=ngZ9jr8vzGI59wT8FhUFl46a8j9waoNjeZ1_lrcu2ww,513
129
129
  stigg/generated/get_active_subscriptions_list.py,sha256=Awi9al2MXxdt_y7ZnWYZh8U3R9XiX50c7TyO4WZxyhw,541
130
130
  stigg/generated/get_checkout_state.py,sha256=SAOXGAND879dwb7R5mr5LPZuPVuMUDwNR5M4mgmHv6w,409
131
131
  stigg/generated/get_coupons.py,sha256=KiDyZKrIWLlXCORhEfwjZWw6urYALU6Z7dUn-1xc3j4,547
132
132
  stigg/generated/get_credit_balance.py,sha256=b7PFYjOneQVXinRSgI2RQr0bvgPNmpGefljo99jZsFQ,468
133
- stigg/generated/get_credit_grants.py,sha256=NOfbXNyS2G4tGrsxQVj2mISPKbkaTSLCRGEKd6cKAzQ,428
133
+ stigg/generated/get_credit_grants.py,sha256=b7AlrlcuDmbV8flz28PvU40eRnQSCdsfZyp_rFDzOPM,944
134
134
  stigg/generated/get_credit_ledger.py,sha256=MKfqQJCQF7ymb0d6cwTafQv6S7WrWg3-TAoKxB7JnD8,583
135
135
  stigg/generated/get_customer_by_id.py,sha256=g_7q4ncmz6GH4Tl9fnlRYh-bxG5vHXsf9EDPEbqvdyA,505
136
136
  stigg/generated/get_customer_portal_by_ref_id.py,sha256=k_P5_2HA4xlr46s6KRJ3Y4wr5nLBve592BMMKWlWPTM,461
@@ -152,7 +152,7 @@ stigg/generated/grant_promotional_entitlements_group.py,sha256=iQwCd07VFaYbsN_E-
152
152
  stigg/generated/import_customer.py,sha256=yEtrEB7T-Aykv3AUl-rAQz2XL6hKL0j-7JL3h-xi87o,403
153
153
  stigg/generated/import_customer_bulk.py,sha256=miLn2ScWlPOH1IipltY5Vgd-ZQ_BkBk9t3-EsLvU5ZQ,284
154
154
  stigg/generated/import_subscriptions_bulk.py,sha256=QgitpZkjE7eBhP1o5W0PTVAbKOvz61dNoeBAWupIcgU,297
155
- stigg/generated/input_types.py,sha256=rC6CO3AJtYAagb9CtOEuVwQkULotuN6o0ZfwIoapsxM,213760
155
+ stigg/generated/input_types.py,sha256=6VQPZNcmYuS-3eyGKyvUaHZ3kwK-bCqMDQISh_t0djU,214270
156
156
  stigg/generated/migrate_subscription_to_latest.py,sha256=qQDwH7EodYAeJFb62IIl-MAEB5MbthgCJ0v1RMxpdYk,516
157
157
  stigg/generated/preview_next_invoice.py,sha256=MiQ4Gv7Ve1Hv60xhaQi7uj82aq0xLP2UB-gjvcQdOL8,478
158
158
  stigg/generated/preview_subscription.py,sha256=Qo2vlFs7sFzqaE8J_e-EHTRfLvG46lko-dcJMxDSCR0,475
@@ -170,7 +170,7 @@ stigg/generated/unarchive_customer.py,sha256=0OVttDrNNOHp6xIpLfDj--XfZL0ogkSpy9e
170
170
  stigg/generated/unlink_promotional_entitlements_group.py,sha256=8UIRQ0CNvReRfX0LZmDYkRn9mMjZm9n41YG6-p7Z8qU,636
171
171
  stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
172
172
  stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
173
- stigg_api_client_v2-3.88.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
174
- stigg_api_client_v2-3.88.0.dist-info/METADATA,sha256=vIwO6a_4gZIY17M23xM-eDUM5rXYr0BVqZ3AyjIFTaY,2257
175
- stigg_api_client_v2-3.88.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
176
- stigg_api_client_v2-3.88.0.dist-info/RECORD,,
173
+ stigg_api_client_v2-3.95.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
174
+ stigg_api_client_v2-3.95.0.dist-info/METADATA,sha256=7WbPayaWhYKhQLRyn8Nwp-yX8WYKDDoWTZqOd-9Dai0,2257
175
+ stigg_api_client_v2-3.95.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
176
+ stigg_api_client_v2-3.95.0.dist-info/RECORD,,