Skip to content

Commit

Permalink
Update generated code (#1241)
Browse files Browse the repository at this point in the history
* Update generated code for v832

* Update generated code for v833

* Update generated code for v834

* Update generated code for v835

* Update generated code for v835

* Update generated code for v836

* Update generated code for v837

* Update generated code for v838

* Update generated code for v839

* Update generated code for v840

* Update generated code for v840

* Update generated code for v840

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: pakrym-stripe <99349468+pakrym-stripe@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] and pakrym-stripe committed Feb 22, 2024
1 parent 94d5e92 commit db4bd1d
Show file tree
Hide file tree
Showing 63 changed files with 862 additions and 39 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v829
v840
3 changes: 3 additions & 0 deletions stripe/_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -2983,6 +2983,9 @@ class ListExternalAccountsParams(RequestOptions):

class ListParams(RequestOptions):
created: NotRequired["Account.ListParamsCreated|int"]
"""
Only return connected accounts that were created during the given date interval.
"""
ending_before: NotRequired["str"]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_account_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,9 @@ class DeleteParams(TypedDict):

class ListParams(TypedDict):
created: NotRequired["AccountService.ListParamsCreated|int"]
"""
Only return connected accounts that were created during the given date interval.
"""
ending_before: NotRequired["str"]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_application_fee.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ class ListParams(RequestOptions):
Only return application fees for the charge specified by this charge ID.
"""
created: NotRequired["ApplicationFee.ListParamsCreated|int"]
"""
Only return applications fees that were created during the given date interval.
"""
ending_before: NotRequired["str"]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_application_fee_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ class ListParams(TypedDict):
Only return application fees for the charge specified by this charge ID.
"""
created: NotRequired["ApplicationFeeService.ListParamsCreated|int"]
"""
Only return applications fees that were created during the given date interval.
"""
ending_before: NotRequired["str"]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down
5 changes: 4 additions & 1 deletion stripe/_balance_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,14 @@ class FeeDetail(StripeObject):
"""
type: str
"""
Type of the fee, one of: `application_fee`, `stripe_fee` or `tax`.
Type of the fee, one of: `application_fee`, `payment_method_passthrough_fee`, `stripe_fee` or `tax`.
"""

class ListParams(RequestOptions):
created: NotRequired["BalanceTransaction.ListParamsCreated|int"]
"""
Only return transactions that were created during the given date interval.
"""
currency: NotRequired["str"]
"""
Only return transactions in a certain currency. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Expand Down
3 changes: 3 additions & 0 deletions stripe/_balance_transaction_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
class BalanceTransactionService(StripeService):
class ListParams(TypedDict):
created: NotRequired["BalanceTransactionService.ListParamsCreated|int"]
"""
Only return transactions that were created during the given date interval.
"""
currency: NotRequired["str"]
"""
Only return transactions in a certain currency. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
Expand Down
3 changes: 3 additions & 0 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -1877,6 +1877,9 @@ class CreateParamsTransferData(TypedDict):

class ListParams(RequestOptions):
created: NotRequired["Charge.ListParamsCreated|int"]
"""
Only return charges that were created during the given date interval.
"""
customer: NotRequired["str"]
"""
Only return charges for the customer specified by this customer ID.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_charge_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ class CreateParamsTransferData(TypedDict):

class ListParams(TypedDict):
created: NotRequired["ChargeService.ListParamsCreated|int"]
"""
Only return charges that were created during the given date interval.
"""
customer: NotRequired["str"]
"""
Only return charges for the customer specified by this customer ID.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,6 +748,9 @@ class ListCashBalanceTransactionsParams(RequestOptions):

class ListParams(RequestOptions):
created: NotRequired["Customer.ListParamsCreated|int"]
"""
Only return customers that were created during the given date interval.
"""
email: NotRequired["str"]
"""
A case-sensitive filter on the list based on the customer's `email` field. The value must be a string.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_customer_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,9 @@ class DeleteParams(TypedDict):

class ListParams(TypedDict):
created: NotRequired["CustomerService.ListParamsCreated|int"]
"""
Only return customers that were created during the given date interval.
"""
email: NotRequired["str"]
"""
A case-sensitive filter on the list based on the customer's `email` field. The value must be a string.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class Request(StripeObject):

class ListParams(RequestOptions):
created: NotRequired["Event.ListParamsCreated|int"]
"""
Only return events that were created during the given date interval.
"""
delivery_success: NotRequired["bool"]
"""
Filter events by whether all webhooks were successfully delivered. If false, events which are still pending or have failed all delivery attempts to a webhook endpoint will be returned.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_event_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
class EventService(StripeService):
class ListParams(TypedDict):
created: NotRequired["EventService.ListParamsCreated|int"]
"""
Only return events that were created during the given date interval.
"""
delivery_success: NotRequired["bool"]
"""
Filter events by whether all webhooks were successfully delivered. If false, events which are still pending or have failed all delivery attempts to a webhook endpoint will be returned.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ class CreateParamsFileLinkData(TypedDict):

class ListParams(RequestOptions):
created: NotRequired["File.ListParamsCreated|int"]
"""
Only return files that were created during the given date interval.
"""
ending_before: NotRequired["str"]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_file_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ class CreateParams(RequestOptions):

class ListParams(RequestOptions):
created: NotRequired["FileLink.ListParamsCreated|int"]
"""
Only return links that were created during the given date interval.
"""
ending_before: NotRequired["str"]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_file_link_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ class CreateParams(TypedDict):

class ListParams(TypedDict):
created: NotRequired["FileLinkService.ListParamsCreated|int"]
"""
Only return links that were created during the given date interval.
"""
ending_before: NotRequired["str"]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_file_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class CreateParamsFileLinkData(TypedDict):

class ListParams(TypedDict):
created: NotRequired["FileService.ListParamsCreated|int"]
"""
Only return files that were created during the given date interval.
"""
ending_before: NotRequired["str"]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand Down
9 changes: 6 additions & 3 deletions stripe/_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ class CreateParams(RequestOptions):
"Literal['exclude', 'include', 'include_and_require']"
]
"""
How to handle pending invoice items on invoice creation. One of `include` or `exclude`. `include` will include any pending invoice items, and will create an empty draft invoice if no pending invoice items exist. `exclude` will always create an empty invoice draft regardless if there are pending invoice items or not. Defaults to `exclude` if the parameter is omitted.
How to handle pending invoice items on invoice creation. Defaults to `exclude` if the parameter is omitted.
"""
rendering: NotRequired["Invoice.CreateParamsRendering"]
"""
Expand Down Expand Up @@ -1580,6 +1580,9 @@ class ListParams(RequestOptions):
The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.
"""
created: NotRequired["Invoice.ListParamsCreated|int"]
"""
Only return invoices that were created during the given date interval.
"""
customer: NotRequired["str"]
"""
Only return invoices for the customer specified by this customer ID.
Expand Down Expand Up @@ -2380,7 +2383,7 @@ class UpcomingLinesParams(RequestOptions):
"Literal['always_invoice', 'create_prorations', 'none']"
]
"""
Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
"""
subscription_proration_date: NotRequired["int"]
"""
Expand Down Expand Up @@ -2922,7 +2925,7 @@ class UpcomingParams(RequestOptions):
"Literal['always_invoice', 'create_prorations', 'none']"
]
"""
Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
"""
subscription_proration_date: NotRequired["int"]
"""
Expand Down
3 changes: 3 additions & 0 deletions stripe/_invoice_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ class DeleteParams(RequestOptions):

class ListParams(RequestOptions):
created: NotRequired["InvoiceItem.ListParamsCreated|int"]
"""
Only return invoice items that were created during the given date interval.
"""
customer: NotRequired["str"]
"""
The identifier of the customer whose invoice items to return. If none is provided, all invoice items will be returned.
Expand Down
3 changes: 3 additions & 0 deletions stripe/_invoice_item_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ class DeleteParams(TypedDict):

class ListParams(TypedDict):
created: NotRequired["InvoiceItemService.ListParamsCreated|int"]
"""
Only return invoice items that were created during the given date interval.
"""
customer: NotRequired["str"]
"""
The identifier of the customer whose invoice items to return. If none is provided, all invoice items will be returned.
Expand Down

0 comments on commit db4bd1d

Please sign in to comment.