diff --git a/.github/actions/build-package/action.yml b/.github/actions/build-package/action.yml new file mode 100644 index 000000000..24c38c132 --- /dev/null +++ b/.github/actions/build-package/action.yml @@ -0,0 +1,15 @@ +name: Build +description: Build and check the package into dist/. Shared by CI and Canary CI; expects the repository to be checked out. + +runs: + using: composite + steps: + - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 + - name: Set up Python 3 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + with: + python-version: "3.10" + - name: Build and check package + shell: bash + run: | + just build diff --git a/.github/actions/static-checks/action.yml b/.github/actions/static-checks/action.yml new file mode 100644 index 000000000..485e7f0c7 --- /dev/null +++ b/.github/actions/static-checks/action.yml @@ -0,0 +1,29 @@ +name: Static Checks +description: Typecheck examples, lint, check formatting, and typecheck. Shared by CI and Canary CI; expects the repository to be checked out. + +runs: + using: composite + steps: + - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 + - name: Set up Python 3 + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + with: + python-version: "3.13" + - name: check examples w/ mypy (against python@3.13) + shell: bash + run: just typecheck-examples + # skip deps on all these since mypy installed everything + - name: check linting + shell: bash + run: just --no-deps lint + - name: check formatting + shell: bash + run: just --no-deps format-check + # pyright depends on node, which it handles and installs for itself as needed + # we _could_ run setup-node to make it available for it if we're having reliability problems + - name: check types + # only check against a modern version- unit tests will catch syntax errors on older versions + # this isn't user facing, this is just checking that our code is internally consistent + # e.g. a bug here wouldn't cause user CI to fail since the issue is internal to our codebase + shell: bash + run: just --no-deps typecheck diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml new file mode 100644 index 000000000..b9e711811 --- /dev/null +++ b/.github/actions/test/action.yml @@ -0,0 +1,100 @@ +name: Test +description: Start stripe-mock, then run the tests. Shared by CI and Canary CI; expects the repository to be checked out. + +inputs: + python-version: + description: Python version to test against. + required: true + canary_channel: + description: >- + Canary channel (ga, beta, or private-preview) whose specs and fixtures + stripe-mock should serve. Empty uses the OPENAPI_VERSION release. + required: false + default: '' + +runs: + using: composite + steps: + - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 + - name: Resolve stripe-mock OpenAPI inputs + id: openapi + shell: bash + env: + CANARY_CHANNEL: ${{ inputs.canary_channel }} + run: | + set -euo pipefail + + if [[ -z "$CANARY_CHANNEL" ]]; then + echo "version=$(< OPENAPI_VERSION)" >> "$GITHUB_OUTPUT" + exit 0 + fi + + case "$CANARY_CHANNEL" in + ga) + spec_name=spec3.sdk.json + fixtures_name=fixtures3.json + beta=false + ;; + beta) + spec_name=spec3.beta.sdk.json + fixtures_name=fixtures3.beta.json + beta=true + ;; + private-preview) + spec_name=spec3.private_preview.sdk.json + fixtures_name=fixtures3.private_preview.json + beta=true + ;; + *) + echo "::error::Unsupported canary channel: $CANARY_CHANNEL" + exit 1 + ;; + esac + + canary_dir="$GITHUB_WORKSPACE/.stripe-mock-canary" + mkdir -p "$canary_dir" + + spec_path="$canary_dir/$spec_name" + fixtures_path="$canary_dir/$fixtures_name" + canary_base="https://raw.githubusercontent.com/stripe/openapi/master/openapi/canary/$CANARY_CHANNEL" + curl_options=( + --retry 3 + --retry-all-errors + --fail + --silent + --show-error + ) + + curl "${curl_options[@]}" "$canary_base/$spec_name" -o "$spec_path" + curl "${curl_options[@]}" "$canary_base/$fixtures_name" -o "$fixtures_path" + + { + echo "spec_path=$spec_path" + echo "fixtures_path=$fixtures_path" + echo "beta=$beta" + } >> "$GITHUB_OUTPUT" + - name: Set up Python ${{ inputs.python-version }} + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + with: + python-version: ${{ inputs.python-version }} + - uses: stripe/openapi/actions/stripe-mock@master + with: + openapi_version: ${{ steps.openapi.outputs.version }} + spec_path: ${{ steps.openapi.outputs.spec_path }} + fixtures: ${{ steps.openapi.outputs.fixtures_path }} + beta: ${{ steps.openapi.outputs.beta }} + + # Composite steps must name a shell; keep each OS on the shell CI used before. + - name: "run tests" + if: runner.os != 'Windows' + shell: bash + run: just test + env: + STRIPE_MOCK_HOST: localhost + - name: "run tests" + if: runner.os == 'Windows' + shell: pwsh + run: just test + env: + # Use IP instead of 'localhost' to avoid slow DNS resolution on Windows + STRIPE_MOCK_HOST: 127.0.0.1 diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml new file mode 100644 index 000000000..de4d00abb --- /dev/null +++ b/.github/workflows/canary.yml @@ -0,0 +1,89 @@ +name: Canary CI + +# Runs the same checks as CI against code generated from the canary specs. +# sdk-codegen force-pushes these branches; they are never released, so there is +# no publish job. +on: + workflow_dispatch: {} + push: + branches: + - canary-ga + - canary-beta + - canary-private-preview + +permissions: {} + +concurrency: + # Each push replaces the branch, so an older run's result is stale. + group: canary-ci-${{ github.ref_name }} + cancel-in-progress: true + +env: + # Map each canary branch to the channel stripe-mock serves. + CANARY_CHANNEL: >- + ${{ + github.ref_name == 'canary-ga' && 'ga' || + github.ref_name == 'canary-beta' && 'beta' || + github.ref_name == 'canary-private-preview' && 'private-preview' || + 'unsupported' + }} + +jobs: + lint: + name: Static Checks + runs-on: "ubuntu-24.04" + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: ./.github/actions/static-checks + + build: + name: Build + runs-on: "ubuntu-24.04" + permissions: + contents: read + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: ./.github/actions/build-package + + test: + name: Test (${{ matrix.python_version }}, ${{ matrix.os }}) + runs-on: ${{ matrix.os }} + permissions: + contents: read + strategy: + fail-fast: false + matrix: + # Keep in sync with the test matrix in ci.yml. + os: + - "ubuntu-24.04" + python_version: + # The last ~5 versions, once we're on schedule + # https://docs.stripe.com/sdks/versioning?lang=python#stripe-sdk-language-version-support-policy + # https://endoflife.date/python + - "3.9" + - "3.10" + - "3.11" + - "3.12" + - "3.13" + - "3.14" + - "pypy-3.9" + - "pypy-3.10" + - "pypy-3.11" + include: + - os: windows-latest + # use any modern-ish version + python_version: "3.14" + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + - uses: ./.github/actions/test + with: + python-version: ${{ matrix.python_version }} + canary_channel: ${{ env.CANARY_CHANNEL }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8a8332dc..ccc0711b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,28 +28,10 @@ jobs: permissions: contents: read steps: - - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - name: Set up Python 3 - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 - with: - python-version: "3.13" - - name: check examples w/ mypy (against python@3.13) - run: just typecheck-examples - # skip deps on all these since mypy installed everything - - name: check linting - run: just --no-deps lint - - name: check formatting - run: just --no-deps format-check - # pyright depends on node, which it handles and installs for itself as needed - # we _could_ run setup-node to make it available for it if we're having reliability problems - - name: check types - # only check against a modern version- unit tests will catch syntax errors on older versions - # this isn't user facing, this is just checking that our code is internally consistent - # e.g. a bug here wouldn't cause user CI to fail since the issue is internal to our codebase - run: just --no-deps typecheck + - uses: ./.github/actions/static-checks build: name: Build @@ -57,19 +39,10 @@ jobs: permissions: contents: read steps: - - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - - name: Set up Python 3 - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 - with: - python-version: "3.10" - - - name: Build and check package - run: | - just build + - uses: ./.github/actions/build-package - name: "Upload Artifact" uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 @@ -85,6 +58,7 @@ jobs: strategy: fail-fast: false matrix: + # Keep in sync with the test matrix in canary.yml. os: - "ubuntu-24.04" python_version: @@ -105,27 +79,12 @@ jobs: # use any modern-ish version python_version: "3.14" steps: - - uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - - name: Read OpenAPI version - id: openapi - shell: bash - run: echo "version=$(< OPENAPI_VERSION)" >> "$GITHUB_OUTPUT" - - name: Set up Python ${{ matrix.python_version }} - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + - uses: ./.github/actions/test with: python-version: ${{ matrix.python_version }} - - uses: stripe/openapi/actions/stripe-mock@master - with: - openapi_version: ${{ steps.openapi.outputs.version }} - - - name: "run tests" - run: just test - env: - # Use IP instead of 'localhost' to avoid slow DNS resolution on Windows - STRIPE_MOCK_HOST: ${{ runner.os == 'Windows' && '127.0.0.1' || 'localhost' }} publish: name: Publish diff --git a/.hark/changes/2026-11-06_stripe-openapi_58799b51.change.md b/.hark/changes/2026-11-06_stripe-openapi_58799b51.change.md new file mode 100644 index 000000000..48a7158e6 --- /dev/null +++ b/.hark/changes/2026-11-06_stripe-openapi_58799b51.change.md @@ -0,0 +1,59 @@ +--- +title: Update generated code +pr_url: https://github.com/stripe/stripe-python/pull/1961 +semver_level: major +is_stripe_api_change: true +--- + +* Add support for new resources `tax.Certificate`, `tax.FormCorrection`, `v2.extend.ObjectDefinitionVersion`, and `v2.extend.ObjectDefinition` +* Add support for `create`, `delete`, `list`, and `retrieve` methods on resource `tax.Certificate` +* Add support for `create` method on resource `tax.Form` +* Add support for `list` and `retrieve` methods on resources `v2.extend.ObjectDefinitionVersion` and `v2.extend.ObjectDefinition` +* Add support for `bills`, `financial_account_rewards`, `financial_accounts_transactions`, `financial_accounts`, `network_cost_passthrough_report`, and `recipients_list` on `AccountSessionCreateParamsComponent` +* Add support for `business_profile_management` on `AccountSessionCreateParamsComponent`, `V2.Core.AccountSession.Component`, and `v2.core.AccountSessionCreateParamsComponent` +* Add support for `export_tax_transactions`, `product_tax_code_selector`, and `tax_threshold_monitoring` on `AccountSession.Component` +* Add support for `aeon_pay`, `au_pay`, `dbarai`, and `merpay` on `Charge.PaymentMethodDetail`, `ConfirmationToken.PaymentMethodPreview`, `ConfirmationTokenCreateParamsPaymentMethodDatum`, `PaymentAttemptRecord.PaymentMethodDetail`, `PaymentIntentConfirmParamsPaymentMethodDatum`, `PaymentIntentCreateParamsPaymentMethodDatum`, `PaymentIntentModifyParamsPaymentMethodDatum`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.PaymentMethodDetail`, `SetupIntentConfirmParamsPaymentMethodDatum`, `SetupIntentCreateParamsPaymentMethodDatum`, and `SetupIntentModifyParamsPaymentMethodDatum` +* Add support for `funding_sources` on `Charge.PaymentMethodDetail.Card.Wallet.Link` and `Charge.PaymentMethodDetail.Link` +* Add support for `fleet` on `Charge.PaymentMethodDetail.CardPresent`, `ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, `PaymentAttemptRecord.PaymentMethodDetail.CardPresent`, `PaymentMethod.Card.GeneratedFrom.PaymentMethodDetail.CardPresent`, and `PaymentRecord.PaymentMethodDetail.CardPresent` +* Add support for `fingerprint` on `Charge.PaymentMethodDetail.Paypay`, `PaymentAttemptRecord.PaymentMethodDetail.Paypay`, `PaymentRecord.PaymentMethodDetail.Paypay`, and `SetupAttempt.PaymentMethodDetail.Paypay` +* Add support for `custom_payment_method_options` on `checkout.SessionCreateParams` +* Add support for new value `tamara` on enum `checkout.SessionCreateParams.allowed_payment_method_types` +* Add support for new value `tamara` on enum `checkout.SessionCreateParams.excluded_payment_method_types` +* Add support for `stripe_balance` on `Checkout.Session.PaymentMethodOption` and `checkout.SessionCreateParamsPaymentMethodOption` +* Add support for new value `buyer_choice` on enums `Checkout.Session.PaymentMethodOption.AcssDebit.MandateOption.transaction_type` and `checkout.SessionCreateParamsPaymentMethodOptionAcssDebitMandateOption.transaction_type` +* Add support for new value `instant` on enums `Checkout.Session.PaymentMethodOption.BacsDebit.verification_method`, `Invoice.PaymentSetting.PaymentMethodOption.BacsDebit.verification_method`, `InvoiceCreateParamsPaymentSettingPaymentMethodOptionBacsDebit.verification_method`, `InvoiceModifyParamsPaymentSettingPaymentMethodOptionBacsDebit.verification_method`, `PaymentIntent.PaymentMethodOption.BacsDebit.verification_method`, `PaymentIntentConfirmParamsPaymentMethodOptionBacsDebit.verification_method`, `PaymentIntentCreateParamsPaymentMethodOptionBacsDebit.verification_method`, `PaymentIntentModifyParamsPaymentMethodOptionBacsDebit.verification_method`, `QuotePreviewInvoice.PaymentSetting.PaymentMethodOption.BacsDebit.verification_method`, `SetupIntent.PaymentMethodOption.BacsDebit.verification_method`, `SetupIntentConfirmParamsPaymentMethodOptionBacsDebit.verification_method`, `SetupIntentCreateParamsPaymentMethodOptionBacsDebit.verification_method`, `SetupIntentModifyParamsPaymentMethodOptionBacsDebit.verification_method`, `Subscription.PaymentSetting.PaymentMethodOption.BacsDebit.verification_method`, `SubscriptionCreateParamsPaymentSettingPaymentMethodOptionBacsDebit.verification_method`, `SubscriptionModifyParamsPaymentSettingPaymentMethodOptionBacsDebit.verification_method`, and `checkout.SessionCreateParamsPaymentMethodOptionBacsDebit.verification_method` +* Add support for `setup_future_usage` on `Checkout.Session.PaymentMethodOption.Paypay` and `checkout.SessionCreateParamsPaymentMethodOptionPaypay` +* Add support for new values `aeon_pay`, `au_pay`, `dbarai`, and `merpay` on enums `ConfirmationTokenCreateParamsPaymentMethodDatum.type`, `PaymentIntentConfirmParamsPaymentMethodDatum.type`, `PaymentIntentCreateParamsPaymentMethodDatum.type`, `PaymentIntentModifyParamsPaymentMethodDatum.type`, `SetupIntentConfirmParamsPaymentMethodDatum.type`, `SetupIntentCreateParamsPaymentMethodDatum.type`, and `SetupIntentModifyParamsPaymentMethodDatum.type` +* Add support for new values `aeon_pay`, `au_pay`, `dbarai`, and `merpay` on enums `ConfirmationToken.PaymentMethodPreview.type` and `PaymentMethod.type` +* Add support for new values `aeon_pay`, `au_pay`, `dbarai`, and `merpay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` +* Add support for `reason_details` and `reason` on `CustomerCreateCustomerTaxExemptionParams` and `CustomerTaxExemption` +* Add support for `tax_code_group` on `CustomerCreateCustomerTaxExemptionParamsMe` and `CustomerTaxExemption.Me` +* Change `Dispute.Evidence.appeal` to be required +* Add support for `target_date` on `Invoice.PaymentSetting.PaymentMethodOption.SepaDebit`, `InvoiceCreateParamsPaymentSettingPaymentMethodOptionSepaDebit`, and `InvoiceModifyParamsPaymentSettingPaymentMethodOptionSepaDebit` +* Change `Issuing.Card.Shipping.delivered_at` to be required +* Change `Issuing.Card.Shipping.shipped_at` to be required +* Add support for `payment_method_details` on `PaymentAttemptRecordReportAuthenticatedParams` +* Change type of `PaymentAttemptRecordReportGuaranteedParamsPaymentMethodDetail.type` and `PaymentRecordReportPaymentAttemptGuaranteedParamsPaymentMethodDetail.type` from `literal('card')` to `enum('card'|'us_bank_account')` +* Add support for `dispute_details` on `PaymentAttemptRecord` and `PaymentRecord` +* Add support for new values `aeon_pay`, `au_pay`, `dbarai`, and `merpay` on enums `PaymentIntent.allowed_payment_method_types`, `PaymentIntentConfirmParams.allowed_payment_method_types`, `PaymentIntentCreateParams.allowed_payment_method_types`, `PaymentIntentModifyParams.allowed_payment_method_types`, `SetupIntent.allowed_payment_method_types`, `SetupIntentConfirmParams.allowed_payment_method_types`, `SetupIntentCreateParams.allowed_payment_method_types`, and `SetupIntentModifyParams.allowed_payment_method_types` +* Add support for `ev_charging` and `fleet_data` on `PaymentIntentAmountDetailsLineItem.PaymentMethodOption.CardPresent`, `PaymentIntentCaptureParamsAmountDetailLineItemPaymentMethodOptionCardPresent`, `PaymentIntentConfirmParamsAmountDetailLineItemPaymentMethodOptionCardPresent`, `PaymentIntentCreateParamsAmountDetailLineItemPaymentMethodOptionCardPresent`, `PaymentIntentDecrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionCardPresent`, `PaymentIntentIncrementAuthorizationParamsAmountDetailLineItemPaymentMethodOptionCardPresent`, and `PaymentIntentModifyParamsAmountDetailLineItemPaymentMethodOptionCardPresent` +* Add support for new values `aeon_pay`, `au_pay`, `dbarai`, and `merpay` on enums `PaymentIntent.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentModifyParams.excluded_payment_method_types`, `SetupIntent.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentModifyParams.excluded_payment_method_types` +* Add support for `financial_connections` on `PaymentIntent.PaymentMethodOption.BacsDebit`, `PaymentIntentConfirmParamsPaymentMethodOptionBacsDebit`, `PaymentIntentCreateParamsPaymentMethodOptionBacsDebit`, and `PaymentIntentModifyParamsPaymentMethodOptionBacsDebit` +* ⚠️ Remove support for value `on_session` from enums `PaymentIntent.PaymentMethodOption.Paypay.setup_future_usage`, `PaymentIntentConfirmParamsPaymentMethodOptionPaypay.setup_future_usage`, `PaymentIntentCreateParamsPaymentMethodOptionPaypay.setup_future_usage`, and `PaymentIntentModifyParamsPaymentMethodOptionPaypay.setup_future_usage` +* Add support for `payment_details` on `PaymentIntent.PaymentMethodOption.CardPresent` and `PaymentIntent.PaymentMethodOption.Card` +* Add support for new value `tamara` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkModifyParams.payment_method_types` +* Add support for `rakuten_pay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationModifyParams`, and `PaymentMethodConfiguration` +* Add support for `sepa_debit` on `Radar.PaymentEvaluation.PaymentDetail.MoneyMovementDetail` and `radar.PaymentEvaluationCreateParamsPaymentDetailMoneyMovementDetail` +* Add support for new value `sepa_debit` on enums `Radar.PaymentEvaluation.PaymentDetail.MoneyMovementDetail.money_movement_type` and `radar.PaymentEvaluationCreateParamsPaymentDetailMoneyMovementDetail.money_movement_type` +* Add support for new value `continue_with_manual_review` on enum `Radar.PaymentEvaluation.recommended_action` +* Add support for `card_testing` on `Radar.PaymentEvaluation.Signal` +* Add support for `payment_method` on `RefundCreateParams` +* Add support for new values `aeon_pay`, `au_pay`, `dbarai`, and `merpay` on enum `RefundCreateParamsPaymentMethodDatum.type` +* Add support for `payment_record` on `Refund` +* Add support for `bizum` and `upi` on `Refund.DestinationDetail` +* Add support for `tax_invoice_month` on `Reporting.ReportRun.Parameter` +* Add support for `radar_options` on `SetupIntentConfirmParams`, `SetupIntentCreateParams`, and `SetupIntent` +* Add support for `billing_group` on `SubscriptionCreateParams`, `SubscriptionListParams`, `SubscriptionModifyParams`, and `Subscription` +* Add support for `network_details` on `Treasury.InboundTransfer.FailureDetail`, `Treasury.OutboundPayment.ReturnedDetail`, and `Treasury.OutboundTransfer.ReturnedDetail` +* Add support for event notification `V2ExtendObjectDefinitionCreatedEvent` with related object `v2.extend.ObjectDefinition` +* Add support for event notification `V2ExtendObjectDefinitionVersionCreatedEvent` with related object `v2.extend.ObjectDefinitionVersion` diff --git a/CODEGEN_VERSION b/CODEGEN_VERSION index f99af06cd..4be7b4d4f 100644 --- a/CODEGEN_VERSION +++ b/CODEGEN_VERSION @@ -1 +1 @@ -305a4cda5bfda341d0099795803d0af4637923c0 \ No newline at end of file +df2bff12c487cb1d6af4f5bd7debe8dea8b01e47 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 9a21d2dc6..14c7fa5db 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2596 \ No newline at end of file +v2598 \ No newline at end of file diff --git a/stripe/_account_session.py b/stripe/_account_session.py index 5b4b8d98e..98d943648 100644 --- a/stripe/_account_session.py +++ b/stripe/_account_session.py @@ -242,6 +242,17 @@ class Features(StripeObject): features: Features _inner_class_types = {"features": Features} + class ExportTaxTransactions(StripeObject): + class Features(StripeObject): + pass + + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: Features + _inner_class_types = {"features": Features} + class FinancialAccount(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool @@ -627,6 +638,17 @@ class Features(StripeObject): features: Features _inner_class_types = {"features": Features} + class ProductTaxCodeSelector(StripeObject): + class Features(StripeObject): + pass + + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: Features + _inner_class_types = {"features": Features} + class RecipientsList(StripeObject): class Features(StripeObject): disable_stripe_user_authentication: bool @@ -678,6 +700,17 @@ class Features(StripeObject): features: Features _inner_class_types = {"features": Features} + class TaxThresholdMonitoring(StripeObject): + class Features(StripeObject): + pass + + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: Features + _inner_class_types = {"features": Features} + class TerminalHardwareOrders(StripeObject): class Features(StripeObject): pass @@ -731,6 +764,7 @@ class Features(StripeObject): """ disputes_list: DisputesList documents: Documents + export_tax_transactions: Optional[ExportTaxTransactions] financial_account: FinancialAccount financial_account_rewards: Optional[FinancialAccountRewards] """ @@ -763,6 +797,7 @@ class Features(StripeObject): payout_reconciliation_report: PayoutReconciliationReport payouts: Payouts payouts_list: PayoutsList + product_tax_code_selector: Optional[ProductTaxCodeSelector] recipients_list: Optional[RecipientsList] """ Configuration for the [recipients list](https://docs.stripe.com/connect/supported-embedded-components/recipients-list/) embedded component. @@ -770,6 +805,7 @@ class Features(StripeObject): reporting_chart: ReportingChart tax_registrations: TaxRegistrations tax_settings: TaxSettings + tax_threshold_monitoring: Optional[TaxThresholdMonitoring] terminal_hardware_orders: TerminalHardwareOrders terminal_hardware_shop: TerminalHardwareShop _inner_class_types = { @@ -787,6 +823,7 @@ class Features(StripeObject): "check_scanning": CheckScanning, "disputes_list": DisputesList, "documents": Documents, + "export_tax_transactions": ExportTaxTransactions, "financial_account": FinancialAccount, "financial_account_rewards": FinancialAccountRewards, "financial_account_transactions": FinancialAccountTransactions, @@ -805,10 +842,12 @@ class Features(StripeObject): "payout_reconciliation_report": PayoutReconciliationReport, "payouts": Payouts, "payouts_list": PayoutsList, + "product_tax_code_selector": ProductTaxCodeSelector, "recipients_list": RecipientsList, "reporting_chart": ReportingChart, "tax_registrations": TaxRegistrations, "tax_settings": TaxSettings, + "tax_threshold_monitoring": TaxThresholdMonitoring, "terminal_hardware_orders": TerminalHardwareOrders, "terminal_hardware_shop": TerminalHardwareShop, } diff --git a/stripe/_charge.py b/stripe/_charge.py index 7fd415e8f..76ef21877 100644 --- a/stripe/_charge.py +++ b/stripe/_charge.py @@ -270,6 +270,9 @@ class AcssDebit(StripeObject): Transit number of the bank account. """ + class AeonPay(StripeObject): + pass + class Affirm(StripeObject): location: Optional[str] """ @@ -390,6 +393,9 @@ class AuBecsDebit(StripeObject): ID of the mandate used to make this payment. """ + class AuPay(StripeObject): + pass + class BacsDebit(StripeObject): expected_debit_date: Optional[str] """ @@ -684,10 +690,222 @@ class GooglePay(StripeObject): pass class Link(StripeObject): + class FundingSource(StripeObject): + class Card(StripeObject): + class Checks(StripeObject): + address_line1_check: Optional[str] + """ + If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ + address_postal_code_check: Optional[str] + """ + If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ + cvc_check: Optional[str] + """ + If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ + + class NetworkToken(StripeObject): + used: bool + """ + Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. + """ + + class ThreeDSecure(StripeObject): + authentication_flow: Optional[ + Union[ + Literal["challenge", "frictionless"], + str, + ] + ] + """ + For authenticated transactions: how the customer was authenticated by + the issuing bank. + """ + electronic_commerce_indicator: Optional[ + Union[ + Literal["01", "02", "05", "06", "07"], + str, + ] + ] + """ + The Electronic Commerce Indicator (ECI). A protocol-level field + indicating what degree of authentication was performed. + """ + exemption_indicator: Optional[ + Union[Literal["low_risk", "none"], str] + ] + """ + The exemption requested via 3DS and accepted by the issuer at authentication time. + """ + exemption_indicator_applied: Optional[bool] + """ + Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on + the outcome of Stripe's internal risk assessment. + """ + result: Optional[ + Union[ + Literal[ + "attempt_acknowledged", + "authenticated", + "data_share_only", + "exempted", + "failed", + "not_supported", + "processing_error", + ], + str, + ] + ] + """ + Indicates the outcome of 3D Secure authentication. + """ + result_reason: Optional[ + Union[ + Literal[ + "abandoned", + "bypassed", + "canceled", + "card_not_enrolled", + "network_not_supported", + "protocol_error", + "rejected", + ], + str, + ] + ] + """ + Additional information about why 3D Secure succeeded or failed based + on the `result`. + """ + transaction_id: Optional[str] + """ + The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID + (dsTransId) for this payment. + """ + version: Optional[ + Union[ + Literal[ + "1.0.2", + "2.1.0", + "2.2.0", + "2.3.0", + "2.3.1", + ], + str, + ] + ] + """ + The version of 3D Secure that was used. + """ + + amount_authorized: Optional[int] + """ + The authorized amount. + """ + authorization_code: Optional[str] + """ + Authorization code on the charge. + """ + brand: Optional[str] + """ + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + """ + checks: Optional[Checks] + """ + Check results by Card networks on Card address and CVC at time of payment. + """ + country: Optional[str] + """ + Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + """ + description: Optional[str] + """ + A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + """ + electronic_commerce_indicator: Optional[str] + """ + The Electronic Commerce Indicator (ECI) returned by the card network in the authorization response. Indicates the level of authentication used. Only populated for Visa and Mastercard transactions. This is the network's final ECI and can differ from the request value. An authenticated ECI alone doesn't determine liability shift. + """ + exp_month: int + """ + Two-digit number representing the card's expiration month. + """ + exp_year: int + """ + Four-digit number representing the card's expiration year. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + + *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + """ + funding: Optional[str] + """ + Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + """ + iin: Optional[str] + """ + Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + """ + issuer: Optional[str] + """ + The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + """ + last4: Optional[str] + """ + The last four digits of the card. + """ + network: Optional[str] + """ + Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + """ + network_token: Optional[NetworkToken] + """ + If this card has network token credentials, this contains the details of the network token credentials. + """ + network_transaction_id: Optional[str] + """ + This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + """ + regulated_status: Optional[ + Union[Literal["regulated", "unregulated"], str] + ] + """ + Status of a card based on the card issuer. + """ + three_d_secure: Optional[ThreeDSecure] + """ + Populated if this transaction used 3D Secure authentication. + """ + transaction_link_id: Optional[str] + """ + Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + """ + _inner_class_types = { + "checks": Checks, + "network_token": NetworkToken, + "three_d_secure": ThreeDSecure, + } + + card: Card + type: Union[Literal["card"], str] + """ + The type of funding source used for this Link payment. + """ + _inner_class_types = {"card": Card} + funding_source_group: Optional[str] """ The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time. """ + funding_sources: Optional[List[FundingSource]] + """ + Details about the funding sources used for this Link payment. + """ + _inner_class_types = {"funding_sources": FundingSource} class Masterpass(StripeObject): class BillingAddress(StripeObject): @@ -1038,6 +1256,46 @@ class ShippingAddress(StripeObject): } class CardPresent(StripeObject): + class Fleet(StripeObject): + class TransactionDatum(StripeObject): + prompt: Literal[ + "additional_fleet_data_1", + "additional_fleet_data_2", + "driver_id", + "employee_number", + "entered_data_alphanumeric", + "entered_data_numeric", + "generic_id", + "invoice_number", + "odometer", + "postal_code", + "reefer_hours", + "replacement_car", + "trailer_number", + "trip_number", + "unit_number", + "vehicle_id", + "vehicle_tag", + "work_order", + ] + """ + The prompt that the Terminal SDK displays to collect this Fleet value. + """ + receipt_behavior: Literal["omit", "print"] + """ + Whether the collected value is printed on the receipt. + """ + value: str + """ + The value collected for this Fleet prompt. + """ + + transaction_data: List[TransactionDatum] + """ + Fleet prompts and values collected for this transaction. + """ + _inner_class_types = {"transaction_data": TransactionDatum} + class Multicapture(StripeObject): status: Literal["available", "unavailable"] """ @@ -1160,6 +1418,7 @@ class Wallet(StripeObject): *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* """ + fleet: Optional[Fleet] funding: Optional[str] """ Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. @@ -1246,6 +1505,7 @@ class Wallet(StripeObject): """ wallet: Optional[Wallet] _inner_class_types = { + "fleet": Fleet, "multicapture": Multicapture, "offline": Offline, "reauthorization": Reauthorization, @@ -1319,6 +1579,9 @@ class Crypto(StripeObject): class CustomerBalance(StripeObject): pass + class Dbarai(StripeObject): + pass + class Eps(StripeObject): bank: Optional[ Union[ @@ -1851,6 +2114,203 @@ class KrCard(StripeObject): """ class Link(StripeObject): + class FundingSource(StripeObject): + class Card(StripeObject): + class Checks(StripeObject): + address_line1_check: Optional[str] + """ + If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ + address_postal_code_check: Optional[str] + """ + If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ + cvc_check: Optional[str] + """ + If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. + """ + + class NetworkToken(StripeObject): + used: bool + """ + Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. + """ + + class ThreeDSecure(StripeObject): + authentication_flow: Optional[ + Union[Literal["challenge", "frictionless"], str] + ] + """ + For authenticated transactions: how the customer was authenticated by + the issuing bank. + """ + electronic_commerce_indicator: Optional[ + Union[Literal["01", "02", "05", "06", "07"], str] + ] + """ + The Electronic Commerce Indicator (ECI). A protocol-level field + indicating what degree of authentication was performed. + """ + exemption_indicator: Optional[ + Union[Literal["low_risk", "none"], str] + ] + """ + The exemption requested via 3DS and accepted by the issuer at authentication time. + """ + exemption_indicator_applied: Optional[bool] + """ + Whether Stripe requested the value of `exemption_indicator` in the transaction. This will depend on + the outcome of Stripe's internal risk assessment. + """ + result: Optional[ + Union[ + Literal[ + "attempt_acknowledged", + "authenticated", + "data_share_only", + "exempted", + "failed", + "not_supported", + "processing_error", + ], + str, + ] + ] + """ + Indicates the outcome of 3D Secure authentication. + """ + result_reason: Optional[ + Union[ + Literal[ + "abandoned", + "bypassed", + "canceled", + "card_not_enrolled", + "network_not_supported", + "protocol_error", + "rejected", + ], + str, + ] + ] + """ + Additional information about why 3D Secure succeeded or failed based + on the `result`. + """ + transaction_id: Optional[str] + """ + The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID + (dsTransId) for this payment. + """ + version: Optional[ + Union[ + Literal[ + "1.0.2", "2.1.0", "2.2.0", "2.3.0", "2.3.1" + ], + str, + ] + ] + """ + The version of 3D Secure that was used. + """ + + amount_authorized: Optional[int] + """ + The authorized amount. + """ + authorization_code: Optional[str] + """ + Authorization code on the charge. + """ + brand: Optional[str] + """ + Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + """ + checks: Optional[Checks] + """ + Check results by Card networks on Card address and CVC at time of payment. + """ + country: Optional[str] + """ + Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + """ + description: Optional[str] + """ + A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + """ + electronic_commerce_indicator: Optional[str] + """ + The Electronic Commerce Indicator (ECI) returned by the card network in the authorization response. Indicates the level of authentication used. Only populated for Visa and Mastercard transactions. This is the network's final ECI and can differ from the request value. An authenticated ECI alone doesn't determine liability shift. + """ + exp_month: int + """ + Two-digit number representing the card's expiration month. + """ + exp_year: int + """ + Four-digit number representing the card's expiration year. + """ + fingerprint: Optional[str] + """ + Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + + *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + """ + funding: Optional[str] + """ + Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + """ + iin: Optional[str] + """ + Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + """ + issuer: Optional[str] + """ + The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + """ + last4: Optional[str] + """ + The last four digits of the card. + """ + network: Optional[str] + """ + Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + """ + network_token: Optional[NetworkToken] + """ + If this card has network token credentials, this contains the details of the network token credentials. + """ + network_transaction_id: Optional[str] + """ + This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + """ + regulated_status: Optional[ + Union[Literal["regulated", "unregulated"], str] + ] + """ + Status of a card based on the card issuer. + """ + three_d_secure: Optional[ThreeDSecure] + """ + Populated if this transaction used 3D Secure authentication. + """ + transaction_link_id: Optional[str] + """ + Transaction Link ID (TLID) is a unique identifier for a transaction. This is used by some card networks, such as Mastercard, for transaction linking, in addition to Network Transaction IDs. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + """ + _inner_class_types = { + "checks": Checks, + "network_token": NetworkToken, + "three_d_secure": ThreeDSecure, + } + + card: Card + type: Union[Literal["card"], str] + """ + The type of funding source used for this Link payment. + """ + _inner_class_types = {"card": Card} + country: Optional[str] """ Two-letter ISO code representing the funding source country beneath the Link payment. @@ -1860,10 +2320,18 @@ class Link(StripeObject): """ The [funding source group code](https://docs.stripe.com/payments/link/link-payment-methods) applied to this Link payment at confirmation time. """ + funding_sources: Optional[List[FundingSource]] + """ + Details about the funding sources used for this Link payment. + """ + _inner_class_types = {"funding_sources": FundingSource} class MbWay(StripeObject): pass + class Merpay(StripeObject): + pass + class Mobilepay(StripeObject): class Card(StripeObject): brand: Optional[str] @@ -2151,6 +2619,10 @@ class VerifiedAddress(StripeObject): } class Paypay(StripeObject): + fingerprint: Optional[str] + """ + Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same. + """ mandate: Optional[str] """ ID of the multi-use Mandate created by, or used to make, this PayPay payment. @@ -2500,12 +2972,14 @@ class Zip(StripeObject): ach_credit_transfer: Optional[AchCreditTransfer] ach_debit: Optional[AchDebit] acss_debit: Optional[AcssDebit] + aeon_pay: Optional[AeonPay] affirm: Optional[Affirm] afterpay_clearpay: Optional[AfterpayClearpay] alipay: Optional[Alipay] alma: Optional[Alma] amazon_pay: Optional[AmazonPay] au_becs_debit: Optional[AuBecsDebit] + au_pay: Optional[AuPay] bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] @@ -2518,6 +2992,7 @@ class Zip(StripeObject): cashapp: Optional[Cashapp] crypto: Optional[Crypto] customer_balance: Optional[CustomerBalance] + dbarai: Optional[Dbarai] eps: Optional[Eps] fpx: Optional[Fpx] getflex: Optional[Getflex] @@ -2534,6 +3009,7 @@ class Zip(StripeObject): kr_card: Optional[KrCard] link: Optional[Link] mb_way: Optional[MbWay] + merpay: Optional[Merpay] mobilepay: Optional[Mobilepay] multibanco: Optional[Multibanco] naver_pay: Optional[NaverPay] @@ -2587,12 +3063,14 @@ class Zip(StripeObject): "ach_credit_transfer": AchCreditTransfer, "ach_debit": AchDebit, "acss_debit": AcssDebit, + "aeon_pay": AeonPay, "affirm": Affirm, "afterpay_clearpay": AfterpayClearpay, "alipay": Alipay, "alma": Alma, "amazon_pay": AmazonPay, "au_becs_debit": AuBecsDebit, + "au_pay": AuPay, "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, @@ -2605,6 +3083,7 @@ class Zip(StripeObject): "cashapp": Cashapp, "crypto": Crypto, "customer_balance": CustomerBalance, + "dbarai": Dbarai, "eps": Eps, "fpx": Fpx, "getflex": Getflex, @@ -2621,6 +3100,7 @@ class Zip(StripeObject): "kr_card": KrCard, "link": Link, "mb_way": MbWay, + "merpay": Merpay, "mobilepay": Mobilepay, "multibanco": Multibanco, "naver_pay": NaverPay, diff --git a/stripe/_confirmation_token.py b/stripe/_confirmation_token.py index bbe263337..6572ad6fa 100644 --- a/stripe/_confirmation_token.py +++ b/stripe/_confirmation_token.py @@ -127,6 +127,9 @@ class AcssDebit(StripeObject): Transit number of the bank account. """ + class AeonPay(StripeObject): + pass + class Affirm(StripeObject): pass @@ -156,6 +159,9 @@ class AuBecsDebit(StripeObject): Last four digits of the bank account number. """ + class AuPay(StripeObject): + pass + class BacsDebit(StripeObject): fingerprint: Optional[str] """ @@ -271,6 +277,48 @@ class Checks(StripeObject): class GeneratedFrom(StripeObject): class PaymentMethodDetails(StripeObject): class CardPresent(StripeObject): + class Fleet(StripeObject): + class TransactionDatum(StripeObject): + prompt: Literal[ + "additional_fleet_data_1", + "additional_fleet_data_2", + "driver_id", + "employee_number", + "entered_data_alphanumeric", + "entered_data_numeric", + "generic_id", + "invoice_number", + "odometer", + "postal_code", + "reefer_hours", + "replacement_car", + "trailer_number", + "trip_number", + "unit_number", + "vehicle_id", + "vehicle_tag", + "work_order", + ] + """ + The prompt that the Terminal SDK displays to collect this Fleet value. + """ + receipt_behavior: Literal["omit", "print"] + """ + Whether the collected value is printed on the receipt. + """ + value: str + """ + The value collected for this Fleet prompt. + """ + + transaction_data: List[TransactionDatum] + """ + Fleet prompts and values collected for this transaction. + """ + _inner_class_types = { + "transaction_data": TransactionDatum, + } + class Multicapture(StripeObject): status: Literal["available", "unavailable"] """ @@ -403,6 +451,7 @@ class Wallet(StripeObject): *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* """ + fleet: Optional[Fleet] funding: Optional[str] """ Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. @@ -489,6 +538,7 @@ class Wallet(StripeObject): """ wallet: Optional[Wallet] _inner_class_types = { + "fleet": Fleet, "multicapture": Multicapture, "offline": Offline, "reauthorization": Reauthorization, @@ -952,6 +1002,9 @@ class Crypto(StripeObject): class CustomerBalance(StripeObject): pass + class Dbarai(StripeObject): + pass + class Eps(StripeObject): bank: Optional[ Union[ @@ -1301,6 +1354,9 @@ class Link(StripeObject): class MbWay(StripeObject): pass + class Merpay(StripeObject): + pass + class Mobilepay(StripeObject): pass @@ -1678,6 +1734,7 @@ class Zip(StripeObject): pass acss_debit: Optional[AcssDebit] + aeon_pay: Optional[AeonPay] affirm: Optional[Affirm] afterpay_clearpay: Optional[AfterpayClearpay] alipay: Optional[Alipay] @@ -1690,6 +1747,7 @@ class Zip(StripeObject): alma: Optional[Alma] amazon_pay: Optional[AmazonPay] au_becs_debit: Optional[AuBecsDebit] + au_pay: Optional[AuPay] bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] @@ -1708,6 +1766,7 @@ class Zip(StripeObject): """ customer_account: Optional[str] customer_balance: Optional[CustomerBalance] + dbarai: Optional[Dbarai] eps: Optional[Eps] fpx: Optional[Fpx] getflex: Optional[Getflex] @@ -1724,6 +1783,7 @@ class Zip(StripeObject): kr_card: Optional[KrCard] link: Optional[Link] mb_way: Optional[MbWay] + merpay: Optional[Merpay] mobilepay: Optional[Mobilepay] multibanco: Optional[Multibanco] naver_pay: Optional[NaverPay] @@ -1759,12 +1819,14 @@ class Zip(StripeObject): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -1778,6 +1840,7 @@ class Zip(StripeObject): "crypto", "custom", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -1794,6 +1857,7 @@ class Zip(StripeObject): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -1844,12 +1908,14 @@ class Zip(StripeObject): zip: Optional[Zip] _inner_class_types = { "acss_debit": AcssDebit, + "aeon_pay": AeonPay, "affirm": Affirm, "afterpay_clearpay": AfterpayClearpay, "alipay": Alipay, "alma": Alma, "amazon_pay": AmazonPay, "au_becs_debit": AuBecsDebit, + "au_pay": AuPay, "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, @@ -1863,6 +1929,7 @@ class Zip(StripeObject): "cashapp": Cashapp, "crypto": Crypto, "customer_balance": CustomerBalance, + "dbarai": Dbarai, "eps": Eps, "fpx": Fpx, "getflex": Getflex, @@ -1879,6 +1946,7 @@ class Zip(StripeObject): "kr_card": KrCard, "link": Link, "mb_way": MbWay, + "merpay": Merpay, "mobilepay": Mobilepay, "multibanco": Multibanco, "naver_pay": NaverPay, diff --git a/stripe/_coupon.py b/stripe/_coupon.py index ece6654c9..6a57020d2 100644 --- a/stripe/_coupon.py +++ b/stripe/_coupon.py @@ -25,9 +25,12 @@ class Coupon( UpdateableAPIResource["Coupon"], ): """ - A coupon contains information about a percent-off or amount-off discount you - might want to apply to a customer. Coupons may be applied to [subscriptions](https://docs.stripe.com/api#subscriptions), [invoices](https://docs.stripe.com/api#invoices), - [checkout sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://docs.stripe.com/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://docs.stripe.com/api/charges/create) or [payment intents](https://docs.stripe.com/api/payment_intents). + A coupon defines a fixed or custom discount. Fixed discounts take a percentage or amount off, while + [custom coupons](https://docs.stripe.com/billing/subscriptions/script-coupons) use scripts to calculate discounts dynamically for subscriptions and invoices. + You can apply coupons to customers' [subscriptions](https://docs.stripe.com/api#subscriptions), [invoices](https://docs.stripe.com/api#invoices), + [Checkout Sessions](https://docs.stripe.com/api/checkout/sessions), [quotes](https://docs.stripe.com/api#quotes), and other supported billing objects. + The optional [applies_to.products](https://docs.stripe.com/api/coupons/object#coupon_object-applies_to-products) property limits which product line items are eligible for the discount, independently of where you apply the coupon. + Coupons don't work with conventional one-off [charges](https://docs.stripe.com/api/charges/create) or [payment intents](https://docs.stripe.com/api/payment_intents). """ OBJECT_NAME: ClassVar[Literal["coupon"]] = "coupon" diff --git a/stripe/_customer_tax_exemption.py b/stripe/_customer_tax_exemption.py index ef2598aea..6ee5634c4 100644 --- a/stripe/_customer_tax_exemption.py +++ b/stripe/_customer_tax_exemption.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec from stripe._stripe_object import StripeObject -from typing import ClassVar, Optional +from typing import ClassVar, Optional, Union from typing_extensions import Literal @@ -30,11 +30,25 @@ class Es(StripeObject): Two-letter Spanish subdivision code (ISO 3166-2). Absent for country-wide Spain exemptions. """ + class ReasonDetails(StripeObject): + class Other(StripeObject): + reason_text: Optional[str] + """ + A free-text description of the exemption reason. + """ + + other: Optional[Other] + _inner_class_types = {"other": Other} + class Us(StripeObject): state: str """ Two-letter US state code (ISO 3166-2). """ + tax_code_group: Optional[Union[Literal["all", "saas"], str]] + """ + The group of tax codes this exemption applies to. Exemptions created without one have `all`. + """ ca: Optional[Ca] country: str @@ -74,5 +88,20 @@ class Us(StripeObject): """ String representing the object's type. Objects of the same type share the same value. """ + reason: Optional[ + Union[Literal["direct_pay_permit", "legacy_contract", "other"], str] + ] + """ + The reason the customer is exempt. + """ + reason_details: Optional[ReasonDetails] + """ + Additional details about the exemption reason. + """ us: Optional[Us] - _inner_class_types = {"ca": Ca, "es": Es, "us": Us} + _inner_class_types = { + "ca": Ca, + "es": Es, + "reason_details": ReasonDetails, + "us": Us, + } diff --git a/stripe/_event_notification_handler.py b/stripe/_event_notification_handler.py index 54e905cba..fe6785020 100644 --- a/stripe/_event_notification_handler.py +++ b/stripe/_event_notification_handler.py @@ -1275,6 +1275,12 @@ from stripe.events._v2_extend_extension_run_failed_event import ( V2ExtendExtensionRunFailedEventNotification, ) + from stripe.events._v2_extend_object_definition_created_event import ( + V2ExtendObjectDefinitionCreatedEventNotification, + ) + from stripe.events._v2_extend_object_definition_version_created_event import ( + V2ExtendObjectDefinitionVersionCreatedEventNotification, + ) from stripe.events._v2_extend_workflow_run_failed_event import ( V2ExtendWorkflowRunFailedEventNotification, ) @@ -7172,6 +7178,32 @@ def on_v2_extend_extension_run_failed( ) return func + def on_v2_extend_object_definition_created( + self, + func: "Callable[[V2ExtendObjectDefinitionCreatedEventNotification, StripeClient], CallbackReturn]", + ): + """ + Registers a callback for the `V2ExtendObjectDefinitionCreatedEvent` (`v2.extend.object_definition.created`) event notification. + """ + self._register( + "v2.extend.object_definition.created", + func, + ) + return func + + def on_v2_extend_object_definition_version_created( + self, + func: "Callable[[V2ExtendObjectDefinitionVersionCreatedEventNotification, StripeClient], CallbackReturn]", + ): + """ + Registers a callback for the `V2ExtendObjectDefinitionVersionCreatedEvent` (`v2.extend.object_definition_version.created`) event notification. + """ + self._register( + "v2.extend.object_definition_version.created", + func, + ) + return func + def on_v2_extend_workflow_run_failed( self, func: "Callable[[V2ExtendWorkflowRunFailedEventNotification, StripeClient], CallbackReturn]", diff --git a/stripe/_invoice.py b/stripe/_invoice.py index 12252f0fe..ef76e5bc5 100644 --- a/stripe/_invoice.py +++ b/stripe/_invoice.py @@ -974,7 +974,12 @@ class BacsDebit(StripeObject): Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: Optional[ - Union[Literal["automatic", "payer_name_verification"], str] + Union[ + Literal[ + "automatic", "instant", "payer_name_verification" + ], + str, + ] ] class Bancontact(StripeObject): @@ -1161,7 +1166,10 @@ class Pix(StripeObject): """ class SepaDebit(StripeObject): - pass + target_date: Optional[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ class Upi(StripeObject): class MandateOptions(StripeObject): diff --git a/stripe/_object_classes.py b/stripe/_object_classes.py index a1598e768..0a3dc214e 100644 --- a/stripe/_object_classes.py +++ b/stripe/_object_classes.py @@ -416,7 +416,9 @@ "stripe.tax._calculation_line_item", "CalculationLineItem", ), + "tax.certificate": ("stripe.tax._certificate", "Certificate"), "tax.form": ("stripe.tax._form", "Form"), + "tax.form_correction": ("stripe.tax._form_correction", "FormCorrection"), "tax.location": ("stripe.tax._location", "Location"), "tax.registration": ("stripe.tax._registration", "Registration"), "tax.settings": ("stripe.tax._settings", "Settings"), @@ -699,6 +701,14 @@ "stripe.v2.data._search_result_list", "SearchResultList", ), + "v2.extend.object_definition": ( + "stripe.v2.extend._object_definition", + "ObjectDefinition", + ), + "v2.extend.object_definition_version": ( + "stripe.v2.extend._object_definition_version", + "ObjectDefinitionVersion", + ), "v2.extend.workflow": ("stripe.v2.extend._workflow", "Workflow"), "v2.extend.workflow_run": ( "stripe.v2.extend._workflow_run", diff --git a/stripe/_payment_attempt_record.py b/stripe/_payment_attempt_record.py index 569159368..c30c60f48 100644 --- a/stripe/_payment_attempt_record.py +++ b/stripe/_payment_attempt_record.py @@ -143,6 +143,38 @@ class CustomerDetails(StripeObject): The customer's phone number. """ + class DisputeDetails(StripeObject): + class Reinstated(StripeObject): + currency: str + """ + 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). + """ + value: int + """ + A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + """ + + class Withdrawn(StripeObject): + currency: str + """ + 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). + """ + value: int + """ + A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + """ + + reinstated: UntypedStripeObject[Reinstated] + """ + Total amounts reinstated across all disputes, keyed by currency, with each value containing the total for that currency. Withdrawals are not subtracted from these totals. + """ + withdrawn: UntypedStripeObject[Withdrawn] + """ + Total amounts withdrawn across all disputes, keyed by currency, with each value containing the total for that currency. Reinstatements are not subtracted from these totals. + """ + _inner_class_types = {"reinstated": Reinstated, "withdrawn": Withdrawn} + _inner_class_dicts = ["reinstated", "withdrawn"] + class PaymentMethodDetails(StripeObject): class AchCreditTransfer(StripeObject): account_number: Optional[str] @@ -220,6 +252,9 @@ class AcssDebit(StripeObject): Transit number of the bank account. """ + class AeonPay(StripeObject): + pass + class Affirm(StripeObject): location: Optional[str] """ @@ -340,6 +375,9 @@ class AuBecsDebit(StripeObject): ID of the mandate used to make this payment. """ + class AuPay(StripeObject): + pass + class BacsDebit(StripeObject): expected_debit_date: Optional[str] """ @@ -772,6 +810,46 @@ class Link(StripeObject): } class CardPresent(StripeObject): + class Fleet(StripeObject): + class TransactionDatum(StripeObject): + prompt: Literal[ + "additional_fleet_data_1", + "additional_fleet_data_2", + "driver_id", + "employee_number", + "entered_data_alphanumeric", + "entered_data_numeric", + "generic_id", + "invoice_number", + "odometer", + "postal_code", + "reefer_hours", + "replacement_car", + "trailer_number", + "trip_number", + "unit_number", + "vehicle_id", + "vehicle_tag", + "work_order", + ] + """ + The prompt that the Terminal SDK displays to collect this Fleet value. + """ + receipt_behavior: Literal["omit", "print"] + """ + Whether the collected value is printed on the receipt. + """ + value: str + """ + The value collected for this Fleet prompt. + """ + + transaction_data: List[TransactionDatum] + """ + Fleet prompts and values collected for this transaction. + """ + _inner_class_types = {"transaction_data": TransactionDatum} + class Multicapture(StripeObject): status: Literal["available", "unavailable"] """ @@ -894,6 +972,7 @@ class Wallet(StripeObject): *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* """ + fleet: Optional[Fleet] funding: Optional[str] """ Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. @@ -980,6 +1059,7 @@ class Wallet(StripeObject): """ wallet: Optional[Wallet] _inner_class_types = { + "fleet": Fleet, "multicapture": Multicapture, "offline": Offline, "reauthorization": Reauthorization, @@ -1063,6 +1143,9 @@ class Custom(StripeObject): class CustomerBalance(StripeObject): pass + class Dbarai(StripeObject): + pass + class Eps(StripeObject): bank: Optional[ Union[ @@ -1605,6 +1688,9 @@ class Link(StripeObject): class MbWay(StripeObject): pass + class Merpay(StripeObject): + pass + class Mobilepay(StripeObject): class Card(StripeObject): brand: Optional[str] @@ -1900,6 +1986,10 @@ class VerifiedAddress(StripeObject): } class Paypay(StripeObject): + fingerprint: Optional[str] + """ + Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same. + """ mandate: Optional[str] """ ID of the multi-use Mandate created by, or used to make, this PayPay payment. @@ -2247,12 +2337,14 @@ class Zip(StripeObject): ach_credit_transfer: Optional[AchCreditTransfer] ach_debit: Optional[AchDebit] acss_debit: Optional[AcssDebit] + aeon_pay: Optional[AeonPay] affirm: Optional[Affirm] afterpay_clearpay: Optional[AfterpayClearpay] alipay: Optional[Alipay] alma: Optional[Alma] amazon_pay: Optional[AmazonPay] au_becs_debit: Optional[AuBecsDebit] + au_pay: Optional[AuPay] bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] @@ -2278,6 +2370,7 @@ class Zip(StripeObject): used for this payment attempt. """ customer_balance: Optional[CustomerBalance] + dbarai: Optional[Dbarai] eps: Optional[Eps] fpx: Optional[Fpx] getflex: Optional[Getflex] @@ -2294,6 +2387,7 @@ class Zip(StripeObject): kr_card: Optional[KrCard] link: Optional[Link] mb_way: Optional[MbWay] + merpay: Optional[Merpay] mobilepay: Optional[Mobilepay] momo: Optional[Momo] multibanco: Optional[Multibanco] @@ -2348,12 +2442,14 @@ class Zip(StripeObject): "ach_credit_transfer": AchCreditTransfer, "ach_debit": AchDebit, "acss_debit": AcssDebit, + "aeon_pay": AeonPay, "affirm": Affirm, "afterpay_clearpay": AfterpayClearpay, "alipay": Alipay, "alma": Alma, "amazon_pay": AmazonPay, "au_becs_debit": AuBecsDebit, + "au_pay": AuPay, "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, @@ -2368,6 +2464,7 @@ class Zip(StripeObject): "crypto": Crypto, "custom": Custom, "customer_balance": CustomerBalance, + "dbarai": Dbarai, "eps": Eps, "fpx": Fpx, "getflex": Getflex, @@ -2384,6 +2481,7 @@ class Zip(StripeObject): "kr_card": KrCard, "link": Link, "mb_way": MbWay, + "merpay": Merpay, "mobilepay": Mobilepay, "momo": Momo, "multibanco": Multibanco, @@ -2571,6 +2669,10 @@ class Address(StripeObject): """ An arbitrary string attached to the object. Often useful for displaying to users. """ + dispute_details: Optional[DisputeDetails] + """ + Summary information about disputes associated with this Payment Attempt Record. + """ id: str """ Unique identifier for the object. @@ -3643,6 +3745,7 @@ async def retrieve_async( "amount_refunded": AmountRefunded, "amount_requested": AmountRequested, "customer_details": CustomerDetails, + "dispute_details": DisputeDetails, "payment_method_details": PaymentMethodDetails, "processor_details": ProcessorDetails, "shipping_details": ShippingDetails, diff --git a/stripe/_payment_intent.py b/stripe/_payment_intent.py index 31135d202..4b804e530 100644 --- a/stripe/_payment_intent.py +++ b/stripe/_payment_intent.py @@ -1697,7 +1697,7 @@ class QrCode(StripeObject): class VerifyWithMicrodeposits(StripeObject): arrival_date: int """ - The timestamp when the microdeposits are expected to land. + The timestamp when the microdeposits are expected to land. Null for instant microdeposits. """ hosted_verification_url: str """ @@ -3577,12 +3577,16 @@ class AuBecsDebit(StripeObject): """ class BacsDebit(StripeObject): + class FinancialConnections(StripeObject): + return_url: Optional[str] + class MandateOptions(StripeObject): reference_prefix: Optional[str] """ Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. """ + financial_connections: Optional[FinancialConnections] mandate_options: Optional[MandateOptions] setup_future_usage: Optional[ Union[Literal["none", "off_session", "on_session"], str] @@ -3601,9 +3605,15 @@ class MandateOptions(StripeObject): Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: Optional[ - Union[Literal["automatic", "payer_name_verification"], str] + Union[ + Literal["automatic", "instant", "payer_name_verification"], + str, + ] ] - _inner_class_types = {"mandate_options": MandateOptions} + _inner_class_types = { + "financial_connections": FinancialConnections, + "mandate_options": MandateOptions, + } class Bancontact(StripeObject): preferred_language: Union[Literal["de", "en", "fr", "nl"], str] @@ -3855,6 +3865,30 @@ class MandateOptions(StripeObject): Specifies the type of mandates supported. Possible values are `india`. """ + class PaymentDetails(StripeObject): + class MoneyServices(StripeObject): + class AccountFunding(StripeObject): + digital_asset_category: Optional[ + Union[ + Literal[ + "blockchain_native", + "nft", + "other_non_fiat", + "stablecoin", + ], + str, + ] + ] + """ + The category of digital asset being acquired through this account funding transaction. + """ + + account_funding: Optional[AccountFunding] + _inner_class_types = {"account_funding": AccountFunding} + + money_services: Optional[MoneyServices] + _inner_class_types = {"money_services": MoneyServices} + class StatementDetails(StripeObject): class Address(StripeObject): city: Optional[str] @@ -3939,6 +3973,7 @@ class Address(StripeObject): """ Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time. """ + payment_details: Optional[PaymentDetails] request_card_account_update: Optional[ Literal["if_available", "never"] ] @@ -4034,6 +4069,7 @@ class Address(StripeObject): "capture_delay": CaptureDelay, "installments": Installments, "mandate_options": MandateOptions, + "payment_details": PaymentDetails, "statement_details": StatementDetails, } @@ -4120,6 +4156,30 @@ class TransactionDatum(StripeObject): """ _inner_class_types = {"transaction_data": TransactionDatum} + class PaymentDetails(StripeObject): + class MoneyServices(StripeObject): + class AccountFunding(StripeObject): + digital_asset_category: Optional[ + Union[ + Literal[ + "blockchain_native", + "nft", + "other_non_fiat", + "stablecoin", + ], + str, + ] + ] + """ + The category of digital asset being acquired through this account funding transaction. + """ + + account_funding: Optional[AccountFunding] + _inner_class_types = {"account_funding": AccountFunding} + + money_services: Optional[MoneyServices] + _inner_class_types = {"money_services": MoneyServices} + class Routing(StripeObject): requested_priority: Optional[ Union[Literal["domestic", "international"], str] @@ -4150,6 +4210,7 @@ class Routing(StripeObject): """ Fleet prompting data for this payment. """ + payment_details: Optional[PaymentDetails] request_extended_authorization: Optional[bool] """ Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity) @@ -4175,6 +4236,7 @@ class Routing(StripeObject): "aade_data": AadeData, "capture_delay": CaptureDelay, "fleet": Fleet, + "payment_details": PaymentDetails, "routing": Routing, } @@ -4821,7 +4883,7 @@ class Tax(StripeObject): class Paypay(StripeObject): setup_future_usage: Optional[ - Union[Literal["none", "off_session", "on_session"], str] + Union[Literal["none", "off_session"], str] ] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -5723,12 +5785,14 @@ class PaymentData(StripeObject): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -5745,6 +5809,7 @@ class PaymentData(StripeObject): "click_to_pay", "crypto", "customer_balance", + "dbarai", "demo_pay", "duitnow", "dummy_auth_push", @@ -5771,6 +5836,7 @@ class PaymentData(StripeObject): "kriya", "link", "mb_way", + "merpay", "mobilepay", "momo", "mondu", @@ -5933,12 +5999,14 @@ class PaymentData(StripeObject): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -5950,6 +6018,7 @@ class PaymentData(StripeObject): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -5964,6 +6033,7 @@ class PaymentData(StripeObject): "konbini", "kr_card", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", diff --git a/stripe/_payment_intent_amount_details_line_item.py b/stripe/_payment_intent_amount_details_line_item.py index 329466a60..a02974023 100644 --- a/stripe/_payment_intent_amount_details_line_item.py +++ b/stripe/_payment_intent_amount_details_line_item.py @@ -65,7 +65,57 @@ class FleetData(StripeObject): } class CardPresent(StripeObject): + class EvCharging(StripeObject): + carbon_footprint_avoided_grams_co2: Optional[int] + """ + The carbon footprint avoided by the charging session, in grams of CO2. + """ + charging_ended_at: Optional[int] + """ + The time the charging session ended, measured in seconds since the Unix epoch. + """ + charging_power_output_capacity_kw: Optional[int] + """ + The power output capacity of the charging station, in kilowatts (kW). + """ + charging_started_at: Optional[int] + """ + The time the charging session started, measured in seconds since the Unix epoch. + """ + connector_type: Optional[str] + """ + The type of connector used for the charging session. + """ + estimated_range_added: Optional[int] + """ + The estimated distance in kilometers or miles added to the vehicle during the charging session. + """ + estimated_range_left: Optional[int] + """ + The estimated distance in kilometers or miles remaining in the vehicle after the charging session. + """ + maximum_power_dispensed_kw: Optional[int] + """ + The maximum power dispensed during the charging session, in kilowatts (kW). + """ + + class FleetData(StripeObject): + product_type: Optional[str] + """ + The type of product being purchased at this line item. + """ + service_type: Optional[str] + """ + The type of service received at the acceptor location. + """ + commodity_code: Optional[str] + ev_charging: Optional[EvCharging] + fleet_data: Optional[FleetData] + _inner_class_types = { + "ev_charging": EvCharging, + "fleet_data": FleetData, + } class Klarna(StripeObject): image_url: Optional[str] diff --git a/stripe/_payment_link.py b/stripe/_payment_link.py index 2b9976086..9e1b1464f 100644 --- a/stripe/_payment_link.py +++ b/stripe/_payment_link.py @@ -991,6 +991,7 @@ class TransferData(StripeObject): "sofort", "sunbit", "swish", + "tamara", "twint", "upi", "us_bank_account", diff --git a/stripe/_payment_method.py b/stripe/_payment_method.py index 846ad5db4..04ec076f3 100644 --- a/stripe/_payment_method.py +++ b/stripe/_payment_method.py @@ -80,6 +80,9 @@ class AcssDebit(StripeObject): Transit number of the bank account. """ + class AeonPay(StripeObject): + pass + class Affirm(StripeObject): pass @@ -109,6 +112,9 @@ class AuBecsDebit(StripeObject): Last four digits of the bank account number. """ + class AuPay(StripeObject): + pass + class BacsDebit(StripeObject): fingerprint: Optional[str] """ @@ -224,6 +230,48 @@ class Checks(StripeObject): class GeneratedFrom(StripeObject): class PaymentMethodDetails(StripeObject): class CardPresent(StripeObject): + class Fleet(StripeObject): + class TransactionDatum(StripeObject): + prompt: Literal[ + "additional_fleet_data_1", + "additional_fleet_data_2", + "driver_id", + "employee_number", + "entered_data_alphanumeric", + "entered_data_numeric", + "generic_id", + "invoice_number", + "odometer", + "postal_code", + "reefer_hours", + "replacement_car", + "trailer_number", + "trip_number", + "unit_number", + "vehicle_id", + "vehicle_tag", + "work_order", + ] + """ + The prompt that the Terminal SDK displays to collect this Fleet value. + """ + receipt_behavior: Literal["omit", "print"] + """ + Whether the collected value is printed on the receipt. + """ + value: str + """ + The value collected for this Fleet prompt. + """ + + transaction_data: List[TransactionDatum] + """ + Fleet prompts and values collected for this transaction. + """ + _inner_class_types = { + "transaction_data": TransactionDatum, + } + class Multicapture(StripeObject): status: Literal["available", "unavailable"] """ @@ -351,6 +399,7 @@ class Wallet(StripeObject): *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* """ + fleet: Optional[Fleet] funding: Optional[str] """ Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. @@ -437,6 +486,7 @@ class Wallet(StripeObject): """ wallet: Optional[Wallet] _inner_class_types = { + "fleet": Fleet, "multicapture": Multicapture, "offline": Offline, "reauthorization": Reauthorization, @@ -931,6 +981,9 @@ class Logo(StripeObject): class CustomerBalance(StripeObject): pass + class Dbarai(StripeObject): + pass + class Eps(StripeObject): bank: Optional[ Union[ @@ -1279,6 +1332,9 @@ class Link(StripeObject): class MbWay(StripeObject): pass + class Merpay(StripeObject): + pass + class Mobilepay(StripeObject): pass @@ -1668,6 +1724,7 @@ class Zip(StripeObject): pass acss_debit: Optional[AcssDebit] + aeon_pay: Optional[AeonPay] affirm: Optional[Affirm] afterpay_clearpay: Optional[AfterpayClearpay] alipay: Optional[Alipay] @@ -1680,6 +1737,7 @@ class Zip(StripeObject): alma: Optional[Alma] amazon_pay: Optional[AmazonPay] au_becs_debit: Optional[AuBecsDebit] + au_pay: Optional[AuPay] bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] @@ -1703,6 +1761,7 @@ class Zip(StripeObject): """ customer_account: Optional[str] customer_balance: Optional[CustomerBalance] + dbarai: Optional[Dbarai] eps: Optional[Eps] fpx: Optional[Fpx] getflex: Optional[Getflex] @@ -1731,6 +1790,7 @@ class Zip(StripeObject): If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. """ mb_way: Optional[MbWay] + merpay: Optional[Merpay] metadata: Optional[UntypedStripeObject[str]] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. @@ -1786,12 +1846,14 @@ class Zip(StripeObject): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -1805,6 +1867,7 @@ class Zip(StripeObject): "crypto", "custom", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -1821,6 +1884,7 @@ class Zip(StripeObject): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -2452,12 +2516,14 @@ async def retrieve_async( _inner_class_types = { "acss_debit": AcssDebit, + "aeon_pay": AeonPay, "affirm": Affirm, "afterpay_clearpay": AfterpayClearpay, "alipay": Alipay, "alma": Alma, "amazon_pay": AmazonPay, "au_becs_debit": AuBecsDebit, + "au_pay": AuPay, "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, @@ -2472,6 +2538,7 @@ async def retrieve_async( "crypto": Crypto, "custom": Custom, "customer_balance": CustomerBalance, + "dbarai": Dbarai, "eps": Eps, "fpx": Fpx, "getflex": Getflex, @@ -2488,6 +2555,7 @@ async def retrieve_async( "kr_card": KrCard, "link": Link, "mb_way": MbWay, + "merpay": Merpay, "mobilepay": Mobilepay, "multibanco": Multibanco, "naver_pay": NaverPay, diff --git a/stripe/_payment_method_configuration.py b/stripe/_payment_method_configuration.py index f1450375f..5a98ec3c5 100644 --- a/stripe/_payment_method_configuration.py +++ b/stripe/_payment_method_configuration.py @@ -1128,6 +1128,28 @@ class DisplayPreference(StripeObject): display_preference: DisplayPreference _inner_class_types = {"display_preference": DisplayPreference} + class RakutenPay(StripeObject): + class DisplayPreference(StripeObject): + overridable: Optional[bool] + """ + For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + """ + preference: Union[Literal["none", "off", "on"], str] + """ + The account's display preference. + """ + value: Union[Literal["off", "on"], str] + """ + The effective display preference value. + """ + + available: bool + """ + Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + """ + display_preference: DisplayPreference + _inner_class_types = {"display_preference": DisplayPreference} + class RevolutPay(StripeObject): class DisplayPreference(StripeObject): overridable: Optional[bool] @@ -1561,6 +1583,7 @@ class DisplayPreference(StripeObject): pix: Optional[Pix] promptpay: Optional[Promptpay] qris: Optional[Qris] + rakuten_pay: Optional[RakutenPay] revolut_pay: Optional[RevolutPay] samsung_pay: Optional[SamsungPay] satispay: Optional[Satispay] @@ -1766,6 +1789,7 @@ async def retrieve_async( "pix": Pix, "promptpay": Promptpay, "qris": Qris, + "rakuten_pay": RakutenPay, "revolut_pay": RevolutPay, "samsung_pay": SamsungPay, "satispay": Satispay, diff --git a/stripe/_payment_record.py b/stripe/_payment_record.py index 14b64b868..584fed8c8 100644 --- a/stripe/_payment_record.py +++ b/stripe/_payment_record.py @@ -158,6 +158,38 @@ class CustomerDetails(StripeObject): The customer's phone number. """ + class DisputeDetails(StripeObject): + class Reinstated(StripeObject): + currency: str + """ + 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). + """ + value: int + """ + A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + """ + + class Withdrawn(StripeObject): + currency: str + """ + 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). + """ + value: int + """ + A positive integer representing the amount in the currency's [minor unit](https://docs.stripe.com/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + """ + + reinstated: UntypedStripeObject[Reinstated] + """ + Total amounts reinstated across all disputes, keyed by currency, with each value containing the total for that currency. Withdrawals are not subtracted from these totals. + """ + withdrawn: UntypedStripeObject[Withdrawn] + """ + Total amounts withdrawn across all disputes, keyed by currency, with each value containing the total for that currency. Reinstatements are not subtracted from these totals. + """ + _inner_class_types = {"reinstated": Reinstated, "withdrawn": Withdrawn} + _inner_class_dicts = ["reinstated", "withdrawn"] + class PaymentMethodDetails(StripeObject): class AchCreditTransfer(StripeObject): account_number: Optional[str] @@ -235,6 +267,9 @@ class AcssDebit(StripeObject): Transit number of the bank account. """ + class AeonPay(StripeObject): + pass + class Affirm(StripeObject): location: Optional[str] """ @@ -355,6 +390,9 @@ class AuBecsDebit(StripeObject): ID of the mandate used to make this payment. """ + class AuPay(StripeObject): + pass + class BacsDebit(StripeObject): expected_debit_date: Optional[str] """ @@ -787,6 +825,46 @@ class Link(StripeObject): } class CardPresent(StripeObject): + class Fleet(StripeObject): + class TransactionDatum(StripeObject): + prompt: Literal[ + "additional_fleet_data_1", + "additional_fleet_data_2", + "driver_id", + "employee_number", + "entered_data_alphanumeric", + "entered_data_numeric", + "generic_id", + "invoice_number", + "odometer", + "postal_code", + "reefer_hours", + "replacement_car", + "trailer_number", + "trip_number", + "unit_number", + "vehicle_id", + "vehicle_tag", + "work_order", + ] + """ + The prompt that the Terminal SDK displays to collect this Fleet value. + """ + receipt_behavior: Literal["omit", "print"] + """ + Whether the collected value is printed on the receipt. + """ + value: str + """ + The value collected for this Fleet prompt. + """ + + transaction_data: List[TransactionDatum] + """ + Fleet prompts and values collected for this transaction. + """ + _inner_class_types = {"transaction_data": TransactionDatum} + class Multicapture(StripeObject): status: Literal["available", "unavailable"] """ @@ -909,6 +987,7 @@ class Wallet(StripeObject): *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* """ + fleet: Optional[Fleet] funding: Optional[str] """ Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. @@ -995,6 +1074,7 @@ class Wallet(StripeObject): """ wallet: Optional[Wallet] _inner_class_types = { + "fleet": Fleet, "multicapture": Multicapture, "offline": Offline, "reauthorization": Reauthorization, @@ -1078,6 +1158,9 @@ class Custom(StripeObject): class CustomerBalance(StripeObject): pass + class Dbarai(StripeObject): + pass + class Eps(StripeObject): bank: Optional[ Union[ @@ -1620,6 +1703,9 @@ class Link(StripeObject): class MbWay(StripeObject): pass + class Merpay(StripeObject): + pass + class Mobilepay(StripeObject): class Card(StripeObject): brand: Optional[str] @@ -1915,6 +2001,10 @@ class VerifiedAddress(StripeObject): } class Paypay(StripeObject): + fingerprint: Optional[str] + """ + Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same. + """ mandate: Optional[str] """ ID of the multi-use Mandate created by, or used to make, this PayPay payment. @@ -2262,12 +2352,14 @@ class Zip(StripeObject): ach_credit_transfer: Optional[AchCreditTransfer] ach_debit: Optional[AchDebit] acss_debit: Optional[AcssDebit] + aeon_pay: Optional[AeonPay] affirm: Optional[Affirm] afterpay_clearpay: Optional[AfterpayClearpay] alipay: Optional[Alipay] alma: Optional[Alma] amazon_pay: Optional[AmazonPay] au_becs_debit: Optional[AuBecsDebit] + au_pay: Optional[AuPay] bacs_debit: Optional[BacsDebit] bancontact: Optional[Bancontact] billie: Optional[Billie] @@ -2293,6 +2385,7 @@ class Zip(StripeObject): used for this payment attempt. """ customer_balance: Optional[CustomerBalance] + dbarai: Optional[Dbarai] eps: Optional[Eps] fpx: Optional[Fpx] getflex: Optional[Getflex] @@ -2309,6 +2402,7 @@ class Zip(StripeObject): kr_card: Optional[KrCard] link: Optional[Link] mb_way: Optional[MbWay] + merpay: Optional[Merpay] mobilepay: Optional[Mobilepay] momo: Optional[Momo] multibanco: Optional[Multibanco] @@ -2363,12 +2457,14 @@ class Zip(StripeObject): "ach_credit_transfer": AchCreditTransfer, "ach_debit": AchDebit, "acss_debit": AcssDebit, + "aeon_pay": AeonPay, "affirm": Affirm, "afterpay_clearpay": AfterpayClearpay, "alipay": Alipay, "alma": Alma, "amazon_pay": AmazonPay, "au_becs_debit": AuBecsDebit, + "au_pay": AuPay, "bacs_debit": BacsDebit, "bancontact": Bancontact, "billie": Billie, @@ -2383,6 +2479,7 @@ class Zip(StripeObject): "crypto": Crypto, "custom": Custom, "customer_balance": CustomerBalance, + "dbarai": Dbarai, "eps": Eps, "fpx": Fpx, "getflex": Getflex, @@ -2399,6 +2496,7 @@ class Zip(StripeObject): "kr_card": KrCard, "link": Link, "mb_way": MbWay, + "merpay": Merpay, "mobilepay": Mobilepay, "momo": Momo, "multibanco": Multibanco, @@ -2586,6 +2684,10 @@ class Address(StripeObject): """ An arbitrary string attached to the object. Often useful for displaying to users. """ + dispute_details: Optional[DisputeDetails] + """ + Summary information about disputes associated with this Payment Record. + """ id: str """ Unique identifier for the object. @@ -3662,6 +3764,7 @@ async def search_auto_paging_iter_async( "amount_refunded": AmountRefunded, "amount_requested": AmountRequested, "customer_details": CustomerDetails, + "dispute_details": DisputeDetails, "payment_method_details": PaymentMethodDetails, "processor_details": ProcessorDetails, "shipping_details": ShippingDetails, diff --git a/stripe/_quote_preview_invoice.py b/stripe/_quote_preview_invoice.py index c21651bbd..2de711cb0 100644 --- a/stripe/_quote_preview_invoice.py +++ b/stripe/_quote_preview_invoice.py @@ -899,7 +899,12 @@ class BacsDebit(StripeObject): Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: Optional[ - Union[Literal["automatic", "payer_name_verification"], str] + Union[ + Literal[ + "automatic", "instant", "payer_name_verification" + ], + str, + ] ] class Bancontact(StripeObject): diff --git a/stripe/_refund.py b/stripe/_refund.py index 5c4d381b9..21db8bf5d 100644 --- a/stripe/_refund.py +++ b/stripe/_refund.py @@ -67,6 +67,16 @@ class AmazonPay(StripeObject): class AuBankTransfer(StripeObject): pass + class Bizum(StripeObject): + reference: Optional[str] + """ + The reference assigned to the refund. + """ + reference_status: Optional[str] + """ + Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + """ + class Blik(StripeObject): network_decline_code: Optional[str] """ @@ -279,6 +289,16 @@ class ThBankTransfer(StripeObject): class Twint(StripeObject): pass + class Upi(StripeObject): + reference: Optional[str] + """ + The reference assigned to the refund. + """ + reference_status: Optional[str] + """ + Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. + """ + class UsBankTransfer(StripeObject): reference: Optional[str] """ @@ -301,6 +321,7 @@ class Zip(StripeObject): alma: Optional[Alma] amazon_pay: Optional[AmazonPay] au_bank_transfer: Optional[AuBankTransfer] + bizum: Optional[Bizum] blik: Optional[Blik] br_bank_transfer: Optional[BrBankTransfer] card: Optional[Card] @@ -333,6 +354,7 @@ class Zip(StripeObject): """ The type of transaction-specific details of the payment method used in the refund (e.g., `card`). An additional hash is included on `destination_details` with a name matching this value. It contains information specific to the refund transaction. """ + upi: Optional[Upi] us_bank_transfer: Optional[UsBankTransfer] wechat_pay: Optional[WechatPay] zip: Optional[Zip] @@ -343,6 +365,7 @@ class Zip(StripeObject): "alma": Alma, "amazon_pay": AmazonPay, "au_bank_transfer": AuBankTransfer, + "bizum": Bizum, "blik": Blik, "br_bank_transfer": BrBankTransfer, "card": Card, @@ -371,6 +394,7 @@ class Zip(StripeObject): "swish": Swish, "th_bank_transfer": ThBankTransfer, "twint": Twint, + "upi": Upi, "us_bank_transfer": UsBankTransfer, "wechat_pay": WechatPay, "zip": Zip, @@ -480,6 +504,10 @@ class PresentmentDetails(StripeObject): """ ID of the payment method associated with this refund. """ + payment_record: Optional[str] + """ + ID of the PaymentRecord associated with the payment that has been refunded. + """ pending_reason: Optional[ Union[ Literal["charge_pending", "insufficient_funds", "processing"], str diff --git a/stripe/_setup_attempt.py b/stripe/_setup_attempt.py index 018d8f40a..819561d4d 100644 --- a/stripe/_setup_attempt.py +++ b/stripe/_setup_attempt.py @@ -410,7 +410,10 @@ class Paypal(StripeObject): pass class Paypay(StripeObject): - pass + fingerprint: Optional[str] + """ + Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same. + """ class Payto(StripeObject): pass diff --git a/stripe/_setup_intent.py b/stripe/_setup_intent.py index 16f673a91..fc4e569e4 100644 --- a/stripe/_setup_intent.py +++ b/stripe/_setup_intent.py @@ -511,7 +511,7 @@ class QrCode(StripeObject): class VerifyWithMicrodeposits(StripeObject): arrival_date: int """ - The timestamp when the microdeposits are expected to land. + The timestamp when the microdeposits are expected to land. Null for instant microdeposits. """ hosted_verification_url: str """ @@ -624,7 +624,10 @@ class MandateOptions(StripeObject): mandate_options: Optional[MandateOptions] verification_method: Optional[ - Union[Literal["automatic", "payer_name_verification"], str] + Union[ + Literal["automatic", "instant", "payer_name_verification"], + str, + ] ] _inner_class_types = {"mandate_options": MandateOptions} @@ -1039,6 +1042,16 @@ class MandateOptions(StripeObject): "us_bank_account": UsBankAccount, } + class RadarOptions(StripeObject): + is_free_trial_transaction: Optional[bool] + """ + The value you provided for whether this transaction starts a free trial. This is null if you haven't explicitly set it. + """ + session: Optional[str] + """ + A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. + """ + class Redaction(StripeObject): status: Union[Literal["processing", "redacted", "validated"], str] """ @@ -1076,12 +1089,14 @@ class FrMealVoucher(StripeObject): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -1098,6 +1113,7 @@ class FrMealVoucher(StripeObject): "click_to_pay", "crypto", "customer_balance", + "dbarai", "demo_pay", "duitnow", "dummy_auth_push", @@ -1124,6 +1140,7 @@ class FrMealVoucher(StripeObject): "kriya", "link", "mb_way", + "merpay", "mobilepay", "momo", "mondu", @@ -1238,12 +1255,14 @@ class FrMealVoucher(StripeObject): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -1255,6 +1274,7 @@ class FrMealVoucher(StripeObject): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -1269,6 +1289,7 @@ class FrMealVoucher(StripeObject): "konbini", "kr_card", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -1375,6 +1396,10 @@ class FrMealVoucher(StripeObject): """ The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). """ + radar_options: Optional[RadarOptions] + """ + Options to configure Radar. + """ redaction: Optional[Redaction] """ Redaction status of this SetupIntent. If the SetupIntent isn't redacted, this field is null. @@ -2014,6 +2039,7 @@ async def verify_microdeposits_async( "next_action": NextAction, "payment_method_configuration_details": PaymentMethodConfigurationDetails, "payment_method_options": PaymentMethodOptions, + "radar_options": RadarOptions, "redaction": Redaction, "setup_details": SetupDetails, } diff --git a/stripe/_subscription.py b/stripe/_subscription.py index 555aaeca2..d8b825d74 100644 --- a/stripe/_subscription.py +++ b/stripe/_subscription.py @@ -405,7 +405,12 @@ class BacsDebit(StripeObject): Controls when the funds will be captured from the customer's account. """ verification_method: Optional[ - Union[Literal["automatic", "payer_name_verification"], str] + Union[ + Literal[ + "automatic", "instant", "payer_name_verification" + ], + str, + ] ] class Bancontact(StripeObject): @@ -1100,7 +1105,7 @@ class EndBehavior(StripeObject): automatic_tax: AutomaticTax billing_cadence: Optional[str] """ - The Billing Cadence which controls the timing of recurring invoice generation for this subscription.If unset, the subscription will bill according to its own configured schedule and create its own invoices.If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence. + The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence. """ billing_cycle_anchor: int """ @@ -1110,6 +1115,10 @@ class EndBehavior(StripeObject): """ The fixed values used to calculate the `billing_cycle_anchor`. """ + billing_group: Optional[str] + """ + The Billing Group which controls the timing of recurring invoice generation for this subscription.If unset, the subscription will bill according to its own configured schedule and create its own invoices.If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence. + """ billing_mode: BillingMode """ The billing mode of the subscription. diff --git a/stripe/_tax_service.py b/stripe/_tax_service.py index 970381939..78b51d503 100644 --- a/stripe/_tax_service.py +++ b/stripe/_tax_service.py @@ -7,6 +7,7 @@ if TYPE_CHECKING: from stripe.tax._association_service import AssociationService from stripe.tax._calculation_service import CalculationService + from stripe.tax._certificate_service import CertificateService from stripe.tax._form_service import FormService from stripe.tax._location_service import LocationService from stripe.tax._registration_service import RegistrationService @@ -16,6 +17,7 @@ _subservices = { "associations": ["stripe.tax._association_service", "AssociationService"], "calculations": ["stripe.tax._calculation_service", "CalculationService"], + "certificates": ["stripe.tax._certificate_service", "CertificateService"], "forms": ["stripe.tax._form_service", "FormService"], "locations": ["stripe.tax._location_service", "LocationService"], "registrations": [ @@ -30,6 +32,7 @@ class TaxService(StripeService): associations: "AssociationService" calculations: "CalculationService" + certificates: "CertificateService" forms: "FormService" locations: "LocationService" registrations: "RegistrationService" diff --git a/stripe/apps/_install.py b/stripe/apps/_install.py index c40ac4da4..d4e6db483 100644 --- a/stripe/apps/_install.py +++ b/stripe/apps/_install.py @@ -133,7 +133,7 @@ class ContentSecurityPolicyPending(StripeObject): @classmethod def create(cls, **params: Unpack["InstallCreateParams"]) -> "Install": """ - Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned. + Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app and the platform has accepted the Embedding Platform Terms and Conditions in the Dashboard. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned. """ return cast( "Install", @@ -149,7 +149,7 @@ async def create_async( cls, **params: Unpack["InstallCreateParams"] ) -> "Install": """ - Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned. + Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app and the platform has accepted the Embedding Platform Terms and Conditions in the Dashboard. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned. """ return cast( "Install", diff --git a/stripe/apps/_install_service.py b/stripe/apps/_install_service.py index 930d3be45..07ff26625 100644 --- a/stripe/apps/_install_service.py +++ b/stripe/apps/_install_service.py @@ -65,7 +65,7 @@ def create( options: Optional["RequestOptions"] = None, ) -> "Install": """ - Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned. + Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app and the platform has accepted the Embedding Platform Terms and Conditions in the Dashboard. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned. """ return cast( "Install", @@ -84,7 +84,7 @@ async def create_async( options: Optional["RequestOptions"] = None, ) -> "Install": """ - Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned. + Creates an app install. An account installs its own private app with its own key; public and testing installs are made from the Dashboard. An app developer acting on a connected account through Stripe-Account installs or reinstalls its app there, and an embedding platform can do the same once the app's developer approves its request to embed the app and the platform has accepted the Embedding Platform Terms and Conditions in the Dashboard. For a private app, creating an install installs the newest completed upload; when that version is already installed with nothing pending, the existing install is returned. """ return cast( "Install", diff --git a/stripe/checkout/_session.py b/stripe/checkout/_session.py index bcbb50f62..f4627fd11 100644 --- a/stripe/checkout/_session.py +++ b/stripe/checkout/_session.py @@ -1764,7 +1764,7 @@ class MandateOptions(StripeObject): Payment schedule for the mandate. """ transaction_type: Optional[ - Union[Literal["business", "personal"], str] + Union[Literal["business", "buyer_choice", "personal"], str] ] """ Transaction type of the mandate. @@ -1908,7 +1908,10 @@ class MandateOptions(StripeObject): Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: Optional[ - Union[Literal["automatic", "payer_name_verification"], str] + Union[ + Literal["automatic", "instant", "payer_name_verification"], + str, + ] ] _inner_class_types = {"mandate_options": MandateOptions} @@ -2467,6 +2470,18 @@ class Paypal(StripeObject): """ class Paypay(StripeObject): + setup_future_usage: Optional[ + Union[Literal["none", "off_session"], str] + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ subscription_reference: Optional[str] """ A reference to the merchant subscription this payment corresponds to. @@ -2710,6 +2725,20 @@ class Sofort(StripeObject): When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). """ + class StripeBalance(StripeObject): + setup_future_usage: Optional[ + Union[Literal["none", "off_session"], str] + ] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ + class Sunbit(StripeObject): capture_method: Optional[Literal["manual"]] """ @@ -2933,6 +2962,7 @@ class WechatPay(StripeObject): sepa_debit: Optional[SepaDebit] sequra: Optional[Sequra] sofort: Optional[Sofort] + stripe_balance: Optional[StripeBalance] sunbit: Optional[Sunbit] swish: Optional[Swish] twint: Optional[Twint] @@ -2983,6 +3013,7 @@ class WechatPay(StripeObject): "sepa_debit": SepaDebit, "sequra": Sequra, "sofort": Sofort, + "stripe_balance": StripeBalance, "sunbit": Sunbit, "swish": Swish, "twint": Twint, diff --git a/stripe/events/__init__.py b/stripe/events/__init__.py index cff525270..666323341 100644 --- a/stripe/events/__init__.py +++ b/stripe/events/__init__.py @@ -1663,6 +1663,14 @@ V2ExtendExtensionRunFailedEvent as V2ExtendExtensionRunFailedEvent, V2ExtendExtensionRunFailedEventNotification as V2ExtendExtensionRunFailedEventNotification, ) + from stripe.events._v2_extend_object_definition_created_event import ( + V2ExtendObjectDefinitionCreatedEvent as V2ExtendObjectDefinitionCreatedEvent, + V2ExtendObjectDefinitionCreatedEventNotification as V2ExtendObjectDefinitionCreatedEventNotification, + ) + from stripe.events._v2_extend_object_definition_version_created_event import ( + V2ExtendObjectDefinitionVersionCreatedEvent as V2ExtendObjectDefinitionVersionCreatedEvent, + V2ExtendObjectDefinitionVersionCreatedEventNotification as V2ExtendObjectDefinitionVersionCreatedEventNotification, + ) from stripe.events._v2_extend_workflow_run_failed_event import ( V2ExtendWorkflowRunFailedEvent as V2ExtendWorkflowRunFailedEvent, V2ExtendWorkflowRunFailedEventNotification as V2ExtendWorkflowRunFailedEventNotification, @@ -5392,6 +5400,22 @@ "stripe.events._v2_extend_extension_run_failed_event", False, ), + "V2ExtendObjectDefinitionCreatedEvent": ( + "stripe.events._v2_extend_object_definition_created_event", + False, + ), + "V2ExtendObjectDefinitionCreatedEventNotification": ( + "stripe.events._v2_extend_object_definition_created_event", + False, + ), + "V2ExtendObjectDefinitionVersionCreatedEvent": ( + "stripe.events._v2_extend_object_definition_version_created_event", + False, + ), + "V2ExtendObjectDefinitionVersionCreatedEventNotification": ( + "stripe.events._v2_extend_object_definition_version_created_event", + False, + ), "V2ExtendWorkflowRunFailedEvent": ( "stripe.events._v2_extend_workflow_run_failed_event", False, diff --git a/stripe/events/_event_classes.py b/stripe/events/_event_classes.py index 2306b0d67..ff0d99aad 100644 --- a/stripe/events/_event_classes.py +++ b/stripe/events/_event_classes.py @@ -1243,6 +1243,12 @@ from stripe.events._v2_extend_extension_run_failed_event import ( V2ExtendExtensionRunFailedEventNotification, ) + from stripe.events._v2_extend_object_definition_created_event import ( + V2ExtendObjectDefinitionCreatedEventNotification, + ) + from stripe.events._v2_extend_object_definition_version_created_event import ( + V2ExtendObjectDefinitionVersionCreatedEventNotification, + ) from stripe.events._v2_extend_workflow_run_failed_event import ( V2ExtendWorkflowRunFailedEventNotification, ) @@ -3299,6 +3305,14 @@ "stripe.events._v2_extend_extension_run_failed_event", "V2ExtendExtensionRunFailedEvent", ), + "v2.extend.object_definition.created": ( + "stripe.events._v2_extend_object_definition_created_event", + "V2ExtendObjectDefinitionCreatedEvent", + ), + "v2.extend.object_definition_version.created": ( + "stripe.events._v2_extend_object_definition_version_created_event", + "V2ExtendObjectDefinitionVersionCreatedEvent", + ), "v2.extend.workflow_run.failed": ( "stripe.events._v2_extend_workflow_run_failed_event", "V2ExtendWorkflowRunFailedEvent", @@ -5502,6 +5516,14 @@ def get_v2_event_class(type_: str): "stripe.events._v2_extend_extension_run_failed_event", "V2ExtendExtensionRunFailedEventNotification", ), + "v2.extend.object_definition.created": ( + "stripe.events._v2_extend_object_definition_created_event", + "V2ExtendObjectDefinitionCreatedEventNotification", + ), + "v2.extend.object_definition_version.created": ( + "stripe.events._v2_extend_object_definition_version_created_event", + "V2ExtendObjectDefinitionVersionCreatedEventNotification", + ), "v2.extend.workflow_run.failed": ( "stripe.events._v2_extend_workflow_run_failed_event", "V2ExtendWorkflowRunFailedEventNotification", @@ -6469,6 +6491,8 @@ def get_v2_event_notification_class(type_: str): "V2DataReportRunSucceededEventNotification", "V2DataReportRunUpdatedEventNotification", "V2ExtendExtensionRunFailedEventNotification", + "V2ExtendObjectDefinitionCreatedEventNotification", + "V2ExtendObjectDefinitionVersionCreatedEventNotification", "V2ExtendWorkflowRunFailedEventNotification", "V2ExtendWorkflowRunStartedEventNotification", "V2ExtendWorkflowRunSucceededEventNotification", diff --git a/stripe/events/_v2_extend_object_definition_created_event.py b/stripe/events/_v2_extend_object_definition_created_event.py new file mode 100644 index 000000000..4149edef4 --- /dev/null +++ b/stripe/events/_v2_extend_object_definition_created_event.py @@ -0,0 +1,153 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._api_mode import ApiMode +from stripe._stripe_object import StripeObject +from stripe._stripe_response import StripeResponse +from stripe._util import get_api_mode +from stripe.v2.core._event import Event, EventNotification, RelatedObject +from typing import Any, Dict, Optional, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._api_requestor import _APIRequestor + from stripe._stripe_client import StripeClient + from stripe.v2.extend._object_definition import ObjectDefinition + + +class V2ExtendObjectDefinitionCreatedEventNotification(EventNotification): + LOOKUP_TYPE = "v2.extend.object_definition.created" + type: Literal["v2.extend.object_definition.created"] + related_object: RelatedObject + + def __init__( + self, parsed_body: Dict[str, Any], client: "StripeClient" + ) -> None: + super().__init__( + parsed_body, + client, + ) + self.related_object = RelatedObject(parsed_body["related_object"]) + + @override + def fetch_event(self) -> "V2ExtendObjectDefinitionCreatedEvent": + return cast( + "V2ExtendObjectDefinitionCreatedEvent", + super().fetch_event(), + ) + + def fetch_related_object(self) -> "ObjectDefinition": + response = self._client.raw_request( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ObjectDefinition", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2ExtendObjectDefinitionCreatedEvent": + return cast( + "V2ExtendObjectDefinitionCreatedEvent", + await super().fetch_event_async(), + ) + + async def fetch_related_object_async(self) -> "ObjectDefinition": + response = await self._client.raw_request_async( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ObjectDefinition", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + +class V2ExtendObjectDefinitionCreatedEvent(Event): + LOOKUP_TYPE = "v2.extend.object_definition.created" + type: Literal["v2.extend.object_definition.created"] + + class V2ExtendObjectDefinitionCreatedEventData(StripeObject): + api_name_singular: str + """ + The singular API name of the object definition. + """ + + data: V2ExtendObjectDefinitionCreatedEventData + """ + Data for the v2.extend.object_definition.created event + """ + + @classmethod + def _construct_from( + cls, + *, + values: Dict[str, Any], + last_response: Optional[StripeResponse] = None, + requestor: "_APIRequestor", + api_mode: ApiMode, + ) -> "V2ExtendObjectDefinitionCreatedEvent": + evt = super()._construct_from( + values=values, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + if hasattr(evt, "data"): + evt.data = V2ExtendObjectDefinitionCreatedEvent.V2ExtendObjectDefinitionCreatedEventData._construct_from( + values=evt.data, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + return evt + + class RelatedObject(StripeObject): + id: str + """ + Unique identifier for the object relevant to the event. + """ + type: str + """ + Type of the object relevant to the event. + """ + url: str + """ + URL to retrieve the resource. + """ + + related_object: RelatedObject + """ + Object containing the reference to API resource relevant to the event + """ + + def fetch_related_object(self) -> "ObjectDefinition": + """ + Retrieves the related object from the API. Makes an API request on every call. + """ + return cast( + "ObjectDefinition", + self._requestor.request( + "get", + self.related_object.url, + base_address="api", + options={ + "stripe_context": self.context, + "headers": {"Stripe-Request-Trigger": f"event={self.id}"}, + }, + ), + ) diff --git a/stripe/events/_v2_extend_object_definition_version_created_event.py b/stripe/events/_v2_extend_object_definition_version_created_event.py new file mode 100644 index 000000000..55f357f46 --- /dev/null +++ b/stripe/events/_v2_extend_object_definition_version_created_event.py @@ -0,0 +1,165 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._api_mode import ApiMode +from stripe._stripe_object import StripeObject +from stripe._stripe_response import StripeResponse +from stripe._util import get_api_mode +from stripe.v2.core._event import Event, EventNotification, RelatedObject +from typing import Any, Dict, Optional, cast +from typing_extensions import Literal, TYPE_CHECKING, override + +if TYPE_CHECKING: + from stripe._api_requestor import _APIRequestor + from stripe._stripe_client import StripeClient + from stripe.v2.extend._object_definition_version import ( + ObjectDefinitionVersion, + ) + + +class V2ExtendObjectDefinitionVersionCreatedEventNotification( + EventNotification, +): + LOOKUP_TYPE = "v2.extend.object_definition_version.created" + type: Literal["v2.extend.object_definition_version.created"] + related_object: RelatedObject + + def __init__( + self, parsed_body: Dict[str, Any], client: "StripeClient" + ) -> None: + super().__init__( + parsed_body, + client, + ) + self.related_object = RelatedObject(parsed_body["related_object"]) + + @override + def fetch_event(self) -> "V2ExtendObjectDefinitionVersionCreatedEvent": + return cast( + "V2ExtendObjectDefinitionVersionCreatedEvent", + super().fetch_event(), + ) + + def fetch_related_object(self) -> "ObjectDefinitionVersion": + response = self._client.raw_request( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ObjectDefinitionVersion", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + @override + async def fetch_event_async( + self, + ) -> "V2ExtendObjectDefinitionVersionCreatedEvent": + return cast( + "V2ExtendObjectDefinitionVersionCreatedEvent", + await super().fetch_event_async(), + ) + + async def fetch_related_object_async(self) -> "ObjectDefinitionVersion": + response = await self._client.raw_request_async( + "get", + self.related_object.url, + stripe_context=self.context, + headers={"Stripe-Request-Trigger": f"event={self.id}"}, + usage=["fetch_related_object"], + ) + return cast( + "ObjectDefinitionVersion", + self._client.deserialize( + response, + api_mode=get_api_mode(self.related_object.url), + ), + ) + + +class V2ExtendObjectDefinitionVersionCreatedEvent(Event): + LOOKUP_TYPE = "v2.extend.object_definition_version.created" + type: Literal["v2.extend.object_definition_version.created"] + + class V2ExtendObjectDefinitionVersionCreatedEventData(StripeObject): + api_name_singular: str + """ + The singular API name of the object definition. + """ + object_definition: str + """ + The ID of the parent object definition. + """ + version: str + """ + The semantic version of the created object definition version, in `major.minor.patch` format. + """ + + data: V2ExtendObjectDefinitionVersionCreatedEventData + """ + Data for the v2.extend.object_definition_version.created event + """ + + @classmethod + def _construct_from( + cls, + *, + values: Dict[str, Any], + last_response: Optional[StripeResponse] = None, + requestor: "_APIRequestor", + api_mode: ApiMode, + ) -> "V2ExtendObjectDefinitionVersionCreatedEvent": + evt = super()._construct_from( + values=values, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + if hasattr(evt, "data"): + evt.data = V2ExtendObjectDefinitionVersionCreatedEvent.V2ExtendObjectDefinitionVersionCreatedEventData._construct_from( + values=evt.data, + last_response=last_response, + requestor=requestor, + api_mode=api_mode, + ) + return evt + + class RelatedObject(StripeObject): + id: str + """ + Unique identifier for the object relevant to the event. + """ + type: str + """ + Type of the object relevant to the event. + """ + url: str + """ + URL to retrieve the resource. + """ + + related_object: RelatedObject + """ + Object containing the reference to API resource relevant to the event + """ + + def fetch_related_object(self) -> "ObjectDefinitionVersion": + """ + Retrieves the related object from the API. Makes an API request on every call. + """ + return cast( + "ObjectDefinitionVersion", + self._requestor.request( + "get", + self.related_object.url, + base_address="api", + options={ + "stripe_context": self.context, + "headers": {"Stripe-Request-Trigger": f"event={self.id}"}, + }, + ), + ) diff --git a/stripe/params/__init__.py b/stripe/params/__init__.py index aa9694641..a8d54486f 100644 --- a/stripe/params/__init__.py +++ b/stripe/params/__init__.py @@ -439,6 +439,10 @@ AccountSessionCreateParamsComponentsBalanceReportFeatures as AccountSessionCreateParamsComponentsBalanceReportFeatures, AccountSessionCreateParamsComponentsBalances as AccountSessionCreateParamsComponentsBalances, AccountSessionCreateParamsComponentsBalancesFeatures as AccountSessionCreateParamsComponentsBalancesFeatures, + AccountSessionCreateParamsComponentsBills as AccountSessionCreateParamsComponentsBills, + AccountSessionCreateParamsComponentsBillsFeatures as AccountSessionCreateParamsComponentsBillsFeatures, + AccountSessionCreateParamsComponentsBusinessProfileManagement as AccountSessionCreateParamsComponentsBusinessProfileManagement, + AccountSessionCreateParamsComponentsBusinessProfileManagementFeatures as AccountSessionCreateParamsComponentsBusinessProfileManagementFeatures, AccountSessionCreateParamsComponentsCapitalFinancing as AccountSessionCreateParamsComponentsCapitalFinancing, AccountSessionCreateParamsComponentsCapitalFinancingApplication as AccountSessionCreateParamsComponentsCapitalFinancingApplication, AccountSessionCreateParamsComponentsCapitalFinancingApplicationFeatures as AccountSessionCreateParamsComponentsCapitalFinancingApplicationFeatures, @@ -459,14 +463,22 @@ AccountSessionCreateParamsComponentsExportTaxTransactionsFeatures as AccountSessionCreateParamsComponentsExportTaxTransactionsFeatures, AccountSessionCreateParamsComponentsFinancialAccount as AccountSessionCreateParamsComponentsFinancialAccount, AccountSessionCreateParamsComponentsFinancialAccountFeatures as AccountSessionCreateParamsComponentsFinancialAccountFeatures, + AccountSessionCreateParamsComponentsFinancialAccountRewards as AccountSessionCreateParamsComponentsFinancialAccountRewards, + AccountSessionCreateParamsComponentsFinancialAccountRewardsFeatures as AccountSessionCreateParamsComponentsFinancialAccountRewardsFeatures, AccountSessionCreateParamsComponentsFinancialAccountTransactions as AccountSessionCreateParamsComponentsFinancialAccountTransactions, AccountSessionCreateParamsComponentsFinancialAccountTransactionsFeatures as AccountSessionCreateParamsComponentsFinancialAccountTransactionsFeatures, + AccountSessionCreateParamsComponentsFinancialAccounts as AccountSessionCreateParamsComponentsFinancialAccounts, + AccountSessionCreateParamsComponentsFinancialAccountsFeatures as AccountSessionCreateParamsComponentsFinancialAccountsFeatures, + AccountSessionCreateParamsComponentsFinancialAccountsTransactions as AccountSessionCreateParamsComponentsFinancialAccountsTransactions, + AccountSessionCreateParamsComponentsFinancialAccountsTransactionsFeatures as AccountSessionCreateParamsComponentsFinancialAccountsTransactionsFeatures, AccountSessionCreateParamsComponentsInstantPayoutsPromotion as AccountSessionCreateParamsComponentsInstantPayoutsPromotion, AccountSessionCreateParamsComponentsInstantPayoutsPromotionFeatures as AccountSessionCreateParamsComponentsInstantPayoutsPromotionFeatures, AccountSessionCreateParamsComponentsIssuingCard as AccountSessionCreateParamsComponentsIssuingCard, AccountSessionCreateParamsComponentsIssuingCardFeatures as AccountSessionCreateParamsComponentsIssuingCardFeatures, AccountSessionCreateParamsComponentsIssuingCardsList as AccountSessionCreateParamsComponentsIssuingCardsList, AccountSessionCreateParamsComponentsIssuingCardsListFeatures as AccountSessionCreateParamsComponentsIssuingCardsListFeatures, + AccountSessionCreateParamsComponentsNetworkCostPassthroughReport as AccountSessionCreateParamsComponentsNetworkCostPassthroughReport, + AccountSessionCreateParamsComponentsNetworkCostPassthroughReportFeatures as AccountSessionCreateParamsComponentsNetworkCostPassthroughReportFeatures, AccountSessionCreateParamsComponentsNotificationBanner as AccountSessionCreateParamsComponentsNotificationBanner, AccountSessionCreateParamsComponentsNotificationBannerFeatures as AccountSessionCreateParamsComponentsNotificationBannerFeatures, AccountSessionCreateParamsComponentsPaymentDetails as AccountSessionCreateParamsComponentsPaymentDetails, @@ -489,6 +501,8 @@ AccountSessionCreateParamsComponentsProductTaxCodeSelectorFeatures as AccountSessionCreateParamsComponentsProductTaxCodeSelectorFeatures, AccountSessionCreateParamsComponentsRecipients as AccountSessionCreateParamsComponentsRecipients, AccountSessionCreateParamsComponentsRecipientsFeatures as AccountSessionCreateParamsComponentsRecipientsFeatures, + AccountSessionCreateParamsComponentsRecipientsList as AccountSessionCreateParamsComponentsRecipientsList, + AccountSessionCreateParamsComponentsRecipientsListFeatures as AccountSessionCreateParamsComponentsRecipientsListFeatures, AccountSessionCreateParamsComponentsReportingChart as AccountSessionCreateParamsComponentsReportingChart, AccountSessionCreateParamsComponentsReportingChartFeatures as AccountSessionCreateParamsComponentsReportingChartFeatures, AccountSessionCreateParamsComponentsTaxRegistrations as AccountSessionCreateParamsComponentsTaxRegistrations, @@ -1027,12 +1041,14 @@ ConfirmationTokenCreateParams as ConfirmationTokenCreateParams, ConfirmationTokenCreateParamsPaymentMethodData as ConfirmationTokenCreateParamsPaymentMethodData, ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit as ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit, + ConfirmationTokenCreateParamsPaymentMethodDataAeonPay as ConfirmationTokenCreateParamsPaymentMethodDataAeonPay, ConfirmationTokenCreateParamsPaymentMethodDataAffirm as ConfirmationTokenCreateParamsPaymentMethodDataAffirm, ConfirmationTokenCreateParamsPaymentMethodDataAfterpayClearpay as ConfirmationTokenCreateParamsPaymentMethodDataAfterpayClearpay, ConfirmationTokenCreateParamsPaymentMethodDataAlipay as ConfirmationTokenCreateParamsPaymentMethodDataAlipay, ConfirmationTokenCreateParamsPaymentMethodDataAlma as ConfirmationTokenCreateParamsPaymentMethodDataAlma, ConfirmationTokenCreateParamsPaymentMethodDataAmazonPay as ConfirmationTokenCreateParamsPaymentMethodDataAmazonPay, ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit as ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit, + ConfirmationTokenCreateParamsPaymentMethodDataAuPay as ConfirmationTokenCreateParamsPaymentMethodDataAuPay, ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit as ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit, ConfirmationTokenCreateParamsPaymentMethodDataBancontact as ConfirmationTokenCreateParamsPaymentMethodDataBancontact, ConfirmationTokenCreateParamsPaymentMethodDataBillie as ConfirmationTokenCreateParamsPaymentMethodDataBillie, @@ -1045,6 +1061,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, ConfirmationTokenCreateParamsPaymentMethodDataCrypto as ConfirmationTokenCreateParamsPaymentMethodDataCrypto, ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance as ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance, + ConfirmationTokenCreateParamsPaymentMethodDataDbarai as ConfirmationTokenCreateParamsPaymentMethodDataDbarai, ConfirmationTokenCreateParamsPaymentMethodDataEps as ConfirmationTokenCreateParamsPaymentMethodDataEps, ConfirmationTokenCreateParamsPaymentMethodDataFpx as ConfirmationTokenCreateParamsPaymentMethodDataFpx, ConfirmationTokenCreateParamsPaymentMethodDataGetflex as ConfirmationTokenCreateParamsPaymentMethodDataGetflex, @@ -1062,6 +1079,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataKrCard as ConfirmationTokenCreateParamsPaymentMethodDataKrCard, ConfirmationTokenCreateParamsPaymentMethodDataLink as ConfirmationTokenCreateParamsPaymentMethodDataLink, ConfirmationTokenCreateParamsPaymentMethodDataMbWay as ConfirmationTokenCreateParamsPaymentMethodDataMbWay, + ConfirmationTokenCreateParamsPaymentMethodDataMerpay as ConfirmationTokenCreateParamsPaymentMethodDataMerpay, ConfirmationTokenCreateParamsPaymentMethodDataMobilepay as ConfirmationTokenCreateParamsPaymentMethodDataMobilepay, ConfirmationTokenCreateParamsPaymentMethodDataMultibanco as ConfirmationTokenCreateParamsPaymentMethodDataMultibanco, ConfirmationTokenCreateParamsPaymentMethodDataNaverPay as ConfirmationTokenCreateParamsPaymentMethodDataNaverPay, @@ -1257,6 +1275,8 @@ CustomerCreateTaxExemptionParams as CustomerCreateTaxExemptionParams, CustomerCreateTaxExemptionParamsCa as CustomerCreateTaxExemptionParamsCa, CustomerCreateTaxExemptionParamsEs as CustomerCreateTaxExemptionParamsEs, + CustomerCreateTaxExemptionParamsReasonDetails as CustomerCreateTaxExemptionParamsReasonDetails, + CustomerCreateTaxExemptionParamsReasonDetailsOther as CustomerCreateTaxExemptionParamsReasonDetailsOther, CustomerCreateTaxExemptionParamsUs as CustomerCreateTaxExemptionParamsUs, ) from stripe.params._customer_create_tax_id_params import ( @@ -1405,6 +1425,8 @@ CustomerTaxExemptionCreateParams as CustomerTaxExemptionCreateParams, CustomerTaxExemptionCreateParamsCa as CustomerTaxExemptionCreateParamsCa, CustomerTaxExemptionCreateParamsEs as CustomerTaxExemptionCreateParamsEs, + CustomerTaxExemptionCreateParamsReasonDetails as CustomerTaxExemptionCreateParamsReasonDetails, + CustomerTaxExemptionCreateParamsReasonDetailsOther as CustomerTaxExemptionCreateParamsReasonDetailsOther, CustomerTaxExemptionCreateParamsUs as CustomerTaxExemptionCreateParamsUs, ) from stripe.params._customer_tax_exemption_delete_params import ( @@ -2336,6 +2358,9 @@ ) from stripe.params._payment_attempt_record_report_authenticated_params import ( PaymentAttemptRecordReportAuthenticatedParams as PaymentAttemptRecordReportAuthenticatedParams, + PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetails as PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetails, + PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetailsCard as PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetailsCard, + PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetailsCardThreeDSecure as PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetailsCardThreeDSecure, ) from stripe.params._payment_attempt_record_report_authorized_params import ( PaymentAttemptRecordReportAuthorizedParams as PaymentAttemptRecordReportAuthorizedParams, @@ -2403,6 +2428,8 @@ PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging as PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging, PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData as PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData, PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent as PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent, + PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging as PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging, + PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData as PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData, PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsKlarna as PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsKlarna, PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsPaypal as PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsPaypal, PaymentIntentCaptureParamsAmountDetailsLineItemTax as PaymentIntentCaptureParamsAmountDetailsLineItemTax, @@ -2499,6 +2526,8 @@ PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging as PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging, PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData as PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData, PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent as PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent, + PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging as PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging, + PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData as PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData, PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsKlarna as PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsKlarna, PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsPaypal as PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsPaypal, PaymentIntentConfirmParamsAmountDetailsLineItemTax as PaymentIntentConfirmParamsAmountDetailsLineItemTax, @@ -2599,12 +2628,14 @@ PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval as PaymentIntentConfirmParamsPaymentDetailsSubscriptionBillingInterval, PaymentIntentConfirmParamsPaymentMethodData as PaymentIntentConfirmParamsPaymentMethodData, PaymentIntentConfirmParamsPaymentMethodDataAcssDebit as PaymentIntentConfirmParamsPaymentMethodDataAcssDebit, + PaymentIntentConfirmParamsPaymentMethodDataAeonPay as PaymentIntentConfirmParamsPaymentMethodDataAeonPay, PaymentIntentConfirmParamsPaymentMethodDataAffirm as PaymentIntentConfirmParamsPaymentMethodDataAffirm, PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay as PaymentIntentConfirmParamsPaymentMethodDataAfterpayClearpay, PaymentIntentConfirmParamsPaymentMethodDataAlipay as PaymentIntentConfirmParamsPaymentMethodDataAlipay, PaymentIntentConfirmParamsPaymentMethodDataAlma as PaymentIntentConfirmParamsPaymentMethodDataAlma, PaymentIntentConfirmParamsPaymentMethodDataAmazonPay as PaymentIntentConfirmParamsPaymentMethodDataAmazonPay, PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit as PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit, + PaymentIntentConfirmParamsPaymentMethodDataAuPay as PaymentIntentConfirmParamsPaymentMethodDataAuPay, PaymentIntentConfirmParamsPaymentMethodDataBacsDebit as PaymentIntentConfirmParamsPaymentMethodDataBacsDebit, PaymentIntentConfirmParamsPaymentMethodDataBancontact as PaymentIntentConfirmParamsPaymentMethodDataBancontact, PaymentIntentConfirmParamsPaymentMethodDataBillie as PaymentIntentConfirmParamsPaymentMethodDataBillie, @@ -2617,6 +2648,7 @@ PaymentIntentConfirmParamsPaymentMethodDataCashapp as PaymentIntentConfirmParamsPaymentMethodDataCashapp, PaymentIntentConfirmParamsPaymentMethodDataCrypto as PaymentIntentConfirmParamsPaymentMethodDataCrypto, PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance as PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance, + PaymentIntentConfirmParamsPaymentMethodDataDbarai as PaymentIntentConfirmParamsPaymentMethodDataDbarai, PaymentIntentConfirmParamsPaymentMethodDataEps as PaymentIntentConfirmParamsPaymentMethodDataEps, PaymentIntentConfirmParamsPaymentMethodDataFpx as PaymentIntentConfirmParamsPaymentMethodDataFpx, PaymentIntentConfirmParamsPaymentMethodDataGetflex as PaymentIntentConfirmParamsPaymentMethodDataGetflex, @@ -2634,6 +2666,7 @@ PaymentIntentConfirmParamsPaymentMethodDataKrCard as PaymentIntentConfirmParamsPaymentMethodDataKrCard, PaymentIntentConfirmParamsPaymentMethodDataLink as PaymentIntentConfirmParamsPaymentMethodDataLink, PaymentIntentConfirmParamsPaymentMethodDataMbWay as PaymentIntentConfirmParamsPaymentMethodDataMbWay, + PaymentIntentConfirmParamsPaymentMethodDataMerpay as PaymentIntentConfirmParamsPaymentMethodDataMerpay, PaymentIntentConfirmParamsPaymentMethodDataMobilepay as PaymentIntentConfirmParamsPaymentMethodDataMobilepay, PaymentIntentConfirmParamsPaymentMethodDataMultibanco as PaymentIntentConfirmParamsPaymentMethodDataMultibanco, PaymentIntentConfirmParamsPaymentMethodDataNaverPay as PaymentIntentConfirmParamsPaymentMethodDataNaverPay, @@ -2685,6 +2718,7 @@ PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay as PaymentIntentConfirmParamsPaymentMethodOptionsAmazonPay, PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit as PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit, PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit as PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit, + PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitFinancialConnections as PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitFinancialConnections, PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentConfirmParamsPaymentMethodOptionsBancontact as PaymentIntentConfirmParamsPaymentMethodOptionsBancontact, PaymentIntentConfirmParamsPaymentMethodOptionsBillie as PaymentIntentConfirmParamsPaymentMethodOptionsBillie, @@ -2844,6 +2878,8 @@ PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging as PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging, PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData as PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData, PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent as PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent, + PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging as PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging, + PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData as PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData, PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna as PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna, PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal as PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal, PaymentIntentCreateParamsAmountDetailsLineItemTax as PaymentIntentCreateParamsAmountDetailsLineItemTax, @@ -2945,12 +2981,14 @@ PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval as PaymentIntentCreateParamsPaymentDetailsSubscriptionBillingInterval, PaymentIntentCreateParamsPaymentMethodData as PaymentIntentCreateParamsPaymentMethodData, PaymentIntentCreateParamsPaymentMethodDataAcssDebit as PaymentIntentCreateParamsPaymentMethodDataAcssDebit, + PaymentIntentCreateParamsPaymentMethodDataAeonPay as PaymentIntentCreateParamsPaymentMethodDataAeonPay, PaymentIntentCreateParamsPaymentMethodDataAffirm as PaymentIntentCreateParamsPaymentMethodDataAffirm, PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay as PaymentIntentCreateParamsPaymentMethodDataAfterpayClearpay, PaymentIntentCreateParamsPaymentMethodDataAlipay as PaymentIntentCreateParamsPaymentMethodDataAlipay, PaymentIntentCreateParamsPaymentMethodDataAlma as PaymentIntentCreateParamsPaymentMethodDataAlma, PaymentIntentCreateParamsPaymentMethodDataAmazonPay as PaymentIntentCreateParamsPaymentMethodDataAmazonPay, PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit as PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit, + PaymentIntentCreateParamsPaymentMethodDataAuPay as PaymentIntentCreateParamsPaymentMethodDataAuPay, PaymentIntentCreateParamsPaymentMethodDataBacsDebit as PaymentIntentCreateParamsPaymentMethodDataBacsDebit, PaymentIntentCreateParamsPaymentMethodDataBancontact as PaymentIntentCreateParamsPaymentMethodDataBancontact, PaymentIntentCreateParamsPaymentMethodDataBillie as PaymentIntentCreateParamsPaymentMethodDataBillie, @@ -2963,6 +3001,7 @@ PaymentIntentCreateParamsPaymentMethodDataCashapp as PaymentIntentCreateParamsPaymentMethodDataCashapp, PaymentIntentCreateParamsPaymentMethodDataCrypto as PaymentIntentCreateParamsPaymentMethodDataCrypto, PaymentIntentCreateParamsPaymentMethodDataCustomerBalance as PaymentIntentCreateParamsPaymentMethodDataCustomerBalance, + PaymentIntentCreateParamsPaymentMethodDataDbarai as PaymentIntentCreateParamsPaymentMethodDataDbarai, PaymentIntentCreateParamsPaymentMethodDataEps as PaymentIntentCreateParamsPaymentMethodDataEps, PaymentIntentCreateParamsPaymentMethodDataFpx as PaymentIntentCreateParamsPaymentMethodDataFpx, PaymentIntentCreateParamsPaymentMethodDataGetflex as PaymentIntentCreateParamsPaymentMethodDataGetflex, @@ -2980,6 +3019,7 @@ PaymentIntentCreateParamsPaymentMethodDataKrCard as PaymentIntentCreateParamsPaymentMethodDataKrCard, PaymentIntentCreateParamsPaymentMethodDataLink as PaymentIntentCreateParamsPaymentMethodDataLink, PaymentIntentCreateParamsPaymentMethodDataMbWay as PaymentIntentCreateParamsPaymentMethodDataMbWay, + PaymentIntentCreateParamsPaymentMethodDataMerpay as PaymentIntentCreateParamsPaymentMethodDataMerpay, PaymentIntentCreateParamsPaymentMethodDataMobilepay as PaymentIntentCreateParamsPaymentMethodDataMobilepay, PaymentIntentCreateParamsPaymentMethodDataMultibanco as PaymentIntentCreateParamsPaymentMethodDataMultibanco, PaymentIntentCreateParamsPaymentMethodDataNaverPay as PaymentIntentCreateParamsPaymentMethodDataNaverPay, @@ -3031,6 +3071,7 @@ PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay as PaymentIntentCreateParamsPaymentMethodOptionsAmazonPay, PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit as PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit, PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit as PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit, + PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitFinancialConnections as PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitFinancialConnections, PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentCreateParamsPaymentMethodOptionsBancontact as PaymentIntentCreateParamsPaymentMethodOptionsBancontact, PaymentIntentCreateParamsPaymentMethodOptionsBillie as PaymentIntentCreateParamsPaymentMethodOptionsBillie, @@ -3192,6 +3233,8 @@ PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging as PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging, PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData as PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData, PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent as PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent, + PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging as PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging, + PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData as PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData, PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsKlarna as PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsKlarna, PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsPaypal as PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsPaypal, PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemTax as PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemTax, @@ -3214,6 +3257,8 @@ PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging as PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging, PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData as PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData, PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent as PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent, + PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging as PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging, + PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData as PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData, PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsKlarna as PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsKlarna, PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsPaypal as PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsPaypal, PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemTax as PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemTax, @@ -3246,6 +3291,8 @@ PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging as PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging, PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData as PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData, PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent as PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent, + PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging as PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging, + PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData as PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData, PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsKlarna as PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsKlarna, PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsPaypal as PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsPaypal, PaymentIntentModifyParamsAmountDetailsLineItemTax as PaymentIntentModifyParamsAmountDetailsLineItemTax, @@ -3345,12 +3392,14 @@ PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval as PaymentIntentModifyParamsPaymentDetailsSubscriptionBillingInterval, PaymentIntentModifyParamsPaymentMethodData as PaymentIntentModifyParamsPaymentMethodData, PaymentIntentModifyParamsPaymentMethodDataAcssDebit as PaymentIntentModifyParamsPaymentMethodDataAcssDebit, + PaymentIntentModifyParamsPaymentMethodDataAeonPay as PaymentIntentModifyParamsPaymentMethodDataAeonPay, PaymentIntentModifyParamsPaymentMethodDataAffirm as PaymentIntentModifyParamsPaymentMethodDataAffirm, PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay as PaymentIntentModifyParamsPaymentMethodDataAfterpayClearpay, PaymentIntentModifyParamsPaymentMethodDataAlipay as PaymentIntentModifyParamsPaymentMethodDataAlipay, PaymentIntentModifyParamsPaymentMethodDataAlma as PaymentIntentModifyParamsPaymentMethodDataAlma, PaymentIntentModifyParamsPaymentMethodDataAmazonPay as PaymentIntentModifyParamsPaymentMethodDataAmazonPay, PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit as PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit, + PaymentIntentModifyParamsPaymentMethodDataAuPay as PaymentIntentModifyParamsPaymentMethodDataAuPay, PaymentIntentModifyParamsPaymentMethodDataBacsDebit as PaymentIntentModifyParamsPaymentMethodDataBacsDebit, PaymentIntentModifyParamsPaymentMethodDataBancontact as PaymentIntentModifyParamsPaymentMethodDataBancontact, PaymentIntentModifyParamsPaymentMethodDataBillie as PaymentIntentModifyParamsPaymentMethodDataBillie, @@ -3363,6 +3412,7 @@ PaymentIntentModifyParamsPaymentMethodDataCashapp as PaymentIntentModifyParamsPaymentMethodDataCashapp, PaymentIntentModifyParamsPaymentMethodDataCrypto as PaymentIntentModifyParamsPaymentMethodDataCrypto, PaymentIntentModifyParamsPaymentMethodDataCustomerBalance as PaymentIntentModifyParamsPaymentMethodDataCustomerBalance, + PaymentIntentModifyParamsPaymentMethodDataDbarai as PaymentIntentModifyParamsPaymentMethodDataDbarai, PaymentIntentModifyParamsPaymentMethodDataEps as PaymentIntentModifyParamsPaymentMethodDataEps, PaymentIntentModifyParamsPaymentMethodDataFpx as PaymentIntentModifyParamsPaymentMethodDataFpx, PaymentIntentModifyParamsPaymentMethodDataGetflex as PaymentIntentModifyParamsPaymentMethodDataGetflex, @@ -3380,6 +3430,7 @@ PaymentIntentModifyParamsPaymentMethodDataKrCard as PaymentIntentModifyParamsPaymentMethodDataKrCard, PaymentIntentModifyParamsPaymentMethodDataLink as PaymentIntentModifyParamsPaymentMethodDataLink, PaymentIntentModifyParamsPaymentMethodDataMbWay as PaymentIntentModifyParamsPaymentMethodDataMbWay, + PaymentIntentModifyParamsPaymentMethodDataMerpay as PaymentIntentModifyParamsPaymentMethodDataMerpay, PaymentIntentModifyParamsPaymentMethodDataMobilepay as PaymentIntentModifyParamsPaymentMethodDataMobilepay, PaymentIntentModifyParamsPaymentMethodDataMultibanco as PaymentIntentModifyParamsPaymentMethodDataMultibanco, PaymentIntentModifyParamsPaymentMethodDataNaverPay as PaymentIntentModifyParamsPaymentMethodDataNaverPay, @@ -3431,6 +3482,7 @@ PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay as PaymentIntentModifyParamsPaymentMethodOptionsAmazonPay, PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit as PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit, PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit as PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit, + PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitFinancialConnections as PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitFinancialConnections, PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentModifyParamsPaymentMethodOptionsBancontact as PaymentIntentModifyParamsPaymentMethodOptionsBancontact, PaymentIntentModifyParamsPaymentMethodOptionsBillie as PaymentIntentModifyParamsPaymentMethodOptionsBillie, @@ -3610,6 +3662,8 @@ PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging as PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardEvCharging, PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData as PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardFleetData, PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent as PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresent, + PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging as PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging, + PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData as PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData, PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna as PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna, PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal as PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsPaypal, PaymentIntentUpdateParamsAmountDetailsLineItemTax as PaymentIntentUpdateParamsAmountDetailsLineItemTax, @@ -3709,12 +3763,14 @@ PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval as PaymentIntentUpdateParamsPaymentDetailsSubscriptionBillingInterval, PaymentIntentUpdateParamsPaymentMethodData as PaymentIntentUpdateParamsPaymentMethodData, PaymentIntentUpdateParamsPaymentMethodDataAcssDebit as PaymentIntentUpdateParamsPaymentMethodDataAcssDebit, + PaymentIntentUpdateParamsPaymentMethodDataAeonPay as PaymentIntentUpdateParamsPaymentMethodDataAeonPay, PaymentIntentUpdateParamsPaymentMethodDataAffirm as PaymentIntentUpdateParamsPaymentMethodDataAffirm, PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay as PaymentIntentUpdateParamsPaymentMethodDataAfterpayClearpay, PaymentIntentUpdateParamsPaymentMethodDataAlipay as PaymentIntentUpdateParamsPaymentMethodDataAlipay, PaymentIntentUpdateParamsPaymentMethodDataAlma as PaymentIntentUpdateParamsPaymentMethodDataAlma, PaymentIntentUpdateParamsPaymentMethodDataAmazonPay as PaymentIntentUpdateParamsPaymentMethodDataAmazonPay, PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit as PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit, + PaymentIntentUpdateParamsPaymentMethodDataAuPay as PaymentIntentUpdateParamsPaymentMethodDataAuPay, PaymentIntentUpdateParamsPaymentMethodDataBacsDebit as PaymentIntentUpdateParamsPaymentMethodDataBacsDebit, PaymentIntentUpdateParamsPaymentMethodDataBancontact as PaymentIntentUpdateParamsPaymentMethodDataBancontact, PaymentIntentUpdateParamsPaymentMethodDataBillie as PaymentIntentUpdateParamsPaymentMethodDataBillie, @@ -3727,6 +3783,7 @@ PaymentIntentUpdateParamsPaymentMethodDataCashapp as PaymentIntentUpdateParamsPaymentMethodDataCashapp, PaymentIntentUpdateParamsPaymentMethodDataCrypto as PaymentIntentUpdateParamsPaymentMethodDataCrypto, PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance as PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance, + PaymentIntentUpdateParamsPaymentMethodDataDbarai as PaymentIntentUpdateParamsPaymentMethodDataDbarai, PaymentIntentUpdateParamsPaymentMethodDataEps as PaymentIntentUpdateParamsPaymentMethodDataEps, PaymentIntentUpdateParamsPaymentMethodDataFpx as PaymentIntentUpdateParamsPaymentMethodDataFpx, PaymentIntentUpdateParamsPaymentMethodDataGetflex as PaymentIntentUpdateParamsPaymentMethodDataGetflex, @@ -3744,6 +3801,7 @@ PaymentIntentUpdateParamsPaymentMethodDataKrCard as PaymentIntentUpdateParamsPaymentMethodDataKrCard, PaymentIntentUpdateParamsPaymentMethodDataLink as PaymentIntentUpdateParamsPaymentMethodDataLink, PaymentIntentUpdateParamsPaymentMethodDataMbWay as PaymentIntentUpdateParamsPaymentMethodDataMbWay, + PaymentIntentUpdateParamsPaymentMethodDataMerpay as PaymentIntentUpdateParamsPaymentMethodDataMerpay, PaymentIntentUpdateParamsPaymentMethodDataMobilepay as PaymentIntentUpdateParamsPaymentMethodDataMobilepay, PaymentIntentUpdateParamsPaymentMethodDataMultibanco as PaymentIntentUpdateParamsPaymentMethodDataMultibanco, PaymentIntentUpdateParamsPaymentMethodDataNaverPay as PaymentIntentUpdateParamsPaymentMethodDataNaverPay, @@ -3795,6 +3853,7 @@ PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay as PaymentIntentUpdateParamsPaymentMethodOptionsAmazonPay, PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit as PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit, PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit as PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit, + PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitFinancialConnections as PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitFinancialConnections, PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions as PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions, PaymentIntentUpdateParamsPaymentMethodOptionsBancontact as PaymentIntentUpdateParamsPaymentMethodOptionsBancontact, PaymentIntentUpdateParamsPaymentMethodOptionsBillie as PaymentIntentUpdateParamsPaymentMethodOptionsBillie, @@ -4262,6 +4321,8 @@ PaymentMethodConfigurationCreateParamsPromptpayDisplayPreference as PaymentMethodConfigurationCreateParamsPromptpayDisplayPreference, PaymentMethodConfigurationCreateParamsQris as PaymentMethodConfigurationCreateParamsQris, PaymentMethodConfigurationCreateParamsQrisDisplayPreference as PaymentMethodConfigurationCreateParamsQrisDisplayPreference, + PaymentMethodConfigurationCreateParamsRakutenPay as PaymentMethodConfigurationCreateParamsRakutenPay, + PaymentMethodConfigurationCreateParamsRakutenPayDisplayPreference as PaymentMethodConfigurationCreateParamsRakutenPayDisplayPreference, PaymentMethodConfigurationCreateParamsRevolutPay as PaymentMethodConfigurationCreateParamsRevolutPay, PaymentMethodConfigurationCreateParamsRevolutPayDisplayPreference as PaymentMethodConfigurationCreateParamsRevolutPayDisplayPreference, PaymentMethodConfigurationCreateParamsSamsungPay as PaymentMethodConfigurationCreateParamsSamsungPay, @@ -4402,6 +4463,8 @@ PaymentMethodConfigurationModifyParamsPromptpayDisplayPreference as PaymentMethodConfigurationModifyParamsPromptpayDisplayPreference, PaymentMethodConfigurationModifyParamsQris as PaymentMethodConfigurationModifyParamsQris, PaymentMethodConfigurationModifyParamsQrisDisplayPreference as PaymentMethodConfigurationModifyParamsQrisDisplayPreference, + PaymentMethodConfigurationModifyParamsRakutenPay as PaymentMethodConfigurationModifyParamsRakutenPay, + PaymentMethodConfigurationModifyParamsRakutenPayDisplayPreference as PaymentMethodConfigurationModifyParamsRakutenPayDisplayPreference, PaymentMethodConfigurationModifyParamsRevolutPay as PaymentMethodConfigurationModifyParamsRevolutPay, PaymentMethodConfigurationModifyParamsRevolutPayDisplayPreference as PaymentMethodConfigurationModifyParamsRevolutPayDisplayPreference, PaymentMethodConfigurationModifyParamsSamsungPay as PaymentMethodConfigurationModifyParamsSamsungPay, @@ -4542,6 +4605,8 @@ PaymentMethodConfigurationUpdateParamsPromptpayDisplayPreference as PaymentMethodConfigurationUpdateParamsPromptpayDisplayPreference, PaymentMethodConfigurationUpdateParamsQris as PaymentMethodConfigurationUpdateParamsQris, PaymentMethodConfigurationUpdateParamsQrisDisplayPreference as PaymentMethodConfigurationUpdateParamsQrisDisplayPreference, + PaymentMethodConfigurationUpdateParamsRakutenPay as PaymentMethodConfigurationUpdateParamsRakutenPay, + PaymentMethodConfigurationUpdateParamsRakutenPayDisplayPreference as PaymentMethodConfigurationUpdateParamsRakutenPayDisplayPreference, PaymentMethodConfigurationUpdateParamsRevolutPay as PaymentMethodConfigurationUpdateParamsRevolutPay, PaymentMethodConfigurationUpdateParamsRevolutPayDisplayPreference as PaymentMethodConfigurationUpdateParamsRevolutPayDisplayPreference, PaymentMethodConfigurationUpdateParamsSamsungPay as PaymentMethodConfigurationUpdateParamsSamsungPay, @@ -4578,12 +4643,14 @@ from stripe.params._payment_method_create_params import ( PaymentMethodCreateParams as PaymentMethodCreateParams, PaymentMethodCreateParamsAcssDebit as PaymentMethodCreateParamsAcssDebit, + PaymentMethodCreateParamsAeonPay as PaymentMethodCreateParamsAeonPay, PaymentMethodCreateParamsAffirm as PaymentMethodCreateParamsAffirm, PaymentMethodCreateParamsAfterpayClearpay as PaymentMethodCreateParamsAfterpayClearpay, PaymentMethodCreateParamsAlipay as PaymentMethodCreateParamsAlipay, PaymentMethodCreateParamsAlma as PaymentMethodCreateParamsAlma, PaymentMethodCreateParamsAmazonPay as PaymentMethodCreateParamsAmazonPay, PaymentMethodCreateParamsAuBecsDebit as PaymentMethodCreateParamsAuBecsDebit, + PaymentMethodCreateParamsAuPay as PaymentMethodCreateParamsAuPay, PaymentMethodCreateParamsBacsDebit as PaymentMethodCreateParamsBacsDebit, PaymentMethodCreateParamsBancontact as PaymentMethodCreateParamsBancontact, PaymentMethodCreateParamsBillie as PaymentMethodCreateParamsBillie, @@ -4599,6 +4666,7 @@ PaymentMethodCreateParamsCrypto as PaymentMethodCreateParamsCrypto, PaymentMethodCreateParamsCustom as PaymentMethodCreateParamsCustom, PaymentMethodCreateParamsCustomerBalance as PaymentMethodCreateParamsCustomerBalance, + PaymentMethodCreateParamsDbarai as PaymentMethodCreateParamsDbarai, PaymentMethodCreateParamsEps as PaymentMethodCreateParamsEps, PaymentMethodCreateParamsFpx as PaymentMethodCreateParamsFpx, PaymentMethodCreateParamsGetflex as PaymentMethodCreateParamsGetflex, @@ -4616,6 +4684,7 @@ PaymentMethodCreateParamsKrCard as PaymentMethodCreateParamsKrCard, PaymentMethodCreateParamsLink as PaymentMethodCreateParamsLink, PaymentMethodCreateParamsMbWay as PaymentMethodCreateParamsMbWay, + PaymentMethodCreateParamsMerpay as PaymentMethodCreateParamsMerpay, PaymentMethodCreateParamsMobilepay as PaymentMethodCreateParamsMobilepay, PaymentMethodCreateParamsMultibanco as PaymentMethodCreateParamsMultibanco, PaymentMethodCreateParamsNaverPay as PaymentMethodCreateParamsNaverPay, @@ -5385,12 +5454,14 @@ SetupIntentConfirmParamsMandateDataCustomerAcceptanceOnline as SetupIntentConfirmParamsMandateDataCustomerAcceptanceOnline, SetupIntentConfirmParamsPaymentMethodData as SetupIntentConfirmParamsPaymentMethodData, SetupIntentConfirmParamsPaymentMethodDataAcssDebit as SetupIntentConfirmParamsPaymentMethodDataAcssDebit, + SetupIntentConfirmParamsPaymentMethodDataAeonPay as SetupIntentConfirmParamsPaymentMethodDataAeonPay, SetupIntentConfirmParamsPaymentMethodDataAffirm as SetupIntentConfirmParamsPaymentMethodDataAffirm, SetupIntentConfirmParamsPaymentMethodDataAfterpayClearpay as SetupIntentConfirmParamsPaymentMethodDataAfterpayClearpay, SetupIntentConfirmParamsPaymentMethodDataAlipay as SetupIntentConfirmParamsPaymentMethodDataAlipay, SetupIntentConfirmParamsPaymentMethodDataAlma as SetupIntentConfirmParamsPaymentMethodDataAlma, SetupIntentConfirmParamsPaymentMethodDataAmazonPay as SetupIntentConfirmParamsPaymentMethodDataAmazonPay, SetupIntentConfirmParamsPaymentMethodDataAuBecsDebit as SetupIntentConfirmParamsPaymentMethodDataAuBecsDebit, + SetupIntentConfirmParamsPaymentMethodDataAuPay as SetupIntentConfirmParamsPaymentMethodDataAuPay, SetupIntentConfirmParamsPaymentMethodDataBacsDebit as SetupIntentConfirmParamsPaymentMethodDataBacsDebit, SetupIntentConfirmParamsPaymentMethodDataBancontact as SetupIntentConfirmParamsPaymentMethodDataBancontact, SetupIntentConfirmParamsPaymentMethodDataBillie as SetupIntentConfirmParamsPaymentMethodDataBillie, @@ -5403,6 +5474,7 @@ SetupIntentConfirmParamsPaymentMethodDataCashapp as SetupIntentConfirmParamsPaymentMethodDataCashapp, SetupIntentConfirmParamsPaymentMethodDataCrypto as SetupIntentConfirmParamsPaymentMethodDataCrypto, SetupIntentConfirmParamsPaymentMethodDataCustomerBalance as SetupIntentConfirmParamsPaymentMethodDataCustomerBalance, + SetupIntentConfirmParamsPaymentMethodDataDbarai as SetupIntentConfirmParamsPaymentMethodDataDbarai, SetupIntentConfirmParamsPaymentMethodDataEps as SetupIntentConfirmParamsPaymentMethodDataEps, SetupIntentConfirmParamsPaymentMethodDataFpx as SetupIntentConfirmParamsPaymentMethodDataFpx, SetupIntentConfirmParamsPaymentMethodDataGetflex as SetupIntentConfirmParamsPaymentMethodDataGetflex, @@ -5420,6 +5492,7 @@ SetupIntentConfirmParamsPaymentMethodDataKrCard as SetupIntentConfirmParamsPaymentMethodDataKrCard, SetupIntentConfirmParamsPaymentMethodDataLink as SetupIntentConfirmParamsPaymentMethodDataLink, SetupIntentConfirmParamsPaymentMethodDataMbWay as SetupIntentConfirmParamsPaymentMethodDataMbWay, + SetupIntentConfirmParamsPaymentMethodDataMerpay as SetupIntentConfirmParamsPaymentMethodDataMerpay, SetupIntentConfirmParamsPaymentMethodDataMobilepay as SetupIntentConfirmParamsPaymentMethodDataMobilepay, SetupIntentConfirmParamsPaymentMethodDataMultibanco as SetupIntentConfirmParamsPaymentMethodDataMultibanco, SetupIntentConfirmParamsPaymentMethodDataNaverPay as SetupIntentConfirmParamsPaymentMethodDataNaverPay, @@ -5498,6 +5571,7 @@ SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry, SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountMandateOptions, SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks as SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks, + SetupIntentConfirmParamsRadarOptions as SetupIntentConfirmParamsRadarOptions, SetupIntentConfirmParamsSetupDetails as SetupIntentConfirmParamsSetupDetails, SetupIntentConfirmParamsSetupDetailsBenefit as SetupIntentConfirmParamsSetupDetailsBenefit, SetupIntentConfirmParamsSetupDetailsBenefitFrMealVoucher as SetupIntentConfirmParamsSetupDetailsBenefitFrMealVoucher, @@ -5511,12 +5585,14 @@ SetupIntentCreateParamsMandateDataCustomerAcceptanceOnline as SetupIntentCreateParamsMandateDataCustomerAcceptanceOnline, SetupIntentCreateParamsPaymentMethodData as SetupIntentCreateParamsPaymentMethodData, SetupIntentCreateParamsPaymentMethodDataAcssDebit as SetupIntentCreateParamsPaymentMethodDataAcssDebit, + SetupIntentCreateParamsPaymentMethodDataAeonPay as SetupIntentCreateParamsPaymentMethodDataAeonPay, SetupIntentCreateParamsPaymentMethodDataAffirm as SetupIntentCreateParamsPaymentMethodDataAffirm, SetupIntentCreateParamsPaymentMethodDataAfterpayClearpay as SetupIntentCreateParamsPaymentMethodDataAfterpayClearpay, SetupIntentCreateParamsPaymentMethodDataAlipay as SetupIntentCreateParamsPaymentMethodDataAlipay, SetupIntentCreateParamsPaymentMethodDataAlma as SetupIntentCreateParamsPaymentMethodDataAlma, SetupIntentCreateParamsPaymentMethodDataAmazonPay as SetupIntentCreateParamsPaymentMethodDataAmazonPay, SetupIntentCreateParamsPaymentMethodDataAuBecsDebit as SetupIntentCreateParamsPaymentMethodDataAuBecsDebit, + SetupIntentCreateParamsPaymentMethodDataAuPay as SetupIntentCreateParamsPaymentMethodDataAuPay, SetupIntentCreateParamsPaymentMethodDataBacsDebit as SetupIntentCreateParamsPaymentMethodDataBacsDebit, SetupIntentCreateParamsPaymentMethodDataBancontact as SetupIntentCreateParamsPaymentMethodDataBancontact, SetupIntentCreateParamsPaymentMethodDataBillie as SetupIntentCreateParamsPaymentMethodDataBillie, @@ -5529,6 +5605,7 @@ SetupIntentCreateParamsPaymentMethodDataCashapp as SetupIntentCreateParamsPaymentMethodDataCashapp, SetupIntentCreateParamsPaymentMethodDataCrypto as SetupIntentCreateParamsPaymentMethodDataCrypto, SetupIntentCreateParamsPaymentMethodDataCustomerBalance as SetupIntentCreateParamsPaymentMethodDataCustomerBalance, + SetupIntentCreateParamsPaymentMethodDataDbarai as SetupIntentCreateParamsPaymentMethodDataDbarai, SetupIntentCreateParamsPaymentMethodDataEps as SetupIntentCreateParamsPaymentMethodDataEps, SetupIntentCreateParamsPaymentMethodDataFpx as SetupIntentCreateParamsPaymentMethodDataFpx, SetupIntentCreateParamsPaymentMethodDataGetflex as SetupIntentCreateParamsPaymentMethodDataGetflex, @@ -5546,6 +5623,7 @@ SetupIntentCreateParamsPaymentMethodDataKrCard as SetupIntentCreateParamsPaymentMethodDataKrCard, SetupIntentCreateParamsPaymentMethodDataLink as SetupIntentCreateParamsPaymentMethodDataLink, SetupIntentCreateParamsPaymentMethodDataMbWay as SetupIntentCreateParamsPaymentMethodDataMbWay, + SetupIntentCreateParamsPaymentMethodDataMerpay as SetupIntentCreateParamsPaymentMethodDataMerpay, SetupIntentCreateParamsPaymentMethodDataMobilepay as SetupIntentCreateParamsPaymentMethodDataMobilepay, SetupIntentCreateParamsPaymentMethodDataMultibanco as SetupIntentCreateParamsPaymentMethodDataMultibanco, SetupIntentCreateParamsPaymentMethodDataNaverPay as SetupIntentCreateParamsPaymentMethodDataNaverPay, @@ -5624,6 +5702,7 @@ SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountFinancialConnectionsManualEntry, SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountMandateOptions, SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks as SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks, + SetupIntentCreateParamsRadarOptions as SetupIntentCreateParamsRadarOptions, SetupIntentCreateParamsSetupDetails as SetupIntentCreateParamsSetupDetails, SetupIntentCreateParamsSetupDetailsBenefit as SetupIntentCreateParamsSetupDetailsBenefit, SetupIntentCreateParamsSetupDetailsBenefitFrMealVoucher as SetupIntentCreateParamsSetupDetailsBenefitFrMealVoucher, @@ -5637,12 +5716,14 @@ SetupIntentModifyParams as SetupIntentModifyParams, SetupIntentModifyParamsPaymentMethodData as SetupIntentModifyParamsPaymentMethodData, SetupIntentModifyParamsPaymentMethodDataAcssDebit as SetupIntentModifyParamsPaymentMethodDataAcssDebit, + SetupIntentModifyParamsPaymentMethodDataAeonPay as SetupIntentModifyParamsPaymentMethodDataAeonPay, SetupIntentModifyParamsPaymentMethodDataAffirm as SetupIntentModifyParamsPaymentMethodDataAffirm, SetupIntentModifyParamsPaymentMethodDataAfterpayClearpay as SetupIntentModifyParamsPaymentMethodDataAfterpayClearpay, SetupIntentModifyParamsPaymentMethodDataAlipay as SetupIntentModifyParamsPaymentMethodDataAlipay, SetupIntentModifyParamsPaymentMethodDataAlma as SetupIntentModifyParamsPaymentMethodDataAlma, SetupIntentModifyParamsPaymentMethodDataAmazonPay as SetupIntentModifyParamsPaymentMethodDataAmazonPay, SetupIntentModifyParamsPaymentMethodDataAuBecsDebit as SetupIntentModifyParamsPaymentMethodDataAuBecsDebit, + SetupIntentModifyParamsPaymentMethodDataAuPay as SetupIntentModifyParamsPaymentMethodDataAuPay, SetupIntentModifyParamsPaymentMethodDataBacsDebit as SetupIntentModifyParamsPaymentMethodDataBacsDebit, SetupIntentModifyParamsPaymentMethodDataBancontact as SetupIntentModifyParamsPaymentMethodDataBancontact, SetupIntentModifyParamsPaymentMethodDataBillie as SetupIntentModifyParamsPaymentMethodDataBillie, @@ -5655,6 +5736,7 @@ SetupIntentModifyParamsPaymentMethodDataCashapp as SetupIntentModifyParamsPaymentMethodDataCashapp, SetupIntentModifyParamsPaymentMethodDataCrypto as SetupIntentModifyParamsPaymentMethodDataCrypto, SetupIntentModifyParamsPaymentMethodDataCustomerBalance as SetupIntentModifyParamsPaymentMethodDataCustomerBalance, + SetupIntentModifyParamsPaymentMethodDataDbarai as SetupIntentModifyParamsPaymentMethodDataDbarai, SetupIntentModifyParamsPaymentMethodDataEps as SetupIntentModifyParamsPaymentMethodDataEps, SetupIntentModifyParamsPaymentMethodDataFpx as SetupIntentModifyParamsPaymentMethodDataFpx, SetupIntentModifyParamsPaymentMethodDataGetflex as SetupIntentModifyParamsPaymentMethodDataGetflex, @@ -5672,6 +5754,7 @@ SetupIntentModifyParamsPaymentMethodDataKrCard as SetupIntentModifyParamsPaymentMethodDataKrCard, SetupIntentModifyParamsPaymentMethodDataLink as SetupIntentModifyParamsPaymentMethodDataLink, SetupIntentModifyParamsPaymentMethodDataMbWay as SetupIntentModifyParamsPaymentMethodDataMbWay, + SetupIntentModifyParamsPaymentMethodDataMerpay as SetupIntentModifyParamsPaymentMethodDataMerpay, SetupIntentModifyParamsPaymentMethodDataMobilepay as SetupIntentModifyParamsPaymentMethodDataMobilepay, SetupIntentModifyParamsPaymentMethodDataMultibanco as SetupIntentModifyParamsPaymentMethodDataMultibanco, SetupIntentModifyParamsPaymentMethodDataNaverPay as SetupIntentModifyParamsPaymentMethodDataNaverPay, @@ -5761,12 +5844,14 @@ SetupIntentUpdateParams as SetupIntentUpdateParams, SetupIntentUpdateParamsPaymentMethodData as SetupIntentUpdateParamsPaymentMethodData, SetupIntentUpdateParamsPaymentMethodDataAcssDebit as SetupIntentUpdateParamsPaymentMethodDataAcssDebit, + SetupIntentUpdateParamsPaymentMethodDataAeonPay as SetupIntentUpdateParamsPaymentMethodDataAeonPay, SetupIntentUpdateParamsPaymentMethodDataAffirm as SetupIntentUpdateParamsPaymentMethodDataAffirm, SetupIntentUpdateParamsPaymentMethodDataAfterpayClearpay as SetupIntentUpdateParamsPaymentMethodDataAfterpayClearpay, SetupIntentUpdateParamsPaymentMethodDataAlipay as SetupIntentUpdateParamsPaymentMethodDataAlipay, SetupIntentUpdateParamsPaymentMethodDataAlma as SetupIntentUpdateParamsPaymentMethodDataAlma, SetupIntentUpdateParamsPaymentMethodDataAmazonPay as SetupIntentUpdateParamsPaymentMethodDataAmazonPay, SetupIntentUpdateParamsPaymentMethodDataAuBecsDebit as SetupIntentUpdateParamsPaymentMethodDataAuBecsDebit, + SetupIntentUpdateParamsPaymentMethodDataAuPay as SetupIntentUpdateParamsPaymentMethodDataAuPay, SetupIntentUpdateParamsPaymentMethodDataBacsDebit as SetupIntentUpdateParamsPaymentMethodDataBacsDebit, SetupIntentUpdateParamsPaymentMethodDataBancontact as SetupIntentUpdateParamsPaymentMethodDataBancontact, SetupIntentUpdateParamsPaymentMethodDataBillie as SetupIntentUpdateParamsPaymentMethodDataBillie, @@ -5779,6 +5864,7 @@ SetupIntentUpdateParamsPaymentMethodDataCashapp as SetupIntentUpdateParamsPaymentMethodDataCashapp, SetupIntentUpdateParamsPaymentMethodDataCrypto as SetupIntentUpdateParamsPaymentMethodDataCrypto, SetupIntentUpdateParamsPaymentMethodDataCustomerBalance as SetupIntentUpdateParamsPaymentMethodDataCustomerBalance, + SetupIntentUpdateParamsPaymentMethodDataDbarai as SetupIntentUpdateParamsPaymentMethodDataDbarai, SetupIntentUpdateParamsPaymentMethodDataEps as SetupIntentUpdateParamsPaymentMethodDataEps, SetupIntentUpdateParamsPaymentMethodDataFpx as SetupIntentUpdateParamsPaymentMethodDataFpx, SetupIntentUpdateParamsPaymentMethodDataGetflex as SetupIntentUpdateParamsPaymentMethodDataGetflex, @@ -5796,6 +5882,7 @@ SetupIntentUpdateParamsPaymentMethodDataKrCard as SetupIntentUpdateParamsPaymentMethodDataKrCard, SetupIntentUpdateParamsPaymentMethodDataLink as SetupIntentUpdateParamsPaymentMethodDataLink, SetupIntentUpdateParamsPaymentMethodDataMbWay as SetupIntentUpdateParamsPaymentMethodDataMbWay, + SetupIntentUpdateParamsPaymentMethodDataMerpay as SetupIntentUpdateParamsPaymentMethodDataMerpay, SetupIntentUpdateParamsPaymentMethodDataMobilepay as SetupIntentUpdateParamsPaymentMethodDataMobilepay, SetupIntentUpdateParamsPaymentMethodDataMultibanco as SetupIntentUpdateParamsPaymentMethodDataMultibanco, SetupIntentUpdateParamsPaymentMethodDataNaverPay as SetupIntentUpdateParamsPaymentMethodDataNaverPay, @@ -8028,6 +8115,22 @@ "stripe.params._account_session_create_params", False, ), + "AccountSessionCreateParamsComponentsBills": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsBillsFeatures": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsBusinessProfileManagement": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsBusinessProfileManagementFeatures": ( + "stripe.params._account_session_create_params", + False, + ), "AccountSessionCreateParamsComponentsCapitalFinancing": ( "stripe.params._account_session_create_params", False, @@ -8108,6 +8211,14 @@ "stripe.params._account_session_create_params", False, ), + "AccountSessionCreateParamsComponentsFinancialAccountRewards": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsFinancialAccountRewardsFeatures": ( + "stripe.params._account_session_create_params", + False, + ), "AccountSessionCreateParamsComponentsFinancialAccountTransactions": ( "stripe.params._account_session_create_params", False, @@ -8116,6 +8227,22 @@ "stripe.params._account_session_create_params", False, ), + "AccountSessionCreateParamsComponentsFinancialAccounts": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsFinancialAccountsFeatures": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsFinancialAccountsTransactions": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsFinancialAccountsTransactionsFeatures": ( + "stripe.params._account_session_create_params", + False, + ), "AccountSessionCreateParamsComponentsInstantPayoutsPromotion": ( "stripe.params._account_session_create_params", False, @@ -8140,6 +8267,14 @@ "stripe.params._account_session_create_params", False, ), + "AccountSessionCreateParamsComponentsNetworkCostPassthroughReport": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsNetworkCostPassthroughReportFeatures": ( + "stripe.params._account_session_create_params", + False, + ), "AccountSessionCreateParamsComponentsNotificationBanner": ( "stripe.params._account_session_create_params", False, @@ -8228,6 +8363,14 @@ "stripe.params._account_session_create_params", False, ), + "AccountSessionCreateParamsComponentsRecipientsList": ( + "stripe.params._account_session_create_params", + False, + ), + "AccountSessionCreateParamsComponentsRecipientsListFeatures": ( + "stripe.params._account_session_create_params", + False, + ), "AccountSessionCreateParamsComponentsReportingChart": ( "stripe.params._account_session_create_params", False, @@ -10045,6 +10188,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataAeonPay": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataAffirm": ( "stripe.params._confirmation_token_create_params", False, @@ -10069,6 +10216,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataAuPay": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit": ( "stripe.params._confirmation_token_create_params", False, @@ -10117,6 +10268,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataDbarai": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataEps": ( "stripe.params._confirmation_token_create_params", False, @@ -10185,6 +10340,10 @@ "stripe.params._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataMerpay": ( + "stripe.params._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataMobilepay": ( "stripe.params._confirmation_token_create_params", False, @@ -10671,6 +10830,14 @@ "stripe.params._customer_create_tax_exemption_params", False, ), + "CustomerCreateTaxExemptionParamsReasonDetails": ( + "stripe.params._customer_create_tax_exemption_params", + False, + ), + "CustomerCreateTaxExemptionParamsReasonDetailsOther": ( + "stripe.params._customer_create_tax_exemption_params", + False, + ), "CustomerCreateTaxExemptionParamsUs": ( "stripe.params._customer_create_tax_exemption_params", False, @@ -10947,6 +11114,14 @@ "stripe.params._customer_tax_exemption_create_params", False, ), + "CustomerTaxExemptionCreateParamsReasonDetails": ( + "stripe.params._customer_tax_exemption_create_params", + False, + ), + "CustomerTaxExemptionCreateParamsReasonDetailsOther": ( + "stripe.params._customer_tax_exemption_create_params", + False, + ), "CustomerTaxExemptionCreateParamsUs": ( "stripe.params._customer_tax_exemption_create_params", False, @@ -13781,6 +13956,18 @@ "stripe.params._payment_attempt_record_report_authenticated_params", False, ), + "PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetails": ( + "stripe.params._payment_attempt_record_report_authenticated_params", + False, + ), + "PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetailsCard": ( + "stripe.params._payment_attempt_record_report_authenticated_params", + False, + ), + "PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetailsCardThreeDSecure": ( + "stripe.params._payment_attempt_record_report_authenticated_params", + False, + ), "PaymentAttemptRecordReportAuthorizedParams": ( "stripe.params._payment_attempt_record_report_authorized_params", False, @@ -13953,6 +14140,14 @@ "stripe.params._payment_intent_capture_params", False, ), + "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging": ( + "stripe.params._payment_intent_capture_params", + False, + ), + "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData": ( + "stripe.params._payment_intent_capture_params", + False, + ), "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": ( "stripe.params._payment_intent_capture_params", False, @@ -14329,6 +14524,14 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging": ( + "stripe.params._payment_intent_confirm_params", + False, + ), + "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": ( "stripe.params._payment_intent_confirm_params", False, @@ -14729,6 +14932,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataAeonPay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataAffirm": ( "stripe.params._payment_intent_confirm_params", False, @@ -14753,6 +14960,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataAuPay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataBacsDebit": ( "stripe.params._payment_intent_confirm_params", False, @@ -14801,6 +15012,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataDbarai": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataEps": ( "stripe.params._payment_intent_confirm_params", False, @@ -14869,6 +15084,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodDataMerpay": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodDataMobilepay": ( "stripe.params._payment_intent_confirm_params", False, @@ -15073,6 +15292,10 @@ "stripe.params._payment_intent_confirm_params", False, ), + "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitFinancialConnections": ( + "stripe.params._payment_intent_confirm_params", + False, + ), "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions": ( "stripe.params._payment_intent_confirm_params", False, @@ -15701,6 +15924,14 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging": ( + "stripe.params._payment_intent_create_params", + False, + ), + "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": ( "stripe.params._payment_intent_create_params", False, @@ -16105,6 +16336,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataAeonPay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataAffirm": ( "stripe.params._payment_intent_create_params", False, @@ -16129,6 +16364,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataAuPay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataBacsDebit": ( "stripe.params._payment_intent_create_params", False, @@ -16177,6 +16416,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataDbarai": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataEps": ( "stripe.params._payment_intent_create_params", False, @@ -16245,6 +16488,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodDataMerpay": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodDataMobilepay": ( "stripe.params._payment_intent_create_params", False, @@ -16449,6 +16696,10 @@ "stripe.params._payment_intent_create_params", False, ), + "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitFinancialConnections": ( + "stripe.params._payment_intent_create_params", + False, + ), "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions": ( "stripe.params._payment_intent_create_params", False, @@ -17085,6 +17336,14 @@ "stripe.params._payment_intent_decrement_authorization_params", False, ), + "PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging": ( + "stripe.params._payment_intent_decrement_authorization_params", + False, + ), + "PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData": ( + "stripe.params._payment_intent_decrement_authorization_params", + False, + ), "PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": ( "stripe.params._payment_intent_decrement_authorization_params", False, @@ -17165,6 +17424,14 @@ "stripe.params._payment_intent_increment_authorization_params", False, ), + "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging": ( + "stripe.params._payment_intent_increment_authorization_params", + False, + ), + "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData": ( + "stripe.params._payment_intent_increment_authorization_params", + False, + ), "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": ( "stripe.params._payment_intent_increment_authorization_params", False, @@ -17269,6 +17536,14 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging": ( + "stripe.params._payment_intent_modify_params", + False, + ), + "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": ( "stripe.params._payment_intent_modify_params", False, @@ -17665,6 +17940,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataAeonPay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataAffirm": ( "stripe.params._payment_intent_modify_params", False, @@ -17689,6 +17968,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataAuPay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataBacsDebit": ( "stripe.params._payment_intent_modify_params", False, @@ -17737,6 +18020,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataDbarai": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataEps": ( "stripe.params._payment_intent_modify_params", False, @@ -17805,6 +18092,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodDataMerpay": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodDataMobilepay": ( "stripe.params._payment_intent_modify_params", False, @@ -18009,6 +18300,10 @@ "stripe.params._payment_intent_modify_params", False, ), + "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitFinancialConnections": ( + "stripe.params._payment_intent_modify_params", + False, + ), "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions": ( "stripe.params._payment_intent_modify_params", False, @@ -18669,6 +18964,14 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging": ( + "stripe.params._payment_intent_update_params", + False, + ), + "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna": ( "stripe.params._payment_intent_update_params", False, @@ -19065,6 +19368,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataAeonPay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataAffirm": ( "stripe.params._payment_intent_update_params", False, @@ -19089,6 +19396,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataAuPay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataBacsDebit": ( "stripe.params._payment_intent_update_params", False, @@ -19137,6 +19448,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataDbarai": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataEps": ( "stripe.params._payment_intent_update_params", False, @@ -19205,6 +19520,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodDataMerpay": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodDataMobilepay": ( "stripe.params._payment_intent_update_params", False, @@ -19409,6 +19728,10 @@ "stripe.params._payment_intent_update_params", False, ), + "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitFinancialConnections": ( + "stripe.params._payment_intent_update_params", + False, + ), "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions": ( "stripe.params._payment_intent_update_params", False, @@ -21109,6 +21432,14 @@ "stripe.params._payment_method_configuration_create_params", False, ), + "PaymentMethodConfigurationCreateParamsRakutenPay": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), + "PaymentMethodConfigurationCreateParamsRakutenPayDisplayPreference": ( + "stripe.params._payment_method_configuration_create_params", + False, + ), "PaymentMethodConfigurationCreateParamsRevolutPay": ( "stripe.params._payment_method_configuration_create_params", False, @@ -21653,6 +21984,14 @@ "stripe.params._payment_method_configuration_modify_params", False, ), + "PaymentMethodConfigurationModifyParamsRakutenPay": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), + "PaymentMethodConfigurationModifyParamsRakutenPayDisplayPreference": ( + "stripe.params._payment_method_configuration_modify_params", + False, + ), "PaymentMethodConfigurationModifyParamsRevolutPay": ( "stripe.params._payment_method_configuration_modify_params", False, @@ -22197,6 +22536,14 @@ "stripe.params._payment_method_configuration_update_params", False, ), + "PaymentMethodConfigurationUpdateParamsRakutenPay": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), + "PaymentMethodConfigurationUpdateParamsRakutenPayDisplayPreference": ( + "stripe.params._payment_method_configuration_update_params", + False, + ), "PaymentMethodConfigurationUpdateParamsRevolutPay": ( "stripe.params._payment_method_configuration_update_params", False, @@ -22333,6 +22680,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsAeonPay": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsAffirm": ( "stripe.params._payment_method_create_params", False, @@ -22357,6 +22708,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsAuPay": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsBacsDebit": ( "stripe.params._payment_method_create_params", False, @@ -22417,6 +22772,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsDbarai": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsEps": ( "stripe.params._payment_method_create_params", False, @@ -22485,6 +22844,10 @@ "stripe.params._payment_method_create_params", False, ), + "PaymentMethodCreateParamsMerpay": ( + "stripe.params._payment_method_create_params", + False, + ), "PaymentMethodCreateParamsMobilepay": ( "stripe.params._payment_method_create_params", False, @@ -24541,6 +24904,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataAeonPay": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataAffirm": ( "stripe.params._setup_intent_confirm_params", False, @@ -24565,6 +24932,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataAuPay": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataBacsDebit": ( "stripe.params._setup_intent_confirm_params", False, @@ -24613,6 +24984,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataDbarai": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataEps": ( "stripe.params._setup_intent_confirm_params", False, @@ -24681,6 +25056,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsPaymentMethodDataMerpay": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsPaymentMethodDataMobilepay": ( "stripe.params._setup_intent_confirm_params", False, @@ -24993,6 +25372,10 @@ "stripe.params._setup_intent_confirm_params", False, ), + "SetupIntentConfirmParamsRadarOptions": ( + "stripe.params._setup_intent_confirm_params", + False, + ), "SetupIntentConfirmParamsSetupDetails": ( "stripe.params._setup_intent_confirm_params", False, @@ -25037,6 +25420,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataAeonPay": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataAffirm": ( "stripe.params._setup_intent_create_params", False, @@ -25061,6 +25448,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataAuPay": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataBacsDebit": ( "stripe.params._setup_intent_create_params", False, @@ -25109,6 +25500,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataDbarai": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataEps": ( "stripe.params._setup_intent_create_params", False, @@ -25177,6 +25572,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsPaymentMethodDataMerpay": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsPaymentMethodDataMobilepay": ( "stripe.params._setup_intent_create_params", False, @@ -25489,6 +25888,10 @@ "stripe.params._setup_intent_create_params", False, ), + "SetupIntentCreateParamsRadarOptions": ( + "stripe.params._setup_intent_create_params", + False, + ), "SetupIntentCreateParamsSetupDetails": ( "stripe.params._setup_intent_create_params", False, @@ -25525,6 +25928,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataAeonPay": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataAffirm": ( "stripe.params._setup_intent_modify_params", False, @@ -25549,6 +25956,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataAuPay": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataBacsDebit": ( "stripe.params._setup_intent_modify_params", False, @@ -25597,6 +26008,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataDbarai": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataEps": ( "stripe.params._setup_intent_modify_params", False, @@ -25665,6 +26080,10 @@ "stripe.params._setup_intent_modify_params", False, ), + "SetupIntentModifyParamsPaymentMethodDataMerpay": ( + "stripe.params._setup_intent_modify_params", + False, + ), "SetupIntentModifyParamsPaymentMethodDataMobilepay": ( "stripe.params._setup_intent_modify_params", False, @@ -26005,6 +26424,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataAeonPay": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataAffirm": ( "stripe.params._setup_intent_update_params", False, @@ -26029,6 +26452,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataAuPay": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataBacsDebit": ( "stripe.params._setup_intent_update_params", False, @@ -26077,6 +26504,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataDbarai": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataEps": ( "stripe.params._setup_intent_update_params", False, @@ -26145,6 +26576,10 @@ "stripe.params._setup_intent_update_params", False, ), + "SetupIntentUpdateParamsPaymentMethodDataMerpay": ( + "stripe.params._setup_intent_update_params", + False, + ), "SetupIntentUpdateParamsPaymentMethodDataMobilepay": ( "stripe.params._setup_intent_update_params", False, diff --git a/stripe/params/_account_session_create_params.py b/stripe/params/_account_session_create_params.py index 439b13752..e427a64c2 100644 --- a/stripe/params/_account_session_create_params.py +++ b/stripe/params/_account_session_create_params.py @@ -59,6 +59,16 @@ class AccountSessionCreateParamsComponents(TypedDict): """ Configuration for the [balances](https://docs.stripe.com/connect/supported-embedded-components/balances/) embedded component. """ + bills: NotRequired["AccountSessionCreateParamsComponentsBills"] + """ + Configuration for the [Bills](https://docs.stripe.com/connect/supported-embedded-components/bills/) embedded component. + """ + business_profile_management: NotRequired[ + "AccountSessionCreateParamsComponentsBusinessProfileManagement" + ] + """ + Configuration for the [Business profile management](https://docs.stripe.com/connect/supported-embedded-components/business-profile-management/) embedded component. + """ capital_financing: NotRequired[ "AccountSessionCreateParamsComponentsCapitalFinancing" ] @@ -117,12 +127,30 @@ class AccountSessionCreateParamsComponents(TypedDict): """ Configuration for the [financial account](https://docs.stripe.com/connect/supported-embedded-components/financial-account/) embedded component. """ + financial_account_rewards: NotRequired[ + "AccountSessionCreateParamsComponentsFinancialAccountRewards" + ] + """ + Configuration for the [financial account rewards](https://docs.stripe.com/connect/supported-embedded-components/financial-account-rewards/) embedded component. + """ financial_account_transactions: NotRequired[ "AccountSessionCreateParamsComponentsFinancialAccountTransactions" ] """ Configuration for the [financial account transactions](https://docs.stripe.com/connect/supported-embedded-components/financial-account-transactions/) embedded component. """ + financial_accounts: NotRequired[ + "AccountSessionCreateParamsComponentsFinancialAccounts" + ] + """ + Configuration for the [financial accounts](https://docs.stripe.com/connect/supported-embedded-components/financial-accounts/) embedded component. + """ + financial_accounts_transactions: NotRequired[ + "AccountSessionCreateParamsComponentsFinancialAccountsTransactions" + ] + """ + Configuration for the [financial accounts transactions](https://docs.stripe.com/connect/supported-embedded-components/financial-accounts-transactions/) embedded component. + """ instant_payouts_promotion: NotRequired[ "AccountSessionCreateParamsComponentsInstantPayoutsPromotion" ] @@ -141,6 +169,12 @@ class AccountSessionCreateParamsComponents(TypedDict): """ Configuration for the [issuing cards list](https://docs.stripe.com/connect/supported-embedded-components/issuing-cards-list/) embedded component. """ + network_cost_passthrough_report: NotRequired[ + "AccountSessionCreateParamsComponentsNetworkCostPassthroughReport" + ] + """ + Configuration for the [network cost passthrough report](https://docs.stripe.com/connect/supported-embedded-components/network-cost-passthrough-report/) embedded component. + """ notification_banner: NotRequired[ "AccountSessionCreateParamsComponentsNotificationBanner" ] @@ -201,6 +235,12 @@ class AccountSessionCreateParamsComponents(TypedDict): """ Configuration for the [recipients](https://docs.stripe.com/connect/supported-embedded-components/recipients/) embedded component. """ + recipients_list: NotRequired[ + "AccountSessionCreateParamsComponentsRecipientsList" + ] + """ + Configuration for the [recipients list](https://docs.stripe.com/connect/supported-embedded-components/recipients-list/) embedded component. + """ reporting_chart: NotRequired[ "AccountSessionCreateParamsComponentsReportingChart" ] @@ -399,6 +439,51 @@ class AccountSessionCreateParamsComponentsBalancesFeatures(TypedDict): """ +class AccountSessionCreateParamsComponentsBills(TypedDict): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired["AccountSessionCreateParamsComponentsBillsFeatures"] + """ + The list of features enabled in the embedded component. + """ + + +class AccountSessionCreateParamsComponentsBillsFeatures(TypedDict): + bill_management: NotRequired[bool] + """ + Whether to allow bill management features. + """ + disable_stripe_user_authentication: NotRequired[bool] + """ + Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default. + """ + send_money: NotRequired[bool] + """ + Whether to allow sending money. + """ + + +class AccountSessionCreateParamsComponentsBusinessProfileManagement(TypedDict): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionCreateParamsComponentsBusinessProfileManagementFeatures" + ] + """ + An empty list, because this embedded component has no features. + """ + + +class AccountSessionCreateParamsComponentsBusinessProfileManagementFeatures( + TypedDict, +): + pass + + class AccountSessionCreateParamsComponentsCapitalFinancing(TypedDict): enabled: bool """ @@ -615,6 +700,25 @@ class AccountSessionCreateParamsComponentsFinancialAccountFeatures(TypedDict): """ +class AccountSessionCreateParamsComponentsFinancialAccountRewards(TypedDict): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionCreateParamsComponentsFinancialAccountRewardsFeatures" + ] + """ + An empty list, because this embedded component has no features. + """ + + +class AccountSessionCreateParamsComponentsFinancialAccountRewardsFeatures( + TypedDict, +): + pass + + class AccountSessionCreateParamsComponentsFinancialAccountTransactions( TypedDict, ): @@ -639,6 +743,86 @@ class AccountSessionCreateParamsComponentsFinancialAccountTransactionsFeatures( """ +class AccountSessionCreateParamsComponentsFinancialAccounts(TypedDict): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionCreateParamsComponentsFinancialAccountsFeatures" + ] + """ + The list of features enabled in the embedded component. + """ + + +class AccountSessionCreateParamsComponentsFinancialAccountsFeatures(TypedDict): + bill_management: NotRequired[bool] + """ + Whether to allow bill management features. + """ + card_management: NotRequired[bool] + """ + Whether to allow card management features. + """ + disable_stripe_user_authentication: NotRequired[bool] + """ + Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default. + """ + edit_payout_schedule: NotRequired[bool] + """ + Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. + """ + send_money: NotRequired[bool] + """ + Whether to allow sending money. + """ + + +class AccountSessionCreateParamsComponentsFinancialAccountsTransactions( + TypedDict, +): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionCreateParamsComponentsFinancialAccountsTransactionsFeatures" + ] + """ + The list of features enabled in the embedded component. + """ + + +class AccountSessionCreateParamsComponentsFinancialAccountsTransactionsFeatures( + TypedDict, +): + capture_payments: NotRequired[bool] + """ + Whether to allow capturing and cancelling payment intents. This is `true` by default. + """ + card_management: NotRequired[bool] + """ + Whether to allow card management features. + """ + card_spend_dispute_management: NotRequired[bool] + """ + Whether to allow card spend dispute management features. + """ + destination_on_behalf_of_charge_management: NotRequired[bool] + """ + Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. + """ + dispute_management: NotRequired[bool] + """ + Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default. + """ + refund_management: NotRequired[bool] + """ + Whether sending refunds is enabled. This is `true` by default. + """ + + class AccountSessionCreateParamsComponentsInstantPayoutsPromotion(TypedDict): enabled: bool """ @@ -737,6 +921,27 @@ class AccountSessionCreateParamsComponentsIssuingCardsListFeatures(TypedDict): """ +class AccountSessionCreateParamsComponentsNetworkCostPassthroughReport( + TypedDict, +): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionCreateParamsComponentsNetworkCostPassthroughReportFeatures" + ] + """ + An empty list, because this embedded component has no features. + """ + + +class AccountSessionCreateParamsComponentsNetworkCostPassthroughReportFeatures( + TypedDict, +): + pass + + class AccountSessionCreateParamsComponentsNotificationBanner(TypedDict): enabled: bool """ @@ -1016,6 +1221,30 @@ class AccountSessionCreateParamsComponentsRecipientsFeatures(TypedDict): """ +class AccountSessionCreateParamsComponentsRecipientsList(TypedDict): + enabled: bool + """ + Whether the embedded component is enabled. + """ + features: NotRequired[ + "AccountSessionCreateParamsComponentsRecipientsListFeatures" + ] + """ + The list of features enabled in the embedded component. + """ + + +class AccountSessionCreateParamsComponentsRecipientsListFeatures(TypedDict): + disable_stripe_user_authentication: NotRequired[bool] + """ + Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. This is `false` by default. + """ + send_money: NotRequired[bool] + """ + Whether to allow sending money. + """ + + class AccountSessionCreateParamsComponentsReportingChart(TypedDict): enabled: bool """ diff --git a/stripe/params/_confirmation_token_create_params.py b/stripe/params/_confirmation_token_create_params.py index 3dda450f8..8d8c8b97c 100644 --- a/stripe/params/_confirmation_token_create_params.py +++ b/stripe/params/_confirmation_token_create_params.py @@ -50,6 +50,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ + aeon_pay: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataAeonPay" + ] + """ + If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method. + """ affirm: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataAffirm"] """ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -86,6 +92,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ + au_pay: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataAuPay"] + """ + If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method. + """ bacs_debit: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit" ] @@ -142,6 +152,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ + dbarai: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataDbarai"] + """ + If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method. + """ eps: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataEps"] """ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. @@ -224,6 +238,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. """ + merpay: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataMerpay"] + """ + If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method. + """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -401,12 +419,14 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -417,6 +437,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -432,6 +453,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -516,6 +538,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataAeonPay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataAffirm(TypedDict): pass @@ -549,6 +575,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataAuPay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit(TypedDict): account_number: NotRequired[str] """ @@ -653,6 +683,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataDbarai(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataEps(TypedDict): bank: NotRequired[ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str" @@ -789,6 +823,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataMbWay(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataMerpay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataMobilepay(TypedDict): pass diff --git a/stripe/params/_customer_create_tax_exemption_params.py b/stripe/params/_customer_create_tax_exemption_params.py index 4e9956e1a..f085f865f 100644 --- a/stripe/params/_customer_create_tax_exemption_params.py +++ b/stripe/params/_customer_create_tax_exemption_params.py @@ -30,6 +30,18 @@ class CustomerCreateTaxExemptionParams(RequestOptions): """ ISO 8601 date (YYYY-MM-DD) when the exemption expires. """ + reason: NotRequired[ + "Literal['direct_pay_permit', 'legacy_contract', 'other']|str" + ] + """ + The reason the customer is exempt. Required when `us.tax_code_group` is `saas`. + """ + reason_details: NotRequired[ + "CustomerCreateTaxExemptionParamsReasonDetails" + ] + """ + Additional details about the exemption reason. + """ us: NotRequired["CustomerCreateTaxExemptionParamsUs"] """ US-specific exemption details. Required when country is US; must be absent otherwise. @@ -54,8 +66,26 @@ class CustomerCreateTaxExemptionParamsEs(TypedDict): """ +class CustomerCreateTaxExemptionParamsReasonDetails(TypedDict): + other: NotRequired["CustomerCreateTaxExemptionParamsReasonDetailsOther"] + """ + Details for the `other` exemption reason. + """ + + +class CustomerCreateTaxExemptionParamsReasonDetailsOther(TypedDict): + reason_text: str + """ + A free-text description of the exemption reason. Maximum 5000 characters. + """ + + class CustomerCreateTaxExemptionParamsUs(TypedDict): state: str """ Two-letter US state code (ISO 3166-2). """ + tax_code_group: NotRequired["Literal['all', 'saas']|str"] + """ + The group of tax codes this exemption applies to. Defaults to `all`. `saas` is only available when `state` is `CA`. + """ diff --git a/stripe/params/_customer_list_payment_methods_params.py b/stripe/params/_customer_list_payment_methods_params.py index 88519577e..d1b2c973a 100644 --- a/stripe/params/_customer_list_payment_methods_params.py +++ b/stripe/params/_customer_list_payment_methods_params.py @@ -29,7 +29,7 @@ class CustomerListPaymentMethodsParams(RequestOptions): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. """ type: NotRequired[ - "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" + "Literal['acss_debit', 'aeon_pay', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'au_pay', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'dbarai', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'merpay', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" ] """ An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request. diff --git a/stripe/params/_customer_payment_method_list_params.py b/stripe/params/_customer_payment_method_list_params.py index 3b02bf98d..a00d20a3a 100644 --- a/stripe/params/_customer_payment_method_list_params.py +++ b/stripe/params/_customer_payment_method_list_params.py @@ -28,7 +28,7 @@ class CustomerPaymentMethodListParams(TypedDict): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. """ type: NotRequired[ - "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" + "Literal['acss_debit', 'aeon_pay', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'au_pay', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'dbarai', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'merpay', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" ] """ An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request. diff --git a/stripe/params/_customer_tax_exemption_create_params.py b/stripe/params/_customer_tax_exemption_create_params.py index de5f6ecbc..fb1653c06 100644 --- a/stripe/params/_customer_tax_exemption_create_params.py +++ b/stripe/params/_customer_tax_exemption_create_params.py @@ -29,6 +29,18 @@ class CustomerTaxExemptionCreateParams(TypedDict): """ ISO 8601 date (YYYY-MM-DD) when the exemption expires. """ + reason: NotRequired[ + "Literal['direct_pay_permit', 'legacy_contract', 'other']|str" + ] + """ + The reason the customer is exempt. Required when `us.tax_code_group` is `saas`. + """ + reason_details: NotRequired[ + "CustomerTaxExemptionCreateParamsReasonDetails" + ] + """ + Additional details about the exemption reason. + """ us: NotRequired["CustomerTaxExemptionCreateParamsUs"] """ US-specific exemption details. Required when country is US; must be absent otherwise. @@ -53,8 +65,26 @@ class CustomerTaxExemptionCreateParamsEs(TypedDict): """ +class CustomerTaxExemptionCreateParamsReasonDetails(TypedDict): + other: NotRequired["CustomerTaxExemptionCreateParamsReasonDetailsOther"] + """ + Details for the `other` exemption reason. + """ + + +class CustomerTaxExemptionCreateParamsReasonDetailsOther(TypedDict): + reason_text: str + """ + A free-text description of the exemption reason. Maximum 5000 characters. + """ + + class CustomerTaxExemptionCreateParamsUs(TypedDict): state: str """ Two-letter US state code (ISO 3166-2). """ + tax_code_group: NotRequired["Literal['all', 'saas']|str"] + """ + The group of tax codes this exemption applies to. Defaults to `all`. `saas` is only available when `state` is `CA`. + """ diff --git a/stripe/params/_invoice_create_params.py b/stripe/params/_invoice_create_params.py index 4164d1144..1c69835f6 100644 --- a/stripe/params/_invoice_create_params.py +++ b/stripe/params/_invoice_create_params.py @@ -445,7 +445,7 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBacsDebit( Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] @@ -681,7 +681,10 @@ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPix(TypedDict): class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit( TypedDict, ): - pass + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUpi(TypedDict): diff --git a/stripe/params/_invoice_modify_params.py b/stripe/params/_invoice_modify_params.py index 006e52352..fc5b2b02d 100644 --- a/stripe/params/_invoice_modify_params.py +++ b/stripe/params/_invoice_modify_params.py @@ -399,7 +399,7 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsBacsDebit( Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] @@ -635,7 +635,10 @@ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsPix(TypedDict): class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsSepaDebit( TypedDict, ): - pass + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ class InvoiceModifyParamsPaymentSettingsPaymentMethodOptionsUpi(TypedDict): diff --git a/stripe/params/_invoice_update_params.py b/stripe/params/_invoice_update_params.py index c4b8fc987..32314dbc5 100644 --- a/stripe/params/_invoice_update_params.py +++ b/stripe/params/_invoice_update_params.py @@ -398,7 +398,7 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBacsDebit( Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] @@ -634,7 +634,10 @@ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPix(TypedDict): class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit( TypedDict, ): - pass + target_date: NotRequired[str] + """ + Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + """ class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUpi(TypedDict): diff --git a/stripe/params/_payment_attempt_record_report_authenticated_params.py b/stripe/params/_payment_attempt_record_report_authenticated_params.py index a5fa5c6e2..8e5e42979 100644 --- a/stripe/params/_payment_attempt_record_report_authenticated_params.py +++ b/stripe/params/_payment_attempt_record_report_authenticated_params.py @@ -2,8 +2,8 @@ # File generated from our OpenAPI spec from stripe._request_options import RequestOptions from stripe._stripe_object import UntypedStripeObject -from typing import Dict, List -from typing_extensions import Literal, NotRequired +from typing import Dict, List, Union +from typing_extensions import Literal, NotRequired, TypedDict class PaymentAttemptRecordReportAuthenticatedParams(RequestOptions): @@ -21,3 +21,66 @@ class PaymentAttemptRecordReportAuthenticatedParams(RequestOptions): """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. """ + payment_method_details: NotRequired[ + "PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetails" + ] + """ + Information about the Payment Method debited for this payment. + """ + + +class PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetails( + TypedDict, +): + card: NotRequired[ + "PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetailsCard" + ] + """ + Information about the card payment method used to make this payment. + """ + type: Literal["card"] + """ + The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. + """ + + +class PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetailsCard( + TypedDict, +): + three_d_secure: NotRequired[ + "PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetailsCardThreeDSecure" + ] + """ + Populated if this transaction used 3D Secure authentication. + """ + + +class PaymentAttemptRecordReportAuthenticatedParamsPaymentMethodDetailsCardThreeDSecure( + TypedDict, +): + authentication_flow: NotRequired[ + "Literal['challenge', 'frictionless']|str" + ] + """ + For authenticated transactions: Indicates how the issuing bank authenticated the customer. + """ + electronic_commerce_indicator: NotRequired[ + "Literal['01', '02', '05', '06', '07']|str" + ] + """ + The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed. + """ + exemption_indicator: NotRequired["Literal['low_risk', 'none']|str"] + """ + The exemption requested via 3DS and accepted by the issuer at authentication time. + """ + result: Union[ + Literal["attempt_acknowledged", "authenticated", "exempted"], str + ] + """ + Indicates the outcome of 3D Secure authentication. + """ + version: Union[Literal["1.0.2", "2.1.0", "2.2.0", "2.3.0", "2.3.1"], str] + """ + The version of 3D Secure that was used. + """ diff --git a/stripe/params/_payment_attempt_record_report_guaranteed_params.py b/stripe/params/_payment_attempt_record_report_guaranteed_params.py index 45e74af62..9c24e7dc5 100644 --- a/stripe/params/_payment_attempt_record_report_guaranteed_params.py +++ b/stripe/params/_payment_attempt_record_report_guaranteed_params.py @@ -2,7 +2,7 @@ # File generated from our OpenAPI spec from stripe._request_options import RequestOptions from stripe._stripe_object import UntypedStripeObject -from typing import Dict, List +from typing import Dict, List, Union from typing_extensions import Literal, NotRequired, TypedDict @@ -52,7 +52,7 @@ class PaymentAttemptRecordReportGuaranteedParamsPaymentMethodDetails( """ Information about the card payment method used to make this payment. """ - type: Literal["card"] + type: Union[Literal["card", "us_bank_account"], str] """ The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. """ diff --git a/stripe/params/_payment_intent_capture_params.py b/stripe/params/_payment_intent_capture_params.py index 57b4ec197..43bebf971 100644 --- a/stripe/params/_payment_intent_capture_params.py +++ b/stripe/params/_payment_intent_capture_params.py @@ -447,6 +447,256 @@ class PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPre """ Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ + ev_charging: NotRequired[ + "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging" + ] + """ + EV charging data for this line item. + """ + fleet_data: NotRequired[ + "PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData" + ] + """ + Fleet data for this line item. + """ + + +class PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging( + TypedDict, +): + carbon_footprint_avoided_grams_co2: NotRequired[int] + """ + The carbon footprint avoided by the charging session, in grams of CO2. + """ + charging_ended_at: int + """ + The time the charging session ended, measured in seconds since the Unix epoch. + """ + charging_power_output_capacity_kw: int + """ + The power output capacity of the charging station, in kilowatts (kW). + """ + charging_started_at: int + """ + The time the charging session started, measured in seconds since the Unix epoch. + """ + connector_type: Union[ + Literal[ + "ac_gb_t", + "ac_j1772", + "ac_mennekes", + "dc_ccs1", + "dc_ccs2", + "dc_chademo", + "dc_gb_t", + "dc_mcs", + "nacs", + ], + str, + ] + """ + The type of connector used for the charging session. + """ + estimated_range_added: NotRequired[int] + """ + The estimated distance in kilometers or miles added to the vehicle during the charging session. + """ + estimated_range_left: NotRequired[int] + """ + The estimated distance in kilometers or miles remaining in the vehicle after the charging session. + """ + maximum_power_dispensed_kw: int + """ + The maximum power dispensed during the charging session, in kilowatts (kW). + """ + + +class PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData( + TypedDict, +): + product_type: Union[ + Literal[ + "additive_dosage", + "additized_diesel_2", + "additized_diesel_3", + "air_conditioning_service", + "air_filter", + "alcohol", + "antifreeze", + "automotive_merchandise", + "aviation_fuel_premium", + "aviation_fuel_regular", + "batteries", + "biodiesel_b1", + "biodiesel_b10", + "biodiesel_b100", + "biodiesel_b11", + "biodiesel_b15", + "biodiesel_b2", + "biodiesel_b20", + "biodiesel_b5", + "biodiesel_b75", + "biodiesel_b99", + "blended_diesel_1_and_2", + "body_work", + "brake_fluid", + "brake_service", + "car_care_detailing", + "car_wash", + "compressed_natural_gas", + "def_at_pump", + "deli", + "e85", + "engine_service", + "ethanol_e16_to_e84", + "ev_battery_exchanges", + "ev_charging_fee", + "evc_level_1", + "evc_level_2", + "evc_level_3", + "evc_level_4", + "evc_level_5", + "exhaust_service", + "federal_tire_excise_tax", + "food_service", + "fuel_additive_treatment", + "fuel_system", + "green_gasoline_mid_plus", + "green_gasoline_premium_super", + "green_gasoline_regular", + "grocery", + "heating_oil", + "hoses", + "hydrogen_h35", + "hydrogen_h70", + "inspection", + "kerosene_low_sulfur", + "kerosene_low_sulfur_non_taxable", + "kerosene_ultra_low_sulfur", + "kerosene_ultra_low_sulfur_non_taxable", + "labor", + "lamps", + "liquid_natural_gas", + "liquid_propane_gas", + "lodging", + "low_octane_unleaded", + "lube", + "marine_diesel", + "marine_fuel", + "marine_fuel_1", + "marine_fuel_2", + "marine_fuel_3", + "marine_fuel_4", + "marine_fuel_5", + "marine_other", + "merchandise", + "mid_plus", + "mid_plus_2", + "mid_plus_2_10", + "mid_plus_2_e15", + "mid_plus_2_reformulated", + "mid_plus_e10", + "mid_plus_e15", + "mid_plus_ethanol", + "mid_plus_reformulated", + "miscellaneous_aviation_products_services", + "miscellaneous_fuel", + "miscellaneous_marine_products_services", + "miscellaneous_vehicle_products_services", + "motor_oil", + "off_road_b1", + "off_road_b10", + "off_road_b100", + "off_road_b11", + "off_road_b15", + "off_road_b2", + "off_road_b20", + "off_road_b5", + "off_road_b75", + "off_road_b99", + "off_road_biodiesel", + "off_road_diesel_1", + "off_road_diesel_2", + "off_road_mid_plus", + "off_road_mid_plus_2", + "off_road_premium_diesel_1", + "off_road_premium_diesel_2", + "off_road_premium_super", + "off_road_premium_super_2", + "off_road_regular", + "off_road_renewable_diesel_b6_to_b20", + "off_road_renewable_diesel_r95", + "oil_change", + "oil_filter", + "other_lubricants", + "packaged_beverage", + "premium_diesel", + "premium_diesel_2", + "premium_diesel_b20_plus", + "premium_diesel_under_b20", + "premium_super", + "premium_super_2", + "premium_super_2_10", + "premium_super_2_e15", + "premium_super_2_reformulated", + "premium_super_e10", + "premium_super_e15", + "premium_super_ethanol", + "premium_super_reformulated", + "preventative_maintenance", + "racing_fuel", + "recreational_fuel_90_octane", + "regular", + "regular_diesel", + "regular_diesel_2", + "regular_e10", + "regular_e15", + "regular_ethanol", + "regular_reformulated", + "renewable_diesel_b6_to_b20", + "renewable_diesel_r95", + "repairs", + "road_service", + "rv_dump_fee", + "scales", + "self_service_car_wash", + "service_package", + "shower", + "store_service", + "synthetic_oil", + "tire_related", + "tire_repair", + "tire_rotation", + "tires", + "tobacco", + "toll_payments", + "towing", + "trailer_wash", + "transmission_service", + "truck_tank_cleaning", + "vehicle_accessories", + "vehicle_glass", + "vehicle_parking", + "vehicle_parts", + "vehicle_prep", + "vehicle_rental", + "vehicle_work_order", + "wash_out", + "washer_fluid", + "white_gas", + "wipers", + ], + str, + ] + """ + The type of product being purchased at this line item. + """ + service_type: NotRequired[ + "Literal['full_service', 'high_speed_diesel', 'non_fuel_only', 'self_service']|str" + ] + """ + The type of service received at the acceptor location. + """ class PaymentIntentCaptureParamsAmountDetailsLineItemPaymentMethodOptionsKlarna( diff --git a/stripe/params/_payment_intent_confirm_params.py b/stripe/params/_payment_intent_confirm_params.py index ca774d443..77ca14261 100644 --- a/stripe/params/_payment_intent_confirm_params.py +++ b/stripe/params/_payment_intent_confirm_params.py @@ -16,12 +16,14 @@ class PaymentIntentConfirmParams(RequestOptions): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -38,6 +40,7 @@ class PaymentIntentConfirmParams(RequestOptions): "click_to_pay", "crypto", "customer_balance", + "dbarai", "demo_pay", "duitnow", "dummy_auth_push", @@ -64,6 +67,7 @@ class PaymentIntentConfirmParams(RequestOptions): "kriya", "link", "mb_way", + "merpay", "mobilepay", "momo", "mondu", @@ -158,7 +162,7 @@ class PaymentIntentConfirmParams(RequestOptions): Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication). """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'aeon_pay', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'au_pay', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'dbarai', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'merpay', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this payment. @@ -643,6 +647,256 @@ class PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPre """ Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ + ev_charging: NotRequired[ + "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging" + ] + """ + EV charging data for this line item. + """ + fleet_data: NotRequired[ + "PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData" + ] + """ + Fleet data for this line item. + """ + + +class PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging( + TypedDict, +): + carbon_footprint_avoided_grams_co2: NotRequired[int] + """ + The carbon footprint avoided by the charging session, in grams of CO2. + """ + charging_ended_at: int + """ + The time the charging session ended, measured in seconds since the Unix epoch. + """ + charging_power_output_capacity_kw: int + """ + The power output capacity of the charging station, in kilowatts (kW). + """ + charging_started_at: int + """ + The time the charging session started, measured in seconds since the Unix epoch. + """ + connector_type: Union[ + Literal[ + "ac_gb_t", + "ac_j1772", + "ac_mennekes", + "dc_ccs1", + "dc_ccs2", + "dc_chademo", + "dc_gb_t", + "dc_mcs", + "nacs", + ], + str, + ] + """ + The type of connector used for the charging session. + """ + estimated_range_added: NotRequired[int] + """ + The estimated distance in kilometers or miles added to the vehicle during the charging session. + """ + estimated_range_left: NotRequired[int] + """ + The estimated distance in kilometers or miles remaining in the vehicle after the charging session. + """ + maximum_power_dispensed_kw: int + """ + The maximum power dispensed during the charging session, in kilowatts (kW). + """ + + +class PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData( + TypedDict, +): + product_type: Union[ + Literal[ + "additive_dosage", + "additized_diesel_2", + "additized_diesel_3", + "air_conditioning_service", + "air_filter", + "alcohol", + "antifreeze", + "automotive_merchandise", + "aviation_fuel_premium", + "aviation_fuel_regular", + "batteries", + "biodiesel_b1", + "biodiesel_b10", + "biodiesel_b100", + "biodiesel_b11", + "biodiesel_b15", + "biodiesel_b2", + "biodiesel_b20", + "biodiesel_b5", + "biodiesel_b75", + "biodiesel_b99", + "blended_diesel_1_and_2", + "body_work", + "brake_fluid", + "brake_service", + "car_care_detailing", + "car_wash", + "compressed_natural_gas", + "def_at_pump", + "deli", + "e85", + "engine_service", + "ethanol_e16_to_e84", + "ev_battery_exchanges", + "ev_charging_fee", + "evc_level_1", + "evc_level_2", + "evc_level_3", + "evc_level_4", + "evc_level_5", + "exhaust_service", + "federal_tire_excise_tax", + "food_service", + "fuel_additive_treatment", + "fuel_system", + "green_gasoline_mid_plus", + "green_gasoline_premium_super", + "green_gasoline_regular", + "grocery", + "heating_oil", + "hoses", + "hydrogen_h35", + "hydrogen_h70", + "inspection", + "kerosene_low_sulfur", + "kerosene_low_sulfur_non_taxable", + "kerosene_ultra_low_sulfur", + "kerosene_ultra_low_sulfur_non_taxable", + "labor", + "lamps", + "liquid_natural_gas", + "liquid_propane_gas", + "lodging", + "low_octane_unleaded", + "lube", + "marine_diesel", + "marine_fuel", + "marine_fuel_1", + "marine_fuel_2", + "marine_fuel_3", + "marine_fuel_4", + "marine_fuel_5", + "marine_other", + "merchandise", + "mid_plus", + "mid_plus_2", + "mid_plus_2_10", + "mid_plus_2_e15", + "mid_plus_2_reformulated", + "mid_plus_e10", + "mid_plus_e15", + "mid_plus_ethanol", + "mid_plus_reformulated", + "miscellaneous_aviation_products_services", + "miscellaneous_fuel", + "miscellaneous_marine_products_services", + "miscellaneous_vehicle_products_services", + "motor_oil", + "off_road_b1", + "off_road_b10", + "off_road_b100", + "off_road_b11", + "off_road_b15", + "off_road_b2", + "off_road_b20", + "off_road_b5", + "off_road_b75", + "off_road_b99", + "off_road_biodiesel", + "off_road_diesel_1", + "off_road_diesel_2", + "off_road_mid_plus", + "off_road_mid_plus_2", + "off_road_premium_diesel_1", + "off_road_premium_diesel_2", + "off_road_premium_super", + "off_road_premium_super_2", + "off_road_regular", + "off_road_renewable_diesel_b6_to_b20", + "off_road_renewable_diesel_r95", + "oil_change", + "oil_filter", + "other_lubricants", + "packaged_beverage", + "premium_diesel", + "premium_diesel_2", + "premium_diesel_b20_plus", + "premium_diesel_under_b20", + "premium_super", + "premium_super_2", + "premium_super_2_10", + "premium_super_2_e15", + "premium_super_2_reformulated", + "premium_super_e10", + "premium_super_e15", + "premium_super_ethanol", + "premium_super_reformulated", + "preventative_maintenance", + "racing_fuel", + "recreational_fuel_90_octane", + "regular", + "regular_diesel", + "regular_diesel_2", + "regular_e10", + "regular_e15", + "regular_ethanol", + "regular_reformulated", + "renewable_diesel_b6_to_b20", + "renewable_diesel_r95", + "repairs", + "road_service", + "rv_dump_fee", + "scales", + "self_service_car_wash", + "service_package", + "shower", + "store_service", + "synthetic_oil", + "tire_related", + "tire_repair", + "tire_rotation", + "tires", + "tobacco", + "toll_payments", + "towing", + "trailer_wash", + "transmission_service", + "truck_tank_cleaning", + "vehicle_accessories", + "vehicle_glass", + "vehicle_parking", + "vehicle_parts", + "vehicle_prep", + "vehicle_rental", + "vehicle_work_order", + "wash_out", + "washer_fluid", + "white_gas", + "wipers", + ], + str, + ] + """ + The type of product being purchased at this line item. + """ + service_type: NotRequired[ + "Literal['full_service', 'high_speed_diesel', 'non_fuel_only', 'self_service']|str" + ] + """ + The type of service received at the acceptor location. + """ class PaymentIntentConfirmParamsAmountDetailsLineItemPaymentMethodOptionsKlarna( @@ -2938,6 +3192,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ + aeon_pay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAeonPay"] + """ + If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method. + """ affirm: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAffirm"] """ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -2974,6 +3232,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ + au_pay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataAuPay"] + """ + If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method. + """ bacs_debit: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodDataBacsDebit" ] @@ -3028,6 +3290,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ + dbarai: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataDbarai"] + """ + If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method. + """ eps: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataEps"] """ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. @@ -3100,6 +3366,10 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. """ + merpay: NotRequired["PaymentIntentConfirmParamsPaymentMethodDataMerpay"] + """ + If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method. + """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -3275,12 +3545,14 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -3291,6 +3563,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -3306,6 +3579,7 @@ class PaymentIntentConfirmParamsPaymentMethodData(TypedDict): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -3390,6 +3664,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataAcssDebit(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodDataAeonPay(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataAffirm(TypedDict): pass @@ -3421,6 +3699,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataAuBecsDebit(TypedDict): """ +class PaymentIntentConfirmParamsPaymentMethodDataAuPay(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataBacsDebit(TypedDict): account_number: NotRequired[str] """ @@ -3525,6 +3807,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataCustomerBalance(TypedDict): pass +class PaymentIntentConfirmParamsPaymentMethodDataDbarai(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataEps(TypedDict): bank: NotRequired[ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str" @@ -3661,6 +3947,10 @@ class PaymentIntentConfirmParamsPaymentMethodDataMbWay(TypedDict): pass +class PaymentIntentConfirmParamsPaymentMethodDataMerpay(TypedDict): + pass + + class PaymentIntentConfirmParamsPaymentMethodDataMobilepay(TypedDict): pass @@ -4555,6 +4845,12 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsAuBecsDebit(TypedDict): class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict): + financial_connections: NotRequired[ + "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitFinancialConnections" + ] + """ + Additional fields for Financial Connections session creation. + """ mandate_options: NotRequired[ "PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions" ] @@ -4580,10 +4876,19 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict): Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] +class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitFinancialConnections( + TypedDict, +): + return_url: NotRequired[str] + """ + For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. + """ + + class PaymentIntentConfirmParamsPaymentMethodOptionsBacsDebitMandateOptions( TypedDict, ): @@ -7258,7 +7563,7 @@ class PaymentIntentConfirmParamsPaymentMethodOptionsPaypalLineItemTax( class PaymentIntentConfirmParamsPaymentMethodOptionsPaypay(TypedDict): setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']|str" + "Literal['']|Literal['none', 'off_session']|str" ] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/stripe/params/_payment_intent_create_params.py b/stripe/params/_payment_intent_create_params.py index cf2a2d7a5..96caab62f 100644 --- a/stripe/params/_payment_intent_create_params.py +++ b/stripe/params/_payment_intent_create_params.py @@ -16,12 +16,14 @@ class PaymentIntentCreateParams(RequestOptions): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -38,6 +40,7 @@ class PaymentIntentCreateParams(RequestOptions): "click_to_pay", "crypto", "customer_balance", + "dbarai", "demo_pay", "duitnow", "dummy_auth_push", @@ -64,6 +67,7 @@ class PaymentIntentCreateParams(RequestOptions): "kriya", "link", "mb_way", + "merpay", "mobilepay", "momo", "mondu", @@ -198,12 +202,14 @@ class PaymentIntentCreateParams(RequestOptions): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -215,6 +221,7 @@ class PaymentIntentCreateParams(RequestOptions): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -229,6 +236,7 @@ class PaymentIntentCreateParams(RequestOptions): "konbini", "kr_card", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -793,6 +801,256 @@ class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPres """ Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ + ev_charging: NotRequired[ + "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging" + ] + """ + EV charging data for this line item. + """ + fleet_data: NotRequired[ + "PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData" + ] + """ + Fleet data for this line item. + """ + + +class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging( + TypedDict, +): + carbon_footprint_avoided_grams_co2: NotRequired[int] + """ + The carbon footprint avoided by the charging session, in grams of CO2. + """ + charging_ended_at: int + """ + The time the charging session ended, measured in seconds since the Unix epoch. + """ + charging_power_output_capacity_kw: int + """ + The power output capacity of the charging station, in kilowatts (kW). + """ + charging_started_at: int + """ + The time the charging session started, measured in seconds since the Unix epoch. + """ + connector_type: Union[ + Literal[ + "ac_gb_t", + "ac_j1772", + "ac_mennekes", + "dc_ccs1", + "dc_ccs2", + "dc_chademo", + "dc_gb_t", + "dc_mcs", + "nacs", + ], + str, + ] + """ + The type of connector used for the charging session. + """ + estimated_range_added: NotRequired[int] + """ + The estimated distance in kilometers or miles added to the vehicle during the charging session. + """ + estimated_range_left: NotRequired[int] + """ + The estimated distance in kilometers or miles remaining in the vehicle after the charging session. + """ + maximum_power_dispensed_kw: int + """ + The maximum power dispensed during the charging session, in kilowatts (kW). + """ + + +class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData( + TypedDict, +): + product_type: Union[ + Literal[ + "additive_dosage", + "additized_diesel_2", + "additized_diesel_3", + "air_conditioning_service", + "air_filter", + "alcohol", + "antifreeze", + "automotive_merchandise", + "aviation_fuel_premium", + "aviation_fuel_regular", + "batteries", + "biodiesel_b1", + "biodiesel_b10", + "biodiesel_b100", + "biodiesel_b11", + "biodiesel_b15", + "biodiesel_b2", + "biodiesel_b20", + "biodiesel_b5", + "biodiesel_b75", + "biodiesel_b99", + "blended_diesel_1_and_2", + "body_work", + "brake_fluid", + "brake_service", + "car_care_detailing", + "car_wash", + "compressed_natural_gas", + "def_at_pump", + "deli", + "e85", + "engine_service", + "ethanol_e16_to_e84", + "ev_battery_exchanges", + "ev_charging_fee", + "evc_level_1", + "evc_level_2", + "evc_level_3", + "evc_level_4", + "evc_level_5", + "exhaust_service", + "federal_tire_excise_tax", + "food_service", + "fuel_additive_treatment", + "fuel_system", + "green_gasoline_mid_plus", + "green_gasoline_premium_super", + "green_gasoline_regular", + "grocery", + "heating_oil", + "hoses", + "hydrogen_h35", + "hydrogen_h70", + "inspection", + "kerosene_low_sulfur", + "kerosene_low_sulfur_non_taxable", + "kerosene_ultra_low_sulfur", + "kerosene_ultra_low_sulfur_non_taxable", + "labor", + "lamps", + "liquid_natural_gas", + "liquid_propane_gas", + "lodging", + "low_octane_unleaded", + "lube", + "marine_diesel", + "marine_fuel", + "marine_fuel_1", + "marine_fuel_2", + "marine_fuel_3", + "marine_fuel_4", + "marine_fuel_5", + "marine_other", + "merchandise", + "mid_plus", + "mid_plus_2", + "mid_plus_2_10", + "mid_plus_2_e15", + "mid_plus_2_reformulated", + "mid_plus_e10", + "mid_plus_e15", + "mid_plus_ethanol", + "mid_plus_reformulated", + "miscellaneous_aviation_products_services", + "miscellaneous_fuel", + "miscellaneous_marine_products_services", + "miscellaneous_vehicle_products_services", + "motor_oil", + "off_road_b1", + "off_road_b10", + "off_road_b100", + "off_road_b11", + "off_road_b15", + "off_road_b2", + "off_road_b20", + "off_road_b5", + "off_road_b75", + "off_road_b99", + "off_road_biodiesel", + "off_road_diesel_1", + "off_road_diesel_2", + "off_road_mid_plus", + "off_road_mid_plus_2", + "off_road_premium_diesel_1", + "off_road_premium_diesel_2", + "off_road_premium_super", + "off_road_premium_super_2", + "off_road_regular", + "off_road_renewable_diesel_b6_to_b20", + "off_road_renewable_diesel_r95", + "oil_change", + "oil_filter", + "other_lubricants", + "packaged_beverage", + "premium_diesel", + "premium_diesel_2", + "premium_diesel_b20_plus", + "premium_diesel_under_b20", + "premium_super", + "premium_super_2", + "premium_super_2_10", + "premium_super_2_e15", + "premium_super_2_reformulated", + "premium_super_e10", + "premium_super_e15", + "premium_super_ethanol", + "premium_super_reformulated", + "preventative_maintenance", + "racing_fuel", + "recreational_fuel_90_octane", + "regular", + "regular_diesel", + "regular_diesel_2", + "regular_e10", + "regular_e15", + "regular_ethanol", + "regular_reformulated", + "renewable_diesel_b6_to_b20", + "renewable_diesel_r95", + "repairs", + "road_service", + "rv_dump_fee", + "scales", + "self_service_car_wash", + "service_package", + "shower", + "store_service", + "synthetic_oil", + "tire_related", + "tire_repair", + "tire_rotation", + "tires", + "tobacco", + "toll_payments", + "towing", + "trailer_wash", + "transmission_service", + "truck_tank_cleaning", + "vehicle_accessories", + "vehicle_glass", + "vehicle_parking", + "vehicle_parts", + "vehicle_prep", + "vehicle_rental", + "vehicle_work_order", + "wash_out", + "washer_fluid", + "white_gas", + "wipers", + ], + str, + ] + """ + The type of product being purchased at this line item. + """ + service_type: NotRequired[ + "Literal['full_service', 'high_speed_diesel', 'non_fuel_only', 'self_service']|str" + ] + """ + The type of service received at the acceptor location. + """ class PaymentIntentCreateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna( @@ -3085,6 +3343,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ + aeon_pay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAeonPay"] + """ + If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method. + """ affirm: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAffirm"] """ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -3121,6 +3383,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ + au_pay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataAuPay"] + """ + If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method. + """ bacs_debit: NotRequired[ "PaymentIntentCreateParamsPaymentMethodDataBacsDebit" ] @@ -3175,6 +3441,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ + dbarai: NotRequired["PaymentIntentCreateParamsPaymentMethodDataDbarai"] + """ + If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method. + """ eps: NotRequired["PaymentIntentCreateParamsPaymentMethodDataEps"] """ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. @@ -3247,6 +3517,10 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. """ + merpay: NotRequired["PaymentIntentCreateParamsPaymentMethodDataMerpay"] + """ + If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method. + """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -3416,12 +3690,14 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -3432,6 +3708,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -3447,6 +3724,7 @@ class PaymentIntentCreateParamsPaymentMethodData(TypedDict): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -3531,6 +3809,10 @@ class PaymentIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodDataAeonPay(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataAffirm(TypedDict): pass @@ -3562,6 +3844,10 @@ class PaymentIntentCreateParamsPaymentMethodDataAuBecsDebit(TypedDict): """ +class PaymentIntentCreateParamsPaymentMethodDataAuPay(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataBacsDebit(TypedDict): account_number: NotRequired[str] """ @@ -3666,6 +3952,10 @@ class PaymentIntentCreateParamsPaymentMethodDataCustomerBalance(TypedDict): pass +class PaymentIntentCreateParamsPaymentMethodDataDbarai(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataEps(TypedDict): bank: NotRequired[ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str" @@ -3802,6 +4092,10 @@ class PaymentIntentCreateParamsPaymentMethodDataMbWay(TypedDict): pass +class PaymentIntentCreateParamsPaymentMethodDataMerpay(TypedDict): + pass + + class PaymentIntentCreateParamsPaymentMethodDataMobilepay(TypedDict): pass @@ -4694,6 +4988,12 @@ class PaymentIntentCreateParamsPaymentMethodOptionsAuBecsDebit(TypedDict): class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit(TypedDict): + financial_connections: NotRequired[ + "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitFinancialConnections" + ] + """ + Additional fields for Financial Connections session creation. + """ mandate_options: NotRequired[ "PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions" ] @@ -4719,10 +5019,19 @@ class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebit(TypedDict): Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] +class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitFinancialConnections( + TypedDict, +): + return_url: NotRequired[str] + """ + For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. + """ + + class PaymentIntentCreateParamsPaymentMethodOptionsBacsDebitMandateOptions( TypedDict, ): @@ -7389,7 +7698,7 @@ class PaymentIntentCreateParamsPaymentMethodOptionsPaypalLineItemTax( class PaymentIntentCreateParamsPaymentMethodOptionsPaypay(TypedDict): setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']|str" + "Literal['']|Literal['none', 'off_session']|str" ] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/stripe/params/_payment_intent_decrement_authorization_params.py b/stripe/params/_payment_intent_decrement_authorization_params.py index 5363d32ca..49bf90808 100644 --- a/stripe/params/_payment_intent_decrement_authorization_params.py +++ b/stripe/params/_payment_intent_decrement_authorization_params.py @@ -447,6 +447,256 @@ class PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMetho """ Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ + ev_charging: NotRequired[ + "PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging" + ] + """ + EV charging data for this line item. + """ + fleet_data: NotRequired[ + "PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData" + ] + """ + Fleet data for this line item. + """ + + +class PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging( + TypedDict, +): + carbon_footprint_avoided_grams_co2: NotRequired[int] + """ + The carbon footprint avoided by the charging session, in grams of CO2. + """ + charging_ended_at: int + """ + The time the charging session ended, measured in seconds since the Unix epoch. + """ + charging_power_output_capacity_kw: int + """ + The power output capacity of the charging station, in kilowatts (kW). + """ + charging_started_at: int + """ + The time the charging session started, measured in seconds since the Unix epoch. + """ + connector_type: Union[ + Literal[ + "ac_gb_t", + "ac_j1772", + "ac_mennekes", + "dc_ccs1", + "dc_ccs2", + "dc_chademo", + "dc_gb_t", + "dc_mcs", + "nacs", + ], + str, + ] + """ + The type of connector used for the charging session. + """ + estimated_range_added: NotRequired[int] + """ + The estimated distance in kilometers or miles added to the vehicle during the charging session. + """ + estimated_range_left: NotRequired[int] + """ + The estimated distance in kilometers or miles remaining in the vehicle after the charging session. + """ + maximum_power_dispensed_kw: int + """ + The maximum power dispensed during the charging session, in kilowatts (kW). + """ + + +class PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData( + TypedDict, +): + product_type: Union[ + Literal[ + "additive_dosage", + "additized_diesel_2", + "additized_diesel_3", + "air_conditioning_service", + "air_filter", + "alcohol", + "antifreeze", + "automotive_merchandise", + "aviation_fuel_premium", + "aviation_fuel_regular", + "batteries", + "biodiesel_b1", + "biodiesel_b10", + "biodiesel_b100", + "biodiesel_b11", + "biodiesel_b15", + "biodiesel_b2", + "biodiesel_b20", + "biodiesel_b5", + "biodiesel_b75", + "biodiesel_b99", + "blended_diesel_1_and_2", + "body_work", + "brake_fluid", + "brake_service", + "car_care_detailing", + "car_wash", + "compressed_natural_gas", + "def_at_pump", + "deli", + "e85", + "engine_service", + "ethanol_e16_to_e84", + "ev_battery_exchanges", + "ev_charging_fee", + "evc_level_1", + "evc_level_2", + "evc_level_3", + "evc_level_4", + "evc_level_5", + "exhaust_service", + "federal_tire_excise_tax", + "food_service", + "fuel_additive_treatment", + "fuel_system", + "green_gasoline_mid_plus", + "green_gasoline_premium_super", + "green_gasoline_regular", + "grocery", + "heating_oil", + "hoses", + "hydrogen_h35", + "hydrogen_h70", + "inspection", + "kerosene_low_sulfur", + "kerosene_low_sulfur_non_taxable", + "kerosene_ultra_low_sulfur", + "kerosene_ultra_low_sulfur_non_taxable", + "labor", + "lamps", + "liquid_natural_gas", + "liquid_propane_gas", + "lodging", + "low_octane_unleaded", + "lube", + "marine_diesel", + "marine_fuel", + "marine_fuel_1", + "marine_fuel_2", + "marine_fuel_3", + "marine_fuel_4", + "marine_fuel_5", + "marine_other", + "merchandise", + "mid_plus", + "mid_plus_2", + "mid_plus_2_10", + "mid_plus_2_e15", + "mid_plus_2_reformulated", + "mid_plus_e10", + "mid_plus_e15", + "mid_plus_ethanol", + "mid_plus_reformulated", + "miscellaneous_aviation_products_services", + "miscellaneous_fuel", + "miscellaneous_marine_products_services", + "miscellaneous_vehicle_products_services", + "motor_oil", + "off_road_b1", + "off_road_b10", + "off_road_b100", + "off_road_b11", + "off_road_b15", + "off_road_b2", + "off_road_b20", + "off_road_b5", + "off_road_b75", + "off_road_b99", + "off_road_biodiesel", + "off_road_diesel_1", + "off_road_diesel_2", + "off_road_mid_plus", + "off_road_mid_plus_2", + "off_road_premium_diesel_1", + "off_road_premium_diesel_2", + "off_road_premium_super", + "off_road_premium_super_2", + "off_road_regular", + "off_road_renewable_diesel_b6_to_b20", + "off_road_renewable_diesel_r95", + "oil_change", + "oil_filter", + "other_lubricants", + "packaged_beverage", + "premium_diesel", + "premium_diesel_2", + "premium_diesel_b20_plus", + "premium_diesel_under_b20", + "premium_super", + "premium_super_2", + "premium_super_2_10", + "premium_super_2_e15", + "premium_super_2_reformulated", + "premium_super_e10", + "premium_super_e15", + "premium_super_ethanol", + "premium_super_reformulated", + "preventative_maintenance", + "racing_fuel", + "recreational_fuel_90_octane", + "regular", + "regular_diesel", + "regular_diesel_2", + "regular_e10", + "regular_e15", + "regular_ethanol", + "regular_reformulated", + "renewable_diesel_b6_to_b20", + "renewable_diesel_r95", + "repairs", + "road_service", + "rv_dump_fee", + "scales", + "self_service_car_wash", + "service_package", + "shower", + "store_service", + "synthetic_oil", + "tire_related", + "tire_repair", + "tire_rotation", + "tires", + "tobacco", + "toll_payments", + "towing", + "trailer_wash", + "transmission_service", + "truck_tank_cleaning", + "vehicle_accessories", + "vehicle_glass", + "vehicle_parking", + "vehicle_parts", + "vehicle_prep", + "vehicle_rental", + "vehicle_work_order", + "wash_out", + "washer_fluid", + "white_gas", + "wipers", + ], + str, + ] + """ + The type of product being purchased at this line item. + """ + service_type: NotRequired[ + "Literal['full_service', 'high_speed_diesel', 'non_fuel_only', 'self_service']|str" + ] + """ + The type of service received at the acceptor location. + """ class PaymentIntentDecrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsKlarna( diff --git a/stripe/params/_payment_intent_increment_authorization_params.py b/stripe/params/_payment_intent_increment_authorization_params.py index 93f17113f..6f0eee9d4 100644 --- a/stripe/params/_payment_intent_increment_authorization_params.py +++ b/stripe/params/_payment_intent_increment_authorization_params.py @@ -457,6 +457,256 @@ class PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMetho """ Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ + ev_charging: NotRequired[ + "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging" + ] + """ + EV charging data for this line item. + """ + fleet_data: NotRequired[ + "PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData" + ] + """ + Fleet data for this line item. + """ + + +class PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging( + TypedDict, +): + carbon_footprint_avoided_grams_co2: NotRequired[int] + """ + The carbon footprint avoided by the charging session, in grams of CO2. + """ + charging_ended_at: int + """ + The time the charging session ended, measured in seconds since the Unix epoch. + """ + charging_power_output_capacity_kw: int + """ + The power output capacity of the charging station, in kilowatts (kW). + """ + charging_started_at: int + """ + The time the charging session started, measured in seconds since the Unix epoch. + """ + connector_type: Union[ + Literal[ + "ac_gb_t", + "ac_j1772", + "ac_mennekes", + "dc_ccs1", + "dc_ccs2", + "dc_chademo", + "dc_gb_t", + "dc_mcs", + "nacs", + ], + str, + ] + """ + The type of connector used for the charging session. + """ + estimated_range_added: NotRequired[int] + """ + The estimated distance in kilometers or miles added to the vehicle during the charging session. + """ + estimated_range_left: NotRequired[int] + """ + The estimated distance in kilometers or miles remaining in the vehicle after the charging session. + """ + maximum_power_dispensed_kw: int + """ + The maximum power dispensed during the charging session, in kilowatts (kW). + """ + + +class PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData( + TypedDict, +): + product_type: Union[ + Literal[ + "additive_dosage", + "additized_diesel_2", + "additized_diesel_3", + "air_conditioning_service", + "air_filter", + "alcohol", + "antifreeze", + "automotive_merchandise", + "aviation_fuel_premium", + "aviation_fuel_regular", + "batteries", + "biodiesel_b1", + "biodiesel_b10", + "biodiesel_b100", + "biodiesel_b11", + "biodiesel_b15", + "biodiesel_b2", + "biodiesel_b20", + "biodiesel_b5", + "biodiesel_b75", + "biodiesel_b99", + "blended_diesel_1_and_2", + "body_work", + "brake_fluid", + "brake_service", + "car_care_detailing", + "car_wash", + "compressed_natural_gas", + "def_at_pump", + "deli", + "e85", + "engine_service", + "ethanol_e16_to_e84", + "ev_battery_exchanges", + "ev_charging_fee", + "evc_level_1", + "evc_level_2", + "evc_level_3", + "evc_level_4", + "evc_level_5", + "exhaust_service", + "federal_tire_excise_tax", + "food_service", + "fuel_additive_treatment", + "fuel_system", + "green_gasoline_mid_plus", + "green_gasoline_premium_super", + "green_gasoline_regular", + "grocery", + "heating_oil", + "hoses", + "hydrogen_h35", + "hydrogen_h70", + "inspection", + "kerosene_low_sulfur", + "kerosene_low_sulfur_non_taxable", + "kerosene_ultra_low_sulfur", + "kerosene_ultra_low_sulfur_non_taxable", + "labor", + "lamps", + "liquid_natural_gas", + "liquid_propane_gas", + "lodging", + "low_octane_unleaded", + "lube", + "marine_diesel", + "marine_fuel", + "marine_fuel_1", + "marine_fuel_2", + "marine_fuel_3", + "marine_fuel_4", + "marine_fuel_5", + "marine_other", + "merchandise", + "mid_plus", + "mid_plus_2", + "mid_plus_2_10", + "mid_plus_2_e15", + "mid_plus_2_reformulated", + "mid_plus_e10", + "mid_plus_e15", + "mid_plus_ethanol", + "mid_plus_reformulated", + "miscellaneous_aviation_products_services", + "miscellaneous_fuel", + "miscellaneous_marine_products_services", + "miscellaneous_vehicle_products_services", + "motor_oil", + "off_road_b1", + "off_road_b10", + "off_road_b100", + "off_road_b11", + "off_road_b15", + "off_road_b2", + "off_road_b20", + "off_road_b5", + "off_road_b75", + "off_road_b99", + "off_road_biodiesel", + "off_road_diesel_1", + "off_road_diesel_2", + "off_road_mid_plus", + "off_road_mid_plus_2", + "off_road_premium_diesel_1", + "off_road_premium_diesel_2", + "off_road_premium_super", + "off_road_premium_super_2", + "off_road_regular", + "off_road_renewable_diesel_b6_to_b20", + "off_road_renewable_diesel_r95", + "oil_change", + "oil_filter", + "other_lubricants", + "packaged_beverage", + "premium_diesel", + "premium_diesel_2", + "premium_diesel_b20_plus", + "premium_diesel_under_b20", + "premium_super", + "premium_super_2", + "premium_super_2_10", + "premium_super_2_e15", + "premium_super_2_reformulated", + "premium_super_e10", + "premium_super_e15", + "premium_super_ethanol", + "premium_super_reformulated", + "preventative_maintenance", + "racing_fuel", + "recreational_fuel_90_octane", + "regular", + "regular_diesel", + "regular_diesel_2", + "regular_e10", + "regular_e15", + "regular_ethanol", + "regular_reformulated", + "renewable_diesel_b6_to_b20", + "renewable_diesel_r95", + "repairs", + "road_service", + "rv_dump_fee", + "scales", + "self_service_car_wash", + "service_package", + "shower", + "store_service", + "synthetic_oil", + "tire_related", + "tire_repair", + "tire_rotation", + "tires", + "tobacco", + "toll_payments", + "towing", + "trailer_wash", + "transmission_service", + "truck_tank_cleaning", + "vehicle_accessories", + "vehicle_glass", + "vehicle_parking", + "vehicle_parts", + "vehicle_prep", + "vehicle_rental", + "vehicle_work_order", + "wash_out", + "washer_fluid", + "white_gas", + "wipers", + ], + str, + ] + """ + The type of product being purchased at this line item. + """ + service_type: NotRequired[ + "Literal['full_service', 'high_speed_diesel', 'non_fuel_only', 'self_service']|str" + ] + """ + The type of service received at the acceptor location. + """ class PaymentIntentIncrementAuthorizationParamsAmountDetailsLineItemPaymentMethodOptionsKlarna( diff --git a/stripe/params/_payment_intent_modify_params.py b/stripe/params/_payment_intent_modify_params.py index b89a64852..5dd0e75c1 100644 --- a/stripe/params/_payment_intent_modify_params.py +++ b/stripe/params/_payment_intent_modify_params.py @@ -16,12 +16,14 @@ class PaymentIntentModifyParams(RequestOptions): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -38,6 +40,7 @@ class PaymentIntentModifyParams(RequestOptions): "click_to_pay", "crypto", "customer_balance", + "dbarai", "demo_pay", "duitnow", "dummy_auth_push", @@ -64,6 +67,7 @@ class PaymentIntentModifyParams(RequestOptions): "kriya", "link", "mb_way", + "merpay", "mobilepay", "momo", "mondu", @@ -172,7 +176,7 @@ class PaymentIntentModifyParams(RequestOptions): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'aeon_pay', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'au_pay', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'dbarai', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'merpay', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this payment. @@ -660,6 +664,256 @@ class PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPres """ Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ + ev_charging: NotRequired[ + "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging" + ] + """ + EV charging data for this line item. + """ + fleet_data: NotRequired[ + "PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData" + ] + """ + Fleet data for this line item. + """ + + +class PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging( + TypedDict, +): + carbon_footprint_avoided_grams_co2: NotRequired[int] + """ + The carbon footprint avoided by the charging session, in grams of CO2. + """ + charging_ended_at: int + """ + The time the charging session ended, measured in seconds since the Unix epoch. + """ + charging_power_output_capacity_kw: int + """ + The power output capacity of the charging station, in kilowatts (kW). + """ + charging_started_at: int + """ + The time the charging session started, measured in seconds since the Unix epoch. + """ + connector_type: Union[ + Literal[ + "ac_gb_t", + "ac_j1772", + "ac_mennekes", + "dc_ccs1", + "dc_ccs2", + "dc_chademo", + "dc_gb_t", + "dc_mcs", + "nacs", + ], + str, + ] + """ + The type of connector used for the charging session. + """ + estimated_range_added: NotRequired[int] + """ + The estimated distance in kilometers or miles added to the vehicle during the charging session. + """ + estimated_range_left: NotRequired[int] + """ + The estimated distance in kilometers or miles remaining in the vehicle after the charging session. + """ + maximum_power_dispensed_kw: int + """ + The maximum power dispensed during the charging session, in kilowatts (kW). + """ + + +class PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData( + TypedDict, +): + product_type: Union[ + Literal[ + "additive_dosage", + "additized_diesel_2", + "additized_diesel_3", + "air_conditioning_service", + "air_filter", + "alcohol", + "antifreeze", + "automotive_merchandise", + "aviation_fuel_premium", + "aviation_fuel_regular", + "batteries", + "biodiesel_b1", + "biodiesel_b10", + "biodiesel_b100", + "biodiesel_b11", + "biodiesel_b15", + "biodiesel_b2", + "biodiesel_b20", + "biodiesel_b5", + "biodiesel_b75", + "biodiesel_b99", + "blended_diesel_1_and_2", + "body_work", + "brake_fluid", + "brake_service", + "car_care_detailing", + "car_wash", + "compressed_natural_gas", + "def_at_pump", + "deli", + "e85", + "engine_service", + "ethanol_e16_to_e84", + "ev_battery_exchanges", + "ev_charging_fee", + "evc_level_1", + "evc_level_2", + "evc_level_3", + "evc_level_4", + "evc_level_5", + "exhaust_service", + "federal_tire_excise_tax", + "food_service", + "fuel_additive_treatment", + "fuel_system", + "green_gasoline_mid_plus", + "green_gasoline_premium_super", + "green_gasoline_regular", + "grocery", + "heating_oil", + "hoses", + "hydrogen_h35", + "hydrogen_h70", + "inspection", + "kerosene_low_sulfur", + "kerosene_low_sulfur_non_taxable", + "kerosene_ultra_low_sulfur", + "kerosene_ultra_low_sulfur_non_taxable", + "labor", + "lamps", + "liquid_natural_gas", + "liquid_propane_gas", + "lodging", + "low_octane_unleaded", + "lube", + "marine_diesel", + "marine_fuel", + "marine_fuel_1", + "marine_fuel_2", + "marine_fuel_3", + "marine_fuel_4", + "marine_fuel_5", + "marine_other", + "merchandise", + "mid_plus", + "mid_plus_2", + "mid_plus_2_10", + "mid_plus_2_e15", + "mid_plus_2_reformulated", + "mid_plus_e10", + "mid_plus_e15", + "mid_plus_ethanol", + "mid_plus_reformulated", + "miscellaneous_aviation_products_services", + "miscellaneous_fuel", + "miscellaneous_marine_products_services", + "miscellaneous_vehicle_products_services", + "motor_oil", + "off_road_b1", + "off_road_b10", + "off_road_b100", + "off_road_b11", + "off_road_b15", + "off_road_b2", + "off_road_b20", + "off_road_b5", + "off_road_b75", + "off_road_b99", + "off_road_biodiesel", + "off_road_diesel_1", + "off_road_diesel_2", + "off_road_mid_plus", + "off_road_mid_plus_2", + "off_road_premium_diesel_1", + "off_road_premium_diesel_2", + "off_road_premium_super", + "off_road_premium_super_2", + "off_road_regular", + "off_road_renewable_diesel_b6_to_b20", + "off_road_renewable_diesel_r95", + "oil_change", + "oil_filter", + "other_lubricants", + "packaged_beverage", + "premium_diesel", + "premium_diesel_2", + "premium_diesel_b20_plus", + "premium_diesel_under_b20", + "premium_super", + "premium_super_2", + "premium_super_2_10", + "premium_super_2_e15", + "premium_super_2_reformulated", + "premium_super_e10", + "premium_super_e15", + "premium_super_ethanol", + "premium_super_reformulated", + "preventative_maintenance", + "racing_fuel", + "recreational_fuel_90_octane", + "regular", + "regular_diesel", + "regular_diesel_2", + "regular_e10", + "regular_e15", + "regular_ethanol", + "regular_reformulated", + "renewable_diesel_b6_to_b20", + "renewable_diesel_r95", + "repairs", + "road_service", + "rv_dump_fee", + "scales", + "self_service_car_wash", + "service_package", + "shower", + "store_service", + "synthetic_oil", + "tire_related", + "tire_repair", + "tire_rotation", + "tires", + "tobacco", + "toll_payments", + "towing", + "trailer_wash", + "transmission_service", + "truck_tank_cleaning", + "vehicle_accessories", + "vehicle_glass", + "vehicle_parking", + "vehicle_parts", + "vehicle_prep", + "vehicle_rental", + "vehicle_work_order", + "wash_out", + "washer_fluid", + "white_gas", + "wipers", + ], + str, + ] + """ + The type of product being purchased at this line item. + """ + service_type: NotRequired[ + "Literal['full_service', 'high_speed_diesel', 'non_fuel_only', 'self_service']|str" + ] + """ + The type of service received at the acceptor location. + """ class PaymentIntentModifyParamsAmountDetailsLineItemPaymentMethodOptionsKlarna( @@ -2923,6 +3177,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ + aeon_pay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAeonPay"] + """ + If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method. + """ affirm: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAffirm"] """ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -2959,6 +3217,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ + au_pay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataAuPay"] + """ + If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method. + """ bacs_debit: NotRequired[ "PaymentIntentModifyParamsPaymentMethodDataBacsDebit" ] @@ -3013,6 +3275,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ + dbarai: NotRequired["PaymentIntentModifyParamsPaymentMethodDataDbarai"] + """ + If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method. + """ eps: NotRequired["PaymentIntentModifyParamsPaymentMethodDataEps"] """ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. @@ -3085,6 +3351,10 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. """ + merpay: NotRequired["PaymentIntentModifyParamsPaymentMethodDataMerpay"] + """ + If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method. + """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -3254,12 +3524,14 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -3270,6 +3542,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -3285,6 +3558,7 @@ class PaymentIntentModifyParamsPaymentMethodData(TypedDict): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -3369,6 +3643,10 @@ class PaymentIntentModifyParamsPaymentMethodDataAcssDebit(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodDataAeonPay(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataAffirm(TypedDict): pass @@ -3400,6 +3678,10 @@ class PaymentIntentModifyParamsPaymentMethodDataAuBecsDebit(TypedDict): """ +class PaymentIntentModifyParamsPaymentMethodDataAuPay(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataBacsDebit(TypedDict): account_number: NotRequired[str] """ @@ -3504,6 +3786,10 @@ class PaymentIntentModifyParamsPaymentMethodDataCustomerBalance(TypedDict): pass +class PaymentIntentModifyParamsPaymentMethodDataDbarai(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataEps(TypedDict): bank: NotRequired[ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str" @@ -3640,6 +3926,10 @@ class PaymentIntentModifyParamsPaymentMethodDataMbWay(TypedDict): pass +class PaymentIntentModifyParamsPaymentMethodDataMerpay(TypedDict): + pass + + class PaymentIntentModifyParamsPaymentMethodDataMobilepay(TypedDict): pass @@ -4532,6 +4822,12 @@ class PaymentIntentModifyParamsPaymentMethodOptionsAuBecsDebit(TypedDict): class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit(TypedDict): + financial_connections: NotRequired[ + "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitFinancialConnections" + ] + """ + Additional fields for Financial Connections session creation. + """ mandate_options: NotRequired[ "PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions" ] @@ -4557,10 +4853,19 @@ class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebit(TypedDict): Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] +class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitFinancialConnections( + TypedDict, +): + return_url: NotRequired[str] + """ + For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. + """ + + class PaymentIntentModifyParamsPaymentMethodOptionsBacsDebitMandateOptions( TypedDict, ): @@ -7227,7 +7532,7 @@ class PaymentIntentModifyParamsPaymentMethodOptionsPaypalLineItemTax( class PaymentIntentModifyParamsPaymentMethodOptionsPaypay(TypedDict): setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']|str" + "Literal['']|Literal['none', 'off_session']|str" ] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/stripe/params/_payment_intent_update_params.py b/stripe/params/_payment_intent_update_params.py index ce5cf8c8c..9e4d10dc3 100644 --- a/stripe/params/_payment_intent_update_params.py +++ b/stripe/params/_payment_intent_update_params.py @@ -15,12 +15,14 @@ class PaymentIntentUpdateParams(TypedDict): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -37,6 +39,7 @@ class PaymentIntentUpdateParams(TypedDict): "click_to_pay", "crypto", "customer_balance", + "dbarai", "demo_pay", "duitnow", "dummy_auth_push", @@ -63,6 +66,7 @@ class PaymentIntentUpdateParams(TypedDict): "kriya", "link", "mb_way", + "merpay", "mobilepay", "momo", "mondu", @@ -171,7 +175,7 @@ class PaymentIntentUpdateParams(TypedDict): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'aeon_pay', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'au_pay', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'dbarai', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'merpay', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this payment. @@ -659,6 +663,256 @@ class PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPres """ Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on. """ + ev_charging: NotRequired[ + "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging" + ] + """ + EV charging data for this line item. + """ + fleet_data: NotRequired[ + "PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData" + ] + """ + Fleet data for this line item. + """ + + +class PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentEvCharging( + TypedDict, +): + carbon_footprint_avoided_grams_co2: NotRequired[int] + """ + The carbon footprint avoided by the charging session, in grams of CO2. + """ + charging_ended_at: int + """ + The time the charging session ended, measured in seconds since the Unix epoch. + """ + charging_power_output_capacity_kw: int + """ + The power output capacity of the charging station, in kilowatts (kW). + """ + charging_started_at: int + """ + The time the charging session started, measured in seconds since the Unix epoch. + """ + connector_type: Union[ + Literal[ + "ac_gb_t", + "ac_j1772", + "ac_mennekes", + "dc_ccs1", + "dc_ccs2", + "dc_chademo", + "dc_gb_t", + "dc_mcs", + "nacs", + ], + str, + ] + """ + The type of connector used for the charging session. + """ + estimated_range_added: NotRequired[int] + """ + The estimated distance in kilometers or miles added to the vehicle during the charging session. + """ + estimated_range_left: NotRequired[int] + """ + The estimated distance in kilometers or miles remaining in the vehicle after the charging session. + """ + maximum_power_dispensed_kw: int + """ + The maximum power dispensed during the charging session, in kilowatts (kW). + """ + + +class PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsCardPresentFleetData( + TypedDict, +): + product_type: Union[ + Literal[ + "additive_dosage", + "additized_diesel_2", + "additized_diesel_3", + "air_conditioning_service", + "air_filter", + "alcohol", + "antifreeze", + "automotive_merchandise", + "aviation_fuel_premium", + "aviation_fuel_regular", + "batteries", + "biodiesel_b1", + "biodiesel_b10", + "biodiesel_b100", + "biodiesel_b11", + "biodiesel_b15", + "biodiesel_b2", + "biodiesel_b20", + "biodiesel_b5", + "biodiesel_b75", + "biodiesel_b99", + "blended_diesel_1_and_2", + "body_work", + "brake_fluid", + "brake_service", + "car_care_detailing", + "car_wash", + "compressed_natural_gas", + "def_at_pump", + "deli", + "e85", + "engine_service", + "ethanol_e16_to_e84", + "ev_battery_exchanges", + "ev_charging_fee", + "evc_level_1", + "evc_level_2", + "evc_level_3", + "evc_level_4", + "evc_level_5", + "exhaust_service", + "federal_tire_excise_tax", + "food_service", + "fuel_additive_treatment", + "fuel_system", + "green_gasoline_mid_plus", + "green_gasoline_premium_super", + "green_gasoline_regular", + "grocery", + "heating_oil", + "hoses", + "hydrogen_h35", + "hydrogen_h70", + "inspection", + "kerosene_low_sulfur", + "kerosene_low_sulfur_non_taxable", + "kerosene_ultra_low_sulfur", + "kerosene_ultra_low_sulfur_non_taxable", + "labor", + "lamps", + "liquid_natural_gas", + "liquid_propane_gas", + "lodging", + "low_octane_unleaded", + "lube", + "marine_diesel", + "marine_fuel", + "marine_fuel_1", + "marine_fuel_2", + "marine_fuel_3", + "marine_fuel_4", + "marine_fuel_5", + "marine_other", + "merchandise", + "mid_plus", + "mid_plus_2", + "mid_plus_2_10", + "mid_plus_2_e15", + "mid_plus_2_reformulated", + "mid_plus_e10", + "mid_plus_e15", + "mid_plus_ethanol", + "mid_plus_reformulated", + "miscellaneous_aviation_products_services", + "miscellaneous_fuel", + "miscellaneous_marine_products_services", + "miscellaneous_vehicle_products_services", + "motor_oil", + "off_road_b1", + "off_road_b10", + "off_road_b100", + "off_road_b11", + "off_road_b15", + "off_road_b2", + "off_road_b20", + "off_road_b5", + "off_road_b75", + "off_road_b99", + "off_road_biodiesel", + "off_road_diesel_1", + "off_road_diesel_2", + "off_road_mid_plus", + "off_road_mid_plus_2", + "off_road_premium_diesel_1", + "off_road_premium_diesel_2", + "off_road_premium_super", + "off_road_premium_super_2", + "off_road_regular", + "off_road_renewable_diesel_b6_to_b20", + "off_road_renewable_diesel_r95", + "oil_change", + "oil_filter", + "other_lubricants", + "packaged_beverage", + "premium_diesel", + "premium_diesel_2", + "premium_diesel_b20_plus", + "premium_diesel_under_b20", + "premium_super", + "premium_super_2", + "premium_super_2_10", + "premium_super_2_e15", + "premium_super_2_reformulated", + "premium_super_e10", + "premium_super_e15", + "premium_super_ethanol", + "premium_super_reformulated", + "preventative_maintenance", + "racing_fuel", + "recreational_fuel_90_octane", + "regular", + "regular_diesel", + "regular_diesel_2", + "regular_e10", + "regular_e15", + "regular_ethanol", + "regular_reformulated", + "renewable_diesel_b6_to_b20", + "renewable_diesel_r95", + "repairs", + "road_service", + "rv_dump_fee", + "scales", + "self_service_car_wash", + "service_package", + "shower", + "store_service", + "synthetic_oil", + "tire_related", + "tire_repair", + "tire_rotation", + "tires", + "tobacco", + "toll_payments", + "towing", + "trailer_wash", + "transmission_service", + "truck_tank_cleaning", + "vehicle_accessories", + "vehicle_glass", + "vehicle_parking", + "vehicle_parts", + "vehicle_prep", + "vehicle_rental", + "vehicle_work_order", + "wash_out", + "washer_fluid", + "white_gas", + "wipers", + ], + str, + ] + """ + The type of product being purchased at this line item. + """ + service_type: NotRequired[ + "Literal['full_service', 'high_speed_diesel', 'non_fuel_only', 'self_service']|str" + ] + """ + The type of service received at the acceptor location. + """ class PaymentIntentUpdateParamsAmountDetailsLineItemPaymentMethodOptionsKlarna( @@ -2922,6 +3176,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ + aeon_pay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAeonPay"] + """ + If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method. + """ affirm: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAffirm"] """ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -2958,6 +3216,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ + au_pay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataAuPay"] + """ + If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method. + """ bacs_debit: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodDataBacsDebit" ] @@ -3012,6 +3274,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ + dbarai: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataDbarai"] + """ + If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method. + """ eps: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataEps"] """ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. @@ -3084,6 +3350,10 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. """ + merpay: NotRequired["PaymentIntentUpdateParamsPaymentMethodDataMerpay"] + """ + If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method. + """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -3253,12 +3523,14 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -3269,6 +3541,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -3284,6 +3557,7 @@ class PaymentIntentUpdateParamsPaymentMethodData(TypedDict): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -3368,6 +3642,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataAcssDebit(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodDataAeonPay(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataAffirm(TypedDict): pass @@ -3399,6 +3677,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataAuBecsDebit(TypedDict): """ +class PaymentIntentUpdateParamsPaymentMethodDataAuPay(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataBacsDebit(TypedDict): account_number: NotRequired[str] """ @@ -3503,6 +3785,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataCustomerBalance(TypedDict): pass +class PaymentIntentUpdateParamsPaymentMethodDataDbarai(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataEps(TypedDict): bank: NotRequired[ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str" @@ -3639,6 +3925,10 @@ class PaymentIntentUpdateParamsPaymentMethodDataMbWay(TypedDict): pass +class PaymentIntentUpdateParamsPaymentMethodDataMerpay(TypedDict): + pass + + class PaymentIntentUpdateParamsPaymentMethodDataMobilepay(TypedDict): pass @@ -4531,6 +4821,12 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsAuBecsDebit(TypedDict): class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit(TypedDict): + financial_connections: NotRequired[ + "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitFinancialConnections" + ] + """ + Additional fields for Financial Connections session creation. + """ mandate_options: NotRequired[ "PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions" ] @@ -4556,10 +4852,19 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebit(TypedDict): Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] +class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitFinancialConnections( + TypedDict, +): + return_url: NotRequired[str] + """ + For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. + """ + + class PaymentIntentUpdateParamsPaymentMethodOptionsBacsDebitMandateOptions( TypedDict, ): @@ -7226,7 +7531,7 @@ class PaymentIntentUpdateParamsPaymentMethodOptionsPaypalLineItemTax( class PaymentIntentUpdateParamsPaymentMethodOptionsPaypay(TypedDict): setup_future_usage: NotRequired[ - "Literal['']|Literal['none', 'off_session', 'on_session']|str" + "Literal['']|Literal['none', 'off_session']|str" ] """ Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/stripe/params/_payment_link_create_params.py b/stripe/params/_payment_link_create_params.py index d7973f85f..114b93350 100644 --- a/stripe/params/_payment_link_create_params.py +++ b/stripe/params/_payment_link_create_params.py @@ -166,6 +166,7 @@ class PaymentLinkCreateParams(RequestOptions): "sofort", "sunbit", "swish", + "tamara", "twint", "upi", "us_bank_account", diff --git a/stripe/params/_payment_link_modify_params.py b/stripe/params/_payment_link_modify_params.py index 8049e1910..690ccf1d7 100644 --- a/stripe/params/_payment_link_modify_params.py +++ b/stripe/params/_payment_link_modify_params.py @@ -114,7 +114,7 @@ class PaymentLinkModifyParams(RequestOptions): Payment-method-specific configuration. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). diff --git a/stripe/params/_payment_link_update_params.py b/stripe/params/_payment_link_update_params.py index 4ea028c52..37b35ca5d 100644 --- a/stripe/params/_payment_link_update_params.py +++ b/stripe/params/_payment_link_update_params.py @@ -113,7 +113,7 @@ class PaymentLinkUpdateParams(TypedDict): Payment-method-specific configuration. """ payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'sunbit', 'swish', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'gopay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rechnung', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'shopeepay', 'sofort', 'sunbit', 'swish', 'tamara', 'twint', 'upi', 'us_bank_account', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). diff --git a/stripe/params/_payment_method_configuration_create_params.py b/stripe/params/_payment_method_configuration_create_params.py index 3f4e3630d..38bdd882d 100644 --- a/stripe/params/_payment_method_configuration_create_params.py +++ b/stripe/params/_payment_method_configuration_create_params.py @@ -238,6 +238,12 @@ class PaymentMethodConfigurationCreateParams(RequestOptions): """ QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app. """ + rakuten_pay: NotRequired[ + "PaymentMethodConfigurationCreateParamsRakutenPay" + ] + """ + Rakuten Pay is a single-use payment method that requires customers to authenticate their payment. Customers pay by being redirected from your website or app, authorizing the payment with Rakuten Pay, then returning to your website or app. You get immediate notification of whether the payment succeeded or failed. + """ revolut_pay: NotRequired[ "PaymentMethodConfigurationCreateParamsRevolutPay" ] @@ -1174,6 +1180,24 @@ class PaymentMethodConfigurationCreateParamsQrisDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationCreateParamsRakutenPay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationCreateParamsRakutenPayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationCreateParamsRakutenPayDisplayPreference( + TypedDict, +): + preference: NotRequired["Literal['none', 'off', 'on']|str"] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationCreateParamsRevolutPay(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationCreateParamsRevolutPayDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_modify_params.py b/stripe/params/_payment_method_configuration_modify_params.py index cba3f01fb..117a2e4d3 100644 --- a/stripe/params/_payment_method_configuration_modify_params.py +++ b/stripe/params/_payment_method_configuration_modify_params.py @@ -238,6 +238,12 @@ class PaymentMethodConfigurationModifyParams(RequestOptions): """ QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app. """ + rakuten_pay: NotRequired[ + "PaymentMethodConfigurationModifyParamsRakutenPay" + ] + """ + Rakuten Pay is a single-use payment method that requires customers to authenticate their payment. Customers pay by being redirected from your website or app, authorizing the payment with Rakuten Pay, then returning to your website or app. You get immediate notification of whether the payment succeeded or failed. + """ revolut_pay: NotRequired[ "PaymentMethodConfigurationModifyParamsRevolutPay" ] @@ -1174,6 +1180,24 @@ class PaymentMethodConfigurationModifyParamsQrisDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationModifyParamsRakutenPay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationModifyParamsRakutenPayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationModifyParamsRakutenPayDisplayPreference( + TypedDict, +): + preference: NotRequired["Literal['none', 'off', 'on']|str"] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationModifyParamsRevolutPay(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationModifyParamsRevolutPayDisplayPreference" diff --git a/stripe/params/_payment_method_configuration_update_params.py b/stripe/params/_payment_method_configuration_update_params.py index 32e38a767..cc2f3b50d 100644 --- a/stripe/params/_payment_method_configuration_update_params.py +++ b/stripe/params/_payment_method_configuration_update_params.py @@ -237,6 +237,12 @@ class PaymentMethodConfigurationUpdateParams(TypedDict): """ QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app. """ + rakuten_pay: NotRequired[ + "PaymentMethodConfigurationUpdateParamsRakutenPay" + ] + """ + Rakuten Pay is a single-use payment method that requires customers to authenticate their payment. Customers pay by being redirected from your website or app, authorizing the payment with Rakuten Pay, then returning to your website or app. You get immediate notification of whether the payment succeeded or failed. + """ revolut_pay: NotRequired[ "PaymentMethodConfigurationUpdateParamsRevolutPay" ] @@ -1173,6 +1179,24 @@ class PaymentMethodConfigurationUpdateParamsQrisDisplayPreference(TypedDict): """ +class PaymentMethodConfigurationUpdateParamsRakutenPay(TypedDict): + display_preference: NotRequired[ + "PaymentMethodConfigurationUpdateParamsRakutenPayDisplayPreference" + ] + """ + Whether or not the payment method should be displayed. + """ + + +class PaymentMethodConfigurationUpdateParamsRakutenPayDisplayPreference( + TypedDict, +): + preference: NotRequired["Literal['none', 'off', 'on']|str"] + """ + The account's preference for whether or not to display this payment method. + """ + + class PaymentMethodConfigurationUpdateParamsRevolutPay(TypedDict): display_preference: NotRequired[ "PaymentMethodConfigurationUpdateParamsRevolutPayDisplayPreference" diff --git a/stripe/params/_payment_method_create_params.py b/stripe/params/_payment_method_create_params.py index 7829fa673..6e5c4cb5d 100644 --- a/stripe/params/_payment_method_create_params.py +++ b/stripe/params/_payment_method_create_params.py @@ -11,6 +11,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ + aeon_pay: NotRequired["PaymentMethodCreateParamsAeonPay"] + """ + If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method. + """ affirm: NotRequired["PaymentMethodCreateParamsAffirm"] """ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -41,6 +45,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ + au_pay: NotRequired["PaymentMethodCreateParamsAuPay"] + """ + If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method. + """ bacs_debit: NotRequired["PaymentMethodCreateParamsBacsDebit"] """ If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account. @@ -97,6 +105,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ + dbarai: NotRequired["PaymentMethodCreateParamsDbarai"] + """ + If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method. + """ eps: NotRequired["PaymentMethodCreateParamsEps"] """ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. @@ -165,6 +177,10 @@ class PaymentMethodCreateParams(RequestOptions): """ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. """ + merpay: NotRequired["PaymentMethodCreateParamsMerpay"] + """ + If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method. + """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -306,7 +322,7 @@ class PaymentMethodCreateParams(RequestOptions): If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method. """ type: NotRequired[ - "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" + "Literal['acss_debit', 'aeon_pay', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'au_pay', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'dbarai', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'merpay', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" ] """ The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. @@ -348,6 +364,10 @@ class PaymentMethodCreateParamsAcssDebit(TypedDict): """ +class PaymentMethodCreateParamsAeonPay(TypedDict): + pass + + class PaymentMethodCreateParamsAffirm(TypedDict): pass @@ -379,6 +399,10 @@ class PaymentMethodCreateParamsAuBecsDebit(TypedDict): """ +class PaymentMethodCreateParamsAuPay(TypedDict): + pass + + class PaymentMethodCreateParamsBacsDebit(TypedDict): account_number: NotRequired[str] """ @@ -524,6 +548,10 @@ class PaymentMethodCreateParamsCustomerBalance(TypedDict): pass +class PaymentMethodCreateParamsDbarai(TypedDict): + pass + + class PaymentMethodCreateParamsEps(TypedDict): bank: NotRequired[ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str" @@ -660,6 +688,10 @@ class PaymentMethodCreateParamsMbWay(TypedDict): pass +class PaymentMethodCreateParamsMerpay(TypedDict): + pass + + class PaymentMethodCreateParamsMobilepay(TypedDict): pass diff --git a/stripe/params/_payment_method_list_params.py b/stripe/params/_payment_method_list_params.py index 755957957..d68bb69d1 100644 --- a/stripe/params/_payment_method_list_params.py +++ b/stripe/params/_payment_method_list_params.py @@ -37,7 +37,7 @@ class PaymentMethodListParams(RequestOptions): A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. """ type: NotRequired[ - "Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" + "Literal['acss_debit', 'aeon_pay', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'au_pay', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'custom', 'customer_balance', 'dbarai', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'mb_way', 'merpay', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip']|str" ] """ Filters the list by the object `type` field. Unfiltered, the list returns all payment method types except `custom`. If your integration expects only one type of payment method in the response, specify that type value in the request to reduce your payload. diff --git a/stripe/params/_payment_record_report_payment_attempt_guaranteed_params.py b/stripe/params/_payment_record_report_payment_attempt_guaranteed_params.py index bb2b36d9a..25a4e00ef 100644 --- a/stripe/params/_payment_record_report_payment_attempt_guaranteed_params.py +++ b/stripe/params/_payment_record_report_payment_attempt_guaranteed_params.py @@ -2,7 +2,7 @@ # File generated from our OpenAPI spec from stripe._request_options import RequestOptions from stripe._stripe_object import UntypedStripeObject -from typing import Dict, List +from typing import Dict, List, Union from typing_extensions import Literal, NotRequired, TypedDict @@ -48,7 +48,7 @@ class PaymentRecordReportPaymentAttemptGuaranteedParamsPaymentMethodDetails( """ Information about the card payment method used to make this payment. """ - type: Literal["card"] + type: Union[Literal["card", "us_bank_account"], str] """ The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. """ diff --git a/stripe/params/_quote_create_params.py b/stripe/params/_quote_create_params.py index 42b8ce2f4..30e09376f 100644 --- a/stripe/params/_quote_create_params.py +++ b/stripe/params/_quote_create_params.py @@ -240,7 +240,7 @@ class QuoteCreateParamsLineItem(TypedDict): "Literal['']|List[QuoteCreateParamsLineItemDiscount]" ] """ - The discounts applied to this line item. + The discounts applied to this line item. Repeating coupons are only supported for recurring prices. """ price: NotRequired[str] """ diff --git a/stripe/params/_quote_modify_params.py b/stripe/params/_quote_modify_params.py index 08720720a..eebf24a5b 100644 --- a/stripe/params/_quote_modify_params.py +++ b/stripe/params/_quote_modify_params.py @@ -221,7 +221,7 @@ class QuoteModifyParamsLineItem(TypedDict): "Literal['']|List[QuoteModifyParamsLineItemDiscount]" ] """ - The discounts applied to this line item. + The discounts applied to this line item. Repeating coupons are only supported for recurring prices. """ id: NotRequired[str] """ diff --git a/stripe/params/_quote_update_params.py b/stripe/params/_quote_update_params.py index 6f8d25acd..041a7a797 100644 --- a/stripe/params/_quote_update_params.py +++ b/stripe/params/_quote_update_params.py @@ -220,7 +220,7 @@ class QuoteUpdateParamsLineItem(TypedDict): "Literal['']|List[QuoteUpdateParamsLineItemDiscount]" ] """ - The discounts applied to this line item. + The discounts applied to this line item. Repeating coupons are only supported for recurring prices. """ id: NotRequired[str] """ diff --git a/stripe/params/_refund_create_params.py b/stripe/params/_refund_create_params.py index b69582025..f3dbc29ba 100644 --- a/stripe/params/_refund_create_params.py +++ b/stripe/params/_refund_create_params.py @@ -46,6 +46,10 @@ class RefundCreateParams(RequestOptions): """ The identifier of the PaymentIntent to refund. """ + payment_method: NotRequired[str] + """ + The ID of a PaymentMethod that will receive the refund. + """ payment_method_data: NotRequired["RefundCreateParamsPaymentMethodData"] """ Used to create the PaymentMethod that will receive the refund. @@ -86,12 +90,14 @@ class RefundCreateParamsPaymentMethodData(TypedDict): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -104,6 +110,7 @@ class RefundCreateParamsPaymentMethodData(TypedDict): "crypto", "custom", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -119,6 +126,7 @@ class RefundCreateParamsPaymentMethodData(TypedDict): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", diff --git a/stripe/params/_setup_intent_confirm_params.py b/stripe/params/_setup_intent_confirm_params.py index a865a2553..67af5b4f6 100644 --- a/stripe/params/_setup_intent_confirm_params.py +++ b/stripe/params/_setup_intent_confirm_params.py @@ -12,12 +12,14 @@ class SetupIntentConfirmParams(RequestOptions): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -34,6 +36,7 @@ class SetupIntentConfirmParams(RequestOptions): "click_to_pay", "crypto", "customer_balance", + "dbarai", "demo_pay", "duitnow", "dummy_auth_push", @@ -60,6 +63,7 @@ class SetupIntentConfirmParams(RequestOptions): "kriya", "link", "mb_way", + "merpay", "mobilepay", "momo", "mondu", @@ -153,6 +157,10 @@ class SetupIntentConfirmParams(RequestOptions): """ Payment method-specific configuration for this SetupIntent. """ + radar_options: NotRequired["SetupIntentConfirmParamsRadarOptions"] + """ + Options to configure Radar. + """ return_url: NotRequired[str] """ The URL to redirect your customer back to after they authenticate on the payment method's app or site. @@ -223,6 +231,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ + aeon_pay: NotRequired["SetupIntentConfirmParamsPaymentMethodDataAeonPay"] + """ + If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method. + """ affirm: NotRequired["SetupIntentConfirmParamsPaymentMethodDataAffirm"] """ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -259,6 +271,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ + au_pay: NotRequired["SetupIntentConfirmParamsPaymentMethodDataAuPay"] + """ + If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method. + """ bacs_debit: NotRequired[ "SetupIntentConfirmParamsPaymentMethodDataBacsDebit" ] @@ -313,6 +329,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ + dbarai: NotRequired["SetupIntentConfirmParamsPaymentMethodDataDbarai"] + """ + If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method. + """ eps: NotRequired["SetupIntentConfirmParamsPaymentMethodDataEps"] """ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. @@ -381,6 +401,10 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): """ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. """ + merpay: NotRequired["SetupIntentConfirmParamsPaymentMethodDataMerpay"] + """ + If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method. + """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -548,12 +572,14 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -564,6 +590,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -579,6 +606,7 @@ class SetupIntentConfirmParamsPaymentMethodData(TypedDict): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -663,6 +691,10 @@ class SetupIntentConfirmParamsPaymentMethodDataAcssDebit(TypedDict): """ +class SetupIntentConfirmParamsPaymentMethodDataAeonPay(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataAffirm(TypedDict): pass @@ -694,6 +726,10 @@ class SetupIntentConfirmParamsPaymentMethodDataAuBecsDebit(TypedDict): """ +class SetupIntentConfirmParamsPaymentMethodDataAuPay(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataBacsDebit(TypedDict): account_number: NotRequired[str] """ @@ -798,6 +834,10 @@ class SetupIntentConfirmParamsPaymentMethodDataCustomerBalance(TypedDict): pass +class SetupIntentConfirmParamsPaymentMethodDataDbarai(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataEps(TypedDict): bank: NotRequired[ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str" @@ -934,6 +974,10 @@ class SetupIntentConfirmParamsPaymentMethodDataMbWay(TypedDict): pass +class SetupIntentConfirmParamsPaymentMethodDataMerpay(TypedDict): + pass + + class SetupIntentConfirmParamsPaymentMethodDataMobilepay(TypedDict): pass @@ -1360,7 +1404,7 @@ class SetupIntentConfirmParamsPaymentMethodOptionsBacsDebit(TypedDict): Additional fields for Mandate creation """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] @@ -1956,6 +2000,17 @@ class SetupIntentConfirmParamsPaymentMethodOptionsUsBankAccountNetworks( """ +class SetupIntentConfirmParamsRadarOptions(TypedDict): + is_free_trial_transaction: NotRequired[bool] + """ + Whether this transaction starts a free trial. Set to `true` for a free trial or `false` otherwise. If omitted, retains the previously set value. If never set, Stripe uses Billing or metadata to determine trial status. + """ + session: NotRequired[str] + """ + A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. + """ + + class SetupIntentConfirmParamsSetupDetails(TypedDict): benefit: NotRequired["SetupIntentConfirmParamsSetupDetailsBenefit"] """ diff --git a/stripe/params/_setup_intent_create_params.py b/stripe/params/_setup_intent_create_params.py index cf7af75f0..8030aaadd 100644 --- a/stripe/params/_setup_intent_create_params.py +++ b/stripe/params/_setup_intent_create_params.py @@ -12,12 +12,14 @@ class SetupIntentCreateParams(RequestOptions): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -34,6 +36,7 @@ class SetupIntentCreateParams(RequestOptions): "click_to_pay", "crypto", "customer_balance", + "dbarai", "demo_pay", "duitnow", "dummy_auth_push", @@ -60,6 +63,7 @@ class SetupIntentCreateParams(RequestOptions): "kriya", "link", "mb_way", + "merpay", "mobilepay", "momo", "mondu", @@ -166,12 +170,14 @@ class SetupIntentCreateParams(RequestOptions): Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -183,6 +189,7 @@ class SetupIntentCreateParams(RequestOptions): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -197,6 +204,7 @@ class SetupIntentCreateParams(RequestOptions): "konbini", "kr_card", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -287,6 +295,10 @@ class SetupIntentCreateParams(RequestOptions): """ Payment method-specific configuration for this SetupIntent. """ + radar_options: NotRequired["SetupIntentCreateParamsRadarOptions"] + """ + Options to configure Radar. + """ return_url: NotRequired[str] """ The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://docs.stripe.com/api/setup_intents/create#create_setup_intent-confirm). @@ -376,6 +388,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ + aeon_pay: NotRequired["SetupIntentCreateParamsPaymentMethodDataAeonPay"] + """ + If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method. + """ affirm: NotRequired["SetupIntentCreateParamsPaymentMethodDataAffirm"] """ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -412,6 +428,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ + au_pay: NotRequired["SetupIntentCreateParamsPaymentMethodDataAuPay"] + """ + If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method. + """ bacs_debit: NotRequired[ "SetupIntentCreateParamsPaymentMethodDataBacsDebit" ] @@ -466,6 +486,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ + dbarai: NotRequired["SetupIntentCreateParamsPaymentMethodDataDbarai"] + """ + If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method. + """ eps: NotRequired["SetupIntentCreateParamsPaymentMethodDataEps"] """ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. @@ -534,6 +558,10 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): """ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. """ + merpay: NotRequired["SetupIntentCreateParamsPaymentMethodDataMerpay"] + """ + If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method. + """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -695,12 +723,14 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -711,6 +741,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -726,6 +757,7 @@ class SetupIntentCreateParamsPaymentMethodData(TypedDict): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -810,6 +842,10 @@ class SetupIntentCreateParamsPaymentMethodDataAcssDebit(TypedDict): """ +class SetupIntentCreateParamsPaymentMethodDataAeonPay(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataAffirm(TypedDict): pass @@ -841,6 +877,10 @@ class SetupIntentCreateParamsPaymentMethodDataAuBecsDebit(TypedDict): """ +class SetupIntentCreateParamsPaymentMethodDataAuPay(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataBacsDebit(TypedDict): account_number: NotRequired[str] """ @@ -943,6 +983,10 @@ class SetupIntentCreateParamsPaymentMethodDataCustomerBalance(TypedDict): pass +class SetupIntentCreateParamsPaymentMethodDataDbarai(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataEps(TypedDict): bank: NotRequired[ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str" @@ -1079,6 +1123,10 @@ class SetupIntentCreateParamsPaymentMethodDataMbWay(TypedDict): pass +class SetupIntentCreateParamsPaymentMethodDataMerpay(TypedDict): + pass + + class SetupIntentCreateParamsPaymentMethodDataMobilepay(TypedDict): pass @@ -1505,7 +1553,7 @@ class SetupIntentCreateParamsPaymentMethodOptionsBacsDebit(TypedDict): Additional fields for Mandate creation """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] @@ -2095,6 +2143,17 @@ class SetupIntentCreateParamsPaymentMethodOptionsUsBankAccountNetworks( """ +class SetupIntentCreateParamsRadarOptions(TypedDict): + is_free_trial_transaction: NotRequired[bool] + """ + Whether this transaction starts a free trial. Set to `true` for a free trial or `false` otherwise. If omitted, retains the previously set value. If never set, Stripe uses Billing or metadata to determine trial status. + """ + session: NotRequired[str] + """ + A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. + """ + + class SetupIntentCreateParamsSetupDetails(TypedDict): benefit: NotRequired["SetupIntentCreateParamsSetupDetailsBenefit"] """ diff --git a/stripe/params/_setup_intent_modify_params.py b/stripe/params/_setup_intent_modify_params.py index 0a229020b..eb213bc71 100644 --- a/stripe/params/_setup_intent_modify_params.py +++ b/stripe/params/_setup_intent_modify_params.py @@ -8,7 +8,7 @@ class SetupIntentModifyParams(RequestOptions): allowed_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'card_present', 'carecredit', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'interac_present', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'toss_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'aeon_pay', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'au_pay', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'card_present', 'carecredit', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'dbarai', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'interac_present', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'merpay', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'toss_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" ] """ The list of payment method types to allow for this SetupIntent. Stripe will only use methods in this list when determining the payment methods to offer. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). @@ -36,7 +36,7 @@ class SetupIntentModifyParams(RequestOptions): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'aeon_pay', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'au_pay', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'dbarai', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'merpay', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -93,6 +93,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ + aeon_pay: NotRequired["SetupIntentModifyParamsPaymentMethodDataAeonPay"] + """ + If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method. + """ affirm: NotRequired["SetupIntentModifyParamsPaymentMethodDataAffirm"] """ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -129,6 +133,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ + au_pay: NotRequired["SetupIntentModifyParamsPaymentMethodDataAuPay"] + """ + If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method. + """ bacs_debit: NotRequired[ "SetupIntentModifyParamsPaymentMethodDataBacsDebit" ] @@ -183,6 +191,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ + dbarai: NotRequired["SetupIntentModifyParamsPaymentMethodDataDbarai"] + """ + If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method. + """ eps: NotRequired["SetupIntentModifyParamsPaymentMethodDataEps"] """ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. @@ -251,6 +263,10 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): """ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. """ + merpay: NotRequired["SetupIntentModifyParamsPaymentMethodDataMerpay"] + """ + If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method. + """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -412,12 +428,14 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -428,6 +446,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -443,6 +462,7 @@ class SetupIntentModifyParamsPaymentMethodData(TypedDict): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -527,6 +547,10 @@ class SetupIntentModifyParamsPaymentMethodDataAcssDebit(TypedDict): """ +class SetupIntentModifyParamsPaymentMethodDataAeonPay(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataAffirm(TypedDict): pass @@ -558,6 +582,10 @@ class SetupIntentModifyParamsPaymentMethodDataAuBecsDebit(TypedDict): """ +class SetupIntentModifyParamsPaymentMethodDataAuPay(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataBacsDebit(TypedDict): account_number: NotRequired[str] """ @@ -660,6 +688,10 @@ class SetupIntentModifyParamsPaymentMethodDataCustomerBalance(TypedDict): pass +class SetupIntentModifyParamsPaymentMethodDataDbarai(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataEps(TypedDict): bank: NotRequired[ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str" @@ -796,6 +828,10 @@ class SetupIntentModifyParamsPaymentMethodDataMbWay(TypedDict): pass +class SetupIntentModifyParamsPaymentMethodDataMerpay(TypedDict): + pass + + class SetupIntentModifyParamsPaymentMethodDataMobilepay(TypedDict): pass @@ -1222,7 +1258,7 @@ class SetupIntentModifyParamsPaymentMethodOptionsBacsDebit(TypedDict): Additional fields for Mandate creation """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] diff --git a/stripe/params/_setup_intent_update_params.py b/stripe/params/_setup_intent_update_params.py index 96c159461..6cb4ccdd1 100644 --- a/stripe/params/_setup_intent_update_params.py +++ b/stripe/params/_setup_intent_update_params.py @@ -7,7 +7,7 @@ class SetupIntentUpdateParams(TypedDict): allowed_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'card_present', 'carecredit', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'interac_present', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'toss_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'aeon_pay', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'au_pay', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boku_promptpay', 'boleto', 'capchase_pay', 'card', 'card_present', 'carecredit', 'cashapp', 'check_scan', 'click_to_pay', 'crypto', 'customer_balance', 'dbarai', 'demo_pay', 'duitnow', 'dummy_auth_push', 'dummy_passthrough_card', 'edenred', 'eps', 'fpx', 'gcash', 'getbalance', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'interac_present', 'kakao_pay', 'klarna', 'knet', 'konbini', 'kr_card', 'kr_market', 'kriya', 'link', 'mb_way', 'merpay', 'mobilepay', 'momo', 'mondu', 'multibanco', 'naver_pay', 'netbanking', 'ng_bank', 'ng_bank_transfer', 'ng_card', 'ng_market', 'ng_ussd', 'ng_wallet', 'nz_bank_account', 'octopus', 'oxxo', 'p24', 'paper_check', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shop_pay', 'shopeepay', 'sofort', 'south_korea_market', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'test_pay', 'toss_pay', 'touch_n_go', 'truemoney', 'twint', 'upi', 'us_bank_account', 'us_cash_voucher', 'vipps', 'wechat_pay', 'wero', 'zip'], str]]" ] """ The list of payment method types to allow for this SetupIntent. Stripe will only use methods in this list when determining the payment methods to offer. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type). @@ -35,7 +35,7 @@ class SetupIntentUpdateParams(TypedDict): An arbitrary string attached to the object. Often useful for displaying to users. """ excluded_payment_method_types: NotRequired[ - "Literal['']|List[Union[Literal['acss_debit', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" + "Literal['']|List[Union[Literal['acss_debit', 'aeon_pay', 'affirm', 'afterpay_clearpay', 'alipay', 'alma', 'amazon_pay', 'au_becs_debit', 'au_pay', 'bacs_debit', 'bancontact', 'billie', 'bizum', 'blik', 'boleto', 'card', 'carecredit', 'cashapp', 'crypto', 'customer_balance', 'dbarai', 'eps', 'fpx', 'getflex', 'gift_card', 'giropay', 'gopay', 'grabpay', 'id_bank_transfer', 'ideal', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'mb_way', 'merpay', 'mobilepay', 'multibanco', 'naver_pay', 'nz_bank_account', 'oxxo', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'paypay', 'payto', 'pix', 'promptpay', 'qris', 'rakuten_pay', 'rechnung', 'revolut_pay', 'samsung_pay', 'satispay', 'scalapay', 'sepa_debit', 'sequra', 'sezzle', 'shopeepay', 'sofort', 'stripe_balance', 'sunbit', 'swish', 'tamara', 'toss_pay', 'twint', 'upi', 'us_bank_account', 'vipps', 'wechat_pay', 'zip'], str]]" ] """ The list of payment method types to exclude from use with this SetupIntent. @@ -92,6 +92,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ + aeon_pay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataAeonPay"] + """ + If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method. + """ affirm: NotRequired["SetupIntentUpdateParamsPaymentMethodDataAffirm"] """ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -128,6 +132,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ + au_pay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataAuPay"] + """ + If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method. + """ bacs_debit: NotRequired[ "SetupIntentUpdateParamsPaymentMethodDataBacsDebit" ] @@ -182,6 +190,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ + dbarai: NotRequired["SetupIntentUpdateParamsPaymentMethodDataDbarai"] + """ + If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method. + """ eps: NotRequired["SetupIntentUpdateParamsPaymentMethodDataEps"] """ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. @@ -250,6 +262,10 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): """ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. """ + merpay: NotRequired["SetupIntentUpdateParamsPaymentMethodDataMerpay"] + """ + If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method. + """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -411,12 +427,14 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -427,6 +445,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -442,6 +461,7 @@ class SetupIntentUpdateParamsPaymentMethodData(TypedDict): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -526,6 +546,10 @@ class SetupIntentUpdateParamsPaymentMethodDataAcssDebit(TypedDict): """ +class SetupIntentUpdateParamsPaymentMethodDataAeonPay(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataAffirm(TypedDict): pass @@ -557,6 +581,10 @@ class SetupIntentUpdateParamsPaymentMethodDataAuBecsDebit(TypedDict): """ +class SetupIntentUpdateParamsPaymentMethodDataAuPay(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataBacsDebit(TypedDict): account_number: NotRequired[str] """ @@ -659,6 +687,10 @@ class SetupIntentUpdateParamsPaymentMethodDataCustomerBalance(TypedDict): pass +class SetupIntentUpdateParamsPaymentMethodDataDbarai(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataEps(TypedDict): bank: NotRequired[ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str" @@ -795,6 +827,10 @@ class SetupIntentUpdateParamsPaymentMethodDataMbWay(TypedDict): pass +class SetupIntentUpdateParamsPaymentMethodDataMerpay(TypedDict): + pass + + class SetupIntentUpdateParamsPaymentMethodDataMobilepay(TypedDict): pass @@ -1221,7 +1257,7 @@ class SetupIntentUpdateParamsPaymentMethodOptionsBacsDebit(TypedDict): Additional fields for Mandate creation """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] diff --git a/stripe/params/_subscription_create_params.py b/stripe/params/_subscription_create_params.py index 73b8168e0..4c96a8cc4 100644 --- a/stripe/params/_subscription_create_params.py +++ b/stripe/params/_subscription_create_params.py @@ -40,6 +40,10 @@ class SubscriptionCreateParams(RequestOptions): """ Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurrence of the day_of_month at the hour, minute, and second UTC. """ + billing_group: NotRequired[str] + """ + The Billing Group which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence. + """ billing_mode: NotRequired["SubscriptionCreateParamsBillingMode"] """ Controls how prorations and invoices for subscriptions are calculated and orchestrated. @@ -1005,7 +1009,7 @@ class SubscriptionCreateParamsPaymentSettingsPaymentMethodOptionsBacsDebit( Controls when the funds will be captured from the customer's account. """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] diff --git a/stripe/params/_subscription_list_params.py b/stripe/params/_subscription_list_params.py index 3214aa76e..915e0dc9c 100644 --- a/stripe/params/_subscription_list_params.py +++ b/stripe/params/_subscription_list_params.py @@ -12,7 +12,11 @@ class SubscriptionListParams(RequestOptions): """ billing_cadence: NotRequired[str] """ - Filter for subscriptions that have the specified billing cadence. + The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence. + """ + billing_group: NotRequired[str] + """ + Filter for subscriptions that have the specified billing group. """ collection_method: NotRequired[ "Literal['charge_automatically', 'send_invoice']|str" diff --git a/stripe/params/_subscription_modify_params.py b/stripe/params/_subscription_modify_params.py index 53959ea12..384c03e24 100644 --- a/stripe/params/_subscription_modify_params.py +++ b/stripe/params/_subscription_modify_params.py @@ -32,6 +32,10 @@ class SubscriptionModifyParams(RequestOptions): """ Controls how the subscription's billing cycle anchor changes. Set `type` to `now` to reset the billing cycle anchor to the current time (in UTC), or `unchanged` to preserve it. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). """ + billing_group: NotRequired[str] + """ + The Billing Group which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence. + """ billing_schedules: NotRequired[ "Literal['']|List[SubscriptionModifyParamsBillingSchedule]" ] @@ -998,7 +1002,7 @@ class SubscriptionModifyParamsPaymentSettingsPaymentMethodOptionsBacsDebit( Controls when the funds will be captured from the customer's account. """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] diff --git a/stripe/params/_subscription_update_params.py b/stripe/params/_subscription_update_params.py index e060bb20b..803660733 100644 --- a/stripe/params/_subscription_update_params.py +++ b/stripe/params/_subscription_update_params.py @@ -31,6 +31,10 @@ class SubscriptionUpdateParams(TypedDict): """ Controls how the subscription's billing cycle anchor changes. Set `type` to `now` to reset the billing cycle anchor to the current time (in UTC), or `unchanged` to preserve it. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). """ + billing_group: NotRequired[str] + """ + The Billing Group which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence. + """ billing_schedules: NotRequired[ "Literal['']|List[SubscriptionUpdateParamsBillingSchedule]" ] @@ -997,7 +1001,7 @@ class SubscriptionUpdateParamsPaymentSettingsPaymentMethodOptionsBacsDebit( Controls when the funds will be captured from the customer's account. """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] diff --git a/stripe/params/checkout/__init__.py b/stripe/params/checkout/__init__.py index 74a72a665..705fdb465 100644 --- a/stripe/params/checkout/__init__.py +++ b/stripe/params/checkout/__init__.py @@ -36,6 +36,7 @@ SessionCreateParamsCustomFieldLabel as SessionCreateParamsCustomFieldLabel, SessionCreateParamsCustomFieldNumeric as SessionCreateParamsCustomFieldNumeric, SessionCreateParamsCustomFieldText as SessionCreateParamsCustomFieldText, + SessionCreateParamsCustomPaymentMethodOptions as SessionCreateParamsCustomPaymentMethodOptions, SessionCreateParamsCustomText as SessionCreateParamsCustomText, SessionCreateParamsCustomTextAfterSubmit as SessionCreateParamsCustomTextAfterSubmit, SessionCreateParamsCustomTextShippingAddress as SessionCreateParamsCustomTextShippingAddress, @@ -156,6 +157,7 @@ SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions as SessionCreateParamsPaymentMethodOptionsSepaDebitMandateOptions, SessionCreateParamsPaymentMethodOptionsSequra as SessionCreateParamsPaymentMethodOptionsSequra, SessionCreateParamsPaymentMethodOptionsSofort as SessionCreateParamsPaymentMethodOptionsSofort, + SessionCreateParamsPaymentMethodOptionsStripeBalance as SessionCreateParamsPaymentMethodOptionsStripeBalance, SessionCreateParamsPaymentMethodOptionsSunbit as SessionCreateParamsPaymentMethodOptionsSunbit, SessionCreateParamsPaymentMethodOptionsSwish as SessionCreateParamsPaymentMethodOptionsSwish, SessionCreateParamsPaymentMethodOptionsTwint as SessionCreateParamsPaymentMethodOptionsTwint, @@ -394,6 +396,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsCustomPaymentMethodOptions": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsCustomText": ( "stripe.params.checkout._session_create_params", False, @@ -874,6 +880,10 @@ "stripe.params.checkout._session_create_params", False, ), + "SessionCreateParamsPaymentMethodOptionsStripeBalance": ( + "stripe.params.checkout._session_create_params", + False, + ), "SessionCreateParamsPaymentMethodOptionsSunbit": ( "stripe.params.checkout._session_create_params", False, diff --git a/stripe/params/checkout/_session_create_params.py b/stripe/params/checkout/_session_create_params.py index d44687d77..a259f7a0d 100644 --- a/stripe/params/checkout/_session_create_params.py +++ b/stripe/params/checkout/_session_create_params.py @@ -80,6 +80,7 @@ class SessionCreateParams(RequestOptions): "stripe_balance", "sunbit", "swish", + "tamara", "twint", "upi", "us_bank_account", @@ -149,6 +150,12 @@ class SessionCreateParams(RequestOptions): """ Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `elements`. """ + custom_payment_method_options: NotRequired[ + "Dict[str, SessionCreateParamsCustomPaymentMethodOptions]|UntypedStripeObject[SessionCreateParamsCustomPaymentMethodOptions]" + ] + """ + Options keyed by custom payment method type IDs (e.g., `cpmt_123`). Each ID must belong to your account and be included in `custom_payment_method_types`. Only available in `payment` mode. + """ custom_payment_method_types: NotRequired[List[str]] """ A list of custom payment methods (e.g., `cpmt_123`) this Checkout Session can accept. @@ -266,6 +273,7 @@ class SessionCreateParams(RequestOptions): "stripe_balance", "sunbit", "swish", + "tamara", "twint", "upi", "us_bank_account", @@ -762,6 +770,13 @@ class SessionCreateParamsCustomFieldText(TypedDict): """ +class SessionCreateParamsCustomPaymentMethodOptions(TypedDict): + setup_future_usage: NotRequired["Literal['none', 'off_session']|str"] + """ + Use `off_session` to set up this custom payment method for future payments when the customer is absent. Use `none` to disable setup for future usage. + """ + + class SessionCreateParamsCustomText(TypedDict): after_submit: NotRequired[ "Literal['']|SessionCreateParamsCustomTextAfterSubmit" @@ -2075,6 +2090,12 @@ class SessionCreateParamsPaymentMethodOptions(TypedDict): """ contains details about the Sofort payment method options. """ + stripe_balance: NotRequired[ + "SessionCreateParamsPaymentMethodOptionsStripeBalance" + ] + """ + contains details about the Stripe Balance payment method options. + """ sunbit: NotRequired["SessionCreateParamsPaymentMethodOptionsSunbit"] """ contains details about the Sunbit payment method options. @@ -2163,7 +2184,9 @@ class SessionCreateParamsPaymentMethodOptionsAcssDebitMandateOptions( """ Payment schedule for the mandate. """ - transaction_type: NotRequired["Literal['business', 'personal']|str"] + transaction_type: NotRequired[ + "Literal['business', 'buyer_choice', 'personal']|str" + ] """ Transaction type of the mandate. """ @@ -2281,7 +2304,7 @@ class SessionCreateParamsPaymentMethodOptionsBacsDebit(TypedDict): Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. """ verification_method: NotRequired[ - "Literal['automatic', 'payer_name_verification']|str" + "Literal['automatic', 'instant', 'payer_name_verification']|str" ] @@ -2993,6 +3016,16 @@ class SessionCreateParamsPaymentMethodOptionsPaypal(TypedDict): class SessionCreateParamsPaymentMethodOptionsPaypay(TypedDict): + setup_future_usage: NotRequired["Literal['none', 'off_session']|str"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ subscription_reference: NotRequired[str] """ The merchant's subscription identifier for this off-session charge. @@ -3219,6 +3252,19 @@ class SessionCreateParamsPaymentMethodOptionsSofort(TypedDict): """ +class SessionCreateParamsPaymentMethodOptionsStripeBalance(TypedDict): + setup_future_usage: NotRequired["Literal['none', 'off_session']|str"] + """ + Indicates that you intend to make future payments with this PaymentIntent's payment method. + + If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + + If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + + When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + """ + + class SessionCreateParamsPaymentMethodOptionsSunbit(TypedDict): capture_method: NotRequired[Literal["manual"]] """ diff --git a/stripe/params/radar/__init__.py b/stripe/params/radar/__init__.py index 726faaa0e..e9e7e5df7 100644 --- a/stripe/params/radar/__init__.py +++ b/stripe/params/radar/__init__.py @@ -87,6 +87,7 @@ PaymentEvaluationCreateParamsPaymentDetails as PaymentEvaluationCreateParamsPaymentDetails, PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetails as PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetails, PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsCard as PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsCard, + PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsSepaDebit as PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsSepaDebit, PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsUsBankAccount as PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsUsBankAccount, PaymentEvaluationCreateParamsPaymentDetailsPaymentMethodDetails as PaymentEvaluationCreateParamsPaymentDetailsPaymentMethodDetails, PaymentEvaluationCreateParamsPaymentDetailsPaymentMethodDetailsBillingDetails as PaymentEvaluationCreateParamsPaymentDetailsPaymentMethodDetailsBillingDetails, @@ -362,6 +363,10 @@ "stripe.params.radar._payment_evaluation_create_params", False, ), + "PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsSepaDebit": ( + "stripe.params.radar._payment_evaluation_create_params", + False, + ), "PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsUsBankAccount": ( "stripe.params.radar._payment_evaluation_create_params", False, diff --git a/stripe/params/radar/_payment_evaluation_create_params.py b/stripe/params/radar/_payment_evaluation_create_params.py index 42fa5224f..de6664735 100644 --- a/stripe/params/radar/_payment_evaluation_create_params.py +++ b/stripe/params/radar/_payment_evaluation_create_params.py @@ -136,10 +136,18 @@ class PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetails( """ Describes card money movement details. """ - money_movement_type: Union[Literal["card", "us_bank_account"], str] + money_movement_type: Union[ + Literal["card", "sepa_debit", "us_bank_account"], str + ] """ Describes the type of money movement. """ + sepa_debit: NotRequired[ + "PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsSepaDebit" + ] + """ + Describes SEPA debit money movement details. + """ us_bank_account: NotRequired[ "PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsUsBankAccount" ] @@ -163,6 +171,15 @@ class PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsCard( """ +class PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsSepaDebit( + TypedDict, +): + creditor_id: NotRequired[str] + """ + Supply the SEPA Creditor Identifier configured for the intended debit with your selected processor. Obtain it from your processor's SEPA configuration API or onboarding/support information. Do not supply a statement descriptor, IBAN, processor merchant-account ID, or mandate reference. If the creditor identifier is unknown, omit it. + """ + + class PaymentEvaluationCreateParamsPaymentDetailsMoneyMovementDetailsUsBankAccount( TypedDict, ): diff --git a/stripe/params/tax/__init__.py b/stripe/params/tax/__init__.py index c76d16530..cff34e955 100644 --- a/stripe/params/tax/__init__.py +++ b/stripe/params/tax/__init__.py @@ -28,6 +28,55 @@ from stripe.params.tax._calculation_retrieve_params import ( CalculationRetrieveParams as CalculationRetrieveParams, ) + from stripe.params.tax._certificate_create_params import ( + CertificateCreateParams as CertificateCreateParams, + ) + from stripe.params.tax._certificate_delete_params import ( + CertificateDeleteParams as CertificateDeleteParams, + ) + from stripe.params.tax._certificate_list_params import ( + CertificateListParams as CertificateListParams, + ) + from stripe.params.tax._certificate_retrieve_params import ( + CertificateRetrieveParams as CertificateRetrieveParams, + ) + from stripe.params.tax._form_create_params import ( + FormCreateParams as FormCreateParams, + FormCreateParamsPayeeDetails as FormCreateParamsPayeeDetails, + FormCreateParamsPayeeDetailsAddress as FormCreateParamsPayeeDetailsAddress, + FormCreateParamsUs1099K as FormCreateParamsUs1099K, + FormCreateParamsUs1099KCardNotPresentTransactions as FormCreateParamsUs1099KCardNotPresentTransactions, + FormCreateParamsUs1099KCashTips as FormCreateParamsUs1099KCashTips, + FormCreateParamsUs1099KFederalIncomeTaxWithheld as FormCreateParamsUs1099KFederalIncomeTaxWithheld, + FormCreateParamsUs1099KMonthlyVolume as FormCreateParamsUs1099KMonthlyVolume, + FormCreateParamsUs1099KPaymentTransactionsCount as FormCreateParamsUs1099KPaymentTransactionsCount, + FormCreateParamsUs1099KStateIncomeTaxWithheld as FormCreateParamsUs1099KStateIncomeTaxWithheld, + FormCreateParamsUs1099Misc as FormCreateParamsUs1099Misc, + FormCreateParamsUs1099MiscCashTips as FormCreateParamsUs1099MiscCashTips, + FormCreateParamsUs1099MiscCropInsuranceProceeds as FormCreateParamsUs1099MiscCropInsuranceProceeds, + FormCreateParamsUs1099MiscExcessGoldenParachutePayments as FormCreateParamsUs1099MiscExcessGoldenParachutePayments, + FormCreateParamsUs1099MiscFederalIncomeTaxWithheld as FormCreateParamsUs1099MiscFederalIncomeTaxWithheld, + FormCreateParamsUs1099MiscFishPurchasedForResale as FormCreateParamsUs1099MiscFishPurchasedForResale, + FormCreateParamsUs1099MiscFishingBoatProceeds as FormCreateParamsUs1099MiscFishingBoatProceeds, + FormCreateParamsUs1099MiscGrossProceedsPaidToAnAttorney as FormCreateParamsUs1099MiscGrossProceedsPaidToAnAttorney, + FormCreateParamsUs1099MiscMedicalAndHealthCarePayments as FormCreateParamsUs1099MiscMedicalAndHealthCarePayments, + FormCreateParamsUs1099MiscNonqualifiedDeferredCompensation as FormCreateParamsUs1099MiscNonqualifiedDeferredCompensation, + FormCreateParamsUs1099MiscOtherIncome as FormCreateParamsUs1099MiscOtherIncome, + FormCreateParamsUs1099MiscOvertimeCompensation as FormCreateParamsUs1099MiscOvertimeCompensation, + FormCreateParamsUs1099MiscRents as FormCreateParamsUs1099MiscRents, + FormCreateParamsUs1099MiscRoyalties as FormCreateParamsUs1099MiscRoyalties, + FormCreateParamsUs1099MiscSection409aDeferrals as FormCreateParamsUs1099MiscSection409aDeferrals, + FormCreateParamsUs1099MiscStateIncome as FormCreateParamsUs1099MiscStateIncome, + FormCreateParamsUs1099MiscStateTaxWithheld as FormCreateParamsUs1099MiscStateTaxWithheld, + FormCreateParamsUs1099MiscSubstitutePayments as FormCreateParamsUs1099MiscSubstitutePayments, + FormCreateParamsUs1099Nec as FormCreateParamsUs1099Nec, + FormCreateParamsUs1099NecCashTips as FormCreateParamsUs1099NecCashTips, + FormCreateParamsUs1099NecFederalIncomeTaxWithheld as FormCreateParamsUs1099NecFederalIncomeTaxWithheld, + FormCreateParamsUs1099NecNonemployeeCompensation as FormCreateParamsUs1099NecNonemployeeCompensation, + FormCreateParamsUs1099NecOvertimeCompensation as FormCreateParamsUs1099NecOvertimeCompensation, + FormCreateParamsUs1099NecStateIncome as FormCreateParamsUs1099NecStateIncome, + FormCreateParamsUs1099NecStateTaxWithheld as FormCreateParamsUs1099NecStateTaxWithheld, + ) from stripe.params.tax._form_list_params import ( FormListParams as FormListParams, FormListParamsPayee as FormListParamsPayee, @@ -335,6 +384,159 @@ "stripe.params.tax._calculation_retrieve_params", False, ), + "CertificateCreateParams": ( + "stripe.params.tax._certificate_create_params", + False, + ), + "CertificateDeleteParams": ( + "stripe.params.tax._certificate_delete_params", + False, + ), + "CertificateListParams": ( + "stripe.params.tax._certificate_list_params", + False, + ), + "CertificateRetrieveParams": ( + "stripe.params.tax._certificate_retrieve_params", + False, + ), + "FormCreateParams": ("stripe.params.tax._form_create_params", False), + "FormCreateParamsPayeeDetails": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsPayeeDetailsAddress": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099K": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099KCardNotPresentTransactions": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099KCashTips": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099KFederalIncomeTaxWithheld": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099KMonthlyVolume": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099KPaymentTransactionsCount": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099KStateIncomeTaxWithheld": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099Misc": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscCashTips": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscCropInsuranceProceeds": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscExcessGoldenParachutePayments": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscFederalIncomeTaxWithheld": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscFishPurchasedForResale": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscFishingBoatProceeds": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscGrossProceedsPaidToAnAttorney": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscMedicalAndHealthCarePayments": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscNonqualifiedDeferredCompensation": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscOtherIncome": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscOvertimeCompensation": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscRents": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscRoyalties": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscSection409aDeferrals": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscStateIncome": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscStateTaxWithheld": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099MiscSubstitutePayments": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099Nec": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099NecCashTips": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099NecFederalIncomeTaxWithheld": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099NecNonemployeeCompensation": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099NecOvertimeCompensation": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099NecStateIncome": ( + "stripe.params.tax._form_create_params", + False, + ), + "FormCreateParamsUs1099NecStateTaxWithheld": ( + "stripe.params.tax._form_create_params", + False, + ), "FormListParams": ("stripe.params.tax._form_list_params", False), "FormListParamsPayee": ("stripe.params.tax._form_list_params", False), "FormPdfParams": ("stripe.params.tax._form_pdf_params", False), diff --git a/stripe/params/tax/_certificate_create_params.py b/stripe/params/tax/_certificate_create_params.py new file mode 100644 index 000000000..e13fe4466 --- /dev/null +++ b/stripe/params/tax/_certificate_create_params.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class CertificateCreateParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + file: str + """ + The ID of a file uploaded with purpose `tax_certificate`. + """ + tax_exemption: str + """ + The ID of an existing tax exemption. + """ diff --git a/stripe/params/tax/_certificate_delete_params.py b/stripe/params/tax/_certificate_delete_params.py new file mode 100644 index 000000000..b15c045de --- /dev/null +++ b/stripe/params/tax/_certificate_delete_params.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions + + +class CertificateDeleteParams(RequestOptions): + pass diff --git a/stripe/params/tax/_certificate_list_params.py b/stripe/params/tax/_certificate_list_params.py new file mode 100644 index 000000000..2507ab666 --- /dev/null +++ b/stripe/params/tax/_certificate_list_params.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class CertificateListParams(RequestOptions): + 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: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + limit: NotRequired[int] + """ + A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + """ + starting_after: NotRequired[str] + """ + A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + """ + tax_exemption: str + """ + The ID of an existing tax exemption. + """ diff --git a/stripe/params/tax/_certificate_retrieve_params.py b/stripe/params/tax/_certificate_retrieve_params.py new file mode 100644 index 000000000..0ccec12e6 --- /dev/null +++ b/stripe/params/tax/_certificate_retrieve_params.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired + + +class CertificateRetrieveParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ diff --git a/stripe/params/tax/_form_create_params.py b/stripe/params/tax/_form_create_params.py new file mode 100644 index 000000000..016debe1c --- /dev/null +++ b/stripe/params/tax/_form_create_params.py @@ -0,0 +1,466 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._request_options import RequestOptions +from typing import List +from typing_extensions import NotRequired, TypedDict + + +class FormCreateParams(RequestOptions): + expand: NotRequired[List[str]] + """ + Specifies which fields in the response should be expanded. + """ + payee_details: NotRequired["FormCreateParamsPayeeDetails"] + """ + Replacement payee details. Cannot be combined with numerical correction fields. Omitted fields remain unchanged. + """ + second_tin_notice: NotRequired[bool] + """ + Whether a second TIN notice was received. Supported for K and MISC forms only; cannot be supplied without a substantive correction. + """ + us_1099_k: NotRequired["FormCreateParamsUs1099K"] + """ + Replacement numerical values for a 1099-K. Supply only the group matching the original form. Omitted fields remain unchanged. + """ + us_1099_misc: NotRequired["FormCreateParamsUs1099Misc"] + """ + Replacement numerical values for a 1099-MISC. Supply only the group matching the original form. Omitted fields remain unchanged. + """ + us_1099_nec: NotRequired["FormCreateParamsUs1099Nec"] + """ + Replacement numerical values for a 1099-NEC. Supply only the group matching the original form. Omitted fields remain unchanged. + """ + + +class FormCreateParamsPayeeDetails(TypedDict): + address: NotRequired["FormCreateParamsPayeeDetailsAddress"] + """ + The payee's replacement address fields. Omitted fields remain unchanged. + """ + merchant_category_code: NotRequired[str] + """ + The payee's merchant category code. + """ + name_line_1: NotRequired[str] + """ + The first line of the payee's name. + """ + name_line_2: NotRequired[str] + """ + The second line of the payee's name. An empty string clears this field. + """ + tax_id_number: NotRequired[str] + """ + The payee's US taxpayer identification number. + """ + treasury_tipped_occupation_code: NotRequired[str] + """ + The payee's Treasury tipped occupation code, where supported by the reporting year and form type. + """ + + +class FormCreateParamsPayeeDetailsAddress(TypedDict): + city: NotRequired[str] + """ + The city of the payee's address. + """ + country: NotRequired[str] + """ + The two-letter country code of the payee's address. + """ + line1: NotRequired[str] + """ + The first line of the payee's address. + """ + line2: NotRequired[str] + """ + The second line of the payee's address. An empty string clears this field. + """ + postal_code: NotRequired[str] + """ + The postal code of the payee's address. + """ + state: NotRequired[str] + """ + The state of the payee's address. + """ + + +class FormCreateParamsUs1099K(TypedDict): + card_not_present_transactions: NotRequired[ + "FormCreateParamsUs1099KCardNotPresentTransactions" + ] + """ + Replacement card-not-present transaction amount. + """ + cash_tips: NotRequired["FormCreateParamsUs1099KCashTips"] + """ + Replacement cash tips, where supported by the reporting year. + """ + federal_income_tax_withheld: NotRequired[ + "FormCreateParamsUs1099KFederalIncomeTaxWithheld" + ] + """ + Replacement federal income tax withheld. + """ + monthly_volumes: NotRequired[List["FormCreateParamsUs1099KMonthlyVolume"]] + """ + Replacement amounts for all twelve months, from January through December. + """ + payment_transactions_count: NotRequired[ + "FormCreateParamsUs1099KPaymentTransactionsCount" + ] + """ + Replacement payment transaction count. + """ + state_income_tax_withheld: NotRequired[ + "FormCreateParamsUs1099KStateIncomeTaxWithheld" + ] + """ + Replacement state income tax withheld. + """ + + +class FormCreateParamsUs1099KCardNotPresentTransactions(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099KCashTips(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099KFederalIncomeTaxWithheld(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099KMonthlyVolume(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099KPaymentTransactionsCount(TypedDict): + count: int + """ + The replacement non-negative transaction count. + """ + + +class FormCreateParamsUs1099KStateIncomeTaxWithheld(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099Misc(TypedDict): + cash_tips: NotRequired["FormCreateParamsUs1099MiscCashTips"] + """ + Replacement cash tips, where supported by the reporting year. + """ + crop_insurance_proceeds: NotRequired[ + "FormCreateParamsUs1099MiscCropInsuranceProceeds" + ] + """ + Replacement crop insurance proceeds. + """ + direct_sales_for_resale: NotRequired[bool] + """ + Replacement direct-sales-for-resale indicator. + """ + excess_golden_parachute_payments: NotRequired[ + "FormCreateParamsUs1099MiscExcessGoldenParachutePayments" + ] + """ + Replacement excess golden parachute payments, where supported by the reporting year. + """ + fatca_filing_required: NotRequired[bool] + """ + Replacement FATCA filing requirement; cannot be supplied without a substantive correction. + """ + federal_income_tax_withheld: NotRequired[ + "FormCreateParamsUs1099MiscFederalIncomeTaxWithheld" + ] + """ + Replacement federal income tax withheld. + """ + fish_purchased_for_resale: NotRequired[ + "FormCreateParamsUs1099MiscFishPurchasedForResale" + ] + """ + Replacement fish purchased for resale. + """ + fishing_boat_proceeds: NotRequired[ + "FormCreateParamsUs1099MiscFishingBoatProceeds" + ] + """ + Replacement fishing boat proceeds. + """ + gross_proceeds_paid_to_an_attorney: NotRequired[ + "FormCreateParamsUs1099MiscGrossProceedsPaidToAnAttorney" + ] + """ + Replacement gross proceeds paid to an attorney. + """ + medical_and_health_care_payments: NotRequired[ + "FormCreateParamsUs1099MiscMedicalAndHealthCarePayments" + ] + """ + Replacement medical and health care payments. + """ + nonqualified_deferred_compensation: NotRequired[ + "FormCreateParamsUs1099MiscNonqualifiedDeferredCompensation" + ] + """ + Replacement nonqualified deferred compensation. + """ + other_income: NotRequired["FormCreateParamsUs1099MiscOtherIncome"] + """ + Replacement other income. + """ + overtime_compensation: NotRequired[ + "FormCreateParamsUs1099MiscOvertimeCompensation" + ] + """ + Replacement overtime compensation, where supported by the reporting year. + """ + rents: NotRequired["FormCreateParamsUs1099MiscRents"] + """ + Replacement rents. + """ + royalties: NotRequired["FormCreateParamsUs1099MiscRoyalties"] + """ + Replacement royalties. + """ + section_409a_deferrals: NotRequired[ + "FormCreateParamsUs1099MiscSection409aDeferrals" + ] + """ + Replacement section 409A deferrals. + """ + state_income: NotRequired["FormCreateParamsUs1099MiscStateIncome"] + """ + Replacement state income. + """ + state_tax_withheld: NotRequired[ + "FormCreateParamsUs1099MiscStateTaxWithheld" + ] + """ + Replacement state tax withheld. + """ + substitute_payments: NotRequired[ + "FormCreateParamsUs1099MiscSubstitutePayments" + ] + """ + Replacement substitute payments. + """ + + +class FormCreateParamsUs1099MiscCashTips(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscCropInsuranceProceeds(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscExcessGoldenParachutePayments(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscFederalIncomeTaxWithheld(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscFishPurchasedForResale(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscFishingBoatProceeds(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscGrossProceedsPaidToAnAttorney(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscMedicalAndHealthCarePayments(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscNonqualifiedDeferredCompensation(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscOtherIncome(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscOvertimeCompensation(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscRents(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscRoyalties(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscSection409aDeferrals(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscStateIncome(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscStateTaxWithheld(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099MiscSubstitutePayments(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099Nec(TypedDict): + cash_tips: NotRequired["FormCreateParamsUs1099NecCashTips"] + """ + Replacement cash tips, where supported by the reporting year. + """ + direct_sales_indicator: NotRequired[bool] + """ + Replacement direct-sales indicator. + """ + federal_income_tax_withheld: NotRequired[ + "FormCreateParamsUs1099NecFederalIncomeTaxWithheld" + ] + """ + Replacement federal income tax withheld. + """ + nonemployee_compensation: NotRequired[ + "FormCreateParamsUs1099NecNonemployeeCompensation" + ] + """ + Replacement nonemployee compensation. + """ + overtime_compensation: NotRequired[ + "FormCreateParamsUs1099NecOvertimeCompensation" + ] + """ + Replacement overtime compensation, where supported by the reporting year. + """ + state_income: NotRequired["FormCreateParamsUs1099NecStateIncome"] + """ + Replacement state income. + """ + state_tax_withheld: NotRequired[ + "FormCreateParamsUs1099NecStateTaxWithheld" + ] + """ + Replacement state tax withheld. + """ + + +class FormCreateParamsUs1099NecCashTips(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099NecFederalIncomeTaxWithheld(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099NecNonemployeeCompensation(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099NecOvertimeCompensation(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099NecStateIncome(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ + + +class FormCreateParamsUs1099NecStateTaxWithheld(TypedDict): + volume_decimal: str + """ + The replacement amount in major currency units, with at most two decimal places. Must be non-negative. + """ diff --git a/stripe/params/test_helpers/__init__.py b/stripe/params/test_helpers/__init__.py index 2bd254b52..5d8eaa9ad 100644 --- a/stripe/params/test_helpers/__init__.py +++ b/stripe/params/test_helpers/__init__.py @@ -15,12 +15,14 @@ ConfirmationTokenCreateParams as ConfirmationTokenCreateParams, ConfirmationTokenCreateParamsPaymentMethodData as ConfirmationTokenCreateParamsPaymentMethodData, ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit as ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit, + ConfirmationTokenCreateParamsPaymentMethodDataAeonPay as ConfirmationTokenCreateParamsPaymentMethodDataAeonPay, ConfirmationTokenCreateParamsPaymentMethodDataAffirm as ConfirmationTokenCreateParamsPaymentMethodDataAffirm, ConfirmationTokenCreateParamsPaymentMethodDataAfterpayClearpay as ConfirmationTokenCreateParamsPaymentMethodDataAfterpayClearpay, ConfirmationTokenCreateParamsPaymentMethodDataAlipay as ConfirmationTokenCreateParamsPaymentMethodDataAlipay, ConfirmationTokenCreateParamsPaymentMethodDataAlma as ConfirmationTokenCreateParamsPaymentMethodDataAlma, ConfirmationTokenCreateParamsPaymentMethodDataAmazonPay as ConfirmationTokenCreateParamsPaymentMethodDataAmazonPay, ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit as ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit, + ConfirmationTokenCreateParamsPaymentMethodDataAuPay as ConfirmationTokenCreateParamsPaymentMethodDataAuPay, ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit as ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit, ConfirmationTokenCreateParamsPaymentMethodDataBancontact as ConfirmationTokenCreateParamsPaymentMethodDataBancontact, ConfirmationTokenCreateParamsPaymentMethodDataBillie as ConfirmationTokenCreateParamsPaymentMethodDataBillie, @@ -33,6 +35,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataCashapp as ConfirmationTokenCreateParamsPaymentMethodDataCashapp, ConfirmationTokenCreateParamsPaymentMethodDataCrypto as ConfirmationTokenCreateParamsPaymentMethodDataCrypto, ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance as ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance, + ConfirmationTokenCreateParamsPaymentMethodDataDbarai as ConfirmationTokenCreateParamsPaymentMethodDataDbarai, ConfirmationTokenCreateParamsPaymentMethodDataEps as ConfirmationTokenCreateParamsPaymentMethodDataEps, ConfirmationTokenCreateParamsPaymentMethodDataFpx as ConfirmationTokenCreateParamsPaymentMethodDataFpx, ConfirmationTokenCreateParamsPaymentMethodDataGetflex as ConfirmationTokenCreateParamsPaymentMethodDataGetflex, @@ -50,6 +53,7 @@ ConfirmationTokenCreateParamsPaymentMethodDataKrCard as ConfirmationTokenCreateParamsPaymentMethodDataKrCard, ConfirmationTokenCreateParamsPaymentMethodDataLink as ConfirmationTokenCreateParamsPaymentMethodDataLink, ConfirmationTokenCreateParamsPaymentMethodDataMbWay as ConfirmationTokenCreateParamsPaymentMethodDataMbWay, + ConfirmationTokenCreateParamsPaymentMethodDataMerpay as ConfirmationTokenCreateParamsPaymentMethodDataMerpay, ConfirmationTokenCreateParamsPaymentMethodDataMobilepay as ConfirmationTokenCreateParamsPaymentMethodDataMobilepay, ConfirmationTokenCreateParamsPaymentMethodDataMultibanco as ConfirmationTokenCreateParamsPaymentMethodDataMultibanco, ConfirmationTokenCreateParamsPaymentMethodDataNaverPay as ConfirmationTokenCreateParamsPaymentMethodDataNaverPay, @@ -142,6 +146,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataAeonPay": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataAffirm": ( "stripe.params.test_helpers._confirmation_token_create_params", False, @@ -166,6 +174,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataAuPay": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit": ( "stripe.params.test_helpers._confirmation_token_create_params", False, @@ -214,6 +226,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataDbarai": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataEps": ( "stripe.params.test_helpers._confirmation_token_create_params", False, @@ -282,6 +298,10 @@ "stripe.params.test_helpers._confirmation_token_create_params", False, ), + "ConfirmationTokenCreateParamsPaymentMethodDataMerpay": ( + "stripe.params.test_helpers._confirmation_token_create_params", + False, + ), "ConfirmationTokenCreateParamsPaymentMethodDataMobilepay": ( "stripe.params.test_helpers._confirmation_token_create_params", False, diff --git a/stripe/params/test_helpers/_confirmation_token_create_params.py b/stripe/params/test_helpers/_confirmation_token_create_params.py index 6c4eabf91..25b7ec43d 100644 --- a/stripe/params/test_helpers/_confirmation_token_create_params.py +++ b/stripe/params/test_helpers/_confirmation_token_create_params.py @@ -49,6 +49,12 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. """ + aeon_pay: NotRequired[ + "ConfirmationTokenCreateParamsPaymentMethodDataAeonPay" + ] + """ + If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method. + """ affirm: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataAffirm"] """ If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -85,6 +91,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account. """ + au_pay: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataAuPay"] + """ + If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method. + """ bacs_debit: NotRequired[ "ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit" ] @@ -141,6 +151,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. """ + dbarai: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataDbarai"] + """ + If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method. + """ eps: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataEps"] """ If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method. @@ -223,6 +237,10 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): """ If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. """ + merpay: NotRequired["ConfirmationTokenCreateParamsPaymentMethodDataMerpay"] + """ + If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method. + """ metadata: NotRequired["Dict[str, str]|UntypedStripeObject[str]"] """ Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -400,12 +418,14 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): type: Union[ Literal[ "acss_debit", + "aeon_pay", "affirm", "afterpay_clearpay", "alipay", "alma", "amazon_pay", "au_becs_debit", + "au_pay", "bacs_debit", "bancontact", "billie", @@ -416,6 +436,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "cashapp", "crypto", "customer_balance", + "dbarai", "eps", "fpx", "getflex", @@ -431,6 +452,7 @@ class ConfirmationTokenCreateParamsPaymentMethodData(TypedDict): "kr_card", "link", "mb_way", + "merpay", "mobilepay", "multibanco", "naver_pay", @@ -515,6 +537,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataAcssDebit(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataAeonPay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataAffirm(TypedDict): pass @@ -548,6 +574,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataAuBecsDebit(TypedDict): """ +class ConfirmationTokenCreateParamsPaymentMethodDataAuPay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataBacsDebit(TypedDict): account_number: NotRequired[str] """ @@ -652,6 +682,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataCustomerBalance(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataDbarai(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataEps(TypedDict): bank: NotRequired[ "Literal['arzte_und_apotheker_bank', 'austrian_anadi_bank_ag', 'bank_austria', 'bankhaus_carl_spangler', 'bankhaus_schelhammer_und_schattera_ag', 'bawag_psk_ag', 'bks_bank_ag', 'brull_kallmus_bank_ag', 'btv_vier_lander_bank', 'capital_bank_grawe_gruppe_ag', 'deutsche_bank_ag', 'dolomitenbank', 'easybank_ag', 'erste_bank_und_sparkassen', 'hypo_alpeadriabank_international_ag', 'hypo_bank_burgenland_aktiengesellschaft', 'hypo_noe_lb_fur_niederosterreich_u_wien', 'hypo_oberosterreich_salzburg_steiermark', 'hypo_tirol_bank_ag', 'hypo_vorarlberg_bank_ag', 'marchfelder_bank', 'oberbank_ag', 'raiffeisen_bankengruppe_osterreich', 'schoellerbank_ag', 'sparda_bank_wien', 'volksbank_gruppe', 'volkskreditbank_ag', 'vr_bank_braunau']|str" @@ -788,6 +822,10 @@ class ConfirmationTokenCreateParamsPaymentMethodDataMbWay(TypedDict): pass +class ConfirmationTokenCreateParamsPaymentMethodDataMerpay(TypedDict): + pass + + class ConfirmationTokenCreateParamsPaymentMethodDataMobilepay(TypedDict): pass diff --git a/stripe/params/v2/core/__init__.py b/stripe/params/v2/core/__init__.py index 982da1fa3..386bbf668 100644 --- a/stripe/params/v2/core/__init__.py +++ b/stripe/params/v2/core/__init__.py @@ -747,6 +747,7 @@ AccountSessionCreateParamsComponentsBalanceReport as AccountSessionCreateParamsComponentsBalanceReport, AccountSessionCreateParamsComponentsBalances as AccountSessionCreateParamsComponentsBalances, AccountSessionCreateParamsComponentsBills as AccountSessionCreateParamsComponentsBills, + AccountSessionCreateParamsComponentsBusinessProfileManagement as AccountSessionCreateParamsComponentsBusinessProfileManagement, AccountSessionCreateParamsComponentsCapitalFinancing as AccountSessionCreateParamsComponentsCapitalFinancing, AccountSessionCreateParamsComponentsCapitalFinancingApplication as AccountSessionCreateParamsComponentsCapitalFinancingApplication, AccountSessionCreateParamsComponentsCapitalFinancingPromotion as AccountSessionCreateParamsComponentsCapitalFinancingPromotion, @@ -4548,6 +4549,10 @@ "stripe.params.v2.core._account_session_create_params", False, ), + "AccountSessionCreateParamsComponentsBusinessProfileManagement": ( + "stripe.params.v2.core._account_session_create_params", + False, + ), "AccountSessionCreateParamsComponentsCapitalFinancing": ( "stripe.params.v2.core._account_session_create_params", False, diff --git a/stripe/params/v2/core/_account_session_create_params.py b/stripe/params/v2/core/_account_session_create_params.py index b6d19ccbf..04349ed70 100644 --- a/stripe/params/v2/core/_account_session_create_params.py +++ b/stripe/params/v2/core/_account_session_create_params.py @@ -62,6 +62,12 @@ class AccountSessionCreateParamsComponents(TypedDict): """ Settings for the Bills embedded component. """ + business_profile_management: NotRequired[ + "AccountSessionCreateParamsComponentsBusinessProfileManagement" + ] + """ + Settings for the Business Profile Management embedded component. + """ capital_financing: NotRequired[ "AccountSessionCreateParamsComponentsCapitalFinancing" ] @@ -300,6 +306,13 @@ class AccountSessionCreateParamsComponentsBills(TypedDict): """ +class AccountSessionCreateParamsComponentsBusinessProfileManagement(TypedDict): + enabled: bool + """ + Whether this embedded component is enabled. + """ + + class AccountSessionCreateParamsComponentsCapitalFinancing(TypedDict): enabled: bool """ diff --git a/stripe/params/v2/extend/__init__.py b/stripe/params/v2/extend/__init__.py index 767d9f05e..67f778609 100644 --- a/stripe/params/v2/extend/__init__.py +++ b/stripe/params/v2/extend/__init__.py @@ -4,6 +4,15 @@ from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: + from stripe.params.v2.extend import ( + object_definitions as object_definitions, + ) + from stripe.params.v2.extend._object_definition_list_params import ( + ObjectDefinitionListParams as ObjectDefinitionListParams, + ) + from stripe.params.v2.extend._object_definition_retrieve_params import ( + ObjectDefinitionRetrieveParams as ObjectDefinitionRetrieveParams, + ) from stripe.params.v2.extend._workflow_invoke_params import ( WorkflowInvokeParams as WorkflowInvokeParams, ) @@ -22,6 +31,15 @@ # name -> (import_target, is_submodule) _import_map = { + "object_definitions": ("stripe.params.v2.extend.object_definitions", True), + "ObjectDefinitionListParams": ( + "stripe.params.v2.extend._object_definition_list_params", + False, + ), + "ObjectDefinitionRetrieveParams": ( + "stripe.params.v2.extend._object_definition_retrieve_params", + False, + ), "WorkflowInvokeParams": ( "stripe.params.v2.extend._workflow_invoke_params", False, diff --git a/stripe/params/v2/extend/_object_definition_list_params.py b/stripe/params/v2/extend/_object_definition_list_params.py new file mode 100644 index 000000000..b59be64ac --- /dev/null +++ b/stripe/params/v2/extend/_object_definition_list_params.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing_extensions import NotRequired, TypedDict + + +class ObjectDefinitionListParams(TypedDict): + limit: NotRequired[int] + """ + Maximum page size. + """ diff --git a/stripe/params/v2/extend/_object_definition_retrieve_params.py b/stripe/params/v2/extend/_object_definition_retrieve_params.py new file mode 100644 index 000000000..de805d931 --- /dev/null +++ b/stripe/params/v2/extend/_object_definition_retrieve_params.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing_extensions import TypedDict + + +class ObjectDefinitionRetrieveParams(TypedDict): + pass diff --git a/stripe/params/v2/extend/object_definitions/__init__.py b/stripe/params/v2/extend/object_definitions/__init__.py new file mode 100644 index 000000000..b642af4ac --- /dev/null +++ b/stripe/params/v2/extend/object_definitions/__init__.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.params.v2.extend.object_definitions._version_list_params import ( + VersionListParams as VersionListParams, + ) + from stripe.params.v2.extend.object_definitions._version_retrieve_params import ( + VersionRetrieveParams as VersionRetrieveParams, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "VersionListParams": ( + "stripe.params.v2.extend.object_definitions._version_list_params", + False, + ), + "VersionRetrieveParams": ( + "stripe.params.v2.extend.object_definitions._version_retrieve_params", + False, + ), +} +if not TYPE_CHECKING: + + def __getattr__(name): + try: + target, is_submodule = _import_map[name] + module = import_module(target) + if is_submodule: + return module + + return getattr( + module, + name, + ) + except KeyError: + raise AttributeError() diff --git a/stripe/params/v2/extend/object_definitions/_version_list_params.py b/stripe/params/v2/extend/object_definitions/_version_list_params.py new file mode 100644 index 000000000..7697e39e9 --- /dev/null +++ b/stripe/params/v2/extend/object_definitions/_version_list_params.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing_extensions import NotRequired, TypedDict + + +class VersionListParams(TypedDict): + limit: NotRequired[int] + """ + Maximum page size. + """ diff --git a/stripe/params/v2/extend/object_definitions/_version_retrieve_params.py b/stripe/params/v2/extend/object_definitions/_version_retrieve_params.py new file mode 100644 index 000000000..5c36a13fb --- /dev/null +++ b/stripe/params/v2/extend/object_definitions/_version_retrieve_params.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from typing_extensions import TypedDict + + +class VersionRetrieveParams(TypedDict): + pass diff --git a/stripe/radar/_payment_evaluation.py b/stripe/radar/_payment_evaluation.py index 99df22387..e4b065d7d 100644 --- a/stripe/radar/_payment_evaluation.py +++ b/stripe/radar/_payment_evaluation.py @@ -372,6 +372,12 @@ class Card(StripeObject): Describes the type of payment. """ + class SepaDebit(StripeObject): + creditor_id: Optional[str] + """ + Creditor identifier used for the intended debit. + """ + class UsBankAccount(StripeObject): customer_presence: Optional[ Union[Literal["off_session", "on_session"], str] @@ -388,16 +394,23 @@ class UsBankAccount(StripeObject): """ Describes card money movement details. """ - money_movement_type: Union[Literal["card", "us_bank_account"], str] + money_movement_type: Union[ + Literal["card", "sepa_debit", "us_bank_account"], str + ] """ Describes the type of money movement. """ + sepa_debit: Optional[SepaDebit] + """ + Describes SEPA debit money movement details. + """ us_bank_account: Optional[UsBankAccount] """ Describes US bank account money movement details. """ _inner_class_types = { "card": Card, + "sepa_debit": SepaDebit, "us_bank_account": UsBankAccount, } @@ -592,6 +605,30 @@ class BankInitiatedReturn(StripeObject): Numeric score for this signal, returned with two decimal places. Possible values for evaluated payments are between 0 and 100, where higher scores indicate a higher likelihood of the signal being true. """ + class CardTesting(StripeObject): + evaluated_at: int + """ + The time when this signal was evaluated. + """ + risk_level: Union[ + Literal[ + "elevated", + "highest", + "low", + "normal", + "not_assessed", + "unknown", + ], + str, + ] + """ + Risk level of this signal, based on the score. + """ + score: Optional[float] + """ + Numeric score for this signal, returned with two decimal places. Possible values for evaluated payments are between 0 and 100, where higher scores indicate a higher likelihood of the signal being true. + """ + class EarlyFraudWarning(StripeObject): evaluated_at: int """ @@ -668,6 +705,10 @@ class FraudulentPayment(StripeObject): """ A payment evaluation signal with evaluated_at, risk_level, and score fields. """ + card_testing: Optional[CardTesting] + """ + The likelihood that this `PaymentEvaluation` is part of a card testing attack. + """ early_fraud_warning: Optional[EarlyFraudWarning] """ The likelihood that this `PaymentEvaluation` results in an early fraud warning. @@ -682,6 +723,7 @@ class FraudulentPayment(StripeObject): """ _inner_class_types = { "bank_initiated_return": BankInitiatedReturn, + "card_testing": CardTesting, "early_fraud_warning": EarlyFraudWarning, "fraudulent_dispute": FraudulentDispute, "fraudulent_payment": FraudulentPayment, @@ -728,10 +770,17 @@ class FraudulentPayment(StripeObject): Payment details attached to this payment evaluation. """ recommended_action: Union[ - Literal["block", "continue", "request_three_d_secure", "reroute"], str + Literal[ + "block", + "continue", + "continue_with_manual_review", + "request_three_d_secure", + "reroute", + ], + str, ] """ - Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`. + Recommended action for this payment based on its evaluated signals and rules. """ rules: Optional[Rules] """ diff --git a/stripe/reporting/_report_run.py b/stripe/reporting/_report_run.py index 3eda46c25..be428df7e 100644 --- a/stripe/reporting/_report_run.py +++ b/stripe/reporting/_report_run.py @@ -68,6 +68,10 @@ class Parameters(StripeObject): """ Category of balance transactions to be included in the report run. """ + tax_invoice_month: Optional[str] + """ + The tax invoice month in YYYY-MM format. + """ timezone: Optional[str] """ Defaults to `Etc/UTC`. The output timezone for all timestamps in the report. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). Has no effect on `interval_start` or `interval_end`. diff --git a/stripe/tax/__init__.py b/stripe/tax/__init__.py index 43c706c5e..b10094b7a 100644 --- a/stripe/tax/__init__.py +++ b/stripe/tax/__init__.py @@ -18,7 +18,12 @@ from stripe.tax._calculation_service import ( CalculationService as CalculationService, ) + from stripe.tax._certificate import Certificate as Certificate + from stripe.tax._certificate_service import ( + CertificateService as CertificateService, + ) from stripe.tax._form import Form as Form + from stripe.tax._form_correction import FormCorrection as FormCorrection from stripe.tax._form_service import FormService as FormService from stripe.tax._location import Location as Location from stripe.tax._location_service import LocationService as LocationService @@ -50,7 +55,10 @@ False, ), "CalculationService": ("stripe.tax._calculation_service", False), + "Certificate": ("stripe.tax._certificate", False), + "CertificateService": ("stripe.tax._certificate_service", False), "Form": ("stripe.tax._form", False), + "FormCorrection": ("stripe.tax._form_correction", False), "FormService": ("stripe.tax._form_service", False), "Location": ("stripe.tax._location", False), "LocationService": ("stripe.tax._location_service", False), diff --git a/stripe/tax/_certificate.py b/stripe/tax/_certificate.py new file mode 100644 index 000000000..7874f9f18 --- /dev/null +++ b/stripe/tax/_certificate.py @@ -0,0 +1,258 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._createable_api_resource import CreateableAPIResource +from stripe._deletable_api_resource import DeletableAPIResource +from stripe._expandable_field import ExpandableField +from stripe._list_object import ListObject +from stripe._listable_api_resource import ListableAPIResource +from stripe._util import class_method_variant, sanitize_id +from typing import ClassVar, Optional, cast, overload +from typing_extensions import Literal, Unpack, TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._customer_tax_exemption import CustomerTaxExemption + from stripe._file import File + from stripe.params.tax._certificate_create_params import ( + CertificateCreateParams, + ) + from stripe.params.tax._certificate_delete_params import ( + CertificateDeleteParams, + ) + from stripe.params.tax._certificate_list_params import ( + CertificateListParams, + ) + from stripe.params.tax._certificate_retrieve_params import ( + CertificateRetrieveParams, + ) + + +class Certificate( + CreateableAPIResource["Certificate"], + DeletableAPIResource["Certificate"], + ListableAPIResource["Certificate"], +): + """ + Tax exemption and resale certificates associated with tax exemptions. + """ + + OBJECT_NAME: ClassVar[Literal["tax.certificate"]] = "tax.certificate" + created: int + """ + Time at which the object was created. Measured in seconds since the Unix epoch. + """ + deleted: bool + """ + Whether the certificate has been deleted. + """ + file: ExpandableField["File"] + """ + The uploaded certificate file. + """ + id: str + """ + Unique identifier for the object. + """ + livemode: bool + """ + If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. + """ + object: Literal["tax.certificate"] + """ + String representing the object's type. Objects of the same type share the same value. + """ + tax_exemption: Optional[ExpandableField["CustomerTaxExemption"]] + """ + The tax exemption associated with this certificate. + """ + + @classmethod + def create( + cls, **params: Unpack["CertificateCreateParams"] + ) -> "Certificate": + """ + Create a tax certificate associated with a tax exemption. + """ + return cast( + "Certificate", + cls._static_request( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + async def create_async( + cls, **params: Unpack["CertificateCreateParams"] + ) -> "Certificate": + """ + Create a tax certificate associated with a tax exemption. + """ + return cast( + "Certificate", + await cls._static_request_async( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + def _cls_delete( + cls, sid: str, /, **params: Unpack["CertificateDeleteParams"] + ) -> "Certificate": + """ + Delete a tax certificate associated with a tax exemption. + """ + url = "%s/%s" % (cls.class_url(), sanitize_id(sid)) + return cast( + "Certificate", + cls._static_request( + "delete", + url, + params=params, + ), + ) + + @overload + @staticmethod + def delete( + sid: str, /, **params: Unpack["CertificateDeleteParams"] + ) -> "Certificate": + """ + Delete a tax certificate associated with a tax exemption. + """ + ... + + @overload + def delete( + self, **params: Unpack["CertificateDeleteParams"] + ) -> "Certificate": + """ + Delete a tax certificate associated with a tax exemption. + """ + ... + + @class_method_variant("_cls_delete") + def delete( + self, **params: Unpack["CertificateDeleteParams"] + ) -> "Certificate": + """ + Delete a tax certificate associated with a tax exemption. + """ + return self._request_and_refresh( + "delete", + self.instance_url(), + params=params, + ) + + @classmethod + async def _cls_delete_async( + cls, sid: str, /, **params: Unpack["CertificateDeleteParams"] + ) -> "Certificate": + """ + Delete a tax certificate associated with a tax exemption. + """ + url = "%s/%s" % (cls.class_url(), sanitize_id(sid)) + return cast( + "Certificate", + await cls._static_request_async( + "delete", + url, + params=params, + ), + ) + + @overload + @staticmethod + async def delete_async( + sid: str, /, **params: Unpack["CertificateDeleteParams"] + ) -> "Certificate": + """ + Delete a tax certificate associated with a tax exemption. + """ + ... + + @overload + async def delete_async( + self, **params: Unpack["CertificateDeleteParams"] + ) -> "Certificate": + """ + Delete a tax certificate associated with a tax exemption. + """ + ... + + @class_method_variant("_cls_delete_async") + async def delete_async( + self, **params: Unpack["CertificateDeleteParams"] + ) -> "Certificate": + """ + Delete a tax certificate associated with a tax exemption. + """ + return await self._request_and_refresh_async( + "delete", + self.instance_url(), + params=params, + ) + + @classmethod + def list( + cls, **params: Unpack["CertificateListParams"] + ) -> ListObject["Certificate"]: + """ + List certificates for an existing tax exemption. + """ + result = cls._static_request( + "get", + cls.class_url(), + params=params, + ) + if not isinstance(result, ListObject): + raise TypeError( + "Expected list object from API, got %s" + % (type(result).__name__) + ) + + return result + + @classmethod + async def list_async( + cls, **params: Unpack["CertificateListParams"] + ) -> ListObject["Certificate"]: + """ + List certificates for an existing tax exemption. + """ + result = await cls._static_request_async( + "get", + cls.class_url(), + params=params, + ) + if not isinstance(result, ListObject): + raise TypeError( + "Expected list object from API, got %s" + % (type(result).__name__) + ) + + return result + + @classmethod + def retrieve( + cls, id: str, **params: Unpack["CertificateRetrieveParams"] + ) -> "Certificate": + """ + Retrieve a tax certificate associated with a tax exemption. + """ + instance = cls(id, **params) + instance.refresh() + return instance + + @classmethod + async def retrieve_async( + cls, id: str, **params: Unpack["CertificateRetrieveParams"] + ) -> "Certificate": + """ + Retrieve a tax certificate associated with a tax exemption. + """ + instance = cls(id, **params) + await instance.refresh_async() + return instance diff --git a/stripe/tax/_certificate_service.py b/stripe/tax/_certificate_service.py new file mode 100644 index 000000000..b3e405c3f --- /dev/null +++ b/stripe/tax/_certificate_service.py @@ -0,0 +1,185 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from stripe._util import sanitize_id +from typing import Optional, cast +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._list_object import ListObject + from stripe._request_options import RequestOptions + from stripe.params.tax._certificate_create_params import ( + CertificateCreateParams, + ) + from stripe.params.tax._certificate_delete_params import ( + CertificateDeleteParams, + ) + from stripe.params.tax._certificate_list_params import ( + CertificateListParams, + ) + from stripe.params.tax._certificate_retrieve_params import ( + CertificateRetrieveParams, + ) + from stripe.tax._certificate import Certificate + + +class CertificateService(StripeService): + def delete( + self, + id: str, + /, + params: Optional["CertificateDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Certificate": + """ + Delete a tax certificate associated with a tax exemption. + """ + return cast( + "Certificate", + self._request( + "delete", + "/v1/tax/certificates/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def delete_async( + self, + id: str, + /, + params: Optional["CertificateDeleteParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Certificate": + """ + Delete a tax certificate associated with a tax exemption. + """ + return cast( + "Certificate", + await self._request_async( + "delete", + "/v1/tax/certificates/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + id: str, + /, + params: Optional["CertificateRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Certificate": + """ + Retrieve a tax certificate associated with a tax exemption. + """ + return cast( + "Certificate", + self._request( + "get", + "/v1/tax/certificates/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + id: str, + /, + params: Optional["CertificateRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "Certificate": + """ + Retrieve a tax certificate associated with a tax exemption. + """ + return cast( + "Certificate", + await self._request_async( + "get", + "/v1/tax/certificates/{id}".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + def list( + self, + params: "CertificateListParams", + options: Optional["RequestOptions"] = None, + ) -> "ListObject[Certificate]": + """ + List certificates for an existing tax exemption. + """ + return cast( + "ListObject[Certificate]", + self._request( + "get", + "/v1/tax/certificates", + base_address="api", + params=params, + options=options, + ), + ) + + async def list_async( + self, + params: "CertificateListParams", + options: Optional["RequestOptions"] = None, + ) -> "ListObject[Certificate]": + """ + List certificates for an existing tax exemption. + """ + return cast( + "ListObject[Certificate]", + await self._request_async( + "get", + "/v1/tax/certificates", + base_address="api", + params=params, + options=options, + ), + ) + + def create( + self, + params: "CertificateCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "Certificate": + """ + Create a tax certificate associated with a tax exemption. + """ + return cast( + "Certificate", + self._request( + "post", + "/v1/tax/certificates", + base_address="api", + params=params, + options=options, + ), + ) + + async def create_async( + self, + params: "CertificateCreateParams", + options: Optional["RequestOptions"] = None, + ) -> "Certificate": + """ + Create a tax certificate associated with a tax exemption. + """ + return cast( + "Certificate", + await self._request_async( + "post", + "/v1/tax/certificates", + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/tax/_form.py b/stripe/tax/_form.py index cd6d2e676..560f86e1f 100644 --- a/stripe/tax/_form.py +++ b/stripe/tax/_form.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # File generated from our OpenAPI spec +from stripe._createable_api_resource import CreateableAPIResource from stripe._expandable_field import ExpandableField from stripe._list_object import ListObject from stripe._listable_api_resource import ListableAPIResource @@ -10,12 +11,14 @@ if TYPE_CHECKING: from stripe._account import Account + from stripe.params.tax._form_create_params import FormCreateParams from stripe.params.tax._form_list_params import FormListParams from stripe.params.tax._form_pdf_params import FormPdfParams from stripe.params.tax._form_retrieve_params import FormRetrieveParams + from stripe.tax._form_correction import FormCorrection -class Form(ListableAPIResource["Form"]): +class Form(CreateableAPIResource["Form"], ListableAPIResource["Form"]): """ Tax forms are legal documents which are delivered to one or more tax authorities for information reporting purposes. @@ -583,6 +586,36 @@ class StateTaxWithheld(StripeObject): us_1099_misc: Optional[Us1099Misc] us_1099_nec: Optional[Us1099Nec] + @classmethod + def create(cls, **params: Unpack["FormCreateParams"]) -> "FormCorrection": + """ + Creates a correction for a filed tax form. Supply either payee details or numerical values for the tax form type. Created correction forms are not filed automatically. + """ + return cast( + "FormCorrection", + cls._static_request( + "post", + cls.class_url(), + params=params, + ), + ) + + @classmethod + async def create_async( + cls, **params: Unpack["FormCreateParams"] + ) -> "FormCorrection": + """ + Creates a correction for a filed tax form. Supply either payee details or numerical values for the tax form type. Created correction forms are not filed automatically. + """ + return cast( + "FormCorrection", + await cls._static_request_async( + "post", + cls.class_url(), + params=params, + ), + ) + @classmethod def list(cls, **params: Unpack["FormListParams"]) -> ListObject["Form"]: """ diff --git a/stripe/tax/_form_correction.py b/stripe/tax/_form_correction.py new file mode 100644 index 000000000..c2735374a --- /dev/null +++ b/stripe/tax/_form_correction.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from typing import ClassVar, List, Optional +from typing_extensions import Literal + + +class FormCorrection(StripeObject): + """ + Corrections to filed tax forms. + """ + + OBJECT_NAME: ClassVar[Literal["tax.form_correction"]] = ( + "tax.form_correction" + ) + + class CorrectionForm(StripeObject): + correction_type: Optional[Literal["payee_changed", "totals_changed"]] + """ + The kind of information changed by this correction. + """ + form: Optional[str] + """ + The corrected tax form. + """ + + correction_forms: Optional[List[CorrectionForm]] + """ + The tax forms created by the correction. + """ + object: Literal["tax.form_correction"] + """ + String representing the object's type. Objects of the same type share the same value. + """ + original_form: Optional[str] + """ + The original tax form that was corrected. + """ + _inner_class_types = {"correction_forms": CorrectionForm} diff --git a/stripe/tax/_form_service.py b/stripe/tax/_form_service.py index 68044398a..f7b59b2b9 100644 --- a/stripe/tax/_form_service.py +++ b/stripe/tax/_form_service.py @@ -8,10 +8,12 @@ if TYPE_CHECKING: from stripe._list_object import ListObject from stripe._request_options import RequestOptions + from stripe.params.tax._form_create_params import FormCreateParams from stripe.params.tax._form_list_params import FormListParams from stripe.params.tax._form_pdf_params import FormPdfParams from stripe.params.tax._form_retrieve_params import FormRetrieveParams from stripe.tax._form import Form + from stripe.tax._form_correction import FormCorrection from typing import Any @@ -96,6 +98,48 @@ async def retrieve_async( ), ) + def create( + self, + id: str, + /, + params: Optional["FormCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "FormCorrection": + """ + Creates a correction for a filed tax form. Supply either payee details or numerical values for the tax form type. Created correction forms are not filed automatically. + """ + return cast( + "FormCorrection", + self._request( + "post", + "/v1/tax/forms/{id}/corrections".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + + async def create_async( + self, + id: str, + /, + params: Optional["FormCreateParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "FormCorrection": + """ + Creates a correction for a filed tax form. Supply either payee details or numerical values for the tax form type. Created correction forms are not filed automatically. + """ + return cast( + "FormCorrection", + await self._request_async( + "post", + "/v1/tax/forms/{id}/corrections".format(id=sanitize_id(id)), + base_address="api", + params=params, + options=options, + ), + ) + def pdf( self, id: str, diff --git a/stripe/treasury/_inbound_transfer.py b/stripe/treasury/_inbound_transfer.py index a6ddbce83..e38f53ff3 100644 --- a/stripe/treasury/_inbound_transfer.py +++ b/stripe/treasury/_inbound_transfer.py @@ -53,6 +53,23 @@ class InboundTransfer( ) class FailureDetails(StripeObject): + class NetworkDetails(StripeObject): + class Ach(StripeObject): + return_code: Optional[str] + """ + NACHA ACH return code. + """ + return_reason: Optional[str] + """ + NACHA ACH return reason. + """ + + ach: Optional[Ach] + """ + ACH return details. + """ + _inner_class_types = {"ach": Ach} + code: Union[ Literal[ "account_closed", @@ -74,6 +91,11 @@ class FailureDetails(StripeObject): """ Reason for the failure. """ + network_details: Optional[NetworkDetails] + """ + Money movement network-specific details regarding the failure. + """ + _inner_class_types = {"network_details": NetworkDetails} class LinkedFlows(StripeObject): received_debit: Optional[str] diff --git a/stripe/treasury/_outbound_payment.py b/stripe/treasury/_outbound_payment.py index d2ef498b6..636451e21 100644 --- a/stripe/treasury/_outbound_payment.py +++ b/stripe/treasury/_outbound_payment.py @@ -166,6 +166,23 @@ class EndUserDetails(StripeObject): """ class ReturnedDetails(StripeObject): + class NetworkDetails(StripeObject): + class Ach(StripeObject): + return_code: Optional[str] + """ + NACHA ACH return code. + """ + return_reason: Optional[str] + """ + NACHA ACH return reason. + """ + + ach: Optional[Ach] + """ + ACH return details. + """ + _inner_class_types = {"ach": Ach} + code: Union[ Literal[ "account_closed", @@ -184,10 +201,15 @@ class ReturnedDetails(StripeObject): """ Reason for the return. """ + network_details: Optional[NetworkDetails] + """ + Money movement network-specific details regarding the failure. + """ transaction: ExpandableField["Transaction"] """ The Transaction associated with this object. """ + _inner_class_types = {"network_details": NetworkDetails} class StatusTransitions(StripeObject): canceled_at: Optional[int] diff --git a/stripe/treasury/_outbound_transfer.py b/stripe/treasury/_outbound_transfer.py index fc483a065..b884cea5e 100644 --- a/stripe/treasury/_outbound_transfer.py +++ b/stripe/treasury/_outbound_transfer.py @@ -173,6 +173,23 @@ class Ach(StripeObject): _inner_class_types = {"ach": Ach} class ReturnedDetails(StripeObject): + class NetworkDetails(StripeObject): + class Ach(StripeObject): + return_code: Optional[str] + """ + NACHA ACH return code. + """ + return_reason: Optional[str] + """ + NACHA ACH return reason. + """ + + ach: Optional[Ach] + """ + ACH return details. + """ + _inner_class_types = {"ach": Ach} + code: Union[ Literal[ "account_closed", @@ -191,10 +208,15 @@ class ReturnedDetails(StripeObject): """ Reason for the return. """ + network_details: Optional[NetworkDetails] + """ + Money movement network-specific details regarding the failure. + """ transaction: ExpandableField["Transaction"] """ The Transaction associated with this object. """ + _inner_class_types = {"network_details": NetworkDetails} class StatusTransitions(StripeObject): canceled_at: Optional[int] diff --git a/stripe/v2/_extend_service.py b/stripe/v2/_extend_service.py index 40811697b..a147fb8dd 100644 --- a/stripe/v2/_extend_service.py +++ b/stripe/v2/_extend_service.py @@ -5,10 +5,17 @@ from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: + from stripe.v2.extend._object_definition_service import ( + ObjectDefinitionService, + ) from stripe.v2.extend._workflow_run_service import WorkflowRunService from stripe.v2.extend._workflow_service import WorkflowService _subservices = { + "object_definitions": [ + "stripe.v2.extend._object_definition_service", + "ObjectDefinitionService", + ], "workflows": ["stripe.v2.extend._workflow_service", "WorkflowService"], "workflow_runs": [ "stripe.v2.extend._workflow_run_service", @@ -18,6 +25,7 @@ class ExtendService(StripeService): + object_definitions: "ObjectDefinitionService" workflows: "WorkflowService" workflow_runs: "WorkflowRunService" diff --git a/stripe/v2/core/_account_session.py b/stripe/v2/core/_account_session.py index c3070ad00..ea98e07bb 100644 --- a/stripe/v2/core/_account_session.py +++ b/stripe/v2/core/_account_session.py @@ -187,6 +187,20 @@ class Scopes(StripeObject): """ _inner_class_types = {"scopes": Scopes} + class BusinessProfileManagement(StripeObject): + class Scopes(StripeObject): + pass + + enabled: bool + """ + Whether this embedded component is enabled. + """ + scopes: Scopes + """ + The scopes available to this embedded component. + """ + _inner_class_types = {"scopes": Scopes} + class CapitalFinancing(StripeObject): class Scopes(StripeObject): pass @@ -880,6 +894,10 @@ class Scopes(StripeObject): """ Settings for the Bills embedded component. """ + business_profile_management: BusinessProfileManagement + """ + Settings for the Business Profile Management embedded component. + """ capital_financing: CapitalFinancing """ Settings for the Capital Financing embedded component. @@ -1013,6 +1031,7 @@ class Scopes(StripeObject): "balance_report": BalanceReport, "balances": Balances, "bills": Bills, + "business_profile_management": BusinessProfileManagement, "capital_financing": CapitalFinancing, "capital_financing_application": CapitalFinancingApplication, "capital_financing_promotion": CapitalFinancingPromotion, diff --git a/stripe/v2/extend/__init__.py b/stripe/v2/extend/__init__.py index ccf21fc05..6f4366dff 100644 --- a/stripe/v2/extend/__init__.py +++ b/stripe/v2/extend/__init__.py @@ -4,6 +4,16 @@ from typing_extensions import TYPE_CHECKING if TYPE_CHECKING: + from stripe.v2.extend import object_definitions as object_definitions + from stripe.v2.extend._object_definition import ( + ObjectDefinition as ObjectDefinition, + ) + from stripe.v2.extend._object_definition_service import ( + ObjectDefinitionService as ObjectDefinitionService, + ) + from stripe.v2.extend._object_definition_version import ( + ObjectDefinitionVersion as ObjectDefinitionVersion, + ) from stripe.v2.extend._workflow import Workflow as Workflow from stripe.v2.extend._workflow_run import WorkflowRun as WorkflowRun from stripe.v2.extend._workflow_run_service import ( @@ -15,6 +25,16 @@ # name -> (import_target, is_submodule) _import_map = { + "object_definitions": ("stripe.v2.extend.object_definitions", True), + "ObjectDefinition": ("stripe.v2.extend._object_definition", False), + "ObjectDefinitionService": ( + "stripe.v2.extend._object_definition_service", + False, + ), + "ObjectDefinitionVersion": ( + "stripe.v2.extend._object_definition_version", + False, + ), "Workflow": ("stripe.v2.extend._workflow", False), "WorkflowRun": ("stripe.v2.extend._workflow_run", False), "WorkflowRunService": ("stripe.v2.extend._workflow_run_service", False), diff --git a/stripe/v2/extend/_object_definition.py b/stripe/v2/extend/_object_definition.py new file mode 100644 index 000000000..e47f1d475 --- /dev/null +++ b/stripe/v2/extend/_object_definition.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject +from typing import ClassVar +from typing_extensions import Literal + + +class ObjectDefinition(StripeObject): + """ + Represents a user-defined object definition that models a custom object. + Object definitions enable the object records API to create and manage records of that object. + """ + + OBJECT_NAME: ClassVar[Literal["v2.extend.object_definition"]] = ( + "v2.extend.object_definition" + ) + api_name_plural: str + """ + The plural API name used in this definition's object record API paths. Immutable across versions. + """ + api_name_singular: str + """ + The singular API name used in the object tag of this definition's records. Immutable across versions. + """ + created: str + """ + Time at which the object definition was created. + """ + id: str + """ + Unique identifier for the object definition. + """ + latest_version: str + """ + The ID of the latest object definition version. + """ + livemode: bool + """ + Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + """ + object: Literal["v2.extend.object_definition"] + """ + String representing the object's type. Objects of the same type share the same value of the object field. + """ diff --git a/stripe/v2/extend/_object_definition_service.py b/stripe/v2/extend/_object_definition_service.py new file mode 100644 index 000000000..460b55c3a --- /dev/null +++ b/stripe/v2/extend/_object_definition_service.py @@ -0,0 +1,135 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from stripe._util import sanitize_id +from typing import Optional, cast +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._request_options import RequestOptions + from stripe.params.v2.extend._object_definition_list_params import ( + ObjectDefinitionListParams, + ) + from stripe.params.v2.extend._object_definition_retrieve_params import ( + ObjectDefinitionRetrieveParams, + ) + from stripe.v2._list_object import ListObject + from stripe.v2.extend._object_definition import ObjectDefinition + from stripe.v2.extend.object_definitions._version_service import ( + VersionService, + ) + +_subservices = { + "versions": [ + "stripe.v2.extend.object_definitions._version_service", + "VersionService", + ], +} + + +class ObjectDefinitionService(StripeService): + versions: "VersionService" + + def __init__(self, requestor): + super().__init__(requestor) + + def __getattr__(self, name): + try: + import_from, service = _subservices[name] + service_class = getattr( + import_module(import_from), + service, + ) + setattr( + self, + name, + service_class(self._requestor), + ) + return getattr(self, name) + except KeyError: + raise AttributeError() + + def list( + self, + params: Optional["ObjectDefinitionListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[ObjectDefinition]": + """ + Lists a page of object definitions. + """ + return cast( + "ListObject[ObjectDefinition]", + self._request( + "get", + "/v2/extend/object_definitions", + base_address="api", + params=params, + options=options, + ), + ) + + async def list_async( + self, + params: Optional["ObjectDefinitionListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[ObjectDefinition]": + """ + Lists a page of object definitions. + """ + return cast( + "ListObject[ObjectDefinition]", + await self._request_async( + "get", + "/v2/extend/object_definitions", + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + id: str, + /, + params: Optional["ObjectDefinitionRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ObjectDefinition": + """ + Retrieves an object definition. + """ + return cast( + "ObjectDefinition", + self._request( + "get", + "/v2/extend/object_definitions/{id}".format( + id=sanitize_id(id) + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + id: str, + /, + params: Optional["ObjectDefinitionRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ObjectDefinition": + """ + Retrieves an object definition. + """ + return cast( + "ObjectDefinition", + await self._request_async( + "get", + "/v2/extend/object_definitions/{id}".format( + id=sanitize_id(id) + ), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/stripe/v2/extend/_object_definition_version.py b/stripe/v2/extend/_object_definition_version.py new file mode 100644 index 000000000..d51ea0031 --- /dev/null +++ b/stripe/v2/extend/_object_definition_version.py @@ -0,0 +1,256 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_object import StripeObject, UntypedStripeObject +from typing import Any, ClassVar, List, Optional +from typing_extensions import Literal + + +class ObjectDefinitionVersion(StripeObject): + """ + Represents an immutable version of an object definition. + It defines the fields of the object records created from it. + """ + + OBJECT_NAME: ClassVar[Literal["v2.extend.object_definition_version"]] = ( + "v2.extend.object_definition_version" + ) + + class ParentDetails(StripeObject): + api_name_plural: str + """ + The plural API name used in this definition's object record API paths. + """ + api_name_singular: str + """ + The singular API name used in this definition's object record tags. + """ + id: str + """ + The ID of the parent object definition. + """ + + class Properties(StripeObject): + class Items(StripeObject): + class Items(StripeObject): + pass + + allowed_values: Optional[List[str]] + """ + A required list of values for enum types. + """ + default_value: Optional[Any] + """ + An optional default value for the field. + """ + description: Optional[str] + """ + An optional human-readable description of the field. + """ + exclusive_maximum: Optional[Any] + """ + An optional exclusive maximum value for integer or decimal types. + """ + exclusive_minimum: Optional[Any] + """ + An optional exclusive minimum value for integer or decimal types. + """ + is_deprecated: Optional[bool] + """ + Whether or not the field is deprecated (default false). + """ + items: Optional[Items] + """ + The required scalar schema for each array item. Array values retain their supplied order, and + order is significant. Values are never sorted. Empty arrays are valid unless min_items is positive. + """ + max_items: Optional[int] + """ + An optional maximum number of array items. It defaults to and cannot exceed 100. + """ + max_length: Optional[int] + """ + An optional maximum length validation for string fields. + """ + maximum: Optional[Any] + """ + An optional maximum value for integer or decimal types. + """ + min_items: Optional[int] + """ + An optional minimum number of array items. Empty arrays are valid when this is absent or zero. + """ + min_length: Optional[int] + """ + An optional minimum length validation for string fields. + """ + minimum: Optional[Any] + """ + An optional minimum value for integer or decimal types. + """ + referenced_type: Optional[str] + """ + The type referenced by object reference fields. + """ + required: Optional[bool] + """ + Whether or not the field is required (default false). + """ + title: Optional[str] + """ + An optional human-readable name for the field. + """ + type: Literal[ + "array", + "boolean", + "currency", + "datetime", + "decimal", + "enum", + "integer", + "monetary_amount", + "object_reference", + "string", + ] + """ + The data type of the field. + """ + unique_items: Optional[bool] + """ + Whether array item values must be unique (default false). Duplicate values are allowed by default. + """ + _inner_class_types = {"items": Items} + + allowed_values: Optional[List[str]] + """ + A required list of values for enum types. + """ + default_value: Optional[Any] + """ + An optional default value for the field. + """ + description: Optional[str] + """ + An optional human-readable description of the field. + """ + exclusive_maximum: Optional[Any] + """ + An optional exclusive maximum value for integer or decimal types. + """ + exclusive_minimum: Optional[Any] + """ + An optional exclusive minimum value for integer or decimal types. + """ + is_deprecated: Optional[bool] + """ + Whether or not the field is deprecated (default false). + """ + items: Optional[Items] + """ + The required scalar schema for each array item. Array values retain their supplied order, and + order is significant. Values are never sorted. Empty arrays are valid unless min_items is positive. + """ + max_items: Optional[int] + """ + An optional maximum number of array items. It defaults to and cannot exceed 100. + """ + max_length: Optional[int] + """ + An optional maximum length validation for string fields. + """ + maximum: Optional[Any] + """ + An optional maximum value for integer or decimal types. + """ + min_items: Optional[int] + """ + An optional minimum number of array items. Empty arrays are valid when this is absent or zero. + """ + min_length: Optional[int] + """ + An optional minimum length validation for string fields. + """ + minimum: Optional[Any] + """ + An optional minimum value for integer or decimal types. + """ + referenced_type: Optional[str] + """ + The type referenced by object reference fields. + """ + required: Optional[bool] + """ + Whether or not the field is required (default false). + """ + title: Optional[str] + """ + An optional human-readable name for the field. + """ + type: Literal[ + "array", + "boolean", + "currency", + "datetime", + "decimal", + "enum", + "integer", + "monetary_amount", + "object_reference", + "string", + ] + """ + The data type of the field. + """ + unique_items: Optional[bool] + """ + Whether array item values must be unique (default false). Duplicate values are allowed by default. + """ + _inner_class_types = {"items": Items} + + created: str + """ + Time at which the object definition version was created. + """ + description: Optional[str] + """ + A description of what this version of the object definition represents. + """ + display_name_plural: str + """ + The human-readable plural name of this version. + """ + display_name_singular: str + """ + The human-readable singular name of this version. + """ + id: str + """ + The complete version ID, consisting of the object definition ID, `@`, and a semantic version. + """ + livemode: bool + """ + Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + """ + object: Literal["v2.extend.object_definition_version"] + """ + String representing the object's type. Objects of the same type share the same value of the object field. + """ + object_definition: str + """ + The ID of the parent object definition. + """ + parent_details: ParentDetails + """ + The stable identity and API names of the parent object definition. + """ + properties: UntypedStripeObject[Properties] + """ + The schema of the object record fields defined by this object definition. + """ + version: str + """ + The semantic version of this object definition version, in `major.minor.patch` format. + """ + _inner_class_types = { + "parent_details": ParentDetails, + "properties": Properties, + } diff --git a/stripe/v2/extend/object_definitions/__init__.py b/stripe/v2/extend/object_definitions/__init__.py new file mode 100644 index 000000000..d698f28a9 --- /dev/null +++ b/stripe/v2/extend/object_definitions/__init__.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from importlib import import_module +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe.v2.extend.object_definitions._version_service import ( + VersionService as VersionService, + ) + +# name -> (import_target, is_submodule) +_import_map = { + "VersionService": ( + "stripe.v2.extend.object_definitions._version_service", + False, + ), +} +if not TYPE_CHECKING: + + def __getattr__(name): + try: + target, is_submodule = _import_map[name] + module = import_module(target) + if is_submodule: + return module + + return getattr( + module, + name, + ) + except KeyError: + raise AttributeError() diff --git a/stripe/v2/extend/object_definitions/_version_service.py b/stripe/v2/extend/object_definitions/_version_service.py new file mode 100644 index 000000000..8620ba2d9 --- /dev/null +++ b/stripe/v2/extend/object_definitions/_version_service.py @@ -0,0 +1,117 @@ +# -*- coding: utf-8 -*- +# File generated from our OpenAPI spec +from stripe._stripe_service import StripeService +from stripe._util import sanitize_id +from typing import Optional, cast +from typing_extensions import TYPE_CHECKING + +if TYPE_CHECKING: + from stripe._request_options import RequestOptions + from stripe.params.v2.extend.object_definitions._version_list_params import ( + VersionListParams, + ) + from stripe.params.v2.extend.object_definitions._version_retrieve_params import ( + VersionRetrieveParams, + ) + from stripe.v2._list_object import ListObject + from stripe.v2.extend._object_definition_version import ( + ObjectDefinitionVersion, + ) + + +class VersionService(StripeService): + def list( + self, + object_definition_id: str, + /, + params: Optional["VersionListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[ObjectDefinitionVersion]": + """ + Lists a page of object definition versions in descending semantic version order. + """ + return cast( + "ListObject[ObjectDefinitionVersion]", + self._request( + "get", + "/v2/extend/object_definitions/{object_definition_id}/versions".format( + object_definition_id=sanitize_id(object_definition_id), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def list_async( + self, + object_definition_id: str, + /, + params: Optional["VersionListParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ListObject[ObjectDefinitionVersion]": + """ + Lists a page of object definition versions in descending semantic version order. + """ + return cast( + "ListObject[ObjectDefinitionVersion]", + await self._request_async( + "get", + "/v2/extend/object_definitions/{object_definition_id}/versions".format( + object_definition_id=sanitize_id(object_definition_id), + ), + base_address="api", + params=params, + options=options, + ), + ) + + def retrieve( + self, + object_definition_id: str, + id: str, + /, + params: Optional["VersionRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ObjectDefinitionVersion": + """ + Retrieves an object definition version. + """ + return cast( + "ObjectDefinitionVersion", + self._request( + "get", + "/v2/extend/object_definitions/{object_definition_id}/versions/{id}".format( + object_definition_id=sanitize_id(object_definition_id), + id=sanitize_id(id), + ), + base_address="api", + params=params, + options=options, + ), + ) + + async def retrieve_async( + self, + object_definition_id: str, + id: str, + /, + params: Optional["VersionRetrieveParams"] = None, + options: Optional["RequestOptions"] = None, + ) -> "ObjectDefinitionVersion": + """ + Retrieves an object definition version. + """ + return cast( + "ObjectDefinitionVersion", + await self._request_async( + "get", + "/v2/extend/object_definitions/{object_definition_id}/versions/{id}".format( + object_definition_id=sanitize_id(object_definition_id), + id=sanitize_id(id), + ), + base_address="api", + params=params, + options=options, + ), + ) diff --git a/tests/test_generated_examples.py b/tests/test_generated_examples.py index 65767e25b..15469daaf 100644 --- a/tests/test_generated_examples.py +++ b/tests/test_generated_examples.py @@ -46583,6 +46583,7 @@ def test_v2_core_account_session_post_service( "balance_report": {"enabled": True}, "balances": {"enabled": True}, "bills": {"enabled": True}, + "business_profile_management": {"enabled": True}, "capital_financing": {"enabled": True}, "capital_financing_application": {"enabled": True}, "capital_financing_promotion": {"enabled": True}, @@ -46622,7 +46623,7 @@ def test_v2_core_account_session_post_service( path="/v2/core/account_sessions", query_string="", api_base="https://api.stripe.com", - post_data='{"account":"account","components":{"account_management":{"enabled":true},"account_onboarding":{"enabled":true},"agentic_commerce_settings":{"enabled":true},"app_install":{"enabled":true},"app_viewport":{"enabled":true},"balance_report":{"enabled":true},"balances":{"enabled":true},"bills":{"enabled":true},"capital_financing":{"enabled":true},"capital_financing_application":{"enabled":true},"capital_financing_promotion":{"enabled":true},"check_scanning":{"enabled":true},"disputes_list":{"enabled":true},"documents":{"enabled":true},"export_tax_transactions":{"enabled":true},"financial_account_rewards":{"enabled":true},"financial_accounts":{"enabled":true},"financial_accounts_transactions":{"enabled":true},"instant_payouts_promotion":{"enabled":true},"invoice_history":{"enabled":true},"issuing_card":{"enabled":true},"issuing_cards_list":{"enabled":true},"network_cost_passthrough_report":{"enabled":true},"notification_banner":{"enabled":true},"payment_details":{"enabled":true},"payment_disputes":{"enabled":true},"payment_method_settings":{"enabled":true},"payments":{"enabled":true},"payout_details":{"enabled":true},"payout_reconciliation_report":{"enabled":true},"payouts":{"enabled":true},"payouts_list":{"enabled":true},"product_tax_code_selector":{"enabled":true},"reporting_chart":{"enabled":true},"tax_registrations":{"enabled":true},"tax_settings":{"enabled":true},"tax_threshold_monitoring":{"enabled":true},"terminal_hardware_orders":{"enabled":true},"terminal_hardware_shop":{"enabled":true}}}', + post_data='{"account":"account","components":{"account_management":{"enabled":true},"account_onboarding":{"enabled":true},"agentic_commerce_settings":{"enabled":true},"app_install":{"enabled":true},"app_viewport":{"enabled":true},"balance_report":{"enabled":true},"balances":{"enabled":true},"bills":{"enabled":true},"business_profile_management":{"enabled":true},"capital_financing":{"enabled":true},"capital_financing_application":{"enabled":true},"capital_financing_promotion":{"enabled":true},"check_scanning":{"enabled":true},"disputes_list":{"enabled":true},"documents":{"enabled":true},"export_tax_transactions":{"enabled":true},"financial_account_rewards":{"enabled":true},"financial_accounts":{"enabled":true},"financial_accounts_transactions":{"enabled":true},"instant_payouts_promotion":{"enabled":true},"invoice_history":{"enabled":true},"issuing_card":{"enabled":true},"issuing_cards_list":{"enabled":true},"network_cost_passthrough_report":{"enabled":true},"notification_banner":{"enabled":true},"payment_details":{"enabled":true},"payment_disputes":{"enabled":true},"payment_method_settings":{"enabled":true},"payments":{"enabled":true},"payout_details":{"enabled":true},"payout_reconciliation_report":{"enabled":true},"payouts":{"enabled":true},"payouts_list":{"enabled":true},"product_tax_code_selector":{"enabled":true},"reporting_chart":{"enabled":true},"tax_registrations":{"enabled":true},"tax_settings":{"enabled":true},"tax_threshold_monitoring":{"enabled":true},"terminal_hardware_orders":{"enabled":true},"terminal_hardware_shop":{"enabled":true}}}', is_json=True, ) @@ -47696,7 +47697,7 @@ def test_v2_data_analytics_metric_query_post_service( is_json=True, ) - def test_v2_data_operation_post_service( + def test_v2_data_operation_search_post_required_service( self, http_client_mock: HTTPClientMock ) -> None: http_client_mock.stub_request( @@ -47718,6 +47719,35 @@ def test_v2_data_operation_post_service( is_json=True, ) + def test_v2_data_operation_search_post_all_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "post", + "/v2/data/operations/search", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.data.operations.search( + { + "catalogs": ["schemas"], + "limit": 102976443, + "page": "page", + "query": "query", + } + ) + http_client_mock.assert_requested( + "post", + path="/v2/data/operations/search", + query_string="", + api_base="https://api.stripe.com", + post_data='{"catalogs":["schemas"],"limit":102976443,"page":"page","query":"query"}', + is_json=True, + ) + def test_v2_data_query_run_post_service( self, http_client_mock: HTTPClientMock ) -> None: @@ -47946,6 +47976,91 @@ def test_v2_data_schema_get_2_service( api_base="https://api.stripe.com", ) + def test_v2_extend_object_definition_get_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/extend/object_definitions", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.extend.object_definitions.list() + http_client_mock.assert_requested( + "get", + path="/v2/extend/object_definitions", + query_string="", + api_base="https://api.stripe.com", + ) + + def test_v2_extend_object_definition_get_2_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/extend/object_definitions/id_123", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.extend.object_definitions.retrieve("id_123") + http_client_mock.assert_requested( + "get", + path="/v2/extend/object_definitions/id_123", + query_string="", + api_base="https://api.stripe.com", + ) + + def test_v2_extend_object_definitions_version_get_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/extend/object_definitions/object_definition_id_123/versions", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.extend.object_definitions.versions.list( + "object_definition_id_123", + ) + http_client_mock.assert_requested( + "get", + path="/v2/extend/object_definitions/object_definition_id_123/versions", + query_string="", + api_base="https://api.stripe.com", + ) + + def test_v2_extend_object_definitions_version_get_2_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "get", + "/v2/extend/object_definitions/object_definition_id_123/versions/id_123", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.extend.object_definitions.versions.retrieve( + "object_definition_id_123", + "id_123", + ) + http_client_mock.assert_requested( + "get", + path="/v2/extend/object_definitions/object_definition_id_123/versions/id_123", + query_string="", + api_base="https://api.stripe.com", + ) + def test_v2_extend_workflow_get_service( self, http_client_mock: HTTPClientMock ) -> None: @@ -52263,7 +52378,33 @@ def test_v2_tax_manual_rule_post_3_service( is_json=True, ) - def test_v2_tax_operation_post_service( + def test_v2_tax_operation_resolve_address_post_required_service( + self, http_client_mock: HTTPClientMock + ) -> None: + http_client_mock.stub_request( + "post", + "/v2/tax/operations/resolve_address", + ) + client = StripeClient( + "sk_test_123", + http_client=http_client_mock.get_mock_http_client(), + ) + + client.v2.tax.operations.resolve_address( + { + "address": {"country": "country"}, + } + ) + http_client_mock.assert_requested( + "post", + path="/v2/tax/operations/resolve_address", + query_string="", + api_base="https://api.stripe.com", + post_data='{"address":{"country":"country"}}', + is_json=True, + ) + + def test_v2_tax_operation_resolve_address_post_all_service( self, http_client_mock: HTTPClientMock ) -> None: http_client_mock.stub_request(