gr4vy 1.4.1__py3-none-any.whl → 1.4.3__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.4.1"
6
+ __version__: str = "1.4.3"
7
7
  __openapi_doc_version__: str = "1.0.0"
8
8
  __gen_version__: str = "2.716.16"
9
- __user_agent__: str = "speakeasy-sdk/python 1.4.1 2.716.16 1.0.0 gr4vy"
9
+ __user_agent__: str = "speakeasy-sdk/python 1.4.3 2.716.16 1.0.0 gr4vy"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
gr4vy/models/__init__.py CHANGED
@@ -356,6 +356,16 @@ if TYPE_CHECKING:
356
356
  from .digitalwallets import DigitalWallets, DigitalWalletsTypedDict
357
357
  from .digitalwalletupdate import DigitalWalletUpdate, DigitalWalletUpdateTypedDict
358
358
  from .dlocaloptions import DlocalOptions, DlocalOptionsTypedDict
359
+ from .dlocalupioptions import DlocalUPIOptions, DlocalUPIOptionsTypedDict
360
+ from .dlocalupirecurringinfooptions import (
361
+ DlocalUPIRecurringInfoOptions,
362
+ DlocalUPIRecurringInfoOptionsTypedDict,
363
+ SubscriptionFrequencyUnit,
364
+ )
365
+ from .dlocalupiwalletoptions import (
366
+ DlocalUPIWalletOptions,
367
+ DlocalUPIWalletOptionsTypedDict,
368
+ )
359
369
  from .dlocalwalletoptions import DlocalWalletOptions, DlocalWalletOptionsTypedDict
360
370
  from .errordetail import ErrorDetail, ErrorDetailTypedDict
361
371
  from .errorlocation import ErrorLocation
@@ -1417,6 +1427,12 @@ __all__ = [
1417
1427
  "DigitalWalletsTypedDict",
1418
1428
  "DlocalOptions",
1419
1429
  "DlocalOptionsTypedDict",
1430
+ "DlocalUPIOptions",
1431
+ "DlocalUPIOptionsTypedDict",
1432
+ "DlocalUPIRecurringInfoOptions",
1433
+ "DlocalUPIRecurringInfoOptionsTypedDict",
1434
+ "DlocalUPIWalletOptions",
1435
+ "DlocalUPIWalletOptionsTypedDict",
1420
1436
  "DlocalWalletOptions",
1421
1437
  "DlocalWalletOptionsTypedDict",
1422
1438
  "ErrorDetail",
@@ -1892,6 +1908,7 @@ __all__ = [
1892
1908
  "StripeConnectOptionsTypedDict",
1893
1909
  "StripeOptions",
1894
1910
  "StripeOptionsTypedDict",
1911
+ "SubscriptionFrequencyUnit",
1895
1912
  "SuspendPaymentMethodNetworkTokenGlobals",
1896
1913
  "SuspendPaymentMethodNetworkTokenGlobalsTypedDict",
1897
1914
  "SuspendPaymentMethodNetworkTokenRequest",
@@ -2313,6 +2330,13 @@ _dynamic_imports: dict[str, str] = {
2313
2330
  "DigitalWalletUpdateTypedDict": ".digitalwalletupdate",
2314
2331
  "DlocalOptions": ".dlocaloptions",
2315
2332
  "DlocalOptionsTypedDict": ".dlocaloptions",
2333
+ "DlocalUPIOptions": ".dlocalupioptions",
2334
+ "DlocalUPIOptionsTypedDict": ".dlocalupioptions",
2335
+ "DlocalUPIRecurringInfoOptions": ".dlocalupirecurringinfooptions",
2336
+ "DlocalUPIRecurringInfoOptionsTypedDict": ".dlocalupirecurringinfooptions",
2337
+ "SubscriptionFrequencyUnit": ".dlocalupirecurringinfooptions",
2338
+ "DlocalUPIWalletOptions": ".dlocalupiwalletoptions",
2339
+ "DlocalUPIWalletOptionsTypedDict": ".dlocalupiwalletoptions",
2316
2340
  "DlocalWalletOptions": ".dlocalwalletoptions",
2317
2341
  "DlocalWalletOptionsTypedDict": ".dlocalwalletoptions",
2318
2342
  "ErrorDetail": ".errordetail",
@@ -0,0 +1,50 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .dlocalupiwalletoptions import (
5
+ DlocalUPIWalletOptions,
6
+ DlocalUPIWalletOptionsTypedDict,
7
+ )
8
+ from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
9
+ from pydantic import model_serializer
10
+ from typing_extensions import NotRequired, TypedDict
11
+
12
+
13
+ class DlocalUPIOptionsTypedDict(TypedDict):
14
+ wallet: NotRequired[Nullable[DlocalUPIWalletOptionsTypedDict]]
15
+ r"""Passes `wallet` data to the dLocal API for those connectors that need it."""
16
+
17
+
18
+ class DlocalUPIOptions(BaseModel):
19
+ wallet: OptionalNullable[DlocalUPIWalletOptions] = UNSET
20
+ r"""Passes `wallet` data to the dLocal API for those connectors that need it."""
21
+
22
+ @model_serializer(mode="wrap")
23
+ def serialize_model(self, handler):
24
+ optional_fields = ["wallet"]
25
+ nullable_fields = ["wallet"]
26
+ null_default_fields = []
27
+
28
+ serialized = handler(self)
29
+
30
+ m = {}
31
+
32
+ for n, f in type(self).model_fields.items():
33
+ k = f.alias or n
34
+ val = serialized.get(k)
35
+ serialized.pop(k, None)
36
+
37
+ optional_nullable = k in optional_fields and k in nullable_fields
38
+ is_set = (
39
+ self.__pydantic_fields_set__.intersection({n})
40
+ or k in null_default_fields
41
+ ) # pylint: disable=no-member
42
+
43
+ if val is not None and val != UNSET_SENTINEL:
44
+ m[k] = val
45
+ elif val != UNSET_SENTINEL and (
46
+ not k in optional_fields or (optional_nullable and is_set)
47
+ ):
48
+ m[k] = val
49
+
50
+ return m
@@ -0,0 +1,49 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from gr4vy.types import BaseModel, UnrecognizedStr
5
+ from gr4vy.utils import validate_open_enum
6
+ from pydantic.functional_validators import PlainValidator
7
+ from typing import Literal, Union
8
+ from typing_extensions import Annotated, TypedDict
9
+
10
+
11
+ SubscriptionFrequencyUnit = Union[
12
+ Literal[
13
+ "DAILY",
14
+ "WEEKLY",
15
+ "MONTHLY",
16
+ "QUARTERLY",
17
+ "SEMI_ANNUAL",
18
+ "ANNUAL",
19
+ ],
20
+ UnrecognizedStr,
21
+ ]
22
+ r"""Indicates the frequency unit for the subscription. Allowed values are: `DAILY`, `WEEKLY`, `MONTHLY`, `QUARTERLY`, `SEMI_ANNUAL`, and `ANNUAL`."""
23
+
24
+
25
+ class DlocalUPIRecurringInfoOptionsTypedDict(TypedDict):
26
+ subscription_frequency_unit: SubscriptionFrequencyUnit
27
+ r"""Indicates the frequency unit for the subscription. Allowed values are: `DAILY`, `WEEKLY`, `MONTHLY`, `QUARTERLY`, `SEMI_ANNUAL`, and `ANNUAL`."""
28
+ subscription_frequency: int
29
+ r"""Indicates the frequency for the subscription."""
30
+ subscription_start_at: str
31
+ r"""Indicates the start date for the subscription in format `YYYYMMDD`."""
32
+ subscription_end_at: str
33
+ r"""Indicates the end date for the subscription in format `YYYYMMDD`."""
34
+
35
+
36
+ class DlocalUPIRecurringInfoOptions(BaseModel):
37
+ subscription_frequency_unit: Annotated[
38
+ SubscriptionFrequencyUnit, PlainValidator(validate_open_enum(False))
39
+ ]
40
+ r"""Indicates the frequency unit for the subscription. Allowed values are: `DAILY`, `WEEKLY`, `MONTHLY`, `QUARTERLY`, `SEMI_ANNUAL`, and `ANNUAL`."""
41
+
42
+ subscription_frequency: int
43
+ r"""Indicates the frequency for the subscription."""
44
+
45
+ subscription_start_at: str
46
+ r"""Indicates the start date for the subscription in format `YYYYMMDD`."""
47
+
48
+ subscription_end_at: str
49
+ r"""Indicates the end date for the subscription in format `YYYYMMDD`."""
@@ -0,0 +1,89 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .dlocalupirecurringinfooptions import (
5
+ DlocalUPIRecurringInfoOptions,
6
+ DlocalUPIRecurringInfoOptionsTypedDict,
7
+ )
8
+ from gr4vy.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTINEL
9
+ from pydantic import model_serializer
10
+ from typing_extensions import NotRequired, TypedDict
11
+
12
+
13
+ class DlocalUPIWalletOptionsTypedDict(TypedDict):
14
+ name: NotRequired[Nullable[str]]
15
+ r"""Passes `wallet.name` to the dLocal API for those connectors that need it."""
16
+ email: NotRequired[Nullable[str]]
17
+ r"""Passes `wallet.email` to the dLocal API for those connectors that need it."""
18
+ token: NotRequired[Nullable[str]]
19
+ r"""Passes `wallet.token` to the dLocal API for those connectors that need it."""
20
+ username: NotRequired[Nullable[str]]
21
+ r"""Passes `wallet.username` to the dLocal API for those connectors that need it."""
22
+ verify: NotRequired[Nullable[bool]]
23
+ r"""Passes `wallet.verify` to the dLocal API for those connectors that need it."""
24
+ recurring_info: NotRequired[Nullable[DlocalUPIRecurringInfoOptionsTypedDict]]
25
+ r"""Passes `wallet.recurring_info` to the dLocal API for those connectors that need it."""
26
+
27
+
28
+ class DlocalUPIWalletOptions(BaseModel):
29
+ name: OptionalNullable[str] = UNSET
30
+ r"""Passes `wallet.name` to the dLocal API for those connectors that need it."""
31
+
32
+ email: OptionalNullable[str] = UNSET
33
+ r"""Passes `wallet.email` to the dLocal API for those connectors that need it."""
34
+
35
+ token: OptionalNullable[str] = UNSET
36
+ r"""Passes `wallet.token` to the dLocal API for those connectors that need it."""
37
+
38
+ username: OptionalNullable[str] = UNSET
39
+ r"""Passes `wallet.username` to the dLocal API for those connectors that need it."""
40
+
41
+ verify: OptionalNullable[bool] = UNSET
42
+ r"""Passes `wallet.verify` to the dLocal API for those connectors that need it."""
43
+
44
+ recurring_info: OptionalNullable[DlocalUPIRecurringInfoOptions] = UNSET
45
+ r"""Passes `wallet.recurring_info` to the dLocal API for those connectors that need it."""
46
+
47
+ @model_serializer(mode="wrap")
48
+ def serialize_model(self, handler):
49
+ optional_fields = [
50
+ "name",
51
+ "email",
52
+ "token",
53
+ "username",
54
+ "verify",
55
+ "recurring_info",
56
+ ]
57
+ nullable_fields = [
58
+ "name",
59
+ "email",
60
+ "token",
61
+ "username",
62
+ "verify",
63
+ "recurring_info",
64
+ ]
65
+ null_default_fields = []
66
+
67
+ serialized = handler(self)
68
+
69
+ m = {}
70
+
71
+ for n, f in type(self).model_fields.items():
72
+ k = f.alias or n
73
+ val = serialized.get(k)
74
+ serialized.pop(k, None)
75
+
76
+ optional_nullable = k in optional_fields and k in nullable_fields
77
+ is_set = (
78
+ self.__pydantic_fields_set__.intersection({n})
79
+ or k in null_default_fields
80
+ ) # pylint: disable=no-member
81
+
82
+ if val is not None and val != UNSET_SENTINEL:
83
+ m[k] = val
84
+ elif val != UNSET_SENTINEL and (
85
+ not k in optional_fields or (optional_nullable and is_set)
86
+ ):
87
+ m[k] = val
88
+
89
+ return m
@@ -13,6 +13,7 @@ from .cybersourceantifraudoptions import (
13
13
  )
14
14
  from .cybersourceoptions import CybersourceOptions, CybersourceOptionsTypedDict
15
15
  from .dlocaloptions import DlocalOptions, DlocalOptionsTypedDict
16
+ from .dlocalupioptions import DlocalUPIOptions, DlocalUPIOptionsTypedDict
16
17
  from .fiservoptions import FiservOptions, FiservOptionsTypedDict
17
18
  from .forterantifraudoptions import (
18
19
  ForterAntiFraudOptions,
@@ -73,6 +74,8 @@ class TransactionConnectionOptionsTypedDict(TypedDict):
73
74
  r"""Custom options to be passed to the `cybersource-kcp` connector."""
74
75
  dlocal_nequi: NotRequired[Nullable[DlocalOptionsTypedDict]]
75
76
  r"""Custom options to be passed to the `dlocal-nequi` connector."""
77
+ dlocal_upi: NotRequired[Nullable[DlocalUPIOptionsTypedDict]]
78
+ r"""Custom options to be passed to the `dlocal-upi` connector."""
76
79
  fiserv_card: NotRequired[Nullable[FiservOptionsTypedDict]]
77
80
  r"""Custom options to be passed to the `fiserv-card` connector."""
78
81
  forter_anti_fraud: NotRequired[Nullable[ForterAntiFraudOptionsTypedDict]]
@@ -204,6 +207,11 @@ class TransactionConnectionOptions(BaseModel):
204
207
  ] = UNSET
205
208
  r"""Custom options to be passed to the `dlocal-nequi` connector."""
206
209
 
210
+ dlocal_upi: Annotated[
211
+ OptionalNullable[DlocalUPIOptions], pydantic.Field(alias="dlocal-upi")
212
+ ] = UNSET
213
+ r"""Custom options to be passed to the `dlocal-upi` connector."""
214
+
207
215
  fiserv_card: Annotated[
208
216
  OptionalNullable[FiservOptions], pydantic.Field(alias="fiserv-card")
209
217
  ] = UNSET
@@ -333,6 +341,7 @@ class TransactionConnectionOptions(BaseModel):
333
341
  "cybersource-ideal",
334
342
  "cybersource-kcp",
335
343
  "dlocal-nequi",
344
+ "dlocal-upi",
336
345
  "fiserv-card",
337
346
  "forter-anti-fraud",
338
347
  "gem-gem",
@@ -373,6 +382,7 @@ class TransactionConnectionOptions(BaseModel):
373
382
  "cybersource-ideal",
374
383
  "cybersource-kcp",
375
384
  "dlocal-nequi",
385
+ "dlocal-upi",
376
386
  "fiserv-card",
377
387
  "forter-anti-fraud",
378
388
  "gem-gem",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gr4vy
3
- Version: 1.4.1
3
+ Version: 1.4.3
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=zwGLAodOjzCigAUjs4BMF3DzU8T2HBfQhZFSTDIUevY,454
5
+ gr4vy/_version.py,sha256=UeirjuM68LkOKAaczZNiry1s0Deyx93WfvjuRaDLzUs,454
6
6
  gr4vy/account_updater.py,sha256=mmTd25Oap80PBqQ3p4MvZ_buT5VS0zWc8s8cqfI7iyA,607
7
7
  gr4vy/all.py,sha256=WwnLoNn3RgXNpf4Xoz12ct94JD7NMpLz-kzesHHh4m8,15172
8
8
  gr4vy/audit_logs.py,sha256=duh_c9mO8vIcpCnB-c77EYn1tkuCp1cRT6a7l0VdZqc,17083
@@ -40,7 +40,7 @@ gr4vy/gift_cards_sdk.py,sha256=vAyP-0LNSYKvgLQ0k6QQ-cj-cW2NN7cu2ekj5b3zJkI,57411
40
40
  gr4vy/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
41
41
  gr4vy/jobs.py,sha256=WHx0epnlxOMHFSXTJPwuI5dhOO_acGTX72Lbz6fvD8A,14565
42
42
  gr4vy/merchant_accounts_sdk.py,sha256=itqNYsJi_j9qGVSRvfbP1gYjbLbOIpy-6qRWhrqofOk,82247
43
- gr4vy/models/__init__.py,sha256=CCgk3x_8oePwtAqIEBGvqE6EFl9EvOF9-zNQmSUOqfo,131595
43
+ gr4vy/models/__init__.py,sha256=K7xzIGRRblZQ5ZJgGDE-8j-iA6yWdRGvb67g55cANoA,132653
44
44
  gr4vy/models/accountsreceivablesreportspec.py,sha256=X4YKJ5TII4KFi1I47BYt1Egxsfs84EaqXsb7g90IpLw,1012
45
45
  gr4vy/models/accountupdaterinquirysummary.py,sha256=rOJn5uG7cNFUkd6BbsAve6ueUlAJzU5_d_zeDu6RBTg,1097
46
46
  gr4vy/models/accountupdaterjob.py,sha256=JKuRwrc5yYSAQ9lD5Ta4MALtfXBF7tn_37lllQsH2B0,1972
@@ -148,6 +148,9 @@ gr4vy/models/digitalwalletprovider.py,sha256=pR-U_3K1Dc0yDf_5yLlJnrQNk9ouW1g6oD6
148
148
  gr4vy/models/digitalwallets.py,sha256=SFR6JzoW3TOatmjsIS0S3Z0CeDv0PpjCVAqlnDntQOg,529
149
149
  gr4vy/models/digitalwalletupdate.py,sha256=FKktsXy6qXQAZ1DFgUXQNG8Itkh_m_p42BE_JQe95uc,2274
150
150
  gr4vy/models/dlocaloptions.py,sha256=F4kT1ajx4VpqwJ6emXS1tuo5JdngpiWTjyFUYhmgt7o,1644
151
+ gr4vy/models/dlocalupioptions.py,sha256=OtDSo2_wnFi3nBQeR2VdMuMlJD3TrVKgAE4NuN-1ZzE,1678
152
+ gr4vy/models/dlocalupirecurringinfooptions.py,sha256=zVY7-fvXsHToVsNjoxWn1zJf3t-OAplAhVG0MY-ghkw,1907
153
+ gr4vy/models/dlocalupiwalletoptions.py,sha256=tD7DRPWPch8J70bw10Flb1ANRCOlsXVQI8j8gxgNySo,3313
151
154
  gr4vy/models/dlocalwalletoptions.py,sha256=Sl-33dTg3s9un9P9CT7gJmqvMlKilsuLsTPLgJFwD60,2630
152
155
  gr4vy/models/errordetail.py,sha256=51ElDd0o-b-S0qVIICvT8bShPfC8r1dvpqFtav79Ki4,1009
153
156
  gr4vy/models/errorlocation.py,sha256=gj81USXXcU1lDoDGgY4r9CFXuyfaSP3xrxF4FVZqb8E,336
@@ -346,7 +349,7 @@ gr4vy/models/transactionbuyer.py,sha256=7VxBYmR7IBNA082NqCCdwWtOjyK9ut5dPS4M-6rV
346
349
  gr4vy/models/transactioncancel.py,sha256=OHP0xmmM374aaYXPeV0G2fZn5RRfxbTAzJnNospfCas,3162
347
350
  gr4vy/models/transactioncapture.py,sha256=7WD3uoUyDJ1sejtjIb7b5B5BFtpKEi7KkegVtB0DLTg,3174
348
351
  gr4vy/models/transactioncapturecreate.py,sha256=Hs8tTi8iG3xUBptznKHfUD7rvcGZX0OwDzpXOBegd8E,2188
349
- gr4vy/models/transactionconnectionoptions.py,sha256=8bXN4Vkj3yviZzhXjkPoz-rJkFgSYn3kgARJ85yuGh0,18671
352
+ gr4vy/models/transactionconnectionoptions.py,sha256=w0hd7aV9Byy8BrN8qhSbygoiafOzX3A8q9tMZ95WMTI,19123
350
353
  gr4vy/models/transactioncreate.py,sha256=nrS_YJpqNaa-Om-8AnXzSOG_wKNp0TH79umQwE1fXXE,26445
351
354
  gr4vy/models/transactionevent.py,sha256=rZm6VX53piqFWSMMP1rLsRqV2rw6_5J7BHrUt4Nfh2M,3871
352
355
  gr4vy/models/transactionevents.py,sha256=5l2Yc69SMePDlFtcby4i3BxGBkbT62SWQf4X5Xvfypw,2210
@@ -429,6 +432,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=H7jxugtMDuagdBXdpGiPf0Vr5-PWLETp8B
429
432
  gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
430
433
  gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
431
434
  gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
432
- gr4vy-1.4.1.dist-info/METADATA,sha256=GzEbEmbohQmj2q-_0CNZtEExMqrNmPILGWJ46gIk6Xo,44202
433
- gr4vy-1.4.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
434
- gr4vy-1.4.1.dist-info/RECORD,,
435
+ gr4vy-1.4.3.dist-info/METADATA,sha256=qBOM3FsokydasrbkG17UKfq48i1kt0uYchNj12W8bDk,44202
436
+ gr4vy-1.4.3.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
437
+ gr4vy-1.4.3.dist-info/RECORD,,
File without changes