Skip to content

Commit

Permalink
Update generated code for v1397
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 9, 2024
1 parent 28ad2f4 commit d8e5dca
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1396
v1397
28 changes: 28 additions & 0 deletions stripe/terminal/_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ class Tipping(StripeObject):
"""
_inner_class_types = {"tipping": Tipping}

account: Optional[str]
"""
Account the payment intent belongs to.
"""
collect_config: Optional[CollectConfig]
"""
Represents a per-transaction override of a reader configuration
Expand All @@ -244,14 +248,24 @@ class Tipping(StripeObject):
Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
"""
stripe_account: Optional[str]
"""
This field will be deprecated. Please use `account` instead.
"""
_inner_class_types = {"collect_config": CollectConfig}

class ConfirmPaymentIntent(StripeObject):
account: Optional[str]
"""
Account the payment intent belongs to.
"""
payment_intent: ExpandableField["PaymentIntent"]
"""
Most recent PaymentIntent processed by the reader.
"""
stripe_account: Optional[str]
"""
This field will be deprecated. Please use `account` instead.
"""

class ProcessPaymentIntent(StripeObject):
class ProcessConfig(StripeObject):
Expand All @@ -275,6 +289,10 @@ class Tipping(StripeObject):
"""
_inner_class_types = {"tipping": Tipping}

account: Optional[str]
"""
Account the payment intent belongs to.
"""
payment_intent: ExpandableField["PaymentIntent"]
"""
Most recent PaymentIntent processed by the reader.
Expand All @@ -284,6 +302,9 @@ class Tipping(StripeObject):
Represents a per-transaction override of a reader configuration
"""
stripe_account: Optional[str]
"""
This field will be deprecated. Please use `account` instead.
"""
_inner_class_types = {"process_config": ProcessConfig}

class ProcessSetupIntent(StripeObject):
Expand Down Expand Up @@ -314,6 +335,10 @@ class RefundPaymentConfig(StripeObject):
Enable customer initiated cancellation when refunding this payment.
"""

account: Optional[str]
"""
Account the payment intent belongs to.
"""
amount: Optional[int]
"""
The amount being refunded.
Expand Down Expand Up @@ -353,6 +378,9 @@ class RefundPaymentConfig(StripeObject):
Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge.
"""
stripe_account: Optional[str]
"""
This field will be deprecated. Please use `account` instead.
"""
_inner_class_types = {"refund_payment_config": RefundPaymentConfig}

class SetReaderDisplay(StripeObject):
Expand Down

0 comments on commit d8e5dca

Please sign in to comment.