stripe 17.1.0 → 17.2.0.pre.beta.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/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 +233 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +46 -0
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +44 -0
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +44 -0
- data/lib/stripe/object_types.rb +55 -0
- data/lib/stripe/params/account_create_params.rb +300 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +262 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +4 -1
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +4 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +4 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +4 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +715 -0
- data/lib/stripe/params/charge_update_params.rb +715 -0
- data/lib/stripe/params/checkout/session_create_params.rb +193 -3
- data/lib/stripe/params/checkout/session_list_params.rb +4 -0
- data/lib/stripe/params/checkout/session_update_params.rb +288 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/credit_note_list_params.rb +4 -0
- data/lib/stripe/params/customer_session_create_params.rb +36 -2
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +4 -1
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +34 -2
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +4 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +4 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +112 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +826 -9
- data/lib/stripe/params/invoice_item_create_params.rb +37 -1
- data/lib/stripe/params/invoice_item_list_params.rb +4 -0
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_list_params.rb +4 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +108 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_cancel_params.rb +13 -0
- data/lib/stripe/params/order_create_params.rb +1124 -0
- data/lib/stripe/params/order_line_item_list_params.rb +22 -0
- data/lib/stripe/params/order_list_line_items_params.rb +22 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_reopen_params.rb +13 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +1128 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +723 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +1197 -4
- data/lib/stripe/params/payment_intent_create_params.rb +1205 -4
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +50 -0
- data/lib/stripe/params/payment_intent_list_params.rb +4 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +1237 -5
- data/lib/stripe/params/payment_method_attach_params.rb +4 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +126 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +126 -0
- data/lib/stripe/params/payment_method_create_params.rb +97 -0
- data/lib/stripe/params/payment_method_update_params.rb +19 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/promotion_code_create_params.rb +4 -0
- data/lib/stripe/params/promotion_code_list_params.rb +4 -0
- data/lib/stripe/params/quote_create_params.rb +805 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +8 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +813 -4
- data/lib/stripe/params/setup_intent_confirm_params.rb +225 -3
- data/lib/stripe/params/setup_intent_create_params.rb +231 -3
- data/lib/stripe/params/setup_intent_list_params.rb +4 -0
- data/lib/stripe/params/setup_intent_update_params.rb +231 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +259 -5
- data/lib/stripe/params/subscription_item_create_params.rb +46 -2
- data/lib/stripe/params/subscription_item_update_params.rb +29 -1
- data/lib/stripe/params/subscription_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_list_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +238 -4
- data/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_id_create_params.rb +4 -1
- data/lib/stripe/params/tax_id_list_params.rb +4 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +97 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2248 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2294 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +493 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +493 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +98 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +61 -0
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +237 -0
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +17 -0
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +164 -0
- data/lib/stripe/resources/account.rb +166 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -0
- data/lib/stripe/resources/billing/credit_grant.rb +2 -0
- data/lib/stripe/resources/billing_portal/session.rb +2 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +79 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/cash_balance.rb +2 -0
- data/lib/stripe/resources/charge.rb +237 -1
- data/lib/stripe/resources/checkout/session.rb +154 -4
- data/lib/stripe/resources/confirmation_token.rb +155 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +18 -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 +38 -0
- data/lib/stripe/resources/discount.rb +2 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +27 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +67 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/identity/verification_session.rb +2 -0
- data/lib/stripe/resources/invoice.rb +152 -1
- data/lib/stripe/resources/invoice_item.rb +4 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +68 -1
- data/lib/stripe/resources/mandate.rb +71 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +987 -0
- data/lib/stripe/resources/payment_attempt_record.rb +203 -1
- data/lib/stripe/resources/payment_intent.rb +789 -4
- data/lib/stripe/resources/payment_method.rb +157 -0
- data/lib/stripe/resources/payment_method_configuration.rb +204 -0
- data/lib/stripe/resources/payment_record.rb +203 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/promotion_code.rb +2 -0
- data/lib/stripe/resources/quote.rb +571 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1150 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/setup_attempt.rb +63 -0
- data/lib/stripe/resources/setup_intent.rb +132 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +232 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/association.rb +86 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax_id.rb +4 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
- data/lib/stripe/resources/v2/billing/profile.rb +46 -0
- data/lib/stripe/resources/v2/core/account.rb +3906 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +477 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +81 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +30 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +148 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +217 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +109 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +228 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +116 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +242 -0
- data/lib/stripe/resources.rb +112 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +3 -1
- data/lib/stripe/services/v1_services.rb +8 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
- data/lib/stripe/services/v2/core/account_service.rb +76 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +4 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +73 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +63 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -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 +65 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +4 -1
- data/lib/stripe/services.rb +58 -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/rbi/stripe.rbi +145086 -86712
- metadata +337 -3
|
@@ -174,6 +174,31 @@ module Stripe
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
+
class Hooks < ::Stripe::RequestParams
|
|
178
|
+
class Inputs < ::Stripe::RequestParams
|
|
179
|
+
class Tax < ::Stripe::RequestParams
|
|
180
|
+
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
|
181
|
+
attr_accessor :calculation
|
|
182
|
+
|
|
183
|
+
def initialize(calculation: nil)
|
|
184
|
+
@calculation = calculation
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
# Tax arguments for automations
|
|
188
|
+
attr_accessor :tax
|
|
189
|
+
|
|
190
|
+
def initialize(tax: nil)
|
|
191
|
+
@tax = tax
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
# Arguments passed in automations
|
|
195
|
+
attr_accessor :inputs
|
|
196
|
+
|
|
197
|
+
def initialize(inputs: nil)
|
|
198
|
+
@inputs = inputs
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
177
202
|
class MandateData < ::Stripe::RequestParams
|
|
178
203
|
class CustomerAcceptance < ::Stripe::RequestParams
|
|
179
204
|
class Offline < ::Stripe::RequestParams; end
|
|
@@ -214,20 +239,713 @@ module Stripe
|
|
|
214
239
|
end
|
|
215
240
|
|
|
216
241
|
class PaymentDetails < ::Stripe::RequestParams
|
|
242
|
+
class CarRental < ::Stripe::RequestParams
|
|
243
|
+
class Affiliate < ::Stripe::RequestParams
|
|
244
|
+
# The name of the affiliate that originated the purchase.
|
|
245
|
+
attr_accessor :name
|
|
246
|
+
|
|
247
|
+
def initialize(name: nil)
|
|
248
|
+
@name = name
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
class Delivery < ::Stripe::RequestParams
|
|
253
|
+
class Recipient < ::Stripe::RequestParams
|
|
254
|
+
# The email of the recipient the ticket is delivered to.
|
|
255
|
+
attr_accessor :email
|
|
256
|
+
# The name of the recipient the ticket is delivered to.
|
|
257
|
+
attr_accessor :name
|
|
258
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
259
|
+
attr_accessor :phone
|
|
260
|
+
|
|
261
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
262
|
+
@email = email
|
|
263
|
+
@name = name
|
|
264
|
+
@phone = phone
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
# The delivery method for the payment
|
|
268
|
+
attr_accessor :mode
|
|
269
|
+
# Details of the recipient.
|
|
270
|
+
attr_accessor :recipient
|
|
271
|
+
|
|
272
|
+
def initialize(mode: nil, recipient: nil)
|
|
273
|
+
@mode = mode
|
|
274
|
+
@recipient = recipient
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
class Distance < ::Stripe::RequestParams
|
|
279
|
+
# Distance traveled.
|
|
280
|
+
attr_accessor :amount
|
|
281
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
|
282
|
+
attr_accessor :unit
|
|
283
|
+
|
|
284
|
+
def initialize(amount: nil, unit: nil)
|
|
285
|
+
@amount = amount
|
|
286
|
+
@unit = unit
|
|
287
|
+
end
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
class Driver < ::Stripe::RequestParams
|
|
291
|
+
# Driver's identification number.
|
|
292
|
+
attr_accessor :driver_identification_number
|
|
293
|
+
# Driver's tax number.
|
|
294
|
+
attr_accessor :driver_tax_number
|
|
295
|
+
# Full name of the person or entity on the car reservation.
|
|
296
|
+
attr_accessor :name
|
|
297
|
+
|
|
298
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
|
299
|
+
@driver_identification_number = driver_identification_number
|
|
300
|
+
@driver_tax_number = driver_tax_number
|
|
301
|
+
@name = name
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
class PickupAddress < ::Stripe::RequestParams
|
|
306
|
+
# City, district, suburb, town, or village.
|
|
307
|
+
attr_accessor :city
|
|
308
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
309
|
+
attr_accessor :country
|
|
310
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
311
|
+
attr_accessor :line1
|
|
312
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
313
|
+
attr_accessor :line2
|
|
314
|
+
# ZIP or postal code.
|
|
315
|
+
attr_accessor :postal_code
|
|
316
|
+
# State, county, province, or region.
|
|
317
|
+
attr_accessor :state
|
|
318
|
+
|
|
319
|
+
def initialize(
|
|
320
|
+
city: nil,
|
|
321
|
+
country: nil,
|
|
322
|
+
line1: nil,
|
|
323
|
+
line2: nil,
|
|
324
|
+
postal_code: nil,
|
|
325
|
+
state: nil
|
|
326
|
+
)
|
|
327
|
+
@city = city
|
|
328
|
+
@country = country
|
|
329
|
+
@line1 = line1
|
|
330
|
+
@line2 = line2
|
|
331
|
+
@postal_code = postal_code
|
|
332
|
+
@state = state
|
|
333
|
+
end
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
class ReturnAddress < ::Stripe::RequestParams
|
|
337
|
+
# City, district, suburb, town, or village.
|
|
338
|
+
attr_accessor :city
|
|
339
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
340
|
+
attr_accessor :country
|
|
341
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
342
|
+
attr_accessor :line1
|
|
343
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
344
|
+
attr_accessor :line2
|
|
345
|
+
# ZIP or postal code.
|
|
346
|
+
attr_accessor :postal_code
|
|
347
|
+
# State, county, province, or region.
|
|
348
|
+
attr_accessor :state
|
|
349
|
+
|
|
350
|
+
def initialize(
|
|
351
|
+
city: nil,
|
|
352
|
+
country: nil,
|
|
353
|
+
line1: nil,
|
|
354
|
+
line2: nil,
|
|
355
|
+
postal_code: nil,
|
|
356
|
+
state: nil
|
|
357
|
+
)
|
|
358
|
+
@city = city
|
|
359
|
+
@country = country
|
|
360
|
+
@line1 = line1
|
|
361
|
+
@line2 = line2
|
|
362
|
+
@postal_code = postal_code
|
|
363
|
+
@state = state
|
|
364
|
+
end
|
|
365
|
+
end
|
|
366
|
+
# Affiliate details for this purchase.
|
|
367
|
+
attr_accessor :affiliate
|
|
368
|
+
# The booking number associated with the car rental.
|
|
369
|
+
attr_accessor :booking_number
|
|
370
|
+
# Class code of the car.
|
|
371
|
+
attr_accessor :car_class_code
|
|
372
|
+
# Make of the car.
|
|
373
|
+
attr_accessor :car_make
|
|
374
|
+
# Model of the car.
|
|
375
|
+
attr_accessor :car_model
|
|
376
|
+
# The name of the rental car company.
|
|
377
|
+
attr_accessor :company
|
|
378
|
+
# The customer service phone number of the car rental company.
|
|
379
|
+
attr_accessor :customer_service_phone_number
|
|
380
|
+
# Number of days the car is being rented.
|
|
381
|
+
attr_accessor :days_rented
|
|
382
|
+
# Delivery details for this purchase.
|
|
383
|
+
attr_accessor :delivery
|
|
384
|
+
# The details of the distance traveled during the rental period.
|
|
385
|
+
attr_accessor :distance
|
|
386
|
+
# The details of the passengers in the travel reservation
|
|
387
|
+
attr_accessor :drivers
|
|
388
|
+
# List of additional charges being billed.
|
|
389
|
+
attr_accessor :extra_charges
|
|
390
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
|
391
|
+
attr_accessor :no_show
|
|
392
|
+
# Car pick-up address.
|
|
393
|
+
attr_accessor :pickup_address
|
|
394
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
|
395
|
+
attr_accessor :pickup_at
|
|
396
|
+
# Name of the pickup location.
|
|
397
|
+
attr_accessor :pickup_location_name
|
|
398
|
+
# Rental rate.
|
|
399
|
+
attr_accessor :rate_amount
|
|
400
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
|
401
|
+
attr_accessor :rate_interval
|
|
402
|
+
# The name of the person or entity renting the car.
|
|
403
|
+
attr_accessor :renter_name
|
|
404
|
+
# Car return address.
|
|
405
|
+
attr_accessor :return_address
|
|
406
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
|
407
|
+
attr_accessor :return_at
|
|
408
|
+
# Name of the return location.
|
|
409
|
+
attr_accessor :return_location_name
|
|
410
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
|
411
|
+
attr_accessor :tax_exempt
|
|
412
|
+
# The vehicle identification number.
|
|
413
|
+
attr_accessor :vehicle_identification_number
|
|
414
|
+
|
|
415
|
+
def initialize(
|
|
416
|
+
affiliate: nil,
|
|
417
|
+
booking_number: nil,
|
|
418
|
+
car_class_code: nil,
|
|
419
|
+
car_make: nil,
|
|
420
|
+
car_model: nil,
|
|
421
|
+
company: nil,
|
|
422
|
+
customer_service_phone_number: nil,
|
|
423
|
+
days_rented: nil,
|
|
424
|
+
delivery: nil,
|
|
425
|
+
distance: nil,
|
|
426
|
+
drivers: nil,
|
|
427
|
+
extra_charges: nil,
|
|
428
|
+
no_show: nil,
|
|
429
|
+
pickup_address: nil,
|
|
430
|
+
pickup_at: nil,
|
|
431
|
+
pickup_location_name: nil,
|
|
432
|
+
rate_amount: nil,
|
|
433
|
+
rate_interval: nil,
|
|
434
|
+
renter_name: nil,
|
|
435
|
+
return_address: nil,
|
|
436
|
+
return_at: nil,
|
|
437
|
+
return_location_name: nil,
|
|
438
|
+
tax_exempt: nil,
|
|
439
|
+
vehicle_identification_number: nil
|
|
440
|
+
)
|
|
441
|
+
@affiliate = affiliate
|
|
442
|
+
@booking_number = booking_number
|
|
443
|
+
@car_class_code = car_class_code
|
|
444
|
+
@car_make = car_make
|
|
445
|
+
@car_model = car_model
|
|
446
|
+
@company = company
|
|
447
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
448
|
+
@days_rented = days_rented
|
|
449
|
+
@delivery = delivery
|
|
450
|
+
@distance = distance
|
|
451
|
+
@drivers = drivers
|
|
452
|
+
@extra_charges = extra_charges
|
|
453
|
+
@no_show = no_show
|
|
454
|
+
@pickup_address = pickup_address
|
|
455
|
+
@pickup_at = pickup_at
|
|
456
|
+
@pickup_location_name = pickup_location_name
|
|
457
|
+
@rate_amount = rate_amount
|
|
458
|
+
@rate_interval = rate_interval
|
|
459
|
+
@renter_name = renter_name
|
|
460
|
+
@return_address = return_address
|
|
461
|
+
@return_at = return_at
|
|
462
|
+
@return_location_name = return_location_name
|
|
463
|
+
@tax_exempt = tax_exempt
|
|
464
|
+
@vehicle_identification_number = vehicle_identification_number
|
|
465
|
+
end
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
class EventDetails < ::Stripe::RequestParams
|
|
469
|
+
class Address < ::Stripe::RequestParams
|
|
470
|
+
# City, district, suburb, town, or village.
|
|
471
|
+
attr_accessor :city
|
|
472
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
473
|
+
attr_accessor :country
|
|
474
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
475
|
+
attr_accessor :line1
|
|
476
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
477
|
+
attr_accessor :line2
|
|
478
|
+
# ZIP or postal code.
|
|
479
|
+
attr_accessor :postal_code
|
|
480
|
+
# State, county, province, or region.
|
|
481
|
+
attr_accessor :state
|
|
482
|
+
|
|
483
|
+
def initialize(
|
|
484
|
+
city: nil,
|
|
485
|
+
country: nil,
|
|
486
|
+
line1: nil,
|
|
487
|
+
line2: nil,
|
|
488
|
+
postal_code: nil,
|
|
489
|
+
state: nil
|
|
490
|
+
)
|
|
491
|
+
@city = city
|
|
492
|
+
@country = country
|
|
493
|
+
@line1 = line1
|
|
494
|
+
@line2 = line2
|
|
495
|
+
@postal_code = postal_code
|
|
496
|
+
@state = state
|
|
497
|
+
end
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
class Affiliate < ::Stripe::RequestParams
|
|
501
|
+
# The name of the affiliate that originated the purchase.
|
|
502
|
+
attr_accessor :name
|
|
503
|
+
|
|
504
|
+
def initialize(name: nil)
|
|
505
|
+
@name = name
|
|
506
|
+
end
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
class Delivery < ::Stripe::RequestParams
|
|
510
|
+
class Recipient < ::Stripe::RequestParams
|
|
511
|
+
# The email of the recipient the ticket is delivered to.
|
|
512
|
+
attr_accessor :email
|
|
513
|
+
# The name of the recipient the ticket is delivered to.
|
|
514
|
+
attr_accessor :name
|
|
515
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
516
|
+
attr_accessor :phone
|
|
517
|
+
|
|
518
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
519
|
+
@email = email
|
|
520
|
+
@name = name
|
|
521
|
+
@phone = phone
|
|
522
|
+
end
|
|
523
|
+
end
|
|
524
|
+
# The delivery method for the payment
|
|
525
|
+
attr_accessor :mode
|
|
526
|
+
# Details of the recipient.
|
|
527
|
+
attr_accessor :recipient
|
|
528
|
+
|
|
529
|
+
def initialize(mode: nil, recipient: nil)
|
|
530
|
+
@mode = mode
|
|
531
|
+
@recipient = recipient
|
|
532
|
+
end
|
|
533
|
+
end
|
|
534
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
|
535
|
+
attr_accessor :access_controlled_venue
|
|
536
|
+
# The event location's address.
|
|
537
|
+
attr_accessor :address
|
|
538
|
+
# Affiliate details for this purchase.
|
|
539
|
+
attr_accessor :affiliate
|
|
540
|
+
# The name of the company
|
|
541
|
+
attr_accessor :company
|
|
542
|
+
# Delivery details for this purchase.
|
|
543
|
+
attr_accessor :delivery
|
|
544
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
|
545
|
+
attr_accessor :ends_at
|
|
546
|
+
# Type of the event entertainment (concert, sports event etc)
|
|
547
|
+
attr_accessor :genre
|
|
548
|
+
# The name of the event.
|
|
549
|
+
attr_accessor :name
|
|
550
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
|
551
|
+
attr_accessor :starts_at
|
|
552
|
+
|
|
553
|
+
def initialize(
|
|
554
|
+
access_controlled_venue: nil,
|
|
555
|
+
address: nil,
|
|
556
|
+
affiliate: nil,
|
|
557
|
+
company: nil,
|
|
558
|
+
delivery: nil,
|
|
559
|
+
ends_at: nil,
|
|
560
|
+
genre: nil,
|
|
561
|
+
name: nil,
|
|
562
|
+
starts_at: nil
|
|
563
|
+
)
|
|
564
|
+
@access_controlled_venue = access_controlled_venue
|
|
565
|
+
@address = address
|
|
566
|
+
@affiliate = affiliate
|
|
567
|
+
@company = company
|
|
568
|
+
@delivery = delivery
|
|
569
|
+
@ends_at = ends_at
|
|
570
|
+
@genre = genre
|
|
571
|
+
@name = name
|
|
572
|
+
@starts_at = starts_at
|
|
573
|
+
end
|
|
574
|
+
end
|
|
575
|
+
|
|
576
|
+
class Flight < ::Stripe::RequestParams
|
|
577
|
+
class Affiliate < ::Stripe::RequestParams
|
|
578
|
+
# The name of the affiliate that originated the purchase.
|
|
579
|
+
attr_accessor :name
|
|
580
|
+
|
|
581
|
+
def initialize(name: nil)
|
|
582
|
+
@name = name
|
|
583
|
+
end
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
class Delivery < ::Stripe::RequestParams
|
|
587
|
+
class Recipient < ::Stripe::RequestParams
|
|
588
|
+
# The email of the recipient the ticket is delivered to.
|
|
589
|
+
attr_accessor :email
|
|
590
|
+
# The name of the recipient the ticket is delivered to.
|
|
591
|
+
attr_accessor :name
|
|
592
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
593
|
+
attr_accessor :phone
|
|
594
|
+
|
|
595
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
596
|
+
@email = email
|
|
597
|
+
@name = name
|
|
598
|
+
@phone = phone
|
|
599
|
+
end
|
|
600
|
+
end
|
|
601
|
+
# The delivery method for the payment
|
|
602
|
+
attr_accessor :mode
|
|
603
|
+
# Details of the recipient.
|
|
604
|
+
attr_accessor :recipient
|
|
605
|
+
|
|
606
|
+
def initialize(mode: nil, recipient: nil)
|
|
607
|
+
@mode = mode
|
|
608
|
+
@recipient = recipient
|
|
609
|
+
end
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
class Passenger < ::Stripe::RequestParams
|
|
613
|
+
# Full name of the person or entity on the flight reservation.
|
|
614
|
+
attr_accessor :name
|
|
615
|
+
|
|
616
|
+
def initialize(name: nil)
|
|
617
|
+
@name = name
|
|
618
|
+
end
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
class Segment < ::Stripe::RequestParams
|
|
622
|
+
# The flight segment amount.
|
|
623
|
+
attr_accessor :amount
|
|
624
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
|
625
|
+
attr_accessor :arrival_airport
|
|
626
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
|
627
|
+
attr_accessor :arrives_at
|
|
628
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
|
629
|
+
attr_accessor :carrier
|
|
630
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
|
631
|
+
attr_accessor :departs_at
|
|
632
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
|
633
|
+
attr_accessor :departure_airport
|
|
634
|
+
# The flight number associated with the segment
|
|
635
|
+
attr_accessor :flight_number
|
|
636
|
+
# The fare class for the segment.
|
|
637
|
+
attr_accessor :service_class
|
|
638
|
+
|
|
639
|
+
def initialize(
|
|
640
|
+
amount: nil,
|
|
641
|
+
arrival_airport: nil,
|
|
642
|
+
arrives_at: nil,
|
|
643
|
+
carrier: nil,
|
|
644
|
+
departs_at: nil,
|
|
645
|
+
departure_airport: nil,
|
|
646
|
+
flight_number: nil,
|
|
647
|
+
service_class: nil
|
|
648
|
+
)
|
|
649
|
+
@amount = amount
|
|
650
|
+
@arrival_airport = arrival_airport
|
|
651
|
+
@arrives_at = arrives_at
|
|
652
|
+
@carrier = carrier
|
|
653
|
+
@departs_at = departs_at
|
|
654
|
+
@departure_airport = departure_airport
|
|
655
|
+
@flight_number = flight_number
|
|
656
|
+
@service_class = service_class
|
|
657
|
+
end
|
|
658
|
+
end
|
|
659
|
+
# Affiliate details for this purchase.
|
|
660
|
+
attr_accessor :affiliate
|
|
661
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
|
662
|
+
attr_accessor :agency_number
|
|
663
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
|
664
|
+
attr_accessor :carrier
|
|
665
|
+
# Delivery details for this purchase.
|
|
666
|
+
attr_accessor :delivery
|
|
667
|
+
# The name of the person or entity on the reservation.
|
|
668
|
+
attr_accessor :passenger_name
|
|
669
|
+
# The details of the passengers in the travel reservation.
|
|
670
|
+
attr_accessor :passengers
|
|
671
|
+
# The individual flight segments associated with the trip.
|
|
672
|
+
attr_accessor :segments
|
|
673
|
+
# The ticket number associated with the travel reservation.
|
|
674
|
+
attr_accessor :ticket_number
|
|
675
|
+
|
|
676
|
+
def initialize(
|
|
677
|
+
affiliate: nil,
|
|
678
|
+
agency_number: nil,
|
|
679
|
+
carrier: nil,
|
|
680
|
+
delivery: nil,
|
|
681
|
+
passenger_name: nil,
|
|
682
|
+
passengers: nil,
|
|
683
|
+
segments: nil,
|
|
684
|
+
ticket_number: nil
|
|
685
|
+
)
|
|
686
|
+
@affiliate = affiliate
|
|
687
|
+
@agency_number = agency_number
|
|
688
|
+
@carrier = carrier
|
|
689
|
+
@delivery = delivery
|
|
690
|
+
@passenger_name = passenger_name
|
|
691
|
+
@passengers = passengers
|
|
692
|
+
@segments = segments
|
|
693
|
+
@ticket_number = ticket_number
|
|
694
|
+
end
|
|
695
|
+
end
|
|
696
|
+
|
|
697
|
+
class Lodging < ::Stripe::RequestParams
|
|
698
|
+
class Address < ::Stripe::RequestParams
|
|
699
|
+
# City, district, suburb, town, or village.
|
|
700
|
+
attr_accessor :city
|
|
701
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
702
|
+
attr_accessor :country
|
|
703
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
704
|
+
attr_accessor :line1
|
|
705
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
706
|
+
attr_accessor :line2
|
|
707
|
+
# ZIP or postal code.
|
|
708
|
+
attr_accessor :postal_code
|
|
709
|
+
# State, county, province, or region.
|
|
710
|
+
attr_accessor :state
|
|
711
|
+
|
|
712
|
+
def initialize(
|
|
713
|
+
city: nil,
|
|
714
|
+
country: nil,
|
|
715
|
+
line1: nil,
|
|
716
|
+
line2: nil,
|
|
717
|
+
postal_code: nil,
|
|
718
|
+
state: nil
|
|
719
|
+
)
|
|
720
|
+
@city = city
|
|
721
|
+
@country = country
|
|
722
|
+
@line1 = line1
|
|
723
|
+
@line2 = line2
|
|
724
|
+
@postal_code = postal_code
|
|
725
|
+
@state = state
|
|
726
|
+
end
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
class Affiliate < ::Stripe::RequestParams
|
|
730
|
+
# The name of the affiliate that originated the purchase.
|
|
731
|
+
attr_accessor :name
|
|
732
|
+
|
|
733
|
+
def initialize(name: nil)
|
|
734
|
+
@name = name
|
|
735
|
+
end
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
class Delivery < ::Stripe::RequestParams
|
|
739
|
+
class Recipient < ::Stripe::RequestParams
|
|
740
|
+
# The email of the recipient the ticket is delivered to.
|
|
741
|
+
attr_accessor :email
|
|
742
|
+
# The name of the recipient the ticket is delivered to.
|
|
743
|
+
attr_accessor :name
|
|
744
|
+
# The phone number of the recipient the ticket is delivered to.
|
|
745
|
+
attr_accessor :phone
|
|
746
|
+
|
|
747
|
+
def initialize(email: nil, name: nil, phone: nil)
|
|
748
|
+
@email = email
|
|
749
|
+
@name = name
|
|
750
|
+
@phone = phone
|
|
751
|
+
end
|
|
752
|
+
end
|
|
753
|
+
# The delivery method for the payment
|
|
754
|
+
attr_accessor :mode
|
|
755
|
+
# Details of the recipient.
|
|
756
|
+
attr_accessor :recipient
|
|
757
|
+
|
|
758
|
+
def initialize(mode: nil, recipient: nil)
|
|
759
|
+
@mode = mode
|
|
760
|
+
@recipient = recipient
|
|
761
|
+
end
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
class Passenger < ::Stripe::RequestParams
|
|
765
|
+
# Full name of the person or entity on the lodging reservation.
|
|
766
|
+
attr_accessor :name
|
|
767
|
+
|
|
768
|
+
def initialize(name: nil)
|
|
769
|
+
@name = name
|
|
770
|
+
end
|
|
771
|
+
end
|
|
772
|
+
# The lodging location's address.
|
|
773
|
+
attr_accessor :address
|
|
774
|
+
# The number of adults on the booking
|
|
775
|
+
attr_accessor :adults
|
|
776
|
+
# Affiliate details for this purchase.
|
|
777
|
+
attr_accessor :affiliate
|
|
778
|
+
# The booking number associated with the lodging reservation.
|
|
779
|
+
attr_accessor :booking_number
|
|
780
|
+
# The lodging category
|
|
781
|
+
attr_accessor :category
|
|
782
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
|
783
|
+
attr_accessor :checkin_at
|
|
784
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
|
785
|
+
attr_accessor :checkout_at
|
|
786
|
+
# The customer service phone number of the lodging company.
|
|
787
|
+
attr_accessor :customer_service_phone_number
|
|
788
|
+
# The daily lodging room rate.
|
|
789
|
+
attr_accessor :daily_room_rate_amount
|
|
790
|
+
# Delivery details for this purchase.
|
|
791
|
+
attr_accessor :delivery
|
|
792
|
+
# List of additional charges being billed.
|
|
793
|
+
attr_accessor :extra_charges
|
|
794
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
|
795
|
+
attr_accessor :fire_safety_act_compliance
|
|
796
|
+
# The name of the lodging location.
|
|
797
|
+
attr_accessor :name
|
|
798
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
|
799
|
+
attr_accessor :no_show
|
|
800
|
+
# The number of rooms on the booking
|
|
801
|
+
attr_accessor :number_of_rooms
|
|
802
|
+
# The details of the passengers in the travel reservation
|
|
803
|
+
attr_accessor :passengers
|
|
804
|
+
# The phone number of the lodging location.
|
|
805
|
+
attr_accessor :property_phone_number
|
|
806
|
+
# The room class for this purchase.
|
|
807
|
+
attr_accessor :room_class
|
|
808
|
+
# The number of room nights
|
|
809
|
+
attr_accessor :room_nights
|
|
810
|
+
# The total tax amount associating with the room reservation.
|
|
811
|
+
attr_accessor :total_room_tax_amount
|
|
812
|
+
# The total tax amount
|
|
813
|
+
attr_accessor :total_tax_amount
|
|
814
|
+
|
|
815
|
+
def initialize(
|
|
816
|
+
address: nil,
|
|
817
|
+
adults: nil,
|
|
818
|
+
affiliate: nil,
|
|
819
|
+
booking_number: nil,
|
|
820
|
+
category: nil,
|
|
821
|
+
checkin_at: nil,
|
|
822
|
+
checkout_at: nil,
|
|
823
|
+
customer_service_phone_number: nil,
|
|
824
|
+
daily_room_rate_amount: nil,
|
|
825
|
+
delivery: nil,
|
|
826
|
+
extra_charges: nil,
|
|
827
|
+
fire_safety_act_compliance: nil,
|
|
828
|
+
name: nil,
|
|
829
|
+
no_show: nil,
|
|
830
|
+
number_of_rooms: nil,
|
|
831
|
+
passengers: nil,
|
|
832
|
+
property_phone_number: nil,
|
|
833
|
+
room_class: nil,
|
|
834
|
+
room_nights: nil,
|
|
835
|
+
total_room_tax_amount: nil,
|
|
836
|
+
total_tax_amount: nil
|
|
837
|
+
)
|
|
838
|
+
@address = address
|
|
839
|
+
@adults = adults
|
|
840
|
+
@affiliate = affiliate
|
|
841
|
+
@booking_number = booking_number
|
|
842
|
+
@category = category
|
|
843
|
+
@checkin_at = checkin_at
|
|
844
|
+
@checkout_at = checkout_at
|
|
845
|
+
@customer_service_phone_number = customer_service_phone_number
|
|
846
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
|
847
|
+
@delivery = delivery
|
|
848
|
+
@extra_charges = extra_charges
|
|
849
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
|
850
|
+
@name = name
|
|
851
|
+
@no_show = no_show
|
|
852
|
+
@number_of_rooms = number_of_rooms
|
|
853
|
+
@passengers = passengers
|
|
854
|
+
@property_phone_number = property_phone_number
|
|
855
|
+
@room_class = room_class
|
|
856
|
+
@room_nights = room_nights
|
|
857
|
+
@total_room_tax_amount = total_room_tax_amount
|
|
858
|
+
@total_tax_amount = total_tax_amount
|
|
859
|
+
end
|
|
860
|
+
end
|
|
861
|
+
|
|
862
|
+
class Subscription < ::Stripe::RequestParams
|
|
863
|
+
class Affiliate < ::Stripe::RequestParams
|
|
864
|
+
# The name of the affiliate that originated the purchase.
|
|
865
|
+
attr_accessor :name
|
|
866
|
+
|
|
867
|
+
def initialize(name: nil)
|
|
868
|
+
@name = name
|
|
869
|
+
end
|
|
870
|
+
end
|
|
871
|
+
|
|
872
|
+
class BillingInterval < ::Stripe::RequestParams
|
|
873
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
874
|
+
attr_accessor :count
|
|
875
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
876
|
+
attr_accessor :interval
|
|
877
|
+
|
|
878
|
+
def initialize(count: nil, interval: nil)
|
|
879
|
+
@count = count
|
|
880
|
+
@interval = interval
|
|
881
|
+
end
|
|
882
|
+
end
|
|
883
|
+
# Affiliate details for this purchase.
|
|
884
|
+
attr_accessor :affiliate
|
|
885
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
|
886
|
+
attr_accessor :auto_renewal
|
|
887
|
+
# Subscription billing details for this purchase.
|
|
888
|
+
attr_accessor :billing_interval
|
|
889
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
|
890
|
+
attr_accessor :ends_at
|
|
891
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
|
892
|
+
attr_accessor :name
|
|
893
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
|
894
|
+
attr_accessor :starts_at
|
|
895
|
+
|
|
896
|
+
def initialize(
|
|
897
|
+
affiliate: nil,
|
|
898
|
+
auto_renewal: nil,
|
|
899
|
+
billing_interval: nil,
|
|
900
|
+
ends_at: nil,
|
|
901
|
+
name: nil,
|
|
902
|
+
starts_at: nil
|
|
903
|
+
)
|
|
904
|
+
@affiliate = affiliate
|
|
905
|
+
@auto_renewal = auto_renewal
|
|
906
|
+
@billing_interval = billing_interval
|
|
907
|
+
@ends_at = ends_at
|
|
908
|
+
@name = name
|
|
909
|
+
@starts_at = starts_at
|
|
910
|
+
end
|
|
911
|
+
end
|
|
912
|
+
# Car rental details for this PaymentIntent.
|
|
913
|
+
attr_accessor :car_rental
|
|
217
914
|
# A unique value to identify the customer. This field is available only for card payments.
|
|
218
915
|
#
|
|
219
916
|
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
220
917
|
attr_accessor :customer_reference
|
|
918
|
+
# Event details for this PaymentIntent
|
|
919
|
+
attr_accessor :event_details
|
|
920
|
+
# Flight reservation details for this PaymentIntent
|
|
921
|
+
attr_accessor :flight
|
|
922
|
+
# Lodging reservation details for this PaymentIntent
|
|
923
|
+
attr_accessor :lodging
|
|
221
924
|
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
222
925
|
#
|
|
223
926
|
# Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
|
|
224
927
|
#
|
|
225
928
|
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
|
|
226
929
|
attr_accessor :order_reference
|
|
930
|
+
# Subscription details for this PaymentIntent
|
|
931
|
+
attr_accessor :subscription
|
|
227
932
|
|
|
228
|
-
def initialize(
|
|
933
|
+
def initialize(
|
|
934
|
+
car_rental: nil,
|
|
935
|
+
customer_reference: nil,
|
|
936
|
+
event_details: nil,
|
|
937
|
+
flight: nil,
|
|
938
|
+
lodging: nil,
|
|
939
|
+
order_reference: nil,
|
|
940
|
+
subscription: nil
|
|
941
|
+
)
|
|
942
|
+
@car_rental = car_rental
|
|
229
943
|
@customer_reference = customer_reference
|
|
944
|
+
@event_details = event_details
|
|
945
|
+
@flight = flight
|
|
946
|
+
@lodging = lodging
|
|
230
947
|
@order_reference = order_reference
|
|
948
|
+
@subscription = subscription
|
|
231
949
|
end
|
|
232
950
|
end
|
|
233
951
|
|
|
@@ -368,8 +1086,18 @@ module Stripe
|
|
|
368
1086
|
end
|
|
369
1087
|
|
|
370
1088
|
class Giropay < ::Stripe::RequestParams; end
|
|
1089
|
+
class Gopay < ::Stripe::RequestParams; end
|
|
371
1090
|
class Grabpay < ::Stripe::RequestParams; end
|
|
372
1091
|
|
|
1092
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
1093
|
+
# Bank where the account is held.
|
|
1094
|
+
attr_accessor :bank
|
|
1095
|
+
|
|
1096
|
+
def initialize(bank: nil)
|
|
1097
|
+
@bank = bank
|
|
1098
|
+
end
|
|
1099
|
+
end
|
|
1100
|
+
|
|
373
1101
|
class Ideal < ::Stripe::RequestParams
|
|
374
1102
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
375
1103
|
attr_accessor :bank
|
|
@@ -467,8 +1195,26 @@ module Stripe
|
|
|
467
1195
|
class Payco < ::Stripe::RequestParams; end
|
|
468
1196
|
class Paynow < ::Stripe::RequestParams; end
|
|
469
1197
|
class Paypal < ::Stripe::RequestParams; end
|
|
1198
|
+
class Paypay < ::Stripe::RequestParams; end
|
|
1199
|
+
|
|
1200
|
+
class Payto < ::Stripe::RequestParams
|
|
1201
|
+
# The account number for the bank account.
|
|
1202
|
+
attr_accessor :account_number
|
|
1203
|
+
# Bank-State-Branch number of the bank account.
|
|
1204
|
+
attr_accessor :bsb_number
|
|
1205
|
+
# The PayID alias for the bank account.
|
|
1206
|
+
attr_accessor :pay_id
|
|
1207
|
+
|
|
1208
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
|
1209
|
+
@account_number = account_number
|
|
1210
|
+
@bsb_number = bsb_number
|
|
1211
|
+
@pay_id = pay_id
|
|
1212
|
+
end
|
|
1213
|
+
end
|
|
1214
|
+
|
|
470
1215
|
class Pix < ::Stripe::RequestParams; end
|
|
471
1216
|
class Promptpay < ::Stripe::RequestParams; end
|
|
1217
|
+
class Qris < ::Stripe::RequestParams; end
|
|
472
1218
|
|
|
473
1219
|
class RadarOptions < ::Stripe::RequestParams
|
|
474
1220
|
# 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.
|
|
@@ -479,6 +1225,29 @@ module Stripe
|
|
|
479
1225
|
end
|
|
480
1226
|
end
|
|
481
1227
|
|
|
1228
|
+
class Rechnung < ::Stripe::RequestParams
|
|
1229
|
+
class Dob < ::Stripe::RequestParams
|
|
1230
|
+
# The day of birth, between 1 and 31.
|
|
1231
|
+
attr_accessor :day
|
|
1232
|
+
# The month of birth, between 1 and 12.
|
|
1233
|
+
attr_accessor :month
|
|
1234
|
+
# The four-digit year of birth.
|
|
1235
|
+
attr_accessor :year
|
|
1236
|
+
|
|
1237
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
1238
|
+
@day = day
|
|
1239
|
+
@month = month
|
|
1240
|
+
@year = year
|
|
1241
|
+
end
|
|
1242
|
+
end
|
|
1243
|
+
# Customer's date of birth
|
|
1244
|
+
attr_accessor :dob
|
|
1245
|
+
|
|
1246
|
+
def initialize(dob: nil)
|
|
1247
|
+
@dob = dob
|
|
1248
|
+
end
|
|
1249
|
+
end
|
|
1250
|
+
|
|
482
1251
|
class RevolutPay < ::Stripe::RequestParams; end
|
|
483
1252
|
class SamsungPay < ::Stripe::RequestParams; end
|
|
484
1253
|
class Satispay < ::Stripe::RequestParams; end
|
|
@@ -492,6 +1261,8 @@ module Stripe
|
|
|
492
1261
|
end
|
|
493
1262
|
end
|
|
494
1263
|
|
|
1264
|
+
class Shopeepay < ::Stripe::RequestParams; end
|
|
1265
|
+
|
|
495
1266
|
class Sofort < ::Stripe::RequestParams
|
|
496
1267
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
497
1268
|
attr_accessor :country
|
|
@@ -501,6 +1272,18 @@ module Stripe
|
|
|
501
1272
|
end
|
|
502
1273
|
end
|
|
503
1274
|
|
|
1275
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
1276
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
1277
|
+
attr_accessor :account
|
|
1278
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
1279
|
+
attr_accessor :source_type
|
|
1280
|
+
|
|
1281
|
+
def initialize(account: nil, source_type: nil)
|
|
1282
|
+
@account = account
|
|
1283
|
+
@source_type = source_type
|
|
1284
|
+
end
|
|
1285
|
+
end
|
|
1286
|
+
|
|
504
1287
|
class Swish < ::Stripe::RequestParams; end
|
|
505
1288
|
class Twint < ::Stripe::RequestParams; end
|
|
506
1289
|
|
|
@@ -573,8 +1356,12 @@ module Stripe
|
|
|
573
1356
|
attr_accessor :fpx
|
|
574
1357
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
|
575
1358
|
attr_accessor :giropay
|
|
1359
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
|
1360
|
+
attr_accessor :gopay
|
|
576
1361
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
|
577
1362
|
attr_accessor :grabpay
|
|
1363
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
|
1364
|
+
attr_accessor :id_bank_transfer
|
|
578
1365
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
|
579
1366
|
attr_accessor :ideal
|
|
580
1367
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
|
@@ -613,12 +1400,20 @@ module Stripe
|
|
|
613
1400
|
attr_accessor :paynow
|
|
614
1401
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
615
1402
|
attr_accessor :paypal
|
|
1403
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
|
1404
|
+
attr_accessor :paypay
|
|
1405
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
1406
|
+
attr_accessor :payto
|
|
616
1407
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
617
1408
|
attr_accessor :pix
|
|
618
1409
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
619
1410
|
attr_accessor :promptpay
|
|
1411
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
|
1412
|
+
attr_accessor :qris
|
|
620
1413
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
|
621
1414
|
attr_accessor :radar_options
|
|
1415
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
|
1416
|
+
attr_accessor :rechnung
|
|
622
1417
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
623
1418
|
attr_accessor :revolut_pay
|
|
624
1419
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
|
@@ -627,8 +1422,12 @@ module Stripe
|
|
|
627
1422
|
attr_accessor :satispay
|
|
628
1423
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
|
629
1424
|
attr_accessor :sepa_debit
|
|
1425
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
|
1426
|
+
attr_accessor :shopeepay
|
|
630
1427
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
|
631
1428
|
attr_accessor :sofort
|
|
1429
|
+
# This hash contains details about the Stripe balance payment method.
|
|
1430
|
+
attr_accessor :stripe_balance
|
|
632
1431
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
|
633
1432
|
attr_accessor :swish
|
|
634
1433
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
|
@@ -663,7 +1462,9 @@ module Stripe
|
|
|
663
1462
|
eps: nil,
|
|
664
1463
|
fpx: nil,
|
|
665
1464
|
giropay: nil,
|
|
1465
|
+
gopay: nil,
|
|
666
1466
|
grabpay: nil,
|
|
1467
|
+
id_bank_transfer: nil,
|
|
667
1468
|
ideal: nil,
|
|
668
1469
|
interac_present: nil,
|
|
669
1470
|
kakao_pay: nil,
|
|
@@ -683,14 +1484,20 @@ module Stripe
|
|
|
683
1484
|
payco: nil,
|
|
684
1485
|
paynow: nil,
|
|
685
1486
|
paypal: nil,
|
|
1487
|
+
paypay: nil,
|
|
1488
|
+
payto: nil,
|
|
686
1489
|
pix: nil,
|
|
687
1490
|
promptpay: nil,
|
|
1491
|
+
qris: nil,
|
|
688
1492
|
radar_options: nil,
|
|
1493
|
+
rechnung: nil,
|
|
689
1494
|
revolut_pay: nil,
|
|
690
1495
|
samsung_pay: nil,
|
|
691
1496
|
satispay: nil,
|
|
692
1497
|
sepa_debit: nil,
|
|
1498
|
+
shopeepay: nil,
|
|
693
1499
|
sofort: nil,
|
|
1500
|
+
stripe_balance: nil,
|
|
694
1501
|
swish: nil,
|
|
695
1502
|
twint: nil,
|
|
696
1503
|
type: nil,
|
|
@@ -718,7 +1525,9 @@ module Stripe
|
|
|
718
1525
|
@eps = eps
|
|
719
1526
|
@fpx = fpx
|
|
720
1527
|
@giropay = giropay
|
|
1528
|
+
@gopay = gopay
|
|
721
1529
|
@grabpay = grabpay
|
|
1530
|
+
@id_bank_transfer = id_bank_transfer
|
|
722
1531
|
@ideal = ideal
|
|
723
1532
|
@interac_present = interac_present
|
|
724
1533
|
@kakao_pay = kakao_pay
|
|
@@ -738,14 +1547,20 @@ module Stripe
|
|
|
738
1547
|
@payco = payco
|
|
739
1548
|
@paynow = paynow
|
|
740
1549
|
@paypal = paypal
|
|
1550
|
+
@paypay = paypay
|
|
1551
|
+
@payto = payto
|
|
741
1552
|
@pix = pix
|
|
742
1553
|
@promptpay = promptpay
|
|
1554
|
+
@qris = qris
|
|
743
1555
|
@radar_options = radar_options
|
|
1556
|
+
@rechnung = rechnung
|
|
744
1557
|
@revolut_pay = revolut_pay
|
|
745
1558
|
@samsung_pay = samsung_pay
|
|
746
1559
|
@satispay = satispay
|
|
747
1560
|
@sepa_debit = sepa_debit
|
|
1561
|
+
@shopeepay = shopeepay
|
|
748
1562
|
@sofort = sofort
|
|
1563
|
+
@stripe_balance = stripe_balance
|
|
749
1564
|
@swish = swish
|
|
750
1565
|
@twint = twint
|
|
751
1566
|
@type = type
|
|
@@ -1116,6 +1931,48 @@ module Stripe
|
|
|
1116
1931
|
end
|
|
1117
1932
|
end
|
|
1118
1933
|
|
|
1934
|
+
class StatementDetails < ::Stripe::RequestParams
|
|
1935
|
+
class Address < ::Stripe::RequestParams
|
|
1936
|
+
# City, district, suburb, town, or village.
|
|
1937
|
+
attr_accessor :city
|
|
1938
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1939
|
+
attr_accessor :country
|
|
1940
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1941
|
+
attr_accessor :line1
|
|
1942
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1943
|
+
attr_accessor :line2
|
|
1944
|
+
# ZIP or postal code.
|
|
1945
|
+
attr_accessor :postal_code
|
|
1946
|
+
# State, county, province, or region.
|
|
1947
|
+
attr_accessor :state
|
|
1948
|
+
|
|
1949
|
+
def initialize(
|
|
1950
|
+
city: nil,
|
|
1951
|
+
country: nil,
|
|
1952
|
+
line1: nil,
|
|
1953
|
+
line2: nil,
|
|
1954
|
+
postal_code: nil,
|
|
1955
|
+
state: nil
|
|
1956
|
+
)
|
|
1957
|
+
@city = city
|
|
1958
|
+
@country = country
|
|
1959
|
+
@line1 = line1
|
|
1960
|
+
@line2 = line2
|
|
1961
|
+
@postal_code = postal_code
|
|
1962
|
+
@state = state
|
|
1963
|
+
end
|
|
1964
|
+
end
|
|
1965
|
+
# Please pass in an address that is within your Stripe user account country
|
|
1966
|
+
attr_accessor :address
|
|
1967
|
+
# Phone number (e.g., a toll-free number that customers can call)
|
|
1968
|
+
attr_accessor :phone
|
|
1969
|
+
|
|
1970
|
+
def initialize(address: nil, phone: nil)
|
|
1971
|
+
@address = address
|
|
1972
|
+
@phone = phone
|
|
1973
|
+
end
|
|
1974
|
+
end
|
|
1975
|
+
|
|
1119
1976
|
class ThreeDSecure < ::Stripe::RequestParams
|
|
1120
1977
|
class NetworkOptions < ::Stripe::RequestParams
|
|
1121
1978
|
class CartesBancaires < ::Stripe::RequestParams
|
|
@@ -1210,6 +2067,8 @@ module Stripe
|
|
|
1210
2067
|
attr_accessor :moto
|
|
1211
2068
|
# Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
|
|
1212
2069
|
attr_accessor :network
|
|
2070
|
+
# Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
|
2071
|
+
attr_accessor :request_decremental_authorization
|
|
1213
2072
|
# Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
|
1214
2073
|
attr_accessor :request_extended_authorization
|
|
1215
2074
|
# Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
|
|
@@ -1218,6 +2077,8 @@ module Stripe
|
|
|
1218
2077
|
attr_accessor :request_multicapture
|
|
1219
2078
|
# Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
|
|
1220
2079
|
attr_accessor :request_overcapture
|
|
2080
|
+
# Request partial authorization on this PaymentIntent.
|
|
2081
|
+
attr_accessor :request_partial_authorization
|
|
1221
2082
|
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1222
2083
|
attr_accessor :request_three_d_secure
|
|
1223
2084
|
# When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
|
|
@@ -1236,6 +2097,8 @@ module Stripe
|
|
|
1236
2097
|
attr_accessor :statement_descriptor_suffix_kana
|
|
1237
2098
|
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
|
|
1238
2099
|
attr_accessor :statement_descriptor_suffix_kanji
|
|
2100
|
+
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
|
2101
|
+
attr_accessor :statement_details
|
|
1239
2102
|
# If 3D Secure authentication was performed with a third-party provider,
|
|
1240
2103
|
# the authentication details to use for this payment.
|
|
1241
2104
|
attr_accessor :three_d_secure
|
|
@@ -1247,15 +2110,18 @@ module Stripe
|
|
|
1247
2110
|
mandate_options: nil,
|
|
1248
2111
|
moto: nil,
|
|
1249
2112
|
network: nil,
|
|
2113
|
+
request_decremental_authorization: nil,
|
|
1250
2114
|
request_extended_authorization: nil,
|
|
1251
2115
|
request_incremental_authorization: nil,
|
|
1252
2116
|
request_multicapture: nil,
|
|
1253
2117
|
request_overcapture: nil,
|
|
2118
|
+
request_partial_authorization: nil,
|
|
1254
2119
|
request_three_d_secure: nil,
|
|
1255
2120
|
require_cvc_recollection: nil,
|
|
1256
2121
|
setup_future_usage: nil,
|
|
1257
2122
|
statement_descriptor_suffix_kana: nil,
|
|
1258
2123
|
statement_descriptor_suffix_kanji: nil,
|
|
2124
|
+
statement_details: nil,
|
|
1259
2125
|
three_d_secure: nil
|
|
1260
2126
|
)
|
|
1261
2127
|
@capture_method = capture_method
|
|
@@ -1264,15 +2130,18 @@ module Stripe
|
|
|
1264
2130
|
@mandate_options = mandate_options
|
|
1265
2131
|
@moto = moto
|
|
1266
2132
|
@network = network
|
|
2133
|
+
@request_decremental_authorization = request_decremental_authorization
|
|
1267
2134
|
@request_extended_authorization = request_extended_authorization
|
|
1268
2135
|
@request_incremental_authorization = request_incremental_authorization
|
|
1269
2136
|
@request_multicapture = request_multicapture
|
|
1270
2137
|
@request_overcapture = request_overcapture
|
|
2138
|
+
@request_partial_authorization = request_partial_authorization
|
|
1271
2139
|
@request_three_d_secure = request_three_d_secure
|
|
1272
2140
|
@require_cvc_recollection = require_cvc_recollection
|
|
1273
2141
|
@setup_future_usage = setup_future_usage
|
|
1274
2142
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
|
1275
2143
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
|
2144
|
+
@statement_details = statement_details
|
|
1276
2145
|
@three_d_secure = three_d_secure
|
|
1277
2146
|
end
|
|
1278
2147
|
end
|
|
@@ -1443,6 +2312,23 @@ module Stripe
|
|
|
1443
2312
|
end
|
|
1444
2313
|
end
|
|
1445
2314
|
|
|
2315
|
+
class Gopay < ::Stripe::RequestParams
|
|
2316
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2317
|
+
#
|
|
2318
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2319
|
+
#
|
|
2320
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2321
|
+
#
|
|
2322
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
2323
|
+
#
|
|
2324
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
2325
|
+
attr_accessor :setup_future_usage
|
|
2326
|
+
|
|
2327
|
+
def initialize(setup_future_usage: nil)
|
|
2328
|
+
@setup_future_usage = setup_future_usage
|
|
2329
|
+
end
|
|
2330
|
+
end
|
|
2331
|
+
|
|
1446
2332
|
class Grabpay < ::Stripe::RequestParams
|
|
1447
2333
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1448
2334
|
#
|
|
@@ -1460,6 +2346,29 @@ module Stripe
|
|
|
1460
2346
|
end
|
|
1461
2347
|
end
|
|
1462
2348
|
|
|
2349
|
+
class IdBankTransfer < ::Stripe::RequestParams
|
|
2350
|
+
# The UNIX timestamp until which the virtual bank account is valid. Permitted range is from 5 minutes from now until 31 days from now. If unset, it defaults to 3 days from now.
|
|
2351
|
+
attr_accessor :expires_after
|
|
2352
|
+
# The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
|
|
2353
|
+
attr_accessor :expires_at
|
|
2354
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2355
|
+
#
|
|
2356
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2357
|
+
#
|
|
2358
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2359
|
+
#
|
|
2360
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
2361
|
+
#
|
|
2362
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
2363
|
+
attr_accessor :setup_future_usage
|
|
2364
|
+
|
|
2365
|
+
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
|
2366
|
+
@expires_after = expires_after
|
|
2367
|
+
@expires_at = expires_at
|
|
2368
|
+
@setup_future_usage = setup_future_usage
|
|
2369
|
+
end
|
|
2370
|
+
end
|
|
2371
|
+
|
|
1463
2372
|
class Ideal < ::Stripe::RequestParams
|
|
1464
2373
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1465
2374
|
#
|
|
@@ -1861,12 +2770,65 @@ module Stripe
|
|
|
1861
2770
|
end
|
|
1862
2771
|
|
|
1863
2772
|
class Paypal < ::Stripe::RequestParams
|
|
2773
|
+
class LineItem < ::Stripe::RequestParams
|
|
2774
|
+
class Tax < ::Stripe::RequestParams
|
|
2775
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2776
|
+
attr_accessor :amount
|
|
2777
|
+
# The tax behavior for the line item.
|
|
2778
|
+
attr_accessor :behavior
|
|
2779
|
+
|
|
2780
|
+
def initialize(amount: nil, behavior: nil)
|
|
2781
|
+
@amount = amount
|
|
2782
|
+
@behavior = behavior
|
|
2783
|
+
end
|
|
2784
|
+
end
|
|
2785
|
+
# Type of the line item.
|
|
2786
|
+
attr_accessor :category
|
|
2787
|
+
# Description of the line item.
|
|
2788
|
+
attr_accessor :description
|
|
2789
|
+
# Descriptive name of the line item.
|
|
2790
|
+
attr_accessor :name
|
|
2791
|
+
# Quantity of the line item. Must be a positive number.
|
|
2792
|
+
attr_accessor :quantity
|
|
2793
|
+
# Client facing stock keeping unit, article number or similar.
|
|
2794
|
+
attr_accessor :sku
|
|
2795
|
+
# The Stripe account ID of the connected account that sells the item.
|
|
2796
|
+
attr_accessor :sold_by
|
|
2797
|
+
# The tax information for the line item.
|
|
2798
|
+
attr_accessor :tax
|
|
2799
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
|
2800
|
+
attr_accessor :unit_amount
|
|
2801
|
+
|
|
2802
|
+
def initialize(
|
|
2803
|
+
category: nil,
|
|
2804
|
+
description: nil,
|
|
2805
|
+
name: nil,
|
|
2806
|
+
quantity: nil,
|
|
2807
|
+
sku: nil,
|
|
2808
|
+
sold_by: nil,
|
|
2809
|
+
tax: nil,
|
|
2810
|
+
unit_amount: nil
|
|
2811
|
+
)
|
|
2812
|
+
@category = category
|
|
2813
|
+
@description = description
|
|
2814
|
+
@name = name
|
|
2815
|
+
@quantity = quantity
|
|
2816
|
+
@sku = sku
|
|
2817
|
+
@sold_by = sold_by
|
|
2818
|
+
@tax = tax
|
|
2819
|
+
@unit_amount = unit_amount
|
|
2820
|
+
end
|
|
2821
|
+
end
|
|
1864
2822
|
# Controls when the funds will be captured from the customer's account.
|
|
1865
2823
|
attr_accessor :capture_method
|
|
2824
|
+
# The line items purchased by the customer.
|
|
2825
|
+
attr_accessor :line_items
|
|
1866
2826
|
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1867
2827
|
attr_accessor :preferred_locale
|
|
1868
2828
|
# A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
1869
2829
|
attr_accessor :reference
|
|
2830
|
+
# A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
2831
|
+
attr_accessor :reference_id
|
|
1870
2832
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
|
1871
2833
|
attr_accessor :risk_correlation_id
|
|
1872
2834
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1879,29 +2841,140 @@ module Stripe
|
|
|
1879
2841
|
#
|
|
1880
2842
|
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
1881
2843
|
attr_accessor :setup_future_usage
|
|
2844
|
+
# 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.
|
|
2845
|
+
attr_accessor :subsellers
|
|
1882
2846
|
|
|
1883
2847
|
def initialize(
|
|
1884
2848
|
capture_method: nil,
|
|
2849
|
+
line_items: nil,
|
|
1885
2850
|
preferred_locale: nil,
|
|
1886
2851
|
reference: nil,
|
|
2852
|
+
reference_id: nil,
|
|
1887
2853
|
risk_correlation_id: nil,
|
|
1888
|
-
setup_future_usage: nil
|
|
2854
|
+
setup_future_usage: nil,
|
|
2855
|
+
subsellers: nil
|
|
1889
2856
|
)
|
|
1890
2857
|
@capture_method = capture_method
|
|
2858
|
+
@line_items = line_items
|
|
1891
2859
|
@preferred_locale = preferred_locale
|
|
1892
2860
|
@reference = reference
|
|
2861
|
+
@reference_id = reference_id
|
|
1893
2862
|
@risk_correlation_id = risk_correlation_id
|
|
1894
2863
|
@setup_future_usage = setup_future_usage
|
|
2864
|
+
@subsellers = subsellers
|
|
2865
|
+
end
|
|
2866
|
+
end
|
|
2867
|
+
|
|
2868
|
+
class Paypay < ::Stripe::RequestParams
|
|
2869
|
+
# Controls when the funds are captured from the customer's account.
|
|
2870
|
+
#
|
|
2871
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
2872
|
+
#
|
|
2873
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
2874
|
+
attr_accessor :capture_method
|
|
2875
|
+
|
|
2876
|
+
def initialize(capture_method: nil)
|
|
2877
|
+
@capture_method = capture_method
|
|
2878
|
+
end
|
|
2879
|
+
end
|
|
2880
|
+
|
|
2881
|
+
class Payto < ::Stripe::RequestParams
|
|
2882
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
2883
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
2884
|
+
attr_accessor :amount
|
|
2885
|
+
# 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.
|
|
2886
|
+
attr_accessor :amount_type
|
|
2887
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
2888
|
+
attr_accessor :end_date
|
|
2889
|
+
# The periodicity at which payments will be collected.
|
|
2890
|
+
attr_accessor :payment_schedule
|
|
2891
|
+
# 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.
|
|
2892
|
+
attr_accessor :payments_per_period
|
|
2893
|
+
# The purpose for which payments are made. Defaults to retail.
|
|
2894
|
+
attr_accessor :purpose
|
|
2895
|
+
|
|
2896
|
+
def initialize(
|
|
2897
|
+
amount: nil,
|
|
2898
|
+
amount_type: nil,
|
|
2899
|
+
end_date: nil,
|
|
2900
|
+
payment_schedule: nil,
|
|
2901
|
+
payments_per_period: nil,
|
|
2902
|
+
purpose: nil
|
|
2903
|
+
)
|
|
2904
|
+
@amount = amount
|
|
2905
|
+
@amount_type = amount_type
|
|
2906
|
+
@end_date = end_date
|
|
2907
|
+
@payment_schedule = payment_schedule
|
|
2908
|
+
@payments_per_period = payments_per_period
|
|
2909
|
+
@purpose = purpose
|
|
2910
|
+
end
|
|
2911
|
+
end
|
|
2912
|
+
# Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session`
|
|
2913
|
+
attr_accessor :mandate_options
|
|
2914
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2915
|
+
#
|
|
2916
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
2917
|
+
#
|
|
2918
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
2919
|
+
#
|
|
2920
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
2921
|
+
#
|
|
2922
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
2923
|
+
attr_accessor :setup_future_usage
|
|
2924
|
+
|
|
2925
|
+
def initialize(mandate_options: nil, setup_future_usage: nil)
|
|
2926
|
+
@mandate_options = mandate_options
|
|
2927
|
+
@setup_future_usage = setup_future_usage
|
|
1895
2928
|
end
|
|
1896
2929
|
end
|
|
1897
2930
|
|
|
1898
2931
|
class Pix < ::Stripe::RequestParams
|
|
2932
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
2933
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
|
2934
|
+
attr_accessor :amount
|
|
2935
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
2936
|
+
attr_accessor :amount_includes_iof
|
|
2937
|
+
# Type of amount. Defaults to `maximum`.
|
|
2938
|
+
attr_accessor :amount_type
|
|
2939
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
|
2940
|
+
attr_accessor :currency
|
|
2941
|
+
# 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.
|
|
2942
|
+
attr_accessor :end_date
|
|
2943
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
|
2944
|
+
attr_accessor :payment_schedule
|
|
2945
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
|
2946
|
+
attr_accessor :reference
|
|
2947
|
+
# 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.
|
|
2948
|
+
attr_accessor :start_date
|
|
2949
|
+
|
|
2950
|
+
def initialize(
|
|
2951
|
+
amount: nil,
|
|
2952
|
+
amount_includes_iof: nil,
|
|
2953
|
+
amount_type: nil,
|
|
2954
|
+
currency: nil,
|
|
2955
|
+
end_date: nil,
|
|
2956
|
+
payment_schedule: nil,
|
|
2957
|
+
reference: nil,
|
|
2958
|
+
start_date: nil
|
|
2959
|
+
)
|
|
2960
|
+
@amount = amount
|
|
2961
|
+
@amount_includes_iof = amount_includes_iof
|
|
2962
|
+
@amount_type = amount_type
|
|
2963
|
+
@currency = currency
|
|
2964
|
+
@end_date = end_date
|
|
2965
|
+
@payment_schedule = payment_schedule
|
|
2966
|
+
@reference = reference
|
|
2967
|
+
@start_date = start_date
|
|
2968
|
+
end
|
|
2969
|
+
end
|
|
1899
2970
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
1900
2971
|
attr_accessor :amount_includes_iof
|
|
1901
2972
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
1902
2973
|
attr_accessor :expires_after_seconds
|
|
1903
2974
|
# The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
|
|
1904
2975
|
attr_accessor :expires_at
|
|
2976
|
+
# Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
|
2977
|
+
attr_accessor :mandate_options
|
|
1905
2978
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1906
2979
|
#
|
|
1907
2980
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1917,11 +2990,13 @@ module Stripe
|
|
|
1917
2990
|
amount_includes_iof: nil,
|
|
1918
2991
|
expires_after_seconds: nil,
|
|
1919
2992
|
expires_at: nil,
|
|
2993
|
+
mandate_options: nil,
|
|
1920
2994
|
setup_future_usage: nil
|
|
1921
2995
|
)
|
|
1922
2996
|
@amount_includes_iof = amount_includes_iof
|
|
1923
2997
|
@expires_after_seconds = expires_after_seconds
|
|
1924
2998
|
@expires_at = expires_at
|
|
2999
|
+
@mandate_options = mandate_options
|
|
1925
3000
|
@setup_future_usage = setup_future_usage
|
|
1926
3001
|
end
|
|
1927
3002
|
end
|
|
@@ -1943,6 +3018,25 @@ module Stripe
|
|
|
1943
3018
|
end
|
|
1944
3019
|
end
|
|
1945
3020
|
|
|
3021
|
+
class Qris < ::Stripe::RequestParams
|
|
3022
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3023
|
+
#
|
|
3024
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
3025
|
+
#
|
|
3026
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
3027
|
+
#
|
|
3028
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
3029
|
+
#
|
|
3030
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
3031
|
+
attr_accessor :setup_future_usage
|
|
3032
|
+
|
|
3033
|
+
def initialize(setup_future_usage: nil)
|
|
3034
|
+
@setup_future_usage = setup_future_usage
|
|
3035
|
+
end
|
|
3036
|
+
end
|
|
3037
|
+
|
|
3038
|
+
class Rechnung < ::Stripe::RequestParams; end
|
|
3039
|
+
|
|
1946
3040
|
class RevolutPay < ::Stripe::RequestParams
|
|
1947
3041
|
# Controls when the funds are captured from the customer's account.
|
|
1948
3042
|
#
|
|
@@ -2022,6 +3116,23 @@ module Stripe
|
|
|
2022
3116
|
end
|
|
2023
3117
|
end
|
|
2024
3118
|
|
|
3119
|
+
class Shopeepay < ::Stripe::RequestParams
|
|
3120
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3121
|
+
#
|
|
3122
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
3123
|
+
#
|
|
3124
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
3125
|
+
#
|
|
3126
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
3127
|
+
#
|
|
3128
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
3129
|
+
attr_accessor :setup_future_usage
|
|
3130
|
+
|
|
3131
|
+
def initialize(setup_future_usage: nil)
|
|
3132
|
+
@setup_future_usage = setup_future_usage
|
|
3133
|
+
end
|
|
3134
|
+
end
|
|
3135
|
+
|
|
2025
3136
|
class Sofort < ::Stripe::RequestParams
|
|
2026
3137
|
# Language shown to the payer on redirect.
|
|
2027
3138
|
attr_accessor :preferred_language
|
|
@@ -2042,6 +3153,23 @@ module Stripe
|
|
|
2042
3153
|
end
|
|
2043
3154
|
end
|
|
2044
3155
|
|
|
3156
|
+
class StripeBalance < ::Stripe::RequestParams
|
|
3157
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
3158
|
+
#
|
|
3159
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
3160
|
+
#
|
|
3161
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
3162
|
+
#
|
|
3163
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
3164
|
+
#
|
|
3165
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
3166
|
+
attr_accessor :setup_future_usage
|
|
3167
|
+
|
|
3168
|
+
def initialize(setup_future_usage: nil)
|
|
3169
|
+
@setup_future_usage = setup_future_usage
|
|
3170
|
+
end
|
|
3171
|
+
end
|
|
3172
|
+
|
|
2045
3173
|
class Swish < ::Stripe::RequestParams
|
|
2046
3174
|
# A reference for this payment to be displayed in the Swish app.
|
|
2047
3175
|
attr_accessor :reference
|
|
@@ -2084,13 +3212,27 @@ module Stripe
|
|
|
2084
3212
|
class Filters < ::Stripe::RequestParams
|
|
2085
3213
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2086
3214
|
attr_accessor :account_subcategories
|
|
3215
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
3216
|
+
attr_accessor :institution
|
|
2087
3217
|
|
|
2088
|
-
def initialize(account_subcategories: nil)
|
|
3218
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
2089
3219
|
@account_subcategories = account_subcategories
|
|
3220
|
+
@institution = institution
|
|
3221
|
+
end
|
|
3222
|
+
end
|
|
3223
|
+
|
|
3224
|
+
class ManualEntry < ::Stripe::RequestParams
|
|
3225
|
+
# Settings for configuring manual entry of account details.
|
|
3226
|
+
attr_accessor :mode
|
|
3227
|
+
|
|
3228
|
+
def initialize(mode: nil)
|
|
3229
|
+
@mode = mode
|
|
2090
3230
|
end
|
|
2091
3231
|
end
|
|
2092
3232
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
2093
3233
|
attr_accessor :filters
|
|
3234
|
+
# Customize manual entry behavior
|
|
3235
|
+
attr_accessor :manual_entry
|
|
2094
3236
|
# 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`.
|
|
2095
3237
|
attr_accessor :permissions
|
|
2096
3238
|
# List of data features that you would like to retrieve upon account creation.
|
|
@@ -2098,8 +3240,15 @@ module Stripe
|
|
|
2098
3240
|
# 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.
|
|
2099
3241
|
attr_accessor :return_url
|
|
2100
3242
|
|
|
2101
|
-
def initialize(
|
|
3243
|
+
def initialize(
|
|
3244
|
+
filters: nil,
|
|
3245
|
+
manual_entry: nil,
|
|
3246
|
+
permissions: nil,
|
|
3247
|
+
prefetch: nil,
|
|
3248
|
+
return_url: nil
|
|
3249
|
+
)
|
|
2102
3250
|
@filters = filters
|
|
3251
|
+
@manual_entry = manual_entry
|
|
2103
3252
|
@permissions = permissions
|
|
2104
3253
|
@prefetch = prefetch
|
|
2105
3254
|
@return_url = return_url
|
|
@@ -2244,8 +3393,12 @@ module Stripe
|
|
|
2244
3393
|
attr_accessor :fpx
|
|
2245
3394
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
|
2246
3395
|
attr_accessor :giropay
|
|
3396
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
|
3397
|
+
attr_accessor :gopay
|
|
2247
3398
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
|
2248
3399
|
attr_accessor :grabpay
|
|
3400
|
+
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
|
3401
|
+
attr_accessor :id_bank_transfer
|
|
2249
3402
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
|
2250
3403
|
attr_accessor :ideal
|
|
2251
3404
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
|
@@ -2282,10 +3435,18 @@ module Stripe
|
|
|
2282
3435
|
attr_accessor :paynow
|
|
2283
3436
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2284
3437
|
attr_accessor :paypal
|
|
3438
|
+
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
|
3439
|
+
attr_accessor :paypay
|
|
3440
|
+
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
3441
|
+
attr_accessor :payto
|
|
2285
3442
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2286
3443
|
attr_accessor :pix
|
|
2287
3444
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
2288
3445
|
attr_accessor :promptpay
|
|
3446
|
+
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
|
3447
|
+
attr_accessor :qris
|
|
3448
|
+
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
|
3449
|
+
attr_accessor :rechnung
|
|
2289
3450
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
|
2290
3451
|
attr_accessor :revolut_pay
|
|
2291
3452
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
|
@@ -2294,8 +3455,12 @@ module Stripe
|
|
|
2294
3455
|
attr_accessor :satispay
|
|
2295
3456
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
|
2296
3457
|
attr_accessor :sepa_debit
|
|
3458
|
+
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
|
3459
|
+
attr_accessor :shopeepay
|
|
2297
3460
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
|
2298
3461
|
attr_accessor :sofort
|
|
3462
|
+
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
|
3463
|
+
attr_accessor :stripe_balance
|
|
2299
3464
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
|
2300
3465
|
attr_accessor :swish
|
|
2301
3466
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
@@ -2328,7 +3493,9 @@ module Stripe
|
|
|
2328
3493
|
eps: nil,
|
|
2329
3494
|
fpx: nil,
|
|
2330
3495
|
giropay: nil,
|
|
3496
|
+
gopay: nil,
|
|
2331
3497
|
grabpay: nil,
|
|
3498
|
+
id_bank_transfer: nil,
|
|
2332
3499
|
ideal: nil,
|
|
2333
3500
|
interac_present: nil,
|
|
2334
3501
|
kakao_pay: nil,
|
|
@@ -2347,13 +3514,19 @@ module Stripe
|
|
|
2347
3514
|
payco: nil,
|
|
2348
3515
|
paynow: nil,
|
|
2349
3516
|
paypal: nil,
|
|
3517
|
+
paypay: nil,
|
|
3518
|
+
payto: nil,
|
|
2350
3519
|
pix: nil,
|
|
2351
3520
|
promptpay: nil,
|
|
3521
|
+
qris: nil,
|
|
3522
|
+
rechnung: nil,
|
|
2352
3523
|
revolut_pay: nil,
|
|
2353
3524
|
samsung_pay: nil,
|
|
2354
3525
|
satispay: nil,
|
|
2355
3526
|
sepa_debit: nil,
|
|
3527
|
+
shopeepay: nil,
|
|
2356
3528
|
sofort: nil,
|
|
3529
|
+
stripe_balance: nil,
|
|
2357
3530
|
swish: nil,
|
|
2358
3531
|
twint: nil,
|
|
2359
3532
|
us_bank_account: nil,
|
|
@@ -2380,7 +3553,9 @@ module Stripe
|
|
|
2380
3553
|
@eps = eps
|
|
2381
3554
|
@fpx = fpx
|
|
2382
3555
|
@giropay = giropay
|
|
3556
|
+
@gopay = gopay
|
|
2383
3557
|
@grabpay = grabpay
|
|
3558
|
+
@id_bank_transfer = id_bank_transfer
|
|
2384
3559
|
@ideal = ideal
|
|
2385
3560
|
@interac_present = interac_present
|
|
2386
3561
|
@kakao_pay = kakao_pay
|
|
@@ -2399,13 +3574,19 @@ module Stripe
|
|
|
2399
3574
|
@payco = payco
|
|
2400
3575
|
@paynow = paynow
|
|
2401
3576
|
@paypal = paypal
|
|
3577
|
+
@paypay = paypay
|
|
3578
|
+
@payto = payto
|
|
2402
3579
|
@pix = pix
|
|
2403
3580
|
@promptpay = promptpay
|
|
3581
|
+
@qris = qris
|
|
3582
|
+
@rechnung = rechnung
|
|
2404
3583
|
@revolut_pay = revolut_pay
|
|
2405
3584
|
@samsung_pay = samsung_pay
|
|
2406
3585
|
@satispay = satispay
|
|
2407
3586
|
@sepa_debit = sepa_debit
|
|
3587
|
+
@shopeepay = shopeepay
|
|
2408
3588
|
@sofort = sofort
|
|
3589
|
+
@stripe_balance = stripe_balance
|
|
2409
3590
|
@swish = swish
|
|
2410
3591
|
@twint = twint
|
|
2411
3592
|
@us_bank_account = us_bank_account
|
|
@@ -2475,6 +3656,8 @@ module Stripe
|
|
|
2475
3656
|
end
|
|
2476
3657
|
# Provides industry-specific information about the amount.
|
|
2477
3658
|
attr_accessor :amount_details
|
|
3659
|
+
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
|
3660
|
+
attr_accessor :application_fee_amount
|
|
2478
3661
|
# Controls when the funds will be captured from the customer's account.
|
|
2479
3662
|
attr_accessor :capture_method
|
|
2480
3663
|
# ID of the ConfirmationToken used to confirm this PaymentIntent.
|
|
@@ -2487,6 +3670,10 @@ module Stripe
|
|
|
2487
3670
|
attr_accessor :excluded_payment_method_types
|
|
2488
3671
|
# Specifies which fields in the response should be expanded.
|
|
2489
3672
|
attr_accessor :expand
|
|
3673
|
+
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
|
3674
|
+
attr_accessor :fx_quote
|
|
3675
|
+
# Automations to be run during the PaymentIntent lifecycle
|
|
3676
|
+
attr_accessor :hooks
|
|
2490
3677
|
# ID of the mandate that's used for this payment.
|
|
2491
3678
|
attr_accessor :mandate
|
|
2492
3679
|
# Attribute for param field mandate_data
|
|
@@ -2531,11 +3718,14 @@ module Stripe
|
|
|
2531
3718
|
|
|
2532
3719
|
def initialize(
|
|
2533
3720
|
amount_details: nil,
|
|
3721
|
+
application_fee_amount: nil,
|
|
2534
3722
|
capture_method: nil,
|
|
2535
3723
|
confirmation_token: nil,
|
|
2536
3724
|
error_on_requires_action: nil,
|
|
2537
3725
|
excluded_payment_method_types: nil,
|
|
2538
3726
|
expand: nil,
|
|
3727
|
+
fx_quote: nil,
|
|
3728
|
+
hooks: nil,
|
|
2539
3729
|
mandate: nil,
|
|
2540
3730
|
mandate_data: nil,
|
|
2541
3731
|
off_session: nil,
|
|
@@ -2552,11 +3742,14 @@ module Stripe
|
|
|
2552
3742
|
use_stripe_sdk: nil
|
|
2553
3743
|
)
|
|
2554
3744
|
@amount_details = amount_details
|
|
3745
|
+
@application_fee_amount = application_fee_amount
|
|
2555
3746
|
@capture_method = capture_method
|
|
2556
3747
|
@confirmation_token = confirmation_token
|
|
2557
3748
|
@error_on_requires_action = error_on_requires_action
|
|
2558
3749
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
2559
3750
|
@expand = expand
|
|
3751
|
+
@fx_quote = fx_quote
|
|
3752
|
+
@hooks = hooks
|
|
2560
3753
|
@mandate = mandate
|
|
2561
3754
|
@mandate_data = mandate_data
|
|
2562
3755
|
@off_session = off_session
|