stripe 15.5.0 → 15.6.0.pre.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1717 -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 +653 -1
- data/lib/stripe/resources/account_notice.rb +123 -0
- data/lib/stripe/resources/account_session.rb +256 -1
- data/lib/stripe/resources/balance_settings.rb +112 -0
- data/lib/stripe/resources/billing/alert.rb +128 -1
- data/lib/stripe/resources/billing/alert_triggered.rb +6 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +52 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +54 -0
- data/lib/stripe/resources/billing/credit_grant.rb +71 -2
- data/lib/stripe/resources/billing/meter_usage.rb +23 -0
- data/lib/stripe/resources/billing/meter_usage_row.rb +28 -0
- data/lib/stripe/resources/billing_portal/session.rb +6 -0
- data/lib/stripe/resources/capital/financing_offer.rb +179 -0
- data/lib/stripe/resources/capital/financing_summary.rb +55 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +114 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +1540 -4
- data/lib/stripe/resources/checkout/session.rb +623 -5
- data/lib/stripe/resources/confirmation_token.rb +170 -0
- data/lib/stripe/resources/coupon.rb +30 -1
- data/lib/stripe/resources/credit_note.rb +6 -0
- data/lib/stripe/resources/credit_note_line_item.rb +9 -0
- data/lib/stripe/resources/customer.rb +2 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +2 -0
- data/lib/stripe/resources/customer_session.rb +6 -1
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/dispute.rb +11 -0
- data/lib/stripe/resources/event.rb +31 -0
- data/lib/stripe/resources/financial_connections/account.rb +22 -1
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +27 -0
- data/lib/stripe/resources/financial_connections/institution.rb +92 -0
- data/lib/stripe/resources/financial_connections/session.rb +62 -2
- data/lib/stripe/resources/fx_quote.rb +186 -0
- data/lib/stripe/resources/identity/verification_session.rb +10 -0
- data/lib/stripe/resources/invoice.rb +1151 -16
- data/lib/stripe/resources/invoice_item.rb +126 -2
- data/lib/stripe/resources/invoice_line_item.rb +107 -1
- data/lib/stripe/resources/invoice_payment.rb +6 -1
- data/lib/stripe/resources/issuing/card.rb +0 -8
- data/lib/stripe/resources/issuing/cardholder.rb +2 -1
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +602 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +82 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +86 -0
- data/lib/stripe/resources/issuing/settlement.rb +53 -0
- data/lib/stripe/resources/issuing/transaction.rb +6 -0
- data/lib/stripe/resources/line_item.rb +37 -0
- data/lib/stripe/resources/mandate.rb +89 -1
- data/lib/stripe/resources/margin.rb +115 -0
- data/lib/stripe/resources/order.rb +2958 -0
- data/lib/stripe/resources/payment_attempt_record.rb +1177 -0
- data/lib/stripe/resources/payment_intent.rb +6448 -545
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +72 -0
- data/lib/stripe/resources/payment_method.rb +194 -1
- data/lib/stripe/resources/payment_method_configuration.rb +295 -0
- data/lib/stripe/resources/payment_record.rb +1723 -0
- data/lib/stripe/resources/price.rb +30 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +298 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +33 -0
- data/lib/stripe/resources/promotion_code.rb +10 -0
- data/lib/stripe/resources/quote.rb +2038 -7
- data/lib/stripe/resources/quote_line.rb +274 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +687 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +395 -0
- data/lib/stripe/resources/refund.rb +9 -0
- data/lib/stripe/resources/setup_attempt.rb +24 -0
- data/lib/stripe/resources/setup_intent.rb +771 -9
- data/lib/stripe/resources/source.rb +29 -0
- data/lib/stripe/resources/subscription.rb +403 -9
- data/lib/stripe/resources/subscription_item.rb +84 -3
- data/lib/stripe/resources/subscription_schedule.rb +1007 -10
- data/lib/stripe/resources/tax/association.rb +66 -0
- data/lib/stripe/resources/tax/form.rb +211 -0
- data/lib/stripe/resources/tax_id.rb +12 -2
- data/lib/stripe/resources/terminal/configuration.rb +33 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +84 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +31 -0
- data/lib/stripe/resources/transfer.rb +6 -0
- data/lib/stripe/resources/treasury/financial_account.rb +22 -3
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -0
- data/lib/stripe/resources/treasury/received_credit.rb +38 -1
- data/lib/stripe/resources/treasury/received_debit.rb +40 -1
- data/lib/stripe/resources/v2/billing/bill_setting.rb +62 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +50 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +182 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +148 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +136 -0
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +35 -0
- data/lib/stripe/resources/v2/billing/intent.rb +59 -0
- data/lib/stripe/resources/v2/billing/intent_action.rb +200 -0
- data/lib/stripe/resources/v2/billing/license_fee.rb +79 -0
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +36 -0
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +56 -0
- data/lib/stripe/resources/v2/billing/licensed_item.rb +44 -0
- data/lib/stripe/resources/v2/billing/metered_item.rb +58 -0
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +43 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +58 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +63 -0
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +30 -0
- data/lib/stripe/resources/v2/billing/profile.rb +38 -0
- data/lib/stripe/resources/v2/billing/rate_card.rb +53 -0
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +71 -0
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +63 -0
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +26 -0
- data/lib/stripe/resources/v2/billing/service_action.rb +117 -0
- data/lib/stripe/resources/v2/core/account.rb +1938 -0
- data/lib/stripe/resources/v2/core/account_link.rb +72 -0
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +57 -0
- data/lib/stripe/resources/v2/core/person.rb +276 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +74 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +39 -0
- data/lib/stripe/resources/v2/event.rb +2 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +20 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +22 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +51 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +79 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +68 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +94 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +129 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +82 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +45 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +117 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +77 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +49 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +122 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +84 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +80 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +70 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +89 -0
- data/lib/stripe/resources/v2/reporting/report.rb +64 -0
- data/lib/stripe/resources/v2/reporting/report_run.rb +89 -0
- data/lib/stripe/resources/v2/tax/automatic_rule.rb +31 -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 +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/stripe.gemspec +4 -1
- metadata +281 -323
- 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
@@ -129,6 +129,19 @@ module Stripe
|
|
129
129
|
attr_reader :qr_code
|
130
130
|
end
|
131
131
|
|
132
|
+
class PixDisplayQrCode < Stripe::StripeObject
|
133
|
+
# The raw data string used to generate QR code, it should be used together with QR code library.
|
134
|
+
attr_reader :data
|
135
|
+
# The date (unix timestamp) when the PIX expires.
|
136
|
+
attr_reader :expires_at
|
137
|
+
# The URL to the hosted pix instructions page, which allows customers to view the pix QR code.
|
138
|
+
attr_reader :hosted_instructions_url
|
139
|
+
# The image_url_png string used to render png QR code
|
140
|
+
attr_reader :image_url_png
|
141
|
+
# The image_url_svg string used to render svg QR code
|
142
|
+
attr_reader :image_url_svg
|
143
|
+
end
|
144
|
+
|
132
145
|
class RedirectToUrl < Stripe::StripeObject
|
133
146
|
# If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
134
147
|
attr_reader :return_url
|
@@ -146,6 +159,8 @@ module Stripe
|
|
146
159
|
end
|
147
160
|
# Attribute for field cashapp_handle_redirect_or_display_qr_code
|
148
161
|
attr_reader :cashapp_handle_redirect_or_display_qr_code
|
162
|
+
# Attribute for field pix_display_qr_code
|
163
|
+
attr_reader :pix_display_qr_code
|
149
164
|
# Attribute for field redirect_to_url
|
150
165
|
attr_reader :redirect_to_url
|
151
166
|
# 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`.
|
@@ -244,6 +259,54 @@ module Stripe
|
|
244
259
|
class Paypal < Stripe::StripeObject
|
245
260
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
246
261
|
attr_reader :billing_agreement_id
|
262
|
+
# 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).
|
263
|
+
attr_reader :currency
|
264
|
+
# 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.
|
265
|
+
attr_reader :subsellers
|
266
|
+
end
|
267
|
+
|
268
|
+
class Payto < Stripe::StripeObject
|
269
|
+
class MandateOptions < Stripe::StripeObject
|
270
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
271
|
+
attr_reader :amount
|
272
|
+
# 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.
|
273
|
+
attr_reader :amount_type
|
274
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
275
|
+
attr_reader :end_date
|
276
|
+
# The periodicity at which payments will be collected.
|
277
|
+
attr_reader :payment_schedule
|
278
|
+
# 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.
|
279
|
+
attr_reader :payments_per_period
|
280
|
+
# The purpose for which payments are made. Defaults to retail.
|
281
|
+
attr_reader :purpose
|
282
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
283
|
+
attr_reader :start_date
|
284
|
+
end
|
285
|
+
# Attribute for field mandate_options
|
286
|
+
attr_reader :mandate_options
|
287
|
+
end
|
288
|
+
|
289
|
+
class Pix < Stripe::StripeObject
|
290
|
+
class MandateOptions < Stripe::StripeObject
|
291
|
+
# Amount to be charged for future payments.
|
292
|
+
attr_reader :amount
|
293
|
+
# Determines if the amount includes the IOF tax.
|
294
|
+
attr_reader :amount_includes_iof
|
295
|
+
# Type of amount.
|
296
|
+
attr_reader :amount_type
|
297
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
298
|
+
attr_reader :currency
|
299
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
300
|
+
attr_reader :end_date
|
301
|
+
# Schedule at which the future payments will be charged.
|
302
|
+
attr_reader :payment_schedule
|
303
|
+
# Subscription name displayed to buyers in their bank app.
|
304
|
+
attr_reader :reference
|
305
|
+
# Start date of the mandate, in `YYYY-MM-DD`.
|
306
|
+
attr_reader :start_date
|
307
|
+
end
|
308
|
+
# Attribute for field mandate_options
|
309
|
+
attr_reader :mandate_options
|
247
310
|
end
|
248
311
|
|
249
312
|
class SepaDebit < Stripe::StripeObject
|
@@ -260,9 +323,18 @@ module Stripe
|
|
260
323
|
class Filters < Stripe::StripeObject
|
261
324
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
262
325
|
attr_reader :account_subcategories
|
326
|
+
# The institution to use to filter for possible accounts to link.
|
327
|
+
attr_reader :institution
|
328
|
+
end
|
329
|
+
|
330
|
+
class ManualEntry < Stripe::StripeObject
|
331
|
+
# Settings for configuring manual entry of account details.
|
332
|
+
attr_reader :mode
|
263
333
|
end
|
264
334
|
# Attribute for field filters
|
265
335
|
attr_reader :filters
|
336
|
+
# Attribute for field manual_entry
|
337
|
+
attr_reader :manual_entry
|
266
338
|
# The list of permissions to request. The `payment_method` permission must be included.
|
267
339
|
attr_reader :permissions
|
268
340
|
# Data features requested to be retrieved upon account creation.
|
@@ -298,6 +370,10 @@ module Stripe
|
|
298
370
|
attr_reader :link
|
299
371
|
# Attribute for field paypal
|
300
372
|
attr_reader :paypal
|
373
|
+
# Attribute for field payto
|
374
|
+
attr_reader :payto
|
375
|
+
# Attribute for field pix
|
376
|
+
attr_reader :pix
|
301
377
|
# Attribute for field sepa_debit
|
302
378
|
attr_reader :sepa_debit
|
303
379
|
# Attribute for field us_bank_account
|
@@ -330,6 +406,8 @@ module Stripe
|
|
330
406
|
attr_accessor :created
|
331
407
|
# Only return SetupIntents for the customer specified by this customer ID.
|
332
408
|
attr_accessor :customer
|
409
|
+
# Only return SetupIntents for the account specified by this customer ID.
|
410
|
+
attr_accessor :customer_account
|
333
411
|
# 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
412
|
attr_accessor :ending_before
|
335
413
|
# Specifies which fields in the response should be expanded.
|
@@ -345,6 +423,7 @@ module Stripe
|
|
345
423
|
attach_to_self: nil,
|
346
424
|
created: nil,
|
347
425
|
customer: nil,
|
426
|
+
customer_account: nil,
|
348
427
|
ending_before: nil,
|
349
428
|
expand: nil,
|
350
429
|
limit: nil,
|
@@ -354,6 +433,7 @@ module Stripe
|
|
354
433
|
@attach_to_self = attach_to_self
|
355
434
|
@created = created
|
356
435
|
@customer = customer
|
436
|
+
@customer_account = customer_account
|
357
437
|
@ending_before = ending_before
|
358
438
|
@expand = expand
|
359
439
|
@limit = limit
|
@@ -553,8 +633,18 @@ module Stripe
|
|
553
633
|
end
|
554
634
|
|
555
635
|
class Giropay < Stripe::RequestParams; end
|
636
|
+
class Gopay < Stripe::RequestParams; end
|
556
637
|
class Grabpay < Stripe::RequestParams; end
|
557
638
|
|
639
|
+
class IdBankTransfer < Stripe::RequestParams
|
640
|
+
# Bank where the account is held.
|
641
|
+
attr_accessor :bank
|
642
|
+
|
643
|
+
def initialize(bank: nil)
|
644
|
+
@bank = bank
|
645
|
+
end
|
646
|
+
end
|
647
|
+
|
558
648
|
class Ideal < Stripe::RequestParams
|
559
649
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
560
650
|
attr_accessor :bank
|
@@ -593,6 +683,7 @@ module Stripe
|
|
593
683
|
class Konbini < Stripe::RequestParams; end
|
594
684
|
class KrCard < Stripe::RequestParams; end
|
595
685
|
class Link < Stripe::RequestParams; end
|
686
|
+
class MbWay < Stripe::RequestParams; end
|
596
687
|
class Mobilepay < Stripe::RequestParams; end
|
597
688
|
class Multibanco < Stripe::RequestParams; end
|
598
689
|
|
@@ -651,8 +742,25 @@ module Stripe
|
|
651
742
|
class Payco < Stripe::RequestParams; end
|
652
743
|
class Paynow < Stripe::RequestParams; end
|
653
744
|
class Paypal < Stripe::RequestParams; end
|
745
|
+
|
746
|
+
class Payto < Stripe::RequestParams
|
747
|
+
# The account number for the bank account.
|
748
|
+
attr_accessor :account_number
|
749
|
+
# Bank-State-Branch number of the bank account.
|
750
|
+
attr_accessor :bsb_number
|
751
|
+
# The PayID alias for the bank account.
|
752
|
+
attr_accessor :pay_id
|
753
|
+
|
754
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
755
|
+
@account_number = account_number
|
756
|
+
@bsb_number = bsb_number
|
757
|
+
@pay_id = pay_id
|
758
|
+
end
|
759
|
+
end
|
760
|
+
|
654
761
|
class Pix < Stripe::RequestParams; end
|
655
762
|
class Promptpay < Stripe::RequestParams; end
|
763
|
+
class Qris < Stripe::RequestParams; end
|
656
764
|
|
657
765
|
class RadarOptions < Stripe::RequestParams
|
658
766
|
# 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 +771,29 @@ module Stripe
|
|
663
771
|
end
|
664
772
|
end
|
665
773
|
|
774
|
+
class Rechnung < Stripe::RequestParams
|
775
|
+
class Dob < Stripe::RequestParams
|
776
|
+
# The day of birth, between 1 and 31.
|
777
|
+
attr_accessor :day
|
778
|
+
# The month of birth, between 1 and 12.
|
779
|
+
attr_accessor :month
|
780
|
+
# The four-digit year of birth.
|
781
|
+
attr_accessor :year
|
782
|
+
|
783
|
+
def initialize(day: nil, month: nil, year: nil)
|
784
|
+
@day = day
|
785
|
+
@month = month
|
786
|
+
@year = year
|
787
|
+
end
|
788
|
+
end
|
789
|
+
# Customer's date of birth
|
790
|
+
attr_accessor :dob
|
791
|
+
|
792
|
+
def initialize(dob: nil)
|
793
|
+
@dob = dob
|
794
|
+
end
|
795
|
+
end
|
796
|
+
|
666
797
|
class RevolutPay < Stripe::RequestParams; end
|
667
798
|
class SamsungPay < Stripe::RequestParams; end
|
668
799
|
class Satispay < Stripe::RequestParams; end
|
@@ -676,6 +807,8 @@ module Stripe
|
|
676
807
|
end
|
677
808
|
end
|
678
809
|
|
810
|
+
class Shopeepay < Stripe::RequestParams; end
|
811
|
+
|
679
812
|
class Sofort < Stripe::RequestParams
|
680
813
|
# Two-letter ISO code representing the country the bank account is located in.
|
681
814
|
attr_accessor :country
|
@@ -685,6 +818,18 @@ module Stripe
|
|
685
818
|
end
|
686
819
|
end
|
687
820
|
|
821
|
+
class StripeBalance < Stripe::RequestParams
|
822
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
823
|
+
attr_accessor :account
|
824
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
825
|
+
attr_accessor :source_type
|
826
|
+
|
827
|
+
def initialize(account: nil, source_type: nil)
|
828
|
+
@account = account
|
829
|
+
@source_type = source_type
|
830
|
+
end
|
831
|
+
end
|
832
|
+
|
688
833
|
class Swish < Stripe::RequestParams; end
|
689
834
|
class Twint < Stripe::RequestParams; end
|
690
835
|
|
@@ -757,8 +902,12 @@ module Stripe
|
|
757
902
|
attr_accessor :fpx
|
758
903
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
759
904
|
attr_accessor :giropay
|
905
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
906
|
+
attr_accessor :gopay
|
760
907
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
761
908
|
attr_accessor :grabpay
|
909
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
910
|
+
attr_accessor :id_bank_transfer
|
762
911
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
763
912
|
attr_accessor :ideal
|
764
913
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -773,6 +922,8 @@ module Stripe
|
|
773
922
|
attr_accessor :kr_card
|
774
923
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
775
924
|
attr_accessor :link
|
925
|
+
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
926
|
+
attr_accessor :mb_way
|
776
927
|
# 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
928
|
attr_accessor :metadata
|
778
929
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -795,12 +946,18 @@ module Stripe
|
|
795
946
|
attr_accessor :paynow
|
796
947
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
797
948
|
attr_accessor :paypal
|
949
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
950
|
+
attr_accessor :payto
|
798
951
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
799
952
|
attr_accessor :pix
|
800
953
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
801
954
|
attr_accessor :promptpay
|
955
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
956
|
+
attr_accessor :qris
|
802
957
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
803
958
|
attr_accessor :radar_options
|
959
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
960
|
+
attr_accessor :rechnung
|
804
961
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
805
962
|
attr_accessor :revolut_pay
|
806
963
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -809,8 +966,12 @@ module Stripe
|
|
809
966
|
attr_accessor :satispay
|
810
967
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
811
968
|
attr_accessor :sepa_debit
|
969
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
970
|
+
attr_accessor :shopeepay
|
812
971
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
813
972
|
attr_accessor :sofort
|
973
|
+
# This hash contains details about the Stripe balance payment method.
|
974
|
+
attr_accessor :stripe_balance
|
814
975
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
815
976
|
attr_accessor :swish
|
816
977
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -845,7 +1006,9 @@ module Stripe
|
|
845
1006
|
eps: nil,
|
846
1007
|
fpx: nil,
|
847
1008
|
giropay: nil,
|
1009
|
+
gopay: nil,
|
848
1010
|
grabpay: nil,
|
1011
|
+
id_bank_transfer: nil,
|
849
1012
|
ideal: nil,
|
850
1013
|
interac_present: nil,
|
851
1014
|
kakao_pay: nil,
|
@@ -853,6 +1016,7 @@ module Stripe
|
|
853
1016
|
konbini: nil,
|
854
1017
|
kr_card: nil,
|
855
1018
|
link: nil,
|
1019
|
+
mb_way: nil,
|
856
1020
|
metadata: nil,
|
857
1021
|
mobilepay: nil,
|
858
1022
|
multibanco: nil,
|
@@ -864,14 +1028,19 @@ module Stripe
|
|
864
1028
|
payco: nil,
|
865
1029
|
paynow: nil,
|
866
1030
|
paypal: nil,
|
1031
|
+
payto: nil,
|
867
1032
|
pix: nil,
|
868
1033
|
promptpay: nil,
|
1034
|
+
qris: nil,
|
869
1035
|
radar_options: nil,
|
1036
|
+
rechnung: nil,
|
870
1037
|
revolut_pay: nil,
|
871
1038
|
samsung_pay: nil,
|
872
1039
|
satispay: nil,
|
873
1040
|
sepa_debit: nil,
|
1041
|
+
shopeepay: nil,
|
874
1042
|
sofort: nil,
|
1043
|
+
stripe_balance: nil,
|
875
1044
|
swish: nil,
|
876
1045
|
twint: nil,
|
877
1046
|
type: nil,
|
@@ -899,7 +1068,9 @@ module Stripe
|
|
899
1068
|
@eps = eps
|
900
1069
|
@fpx = fpx
|
901
1070
|
@giropay = giropay
|
1071
|
+
@gopay = gopay
|
902
1072
|
@grabpay = grabpay
|
1073
|
+
@id_bank_transfer = id_bank_transfer
|
903
1074
|
@ideal = ideal
|
904
1075
|
@interac_present = interac_present
|
905
1076
|
@kakao_pay = kakao_pay
|
@@ -907,6 +1078,7 @@ module Stripe
|
|
907
1078
|
@konbini = konbini
|
908
1079
|
@kr_card = kr_card
|
909
1080
|
@link = link
|
1081
|
+
@mb_way = mb_way
|
910
1082
|
@metadata = metadata
|
911
1083
|
@mobilepay = mobilepay
|
912
1084
|
@multibanco = multibanco
|
@@ -918,14 +1090,19 @@ module Stripe
|
|
918
1090
|
@payco = payco
|
919
1091
|
@paynow = paynow
|
920
1092
|
@paypal = paypal
|
1093
|
+
@payto = payto
|
921
1094
|
@pix = pix
|
922
1095
|
@promptpay = promptpay
|
1096
|
+
@qris = qris
|
923
1097
|
@radar_options = radar_options
|
1098
|
+
@rechnung = rechnung
|
924
1099
|
@revolut_pay = revolut_pay
|
925
1100
|
@samsung_pay = samsung_pay
|
926
1101
|
@satispay = satispay
|
927
1102
|
@sepa_debit = sepa_debit
|
1103
|
+
@shopeepay = shopeepay
|
928
1104
|
@sofort = sofort
|
1105
|
+
@stripe_balance = stripe_balance
|
929
1106
|
@swish = swish
|
930
1107
|
@twint = twint
|
931
1108
|
@type = type
|
@@ -1241,9 +1418,105 @@ module Stripe
|
|
1241
1418
|
class Paypal < Stripe::RequestParams
|
1242
1419
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
1243
1420
|
attr_accessor :billing_agreement_id
|
1421
|
+
# Attribute for param field currency
|
1422
|
+
attr_accessor :currency
|
1423
|
+
# 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.
|
1424
|
+
attr_accessor :subsellers
|
1244
1425
|
|
1245
|
-
def initialize(billing_agreement_id: nil)
|
1426
|
+
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
|
1246
1427
|
@billing_agreement_id = billing_agreement_id
|
1428
|
+
@currency = currency
|
1429
|
+
@subsellers = subsellers
|
1430
|
+
end
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
class Payto < Stripe::RequestParams
|
1434
|
+
class MandateOptions < Stripe::RequestParams
|
1435
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
1436
|
+
attr_accessor :amount
|
1437
|
+
# 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.
|
1438
|
+
attr_accessor :amount_type
|
1439
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
1440
|
+
attr_accessor :end_date
|
1441
|
+
# The periodicity at which payments will be collected.
|
1442
|
+
attr_accessor :payment_schedule
|
1443
|
+
# 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.
|
1444
|
+
attr_accessor :payments_per_period
|
1445
|
+
# The purpose for which payments are made. Defaults to retail.
|
1446
|
+
attr_accessor :purpose
|
1447
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
1448
|
+
attr_accessor :start_date
|
1449
|
+
|
1450
|
+
def initialize(
|
1451
|
+
amount: nil,
|
1452
|
+
amount_type: nil,
|
1453
|
+
end_date: nil,
|
1454
|
+
payment_schedule: nil,
|
1455
|
+
payments_per_period: nil,
|
1456
|
+
purpose: nil,
|
1457
|
+
start_date: nil
|
1458
|
+
)
|
1459
|
+
@amount = amount
|
1460
|
+
@amount_type = amount_type
|
1461
|
+
@end_date = end_date
|
1462
|
+
@payment_schedule = payment_schedule
|
1463
|
+
@payments_per_period = payments_per_period
|
1464
|
+
@purpose = purpose
|
1465
|
+
@start_date = start_date
|
1466
|
+
end
|
1467
|
+
end
|
1468
|
+
# Additional fields for Mandate creation.
|
1469
|
+
attr_accessor :mandate_options
|
1470
|
+
|
1471
|
+
def initialize(mandate_options: nil)
|
1472
|
+
@mandate_options = mandate_options
|
1473
|
+
end
|
1474
|
+
end
|
1475
|
+
|
1476
|
+
class Pix < Stripe::RequestParams
|
1477
|
+
class MandateOptions < Stripe::RequestParams
|
1478
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
1479
|
+
attr_accessor :amount
|
1480
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
1481
|
+
attr_accessor :amount_includes_iof
|
1482
|
+
# Type of amount. Defaults to `maximum`.
|
1483
|
+
attr_accessor :amount_type
|
1484
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
1485
|
+
attr_accessor :currency
|
1486
|
+
# 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.
|
1487
|
+
attr_accessor :end_date
|
1488
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
1489
|
+
attr_accessor :payment_schedule
|
1490
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
1491
|
+
attr_accessor :reference
|
1492
|
+
# 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.
|
1493
|
+
attr_accessor :start_date
|
1494
|
+
|
1495
|
+
def initialize(
|
1496
|
+
amount: nil,
|
1497
|
+
amount_includes_iof: nil,
|
1498
|
+
amount_type: nil,
|
1499
|
+
currency: nil,
|
1500
|
+
end_date: nil,
|
1501
|
+
payment_schedule: nil,
|
1502
|
+
reference: nil,
|
1503
|
+
start_date: nil
|
1504
|
+
)
|
1505
|
+
@amount = amount
|
1506
|
+
@amount_includes_iof = amount_includes_iof
|
1507
|
+
@amount_type = amount_type
|
1508
|
+
@currency = currency
|
1509
|
+
@end_date = end_date
|
1510
|
+
@payment_schedule = payment_schedule
|
1511
|
+
@reference = reference
|
1512
|
+
@start_date = start_date
|
1513
|
+
end
|
1514
|
+
end
|
1515
|
+
# Additional fields for mandate creation.
|
1516
|
+
attr_accessor :mandate_options
|
1517
|
+
|
1518
|
+
def initialize(mandate_options: nil)
|
1519
|
+
@mandate_options = mandate_options
|
1247
1520
|
end
|
1248
1521
|
end
|
1249
1522
|
|
@@ -1269,13 +1542,27 @@ module Stripe
|
|
1269
1542
|
class Filters < Stripe::RequestParams
|
1270
1543
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
1271
1544
|
attr_accessor :account_subcategories
|
1545
|
+
# ID of the institution to use to filter for selectable accounts.
|
1546
|
+
attr_accessor :institution
|
1272
1547
|
|
1273
|
-
def initialize(account_subcategories: nil)
|
1548
|
+
def initialize(account_subcategories: nil, institution: nil)
|
1274
1549
|
@account_subcategories = account_subcategories
|
1550
|
+
@institution = institution
|
1551
|
+
end
|
1552
|
+
end
|
1553
|
+
|
1554
|
+
class ManualEntry < Stripe::RequestParams
|
1555
|
+
# Settings for configuring manual entry of account details.
|
1556
|
+
attr_accessor :mode
|
1557
|
+
|
1558
|
+
def initialize(mode: nil)
|
1559
|
+
@mode = mode
|
1275
1560
|
end
|
1276
1561
|
end
|
1277
1562
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
1278
1563
|
attr_accessor :filters
|
1564
|
+
# Customize manual entry behavior
|
1565
|
+
attr_accessor :manual_entry
|
1279
1566
|
# 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
1567
|
attr_accessor :permissions
|
1281
1568
|
# List of data features that you would like to retrieve upon account creation.
|
@@ -1283,8 +1570,15 @@ module Stripe
|
|
1283
1570
|
# 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
1571
|
attr_accessor :return_url
|
1285
1572
|
|
1286
|
-
def initialize(
|
1573
|
+
def initialize(
|
1574
|
+
filters: nil,
|
1575
|
+
manual_entry: nil,
|
1576
|
+
permissions: nil,
|
1577
|
+
prefetch: nil,
|
1578
|
+
return_url: nil
|
1579
|
+
)
|
1287
1580
|
@filters = filters
|
1581
|
+
@manual_entry = manual_entry
|
1288
1582
|
@permissions = permissions
|
1289
1583
|
@prefetch = prefetch
|
1290
1584
|
@return_url = return_url
|
@@ -1345,6 +1639,10 @@ module Stripe
|
|
1345
1639
|
attr_accessor :link
|
1346
1640
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
1347
1641
|
attr_accessor :paypal
|
1642
|
+
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
1643
|
+
attr_accessor :payto
|
1644
|
+
# If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
1645
|
+
attr_accessor :pix
|
1348
1646
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
1349
1647
|
attr_accessor :sepa_debit
|
1350
1648
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -1359,6 +1657,8 @@ module Stripe
|
|
1359
1657
|
klarna: nil,
|
1360
1658
|
link: nil,
|
1361
1659
|
paypal: nil,
|
1660
|
+
payto: nil,
|
1661
|
+
pix: nil,
|
1362
1662
|
sepa_debit: nil,
|
1363
1663
|
us_bank_account: nil
|
1364
1664
|
)
|
@@ -1370,6 +1670,8 @@ module Stripe
|
|
1370
1670
|
@klarna = klarna
|
1371
1671
|
@link = link
|
1372
1672
|
@paypal = paypal
|
1673
|
+
@payto = payto
|
1674
|
+
@pix = pix
|
1373
1675
|
@sepa_debit = sepa_debit
|
1374
1676
|
@us_bank_account = us_bank_account
|
1375
1677
|
end
|
@@ -1402,6 +1704,10 @@ module Stripe
|
|
1402
1704
|
#
|
1403
1705
|
# 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
1706
|
attr_accessor :customer
|
1707
|
+
# ID of the Account this SetupIntent belongs to, if one exists.
|
1708
|
+
#
|
1709
|
+
# 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.
|
1710
|
+
attr_accessor :customer_account
|
1405
1711
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
1406
1712
|
attr_accessor :description
|
1407
1713
|
# Specifies which fields in the response should be expanded.
|
@@ -1444,6 +1750,7 @@ module Stripe
|
|
1444
1750
|
confirm: nil,
|
1445
1751
|
confirmation_token: nil,
|
1446
1752
|
customer: nil,
|
1753
|
+
customer_account: nil,
|
1447
1754
|
description: nil,
|
1448
1755
|
expand: nil,
|
1449
1756
|
flow_directions: nil,
|
@@ -1465,6 +1772,7 @@ module Stripe
|
|
1465
1772
|
@confirm = confirm
|
1466
1773
|
@confirmation_token = confirmation_token
|
1467
1774
|
@customer = customer
|
1775
|
+
@customer_account = customer_account
|
1468
1776
|
@description = description
|
1469
1777
|
@expand = expand
|
1470
1778
|
@flow_directions = flow_directions
|
@@ -1621,8 +1929,18 @@ module Stripe
|
|
1621
1929
|
end
|
1622
1930
|
|
1623
1931
|
class Giropay < Stripe::RequestParams; end
|
1932
|
+
class Gopay < Stripe::RequestParams; end
|
1624
1933
|
class Grabpay < Stripe::RequestParams; end
|
1625
1934
|
|
1935
|
+
class IdBankTransfer < Stripe::RequestParams
|
1936
|
+
# Bank where the account is held.
|
1937
|
+
attr_accessor :bank
|
1938
|
+
|
1939
|
+
def initialize(bank: nil)
|
1940
|
+
@bank = bank
|
1941
|
+
end
|
1942
|
+
end
|
1943
|
+
|
1626
1944
|
class Ideal < Stripe::RequestParams
|
1627
1945
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
1628
1946
|
attr_accessor :bank
|
@@ -1661,6 +1979,7 @@ module Stripe
|
|
1661
1979
|
class Konbini < Stripe::RequestParams; end
|
1662
1980
|
class KrCard < Stripe::RequestParams; end
|
1663
1981
|
class Link < Stripe::RequestParams; end
|
1982
|
+
class MbWay < Stripe::RequestParams; end
|
1664
1983
|
class Mobilepay < Stripe::RequestParams; end
|
1665
1984
|
class Multibanco < Stripe::RequestParams; end
|
1666
1985
|
|
@@ -1719,8 +2038,25 @@ module Stripe
|
|
1719
2038
|
class Payco < Stripe::RequestParams; end
|
1720
2039
|
class Paynow < Stripe::RequestParams; end
|
1721
2040
|
class Paypal < Stripe::RequestParams; end
|
2041
|
+
|
2042
|
+
class Payto < Stripe::RequestParams
|
2043
|
+
# The account number for the bank account.
|
2044
|
+
attr_accessor :account_number
|
2045
|
+
# Bank-State-Branch number of the bank account.
|
2046
|
+
attr_accessor :bsb_number
|
2047
|
+
# The PayID alias for the bank account.
|
2048
|
+
attr_accessor :pay_id
|
2049
|
+
|
2050
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
2051
|
+
@account_number = account_number
|
2052
|
+
@bsb_number = bsb_number
|
2053
|
+
@pay_id = pay_id
|
2054
|
+
end
|
2055
|
+
end
|
2056
|
+
|
1722
2057
|
class Pix < Stripe::RequestParams; end
|
1723
2058
|
class Promptpay < Stripe::RequestParams; end
|
2059
|
+
class Qris < Stripe::RequestParams; end
|
1724
2060
|
|
1725
2061
|
class RadarOptions < Stripe::RequestParams
|
1726
2062
|
# 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 +2067,29 @@ module Stripe
|
|
1731
2067
|
end
|
1732
2068
|
end
|
1733
2069
|
|
2070
|
+
class Rechnung < Stripe::RequestParams
|
2071
|
+
class Dob < Stripe::RequestParams
|
2072
|
+
# The day of birth, between 1 and 31.
|
2073
|
+
attr_accessor :day
|
2074
|
+
# The month of birth, between 1 and 12.
|
2075
|
+
attr_accessor :month
|
2076
|
+
# The four-digit year of birth.
|
2077
|
+
attr_accessor :year
|
2078
|
+
|
2079
|
+
def initialize(day: nil, month: nil, year: nil)
|
2080
|
+
@day = day
|
2081
|
+
@month = month
|
2082
|
+
@year = year
|
2083
|
+
end
|
2084
|
+
end
|
2085
|
+
# Customer's date of birth
|
2086
|
+
attr_accessor :dob
|
2087
|
+
|
2088
|
+
def initialize(dob: nil)
|
2089
|
+
@dob = dob
|
2090
|
+
end
|
2091
|
+
end
|
2092
|
+
|
1734
2093
|
class RevolutPay < Stripe::RequestParams; end
|
1735
2094
|
class SamsungPay < Stripe::RequestParams; end
|
1736
2095
|
class Satispay < Stripe::RequestParams; end
|
@@ -1744,6 +2103,8 @@ module Stripe
|
|
1744
2103
|
end
|
1745
2104
|
end
|
1746
2105
|
|
2106
|
+
class Shopeepay < Stripe::RequestParams; end
|
2107
|
+
|
1747
2108
|
class Sofort < Stripe::RequestParams
|
1748
2109
|
# Two-letter ISO code representing the country the bank account is located in.
|
1749
2110
|
attr_accessor :country
|
@@ -1753,6 +2114,18 @@ module Stripe
|
|
1753
2114
|
end
|
1754
2115
|
end
|
1755
2116
|
|
2117
|
+
class StripeBalance < Stripe::RequestParams
|
2118
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
2119
|
+
attr_accessor :account
|
2120
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
2121
|
+
attr_accessor :source_type
|
2122
|
+
|
2123
|
+
def initialize(account: nil, source_type: nil)
|
2124
|
+
@account = account
|
2125
|
+
@source_type = source_type
|
2126
|
+
end
|
2127
|
+
end
|
2128
|
+
|
1756
2129
|
class Swish < Stripe::RequestParams; end
|
1757
2130
|
class Twint < Stripe::RequestParams; end
|
1758
2131
|
|
@@ -1825,8 +2198,12 @@ module Stripe
|
|
1825
2198
|
attr_accessor :fpx
|
1826
2199
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
1827
2200
|
attr_accessor :giropay
|
2201
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
2202
|
+
attr_accessor :gopay
|
1828
2203
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
1829
2204
|
attr_accessor :grabpay
|
2205
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
2206
|
+
attr_accessor :id_bank_transfer
|
1830
2207
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
1831
2208
|
attr_accessor :ideal
|
1832
2209
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -1841,6 +2218,8 @@ module Stripe
|
|
1841
2218
|
attr_accessor :kr_card
|
1842
2219
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
1843
2220
|
attr_accessor :link
|
2221
|
+
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
2222
|
+
attr_accessor :mb_way
|
1844
2223
|
# 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
2224
|
attr_accessor :metadata
|
1846
2225
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -1863,12 +2242,18 @@ module Stripe
|
|
1863
2242
|
attr_accessor :paynow
|
1864
2243
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
1865
2244
|
attr_accessor :paypal
|
2245
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
2246
|
+
attr_accessor :payto
|
1866
2247
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
1867
2248
|
attr_accessor :pix
|
1868
2249
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
1869
2250
|
attr_accessor :promptpay
|
2251
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
2252
|
+
attr_accessor :qris
|
1870
2253
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1871
2254
|
attr_accessor :radar_options
|
2255
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
2256
|
+
attr_accessor :rechnung
|
1872
2257
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
1873
2258
|
attr_accessor :revolut_pay
|
1874
2259
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -1877,8 +2262,12 @@ module Stripe
|
|
1877
2262
|
attr_accessor :satispay
|
1878
2263
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
1879
2264
|
attr_accessor :sepa_debit
|
2265
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
2266
|
+
attr_accessor :shopeepay
|
1880
2267
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
1881
2268
|
attr_accessor :sofort
|
2269
|
+
# This hash contains details about the Stripe balance payment method.
|
2270
|
+
attr_accessor :stripe_balance
|
1882
2271
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
1883
2272
|
attr_accessor :swish
|
1884
2273
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -1913,7 +2302,9 @@ module Stripe
|
|
1913
2302
|
eps: nil,
|
1914
2303
|
fpx: nil,
|
1915
2304
|
giropay: nil,
|
2305
|
+
gopay: nil,
|
1916
2306
|
grabpay: nil,
|
2307
|
+
id_bank_transfer: nil,
|
1917
2308
|
ideal: nil,
|
1918
2309
|
interac_present: nil,
|
1919
2310
|
kakao_pay: nil,
|
@@ -1921,6 +2312,7 @@ module Stripe
|
|
1921
2312
|
konbini: nil,
|
1922
2313
|
kr_card: nil,
|
1923
2314
|
link: nil,
|
2315
|
+
mb_way: nil,
|
1924
2316
|
metadata: nil,
|
1925
2317
|
mobilepay: nil,
|
1926
2318
|
multibanco: nil,
|
@@ -1932,14 +2324,19 @@ module Stripe
|
|
1932
2324
|
payco: nil,
|
1933
2325
|
paynow: nil,
|
1934
2326
|
paypal: nil,
|
2327
|
+
payto: nil,
|
1935
2328
|
pix: nil,
|
1936
2329
|
promptpay: nil,
|
2330
|
+
qris: nil,
|
1937
2331
|
radar_options: nil,
|
2332
|
+
rechnung: nil,
|
1938
2333
|
revolut_pay: nil,
|
1939
2334
|
samsung_pay: nil,
|
1940
2335
|
satispay: nil,
|
1941
2336
|
sepa_debit: nil,
|
2337
|
+
shopeepay: nil,
|
1942
2338
|
sofort: nil,
|
2339
|
+
stripe_balance: nil,
|
1943
2340
|
swish: nil,
|
1944
2341
|
twint: nil,
|
1945
2342
|
type: nil,
|
@@ -1967,7 +2364,9 @@ module Stripe
|
|
1967
2364
|
@eps = eps
|
1968
2365
|
@fpx = fpx
|
1969
2366
|
@giropay = giropay
|
2367
|
+
@gopay = gopay
|
1970
2368
|
@grabpay = grabpay
|
2369
|
+
@id_bank_transfer = id_bank_transfer
|
1971
2370
|
@ideal = ideal
|
1972
2371
|
@interac_present = interac_present
|
1973
2372
|
@kakao_pay = kakao_pay
|
@@ -1975,6 +2374,7 @@ module Stripe
|
|
1975
2374
|
@konbini = konbini
|
1976
2375
|
@kr_card = kr_card
|
1977
2376
|
@link = link
|
2377
|
+
@mb_way = mb_way
|
1978
2378
|
@metadata = metadata
|
1979
2379
|
@mobilepay = mobilepay
|
1980
2380
|
@multibanco = multibanco
|
@@ -1986,14 +2386,19 @@ module Stripe
|
|
1986
2386
|
@payco = payco
|
1987
2387
|
@paynow = paynow
|
1988
2388
|
@paypal = paypal
|
2389
|
+
@payto = payto
|
1989
2390
|
@pix = pix
|
1990
2391
|
@promptpay = promptpay
|
2392
|
+
@qris = qris
|
1991
2393
|
@radar_options = radar_options
|
2394
|
+
@rechnung = rechnung
|
1992
2395
|
@revolut_pay = revolut_pay
|
1993
2396
|
@samsung_pay = samsung_pay
|
1994
2397
|
@satispay = satispay
|
1995
2398
|
@sepa_debit = sepa_debit
|
2399
|
+
@shopeepay = shopeepay
|
1996
2400
|
@sofort = sofort
|
2401
|
+
@stripe_balance = stripe_balance
|
1997
2402
|
@swish = swish
|
1998
2403
|
@twint = twint
|
1999
2404
|
@type = type
|
@@ -2309,9 +2714,105 @@ module Stripe
|
|
2309
2714
|
class Paypal < Stripe::RequestParams
|
2310
2715
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
2311
2716
|
attr_accessor :billing_agreement_id
|
2717
|
+
# Attribute for param field currency
|
2718
|
+
attr_accessor :currency
|
2719
|
+
# 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.
|
2720
|
+
attr_accessor :subsellers
|
2312
2721
|
|
2313
|
-
def initialize(billing_agreement_id: nil)
|
2722
|
+
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
|
2314
2723
|
@billing_agreement_id = billing_agreement_id
|
2724
|
+
@currency = currency
|
2725
|
+
@subsellers = subsellers
|
2726
|
+
end
|
2727
|
+
end
|
2728
|
+
|
2729
|
+
class Payto < Stripe::RequestParams
|
2730
|
+
class MandateOptions < Stripe::RequestParams
|
2731
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
2732
|
+
attr_accessor :amount
|
2733
|
+
# 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.
|
2734
|
+
attr_accessor :amount_type
|
2735
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
2736
|
+
attr_accessor :end_date
|
2737
|
+
# The periodicity at which payments will be collected.
|
2738
|
+
attr_accessor :payment_schedule
|
2739
|
+
# 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.
|
2740
|
+
attr_accessor :payments_per_period
|
2741
|
+
# The purpose for which payments are made. Defaults to retail.
|
2742
|
+
attr_accessor :purpose
|
2743
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
2744
|
+
attr_accessor :start_date
|
2745
|
+
|
2746
|
+
def initialize(
|
2747
|
+
amount: nil,
|
2748
|
+
amount_type: nil,
|
2749
|
+
end_date: nil,
|
2750
|
+
payment_schedule: nil,
|
2751
|
+
payments_per_period: nil,
|
2752
|
+
purpose: nil,
|
2753
|
+
start_date: nil
|
2754
|
+
)
|
2755
|
+
@amount = amount
|
2756
|
+
@amount_type = amount_type
|
2757
|
+
@end_date = end_date
|
2758
|
+
@payment_schedule = payment_schedule
|
2759
|
+
@payments_per_period = payments_per_period
|
2760
|
+
@purpose = purpose
|
2761
|
+
@start_date = start_date
|
2762
|
+
end
|
2763
|
+
end
|
2764
|
+
# Additional fields for Mandate creation.
|
2765
|
+
attr_accessor :mandate_options
|
2766
|
+
|
2767
|
+
def initialize(mandate_options: nil)
|
2768
|
+
@mandate_options = mandate_options
|
2769
|
+
end
|
2770
|
+
end
|
2771
|
+
|
2772
|
+
class Pix < Stripe::RequestParams
|
2773
|
+
class MandateOptions < Stripe::RequestParams
|
2774
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
2775
|
+
attr_accessor :amount
|
2776
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
2777
|
+
attr_accessor :amount_includes_iof
|
2778
|
+
# Type of amount. Defaults to `maximum`.
|
2779
|
+
attr_accessor :amount_type
|
2780
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
2781
|
+
attr_accessor :currency
|
2782
|
+
# 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.
|
2783
|
+
attr_accessor :end_date
|
2784
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
2785
|
+
attr_accessor :payment_schedule
|
2786
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
2787
|
+
attr_accessor :reference
|
2788
|
+
# 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.
|
2789
|
+
attr_accessor :start_date
|
2790
|
+
|
2791
|
+
def initialize(
|
2792
|
+
amount: nil,
|
2793
|
+
amount_includes_iof: nil,
|
2794
|
+
amount_type: nil,
|
2795
|
+
currency: nil,
|
2796
|
+
end_date: nil,
|
2797
|
+
payment_schedule: nil,
|
2798
|
+
reference: nil,
|
2799
|
+
start_date: nil
|
2800
|
+
)
|
2801
|
+
@amount = amount
|
2802
|
+
@amount_includes_iof = amount_includes_iof
|
2803
|
+
@amount_type = amount_type
|
2804
|
+
@currency = currency
|
2805
|
+
@end_date = end_date
|
2806
|
+
@payment_schedule = payment_schedule
|
2807
|
+
@reference = reference
|
2808
|
+
@start_date = start_date
|
2809
|
+
end
|
2810
|
+
end
|
2811
|
+
# Additional fields for mandate creation.
|
2812
|
+
attr_accessor :mandate_options
|
2813
|
+
|
2814
|
+
def initialize(mandate_options: nil)
|
2815
|
+
@mandate_options = mandate_options
|
2315
2816
|
end
|
2316
2817
|
end
|
2317
2818
|
|
@@ -2337,13 +2838,27 @@ module Stripe
|
|
2337
2838
|
class Filters < Stripe::RequestParams
|
2338
2839
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
2339
2840
|
attr_accessor :account_subcategories
|
2841
|
+
# ID of the institution to use to filter for selectable accounts.
|
2842
|
+
attr_accessor :institution
|
2340
2843
|
|
2341
|
-
def initialize(account_subcategories: nil)
|
2844
|
+
def initialize(account_subcategories: nil, institution: nil)
|
2342
2845
|
@account_subcategories = account_subcategories
|
2846
|
+
@institution = institution
|
2847
|
+
end
|
2848
|
+
end
|
2849
|
+
|
2850
|
+
class ManualEntry < Stripe::RequestParams
|
2851
|
+
# Settings for configuring manual entry of account details.
|
2852
|
+
attr_accessor :mode
|
2853
|
+
|
2854
|
+
def initialize(mode: nil)
|
2855
|
+
@mode = mode
|
2343
2856
|
end
|
2344
2857
|
end
|
2345
2858
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
2346
2859
|
attr_accessor :filters
|
2860
|
+
# Customize manual entry behavior
|
2861
|
+
attr_accessor :manual_entry
|
2347
2862
|
# 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
2863
|
attr_accessor :permissions
|
2349
2864
|
# List of data features that you would like to retrieve upon account creation.
|
@@ -2351,8 +2866,15 @@ module Stripe
|
|
2351
2866
|
# 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
2867
|
attr_accessor :return_url
|
2353
2868
|
|
2354
|
-
def initialize(
|
2869
|
+
def initialize(
|
2870
|
+
filters: nil,
|
2871
|
+
manual_entry: nil,
|
2872
|
+
permissions: nil,
|
2873
|
+
prefetch: nil,
|
2874
|
+
return_url: nil
|
2875
|
+
)
|
2355
2876
|
@filters = filters
|
2877
|
+
@manual_entry = manual_entry
|
2356
2878
|
@permissions = permissions
|
2357
2879
|
@prefetch = prefetch
|
2358
2880
|
@return_url = return_url
|
@@ -2413,6 +2935,10 @@ module Stripe
|
|
2413
2935
|
attr_accessor :link
|
2414
2936
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
2415
2937
|
attr_accessor :paypal
|
2938
|
+
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
2939
|
+
attr_accessor :payto
|
2940
|
+
# If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
2941
|
+
attr_accessor :pix
|
2416
2942
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
2417
2943
|
attr_accessor :sepa_debit
|
2418
2944
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -2427,6 +2953,8 @@ module Stripe
|
|
2427
2953
|
klarna: nil,
|
2428
2954
|
link: nil,
|
2429
2955
|
paypal: nil,
|
2956
|
+
payto: nil,
|
2957
|
+
pix: nil,
|
2430
2958
|
sepa_debit: nil,
|
2431
2959
|
us_bank_account: nil
|
2432
2960
|
)
|
@@ -2438,6 +2966,8 @@ module Stripe
|
|
2438
2966
|
@klarna = klarna
|
2439
2967
|
@link = link
|
2440
2968
|
@paypal = paypal
|
2969
|
+
@payto = payto
|
2970
|
+
@pix = pix
|
2441
2971
|
@sepa_debit = sepa_debit
|
2442
2972
|
@us_bank_account = us_bank_account
|
2443
2973
|
end
|
@@ -2450,6 +2980,10 @@ module Stripe
|
|
2450
2980
|
#
|
2451
2981
|
# 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
2982
|
attr_accessor :customer
|
2983
|
+
# ID of the Account this SetupIntent belongs to, if one exists.
|
2984
|
+
#
|
2985
|
+
# 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.
|
2986
|
+
attr_accessor :customer_account
|
2453
2987
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
2454
2988
|
attr_accessor :description
|
2455
2989
|
# Specifies which fields in the response should be expanded.
|
@@ -2475,6 +3009,7 @@ module Stripe
|
|
2475
3009
|
def initialize(
|
2476
3010
|
attach_to_self: nil,
|
2477
3011
|
customer: nil,
|
3012
|
+
customer_account: nil,
|
2478
3013
|
description: nil,
|
2479
3014
|
expand: nil,
|
2480
3015
|
flow_directions: nil,
|
@@ -2487,6 +3022,7 @@ module Stripe
|
|
2487
3022
|
)
|
2488
3023
|
@attach_to_self = attach_to_self
|
2489
3024
|
@customer = customer
|
3025
|
+
@customer_account = customer_account
|
2490
3026
|
@description = description
|
2491
3027
|
@expand = expand
|
2492
3028
|
@flow_directions = flow_directions
|
@@ -2688,8 +3224,18 @@ module Stripe
|
|
2688
3224
|
end
|
2689
3225
|
|
2690
3226
|
class Giropay < Stripe::RequestParams; end
|
3227
|
+
class Gopay < Stripe::RequestParams; end
|
2691
3228
|
class Grabpay < Stripe::RequestParams; end
|
2692
3229
|
|
3230
|
+
class IdBankTransfer < Stripe::RequestParams
|
3231
|
+
# Bank where the account is held.
|
3232
|
+
attr_accessor :bank
|
3233
|
+
|
3234
|
+
def initialize(bank: nil)
|
3235
|
+
@bank = bank
|
3236
|
+
end
|
3237
|
+
end
|
3238
|
+
|
2693
3239
|
class Ideal < Stripe::RequestParams
|
2694
3240
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
2695
3241
|
attr_accessor :bank
|
@@ -2728,6 +3274,7 @@ module Stripe
|
|
2728
3274
|
class Konbini < Stripe::RequestParams; end
|
2729
3275
|
class KrCard < Stripe::RequestParams; end
|
2730
3276
|
class Link < Stripe::RequestParams; end
|
3277
|
+
class MbWay < Stripe::RequestParams; end
|
2731
3278
|
class Mobilepay < Stripe::RequestParams; end
|
2732
3279
|
class Multibanco < Stripe::RequestParams; end
|
2733
3280
|
|
@@ -2786,8 +3333,25 @@ module Stripe
|
|
2786
3333
|
class Payco < Stripe::RequestParams; end
|
2787
3334
|
class Paynow < Stripe::RequestParams; end
|
2788
3335
|
class Paypal < Stripe::RequestParams; end
|
3336
|
+
|
3337
|
+
class Payto < Stripe::RequestParams
|
3338
|
+
# The account number for the bank account.
|
3339
|
+
attr_accessor :account_number
|
3340
|
+
# Bank-State-Branch number of the bank account.
|
3341
|
+
attr_accessor :bsb_number
|
3342
|
+
# The PayID alias for the bank account.
|
3343
|
+
attr_accessor :pay_id
|
3344
|
+
|
3345
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
3346
|
+
@account_number = account_number
|
3347
|
+
@bsb_number = bsb_number
|
3348
|
+
@pay_id = pay_id
|
3349
|
+
end
|
3350
|
+
end
|
3351
|
+
|
2789
3352
|
class Pix < Stripe::RequestParams; end
|
2790
3353
|
class Promptpay < Stripe::RequestParams; end
|
3354
|
+
class Qris < Stripe::RequestParams; end
|
2791
3355
|
|
2792
3356
|
class RadarOptions < Stripe::RequestParams
|
2793
3357
|
# 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 +3362,29 @@ module Stripe
|
|
2798
3362
|
end
|
2799
3363
|
end
|
2800
3364
|
|
3365
|
+
class Rechnung < Stripe::RequestParams
|
3366
|
+
class Dob < Stripe::RequestParams
|
3367
|
+
# The day of birth, between 1 and 31.
|
3368
|
+
attr_accessor :day
|
3369
|
+
# The month of birth, between 1 and 12.
|
3370
|
+
attr_accessor :month
|
3371
|
+
# The four-digit year of birth.
|
3372
|
+
attr_accessor :year
|
3373
|
+
|
3374
|
+
def initialize(day: nil, month: nil, year: nil)
|
3375
|
+
@day = day
|
3376
|
+
@month = month
|
3377
|
+
@year = year
|
3378
|
+
end
|
3379
|
+
end
|
3380
|
+
# Customer's date of birth
|
3381
|
+
attr_accessor :dob
|
3382
|
+
|
3383
|
+
def initialize(dob: nil)
|
3384
|
+
@dob = dob
|
3385
|
+
end
|
3386
|
+
end
|
3387
|
+
|
2801
3388
|
class RevolutPay < Stripe::RequestParams; end
|
2802
3389
|
class SamsungPay < Stripe::RequestParams; end
|
2803
3390
|
class Satispay < Stripe::RequestParams; end
|
@@ -2811,6 +3398,8 @@ module Stripe
|
|
2811
3398
|
end
|
2812
3399
|
end
|
2813
3400
|
|
3401
|
+
class Shopeepay < Stripe::RequestParams; end
|
3402
|
+
|
2814
3403
|
class Sofort < Stripe::RequestParams
|
2815
3404
|
# Two-letter ISO code representing the country the bank account is located in.
|
2816
3405
|
attr_accessor :country
|
@@ -2820,6 +3409,18 @@ module Stripe
|
|
2820
3409
|
end
|
2821
3410
|
end
|
2822
3411
|
|
3412
|
+
class StripeBalance < Stripe::RequestParams
|
3413
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
3414
|
+
attr_accessor :account
|
3415
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
3416
|
+
attr_accessor :source_type
|
3417
|
+
|
3418
|
+
def initialize(account: nil, source_type: nil)
|
3419
|
+
@account = account
|
3420
|
+
@source_type = source_type
|
3421
|
+
end
|
3422
|
+
end
|
3423
|
+
|
2823
3424
|
class Swish < Stripe::RequestParams; end
|
2824
3425
|
class Twint < Stripe::RequestParams; end
|
2825
3426
|
|
@@ -2892,8 +3493,12 @@ module Stripe
|
|
2892
3493
|
attr_accessor :fpx
|
2893
3494
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
2894
3495
|
attr_accessor :giropay
|
3496
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
3497
|
+
attr_accessor :gopay
|
2895
3498
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
2896
3499
|
attr_accessor :grabpay
|
3500
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
3501
|
+
attr_accessor :id_bank_transfer
|
2897
3502
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
2898
3503
|
attr_accessor :ideal
|
2899
3504
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -2908,6 +3513,8 @@ module Stripe
|
|
2908
3513
|
attr_accessor :kr_card
|
2909
3514
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
2910
3515
|
attr_accessor :link
|
3516
|
+
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
3517
|
+
attr_accessor :mb_way
|
2911
3518
|
# 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
3519
|
attr_accessor :metadata
|
2913
3520
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -2930,12 +3537,18 @@ module Stripe
|
|
2930
3537
|
attr_accessor :paynow
|
2931
3538
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
2932
3539
|
attr_accessor :paypal
|
3540
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
3541
|
+
attr_accessor :payto
|
2933
3542
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
2934
3543
|
attr_accessor :pix
|
2935
3544
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
2936
3545
|
attr_accessor :promptpay
|
3546
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
3547
|
+
attr_accessor :qris
|
2937
3548
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
2938
3549
|
attr_accessor :radar_options
|
3550
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
3551
|
+
attr_accessor :rechnung
|
2939
3552
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
2940
3553
|
attr_accessor :revolut_pay
|
2941
3554
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -2944,8 +3557,12 @@ module Stripe
|
|
2944
3557
|
attr_accessor :satispay
|
2945
3558
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
2946
3559
|
attr_accessor :sepa_debit
|
3560
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
3561
|
+
attr_accessor :shopeepay
|
2947
3562
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
2948
3563
|
attr_accessor :sofort
|
3564
|
+
# This hash contains details about the Stripe balance payment method.
|
3565
|
+
attr_accessor :stripe_balance
|
2949
3566
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
2950
3567
|
attr_accessor :swish
|
2951
3568
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -2980,7 +3597,9 @@ module Stripe
|
|
2980
3597
|
eps: nil,
|
2981
3598
|
fpx: nil,
|
2982
3599
|
giropay: nil,
|
3600
|
+
gopay: nil,
|
2983
3601
|
grabpay: nil,
|
3602
|
+
id_bank_transfer: nil,
|
2984
3603
|
ideal: nil,
|
2985
3604
|
interac_present: nil,
|
2986
3605
|
kakao_pay: nil,
|
@@ -2988,6 +3607,7 @@ module Stripe
|
|
2988
3607
|
konbini: nil,
|
2989
3608
|
kr_card: nil,
|
2990
3609
|
link: nil,
|
3610
|
+
mb_way: nil,
|
2991
3611
|
metadata: nil,
|
2992
3612
|
mobilepay: nil,
|
2993
3613
|
multibanco: nil,
|
@@ -2999,14 +3619,19 @@ module Stripe
|
|
2999
3619
|
payco: nil,
|
3000
3620
|
paynow: nil,
|
3001
3621
|
paypal: nil,
|
3622
|
+
payto: nil,
|
3002
3623
|
pix: nil,
|
3003
3624
|
promptpay: nil,
|
3625
|
+
qris: nil,
|
3004
3626
|
radar_options: nil,
|
3627
|
+
rechnung: nil,
|
3005
3628
|
revolut_pay: nil,
|
3006
3629
|
samsung_pay: nil,
|
3007
3630
|
satispay: nil,
|
3008
3631
|
sepa_debit: nil,
|
3632
|
+
shopeepay: nil,
|
3009
3633
|
sofort: nil,
|
3634
|
+
stripe_balance: nil,
|
3010
3635
|
swish: nil,
|
3011
3636
|
twint: nil,
|
3012
3637
|
type: nil,
|
@@ -3034,7 +3659,9 @@ module Stripe
|
|
3034
3659
|
@eps = eps
|
3035
3660
|
@fpx = fpx
|
3036
3661
|
@giropay = giropay
|
3662
|
+
@gopay = gopay
|
3037
3663
|
@grabpay = grabpay
|
3664
|
+
@id_bank_transfer = id_bank_transfer
|
3038
3665
|
@ideal = ideal
|
3039
3666
|
@interac_present = interac_present
|
3040
3667
|
@kakao_pay = kakao_pay
|
@@ -3042,6 +3669,7 @@ module Stripe
|
|
3042
3669
|
@konbini = konbini
|
3043
3670
|
@kr_card = kr_card
|
3044
3671
|
@link = link
|
3672
|
+
@mb_way = mb_way
|
3045
3673
|
@metadata = metadata
|
3046
3674
|
@mobilepay = mobilepay
|
3047
3675
|
@multibanco = multibanco
|
@@ -3053,14 +3681,19 @@ module Stripe
|
|
3053
3681
|
@payco = payco
|
3054
3682
|
@paynow = paynow
|
3055
3683
|
@paypal = paypal
|
3684
|
+
@payto = payto
|
3056
3685
|
@pix = pix
|
3057
3686
|
@promptpay = promptpay
|
3687
|
+
@qris = qris
|
3058
3688
|
@radar_options = radar_options
|
3689
|
+
@rechnung = rechnung
|
3059
3690
|
@revolut_pay = revolut_pay
|
3060
3691
|
@samsung_pay = samsung_pay
|
3061
3692
|
@satispay = satispay
|
3062
3693
|
@sepa_debit = sepa_debit
|
3694
|
+
@shopeepay = shopeepay
|
3063
3695
|
@sofort = sofort
|
3696
|
+
@stripe_balance = stripe_balance
|
3064
3697
|
@swish = swish
|
3065
3698
|
@twint = twint
|
3066
3699
|
@type = type
|
@@ -3376,9 +4009,105 @@ module Stripe
|
|
3376
4009
|
class Paypal < Stripe::RequestParams
|
3377
4010
|
# The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
|
3378
4011
|
attr_accessor :billing_agreement_id
|
4012
|
+
# Attribute for param field currency
|
4013
|
+
attr_accessor :currency
|
4014
|
+
# 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.
|
4015
|
+
attr_accessor :subsellers
|
3379
4016
|
|
3380
|
-
def initialize(billing_agreement_id: nil)
|
4017
|
+
def initialize(billing_agreement_id: nil, currency: nil, subsellers: nil)
|
3381
4018
|
@billing_agreement_id = billing_agreement_id
|
4019
|
+
@currency = currency
|
4020
|
+
@subsellers = subsellers
|
4021
|
+
end
|
4022
|
+
end
|
4023
|
+
|
4024
|
+
class Payto < Stripe::RequestParams
|
4025
|
+
class MandateOptions < Stripe::RequestParams
|
4026
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
4027
|
+
attr_accessor :amount
|
4028
|
+
# 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.
|
4029
|
+
attr_accessor :amount_type
|
4030
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
4031
|
+
attr_accessor :end_date
|
4032
|
+
# The periodicity at which payments will be collected.
|
4033
|
+
attr_accessor :payment_schedule
|
4034
|
+
# 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.
|
4035
|
+
attr_accessor :payments_per_period
|
4036
|
+
# The purpose for which payments are made. Defaults to retail.
|
4037
|
+
attr_accessor :purpose
|
4038
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
4039
|
+
attr_accessor :start_date
|
4040
|
+
|
4041
|
+
def initialize(
|
4042
|
+
amount: nil,
|
4043
|
+
amount_type: nil,
|
4044
|
+
end_date: nil,
|
4045
|
+
payment_schedule: nil,
|
4046
|
+
payments_per_period: nil,
|
4047
|
+
purpose: nil,
|
4048
|
+
start_date: nil
|
4049
|
+
)
|
4050
|
+
@amount = amount
|
4051
|
+
@amount_type = amount_type
|
4052
|
+
@end_date = end_date
|
4053
|
+
@payment_schedule = payment_schedule
|
4054
|
+
@payments_per_period = payments_per_period
|
4055
|
+
@purpose = purpose
|
4056
|
+
@start_date = start_date
|
4057
|
+
end
|
4058
|
+
end
|
4059
|
+
# Additional fields for Mandate creation.
|
4060
|
+
attr_accessor :mandate_options
|
4061
|
+
|
4062
|
+
def initialize(mandate_options: nil)
|
4063
|
+
@mandate_options = mandate_options
|
4064
|
+
end
|
4065
|
+
end
|
4066
|
+
|
4067
|
+
class Pix < Stripe::RequestParams
|
4068
|
+
class MandateOptions < Stripe::RequestParams
|
4069
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
4070
|
+
attr_accessor :amount
|
4071
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
4072
|
+
attr_accessor :amount_includes_iof
|
4073
|
+
# Type of amount. Defaults to `maximum`.
|
4074
|
+
attr_accessor :amount_type
|
4075
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
4076
|
+
attr_accessor :currency
|
4077
|
+
# 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.
|
4078
|
+
attr_accessor :end_date
|
4079
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
4080
|
+
attr_accessor :payment_schedule
|
4081
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
4082
|
+
attr_accessor :reference
|
4083
|
+
# 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.
|
4084
|
+
attr_accessor :start_date
|
4085
|
+
|
4086
|
+
def initialize(
|
4087
|
+
amount: nil,
|
4088
|
+
amount_includes_iof: nil,
|
4089
|
+
amount_type: nil,
|
4090
|
+
currency: nil,
|
4091
|
+
end_date: nil,
|
4092
|
+
payment_schedule: nil,
|
4093
|
+
reference: nil,
|
4094
|
+
start_date: nil
|
4095
|
+
)
|
4096
|
+
@amount = amount
|
4097
|
+
@amount_includes_iof = amount_includes_iof
|
4098
|
+
@amount_type = amount_type
|
4099
|
+
@currency = currency
|
4100
|
+
@end_date = end_date
|
4101
|
+
@payment_schedule = payment_schedule
|
4102
|
+
@reference = reference
|
4103
|
+
@start_date = start_date
|
4104
|
+
end
|
4105
|
+
end
|
4106
|
+
# Additional fields for mandate creation.
|
4107
|
+
attr_accessor :mandate_options
|
4108
|
+
|
4109
|
+
def initialize(mandate_options: nil)
|
4110
|
+
@mandate_options = mandate_options
|
3382
4111
|
end
|
3383
4112
|
end
|
3384
4113
|
|
@@ -3404,13 +4133,27 @@ module Stripe
|
|
3404
4133
|
class Filters < Stripe::RequestParams
|
3405
4134
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
3406
4135
|
attr_accessor :account_subcategories
|
4136
|
+
# ID of the institution to use to filter for selectable accounts.
|
4137
|
+
attr_accessor :institution
|
3407
4138
|
|
3408
|
-
def initialize(account_subcategories: nil)
|
4139
|
+
def initialize(account_subcategories: nil, institution: nil)
|
3409
4140
|
@account_subcategories = account_subcategories
|
4141
|
+
@institution = institution
|
4142
|
+
end
|
4143
|
+
end
|
4144
|
+
|
4145
|
+
class ManualEntry < Stripe::RequestParams
|
4146
|
+
# Settings for configuring manual entry of account details.
|
4147
|
+
attr_accessor :mode
|
4148
|
+
|
4149
|
+
def initialize(mode: nil)
|
4150
|
+
@mode = mode
|
3410
4151
|
end
|
3411
4152
|
end
|
3412
4153
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
3413
4154
|
attr_accessor :filters
|
4155
|
+
# Customize manual entry behavior
|
4156
|
+
attr_accessor :manual_entry
|
3414
4157
|
# 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
4158
|
attr_accessor :permissions
|
3416
4159
|
# List of data features that you would like to retrieve upon account creation.
|
@@ -3418,8 +4161,15 @@ module Stripe
|
|
3418
4161
|
# 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
4162
|
attr_accessor :return_url
|
3420
4163
|
|
3421
|
-
def initialize(
|
4164
|
+
def initialize(
|
4165
|
+
filters: nil,
|
4166
|
+
manual_entry: nil,
|
4167
|
+
permissions: nil,
|
4168
|
+
prefetch: nil,
|
4169
|
+
return_url: nil
|
4170
|
+
)
|
3422
4171
|
@filters = filters
|
4172
|
+
@manual_entry = manual_entry
|
3423
4173
|
@permissions = permissions
|
3424
4174
|
@prefetch = prefetch
|
3425
4175
|
@return_url = return_url
|
@@ -3480,6 +4230,10 @@ module Stripe
|
|
3480
4230
|
attr_accessor :link
|
3481
4231
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
3482
4232
|
attr_accessor :paypal
|
4233
|
+
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
4234
|
+
attr_accessor :payto
|
4235
|
+
# If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
4236
|
+
attr_accessor :pix
|
3483
4237
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
3484
4238
|
attr_accessor :sepa_debit
|
3485
4239
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -3494,6 +4248,8 @@ module Stripe
|
|
3494
4248
|
klarna: nil,
|
3495
4249
|
link: nil,
|
3496
4250
|
paypal: nil,
|
4251
|
+
payto: nil,
|
4252
|
+
pix: nil,
|
3497
4253
|
sepa_debit: nil,
|
3498
4254
|
us_bank_account: nil
|
3499
4255
|
)
|
@@ -3505,6 +4261,8 @@ module Stripe
|
|
3505
4261
|
@klarna = klarna
|
3506
4262
|
@link = link
|
3507
4263
|
@paypal = paypal
|
4264
|
+
@payto = payto
|
4265
|
+
@pix = pix
|
3508
4266
|
@sepa_debit = sepa_debit
|
3509
4267
|
@us_bank_account = us_bank_account
|
3510
4268
|
end
|
@@ -3586,6 +4344,10 @@ module Stripe
|
|
3586
4344
|
#
|
3587
4345
|
# 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
4346
|
attr_reader :customer
|
4347
|
+
# ID of the Account this SetupIntent belongs to, if one exists.
|
4348
|
+
#
|
4349
|
+
# 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.
|
4350
|
+
attr_reader :customer_account
|
3589
4351
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
3590
4352
|
attr_reader :description
|
3591
4353
|
# Indicates the directions of money movement for which this payment method is intended to be used.
|