stripe 15.3.0.pre.beta.1 → 15.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/API_VERSION +1 -0
- data/CHANGELOG.md +683 -1581
- data/OPENAPI_VERSION +1 -1
- data/README.md +14 -50
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +0 -28
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/errors.rb +0 -54
- data/lib/stripe/event_types.rb +0 -98
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +1 -1
- data/lib/stripe/object_types.rb +0 -50
- data/lib/stripe/resources/account.rb +82 -650
- data/lib/stripe/resources/account_session.rb +80 -335
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -4
- data/lib/stripe/resources/billing/credit_grant.rb +0 -10
- data/lib/stripe/resources/billing_portal/session.rb +2 -8
- data/lib/stripe/resources/card.rb +0 -2
- data/lib/stripe/resources/cash_balance.rb +0 -2
- data/lib/stripe/resources/charge.rb +28 -1553
- data/lib/stripe/resources/checkout/session.rb +55 -333
- data/lib/stripe/resources/confirmation_token.rb +19 -181
- data/lib/stripe/resources/coupon.rb +1 -30
- data/lib/stripe/resources/credit_note.rb +9 -15
- data/lib/stripe/resources/credit_note_line_item.rb +0 -9
- data/lib/stripe/resources/customer.rb +0 -2
- data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
- data/lib/stripe/resources/customer_session.rb +3 -8
- data/lib/stripe/resources/discount.rb +0 -2
- data/lib/stripe/resources/event.rb +1 -32
- data/lib/stripe/resources/financial_connections/account.rb +1 -22
- data/lib/stripe/resources/financial_connections/session.rb +2 -62
- data/lib/stripe/resources/identity/verification_session.rb +34 -10
- data/lib/stripe/resources/invoice.rb +33 -1062
- data/lib/stripe/resources/invoice_item.rb +3 -82
- data/lib/stripe/resources/invoice_line_item.rb +1 -55
- data/lib/stripe/resources/invoice_payment.rb +53 -2
- data/lib/stripe/resources/issuing/cardholder.rb +1 -2
- data/lib/stripe/resources/issuing/transaction.rb +0 -6
- data/lib/stripe/resources/line_item.rb +0 -37
- data/lib/stripe/resources/mandate.rb +3 -24
- data/lib/stripe/resources/payment_intent.rb +875 -5512
- data/lib/stripe/resources/payment_method.rb +18 -201
- data/lib/stripe/resources/payment_method_configuration.rb +0 -295
- data/lib/stripe/resources/payout.rb +0 -6
- data/lib/stripe/resources/price.rb +0 -30
- data/lib/stripe/resources/promotion_code.rb +0 -10
- data/lib/stripe/resources/quote.rb +16 -2033
- data/lib/stripe/resources/refund.rb +0 -9
- data/lib/stripe/resources/setup_attempt.rb +1 -22
- data/lib/stripe/resources/setup_intent.rb +294 -581
- data/lib/stripe/resources/source.rb +0 -29
- data/lib/stripe/resources/subscription.rb +36 -298
- data/lib/stripe/resources/subscription_item.rb +3 -84
- data/lib/stripe/resources/subscription_schedule.rb +27 -1008
- data/lib/stripe/resources/tax/registration.rb +20 -0
- data/lib/stripe/resources/tax_id.rb +2 -12
- data/lib/stripe/resources/terminal/configuration.rb +1 -0
- data/lib/stripe/resources/terminal/reader.rb +10 -18
- data/lib/stripe/resources/token.rb +1 -1
- data/lib/stripe/resources/transfer.rb +0 -6
- data/lib/stripe/resources/treasury/financial_account.rb +8 -23
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -37
- data/lib/stripe/resources/treasury/received_credit.rb +1 -38
- data/lib/stripe/resources/treasury/received_debit.rb +1 -40
- data/lib/stripe/resources.rb +0 -104
- data/lib/stripe/services/account_service.rb +76 -559
- data/lib/stripe/services/account_session_service.rb +49 -274
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -4
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -4
- data/lib/stripe/services/billing/credit_grant_service.rb +0 -8
- data/lib/stripe/services/billing_portal/session_service.rb +1 -5
- data/lib/stripe/services/charge_service.rb +0 -1418
- data/lib/stripe/services/checkout/session_service.rb +55 -250
- data/lib/stripe/services/coupon_service.rb +1 -17
- data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
- data/lib/stripe/services/credit_note_service.rb +6 -10
- data/lib/stripe/services/customer_session_service.rb +2 -5
- data/lib/stripe/services/financial_connections/account_service.rb +2 -7
- data/lib/stripe/services/financial_connections/session_service.rb +2 -34
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/identity/verification_session_service.rb +16 -8
- data/lib/stripe/services/invoice_item_service.rb +2 -74
- data/lib/stripe/services/invoice_line_item_service.rb +1 -33
- data/lib/stripe/services/invoice_payment_service.rb +83 -0
- data/lib/stripe/services/invoice_service.rb +33 -1013
- data/lib/stripe/services/issuing/cardholder_service.rb +1 -2
- data/lib/stripe/services/issuing/transaction_service.rb +0 -4
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/payment_intent_service.rb +650 -4832
- data/lib/stripe/services/payment_method_configuration_service.rb +0 -210
- data/lib/stripe/services/payment_method_service.rb +6 -120
- data/lib/stripe/services/payout_service.rb +0 -4
- data/lib/stripe/services/price_service.rb +0 -19
- data/lib/stripe/services/promotion_code_service.rb +0 -8
- data/lib/stripe/services/quote_service.rb +13 -1719
- data/lib/stripe/services/setup_intent_service.rb +284 -540
- data/lib/stripe/services/subscription_item_service.rb +3 -75
- data/lib/stripe/services/subscription_schedule_service.rb +19 -911
- data/lib/stripe/services/subscription_service.rb +30 -253
- data/lib/stripe/services/tax/registration_service.rb +13 -0
- data/lib/stripe/services/tax_id_service.rb +2 -8
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/reader_service.rb +4 -4
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +6 -98
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -25
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -25
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/transfer_service.rb +0 -4
- data/lib/stripe/services/treasury/financial_account_features_service.rb +1 -4
- data/lib/stripe/services/treasury/financial_account_service.rb +7 -17
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -24
- data/lib/stripe/services/v1_services.rb +2 -11
- data/lib/stripe/services/v2/billing_service.rb +2 -2
- data/lib/stripe/services/v2/core/event_destination_service.rb +16 -16
- data/lib/stripe/services/v2/core_service.rb +1 -4
- data/lib/stripe/services/v2_services.rb +2 -5
- data/lib/stripe/services.rb +1 -53
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/lib/stripe.rb +0 -53
- data/rbi/stripe/resources/account.rbi +4995 -0
- data/rbi/stripe/resources/account_link.rbi +74 -0
- data/rbi/stripe/resources/account_session.rbi +1013 -0
- data/rbi/stripe/resources/apple_pay_domain.rbi +88 -0
- data/rbi/stripe/resources/application.rbi +20 -0
- data/rbi/stripe/resources/application_fee.rbi +118 -0
- data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
- data/rbi/stripe/resources/apps/secret.rbi +195 -0
- data/rbi/stripe/resources/balance.rbi +235 -0
- data/rbi/stripe/resources/balance_transaction.rbi +147 -0
- data/rbi/stripe/resources/bank_account.rbi +127 -0
- data/rbi/stripe/resources/billing/alert.rbi +201 -0
- data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
- data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
- data/rbi/stripe/resources/billing/meter.rbi +226 -0
- data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
- data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
- data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
- data/rbi/stripe/resources/capability.rbi +125 -0
- data/rbi/stripe/resources/card.rbi +125 -0
- data/rbi/stripe/resources/cash_balance.rbi +32 -0
- data/rbi/stripe/resources/charge.rbi +2086 -0
- data/rbi/stripe/resources/checkout/session.rbi +4060 -0
- data/rbi/stripe/resources/climate/order.rbi +245 -0
- data/rbi/stripe/resources/climate/product.rbi +75 -0
- data/rbi/stripe/resources/climate/supplier.rbi +72 -0
- data/rbi/stripe/resources/confirmation_token.rbi +1818 -0
- data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
- data/rbi/stripe/resources/country_spec.rbi +85 -0
- data/rbi/stripe/resources/coupon.rbi +250 -0
- data/rbi/stripe/resources/credit_note.rbi +752 -0
- data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
- data/rbi/stripe/resources/customer.rbi +1005 -0
- data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
- data/rbi/stripe/resources/customer_session.rbi +200 -0
- data/rbi/stripe/resources/discount.rbi +53 -0
- data/rbi/stripe/resources/dispute.rbi +761 -0
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
- data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
- data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
- data/rbi/stripe/resources/event.rbi +149 -0
- data/rbi/stripe/resources/exchange_rate.rbi +66 -0
- data/rbi/stripe/resources/file.rbi +143 -0
- data/rbi/stripe/resources/file_link.rbi +141 -0
- data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
- data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
- data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
- data/rbi/stripe/resources/forwarding/request.rbi +216 -0
- data/rbi/stripe/resources/funding_instructions.rbi +437 -0
- data/rbi/stripe/resources/identity/verification_report.rbi +360 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +564 -0
- data/rbi/stripe/resources/invoice.rbi +3842 -0
- data/rbi/stripe/resources/invoice_item.rbi +470 -0
- data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
- data/rbi/stripe/resources/invoice_payment.rbi +121 -0
- data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
- data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
- data/rbi/stripe/resources/issuing/card.rbi +741 -0
- data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
- data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
- data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
- data/rbi/stripe/resources/issuing/token.rbi +226 -0
- data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
- data/rbi/stripe/resources/line_item.rbi +72 -0
- data/rbi/stripe/resources/login_link.rbi +19 -0
- data/rbi/stripe/resources/mandate.rbi +191 -0
- data/rbi/stripe/resources/payment_intent.rbi +9987 -0
- data/rbi/stripe/resources/payment_link.rbi +1801 -0
- data/rbi/stripe/resources/payment_method.rbi +1770 -0
- data/rbi/stripe/resources/payment_method_configuration.rbi +3550 -0
- data/rbi/stripe/resources/payment_method_domain.rbi +228 -0
- data/rbi/stripe/resources/payout.rbi +300 -0
- data/rbi/stripe/resources/person.rbi +401 -0
- data/rbi/stripe/resources/plan.rbi +371 -0
- data/rbi/stripe/resources/price.rbi +694 -0
- data/rbi/stripe/resources/product.rbi +555 -0
- data/rbi/stripe/resources/product_feature.rbi +26 -0
- data/rbi/stripe/resources/promotion_code.rbi +261 -0
- data/rbi/stripe/resources/quote.rbi +1145 -0
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
- data/rbi/stripe/resources/radar/value_list.rbi +168 -0
- data/rbi/stripe/resources/radar/value_list_item.rbi +129 -0
- data/rbi/stripe/resources/refund.rbi +523 -0
- data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
- data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
- data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
- data/rbi/stripe/resources/reversal.rbi +51 -0
- data/rbi/stripe/resources/review.rbi +154 -0
- data/rbi/stripe/resources/setup_attempt.rbi +477 -0
- data/rbi/stripe/resources/setup_intent.rbi +3978 -0
- data/rbi/stripe/resources/shipping_rate.rbi +305 -0
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
- data/rbi/stripe/resources/source.rbi +1496 -0
- data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
- data/rbi/stripe/resources/source_transaction.rbi +127 -0
- data/rbi/stripe/resources/subscription.rbi +2080 -0
- data/rbi/stripe/resources/subscription_item.rbi +404 -0
- data/rbi/stripe/resources/subscription_schedule.rbi +1645 -0
- data/rbi/stripe/resources/tax/calculation.rbi +478 -0
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +91 -0
- data/rbi/stripe/resources/tax/registration.rbi +2732 -0
- data/rbi/stripe/resources/tax/settings.rbi +141 -0
- data/rbi/stripe/resources/tax/transaction.rbi +351 -0
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
- data/rbi/stripe/resources/tax_code.rbi +44 -0
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
- data/rbi/stripe/resources/tax_id.rbi +165 -0
- data/rbi/stripe/resources/tax_rate.rbi +239 -0
- data/rbi/stripe/resources/terminal/configuration.rbi +1387 -0
- data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
- data/rbi/stripe/resources/terminal/location.rbi +222 -0
- data/rbi/stripe/resources/terminal/reader.rbi +994 -0
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +132 -0
- data/rbi/stripe/resources/token.rbi +1283 -0
- data/rbi/stripe/resources/topup.rbi +222 -0
- data/rbi/stripe/resources/transfer.rbi +199 -0
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
- data/rbi/stripe/resources/treasury/financial_account.rbi +869 -0
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
- data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
- data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
- data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
- data/rbi/stripe/resources/v2/amount.rbi +14 -0
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
- data/rbi/stripe/resources/v2/event.rbi +48 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +168 -0
- data/rbi/stripe/services/account_capability_service.rbi +51 -0
- data/{lib/stripe/services/external_account_service.rb → rbi/stripe/services/account_external_account_service.rbi} +122 -135
- data/rbi/stripe/services/account_link_service.rbi +58 -0
- data/rbi/stripe/services/account_login_link_service.rbi +22 -0
- data/rbi/stripe/services/account_person_service.rbi +1011 -0
- data/rbi/stripe/services/account_service.rbi +4281 -0
- data/rbi/stripe/services/account_session_service.rbi +646 -0
- data/rbi/stripe/services/apple_pay_domain_service.rbi +76 -0
- data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
- data/rbi/stripe/services/application_fee_service.rbi +78 -0
- data/rbi/stripe/services/apps/secret_service.rbi +151 -0
- data/rbi/stripe/services/apps_service.rbi +9 -0
- data/rbi/stripe/services/balance_service.rbi +21 -0
- data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
- data/rbi/stripe/services/billing/alert_service.rbi +152 -0
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
- data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
- data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
- data/rbi/stripe/services/billing/meter_service.rbi +163 -0
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
- data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
- data/rbi/stripe/services/billing_portal_service.rbi +10 -0
- data/rbi/stripe/services/billing_service.rbi +15 -0
- data/rbi/stripe/services/charge_service.rbi +448 -0
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
- data/rbi/stripe/services/checkout/session_service.rbi +2670 -0
- data/rbi/stripe/services/checkout_service.rbi +9 -0
- data/rbi/stripe/services/climate/order_service.rbi +142 -0
- data/rbi/stripe/services/climate/product_service.rbi +46 -0
- data/{lib/stripe/services/financial_connections/institution_service.rb → rbi/stripe/services/climate/supplier_service.rbi} +25 -36
- data/rbi/stripe/services/climate_service.rbi +11 -0
- data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
- data/rbi/stripe/services/country_spec_service.rbi +44 -0
- data/rbi/stripe/services/coupon_service.rbi +194 -0
- data/{lib/stripe/services/quote_preview_invoice_service.rb → rbi/stripe/services/credit_note_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
- data/rbi/stripe/services/credit_note_service.rbi +415 -0
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
- data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
- data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
- data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
- data/rbi/stripe/services/customer_service.rbi +647 -0
- data/rbi/stripe/services/customer_session_service.rbi +116 -0
- data/rbi/stripe/services/customer_tax_id_service.rbi +70 -0
- data/rbi/stripe/services/dispute_service.rbi +424 -0
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
- data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
- data/rbi/stripe/services/entitlements_service.rbi +10 -0
- data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
- data/rbi/stripe/services/event_service.rbi +83 -0
- data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
- data/rbi/stripe/services/file_link_service.rbi +124 -0
- data/rbi/stripe/services/file_service.rbi +116 -0
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
- data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
- data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
- data/rbi/stripe/services/financial_connections_service.rbi +11 -0
- data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
- data/rbi/stripe/services/forwarding_service.rbi +9 -0
- data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
- data/rbi/stripe/services/identity/verification_session_service.rbi +339 -0
- data/rbi/stripe/services/identity_service.rbi +10 -0
- data/rbi/stripe/services/invoice_item_service.rbi +366 -0
- data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
- data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
- data/rbi/stripe/services/invoice_service.rbi +3011 -0
- data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
- data/rbi/stripe/services/issuing/card_service.rbi +495 -0
- data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
- data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
- data/rbi/stripe/services/issuing/token_service.rbi +99 -0
- data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
- data/rbi/stripe/services/issuing_service.rbi +16 -0
- data/rbi/stripe/services/mandate_service.rbi +20 -0
- data/rbi/stripe/services/payment_intent_service.rbi +7989 -0
- data/{lib/stripe/services/payment_intent_amount_details_line_item_service.rb → rbi/stripe/services/payment_link_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/payment_link_service.rbi +1352 -0
- data/rbi/stripe/services/payment_method_configuration_service.rbi +2487 -0
- data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
- data/rbi/stripe/services/payment_method_service.rbi +781 -0
- data/rbi/stripe/services/payout_service.rbi +205 -0
- data/rbi/stripe/services/plan_service.rbi +282 -0
- data/rbi/stripe/services/price_service.rbi +546 -0
- data/rbi/stripe/services/product_feature_service.rbi +67 -0
- data/rbi/stripe/services/product_service.rbi +477 -0
- data/rbi/stripe/services/promotion_code_service.rbi +214 -0
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
- data/{lib/stripe/services/order_line_item_service.rb → rbi/stripe/services/quote_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/quote_service.rbi +699 -0
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
- data/rbi/stripe/services/radar/value_list_item_service.rbi +109 -0
- data/rbi/stripe/services/radar/value_list_service.rbi +141 -0
- data/rbi/stripe/services/radar_service.rbi +11 -0
- data/rbi/stripe/services/refund_service.rbi +185 -0
- data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
- data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
- data/rbi/stripe/services/reporting_service.rbi +10 -0
- data/rbi/stripe/services/review_service.rbi +84 -0
- data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
- data/rbi/stripe/services/setup_intent_service.rbi +3709 -0
- data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
- data/rbi/stripe/services/sigma_service.rbi +9 -0
- data/rbi/stripe/services/source_service.rbi +663 -0
- data/{lib/stripe/services/quote_line_service.rb → rbi/stripe/services/source_transaction_service.rbi} +16 -20
- data/rbi/stripe/services/subscription_item_service.rbi +350 -0
- data/rbi/stripe/services/subscription_schedule_service.rbi +1301 -0
- data/rbi/stripe/services/subscription_service.rbi +1684 -0
- data/{lib/stripe/services/financial_connections/account_inferred_balance_service.rb → rbi/stripe/services/tax/calculation_line_item_service.rbi} +17 -21
- data/rbi/stripe/services/tax/calculation_service.rbi +234 -0
- data/rbi/stripe/services/tax/registration_service.rbi +1858 -0
- data/rbi/stripe/services/tax/settings_service.rbi +93 -0
- data/{lib/stripe/services/privacy/redaction_job_validation_error_service.rb → rbi/stripe/services/tax/transaction_line_item_service.rbi} +17 -21
- data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
- data/rbi/stripe/services/tax_code_service.rbi +44 -0
- data/rbi/stripe/services/tax_id_service.rbi +110 -0
- data/rbi/stripe/services/tax_rate_service.rbi +185 -0
- data/rbi/stripe/services/tax_service.rbi +12 -0
- data/rbi/stripe/services/terminal/configuration_service.rbi +1118 -0
- data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
- data/rbi/stripe/services/terminal/location_service.rbi +182 -0
- data/rbi/stripe/services/terminal/reader_service.rbi +540 -0
- data/rbi/stripe/services/terminal_service.rbi +12 -0
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +746 -0
- data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
- data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +93 -0
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +90 -0
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -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 +1257 -0
- data/rbi/stripe/services/topup_service.rbi +176 -0
- data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
- data/rbi/stripe/services/transfer_service.rbi +152 -0
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
- data/rbi/stripe/services/treasury/financial_account_service.rbi +566 -0
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
- data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
- data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
- data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
- data/rbi/stripe/services/treasury_service.rbi +18 -0
- data/rbi/stripe/services/v1_services.rbi +77 -0
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +18 -0
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
- data/rbi/stripe/services/v2/billing_service.rbi +14 -0
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +192 -0
- data/rbi/stripe/services/v2/core/event_service.rbi +36 -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 +129 -0
- data/stripe.gemspec +1 -4
- metadata +326 -162
- data/lib/stripe/events/v2_core_account_closed_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_created_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_link_completed_event.rb +0 -13
- data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -21
- data/lib/stripe/events/v2_off_session_payment_requires_capture_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -21
- data/lib/stripe/resources/account_notice.rb +0 -123
- data/lib/stripe/resources/balance_settings.rb +0 -105
- data/lib/stripe/resources/capital/financing_offer.rb +0 -179
- data/lib/stripe/resources/capital/financing_summary.rb +0 -55
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -114
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -92
- data/lib/stripe/resources/fx_quote.rb +0 -184
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -602
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -82
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -86
- data/lib/stripe/resources/issuing/settlement.rb +0 -53
- data/lib/stripe/resources/margin.rb +0 -115
- data/lib/stripe/resources/order.rb +0 -2806
- data/lib/stripe/resources/payment_attempt_record.rb +0 -1086
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -72
- data/lib/stripe/resources/payment_record.rb +0 -1615
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -298
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -33
- data/lib/stripe/resources/quote_line.rb +0 -274
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -663
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -364
- data/lib/stripe/resources/tax/association.rb +0 -66
- data/lib/stripe/resources/tax/form.rb +0 -211
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -31
- data/lib/stripe/resources/v2/core/account.rb +0 -1746
- data/lib/stripe/resources/v2/core/account_link.rb +0 -56
- data/lib/stripe/resources/v2/core/person.rb +0 -276
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -74
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -39
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -20
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -22
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -51
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -58
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -68
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -94
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -129
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -82
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -45
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -117
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -75
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -49
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -116
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -84
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -78
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -68
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -74
- data/lib/stripe/services/account_notice_service.rb +0 -101
- data/lib/stripe/services/balance_settings_service.rb +0 -96
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/fx_quote_service.rb +0 -123
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
- data/lib/stripe/services/margin_service.rb +0 -119
- data/lib/stripe/services/order_service.rb +0 -2236
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -49
- data/lib/stripe/services/payment_record_service.rb +0 -542
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -240
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -35
- data/lib/stripe/services/tax/association_service.rb +0 -31
- data/lib/stripe/services/tax/form_service.rb +0 -100
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
- data/lib/stripe/services/v2/core/account_link_service.rb +0 -76
- data/lib/stripe/services/v2/core/account_service.rb +0 -4138
- data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -1046
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -131
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -107
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -74
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -43
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -81
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -125
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -95
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -200
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -235
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -172
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -91
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -43
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -69
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -73
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/payment_service.rb +0 -15
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -138
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -49
- data/rbi/stripe.rbi +0 -191639
@@ -229,6 +229,13 @@ module Stripe
|
|
229
229
|
|
230
230
|
class CardPresent < Stripe::StripeObject; end
|
231
231
|
|
232
|
+
class Klarna < Stripe::StripeObject
|
233
|
+
# The currency of the setup intent. Three letter ISO currency code.
|
234
|
+
attr_reader :currency
|
235
|
+
# Preferred locale of the Klarna checkout page that the customer is redirected to.
|
236
|
+
attr_reader :preferred_locale
|
237
|
+
end
|
238
|
+
|
232
239
|
class Link < Stripe::StripeObject
|
233
240
|
# [Deprecated] This is a legacy parameter that no longer has any function.
|
234
241
|
attr_reader :persistent_token
|
@@ -237,31 +244,6 @@ module Stripe
|
|
237
244
|
class Paypal < Stripe::StripeObject
|
238
245
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
239
246
|
attr_reader :billing_agreement_id
|
240
|
-
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
241
|
-
attr_reader :currency
|
242
|
-
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
243
|
-
attr_reader :subsellers
|
244
|
-
end
|
245
|
-
|
246
|
-
class Payto < Stripe::StripeObject
|
247
|
-
class MandateOptions < Stripe::StripeObject
|
248
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
249
|
-
attr_reader :amount
|
250
|
-
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
251
|
-
attr_reader :amount_type
|
252
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
253
|
-
attr_reader :end_date
|
254
|
-
# The periodicity at which payments will be collected.
|
255
|
-
attr_reader :payment_schedule
|
256
|
-
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
257
|
-
attr_reader :payments_per_period
|
258
|
-
# The purpose for which payments are made. Defaults to retail.
|
259
|
-
attr_reader :purpose
|
260
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
261
|
-
attr_reader :start_date
|
262
|
-
end
|
263
|
-
# Attribute for field mandate_options
|
264
|
-
attr_reader :mandate_options
|
265
247
|
end
|
266
248
|
|
267
249
|
class SepaDebit < Stripe::StripeObject
|
@@ -278,18 +260,9 @@ module Stripe
|
|
278
260
|
class Filters < Stripe::StripeObject
|
279
261
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
280
262
|
attr_reader :account_subcategories
|
281
|
-
# The institution to use to filter for possible accounts to link.
|
282
|
-
attr_reader :institution
|
283
|
-
end
|
284
|
-
|
285
|
-
class ManualEntry < Stripe::StripeObject
|
286
|
-
# Settings for configuring manual entry of account details.
|
287
|
-
attr_reader :mode
|
288
263
|
end
|
289
264
|
# Attribute for field filters
|
290
265
|
attr_reader :filters
|
291
|
-
# Attribute for field manual_entry
|
292
|
-
attr_reader :manual_entry
|
293
266
|
# The list of permissions to request. The `payment_method` permission must be included.
|
294
267
|
attr_reader :permissions
|
295
268
|
# Data features requested to be retrieved upon account creation.
|
@@ -319,12 +292,12 @@ module Stripe
|
|
319
292
|
attr_reader :card
|
320
293
|
# Attribute for field card_present
|
321
294
|
attr_reader :card_present
|
295
|
+
# Attribute for field klarna
|
296
|
+
attr_reader :klarna
|
322
297
|
# Attribute for field link
|
323
298
|
attr_reader :link
|
324
299
|
# Attribute for field paypal
|
325
300
|
attr_reader :paypal
|
326
|
-
# Attribute for field payto
|
327
|
-
attr_reader :payto
|
328
301
|
# Attribute for field sepa_debit
|
329
302
|
attr_reader :sepa_debit
|
330
303
|
# Attribute for field us_bank_account
|
@@ -357,8 +330,6 @@ module Stripe
|
|
357
330
|
attr_accessor :created
|
358
331
|
# Only return SetupIntents for the customer specified by this customer ID.
|
359
332
|
attr_accessor :customer
|
360
|
-
# Only return SetupIntents for the account specified by this customer ID.
|
361
|
-
attr_accessor :customer_account
|
362
333
|
# 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.
|
363
334
|
attr_accessor :ending_before
|
364
335
|
# Specifies which fields in the response should be expanded.
|
@@ -374,7 +345,6 @@ module Stripe
|
|
374
345
|
attach_to_self: nil,
|
375
346
|
created: nil,
|
376
347
|
customer: nil,
|
377
|
-
customer_account: nil,
|
378
348
|
ending_before: nil,
|
379
349
|
expand: nil,
|
380
350
|
limit: nil,
|
@@ -384,7 +354,6 @@ module Stripe
|
|
384
354
|
@attach_to_self = attach_to_self
|
385
355
|
@created = created
|
386
356
|
@customer = customer
|
387
|
-
@customer_account = customer_account
|
388
357
|
@ending_before = ending_before
|
389
358
|
@expand = expand
|
390
359
|
@limit = limit
|
@@ -559,6 +528,7 @@ module Stripe
|
|
559
528
|
end
|
560
529
|
|
561
530
|
class Cashapp < Stripe::RequestParams; end
|
531
|
+
class Crypto < Stripe::RequestParams; end
|
562
532
|
class CustomerBalance < Stripe::RequestParams; end
|
563
533
|
|
564
534
|
class Eps < Stripe::RequestParams
|
@@ -583,18 +553,8 @@ module Stripe
|
|
583
553
|
end
|
584
554
|
|
585
555
|
class Giropay < Stripe::RequestParams; end
|
586
|
-
class Gopay < Stripe::RequestParams; end
|
587
556
|
class Grabpay < Stripe::RequestParams; end
|
588
557
|
|
589
|
-
class IdBankTransfer < Stripe::RequestParams
|
590
|
-
# Bank where the account is held.
|
591
|
-
attr_accessor :bank
|
592
|
-
|
593
|
-
def initialize(bank: nil)
|
594
|
-
@bank = bank
|
595
|
-
end
|
596
|
-
end
|
597
|
-
|
598
558
|
class Ideal < Stripe::RequestParams
|
599
559
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
600
560
|
attr_accessor :bank
|
@@ -633,7 +593,6 @@ module Stripe
|
|
633
593
|
class Konbini < Stripe::RequestParams; end
|
634
594
|
class KrCard < Stripe::RequestParams; end
|
635
595
|
class Link < Stripe::RequestParams; end
|
636
|
-
class MbWay < Stripe::RequestParams; end
|
637
596
|
class Mobilepay < Stripe::RequestParams; end
|
638
597
|
class Multibanco < Stripe::RequestParams; end
|
639
598
|
|
@@ -692,25 +651,8 @@ module Stripe
|
|
692
651
|
class Payco < Stripe::RequestParams; end
|
693
652
|
class Paynow < Stripe::RequestParams; end
|
694
653
|
class Paypal < Stripe::RequestParams; end
|
695
|
-
|
696
|
-
class Payto < Stripe::RequestParams
|
697
|
-
# The account number for the bank account.
|
698
|
-
attr_accessor :account_number
|
699
|
-
# Bank-State-Branch number of the bank account.
|
700
|
-
attr_accessor :bsb_number
|
701
|
-
# The PayID alias for the bank account.
|
702
|
-
attr_accessor :pay_id
|
703
|
-
|
704
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
705
|
-
@account_number = account_number
|
706
|
-
@bsb_number = bsb_number
|
707
|
-
@pay_id = pay_id
|
708
|
-
end
|
709
|
-
end
|
710
|
-
|
711
654
|
class Pix < Stripe::RequestParams; end
|
712
655
|
class Promptpay < Stripe::RequestParams; end
|
713
|
-
class Qris < Stripe::RequestParams; end
|
714
656
|
|
715
657
|
class RadarOptions < Stripe::RequestParams
|
716
658
|
# 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.
|
@@ -721,29 +663,6 @@ module Stripe
|
|
721
663
|
end
|
722
664
|
end
|
723
665
|
|
724
|
-
class Rechnung < Stripe::RequestParams
|
725
|
-
class Dob < Stripe::RequestParams
|
726
|
-
# The day of birth, between 1 and 31.
|
727
|
-
attr_accessor :day
|
728
|
-
# The month of birth, between 1 and 12.
|
729
|
-
attr_accessor :month
|
730
|
-
# The four-digit year of birth.
|
731
|
-
attr_accessor :year
|
732
|
-
|
733
|
-
def initialize(day: nil, month: nil, year: nil)
|
734
|
-
@day = day
|
735
|
-
@month = month
|
736
|
-
@year = year
|
737
|
-
end
|
738
|
-
end
|
739
|
-
# Customer's date of birth
|
740
|
-
attr_accessor :dob
|
741
|
-
|
742
|
-
def initialize(dob: nil)
|
743
|
-
@dob = dob
|
744
|
-
end
|
745
|
-
end
|
746
|
-
|
747
666
|
class RevolutPay < Stripe::RequestParams; end
|
748
667
|
class SamsungPay < Stripe::RequestParams; end
|
749
668
|
class Satispay < Stripe::RequestParams; end
|
@@ -757,8 +676,6 @@ module Stripe
|
|
757
676
|
end
|
758
677
|
end
|
759
678
|
|
760
|
-
class Shopeepay < Stripe::RequestParams; end
|
761
|
-
|
762
679
|
class Sofort < Stripe::RequestParams
|
763
680
|
# Two-letter ISO code representing the country the bank account is located in.
|
764
681
|
attr_accessor :country
|
@@ -768,18 +685,6 @@ module Stripe
|
|
768
685
|
end
|
769
686
|
end
|
770
687
|
|
771
|
-
class StripeBalance < Stripe::RequestParams
|
772
|
-
# The connected account ID whose Stripe balance to use as the source of payment
|
773
|
-
attr_accessor :account
|
774
|
-
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
775
|
-
attr_accessor :source_type
|
776
|
-
|
777
|
-
def initialize(account: nil, source_type: nil)
|
778
|
-
@account = account
|
779
|
-
@source_type = source_type
|
780
|
-
end
|
781
|
-
end
|
782
|
-
|
783
688
|
class Swish < Stripe::RequestParams; end
|
784
689
|
class Twint < Stripe::RequestParams; end
|
785
690
|
|
@@ -842,6 +747,8 @@ module Stripe
|
|
842
747
|
attr_accessor :boleto
|
843
748
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
844
749
|
attr_accessor :cashapp
|
750
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
751
|
+
attr_accessor :crypto
|
845
752
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
846
753
|
attr_accessor :customer_balance
|
847
754
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
@@ -850,12 +757,8 @@ module Stripe
|
|
850
757
|
attr_accessor :fpx
|
851
758
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
852
759
|
attr_accessor :giropay
|
853
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
854
|
-
attr_accessor :gopay
|
855
760
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
856
761
|
attr_accessor :grabpay
|
857
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
858
|
-
attr_accessor :id_bank_transfer
|
859
762
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
860
763
|
attr_accessor :ideal
|
861
764
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -870,8 +773,6 @@ module Stripe
|
|
870
773
|
attr_accessor :kr_card
|
871
774
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
872
775
|
attr_accessor :link
|
873
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
874
|
-
attr_accessor :mb_way
|
875
776
|
# 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`.
|
876
777
|
attr_accessor :metadata
|
877
778
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -894,18 +795,12 @@ module Stripe
|
|
894
795
|
attr_accessor :paynow
|
895
796
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
896
797
|
attr_accessor :paypal
|
897
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
898
|
-
attr_accessor :payto
|
899
798
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
900
799
|
attr_accessor :pix
|
901
800
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
902
801
|
attr_accessor :promptpay
|
903
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
904
|
-
attr_accessor :qris
|
905
802
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
906
803
|
attr_accessor :radar_options
|
907
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
908
|
-
attr_accessor :rechnung
|
909
804
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
910
805
|
attr_accessor :revolut_pay
|
911
806
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -914,12 +809,8 @@ module Stripe
|
|
914
809
|
attr_accessor :satispay
|
915
810
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
916
811
|
attr_accessor :sepa_debit
|
917
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
918
|
-
attr_accessor :shopeepay
|
919
812
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
920
813
|
attr_accessor :sofort
|
921
|
-
# This hash contains details about the Stripe balance payment method.
|
922
|
-
attr_accessor :stripe_balance
|
923
814
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
924
815
|
attr_accessor :swish
|
925
816
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -949,13 +840,12 @@ module Stripe
|
|
949
840
|
blik: nil,
|
950
841
|
boleto: nil,
|
951
842
|
cashapp: nil,
|
843
|
+
crypto: nil,
|
952
844
|
customer_balance: nil,
|
953
845
|
eps: nil,
|
954
846
|
fpx: nil,
|
955
847
|
giropay: nil,
|
956
|
-
gopay: nil,
|
957
848
|
grabpay: nil,
|
958
|
-
id_bank_transfer: nil,
|
959
849
|
ideal: nil,
|
960
850
|
interac_present: nil,
|
961
851
|
kakao_pay: nil,
|
@@ -963,7 +853,6 @@ module Stripe
|
|
963
853
|
konbini: nil,
|
964
854
|
kr_card: nil,
|
965
855
|
link: nil,
|
966
|
-
mb_way: nil,
|
967
856
|
metadata: nil,
|
968
857
|
mobilepay: nil,
|
969
858
|
multibanco: nil,
|
@@ -975,19 +864,14 @@ module Stripe
|
|
975
864
|
payco: nil,
|
976
865
|
paynow: nil,
|
977
866
|
paypal: nil,
|
978
|
-
payto: nil,
|
979
867
|
pix: nil,
|
980
868
|
promptpay: nil,
|
981
|
-
qris: nil,
|
982
869
|
radar_options: nil,
|
983
|
-
rechnung: nil,
|
984
870
|
revolut_pay: nil,
|
985
871
|
samsung_pay: nil,
|
986
872
|
satispay: nil,
|
987
873
|
sepa_debit: nil,
|
988
|
-
shopeepay: nil,
|
989
874
|
sofort: nil,
|
990
|
-
stripe_balance: nil,
|
991
875
|
swish: nil,
|
992
876
|
twint: nil,
|
993
877
|
type: nil,
|
@@ -1010,13 +894,12 @@ module Stripe
|
|
1010
894
|
@blik = blik
|
1011
895
|
@boleto = boleto
|
1012
896
|
@cashapp = cashapp
|
897
|
+
@crypto = crypto
|
1013
898
|
@customer_balance = customer_balance
|
1014
899
|
@eps = eps
|
1015
900
|
@fpx = fpx
|
1016
901
|
@giropay = giropay
|
1017
|
-
@gopay = gopay
|
1018
902
|
@grabpay = grabpay
|
1019
|
-
@id_bank_transfer = id_bank_transfer
|
1020
903
|
@ideal = ideal
|
1021
904
|
@interac_present = interac_present
|
1022
905
|
@kakao_pay = kakao_pay
|
@@ -1024,7 +907,6 @@ module Stripe
|
|
1024
907
|
@konbini = konbini
|
1025
908
|
@kr_card = kr_card
|
1026
909
|
@link = link
|
1027
|
-
@mb_way = mb_way
|
1028
910
|
@metadata = metadata
|
1029
911
|
@mobilepay = mobilepay
|
1030
912
|
@multibanco = multibanco
|
@@ -1036,19 +918,14 @@ module Stripe
|
|
1036
918
|
@payco = payco
|
1037
919
|
@paynow = paynow
|
1038
920
|
@paypal = paypal
|
1039
|
-
@payto = payto
|
1040
921
|
@pix = pix
|
1041
922
|
@promptpay = promptpay
|
1042
|
-
@qris = qris
|
1043
923
|
@radar_options = radar_options
|
1044
|
-
@rechnung = rechnung
|
1045
924
|
@revolut_pay = revolut_pay
|
1046
925
|
@samsung_pay = samsung_pay
|
1047
926
|
@satispay = satispay
|
1048
927
|
@sepa_debit = sepa_debit
|
1049
|
-
@shopeepay = shopeepay
|
1050
928
|
@sofort = sofort
|
1051
|
-
@stripe_balance = stripe_balance
|
1052
929
|
@swish = swish
|
1053
930
|
@twint = twint
|
1054
931
|
@type = type
|
@@ -1270,6 +1147,88 @@ module Stripe
|
|
1270
1147
|
|
1271
1148
|
class CardPresent < Stripe::RequestParams; end
|
1272
1149
|
|
1150
|
+
class Klarna < Stripe::RequestParams
|
1151
|
+
class OnDemand < Stripe::RequestParams
|
1152
|
+
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
1153
|
+
attr_accessor :average_amount
|
1154
|
+
# The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
1155
|
+
attr_accessor :maximum_amount
|
1156
|
+
# The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
1157
|
+
attr_accessor :minimum_amount
|
1158
|
+
# Interval at which the customer is making purchases
|
1159
|
+
attr_accessor :purchase_interval
|
1160
|
+
# The number of `purchase_interval` between charges
|
1161
|
+
attr_accessor :purchase_interval_count
|
1162
|
+
|
1163
|
+
def initialize(
|
1164
|
+
average_amount: nil,
|
1165
|
+
maximum_amount: nil,
|
1166
|
+
minimum_amount: nil,
|
1167
|
+
purchase_interval: nil,
|
1168
|
+
purchase_interval_count: nil
|
1169
|
+
)
|
1170
|
+
@average_amount = average_amount
|
1171
|
+
@maximum_amount = maximum_amount
|
1172
|
+
@minimum_amount = minimum_amount
|
1173
|
+
@purchase_interval = purchase_interval
|
1174
|
+
@purchase_interval_count = purchase_interval_count
|
1175
|
+
end
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
class Subscription < Stripe::RequestParams
|
1179
|
+
class NextBilling < Stripe::RequestParams
|
1180
|
+
# The amount of the next charge for the subscription.
|
1181
|
+
attr_accessor :amount
|
1182
|
+
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
1183
|
+
attr_accessor :date
|
1184
|
+
|
1185
|
+
def initialize(amount: nil, date: nil)
|
1186
|
+
@amount = amount
|
1187
|
+
@date = date
|
1188
|
+
end
|
1189
|
+
end
|
1190
|
+
# Unit of time between subscription charges.
|
1191
|
+
attr_accessor :interval
|
1192
|
+
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
1193
|
+
attr_accessor :interval_count
|
1194
|
+
# Name for subscription.
|
1195
|
+
attr_accessor :name
|
1196
|
+
# Describes the upcoming charge for this subscription.
|
1197
|
+
attr_accessor :next_billing
|
1198
|
+
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
1199
|
+
attr_accessor :reference
|
1200
|
+
|
1201
|
+
def initialize(
|
1202
|
+
interval: nil,
|
1203
|
+
interval_count: nil,
|
1204
|
+
name: nil,
|
1205
|
+
next_billing: nil,
|
1206
|
+
reference: nil
|
1207
|
+
)
|
1208
|
+
@interval = interval
|
1209
|
+
@interval_count = interval_count
|
1210
|
+
@name = name
|
1211
|
+
@next_billing = next_billing
|
1212
|
+
@reference = reference
|
1213
|
+
end
|
1214
|
+
end
|
1215
|
+
# The currency of the SetupIntent. Three letter ISO currency code.
|
1216
|
+
attr_accessor :currency
|
1217
|
+
# On-demand details if setting up a payment method for on-demand payments.
|
1218
|
+
attr_accessor :on_demand
|
1219
|
+
# Preferred language of the Klarna authorization page that the customer is redirected to
|
1220
|
+
attr_accessor :preferred_locale
|
1221
|
+
# Subscription details if setting up or charging a subscription
|
1222
|
+
attr_accessor :subscriptions
|
1223
|
+
|
1224
|
+
def initialize(currency: nil, on_demand: nil, preferred_locale: nil, subscriptions: nil)
|
1225
|
+
@currency = currency
|
1226
|
+
@on_demand = on_demand
|
1227
|
+
@preferred_locale = preferred_locale
|
1228
|
+
@subscriptions = subscriptions
|
1229
|
+
end
|
1230
|
+
end
|
1231
|
+
|
1273
1232
|
class Link < Stripe::RequestParams
|
1274
1233
|
# [Deprecated] This is a legacy parameter that no longer has any function.
|
1275
1234
|
attr_accessor :persistent_token
|
@@ -1282,58 +1241,9 @@ module Stripe
|
|
1282
1241
|
class Paypal < Stripe::RequestParams
|
1283
1242
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
1284
1243
|
attr_accessor :billing_agreement_id
|
1285
|
-
# Attribute for param field currency
|
1286
|
-
attr_accessor :currency
|
1287
|
-
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
1288
|
-
attr_accessor :subsellers
|
1289
1244
|
|
1290
|
-
def initialize(billing_agreement_id: nil
|
1245
|
+
def initialize(billing_agreement_id: nil)
|
1291
1246
|
@billing_agreement_id = billing_agreement_id
|
1292
|
-
@currency = currency
|
1293
|
-
@subsellers = subsellers
|
1294
|
-
end
|
1295
|
-
end
|
1296
|
-
|
1297
|
-
class Payto < Stripe::RequestParams
|
1298
|
-
class MandateOptions < Stripe::RequestParams
|
1299
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
1300
|
-
attr_accessor :amount
|
1301
|
-
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
1302
|
-
attr_accessor :amount_type
|
1303
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
1304
|
-
attr_accessor :end_date
|
1305
|
-
# The periodicity at which payments will be collected.
|
1306
|
-
attr_accessor :payment_schedule
|
1307
|
-
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
1308
|
-
attr_accessor :payments_per_period
|
1309
|
-
# The purpose for which payments are made. Defaults to retail.
|
1310
|
-
attr_accessor :purpose
|
1311
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
1312
|
-
attr_accessor :start_date
|
1313
|
-
|
1314
|
-
def initialize(
|
1315
|
-
amount: nil,
|
1316
|
-
amount_type: nil,
|
1317
|
-
end_date: nil,
|
1318
|
-
payment_schedule: nil,
|
1319
|
-
payments_per_period: nil,
|
1320
|
-
purpose: nil,
|
1321
|
-
start_date: nil
|
1322
|
-
)
|
1323
|
-
@amount = amount
|
1324
|
-
@amount_type = amount_type
|
1325
|
-
@end_date = end_date
|
1326
|
-
@payment_schedule = payment_schedule
|
1327
|
-
@payments_per_period = payments_per_period
|
1328
|
-
@purpose = purpose
|
1329
|
-
@start_date = start_date
|
1330
|
-
end
|
1331
|
-
end
|
1332
|
-
# Additional fields for Mandate creation.
|
1333
|
-
attr_accessor :mandate_options
|
1334
|
-
|
1335
|
-
def initialize(mandate_options: nil)
|
1336
|
-
@mandate_options = mandate_options
|
1337
1247
|
end
|
1338
1248
|
end
|
1339
1249
|
|
@@ -1359,27 +1269,13 @@ module Stripe
|
|
1359
1269
|
class Filters < Stripe::RequestParams
|
1360
1270
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
1361
1271
|
attr_accessor :account_subcategories
|
1362
|
-
# ID of the institution to use to filter for selectable accounts.
|
1363
|
-
attr_accessor :institution
|
1364
1272
|
|
1365
|
-
def initialize(account_subcategories: nil
|
1273
|
+
def initialize(account_subcategories: nil)
|
1366
1274
|
@account_subcategories = account_subcategories
|
1367
|
-
@institution = institution
|
1368
|
-
end
|
1369
|
-
end
|
1370
|
-
|
1371
|
-
class ManualEntry < Stripe::RequestParams
|
1372
|
-
# Settings for configuring manual entry of account details.
|
1373
|
-
attr_accessor :mode
|
1374
|
-
|
1375
|
-
def initialize(mode: nil)
|
1376
|
-
@mode = mode
|
1377
1275
|
end
|
1378
1276
|
end
|
1379
1277
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
1380
1278
|
attr_accessor :filters
|
1381
|
-
# Customize manual entry behavior
|
1382
|
-
attr_accessor :manual_entry
|
1383
1279
|
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
1384
1280
|
attr_accessor :permissions
|
1385
1281
|
# List of data features that you would like to retrieve upon account creation.
|
@@ -1387,15 +1283,8 @@ module Stripe
|
|
1387
1283
|
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
1388
1284
|
attr_accessor :return_url
|
1389
1285
|
|
1390
|
-
def initialize(
|
1391
|
-
filters: nil,
|
1392
|
-
manual_entry: nil,
|
1393
|
-
permissions: nil,
|
1394
|
-
prefetch: nil,
|
1395
|
-
return_url: nil
|
1396
|
-
)
|
1286
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
|
1397
1287
|
@filters = filters
|
1398
|
-
@manual_entry = manual_entry
|
1399
1288
|
@permissions = permissions
|
1400
1289
|
@prefetch = prefetch
|
1401
1290
|
@return_url = return_url
|
@@ -1450,12 +1339,12 @@ module Stripe
|
|
1450
1339
|
attr_accessor :card
|
1451
1340
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
1452
1341
|
attr_accessor :card_present
|
1342
|
+
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
|
1343
|
+
attr_accessor :klarna
|
1453
1344
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
1454
1345
|
attr_accessor :link
|
1455
1346
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
1456
1347
|
attr_accessor :paypal
|
1457
|
-
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
1458
|
-
attr_accessor :payto
|
1459
1348
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
1460
1349
|
attr_accessor :sepa_debit
|
1461
1350
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -1467,9 +1356,9 @@ module Stripe
|
|
1467
1356
|
bacs_debit: nil,
|
1468
1357
|
card: nil,
|
1469
1358
|
card_present: nil,
|
1359
|
+
klarna: nil,
|
1470
1360
|
link: nil,
|
1471
1361
|
paypal: nil,
|
1472
|
-
payto: nil,
|
1473
1362
|
sepa_debit: nil,
|
1474
1363
|
us_bank_account: nil
|
1475
1364
|
)
|
@@ -1478,9 +1367,9 @@ module Stripe
|
|
1478
1367
|
@bacs_debit = bacs_debit
|
1479
1368
|
@card = card
|
1480
1369
|
@card_present = card_present
|
1370
|
+
@klarna = klarna
|
1481
1371
|
@link = link
|
1482
1372
|
@paypal = paypal
|
1483
|
-
@payto = payto
|
1484
1373
|
@sepa_debit = sepa_debit
|
1485
1374
|
@us_bank_account = us_bank_account
|
1486
1375
|
end
|
@@ -1513,10 +1402,6 @@ module Stripe
|
|
1513
1402
|
#
|
1514
1403
|
# If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
|
1515
1404
|
attr_accessor :customer
|
1516
|
-
# ID of the Account this SetupIntent belongs to, if one exists.
|
1517
|
-
#
|
1518
|
-
# If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
|
1519
|
-
attr_accessor :customer_account
|
1520
1405
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
1521
1406
|
attr_accessor :description
|
1522
1407
|
# Specifies which fields in the response should be expanded.
|
@@ -1540,7 +1425,7 @@ module Stripe
|
|
1540
1425
|
attr_accessor :payment_method_data
|
1541
1426
|
# Payment method-specific configuration for this SetupIntent.
|
1542
1427
|
attr_accessor :payment_method_options
|
1543
|
-
# The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
|
1428
|
+
# The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
1544
1429
|
attr_accessor :payment_method_types
|
1545
1430
|
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. To redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/setup_intents/create#create_setup_intent-confirm).
|
1546
1431
|
attr_accessor :return_url
|
@@ -1559,7 +1444,6 @@ module Stripe
|
|
1559
1444
|
confirm: nil,
|
1560
1445
|
confirmation_token: nil,
|
1561
1446
|
customer: nil,
|
1562
|
-
customer_account: nil,
|
1563
1447
|
description: nil,
|
1564
1448
|
expand: nil,
|
1565
1449
|
flow_directions: nil,
|
@@ -1581,7 +1465,6 @@ module Stripe
|
|
1581
1465
|
@confirm = confirm
|
1582
1466
|
@confirmation_token = confirmation_token
|
1583
1467
|
@customer = customer
|
1584
|
-
@customer_account = customer_account
|
1585
1468
|
@description = description
|
1586
1469
|
@expand = expand
|
1587
1470
|
@flow_directions = flow_directions
|
@@ -1713,6 +1596,7 @@ module Stripe
|
|
1713
1596
|
end
|
1714
1597
|
|
1715
1598
|
class Cashapp < Stripe::RequestParams; end
|
1599
|
+
class Crypto < Stripe::RequestParams; end
|
1716
1600
|
class CustomerBalance < Stripe::RequestParams; end
|
1717
1601
|
|
1718
1602
|
class Eps < Stripe::RequestParams
|
@@ -1737,18 +1621,8 @@ module Stripe
|
|
1737
1621
|
end
|
1738
1622
|
|
1739
1623
|
class Giropay < Stripe::RequestParams; end
|
1740
|
-
class Gopay < Stripe::RequestParams; end
|
1741
1624
|
class Grabpay < Stripe::RequestParams; end
|
1742
1625
|
|
1743
|
-
class IdBankTransfer < Stripe::RequestParams
|
1744
|
-
# Bank where the account is held.
|
1745
|
-
attr_accessor :bank
|
1746
|
-
|
1747
|
-
def initialize(bank: nil)
|
1748
|
-
@bank = bank
|
1749
|
-
end
|
1750
|
-
end
|
1751
|
-
|
1752
1626
|
class Ideal < Stripe::RequestParams
|
1753
1627
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
1754
1628
|
attr_accessor :bank
|
@@ -1787,7 +1661,6 @@ module Stripe
|
|
1787
1661
|
class Konbini < Stripe::RequestParams; end
|
1788
1662
|
class KrCard < Stripe::RequestParams; end
|
1789
1663
|
class Link < Stripe::RequestParams; end
|
1790
|
-
class MbWay < Stripe::RequestParams; end
|
1791
1664
|
class Mobilepay < Stripe::RequestParams; end
|
1792
1665
|
class Multibanco < Stripe::RequestParams; end
|
1793
1666
|
|
@@ -1846,25 +1719,8 @@ module Stripe
|
|
1846
1719
|
class Payco < Stripe::RequestParams; end
|
1847
1720
|
class Paynow < Stripe::RequestParams; end
|
1848
1721
|
class Paypal < Stripe::RequestParams; end
|
1849
|
-
|
1850
|
-
class Payto < Stripe::RequestParams
|
1851
|
-
# The account number for the bank account.
|
1852
|
-
attr_accessor :account_number
|
1853
|
-
# Bank-State-Branch number of the bank account.
|
1854
|
-
attr_accessor :bsb_number
|
1855
|
-
# The PayID alias for the bank account.
|
1856
|
-
attr_accessor :pay_id
|
1857
|
-
|
1858
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
1859
|
-
@account_number = account_number
|
1860
|
-
@bsb_number = bsb_number
|
1861
|
-
@pay_id = pay_id
|
1862
|
-
end
|
1863
|
-
end
|
1864
|
-
|
1865
1722
|
class Pix < Stripe::RequestParams; end
|
1866
1723
|
class Promptpay < Stripe::RequestParams; end
|
1867
|
-
class Qris < Stripe::RequestParams; end
|
1868
1724
|
|
1869
1725
|
class RadarOptions < Stripe::RequestParams
|
1870
1726
|
# 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.
|
@@ -1875,29 +1731,6 @@ module Stripe
|
|
1875
1731
|
end
|
1876
1732
|
end
|
1877
1733
|
|
1878
|
-
class Rechnung < Stripe::RequestParams
|
1879
|
-
class Dob < Stripe::RequestParams
|
1880
|
-
# The day of birth, between 1 and 31.
|
1881
|
-
attr_accessor :day
|
1882
|
-
# The month of birth, between 1 and 12.
|
1883
|
-
attr_accessor :month
|
1884
|
-
# The four-digit year of birth.
|
1885
|
-
attr_accessor :year
|
1886
|
-
|
1887
|
-
def initialize(day: nil, month: nil, year: nil)
|
1888
|
-
@day = day
|
1889
|
-
@month = month
|
1890
|
-
@year = year
|
1891
|
-
end
|
1892
|
-
end
|
1893
|
-
# Customer's date of birth
|
1894
|
-
attr_accessor :dob
|
1895
|
-
|
1896
|
-
def initialize(dob: nil)
|
1897
|
-
@dob = dob
|
1898
|
-
end
|
1899
|
-
end
|
1900
|
-
|
1901
1734
|
class RevolutPay < Stripe::RequestParams; end
|
1902
1735
|
class SamsungPay < Stripe::RequestParams; end
|
1903
1736
|
class Satispay < Stripe::RequestParams; end
|
@@ -1911,8 +1744,6 @@ module Stripe
|
|
1911
1744
|
end
|
1912
1745
|
end
|
1913
1746
|
|
1914
|
-
class Shopeepay < Stripe::RequestParams; end
|
1915
|
-
|
1916
1747
|
class Sofort < Stripe::RequestParams
|
1917
1748
|
# Two-letter ISO code representing the country the bank account is located in.
|
1918
1749
|
attr_accessor :country
|
@@ -1922,18 +1753,6 @@ module Stripe
|
|
1922
1753
|
end
|
1923
1754
|
end
|
1924
1755
|
|
1925
|
-
class StripeBalance < Stripe::RequestParams
|
1926
|
-
# The connected account ID whose Stripe balance to use as the source of payment
|
1927
|
-
attr_accessor :account
|
1928
|
-
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
1929
|
-
attr_accessor :source_type
|
1930
|
-
|
1931
|
-
def initialize(account: nil, source_type: nil)
|
1932
|
-
@account = account
|
1933
|
-
@source_type = source_type
|
1934
|
-
end
|
1935
|
-
end
|
1936
|
-
|
1937
1756
|
class Swish < Stripe::RequestParams; end
|
1938
1757
|
class Twint < Stripe::RequestParams; end
|
1939
1758
|
|
@@ -1996,6 +1815,8 @@ module Stripe
|
|
1996
1815
|
attr_accessor :boleto
|
1997
1816
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
1998
1817
|
attr_accessor :cashapp
|
1818
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
1819
|
+
attr_accessor :crypto
|
1999
1820
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
2000
1821
|
attr_accessor :customer_balance
|
2001
1822
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
@@ -2004,12 +1825,8 @@ module Stripe
|
|
2004
1825
|
attr_accessor :fpx
|
2005
1826
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
2006
1827
|
attr_accessor :giropay
|
2007
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
2008
|
-
attr_accessor :gopay
|
2009
1828
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
2010
1829
|
attr_accessor :grabpay
|
2011
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
2012
|
-
attr_accessor :id_bank_transfer
|
2013
1830
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
2014
1831
|
attr_accessor :ideal
|
2015
1832
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -2024,8 +1841,6 @@ module Stripe
|
|
2024
1841
|
attr_accessor :kr_card
|
2025
1842
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
2026
1843
|
attr_accessor :link
|
2027
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
2028
|
-
attr_accessor :mb_way
|
2029
1844
|
# 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`.
|
2030
1845
|
attr_accessor :metadata
|
2031
1846
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -2048,18 +1863,12 @@ module Stripe
|
|
2048
1863
|
attr_accessor :paynow
|
2049
1864
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
2050
1865
|
attr_accessor :paypal
|
2051
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
2052
|
-
attr_accessor :payto
|
2053
1866
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
2054
1867
|
attr_accessor :pix
|
2055
1868
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
2056
1869
|
attr_accessor :promptpay
|
2057
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
2058
|
-
attr_accessor :qris
|
2059
1870
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
2060
1871
|
attr_accessor :radar_options
|
2061
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
2062
|
-
attr_accessor :rechnung
|
2063
1872
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
2064
1873
|
attr_accessor :revolut_pay
|
2065
1874
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -2068,12 +1877,8 @@ module Stripe
|
|
2068
1877
|
attr_accessor :satispay
|
2069
1878
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
2070
1879
|
attr_accessor :sepa_debit
|
2071
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
2072
|
-
attr_accessor :shopeepay
|
2073
1880
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
2074
1881
|
attr_accessor :sofort
|
2075
|
-
# This hash contains details about the Stripe balance payment method.
|
2076
|
-
attr_accessor :stripe_balance
|
2077
1882
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
2078
1883
|
attr_accessor :swish
|
2079
1884
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -2103,13 +1908,12 @@ module Stripe
|
|
2103
1908
|
blik: nil,
|
2104
1909
|
boleto: nil,
|
2105
1910
|
cashapp: nil,
|
1911
|
+
crypto: nil,
|
2106
1912
|
customer_balance: nil,
|
2107
1913
|
eps: nil,
|
2108
1914
|
fpx: nil,
|
2109
1915
|
giropay: nil,
|
2110
|
-
gopay: nil,
|
2111
1916
|
grabpay: nil,
|
2112
|
-
id_bank_transfer: nil,
|
2113
1917
|
ideal: nil,
|
2114
1918
|
interac_present: nil,
|
2115
1919
|
kakao_pay: nil,
|
@@ -2117,7 +1921,6 @@ module Stripe
|
|
2117
1921
|
konbini: nil,
|
2118
1922
|
kr_card: nil,
|
2119
1923
|
link: nil,
|
2120
|
-
mb_way: nil,
|
2121
1924
|
metadata: nil,
|
2122
1925
|
mobilepay: nil,
|
2123
1926
|
multibanco: nil,
|
@@ -2129,19 +1932,14 @@ module Stripe
|
|
2129
1932
|
payco: nil,
|
2130
1933
|
paynow: nil,
|
2131
1934
|
paypal: nil,
|
2132
|
-
payto: nil,
|
2133
1935
|
pix: nil,
|
2134
1936
|
promptpay: nil,
|
2135
|
-
qris: nil,
|
2136
1937
|
radar_options: nil,
|
2137
|
-
rechnung: nil,
|
2138
1938
|
revolut_pay: nil,
|
2139
1939
|
samsung_pay: nil,
|
2140
1940
|
satispay: nil,
|
2141
1941
|
sepa_debit: nil,
|
2142
|
-
shopeepay: nil,
|
2143
1942
|
sofort: nil,
|
2144
|
-
stripe_balance: nil,
|
2145
1943
|
swish: nil,
|
2146
1944
|
twint: nil,
|
2147
1945
|
type: nil,
|
@@ -2164,13 +1962,12 @@ module Stripe
|
|
2164
1962
|
@blik = blik
|
2165
1963
|
@boleto = boleto
|
2166
1964
|
@cashapp = cashapp
|
1965
|
+
@crypto = crypto
|
2167
1966
|
@customer_balance = customer_balance
|
2168
1967
|
@eps = eps
|
2169
1968
|
@fpx = fpx
|
2170
1969
|
@giropay = giropay
|
2171
|
-
@gopay = gopay
|
2172
1970
|
@grabpay = grabpay
|
2173
|
-
@id_bank_transfer = id_bank_transfer
|
2174
1971
|
@ideal = ideal
|
2175
1972
|
@interac_present = interac_present
|
2176
1973
|
@kakao_pay = kakao_pay
|
@@ -2178,7 +1975,6 @@ module Stripe
|
|
2178
1975
|
@konbini = konbini
|
2179
1976
|
@kr_card = kr_card
|
2180
1977
|
@link = link
|
2181
|
-
@mb_way = mb_way
|
2182
1978
|
@metadata = metadata
|
2183
1979
|
@mobilepay = mobilepay
|
2184
1980
|
@multibanco = multibanco
|
@@ -2190,19 +1986,14 @@ module Stripe
|
|
2190
1986
|
@payco = payco
|
2191
1987
|
@paynow = paynow
|
2192
1988
|
@paypal = paypal
|
2193
|
-
@payto = payto
|
2194
1989
|
@pix = pix
|
2195
1990
|
@promptpay = promptpay
|
2196
|
-
@qris = qris
|
2197
1991
|
@radar_options = radar_options
|
2198
|
-
@rechnung = rechnung
|
2199
1992
|
@revolut_pay = revolut_pay
|
2200
1993
|
@samsung_pay = samsung_pay
|
2201
1994
|
@satispay = satispay
|
2202
1995
|
@sepa_debit = sepa_debit
|
2203
|
-
@shopeepay = shopeepay
|
2204
1996
|
@sofort = sofort
|
2205
|
-
@stripe_balance = stripe_balance
|
2206
1997
|
@swish = swish
|
2207
1998
|
@twint = twint
|
2208
1999
|
@type = type
|
@@ -2424,6 +2215,88 @@ module Stripe
|
|
2424
2215
|
|
2425
2216
|
class CardPresent < Stripe::RequestParams; end
|
2426
2217
|
|
2218
|
+
class Klarna < Stripe::RequestParams
|
2219
|
+
class OnDemand < Stripe::RequestParams
|
2220
|
+
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
2221
|
+
attr_accessor :average_amount
|
2222
|
+
# The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
2223
|
+
attr_accessor :maximum_amount
|
2224
|
+
# The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
2225
|
+
attr_accessor :minimum_amount
|
2226
|
+
# Interval at which the customer is making purchases
|
2227
|
+
attr_accessor :purchase_interval
|
2228
|
+
# The number of `purchase_interval` between charges
|
2229
|
+
attr_accessor :purchase_interval_count
|
2230
|
+
|
2231
|
+
def initialize(
|
2232
|
+
average_amount: nil,
|
2233
|
+
maximum_amount: nil,
|
2234
|
+
minimum_amount: nil,
|
2235
|
+
purchase_interval: nil,
|
2236
|
+
purchase_interval_count: nil
|
2237
|
+
)
|
2238
|
+
@average_amount = average_amount
|
2239
|
+
@maximum_amount = maximum_amount
|
2240
|
+
@minimum_amount = minimum_amount
|
2241
|
+
@purchase_interval = purchase_interval
|
2242
|
+
@purchase_interval_count = purchase_interval_count
|
2243
|
+
end
|
2244
|
+
end
|
2245
|
+
|
2246
|
+
class Subscription < Stripe::RequestParams
|
2247
|
+
class NextBilling < Stripe::RequestParams
|
2248
|
+
# The amount of the next charge for the subscription.
|
2249
|
+
attr_accessor :amount
|
2250
|
+
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
2251
|
+
attr_accessor :date
|
2252
|
+
|
2253
|
+
def initialize(amount: nil, date: nil)
|
2254
|
+
@amount = amount
|
2255
|
+
@date = date
|
2256
|
+
end
|
2257
|
+
end
|
2258
|
+
# Unit of time between subscription charges.
|
2259
|
+
attr_accessor :interval
|
2260
|
+
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
2261
|
+
attr_accessor :interval_count
|
2262
|
+
# Name for subscription.
|
2263
|
+
attr_accessor :name
|
2264
|
+
# Describes the upcoming charge for this subscription.
|
2265
|
+
attr_accessor :next_billing
|
2266
|
+
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
2267
|
+
attr_accessor :reference
|
2268
|
+
|
2269
|
+
def initialize(
|
2270
|
+
interval: nil,
|
2271
|
+
interval_count: nil,
|
2272
|
+
name: nil,
|
2273
|
+
next_billing: nil,
|
2274
|
+
reference: nil
|
2275
|
+
)
|
2276
|
+
@interval = interval
|
2277
|
+
@interval_count = interval_count
|
2278
|
+
@name = name
|
2279
|
+
@next_billing = next_billing
|
2280
|
+
@reference = reference
|
2281
|
+
end
|
2282
|
+
end
|
2283
|
+
# The currency of the SetupIntent. Three letter ISO currency code.
|
2284
|
+
attr_accessor :currency
|
2285
|
+
# On-demand details if setting up a payment method for on-demand payments.
|
2286
|
+
attr_accessor :on_demand
|
2287
|
+
# Preferred language of the Klarna authorization page that the customer is redirected to
|
2288
|
+
attr_accessor :preferred_locale
|
2289
|
+
# Subscription details if setting up or charging a subscription
|
2290
|
+
attr_accessor :subscriptions
|
2291
|
+
|
2292
|
+
def initialize(currency: nil, on_demand: nil, preferred_locale: nil, subscriptions: nil)
|
2293
|
+
@currency = currency
|
2294
|
+
@on_demand = on_demand
|
2295
|
+
@preferred_locale = preferred_locale
|
2296
|
+
@subscriptions = subscriptions
|
2297
|
+
end
|
2298
|
+
end
|
2299
|
+
|
2427
2300
|
class Link < Stripe::RequestParams
|
2428
2301
|
# [Deprecated] This is a legacy parameter that no longer has any function.
|
2429
2302
|
attr_accessor :persistent_token
|
@@ -2436,58 +2309,9 @@ module Stripe
|
|
2436
2309
|
class Paypal < Stripe::RequestParams
|
2437
2310
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
2438
2311
|
attr_accessor :billing_agreement_id
|
2439
|
-
# Attribute for param field currency
|
2440
|
-
attr_accessor :currency
|
2441
|
-
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
2442
|
-
attr_accessor :subsellers
|
2443
2312
|
|
2444
|
-
def initialize(billing_agreement_id: nil
|
2313
|
+
def initialize(billing_agreement_id: nil)
|
2445
2314
|
@billing_agreement_id = billing_agreement_id
|
2446
|
-
@currency = currency
|
2447
|
-
@subsellers = subsellers
|
2448
|
-
end
|
2449
|
-
end
|
2450
|
-
|
2451
|
-
class Payto < Stripe::RequestParams
|
2452
|
-
class MandateOptions < Stripe::RequestParams
|
2453
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
2454
|
-
attr_accessor :amount
|
2455
|
-
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
2456
|
-
attr_accessor :amount_type
|
2457
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
2458
|
-
attr_accessor :end_date
|
2459
|
-
# The periodicity at which payments will be collected.
|
2460
|
-
attr_accessor :payment_schedule
|
2461
|
-
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
2462
|
-
attr_accessor :payments_per_period
|
2463
|
-
# The purpose for which payments are made. Defaults to retail.
|
2464
|
-
attr_accessor :purpose
|
2465
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
2466
|
-
attr_accessor :start_date
|
2467
|
-
|
2468
|
-
def initialize(
|
2469
|
-
amount: nil,
|
2470
|
-
amount_type: nil,
|
2471
|
-
end_date: nil,
|
2472
|
-
payment_schedule: nil,
|
2473
|
-
payments_per_period: nil,
|
2474
|
-
purpose: nil,
|
2475
|
-
start_date: nil
|
2476
|
-
)
|
2477
|
-
@amount = amount
|
2478
|
-
@amount_type = amount_type
|
2479
|
-
@end_date = end_date
|
2480
|
-
@payment_schedule = payment_schedule
|
2481
|
-
@payments_per_period = payments_per_period
|
2482
|
-
@purpose = purpose
|
2483
|
-
@start_date = start_date
|
2484
|
-
end
|
2485
|
-
end
|
2486
|
-
# Additional fields for Mandate creation.
|
2487
|
-
attr_accessor :mandate_options
|
2488
|
-
|
2489
|
-
def initialize(mandate_options: nil)
|
2490
|
-
@mandate_options = mandate_options
|
2491
2315
|
end
|
2492
2316
|
end
|
2493
2317
|
|
@@ -2513,27 +2337,13 @@ module Stripe
|
|
2513
2337
|
class Filters < Stripe::RequestParams
|
2514
2338
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
2515
2339
|
attr_accessor :account_subcategories
|
2516
|
-
# ID of the institution to use to filter for selectable accounts.
|
2517
|
-
attr_accessor :institution
|
2518
2340
|
|
2519
|
-
def initialize(account_subcategories: nil
|
2341
|
+
def initialize(account_subcategories: nil)
|
2520
2342
|
@account_subcategories = account_subcategories
|
2521
|
-
@institution = institution
|
2522
|
-
end
|
2523
|
-
end
|
2524
|
-
|
2525
|
-
class ManualEntry < Stripe::RequestParams
|
2526
|
-
# Settings for configuring manual entry of account details.
|
2527
|
-
attr_accessor :mode
|
2528
|
-
|
2529
|
-
def initialize(mode: nil)
|
2530
|
-
@mode = mode
|
2531
2343
|
end
|
2532
2344
|
end
|
2533
2345
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
2534
2346
|
attr_accessor :filters
|
2535
|
-
# Customize manual entry behavior
|
2536
|
-
attr_accessor :manual_entry
|
2537
2347
|
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
2538
2348
|
attr_accessor :permissions
|
2539
2349
|
# List of data features that you would like to retrieve upon account creation.
|
@@ -2541,15 +2351,8 @@ module Stripe
|
|
2541
2351
|
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
2542
2352
|
attr_accessor :return_url
|
2543
2353
|
|
2544
|
-
def initialize(
|
2545
|
-
filters: nil,
|
2546
|
-
manual_entry: nil,
|
2547
|
-
permissions: nil,
|
2548
|
-
prefetch: nil,
|
2549
|
-
return_url: nil
|
2550
|
-
)
|
2354
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
|
2551
2355
|
@filters = filters
|
2552
|
-
@manual_entry = manual_entry
|
2553
2356
|
@permissions = permissions
|
2554
2357
|
@prefetch = prefetch
|
2555
2358
|
@return_url = return_url
|
@@ -2604,12 +2407,12 @@ module Stripe
|
|
2604
2407
|
attr_accessor :card
|
2605
2408
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
2606
2409
|
attr_accessor :card_present
|
2410
|
+
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
|
2411
|
+
attr_accessor :klarna
|
2607
2412
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
2608
2413
|
attr_accessor :link
|
2609
2414
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
2610
2415
|
attr_accessor :paypal
|
2611
|
-
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
2612
|
-
attr_accessor :payto
|
2613
2416
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
2614
2417
|
attr_accessor :sepa_debit
|
2615
2418
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -2621,9 +2424,9 @@ module Stripe
|
|
2621
2424
|
bacs_debit: nil,
|
2622
2425
|
card: nil,
|
2623
2426
|
card_present: nil,
|
2427
|
+
klarna: nil,
|
2624
2428
|
link: nil,
|
2625
2429
|
paypal: nil,
|
2626
|
-
payto: nil,
|
2627
2430
|
sepa_debit: nil,
|
2628
2431
|
us_bank_account: nil
|
2629
2432
|
)
|
@@ -2632,9 +2435,9 @@ module Stripe
|
|
2632
2435
|
@bacs_debit = bacs_debit
|
2633
2436
|
@card = card
|
2634
2437
|
@card_present = card_present
|
2438
|
+
@klarna = klarna
|
2635
2439
|
@link = link
|
2636
2440
|
@paypal = paypal
|
2637
|
-
@payto = payto
|
2638
2441
|
@sepa_debit = sepa_debit
|
2639
2442
|
@us_bank_account = us_bank_account
|
2640
2443
|
end
|
@@ -2647,10 +2450,6 @@ module Stripe
|
|
2647
2450
|
#
|
2648
2451
|
# If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
|
2649
2452
|
attr_accessor :customer
|
2650
|
-
# ID of the Account this SetupIntent belongs to, if one exists.
|
2651
|
-
#
|
2652
|
-
# If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
|
2653
|
-
attr_accessor :customer_account
|
2654
2453
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
2655
2454
|
attr_accessor :description
|
2656
2455
|
# Specifies which fields in the response should be expanded.
|
@@ -2670,13 +2469,12 @@ module Stripe
|
|
2670
2469
|
attr_accessor :payment_method_data
|
2671
2470
|
# Payment method-specific configuration for this SetupIntent.
|
2672
2471
|
attr_accessor :payment_method_options
|
2673
|
-
# The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
|
2472
|
+
# The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
2674
2473
|
attr_accessor :payment_method_types
|
2675
2474
|
|
2676
2475
|
def initialize(
|
2677
2476
|
attach_to_self: nil,
|
2678
2477
|
customer: nil,
|
2679
|
-
customer_account: nil,
|
2680
2478
|
description: nil,
|
2681
2479
|
expand: nil,
|
2682
2480
|
flow_directions: nil,
|
@@ -2689,7 +2487,6 @@ module Stripe
|
|
2689
2487
|
)
|
2690
2488
|
@attach_to_self = attach_to_self
|
2691
2489
|
@customer = customer
|
2692
|
-
@customer_account = customer_account
|
2693
2490
|
@description = description
|
2694
2491
|
@expand = expand
|
2695
2492
|
@flow_directions = flow_directions
|
@@ -2866,6 +2663,7 @@ module Stripe
|
|
2866
2663
|
end
|
2867
2664
|
|
2868
2665
|
class Cashapp < Stripe::RequestParams; end
|
2666
|
+
class Crypto < Stripe::RequestParams; end
|
2869
2667
|
class CustomerBalance < Stripe::RequestParams; end
|
2870
2668
|
|
2871
2669
|
class Eps < Stripe::RequestParams
|
@@ -2890,18 +2688,8 @@ module Stripe
|
|
2890
2688
|
end
|
2891
2689
|
|
2892
2690
|
class Giropay < Stripe::RequestParams; end
|
2893
|
-
class Gopay < Stripe::RequestParams; end
|
2894
2691
|
class Grabpay < Stripe::RequestParams; end
|
2895
2692
|
|
2896
|
-
class IdBankTransfer < Stripe::RequestParams
|
2897
|
-
# Bank where the account is held.
|
2898
|
-
attr_accessor :bank
|
2899
|
-
|
2900
|
-
def initialize(bank: nil)
|
2901
|
-
@bank = bank
|
2902
|
-
end
|
2903
|
-
end
|
2904
|
-
|
2905
2693
|
class Ideal < Stripe::RequestParams
|
2906
2694
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
2907
2695
|
attr_accessor :bank
|
@@ -2940,7 +2728,6 @@ module Stripe
|
|
2940
2728
|
class Konbini < Stripe::RequestParams; end
|
2941
2729
|
class KrCard < Stripe::RequestParams; end
|
2942
2730
|
class Link < Stripe::RequestParams; end
|
2943
|
-
class MbWay < Stripe::RequestParams; end
|
2944
2731
|
class Mobilepay < Stripe::RequestParams; end
|
2945
2732
|
class Multibanco < Stripe::RequestParams; end
|
2946
2733
|
|
@@ -2999,25 +2786,8 @@ module Stripe
|
|
2999
2786
|
class Payco < Stripe::RequestParams; end
|
3000
2787
|
class Paynow < Stripe::RequestParams; end
|
3001
2788
|
class Paypal < Stripe::RequestParams; end
|
3002
|
-
|
3003
|
-
class Payto < Stripe::RequestParams
|
3004
|
-
# The account number for the bank account.
|
3005
|
-
attr_accessor :account_number
|
3006
|
-
# Bank-State-Branch number of the bank account.
|
3007
|
-
attr_accessor :bsb_number
|
3008
|
-
# The PayID alias for the bank account.
|
3009
|
-
attr_accessor :pay_id
|
3010
|
-
|
3011
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
3012
|
-
@account_number = account_number
|
3013
|
-
@bsb_number = bsb_number
|
3014
|
-
@pay_id = pay_id
|
3015
|
-
end
|
3016
|
-
end
|
3017
|
-
|
3018
2789
|
class Pix < Stripe::RequestParams; end
|
3019
2790
|
class Promptpay < Stripe::RequestParams; end
|
3020
|
-
class Qris < Stripe::RequestParams; end
|
3021
2791
|
|
3022
2792
|
class RadarOptions < Stripe::RequestParams
|
3023
2793
|
# 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.
|
@@ -3028,29 +2798,6 @@ module Stripe
|
|
3028
2798
|
end
|
3029
2799
|
end
|
3030
2800
|
|
3031
|
-
class Rechnung < Stripe::RequestParams
|
3032
|
-
class Dob < Stripe::RequestParams
|
3033
|
-
# The day of birth, between 1 and 31.
|
3034
|
-
attr_accessor :day
|
3035
|
-
# The month of birth, between 1 and 12.
|
3036
|
-
attr_accessor :month
|
3037
|
-
# The four-digit year of birth.
|
3038
|
-
attr_accessor :year
|
3039
|
-
|
3040
|
-
def initialize(day: nil, month: nil, year: nil)
|
3041
|
-
@day = day
|
3042
|
-
@month = month
|
3043
|
-
@year = year
|
3044
|
-
end
|
3045
|
-
end
|
3046
|
-
# Customer's date of birth
|
3047
|
-
attr_accessor :dob
|
3048
|
-
|
3049
|
-
def initialize(dob: nil)
|
3050
|
-
@dob = dob
|
3051
|
-
end
|
3052
|
-
end
|
3053
|
-
|
3054
2801
|
class RevolutPay < Stripe::RequestParams; end
|
3055
2802
|
class SamsungPay < Stripe::RequestParams; end
|
3056
2803
|
class Satispay < Stripe::RequestParams; end
|
@@ -3064,8 +2811,6 @@ module Stripe
|
|
3064
2811
|
end
|
3065
2812
|
end
|
3066
2813
|
|
3067
|
-
class Shopeepay < Stripe::RequestParams; end
|
3068
|
-
|
3069
2814
|
class Sofort < Stripe::RequestParams
|
3070
2815
|
# Two-letter ISO code representing the country the bank account is located in.
|
3071
2816
|
attr_accessor :country
|
@@ -3075,18 +2820,6 @@ module Stripe
|
|
3075
2820
|
end
|
3076
2821
|
end
|
3077
2822
|
|
3078
|
-
class StripeBalance < Stripe::RequestParams
|
3079
|
-
# The connected account ID whose Stripe balance to use as the source of payment
|
3080
|
-
attr_accessor :account
|
3081
|
-
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
3082
|
-
attr_accessor :source_type
|
3083
|
-
|
3084
|
-
def initialize(account: nil, source_type: nil)
|
3085
|
-
@account = account
|
3086
|
-
@source_type = source_type
|
3087
|
-
end
|
3088
|
-
end
|
3089
|
-
|
3090
2823
|
class Swish < Stripe::RequestParams; end
|
3091
2824
|
class Twint < Stripe::RequestParams; end
|
3092
2825
|
|
@@ -3149,6 +2882,8 @@ module Stripe
|
|
3149
2882
|
attr_accessor :boleto
|
3150
2883
|
# If this is a `cashapp` PaymentMethod, this hash contains details about the Cash App Pay payment method.
|
3151
2884
|
attr_accessor :cashapp
|
2885
|
+
# If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method.
|
2886
|
+
attr_accessor :crypto
|
3152
2887
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
3153
2888
|
attr_accessor :customer_balance
|
3154
2889
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
@@ -3157,12 +2892,8 @@ module Stripe
|
|
3157
2892
|
attr_accessor :fpx
|
3158
2893
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
3159
2894
|
attr_accessor :giropay
|
3160
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
3161
|
-
attr_accessor :gopay
|
3162
2895
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
3163
2896
|
attr_accessor :grabpay
|
3164
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
3165
|
-
attr_accessor :id_bank_transfer
|
3166
2897
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
3167
2898
|
attr_accessor :ideal
|
3168
2899
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -3177,8 +2908,6 @@ module Stripe
|
|
3177
2908
|
attr_accessor :kr_card
|
3178
2909
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
3179
2910
|
attr_accessor :link
|
3180
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
3181
|
-
attr_accessor :mb_way
|
3182
2911
|
# 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`.
|
3183
2912
|
attr_accessor :metadata
|
3184
2913
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -3201,18 +2930,12 @@ module Stripe
|
|
3201
2930
|
attr_accessor :paynow
|
3202
2931
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
3203
2932
|
attr_accessor :paypal
|
3204
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
3205
|
-
attr_accessor :payto
|
3206
2933
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
3207
2934
|
attr_accessor :pix
|
3208
2935
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
3209
2936
|
attr_accessor :promptpay
|
3210
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
3211
|
-
attr_accessor :qris
|
3212
2937
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
3213
2938
|
attr_accessor :radar_options
|
3214
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
3215
|
-
attr_accessor :rechnung
|
3216
2939
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
3217
2940
|
attr_accessor :revolut_pay
|
3218
2941
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -3221,12 +2944,8 @@ module Stripe
|
|
3221
2944
|
attr_accessor :satispay
|
3222
2945
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
3223
2946
|
attr_accessor :sepa_debit
|
3224
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
3225
|
-
attr_accessor :shopeepay
|
3226
2947
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
3227
2948
|
attr_accessor :sofort
|
3228
|
-
# This hash contains details about the Stripe balance payment method.
|
3229
|
-
attr_accessor :stripe_balance
|
3230
2949
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
3231
2950
|
attr_accessor :swish
|
3232
2951
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -3256,13 +2975,12 @@ module Stripe
|
|
3256
2975
|
blik: nil,
|
3257
2976
|
boleto: nil,
|
3258
2977
|
cashapp: nil,
|
2978
|
+
crypto: nil,
|
3259
2979
|
customer_balance: nil,
|
3260
2980
|
eps: nil,
|
3261
2981
|
fpx: nil,
|
3262
2982
|
giropay: nil,
|
3263
|
-
gopay: nil,
|
3264
2983
|
grabpay: nil,
|
3265
|
-
id_bank_transfer: nil,
|
3266
2984
|
ideal: nil,
|
3267
2985
|
interac_present: nil,
|
3268
2986
|
kakao_pay: nil,
|
@@ -3270,7 +2988,6 @@ module Stripe
|
|
3270
2988
|
konbini: nil,
|
3271
2989
|
kr_card: nil,
|
3272
2990
|
link: nil,
|
3273
|
-
mb_way: nil,
|
3274
2991
|
metadata: nil,
|
3275
2992
|
mobilepay: nil,
|
3276
2993
|
multibanco: nil,
|
@@ -3282,19 +2999,14 @@ module Stripe
|
|
3282
2999
|
payco: nil,
|
3283
3000
|
paynow: nil,
|
3284
3001
|
paypal: nil,
|
3285
|
-
payto: nil,
|
3286
3002
|
pix: nil,
|
3287
3003
|
promptpay: nil,
|
3288
|
-
qris: nil,
|
3289
3004
|
radar_options: nil,
|
3290
|
-
rechnung: nil,
|
3291
3005
|
revolut_pay: nil,
|
3292
3006
|
samsung_pay: nil,
|
3293
3007
|
satispay: nil,
|
3294
3008
|
sepa_debit: nil,
|
3295
|
-
shopeepay: nil,
|
3296
3009
|
sofort: nil,
|
3297
|
-
stripe_balance: nil,
|
3298
3010
|
swish: nil,
|
3299
3011
|
twint: nil,
|
3300
3012
|
type: nil,
|
@@ -3317,13 +3029,12 @@ module Stripe
|
|
3317
3029
|
@blik = blik
|
3318
3030
|
@boleto = boleto
|
3319
3031
|
@cashapp = cashapp
|
3032
|
+
@crypto = crypto
|
3320
3033
|
@customer_balance = customer_balance
|
3321
3034
|
@eps = eps
|
3322
3035
|
@fpx = fpx
|
3323
3036
|
@giropay = giropay
|
3324
|
-
@gopay = gopay
|
3325
3037
|
@grabpay = grabpay
|
3326
|
-
@id_bank_transfer = id_bank_transfer
|
3327
3038
|
@ideal = ideal
|
3328
3039
|
@interac_present = interac_present
|
3329
3040
|
@kakao_pay = kakao_pay
|
@@ -3331,7 +3042,6 @@ module Stripe
|
|
3331
3042
|
@konbini = konbini
|
3332
3043
|
@kr_card = kr_card
|
3333
3044
|
@link = link
|
3334
|
-
@mb_way = mb_way
|
3335
3045
|
@metadata = metadata
|
3336
3046
|
@mobilepay = mobilepay
|
3337
3047
|
@multibanco = multibanco
|
@@ -3343,19 +3053,14 @@ module Stripe
|
|
3343
3053
|
@payco = payco
|
3344
3054
|
@paynow = paynow
|
3345
3055
|
@paypal = paypal
|
3346
|
-
@payto = payto
|
3347
3056
|
@pix = pix
|
3348
3057
|
@promptpay = promptpay
|
3349
|
-
@qris = qris
|
3350
3058
|
@radar_options = radar_options
|
3351
|
-
@rechnung = rechnung
|
3352
3059
|
@revolut_pay = revolut_pay
|
3353
3060
|
@samsung_pay = samsung_pay
|
3354
3061
|
@satispay = satispay
|
3355
3062
|
@sepa_debit = sepa_debit
|
3356
|
-
@shopeepay = shopeepay
|
3357
3063
|
@sofort = sofort
|
3358
|
-
@stripe_balance = stripe_balance
|
3359
3064
|
@swish = swish
|
3360
3065
|
@twint = twint
|
3361
3066
|
@type = type
|
@@ -3577,6 +3282,88 @@ module Stripe
|
|
3577
3282
|
|
3578
3283
|
class CardPresent < Stripe::RequestParams; end
|
3579
3284
|
|
3285
|
+
class Klarna < Stripe::RequestParams
|
3286
|
+
class OnDemand < Stripe::RequestParams
|
3287
|
+
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
3288
|
+
attr_accessor :average_amount
|
3289
|
+
# The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
3290
|
+
attr_accessor :maximum_amount
|
3291
|
+
# The lowest or minimum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
3292
|
+
attr_accessor :minimum_amount
|
3293
|
+
# Interval at which the customer is making purchases
|
3294
|
+
attr_accessor :purchase_interval
|
3295
|
+
# The number of `purchase_interval` between charges
|
3296
|
+
attr_accessor :purchase_interval_count
|
3297
|
+
|
3298
|
+
def initialize(
|
3299
|
+
average_amount: nil,
|
3300
|
+
maximum_amount: nil,
|
3301
|
+
minimum_amount: nil,
|
3302
|
+
purchase_interval: nil,
|
3303
|
+
purchase_interval_count: nil
|
3304
|
+
)
|
3305
|
+
@average_amount = average_amount
|
3306
|
+
@maximum_amount = maximum_amount
|
3307
|
+
@minimum_amount = minimum_amount
|
3308
|
+
@purchase_interval = purchase_interval
|
3309
|
+
@purchase_interval_count = purchase_interval_count
|
3310
|
+
end
|
3311
|
+
end
|
3312
|
+
|
3313
|
+
class Subscription < Stripe::RequestParams
|
3314
|
+
class NextBilling < Stripe::RequestParams
|
3315
|
+
# The amount of the next charge for the subscription.
|
3316
|
+
attr_accessor :amount
|
3317
|
+
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
3318
|
+
attr_accessor :date
|
3319
|
+
|
3320
|
+
def initialize(amount: nil, date: nil)
|
3321
|
+
@amount = amount
|
3322
|
+
@date = date
|
3323
|
+
end
|
3324
|
+
end
|
3325
|
+
# Unit of time between subscription charges.
|
3326
|
+
attr_accessor :interval
|
3327
|
+
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
3328
|
+
attr_accessor :interval_count
|
3329
|
+
# Name for subscription.
|
3330
|
+
attr_accessor :name
|
3331
|
+
# Describes the upcoming charge for this subscription.
|
3332
|
+
attr_accessor :next_billing
|
3333
|
+
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
3334
|
+
attr_accessor :reference
|
3335
|
+
|
3336
|
+
def initialize(
|
3337
|
+
interval: nil,
|
3338
|
+
interval_count: nil,
|
3339
|
+
name: nil,
|
3340
|
+
next_billing: nil,
|
3341
|
+
reference: nil
|
3342
|
+
)
|
3343
|
+
@interval = interval
|
3344
|
+
@interval_count = interval_count
|
3345
|
+
@name = name
|
3346
|
+
@next_billing = next_billing
|
3347
|
+
@reference = reference
|
3348
|
+
end
|
3349
|
+
end
|
3350
|
+
# The currency of the SetupIntent. Three letter ISO currency code.
|
3351
|
+
attr_accessor :currency
|
3352
|
+
# On-demand details if setting up a payment method for on-demand payments.
|
3353
|
+
attr_accessor :on_demand
|
3354
|
+
# Preferred language of the Klarna authorization page that the customer is redirected to
|
3355
|
+
attr_accessor :preferred_locale
|
3356
|
+
# Subscription details if setting up or charging a subscription
|
3357
|
+
attr_accessor :subscriptions
|
3358
|
+
|
3359
|
+
def initialize(currency: nil, on_demand: nil, preferred_locale: nil, subscriptions: nil)
|
3360
|
+
@currency = currency
|
3361
|
+
@on_demand = on_demand
|
3362
|
+
@preferred_locale = preferred_locale
|
3363
|
+
@subscriptions = subscriptions
|
3364
|
+
end
|
3365
|
+
end
|
3366
|
+
|
3580
3367
|
class Link < Stripe::RequestParams
|
3581
3368
|
# [Deprecated] This is a legacy parameter that no longer has any function.
|
3582
3369
|
attr_accessor :persistent_token
|
@@ -3589,58 +3376,9 @@ module Stripe
|
|
3589
3376
|
class Paypal < Stripe::RequestParams
|
3590
3377
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
3591
3378
|
attr_accessor :billing_agreement_id
|
3592
|
-
# Attribute for param field currency
|
3593
|
-
attr_accessor :currency
|
3594
|
-
# The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
|
3595
|
-
attr_accessor :subsellers
|
3596
3379
|
|
3597
|
-
def initialize(billing_agreement_id: nil
|
3380
|
+
def initialize(billing_agreement_id: nil)
|
3598
3381
|
@billing_agreement_id = billing_agreement_id
|
3599
|
-
@currency = currency
|
3600
|
-
@subsellers = subsellers
|
3601
|
-
end
|
3602
|
-
end
|
3603
|
-
|
3604
|
-
class Payto < Stripe::RequestParams
|
3605
|
-
class MandateOptions < Stripe::RequestParams
|
3606
|
-
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
3607
|
-
attr_accessor :amount
|
3608
|
-
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
3609
|
-
attr_accessor :amount_type
|
3610
|
-
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
3611
|
-
attr_accessor :end_date
|
3612
|
-
# The periodicity at which payments will be collected.
|
3613
|
-
attr_accessor :payment_schedule
|
3614
|
-
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
3615
|
-
attr_accessor :payments_per_period
|
3616
|
-
# The purpose for which payments are made. Defaults to retail.
|
3617
|
-
attr_accessor :purpose
|
3618
|
-
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
3619
|
-
attr_accessor :start_date
|
3620
|
-
|
3621
|
-
def initialize(
|
3622
|
-
amount: nil,
|
3623
|
-
amount_type: nil,
|
3624
|
-
end_date: nil,
|
3625
|
-
payment_schedule: nil,
|
3626
|
-
payments_per_period: nil,
|
3627
|
-
purpose: nil,
|
3628
|
-
start_date: nil
|
3629
|
-
)
|
3630
|
-
@amount = amount
|
3631
|
-
@amount_type = amount_type
|
3632
|
-
@end_date = end_date
|
3633
|
-
@payment_schedule = payment_schedule
|
3634
|
-
@payments_per_period = payments_per_period
|
3635
|
-
@purpose = purpose
|
3636
|
-
@start_date = start_date
|
3637
|
-
end
|
3638
|
-
end
|
3639
|
-
# Additional fields for Mandate creation.
|
3640
|
-
attr_accessor :mandate_options
|
3641
|
-
|
3642
|
-
def initialize(mandate_options: nil)
|
3643
|
-
@mandate_options = mandate_options
|
3644
3382
|
end
|
3645
3383
|
end
|
3646
3384
|
|
@@ -3666,27 +3404,13 @@ module Stripe
|
|
3666
3404
|
class Filters < Stripe::RequestParams
|
3667
3405
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
3668
3406
|
attr_accessor :account_subcategories
|
3669
|
-
# ID of the institution to use to filter for selectable accounts.
|
3670
|
-
attr_accessor :institution
|
3671
3407
|
|
3672
|
-
def initialize(account_subcategories: nil
|
3408
|
+
def initialize(account_subcategories: nil)
|
3673
3409
|
@account_subcategories = account_subcategories
|
3674
|
-
@institution = institution
|
3675
|
-
end
|
3676
|
-
end
|
3677
|
-
|
3678
|
-
class ManualEntry < Stripe::RequestParams
|
3679
|
-
# Settings for configuring manual entry of account details.
|
3680
|
-
attr_accessor :mode
|
3681
|
-
|
3682
|
-
def initialize(mode: nil)
|
3683
|
-
@mode = mode
|
3684
3410
|
end
|
3685
3411
|
end
|
3686
3412
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
3687
3413
|
attr_accessor :filters
|
3688
|
-
# Customize manual entry behavior
|
3689
|
-
attr_accessor :manual_entry
|
3690
3414
|
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
3691
3415
|
attr_accessor :permissions
|
3692
3416
|
# List of data features that you would like to retrieve upon account creation.
|
@@ -3694,15 +3418,8 @@ module Stripe
|
|
3694
3418
|
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
3695
3419
|
attr_accessor :return_url
|
3696
3420
|
|
3697
|
-
def initialize(
|
3698
|
-
filters: nil,
|
3699
|
-
manual_entry: nil,
|
3700
|
-
permissions: nil,
|
3701
|
-
prefetch: nil,
|
3702
|
-
return_url: nil
|
3703
|
-
)
|
3421
|
+
def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil)
|
3704
3422
|
@filters = filters
|
3705
|
-
@manual_entry = manual_entry
|
3706
3423
|
@permissions = permissions
|
3707
3424
|
@prefetch = prefetch
|
3708
3425
|
@return_url = return_url
|
@@ -3757,12 +3474,12 @@ module Stripe
|
|
3757
3474
|
attr_accessor :card
|
3758
3475
|
# If this is a `card_present` PaymentMethod, this sub-hash contains details about the card-present payment method options.
|
3759
3476
|
attr_accessor :card_present
|
3477
|
+
# If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method options.
|
3478
|
+
attr_accessor :klarna
|
3760
3479
|
# If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options.
|
3761
3480
|
attr_accessor :link
|
3762
3481
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
3763
3482
|
attr_accessor :paypal
|
3764
|
-
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
3765
|
-
attr_accessor :payto
|
3766
3483
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
3767
3484
|
attr_accessor :sepa_debit
|
3768
3485
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -3774,9 +3491,9 @@ module Stripe
|
|
3774
3491
|
bacs_debit: nil,
|
3775
3492
|
card: nil,
|
3776
3493
|
card_present: nil,
|
3494
|
+
klarna: nil,
|
3777
3495
|
link: nil,
|
3778
3496
|
paypal: nil,
|
3779
|
-
payto: nil,
|
3780
3497
|
sepa_debit: nil,
|
3781
3498
|
us_bank_account: nil
|
3782
3499
|
)
|
@@ -3785,9 +3502,9 @@ module Stripe
|
|
3785
3502
|
@bacs_debit = bacs_debit
|
3786
3503
|
@card = card
|
3787
3504
|
@card_present = card_present
|
3505
|
+
@klarna = klarna
|
3788
3506
|
@link = link
|
3789
3507
|
@paypal = paypal
|
3790
|
-
@payto = payto
|
3791
3508
|
@sepa_debit = sepa_debit
|
3792
3509
|
@us_bank_account = us_bank_account
|
3793
3510
|
end
|
@@ -3869,10 +3586,6 @@ module Stripe
|
|
3869
3586
|
#
|
3870
3587
|
# If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent.
|
3871
3588
|
attr_reader :customer
|
3872
|
-
# ID of the Account this SetupIntent belongs to, if one exists.
|
3873
|
-
#
|
3874
|
-
# If present, the SetupIntent's payment method will be attached to the Account on successful setup. Payment methods attached to other Accounts cannot be used with this SetupIntent.
|
3875
|
-
attr_reader :customer_account
|
3876
3589
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
3877
3590
|
attr_reader :description
|
3878
3591
|
# Indicates the directions of money movement for which this payment method is intended to be used.
|
@@ -3903,7 +3616,7 @@ module Stripe
|
|
3903
3616
|
attr_reader :payment_method_configuration_details
|
3904
3617
|
# Payment method-specific configuration for this SetupIntent.
|
3905
3618
|
attr_reader :payment_method_options
|
3906
|
-
# The list of payment method types (e.g. card) that this SetupIntent is allowed to set up.
|
3619
|
+
# The list of payment method types (e.g. card) that this SetupIntent is allowed to set up. A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
3907
3620
|
attr_reader :payment_method_types
|
3908
3621
|
# ID of the single_use Mandate generated by the SetupIntent.
|
3909
3622
|
attr_reader :single_use_mandate
|