gr4vy 1.10.9__py3-none-any.whl → 1.10.10__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.
gr4vy/_version.py CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "gr4vy"
6
- __version__: str = "1.10.9"
6
+ __version__: str = "1.10.10"
7
7
  __openapi_doc_version__: str = "1.0.0"
8
- __gen_version__: str = "2.793.0"
9
- __user_agent__: str = "speakeasy-sdk/python 1.10.9 2.793.0 1.0.0 gr4vy"
8
+ __gen_version__: str = "2.794.1"
9
+ __user_agent__: str = "speakeasy-sdk/python 1.10.10 2.794.1 1.0.0 gr4vy"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -77,6 +77,8 @@ class PaymentLinkTypedDict(TypedDict):
77
77
  r"""Whether the payment method was stored."""
78
78
  buyer_id: NotRequired[Nullable[str]]
79
79
  r"""The ID of the buyer to associate with the stored payment method."""
80
+ installment_count: NotRequired[Nullable[int]]
81
+ r"""The number of installments a buyer is required to make."""
80
82
 
81
83
 
82
84
  class PaymentLink(BaseModel):
@@ -174,6 +176,9 @@ class PaymentLink(BaseModel):
174
176
  buyer_id: OptionalNullable[str] = UNSET
175
177
  r"""The ID of the buyer to associate with the stored payment method."""
176
178
 
179
+ installment_count: OptionalNullable[int] = UNSET
180
+ r"""The number of installments a buyer is required to make."""
181
+
177
182
  @model_serializer(mode="wrap")
178
183
  def serialize_model(self, handler):
179
184
  optional_fields = [
@@ -196,6 +201,7 @@ class PaymentLink(BaseModel):
196
201
  "connection_options",
197
202
  "store",
198
203
  "buyer_id",
204
+ "installment_count",
199
205
  ]
200
206
  nullable_fields = [
201
207
  "expires_at",
@@ -216,6 +222,7 @@ class PaymentLink(BaseModel):
216
222
  "shipping_details",
217
223
  "connection_options",
218
224
  "buyer_id",
225
+ "installment_count",
219
226
  ]
220
227
  null_default_fields = []
221
228
 
@@ -63,6 +63,8 @@ class PaymentLinkCreateTypedDict(TypedDict):
63
63
  r"""Whether to store the payment method for future use."""
64
64
  buyer_id: NotRequired[Nullable[str]]
65
65
  r"""The ID of the buyer to associate the payment method with. Note: When `buyer_id` is provided, the payment link should be treated as a secret as it will allow the user to manage payment methods for the associated buyer."""
66
+ installment_count: NotRequired[Nullable[int]]
67
+ r"""The number of installments a buyer is required to make."""
66
68
 
67
69
 
68
70
  class PaymentLinkCreate(BaseModel):
@@ -134,6 +136,9 @@ class PaymentLinkCreate(BaseModel):
134
136
  buyer_id: OptionalNullable[str] = UNSET
135
137
  r"""The ID of the buyer to associate the payment method with. Note: When `buyer_id` is provided, the payment link should be treated as a secret as it will allow the user to manage payment methods for the associated buyer."""
136
138
 
139
+ installment_count: OptionalNullable[int] = UNSET
140
+ r"""The number of installments a buyer is required to make."""
141
+
137
142
  @model_serializer(mode="wrap")
138
143
  def serialize_model(self, handler):
139
144
  optional_fields = [
@@ -157,6 +162,7 @@ class PaymentLinkCreate(BaseModel):
157
162
  "payment_source",
158
163
  "store",
159
164
  "buyer_id",
165
+ "installment_count",
160
166
  ]
161
167
  nullable_fields = [
162
168
  "buyer",
@@ -176,6 +182,7 @@ class PaymentLinkCreate(BaseModel):
176
182
  "cart_items",
177
183
  "metadata",
178
184
  "buyer_id",
185
+ "installment_count",
179
186
  ]
180
187
  null_default_fields = []
181
188
 
@@ -50,6 +50,7 @@ class PaymentLinksSDK(BaseSDK):
50
50
  payment_source: Optional[models.TransactionPaymentSource] = None,
51
51
  store: Optional[bool] = False,
52
52
  buyer_id: OptionalNullable[str] = UNSET,
53
+ installment_count: OptionalNullable[int] = UNSET,
53
54
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
54
55
  server_url: Optional[str] = None,
55
56
  timeout_ms: Optional[int] = None,
@@ -83,6 +84,7 @@ class PaymentLinksSDK(BaseSDK):
83
84
  :param payment_source: The way payment method information made it to this transaction.
84
85
  :param store: Whether to store the payment method for future use.
85
86
  :param buyer_id: The ID of the buyer to associate the payment method with. Note: When `buyer_id` is provided, the payment link should be treated as a secret as it will allow the user to manage payment methods for the associated buyer.
87
+ :param installment_count: The number of installments a buyer is required to make.
86
88
  :param retries: Override the default retry configuration for this method
87
89
  :param server_url: Override the default server URL for this method
88
90
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -133,6 +135,7 @@ class PaymentLinksSDK(BaseSDK):
133
135
  payment_source=payment_source,
134
136
  store=store,
135
137
  buyer_id=buyer_id,
138
+ installment_count=installment_count,
136
139
  ),
137
140
  )
138
141
 
@@ -289,6 +292,7 @@ class PaymentLinksSDK(BaseSDK):
289
292
  payment_source: Optional[models.TransactionPaymentSource] = None,
290
293
  store: Optional[bool] = False,
291
294
  buyer_id: OptionalNullable[str] = UNSET,
295
+ installment_count: OptionalNullable[int] = UNSET,
292
296
  retries: OptionalNullable[utils.RetryConfig] = UNSET,
293
297
  server_url: Optional[str] = None,
294
298
  timeout_ms: Optional[int] = None,
@@ -322,6 +326,7 @@ class PaymentLinksSDK(BaseSDK):
322
326
  :param payment_source: The way payment method information made it to this transaction.
323
327
  :param store: Whether to store the payment method for future use.
324
328
  :param buyer_id: The ID of the buyer to associate the payment method with. Note: When `buyer_id` is provided, the payment link should be treated as a secret as it will allow the user to manage payment methods for the associated buyer.
329
+ :param installment_count: The number of installments a buyer is required to make.
325
330
  :param retries: Override the default retry configuration for this method
326
331
  :param server_url: Override the default server URL for this method
327
332
  :param timeout_ms: Override the default request timeout configuration for this method in milliseconds
@@ -372,6 +377,7 @@ class PaymentLinksSDK(BaseSDK):
372
377
  payment_source=payment_source,
373
378
  store=store,
374
379
  buyer_id=buyer_id,
380
+ installment_count=installment_count,
375
381
  ),
376
382
  )
377
383
 
@@ -44,15 +44,15 @@ def serialize_request_body(
44
44
 
45
45
  serialized_request_body = SerializedRequestBody(media_type)
46
46
 
47
- if re.match(r"(application|text)\/([^+]+\+)*json.*", media_type) is not None:
47
+ if re.match(r"^(application|text)\/([^+]+\+)*json.*", media_type) is not None:
48
48
  serialized_request_body.content = marshal_json(request_body, request_body_type)
49
- elif re.match(r"multipart\/.*", media_type) is not None:
49
+ elif re.match(r"^multipart\/.*", media_type) is not None:
50
50
  (
51
51
  serialized_request_body.media_type,
52
52
  serialized_request_body.data,
53
53
  serialized_request_body.files,
54
54
  ) = serialize_multipart_form(media_type, request_body)
55
- elif re.match(r"application\/x-www-form-urlencoded.*", media_type) is not None:
55
+ elif re.match(r"^application\/x-www-form-urlencoded.*", media_type) is not None:
56
56
  serialized_request_body.data = serialize_form_data(request_body)
57
57
  elif isinstance(request_body, (bytes, bytearray, io.BytesIO, io.BufferedReader)):
58
58
  serialized_request_body.content = request_body
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gr4vy
3
- Version: 1.10.9
3
+ Version: 1.10.10
4
4
  Summary: Python Client SDK Generated by Speakeasy.
5
5
  Author: Gr4vy
6
6
  Requires-Python: >=3.9.2
@@ -2,7 +2,7 @@ gr4vy/__init__.py,sha256=w2u919V3Tzv4zEPQ-OYJ79gQ_4_SyW7GOFFoHtqXDFA,401
2
2
  gr4vy/_hooks/__init__.py,sha256=p5J13DeYuISQyQWirjJAObHIf2VtIlOtFqnIpvjjVwk,118
3
3
  gr4vy/_hooks/sdkhooks.py,sha256=3jKTs2B1lcAxBMJge9C-qL0RGbKGLcrHvikzi67Tbdo,2493
4
4
  gr4vy/_hooks/types.py,sha256=0O7dbbolkiFAnHkNULvwoLsiXJu0_Wmhev163bvZbW8,3039
5
- gr4vy/_version.py,sha256=HJSBgNwsakQsA4k8QaPDkb3oBJzh_yvKJmXdA57TdMU,454
5
+ gr4vy/_version.py,sha256=jMnL-MP3ZqSnFuBy5LdczjCbWvFXuX-wNl5EWjl-mlw,456
6
6
  gr4vy/account_updater.py,sha256=mmTd25Oap80PBqQ3p4MvZ_buT5VS0zWc8s8cqfI7iyA,607
7
7
  gr4vy/actions.py,sha256=M0SgxWTiduh6x8zvOzO7wghlPz58jSJDJ1EjlvgjNXc,14008
8
8
  gr4vy/all.py,sha256=dSRtcZcQ7gc9MYmgUFdExz077A5UjbLns7Zg48BQPtg,15248
@@ -265,8 +265,8 @@ gr4vy/models/nuveiidealoptions.py,sha256=5AkzXKvFFVu9DDqIo5sGimXjOE-6alSDW1WeiPR
265
265
  gr4vy/models/nuveioptions.py,sha256=ms46xui6MunqvGv_SK9S1Q7VQo1UI0hju2kqjUFNeRE,2063
266
266
  gr4vy/models/nuveipseoptions.py,sha256=0CtBMe2cxU6XToQamYy25jCD0rMAl2Ko2KETtNyta1Q,2426
267
267
  gr4vy/models/oxxooptions.py,sha256=UjdEwwdwr-N7b8_3gwE1rgxjmfadQRghk9vzZmS4uPU,1910
268
- gr4vy/models/paymentlink.py,sha256=O-4XXsNVV-VYn75kBRjpF_dt9cj7bTxJLAcd1j3dUIs,8639
269
- gr4vy/models/paymentlinkcreate.py,sha256=4YIs2qm3peJkj6ymifCfU7Fe1kQtBMybs4n-6wS8mV0,7683
268
+ gr4vy/models/paymentlink.py,sha256=mW3s3XuawWuVbzSJQu6YpHGE6kHvEbsMkCrM6_xnFGA,8943
269
+ gr4vy/models/paymentlinkcreate.py,sha256=Ty6P25Y7FV12pMDTryGsTZi4O78KORLavJY0Y0WQ3Cc,7987
270
270
  gr4vy/models/paymentlinks.py,sha256=i7Sj7x18rY5HR-E_LkinvTpVjnl8aCMCldQJFXnV9Lk,2175
271
271
  gr4vy/models/paymentlinkstatus.py,sha256=e09HkfXNZDZSN_lkHCyiW7IaI-8JtM-_UmSOQ_im7ZE,334
272
272
  gr4vy/models/paymentmethod.py,sha256=XhA_aZZVdykFWJhbB1Xs0J8EyelxQnQi5dUBeQgb0UA,9068
@@ -407,7 +407,7 @@ gr4vy/models/wpaypaytooptions.py,sha256=gyG3U5Ianv_xAzHKJNu7BY1jina9FBfU5Y7T64Au
407
407
  gr4vy/models/wpaypaytoresourceoptions.py,sha256=Ub4XCfIiXKjGXkDERkXmyBWEaFBRxoiBN6olNPO_hRw,1658
408
408
  gr4vy/models/wpaypaytosimulationoptions.py,sha256=_UHWxMSXhhEOjXwf4hOdelhtZNOFoqk7OoaqSjGofmY,1876
409
409
  gr4vy/network_tokens_cryptogram.py,sha256=KM6UDMmtSLeWb0te4H2pzDW5PM9HoMsPp6Q7StziFA4,15026
410
- gr4vy/payment_links_sdk.py,sha256=m0gGxuZwwr_OZXZhiPwUPDwtEMqzMOxDnERNnQBFKd4,65741
410
+ gr4vy/payment_links_sdk.py,sha256=pZkdCsKpTtFTLBZkp13dbTIq0lSbHIlfzNGZ0qux8nk,66143
411
411
  gr4vy/payment_methods_network_tokens.py,sha256=W3s5P8wBYCLhp8XJ74wbcCu6k84d6MNpioo75Ada4-c,70645
412
412
  gr4vy/payment_methods_payment_service_tokens.py,sha256=SNCnK4SdyLhyJXnbXRGhgnmAgviCeWbFqbbPe5WwPcQ,43437
413
413
  gr4vy/payment_methods_sdk.py,sha256=71qqVxAh_9piEwCvuVt99HvOK76BEjVXpgVSnTShdbw,58404
@@ -437,7 +437,7 @@ gr4vy/utils/headers.py,sha256=cPxWSmUILrefTGDzTH1Hdj7_Hlsj-EY6K5Tyc4iH4dk,3663
437
437
  gr4vy/utils/logger.py,sha256=WdT856mADqljmNjIW_Y1ntFJrIWz3CCOowhK8kcGobk,669
438
438
  gr4vy/utils/metadata.py,sha256=Per2KFXXOqOtoUWXrlIfjrSrBg199KrRW0nKQDgHIBU,3136
439
439
  gr4vy/utils/queryparams.py,sha256=dxtFQDJ8dlbm_hh_fhdFC1qMWOOHR2MszNycKmME8bQ,6326
440
- gr4vy/utils/requestbodies.py,sha256=cK_5x2Yp12M7uJyxtdDo5D5G7kBFXCXneuHUR4zrdhc,2105
440
+ gr4vy/utils/requestbodies.py,sha256=7bi6slrGKAbmfg4BoOUjSVGrbg9NvIFvCKUEgjwyJEw,2108
441
441
  gr4vy/utils/retries.py,sha256=stPJEFtmK8gOM6aT0DpEJp9Z39oXX1-8I69jpa2n3Ww,8130
442
442
  gr4vy/utils/security.py,sha256=VfMDCDFcnxNgffthL8icp_bjRV9FxtJbhK2DgNkSZMk,6016
443
443
  gr4vy/utils/serializers.py,sha256=ueUga5yv_08r10eQiaVIk0o726j0TRno8603jUksasA,5585
@@ -445,6 +445,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=G4h8gLOK09kjhPiUZjgIMm6zntcbxpvb_m
445
445
  gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
446
446
  gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
447
447
  gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
448
- gr4vy-1.10.9.dist-info/METADATA,sha256=4IAX0JkaCWd9YzIQD1IjscIsT0ntF07wvr0I4CxYNnI,44298
449
- gr4vy-1.10.9.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
450
- gr4vy-1.10.9.dist-info/RECORD,,
448
+ gr4vy-1.10.10.dist-info/METADATA,sha256=cGvfdM0sRxnD92ertRA_fYM_1W6DvfZQBvPE4pw_ArY,44299
449
+ gr4vy-1.10.10.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
450
+ gr4vy-1.10.10.dist-info/RECORD,,