gr4vy 1.7.12__py3-none-any.whl → 1.7.15__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.7.12"
6
+ __version__: str = "1.7.15"
7
7
  __openapi_doc_version__: str = "1.0.0"
8
- __gen_version__: str = "2.753.1"
9
- __user_agent__: str = "speakeasy-sdk/python 1.7.12 2.753.1 1.0.0 gr4vy"
8
+ __gen_version__: str = "2.755.9"
9
+ __user_agent__: str = "speakeasy-sdk/python 1.7.15 2.755.9 1.0.0 gr4vy"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -42,8 +42,8 @@ BodyTypedDict = TypeAliasType(
42
42
  "BodyTypedDict",
43
43
  Union[
44
44
  CheckoutSessionPaymentMethodCreateTypedDict,
45
- PlaidPaymentMethodCreateTypedDict,
46
45
  RedirectPaymentMethodCreateTypedDict,
46
+ PlaidPaymentMethodCreateTypedDict,
47
47
  CardPaymentMethodCreateTypedDict,
48
48
  ],
49
49
  )
@@ -53,8 +53,8 @@ Body = TypeAliasType(
53
53
  "Body",
54
54
  Union[
55
55
  CheckoutSessionPaymentMethodCreate,
56
- PlaidPaymentMethodCreate,
57
56
  RedirectPaymentMethodCreate,
57
+ PlaidPaymentMethodCreate,
58
58
  CardPaymentMethodCreate,
59
59
  ],
60
60
  )
@@ -28,6 +28,8 @@ class PlaidPaymentMethodCreateTypedDict(TypedDict):
28
28
  r"""The ID of the buyer to attach the method to."""
29
29
  buyer_external_identifier: NotRequired[Nullable[str]]
30
30
  r"""The merchant reference for this payment method."""
31
+ external_identifier: NotRequired[Nullable[str]]
32
+ r"""The merchant identifier for this payment method."""
31
33
 
32
34
 
33
35
  class PlaidPaymentMethodCreate(BaseModel):
@@ -57,6 +59,9 @@ class PlaidPaymentMethodCreate(BaseModel):
57
59
  buyer_external_identifier: OptionalNullable[str] = UNSET
58
60
  r"""The merchant reference for this payment method."""
59
61
 
62
+ external_identifier: OptionalNullable[str] = UNSET
63
+ r"""The merchant identifier for this payment method."""
64
+
60
65
  @model_serializer(mode="wrap")
61
66
  def serialize_model(self, handler):
62
67
  optional_fields = [
@@ -65,12 +70,14 @@ class PlaidPaymentMethodCreate(BaseModel):
65
70
  "payment_service_id",
66
71
  "buyer_id",
67
72
  "buyer_external_identifier",
73
+ "external_identifier",
68
74
  ]
69
75
  nullable_fields = [
70
76
  "account_id",
71
77
  "payment_service_id",
72
78
  "buyer_id",
73
79
  "buyer_external_identifier",
80
+ "external_identifier",
74
81
  ]
75
82
  null_default_fields = []
76
83
 
@@ -167,6 +167,8 @@ class TransactionOutputTypedDict(TypedDict):
167
167
  r"""The sales tax amount for this transaction, represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`"""
168
168
  merchant_tax_id: NotRequired[Nullable[str]]
169
169
  r"""Merchant tax ID (for example, EIN or VAT number)."""
170
+ purchase_order_number: NotRequired[Nullable[str]]
171
+ r"""Invoice number or Purchase Order number."""
170
172
  customer_reference_number: NotRequired[Nullable[str]]
171
173
  r"""Customer code or reference."""
172
174
  amount_includes_tax: NotRequired[Nullable[bool]]
@@ -385,6 +387,9 @@ class TransactionOutput(BaseModel):
385
387
  merchant_tax_id: OptionalNullable[str] = UNSET
386
388
  r"""Merchant tax ID (for example, EIN or VAT number)."""
387
389
 
390
+ purchase_order_number: OptionalNullable[str] = UNSET
391
+ r"""Invoice number or Purchase Order number."""
392
+
388
393
  customer_reference_number: OptionalNullable[str] = UNSET
389
394
  r"""Customer code or reference."""
390
395
 
@@ -443,6 +448,7 @@ class TransactionOutput(BaseModel):
443
448
  "session_token",
444
449
  "tax_amount",
445
450
  "merchant_tax_id",
451
+ "purchase_order_number",
446
452
  "customer_reference_number",
447
453
  "amount_includes_tax",
448
454
  "supplier_order_number",
@@ -487,6 +493,7 @@ class TransactionOutput(BaseModel):
487
493
  "session_token",
488
494
  "tax_amount",
489
495
  "merchant_tax_id",
496
+ "purchase_order_number",
490
497
  "customer_reference_number",
491
498
  "amount_includes_tax",
492
499
  "supplier_order_number",
@@ -80,9 +80,9 @@ TransactionCreatePaymentMethodTypedDict = TypeAliasType(
80
80
  "TransactionCreatePaymentMethodTypedDict",
81
81
  Union[
82
82
  TokenPaymentMethodCreateTypedDict,
83
- PlaidPaymentMethodCreateTypedDict,
84
83
  CheckoutSessionWithURLPaymentMethodCreateTypedDict,
85
84
  RedirectPaymentMethodCreateTypedDict,
85
+ PlaidPaymentMethodCreateTypedDict,
86
86
  ClickToPayPaymentMethodCreateTypedDict,
87
87
  CardWithURLPaymentMethodCreateTypedDict,
88
88
  ApplePayPaymentMethodCreateTypedDict,
@@ -99,9 +99,9 @@ TransactionCreatePaymentMethod = TypeAliasType(
99
99
  "TransactionCreatePaymentMethod",
100
100
  Union[
101
101
  TokenPaymentMethodCreate,
102
- PlaidPaymentMethodCreate,
103
102
  CheckoutSessionWithURLPaymentMethodCreate,
104
103
  RedirectPaymentMethodCreate,
104
+ PlaidPaymentMethodCreate,
105
105
  ClickToPayPaymentMethodCreate,
106
106
  CardWithURLPaymentMethodCreate,
107
107
  ApplePayPaymentMethodCreate,
@@ -223,6 +223,8 @@ class TransactionCreateTypedDict(TypedDict):
223
223
  r"""The sales tax amount for this transaction, represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`"""
224
224
  merchant_tax_id: NotRequired[Nullable[str]]
225
225
  r"""Merchant tax ID (for example, EIN or VAT number)."""
226
+ purchase_order_number: NotRequired[Nullable[str]]
227
+ r"""Invoice number or Purchase Order number."""
226
228
  customer_reference_number: NotRequired[Nullable[str]]
227
229
  r"""Customer code or reference."""
228
230
  amount_includes_tax: NotRequired[Nullable[bool]]
@@ -358,6 +360,9 @@ class TransactionCreate(BaseModel):
358
360
  merchant_tax_id: OptionalNullable[str] = UNSET
359
361
  r"""Merchant tax ID (for example, EIN or VAT number)."""
360
362
 
363
+ purchase_order_number: OptionalNullable[str] = UNSET
364
+ r"""Invoice number or Purchase Order number."""
365
+
361
366
  customer_reference_number: OptionalNullable[str] = UNSET
362
367
  r"""Customer code or reference."""
363
368
 
@@ -411,6 +416,7 @@ class TransactionCreate(BaseModel):
411
416
  "installment_count",
412
417
  "tax_amount",
413
418
  "merchant_tax_id",
419
+ "purchase_order_number",
414
420
  "customer_reference_number",
415
421
  "amount_includes_tax",
416
422
  "supplier_order_number",
@@ -441,6 +447,7 @@ class TransactionCreate(BaseModel):
441
447
  "installment_count",
442
448
  "tax_amount",
443
449
  "merchant_tax_id",
450
+ "purchase_order_number",
444
451
  "customer_reference_number",
445
452
  "amount_includes_tax",
446
453
  "supplier_order_number",
gr4vy/transactions.py CHANGED
@@ -778,6 +778,7 @@ class Transactions(BaseSDK):
778
778
  installment_count: OptionalNullable[int] = UNSET,
779
779
  tax_amount: OptionalNullable[int] = UNSET,
780
780
  merchant_tax_id: OptionalNullable[str] = UNSET,
781
+ purchase_order_number: OptionalNullable[str] = UNSET,
781
782
  customer_reference_number: OptionalNullable[str] = UNSET,
782
783
  amount_includes_tax: OptionalNullable[bool] = UNSET,
783
784
  supplier_order_number: OptionalNullable[str] = UNSET,
@@ -848,6 +849,7 @@ class Transactions(BaseSDK):
848
849
  :param installment_count: The number of installments a buyer is required to make.
849
850
  :param tax_amount: The sales tax amount for this transaction, represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`
850
851
  :param merchant_tax_id: Merchant tax ID (for example, EIN or VAT number).
852
+ :param purchase_order_number: Invoice number or Purchase Order number.
851
853
  :param customer_reference_number: Customer code or reference.
852
854
  :param amount_includes_tax: Whether the tax is included in the amount.
853
855
  :param supplier_order_number: The merchant's unique identifier for the sales order or invoice.
@@ -928,6 +930,7 @@ class Transactions(BaseSDK):
928
930
  installment_count=installment_count,
929
931
  tax_amount=tax_amount,
930
932
  merchant_tax_id=merchant_tax_id,
933
+ purchase_order_number=purchase_order_number,
931
934
  customer_reference_number=customer_reference_number,
932
935
  amount_includes_tax=amount_includes_tax,
933
936
  supplier_order_number=supplier_order_number,
@@ -1115,6 +1118,7 @@ class Transactions(BaseSDK):
1115
1118
  installment_count: OptionalNullable[int] = UNSET,
1116
1119
  tax_amount: OptionalNullable[int] = UNSET,
1117
1120
  merchant_tax_id: OptionalNullable[str] = UNSET,
1121
+ purchase_order_number: OptionalNullable[str] = UNSET,
1118
1122
  customer_reference_number: OptionalNullable[str] = UNSET,
1119
1123
  amount_includes_tax: OptionalNullable[bool] = UNSET,
1120
1124
  supplier_order_number: OptionalNullable[str] = UNSET,
@@ -1185,6 +1189,7 @@ class Transactions(BaseSDK):
1185
1189
  :param installment_count: The number of installments a buyer is required to make.
1186
1190
  :param tax_amount: The sales tax amount for this transaction, represented as a monetary amount in the smallest currency unit for the given currency, for example `1299` cents to create an authorization for `$12.99`
1187
1191
  :param merchant_tax_id: Merchant tax ID (for example, EIN or VAT number).
1192
+ :param purchase_order_number: Invoice number or Purchase Order number.
1188
1193
  :param customer_reference_number: Customer code or reference.
1189
1194
  :param amount_includes_tax: Whether the tax is included in the amount.
1190
1195
  :param supplier_order_number: The merchant's unique identifier for the sales order or invoice.
@@ -1265,6 +1270,7 @@ class Transactions(BaseSDK):
1265
1270
  installment_count=installment_count,
1266
1271
  tax_amount=tax_amount,
1267
1272
  merchant_tax_id=merchant_tax_id,
1273
+ purchase_order_number=purchase_order_number,
1268
1274
  customer_reference_number=customer_reference_number,
1269
1275
  amount_includes_tax=amount_includes_tax,
1270
1276
  supplier_order_number=supplier_order_number,
@@ -1,12 +1,26 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
- from typing import Any, Optional
3
+ from typing import Any, Optional, Type, TypeVar, overload
4
4
 
5
5
  import httpx
6
6
 
7
7
  from .serializers import unmarshal_json
8
8
  from gr4vy import errors
9
9
 
10
+ T = TypeVar("T")
11
+
12
+
13
+ @overload
14
+ def unmarshal_json_response(
15
+ typ: Type[T], http_res: httpx.Response, body: Optional[str] = None
16
+ ) -> T: ...
17
+
18
+
19
+ @overload
20
+ def unmarshal_json_response(
21
+ typ: Any, http_res: httpx.Response, body: Optional[str] = None
22
+ ) -> Any: ...
23
+
10
24
 
11
25
  def unmarshal_json_response(
12
26
  typ: Any, http_res: httpx.Response, body: Optional[str] = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gr4vy
3
- Version: 1.7.12
3
+ Version: 1.7.15
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=A9-umET9oE0pKSBAz8fs9FDxDyVEJDMPRf3hAqCnqSI,454
5
+ gr4vy/_version.py,sha256=wMATaDfkenrGd5E1psyabA1HAkvhRmmpFqLw2beYqkc,454
6
6
  gr4vy/account_updater.py,sha256=mmTd25Oap80PBqQ3p4MvZ_buT5VS0zWc8s8cqfI7iyA,607
7
7
  gr4vy/all.py,sha256=jZtRqz8D1xGrylI95KA2XNwWLVAID1o_AYxA9wpXTzs,15176
8
8
  gr4vy/audit_logs.py,sha256=U16uKNF7H514ZBM0cAeSz2U2JT4P-SPGIJU6d6KOH34,17087
@@ -113,7 +113,7 @@ gr4vy/models/create_google_pay_digital_wallet_sessionop.py,sha256=V9gW3w6MuQaQs1
113
113
  gr4vy/models/create_payment_method_network_token_cryptogramop.py,sha256=5zvjMjNa-l_3JxarzBPhi_SdAVDfSWcaQCZ5XDsjjbw,2152
114
114
  gr4vy/models/create_payment_method_network_tokenop.py,sha256=hlGlYp8PNEN8F4EBS_lTQWvy5uRo6VwqDWS9i67nvXw,1902
115
115
  gr4vy/models/create_payment_method_payment_service_tokenop.py,sha256=jCfHSkq9p3xXGskN3DKvu5_2aBjyTCfwe5LRQam0Ueo,1994
116
- gr4vy/models/create_payment_methodop.py,sha256=P6nWHpHABPaJWlBsRW0rQhdf94KoiG2gscuk99MtoBY,2415
116
+ gr4vy/models/create_payment_methodop.py,sha256=gnQMwvjKbazn-0TRoNt3ylGceYcB_YZA7lIqx1Lu7_g,2415
117
117
  gr4vy/models/create_payment_service_definition_sessionop.py,sha256=3eabWTaVZUihnEv9LEZ6UnjCM5i-bwKAdkKyEnOx0WM,780
118
118
  gr4vy/models/create_payment_service_sessionop.py,sha256=MxkcRuCzwso_Z-i5iFht0d5HNRSJULdf0worMFyUfpc,1788
119
119
  gr4vy/models/create_payment_serviceop.py,sha256=GXk91h_GkGn4XrTDX-xn2wjUVLDHcWTgcKkVB5Hw4u8,1876
@@ -302,7 +302,7 @@ gr4vy/models/paypaloptions.py,sha256=aY81ZsVtUgXnGmzSxWoHI3KhMs-_gCZpA6hjbS7sFB8
302
302
  gr4vy/models/paypalshippingoptions.py,sha256=85pRPBHzUzhNnoF8sFRjaQ2d64-hIXr-AMDj6z1FUZQ,1787
303
303
  gr4vy/models/paypalshippingoptionsitem.py,sha256=Q09suxnZ3fIxUpOuyGpNljfPfFKoq82V0L0-Wyt7rSI,3424
304
304
  gr4vy/models/paypalshippingoptionsitemamount.py,sha256=YuROvTE2ngGuHajoRnIRY3NwSr3mtADnHes3Xao2llA,608
305
- gr4vy/models/plaidpaymentmethodcreate.py,sha256=toULZY1sWb-7gqsUaCI2h1MjeNOpM7QovBYG0_O9MTo,3581
305
+ gr4vy/models/plaidpaymentmethodcreate.py,sha256=seAagptOcrtywk_t2AjXjRKjkkHGsirfkCBL_JmIrwU,3879
306
306
  gr4vy/models/powertranzoptions.py,sha256=ZJAZVTggH_fMMwvMlNvJGe0RpLcASaWBmH5Ln7SgxrU,1692
307
307
  gr4vy/models/producttype.py,sha256=qsHybq-2rssJDt3greV0fng-wnHKVaFWGMvf3-52u70,418
308
308
  gr4vy/models/recipient.py,sha256=ORw0V4wDt3ytidIDj0Dmut92naYoRkMznh0LKuK17Rs,2568
@@ -351,13 +351,13 @@ gr4vy/models/threedsecuremethod.py,sha256=SZYNn4TSu2K_-VE458NaWtNpNZl1Y8WFJFQwMu
351
351
  gr4vy/models/threedsecurestatus.py,sha256=ok7YxtoF76wJY9htTMKVmZqGWwDkVQPdFs3lEoIg9eI,356
352
352
  gr4vy/models/threedsecurev2.py,sha256=tbl7LU6hrQaC-stDPQYXJApr62A2HgJD17YvD06IsnU,2441
353
353
  gr4vy/models/tokenpaymentmethodcreate.py,sha256=vuhZCgZvu9d7U7DAjBN6Bx8tJ29Yx-LCxrmijXaWUj0,2681
354
- gr4vy/models/transaction_output.py,sha256=-DawGogoCY_MMM_jHC__Cc8tsbTr7dlBV3iZGcny7Z4,25123
354
+ gr4vy/models/transaction_output.py,sha256=fYx2NOQIyWWwVGjn8o91vUav1PiAHcfIrJ5KftJa8rk,25413
355
355
  gr4vy/models/transactionbuyer_output.py,sha256=JGUni3lVy6ERIgzFP81RpjMJpfjdc19-O126OMb8QjM,3086
356
356
  gr4vy/models/transactioncancel.py,sha256=KIptVtqlwZmoWhB0XgjJfNJS6u1q9Y8o2OH8Mq-zFWM,3193
357
357
  gr4vy/models/transactioncapture_output.py,sha256=PIMt4SUkooYkZKt5k15Z-CdXHu3RBCL9Uez5RaOqEn4,3217
358
358
  gr4vy/models/transactioncapturecreate.py,sha256=Hs8tTi8iG3xUBptznKHfUD7rvcGZX0OwDzpXOBegd8E,2188
359
359
  gr4vy/models/transactionconnectionoptions.py,sha256=BSfmMz1cKRHuDvM4JAR-3UMCw8deGVJfraSpxj1Vc2I,19587
360
- gr4vy/models/transactioncreate.py,sha256=jOCtjiWbnIYDHyrSFC5LUdpwGosFdJppzLgoz039QM4,27262
360
+ gr4vy/models/transactioncreate.py,sha256=Eahl0eCaG8Jcf7YaTeYtjq4TgX1jJHPRvl1XuRiwAI8,27552
361
361
  gr4vy/models/transactionevent_output.py,sha256=GaG3oyeYnyBaV1zTFgtCrnLj09urSZlziMfjpHpUiwo,3914
362
362
  gr4vy/models/transactionevents.py,sha256=BIzlBBLSuci0j_k_HjJaK1QpKBhuqZkkaq1zbPHG6x0,2254
363
363
  gr4vy/models/transactiongiftcard.py,sha256=E4f_76ezJJdPlW9kIbrXt-PIx2Zgg3bhqPjVzhWdjpM,2329
@@ -416,7 +416,7 @@ gr4vy/reports_sdk.py,sha256=S7SF4TvPf8DEBMjh9flsDBgfM76Nf-GQzQ3950_7aDI,59641
416
416
  gr4vy/sdk.py,sha256=2hfDkFfqPXyFR8w4J0joQrk_5xirotLtFrRYu5glAq4,10519
417
417
  gr4vy/sdkconfiguration.py,sha256=aBQ8gY9aOjf1TL0kSLat8hEIoH4lCE9_PhihyhBpRE4,1985
418
418
  gr4vy/sessions.py,sha256=xuP2ijGiew7R9Ei4HxGSyysPl_dJ6O_TaKLuLPmnxZU,41621
419
- gr4vy/transactions.py,sha256=5F82xS23jGsTWRrSx2kP8ipch-nPEqsv7zwzWVSIt1s,169179
419
+ gr4vy/transactions.py,sha256=pc5jr5y7iY95IbubOSVfBhnuEHg9Kcoeugh7-u1L3cU,169583
420
420
  gr4vy/transactions_refunds.py,sha256=lpOVupveezk8vzXI8CMUIUV2b889wYYvT4kF42KQU-M,43603
421
421
  gr4vy/transactions_settlements.py,sha256=IHzgj9udsM2xA_-bsjGgnKy8Wo4FDqRoHbCipTZR8uw,27758
422
422
  gr4vy/types/__init__.py,sha256=RArOwSgeeTIva6h-4ttjXwMUeCkz10nAFBL9D-QljI4,377
@@ -435,10 +435,10 @@ gr4vy/utils/requestbodies.py,sha256=ySjEyjcLi731LNUahWvLOrES2HihuA8VrOJx4eQ7Qzg,
435
435
  gr4vy/utils/retries.py,sha256=6yhfZifqIat9i76xF0lTR2jLj1IN9BNGyqqxATlEFPU,6348
436
436
  gr4vy/utils/security.py,sha256=VfMDCDFcnxNgffthL8icp_bjRV9FxtJbhK2DgNkSZMk,6016
437
437
  gr4vy/utils/serializers.py,sha256=Hndks5M_rJXVub_N5lu0gKZQUoEmWrn6PN7R-0HwvOE,5999
438
- gr4vy/utils/unmarshal_json_response.py,sha256=H7jxugtMDuagdBXdpGiPf0Vr5-PWLETp8B3AuXWo8Ls,581
438
+ gr4vy/utils/unmarshal_json_response.py,sha256=G4h8gLOK09kjhPiUZjgIMm6zntcbxpvb_mCpMR3mLhQ,870
439
439
  gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
440
440
  gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
441
441
  gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
442
- gr4vy-1.7.12.dist-info/METADATA,sha256=ibCU0YbtXDX_DlC3wFUJZ_oUbbV_ht_V1hjQ4eZwhWc,44093
443
- gr4vy-1.7.12.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
444
- gr4vy-1.7.12.dist-info/RECORD,,
442
+ gr4vy-1.7.15.dist-info/METADATA,sha256=kHNFDNso0s-OVQlkIfweiVcxTJsGg6-4XW3gb2__aA4,44093
443
+ gr4vy-1.7.15.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
444
+ gr4vy-1.7.15.dist-info/RECORD,,
File without changes