gr4vy 1.2.1__py3-none-any.whl → 1.2.2__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.2.1"
6
+ __version__: str = "1.2.2"
7
7
  __openapi_doc_version__: str = "1.0.0"
8
- __gen_version__: str = "2.687.13"
9
- __user_agent__: str = "speakeasy-sdk/python 1.2.1 2.687.13 1.0.0 gr4vy"
8
+ __gen_version__: str = "2.690.1"
9
+ __user_agent__: str = "speakeasy-sdk/python 1.2.2 2.690.1 1.0.0 gr4vy"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -15,21 +15,21 @@ class SettlementTypedDict(TypedDict):
15
15
  r"""A settlement record for a transaction."""
16
16
 
17
17
  id: str
18
- r"""The unique identifier for the settlement."""
18
+ r"""The unique identifier for the record."""
19
19
  merchant_account_id: str
20
- r"""The merchant account this settlement belongs to."""
20
+ r"""The merchant account this record belongs to."""
21
21
  created_at: datetime
22
- r"""The date and time the settlement was created, in ISO 8601 format."""
22
+ r"""The date and time the record was created, in ISO 8601 format."""
23
23
  updated_at: datetime
24
- r"""The date and time the settlement was last updated, in ISO 8601 format."""
24
+ r"""The date and time the record was last updated, in ISO 8601 format."""
25
25
  posted_at: datetime
26
- r"""The date and time the settlement was posted, in ISO 8601 format."""
26
+ r"""The date and time the record was posted, in ISO 8601 format."""
27
27
  ingested_at: datetime
28
- r"""The date and time the settlement was ingested, in ISO 8601 format."""
28
+ r"""The date and time the record was ingested, in ISO 8601 format."""
29
29
  currency: str
30
- r"""ISO 4217 currency code for the settlement."""
30
+ r"""ISO 4217 currency code."""
31
31
  amount: int
32
- r"""The total settled amount in the smallest currency unit (e.g. cents)."""
32
+ r"""The total amount in the smallest currency unit (e.g. cents)."""
33
33
  commission: int
34
34
  r"""The commission amount deducted in the smallest currency unit."""
35
35
  payment_service_report_id: str
@@ -37,45 +37,45 @@ class SettlementTypedDict(TypedDict):
37
37
  payment_service_report_file_ids: List[str]
38
38
  r"""List of file IDs for the payment service report."""
39
39
  transaction_id: str
40
- r"""The transaction this settlement is associated with."""
41
- type: Literal["settlement"]
42
- r"""Always 'settlement'."""
40
+ r"""The transaction this record is associated with."""
43
41
  exchange_rate: NotRequired[Nullable[float]]
44
- r"""The exchange rate used for settlement, if applicable."""
42
+ r"""The exchange rate, if applicable."""
45
43
  interchange: NotRequired[Nullable[int]]
46
44
  r"""The interchange fee, if applicable, in the smallest currency unit."""
47
45
  markup: NotRequired[Nullable[int]]
48
46
  r"""The markup fee, if applicable, in the smallest currency unit."""
49
47
  scheme_fee: NotRequired[Nullable[int]]
50
48
  r"""The scheme fee, if applicable, in the smallest currency unit."""
49
+ type: Literal["settlement"]
50
+ r"""Always `settlement`."""
51
51
 
52
52
 
53
53
  class Settlement(BaseModel):
54
54
  r"""A settlement record for a transaction."""
55
55
 
56
56
  id: str
57
- r"""The unique identifier for the settlement."""
57
+ r"""The unique identifier for the record."""
58
58
 
59
59
  merchant_account_id: str
60
- r"""The merchant account this settlement belongs to."""
60
+ r"""The merchant account this record belongs to."""
61
61
 
62
62
  created_at: datetime
63
- r"""The date and time the settlement was created, in ISO 8601 format."""
63
+ r"""The date and time the record was created, in ISO 8601 format."""
64
64
 
65
65
  updated_at: datetime
66
- r"""The date and time the settlement was last updated, in ISO 8601 format."""
66
+ r"""The date and time the record was last updated, in ISO 8601 format."""
67
67
 
68
68
  posted_at: datetime
69
- r"""The date and time the settlement was posted, in ISO 8601 format."""
69
+ r"""The date and time the record was posted, in ISO 8601 format."""
70
70
 
71
71
  ingested_at: datetime
72
- r"""The date and time the settlement was ingested, in ISO 8601 format."""
72
+ r"""The date and time the record was ingested, in ISO 8601 format."""
73
73
 
74
74
  currency: str
75
- r"""ISO 4217 currency code for the settlement."""
75
+ r"""ISO 4217 currency code."""
76
76
 
77
77
  amount: int
78
- r"""The total settled amount in the smallest currency unit (e.g. cents)."""
78
+ r"""The total amount in the smallest currency unit (e.g. cents)."""
79
79
 
80
80
  commission: int
81
81
  r"""The commission amount deducted in the smallest currency unit."""
@@ -87,19 +87,10 @@ class Settlement(BaseModel):
87
87
  r"""List of file IDs for the payment service report."""
88
88
 
89
89
  transaction_id: str
90
- r"""The transaction this settlement is associated with."""
91
-
92
- TYPE: Annotated[
93
- Annotated[
94
- Optional[Literal["settlement"]],
95
- AfterValidator(validate_const("settlement")),
96
- ],
97
- pydantic.Field(alias="type"),
98
- ] = "settlement"
99
- r"""Always 'settlement'."""
90
+ r"""The transaction this record is associated with."""
100
91
 
101
92
  exchange_rate: OptionalNullable[float] = UNSET
102
- r"""The exchange rate used for settlement, if applicable."""
93
+ r"""The exchange rate, if applicable."""
103
94
 
104
95
  interchange: OptionalNullable[int] = UNSET
105
96
  r"""The interchange fee, if applicable, in the smallest currency unit."""
@@ -110,14 +101,23 @@ class Settlement(BaseModel):
110
101
  scheme_fee: OptionalNullable[int] = UNSET
111
102
  r"""The scheme fee, if applicable, in the smallest currency unit."""
112
103
 
104
+ TYPE: Annotated[
105
+ Annotated[
106
+ Optional[Literal["settlement"]],
107
+ AfterValidator(validate_const("settlement")),
108
+ ],
109
+ pydantic.Field(alias="type"),
110
+ ] = "settlement"
111
+ r"""Always `settlement`."""
112
+
113
113
  @model_serializer(mode="wrap")
114
114
  def serialize_model(self, handler):
115
115
  optional_fields = [
116
- "type",
117
116
  "exchange_rate",
118
117
  "interchange",
119
118
  "markup",
120
119
  "scheme_fee",
120
+ "type",
121
121
  ]
122
122
  nullable_fields = ["exchange_rate", "interchange", "markup", "scheme_fee"]
123
123
  null_default_fields = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: gr4vy
3
- Version: 1.2.1
3
+ Version: 1.2.2
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=0Q5aJfrq4vdvm26lVeB8tBL7QnhfGozo5pDdx6FvyDw,454
5
+ gr4vy/_version.py,sha256=1PXL4xfjvKcQIDw8HUHJXyk79dyw76m9IuhDRT8GXqw,452
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=iAT3rnS0NYNKZGw5IVl_MC_RPAHMJNXHfd_K--HIplU,17015
@@ -320,7 +320,7 @@ gr4vy/models/reportupdate.py,sha256=avZcDLpG6g8FZEhkROx-fT5bnIvq26BwCsER7ccmxus,
320
320
  gr4vy/models/requiredcheckoutfields.py,sha256=q9AP5V2Mi8pootJrj7D7G6rlbHAF88hg8vFmbxVDMZk,2014
321
321
  gr4vy/models/resume_payment_method_network_tokenop.py,sha256=fEj0C5bRWdD4dcKrP3UBhVZSAEw0OHt7hIVty3Iv05I,1805
322
322
  gr4vy/models/security.py,sha256=CEV57O-yGWAtzFS162Alfz7G7ynjZ7IlMqRVS2-WuCY,686
323
- gr4vy/models/settlement.py,sha256=hdiTNvc0r6TEVTq5sK5x4gRPtE-_ClnDTUsrV9CMooY,5212
323
+ gr4vy/models/settlement.py,sha256=lIhUscb8msUNNt_lRo5J2vjgYyJK06NjYO77ovcBm8w,5062
324
324
  gr4vy/models/settlements.py,sha256=BPx0p-RPNcKtdENaODUdntF0GVjx3AkjKY1uoY30pL8,606
325
325
  gr4vy/models/shippingdetails.py,sha256=FznfE48itPT1wt7VSAnYMtimwhJBgIAJUzWqtM-sGM4,3599
326
326
  gr4vy/models/shippingdetailscreate.py,sha256=SE9gvHGoN7OnKWa52QFPwVmkfJzJMZjT_aJbSTkfOM0,2686
@@ -428,6 +428,6 @@ gr4vy/utils/unmarshal_json_response.py,sha256=H7jxugtMDuagdBXdpGiPf0Vr5-PWLETp8B
428
428
  gr4vy/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
429
429
  gr4vy/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
430
430
  gr4vy/webhooks.py,sha256=2L-ZhdK-XU2X0AkVqgZvhfRqDCKUVs7R4UNCmZJR78w,1359
431
- gr4vy-1.2.1.dist-info/METADATA,sha256=rvmcxWyYQqU6E5aJY1vccqymw5G-66VikOo49Pl6TYA,44151
432
- gr4vy-1.2.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
433
- gr4vy-1.2.1.dist-info/RECORD,,
431
+ gr4vy-1.2.2.dist-info/METADATA,sha256=stMKI05oD-e35f_q5LtbhO_7x2iY6eWa-M_FHpDGOTQ,44151
432
+ gr4vy-1.2.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
433
+ gr4vy-1.2.2.dist-info/RECORD,,
File without changes