Skip to content

Commit

Permalink
Update generated code for v696
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 5, 2023
1 parent b243286 commit 48d2f7e
Show file tree
Hide file tree
Showing 5 changed files with 286 additions and 5 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v691
v696
160 changes: 159 additions & 1 deletion stripe/_account_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,81 @@ class AccountSession(CreateableAPIResource["AccountSession"]):

class Components(StripeObject):
class AccountOnboarding(StripeObject):
class Features(StripeObject):
pass

enabled: bool
"""
Whether the embedded component is enabled.
"""
features: Features
_inner_class_types = {"features": Features}

class PaymentDetails(StripeObject):
class Features(StripeObject):
capture_payments: bool
"""
Whether to allow capturing and cancelling payment intents. This is `true` by default.
"""
dispute_management: bool
"""
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
"""
refund_management: bool
"""
Whether to allow sending refunds. This is `true` by default.
"""

enabled: bool
"""
Whether the embedded component is enabled.
"""
features: Optional[Features]
_inner_class_types = {"features": Features}

class Payments(StripeObject):
class Features(StripeObject):
capture_payments: bool
"""
Whether to allow capturing and cancelling payment intents. This is `true` by default.
"""
dispute_management: bool
"""
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
"""
refund_management: bool
"""
Whether to allow sending refunds. This is `true` by default.
"""

enabled: bool
"""
Whether the embedded component is enabled.
"""
features: Optional[Features]
_inner_class_types = {"features": Features}

class Payouts(StripeObject):
class Features(StripeObject):
pass

enabled: bool
"""
Whether the embedded component is enabled.
"""
features: Optional[Features]
_inner_class_types = {"features": Features}

account_onboarding: AccountOnboarding
_inner_class_types = {"account_onboarding": AccountOnboarding}
payment_details: Optional[PaymentDetails]
payments: Optional[Payments]
payouts: Optional[Payouts]
_inner_class_types = {
"account_onboarding": AccountOnboarding,
"payment_details": PaymentDetails,
"payments": Payments,
"payouts": Payouts,
}

class CreateParams(RequestOptions):
account: str
Expand All @@ -51,12 +119,102 @@ class CreateParamsComponents(TypedDict):
"""
Configuration for the account onboarding embedded component.
"""
payment_details: NotRequired[
"AccountSession.CreateParamsComponentsPaymentDetails"
]
"""
Configuration for the payment details embedded component.
"""
payments: NotRequired["AccountSession.CreateParamsComponentsPayments"]
"""
Configuration for the payments embedded component.
"""
payouts: NotRequired["AccountSession.CreateParamsComponentsPayouts"]
"""
Configuration for the payouts embedded component.
"""

class CreateParamsComponentsPayouts(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsPayoutsFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsPayoutsFeatures(TypedDict):
pass

class CreateParamsComponentsPayments(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsPaymentsFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsPaymentsFeatures(TypedDict):
capture_payments: NotRequired["bool"]
"""
Whether to allow capturing and cancelling payment intents. This is `true` by default.
"""
dispute_management: NotRequired["bool"]
"""
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
"""
refund_management: NotRequired["bool"]
"""
Whether to allow sending refunds. This is `true` by default.
"""

class CreateParamsComponentsPaymentDetails(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsPaymentDetailsFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsPaymentDetailsFeatures(TypedDict):
capture_payments: NotRequired["bool"]
"""
Whether to allow capturing and cancelling payment intents. This is `true` by default.
"""
dispute_management: NotRequired["bool"]
"""
Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
"""
refund_management: NotRequired["bool"]
"""
Whether to allow sending refunds. This is `true` by default.
"""

class CreateParamsComponentsAccountOnboarding(TypedDict):
enabled: bool
"""
Whether the embedded component is enabled.
"""
features: NotRequired[
"AccountSession.CreateParamsComponentsAccountOnboardingFeatures"
]
"""
The list of features enabled in the embedded component.
"""

class CreateParamsComponentsAccountOnboardingFeatures(TypedDict):
pass

account: str
"""
Expand Down
6 changes: 4 additions & 2 deletions stripe/_balance_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class ListParams(RequestOptions):
"""
type: NotRequired["str"]
"""
Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
"""

class ListParamsCreated(TypedDict):
Expand Down Expand Up @@ -231,6 +231,8 @@ class RetrieveParams(RequestOptions):
"obligation_reversal_outbound",
"payment",
"payment_failure_refund",
"payment_network_reserve_hold",
"payment_network_reserve_release",
"payment_refund",
"payment_reversal",
"payment_unreconciled",
Expand All @@ -252,7 +254,7 @@ class RetrieveParams(RequestOptions):
"transfer_refund",
]
"""
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
"""

@classmethod
Expand Down
Loading

0 comments on commit 48d2f7e

Please sign in to comment.