stripe 15.2.0.pre.beta.1 → 15.2.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/CHANGELOG.md +718 -1556
- data/CONTRIBUTING.md +25 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +10 -7
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +0 -28
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +0 -54
- data/lib/stripe/event_types.rb +0 -89
- data/lib/stripe/object_types.rb +0 -52
- data/lib/stripe/resources/account.rb +32 -657
- data/lib/stripe/resources/account_session.rb +59 -253
- data/lib/stripe/resources/apple_pay_domain.rb +1 -2
- data/lib/stripe/resources/balance.rb +42 -0
- data/lib/stripe/resources/balance_transaction.rb +2 -0
- data/lib/stripe/resources/bank_account.rb +2 -2
- 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 +1 -7
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/card.rb +0 -2
- data/lib/stripe/resources/cash_balance.rb +0 -2
- data/lib/stripe/resources/charge.rb +13 -1475
- data/lib/stripe/resources/checkout/session.rb +21 -333
- data/lib/stripe/resources/confirmation_token.rb +33 -263
- data/lib/stripe/resources/country_spec.rb +1 -1
- data/lib/stripe/resources/coupon.rb +2 -32
- data/lib/stripe/resources/credit_note.rb +10 -17
- data/lib/stripe/resources/credit_note_line_item.rb +0 -9
- data/lib/stripe/resources/customer.rb +2 -6
- 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 +4 -9
- data/lib/stripe/resources/discount.rb +0 -2
- data/lib/stripe/resources/dispute.rb +2 -2
- data/lib/stripe/resources/event.rb +1 -32
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/financial_connections/account.rb +1 -20
- data/lib/stripe/resources/financial_connections/session.rb +2 -62
- data/lib/stripe/resources/identity/verification_report.rb +6 -0
- data/lib/stripe/resources/identity/verification_session.rb +17 -21
- data/lib/stripe/resources/invoice.rb +79 -1106
- data/lib/stripe/resources/invoice_item.rb +4 -81
- data/lib/stripe/resources/invoice_line_item.rb +2 -56
- data/lib/stripe/resources/invoice_payment.rb +62 -4
- data/lib/stripe/resources/issuing/authorization.rb +8 -8
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/issuing/cardholder.rb +1 -2
- data/lib/stripe/resources/issuing/dispute.rb +3 -3
- data/lib/stripe/resources/issuing/transaction.rb +0 -6
- data/lib/stripe/resources/line_item.rb +0 -37
- data/lib/stripe/resources/mandate.rb +0 -24
- data/lib/stripe/resources/payment_intent.rb +1912 -6840
- data/lib/stripe/resources/payment_method.rb +47 -301
- data/lib/stripe/resources/payment_method_configuration.rb +112 -112
- data/lib/stripe/resources/payment_method_domain.rb +2 -2
- data/lib/stripe/resources/payout.rb +4 -10
- data/lib/stripe/resources/person.rb +2 -2
- data/lib/stripe/resources/plan.rb +2 -3
- data/lib/stripe/resources/price.rb +1 -31
- data/lib/stripe/resources/product.rb +1 -61
- data/lib/stripe/resources/promotion_code.rb +0 -10
- data/lib/stripe/resources/quote.rb +6 -2046
- data/lib/stripe/resources/radar/value_list.rb +1 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -2
- data/lib/stripe/resources/refund.rb +6 -10
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +0 -21
- data/lib/stripe/resources/setup_intent.rb +120 -877
- data/lib/stripe/resources/source.rb +1 -30
- data/lib/stripe/resources/subscription.rb +97 -326
- data/lib/stripe/resources/subscription_item.rb +32 -80
- data/lib/stripe/resources/subscription_schedule.rb +127 -1015
- data/lib/stripe/resources/tax/calculation.rb +4 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/registration.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +3 -14
- data/lib/stripe/resources/tax_rate.rb +2 -2
- data/lib/stripe/resources/terminal/configuration.rb +1 -2
- data/lib/stripe/resources/terminal/location.rb +2 -3
- data/lib/stripe/resources/terminal/reader.rb +8 -142
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
- data/lib/stripe/resources/token.rb +2 -2
- data/lib/stripe/resources/transfer.rb +1 -7
- data/lib/stripe/resources/treasury/financial_account.rb +3 -22
- 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/webhook_endpoint.rb +1 -2
- data/lib/stripe/resources.rb +0 -99
- data/lib/stripe/services/account_external_account_service.rb +2 -3
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +1 -2
- data/lib/stripe/services/account_service.rb +23 -559
- data/lib/stripe/services/account_session_service.rb +29 -229
- data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
- data/lib/stripe/services/balance_service.rb +1 -1
- 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 +0 -4
- data/lib/stripe/services/charge_service.rb +4 -1354
- data/lib/stripe/services/checkout/session_service.rb +13 -250
- data/lib/stripe/services/coupon_service.rb +2 -19
- data/lib/stripe/services/credit_note_service.rb +7 -12
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +3 -5
- data/lib/stripe/services/customer_session_service.rb +1 -4
- data/lib/stripe/services/customer_tax_id_service.rb +1 -2
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- 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 +5 -13
- data/lib/stripe/services/invoice_item_service.rb +3 -76
- 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 +74 -1049
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/card_service.rb +1 -1
- data/lib/stripe/services/issuing/cardholder_service.rb +1 -2
- data/lib/stripe/services/issuing/dispute_service.rb +2 -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 +439 -4928
- data/lib/stripe/services/payment_method_configuration_service.rb +82 -82
- data/lib/stripe/services/payment_method_domain_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +44 -226
- data/lib/stripe/services/payout_service.rb +2 -6
- data/lib/stripe/services/plan_service.rb +2 -3
- data/lib/stripe/services/price_service.rb +2 -21
- data/lib/stripe/services/product_feature_service.rb +1 -2
- data/lib/stripe/services/product_service.rb +2 -41
- data/lib/stripe/services/promotion_code_service.rb +1 -9
- data/lib/stripe/services/quote_service.rb +7 -1730
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
- data/lib/stripe/services/radar/value_list_service.rb +1 -2
- data/lib/stripe/services/setup_intent_service.rb +119 -836
- data/lib/stripe/services/source_service.rb +1 -1
- data/lib/stripe/services/subscription_item_service.rb +27 -73
- data/lib/stripe/services/subscription_schedule_service.rb +101 -916
- data/lib/stripe/services/subscription_service.rb +85 -282
- data/lib/stripe/services/tax/calculation_service.rb +4 -0
- data/lib/stripe/services/tax/registration_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +3 -10
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/configuration_service.rb +1 -2
- data/lib/stripe/services/terminal/location_service.rb +2 -3
- data/lib/stripe/services/terminal/reader_service.rb +5 -81
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +33 -190
- data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
- 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 +1 -5
- data/lib/stripe/services/treasury/financial_account_features_service.rb +1 -4
- data/lib/stripe/services/treasury/financial_account_service.rb +2 -16
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -24
- data/lib/stripe/services/v1_services.rb +2 -12
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
- data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
- data/lib/stripe/services/v2/core/event_service.rb +1 -2
- data/lib/stripe/services/v2/core_service.rb +1 -4
- data/lib/stripe/services/v2_services.rb +2 -4
- data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
- data/lib/stripe/services.rb +1 -54
- 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.rb +0 -53
- data/rbi/stripe/resources/account.rbi +4926 -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 +2069 -0
- data/rbi/stripe/resources/checkout/session.rbi +4004 -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 +1807 -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 +526 -0
- data/rbi/stripe/resources/invoice.rbi +3812 -0
- data/rbi/stripe/resources/invoice_item.rbi +473 -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 +187 -0
- data/rbi/stripe/resources/payment_intent.rbi +9647 -0
- data/rbi/stripe/resources/payment_link.rbi +1801 -0
- data/rbi/stripe/resources/payment_method.rbi +1761 -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 +1126 -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 +3655 -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 +2027 -0
- data/rbi/stripe/resources/subscription_item.rbi +404 -0
- data/rbi/stripe/resources/subscription_schedule.rbi +1623 -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 +2713 -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 +1386 -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 +847 -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 +865 -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} +124 -138
- 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 +4213 -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 +2614 -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 +323 -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 +2981 -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 +7659 -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 +776 -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 +686 -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 +3391 -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 +1290 -0
- data/rbi/stripe/services/subscription_service.rbi +1648 -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 +1845 -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 +455 -0
- data/rbi/stripe/services/terminal_service.rbi +12 -0
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +739 -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 +562 -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 -158
- 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/resources/account_notice.rb +0 -123
- data/lib/stripe/resources/balance_settings.rb +0 -105
- data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
- 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 -90
- data/lib/stripe/resources/fx_quote.rb +0 -184
- data/lib/stripe/resources/gift_cards/card.rb +0 -208
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -272
- 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 -2859
- data/lib/stripe/resources/payment_attempt_record.rb +0 -1078
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -65
- data/lib/stripe/resources/payment_record.rb +0 -1607
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -275
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -25
- 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 -339
- data/lib/stripe/resources/tax/association.rb +0 -89
- 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 -136
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -108
- 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/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/gift_cards/card_service.rb +0 -170
- data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
- data/lib/stripe/services/gift_cards_service.rb +0 -14
- 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 -2268
- 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 -231
- 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 -1048
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -135
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -109
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -75
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -44
- 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 -126
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -96
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -202
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -237
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -174
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -95
- 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 -71
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -44
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -74
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -50
- data/rbi/stripe.rbi +0 -191867
@@ -50,20 +50,11 @@ module Stripe
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
class Affirm < Stripe::RequestParams
|
54
|
-
end
|
55
|
-
|
56
|
-
class
|
57
|
-
end
|
58
|
-
|
59
|
-
class Alipay < Stripe::RequestParams
|
60
|
-
end
|
61
|
-
|
62
|
-
class Alma < Stripe::RequestParams
|
63
|
-
end
|
64
|
-
|
65
|
-
class AmazonPay < Stripe::RequestParams
|
66
|
-
end
|
53
|
+
class Affirm < Stripe::RequestParams; end
|
54
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
55
|
+
class Alipay < Stripe::RequestParams; end
|
56
|
+
class Alma < Stripe::RequestParams; end
|
57
|
+
class AmazonPay < Stripe::RequestParams; end
|
67
58
|
|
68
59
|
class AuBecsDebit < Stripe::RequestParams
|
69
60
|
# The account number for the bank account.
|
@@ -89,11 +80,8 @@ module Stripe
|
|
89
80
|
end
|
90
81
|
end
|
91
82
|
|
92
|
-
class Bancontact < Stripe::RequestParams
|
93
|
-
end
|
94
|
-
|
95
|
-
class Billie < Stripe::RequestParams
|
96
|
-
end
|
83
|
+
class Bancontact < Stripe::RequestParams; end
|
84
|
+
class Billie < Stripe::RequestParams; end
|
97
85
|
|
98
86
|
class BillingDetails < Stripe::RequestParams
|
99
87
|
class Address < Stripe::RequestParams
|
@@ -146,8 +134,7 @@ module Stripe
|
|
146
134
|
end
|
147
135
|
end
|
148
136
|
|
149
|
-
class Blik < Stripe::RequestParams
|
150
|
-
end
|
137
|
+
class Blik < Stripe::RequestParams; end
|
151
138
|
|
152
139
|
class Boleto < Stripe::RequestParams
|
153
140
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -197,11 +184,8 @@ module Stripe
|
|
197
184
|
end
|
198
185
|
end
|
199
186
|
|
200
|
-
class Cashapp < Stripe::RequestParams
|
201
|
-
end
|
202
|
-
|
203
|
-
class CustomerBalance < Stripe::RequestParams
|
204
|
-
end
|
187
|
+
class Cashapp < Stripe::RequestParams; end
|
188
|
+
class CustomerBalance < Stripe::RequestParams; end
|
205
189
|
|
206
190
|
class Eps < Stripe::RequestParams
|
207
191
|
# The customer's bank.
|
@@ -224,23 +208,8 @@ module Stripe
|
|
224
208
|
end
|
225
209
|
end
|
226
210
|
|
227
|
-
class Giropay < Stripe::RequestParams
|
228
|
-
end
|
229
|
-
|
230
|
-
class Gopay < Stripe::RequestParams
|
231
|
-
end
|
232
|
-
|
233
|
-
class Grabpay < Stripe::RequestParams
|
234
|
-
end
|
235
|
-
|
236
|
-
class IdBankTransfer < Stripe::RequestParams
|
237
|
-
# Bank where the account is held.
|
238
|
-
attr_accessor :bank
|
239
|
-
|
240
|
-
def initialize(bank: nil)
|
241
|
-
@bank = bank
|
242
|
-
end
|
243
|
-
end
|
211
|
+
class Giropay < Stripe::RequestParams; end
|
212
|
+
class Grabpay < Stripe::RequestParams; end
|
244
213
|
|
245
214
|
class Ideal < Stripe::RequestParams
|
246
215
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
@@ -251,11 +220,8 @@ module Stripe
|
|
251
220
|
end
|
252
221
|
end
|
253
222
|
|
254
|
-
class InteracPresent < Stripe::RequestParams
|
255
|
-
end
|
256
|
-
|
257
|
-
class KakaoPay < Stripe::RequestParams
|
258
|
-
end
|
223
|
+
class InteracPresent < Stripe::RequestParams; end
|
224
|
+
class KakaoPay < Stripe::RequestParams; end
|
259
225
|
|
260
226
|
class Klarna < Stripe::RequestParams
|
261
227
|
class Dob < Stripe::RequestParams
|
@@ -280,23 +246,11 @@ module Stripe
|
|
280
246
|
end
|
281
247
|
end
|
282
248
|
|
283
|
-
class Konbini < Stripe::RequestParams
|
284
|
-
end
|
285
|
-
|
286
|
-
class
|
287
|
-
end
|
288
|
-
|
289
|
-
class Link < Stripe::RequestParams
|
290
|
-
end
|
291
|
-
|
292
|
-
class MbWay < Stripe::RequestParams
|
293
|
-
end
|
294
|
-
|
295
|
-
class Mobilepay < Stripe::RequestParams
|
296
|
-
end
|
297
|
-
|
298
|
-
class Multibanco < Stripe::RequestParams
|
299
|
-
end
|
249
|
+
class Konbini < Stripe::RequestParams; end
|
250
|
+
class KrCard < Stripe::RequestParams; end
|
251
|
+
class Link < Stripe::RequestParams; end
|
252
|
+
class Mobilepay < Stripe::RequestParams; end
|
253
|
+
class Multibanco < Stripe::RequestParams; end
|
300
254
|
|
301
255
|
class NaverPay < Stripe::RequestParams
|
302
256
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -338,8 +292,7 @@ module Stripe
|
|
338
292
|
end
|
339
293
|
end
|
340
294
|
|
341
|
-
class Oxxo < Stripe::RequestParams
|
342
|
-
end
|
295
|
+
class Oxxo < Stripe::RequestParams; end
|
343
296
|
|
344
297
|
class P24 < Stripe::RequestParams
|
345
298
|
# The customer's bank.
|
@@ -350,41 +303,12 @@ module Stripe
|
|
350
303
|
end
|
351
304
|
end
|
352
305
|
|
353
|
-
class PayByBank < Stripe::RequestParams
|
354
|
-
end
|
355
|
-
|
356
|
-
class
|
357
|
-
end
|
358
|
-
|
359
|
-
class Paynow < Stripe::RequestParams
|
360
|
-
end
|
361
|
-
|
362
|
-
class Paypal < Stripe::RequestParams
|
363
|
-
end
|
364
|
-
|
365
|
-
class Payto < Stripe::RequestParams
|
366
|
-
# The account number for the bank account.
|
367
|
-
attr_accessor :account_number
|
368
|
-
# Bank-State-Branch number of the bank account.
|
369
|
-
attr_accessor :bsb_number
|
370
|
-
# The PayID alias for the bank account.
|
371
|
-
attr_accessor :pay_id
|
372
|
-
|
373
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
374
|
-
@account_number = account_number
|
375
|
-
@bsb_number = bsb_number
|
376
|
-
@pay_id = pay_id
|
377
|
-
end
|
378
|
-
end
|
379
|
-
|
380
|
-
class Pix < Stripe::RequestParams
|
381
|
-
end
|
382
|
-
|
383
|
-
class Promptpay < Stripe::RequestParams
|
384
|
-
end
|
385
|
-
|
386
|
-
class Qris < Stripe::RequestParams
|
387
|
-
end
|
306
|
+
class PayByBank < Stripe::RequestParams; end
|
307
|
+
class Payco < Stripe::RequestParams; end
|
308
|
+
class Paynow < Stripe::RequestParams; end
|
309
|
+
class Paypal < Stripe::RequestParams; end
|
310
|
+
class Pix < Stripe::RequestParams; end
|
311
|
+
class Promptpay < Stripe::RequestParams; end
|
388
312
|
|
389
313
|
class RadarOptions < Stripe::RequestParams
|
390
314
|
# 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.
|
@@ -395,37 +319,9 @@ module Stripe
|
|
395
319
|
end
|
396
320
|
end
|
397
321
|
|
398
|
-
class
|
399
|
-
|
400
|
-
|
401
|
-
attr_accessor :day
|
402
|
-
# The month of birth, between 1 and 12.
|
403
|
-
attr_accessor :month
|
404
|
-
# The four-digit year of birth.
|
405
|
-
attr_accessor :year
|
406
|
-
|
407
|
-
def initialize(day: nil, month: nil, year: nil)
|
408
|
-
@day = day
|
409
|
-
@month = month
|
410
|
-
@year = year
|
411
|
-
end
|
412
|
-
end
|
413
|
-
# Customer's date of birth
|
414
|
-
attr_accessor :dob
|
415
|
-
|
416
|
-
def initialize(dob: nil)
|
417
|
-
@dob = dob
|
418
|
-
end
|
419
|
-
end
|
420
|
-
|
421
|
-
class RevolutPay < Stripe::RequestParams
|
422
|
-
end
|
423
|
-
|
424
|
-
class SamsungPay < Stripe::RequestParams
|
425
|
-
end
|
426
|
-
|
427
|
-
class Satispay < Stripe::RequestParams
|
428
|
-
end
|
322
|
+
class RevolutPay < Stripe::RequestParams; end
|
323
|
+
class SamsungPay < Stripe::RequestParams; end
|
324
|
+
class Satispay < Stripe::RequestParams; end
|
429
325
|
|
430
326
|
class SepaDebit < Stripe::RequestParams
|
431
327
|
# IBAN of the bank account.
|
@@ -436,9 +332,6 @@ module Stripe
|
|
436
332
|
end
|
437
333
|
end
|
438
334
|
|
439
|
-
class Shopeepay < Stripe::RequestParams
|
440
|
-
end
|
441
|
-
|
442
335
|
class Sofort < Stripe::RequestParams
|
443
336
|
# Two-letter ISO code representing the country the bank account is located in.
|
444
337
|
attr_accessor :country
|
@@ -448,23 +341,8 @@ module Stripe
|
|
448
341
|
end
|
449
342
|
end
|
450
343
|
|
451
|
-
class
|
452
|
-
|
453
|
-
attr_accessor :account
|
454
|
-
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
455
|
-
attr_accessor :source_type
|
456
|
-
|
457
|
-
def initialize(account: nil, source_type: nil)
|
458
|
-
@account = account
|
459
|
-
@source_type = source_type
|
460
|
-
end
|
461
|
-
end
|
462
|
-
|
463
|
-
class Swish < Stripe::RequestParams
|
464
|
-
end
|
465
|
-
|
466
|
-
class Twint < Stripe::RequestParams
|
467
|
-
end
|
344
|
+
class Swish < Stripe::RequestParams; end
|
345
|
+
class Twint < Stripe::RequestParams; end
|
468
346
|
|
469
347
|
class UsBankAccount < Stripe::RequestParams
|
470
348
|
# Account holder type: individual or company.
|
@@ -493,11 +371,8 @@ module Stripe
|
|
493
371
|
end
|
494
372
|
end
|
495
373
|
|
496
|
-
class WechatPay < Stripe::RequestParams
|
497
|
-
end
|
498
|
-
|
499
|
-
class Zip < Stripe::RequestParams
|
500
|
-
end
|
374
|
+
class WechatPay < Stripe::RequestParams; end
|
375
|
+
class Zip < Stripe::RequestParams; end
|
501
376
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
502
377
|
attr_accessor :acss_debit
|
503
378
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -542,12 +417,8 @@ module Stripe
|
|
542
417
|
attr_accessor :fpx
|
543
418
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
544
419
|
attr_accessor :giropay
|
545
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
546
|
-
attr_accessor :gopay
|
547
420
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
548
421
|
attr_accessor :grabpay
|
549
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
550
|
-
attr_accessor :id_bank_transfer
|
551
422
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
552
423
|
attr_accessor :ideal
|
553
424
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -562,8 +433,6 @@ module Stripe
|
|
562
433
|
attr_accessor :kr_card
|
563
434
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
564
435
|
attr_accessor :link
|
565
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
566
|
-
attr_accessor :mb_way
|
567
436
|
# 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`.
|
568
437
|
attr_accessor :metadata
|
569
438
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -588,18 +457,12 @@ module Stripe
|
|
588
457
|
attr_accessor :paynow
|
589
458
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
590
459
|
attr_accessor :paypal
|
591
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
592
|
-
attr_accessor :payto
|
593
460
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
594
461
|
attr_accessor :pix
|
595
462
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
596
463
|
attr_accessor :promptpay
|
597
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
598
|
-
attr_accessor :qris
|
599
464
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
600
465
|
attr_accessor :radar_options
|
601
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
602
|
-
attr_accessor :rechnung
|
603
466
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
604
467
|
attr_accessor :revolut_pay
|
605
468
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -608,12 +471,8 @@ module Stripe
|
|
608
471
|
attr_accessor :satispay
|
609
472
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
610
473
|
attr_accessor :sepa_debit
|
611
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
612
|
-
attr_accessor :shopeepay
|
613
474
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
614
475
|
attr_accessor :sofort
|
615
|
-
# This hash contains details about the Stripe balance payment method.
|
616
|
-
attr_accessor :stripe_balance
|
617
476
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
618
477
|
attr_accessor :swish
|
619
478
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -650,9 +509,7 @@ module Stripe
|
|
650
509
|
expand: nil,
|
651
510
|
fpx: nil,
|
652
511
|
giropay: nil,
|
653
|
-
gopay: nil,
|
654
512
|
grabpay: nil,
|
655
|
-
id_bank_transfer: nil,
|
656
513
|
ideal: nil,
|
657
514
|
interac_present: nil,
|
658
515
|
kakao_pay: nil,
|
@@ -660,7 +517,6 @@ module Stripe
|
|
660
517
|
konbini: nil,
|
661
518
|
kr_card: nil,
|
662
519
|
link: nil,
|
663
|
-
mb_way: nil,
|
664
520
|
metadata: nil,
|
665
521
|
mobilepay: nil,
|
666
522
|
multibanco: nil,
|
@@ -673,19 +529,14 @@ module Stripe
|
|
673
529
|
payment_method: nil,
|
674
530
|
paynow: nil,
|
675
531
|
paypal: nil,
|
676
|
-
payto: nil,
|
677
532
|
pix: nil,
|
678
533
|
promptpay: nil,
|
679
|
-
qris: nil,
|
680
534
|
radar_options: nil,
|
681
|
-
rechnung: nil,
|
682
535
|
revolut_pay: nil,
|
683
536
|
samsung_pay: nil,
|
684
537
|
satispay: nil,
|
685
538
|
sepa_debit: nil,
|
686
|
-
shopeepay: nil,
|
687
539
|
sofort: nil,
|
688
|
-
stripe_balance: nil,
|
689
540
|
swish: nil,
|
690
541
|
twint: nil,
|
691
542
|
type: nil,
|
@@ -715,9 +566,7 @@ module Stripe
|
|
715
566
|
@expand = expand
|
716
567
|
@fpx = fpx
|
717
568
|
@giropay = giropay
|
718
|
-
@gopay = gopay
|
719
569
|
@grabpay = grabpay
|
720
|
-
@id_bank_transfer = id_bank_transfer
|
721
570
|
@ideal = ideal
|
722
571
|
@interac_present = interac_present
|
723
572
|
@kakao_pay = kakao_pay
|
@@ -725,7 +574,6 @@ module Stripe
|
|
725
574
|
@konbini = konbini
|
726
575
|
@kr_card = kr_card
|
727
576
|
@link = link
|
728
|
-
@mb_way = mb_way
|
729
577
|
@metadata = metadata
|
730
578
|
@mobilepay = mobilepay
|
731
579
|
@multibanco = multibanco
|
@@ -738,19 +586,14 @@ module Stripe
|
|
738
586
|
@payment_method = payment_method
|
739
587
|
@paynow = paynow
|
740
588
|
@paypal = paypal
|
741
|
-
@payto = payto
|
742
589
|
@pix = pix
|
743
590
|
@promptpay = promptpay
|
744
|
-
@qris = qris
|
745
591
|
@radar_options = radar_options
|
746
|
-
@rechnung = rechnung
|
747
592
|
@revolut_pay = revolut_pay
|
748
593
|
@samsung_pay = samsung_pay
|
749
594
|
@satispay = satispay
|
750
595
|
@sepa_debit = sepa_debit
|
751
|
-
@shopeepay = shopeepay
|
752
596
|
@sofort = sofort
|
753
|
-
@stripe_balance = stripe_balance
|
754
597
|
@swish = swish
|
755
598
|
@twint = twint
|
756
599
|
@type = type
|
@@ -844,26 +687,8 @@ module Stripe
|
|
844
687
|
end
|
845
688
|
end
|
846
689
|
|
847
|
-
class Link < Stripe::RequestParams
|
848
|
-
end
|
849
|
-
|
850
|
-
class PayByBank < Stripe::RequestParams
|
851
|
-
end
|
852
|
-
|
853
|
-
class Payto < Stripe::RequestParams
|
854
|
-
# The account number for the bank account.
|
855
|
-
attr_accessor :account_number
|
856
|
-
# Bank-State-Branch number of the bank account.
|
857
|
-
attr_accessor :bsb_number
|
858
|
-
# The PayID alias for the bank account.
|
859
|
-
attr_accessor :pay_id
|
860
|
-
|
861
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
862
|
-
@account_number = account_number
|
863
|
-
@bsb_number = bsb_number
|
864
|
-
@pay_id = pay_id
|
865
|
-
end
|
866
|
-
end
|
690
|
+
class Link < Stripe::RequestParams; end
|
691
|
+
class PayByBank < Stripe::RequestParams; end
|
867
692
|
|
868
693
|
class UsBankAccount < Stripe::RequestParams
|
869
694
|
# Bank account holder type.
|
@@ -890,8 +715,6 @@ module Stripe
|
|
890
715
|
attr_accessor :metadata
|
891
716
|
# If this is a `pay_by_bank` PaymentMethod, this hash contains details about the PayByBank payment method.
|
892
717
|
attr_accessor :pay_by_bank
|
893
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
894
|
-
attr_accessor :payto
|
895
718
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
896
719
|
attr_accessor :us_bank_account
|
897
720
|
|
@@ -903,7 +726,6 @@ module Stripe
|
|
903
726
|
link: nil,
|
904
727
|
metadata: nil,
|
905
728
|
pay_by_bank: nil,
|
906
|
-
payto: nil,
|
907
729
|
us_bank_account: nil
|
908
730
|
)
|
909
731
|
@allow_redisplay = allow_redisplay
|
@@ -913,7 +735,6 @@ module Stripe
|
|
913
735
|
@link = link
|
914
736
|
@metadata = metadata
|
915
737
|
@pay_by_bank = pay_by_bank
|
916
|
-
@payto = payto
|
917
738
|
@us_bank_account = us_bank_account
|
918
739
|
end
|
919
740
|
end
|
@@ -921,14 +742,11 @@ module Stripe
|
|
921
742
|
class AttachParams < Stripe::RequestParams
|
922
743
|
# The ID of the customer to which to attach the PaymentMethod.
|
923
744
|
attr_accessor :customer
|
924
|
-
# The ID of the account to which to attach the PaymentMethod.
|
925
|
-
attr_accessor :customer_account
|
926
745
|
# Specifies which fields in the response should be expanded.
|
927
746
|
attr_accessor :expand
|
928
747
|
|
929
|
-
def initialize(customer: nil,
|
748
|
+
def initialize(customer: nil, expand: nil)
|
930
749
|
@customer = customer
|
931
|
-
@customer_account = customer_account
|
932
750
|
@expand = expand
|
933
751
|
end
|
934
752
|
end
|
@@ -944,16 +762,16 @@ module Stripe
|
|
944
762
|
|
945
763
|
# Attaches a PaymentMethod object to a Customer.
|
946
764
|
#
|
947
|
-
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
948
|
-
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
765
|
+
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
|
766
|
+
# or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
949
767
|
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
950
768
|
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
951
769
|
# future use, which makes later declines and payment friction more likely.
|
952
|
-
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
770
|
+
# See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
953
771
|
# future payments.
|
954
772
|
#
|
955
773
|
# To use this PaymentMethod as the default for invoice or subscription payments,
|
956
|
-
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
774
|
+
# set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
957
775
|
# on the Customer to the PaymentMethod's ID.
|
958
776
|
def attach(payment_method, params = {}, opts = {})
|
959
777
|
request(
|
@@ -965,9 +783,9 @@ module Stripe
|
|
965
783
|
)
|
966
784
|
end
|
967
785
|
|
968
|
-
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
786
|
+
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://docs.stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
969
787
|
#
|
970
|
-
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
788
|
+
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
971
789
|
def create(params = {}, opts = {})
|
972
790
|
request(
|
973
791
|
method: :post,
|
@@ -989,7 +807,7 @@ module Stripe
|
|
989
807
|
)
|
990
808
|
end
|
991
809
|
|
992
|
-
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
|
810
|
+
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead.
|
993
811
|
def list(params = {}, opts = {})
|
994
812
|
request(
|
995
813
|
method: :get,
|
@@ -1000,7 +818,7 @@ module Stripe
|
|
1000
818
|
)
|
1001
819
|
end
|
1002
820
|
|
1003
|
-
# Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer)
|
821
|
+
# Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer)
|
1004
822
|
def retrieve(payment_method, params = {}, opts = {})
|
1005
823
|
request(
|
1006
824
|
method: :get,
|
@@ -92,8 +92,6 @@ module Stripe
|
|
92
92
|
attr_accessor :metadata
|
93
93
|
# The method used to send this payout, which is `standard` or `instant`. We support `instant` for payouts to debit cards and bank accounts in certain countries. Learn more about [bank support for Instant Payouts](https://stripe.com/docs/payouts/instant-payouts-banks).
|
94
94
|
attr_accessor :method
|
95
|
-
# The ID of a v2 FinancialAccount to send funds to.
|
96
|
-
attr_accessor :payout_method
|
97
95
|
# The balance type of your Stripe balance to draw this payout from. Balances for different payment sources are kept separately. You can find the amounts with the Balances API. One of `bank_account`, `card`, or `fpx`.
|
98
96
|
attr_accessor :source_type
|
99
97
|
# A string that displays on the recipient's bank or card statement (up to 22 characters). A `statement_descriptor` that's longer than 22 characters return an error. Most banks truncate this information and display it inconsistently. Some banks might not display it at all.
|
@@ -107,7 +105,6 @@ module Stripe
|
|
107
105
|
expand: nil,
|
108
106
|
metadata: nil,
|
109
107
|
method: nil,
|
110
|
-
payout_method: nil,
|
111
108
|
source_type: nil,
|
112
109
|
statement_descriptor: nil
|
113
110
|
)
|
@@ -118,7 +115,6 @@ module Stripe
|
|
118
115
|
@expand = expand
|
119
116
|
@metadata = metadata
|
120
117
|
@method = method
|
121
|
-
@payout_method = payout_method
|
122
118
|
@source_type = source_type
|
123
119
|
@statement_descriptor = statement_descriptor
|
124
120
|
end
|
@@ -177,11 +173,11 @@ module Stripe
|
|
177
173
|
)
|
178
174
|
end
|
179
175
|
|
180
|
-
# To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://stripe.com/
|
176
|
+
# To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://docs.stripe.com/api#balance) must cover the payout amount. If it doesn't, you receive an “Insufficient Funds” error.
|
181
177
|
#
|
182
178
|
# If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
|
183
179
|
#
|
184
|
-
# If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://stripe.com/
|
180
|
+
# If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
|
185
181
|
def create(params = {}, opts = {})
|
186
182
|
request(method: :post, path: "/v1/payouts", params: params, opts: opts, base_address: :api)
|
187
183
|
end
|
@@ -3,8 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class PlanService < StripeService
|
6
|
-
class DeleteParams < Stripe::RequestParams
|
7
|
-
end
|
6
|
+
class DeleteParams < Stripe::RequestParams; end
|
8
7
|
|
9
8
|
class RetrieveParams < Stripe::RequestParams
|
10
9
|
# Specifies which fields in the response should be expanded.
|
@@ -252,7 +251,7 @@ module Stripe
|
|
252
251
|
end
|
253
252
|
end
|
254
253
|
|
255
|
-
# You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/
|
254
|
+
# You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
|
256
255
|
def create(params = {}, opts = {})
|
257
256
|
request(method: :post, path: "/v1/plans", params: params, opts: opts, base_address: :api)
|
258
257
|
end
|
@@ -440,21 +440,6 @@ module Stripe
|
|
440
440
|
@unit_amount_decimal = unit_amount_decimal
|
441
441
|
end
|
442
442
|
end
|
443
|
-
|
444
|
-
class MigrateTo < Stripe::RequestParams
|
445
|
-
# The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
|
446
|
-
attr_accessor :behavior
|
447
|
-
# The time after which subscriptions should start using the new price.
|
448
|
-
attr_accessor :effective_after
|
449
|
-
# The ID of the price object.
|
450
|
-
attr_accessor :price
|
451
|
-
|
452
|
-
def initialize(behavior: nil, effective_after: nil, price: nil)
|
453
|
-
@behavior = behavior
|
454
|
-
@effective_after = effective_after
|
455
|
-
@price = price
|
456
|
-
end
|
457
|
-
end
|
458
443
|
# Whether the price can be used for new purchases. Defaults to `true`.
|
459
444
|
attr_accessor :active
|
460
445
|
# Prices defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
|
@@ -465,8 +450,6 @@ module Stripe
|
|
465
450
|
attr_accessor :lookup_key
|
466
451
|
# 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`.
|
467
452
|
attr_accessor :metadata
|
468
|
-
# If specified, subscriptions using this price will be updated to use the new referenced price.
|
469
|
-
attr_accessor :migrate_to
|
470
453
|
# A brief description of the price, hidden from customers.
|
471
454
|
attr_accessor :nickname
|
472
455
|
# Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
@@ -480,7 +463,6 @@ module Stripe
|
|
480
463
|
expand: nil,
|
481
464
|
lookup_key: nil,
|
482
465
|
metadata: nil,
|
483
|
-
migrate_to: nil,
|
484
466
|
nickname: nil,
|
485
467
|
tax_behavior: nil,
|
486
468
|
transfer_lookup_key: nil
|
@@ -490,7 +472,6 @@ module Stripe
|
|
490
472
|
@expand = expand
|
491
473
|
@lookup_key = lookup_key
|
492
474
|
@metadata = metadata
|
493
|
-
@migrate_to = migrate_to
|
494
475
|
@nickname = nickname
|
495
476
|
@tax_behavior = tax_behavior
|
496
477
|
@transfer_lookup_key = transfer_lookup_key
|
@@ -520,7 +501,7 @@ module Stripe
|
|
520
501
|
request(method: :post, path: "/v1/prices", params: params, opts: opts, base_address: :api)
|
521
502
|
end
|
522
503
|
|
523
|
-
# Returns a list of your active prices, excluding [inline prices](https://stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
|
504
|
+
# Returns a list of your active prices, excluding [inline prices](https://docs.stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
|
524
505
|
def list(params = {}, opts = {})
|
525
506
|
request(method: :get, path: "/v1/prices", params: params, opts: opts, base_address: :api)
|
526
507
|
end
|
@@ -536,7 +517,7 @@ module Stripe
|
|
536
517
|
)
|
537
518
|
end
|
538
519
|
|
539
|
-
# Search for prices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
520
|
+
# Search for prices you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
540
521
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
541
522
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
542
523
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
@@ -3,8 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class ProductFeatureService < StripeService
|
6
|
-
class DeleteParams < Stripe::RequestParams
|
7
|
-
end
|
6
|
+
class DeleteParams < Stripe::RequestParams; end
|
8
7
|
|
9
8
|
class RetrieveParams < Stripe::RequestParams
|
10
9
|
# Specifies which fields in the response should be expanded.
|