stripe 13.3.0 → 13.4.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1410 -650
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_operations/request.rb +1 -0
- data/lib/stripe/api_requestor.rb +1 -0
- data/lib/stripe/object_types.rb +32 -0
- data/lib/stripe/request_params.rb +24 -0
- data/lib/stripe/request_signing_authenticator.rb +79 -0
- data/lib/stripe/resources/account.rb +5793 -0
- data/lib/stripe/resources/account_link.rb +64 -0
- data/lib/stripe/resources/account_notice.rb +154 -0
- data/lib/stripe/resources/account_session.rb +1002 -0
- data/lib/stripe/resources/apple_pay_domain.rb +73 -0
- data/lib/stripe/resources/application.rb +23 -0
- data/lib/stripe/resources/application_fee.rb +120 -0
- data/lib/stripe/resources/application_fee_refund.rb +24 -0
- data/lib/stripe/resources/apps/secret.rb +166 -0
- data/lib/stripe/resources/balance.rb +162 -0
- data/lib/stripe/resources/balance_transaction.rb +141 -0
- data/lib/stripe/resources/bank_account.rb +113 -2
- data/lib/stripe/resources/billing/alert.rb +166 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +31 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +89 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +140 -0
- data/lib/stripe/resources/billing/credit_grant.rb +235 -0
- data/lib/stripe/resources/billing/meter.rb +203 -0
- data/lib/stripe/resources/billing/meter_error_report.rb +70 -0
- data/lib/stripe/resources/billing/meter_event.rb +45 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +51 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +21 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +639 -0
- data/lib/stripe/resources/billing_portal/session.rb +313 -0
- data/lib/stripe/resources/capability.rb +111 -0
- data/lib/stripe/resources/capital/financing_offer.rb +221 -0
- data/lib/stripe/resources/capital/financing_summary.rb +77 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +147 -0
- data/lib/stripe/resources/card.rb +111 -0
- data/lib/stripe/resources/cash_balance.rb +22 -0
- data/lib/stripe/resources/charge.rb +3687 -0
- data/lib/stripe/resources/checkout/session.rb +4162 -0
- data/lib/stripe/resources/climate/order.rb +216 -0
- data/lib/stripe/resources/climate/product.rb +69 -0
- data/lib/stripe/resources/climate/supplier.rb +67 -0
- data/lib/stripe/resources/confirmation_token.rb +1855 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +29 -0
- data/lib/stripe/resources/country_spec.rb +76 -0
- data/lib/stripe/resources/coupon.rb +237 -0
- data/lib/stripe/resources/credit_note.rb +798 -0
- data/lib/stripe/resources/credit_note_line_item.rb +89 -0
- data/lib/stripe/resources/customer.rb +995 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +39 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +136 -0
- data/lib/stripe/resources/customer_session.rb +183 -0
- data/lib/stripe/resources/discount.rb +41 -0
- data/lib/stripe/resources/dispute.rb +767 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +54 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +26 -0
- data/lib/stripe/resources/entitlements/feature.rb +107 -0
- data/lib/stripe/resources/ephemeral_key.rb +26 -0
- data/lib/stripe/resources/event.rb +157 -0
- data/lib/stripe/resources/exchange_rate.rb +38 -0
- data/lib/stripe/resources/file.rb +134 -0
- data/lib/stripe/resources/file_link.rb +134 -0
- data/lib/stripe/resources/financial_connections/account.rb +307 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +30 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +24 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +12 -0
- data/lib/stripe/resources/financial_connections/institution.rb +112 -0
- data/lib/stripe/resources/financial_connections/session.rb +187 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +122 -0
- data/lib/stripe/resources/forwarding/request.rb +196 -0
- data/lib/stripe/resources/funding_instructions.rb +415 -0
- data/lib/stripe/resources/gift_cards/card.rb +245 -0
- data/lib/stripe/resources/gift_cards/transaction.rb +313 -0
- data/lib/stripe/resources/identity/verification_report.rb +335 -0
- data/lib/stripe/resources/identity/verification_session.rb +430 -0
- data/lib/stripe/resources/invoice.rb +9348 -0
- data/lib/stripe/resources/invoice_item.rb +536 -0
- data/lib/stripe/resources/invoice_line_item.rb +409 -0
- data/lib/stripe/resources/invoice_payment.rb +72 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +79 -0
- data/lib/stripe/resources/issuing/authorization.rb +1316 -2
- data/lib/stripe/resources/issuing/card.rb +794 -0
- data/lib/stripe/resources/issuing/cardholder.rb +768 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +693 -0
- data/lib/stripe/resources/issuing/dispute.rb +941 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +98 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +109 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +333 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +76 -0
- data/lib/stripe/resources/issuing/settlement.rb +65 -0
- data/lib/stripe/resources/issuing/token.rb +221 -0
- data/lib/stripe/resources/issuing/transaction.rb +1098 -0
- data/lib/stripe/resources/line_item.rb +98 -0
- data/lib/stripe/resources/login_link.rb +9 -0
- data/lib/stripe/resources/mandate.rb +214 -0
- data/lib/stripe/resources/margin.rb +143 -0
- data/lib/stripe/resources/order.rb +3238 -0
- data/lib/stripe/resources/payment_attempt_record.rb +226 -0
- data/lib/stripe/resources/payment_intent.rb +14630 -0
- data/lib/stripe/resources/payment_link.rb +1761 -0
- data/lib/stripe/resources/payment_method.rb +1981 -0
- data/lib/stripe/resources/payment_method_configuration.rb +3137 -0
- data/lib/stripe/resources/payment_method_domain.rb +176 -0
- data/lib/stripe/resources/payment_record.rb +824 -0
- data/lib/stripe/resources/payout.rb +267 -0
- data/lib/stripe/resources/person.rb +353 -0
- data/lib/stripe/resources/plan.rb +386 -0
- data/lib/stripe/resources/price.rb +782 -0
- data/lib/stripe/resources/product.rb +636 -0
- data/lib/stripe/resources/product_feature.rb +16 -0
- data/lib/stripe/resources/promotion_code.rb +261 -0
- data/lib/stripe/resources/quote.rb +3404 -0
- data/lib/stripe/resources/quote_line.rb +340 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +833 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +463 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +93 -0
- data/lib/stripe/resources/radar/value_list.rb +151 -0
- data/lib/stripe/resources/radar/value_list_item.rb +113 -0
- data/lib/stripe/resources/refund.rb +489 -0
- data/lib/stripe/resources/reporting/report_run.rb +182 -0
- data/lib/stripe/resources/reporting/report_type.rb +44 -0
- data/lib/stripe/resources/reserve_transaction.rb +26 -0
- data/lib/stripe/resources/reversal.rb +30 -0
- data/lib/stripe/resources/review.rb +135 -0
- data/lib/stripe/resources/setup_attempt.rb +474 -0
- data/lib/stripe/resources/setup_intent.rb +4371 -0
- data/lib/stripe/resources/shipping_rate.rb +303 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +67 -0
- data/lib/stripe/resources/source.rb +1571 -0
- data/lib/stripe/resources/source_mandate_notification.rb +79 -0
- data/lib/stripe/resources/source_transaction.rb +114 -0
- data/lib/stripe/resources/subscription.rb +2395 -0
- data/lib/stripe/resources/subscription_item.rb +502 -0
- data/lib/stripe/resources/subscription_schedule.rb +2790 -0
- data/lib/stripe/resources/tax/association.rb +100 -0
- data/lib/stripe/resources/tax/calculation.rb +474 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +76 -0
- data/lib/stripe/resources/tax/form.rb +253 -0
- data/lib/stripe/resources/tax/registration.rb +2174 -0
- data/lib/stripe/resources/tax/settings.rb +146 -0
- data/lib/stripe/resources/tax/transaction.rb +332 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +43 -0
- data/lib/stripe/resources/tax_code.rb +41 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +26 -0
- data/lib/stripe/resources/tax_id.rb +147 -0
- data/lib/stripe/resources/tax_rate.rb +245 -0
- data/lib/stripe/resources/terminal/configuration.rb +1175 -0
- data/lib/stripe/resources/terminal/connection_token.rb +21 -0
- data/lib/stripe/resources/terminal/location.rb +208 -0
- data/lib/stripe/resources/terminal/reader.rb +911 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +45 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +101 -0
- data/lib/stripe/resources/token.rb +1337 -0
- data/lib/stripe/resources/topup.rb +210 -0
- data/lib/stripe/resources/transfer.rb +188 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +113 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +126 -0
- data/lib/stripe/resources/treasury/financial_account.rb +766 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +237 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +285 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +587 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +428 -0
- data/lib/stripe/resources/treasury/received_credit.rb +335 -0
- data/lib/stripe/resources/treasury/received_debit.rb +298 -0
- data/lib/stripe/resources/treasury/transaction.rb +215 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +193 -0
- data/lib/stripe/resources/usage_record.rb +18 -0
- data/lib/stripe/resources/usage_record_summary.rb +28 -0
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +24 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +28 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +19 -0
- data/lib/stripe/resources/v2/event.rb +35 -0
- data/lib/stripe/resources/v2/event_destination.rb +78 -0
- data/lib/stripe/resources/webhook_endpoint.rb +148 -0
- data/lib/stripe/resources.rb +31 -0
- data/lib/stripe/services/account_capability_service.rb +33 -0
- data/lib/stripe/services/account_external_account_service.rb +293 -0
- data/lib/stripe/services/account_link_service.rb +53 -0
- data/lib/stripe/services/account_login_link_service.rb +9 -0
- data/lib/stripe/services/account_notice_service.rb +110 -0
- data/lib/stripe/services/account_person_service.rb +1014 -0
- data/lib/stripe/services/account_service.rb +4862 -0
- data/lib/stripe/services/account_session_service.rb +740 -0
- data/lib/stripe/services/apple_pay_domain_service.rb +56 -0
- data/lib/stripe/services/application_fee_refund_service.rb +60 -0
- data/lib/stripe/services/application_fee_service.rb +65 -0
- data/lib/stripe/services/apps/secret_service.rb +132 -0
- data/lib/stripe/services/balance_service.rb +9 -0
- data/lib/stripe/services/balance_transaction_service.rb +80 -0
- data/lib/stripe/services/billing/alert_service.rb +125 -0
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +41 -0
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +45 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +167 -0
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +29 -0
- data/lib/stripe/services/billing/meter_event_service.rb +25 -0
- data/lib/stripe/services/billing/meter_event_summary_service.rb +46 -0
- data/lib/stripe/services/billing/meter_service.rb +142 -0
- data/lib/stripe/services/billing_portal/configuration_service.rb +492 -0
- data/lib/stripe/services/billing_portal/session_service.rb +192 -0
- data/lib/stripe/services/capital/financing_offer_service.rb +121 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +86 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/charge_service.rb +2010 -0
- data/lib/stripe/services/checkout/session_line_item_service.rb +21 -0
- data/lib/stripe/services/checkout/session_service.rb +2736 -0
- data/lib/stripe/services/climate/order_service.rb +113 -0
- data/lib/stripe/services/climate/product_service.rb +30 -0
- data/lib/stripe/services/climate/supplier_service.rb +30 -0
- data/lib/stripe/services/confirmation_token_service.rb +9 -0
- data/lib/stripe/services/country_spec_service.rb +30 -0
- data/lib/stripe/services/coupon_service.rb +174 -0
- data/lib/stripe/services/credit_note_line_item_service.rb +21 -0
- data/lib/stripe/services/credit_note_preview_lines_service.rb +184 -0
- data/lib/stripe/services/credit_note_service.rb +434 -0
- data/lib/stripe/services/customer_balance_transaction_service.rb +72 -0
- data/lib/stripe/services/customer_cash_balance_service.rb +30 -0
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +30 -0
- data/lib/stripe/services/customer_funding_instructions_service.rb +47 -0
- data/lib/stripe/services/customer_payment_method_service.rb +45 -0
- data/lib/stripe/services/customer_payment_source_service.rb +208 -0
- data/lib/stripe/services/customer_service.rb +684 -0
- data/lib/stripe/services/customer_session_service.rb +106 -0
- data/lib/stripe/services/customer_tax_id_service.rb +50 -0
- data/lib/stripe/services/dispute_service.rb +439 -0
- data/lib/stripe/services/entitlements/active_entitlement_service.rb +40 -0
- data/lib/stripe/services/entitlements/feature_service.rb +87 -0
- data/lib/stripe/services/ephemeral_key_service.rb +40 -0
- data/lib/stripe/services/event_service.rb +75 -0
- data/lib/stripe/services/exchange_rate_service.rb +30 -0
- data/lib/stripe/services/file_link_service.rb +108 -0
- data/lib/stripe/services/file_service.rb +102 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +40 -0
- data/lib/stripe/services/financial_connections/account_owner_service.rb +31 -0
- data/lib/stripe/services/financial_connections/account_service.rb +108 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +60 -0
- data/lib/stripe/services/financial_connections/session_service.rb +108 -0
- data/lib/stripe/services/financial_connections/transaction_service.rb +79 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/forwarding/request_service.rb +120 -0
- data/lib/stripe/services/gift_cards/card_service.rb +183 -0
- data/lib/stripe/services/gift_cards/transaction_service.rb +225 -0
- data/lib/stripe/services/gift_cards_service.rb +14 -0
- data/lib/stripe/services/identity/verification_report_service.rb +75 -0
- data/lib/stripe/services/identity/verification_session_service.rb +261 -0
- data/lib/stripe/services/invoice_item_service.rb +454 -0
- data/lib/stripe/services/invoice_line_item_service.rb +277 -0
- data/lib/stripe/services/invoice_payment_service.rb +58 -0
- data/lib/stripe/services/invoice_rendering_template_service.rb +56 -0
- data/lib/stripe/services/invoice_service.rb +6375 -1
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +2142 -0
- data/lib/stripe/services/issuing/authorization_service.rb +118 -0
- data/lib/stripe/services/issuing/card_service.rb +525 -0
- data/lib/stripe/services/issuing/cardholder_service.rb +599 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +560 -0
- data/lib/stripe/services/issuing/dispute_service.rb +731 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +70 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +90 -0
- data/lib/stripe/services/issuing/personalization_design_service.rb +222 -0
- data/lib/stripe/services/issuing/physical_bundle_service.rb +45 -0
- data/lib/stripe/services/issuing/token_service.rb +83 -0
- data/lib/stripe/services/issuing/transaction_service.rb +93 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +9 -0
- data/lib/stripe/services/margin_service.rb +130 -0
- data/lib/stripe/services/order_line_item_service.rb +38 -0
- data/lib/stripe/services/order_service.rb +2518 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +50 -0
- data/lib/stripe/services/payment_intent_service.rb +12203 -0
- data/lib/stripe/services/payment_link_line_item_service.rb +21 -0
- data/lib/stripe/services/payment_link_service.rb +1343 -0
- data/lib/stripe/services/payment_method_configuration_service.rb +2148 -0
- data/lib/stripe/services/payment_method_domain_service.rb +84 -0
- data/lib/stripe/services/payment_method_service.rb +977 -0
- data/lib/stripe/services/payment_record_service.rb +610 -0
- data/lib/stripe/services/payout_service.rb +182 -0
- data/lib/stripe/services/plan_service.rb +296 -0
- data/lib/stripe/services/price_service.rb +603 -0
- data/lib/stripe/services/product_feature_service.rb +46 -0
- data/lib/stripe/services/product_service.rb +533 -0
- data/lib/stripe/services/promotion_code_service.rb +203 -0
- data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +21 -0
- data/lib/stripe/services/quote_line_item_service.rb +21 -0
- data/lib/stripe/services/quote_line_service.rb +38 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +38 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +38 -0
- data/lib/stripe/services/quote_service.rb +2628 -1
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +70 -0
- data/lib/stripe/services/radar/value_list_item_service.rb +90 -0
- data/lib/stripe/services/radar/value_list_service.rb +119 -0
- data/lib/stripe/services/refund_service.rb +158 -0
- data/lib/stripe/services/reporting/report_run_service.rb +122 -0
- data/lib/stripe/services/reporting/report_type_service.rb +18 -0
- data/lib/stripe/services/review_service.rb +63 -0
- data/lib/stripe/services/setup_attempt_service.rb +59 -0
- data/lib/stripe/services/setup_intent_service.rb +3923 -0
- data/lib/stripe/services/shipping_rate_service.rb +227 -0
- data/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
- data/lib/stripe/services/source_service.rb +693 -0
- data/lib/stripe/services/source_transaction_service.rb +21 -0
- data/lib/stripe/services/subscription_item_service.rb +439 -0
- data/lib/stripe/services/subscription_item_usage_record_service.rb +21 -0
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +21 -0
- data/lib/stripe/services/subscription_schedule_service.rb +2343 -0
- data/lib/stripe/services/subscription_service.rb +1967 -0
- data/lib/stripe/services/tax/association_service.rb +32 -0
- data/lib/stripe/services/tax/calculation_line_item_service.rb +21 -0
- data/lib/stripe/services/tax/calculation_service.rb +235 -0
- data/lib/stripe/services/tax/form_service.rb +107 -0
- data/lib/stripe/services/tax/registration_service.rb +1398 -0
- data/lib/stripe/services/tax/settings_service.rb +82 -0
- data/lib/stripe/services/tax/transaction_line_item_service.rb +21 -0
- data/lib/stripe/services/tax/transaction_service.rb +128 -0
- data/lib/stripe/services/tax_code_service.rb +30 -0
- data/lib/stripe/services/tax_id_service.rb +90 -0
- data/lib/stripe/services/tax_rate_service.rb +182 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/configuration_service.rb +901 -0
- data/lib/stripe/services/terminal/connection_token_service.rb +13 -0
- data/lib/stripe/services/terminal/location_service.rb +165 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
- data/lib/stripe/services/terminal/reader_service.rb +496 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +762 -0
- data/lib/stripe/services/test_helpers/customer_service.rb +21 -0
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +844 -0
- data/lib/stripe/services/test_helpers/issuing/card_service.rb +45 -0
- data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
- data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +723 -0
- data/lib/stripe/services/test_helpers/refund_service.rb +9 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +48 -0
- data/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +39 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +93 -0
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +93 -0
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +95 -0
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +95 -0
- data/lib/stripe/services/token_service.rb +1301 -0
- data/lib/stripe/services/topup_service.rb +163 -0
- data/lib/stripe/services/transfer_reversal_service.rb +74 -0
- data/lib/stripe/services/transfer_service.rb +138 -0
- data/lib/stripe/services/treasury/credit_reversal_service.rb +67 -0
- data/lib/stripe/services/treasury/debit_reversal_service.rb +72 -0
- data/lib/stripe/services/treasury/financial_account_features_service.rb +179 -0
- data/lib/stripe/services/treasury/financial_account_service.rb +481 -0
- data/lib/stripe/services/treasury/inbound_transfer_service.rb +100 -0
- data/lib/stripe/services/treasury/outbound_payment_service.rb +296 -0
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +147 -0
- data/lib/stripe/services/treasury/received_credit_service.rb +58 -0
- data/lib/stripe/services/treasury/received_debit_service.rb +45 -0
- data/lib/stripe/services/treasury/transaction_entry_service.rb +101 -0
- data/lib/stripe/services/treasury/transaction_service.rb +109 -0
- data/lib/stripe/services/v1_services.rb +8 -1
- data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +25 -0
- data/lib/stripe/services/v2/billing/meter_event_service.rb +28 -0
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +3 -0
- data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +36 -0
- data/lib/stripe/services/v2/core/event_destination_service.rb +164 -0
- data/lib/stripe/services/v2/core/event_service.rb +20 -0
- data/lib/stripe/services/webhook_endpoint_service.rb +110 -0
- data/lib/stripe/services.rb +25 -0
- data/lib/stripe/stripe_client.rb +2 -2
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +8 -3
- data/lib/stripe/util.rb +8 -2
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +46 -0
- data/rbi/stripe/resources/account.rbi +6072 -0
- data/rbi/stripe/resources/account_link.rbi +87 -0
- data/rbi/stripe/resources/account_notice.rbi +166 -0
- data/rbi/stripe/resources/account_session.rbi +1173 -0
- data/rbi/stripe/resources/apple_pay_domain.rbi +111 -0
- data/rbi/stripe/resources/application.rbi +23 -0
- data/rbi/stripe/resources/application_fee.rbi +151 -0
- data/rbi/stripe/resources/application_fee_refund.rbi +44 -0
- data/rbi/stripe/resources/apps/secret.rbi +229 -0
- data/rbi/stripe/resources/balance.rbi +220 -0
- data/rbi/stripe/resources/balance_transaction.rbi +182 -0
- data/rbi/stripe/resources/bank_account.rbi +156 -0
- data/rbi/stripe/resources/billing/alert.rbi +237 -0
- data/rbi/stripe/resources/billing/alert_triggered.rbi +33 -0
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +118 -0
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +181 -0
- data/rbi/stripe/resources/billing/credit_grant.rbi +312 -0
- data/rbi/stripe/resources/billing/meter.rbi +268 -0
- data/rbi/stripe/resources/billing/meter_error_report.rbi +82 -0
- data/rbi/stripe/resources/billing/meter_event.rbi +76 -0
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +75 -0
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +39 -0
- data/rbi/stripe/resources/billing_portal/configuration.rbi +746 -0
- data/rbi/stripe/resources/billing_portal/session.rbi +396 -0
- data/rbi/stripe/resources/capability.rbi +152 -0
- data/rbi/stripe/resources/capital/financing_offer.rbi +228 -0
- data/rbi/stripe/resources/capital/financing_summary.rbi +89 -0
- data/rbi/stripe/resources/capital/financing_transaction.rbi +157 -0
- data/rbi/stripe/resources/card.rbi +159 -0
- data/rbi/stripe/resources/cash_balance.rbi +37 -0
- data/rbi/stripe/resources/charge.rbi +4216 -0
- data/rbi/stripe/resources/checkout/session.rbi +4627 -0
- data/rbi/stripe/resources/climate/order.rbi +298 -0
- data/rbi/stripe/resources/climate/product.rbi +98 -0
- data/rbi/stripe/resources/climate/supplier.rbi +95 -0
- data/rbi/stripe/resources/confirmation_token.rbi +2137 -0
- data/rbi/stripe/resources/connect_collection_transfer.rbi +31 -0
- data/rbi/stripe/resources/country_spec.rbi +108 -0
- data/rbi/stripe/resources/coupon.rbi +305 -0
- data/rbi/stripe/resources/credit_note.rbi +918 -0
- data/rbi/stripe/resources/credit_note_line_item.rbi +123 -0
- data/rbi/stripe/resources/customer.rbi +1188 -0
- data/rbi/stripe/resources/customer_balance_transaction.rbi +65 -0
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +178 -0
- data/rbi/stripe/resources/customer_session.rbi +227 -0
- data/rbi/stripe/resources/discount.rbi +65 -0
- data/rbi/stripe/resources/dispute.rbi +926 -0
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +76 -0
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +26 -0
- data/rbi/stripe/resources/entitlements/feature.rbi +146 -0
- data/rbi/stripe/resources/ephemeral_key.rbi +51 -0
- data/rbi/stripe/resources/event.rbi +221 -0
- data/rbi/stripe/resources/exchange_rate.rbi +81 -0
- data/rbi/stripe/resources/file.rbi +177 -0
- data/rbi/stripe/resources/file_link.rbi +174 -0
- data/rbi/stripe/resources/financial_connections/account.rbi +414 -0
- data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +30 -0
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +42 -0
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +26 -0
- data/rbi/stripe/resources/financial_connections/institution.rbi +115 -0
- data/rbi/stripe/resources/financial_connections/session.rbi +221 -0
- data/rbi/stripe/resources/financial_connections/transaction.rbi +153 -0
- data/rbi/stripe/resources/forwarding/request.rbi +257 -0
- data/rbi/stripe/resources/funding_instructions.rbi +544 -0
- data/rbi/stripe/resources/gift_cards/card.rbi +242 -0
- data/rbi/stripe/resources/gift_cards/transaction.rbi +298 -0
- data/rbi/stripe/resources/identity/verification_report.rbi +427 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +601 -0
- data/rbi/stripe/resources/invoice.rbi +10584 -0
- data/rbi/stripe/resources/invoice_item.rbi +621 -0
- data/rbi/stripe/resources/invoice_line_item.rbi +486 -0
- data/rbi/stripe/resources/invoice_payment.rbi +86 -0
- data/rbi/stripe/resources/invoice_rendering_template.rbi +131 -0
- data/rbi/stripe/resources/issuing/authorization.rbi +1511 -0
- data/rbi/stripe/resources/issuing/card.rbi +891 -0
- data/rbi/stripe/resources/issuing/cardholder.rbi +870 -0
- data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +731 -0
- data/rbi/stripe/resources/issuing/dispute.rbi +1077 -0
- data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +100 -0
- data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +108 -0
- data/rbi/stripe/resources/issuing/personalization_design.rbi +395 -0
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +102 -0
- data/rbi/stripe/resources/issuing/settlement.rbi +78 -0
- data/rbi/stripe/resources/issuing/token.rbi +282 -0
- data/rbi/stripe/resources/issuing/transaction.rbi +1262 -0
- data/rbi/stripe/resources/line_item.rbi +131 -0
- data/rbi/stripe/resources/login_link.rbi +20 -0
- data/rbi/stripe/resources/mandate.rbi +266 -0
- data/rbi/stripe/resources/margin.rbi +151 -0
- data/rbi/stripe/resources/order.rbi +3505 -0
- data/rbi/stripe/resources/payment_attempt_record.rbi +260 -0
- data/rbi/stripe/resources/payment_intent.rbi +16064 -0
- data/rbi/stripe/resources/payment_link.rbi +1943 -0
- data/rbi/stripe/resources/payment_method.rbi +2287 -0
- data/rbi/stripe/resources/payment_method_configuration.rbi +3657 -0
- data/rbi/stripe/resources/payment_method_domain.rbi +246 -0
- data/rbi/stripe/resources/payment_record.rbi +856 -0
- data/rbi/stripe/resources/payout.rbi +357 -0
- data/rbi/stripe/resources/person.rbi +461 -0
- data/rbi/stripe/resources/plan.rbi +463 -0
- data/rbi/stripe/resources/price.rbi +884 -0
- data/rbi/stripe/resources/product.rbi +735 -0
- data/rbi/stripe/resources/product_feature.rbi +30 -0
- data/rbi/stripe/resources/promotion_code.rbi +316 -0
- data/rbi/stripe/resources/quote.rbi +3779 -0
- data/rbi/stripe/resources/quote_line.rbi +416 -0
- data/rbi/stripe/resources/quote_preview_invoice.rbi +1030 -0
- data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +575 -0
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +121 -0
- data/rbi/stripe/resources/radar/value_list.rbi +207 -0
- data/rbi/stripe/resources/radar/value_list_item.rbi +157 -0
- data/rbi/stripe/resources/refund.rbi +615 -0
- data/rbi/stripe/resources/reporting/report_run.rbi +232 -0
- data/rbi/stripe/resources/reporting/report_type.rbi +75 -0
- data/rbi/stripe/resources/reserve_transaction.rbi +27 -0
- data/rbi/stripe/resources/reversal.rbi +60 -0
- data/rbi/stripe/resources/review.rbi +191 -0
- data/rbi/stripe/resources/setup_attempt.rbi +587 -0
- data/rbi/stripe/resources/setup_intent.rbi +4726 -0
- data/rbi/stripe/resources/shipping_rate.rbi +367 -0
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +98 -0
- data/rbi/stripe/resources/source.rbi +1899 -0
- data/rbi/stripe/resources/source_mandate_notification.rbi +90 -0
- data/rbi/stripe/resources/source_transaction.rbi +156 -0
- data/rbi/stripe/resources/subscription.rbi +2739 -0
- data/rbi/stripe/resources/subscription_item.rbi +566 -0
- data/rbi/stripe/resources/subscription_schedule.rbi +3157 -0
- data/rbi/stripe/resources/tax/association.rbi +107 -0
- data/rbi/stripe/resources/tax/calculation.rbi +577 -0
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +108 -0
- data/rbi/stripe/resources/tax/form.rbi +262 -0
- data/rbi/stripe/resources/tax/registration.rbi +2354 -0
- data/rbi/stripe/resources/tax/settings.rbi +174 -0
- data/rbi/stripe/resources/tax/transaction.rbi +428 -0
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +66 -0
- data/rbi/stripe/resources/tax_code.rbi +60 -0
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +27 -0
- data/rbi/stripe/resources/tax_id.rbi +206 -0
- data/rbi/stripe/resources/tax_rate.rbi +295 -0
- data/rbi/stripe/resources/terminal/configuration.rbi +1302 -0
- data/rbi/stripe/resources/terminal/connection_token.rbi +42 -0
- data/rbi/stripe/resources/terminal/location.rbi +271 -0
- data/rbi/stripe/resources/terminal/reader.rbi +1110 -0
- data/rbi/stripe/resources/terminal/reader_collected_data.rbi +48 -0
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +159 -0
- data/rbi/stripe/resources/token.rbi +1405 -0
- data/rbi/stripe/resources/topup.rbi +269 -0
- data/rbi/stripe/resources/transfer.rbi +245 -0
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +151 -0
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +165 -0
- data/rbi/stripe/resources/treasury/financial_account.rbi +924 -0
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +309 -0
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +361 -0
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +702 -0
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +529 -0
- data/rbi/stripe/resources/treasury/received_credit.rbi +408 -0
- data/rbi/stripe/resources/treasury/received_debit.rbi +367 -0
- data/rbi/stripe/resources/treasury/transaction.rbi +261 -0
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +234 -0
- data/rbi/stripe/resources/usage_record.rbi +37 -0
- data/rbi/stripe/resources/usage_record_summary.rbi +45 -0
- data/rbi/stripe/resources/v2/amount.rbi +14 -0
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +43 -0
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +48 -0
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +36 -0
- data/rbi/stripe/resources/v2/event.rbi +55 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +109 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +208 -0
- data/rbi/stripe/services/account_capability_service.rbi +55 -0
- data/rbi/stripe/services/account_external_account_service.rbi +358 -0
- data/rbi/stripe/services/account_link_service.rbi +67 -0
- data/rbi/stripe/services/account_login_link_service.rbi +23 -0
- data/rbi/stripe/services/account_notice_service.rbi +103 -0
- data/rbi/stripe/services/account_person_service.rbi +1077 -0
- data/rbi/stripe/services/account_service.rbi +4948 -0
- data/rbi/stripe/services/account_session_service.rbi +873 -0
- data/rbi/stripe/services/apple_pay_domain_service.rbi +86 -0
- data/rbi/stripe/services/application_fee_refund_service.rbi +101 -0
- data/rbi/stripe/services/application_fee_service.rbi +85 -0
- data/rbi/stripe/services/apps/secret_service.rbi +175 -0
- data/rbi/stripe/services/apps_service.rbi +9 -0
- data/rbi/stripe/services/balance_service.rbi +22 -0
- data/rbi/stripe/services/balance_transaction_service.rbi +103 -0
- data/rbi/stripe/services/billing/alert_service.rbi +172 -0
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +61 -0
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +66 -0
- data/rbi/stripe/services/billing/credit_grant_service.rbi +217 -0
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +45 -0
- data/rbi/stripe/services/billing/meter_event_service.rbi +47 -0
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +62 -0
- data/rbi/stripe/services/billing/meter_service.rbi +184 -0
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +573 -0
- data/rbi/stripe/services/billing_portal/session_service.rbi +233 -0
- data/rbi/stripe/services/billing_portal_service.rbi +10 -0
- data/rbi/stripe/services/billing_service.rbi +15 -0
- data/rbi/stripe/services/capital/financing_offer_service.rbi +108 -0
- data/rbi/stripe/services/capital/financing_summary_service.rbi +23 -0
- data/rbi/stripe/services/capital/financing_transaction_service.rbi +77 -0
- data/rbi/stripe/services/capital_service.rbi +11 -0
- data/rbi/stripe/services/charge_service.rbi +2162 -0
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +37 -0
- data/rbi/stripe/services/checkout/session_service.rbi +2975 -0
- data/rbi/stripe/services/checkout_service.rbi +9 -0
- data/rbi/stripe/services/climate/order_service.rbi +158 -0
- data/rbi/stripe/services/climate/product_service.rbi +51 -0
- data/rbi/stripe/services/climate/supplier_service.rbi +51 -0
- data/rbi/stripe/services/climate_service.rbi +11 -0
- data/rbi/stripe/services/confirmation_token_service.rbi +21 -0
- data/rbi/stripe/services/country_spec_service.rbi +49 -0
- data/rbi/stripe/services/coupon_service.rbi +220 -0
- data/rbi/stripe/services/credit_note_line_item_service.rbi +35 -0
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +200 -0
- data/rbi/stripe/services/credit_note_service.rbi +496 -0
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +105 -0
- data/rbi/stripe/services/customer_cash_balance_service.rbi +49 -0
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +49 -0
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +67 -0
- data/rbi/stripe/services/customer_payment_method_service.rbi +64 -0
- data/rbi/stripe/services/customer_payment_source_service.rbi +265 -0
- data/rbi/stripe/services/customer_service.rbi +763 -0
- data/rbi/stripe/services/customer_session_service.rbi +126 -0
- data/rbi/stripe/services/customer_tax_id_service.rbi +80 -0
- data/rbi/stripe/services/dispute_service.rbi +500 -0
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +61 -0
- data/rbi/stripe/services/entitlements/feature_service.rbi +122 -0
- data/rbi/stripe/services/entitlements_service.rbi +10 -0
- data/rbi/stripe/services/ephemeral_key_service.rbi +59 -0
- data/rbi/stripe/services/event_service.rbi +94 -0
- data/rbi/stripe/services/exchange_rate_service.rbi +49 -0
- data/rbi/stripe/services/file_link_service.rbi +141 -0
- data/rbi/stripe/services/file_service.rbi +132 -0
- data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +37 -0
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +47 -0
- data/rbi/stripe/services/financial_connections/account_service.rbi +148 -0
- data/rbi/stripe/services/financial_connections/institution_service.rbi +51 -0
- data/rbi/stripe/services/financial_connections/session_service.rbi +128 -0
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +103 -0
- data/rbi/stripe/services/financial_connections_service.rbi +12 -0
- data/rbi/stripe/services/forwarding/request_service.rbi +152 -0
- data/rbi/stripe/services/forwarding_service.rbi +9 -0
- data/rbi/stripe/services/gift_cards/card_service.rbi +162 -0
- data/rbi/stripe/services/gift_cards/transaction_service.rbi +198 -0
- data/rbi/stripe/services/gift_cards_service.rbi +10 -0
- data/rbi/stripe/services/identity/verification_report_service.rbi +98 -0
- data/rbi/stripe/services/identity/verification_session_service.rbi +360 -0
- data/rbi/stripe/services/identity_service.rbi +10 -0
- data/rbi/stripe/services/invoice_item_service.rbi +505 -0
- data/rbi/stripe/services/invoice_line_item_service.rbi +320 -0
- data/rbi/stripe/services/invoice_payment_service.rbi +49 -0
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +91 -0
- data/rbi/stripe/services/invoice_service.rbi +7138 -0
- data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +2397 -0
- data/rbi/stripe/services/issuing/authorization_service.rbi +160 -0
- data/rbi/stripe/services/issuing/card_service.rbi +568 -0
- data/rbi/stripe/services/issuing/cardholder_service.rbi +668 -0
- data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +580 -0
- data/rbi/stripe/services/issuing/dispute_service.rbi +824 -0
- data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +61 -0
- data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +83 -0
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +271 -0
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +66 -0
- data/rbi/stripe/services/issuing/token_service.rbi +109 -0
- data/rbi/stripe/services/issuing/transaction_service.rbi +119 -0
- data/rbi/stripe/services/issuing_service.rbi +19 -0
- data/rbi/stripe/services/mandate_service.rbi +21 -0
- data/rbi/stripe/services/margin_service.rbi +119 -0
- data/rbi/stripe/services/order_line_item_service.rbi +35 -0
- data/rbi/stripe/services/order_service.rbi +2669 -0
- data/rbi/stripe/services/payment_attempt_record_service.rbi +39 -0
- data/rbi/stripe/services/payment_intent_service.rbi +13193 -0
- data/rbi/stripe/services/payment_link_line_item_service.rbi +35 -0
- data/rbi/stripe/services/payment_link_service.rbi +1447 -0
- data/rbi/stripe/services/payment_method_configuration_service.rbi +2465 -0
- data/rbi/stripe/services/payment_method_domain_service.rbi +123 -0
- data/rbi/stripe/services/payment_method_service.rbi +1032 -0
- data/rbi/stripe/services/payment_record_service.rbi +613 -0
- data/rbi/stripe/services/payout_service.rbi +228 -0
- data/rbi/stripe/services/plan_service.rbi +337 -0
- data/rbi/stripe/services/price_service.rbi +657 -0
- data/rbi/stripe/services/product_feature_service.rbi +76 -0
- data/rbi/stripe/services/product_service.rbi +596 -0
- data/rbi/stripe/services/promotion_code_service.rbi +244 -0
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +35 -0
- data/rbi/stripe/services/quote_line_item_service.rbi +35 -0
- data/rbi/stripe/services/quote_line_service.rbi +35 -0
- data/rbi/stripe/services/quote_preview_invoice_service.rbi +35 -0
- data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +35 -0
- data/rbi/stripe/services/quote_service.rbi +2830 -0
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +95 -0
- data/rbi/stripe/services/radar/value_list_item_service.rbi +122 -0
- data/rbi/stripe/services/radar/value_list_service.rbi +160 -0
- data/rbi/stripe/services/radar_service.rbi +11 -0
- data/rbi/stripe/services/refund_service.rbi +208 -0
- data/rbi/stripe/services/reporting/report_run_service.rbi +152 -0
- data/rbi/stripe/services/reporting/report_type_service.rbi +37 -0
- data/rbi/stripe/services/reporting_service.rbi +10 -0
- data/rbi/stripe/services/review_service.rbi +93 -0
- data/rbi/stripe/services/setup_attempt_service.rbi +73 -0
- data/rbi/stripe/services/setup_intent_service.rbi +4204 -0
- data/rbi/stripe/services/shipping_rate_service.rbi +274 -0
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +51 -0
- data/rbi/stripe/services/sigma_service.rbi +9 -0
- data/rbi/stripe/services/source_service.rbi +766 -0
- data/rbi/stripe/services/source_transaction_service.rbi +35 -0
- data/rbi/stripe/services/subscription_item_service.rbi +496 -0
- data/rbi/stripe/services/subscription_item_usage_record_service.rbi +41 -0
- data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +37 -0
- data/rbi/stripe/services/subscription_schedule_service.rbi +2613 -0
- data/rbi/stripe/services/subscription_service.rbi +2207 -0
- data/rbi/stripe/services/tax/association_service.rbi +27 -0
- data/rbi/stripe/services/tax/calculation_line_item_service.rbi +37 -0
- data/rbi/stripe/services/tax/calculation_service.rbi +267 -0
- data/rbi/stripe/services/tax/form_service.rbi +96 -0
- data/rbi/stripe/services/tax/registration_service.rbi +1495 -0
- data/rbi/stripe/services/tax/settings_service.rbi +106 -0
- data/rbi/stripe/services/tax/transaction_line_item_service.rbi +37 -0
- data/rbi/stripe/services/tax/transaction_service.rbi +164 -0
- data/rbi/stripe/services/tax_code_service.rbi +49 -0
- data/rbi/stripe/services/tax_id_service.rbi +128 -0
- data/rbi/stripe/services/tax_rate_service.rbi +215 -0
- data/rbi/stripe/services/tax_service.rbi +14 -0
- data/rbi/stripe/services/terminal/configuration_service.rbi +976 -0
- data/rbi/stripe/services/terminal/connection_token_service.rbi +27 -0
- data/rbi/stripe/services/terminal/location_service.rbi +211 -0
- data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +23 -0
- data/rbi/stripe/services/terminal/reader_service.rbi +591 -0
- data/rbi/stripe/services/terminal_service.rbi +13 -0
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +892 -0
- data/rbi/stripe/services/test_helpers/customer_service.rbi +37 -0
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +974 -0
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +81 -0
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +73 -0
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +825 -0
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
- data/rbi/stripe/services/test_helpers/refund_service.rbi +23 -0
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +69 -0
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +100 -0
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +69 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +137 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +137 -0
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +130 -0
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +130 -0
- data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
- data/rbi/stripe/services/test_helpers_service.rbi +15 -0
- data/rbi/stripe/services/token_service.rbi +1357 -0
- data/rbi/stripe/services/topup_service.rbi +200 -0
- data/rbi/stripe/services/transfer_reversal_service.rbi +111 -0
- data/rbi/stripe/services/transfer_service.rbi +174 -0
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +95 -0
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +100 -0
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +226 -0
- data/rbi/stripe/services/treasury/financial_account_service.rbi +577 -0
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +133 -0
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +350 -0
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +189 -0
- data/rbi/stripe/services/treasury/received_credit_service.rbi +79 -0
- data/rbi/stripe/services/treasury/received_debit_service.rbi +66 -0
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +125 -0
- data/rbi/stripe/services/treasury/transaction_service.rbi +133 -0
- data/rbi/stripe/services/treasury_service.rbi +18 -0
- data/rbi/stripe/services/v1_services.rbi +83 -0
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +43 -0
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +46 -0
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +60 -0
- data/rbi/stripe/services/v2/billing_service.rbi +14 -0
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +228 -0
- data/rbi/stripe/services/v2/core/event_service.rbi +42 -0
- data/rbi/stripe/services/v2/core_service.rbi +12 -0
- data/rbi/stripe/services/v2_services.rbi +10 -0
- data/rbi/stripe/services/webhook_endpoint_service.rbi +149 -0
- metadata +435 -4
@@ -0,0 +1,2287 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
# typed: true
|
5
|
+
module Stripe
|
6
|
+
# PaymentMethod objects represent your customer's payment instruments.
|
7
|
+
# You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to
|
8
|
+
# Customer objects to store instrument details for future payments.
|
9
|
+
#
|
10
|
+
# Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
|
11
|
+
class PaymentMethod < APIResource
|
12
|
+
class AcssDebit < Stripe::StripeObject
|
13
|
+
# Name of the bank associated with the bank account.
|
14
|
+
sig { returns(T.nilable(String)) }
|
15
|
+
attr_reader :bank_name
|
16
|
+
|
17
|
+
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
18
|
+
sig { returns(T.nilable(String)) }
|
19
|
+
attr_reader :fingerprint
|
20
|
+
|
21
|
+
# Institution number of the bank account.
|
22
|
+
sig { returns(T.nilable(String)) }
|
23
|
+
attr_reader :institution_number
|
24
|
+
|
25
|
+
# Last four digits of the bank account number.
|
26
|
+
sig { returns(T.nilable(String)) }
|
27
|
+
attr_reader :last4
|
28
|
+
|
29
|
+
# Transit number of the bank account.
|
30
|
+
sig { returns(T.nilable(String)) }
|
31
|
+
attr_reader :transit_number
|
32
|
+
end
|
33
|
+
class Affirm < Stripe::StripeObject; end
|
34
|
+
class AfterpayClearpay < Stripe::StripeObject; end
|
35
|
+
class Alipay < Stripe::StripeObject; end
|
36
|
+
class Alma < Stripe::StripeObject; end
|
37
|
+
class AmazonPay < Stripe::StripeObject; end
|
38
|
+
class AuBecsDebit < Stripe::StripeObject
|
39
|
+
# Six-digit number identifying bank and branch associated with this bank account.
|
40
|
+
sig { returns(T.nilable(String)) }
|
41
|
+
attr_reader :bsb_number
|
42
|
+
|
43
|
+
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
44
|
+
sig { returns(T.nilable(String)) }
|
45
|
+
attr_reader :fingerprint
|
46
|
+
|
47
|
+
# Last four digits of the bank account number.
|
48
|
+
sig { returns(T.nilable(String)) }
|
49
|
+
attr_reader :last4
|
50
|
+
end
|
51
|
+
class BacsDebit < Stripe::StripeObject
|
52
|
+
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
53
|
+
sig { returns(T.nilable(String)) }
|
54
|
+
attr_reader :fingerprint
|
55
|
+
|
56
|
+
# Last four digits of the bank account number.
|
57
|
+
sig { returns(T.nilable(String)) }
|
58
|
+
attr_reader :last4
|
59
|
+
|
60
|
+
# Sort code of the bank account. (e.g., `10-20-30`)
|
61
|
+
sig { returns(T.nilable(String)) }
|
62
|
+
attr_reader :sort_code
|
63
|
+
end
|
64
|
+
class Bancontact < Stripe::StripeObject; end
|
65
|
+
class BillingDetails < Stripe::StripeObject
|
66
|
+
class Address < Stripe::StripeObject
|
67
|
+
# City, district, suburb, town, or village.
|
68
|
+
sig { returns(T.nilable(String)) }
|
69
|
+
attr_reader :city
|
70
|
+
|
71
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
72
|
+
sig { returns(T.nilable(String)) }
|
73
|
+
attr_reader :country
|
74
|
+
|
75
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
76
|
+
sig { returns(T.nilable(String)) }
|
77
|
+
attr_reader :line1
|
78
|
+
|
79
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
80
|
+
sig { returns(T.nilable(String)) }
|
81
|
+
attr_reader :line2
|
82
|
+
|
83
|
+
# ZIP or postal code.
|
84
|
+
sig { returns(T.nilable(String)) }
|
85
|
+
attr_reader :postal_code
|
86
|
+
|
87
|
+
# State, county, province, or region.
|
88
|
+
sig { returns(T.nilable(String)) }
|
89
|
+
attr_reader :state
|
90
|
+
end
|
91
|
+
# Billing address.
|
92
|
+
sig { returns(T.nilable(Address)) }
|
93
|
+
attr_reader :address
|
94
|
+
|
95
|
+
# Email address.
|
96
|
+
sig { returns(T.nilable(String)) }
|
97
|
+
attr_reader :email
|
98
|
+
|
99
|
+
# Full name.
|
100
|
+
sig { returns(T.nilable(String)) }
|
101
|
+
attr_reader :name
|
102
|
+
|
103
|
+
# Billing phone number (including extension).
|
104
|
+
sig { returns(T.nilable(String)) }
|
105
|
+
attr_reader :phone
|
106
|
+
end
|
107
|
+
class Blik < Stripe::StripeObject; end
|
108
|
+
class Boleto < Stripe::StripeObject
|
109
|
+
# Uniquely identifies the customer tax id (CNPJ or CPF)
|
110
|
+
sig { returns(String) }
|
111
|
+
attr_reader :tax_id
|
112
|
+
end
|
113
|
+
class Card < Stripe::StripeObject
|
114
|
+
class Checks < Stripe::StripeObject
|
115
|
+
# If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
116
|
+
sig { returns(T.nilable(String)) }
|
117
|
+
attr_reader :address_line1_check
|
118
|
+
|
119
|
+
# If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
120
|
+
sig { returns(T.nilable(String)) }
|
121
|
+
attr_reader :address_postal_code_check
|
122
|
+
|
123
|
+
# If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
124
|
+
sig { returns(T.nilable(String)) }
|
125
|
+
attr_reader :cvc_check
|
126
|
+
end
|
127
|
+
class GeneratedFrom < Stripe::StripeObject
|
128
|
+
class PaymentMethodDetails < Stripe::StripeObject
|
129
|
+
class CardPresent < Stripe::StripeObject
|
130
|
+
class Offline < Stripe::StripeObject
|
131
|
+
# Time at which the payment was collected while offline
|
132
|
+
sig { returns(T.nilable(Integer)) }
|
133
|
+
attr_reader :stored_at
|
134
|
+
|
135
|
+
# The method used to process this payment method offline. Only deferred is allowed.
|
136
|
+
sig { returns(T.nilable(String)) }
|
137
|
+
attr_reader :type
|
138
|
+
end
|
139
|
+
class Receipt < Stripe::StripeObject
|
140
|
+
# The type of account being debited or credited
|
141
|
+
sig { returns(String) }
|
142
|
+
attr_reader :account_type
|
143
|
+
|
144
|
+
# EMV tag 9F26, cryptogram generated by the integrated circuit chip.
|
145
|
+
sig { returns(T.nilable(String)) }
|
146
|
+
attr_reader :application_cryptogram
|
147
|
+
|
148
|
+
# Mnenomic of the Application Identifier.
|
149
|
+
sig { returns(T.nilable(String)) }
|
150
|
+
attr_reader :application_preferred_name
|
151
|
+
|
152
|
+
# Identifier for this transaction.
|
153
|
+
sig { returns(T.nilable(String)) }
|
154
|
+
attr_reader :authorization_code
|
155
|
+
|
156
|
+
# EMV tag 8A. A code returned by the card issuer.
|
157
|
+
sig { returns(T.nilable(String)) }
|
158
|
+
attr_reader :authorization_response_code
|
159
|
+
|
160
|
+
# Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
|
161
|
+
sig { returns(T.nilable(String)) }
|
162
|
+
attr_reader :cardholder_verification_method
|
163
|
+
|
164
|
+
# EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
|
165
|
+
sig { returns(T.nilable(String)) }
|
166
|
+
attr_reader :dedicated_file_name
|
167
|
+
|
168
|
+
# The outcome of a series of EMV functions performed by the card reader.
|
169
|
+
sig { returns(T.nilable(String)) }
|
170
|
+
attr_reader :terminal_verification_results
|
171
|
+
|
172
|
+
# An indication of various EMV functions performed during the transaction.
|
173
|
+
sig { returns(T.nilable(String)) }
|
174
|
+
attr_reader :transaction_status_information
|
175
|
+
end
|
176
|
+
class Wallet < Stripe::StripeObject
|
177
|
+
# The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
|
178
|
+
sig { returns(String) }
|
179
|
+
attr_reader :type
|
180
|
+
end
|
181
|
+
# The authorized amount
|
182
|
+
sig { returns(T.nilable(Integer)) }
|
183
|
+
attr_reader :amount_authorized
|
184
|
+
|
185
|
+
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
186
|
+
sig { returns(T.nilable(String)) }
|
187
|
+
attr_reader :brand
|
188
|
+
|
189
|
+
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
190
|
+
sig { returns(T.nilable(String)) }
|
191
|
+
attr_reader :brand_product
|
192
|
+
|
193
|
+
# When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
|
194
|
+
sig { returns(Integer) }
|
195
|
+
attr_reader :capture_before
|
196
|
+
|
197
|
+
# The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
|
198
|
+
sig { returns(T.nilable(String)) }
|
199
|
+
attr_reader :cardholder_name
|
200
|
+
|
201
|
+
# 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.
|
202
|
+
sig { returns(T.nilable(String)) }
|
203
|
+
attr_reader :country
|
204
|
+
|
205
|
+
# 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.)
|
206
|
+
sig { returns(T.nilable(String)) }
|
207
|
+
attr_reader :description
|
208
|
+
|
209
|
+
# Authorization response cryptogram.
|
210
|
+
sig { returns(T.nilable(String)) }
|
211
|
+
attr_reader :emv_auth_data
|
212
|
+
|
213
|
+
# Two-digit number representing the card's expiration month.
|
214
|
+
sig { returns(Integer) }
|
215
|
+
attr_reader :exp_month
|
216
|
+
|
217
|
+
# Four-digit number representing the card's expiration year.
|
218
|
+
sig { returns(Integer) }
|
219
|
+
attr_reader :exp_year
|
220
|
+
|
221
|
+
# 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.
|
222
|
+
#
|
223
|
+
# *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.*
|
224
|
+
sig { returns(T.nilable(String)) }
|
225
|
+
attr_reader :fingerprint
|
226
|
+
|
227
|
+
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
228
|
+
sig { returns(T.nilable(String)) }
|
229
|
+
attr_reader :funding
|
230
|
+
|
231
|
+
# ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
|
232
|
+
sig { returns(T.nilable(String)) }
|
233
|
+
attr_reader :generated_card
|
234
|
+
|
235
|
+
# Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
236
|
+
sig { returns(T.nilable(String)) }
|
237
|
+
attr_reader :iin
|
238
|
+
|
239
|
+
# Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
|
240
|
+
sig { returns(T::Boolean) }
|
241
|
+
attr_reader :incremental_authorization_supported
|
242
|
+
|
243
|
+
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
244
|
+
sig { returns(T.nilable(String)) }
|
245
|
+
attr_reader :issuer
|
246
|
+
|
247
|
+
# The last four digits of the card.
|
248
|
+
sig { returns(T.nilable(String)) }
|
249
|
+
attr_reader :last4
|
250
|
+
|
251
|
+
# 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`.
|
252
|
+
sig { returns(T.nilable(String)) }
|
253
|
+
attr_reader :network
|
254
|
+
|
255
|
+
# 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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
|
256
|
+
sig { returns(T.nilable(String)) }
|
257
|
+
attr_reader :network_transaction_id
|
258
|
+
|
259
|
+
# Details about payments collected offline.
|
260
|
+
sig { returns(T.nilable(Offline)) }
|
261
|
+
attr_reader :offline
|
262
|
+
|
263
|
+
# Defines whether the authorized amount can be over-captured or not
|
264
|
+
sig { returns(T::Boolean) }
|
265
|
+
attr_reader :overcapture_supported
|
266
|
+
|
267
|
+
# EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
|
268
|
+
sig { returns(T.nilable(T::Array[String])) }
|
269
|
+
attr_reader :preferred_locales
|
270
|
+
|
271
|
+
# How card details were read in this transaction.
|
272
|
+
sig { returns(T.nilable(String)) }
|
273
|
+
attr_reader :read_method
|
274
|
+
|
275
|
+
# A collection of fields required to be displayed on receipts. Only required for EMV transactions.
|
276
|
+
sig { returns(T.nilable(Receipt)) }
|
277
|
+
attr_reader :receipt
|
278
|
+
|
279
|
+
# Attribute for field wallet
|
280
|
+
sig { returns(Wallet) }
|
281
|
+
attr_reader :wallet
|
282
|
+
end
|
283
|
+
# Attribute for field card_present
|
284
|
+
sig { returns(CardPresent) }
|
285
|
+
attr_reader :card_present
|
286
|
+
|
287
|
+
# The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
|
288
|
+
sig { returns(String) }
|
289
|
+
attr_reader :type
|
290
|
+
end
|
291
|
+
# The charge that created this object.
|
292
|
+
sig { returns(T.nilable(String)) }
|
293
|
+
attr_reader :charge
|
294
|
+
|
295
|
+
# Transaction-specific details of the payment method used in the payment.
|
296
|
+
sig { returns(T.nilable(PaymentMethodDetails)) }
|
297
|
+
attr_reader :payment_method_details
|
298
|
+
|
299
|
+
# The ID of the SetupAttempt that generated this PaymentMethod, if any.
|
300
|
+
sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) }
|
301
|
+
attr_reader :setup_attempt
|
302
|
+
end
|
303
|
+
class Networks < Stripe::StripeObject
|
304
|
+
# All available networks for the card.
|
305
|
+
sig { returns(T::Array[String]) }
|
306
|
+
attr_reader :available
|
307
|
+
|
308
|
+
# The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card.
|
309
|
+
sig { returns(T.nilable(String)) }
|
310
|
+
attr_reader :preferred
|
311
|
+
end
|
312
|
+
class ThreeDSecureUsage < Stripe::StripeObject
|
313
|
+
# Whether 3D Secure is supported on this card.
|
314
|
+
sig { returns(T::Boolean) }
|
315
|
+
attr_reader :supported
|
316
|
+
end
|
317
|
+
class Wallet < Stripe::StripeObject
|
318
|
+
class AmexExpressCheckout < Stripe::StripeObject; end
|
319
|
+
class ApplePay < Stripe::StripeObject; end
|
320
|
+
class GooglePay < Stripe::StripeObject; end
|
321
|
+
class Link < Stripe::StripeObject; end
|
322
|
+
class Masterpass < Stripe::StripeObject
|
323
|
+
class BillingAddress < Stripe::StripeObject
|
324
|
+
# City, district, suburb, town, or village.
|
325
|
+
sig { returns(T.nilable(String)) }
|
326
|
+
attr_reader :city
|
327
|
+
|
328
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
329
|
+
sig { returns(T.nilable(String)) }
|
330
|
+
attr_reader :country
|
331
|
+
|
332
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
333
|
+
sig { returns(T.nilable(String)) }
|
334
|
+
attr_reader :line1
|
335
|
+
|
336
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
337
|
+
sig { returns(T.nilable(String)) }
|
338
|
+
attr_reader :line2
|
339
|
+
|
340
|
+
# ZIP or postal code.
|
341
|
+
sig { returns(T.nilable(String)) }
|
342
|
+
attr_reader :postal_code
|
343
|
+
|
344
|
+
# State, county, province, or region.
|
345
|
+
sig { returns(T.nilable(String)) }
|
346
|
+
attr_reader :state
|
347
|
+
end
|
348
|
+
class ShippingAddress < Stripe::StripeObject
|
349
|
+
# City, district, suburb, town, or village.
|
350
|
+
sig { returns(T.nilable(String)) }
|
351
|
+
attr_reader :city
|
352
|
+
|
353
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
354
|
+
sig { returns(T.nilable(String)) }
|
355
|
+
attr_reader :country
|
356
|
+
|
357
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
358
|
+
sig { returns(T.nilable(String)) }
|
359
|
+
attr_reader :line1
|
360
|
+
|
361
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
362
|
+
sig { returns(T.nilable(String)) }
|
363
|
+
attr_reader :line2
|
364
|
+
|
365
|
+
# ZIP or postal code.
|
366
|
+
sig { returns(T.nilable(String)) }
|
367
|
+
attr_reader :postal_code
|
368
|
+
|
369
|
+
# State, county, province, or region.
|
370
|
+
sig { returns(T.nilable(String)) }
|
371
|
+
attr_reader :state
|
372
|
+
end
|
373
|
+
# Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
374
|
+
sig { returns(T.nilable(BillingAddress)) }
|
375
|
+
attr_reader :billing_address
|
376
|
+
|
377
|
+
# Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
378
|
+
sig { returns(T.nilable(String)) }
|
379
|
+
attr_reader :email
|
380
|
+
|
381
|
+
# Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
382
|
+
sig { returns(T.nilable(String)) }
|
383
|
+
attr_reader :name
|
384
|
+
|
385
|
+
# Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
386
|
+
sig { returns(T.nilable(ShippingAddress)) }
|
387
|
+
attr_reader :shipping_address
|
388
|
+
end
|
389
|
+
class SamsungPay < Stripe::StripeObject; end
|
390
|
+
class VisaCheckout < Stripe::StripeObject
|
391
|
+
class BillingAddress < Stripe::StripeObject
|
392
|
+
# City, district, suburb, town, or village.
|
393
|
+
sig { returns(T.nilable(String)) }
|
394
|
+
attr_reader :city
|
395
|
+
|
396
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
397
|
+
sig { returns(T.nilable(String)) }
|
398
|
+
attr_reader :country
|
399
|
+
|
400
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
401
|
+
sig { returns(T.nilable(String)) }
|
402
|
+
attr_reader :line1
|
403
|
+
|
404
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
405
|
+
sig { returns(T.nilable(String)) }
|
406
|
+
attr_reader :line2
|
407
|
+
|
408
|
+
# ZIP or postal code.
|
409
|
+
sig { returns(T.nilable(String)) }
|
410
|
+
attr_reader :postal_code
|
411
|
+
|
412
|
+
# State, county, province, or region.
|
413
|
+
sig { returns(T.nilable(String)) }
|
414
|
+
attr_reader :state
|
415
|
+
end
|
416
|
+
class ShippingAddress < Stripe::StripeObject
|
417
|
+
# City, district, suburb, town, or village.
|
418
|
+
sig { returns(T.nilable(String)) }
|
419
|
+
attr_reader :city
|
420
|
+
|
421
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
422
|
+
sig { returns(T.nilable(String)) }
|
423
|
+
attr_reader :country
|
424
|
+
|
425
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
426
|
+
sig { returns(T.nilable(String)) }
|
427
|
+
attr_reader :line1
|
428
|
+
|
429
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
430
|
+
sig { returns(T.nilable(String)) }
|
431
|
+
attr_reader :line2
|
432
|
+
|
433
|
+
# ZIP or postal code.
|
434
|
+
sig { returns(T.nilable(String)) }
|
435
|
+
attr_reader :postal_code
|
436
|
+
|
437
|
+
# State, county, province, or region.
|
438
|
+
sig { returns(T.nilable(String)) }
|
439
|
+
attr_reader :state
|
440
|
+
end
|
441
|
+
# Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
442
|
+
sig { returns(T.nilable(BillingAddress)) }
|
443
|
+
attr_reader :billing_address
|
444
|
+
|
445
|
+
# Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
446
|
+
sig { returns(T.nilable(String)) }
|
447
|
+
attr_reader :email
|
448
|
+
|
449
|
+
# Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
450
|
+
sig { returns(T.nilable(String)) }
|
451
|
+
attr_reader :name
|
452
|
+
|
453
|
+
# Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
454
|
+
sig { returns(T.nilable(ShippingAddress)) }
|
455
|
+
attr_reader :shipping_address
|
456
|
+
end
|
457
|
+
# Attribute for field amex_express_checkout
|
458
|
+
sig { returns(AmexExpressCheckout) }
|
459
|
+
attr_reader :amex_express_checkout
|
460
|
+
|
461
|
+
# Attribute for field apple_pay
|
462
|
+
sig { returns(ApplePay) }
|
463
|
+
attr_reader :apple_pay
|
464
|
+
|
465
|
+
# (For tokenized numbers only.) The last four digits of the device account number.
|
466
|
+
sig { returns(T.nilable(String)) }
|
467
|
+
attr_reader :dynamic_last4
|
468
|
+
|
469
|
+
# Attribute for field google_pay
|
470
|
+
sig { returns(GooglePay) }
|
471
|
+
attr_reader :google_pay
|
472
|
+
|
473
|
+
# Attribute for field link
|
474
|
+
sig { returns(Link) }
|
475
|
+
attr_reader :link
|
476
|
+
|
477
|
+
# Attribute for field masterpass
|
478
|
+
sig { returns(Masterpass) }
|
479
|
+
attr_reader :masterpass
|
480
|
+
|
481
|
+
# Attribute for field samsung_pay
|
482
|
+
sig { returns(SamsungPay) }
|
483
|
+
attr_reader :samsung_pay
|
484
|
+
|
485
|
+
# The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type.
|
486
|
+
sig { returns(String) }
|
487
|
+
attr_reader :type
|
488
|
+
|
489
|
+
# Attribute for field visa_checkout
|
490
|
+
sig { returns(VisaCheckout) }
|
491
|
+
attr_reader :visa_checkout
|
492
|
+
end
|
493
|
+
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
494
|
+
sig { returns(String) }
|
495
|
+
attr_reader :brand
|
496
|
+
|
497
|
+
# Checks on Card address and CVC if provided.
|
498
|
+
sig { returns(T.nilable(Checks)) }
|
499
|
+
attr_reader :checks
|
500
|
+
|
501
|
+
# 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.
|
502
|
+
sig { returns(T.nilable(String)) }
|
503
|
+
attr_reader :country
|
504
|
+
|
505
|
+
# 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.)
|
506
|
+
sig { returns(T.nilable(String)) }
|
507
|
+
attr_reader :description
|
508
|
+
|
509
|
+
# The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future.
|
510
|
+
sig { returns(T.nilable(String)) }
|
511
|
+
attr_reader :display_brand
|
512
|
+
|
513
|
+
# Two-digit number representing the card's expiration month.
|
514
|
+
sig { returns(Integer) }
|
515
|
+
attr_reader :exp_month
|
516
|
+
|
517
|
+
# Four-digit number representing the card's expiration year.
|
518
|
+
sig { returns(Integer) }
|
519
|
+
attr_reader :exp_year
|
520
|
+
|
521
|
+
# 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.
|
522
|
+
#
|
523
|
+
# *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.*
|
524
|
+
sig { returns(T.nilable(String)) }
|
525
|
+
attr_reader :fingerprint
|
526
|
+
|
527
|
+
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
528
|
+
sig { returns(String) }
|
529
|
+
attr_reader :funding
|
530
|
+
|
531
|
+
# Details of the original PaymentMethod that created this object.
|
532
|
+
sig { returns(T.nilable(GeneratedFrom)) }
|
533
|
+
attr_reader :generated_from
|
534
|
+
|
535
|
+
# Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
536
|
+
sig { returns(T.nilable(String)) }
|
537
|
+
attr_reader :iin
|
538
|
+
|
539
|
+
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
540
|
+
sig { returns(T.nilable(String)) }
|
541
|
+
attr_reader :issuer
|
542
|
+
|
543
|
+
# The last four digits of the card.
|
544
|
+
sig { returns(String) }
|
545
|
+
attr_reader :last4
|
546
|
+
|
547
|
+
# Contains information about card networks that can be used to process the payment.
|
548
|
+
sig { returns(T.nilable(Networks)) }
|
549
|
+
attr_reader :networks
|
550
|
+
|
551
|
+
# Status of a card based on the card issuer.
|
552
|
+
sig { returns(T.nilable(String)) }
|
553
|
+
attr_reader :regulated_status
|
554
|
+
|
555
|
+
# Contains details on how this Card may be used for 3D Secure authentication.
|
556
|
+
sig { returns(T.nilable(ThreeDSecureUsage)) }
|
557
|
+
attr_reader :three_d_secure_usage
|
558
|
+
|
559
|
+
# If this Card is part of a card wallet, this contains the details of the card wallet.
|
560
|
+
sig { returns(T.nilable(Wallet)) }
|
561
|
+
attr_reader :wallet
|
562
|
+
end
|
563
|
+
class CardPresent < Stripe::StripeObject
|
564
|
+
class Networks < Stripe::StripeObject
|
565
|
+
# All available networks for the card.
|
566
|
+
sig { returns(T::Array[String]) }
|
567
|
+
attr_reader :available
|
568
|
+
|
569
|
+
# The preferred network for the card.
|
570
|
+
sig { returns(T.nilable(String)) }
|
571
|
+
attr_reader :preferred
|
572
|
+
end
|
573
|
+
class Offline < Stripe::StripeObject
|
574
|
+
# Time at which the payment was collected while offline
|
575
|
+
sig { returns(T.nilable(Integer)) }
|
576
|
+
attr_reader :stored_at
|
577
|
+
|
578
|
+
# The method used to process this payment method offline. Only deferred is allowed.
|
579
|
+
sig { returns(T.nilable(String)) }
|
580
|
+
attr_reader :type
|
581
|
+
end
|
582
|
+
class Wallet < Stripe::StripeObject
|
583
|
+
# The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
|
584
|
+
sig { returns(String) }
|
585
|
+
attr_reader :type
|
586
|
+
end
|
587
|
+
# Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`.
|
588
|
+
sig { returns(T.nilable(String)) }
|
589
|
+
attr_reader :brand
|
590
|
+
|
591
|
+
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card.
|
592
|
+
sig { returns(T.nilable(String)) }
|
593
|
+
attr_reader :brand_product
|
594
|
+
|
595
|
+
# The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
|
596
|
+
sig { returns(T.nilable(String)) }
|
597
|
+
attr_reader :cardholder_name
|
598
|
+
|
599
|
+
# 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.
|
600
|
+
sig { returns(T.nilable(String)) }
|
601
|
+
attr_reader :country
|
602
|
+
|
603
|
+
# 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.)
|
604
|
+
sig { returns(T.nilable(String)) }
|
605
|
+
attr_reader :description
|
606
|
+
|
607
|
+
# Two-digit number representing the card's expiration month.
|
608
|
+
sig { returns(Integer) }
|
609
|
+
attr_reader :exp_month
|
610
|
+
|
611
|
+
# Four-digit number representing the card's expiration year.
|
612
|
+
sig { returns(Integer) }
|
613
|
+
attr_reader :exp_year
|
614
|
+
|
615
|
+
# 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.
|
616
|
+
#
|
617
|
+
# *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.*
|
618
|
+
sig { returns(T.nilable(String)) }
|
619
|
+
attr_reader :fingerprint
|
620
|
+
|
621
|
+
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
622
|
+
sig { returns(T.nilable(String)) }
|
623
|
+
attr_reader :funding
|
624
|
+
|
625
|
+
# Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
626
|
+
sig { returns(T.nilable(String)) }
|
627
|
+
attr_reader :iin
|
628
|
+
|
629
|
+
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
630
|
+
sig { returns(T.nilable(String)) }
|
631
|
+
attr_reader :issuer
|
632
|
+
|
633
|
+
# The last four digits of the card.
|
634
|
+
sig { returns(T.nilable(String)) }
|
635
|
+
attr_reader :last4
|
636
|
+
|
637
|
+
# Contains information about card networks that can be used to process the payment.
|
638
|
+
sig { returns(T.nilable(Networks)) }
|
639
|
+
attr_reader :networks
|
640
|
+
|
641
|
+
# Details about payment methods collected offline.
|
642
|
+
sig { returns(T.nilable(Offline)) }
|
643
|
+
attr_reader :offline
|
644
|
+
|
645
|
+
# EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
|
646
|
+
sig { returns(T.nilable(T::Array[String])) }
|
647
|
+
attr_reader :preferred_locales
|
648
|
+
|
649
|
+
# How card details were read in this transaction.
|
650
|
+
sig { returns(T.nilable(String)) }
|
651
|
+
attr_reader :read_method
|
652
|
+
|
653
|
+
# Attribute for field wallet
|
654
|
+
sig { returns(Wallet) }
|
655
|
+
attr_reader :wallet
|
656
|
+
end
|
657
|
+
class Cashapp < Stripe::StripeObject
|
658
|
+
# A unique and immutable identifier assigned by Cash App to every buyer.
|
659
|
+
sig { returns(T.nilable(String)) }
|
660
|
+
attr_reader :buyer_id
|
661
|
+
|
662
|
+
# A public identifier for buyers using Cash App.
|
663
|
+
sig { returns(T.nilable(String)) }
|
664
|
+
attr_reader :cashtag
|
665
|
+
end
|
666
|
+
class CustomerBalance < Stripe::StripeObject; end
|
667
|
+
class Eps < Stripe::StripeObject
|
668
|
+
# The customer's bank. Should be one of `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_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
|
669
|
+
sig { returns(T.nilable(String)) }
|
670
|
+
attr_reader :bank
|
671
|
+
end
|
672
|
+
class Fpx < Stripe::StripeObject
|
673
|
+
# Account holder type, if provided. Can be one of `individual` or `company`.
|
674
|
+
sig { returns(T.nilable(String)) }
|
675
|
+
attr_reader :account_holder_type
|
676
|
+
|
677
|
+
# The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`.
|
678
|
+
sig { returns(String) }
|
679
|
+
attr_reader :bank
|
680
|
+
end
|
681
|
+
class Giropay < Stripe::StripeObject; end
|
682
|
+
class Gopay < Stripe::StripeObject; end
|
683
|
+
class Grabpay < Stripe::StripeObject; end
|
684
|
+
class IdBankTransfer < Stripe::StripeObject
|
685
|
+
# Attribute for field bank
|
686
|
+
sig { returns(T.nilable(String)) }
|
687
|
+
attr_reader :bank
|
688
|
+
|
689
|
+
# Attribute for field bank_code
|
690
|
+
sig { returns(T.nilable(String)) }
|
691
|
+
attr_reader :bank_code
|
692
|
+
|
693
|
+
# Attribute for field bank_name
|
694
|
+
sig { returns(T.nilable(String)) }
|
695
|
+
attr_reader :bank_name
|
696
|
+
|
697
|
+
# Attribute for field display_name
|
698
|
+
sig { returns(T.nilable(String)) }
|
699
|
+
attr_reader :display_name
|
700
|
+
end
|
701
|
+
class Ideal < Stripe::StripeObject
|
702
|
+
# The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
703
|
+
sig { returns(T.nilable(String)) }
|
704
|
+
attr_reader :bank
|
705
|
+
|
706
|
+
# The Bank Identifier Code of the customer's bank, if the bank was provided.
|
707
|
+
sig { returns(T.nilable(String)) }
|
708
|
+
attr_reader :bic
|
709
|
+
end
|
710
|
+
class InteracPresent < Stripe::StripeObject
|
711
|
+
class Networks < Stripe::StripeObject
|
712
|
+
# All available networks for the card.
|
713
|
+
sig { returns(T::Array[String]) }
|
714
|
+
attr_reader :available
|
715
|
+
|
716
|
+
# The preferred network for the card.
|
717
|
+
sig { returns(T.nilable(String)) }
|
718
|
+
attr_reader :preferred
|
719
|
+
end
|
720
|
+
# Card brand. Can be `interac`, `mastercard` or `visa`.
|
721
|
+
sig { returns(T.nilable(String)) }
|
722
|
+
attr_reader :brand
|
723
|
+
|
724
|
+
# The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
|
725
|
+
sig { returns(T.nilable(String)) }
|
726
|
+
attr_reader :cardholder_name
|
727
|
+
|
728
|
+
# 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.
|
729
|
+
sig { returns(T.nilable(String)) }
|
730
|
+
attr_reader :country
|
731
|
+
|
732
|
+
# 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.)
|
733
|
+
sig { returns(T.nilable(String)) }
|
734
|
+
attr_reader :description
|
735
|
+
|
736
|
+
# Two-digit number representing the card's expiration month.
|
737
|
+
sig { returns(Integer) }
|
738
|
+
attr_reader :exp_month
|
739
|
+
|
740
|
+
# Four-digit number representing the card's expiration year.
|
741
|
+
sig { returns(Integer) }
|
742
|
+
attr_reader :exp_year
|
743
|
+
|
744
|
+
# 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.
|
745
|
+
#
|
746
|
+
# *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.*
|
747
|
+
sig { returns(T.nilable(String)) }
|
748
|
+
attr_reader :fingerprint
|
749
|
+
|
750
|
+
# Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
751
|
+
sig { returns(T.nilable(String)) }
|
752
|
+
attr_reader :funding
|
753
|
+
|
754
|
+
# Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
|
755
|
+
sig { returns(T.nilable(String)) }
|
756
|
+
attr_reader :iin
|
757
|
+
|
758
|
+
# The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
|
759
|
+
sig { returns(T.nilable(String)) }
|
760
|
+
attr_reader :issuer
|
761
|
+
|
762
|
+
# The last four digits of the card.
|
763
|
+
sig { returns(T.nilable(String)) }
|
764
|
+
attr_reader :last4
|
765
|
+
|
766
|
+
# Contains information about card networks that can be used to process the payment.
|
767
|
+
sig { returns(T.nilable(Networks)) }
|
768
|
+
attr_reader :networks
|
769
|
+
|
770
|
+
# EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
|
771
|
+
sig { returns(T.nilable(T::Array[String])) }
|
772
|
+
attr_reader :preferred_locales
|
773
|
+
|
774
|
+
# How card details were read in this transaction.
|
775
|
+
sig { returns(T.nilable(String)) }
|
776
|
+
attr_reader :read_method
|
777
|
+
end
|
778
|
+
class KakaoPay < Stripe::StripeObject; end
|
779
|
+
class Klarna < Stripe::StripeObject
|
780
|
+
class Dob < Stripe::StripeObject
|
781
|
+
# The day of birth, between 1 and 31.
|
782
|
+
sig { returns(T.nilable(Integer)) }
|
783
|
+
attr_reader :day
|
784
|
+
|
785
|
+
# The month of birth, between 1 and 12.
|
786
|
+
sig { returns(T.nilable(Integer)) }
|
787
|
+
attr_reader :month
|
788
|
+
|
789
|
+
# The four-digit year of birth.
|
790
|
+
sig { returns(T.nilable(Integer)) }
|
791
|
+
attr_reader :year
|
792
|
+
end
|
793
|
+
# The customer's date of birth, if provided.
|
794
|
+
sig { returns(T.nilable(Dob)) }
|
795
|
+
attr_reader :dob
|
796
|
+
end
|
797
|
+
class Konbini < Stripe::StripeObject; end
|
798
|
+
class KrCard < Stripe::StripeObject
|
799
|
+
# The local credit or debit card brand.
|
800
|
+
sig { returns(T.nilable(String)) }
|
801
|
+
attr_reader :brand
|
802
|
+
|
803
|
+
# The last four digits of the card. This may not be present for American Express cards.
|
804
|
+
sig { returns(T.nilable(String)) }
|
805
|
+
attr_reader :last4
|
806
|
+
end
|
807
|
+
class Link < Stripe::StripeObject
|
808
|
+
# Account owner's email address.
|
809
|
+
sig { returns(T.nilable(String)) }
|
810
|
+
attr_reader :email
|
811
|
+
|
812
|
+
# [Deprecated] This is a legacy parameter that no longer has any function.
|
813
|
+
sig { returns(String) }
|
814
|
+
attr_reader :persistent_token
|
815
|
+
end
|
816
|
+
class MbWay < Stripe::StripeObject; end
|
817
|
+
class Mobilepay < Stripe::StripeObject; end
|
818
|
+
class Multibanco < Stripe::StripeObject; end
|
819
|
+
class NaverPay < Stripe::StripeObject
|
820
|
+
# Whether to fund this transaction with Naver Pay points or a card.
|
821
|
+
sig { returns(String) }
|
822
|
+
attr_reader :funding
|
823
|
+
end
|
824
|
+
class Oxxo < Stripe::StripeObject; end
|
825
|
+
class P24 < Stripe::StripeObject
|
826
|
+
# The customer's bank, if provided.
|
827
|
+
sig { returns(T.nilable(String)) }
|
828
|
+
attr_reader :bank
|
829
|
+
end
|
830
|
+
class Payco < Stripe::StripeObject; end
|
831
|
+
class Paynow < Stripe::StripeObject; end
|
832
|
+
class Paypal < Stripe::StripeObject
|
833
|
+
# Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
834
|
+
sig { returns(T.nilable(String)) }
|
835
|
+
attr_reader :fingerprint
|
836
|
+
|
837
|
+
# Owner's email. Values are provided by PayPal directly
|
838
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
839
|
+
sig { returns(T.nilable(String)) }
|
840
|
+
attr_reader :payer_email
|
841
|
+
|
842
|
+
# PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
843
|
+
sig { returns(T.nilable(String)) }
|
844
|
+
attr_reader :payer_id
|
845
|
+
|
846
|
+
# Owner's verified email. Values are verified or provided by PayPal directly
|
847
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
848
|
+
sig { returns(T.nilable(String)) }
|
849
|
+
attr_reader :verified_email
|
850
|
+
end
|
851
|
+
class Payto < Stripe::StripeObject
|
852
|
+
# Bank-State-Branch number of the bank account.
|
853
|
+
sig { returns(T.nilable(String)) }
|
854
|
+
attr_reader :bsb_number
|
855
|
+
|
856
|
+
# Last four digits of the bank account number.
|
857
|
+
sig { returns(T.nilable(String)) }
|
858
|
+
attr_reader :last4
|
859
|
+
|
860
|
+
# The PayID alias for the bank account.
|
861
|
+
sig { returns(T.nilable(String)) }
|
862
|
+
attr_reader :pay_id
|
863
|
+
end
|
864
|
+
class Pix < Stripe::StripeObject; end
|
865
|
+
class Promptpay < Stripe::StripeObject; end
|
866
|
+
class Qris < Stripe::StripeObject; end
|
867
|
+
class RadarOptions < Stripe::StripeObject
|
868
|
+
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
869
|
+
sig { returns(String) }
|
870
|
+
attr_reader :session
|
871
|
+
end
|
872
|
+
class Rechnung < Stripe::StripeObject
|
873
|
+
class Dob < Stripe::StripeObject
|
874
|
+
# The day of birth, between 1 and 31.
|
875
|
+
sig { returns(Integer) }
|
876
|
+
attr_reader :day
|
877
|
+
|
878
|
+
# The month of birth, between 1 and 12.
|
879
|
+
sig { returns(Integer) }
|
880
|
+
attr_reader :month
|
881
|
+
|
882
|
+
# The four-digit year of birth.
|
883
|
+
sig { returns(Integer) }
|
884
|
+
attr_reader :year
|
885
|
+
end
|
886
|
+
# Attribute for field dob
|
887
|
+
sig { returns(Dob) }
|
888
|
+
attr_reader :dob
|
889
|
+
end
|
890
|
+
class RevolutPay < Stripe::StripeObject; end
|
891
|
+
class SamsungPay < Stripe::StripeObject; end
|
892
|
+
class SepaDebit < Stripe::StripeObject
|
893
|
+
class GeneratedFrom < Stripe::StripeObject
|
894
|
+
# The ID of the Charge that generated this PaymentMethod, if any.
|
895
|
+
sig { returns(T.nilable(T.any(String, Stripe::Charge))) }
|
896
|
+
attr_reader :charge
|
897
|
+
|
898
|
+
# The ID of the SetupAttempt that generated this PaymentMethod, if any.
|
899
|
+
sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) }
|
900
|
+
attr_reader :setup_attempt
|
901
|
+
end
|
902
|
+
# Bank code of bank associated with the bank account.
|
903
|
+
sig { returns(T.nilable(String)) }
|
904
|
+
attr_reader :bank_code
|
905
|
+
|
906
|
+
# Branch code of bank associated with the bank account.
|
907
|
+
sig { returns(T.nilable(String)) }
|
908
|
+
attr_reader :branch_code
|
909
|
+
|
910
|
+
# Two-letter ISO code representing the country the bank account is located in.
|
911
|
+
sig { returns(T.nilable(String)) }
|
912
|
+
attr_reader :country
|
913
|
+
|
914
|
+
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
915
|
+
sig { returns(T.nilable(String)) }
|
916
|
+
attr_reader :fingerprint
|
917
|
+
|
918
|
+
# Information about the object that generated this PaymentMethod.
|
919
|
+
sig { returns(T.nilable(GeneratedFrom)) }
|
920
|
+
attr_reader :generated_from
|
921
|
+
|
922
|
+
# Last four characters of the IBAN.
|
923
|
+
sig { returns(T.nilable(String)) }
|
924
|
+
attr_reader :last4
|
925
|
+
end
|
926
|
+
class Shopeepay < Stripe::StripeObject; end
|
927
|
+
class Sofort < Stripe::StripeObject
|
928
|
+
# Two-letter ISO code representing the country the bank account is located in.
|
929
|
+
sig { returns(T.nilable(String)) }
|
930
|
+
attr_reader :country
|
931
|
+
end
|
932
|
+
class Swish < Stripe::StripeObject; end
|
933
|
+
class Twint < Stripe::StripeObject; end
|
934
|
+
class UsBankAccount < Stripe::StripeObject
|
935
|
+
class Networks < Stripe::StripeObject
|
936
|
+
# The preferred network.
|
937
|
+
sig { returns(T.nilable(String)) }
|
938
|
+
attr_reader :preferred
|
939
|
+
|
940
|
+
# All supported networks.
|
941
|
+
sig { returns(T::Array[String]) }
|
942
|
+
attr_reader :supported
|
943
|
+
end
|
944
|
+
class StatusDetails < Stripe::StripeObject
|
945
|
+
class Blocked < Stripe::StripeObject
|
946
|
+
# The ACH network code that resulted in this block.
|
947
|
+
sig { returns(T.nilable(String)) }
|
948
|
+
attr_reader :network_code
|
949
|
+
|
950
|
+
# The reason why this PaymentMethod's fingerprint has been blocked
|
951
|
+
sig { returns(T.nilable(String)) }
|
952
|
+
attr_reader :reason
|
953
|
+
end
|
954
|
+
# Attribute for field blocked
|
955
|
+
sig { returns(Blocked) }
|
956
|
+
attr_reader :blocked
|
957
|
+
end
|
958
|
+
# Account holder type: individual or company.
|
959
|
+
sig { returns(T.nilable(String)) }
|
960
|
+
attr_reader :account_holder_type
|
961
|
+
|
962
|
+
# Account number of the bank account.
|
963
|
+
sig { returns(T.nilable(String)) }
|
964
|
+
attr_reader :account_number
|
965
|
+
|
966
|
+
# Account type: checkings or savings. Defaults to checking if omitted.
|
967
|
+
sig { returns(T.nilable(String)) }
|
968
|
+
attr_reader :account_type
|
969
|
+
|
970
|
+
# The name of the bank.
|
971
|
+
sig { returns(T.nilable(String)) }
|
972
|
+
attr_reader :bank_name
|
973
|
+
|
974
|
+
# The ID of the Financial Connections Account used to create the payment method.
|
975
|
+
sig { returns(T.nilable(String)) }
|
976
|
+
attr_reader :financial_connections_account
|
977
|
+
|
978
|
+
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
979
|
+
sig { returns(T.nilable(String)) }
|
980
|
+
attr_reader :fingerprint
|
981
|
+
|
982
|
+
# Last four digits of the bank account number.
|
983
|
+
sig { returns(T.nilable(String)) }
|
984
|
+
attr_reader :last4
|
985
|
+
|
986
|
+
# Contains information about US bank account networks that can be used.
|
987
|
+
sig { returns(T.nilable(Networks)) }
|
988
|
+
attr_reader :networks
|
989
|
+
|
990
|
+
# Routing number of the bank account.
|
991
|
+
sig { returns(T.nilable(String)) }
|
992
|
+
attr_reader :routing_number
|
993
|
+
|
994
|
+
# Contains information about the future reusability of this PaymentMethod.
|
995
|
+
sig { returns(T.nilable(StatusDetails)) }
|
996
|
+
attr_reader :status_details
|
997
|
+
end
|
998
|
+
class WechatPay < Stripe::StripeObject; end
|
999
|
+
class Zip < Stripe::StripeObject; end
|
1000
|
+
# Attribute for field acss_debit
|
1001
|
+
sig { returns(AcssDebit) }
|
1002
|
+
attr_reader :acss_debit
|
1003
|
+
|
1004
|
+
# Attribute for field affirm
|
1005
|
+
sig { returns(Affirm) }
|
1006
|
+
attr_reader :affirm
|
1007
|
+
|
1008
|
+
# Attribute for field afterpay_clearpay
|
1009
|
+
sig { returns(AfterpayClearpay) }
|
1010
|
+
attr_reader :afterpay_clearpay
|
1011
|
+
|
1012
|
+
# Attribute for field alipay
|
1013
|
+
sig { returns(Alipay) }
|
1014
|
+
attr_reader :alipay
|
1015
|
+
|
1016
|
+
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
|
1017
|
+
sig { returns(String) }
|
1018
|
+
attr_reader :allow_redisplay
|
1019
|
+
|
1020
|
+
# Attribute for field alma
|
1021
|
+
sig { returns(Alma) }
|
1022
|
+
attr_reader :alma
|
1023
|
+
|
1024
|
+
# Attribute for field amazon_pay
|
1025
|
+
sig { returns(AmazonPay) }
|
1026
|
+
attr_reader :amazon_pay
|
1027
|
+
|
1028
|
+
# Attribute for field au_becs_debit
|
1029
|
+
sig { returns(AuBecsDebit) }
|
1030
|
+
attr_reader :au_becs_debit
|
1031
|
+
|
1032
|
+
# Attribute for field bacs_debit
|
1033
|
+
sig { returns(BacsDebit) }
|
1034
|
+
attr_reader :bacs_debit
|
1035
|
+
|
1036
|
+
# Attribute for field bancontact
|
1037
|
+
sig { returns(Bancontact) }
|
1038
|
+
attr_reader :bancontact
|
1039
|
+
|
1040
|
+
# Attribute for field billing_details
|
1041
|
+
sig { returns(BillingDetails) }
|
1042
|
+
attr_reader :billing_details
|
1043
|
+
|
1044
|
+
# Attribute for field blik
|
1045
|
+
sig { returns(Blik) }
|
1046
|
+
attr_reader :blik
|
1047
|
+
|
1048
|
+
# Attribute for field boleto
|
1049
|
+
sig { returns(Boleto) }
|
1050
|
+
attr_reader :boleto
|
1051
|
+
|
1052
|
+
# Attribute for field card
|
1053
|
+
sig { returns(Card) }
|
1054
|
+
attr_reader :card
|
1055
|
+
|
1056
|
+
# Attribute for field card_present
|
1057
|
+
sig { returns(CardPresent) }
|
1058
|
+
attr_reader :card_present
|
1059
|
+
|
1060
|
+
# Attribute for field cashapp
|
1061
|
+
sig { returns(Cashapp) }
|
1062
|
+
attr_reader :cashapp
|
1063
|
+
|
1064
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
1065
|
+
sig { returns(Integer) }
|
1066
|
+
attr_reader :created
|
1067
|
+
|
1068
|
+
# The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
|
1069
|
+
sig { returns(T.nilable(T.any(String, Stripe::Customer))) }
|
1070
|
+
attr_reader :customer
|
1071
|
+
|
1072
|
+
# Attribute for field customer_balance
|
1073
|
+
sig { returns(CustomerBalance) }
|
1074
|
+
attr_reader :customer_balance
|
1075
|
+
|
1076
|
+
# Attribute for field eps
|
1077
|
+
sig { returns(Eps) }
|
1078
|
+
attr_reader :eps
|
1079
|
+
|
1080
|
+
# Attribute for field fpx
|
1081
|
+
sig { returns(Fpx) }
|
1082
|
+
attr_reader :fpx
|
1083
|
+
|
1084
|
+
# Attribute for field giropay
|
1085
|
+
sig { returns(Giropay) }
|
1086
|
+
attr_reader :giropay
|
1087
|
+
|
1088
|
+
# Attribute for field gopay
|
1089
|
+
sig { returns(Gopay) }
|
1090
|
+
attr_reader :gopay
|
1091
|
+
|
1092
|
+
# Attribute for field grabpay
|
1093
|
+
sig { returns(Grabpay) }
|
1094
|
+
attr_reader :grabpay
|
1095
|
+
|
1096
|
+
# Unique identifier for the object.
|
1097
|
+
sig { returns(String) }
|
1098
|
+
attr_reader :id
|
1099
|
+
|
1100
|
+
# Attribute for field id_bank_transfer
|
1101
|
+
sig { returns(IdBankTransfer) }
|
1102
|
+
attr_reader :id_bank_transfer
|
1103
|
+
|
1104
|
+
# Attribute for field ideal
|
1105
|
+
sig { returns(Ideal) }
|
1106
|
+
attr_reader :ideal
|
1107
|
+
|
1108
|
+
# Attribute for field interac_present
|
1109
|
+
sig { returns(InteracPresent) }
|
1110
|
+
attr_reader :interac_present
|
1111
|
+
|
1112
|
+
# Attribute for field kakao_pay
|
1113
|
+
sig { returns(KakaoPay) }
|
1114
|
+
attr_reader :kakao_pay
|
1115
|
+
|
1116
|
+
# Attribute for field klarna
|
1117
|
+
sig { returns(Klarna) }
|
1118
|
+
attr_reader :klarna
|
1119
|
+
|
1120
|
+
# Attribute for field konbini
|
1121
|
+
sig { returns(Konbini) }
|
1122
|
+
attr_reader :konbini
|
1123
|
+
|
1124
|
+
# Attribute for field kr_card
|
1125
|
+
sig { returns(KrCard) }
|
1126
|
+
attr_reader :kr_card
|
1127
|
+
|
1128
|
+
# Attribute for field link
|
1129
|
+
sig { returns(Link) }
|
1130
|
+
attr_reader :link
|
1131
|
+
|
1132
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
1133
|
+
sig { returns(T::Boolean) }
|
1134
|
+
attr_reader :livemode
|
1135
|
+
|
1136
|
+
# Attribute for field mb_way
|
1137
|
+
sig { returns(MbWay) }
|
1138
|
+
attr_reader :mb_way
|
1139
|
+
|
1140
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
1141
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
1142
|
+
attr_reader :metadata
|
1143
|
+
|
1144
|
+
# Attribute for field mobilepay
|
1145
|
+
sig { returns(Mobilepay) }
|
1146
|
+
attr_reader :mobilepay
|
1147
|
+
|
1148
|
+
# Attribute for field multibanco
|
1149
|
+
sig { returns(Multibanco) }
|
1150
|
+
attr_reader :multibanco
|
1151
|
+
|
1152
|
+
# Attribute for field naver_pay
|
1153
|
+
sig { returns(NaverPay) }
|
1154
|
+
attr_reader :naver_pay
|
1155
|
+
|
1156
|
+
# String representing the object's type. Objects of the same type share the same value.
|
1157
|
+
sig { returns(String) }
|
1158
|
+
attr_reader :object
|
1159
|
+
|
1160
|
+
# Attribute for field oxxo
|
1161
|
+
sig { returns(Oxxo) }
|
1162
|
+
attr_reader :oxxo
|
1163
|
+
|
1164
|
+
# Attribute for field p24
|
1165
|
+
sig { returns(P24) }
|
1166
|
+
attr_reader :p24
|
1167
|
+
|
1168
|
+
# Attribute for field payco
|
1169
|
+
sig { returns(Payco) }
|
1170
|
+
attr_reader :payco
|
1171
|
+
|
1172
|
+
# Attribute for field paynow
|
1173
|
+
sig { returns(Paynow) }
|
1174
|
+
attr_reader :paynow
|
1175
|
+
|
1176
|
+
# Attribute for field paypal
|
1177
|
+
sig { returns(Paypal) }
|
1178
|
+
attr_reader :paypal
|
1179
|
+
|
1180
|
+
# Attribute for field payto
|
1181
|
+
sig { returns(Payto) }
|
1182
|
+
attr_reader :payto
|
1183
|
+
|
1184
|
+
# Attribute for field pix
|
1185
|
+
sig { returns(Pix) }
|
1186
|
+
attr_reader :pix
|
1187
|
+
|
1188
|
+
# Attribute for field promptpay
|
1189
|
+
sig { returns(Promptpay) }
|
1190
|
+
attr_reader :promptpay
|
1191
|
+
|
1192
|
+
# Attribute for field qris
|
1193
|
+
sig { returns(Qris) }
|
1194
|
+
attr_reader :qris
|
1195
|
+
|
1196
|
+
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1197
|
+
sig { returns(RadarOptions) }
|
1198
|
+
attr_reader :radar_options
|
1199
|
+
|
1200
|
+
# Attribute for field rechnung
|
1201
|
+
sig { returns(Rechnung) }
|
1202
|
+
attr_reader :rechnung
|
1203
|
+
|
1204
|
+
# Attribute for field revolut_pay
|
1205
|
+
sig { returns(RevolutPay) }
|
1206
|
+
attr_reader :revolut_pay
|
1207
|
+
|
1208
|
+
# Attribute for field samsung_pay
|
1209
|
+
sig { returns(SamsungPay) }
|
1210
|
+
attr_reader :samsung_pay
|
1211
|
+
|
1212
|
+
# Attribute for field sepa_debit
|
1213
|
+
sig { returns(SepaDebit) }
|
1214
|
+
attr_reader :sepa_debit
|
1215
|
+
|
1216
|
+
# Attribute for field shopeepay
|
1217
|
+
sig { returns(Shopeepay) }
|
1218
|
+
attr_reader :shopeepay
|
1219
|
+
|
1220
|
+
# Attribute for field sofort
|
1221
|
+
sig { returns(Sofort) }
|
1222
|
+
attr_reader :sofort
|
1223
|
+
|
1224
|
+
# Attribute for field swish
|
1225
|
+
sig { returns(Swish) }
|
1226
|
+
attr_reader :swish
|
1227
|
+
|
1228
|
+
# Attribute for field twint
|
1229
|
+
sig { returns(Twint) }
|
1230
|
+
attr_reader :twint
|
1231
|
+
|
1232
|
+
# 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.
|
1233
|
+
sig { returns(String) }
|
1234
|
+
attr_reader :type
|
1235
|
+
|
1236
|
+
# Attribute for field us_bank_account
|
1237
|
+
sig { returns(UsBankAccount) }
|
1238
|
+
attr_reader :us_bank_account
|
1239
|
+
|
1240
|
+
# Attribute for field wechat_pay
|
1241
|
+
sig { returns(WechatPay) }
|
1242
|
+
attr_reader :wechat_pay
|
1243
|
+
|
1244
|
+
# Attribute for field zip
|
1245
|
+
sig { returns(Zip) }
|
1246
|
+
attr_reader :zip
|
1247
|
+
|
1248
|
+
class ListParams < Stripe::RequestParams
|
1249
|
+
# The ID of the customer whose PaymentMethods will be retrieved.
|
1250
|
+
sig { returns(String) }
|
1251
|
+
attr_accessor :customer
|
1252
|
+
|
1253
|
+
# 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.
|
1254
|
+
sig { returns(String) }
|
1255
|
+
attr_accessor :ending_before
|
1256
|
+
|
1257
|
+
# Specifies which fields in the response should be expanded.
|
1258
|
+
sig { returns(T::Array[String]) }
|
1259
|
+
attr_accessor :expand
|
1260
|
+
|
1261
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
1262
|
+
sig { returns(Integer) }
|
1263
|
+
attr_accessor :limit
|
1264
|
+
|
1265
|
+
# 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.
|
1266
|
+
sig { returns(String) }
|
1267
|
+
attr_accessor :starting_after
|
1268
|
+
|
1269
|
+
# 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.
|
1270
|
+
sig { returns(String) }
|
1271
|
+
attr_accessor :type
|
1272
|
+
|
1273
|
+
sig {
|
1274
|
+
params(customer: String, ending_before: String, expand: T::Array[String], limit: Integer, starting_after: String, type: String).void
|
1275
|
+
}
|
1276
|
+
def initialize(
|
1277
|
+
customer: nil,
|
1278
|
+
ending_before: nil,
|
1279
|
+
expand: nil,
|
1280
|
+
limit: nil,
|
1281
|
+
starting_after: nil,
|
1282
|
+
type: nil
|
1283
|
+
); end
|
1284
|
+
end
|
1285
|
+
class CreateParams < Stripe::RequestParams
|
1286
|
+
class AcssDebit < Stripe::RequestParams
|
1287
|
+
# Customer's bank account number.
|
1288
|
+
sig { returns(String) }
|
1289
|
+
attr_accessor :account_number
|
1290
|
+
|
1291
|
+
# Institution number of the customer's bank.
|
1292
|
+
sig { returns(String) }
|
1293
|
+
attr_accessor :institution_number
|
1294
|
+
|
1295
|
+
# Transit number of the customer's bank.
|
1296
|
+
sig { returns(String) }
|
1297
|
+
attr_accessor :transit_number
|
1298
|
+
|
1299
|
+
sig {
|
1300
|
+
params(account_number: String, institution_number: String, transit_number: String).void
|
1301
|
+
}
|
1302
|
+
def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
|
1303
|
+
end
|
1304
|
+
class Affirm < Stripe::RequestParams
|
1305
|
+
|
1306
|
+
end
|
1307
|
+
class AfterpayClearpay < Stripe::RequestParams
|
1308
|
+
|
1309
|
+
end
|
1310
|
+
class Alipay < Stripe::RequestParams
|
1311
|
+
|
1312
|
+
end
|
1313
|
+
class Alma < Stripe::RequestParams
|
1314
|
+
|
1315
|
+
end
|
1316
|
+
class AmazonPay < Stripe::RequestParams
|
1317
|
+
|
1318
|
+
end
|
1319
|
+
class AuBecsDebit < Stripe::RequestParams
|
1320
|
+
# The account number for the bank account.
|
1321
|
+
sig { returns(String) }
|
1322
|
+
attr_accessor :account_number
|
1323
|
+
|
1324
|
+
# Bank-State-Branch number of the bank account.
|
1325
|
+
sig { returns(String) }
|
1326
|
+
attr_accessor :bsb_number
|
1327
|
+
|
1328
|
+
sig { params(account_number: String, bsb_number: String).void }
|
1329
|
+
def initialize(account_number: nil, bsb_number: nil); end
|
1330
|
+
end
|
1331
|
+
class BacsDebit < Stripe::RequestParams
|
1332
|
+
# Account number of the bank account that the funds will be debited from.
|
1333
|
+
sig { returns(String) }
|
1334
|
+
attr_accessor :account_number
|
1335
|
+
|
1336
|
+
# Sort code of the bank account. (e.g., `10-20-30`)
|
1337
|
+
sig { returns(String) }
|
1338
|
+
attr_accessor :sort_code
|
1339
|
+
|
1340
|
+
sig { params(account_number: String, sort_code: String).void }
|
1341
|
+
def initialize(account_number: nil, sort_code: nil); end
|
1342
|
+
end
|
1343
|
+
class Bancontact < Stripe::RequestParams
|
1344
|
+
|
1345
|
+
end
|
1346
|
+
class BillingDetails < Stripe::RequestParams
|
1347
|
+
class Address < Stripe::RequestParams
|
1348
|
+
# City, district, suburb, town, or village.
|
1349
|
+
sig { returns(String) }
|
1350
|
+
attr_accessor :city
|
1351
|
+
|
1352
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1353
|
+
sig { returns(String) }
|
1354
|
+
attr_accessor :country
|
1355
|
+
|
1356
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
1357
|
+
sig { returns(String) }
|
1358
|
+
attr_accessor :line1
|
1359
|
+
|
1360
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1361
|
+
sig { returns(String) }
|
1362
|
+
attr_accessor :line2
|
1363
|
+
|
1364
|
+
# ZIP or postal code.
|
1365
|
+
sig { returns(String) }
|
1366
|
+
attr_accessor :postal_code
|
1367
|
+
|
1368
|
+
# State, county, province, or region.
|
1369
|
+
sig { returns(String) }
|
1370
|
+
attr_accessor :state
|
1371
|
+
|
1372
|
+
sig {
|
1373
|
+
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
1374
|
+
}
|
1375
|
+
def initialize(
|
1376
|
+
city: nil,
|
1377
|
+
country: nil,
|
1378
|
+
line1: nil,
|
1379
|
+
line2: nil,
|
1380
|
+
postal_code: nil,
|
1381
|
+
state: nil
|
1382
|
+
); end
|
1383
|
+
end
|
1384
|
+
# Billing address.
|
1385
|
+
sig { returns(T.nilable(::Stripe::PaymentMethod::CreateParams::BillingDetails::Address)) }
|
1386
|
+
attr_accessor :address
|
1387
|
+
|
1388
|
+
# Email address.
|
1389
|
+
sig { returns(T.nilable(String)) }
|
1390
|
+
attr_accessor :email
|
1391
|
+
|
1392
|
+
# Full name.
|
1393
|
+
sig { returns(T.nilable(String)) }
|
1394
|
+
attr_accessor :name
|
1395
|
+
|
1396
|
+
# Billing phone number (including extension).
|
1397
|
+
sig { returns(T.nilable(String)) }
|
1398
|
+
attr_accessor :phone
|
1399
|
+
|
1400
|
+
sig {
|
1401
|
+
params(address: T.nilable(::Stripe::PaymentMethod::CreateParams::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
|
1402
|
+
}
|
1403
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
1404
|
+
end
|
1405
|
+
class Blik < Stripe::RequestParams
|
1406
|
+
|
1407
|
+
end
|
1408
|
+
class Boleto < Stripe::RequestParams
|
1409
|
+
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
1410
|
+
sig { returns(String) }
|
1411
|
+
attr_accessor :tax_id
|
1412
|
+
|
1413
|
+
sig { params(tax_id: String).void }
|
1414
|
+
def initialize(tax_id: nil); end
|
1415
|
+
end
|
1416
|
+
class Card < Stripe::RequestParams
|
1417
|
+
class Networks < Stripe::RequestParams
|
1418
|
+
# The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
|
1419
|
+
sig { returns(String) }
|
1420
|
+
attr_accessor :preferred
|
1421
|
+
|
1422
|
+
sig { params(preferred: String).void }
|
1423
|
+
def initialize(preferred: nil); end
|
1424
|
+
end
|
1425
|
+
# The card's CVC. It is highly recommended to always include this value.
|
1426
|
+
sig { returns(String) }
|
1427
|
+
attr_accessor :cvc
|
1428
|
+
|
1429
|
+
# Two-digit number representing the card's expiration month.
|
1430
|
+
sig { returns(Integer) }
|
1431
|
+
attr_accessor :exp_month
|
1432
|
+
|
1433
|
+
# Four-digit number representing the card's expiration year.
|
1434
|
+
sig { returns(Integer) }
|
1435
|
+
attr_accessor :exp_year
|
1436
|
+
|
1437
|
+
# Contains information about card networks used to process the payment.
|
1438
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Card::Networks) }
|
1439
|
+
attr_accessor :networks
|
1440
|
+
|
1441
|
+
# The card number, as a string without any separators.
|
1442
|
+
sig { returns(String) }
|
1443
|
+
attr_accessor :number
|
1444
|
+
|
1445
|
+
# For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format card: {token: "tok_visa"}.
|
1446
|
+
sig { returns(String) }
|
1447
|
+
attr_accessor :token
|
1448
|
+
|
1449
|
+
sig {
|
1450
|
+
params(cvc: String, exp_month: Integer, exp_year: Integer, networks: ::Stripe::PaymentMethod::CreateParams::Card::Networks, number: String, token: String).void
|
1451
|
+
}
|
1452
|
+
def initialize(
|
1453
|
+
cvc: nil,
|
1454
|
+
exp_month: nil,
|
1455
|
+
exp_year: nil,
|
1456
|
+
networks: nil,
|
1457
|
+
number: nil,
|
1458
|
+
token: nil
|
1459
|
+
); end
|
1460
|
+
end
|
1461
|
+
class Cashapp < Stripe::RequestParams
|
1462
|
+
|
1463
|
+
end
|
1464
|
+
class CustomerBalance < Stripe::RequestParams
|
1465
|
+
|
1466
|
+
end
|
1467
|
+
class Eps < Stripe::RequestParams
|
1468
|
+
# The customer's bank.
|
1469
|
+
sig { returns(String) }
|
1470
|
+
attr_accessor :bank
|
1471
|
+
|
1472
|
+
sig { params(bank: String).void }
|
1473
|
+
def initialize(bank: nil); end
|
1474
|
+
end
|
1475
|
+
class Fpx < Stripe::RequestParams
|
1476
|
+
# Account holder type for FPX transaction
|
1477
|
+
sig { returns(String) }
|
1478
|
+
attr_accessor :account_holder_type
|
1479
|
+
|
1480
|
+
# The customer's bank.
|
1481
|
+
sig { returns(String) }
|
1482
|
+
attr_accessor :bank
|
1483
|
+
|
1484
|
+
sig { params(account_holder_type: String, bank: String).void }
|
1485
|
+
def initialize(account_holder_type: nil, bank: nil); end
|
1486
|
+
end
|
1487
|
+
class Giropay < Stripe::RequestParams
|
1488
|
+
|
1489
|
+
end
|
1490
|
+
class Gopay < Stripe::RequestParams
|
1491
|
+
|
1492
|
+
end
|
1493
|
+
class Grabpay < Stripe::RequestParams
|
1494
|
+
|
1495
|
+
end
|
1496
|
+
class IdBankTransfer < Stripe::RequestParams
|
1497
|
+
# Bank where the account is held.
|
1498
|
+
sig { returns(String) }
|
1499
|
+
attr_accessor :bank
|
1500
|
+
|
1501
|
+
sig { params(bank: String).void }
|
1502
|
+
def initialize(bank: nil); end
|
1503
|
+
end
|
1504
|
+
class Ideal < Stripe::RequestParams
|
1505
|
+
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
1506
|
+
sig { returns(String) }
|
1507
|
+
attr_accessor :bank
|
1508
|
+
|
1509
|
+
sig { params(bank: String).void }
|
1510
|
+
def initialize(bank: nil); end
|
1511
|
+
end
|
1512
|
+
class InteracPresent < Stripe::RequestParams
|
1513
|
+
|
1514
|
+
end
|
1515
|
+
class KakaoPay < Stripe::RequestParams
|
1516
|
+
|
1517
|
+
end
|
1518
|
+
class Klarna < Stripe::RequestParams
|
1519
|
+
class Dob < Stripe::RequestParams
|
1520
|
+
# The day of birth, between 1 and 31.
|
1521
|
+
sig { returns(Integer) }
|
1522
|
+
attr_accessor :day
|
1523
|
+
|
1524
|
+
# The month of birth, between 1 and 12.
|
1525
|
+
sig { returns(Integer) }
|
1526
|
+
attr_accessor :month
|
1527
|
+
|
1528
|
+
# The four-digit year of birth.
|
1529
|
+
sig { returns(Integer) }
|
1530
|
+
attr_accessor :year
|
1531
|
+
|
1532
|
+
sig { params(day: Integer, month: Integer, year: Integer).void }
|
1533
|
+
def initialize(day: nil, month: nil, year: nil); end
|
1534
|
+
end
|
1535
|
+
# Customer's date of birth
|
1536
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Klarna::Dob) }
|
1537
|
+
attr_accessor :dob
|
1538
|
+
|
1539
|
+
sig { params(dob: ::Stripe::PaymentMethod::CreateParams::Klarna::Dob).void }
|
1540
|
+
def initialize(dob: nil); end
|
1541
|
+
end
|
1542
|
+
class Konbini < Stripe::RequestParams
|
1543
|
+
|
1544
|
+
end
|
1545
|
+
class KrCard < Stripe::RequestParams
|
1546
|
+
|
1547
|
+
end
|
1548
|
+
class Link < Stripe::RequestParams
|
1549
|
+
|
1550
|
+
end
|
1551
|
+
class MbWay < Stripe::RequestParams
|
1552
|
+
|
1553
|
+
end
|
1554
|
+
class Mobilepay < Stripe::RequestParams
|
1555
|
+
|
1556
|
+
end
|
1557
|
+
class Multibanco < Stripe::RequestParams
|
1558
|
+
|
1559
|
+
end
|
1560
|
+
class NaverPay < Stripe::RequestParams
|
1561
|
+
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
1562
|
+
sig { returns(String) }
|
1563
|
+
attr_accessor :funding
|
1564
|
+
|
1565
|
+
sig { params(funding: String).void }
|
1566
|
+
def initialize(funding: nil); end
|
1567
|
+
end
|
1568
|
+
class Oxxo < Stripe::RequestParams
|
1569
|
+
|
1570
|
+
end
|
1571
|
+
class P24 < Stripe::RequestParams
|
1572
|
+
# The customer's bank.
|
1573
|
+
sig { returns(String) }
|
1574
|
+
attr_accessor :bank
|
1575
|
+
|
1576
|
+
sig { params(bank: String).void }
|
1577
|
+
def initialize(bank: nil); end
|
1578
|
+
end
|
1579
|
+
class Payco < Stripe::RequestParams
|
1580
|
+
|
1581
|
+
end
|
1582
|
+
class Paynow < Stripe::RequestParams
|
1583
|
+
|
1584
|
+
end
|
1585
|
+
class Paypal < Stripe::RequestParams
|
1586
|
+
|
1587
|
+
end
|
1588
|
+
class Payto < Stripe::RequestParams
|
1589
|
+
# The account number for the bank account.
|
1590
|
+
sig { returns(String) }
|
1591
|
+
attr_accessor :account_number
|
1592
|
+
|
1593
|
+
# Bank-State-Branch number of the bank account.
|
1594
|
+
sig { returns(String) }
|
1595
|
+
attr_accessor :bsb_number
|
1596
|
+
|
1597
|
+
# The PayID alias for the bank account.
|
1598
|
+
sig { returns(String) }
|
1599
|
+
attr_accessor :pay_id
|
1600
|
+
|
1601
|
+
sig { params(account_number: String, bsb_number: String, pay_id: String).void }
|
1602
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil); end
|
1603
|
+
end
|
1604
|
+
class Pix < Stripe::RequestParams
|
1605
|
+
|
1606
|
+
end
|
1607
|
+
class Promptpay < Stripe::RequestParams
|
1608
|
+
|
1609
|
+
end
|
1610
|
+
class Qris < Stripe::RequestParams
|
1611
|
+
|
1612
|
+
end
|
1613
|
+
class RadarOptions < Stripe::RequestParams
|
1614
|
+
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
1615
|
+
sig { returns(String) }
|
1616
|
+
attr_accessor :session
|
1617
|
+
|
1618
|
+
sig { params(session: String).void }
|
1619
|
+
def initialize(session: nil); end
|
1620
|
+
end
|
1621
|
+
class Rechnung < Stripe::RequestParams
|
1622
|
+
class Dob < Stripe::RequestParams
|
1623
|
+
# The day of birth, between 1 and 31.
|
1624
|
+
sig { returns(Integer) }
|
1625
|
+
attr_accessor :day
|
1626
|
+
|
1627
|
+
# The month of birth, between 1 and 12.
|
1628
|
+
sig { returns(Integer) }
|
1629
|
+
attr_accessor :month
|
1630
|
+
|
1631
|
+
# The four-digit year of birth.
|
1632
|
+
sig { returns(Integer) }
|
1633
|
+
attr_accessor :year
|
1634
|
+
|
1635
|
+
sig { params(day: Integer, month: Integer, year: Integer).void }
|
1636
|
+
def initialize(day: nil, month: nil, year: nil); end
|
1637
|
+
end
|
1638
|
+
# Customer's date of birth
|
1639
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Rechnung::Dob) }
|
1640
|
+
attr_accessor :dob
|
1641
|
+
|
1642
|
+
sig { params(dob: ::Stripe::PaymentMethod::CreateParams::Rechnung::Dob).void }
|
1643
|
+
def initialize(dob: nil); end
|
1644
|
+
end
|
1645
|
+
class RevolutPay < Stripe::RequestParams
|
1646
|
+
|
1647
|
+
end
|
1648
|
+
class SamsungPay < Stripe::RequestParams
|
1649
|
+
|
1650
|
+
end
|
1651
|
+
class SepaDebit < Stripe::RequestParams
|
1652
|
+
# IBAN of the bank account.
|
1653
|
+
sig { returns(String) }
|
1654
|
+
attr_accessor :iban
|
1655
|
+
|
1656
|
+
sig { params(iban: String).void }
|
1657
|
+
def initialize(iban: nil); end
|
1658
|
+
end
|
1659
|
+
class Shopeepay < Stripe::RequestParams
|
1660
|
+
|
1661
|
+
end
|
1662
|
+
class Sofort < Stripe::RequestParams
|
1663
|
+
# Two-letter ISO code representing the country the bank account is located in.
|
1664
|
+
sig { returns(String) }
|
1665
|
+
attr_accessor :country
|
1666
|
+
|
1667
|
+
sig { params(country: String).void }
|
1668
|
+
def initialize(country: nil); end
|
1669
|
+
end
|
1670
|
+
class Swish < Stripe::RequestParams
|
1671
|
+
|
1672
|
+
end
|
1673
|
+
class Twint < Stripe::RequestParams
|
1674
|
+
|
1675
|
+
end
|
1676
|
+
class UsBankAccount < Stripe::RequestParams
|
1677
|
+
# Account holder type: individual or company.
|
1678
|
+
sig { returns(String) }
|
1679
|
+
attr_accessor :account_holder_type
|
1680
|
+
|
1681
|
+
# Account number of the bank account.
|
1682
|
+
sig { returns(String) }
|
1683
|
+
attr_accessor :account_number
|
1684
|
+
|
1685
|
+
# Account type: checkings or savings. Defaults to checking if omitted.
|
1686
|
+
sig { returns(String) }
|
1687
|
+
attr_accessor :account_type
|
1688
|
+
|
1689
|
+
# The ID of a Financial Connections Account to use as a payment method.
|
1690
|
+
sig { returns(String) }
|
1691
|
+
attr_accessor :financial_connections_account
|
1692
|
+
|
1693
|
+
# Routing number of the bank account.
|
1694
|
+
sig { returns(String) }
|
1695
|
+
attr_accessor :routing_number
|
1696
|
+
|
1697
|
+
sig {
|
1698
|
+
params(account_holder_type: String, account_number: String, account_type: String, financial_connections_account: String, routing_number: String).void
|
1699
|
+
}
|
1700
|
+
def initialize(
|
1701
|
+
account_holder_type: nil,
|
1702
|
+
account_number: nil,
|
1703
|
+
account_type: nil,
|
1704
|
+
financial_connections_account: nil,
|
1705
|
+
routing_number: nil
|
1706
|
+
); end
|
1707
|
+
end
|
1708
|
+
class WechatPay < Stripe::RequestParams
|
1709
|
+
|
1710
|
+
end
|
1711
|
+
class Zip < Stripe::RequestParams
|
1712
|
+
|
1713
|
+
end
|
1714
|
+
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
1715
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::AcssDebit) }
|
1716
|
+
attr_accessor :acss_debit
|
1717
|
+
|
1718
|
+
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
1719
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Affirm) }
|
1720
|
+
attr_accessor :affirm
|
1721
|
+
|
1722
|
+
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
1723
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::AfterpayClearpay) }
|
1724
|
+
attr_accessor :afterpay_clearpay
|
1725
|
+
|
1726
|
+
# If this is an `Alipay` PaymentMethod, this hash contains details about the Alipay payment method.
|
1727
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Alipay) }
|
1728
|
+
attr_accessor :alipay
|
1729
|
+
|
1730
|
+
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
|
1731
|
+
sig { returns(String) }
|
1732
|
+
attr_accessor :allow_redisplay
|
1733
|
+
|
1734
|
+
# If this is a Alma PaymentMethod, this hash contains details about the Alma payment method.
|
1735
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Alma) }
|
1736
|
+
attr_accessor :alma
|
1737
|
+
|
1738
|
+
# If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method.
|
1739
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::AmazonPay) }
|
1740
|
+
attr_accessor :amazon_pay
|
1741
|
+
|
1742
|
+
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
1743
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::AuBecsDebit) }
|
1744
|
+
attr_accessor :au_becs_debit
|
1745
|
+
|
1746
|
+
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
1747
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::BacsDebit) }
|
1748
|
+
attr_accessor :bacs_debit
|
1749
|
+
|
1750
|
+
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
1751
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Bancontact) }
|
1752
|
+
attr_accessor :bancontact
|
1753
|
+
|
1754
|
+
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
1755
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::BillingDetails) }
|
1756
|
+
attr_accessor :billing_details
|
1757
|
+
|
1758
|
+
# If this is a `blik` PaymentMethod, this hash contains details about the BLIK payment method.
|
1759
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Blik) }
|
1760
|
+
attr_accessor :blik
|
1761
|
+
|
1762
|
+
# If this is a `boleto` PaymentMethod, this hash contains details about the Boleto payment method.
|
1763
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Boleto) }
|
1764
|
+
attr_accessor :boleto
|
1765
|
+
|
1766
|
+
# If this is a `card` PaymentMethod, this hash contains the user's card details. For backwards compatibility, you can alternatively provide a Stripe token (e.g., for Apple Pay, Amex Express Checkout, or legacy Checkout) into the card hash with format `card: {token: "tok_visa"}`. When providing a card number, you must meet the requirements for [PCI compliance](https://stripe.com/docs/security#validating-pci-compliance). We strongly recommend using Stripe.js instead of interacting with this API directly.
|
1767
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Card) }
|
1768
|
+
attr_accessor :card
|
1769
|
+
|
1770
|
+
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
1771
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Cashapp) }
|
1772
|
+
attr_accessor :cashapp
|
1773
|
+
|
1774
|
+
# The `Customer` to whom the original PaymentMethod is attached.
|
1775
|
+
sig { returns(String) }
|
1776
|
+
attr_accessor :customer
|
1777
|
+
|
1778
|
+
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
1779
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::CustomerBalance) }
|
1780
|
+
attr_accessor :customer_balance
|
1781
|
+
|
1782
|
+
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
1783
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Eps) }
|
1784
|
+
attr_accessor :eps
|
1785
|
+
|
1786
|
+
# Specifies which fields in the response should be expanded.
|
1787
|
+
sig { returns(T::Array[String]) }
|
1788
|
+
attr_accessor :expand
|
1789
|
+
|
1790
|
+
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
1791
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Fpx) }
|
1792
|
+
attr_accessor :fpx
|
1793
|
+
|
1794
|
+
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
1795
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Giropay) }
|
1796
|
+
attr_accessor :giropay
|
1797
|
+
|
1798
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
1799
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Gopay) }
|
1800
|
+
attr_accessor :gopay
|
1801
|
+
|
1802
|
+
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
1803
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Grabpay) }
|
1804
|
+
attr_accessor :grabpay
|
1805
|
+
|
1806
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
1807
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::IdBankTransfer) }
|
1808
|
+
attr_accessor :id_bank_transfer
|
1809
|
+
|
1810
|
+
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
1811
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Ideal) }
|
1812
|
+
attr_accessor :ideal
|
1813
|
+
|
1814
|
+
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
1815
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::InteracPresent) }
|
1816
|
+
attr_accessor :interac_present
|
1817
|
+
|
1818
|
+
# If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method.
|
1819
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::KakaoPay) }
|
1820
|
+
attr_accessor :kakao_pay
|
1821
|
+
|
1822
|
+
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method.
|
1823
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Klarna) }
|
1824
|
+
attr_accessor :klarna
|
1825
|
+
|
1826
|
+
# If this is a `konbini` PaymentMethod, this hash contains details about the Konbini payment method.
|
1827
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Konbini) }
|
1828
|
+
attr_accessor :konbini
|
1829
|
+
|
1830
|
+
# If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method.
|
1831
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::KrCard) }
|
1832
|
+
attr_accessor :kr_card
|
1833
|
+
|
1834
|
+
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
1835
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Link) }
|
1836
|
+
attr_accessor :link
|
1837
|
+
|
1838
|
+
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
1839
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::MbWay) }
|
1840
|
+
attr_accessor :mb_way
|
1841
|
+
|
1842
|
+
# Set of [key-value pairs](https://stripe.com/docs/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`.
|
1843
|
+
sig { returns(T::Hash[String, String]) }
|
1844
|
+
attr_accessor :metadata
|
1845
|
+
|
1846
|
+
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
1847
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Mobilepay) }
|
1848
|
+
attr_accessor :mobilepay
|
1849
|
+
|
1850
|
+
# If this is a `multibanco` PaymentMethod, this hash contains details about the Multibanco payment method.
|
1851
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Multibanco) }
|
1852
|
+
attr_accessor :multibanco
|
1853
|
+
|
1854
|
+
# If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
1855
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::NaverPay) }
|
1856
|
+
attr_accessor :naver_pay
|
1857
|
+
|
1858
|
+
# If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
|
1859
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Oxxo) }
|
1860
|
+
attr_accessor :oxxo
|
1861
|
+
|
1862
|
+
# If this is a `p24` PaymentMethod, this hash contains details about the P24 payment method.
|
1863
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::P24) }
|
1864
|
+
attr_accessor :p24
|
1865
|
+
|
1866
|
+
# If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method.
|
1867
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Payco) }
|
1868
|
+
attr_accessor :payco
|
1869
|
+
|
1870
|
+
# The PaymentMethod to share.
|
1871
|
+
sig { returns(String) }
|
1872
|
+
attr_accessor :payment_method
|
1873
|
+
|
1874
|
+
# If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method.
|
1875
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Paynow) }
|
1876
|
+
attr_accessor :paynow
|
1877
|
+
|
1878
|
+
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
1879
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Paypal) }
|
1880
|
+
attr_accessor :paypal
|
1881
|
+
|
1882
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
1883
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Payto) }
|
1884
|
+
attr_accessor :payto
|
1885
|
+
|
1886
|
+
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
1887
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Pix) }
|
1888
|
+
attr_accessor :pix
|
1889
|
+
|
1890
|
+
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
1891
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Promptpay) }
|
1892
|
+
attr_accessor :promptpay
|
1893
|
+
|
1894
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
1895
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Qris) }
|
1896
|
+
attr_accessor :qris
|
1897
|
+
|
1898
|
+
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1899
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::RadarOptions) }
|
1900
|
+
attr_accessor :radar_options
|
1901
|
+
|
1902
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
1903
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Rechnung) }
|
1904
|
+
attr_accessor :rechnung
|
1905
|
+
|
1906
|
+
# If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
1907
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::RevolutPay) }
|
1908
|
+
attr_accessor :revolut_pay
|
1909
|
+
|
1910
|
+
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
1911
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::SamsungPay) }
|
1912
|
+
attr_accessor :samsung_pay
|
1913
|
+
|
1914
|
+
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
1915
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::SepaDebit) }
|
1916
|
+
attr_accessor :sepa_debit
|
1917
|
+
|
1918
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
1919
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Shopeepay) }
|
1920
|
+
attr_accessor :shopeepay
|
1921
|
+
|
1922
|
+
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
1923
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Sofort) }
|
1924
|
+
attr_accessor :sofort
|
1925
|
+
|
1926
|
+
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
1927
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Swish) }
|
1928
|
+
attr_accessor :swish
|
1929
|
+
|
1930
|
+
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
1931
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Twint) }
|
1932
|
+
attr_accessor :twint
|
1933
|
+
|
1934
|
+
# 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.
|
1935
|
+
sig { returns(String) }
|
1936
|
+
attr_accessor :type
|
1937
|
+
|
1938
|
+
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
1939
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::UsBankAccount) }
|
1940
|
+
attr_accessor :us_bank_account
|
1941
|
+
|
1942
|
+
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
1943
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::WechatPay) }
|
1944
|
+
attr_accessor :wechat_pay
|
1945
|
+
|
1946
|
+
# If this is a `zip` PaymentMethod, this hash contains details about the Zip payment method.
|
1947
|
+
sig { returns(::Stripe::PaymentMethod::CreateParams::Zip) }
|
1948
|
+
attr_accessor :zip
|
1949
|
+
|
1950
|
+
sig {
|
1951
|
+
params(acss_debit: ::Stripe::PaymentMethod::CreateParams::AcssDebit, affirm: ::Stripe::PaymentMethod::CreateParams::Affirm, afterpay_clearpay: ::Stripe::PaymentMethod::CreateParams::AfterpayClearpay, alipay: ::Stripe::PaymentMethod::CreateParams::Alipay, allow_redisplay: String, alma: ::Stripe::PaymentMethod::CreateParams::Alma, amazon_pay: ::Stripe::PaymentMethod::CreateParams::AmazonPay, au_becs_debit: ::Stripe::PaymentMethod::CreateParams::AuBecsDebit, bacs_debit: ::Stripe::PaymentMethod::CreateParams::BacsDebit, bancontact: ::Stripe::PaymentMethod::CreateParams::Bancontact, billing_details: ::Stripe::PaymentMethod::CreateParams::BillingDetails, blik: ::Stripe::PaymentMethod::CreateParams::Blik, boleto: ::Stripe::PaymentMethod::CreateParams::Boleto, card: ::Stripe::PaymentMethod::CreateParams::Card, cashapp: ::Stripe::PaymentMethod::CreateParams::Cashapp, customer: String, customer_balance: ::Stripe::PaymentMethod::CreateParams::CustomerBalance, eps: ::Stripe::PaymentMethod::CreateParams::Eps, expand: T::Array[String], fpx: ::Stripe::PaymentMethod::CreateParams::Fpx, giropay: ::Stripe::PaymentMethod::CreateParams::Giropay, gopay: ::Stripe::PaymentMethod::CreateParams::Gopay, grabpay: ::Stripe::PaymentMethod::CreateParams::Grabpay, id_bank_transfer: ::Stripe::PaymentMethod::CreateParams::IdBankTransfer, ideal: ::Stripe::PaymentMethod::CreateParams::Ideal, interac_present: ::Stripe::PaymentMethod::CreateParams::InteracPresent, kakao_pay: ::Stripe::PaymentMethod::CreateParams::KakaoPay, klarna: ::Stripe::PaymentMethod::CreateParams::Klarna, konbini: ::Stripe::PaymentMethod::CreateParams::Konbini, kr_card: ::Stripe::PaymentMethod::CreateParams::KrCard, link: ::Stripe::PaymentMethod::CreateParams::Link, mb_way: ::Stripe::PaymentMethod::CreateParams::MbWay, metadata: T::Hash[String, String], mobilepay: ::Stripe::PaymentMethod::CreateParams::Mobilepay, multibanco: ::Stripe::PaymentMethod::CreateParams::Multibanco, naver_pay: ::Stripe::PaymentMethod::CreateParams::NaverPay, oxxo: ::Stripe::PaymentMethod::CreateParams::Oxxo, p24: ::Stripe::PaymentMethod::CreateParams::P24, payco: ::Stripe::PaymentMethod::CreateParams::Payco, payment_method: String, paynow: ::Stripe::PaymentMethod::CreateParams::Paynow, paypal: ::Stripe::PaymentMethod::CreateParams::Paypal, payto: ::Stripe::PaymentMethod::CreateParams::Payto, pix: ::Stripe::PaymentMethod::CreateParams::Pix, promptpay: ::Stripe::PaymentMethod::CreateParams::Promptpay, qris: ::Stripe::PaymentMethod::CreateParams::Qris, radar_options: ::Stripe::PaymentMethod::CreateParams::RadarOptions, rechnung: ::Stripe::PaymentMethod::CreateParams::Rechnung, revolut_pay: ::Stripe::PaymentMethod::CreateParams::RevolutPay, samsung_pay: ::Stripe::PaymentMethod::CreateParams::SamsungPay, sepa_debit: ::Stripe::PaymentMethod::CreateParams::SepaDebit, shopeepay: ::Stripe::PaymentMethod::CreateParams::Shopeepay, sofort: ::Stripe::PaymentMethod::CreateParams::Sofort, swish: ::Stripe::PaymentMethod::CreateParams::Swish, twint: ::Stripe::PaymentMethod::CreateParams::Twint, type: String, us_bank_account: ::Stripe::PaymentMethod::CreateParams::UsBankAccount, wechat_pay: ::Stripe::PaymentMethod::CreateParams::WechatPay, zip: ::Stripe::PaymentMethod::CreateParams::Zip).void
|
1952
|
+
}
|
1953
|
+
def initialize(
|
1954
|
+
acss_debit: nil,
|
1955
|
+
affirm: nil,
|
1956
|
+
afterpay_clearpay: nil,
|
1957
|
+
alipay: nil,
|
1958
|
+
allow_redisplay: nil,
|
1959
|
+
alma: nil,
|
1960
|
+
amazon_pay: nil,
|
1961
|
+
au_becs_debit: nil,
|
1962
|
+
bacs_debit: nil,
|
1963
|
+
bancontact: nil,
|
1964
|
+
billing_details: nil,
|
1965
|
+
blik: nil,
|
1966
|
+
boleto: nil,
|
1967
|
+
card: nil,
|
1968
|
+
cashapp: nil,
|
1969
|
+
customer: nil,
|
1970
|
+
customer_balance: nil,
|
1971
|
+
eps: nil,
|
1972
|
+
expand: nil,
|
1973
|
+
fpx: nil,
|
1974
|
+
giropay: nil,
|
1975
|
+
gopay: nil,
|
1976
|
+
grabpay: nil,
|
1977
|
+
id_bank_transfer: nil,
|
1978
|
+
ideal: nil,
|
1979
|
+
interac_present: nil,
|
1980
|
+
kakao_pay: nil,
|
1981
|
+
klarna: nil,
|
1982
|
+
konbini: nil,
|
1983
|
+
kr_card: nil,
|
1984
|
+
link: nil,
|
1985
|
+
mb_way: nil,
|
1986
|
+
metadata: nil,
|
1987
|
+
mobilepay: nil,
|
1988
|
+
multibanco: nil,
|
1989
|
+
naver_pay: nil,
|
1990
|
+
oxxo: nil,
|
1991
|
+
p24: nil,
|
1992
|
+
payco: nil,
|
1993
|
+
payment_method: nil,
|
1994
|
+
paynow: nil,
|
1995
|
+
paypal: nil,
|
1996
|
+
payto: nil,
|
1997
|
+
pix: nil,
|
1998
|
+
promptpay: nil,
|
1999
|
+
qris: nil,
|
2000
|
+
radar_options: nil,
|
2001
|
+
rechnung: nil,
|
2002
|
+
revolut_pay: nil,
|
2003
|
+
samsung_pay: nil,
|
2004
|
+
sepa_debit: nil,
|
2005
|
+
shopeepay: nil,
|
2006
|
+
sofort: nil,
|
2007
|
+
swish: nil,
|
2008
|
+
twint: nil,
|
2009
|
+
type: nil,
|
2010
|
+
us_bank_account: nil,
|
2011
|
+
wechat_pay: nil,
|
2012
|
+
zip: nil
|
2013
|
+
); end
|
2014
|
+
end
|
2015
|
+
class RetrieveParams < Stripe::RequestParams
|
2016
|
+
# Specifies which fields in the response should be expanded.
|
2017
|
+
sig { returns(T::Array[String]) }
|
2018
|
+
attr_accessor :expand
|
2019
|
+
|
2020
|
+
sig { params(expand: T::Array[String]).void }
|
2021
|
+
def initialize(expand: nil); end
|
2022
|
+
end
|
2023
|
+
class UpdateParams < Stripe::RequestParams
|
2024
|
+
class BillingDetails < Stripe::RequestParams
|
2025
|
+
class Address < Stripe::RequestParams
|
2026
|
+
# City, district, suburb, town, or village.
|
2027
|
+
sig { returns(String) }
|
2028
|
+
attr_accessor :city
|
2029
|
+
|
2030
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2031
|
+
sig { returns(String) }
|
2032
|
+
attr_accessor :country
|
2033
|
+
|
2034
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
2035
|
+
sig { returns(String) }
|
2036
|
+
attr_accessor :line1
|
2037
|
+
|
2038
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2039
|
+
sig { returns(String) }
|
2040
|
+
attr_accessor :line2
|
2041
|
+
|
2042
|
+
# ZIP or postal code.
|
2043
|
+
sig { returns(String) }
|
2044
|
+
attr_accessor :postal_code
|
2045
|
+
|
2046
|
+
# State, county, province, or region.
|
2047
|
+
sig { returns(String) }
|
2048
|
+
attr_accessor :state
|
2049
|
+
|
2050
|
+
sig {
|
2051
|
+
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
2052
|
+
}
|
2053
|
+
def initialize(
|
2054
|
+
city: nil,
|
2055
|
+
country: nil,
|
2056
|
+
line1: nil,
|
2057
|
+
line2: nil,
|
2058
|
+
postal_code: nil,
|
2059
|
+
state: nil
|
2060
|
+
); end
|
2061
|
+
end
|
2062
|
+
# Billing address.
|
2063
|
+
sig { returns(T.nilable(::Stripe::PaymentMethod::UpdateParams::BillingDetails::Address)) }
|
2064
|
+
attr_accessor :address
|
2065
|
+
|
2066
|
+
# Email address.
|
2067
|
+
sig { returns(T.nilable(String)) }
|
2068
|
+
attr_accessor :email
|
2069
|
+
|
2070
|
+
# Full name.
|
2071
|
+
sig { returns(T.nilable(String)) }
|
2072
|
+
attr_accessor :name
|
2073
|
+
|
2074
|
+
# Billing phone number (including extension).
|
2075
|
+
sig { returns(T.nilable(String)) }
|
2076
|
+
attr_accessor :phone
|
2077
|
+
|
2078
|
+
sig {
|
2079
|
+
params(address: T.nilable(::Stripe::PaymentMethod::UpdateParams::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void
|
2080
|
+
}
|
2081
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil); end
|
2082
|
+
end
|
2083
|
+
class Card < Stripe::RequestParams
|
2084
|
+
class Networks < Stripe::RequestParams
|
2085
|
+
# The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card.
|
2086
|
+
sig { returns(T.nilable(String)) }
|
2087
|
+
attr_accessor :preferred
|
2088
|
+
|
2089
|
+
sig { params(preferred: T.nilable(String)).void }
|
2090
|
+
def initialize(preferred: nil); end
|
2091
|
+
end
|
2092
|
+
# Two-digit number representing the card's expiration month.
|
2093
|
+
sig { returns(Integer) }
|
2094
|
+
attr_accessor :exp_month
|
2095
|
+
|
2096
|
+
# Four-digit number representing the card's expiration year.
|
2097
|
+
sig { returns(Integer) }
|
2098
|
+
attr_accessor :exp_year
|
2099
|
+
|
2100
|
+
# Contains information about card networks used to process the payment.
|
2101
|
+
sig { returns(::Stripe::PaymentMethod::UpdateParams::Card::Networks) }
|
2102
|
+
attr_accessor :networks
|
2103
|
+
|
2104
|
+
sig {
|
2105
|
+
params(exp_month: Integer, exp_year: Integer, networks: ::Stripe::PaymentMethod::UpdateParams::Card::Networks).void
|
2106
|
+
}
|
2107
|
+
def initialize(exp_month: nil, exp_year: nil, networks: nil); end
|
2108
|
+
end
|
2109
|
+
class Link < Stripe::RequestParams
|
2110
|
+
|
2111
|
+
end
|
2112
|
+
class NaverPay < Stripe::RequestParams
|
2113
|
+
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
2114
|
+
sig { returns(String) }
|
2115
|
+
attr_accessor :funding
|
2116
|
+
|
2117
|
+
sig { params(funding: String).void }
|
2118
|
+
def initialize(funding: nil); end
|
2119
|
+
end
|
2120
|
+
class Payto < Stripe::RequestParams
|
2121
|
+
# The account number for the bank account.
|
2122
|
+
sig { returns(String) }
|
2123
|
+
attr_accessor :account_number
|
2124
|
+
|
2125
|
+
# Bank-State-Branch number of the bank account.
|
2126
|
+
sig { returns(String) }
|
2127
|
+
attr_accessor :bsb_number
|
2128
|
+
|
2129
|
+
# The PayID alias for the bank account.
|
2130
|
+
sig { returns(String) }
|
2131
|
+
attr_accessor :pay_id
|
2132
|
+
|
2133
|
+
sig { params(account_number: String, bsb_number: String, pay_id: String).void }
|
2134
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil); end
|
2135
|
+
end
|
2136
|
+
class UsBankAccount < Stripe::RequestParams
|
2137
|
+
# Bank account holder type.
|
2138
|
+
sig { returns(String) }
|
2139
|
+
attr_accessor :account_holder_type
|
2140
|
+
|
2141
|
+
# Bank account type.
|
2142
|
+
sig { returns(String) }
|
2143
|
+
attr_accessor :account_type
|
2144
|
+
|
2145
|
+
sig { params(account_holder_type: String, account_type: String).void }
|
2146
|
+
def initialize(account_holder_type: nil, account_type: nil); end
|
2147
|
+
end
|
2148
|
+
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to `unspecified`.
|
2149
|
+
sig { returns(String) }
|
2150
|
+
attr_accessor :allow_redisplay
|
2151
|
+
|
2152
|
+
# Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
|
2153
|
+
sig { returns(::Stripe::PaymentMethod::UpdateParams::BillingDetails) }
|
2154
|
+
attr_accessor :billing_details
|
2155
|
+
|
2156
|
+
# If this is a `card` PaymentMethod, this hash contains the user's card details.
|
2157
|
+
sig { returns(::Stripe::PaymentMethod::UpdateParams::Card) }
|
2158
|
+
attr_accessor :card
|
2159
|
+
|
2160
|
+
# Specifies which fields in the response should be expanded.
|
2161
|
+
sig { returns(T::Array[String]) }
|
2162
|
+
attr_accessor :expand
|
2163
|
+
|
2164
|
+
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
2165
|
+
sig { returns(::Stripe::PaymentMethod::UpdateParams::Link) }
|
2166
|
+
attr_accessor :link
|
2167
|
+
|
2168
|
+
# Set of [key-value pairs](https://stripe.com/docs/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`.
|
2169
|
+
sig { returns(T.nilable(T::Hash[String, String])) }
|
2170
|
+
attr_accessor :metadata
|
2171
|
+
|
2172
|
+
# If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method.
|
2173
|
+
sig { returns(::Stripe::PaymentMethod::UpdateParams::NaverPay) }
|
2174
|
+
attr_accessor :naver_pay
|
2175
|
+
|
2176
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
2177
|
+
sig { returns(::Stripe::PaymentMethod::UpdateParams::Payto) }
|
2178
|
+
attr_accessor :payto
|
2179
|
+
|
2180
|
+
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
2181
|
+
sig { returns(::Stripe::PaymentMethod::UpdateParams::UsBankAccount) }
|
2182
|
+
attr_accessor :us_bank_account
|
2183
|
+
|
2184
|
+
sig {
|
2185
|
+
params(allow_redisplay: String, billing_details: ::Stripe::PaymentMethod::UpdateParams::BillingDetails, card: ::Stripe::PaymentMethod::UpdateParams::Card, expand: T::Array[String], link: ::Stripe::PaymentMethod::UpdateParams::Link, metadata: T.nilable(T::Hash[String, String]), naver_pay: ::Stripe::PaymentMethod::UpdateParams::NaverPay, payto: ::Stripe::PaymentMethod::UpdateParams::Payto, us_bank_account: ::Stripe::PaymentMethod::UpdateParams::UsBankAccount).void
|
2186
|
+
}
|
2187
|
+
def initialize(
|
2188
|
+
allow_redisplay: nil,
|
2189
|
+
billing_details: nil,
|
2190
|
+
card: nil,
|
2191
|
+
expand: nil,
|
2192
|
+
link: nil,
|
2193
|
+
metadata: nil,
|
2194
|
+
naver_pay: nil,
|
2195
|
+
payto: nil,
|
2196
|
+
us_bank_account: nil
|
2197
|
+
); end
|
2198
|
+
end
|
2199
|
+
class AttachParams < Stripe::RequestParams
|
2200
|
+
# The ID of the customer to which to attach the PaymentMethod.
|
2201
|
+
sig { returns(String) }
|
2202
|
+
attr_accessor :customer
|
2203
|
+
|
2204
|
+
# Specifies which fields in the response should be expanded.
|
2205
|
+
sig { returns(T::Array[String]) }
|
2206
|
+
attr_accessor :expand
|
2207
|
+
|
2208
|
+
sig { params(customer: String, expand: T::Array[String]).void }
|
2209
|
+
def initialize(customer: nil, expand: nil); end
|
2210
|
+
end
|
2211
|
+
class DetachParams < Stripe::RequestParams
|
2212
|
+
# Specifies which fields in the response should be expanded.
|
2213
|
+
sig { returns(T::Array[String]) }
|
2214
|
+
attr_accessor :expand
|
2215
|
+
|
2216
|
+
sig { params(expand: T::Array[String]).void }
|
2217
|
+
def initialize(expand: nil); end
|
2218
|
+
end
|
2219
|
+
# Attaches a PaymentMethod object to a Customer.
|
2220
|
+
#
|
2221
|
+
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
2222
|
+
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
2223
|
+
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
2224
|
+
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
2225
|
+
# future use, which makes later declines and payment friction more likely.
|
2226
|
+
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
2227
|
+
# future payments.
|
2228
|
+
#
|
2229
|
+
# To use this PaymentMethod as the default for invoice or subscription payments,
|
2230
|
+
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
2231
|
+
# on the Customer to the PaymentMethod's ID.
|
2232
|
+
sig {
|
2233
|
+
params(params: T.any(::Stripe::PaymentMethod::AttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
2234
|
+
}
|
2235
|
+
def attach(params = {}, opts = {}); end
|
2236
|
+
|
2237
|
+
# Attaches a PaymentMethod object to a Customer.
|
2238
|
+
#
|
2239
|
+
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
2240
|
+
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
2241
|
+
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
2242
|
+
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
2243
|
+
# future use, which makes later declines and payment friction more likely.
|
2244
|
+
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
2245
|
+
# future payments.
|
2246
|
+
#
|
2247
|
+
# To use this PaymentMethod as the default for invoice or subscription payments,
|
2248
|
+
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
2249
|
+
# on the Customer to the PaymentMethod's ID.
|
2250
|
+
sig {
|
2251
|
+
params(payment_method: String, params: T.any(::Stripe::PaymentMethod::AttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
2252
|
+
}
|
2253
|
+
def self.attach(payment_method, params = {}, opts = {}); end
|
2254
|
+
|
2255
|
+
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
2256
|
+
#
|
2257
|
+
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
2258
|
+
sig {
|
2259
|
+
params(params: T.any(::Stripe::PaymentMethod::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
2260
|
+
}
|
2261
|
+
def self.create(params = {}, opts = {}); end
|
2262
|
+
|
2263
|
+
# Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.
|
2264
|
+
sig {
|
2265
|
+
params(params: T.any(::Stripe::PaymentMethod::DetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
2266
|
+
}
|
2267
|
+
def detach(params = {}, opts = {}); end
|
2268
|
+
|
2269
|
+
# Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.
|
2270
|
+
sig {
|
2271
|
+
params(payment_method: String, params: T.any(::Stripe::PaymentMethod::DetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
2272
|
+
}
|
2273
|
+
def self.detach(payment_method, params = {}, opts = {}); end
|
2274
|
+
|
2275
|
+
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
|
2276
|
+
sig {
|
2277
|
+
params(params: T.any(::Stripe::PaymentMethod::ListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject)
|
2278
|
+
}
|
2279
|
+
def self.list(params = {}, opts = {}); end
|
2280
|
+
|
2281
|
+
# Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.
|
2282
|
+
sig {
|
2283
|
+
params(id: String, params: T.any(::Stripe::PaymentMethod::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod)
|
2284
|
+
}
|
2285
|
+
def self.update(id, params = {}, opts = {}); end
|
2286
|
+
end
|
2287
|
+
end
|