gr4vy 1.7.2__py3-none-any.whl → 1.7.4__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 gr4vy might be problematic. Click here for more details.

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.2"
6
+ __version__: str = "1.7.4"
7
7
  __openapi_doc_version__: str = "1.0.0"
8
- __gen_version__: str = "2.739.1"
9
- __user_agent__: str = "speakeasy-sdk/python 1.7.2 2.739.1 1.0.0 gr4vy"
8
+ __gen_version__: str = "2.750.0"
9
+ __user_agent__: str = "speakeasy-sdk/python 1.7.4 2.750.0 1.0.0 gr4vy"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
gr4vy/models/cartitem.py CHANGED
@@ -25,6 +25,8 @@ class CartItemTypedDict(TypedDict):
25
25
  r"""An external identifier for the cart item. This can be set to any value and is not sent to the payment service."""
26
26
  sku: NotRequired[Nullable[str]]
27
27
  r"""The SKU or product code for the item."""
28
+ upc: NotRequired[Nullable[str]]
29
+ r"""The UPC for the item."""
28
30
  product_url: NotRequired[Nullable[str]]
29
31
  r"""The product URL for the item."""
30
32
  image_url: NotRequired[Nullable[str]]
@@ -71,6 +73,9 @@ class CartItem(BaseModel):
71
73
  sku: OptionalNullable[str] = UNSET
72
74
  r"""The SKU or product code for the item."""
73
75
 
76
+ upc: OptionalNullable[str] = UNSET
77
+ r"""The UPC for the item."""
78
+
74
79
  product_url: OptionalNullable[str] = UNSET
75
80
  r"""The product URL for the item."""
76
81
 
@@ -113,6 +118,7 @@ class CartItem(BaseModel):
113
118
  "tax_amount",
114
119
  "external_identifier",
115
120
  "sku",
121
+ "upc",
116
122
  "product_url",
117
123
  "image_url",
118
124
  "categories",
@@ -130,6 +136,7 @@ class CartItem(BaseModel):
130
136
  "tax_amount",
131
137
  "external_identifier",
132
138
  "sku",
139
+ "upc",
133
140
  "product_url",
134
141
  "image_url",
135
142
  "categories",
gr4vy/transactions.py CHANGED
@@ -797,7 +797,9 @@ class Transactions(BaseSDK):
797
797
  :param currency: A supported ISO 4217 currency code. For redirect requests, this value must match the one specified for `currency` in `payment_method`.
798
798
  :param merchant_account_id: The ID of the merchant account to use for this request.
799
799
  :param idempotency_key: A unique key that identifies this request. Providing this header will make this an idempotent request. We recommend using V4 UUIDs, or another random string with enough entropy to avoid collisions.
800
- :param x_forwarded_for: The IP address to forward from the customer. Use this when calling our API from the server side to ensure the customer's address is passed to downstream services, rather than your server IP.
800
+ :param x_forwarded_for: The IP address to forward from the customer. Use this when calling
801
+ our API from the server side to ensure the customer's address is
802
+ passed to downstream services, rather than your server IP.
801
803
  :param country: The 2-letter ISO code of the country where the transaction is processed. This is also used to filter the payment services that can process the transaction. If this value is provided for redirect requests and it's not `null`, it must match the one specified for `country` in `payment_method`. Otherwise, the value specified for `country` in `payment_method` will be assumed implicitly.
802
804
  :param payment_method: The optional payment method to use for this transaction. This field is required if no `gift_cards` have been added.
803
805
  :param buyer: Guest buyer details provided inline rather than creating a buyer resource beforehand and using the `buyer_id` or `buyer_external_identifier` keys. No buyer resource will be created on Gr4vy when used.
@@ -806,10 +808,23 @@ class Transactions(BaseSDK):
806
808
  :param gift_cards: The optional gift card(s) to use for this transaction. At least one gift card is required if no other `payment_method` has been added. By default, only a maximum limit of 10 gift cards may be used in a single transaction. Please contact our team to change this limit.
807
809
  :param external_identifier: An external identifier that can be used to match the transaction against your own records.
808
810
  :param intent:
809
- :param store: Whether or not to also try and store the payment method with us so that it can be used again for future use. This is only supported for payment methods that support this feature. There are also a few restrictions on how the flag may be set: * The flag has to be set to `true` when the `payment_source` is set to `recurring` or `installment`, and `merchant_initiated` is set to `false`. * The flag has to be set to `false` (or not set) when using a previously vaulted payment method.
811
+ :param store: Whether or not to also try and store the payment method with us so that it can be used again for future use. This is only supported for payment methods that support this feature. There are also a few restrictions on how the flag may be set:
812
+
813
+ * The flag has to be set to `true` when the `payment_source` is set to `recurring` or `installment`, and `merchant_initiated` is set to `false`.
814
+ * The flag has to be set to `false` (or not set) when using a previously vaulted payment method.
810
815
  :param three_d_secure_data: Pass through 3-D Secure data to support external 3-D Secure authorisation. If using an external 3-D Secure provider, you should not pass a `redirect_url` in the `payment_method` object for a transaction.
811
816
  :param metadata: Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it.
812
- :param is_subsequent_payment: Indicates whether the transaction represents a subsequent payment coming from a setup recurring payment. Please note there are some restrictions on how this flag may be used. The flag can only be `false` (or not set) when the transaction meets one of the following criteria: * It is not `merchant_initiated`. * `payment_source` is set to `card_on_file`. The flag can only be set to `true` when the transaction meets one of the following criteria: * It is not `merchant_initiated`. * `payment_source` is set to `recurring` or `installment` and `merchant_initiated` is set to `true`. * `payment_source` is set to `card_on_file`.
817
+ :param is_subsequent_payment: Indicates whether the transaction represents a subsequent payment coming from a setup recurring payment. Please note there are some restrictions on how this flag may be used.
818
+
819
+ The flag can only be `false` (or not set) when the transaction meets one of the following criteria:
820
+
821
+ * It is not `merchant_initiated`.
822
+ * `payment_source` is set to `card_on_file`.
823
+
824
+ The flag can only be set to `true` when the transaction meets one of the following criteria:
825
+ * It is not `merchant_initiated`.
826
+ * `payment_source` is set to `recurring` or `installment` and `merchant_initiated` is set to `true`.
827
+ * `payment_source` is set to `card_on_file`.
813
828
  :param merchant_initiated: Indicates whether the transaction was initiated by the merchant (true) or customer (false).
814
829
  :param payment_source: The way payment method information made it to this transaction.
815
830
  :param airline: The airline addendum data which describes the airline booking associated with this transaction.
@@ -819,7 +834,12 @@ class Transactions(BaseSDK):
819
834
  :param browser_info: Information about the browser used by the buyer. This can be used by anti-fraud services.
820
835
  :param shipping_details_id: The unique identifier of a set of shipping details stored for the buyer. If provided, the created transaction will include a copy of the details at the point of transaction creation; i.e. it will not be affected by later changes to the detail in the database.
821
836
  :param connection_options: Allows for passing optional configuration per connection to take advantage of connection specific features. When provided, the data is only passed to the target connection type to prevent sharing configuration across connections. Please note that each of the keys this object are in kebab-case, for example `cybersource-anti-fraud` as they represent the ID of the connector. All the other keys will be snake case, for example `merchant_defined_data` or camel case to match an external API that the connector uses.
822
- :param async_capture: Whether to capture the transaction asynchronously. - When `async_capture` is `false` (default), the transaction is captured in the same request. - When `async_capture` is `true`, the transaction is automatically captured at a later time. Redirect transactions are not affected by this flag. This flag can only be set to `true` when `intent` is set to `capture`.
837
+ :param async_capture: Whether to capture the transaction asynchronously.
838
+
839
+ - When `async_capture` is `false` (default), the transaction is captured in the same request.
840
+ - When `async_capture` is `true`, the transaction is automatically captured at a later time.
841
+
842
+ Redirect transactions are not affected by this flag. This flag can only be set to `true` when `intent` is set to `capture`.
823
843
  :param anti_fraud_fingerprint: This field represents the fingerprint data to be passed to the active anti-fraud service.
824
844
  :param payment_service_id: The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped.
825
845
  :param account_funding_transaction: Marks the transaction as an AFT. Requires the payment service to support this feature, and might `recipient` and `buyer` data
@@ -1114,7 +1134,9 @@ class Transactions(BaseSDK):
1114
1134
  :param currency: A supported ISO 4217 currency code. For redirect requests, this value must match the one specified for `currency` in `payment_method`.
1115
1135
  :param merchant_account_id: The ID of the merchant account to use for this request.
1116
1136
  :param idempotency_key: A unique key that identifies this request. Providing this header will make this an idempotent request. We recommend using V4 UUIDs, or another random string with enough entropy to avoid collisions.
1117
- :param x_forwarded_for: The IP address to forward from the customer. Use this when calling our API from the server side to ensure the customer's address is passed to downstream services, rather than your server IP.
1137
+ :param x_forwarded_for: The IP address to forward from the customer. Use this when calling
1138
+ our API from the server side to ensure the customer's address is
1139
+ passed to downstream services, rather than your server IP.
1118
1140
  :param country: The 2-letter ISO code of the country where the transaction is processed. This is also used to filter the payment services that can process the transaction. If this value is provided for redirect requests and it's not `null`, it must match the one specified for `country` in `payment_method`. Otherwise, the value specified for `country` in `payment_method` will be assumed implicitly.
1119
1141
  :param payment_method: The optional payment method to use for this transaction. This field is required if no `gift_cards` have been added.
1120
1142
  :param buyer: Guest buyer details provided inline rather than creating a buyer resource beforehand and using the `buyer_id` or `buyer_external_identifier` keys. No buyer resource will be created on Gr4vy when used.
@@ -1123,10 +1145,23 @@ class Transactions(BaseSDK):
1123
1145
  :param gift_cards: The optional gift card(s) to use for this transaction. At least one gift card is required if no other `payment_method` has been added. By default, only a maximum limit of 10 gift cards may be used in a single transaction. Please contact our team to change this limit.
1124
1146
  :param external_identifier: An external identifier that can be used to match the transaction against your own records.
1125
1147
  :param intent:
1126
- :param store: Whether or not to also try and store the payment method with us so that it can be used again for future use. This is only supported for payment methods that support this feature. There are also a few restrictions on how the flag may be set: * The flag has to be set to `true` when the `payment_source` is set to `recurring` or `installment`, and `merchant_initiated` is set to `false`. * The flag has to be set to `false` (or not set) when using a previously vaulted payment method.
1148
+ :param store: Whether or not to also try and store the payment method with us so that it can be used again for future use. This is only supported for payment methods that support this feature. There are also a few restrictions on how the flag may be set:
1149
+
1150
+ * The flag has to be set to `true` when the `payment_source` is set to `recurring` or `installment`, and `merchant_initiated` is set to `false`.
1151
+ * The flag has to be set to `false` (or not set) when using a previously vaulted payment method.
1127
1152
  :param three_d_secure_data: Pass through 3-D Secure data to support external 3-D Secure authorisation. If using an external 3-D Secure provider, you should not pass a `redirect_url` in the `payment_method` object for a transaction.
1128
1153
  :param metadata: Any additional information about the transaction that you would like to store as key-value pairs. This data is passed to payment service providers that support it.
1129
- :param is_subsequent_payment: Indicates whether the transaction represents a subsequent payment coming from a setup recurring payment. Please note there are some restrictions on how this flag may be used. The flag can only be `false` (or not set) when the transaction meets one of the following criteria: * It is not `merchant_initiated`. * `payment_source` is set to `card_on_file`. The flag can only be set to `true` when the transaction meets one of the following criteria: * It is not `merchant_initiated`. * `payment_source` is set to `recurring` or `installment` and `merchant_initiated` is set to `true`. * `payment_source` is set to `card_on_file`.
1154
+ :param is_subsequent_payment: Indicates whether the transaction represents a subsequent payment coming from a setup recurring payment. Please note there are some restrictions on how this flag may be used.
1155
+
1156
+ The flag can only be `false` (or not set) when the transaction meets one of the following criteria:
1157
+
1158
+ * It is not `merchant_initiated`.
1159
+ * `payment_source` is set to `card_on_file`.
1160
+
1161
+ The flag can only be set to `true` when the transaction meets one of the following criteria:
1162
+ * It is not `merchant_initiated`.
1163
+ * `payment_source` is set to `recurring` or `installment` and `merchant_initiated` is set to `true`.
1164
+ * `payment_source` is set to `card_on_file`.
1130
1165
  :param merchant_initiated: Indicates whether the transaction was initiated by the merchant (true) or customer (false).
1131
1166
  :param payment_source: The way payment method information made it to this transaction.
1132
1167
  :param airline: The airline addendum data which describes the airline booking associated with this transaction.
@@ -1136,7 +1171,12 @@ class Transactions(BaseSDK):
1136
1171
  :param browser_info: Information about the browser used by the buyer. This can be used by anti-fraud services.
1137
1172
  :param shipping_details_id: The unique identifier of a set of shipping details stored for the buyer. If provided, the created transaction will include a copy of the details at the point of transaction creation; i.e. it will not be affected by later changes to the detail in the database.
1138
1173
  :param connection_options: Allows for passing optional configuration per connection to take advantage of connection specific features. When provided, the data is only passed to the target connection type to prevent sharing configuration across connections. Please note that each of the keys this object are in kebab-case, for example `cybersource-anti-fraud` as they represent the ID of the connector. All the other keys will be snake case, for example `merchant_defined_data` or camel case to match an external API that the connector uses.
1139
- :param async_capture: Whether to capture the transaction asynchronously. - When `async_capture` is `false` (default), the transaction is captured in the same request. - When `async_capture` is `true`, the transaction is automatically captured at a later time. Redirect transactions are not affected by this flag. This flag can only be set to `true` when `intent` is set to `capture`.
1174
+ :param async_capture: Whether to capture the transaction asynchronously.
1175
+
1176
+ - When `async_capture` is `false` (default), the transaction is captured in the same request.
1177
+ - When `async_capture` is `true`, the transaction is automatically captured at a later time.
1178
+
1179
+ Redirect transactions are not affected by this flag. This flag can only be set to `true` when `intent` is set to `capture`.
1140
1180
  :param anti_fraud_fingerprint: This field represents the fingerprint data to be passed to the active anti-fraud service.
1141
1181
  :param payment_service_id: The unique identifier of an existing payment service. When provided, the created transaction will be processed by the given payment service and any routing rules will be skipped.
1142
1182
  :param account_funding_transaction: Marks the transaction as an AFT. Requires the payment service to support this feature, and might `recipient` and `buyer` data
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gr4vy
3
- Version: 1.7.2
3
+ Version: 1.7.4
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=u2w9xm4qx2XJWfUhA0H1U0i8BtcfwcPPGktUQUsV1N4,452
5
+ gr4vy/_version.py,sha256=jZO9X4QEEYSnt9fenKgRKWVGyAcRhUSJ4Ngbvc72u0A,452
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
@@ -91,7 +91,7 @@ gr4vy/models/cardschemedefinition.py,sha256=MgFLopNSUGKdizom3RE8iJlfNk1AjB4YWEZn
91
91
  gr4vy/models/cardschemedefinitions.py,sha256=rFbZPBCYXCXltVYffBpjbck5VHSq44rALhfkaWf-WXw,578
92
92
  gr4vy/models/cardtype.py,sha256=NKubknj2_Bps4G8-TEZC3sOjpeKRGX42R3eXmmyzR2I,299
93
93
  gr4vy/models/cardwithurlpaymentmethodcreate.py,sha256=-wb5hnuwpgpG9PGDIapbHuqYZibKfTojiP1S0DuXL88,3934
94
- gr4vy/models/cartitem.py,sha256=Hii-sbOSu0EaGze0P0GrSvW-Tlu2eeB_s8v_23LUtpM,7830
94
+ gr4vy/models/cartitem.py,sha256=5zyz-nkvAuA3MoXjVfE_OZ0onbgZCxcCuC8TWEbTxqg,8010
95
95
  gr4vy/models/checkoutpayoutoptions.py,sha256=TVvoTLsY4NYo6MJyEDEPZIU7FWodTvo-H-LfGdDiUtY,638
96
96
  gr4vy/models/checkoutsession.py,sha256=pgqhwelO1pWIw4RuYQr1vDmNbk8Yq2E9Ec3wnscOr9Q,5433
97
97
  gr4vy/models/checkoutsessioncreate.py,sha256=HDav30XrLnQLV0VQXs-GZELW2u8qd-A6fXBkQL6CgfU,4323
@@ -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=hJDcDis6LPQH0YKljgtQ7ZQzs4DVHqh2VW7eVBHWGxU,168843
419
+ gr4vy/transactions.py,sha256=5F82xS23jGsTWRrSx2kP8ipch-nPEqsv7zwzWVSIt1s,169179
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
@@ -439,6 +439,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=H7jxugtMDuagdBXdpGiPf0Vr5-PWLETp8B
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.2.dist-info/METADATA,sha256=ZCT9CdeVc0jxL1lgi9O5uhInzVr-Q-sVi6a80Mw3rDI,44092
443
- gr4vy-1.7.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
444
- gr4vy-1.7.2.dist-info/RECORD,,
442
+ gr4vy-1.7.4.dist-info/METADATA,sha256=3QmZkbAEZxa-cLy_NIXZJe9PziotXOlX2XfUOf4Zp6c,44092
443
+ gr4vy-1.7.4.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
444
+ gr4vy-1.7.4.dist-info/RECORD,,
File without changes