stripe 15.5.0 → 15.6.0.pre.alpha.2
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 -1
- data/CHANGELOG.md +1723 -642
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +185 -0
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +21 -0
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_cadence_errored_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +23 -0
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +23 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +21 -0
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +13 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +23 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +13 -0
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +13 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +23 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +23 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +21 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +22 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_created_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +21 -0
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +21 -0
- data/lib/stripe/object_types.rb +80 -0
- data/lib/stripe/resources/account.rb +1137 -42
- data/lib/stripe/resources/account_link.rb +8 -0
- data/lib/stripe/resources/account_notice.rb +147 -0
- data/lib/stripe/resources/account_session.rb +688 -8
- data/lib/stripe/resources/apple_pay_domain.rb +8 -0
- data/lib/stripe/resources/application.rb +8 -0
- data/lib/stripe/resources/application_fee.rb +16 -0
- data/lib/stripe/resources/application_fee_refund.rb +8 -0
- data/lib/stripe/resources/apps/secret.rb +16 -0
- data/lib/stripe/resources/balance.rb +159 -0
- data/lib/stripe/resources/balance_settings.rb +152 -0
- data/lib/stripe/resources/balance_transaction.rb +16 -0
- data/lib/stripe/resources/bank_account.rb +40 -0
- data/lib/stripe/resources/billing/alert.rb +203 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +14 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +132 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +161 -0
- data/lib/stripe/resources/billing/credit_grant.rb +143 -2
- data/lib/stripe/resources/billing/meter.rb +45 -0
- data/lib/stripe/resources/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
- data/lib/stripe/resources/billing/meter_usage.rb +31 -0
- data/lib/stripe/resources/billing/meter_usage_row.rb +36 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +122 -0
- data/lib/stripe/resources/billing_portal/session.rb +107 -0
- data/lib/stripe/resources/capability.rb +56 -0
- data/lib/stripe/resources/capital/financing_offer.rb +203 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +138 -0
- data/lib/stripe/resources/card.rb +18 -0
- data/lib/stripe/resources/cash_balance.rb +18 -0
- data/lib/stripe/resources/charge.rb +2587 -15
- data/lib/stripe/resources/checkout/session.rb +1583 -15
- data/lib/stripe/resources/climate/order.rb +32 -0
- data/lib/stripe/resources/climate/product.rb +16 -0
- data/lib/stripe/resources/climate/supplier.rb +16 -0
- data/lib/stripe/resources/confirmation_token.rb +1126 -34
- data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
- data/lib/stripe/resources/country_spec.rb +32 -0
- data/lib/stripe/resources/coupon.rb +66 -1
- data/lib/stripe/resources/credit_note.rb +76 -0
- data/lib/stripe/resources/credit_note_line_item.rb +62 -0
- data/lib/stripe/resources/customer.rb +79 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +10 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +110 -0
- data/lib/stripe/resources/customer_session.rb +58 -1
- data/lib/stripe/resources/discount.rb +10 -0
- data/lib/stripe/resources/dispute.rb +177 -0
- data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
- data/lib/stripe/resources/entitlements/feature.rb +8 -0
- data/lib/stripe/resources/ephemeral_key.rb +8 -0
- data/lib/stripe/resources/event.rb +87 -0
- data/lib/stripe/resources/exchange_rate.rb +8 -0
- data/lib/stripe/resources/file.rb +8 -0
- data/lib/stripe/resources/file_link.rb +8 -0
- data/lib/stripe/resources/financial_connections/account.rb +101 -1
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
- data/lib/stripe/resources/financial_connections/institution.rb +145 -0
- data/lib/stripe/resources/financial_connections/session.rb +124 -2
- data/lib/stripe/resources/financial_connections/transaction.rb +16 -0
- data/lib/stripe/resources/forwarding/request.rb +52 -0
- data/lib/stripe/resources/funding_instructions.rb +193 -0
- data/lib/stripe/resources/fx_quote.rb +234 -0
- data/lib/stripe/resources/identity/verification_report.rb +166 -1
- data/lib/stripe/resources/identity/verification_session.rb +136 -1
- data/lib/stripe/resources/invoice.rb +1591 -18
- data/lib/stripe/resources/invoice_item.rb +214 -2
- data/lib/stripe/resources/invoice_line_item.rb +293 -1
- data/lib/stripe/resources/invoice_payment.rb +30 -1
- data/lib/stripe/resources/invoice_rendering_template.rb +8 -0
- data/lib/stripe/resources/issuing/authorization.rb +177 -0
- data/lib/stripe/resources/issuing/card.rb +96 -8
- data/lib/stripe/resources/issuing/cardholder.rb +112 -1
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +684 -0
- data/lib/stripe/resources/issuing/dispute.rb +97 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +98 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +94 -0
- data/lib/stripe/resources/issuing/personalization_design.rb +36 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +16 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/token.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +157 -0
- data/lib/stripe/resources/line_item.rb +91 -0
- data/lib/stripe/resources/login_link.rb +8 -0
- data/lib/stripe/resources/mandate.rb +331 -12
- data/lib/stripe/resources/margin.rb +123 -0
- data/lib/stripe/resources/order.rb +3306 -0
- data/lib/stripe/resources/payment_attempt_record.rb +2056 -0
- data/lib/stripe/resources/payment_intent.rb +11019 -3714
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
- data/lib/stripe/resources/payment_link.rb +337 -0
- data/lib/stripe/resources/payment_method.rb +1074 -35
- data/lib/stripe/resources/payment_method_configuration.rb +1260 -4
- data/lib/stripe/resources/payment_method_domain.rb +111 -0
- data/lib/stripe/resources/payment_record.rb +2602 -0
- data/lib/stripe/resources/payout.rb +16 -0
- data/lib/stripe/resources/person.rb +180 -0
- data/lib/stripe/resources/plan.rb +24 -0
- data/lib/stripe/resources/price.rb +109 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +314 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/product.rb +27 -0
- data/lib/stripe/resources/product_feature.rb +8 -0
- data/lib/stripe/resources/promotion_code.rb +34 -0
- data/lib/stripe/resources/quote.rb +2512 -49
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1134 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +718 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -0
- data/lib/stripe/resources/radar/value_list.rb +8 -0
- data/lib/stripe/resources/radar/value_list_item.rb +8 -0
- data/lib/stripe/resources/refund.rb +389 -19
- data/lib/stripe/resources/reporting/report_run.rb +16 -0
- data/lib/stripe/resources/reporting/report_type.rb +8 -0
- data/lib/stripe/resources/reserve_transaction.rb +8 -0
- data/lib/stripe/resources/reversal.rb +8 -0
- data/lib/stripe/resources/review.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +352 -17
- data/lib/stripe/resources/setup_intent.rb +1065 -12
- data/lib/stripe/resources/shipping_rate.rb +48 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
- data/lib/stripe/resources/source.rb +303 -0
- data/lib/stripe/resources/source_mandate_notification.rb +32 -0
- data/lib/stripe/resources/source_transaction.rb +54 -0
- data/lib/stripe/resources/subscription.rb +720 -11
- data/lib/stripe/resources/subscription_item.rb +108 -3
- data/lib/stripe/resources/subscription_schedule.rb +1321 -10
- data/lib/stripe/resources/tax/association.rb +98 -0
- data/lib/stripe/resources/tax/calculation.rb +109 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
- data/lib/stripe/resources/tax/form.rb +318 -0
- data/lib/stripe/resources/tax/registration.rb +1232 -0
- data/lib/stripe/resources/tax/settings.rb +61 -1
- data/lib/stripe/resources/tax/transaction.rb +93 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
- data/lib/stripe/resources/tax_code.rb +8 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
- data/lib/stripe/resources/tax_id.rb +36 -2
- data/lib/stripe/resources/tax_rate.rb +16 -0
- data/lib/stripe/resources/terminal/configuration.rb +332 -0
- data/lib/stripe/resources/terminal/connection_token.rb +8 -0
- data/lib/stripe/resources/terminal/location.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +108 -0
- data/lib/stripe/resources/terminal/reader.rb +249 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +24 -0
- data/lib/stripe/resources/token.rb +8 -0
- data/lib/stripe/resources/topup.rb +8 -0
- data/lib/stripe/resources/transfer.rb +14 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +16 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +24 -0
- data/lib/stripe/resources/treasury/financial_account.rb +83 -3
- data/lib/stripe/resources/treasury/financial_account_features.rb +194 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +69 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +106 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +151 -0
- data/lib/stripe/resources/treasury/received_credit.rb +135 -1
- data/lib/stripe/resources/treasury/received_debit.rb +129 -1
- data/lib/stripe/resources/treasury/transaction.rb +36 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +24 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +323 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +296 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +284 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +43 -0
- data/lib/stripe/resources/v2/billing/intent.rb +86 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +395 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +103 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +44 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +80 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +60 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +85 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +51 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +94 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +90 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +38 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +61 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +107 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +90 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +34 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +232 -0
- data/lib/stripe/resources/v2/core/account.rb +3838 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +81 -0
- data/lib/stripe/resources/v2/core/person.rb +477 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +47 -0
- data/lib/stripe/resources/v2/event.rb +26 -0
- data/lib/stripe/resources/v2/event_destination.rb +44 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +100 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +199 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +113 -0
- data/lib/stripe/resources/v2/reporting/report.rb +116 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +158 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +39 -0
- data/lib/stripe/resources/webhook_endpoint.rb +8 -0
- data/lib/stripe/resources.rb +194 -0
- data/lib/stripe/services/account_notice_service.rb +101 -0
- data/lib/stripe/services/account_service.rb +562 -1
- data/lib/stripe/services/account_session_service.rb +226 -1
- data/lib/stripe/services/balance_settings_service.rb +99 -0
- data/lib/stripe/services/billing/alert_service.rb +75 -1
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +17 -2
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +4 -0
- data/lib/stripe/services/billing/credit_grant_service.rb +37 -2
- data/lib/stripe/services/billing/meter_usage_service.rb +76 -0
- data/lib/stripe/services/billing_portal/session_service.rb +4 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +112 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +28 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +79 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/charge_service.rb +1418 -0
- data/lib/stripe/services/checkout/session_service.rb +472 -5
- data/lib/stripe/services/coupon_service.rb +17 -1
- data/lib/stripe/services/credit_note_service.rb +4 -0
- data/lib/stripe/services/customer_session_service.rb +4 -1
- data/{rbi/stripe/services/account_external_account_service.rbi → lib/stripe/services/external_account_service.rb} +135 -122
- data/{rbi/stripe/services/tax/transaction_line_item_service.rbi → lib/stripe/services/financial_connections/account_inferred_balance_service.rb} +21 -17
- data/lib/stripe/services/financial_connections/account_service.rb +7 -2
- data/{rbi/stripe/services/climate/supplier_service.rbi → lib/stripe/services/financial_connections/institution_service.rb} +36 -25
- data/lib/stripe/services/financial_connections/session_service.rb +34 -2
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +123 -0
- data/lib/stripe/services/identity/verification_session_service.rb +8 -0
- data/lib/stripe/services/invoice_item_service.rb +74 -2
- data/lib/stripe/services/invoice_line_item_service.rb +33 -1
- data/lib/stripe/services/invoice_payment_service.rb +4 -1
- data/lib/stripe/services/invoice_service.rb +1078 -16
- data/lib/stripe/services/issuing/card_service.rb +0 -8
- data/lib/stripe/services/issuing/cardholder_service.rb +2 -1
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +504 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +66 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +83 -0
- data/lib/stripe/services/issuing/transaction_service.rb +4 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +40 -0
- data/lib/stripe/services/margin_service.rb +119 -0
- data/{rbi/stripe/services/source_transaction_service.rbi → lib/stripe/services/order_line_item_service.rb} +20 -16
- data/lib/stripe/services/order_service.rb +2388 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +52 -0
- data/{rbi/stripe/services/quote_line_item_service.rbi → lib/stripe/services/payment_intent_amount_details_line_item_service.rb} +20 -16
- data/lib/stripe/services/payment_intent_service.rb +7630 -2215
- data/lib/stripe/services/payment_method_configuration_service.rb +210 -0
- data/lib/stripe/services/payment_method_service.rb +120 -1
- data/lib/stripe/services/payment_record_service.rb +562 -0
- data/lib/stripe/services/price_service.rb +19 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +240 -0
- data/{rbi/stripe/services/tax/calculation_line_item_service.rbi → lib/stripe/services/privacy/redaction_job_validation_error_service.rb} +21 -17
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/promotion_code_service.rb +8 -0
- data/{rbi/stripe/services/credit_note_line_item_service.rbi → lib/stripe/services/quote_line_service.rb} +20 -16
- data/{rbi/stripe/services/payment_link_line_item_service.rbi → lib/stripe/services/quote_preview_invoice_service.rb} +20 -16
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +35 -0
- data/lib/stripe/services/quote_service.rb +1723 -8
- data/lib/stripe/services/setup_intent_service.rb +691 -9
- data/lib/stripe/services/subscription_item_service.rb +75 -3
- data/lib/stripe/services/subscription_schedule_service.rb +911 -10
- data/lib/stripe/services/subscription_service.rb +336 -9
- data/lib/stripe/services/tax/association_service.rb +31 -0
- data/lib/stripe/services/tax/form_service.rb +100 -0
- data/lib/stripe/services/tax_id_service.rb +8 -2
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/configuration_service.rb +26 -0
- data/lib/stripe/services/terminal/onboarding_link_service.rb +56 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +28 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +97 -0
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +25 -1
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +25 -1
- data/lib/stripe/services/transfer_service.rb +4 -0
- data/lib/stripe/services/treasury/financial_account_features_service.rb +4 -1
- data/lib/stripe/services/treasury/financial_account_service.rb +16 -2
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +24 -0
- data/lib/stripe/services/v1_services.rb +11 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +214 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +428 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +518 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +108 -0
- data/lib/stripe/services/v2/billing/intent_service.rb +465 -0
- data/lib/stripe/services/v2/billing/intents/action_service.rb +45 -0
- data/lib/stripe/services/v2/billing/license_fee_service.rb +250 -0
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +23 -0
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +149 -0
- data/lib/stripe/services/v2/billing/metered_item_service.rb +176 -0
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +142 -0
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +76 -0
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +162 -0
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +144 -0
- data/lib/stripe/services/v2/billing/rate_card_service.rb +151 -0
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +144 -0
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +161 -0
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +45 -0
- data/lib/stripe/services/v2/billing/service_action_service.rb +259 -0
- data/lib/stripe/services/v2/billing_service.rb +18 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +114 -0
- data/lib/stripe/services/v2/core/account_service.rb +4536 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +1045 -0
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +50 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +130 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +107 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +5 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +74 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +119 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +82 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +125 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +95 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +199 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +235 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +172 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +90 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +43 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +69 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +73 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/payment_service.rb +15 -0
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +152 -0
- data/lib/stripe/services/v2/reporting/report_run_service.rb +88 -0
- data/lib/stripe/services/v2/reporting/report_service.rb +25 -0
- data/lib/stripe/services/v2/reporting_service.rb +16 -0
- data/lib/stripe/services/v2/tax/automatic_rule_service.rb +99 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +53 -0
- data/lib/stripe/services/v2_services.rb +6 -1
- data/lib/stripe/services.rb +84 -0
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_object.rb +26 -2
- data/lib/stripe/util.rb +16 -6
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +280174 -0
- data/stripe.gemspec +4 -1
- metadata +283 -324
- data/rbi/stripe/resources/account.rbi +0 -4991
- data/rbi/stripe/resources/account_link.rbi +0 -76
- data/rbi/stripe/resources/account_session.rbi +0 -1173
- data/rbi/stripe/resources/apple_pay_domain.rbi +0 -88
- data/rbi/stripe/resources/application.rbi +0 -20
- data/rbi/stripe/resources/application_fee.rbi +0 -118
- data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
- data/rbi/stripe/resources/apps/secret.rbi +0 -195
- data/rbi/stripe/resources/balance.rbi +0 -230
- data/rbi/stripe/resources/balance_transaction.rbi +0 -147
- data/rbi/stripe/resources/bank_account.rbi +0 -127
- data/rbi/stripe/resources/billing/alert.rbi +0 -201
- data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
- data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
- data/rbi/stripe/resources/billing/meter.rbi +0 -226
- data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
- data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -712
- data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
- data/rbi/stripe/resources/capability.rbi +0 -125
- data/rbi/stripe/resources/card.rbi +0 -125
- data/rbi/stripe/resources/cash_balance.rbi +0 -32
- data/rbi/stripe/resources/charge.rbi +0 -2136
- data/rbi/stripe/resources/checkout/session.rbi +0 -4105
- data/rbi/stripe/resources/climate/order.rbi +0 -245
- data/rbi/stripe/resources/climate/product.rbi +0 -75
- data/rbi/stripe/resources/climate/supplier.rbi +0 -72
- data/rbi/stripe/resources/confirmation_token.rbi +0 -1818
- data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
- data/rbi/stripe/resources/country_spec.rbi +0 -85
- data/rbi/stripe/resources/coupon.rbi +0 -250
- data/rbi/stripe/resources/credit_note.rbi +0 -752
- data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
- data/rbi/stripe/resources/customer.rbi +0 -993
- data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
- data/rbi/stripe/resources/customer_session.rbi +0 -200
- data/rbi/stripe/resources/discount.rbi +0 -53
- data/rbi/stripe/resources/dispute.rbi +0 -761
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
- data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
- data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
- data/rbi/stripe/resources/event.rbi +0 -137
- data/rbi/stripe/resources/exchange_rate.rbi +0 -66
- data/rbi/stripe/resources/file.rbi +0 -143
- data/rbi/stripe/resources/file_link.rbi +0 -141
- data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
- data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
- data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
- data/rbi/stripe/resources/forwarding/request.rbi +0 -216
- data/rbi/stripe/resources/funding_instructions.rbi +0 -437
- data/rbi/stripe/resources/identity/verification_report.rbi +0 -360
- data/rbi/stripe/resources/identity/verification_session.rbi +0 -564
- data/rbi/stripe/resources/invoice.rbi +0 -3894
- data/rbi/stripe/resources/invoice_item.rbi +0 -470
- data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
- data/rbi/stripe/resources/invoice_payment.rbi +0 -121
- data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
- data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
- data/rbi/stripe/resources/issuing/card.rbi +0 -749
- data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
- data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
- data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
- data/rbi/stripe/resources/issuing/token.rbi +0 -226
- data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
- data/rbi/stripe/resources/line_item.rbi +0 -72
- data/rbi/stripe/resources/login_link.rbi +0 -19
- data/rbi/stripe/resources/mandate.rbi +0 -191
- data/rbi/stripe/resources/payment_intent.rbi +0 -10011
- data/rbi/stripe/resources/payment_link.rbi +0 -1891
- data/rbi/stripe/resources/payment_method.rbi +0 -1770
- data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3550
- data/rbi/stripe/resources/payment_method_domain.rbi +0 -228
- data/rbi/stripe/resources/payout.rbi +0 -307
- data/rbi/stripe/resources/person.rbi +0 -401
- data/rbi/stripe/resources/plan.rbi +0 -371
- data/rbi/stripe/resources/price.rbi +0 -694
- data/rbi/stripe/resources/product.rbi +0 -553
- data/rbi/stripe/resources/product_feature.rbi +0 -26
- data/rbi/stripe/resources/promotion_code.rbi +0 -264
- data/rbi/stripe/resources/quote.rbi +0 -1137
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
- data/rbi/stripe/resources/radar/value_list.rbi +0 -168
- data/rbi/stripe/resources/radar/value_list_item.rbi +0 -129
- data/rbi/stripe/resources/refund.rbi +0 -523
- data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
- data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
- data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
- data/rbi/stripe/resources/reversal.rbi +0 -51
- data/rbi/stripe/resources/review.rbi +0 -154
- data/rbi/stripe/resources/setup_attempt.rbi +0 -477
- data/rbi/stripe/resources/setup_intent.rbi +0 -3974
- data/rbi/stripe/resources/shipping_rate.rbi +0 -305
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
- data/rbi/stripe/resources/source.rbi +0 -1496
- data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
- data/rbi/stripe/resources/source_transaction.rbi +0 -127
- data/rbi/stripe/resources/subscription.rbi +0 -2154
- data/rbi/stripe/resources/subscription_item.rbi +0 -404
- data/rbi/stripe/resources/subscription_schedule.rbi +0 -1795
- data/rbi/stripe/resources/tax/calculation.rbi +0 -478
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -91
- data/rbi/stripe/resources/tax/registration.rbi +0 -3216
- data/rbi/stripe/resources/tax/settings.rbi +0 -141
- data/rbi/stripe/resources/tax/transaction.rbi +0 -351
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
- data/rbi/stripe/resources/tax_code.rbi +0 -44
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
- data/rbi/stripe/resources/tax_id.rbi +0 -165
- data/rbi/stripe/resources/tax_rate.rbi +0 -239
- data/rbi/stripe/resources/terminal/configuration.rbi +0 -1647
- data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
- data/rbi/stripe/resources/terminal/location.rbi +0 -222
- data/rbi/stripe/resources/terminal/reader.rbi +0 -1016
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -132
- data/rbi/stripe/resources/token.rbi +0 -1281
- data/rbi/stripe/resources/topup.rbi +0 -222
- data/rbi/stripe/resources/transfer.rbi +0 -199
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
- data/rbi/stripe/resources/treasury/financial_account.rbi +0 -869
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
- data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
- data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
- data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
- data/rbi/stripe/resources/v2/amount.rbi +0 -14
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
- data/rbi/stripe/resources/v2/event.rbi +0 -48
- data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
- data/rbi/stripe/resources/webhook_endpoint.rbi +0 -168
- data/rbi/stripe/services/account_capability_service.rbi +0 -51
- data/rbi/stripe/services/account_link_service.rbi +0 -60
- data/rbi/stripe/services/account_login_link_service.rbi +0 -22
- data/rbi/stripe/services/account_person_service.rbi +0 -1007
- data/rbi/stripe/services/account_service.rbi +0 -4281
- data/rbi/stripe/services/account_session_service.rbi +0 -748
- data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -76
- data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
- data/rbi/stripe/services/application_fee_service.rbi +0 -78
- data/rbi/stripe/services/apps/secret_service.rbi +0 -151
- data/rbi/stripe/services/apps_service.rbi +0 -9
- data/rbi/stripe/services/balance_service.rbi +0 -21
- data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
- data/rbi/stripe/services/billing/alert_service.rbi +0 -152
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
- data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
- data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
- data/rbi/stripe/services/billing/meter_service.rbi +0 -163
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -561
- data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
- data/rbi/stripe/services/billing_portal_service.rbi +0 -10
- data/rbi/stripe/services/billing_service.rbi +0 -15
- data/rbi/stripe/services/charge_service.rbi +0 -448
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
- data/rbi/stripe/services/checkout/session_service.rbi +0 -2697
- data/rbi/stripe/services/checkout_service.rbi +0 -9
- data/rbi/stripe/services/climate/order_service.rbi +0 -142
- data/rbi/stripe/services/climate/product_service.rbi +0 -46
- data/rbi/stripe/services/climate_service.rbi +0 -11
- data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
- data/rbi/stripe/services/country_spec_service.rbi +0 -44
- data/rbi/stripe/services/coupon_service.rbi +0 -194
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
- data/rbi/stripe/services/credit_note_service.rbi +0 -415
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
- data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
- data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
- data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
- data/rbi/stripe/services/customer_service.rbi +0 -635
- data/rbi/stripe/services/customer_session_service.rbi +0 -116
- data/rbi/stripe/services/customer_tax_id_service.rbi +0 -70
- data/rbi/stripe/services/dispute_service.rbi +0 -424
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
- data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
- data/rbi/stripe/services/entitlements_service.rbi +0 -10
- data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
- data/rbi/stripe/services/event_service.rbi +0 -83
- data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
- data/rbi/stripe/services/file_link_service.rbi +0 -124
- data/rbi/stripe/services/file_service.rbi +0 -116
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
- data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
- data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
- data/rbi/stripe/services/financial_connections_service.rbi +0 -11
- data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
- data/rbi/stripe/services/forwarding_service.rbi +0 -9
- data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
- data/rbi/stripe/services/identity/verification_session_service.rbi +0 -339
- data/rbi/stripe/services/identity_service.rbi +0 -10
- data/rbi/stripe/services/invoice_item_service.rbi +0 -366
- data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
- data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
- data/rbi/stripe/services/invoice_service.rbi +0 -3073
- data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
- data/rbi/stripe/services/issuing/card_service.rbi +0 -503
- data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
- data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
- data/rbi/stripe/services/issuing/token_service.rbi +0 -99
- data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
- data/rbi/stripe/services/issuing_service.rbi +0 -16
- data/rbi/stripe/services/mandate_service.rbi +0 -20
- data/rbi/stripe/services/payment_intent_service.rbi +0 -8010
- data/rbi/stripe/services/payment_link_service.rbi +0 -1441
- data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2487
- data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
- data/rbi/stripe/services/payment_method_service.rbi +0 -781
- data/rbi/stripe/services/payout_service.rbi +0 -209
- data/rbi/stripe/services/plan_service.rbi +0 -282
- data/rbi/stripe/services/price_service.rbi +0 -546
- data/rbi/stripe/services/product_feature_service.rbi +0 -67
- data/rbi/stripe/services/product_service.rbi +0 -477
- data/rbi/stripe/services/promotion_code_service.rbi +0 -214
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
- data/rbi/stripe/services/quote_service.rbi +0 -695
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
- data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -109
- data/rbi/stripe/services/radar/value_list_service.rbi +0 -141
- data/rbi/stripe/services/radar_service.rbi +0 -11
- data/rbi/stripe/services/refund_service.rbi +0 -185
- data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
- data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
- data/rbi/stripe/services/reporting_service.rbi +0 -10
- data/rbi/stripe/services/review_service.rbi +0 -84
- data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
- data/rbi/stripe/services/setup_intent_service.rbi +0 -3709
- data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
- data/rbi/stripe/services/sigma_service.rbi +0 -9
- data/rbi/stripe/services/source_service.rbi +0 -663
- data/rbi/stripe/services/subscription_item_service.rbi +0 -350
- data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1425
- data/rbi/stripe/services/subscription_service.rbi +0 -1768
- data/rbi/stripe/services/tax/calculation_service.rbi +0 -234
- data/rbi/stripe/services/tax/registration_service.rbi +0 -2278
- data/rbi/stripe/services/tax/settings_service.rbi +0 -93
- data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
- data/rbi/stripe/services/tax_code_service.rbi +0 -44
- data/rbi/stripe/services/tax_id_service.rbi +0 -110
- data/rbi/stripe/services/tax_rate_service.rbi +0 -185
- data/rbi/stripe/services/tax_service.rbi +0 -12
- data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1328
- data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
- data/rbi/stripe/services/terminal/location_service.rbi +0 -182
- data/rbi/stripe/services/terminal/reader_service.rbi +0 -540
- data/rbi/stripe/services/terminal_service.rbi +0 -12
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
- data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
- data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -117
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -90
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
- data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
- data/rbi/stripe/services/test_helpers_service.rbi +0 -15
- data/rbi/stripe/services/token_service.rbi +0 -1255
- data/rbi/stripe/services/topup_service.rbi +0 -176
- data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
- data/rbi/stripe/services/transfer_service.rbi +0 -152
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
- data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -566
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
- data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
- data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
- data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
- data/rbi/stripe/services/treasury_service.rbi +0 -18
- data/rbi/stripe/services/v1_services.rbi +0 -77
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -18
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
- data/rbi/stripe/services/v2/billing_service.rbi +0 -14
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -192
- data/rbi/stripe/services/v2/core/event_service.rbi +0 -36
- data/rbi/stripe/services/v2/core_service.rbi +0 -12
- data/rbi/stripe/services/v2_services.rbi +0 -10
- data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -129
@@ -40,6 +40,14 @@ module Stripe
|
|
40
40
|
attr_reader :allow_redirects
|
41
41
|
# Automatically calculates compatible payment methods
|
42
42
|
attr_reader :enabled
|
43
|
+
|
44
|
+
def self.inner_class_types
|
45
|
+
@inner_class_types = {}
|
46
|
+
end
|
47
|
+
|
48
|
+
def self.field_remappings
|
49
|
+
@field_remappings = {}
|
50
|
+
end
|
43
51
|
end
|
44
52
|
|
45
53
|
class LastSetupError < Stripe::StripeObject
|
@@ -109,6 +117,14 @@ module Stripe
|
|
109
117
|
attr_reader :source
|
110
118
|
# The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error`
|
111
119
|
attr_reader :type
|
120
|
+
|
121
|
+
def self.inner_class_types
|
122
|
+
@inner_class_types = {}
|
123
|
+
end
|
124
|
+
|
125
|
+
def self.field_remappings
|
126
|
+
@field_remappings = {}
|
127
|
+
end
|
112
128
|
end
|
113
129
|
|
114
130
|
class NextAction < Stripe::StripeObject
|
@@ -120,6 +136,14 @@ module Stripe
|
|
120
136
|
attr_reader :image_url_png
|
121
137
|
# The image_url_svg string used to render QR code
|
122
138
|
attr_reader :image_url_svg
|
139
|
+
|
140
|
+
def self.inner_class_types
|
141
|
+
@inner_class_types = {}
|
142
|
+
end
|
143
|
+
|
144
|
+
def self.field_remappings
|
145
|
+
@field_remappings = {}
|
146
|
+
end
|
123
147
|
end
|
124
148
|
# The URL to the hosted Cash App Pay instructions page, which allows customers to view the QR code, and supports QR code refreshing on expiration.
|
125
149
|
attr_reader :hosted_instructions_url
|
@@ -127,6 +151,35 @@ module Stripe
|
|
127
151
|
attr_reader :mobile_auth_url
|
128
152
|
# Attribute for field qr_code
|
129
153
|
attr_reader :qr_code
|
154
|
+
|
155
|
+
def self.inner_class_types
|
156
|
+
@inner_class_types = { qr_code: QrCode }
|
157
|
+
end
|
158
|
+
|
159
|
+
def self.field_remappings
|
160
|
+
@field_remappings = {}
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
class PixDisplayQrCode < Stripe::StripeObject
|
165
|
+
# The raw data string used to generate QR code, it should be used together with QR code library.
|
166
|
+
attr_reader :data
|
167
|
+
# The date (unix timestamp) when the PIX expires.
|
168
|
+
attr_reader :expires_at
|
169
|
+
# The URL to the hosted pix instructions page, which allows customers to view the pix QR code.
|
170
|
+
attr_reader :hosted_instructions_url
|
171
|
+
# The image_url_png string used to render png QR code
|
172
|
+
attr_reader :image_url_png
|
173
|
+
# The image_url_svg string used to render svg QR code
|
174
|
+
attr_reader :image_url_svg
|
175
|
+
|
176
|
+
def self.inner_class_types
|
177
|
+
@inner_class_types = {}
|
178
|
+
end
|
179
|
+
|
180
|
+
def self.field_remappings
|
181
|
+
@field_remappings = {}
|
182
|
+
end
|
130
183
|
end
|
131
184
|
|
132
185
|
class RedirectToUrl < Stripe::StripeObject
|
@@ -134,6 +187,14 @@ module Stripe
|
|
134
187
|
attr_reader :return_url
|
135
188
|
# The URL you must redirect your customer to in order to authenticate.
|
136
189
|
attr_reader :url
|
190
|
+
|
191
|
+
def self.inner_class_types
|
192
|
+
@inner_class_types = {}
|
193
|
+
end
|
194
|
+
|
195
|
+
def self.field_remappings
|
196
|
+
@field_remappings = {}
|
197
|
+
end
|
137
198
|
end
|
138
199
|
|
139
200
|
class VerifyWithMicrodeposits < Stripe::StripeObject
|
@@ -143,9 +204,19 @@ module Stripe
|
|
143
204
|
attr_reader :hosted_verification_url
|
144
205
|
# The type of the microdeposit sent to the customer. Used to distinguish between different verification methods.
|
145
206
|
attr_reader :microdeposit_type
|
207
|
+
|
208
|
+
def self.inner_class_types
|
209
|
+
@inner_class_types = {}
|
210
|
+
end
|
211
|
+
|
212
|
+
def self.field_remappings
|
213
|
+
@field_remappings = {}
|
214
|
+
end
|
146
215
|
end
|
147
216
|
# Attribute for field cashapp_handle_redirect_or_display_qr_code
|
148
217
|
attr_reader :cashapp_handle_redirect_or_display_qr_code
|
218
|
+
# Attribute for field pix_display_qr_code
|
219
|
+
attr_reader :pix_display_qr_code
|
149
220
|
# Attribute for field redirect_to_url
|
150
221
|
attr_reader :redirect_to_url
|
151
222
|
# Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
|
@@ -154,6 +225,19 @@ module Stripe
|
|
154
225
|
attr_reader :use_stripe_sdk
|
155
226
|
# Attribute for field verify_with_microdeposits
|
156
227
|
attr_reader :verify_with_microdeposits
|
228
|
+
|
229
|
+
def self.inner_class_types
|
230
|
+
@inner_class_types = {
|
231
|
+
cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode,
|
232
|
+
pix_display_qr_code: PixDisplayQrCode,
|
233
|
+
redirect_to_url: RedirectToUrl,
|
234
|
+
verify_with_microdeposits: VerifyWithMicrodeposits,
|
235
|
+
}
|
236
|
+
end
|
237
|
+
|
238
|
+
def self.field_remappings
|
239
|
+
@field_remappings = {}
|
240
|
+
end
|
157
241
|
end
|
158
242
|
|
159
243
|
class PaymentMethodConfigurationDetails < Stripe::StripeObject
|
@@ -161,6 +245,14 @@ module Stripe
|
|
161
245
|
attr_reader :id
|
162
246
|
# ID of the parent payment method configuration used.
|
163
247
|
attr_reader :parent
|
248
|
+
|
249
|
+
def self.inner_class_types
|
250
|
+
@inner_class_types = {}
|
251
|
+
end
|
252
|
+
|
253
|
+
def self.field_remappings
|
254
|
+
@field_remappings = {}
|
255
|
+
end
|
164
256
|
end
|
165
257
|
|
166
258
|
class PaymentMethodOptions < Stripe::StripeObject
|
@@ -176,6 +268,14 @@ module Stripe
|
|
176
268
|
attr_reader :payment_schedule
|
177
269
|
# Transaction type of the mandate.
|
178
270
|
attr_reader :transaction_type
|
271
|
+
|
272
|
+
def self.inner_class_types
|
273
|
+
@inner_class_types = {}
|
274
|
+
end
|
275
|
+
|
276
|
+
def self.field_remappings
|
277
|
+
@field_remappings = {}
|
278
|
+
end
|
179
279
|
end
|
180
280
|
# Currency supported by the bank account
|
181
281
|
attr_reader :currency
|
@@ -183,17 +283,49 @@ module Stripe
|
|
183
283
|
attr_reader :mandate_options
|
184
284
|
# Bank account verification method.
|
185
285
|
attr_reader :verification_method
|
286
|
+
|
287
|
+
def self.inner_class_types
|
288
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
289
|
+
end
|
290
|
+
|
291
|
+
def self.field_remappings
|
292
|
+
@field_remappings = {}
|
293
|
+
end
|
186
294
|
end
|
187
295
|
|
188
|
-
class AmazonPay < Stripe::StripeObject
|
296
|
+
class AmazonPay < Stripe::StripeObject
|
297
|
+
def self.inner_class_types
|
298
|
+
@inner_class_types = {}
|
299
|
+
end
|
300
|
+
|
301
|
+
def self.field_remappings
|
302
|
+
@field_remappings = {}
|
303
|
+
end
|
304
|
+
end
|
189
305
|
|
190
306
|
class BacsDebit < Stripe::StripeObject
|
191
307
|
class MandateOptions < Stripe::StripeObject
|
192
308
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
|
193
309
|
attr_reader :reference_prefix
|
310
|
+
|
311
|
+
def self.inner_class_types
|
312
|
+
@inner_class_types = {}
|
313
|
+
end
|
314
|
+
|
315
|
+
def self.field_remappings
|
316
|
+
@field_remappings = {}
|
317
|
+
end
|
194
318
|
end
|
195
319
|
# Attribute for field mandate_options
|
196
320
|
attr_reader :mandate_options
|
321
|
+
|
322
|
+
def self.inner_class_types
|
323
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
324
|
+
end
|
325
|
+
|
326
|
+
def self.field_remappings
|
327
|
+
@field_remappings = {}
|
328
|
+
end
|
197
329
|
end
|
198
330
|
|
199
331
|
class Card < Stripe::StripeObject
|
@@ -218,6 +350,14 @@ module Stripe
|
|
218
350
|
attr_reader :start_date
|
219
351
|
# Specifies the type of mandates supported. Possible values are `india`.
|
220
352
|
attr_reader :supported_types
|
353
|
+
|
354
|
+
def self.inner_class_types
|
355
|
+
@inner_class_types = {}
|
356
|
+
end
|
357
|
+
|
358
|
+
def self.field_remappings
|
359
|
+
@field_remappings = {}
|
360
|
+
end
|
221
361
|
end
|
222
362
|
# Configuration options for setting up an eMandate for cards issued in India.
|
223
363
|
attr_reader :mandate_options
|
@@ -225,34 +365,170 @@ module Stripe
|
|
225
365
|
attr_reader :network
|
226
366
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
227
367
|
attr_reader :request_three_d_secure
|
368
|
+
|
369
|
+
def self.inner_class_types
|
370
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
371
|
+
end
|
372
|
+
|
373
|
+
def self.field_remappings
|
374
|
+
@field_remappings = {}
|
375
|
+
end
|
228
376
|
end
|
229
377
|
|
230
|
-
class CardPresent < Stripe::StripeObject
|
378
|
+
class CardPresent < Stripe::StripeObject
|
379
|
+
def self.inner_class_types
|
380
|
+
@inner_class_types = {}
|
381
|
+
end
|
382
|
+
|
383
|
+
def self.field_remappings
|
384
|
+
@field_remappings = {}
|
385
|
+
end
|
386
|
+
end
|
231
387
|
|
232
388
|
class Klarna < Stripe::StripeObject
|
233
389
|
# The currency of the setup intent. Three letter ISO currency code.
|
234
390
|
attr_reader :currency
|
235
391
|
# Preferred locale of the Klarna checkout page that the customer is redirected to.
|
236
392
|
attr_reader :preferred_locale
|
393
|
+
|
394
|
+
def self.inner_class_types
|
395
|
+
@inner_class_types = {}
|
396
|
+
end
|
397
|
+
|
398
|
+
def self.field_remappings
|
399
|
+
@field_remappings = {}
|
400
|
+
end
|
237
401
|
end
|
238
402
|
|
239
403
|
class Link < Stripe::StripeObject
|
240
404
|
# [Deprecated] This is a legacy parameter that no longer has any function.
|
241
405
|
attr_reader :persistent_token
|
406
|
+
|
407
|
+
def self.inner_class_types
|
408
|
+
@inner_class_types = {}
|
409
|
+
end
|
410
|
+
|
411
|
+
def self.field_remappings
|
412
|
+
@field_remappings = {}
|
413
|
+
end
|
242
414
|
end
|
243
415
|
|
244
416
|
class Paypal < Stripe::StripeObject
|
245
417
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
246
418
|
attr_reader :billing_agreement_id
|
419
|
+
# 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).
|
420
|
+
attr_reader :currency
|
421
|
+
# 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.
|
422
|
+
attr_reader :subsellers
|
423
|
+
|
424
|
+
def self.inner_class_types
|
425
|
+
@inner_class_types = {}
|
426
|
+
end
|
427
|
+
|
428
|
+
def self.field_remappings
|
429
|
+
@field_remappings = {}
|
430
|
+
end
|
431
|
+
end
|
432
|
+
|
433
|
+
class Payto < Stripe::StripeObject
|
434
|
+
class MandateOptions < Stripe::StripeObject
|
435
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
436
|
+
attr_reader :amount
|
437
|
+
# 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.
|
438
|
+
attr_reader :amount_type
|
439
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
440
|
+
attr_reader :end_date
|
441
|
+
# The periodicity at which payments will be collected.
|
442
|
+
attr_reader :payment_schedule
|
443
|
+
# 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.
|
444
|
+
attr_reader :payments_per_period
|
445
|
+
# The purpose for which payments are made. Defaults to retail.
|
446
|
+
attr_reader :purpose
|
447
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
448
|
+
attr_reader :start_date
|
449
|
+
|
450
|
+
def self.inner_class_types
|
451
|
+
@inner_class_types = {}
|
452
|
+
end
|
453
|
+
|
454
|
+
def self.field_remappings
|
455
|
+
@field_remappings = {}
|
456
|
+
end
|
457
|
+
end
|
458
|
+
# Attribute for field mandate_options
|
459
|
+
attr_reader :mandate_options
|
460
|
+
|
461
|
+
def self.inner_class_types
|
462
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
463
|
+
end
|
464
|
+
|
465
|
+
def self.field_remappings
|
466
|
+
@field_remappings = {}
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
470
|
+
class Pix < Stripe::StripeObject
|
471
|
+
class MandateOptions < Stripe::StripeObject
|
472
|
+
# Amount to be charged for future payments.
|
473
|
+
attr_reader :amount
|
474
|
+
# Determines if the amount includes the IOF tax.
|
475
|
+
attr_reader :amount_includes_iof
|
476
|
+
# Type of amount.
|
477
|
+
attr_reader :amount_type
|
478
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
479
|
+
attr_reader :currency
|
480
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
481
|
+
attr_reader :end_date
|
482
|
+
# Schedule at which the future payments will be charged.
|
483
|
+
attr_reader :payment_schedule
|
484
|
+
# Subscription name displayed to buyers in their bank app.
|
485
|
+
attr_reader :reference
|
486
|
+
# Start date of the mandate, in `YYYY-MM-DD`.
|
487
|
+
attr_reader :start_date
|
488
|
+
|
489
|
+
def self.inner_class_types
|
490
|
+
@inner_class_types = {}
|
491
|
+
end
|
492
|
+
|
493
|
+
def self.field_remappings
|
494
|
+
@field_remappings = {}
|
495
|
+
end
|
496
|
+
end
|
497
|
+
# Attribute for field mandate_options
|
498
|
+
attr_reader :mandate_options
|
499
|
+
|
500
|
+
def self.inner_class_types
|
501
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
502
|
+
end
|
503
|
+
|
504
|
+
def self.field_remappings
|
505
|
+
@field_remappings = {}
|
506
|
+
end
|
247
507
|
end
|
248
508
|
|
249
509
|
class SepaDebit < Stripe::StripeObject
|
250
510
|
class MandateOptions < Stripe::StripeObject
|
251
511
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
252
512
|
attr_reader :reference_prefix
|
513
|
+
|
514
|
+
def self.inner_class_types
|
515
|
+
@inner_class_types = {}
|
516
|
+
end
|
517
|
+
|
518
|
+
def self.field_remappings
|
519
|
+
@field_remappings = {}
|
520
|
+
end
|
253
521
|
end
|
254
522
|
# Attribute for field mandate_options
|
255
523
|
attr_reader :mandate_options
|
524
|
+
|
525
|
+
def self.inner_class_types
|
526
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
527
|
+
end
|
528
|
+
|
529
|
+
def self.field_remappings
|
530
|
+
@field_remappings = {}
|
531
|
+
end
|
256
532
|
end
|
257
533
|
|
258
534
|
class UsBankAccount < Stripe::StripeObject
|
@@ -260,20 +536,61 @@ module Stripe
|
|
260
536
|
class Filters < Stripe::StripeObject
|
261
537
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
262
538
|
attr_reader :account_subcategories
|
539
|
+
# The institution to use to filter for possible accounts to link.
|
540
|
+
attr_reader :institution
|
541
|
+
|
542
|
+
def self.inner_class_types
|
543
|
+
@inner_class_types = {}
|
544
|
+
end
|
545
|
+
|
546
|
+
def self.field_remappings
|
547
|
+
@field_remappings = {}
|
548
|
+
end
|
549
|
+
end
|
550
|
+
|
551
|
+
class ManualEntry < Stripe::StripeObject
|
552
|
+
# Settings for configuring manual entry of account details.
|
553
|
+
attr_reader :mode
|
554
|
+
|
555
|
+
def self.inner_class_types
|
556
|
+
@inner_class_types = {}
|
557
|
+
end
|
558
|
+
|
559
|
+
def self.field_remappings
|
560
|
+
@field_remappings = {}
|
561
|
+
end
|
263
562
|
end
|
264
563
|
# Attribute for field filters
|
265
564
|
attr_reader :filters
|
565
|
+
# Attribute for field manual_entry
|
566
|
+
attr_reader :manual_entry
|
266
567
|
# The list of permissions to request. The `payment_method` permission must be included.
|
267
568
|
attr_reader :permissions
|
268
569
|
# Data features requested to be retrieved upon account creation.
|
269
570
|
attr_reader :prefetch
|
270
571
|
# 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.
|
271
572
|
attr_reader :return_url
|
573
|
+
|
574
|
+
def self.inner_class_types
|
575
|
+
@inner_class_types = { filters: Filters, manual_entry: ManualEntry }
|
576
|
+
end
|
577
|
+
|
578
|
+
def self.field_remappings
|
579
|
+
@field_remappings = {}
|
580
|
+
end
|
272
581
|
end
|
273
582
|
|
274
583
|
class MandateOptions < Stripe::StripeObject
|
275
584
|
# Mandate collection method
|
276
585
|
attr_reader :collection_method
|
586
|
+
|
587
|
+
def self.inner_class_types
|
588
|
+
@inner_class_types = {}
|
589
|
+
end
|
590
|
+
|
591
|
+
def self.field_remappings
|
592
|
+
@field_remappings = {}
|
593
|
+
end
|
277
594
|
end
|
278
595
|
# Attribute for field financial_connections
|
279
596
|
attr_reader :financial_connections
|
@@ -281,6 +598,17 @@ module Stripe
|
|
281
598
|
attr_reader :mandate_options
|
282
599
|
# Bank account verification method.
|
283
600
|
attr_reader :verification_method
|
601
|
+
|
602
|
+
def self.inner_class_types
|
603
|
+
@inner_class_types = {
|
604
|
+
financial_connections: FinancialConnections,
|
605
|
+
mandate_options: MandateOptions,
|
606
|
+
}
|
607
|
+
end
|
608
|
+
|
609
|
+
def self.field_remappings
|
610
|
+
@field_remappings = {}
|
611
|
+
end
|
284
612
|
end
|
285
613
|
# Attribute for field acss_debit
|
286
614
|
attr_reader :acss_debit
|
@@ -298,10 +626,35 @@ module Stripe
|
|
298
626
|
attr_reader :link
|
299
627
|
# Attribute for field paypal
|
300
628
|
attr_reader :paypal
|
629
|
+
# Attribute for field payto
|
630
|
+
attr_reader :payto
|
631
|
+
# Attribute for field pix
|
632
|
+
attr_reader :pix
|
301
633
|
# Attribute for field sepa_debit
|
302
634
|
attr_reader :sepa_debit
|
303
635
|
# Attribute for field us_bank_account
|
304
636
|
attr_reader :us_bank_account
|
637
|
+
|
638
|
+
def self.inner_class_types
|
639
|
+
@inner_class_types = {
|
640
|
+
acss_debit: AcssDebit,
|
641
|
+
amazon_pay: AmazonPay,
|
642
|
+
bacs_debit: BacsDebit,
|
643
|
+
card: Card,
|
644
|
+
card_present: CardPresent,
|
645
|
+
klarna: Klarna,
|
646
|
+
link: Link,
|
647
|
+
paypal: Paypal,
|
648
|
+
payto: Payto,
|
649
|
+
pix: Pix,
|
650
|
+
sepa_debit: SepaDebit,
|
651
|
+
us_bank_account: UsBankAccount,
|
652
|
+
}
|
653
|
+
end
|
654
|
+
|
655
|
+
def self.field_remappings
|
656
|
+
@field_remappings = {}
|
657
|
+
end
|
305
658
|
end
|
306
659
|
|
307
660
|
class ListParams < Stripe::RequestParams
|
@@ -330,6 +683,8 @@ module Stripe
|
|
330
683
|
attr_accessor :created
|
331
684
|
# Only return SetupIntents for the customer specified by this customer ID.
|
332
685
|
attr_accessor :customer
|
686
|
+
# Only return SetupIntents for the account specified by this customer ID.
|
687
|
+
attr_accessor :customer_account
|
333
688
|
# 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.
|
334
689
|
attr_accessor :ending_before
|
335
690
|
# Specifies which fields in the response should be expanded.
|
@@ -345,6 +700,7 @@ module Stripe
|
|
345
700
|
attach_to_self: nil,
|
346
701
|
created: nil,
|
347
702
|
customer: nil,
|
703
|
+
customer_account: nil,
|
348
704
|
ending_before: nil,
|
349
705
|
expand: nil,
|
350
706
|
limit: nil,
|
@@ -354,6 +710,7 @@ module Stripe
|
|
354
710
|
@attach_to_self = attach_to_self
|
355
711
|
@created = created
|
356
712
|
@customer = customer
|
713
|
+
@customer_account = customer_account
|
357
714
|
@ending_before = ending_before
|
358
715
|
@expand = expand
|
359
716
|
@limit = limit
|
@@ -553,8 +910,18 @@ module Stripe
|
|
553
910
|
end
|
554
911
|
|
555
912
|
class Giropay < Stripe::RequestParams; end
|
913
|
+
class Gopay < Stripe::RequestParams; end
|
556
914
|
class Grabpay < Stripe::RequestParams; end
|
557
915
|
|
916
|
+
class IdBankTransfer < Stripe::RequestParams
|
917
|
+
# Bank where the account is held.
|
918
|
+
attr_accessor :bank
|
919
|
+
|
920
|
+
def initialize(bank: nil)
|
921
|
+
@bank = bank
|
922
|
+
end
|
923
|
+
end
|
924
|
+
|
558
925
|
class Ideal < Stripe::RequestParams
|
559
926
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
560
927
|
attr_accessor :bank
|
@@ -593,6 +960,7 @@ module Stripe
|
|
593
960
|
class Konbini < Stripe::RequestParams; end
|
594
961
|
class KrCard < Stripe::RequestParams; end
|
595
962
|
class Link < Stripe::RequestParams; end
|
963
|
+
class MbWay < Stripe::RequestParams; end
|
596
964
|
class Mobilepay < Stripe::RequestParams; end
|
597
965
|
class Multibanco < Stripe::RequestParams; end
|
598
966
|
|
@@ -651,8 +1019,25 @@ module Stripe
|
|
651
1019
|
class Payco < Stripe::RequestParams; end
|
652
1020
|
class Paynow < Stripe::RequestParams; end
|
653
1021
|
class Paypal < Stripe::RequestParams; end
|
1022
|
+
|
1023
|
+
class Payto < Stripe::RequestParams
|
1024
|
+
# The account number for the bank account.
|
1025
|
+
attr_accessor :account_number
|
1026
|
+
# Bank-State-Branch number of the bank account.
|
1027
|
+
attr_accessor :bsb_number
|
1028
|
+
# The PayID alias for the bank account.
|
1029
|
+
attr_accessor :pay_id
|
1030
|
+
|
1031
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
1032
|
+
@account_number = account_number
|
1033
|
+
@bsb_number = bsb_number
|
1034
|
+
@pay_id = pay_id
|
1035
|
+
end
|
1036
|
+
end
|
1037
|
+
|
654
1038
|
class Pix < Stripe::RequestParams; end
|
655
1039
|
class Promptpay < Stripe::RequestParams; end
|
1040
|
+
class Qris < Stripe::RequestParams; end
|
656
1041
|
|
657
1042
|
class RadarOptions < Stripe::RequestParams
|
658
1043
|
# 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.
|
@@ -663,6 +1048,29 @@ module Stripe
|
|
663
1048
|
end
|
664
1049
|
end
|
665
1050
|
|
1051
|
+
class Rechnung < Stripe::RequestParams
|
1052
|
+
class Dob < Stripe::RequestParams
|
1053
|
+
# The day of birth, between 1 and 31.
|
1054
|
+
attr_accessor :day
|
1055
|
+
# The month of birth, between 1 and 12.
|
1056
|
+
attr_accessor :month
|
1057
|
+
# The four-digit year of birth.
|
1058
|
+
attr_accessor :year
|
1059
|
+
|
1060
|
+
def initialize(day: nil, month: nil, year: nil)
|
1061
|
+
@day = day
|
1062
|
+
@month = month
|
1063
|
+
@year = year
|
1064
|
+
end
|
1065
|
+
end
|
1066
|
+
# Customer's date of birth
|
1067
|
+
attr_accessor :dob
|
1068
|
+
|
1069
|
+
def initialize(dob: nil)
|
1070
|
+
@dob = dob
|
1071
|
+
end
|
1072
|
+
end
|
1073
|
+
|
666
1074
|
class RevolutPay < Stripe::RequestParams; end
|
667
1075
|
class SamsungPay < Stripe::RequestParams; end
|
668
1076
|
class Satispay < Stripe::RequestParams; end
|
@@ -676,6 +1084,8 @@ module Stripe
|
|
676
1084
|
end
|
677
1085
|
end
|
678
1086
|
|
1087
|
+
class Shopeepay < Stripe::RequestParams; end
|
1088
|
+
|
679
1089
|
class Sofort < Stripe::RequestParams
|
680
1090
|
# Two-letter ISO code representing the country the bank account is located in.
|
681
1091
|
attr_accessor :country
|
@@ -685,6 +1095,18 @@ module Stripe
|
|
685
1095
|
end
|
686
1096
|
end
|
687
1097
|
|
1098
|
+
class StripeBalance < Stripe::RequestParams
|
1099
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
1100
|
+
attr_accessor :account
|
1101
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
1102
|
+
attr_accessor :source_type
|
1103
|
+
|
1104
|
+
def initialize(account: nil, source_type: nil)
|
1105
|
+
@account = account
|
1106
|
+
@source_type = source_type
|
1107
|
+
end
|
1108
|
+
end
|
1109
|
+
|
688
1110
|
class Swish < Stripe::RequestParams; end
|
689
1111
|
class Twint < Stripe::RequestParams; end
|
690
1112
|
|
@@ -757,8 +1179,12 @@ module Stripe
|
|
757
1179
|
attr_accessor :fpx
|
758
1180
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
759
1181
|
attr_accessor :giropay
|
1182
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
1183
|
+
attr_accessor :gopay
|
760
1184
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
761
1185
|
attr_accessor :grabpay
|
1186
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
1187
|
+
attr_accessor :id_bank_transfer
|
762
1188
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
763
1189
|
attr_accessor :ideal
|
764
1190
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -773,6 +1199,8 @@ module Stripe
|
|
773
1199
|
attr_accessor :kr_card
|
774
1200
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
775
1201
|
attr_accessor :link
|
1202
|
+
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
1203
|
+
attr_accessor :mb_way
|
776
1204
|
# 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`.
|
777
1205
|
attr_accessor :metadata
|
778
1206
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -795,12 +1223,18 @@ module Stripe
|
|
795
1223
|
attr_accessor :paynow
|
796
1224
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
797
1225
|
attr_accessor :paypal
|
1226
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
1227
|
+
attr_accessor :payto
|
798
1228
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
799
1229
|
attr_accessor :pix
|
800
1230
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
801
1231
|
attr_accessor :promptpay
|
1232
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
1233
|
+
attr_accessor :qris
|
802
1234
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
803
1235
|
attr_accessor :radar_options
|
1236
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
1237
|
+
attr_accessor :rechnung
|
804
1238
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
805
1239
|
attr_accessor :revolut_pay
|
806
1240
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -809,8 +1243,12 @@ module Stripe
|
|
809
1243
|
attr_accessor :satispay
|
810
1244
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
811
1245
|
attr_accessor :sepa_debit
|
1246
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
1247
|
+
attr_accessor :shopeepay
|
812
1248
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
813
1249
|
attr_accessor :sofort
|
1250
|
+
# This hash contains details about the Stripe balance payment method.
|
1251
|
+
attr_accessor :stripe_balance
|
814
1252
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
815
1253
|
attr_accessor :swish
|
816
1254
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -845,7 +1283,9 @@ module Stripe
|
|
845
1283
|
eps: nil,
|
846
1284
|
fpx: nil,
|
847
1285
|
giropay: nil,
|
1286
|
+
gopay: nil,
|
848
1287
|
grabpay: nil,
|
1288
|
+
id_bank_transfer: nil,
|
849
1289
|
ideal: nil,
|
850
1290
|
interac_present: nil,
|
851
1291
|
kakao_pay: nil,
|
@@ -853,6 +1293,7 @@ module Stripe
|
|
853
1293
|
konbini: nil,
|
854
1294
|
kr_card: nil,
|
855
1295
|
link: nil,
|
1296
|
+
mb_way: nil,
|
856
1297
|
metadata: nil,
|
857
1298
|
mobilepay: nil,
|
858
1299
|
multibanco: nil,
|
@@ -864,14 +1305,19 @@ module Stripe
|
|
864
1305
|
payco: nil,
|
865
1306
|
paynow: nil,
|
866
1307
|
paypal: nil,
|
1308
|
+
payto: nil,
|
867
1309
|
pix: nil,
|
868
1310
|
promptpay: nil,
|
1311
|
+
qris: nil,
|
869
1312
|
radar_options: nil,
|
1313
|
+
rechnung: nil,
|
870
1314
|
revolut_pay: nil,
|
871
1315
|
samsung_pay: nil,
|
872
1316
|
satispay: nil,
|
873
1317
|
sepa_debit: nil,
|
1318
|
+
shopeepay: nil,
|
874
1319
|
sofort: nil,
|
1320
|
+
stripe_balance: nil,
|
875
1321
|
swish: nil,
|
876
1322
|
twint: nil,
|
877
1323
|
type: nil,
|
@@ -899,7 +1345,9 @@ module Stripe
|
|
899
1345
|
@eps = eps
|
900
1346
|
@fpx = fpx
|
901
1347
|
@giropay = giropay
|
1348
|
+
@gopay = gopay
|
902
1349
|
@grabpay = grabpay
|
1350
|
+
@id_bank_transfer = id_bank_transfer
|
903
1351
|
@ideal = ideal
|
904
1352
|
@interac_present = interac_present
|
905
1353
|
@kakao_pay = kakao_pay
|
@@ -907,6 +1355,7 @@ module Stripe
|
|
907
1355
|
@konbini = konbini
|
908
1356
|
@kr_card = kr_card
|
909
1357
|
@link = link
|
1358
|
+
@mb_way = mb_way
|
910
1359
|
@metadata = metadata
|
911
1360
|
@mobilepay = mobilepay
|
912
1361
|
@multibanco = multibanco
|
@@ -918,14 +1367,19 @@ module Stripe
|
|
918
1367
|
@payco = payco
|
919
1368
|
@paynow = paynow
|
920
1369
|
@paypal = paypal
|
1370
|
+
@payto = payto
|
921
1371
|
@pix = pix
|
922
1372
|
@promptpay = promptpay
|
1373
|
+
@qris = qris
|
923
1374
|
@radar_options = radar_options
|
1375
|
+
@rechnung = rechnung
|
924
1376
|
@revolut_pay = revolut_pay
|
925
1377
|
@samsung_pay = samsung_pay
|
926
1378
|
@satispay = satispay
|
927
1379
|
@sepa_debit = sepa_debit
|
1380
|
+
@shopeepay = shopeepay
|
928
1381
|
@sofort = sofort
|
1382
|
+
@stripe_balance = stripe_balance
|
929
1383
|
@swish = swish
|
930
1384
|
@twint = twint
|
931
1385
|
@type = type
|
@@ -1241,9 +1695,105 @@ module Stripe
|
|
1241
1695
|
class Paypal < Stripe::RequestParams
|
1242
1696
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
1243
1697
|
attr_accessor :billing_agreement_id
|
1698
|
+
# Attribute for param field currency
|
1699
|
+
attr_accessor :currency
|
1700
|
+
# 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.
|
1701
|
+
attr_accessor :subsellers
|
1702
|
+
|
1703
|
+
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
|
1704
|
+
@billing_agreement_id = billing_agreement_id
|
1705
|
+
@currency = currency
|
1706
|
+
@subsellers = subsellers
|
1707
|
+
end
|
1708
|
+
end
|
1709
|
+
|
1710
|
+
class Payto < Stripe::RequestParams
|
1711
|
+
class MandateOptions < Stripe::RequestParams
|
1712
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
1713
|
+
attr_accessor :amount
|
1714
|
+
# 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.
|
1715
|
+
attr_accessor :amount_type
|
1716
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
1717
|
+
attr_accessor :end_date
|
1718
|
+
# The periodicity at which payments will be collected.
|
1719
|
+
attr_accessor :payment_schedule
|
1720
|
+
# 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.
|
1721
|
+
attr_accessor :payments_per_period
|
1722
|
+
# The purpose for which payments are made. Defaults to retail.
|
1723
|
+
attr_accessor :purpose
|
1724
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
1725
|
+
attr_accessor :start_date
|
1726
|
+
|
1727
|
+
def initialize(
|
1728
|
+
amount: nil,
|
1729
|
+
amount_type: nil,
|
1730
|
+
end_date: nil,
|
1731
|
+
payment_schedule: nil,
|
1732
|
+
payments_per_period: nil,
|
1733
|
+
purpose: nil,
|
1734
|
+
start_date: nil
|
1735
|
+
)
|
1736
|
+
@amount = amount
|
1737
|
+
@amount_type = amount_type
|
1738
|
+
@end_date = end_date
|
1739
|
+
@payment_schedule = payment_schedule
|
1740
|
+
@payments_per_period = payments_per_period
|
1741
|
+
@purpose = purpose
|
1742
|
+
@start_date = start_date
|
1743
|
+
end
|
1744
|
+
end
|
1745
|
+
# Additional fields for Mandate creation.
|
1746
|
+
attr_accessor :mandate_options
|
1747
|
+
|
1748
|
+
def initialize(mandate_options: nil)
|
1749
|
+
@mandate_options = mandate_options
|
1750
|
+
end
|
1751
|
+
end
|
1752
|
+
|
1753
|
+
class Pix < Stripe::RequestParams
|
1754
|
+
class MandateOptions < Stripe::RequestParams
|
1755
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
1756
|
+
attr_accessor :amount
|
1757
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
1758
|
+
attr_accessor :amount_includes_iof
|
1759
|
+
# Type of amount. Defaults to `maximum`.
|
1760
|
+
attr_accessor :amount_type
|
1761
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
1762
|
+
attr_accessor :currency
|
1763
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
1764
|
+
attr_accessor :end_date
|
1765
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
1766
|
+
attr_accessor :payment_schedule
|
1767
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
1768
|
+
attr_accessor :reference
|
1769
|
+
# Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
1770
|
+
attr_accessor :start_date
|
1771
|
+
|
1772
|
+
def initialize(
|
1773
|
+
amount: nil,
|
1774
|
+
amount_includes_iof: nil,
|
1775
|
+
amount_type: nil,
|
1776
|
+
currency: nil,
|
1777
|
+
end_date: nil,
|
1778
|
+
payment_schedule: nil,
|
1779
|
+
reference: nil,
|
1780
|
+
start_date: nil
|
1781
|
+
)
|
1782
|
+
@amount = amount
|
1783
|
+
@amount_includes_iof = amount_includes_iof
|
1784
|
+
@amount_type = amount_type
|
1785
|
+
@currency = currency
|
1786
|
+
@end_date = end_date
|
1787
|
+
@payment_schedule = payment_schedule
|
1788
|
+
@reference = reference
|
1789
|
+
@start_date = start_date
|
1790
|
+
end
|
1791
|
+
end
|
1792
|
+
# Additional fields for mandate creation.
|
1793
|
+
attr_accessor :mandate_options
|
1244
1794
|
|
1245
|
-
def initialize(
|
1246
|
-
@
|
1795
|
+
def initialize(mandate_options: nil)
|
1796
|
+
@mandate_options = mandate_options
|
1247
1797
|
end
|
1248
1798
|
end
|
1249
1799
|
|
@@ -1269,13 +1819,27 @@ module Stripe
|
|
1269
1819
|
class Filters < Stripe::RequestParams
|
1270
1820
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
1271
1821
|
attr_accessor :account_subcategories
|
1822
|
+
# ID of the institution to use to filter for selectable accounts.
|
1823
|
+
attr_accessor :institution
|
1272
1824
|
|
1273
|
-
def initialize(account_subcategories: nil)
|
1825
|
+
def initialize(account_subcategories: nil, institution: nil)
|
1274
1826
|
@account_subcategories = account_subcategories
|
1827
|
+
@institution = institution
|
1828
|
+
end
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
class ManualEntry < Stripe::RequestParams
|
1832
|
+
# Settings for configuring manual entry of account details.
|
1833
|
+
attr_accessor :mode
|
1834
|
+
|
1835
|
+
def initialize(mode: nil)
|
1836
|
+
@mode = mode
|
1275
1837
|
end
|
1276
1838
|
end
|
1277
1839
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
1278
1840
|
attr_accessor :filters
|
1841
|
+
# Customize manual entry behavior
|
1842
|
+
attr_accessor :manual_entry
|
1279
1843
|
# 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`.
|
1280
1844
|
attr_accessor :permissions
|
1281
1845
|
# List of data features that you would like to retrieve upon account creation.
|
@@ -1283,8 +1847,15 @@ module Stripe
|
|
1283
1847
|
# 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.
|
1284
1848
|
attr_accessor :return_url
|
1285
1849
|
|
1286
|
-
def initialize(
|
1850
|
+
def initialize(
|
1851
|
+
filters: nil,
|
1852
|
+
manual_entry: nil,
|
1853
|
+
permissions: nil,
|
1854
|
+
prefetch: nil,
|
1855
|
+
return_url: nil
|
1856
|
+
)
|
1287
1857
|
@filters = filters
|
1858
|
+
@manual_entry = manual_entry
|
1288
1859
|
@permissions = permissions
|
1289
1860
|
@prefetch = prefetch
|
1290
1861
|
@return_url = return_url
|
@@ -1345,6 +1916,10 @@ module Stripe
|
|
1345
1916
|
attr_accessor :link
|
1346
1917
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
1347
1918
|
attr_accessor :paypal
|
1919
|
+
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
1920
|
+
attr_accessor :payto
|
1921
|
+
# If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
1922
|
+
attr_accessor :pix
|
1348
1923
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
1349
1924
|
attr_accessor :sepa_debit
|
1350
1925
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -1359,6 +1934,8 @@ module Stripe
|
|
1359
1934
|
klarna: nil,
|
1360
1935
|
link: nil,
|
1361
1936
|
paypal: nil,
|
1937
|
+
payto: nil,
|
1938
|
+
pix: nil,
|
1362
1939
|
sepa_debit: nil,
|
1363
1940
|
us_bank_account: nil
|
1364
1941
|
)
|
@@ -1370,6 +1947,8 @@ module Stripe
|
|
1370
1947
|
@klarna = klarna
|
1371
1948
|
@link = link
|
1372
1949
|
@paypal = paypal
|
1950
|
+
@payto = payto
|
1951
|
+
@pix = pix
|
1373
1952
|
@sepa_debit = sepa_debit
|
1374
1953
|
@us_bank_account = us_bank_account
|
1375
1954
|
end
|
@@ -1402,6 +1981,10 @@ module Stripe
|
|
1402
1981
|
#
|
1403
1982
|
# 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.
|
1404
1983
|
attr_accessor :customer
|
1984
|
+
# ID of the Account this SetupIntent belongs to, if one exists.
|
1985
|
+
#
|
1986
|
+
# 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.
|
1987
|
+
attr_accessor :customer_account
|
1405
1988
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
1406
1989
|
attr_accessor :description
|
1407
1990
|
# Specifies which fields in the response should be expanded.
|
@@ -1444,6 +2027,7 @@ module Stripe
|
|
1444
2027
|
confirm: nil,
|
1445
2028
|
confirmation_token: nil,
|
1446
2029
|
customer: nil,
|
2030
|
+
customer_account: nil,
|
1447
2031
|
description: nil,
|
1448
2032
|
expand: nil,
|
1449
2033
|
flow_directions: nil,
|
@@ -1465,6 +2049,7 @@ module Stripe
|
|
1465
2049
|
@confirm = confirm
|
1466
2050
|
@confirmation_token = confirmation_token
|
1467
2051
|
@customer = customer
|
2052
|
+
@customer_account = customer_account
|
1468
2053
|
@description = description
|
1469
2054
|
@expand = expand
|
1470
2055
|
@flow_directions = flow_directions
|
@@ -1621,8 +2206,18 @@ module Stripe
|
|
1621
2206
|
end
|
1622
2207
|
|
1623
2208
|
class Giropay < Stripe::RequestParams; end
|
2209
|
+
class Gopay < Stripe::RequestParams; end
|
1624
2210
|
class Grabpay < Stripe::RequestParams; end
|
1625
2211
|
|
2212
|
+
class IdBankTransfer < Stripe::RequestParams
|
2213
|
+
# Bank where the account is held.
|
2214
|
+
attr_accessor :bank
|
2215
|
+
|
2216
|
+
def initialize(bank: nil)
|
2217
|
+
@bank = bank
|
2218
|
+
end
|
2219
|
+
end
|
2220
|
+
|
1626
2221
|
class Ideal < Stripe::RequestParams
|
1627
2222
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
1628
2223
|
attr_accessor :bank
|
@@ -1661,6 +2256,7 @@ module Stripe
|
|
1661
2256
|
class Konbini < Stripe::RequestParams; end
|
1662
2257
|
class KrCard < Stripe::RequestParams; end
|
1663
2258
|
class Link < Stripe::RequestParams; end
|
2259
|
+
class MbWay < Stripe::RequestParams; end
|
1664
2260
|
class Mobilepay < Stripe::RequestParams; end
|
1665
2261
|
class Multibanco < Stripe::RequestParams; end
|
1666
2262
|
|
@@ -1719,8 +2315,25 @@ module Stripe
|
|
1719
2315
|
class Payco < Stripe::RequestParams; end
|
1720
2316
|
class Paynow < Stripe::RequestParams; end
|
1721
2317
|
class Paypal < Stripe::RequestParams; end
|
2318
|
+
|
2319
|
+
class Payto < Stripe::RequestParams
|
2320
|
+
# The account number for the bank account.
|
2321
|
+
attr_accessor :account_number
|
2322
|
+
# Bank-State-Branch number of the bank account.
|
2323
|
+
attr_accessor :bsb_number
|
2324
|
+
# The PayID alias for the bank account.
|
2325
|
+
attr_accessor :pay_id
|
2326
|
+
|
2327
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
2328
|
+
@account_number = account_number
|
2329
|
+
@bsb_number = bsb_number
|
2330
|
+
@pay_id = pay_id
|
2331
|
+
end
|
2332
|
+
end
|
2333
|
+
|
1722
2334
|
class Pix < Stripe::RequestParams; end
|
1723
2335
|
class Promptpay < Stripe::RequestParams; end
|
2336
|
+
class Qris < Stripe::RequestParams; end
|
1724
2337
|
|
1725
2338
|
class RadarOptions < Stripe::RequestParams
|
1726
2339
|
# 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.
|
@@ -1731,6 +2344,29 @@ module Stripe
|
|
1731
2344
|
end
|
1732
2345
|
end
|
1733
2346
|
|
2347
|
+
class Rechnung < Stripe::RequestParams
|
2348
|
+
class Dob < Stripe::RequestParams
|
2349
|
+
# The day of birth, between 1 and 31.
|
2350
|
+
attr_accessor :day
|
2351
|
+
# The month of birth, between 1 and 12.
|
2352
|
+
attr_accessor :month
|
2353
|
+
# The four-digit year of birth.
|
2354
|
+
attr_accessor :year
|
2355
|
+
|
2356
|
+
def initialize(day: nil, month: nil, year: nil)
|
2357
|
+
@day = day
|
2358
|
+
@month = month
|
2359
|
+
@year = year
|
2360
|
+
end
|
2361
|
+
end
|
2362
|
+
# Customer's date of birth
|
2363
|
+
attr_accessor :dob
|
2364
|
+
|
2365
|
+
def initialize(dob: nil)
|
2366
|
+
@dob = dob
|
2367
|
+
end
|
2368
|
+
end
|
2369
|
+
|
1734
2370
|
class RevolutPay < Stripe::RequestParams; end
|
1735
2371
|
class SamsungPay < Stripe::RequestParams; end
|
1736
2372
|
class Satispay < Stripe::RequestParams; end
|
@@ -1744,6 +2380,8 @@ module Stripe
|
|
1744
2380
|
end
|
1745
2381
|
end
|
1746
2382
|
|
2383
|
+
class Shopeepay < Stripe::RequestParams; end
|
2384
|
+
|
1747
2385
|
class Sofort < Stripe::RequestParams
|
1748
2386
|
# Two-letter ISO code representing the country the bank account is located in.
|
1749
2387
|
attr_accessor :country
|
@@ -1753,6 +2391,18 @@ module Stripe
|
|
1753
2391
|
end
|
1754
2392
|
end
|
1755
2393
|
|
2394
|
+
class StripeBalance < Stripe::RequestParams
|
2395
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
2396
|
+
attr_accessor :account
|
2397
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
2398
|
+
attr_accessor :source_type
|
2399
|
+
|
2400
|
+
def initialize(account: nil, source_type: nil)
|
2401
|
+
@account = account
|
2402
|
+
@source_type = source_type
|
2403
|
+
end
|
2404
|
+
end
|
2405
|
+
|
1756
2406
|
class Swish < Stripe::RequestParams; end
|
1757
2407
|
class Twint < Stripe::RequestParams; end
|
1758
2408
|
|
@@ -1825,8 +2475,12 @@ module Stripe
|
|
1825
2475
|
attr_accessor :fpx
|
1826
2476
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
1827
2477
|
attr_accessor :giropay
|
2478
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
2479
|
+
attr_accessor :gopay
|
1828
2480
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
1829
2481
|
attr_accessor :grabpay
|
2482
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
2483
|
+
attr_accessor :id_bank_transfer
|
1830
2484
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
1831
2485
|
attr_accessor :ideal
|
1832
2486
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -1841,6 +2495,8 @@ module Stripe
|
|
1841
2495
|
attr_accessor :kr_card
|
1842
2496
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
1843
2497
|
attr_accessor :link
|
2498
|
+
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
2499
|
+
attr_accessor :mb_way
|
1844
2500
|
# 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`.
|
1845
2501
|
attr_accessor :metadata
|
1846
2502
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -1863,12 +2519,18 @@ module Stripe
|
|
1863
2519
|
attr_accessor :paynow
|
1864
2520
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
1865
2521
|
attr_accessor :paypal
|
2522
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
2523
|
+
attr_accessor :payto
|
1866
2524
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
1867
2525
|
attr_accessor :pix
|
1868
2526
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
1869
2527
|
attr_accessor :promptpay
|
2528
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
2529
|
+
attr_accessor :qris
|
1870
2530
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1871
2531
|
attr_accessor :radar_options
|
2532
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
2533
|
+
attr_accessor :rechnung
|
1872
2534
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
1873
2535
|
attr_accessor :revolut_pay
|
1874
2536
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -1877,8 +2539,12 @@ module Stripe
|
|
1877
2539
|
attr_accessor :satispay
|
1878
2540
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
1879
2541
|
attr_accessor :sepa_debit
|
2542
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
2543
|
+
attr_accessor :shopeepay
|
1880
2544
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
1881
2545
|
attr_accessor :sofort
|
2546
|
+
# This hash contains details about the Stripe balance payment method.
|
2547
|
+
attr_accessor :stripe_balance
|
1882
2548
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
1883
2549
|
attr_accessor :swish
|
1884
2550
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -1913,7 +2579,9 @@ module Stripe
|
|
1913
2579
|
eps: nil,
|
1914
2580
|
fpx: nil,
|
1915
2581
|
giropay: nil,
|
2582
|
+
gopay: nil,
|
1916
2583
|
grabpay: nil,
|
2584
|
+
id_bank_transfer: nil,
|
1917
2585
|
ideal: nil,
|
1918
2586
|
interac_present: nil,
|
1919
2587
|
kakao_pay: nil,
|
@@ -1921,6 +2589,7 @@ module Stripe
|
|
1921
2589
|
konbini: nil,
|
1922
2590
|
kr_card: nil,
|
1923
2591
|
link: nil,
|
2592
|
+
mb_way: nil,
|
1924
2593
|
metadata: nil,
|
1925
2594
|
mobilepay: nil,
|
1926
2595
|
multibanco: nil,
|
@@ -1932,14 +2601,19 @@ module Stripe
|
|
1932
2601
|
payco: nil,
|
1933
2602
|
paynow: nil,
|
1934
2603
|
paypal: nil,
|
2604
|
+
payto: nil,
|
1935
2605
|
pix: nil,
|
1936
2606
|
promptpay: nil,
|
2607
|
+
qris: nil,
|
1937
2608
|
radar_options: nil,
|
2609
|
+
rechnung: nil,
|
1938
2610
|
revolut_pay: nil,
|
1939
2611
|
samsung_pay: nil,
|
1940
2612
|
satispay: nil,
|
1941
2613
|
sepa_debit: nil,
|
2614
|
+
shopeepay: nil,
|
1942
2615
|
sofort: nil,
|
2616
|
+
stripe_balance: nil,
|
1943
2617
|
swish: nil,
|
1944
2618
|
twint: nil,
|
1945
2619
|
type: nil,
|
@@ -1967,7 +2641,9 @@ module Stripe
|
|
1967
2641
|
@eps = eps
|
1968
2642
|
@fpx = fpx
|
1969
2643
|
@giropay = giropay
|
2644
|
+
@gopay = gopay
|
1970
2645
|
@grabpay = grabpay
|
2646
|
+
@id_bank_transfer = id_bank_transfer
|
1971
2647
|
@ideal = ideal
|
1972
2648
|
@interac_present = interac_present
|
1973
2649
|
@kakao_pay = kakao_pay
|
@@ -1975,6 +2651,7 @@ module Stripe
|
|
1975
2651
|
@konbini = konbini
|
1976
2652
|
@kr_card = kr_card
|
1977
2653
|
@link = link
|
2654
|
+
@mb_way = mb_way
|
1978
2655
|
@metadata = metadata
|
1979
2656
|
@mobilepay = mobilepay
|
1980
2657
|
@multibanco = multibanco
|
@@ -1986,14 +2663,19 @@ module Stripe
|
|
1986
2663
|
@payco = payco
|
1987
2664
|
@paynow = paynow
|
1988
2665
|
@paypal = paypal
|
2666
|
+
@payto = payto
|
1989
2667
|
@pix = pix
|
1990
2668
|
@promptpay = promptpay
|
2669
|
+
@qris = qris
|
1991
2670
|
@radar_options = radar_options
|
2671
|
+
@rechnung = rechnung
|
1992
2672
|
@revolut_pay = revolut_pay
|
1993
2673
|
@samsung_pay = samsung_pay
|
1994
2674
|
@satispay = satispay
|
1995
2675
|
@sepa_debit = sepa_debit
|
2676
|
+
@shopeepay = shopeepay
|
1996
2677
|
@sofort = sofort
|
2678
|
+
@stripe_balance = stripe_balance
|
1997
2679
|
@swish = swish
|
1998
2680
|
@twint = twint
|
1999
2681
|
@type = type
|
@@ -2309,9 +2991,105 @@ module Stripe
|
|
2309
2991
|
class Paypal < Stripe::RequestParams
|
2310
2992
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
2311
2993
|
attr_accessor :billing_agreement_id
|
2994
|
+
# Attribute for param field currency
|
2995
|
+
attr_accessor :currency
|
2996
|
+
# 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.
|
2997
|
+
attr_accessor :subsellers
|
2312
2998
|
|
2313
|
-
def initialize(billing_agreement_id: nil)
|
2999
|
+
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
|
2314
3000
|
@billing_agreement_id = billing_agreement_id
|
3001
|
+
@currency = currency
|
3002
|
+
@subsellers = subsellers
|
3003
|
+
end
|
3004
|
+
end
|
3005
|
+
|
3006
|
+
class Payto < Stripe::RequestParams
|
3007
|
+
class MandateOptions < Stripe::RequestParams
|
3008
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
3009
|
+
attr_accessor :amount
|
3010
|
+
# 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.
|
3011
|
+
attr_accessor :amount_type
|
3012
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
3013
|
+
attr_accessor :end_date
|
3014
|
+
# The periodicity at which payments will be collected.
|
3015
|
+
attr_accessor :payment_schedule
|
3016
|
+
# 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.
|
3017
|
+
attr_accessor :payments_per_period
|
3018
|
+
# The purpose for which payments are made. Defaults to retail.
|
3019
|
+
attr_accessor :purpose
|
3020
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
3021
|
+
attr_accessor :start_date
|
3022
|
+
|
3023
|
+
def initialize(
|
3024
|
+
amount: nil,
|
3025
|
+
amount_type: nil,
|
3026
|
+
end_date: nil,
|
3027
|
+
payment_schedule: nil,
|
3028
|
+
payments_per_period: nil,
|
3029
|
+
purpose: nil,
|
3030
|
+
start_date: nil
|
3031
|
+
)
|
3032
|
+
@amount = amount
|
3033
|
+
@amount_type = amount_type
|
3034
|
+
@end_date = end_date
|
3035
|
+
@payment_schedule = payment_schedule
|
3036
|
+
@payments_per_period = payments_per_period
|
3037
|
+
@purpose = purpose
|
3038
|
+
@start_date = start_date
|
3039
|
+
end
|
3040
|
+
end
|
3041
|
+
# Additional fields for Mandate creation.
|
3042
|
+
attr_accessor :mandate_options
|
3043
|
+
|
3044
|
+
def initialize(mandate_options: nil)
|
3045
|
+
@mandate_options = mandate_options
|
3046
|
+
end
|
3047
|
+
end
|
3048
|
+
|
3049
|
+
class Pix < Stripe::RequestParams
|
3050
|
+
class MandateOptions < Stripe::RequestParams
|
3051
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
3052
|
+
attr_accessor :amount
|
3053
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
3054
|
+
attr_accessor :amount_includes_iof
|
3055
|
+
# Type of amount. Defaults to `maximum`.
|
3056
|
+
attr_accessor :amount_type
|
3057
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
3058
|
+
attr_accessor :currency
|
3059
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
3060
|
+
attr_accessor :end_date
|
3061
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
3062
|
+
attr_accessor :payment_schedule
|
3063
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
3064
|
+
attr_accessor :reference
|
3065
|
+
# Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
3066
|
+
attr_accessor :start_date
|
3067
|
+
|
3068
|
+
def initialize(
|
3069
|
+
amount: nil,
|
3070
|
+
amount_includes_iof: nil,
|
3071
|
+
amount_type: nil,
|
3072
|
+
currency: nil,
|
3073
|
+
end_date: nil,
|
3074
|
+
payment_schedule: nil,
|
3075
|
+
reference: nil,
|
3076
|
+
start_date: nil
|
3077
|
+
)
|
3078
|
+
@amount = amount
|
3079
|
+
@amount_includes_iof = amount_includes_iof
|
3080
|
+
@amount_type = amount_type
|
3081
|
+
@currency = currency
|
3082
|
+
@end_date = end_date
|
3083
|
+
@payment_schedule = payment_schedule
|
3084
|
+
@reference = reference
|
3085
|
+
@start_date = start_date
|
3086
|
+
end
|
3087
|
+
end
|
3088
|
+
# Additional fields for mandate creation.
|
3089
|
+
attr_accessor :mandate_options
|
3090
|
+
|
3091
|
+
def initialize(mandate_options: nil)
|
3092
|
+
@mandate_options = mandate_options
|
2315
3093
|
end
|
2316
3094
|
end
|
2317
3095
|
|
@@ -2337,13 +3115,27 @@ module Stripe
|
|
2337
3115
|
class Filters < Stripe::RequestParams
|
2338
3116
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
2339
3117
|
attr_accessor :account_subcategories
|
3118
|
+
# ID of the institution to use to filter for selectable accounts.
|
3119
|
+
attr_accessor :institution
|
2340
3120
|
|
2341
|
-
def initialize(account_subcategories: nil)
|
3121
|
+
def initialize(account_subcategories: nil, institution: nil)
|
2342
3122
|
@account_subcategories = account_subcategories
|
3123
|
+
@institution = institution
|
3124
|
+
end
|
3125
|
+
end
|
3126
|
+
|
3127
|
+
class ManualEntry < Stripe::RequestParams
|
3128
|
+
# Settings for configuring manual entry of account details.
|
3129
|
+
attr_accessor :mode
|
3130
|
+
|
3131
|
+
def initialize(mode: nil)
|
3132
|
+
@mode = mode
|
2343
3133
|
end
|
2344
3134
|
end
|
2345
3135
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
2346
3136
|
attr_accessor :filters
|
3137
|
+
# Customize manual entry behavior
|
3138
|
+
attr_accessor :manual_entry
|
2347
3139
|
# 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`.
|
2348
3140
|
attr_accessor :permissions
|
2349
3141
|
# List of data features that you would like to retrieve upon account creation.
|
@@ -2351,8 +3143,15 @@ module Stripe
|
|
2351
3143
|
# 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.
|
2352
3144
|
attr_accessor :return_url
|
2353
3145
|
|
2354
|
-
def initialize(
|
3146
|
+
def initialize(
|
3147
|
+
filters: nil,
|
3148
|
+
manual_entry: nil,
|
3149
|
+
permissions: nil,
|
3150
|
+
prefetch: nil,
|
3151
|
+
return_url: nil
|
3152
|
+
)
|
2355
3153
|
@filters = filters
|
3154
|
+
@manual_entry = manual_entry
|
2356
3155
|
@permissions = permissions
|
2357
3156
|
@prefetch = prefetch
|
2358
3157
|
@return_url = return_url
|
@@ -2413,6 +3212,10 @@ module Stripe
|
|
2413
3212
|
attr_accessor :link
|
2414
3213
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
2415
3214
|
attr_accessor :paypal
|
3215
|
+
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
3216
|
+
attr_accessor :payto
|
3217
|
+
# If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
3218
|
+
attr_accessor :pix
|
2416
3219
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
2417
3220
|
attr_accessor :sepa_debit
|
2418
3221
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -2427,6 +3230,8 @@ module Stripe
|
|
2427
3230
|
klarna: nil,
|
2428
3231
|
link: nil,
|
2429
3232
|
paypal: nil,
|
3233
|
+
payto: nil,
|
3234
|
+
pix: nil,
|
2430
3235
|
sepa_debit: nil,
|
2431
3236
|
us_bank_account: nil
|
2432
3237
|
)
|
@@ -2438,6 +3243,8 @@ module Stripe
|
|
2438
3243
|
@klarna = klarna
|
2439
3244
|
@link = link
|
2440
3245
|
@paypal = paypal
|
3246
|
+
@payto = payto
|
3247
|
+
@pix = pix
|
2441
3248
|
@sepa_debit = sepa_debit
|
2442
3249
|
@us_bank_account = us_bank_account
|
2443
3250
|
end
|
@@ -2450,6 +3257,10 @@ module Stripe
|
|
2450
3257
|
#
|
2451
3258
|
# 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.
|
2452
3259
|
attr_accessor :customer
|
3260
|
+
# ID of the Account this SetupIntent belongs to, if one exists.
|
3261
|
+
#
|
3262
|
+
# 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.
|
3263
|
+
attr_accessor :customer_account
|
2453
3264
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
2454
3265
|
attr_accessor :description
|
2455
3266
|
# Specifies which fields in the response should be expanded.
|
@@ -2475,6 +3286,7 @@ module Stripe
|
|
2475
3286
|
def initialize(
|
2476
3287
|
attach_to_self: nil,
|
2477
3288
|
customer: nil,
|
3289
|
+
customer_account: nil,
|
2478
3290
|
description: nil,
|
2479
3291
|
expand: nil,
|
2480
3292
|
flow_directions: nil,
|
@@ -2487,6 +3299,7 @@ module Stripe
|
|
2487
3299
|
)
|
2488
3300
|
@attach_to_self = attach_to_self
|
2489
3301
|
@customer = customer
|
3302
|
+
@customer_account = customer_account
|
2490
3303
|
@description = description
|
2491
3304
|
@expand = expand
|
2492
3305
|
@flow_directions = flow_directions
|
@@ -2688,8 +3501,18 @@ module Stripe
|
|
2688
3501
|
end
|
2689
3502
|
|
2690
3503
|
class Giropay < Stripe::RequestParams; end
|
3504
|
+
class Gopay < Stripe::RequestParams; end
|
2691
3505
|
class Grabpay < Stripe::RequestParams; end
|
2692
3506
|
|
3507
|
+
class IdBankTransfer < Stripe::RequestParams
|
3508
|
+
# Bank where the account is held.
|
3509
|
+
attr_accessor :bank
|
3510
|
+
|
3511
|
+
def initialize(bank: nil)
|
3512
|
+
@bank = bank
|
3513
|
+
end
|
3514
|
+
end
|
3515
|
+
|
2693
3516
|
class Ideal < Stripe::RequestParams
|
2694
3517
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
2695
3518
|
attr_accessor :bank
|
@@ -2728,6 +3551,7 @@ module Stripe
|
|
2728
3551
|
class Konbini < Stripe::RequestParams; end
|
2729
3552
|
class KrCard < Stripe::RequestParams; end
|
2730
3553
|
class Link < Stripe::RequestParams; end
|
3554
|
+
class MbWay < Stripe::RequestParams; end
|
2731
3555
|
class Mobilepay < Stripe::RequestParams; end
|
2732
3556
|
class Multibanco < Stripe::RequestParams; end
|
2733
3557
|
|
@@ -2786,8 +3610,25 @@ module Stripe
|
|
2786
3610
|
class Payco < Stripe::RequestParams; end
|
2787
3611
|
class Paynow < Stripe::RequestParams; end
|
2788
3612
|
class Paypal < Stripe::RequestParams; end
|
3613
|
+
|
3614
|
+
class Payto < Stripe::RequestParams
|
3615
|
+
# The account number for the bank account.
|
3616
|
+
attr_accessor :account_number
|
3617
|
+
# Bank-State-Branch number of the bank account.
|
3618
|
+
attr_accessor :bsb_number
|
3619
|
+
# The PayID alias for the bank account.
|
3620
|
+
attr_accessor :pay_id
|
3621
|
+
|
3622
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
3623
|
+
@account_number = account_number
|
3624
|
+
@bsb_number = bsb_number
|
3625
|
+
@pay_id = pay_id
|
3626
|
+
end
|
3627
|
+
end
|
3628
|
+
|
2789
3629
|
class Pix < Stripe::RequestParams; end
|
2790
3630
|
class Promptpay < Stripe::RequestParams; end
|
3631
|
+
class Qris < Stripe::RequestParams; end
|
2791
3632
|
|
2792
3633
|
class RadarOptions < Stripe::RequestParams
|
2793
3634
|
# 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.
|
@@ -2798,6 +3639,29 @@ module Stripe
|
|
2798
3639
|
end
|
2799
3640
|
end
|
2800
3641
|
|
3642
|
+
class Rechnung < Stripe::RequestParams
|
3643
|
+
class Dob < Stripe::RequestParams
|
3644
|
+
# The day of birth, between 1 and 31.
|
3645
|
+
attr_accessor :day
|
3646
|
+
# The month of birth, between 1 and 12.
|
3647
|
+
attr_accessor :month
|
3648
|
+
# The four-digit year of birth.
|
3649
|
+
attr_accessor :year
|
3650
|
+
|
3651
|
+
def initialize(day: nil, month: nil, year: nil)
|
3652
|
+
@day = day
|
3653
|
+
@month = month
|
3654
|
+
@year = year
|
3655
|
+
end
|
3656
|
+
end
|
3657
|
+
# Customer's date of birth
|
3658
|
+
attr_accessor :dob
|
3659
|
+
|
3660
|
+
def initialize(dob: nil)
|
3661
|
+
@dob = dob
|
3662
|
+
end
|
3663
|
+
end
|
3664
|
+
|
2801
3665
|
class RevolutPay < Stripe::RequestParams; end
|
2802
3666
|
class SamsungPay < Stripe::RequestParams; end
|
2803
3667
|
class Satispay < Stripe::RequestParams; end
|
@@ -2811,6 +3675,8 @@ module Stripe
|
|
2811
3675
|
end
|
2812
3676
|
end
|
2813
3677
|
|
3678
|
+
class Shopeepay < Stripe::RequestParams; end
|
3679
|
+
|
2814
3680
|
class Sofort < Stripe::RequestParams
|
2815
3681
|
# Two-letter ISO code representing the country the bank account is located in.
|
2816
3682
|
attr_accessor :country
|
@@ -2820,6 +3686,18 @@ module Stripe
|
|
2820
3686
|
end
|
2821
3687
|
end
|
2822
3688
|
|
3689
|
+
class StripeBalance < Stripe::RequestParams
|
3690
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
3691
|
+
attr_accessor :account
|
3692
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
3693
|
+
attr_accessor :source_type
|
3694
|
+
|
3695
|
+
def initialize(account: nil, source_type: nil)
|
3696
|
+
@account = account
|
3697
|
+
@source_type = source_type
|
3698
|
+
end
|
3699
|
+
end
|
3700
|
+
|
2823
3701
|
class Swish < Stripe::RequestParams; end
|
2824
3702
|
class Twint < Stripe::RequestParams; end
|
2825
3703
|
|
@@ -2892,8 +3770,12 @@ module Stripe
|
|
2892
3770
|
attr_accessor :fpx
|
2893
3771
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
2894
3772
|
attr_accessor :giropay
|
3773
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
3774
|
+
attr_accessor :gopay
|
2895
3775
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
2896
3776
|
attr_accessor :grabpay
|
3777
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
3778
|
+
attr_accessor :id_bank_transfer
|
2897
3779
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
2898
3780
|
attr_accessor :ideal
|
2899
3781
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -2908,6 +3790,8 @@ module Stripe
|
|
2908
3790
|
attr_accessor :kr_card
|
2909
3791
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
2910
3792
|
attr_accessor :link
|
3793
|
+
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
3794
|
+
attr_accessor :mb_way
|
2911
3795
|
# 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`.
|
2912
3796
|
attr_accessor :metadata
|
2913
3797
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -2930,12 +3814,18 @@ module Stripe
|
|
2930
3814
|
attr_accessor :paynow
|
2931
3815
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
2932
3816
|
attr_accessor :paypal
|
3817
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
3818
|
+
attr_accessor :payto
|
2933
3819
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
2934
3820
|
attr_accessor :pix
|
2935
3821
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
2936
3822
|
attr_accessor :promptpay
|
3823
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
3824
|
+
attr_accessor :qris
|
2937
3825
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
2938
3826
|
attr_accessor :radar_options
|
3827
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
3828
|
+
attr_accessor :rechnung
|
2939
3829
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
2940
3830
|
attr_accessor :revolut_pay
|
2941
3831
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -2944,8 +3834,12 @@ module Stripe
|
|
2944
3834
|
attr_accessor :satispay
|
2945
3835
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
2946
3836
|
attr_accessor :sepa_debit
|
3837
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
3838
|
+
attr_accessor :shopeepay
|
2947
3839
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
2948
3840
|
attr_accessor :sofort
|
3841
|
+
# This hash contains details about the Stripe balance payment method.
|
3842
|
+
attr_accessor :stripe_balance
|
2949
3843
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
2950
3844
|
attr_accessor :swish
|
2951
3845
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -2980,7 +3874,9 @@ module Stripe
|
|
2980
3874
|
eps: nil,
|
2981
3875
|
fpx: nil,
|
2982
3876
|
giropay: nil,
|
3877
|
+
gopay: nil,
|
2983
3878
|
grabpay: nil,
|
3879
|
+
id_bank_transfer: nil,
|
2984
3880
|
ideal: nil,
|
2985
3881
|
interac_present: nil,
|
2986
3882
|
kakao_pay: nil,
|
@@ -2988,6 +3884,7 @@ module Stripe
|
|
2988
3884
|
konbini: nil,
|
2989
3885
|
kr_card: nil,
|
2990
3886
|
link: nil,
|
3887
|
+
mb_way: nil,
|
2991
3888
|
metadata: nil,
|
2992
3889
|
mobilepay: nil,
|
2993
3890
|
multibanco: nil,
|
@@ -2999,14 +3896,19 @@ module Stripe
|
|
2999
3896
|
payco: nil,
|
3000
3897
|
paynow: nil,
|
3001
3898
|
paypal: nil,
|
3899
|
+
payto: nil,
|
3002
3900
|
pix: nil,
|
3003
3901
|
promptpay: nil,
|
3902
|
+
qris: nil,
|
3004
3903
|
radar_options: nil,
|
3904
|
+
rechnung: nil,
|
3005
3905
|
revolut_pay: nil,
|
3006
3906
|
samsung_pay: nil,
|
3007
3907
|
satispay: nil,
|
3008
3908
|
sepa_debit: nil,
|
3909
|
+
shopeepay: nil,
|
3009
3910
|
sofort: nil,
|
3911
|
+
stripe_balance: nil,
|
3010
3912
|
swish: nil,
|
3011
3913
|
twint: nil,
|
3012
3914
|
type: nil,
|
@@ -3034,7 +3936,9 @@ module Stripe
|
|
3034
3936
|
@eps = eps
|
3035
3937
|
@fpx = fpx
|
3036
3938
|
@giropay = giropay
|
3939
|
+
@gopay = gopay
|
3037
3940
|
@grabpay = grabpay
|
3941
|
+
@id_bank_transfer = id_bank_transfer
|
3038
3942
|
@ideal = ideal
|
3039
3943
|
@interac_present = interac_present
|
3040
3944
|
@kakao_pay = kakao_pay
|
@@ -3042,6 +3946,7 @@ module Stripe
|
|
3042
3946
|
@konbini = konbini
|
3043
3947
|
@kr_card = kr_card
|
3044
3948
|
@link = link
|
3949
|
+
@mb_way = mb_way
|
3045
3950
|
@metadata = metadata
|
3046
3951
|
@mobilepay = mobilepay
|
3047
3952
|
@multibanco = multibanco
|
@@ -3053,14 +3958,19 @@ module Stripe
|
|
3053
3958
|
@payco = payco
|
3054
3959
|
@paynow = paynow
|
3055
3960
|
@paypal = paypal
|
3961
|
+
@payto = payto
|
3056
3962
|
@pix = pix
|
3057
3963
|
@promptpay = promptpay
|
3964
|
+
@qris = qris
|
3058
3965
|
@radar_options = radar_options
|
3966
|
+
@rechnung = rechnung
|
3059
3967
|
@revolut_pay = revolut_pay
|
3060
3968
|
@samsung_pay = samsung_pay
|
3061
3969
|
@satispay = satispay
|
3062
3970
|
@sepa_debit = sepa_debit
|
3971
|
+
@shopeepay = shopeepay
|
3063
3972
|
@sofort = sofort
|
3973
|
+
@stripe_balance = stripe_balance
|
3064
3974
|
@swish = swish
|
3065
3975
|
@twint = twint
|
3066
3976
|
@type = type
|
@@ -3376,9 +4286,105 @@ module Stripe
|
|
3376
4286
|
class Paypal < Stripe::RequestParams
|
3377
4287
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
3378
4288
|
attr_accessor :billing_agreement_id
|
4289
|
+
# Attribute for param field currency
|
4290
|
+
attr_accessor :currency
|
4291
|
+
# 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.
|
4292
|
+
attr_accessor :subsellers
|
3379
4293
|
|
3380
|
-
def initialize(billing_agreement_id: nil)
|
4294
|
+
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
|
3381
4295
|
@billing_agreement_id = billing_agreement_id
|
4296
|
+
@currency = currency
|
4297
|
+
@subsellers = subsellers
|
4298
|
+
end
|
4299
|
+
end
|
4300
|
+
|
4301
|
+
class Payto < Stripe::RequestParams
|
4302
|
+
class MandateOptions < Stripe::RequestParams
|
4303
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
4304
|
+
attr_accessor :amount
|
4305
|
+
# 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.
|
4306
|
+
attr_accessor :amount_type
|
4307
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
4308
|
+
attr_accessor :end_date
|
4309
|
+
# The periodicity at which payments will be collected.
|
4310
|
+
attr_accessor :payment_schedule
|
4311
|
+
# 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.
|
4312
|
+
attr_accessor :payments_per_period
|
4313
|
+
# The purpose for which payments are made. Defaults to retail.
|
4314
|
+
attr_accessor :purpose
|
4315
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
4316
|
+
attr_accessor :start_date
|
4317
|
+
|
4318
|
+
def initialize(
|
4319
|
+
amount: nil,
|
4320
|
+
amount_type: nil,
|
4321
|
+
end_date: nil,
|
4322
|
+
payment_schedule: nil,
|
4323
|
+
payments_per_period: nil,
|
4324
|
+
purpose: nil,
|
4325
|
+
start_date: nil
|
4326
|
+
)
|
4327
|
+
@amount = amount
|
4328
|
+
@amount_type = amount_type
|
4329
|
+
@end_date = end_date
|
4330
|
+
@payment_schedule = payment_schedule
|
4331
|
+
@payments_per_period = payments_per_period
|
4332
|
+
@purpose = purpose
|
4333
|
+
@start_date = start_date
|
4334
|
+
end
|
4335
|
+
end
|
4336
|
+
# Additional fields for Mandate creation.
|
4337
|
+
attr_accessor :mandate_options
|
4338
|
+
|
4339
|
+
def initialize(mandate_options: nil)
|
4340
|
+
@mandate_options = mandate_options
|
4341
|
+
end
|
4342
|
+
end
|
4343
|
+
|
4344
|
+
class Pix < Stripe::RequestParams
|
4345
|
+
class MandateOptions < Stripe::RequestParams
|
4346
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
4347
|
+
attr_accessor :amount
|
4348
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
4349
|
+
attr_accessor :amount_includes_iof
|
4350
|
+
# Type of amount. Defaults to `maximum`.
|
4351
|
+
attr_accessor :amount_type
|
4352
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
4353
|
+
attr_accessor :currency
|
4354
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
4355
|
+
attr_accessor :end_date
|
4356
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
4357
|
+
attr_accessor :payment_schedule
|
4358
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
4359
|
+
attr_accessor :reference
|
4360
|
+
# Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
4361
|
+
attr_accessor :start_date
|
4362
|
+
|
4363
|
+
def initialize(
|
4364
|
+
amount: nil,
|
4365
|
+
amount_includes_iof: nil,
|
4366
|
+
amount_type: nil,
|
4367
|
+
currency: nil,
|
4368
|
+
end_date: nil,
|
4369
|
+
payment_schedule: nil,
|
4370
|
+
reference: nil,
|
4371
|
+
start_date: nil
|
4372
|
+
)
|
4373
|
+
@amount = amount
|
4374
|
+
@amount_includes_iof = amount_includes_iof
|
4375
|
+
@amount_type = amount_type
|
4376
|
+
@currency = currency
|
4377
|
+
@end_date = end_date
|
4378
|
+
@payment_schedule = payment_schedule
|
4379
|
+
@reference = reference
|
4380
|
+
@start_date = start_date
|
4381
|
+
end
|
4382
|
+
end
|
4383
|
+
# Additional fields for mandate creation.
|
4384
|
+
attr_accessor :mandate_options
|
4385
|
+
|
4386
|
+
def initialize(mandate_options: nil)
|
4387
|
+
@mandate_options = mandate_options
|
3382
4388
|
end
|
3383
4389
|
end
|
3384
4390
|
|
@@ -3404,13 +4410,27 @@ module Stripe
|
|
3404
4410
|
class Filters < Stripe::RequestParams
|
3405
4411
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
3406
4412
|
attr_accessor :account_subcategories
|
4413
|
+
# ID of the institution to use to filter for selectable accounts.
|
4414
|
+
attr_accessor :institution
|
3407
4415
|
|
3408
|
-
def initialize(account_subcategories: nil)
|
4416
|
+
def initialize(account_subcategories: nil, institution: nil)
|
3409
4417
|
@account_subcategories = account_subcategories
|
4418
|
+
@institution = institution
|
4419
|
+
end
|
4420
|
+
end
|
4421
|
+
|
4422
|
+
class ManualEntry < Stripe::RequestParams
|
4423
|
+
# Settings for configuring manual entry of account details.
|
4424
|
+
attr_accessor :mode
|
4425
|
+
|
4426
|
+
def initialize(mode: nil)
|
4427
|
+
@mode = mode
|
3410
4428
|
end
|
3411
4429
|
end
|
3412
4430
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
3413
4431
|
attr_accessor :filters
|
4432
|
+
# Customize manual entry behavior
|
4433
|
+
attr_accessor :manual_entry
|
3414
4434
|
# 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`.
|
3415
4435
|
attr_accessor :permissions
|
3416
4436
|
# List of data features that you would like to retrieve upon account creation.
|
@@ -3418,8 +4438,15 @@ module Stripe
|
|
3418
4438
|
# 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.
|
3419
4439
|
attr_accessor :return_url
|
3420
4440
|
|
3421
|
-
def initialize(
|
4441
|
+
def initialize(
|
4442
|
+
filters: nil,
|
4443
|
+
manual_entry: nil,
|
4444
|
+
permissions: nil,
|
4445
|
+
prefetch: nil,
|
4446
|
+
return_url: nil
|
4447
|
+
)
|
3422
4448
|
@filters = filters
|
4449
|
+
@manual_entry = manual_entry
|
3423
4450
|
@permissions = permissions
|
3424
4451
|
@prefetch = prefetch
|
3425
4452
|
@return_url = return_url
|
@@ -3480,6 +4507,10 @@ module Stripe
|
|
3480
4507
|
attr_accessor :link
|
3481
4508
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
3482
4509
|
attr_accessor :paypal
|
4510
|
+
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
4511
|
+
attr_accessor :payto
|
4512
|
+
# If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
4513
|
+
attr_accessor :pix
|
3483
4514
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
3484
4515
|
attr_accessor :sepa_debit
|
3485
4516
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -3494,6 +4525,8 @@ module Stripe
|
|
3494
4525
|
klarna: nil,
|
3495
4526
|
link: nil,
|
3496
4527
|
paypal: nil,
|
4528
|
+
payto: nil,
|
4529
|
+
pix: nil,
|
3497
4530
|
sepa_debit: nil,
|
3498
4531
|
us_bank_account: nil
|
3499
4532
|
)
|
@@ -3505,6 +4538,8 @@ module Stripe
|
|
3505
4538
|
@klarna = klarna
|
3506
4539
|
@link = link
|
3507
4540
|
@paypal = paypal
|
4541
|
+
@payto = payto
|
4542
|
+
@pix = pix
|
3508
4543
|
@sepa_debit = sepa_debit
|
3509
4544
|
@us_bank_account = us_bank_account
|
3510
4545
|
end
|
@@ -3586,6 +4621,10 @@ module Stripe
|
|
3586
4621
|
#
|
3587
4622
|
# 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.
|
3588
4623
|
attr_reader :customer
|
4624
|
+
# ID of the Account this SetupIntent belongs to, if one exists.
|
4625
|
+
#
|
4626
|
+
# 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.
|
4627
|
+
attr_reader :customer_account
|
3589
4628
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
3590
4629
|
attr_reader :description
|
3591
4630
|
# Indicates the directions of money movement for which this payment method is intended to be used.
|
@@ -3739,5 +4778,19 @@ module Stripe
|
|
3739
4778
|
opts: opts
|
3740
4779
|
)
|
3741
4780
|
end
|
4781
|
+
|
4782
|
+
def self.inner_class_types
|
4783
|
+
@inner_class_types = {
|
4784
|
+
automatic_payment_methods: AutomaticPaymentMethods,
|
4785
|
+
last_setup_error: LastSetupError,
|
4786
|
+
next_action: NextAction,
|
4787
|
+
payment_method_configuration_details: PaymentMethodConfigurationDetails,
|
4788
|
+
payment_method_options: PaymentMethodOptions,
|
4789
|
+
}
|
4790
|
+
end
|
4791
|
+
|
4792
|
+
def self.field_remappings
|
4793
|
+
@field_remappings = {}
|
4794
|
+
end
|
3742
4795
|
end
|
3743
4796
|
end
|