22
33from __future__ import annotations
44
5- from typing import Optional
5+ from typing import Union , Optional
6+ from datetime import datetime
67
78import httpx
89
@@ -71,6 +72,10 @@ def list(
7172 * ,
7273 currency : Optional [str ] | Omit = omit ,
7374 cursor : Optional [str ] | Omit = omit ,
75+ effective_date_gt : Union [str , datetime , None ] | Omit = omit ,
76+ effective_date_gte : Union [str , datetime , None ] | Omit = omit ,
77+ effective_date_lt : Union [str , datetime , None ] | Omit = omit ,
78+ effective_date_lte : Union [str , datetime , None ] | Omit = omit ,
7479 include_all_blocks : bool | Omit = omit ,
7580 limit : int | Omit = omit ,
7681 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -89,6 +94,11 @@ def list(
8994 Note that `currency` defaults to credits if not specified. To use a real world
9095 currency, set `currency` to an ISO 4217 string.
9196
97+ Results can be filtered by the block's `effective_date` using the
98+ `effective_date[gte]`, `effective_date[gt]`, `effective_date[lt]`, and
99+ `effective_date[lte]` query parameters. This filters on when the credit block
100+ becomes effective, which may differ from creation time for backdated credits.
101+
92102 Args:
93103 currency: The ledger currency or custom pricing unit to use.
94104
@@ -122,6 +132,10 @@ def list(
122132 {
123133 "currency" : currency ,
124134 "cursor" : cursor ,
135+ "effective_date_gt" : effective_date_gt ,
136+ "effective_date_gte" : effective_date_gte ,
137+ "effective_date_lt" : effective_date_lt ,
138+ "effective_date_lte" : effective_date_lte ,
125139 "include_all_blocks" : include_all_blocks ,
126140 "limit" : limit ,
127141 },
@@ -137,6 +151,10 @@ def list_by_external_id(
137151 * ,
138152 currency : Optional [str ] | Omit = omit ,
139153 cursor : Optional [str ] | Omit = omit ,
154+ effective_date_gt : Union [str , datetime , None ] | Omit = omit ,
155+ effective_date_gte : Union [str , datetime , None ] | Omit = omit ,
156+ effective_date_lt : Union [str , datetime , None ] | Omit = omit ,
157+ effective_date_lte : Union [str , datetime , None ] | Omit = omit ,
140158 include_all_blocks : bool | Omit = omit ,
141159 limit : int | Omit = omit ,
142160 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -155,6 +173,11 @@ def list_by_external_id(
155173 Note that `currency` defaults to credits if not specified. To use a real world
156174 currency, set `currency` to an ISO 4217 string.
157175
176+ Results can be filtered by the block's `effective_date` using the
177+ `effective_date[gte]`, `effective_date[gt]`, `effective_date[lt]`, and
178+ `effective_date[lte]` query parameters. This filters on when the credit block
179+ becomes effective, which may differ from creation time for backdated credits.
180+
158181 Args:
159182 currency: The ledger currency or custom pricing unit to use.
160183
@@ -190,6 +213,10 @@ def list_by_external_id(
190213 {
191214 "currency" : currency ,
192215 "cursor" : cursor ,
216+ "effective_date_gt" : effective_date_gt ,
217+ "effective_date_gte" : effective_date_gte ,
218+ "effective_date_lt" : effective_date_lt ,
219+ "effective_date_lte" : effective_date_lte ,
193220 "include_all_blocks" : include_all_blocks ,
194221 "limit" : limit ,
195222 },
@@ -234,6 +261,10 @@ def list(
234261 * ,
235262 currency : Optional [str ] | Omit = omit ,
236263 cursor : Optional [str ] | Omit = omit ,
264+ effective_date_gt : Union [str , datetime , None ] | Omit = omit ,
265+ effective_date_gte : Union [str , datetime , None ] | Omit = omit ,
266+ effective_date_lt : Union [str , datetime , None ] | Omit = omit ,
267+ effective_date_lte : Union [str , datetime , None ] | Omit = omit ,
237268 include_all_blocks : bool | Omit = omit ,
238269 limit : int | Omit = omit ,
239270 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -252,6 +283,11 @@ def list(
252283 Note that `currency` defaults to credits if not specified. To use a real world
253284 currency, set `currency` to an ISO 4217 string.
254285
286+ Results can be filtered by the block's `effective_date` using the
287+ `effective_date[gte]`, `effective_date[gt]`, `effective_date[lt]`, and
288+ `effective_date[lte]` query parameters. This filters on when the credit block
289+ becomes effective, which may differ from creation time for backdated credits.
290+
255291 Args:
256292 currency: The ledger currency or custom pricing unit to use.
257293
@@ -285,6 +321,10 @@ def list(
285321 {
286322 "currency" : currency ,
287323 "cursor" : cursor ,
324+ "effective_date_gt" : effective_date_gt ,
325+ "effective_date_gte" : effective_date_gte ,
326+ "effective_date_lt" : effective_date_lt ,
327+ "effective_date_lte" : effective_date_lte ,
288328 "include_all_blocks" : include_all_blocks ,
289329 "limit" : limit ,
290330 },
@@ -300,6 +340,10 @@ def list_by_external_id(
300340 * ,
301341 currency : Optional [str ] | Omit = omit ,
302342 cursor : Optional [str ] | Omit = omit ,
343+ effective_date_gt : Union [str , datetime , None ] | Omit = omit ,
344+ effective_date_gte : Union [str , datetime , None ] | Omit = omit ,
345+ effective_date_lt : Union [str , datetime , None ] | Omit = omit ,
346+ effective_date_lte : Union [str , datetime , None ] | Omit = omit ,
303347 include_all_blocks : bool | Omit = omit ,
304348 limit : int | Omit = omit ,
305349 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -318,6 +362,11 @@ def list_by_external_id(
318362 Note that `currency` defaults to credits if not specified. To use a real world
319363 currency, set `currency` to an ISO 4217 string.
320364
365+ Results can be filtered by the block's `effective_date` using the
366+ `effective_date[gte]`, `effective_date[gt]`, `effective_date[lt]`, and
367+ `effective_date[lte]` query parameters. This filters on when the credit block
368+ becomes effective, which may differ from creation time for backdated credits.
369+
321370 Args:
322371 currency: The ledger currency or custom pricing unit to use.
323372
@@ -353,6 +402,10 @@ def list_by_external_id(
353402 {
354403 "currency" : currency ,
355404 "cursor" : cursor ,
405+ "effective_date_gt" : effective_date_gt ,
406+ "effective_date_gte" : effective_date_gte ,
407+ "effective_date_lt" : effective_date_lt ,
408+ "effective_date_lte" : effective_date_lte ,
356409 "include_all_blocks" : include_all_blocks ,
357410 "limit" : limit ,
358411 },
0 commit comments