gr4vy 1.7.16__py3-none-any.whl → 1.8.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.
Files changed (47) hide show
  1. gr4vy/_version.py +3 -3
  2. gr4vy/buyers_sdk.py +8 -8
  3. gr4vy/checkout_sessions.py +4 -4
  4. gr4vy/models/__init__.py +92 -113
  5. gr4vy/models/auditlogentries.py +3 -3
  6. gr4vy/models/{auditlogentry_output.py → auditlogentry.py} +2 -2
  7. gr4vy/models/{billingdetails_input.py → billingdetails.py} +2 -2
  8. gr4vy/models/buyer.py +3 -3
  9. gr4vy/models/buyercreate.py +3 -3
  10. gr4vy/models/buyerupdate.py +3 -3
  11. gr4vy/models/capture_transactionop.py +23 -10
  12. gr4vy/models/checkoutsession.py +8 -8
  13. gr4vy/models/checkoutsessioncreate.py +3 -3
  14. gr4vy/models/{checkoutsessionpaymentmethod_output.py → checkoutsessionpaymentmethod.py} +2 -2
  15. gr4vy/models/cybersourceoptions.py +7 -0
  16. gr4vy/models/{guestbuyer_input.py → guestbuyer.py} +5 -5
  17. gr4vy/models/paymentlink.py +3 -6
  18. gr4vy/models/paymentlinkcreate.py +3 -3
  19. gr4vy/models/paymentmethodsummaries.py +3 -6
  20. gr4vy/models/{paymentmethodsummary_output.py → paymentmethodsummary.py} +2 -2
  21. gr4vy/models/{paymentoption_output.py → paymentoption.py} +2 -2
  22. gr4vy/models/paymentoptions.py +3 -3
  23. gr4vy/models/payoutcreate.py +3 -3
  24. gr4vy/models/payoutsummary.py +8 -11
  25. gr4vy/models/{transaction_output.py → transaction.py} +15 -18
  26. gr4vy/models/{transactionbuyer_output.py → transactionbuyer.py} +5 -5
  27. gr4vy/models/transactioncancel.py +3 -3
  28. gr4vy/models/{transactioncapture_output.py → transactioncapture.py} +5 -5
  29. gr4vy/models/transactioncreate.py +3 -3
  30. gr4vy/models/{transactionevent_output.py → transactionevent.py} +9 -5
  31. gr4vy/models/transactioneventcontext.py +32 -0
  32. gr4vy/models/transactionevents.py +3 -6
  33. gr4vy/models/{transactionpaymentmethod_output.py → transactionpaymentmethod.py} +2 -2
  34. gr4vy/models/transactionsummaries.py +3 -6
  35. gr4vy/models/{transactionsummary_output.py → transactionsummary.py} +10 -13
  36. gr4vy/models/{transactionthreedsecuresummary_output.py → transactionthreedsecuresummary.py} +2 -2
  37. gr4vy/models/{transactionvoid_output.py → transactionvoid.py} +5 -5
  38. gr4vy/models/void_transactionop.py +28 -11
  39. gr4vy/payment_links_sdk.py +4 -4
  40. gr4vy/payouts.py +4 -4
  41. gr4vy/transactions.py +20 -20
  42. gr4vy/utils/retries.py +69 -5
  43. {gr4vy-1.7.16.dist-info → gr4vy-1.8.0.dist-info}/METADATA +1 -1
  44. {gr4vy-1.7.16.dist-info → gr4vy-1.8.0.dist-info}/RECORD +45 -46
  45. gr4vy/models/billingdetails_output.py +0 -87
  46. gr4vy/models/guestbuyer_output.py +0 -80
  47. {gr4vy-1.7.16.dist-info → gr4vy-1.8.0.dist-info}/WHEEL +0 -0
@@ -1,80 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from .billingdetails_output import BillingDetailsOutput, BillingDetailsOutputTypedDict
5
- from .shippingdetailscreate import ShippingDetailsCreate, ShippingDetailsCreateTypedDict
6
- from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
7
- from pydantic import model_serializer
8
- from typing_extensions import NotRequired, TypedDict
9
-
10
-
11
- class GuestBuyerOutputTypedDict(TypedDict):
12
- display_name: NotRequired[Nullable[str]]
13
- r"""The display name for the buyer."""
14
- external_identifier: NotRequired[Nullable[str]]
15
- r"""The merchant identifier for this buyer."""
16
- billing_details: NotRequired[Nullable[BillingDetailsOutputTypedDict]]
17
- r"""The billing name, address, email, and other fields for this buyer."""
18
- account_number: NotRequired[Nullable[str]]
19
- r"""The buyer account number"""
20
- shipping_details: NotRequired[Nullable[ShippingDetailsCreateTypedDict]]
21
- r"""The optional shipping details for this buyer."""
22
-
23
-
24
- class GuestBuyerOutput(BaseModel):
25
- display_name: OptionalNullable[str] = UNSET
26
- r"""The display name for the buyer."""
27
-
28
- external_identifier: OptionalNullable[str] = UNSET
29
- r"""The merchant identifier for this buyer."""
30
-
31
- billing_details: OptionalNullable[BillingDetailsOutput] = UNSET
32
- r"""The billing name, address, email, and other fields for this buyer."""
33
-
34
- account_number: OptionalNullable[str] = UNSET
35
- r"""The buyer account number"""
36
-
37
- shipping_details: OptionalNullable[ShippingDetailsCreate] = UNSET
38
- r"""The optional shipping details for this buyer."""
39
-
40
- @model_serializer(mode="wrap")
41
- def serialize_model(self, handler):
42
- optional_fields = [
43
- "display_name",
44
- "external_identifier",
45
- "billing_details",
46
- "account_number",
47
- "shipping_details",
48
- ]
49
- nullable_fields = [
50
- "display_name",
51
- "external_identifier",
52
- "billing_details",
53
- "account_number",
54
- "shipping_details",
55
- ]
56
- null_default_fields = []
57
-
58
- serialized = handler(self)
59
-
60
- m = {}
61
-
62
- for n, f in type(self).model_fields.items():
63
- k = f.alias or n
64
- val = serialized.get(k)
65
- serialized.pop(k, None)
66
-
67
- optional_nullable = k in optional_fields and k in nullable_fields
68
- is_set = (
69
- self.__pydantic_fields_set__.intersection({n})
70
- or k in null_default_fields
71
- ) # pylint: disable=no-member
72
-
73
- if val is not None and val != UNSET_SENTINEL:
74
- m[k] = val
75
- elif val != UNSET_SENTINEL and (
76
- not k in optional_fields or (optional_nullable and is_set)
77
- ):
78
- m[k] = val
79
-
80
- return m
File without changes