stripe 17.0.0 → 17.1.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 +236 -0
- data/lib/stripe/events/v2_billing_bill_setting_updated_event.rb +61 -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 +44 -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 +58 -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 +709 -0
- data/lib/stripe/params/charge_update_params.rb +709 -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 +4 -1
- 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 +46 -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_payment_list_params.rb +4 -1
- 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_attempt_record_list_params.rb +19 -0
- data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +895 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +1373 -7
- data/lib/stripe/params/payment_intent_create_params.rb +1387 -13
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +223 -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 +1409 -4
- 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/payment_record_report_payment_attempt_canceled_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
- data/lib/stripe/params/payment_record_retrieve_params.rb +13 -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 +2217 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +20 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2245 -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_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_create_params.rb +33 -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_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_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 +169 -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 +234 -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 +2 -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/invoice_payment.rb +2 -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 +2102 -0
- data/lib/stripe/resources/payment_intent.rb +848 -4
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +128 -0
- 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 +2208 -0
- 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 +3851 -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 +47 -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 +116 -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_attempt_record_service.rb +28 -0
- data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
- data/lib/stripe/services/payment_intent_service.rb +44 -0
- data/lib/stripe/services/payment_record_service.rb +89 -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 +10 -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 +74 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +68 -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 +59 -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 +61 -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 +155102 -90522
- metadata +349 -3
@@ -3,6 +3,159 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class PaymentIntentCreateParams < Stripe::RequestParams
|
6
|
+
class AmountDetails < Stripe::RequestParams
|
7
|
+
class LineItem < Stripe::RequestParams
|
8
|
+
class PaymentMethodOptions < Stripe::RequestParams
|
9
|
+
class Card < Stripe::RequestParams
|
10
|
+
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
|
11
|
+
attr_accessor :commodity_code
|
12
|
+
|
13
|
+
def initialize(commodity_code: nil)
|
14
|
+
@commodity_code = commodity_code
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
class CardPresent < Stripe::RequestParams
|
19
|
+
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc.
|
20
|
+
attr_accessor :commodity_code
|
21
|
+
|
22
|
+
def initialize(commodity_code: nil)
|
23
|
+
@commodity_code = commodity_code
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
class Klarna < Stripe::RequestParams
|
28
|
+
# URL to an image for the product. Max length, 4096 characters.
|
29
|
+
attr_accessor :image_url
|
30
|
+
# URL to the product page. Max length, 4096 characters.
|
31
|
+
attr_accessor :product_url
|
32
|
+
# Reference for the subscription this line item is for.
|
33
|
+
attr_accessor :subscription_reference
|
34
|
+
|
35
|
+
def initialize(image_url: nil, product_url: nil, subscription_reference: nil)
|
36
|
+
@image_url = image_url
|
37
|
+
@product_url = product_url
|
38
|
+
@subscription_reference = subscription_reference
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
class Paypal < Stripe::RequestParams
|
43
|
+
# Type of the line item.
|
44
|
+
attr_accessor :category
|
45
|
+
# Description of the line item.
|
46
|
+
attr_accessor :description
|
47
|
+
# The Stripe account ID of the connected account that sells the item.
|
48
|
+
attr_accessor :sold_by
|
49
|
+
|
50
|
+
def initialize(category: nil, description: nil, sold_by: nil)
|
51
|
+
@category = category
|
52
|
+
@description = description
|
53
|
+
@sold_by = sold_by
|
54
|
+
end
|
55
|
+
end
|
56
|
+
# This sub-hash contains line item details that are specific to `card` payment method."
|
57
|
+
attr_accessor :card
|
58
|
+
# This sub-hash contains line item details that are specific to `card_present` payment method."
|
59
|
+
attr_accessor :card_present
|
60
|
+
# This sub-hash contains line item details that are specific to `klarna` payment method."
|
61
|
+
attr_accessor :klarna
|
62
|
+
# This sub-hash contains line item details that are specific to `paypal` payment method."
|
63
|
+
attr_accessor :paypal
|
64
|
+
|
65
|
+
def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
|
66
|
+
@card = card
|
67
|
+
@card_present = card_present
|
68
|
+
@klarna = klarna
|
69
|
+
@paypal = paypal
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
class Tax < Stripe::RequestParams
|
74
|
+
# The total tax on an item. Non-negative integer.
|
75
|
+
attr_accessor :total_tax_amount
|
76
|
+
|
77
|
+
def initialize(total_tax_amount: nil)
|
78
|
+
@total_tax_amount = total_tax_amount
|
79
|
+
end
|
80
|
+
end
|
81
|
+
# The amount an item was discounted for. Positive integer.
|
82
|
+
attr_accessor :discount_amount
|
83
|
+
# Payment method-specific information for line items.
|
84
|
+
attr_accessor :payment_method_options
|
85
|
+
# Unique identifier of the product. At most 12 characters long.
|
86
|
+
attr_accessor :product_code
|
87
|
+
# Name of the product. At most 100 characters long.
|
88
|
+
attr_accessor :product_name
|
89
|
+
# Number of items of the product. Positive integer.
|
90
|
+
attr_accessor :quantity
|
91
|
+
# Contains information about the tax on the item.
|
92
|
+
attr_accessor :tax
|
93
|
+
# Cost of the product. Non-negative integer.
|
94
|
+
attr_accessor :unit_cost
|
95
|
+
# A unit of measure for the line item, such as gallons, feet, meters, etc.
|
96
|
+
attr_accessor :unit_of_measure
|
97
|
+
|
98
|
+
def initialize(
|
99
|
+
discount_amount: nil,
|
100
|
+
payment_method_options: nil,
|
101
|
+
product_code: nil,
|
102
|
+
product_name: nil,
|
103
|
+
quantity: nil,
|
104
|
+
tax: nil,
|
105
|
+
unit_cost: nil,
|
106
|
+
unit_of_measure: nil
|
107
|
+
)
|
108
|
+
@discount_amount = discount_amount
|
109
|
+
@payment_method_options = payment_method_options
|
110
|
+
@product_code = product_code
|
111
|
+
@product_name = product_name
|
112
|
+
@quantity = quantity
|
113
|
+
@tax = tax
|
114
|
+
@unit_cost = unit_cost
|
115
|
+
@unit_of_measure = unit_of_measure
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
class Shipping < Stripe::RequestParams
|
120
|
+
# Portion of the amount that is for shipping.
|
121
|
+
attr_accessor :amount
|
122
|
+
# The postal code that represents the shipping source.
|
123
|
+
attr_accessor :from_postal_code
|
124
|
+
# The postal code that represents the shipping destination.
|
125
|
+
attr_accessor :to_postal_code
|
126
|
+
|
127
|
+
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
|
128
|
+
@amount = amount
|
129
|
+
@from_postal_code = from_postal_code
|
130
|
+
@to_postal_code = to_postal_code
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
class Tax < Stripe::RequestParams
|
135
|
+
# Total portion of the amount that is for tax.
|
136
|
+
attr_accessor :total_tax_amount
|
137
|
+
|
138
|
+
def initialize(total_tax_amount: nil)
|
139
|
+
@total_tax_amount = total_tax_amount
|
140
|
+
end
|
141
|
+
end
|
142
|
+
# The total discount applied on the transaction.
|
143
|
+
attr_accessor :discount_amount
|
144
|
+
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
|
145
|
+
attr_accessor :line_items
|
146
|
+
# Contains information about the shipping portion of the amount.
|
147
|
+
attr_accessor :shipping
|
148
|
+
# Contains information about the tax portion of the amount.
|
149
|
+
attr_accessor :tax
|
150
|
+
|
151
|
+
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
|
152
|
+
@discount_amount = discount_amount
|
153
|
+
@line_items = line_items
|
154
|
+
@shipping = shipping
|
155
|
+
@tax = tax
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
6
159
|
class AutomaticPaymentMethods < Stripe::RequestParams
|
7
160
|
# Controls whether this PaymentIntent will accept redirect-based payment methods.
|
8
161
|
#
|
@@ -17,6 +170,31 @@ module Stripe
|
|
17
170
|
end
|
18
171
|
end
|
19
172
|
|
173
|
+
class Hooks < Stripe::RequestParams
|
174
|
+
class Inputs < Stripe::RequestParams
|
175
|
+
class Tax < Stripe::RequestParams
|
176
|
+
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
177
|
+
attr_accessor :calculation
|
178
|
+
|
179
|
+
def initialize(calculation: nil)
|
180
|
+
@calculation = calculation
|
181
|
+
end
|
182
|
+
end
|
183
|
+
# Tax arguments for automations
|
184
|
+
attr_accessor :tax
|
185
|
+
|
186
|
+
def initialize(tax: nil)
|
187
|
+
@tax = tax
|
188
|
+
end
|
189
|
+
end
|
190
|
+
# Arguments passed in automations
|
191
|
+
attr_accessor :inputs
|
192
|
+
|
193
|
+
def initialize(inputs: nil)
|
194
|
+
@inputs = inputs
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
20
198
|
class MandateData < Stripe::RequestParams
|
21
199
|
class CustomerAcceptance < Stripe::RequestParams
|
22
200
|
class Offline < Stripe::RequestParams; end
|
@@ -41,18 +219,723 @@ module Stripe
|
|
41
219
|
# The type of customer acceptance information included with the Mandate. One of `online` or `offline`.
|
42
220
|
attr_accessor :type
|
43
221
|
|
44
|
-
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
45
|
-
@accepted_at = accepted_at
|
46
|
-
@offline = offline
|
47
|
-
@online = online
|
48
|
-
@type = type
|
222
|
+
def initialize(accepted_at: nil, offline: nil, online: nil, type: nil)
|
223
|
+
@accepted_at = accepted_at
|
224
|
+
@offline = offline
|
225
|
+
@online = online
|
226
|
+
@type = type
|
227
|
+
end
|
228
|
+
end
|
229
|
+
# This hash contains details about the customer acceptance of the Mandate.
|
230
|
+
attr_accessor :customer_acceptance
|
231
|
+
|
232
|
+
def initialize(customer_acceptance: nil)
|
233
|
+
@customer_acceptance = customer_acceptance
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
class PaymentDetails < Stripe::RequestParams
|
238
|
+
class CarRental < Stripe::RequestParams
|
239
|
+
class Affiliate < Stripe::RequestParams
|
240
|
+
# The name of the affiliate that originated the purchase.
|
241
|
+
attr_accessor :name
|
242
|
+
|
243
|
+
def initialize(name: nil)
|
244
|
+
@name = name
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
class Delivery < Stripe::RequestParams
|
249
|
+
class Recipient < Stripe::RequestParams
|
250
|
+
# The email of the recipient the ticket is delivered to.
|
251
|
+
attr_accessor :email
|
252
|
+
# The name of the recipient the ticket is delivered to.
|
253
|
+
attr_accessor :name
|
254
|
+
# The phone number of the recipient the ticket is delivered to.
|
255
|
+
attr_accessor :phone
|
256
|
+
|
257
|
+
def initialize(email: nil, name: nil, phone: nil)
|
258
|
+
@email = email
|
259
|
+
@name = name
|
260
|
+
@phone = phone
|
261
|
+
end
|
262
|
+
end
|
263
|
+
# The delivery method for the payment
|
264
|
+
attr_accessor :mode
|
265
|
+
# Details of the recipient.
|
266
|
+
attr_accessor :recipient
|
267
|
+
|
268
|
+
def initialize(mode: nil, recipient: nil)
|
269
|
+
@mode = mode
|
270
|
+
@recipient = recipient
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
class Distance < Stripe::RequestParams
|
275
|
+
# Distance traveled.
|
276
|
+
attr_accessor :amount
|
277
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
278
|
+
attr_accessor :unit
|
279
|
+
|
280
|
+
def initialize(amount: nil, unit: nil)
|
281
|
+
@amount = amount
|
282
|
+
@unit = unit
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
class Driver < Stripe::RequestParams
|
287
|
+
# Driver's identification number.
|
288
|
+
attr_accessor :driver_identification_number
|
289
|
+
# Driver's tax number.
|
290
|
+
attr_accessor :driver_tax_number
|
291
|
+
# Full name of the person or entity on the car reservation.
|
292
|
+
attr_accessor :name
|
293
|
+
|
294
|
+
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
295
|
+
@driver_identification_number = driver_identification_number
|
296
|
+
@driver_tax_number = driver_tax_number
|
297
|
+
@name = name
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
class PickupAddress < Stripe::RequestParams
|
302
|
+
# City, district, suburb, town, or village.
|
303
|
+
attr_accessor :city
|
304
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
305
|
+
attr_accessor :country
|
306
|
+
# Address line 1, such as the street, PO Box, or company name.
|
307
|
+
attr_accessor :line1
|
308
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
309
|
+
attr_accessor :line2
|
310
|
+
# ZIP or postal code.
|
311
|
+
attr_accessor :postal_code
|
312
|
+
# State, county, province, or region.
|
313
|
+
attr_accessor :state
|
314
|
+
|
315
|
+
def initialize(
|
316
|
+
city: nil,
|
317
|
+
country: nil,
|
318
|
+
line1: nil,
|
319
|
+
line2: nil,
|
320
|
+
postal_code: nil,
|
321
|
+
state: nil
|
322
|
+
)
|
323
|
+
@city = city
|
324
|
+
@country = country
|
325
|
+
@line1 = line1
|
326
|
+
@line2 = line2
|
327
|
+
@postal_code = postal_code
|
328
|
+
@state = state
|
329
|
+
end
|
330
|
+
end
|
331
|
+
|
332
|
+
class ReturnAddress < Stripe::RequestParams
|
333
|
+
# City, district, suburb, town, or village.
|
334
|
+
attr_accessor :city
|
335
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
336
|
+
attr_accessor :country
|
337
|
+
# Address line 1, such as the street, PO Box, or company name.
|
338
|
+
attr_accessor :line1
|
339
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
340
|
+
attr_accessor :line2
|
341
|
+
# ZIP or postal code.
|
342
|
+
attr_accessor :postal_code
|
343
|
+
# State, county, province, or region.
|
344
|
+
attr_accessor :state
|
345
|
+
|
346
|
+
def initialize(
|
347
|
+
city: nil,
|
348
|
+
country: nil,
|
349
|
+
line1: nil,
|
350
|
+
line2: nil,
|
351
|
+
postal_code: nil,
|
352
|
+
state: nil
|
353
|
+
)
|
354
|
+
@city = city
|
355
|
+
@country = country
|
356
|
+
@line1 = line1
|
357
|
+
@line2 = line2
|
358
|
+
@postal_code = postal_code
|
359
|
+
@state = state
|
360
|
+
end
|
361
|
+
end
|
362
|
+
# Affiliate details for this purchase.
|
363
|
+
attr_accessor :affiliate
|
364
|
+
# The booking number associated with the car rental.
|
365
|
+
attr_accessor :booking_number
|
366
|
+
# Class code of the car.
|
367
|
+
attr_accessor :car_class_code
|
368
|
+
# Make of the car.
|
369
|
+
attr_accessor :car_make
|
370
|
+
# Model of the car.
|
371
|
+
attr_accessor :car_model
|
372
|
+
# The name of the rental car company.
|
373
|
+
attr_accessor :company
|
374
|
+
# The customer service phone number of the car rental company.
|
375
|
+
attr_accessor :customer_service_phone_number
|
376
|
+
# Number of days the car is being rented.
|
377
|
+
attr_accessor :days_rented
|
378
|
+
# Delivery details for this purchase.
|
379
|
+
attr_accessor :delivery
|
380
|
+
# The details of the distance traveled during the rental period.
|
381
|
+
attr_accessor :distance
|
382
|
+
# The details of the passengers in the travel reservation
|
383
|
+
attr_accessor :drivers
|
384
|
+
# List of additional charges being billed.
|
385
|
+
attr_accessor :extra_charges
|
386
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
387
|
+
attr_accessor :no_show
|
388
|
+
# Car pick-up address.
|
389
|
+
attr_accessor :pickup_address
|
390
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
391
|
+
attr_accessor :pickup_at
|
392
|
+
# Name of the pickup location.
|
393
|
+
attr_accessor :pickup_location_name
|
394
|
+
# Rental rate.
|
395
|
+
attr_accessor :rate_amount
|
396
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
397
|
+
attr_accessor :rate_interval
|
398
|
+
# The name of the person or entity renting the car.
|
399
|
+
attr_accessor :renter_name
|
400
|
+
# Car return address.
|
401
|
+
attr_accessor :return_address
|
402
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
403
|
+
attr_accessor :return_at
|
404
|
+
# Name of the return location.
|
405
|
+
attr_accessor :return_location_name
|
406
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
407
|
+
attr_accessor :tax_exempt
|
408
|
+
# The vehicle identification number.
|
409
|
+
attr_accessor :vehicle_identification_number
|
410
|
+
|
411
|
+
def initialize(
|
412
|
+
affiliate: nil,
|
413
|
+
booking_number: nil,
|
414
|
+
car_class_code: nil,
|
415
|
+
car_make: nil,
|
416
|
+
car_model: nil,
|
417
|
+
company: nil,
|
418
|
+
customer_service_phone_number: nil,
|
419
|
+
days_rented: nil,
|
420
|
+
delivery: nil,
|
421
|
+
distance: nil,
|
422
|
+
drivers: nil,
|
423
|
+
extra_charges: nil,
|
424
|
+
no_show: nil,
|
425
|
+
pickup_address: nil,
|
426
|
+
pickup_at: nil,
|
427
|
+
pickup_location_name: nil,
|
428
|
+
rate_amount: nil,
|
429
|
+
rate_interval: nil,
|
430
|
+
renter_name: nil,
|
431
|
+
return_address: nil,
|
432
|
+
return_at: nil,
|
433
|
+
return_location_name: nil,
|
434
|
+
tax_exempt: nil,
|
435
|
+
vehicle_identification_number: nil
|
436
|
+
)
|
437
|
+
@affiliate = affiliate
|
438
|
+
@booking_number = booking_number
|
439
|
+
@car_class_code = car_class_code
|
440
|
+
@car_make = car_make
|
441
|
+
@car_model = car_model
|
442
|
+
@company = company
|
443
|
+
@customer_service_phone_number = customer_service_phone_number
|
444
|
+
@days_rented = days_rented
|
445
|
+
@delivery = delivery
|
446
|
+
@distance = distance
|
447
|
+
@drivers = drivers
|
448
|
+
@extra_charges = extra_charges
|
449
|
+
@no_show = no_show
|
450
|
+
@pickup_address = pickup_address
|
451
|
+
@pickup_at = pickup_at
|
452
|
+
@pickup_location_name = pickup_location_name
|
453
|
+
@rate_amount = rate_amount
|
454
|
+
@rate_interval = rate_interval
|
455
|
+
@renter_name = renter_name
|
456
|
+
@return_address = return_address
|
457
|
+
@return_at = return_at
|
458
|
+
@return_location_name = return_location_name
|
459
|
+
@tax_exempt = tax_exempt
|
460
|
+
@vehicle_identification_number = vehicle_identification_number
|
461
|
+
end
|
462
|
+
end
|
463
|
+
|
464
|
+
class EventDetails < Stripe::RequestParams
|
465
|
+
class Address < Stripe::RequestParams
|
466
|
+
# City, district, suburb, town, or village.
|
467
|
+
attr_accessor :city
|
468
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
469
|
+
attr_accessor :country
|
470
|
+
# Address line 1, such as the street, PO Box, or company name.
|
471
|
+
attr_accessor :line1
|
472
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
473
|
+
attr_accessor :line2
|
474
|
+
# ZIP or postal code.
|
475
|
+
attr_accessor :postal_code
|
476
|
+
# State, county, province, or region.
|
477
|
+
attr_accessor :state
|
478
|
+
|
479
|
+
def initialize(
|
480
|
+
city: nil,
|
481
|
+
country: nil,
|
482
|
+
line1: nil,
|
483
|
+
line2: nil,
|
484
|
+
postal_code: nil,
|
485
|
+
state: nil
|
486
|
+
)
|
487
|
+
@city = city
|
488
|
+
@country = country
|
489
|
+
@line1 = line1
|
490
|
+
@line2 = line2
|
491
|
+
@postal_code = postal_code
|
492
|
+
@state = state
|
493
|
+
end
|
494
|
+
end
|
495
|
+
|
496
|
+
class Affiliate < Stripe::RequestParams
|
497
|
+
# The name of the affiliate that originated the purchase.
|
498
|
+
attr_accessor :name
|
499
|
+
|
500
|
+
def initialize(name: nil)
|
501
|
+
@name = name
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
505
|
+
class Delivery < Stripe::RequestParams
|
506
|
+
class Recipient < Stripe::RequestParams
|
507
|
+
# The email of the recipient the ticket is delivered to.
|
508
|
+
attr_accessor :email
|
509
|
+
# The name of the recipient the ticket is delivered to.
|
510
|
+
attr_accessor :name
|
511
|
+
# The phone number of the recipient the ticket is delivered to.
|
512
|
+
attr_accessor :phone
|
513
|
+
|
514
|
+
def initialize(email: nil, name: nil, phone: nil)
|
515
|
+
@email = email
|
516
|
+
@name = name
|
517
|
+
@phone = phone
|
518
|
+
end
|
519
|
+
end
|
520
|
+
# The delivery method for the payment
|
521
|
+
attr_accessor :mode
|
522
|
+
# Details of the recipient.
|
523
|
+
attr_accessor :recipient
|
524
|
+
|
525
|
+
def initialize(mode: nil, recipient: nil)
|
526
|
+
@mode = mode
|
527
|
+
@recipient = recipient
|
528
|
+
end
|
529
|
+
end
|
530
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
531
|
+
attr_accessor :access_controlled_venue
|
532
|
+
# The event location's address.
|
533
|
+
attr_accessor :address
|
534
|
+
# Affiliate details for this purchase.
|
535
|
+
attr_accessor :affiliate
|
536
|
+
# The name of the company
|
537
|
+
attr_accessor :company
|
538
|
+
# Delivery details for this purchase.
|
539
|
+
attr_accessor :delivery
|
540
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
541
|
+
attr_accessor :ends_at
|
542
|
+
# Type of the event entertainment (concert, sports event etc)
|
543
|
+
attr_accessor :genre
|
544
|
+
# The name of the event.
|
545
|
+
attr_accessor :name
|
546
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
547
|
+
attr_accessor :starts_at
|
548
|
+
|
549
|
+
def initialize(
|
550
|
+
access_controlled_venue: nil,
|
551
|
+
address: nil,
|
552
|
+
affiliate: nil,
|
553
|
+
company: nil,
|
554
|
+
delivery: nil,
|
555
|
+
ends_at: nil,
|
556
|
+
genre: nil,
|
557
|
+
name: nil,
|
558
|
+
starts_at: nil
|
559
|
+
)
|
560
|
+
@access_controlled_venue = access_controlled_venue
|
561
|
+
@address = address
|
562
|
+
@affiliate = affiliate
|
563
|
+
@company = company
|
564
|
+
@delivery = delivery
|
565
|
+
@ends_at = ends_at
|
566
|
+
@genre = genre
|
567
|
+
@name = name
|
568
|
+
@starts_at = starts_at
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
class Flight < Stripe::RequestParams
|
573
|
+
class Affiliate < Stripe::RequestParams
|
574
|
+
# The name of the affiliate that originated the purchase.
|
575
|
+
attr_accessor :name
|
576
|
+
|
577
|
+
def initialize(name: nil)
|
578
|
+
@name = name
|
579
|
+
end
|
580
|
+
end
|
581
|
+
|
582
|
+
class Delivery < Stripe::RequestParams
|
583
|
+
class Recipient < Stripe::RequestParams
|
584
|
+
# The email of the recipient the ticket is delivered to.
|
585
|
+
attr_accessor :email
|
586
|
+
# The name of the recipient the ticket is delivered to.
|
587
|
+
attr_accessor :name
|
588
|
+
# The phone number of the recipient the ticket is delivered to.
|
589
|
+
attr_accessor :phone
|
590
|
+
|
591
|
+
def initialize(email: nil, name: nil, phone: nil)
|
592
|
+
@email = email
|
593
|
+
@name = name
|
594
|
+
@phone = phone
|
595
|
+
end
|
596
|
+
end
|
597
|
+
# The delivery method for the payment
|
598
|
+
attr_accessor :mode
|
599
|
+
# Details of the recipient.
|
600
|
+
attr_accessor :recipient
|
601
|
+
|
602
|
+
def initialize(mode: nil, recipient: nil)
|
603
|
+
@mode = mode
|
604
|
+
@recipient = recipient
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
608
|
+
class Passenger < Stripe::RequestParams
|
609
|
+
# Full name of the person or entity on the flight reservation.
|
610
|
+
attr_accessor :name
|
611
|
+
|
612
|
+
def initialize(name: nil)
|
613
|
+
@name = name
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
617
|
+
class Segment < Stripe::RequestParams
|
618
|
+
# The flight segment amount.
|
619
|
+
attr_accessor :amount
|
620
|
+
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
621
|
+
attr_accessor :arrival_airport
|
622
|
+
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
623
|
+
attr_accessor :arrives_at
|
624
|
+
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
625
|
+
attr_accessor :carrier
|
626
|
+
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
627
|
+
attr_accessor :departs_at
|
628
|
+
# The International Air Transport Association (IATA) airport code for the departure airport.
|
629
|
+
attr_accessor :departure_airport
|
630
|
+
# The flight number associated with the segment
|
631
|
+
attr_accessor :flight_number
|
632
|
+
# The fare class for the segment.
|
633
|
+
attr_accessor :service_class
|
634
|
+
|
635
|
+
def initialize(
|
636
|
+
amount: nil,
|
637
|
+
arrival_airport: nil,
|
638
|
+
arrives_at: nil,
|
639
|
+
carrier: nil,
|
640
|
+
departs_at: nil,
|
641
|
+
departure_airport: nil,
|
642
|
+
flight_number: nil,
|
643
|
+
service_class: nil
|
644
|
+
)
|
645
|
+
@amount = amount
|
646
|
+
@arrival_airport = arrival_airport
|
647
|
+
@arrives_at = arrives_at
|
648
|
+
@carrier = carrier
|
649
|
+
@departs_at = departs_at
|
650
|
+
@departure_airport = departure_airport
|
651
|
+
@flight_number = flight_number
|
652
|
+
@service_class = service_class
|
653
|
+
end
|
654
|
+
end
|
655
|
+
# Affiliate details for this purchase.
|
656
|
+
attr_accessor :affiliate
|
657
|
+
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
658
|
+
attr_accessor :agency_number
|
659
|
+
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
660
|
+
attr_accessor :carrier
|
661
|
+
# Delivery details for this purchase.
|
662
|
+
attr_accessor :delivery
|
663
|
+
# The name of the person or entity on the reservation.
|
664
|
+
attr_accessor :passenger_name
|
665
|
+
# The details of the passengers in the travel reservation.
|
666
|
+
attr_accessor :passengers
|
667
|
+
# The individual flight segments associated with the trip.
|
668
|
+
attr_accessor :segments
|
669
|
+
# The ticket number associated with the travel reservation.
|
670
|
+
attr_accessor :ticket_number
|
671
|
+
|
672
|
+
def initialize(
|
673
|
+
affiliate: nil,
|
674
|
+
agency_number: nil,
|
675
|
+
carrier: nil,
|
676
|
+
delivery: nil,
|
677
|
+
passenger_name: nil,
|
678
|
+
passengers: nil,
|
679
|
+
segments: nil,
|
680
|
+
ticket_number: nil
|
681
|
+
)
|
682
|
+
@affiliate = affiliate
|
683
|
+
@agency_number = agency_number
|
684
|
+
@carrier = carrier
|
685
|
+
@delivery = delivery
|
686
|
+
@passenger_name = passenger_name
|
687
|
+
@passengers = passengers
|
688
|
+
@segments = segments
|
689
|
+
@ticket_number = ticket_number
|
690
|
+
end
|
691
|
+
end
|
692
|
+
|
693
|
+
class Lodging < Stripe::RequestParams
|
694
|
+
class Address < Stripe::RequestParams
|
695
|
+
# City, district, suburb, town, or village.
|
696
|
+
attr_accessor :city
|
697
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
698
|
+
attr_accessor :country
|
699
|
+
# Address line 1, such as the street, PO Box, or company name.
|
700
|
+
attr_accessor :line1
|
701
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
702
|
+
attr_accessor :line2
|
703
|
+
# ZIP or postal code.
|
704
|
+
attr_accessor :postal_code
|
705
|
+
# State, county, province, or region.
|
706
|
+
attr_accessor :state
|
707
|
+
|
708
|
+
def initialize(
|
709
|
+
city: nil,
|
710
|
+
country: nil,
|
711
|
+
line1: nil,
|
712
|
+
line2: nil,
|
713
|
+
postal_code: nil,
|
714
|
+
state: nil
|
715
|
+
)
|
716
|
+
@city = city
|
717
|
+
@country = country
|
718
|
+
@line1 = line1
|
719
|
+
@line2 = line2
|
720
|
+
@postal_code = postal_code
|
721
|
+
@state = state
|
722
|
+
end
|
723
|
+
end
|
724
|
+
|
725
|
+
class Affiliate < Stripe::RequestParams
|
726
|
+
# The name of the affiliate that originated the purchase.
|
727
|
+
attr_accessor :name
|
728
|
+
|
729
|
+
def initialize(name: nil)
|
730
|
+
@name = name
|
731
|
+
end
|
732
|
+
end
|
733
|
+
|
734
|
+
class Delivery < Stripe::RequestParams
|
735
|
+
class Recipient < Stripe::RequestParams
|
736
|
+
# The email of the recipient the ticket is delivered to.
|
737
|
+
attr_accessor :email
|
738
|
+
# The name of the recipient the ticket is delivered to.
|
739
|
+
attr_accessor :name
|
740
|
+
# The phone number of the recipient the ticket is delivered to.
|
741
|
+
attr_accessor :phone
|
742
|
+
|
743
|
+
def initialize(email: nil, name: nil, phone: nil)
|
744
|
+
@email = email
|
745
|
+
@name = name
|
746
|
+
@phone = phone
|
747
|
+
end
|
748
|
+
end
|
749
|
+
# The delivery method for the payment
|
750
|
+
attr_accessor :mode
|
751
|
+
# Details of the recipient.
|
752
|
+
attr_accessor :recipient
|
753
|
+
|
754
|
+
def initialize(mode: nil, recipient: nil)
|
755
|
+
@mode = mode
|
756
|
+
@recipient = recipient
|
757
|
+
end
|
758
|
+
end
|
759
|
+
|
760
|
+
class Passenger < Stripe::RequestParams
|
761
|
+
# Full name of the person or entity on the lodging reservation.
|
762
|
+
attr_accessor :name
|
763
|
+
|
764
|
+
def initialize(name: nil)
|
765
|
+
@name = name
|
766
|
+
end
|
767
|
+
end
|
768
|
+
# The lodging location's address.
|
769
|
+
attr_accessor :address
|
770
|
+
# The number of adults on the booking
|
771
|
+
attr_accessor :adults
|
772
|
+
# Affiliate details for this purchase.
|
773
|
+
attr_accessor :affiliate
|
774
|
+
# The booking number associated with the lodging reservation.
|
775
|
+
attr_accessor :booking_number
|
776
|
+
# The lodging category
|
777
|
+
attr_accessor :category
|
778
|
+
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
779
|
+
attr_accessor :checkin_at
|
780
|
+
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
781
|
+
attr_accessor :checkout_at
|
782
|
+
# The customer service phone number of the lodging company.
|
783
|
+
attr_accessor :customer_service_phone_number
|
784
|
+
# The daily lodging room rate.
|
785
|
+
attr_accessor :daily_room_rate_amount
|
786
|
+
# Delivery details for this purchase.
|
787
|
+
attr_accessor :delivery
|
788
|
+
# List of additional charges being billed.
|
789
|
+
attr_accessor :extra_charges
|
790
|
+
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
791
|
+
attr_accessor :fire_safety_act_compliance
|
792
|
+
# The name of the lodging location.
|
793
|
+
attr_accessor :name
|
794
|
+
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
795
|
+
attr_accessor :no_show
|
796
|
+
# The number of rooms on the booking
|
797
|
+
attr_accessor :number_of_rooms
|
798
|
+
# The details of the passengers in the travel reservation
|
799
|
+
attr_accessor :passengers
|
800
|
+
# The phone number of the lodging location.
|
801
|
+
attr_accessor :property_phone_number
|
802
|
+
# The room class for this purchase.
|
803
|
+
attr_accessor :room_class
|
804
|
+
# The number of room nights
|
805
|
+
attr_accessor :room_nights
|
806
|
+
# The total tax amount associating with the room reservation.
|
807
|
+
attr_accessor :total_room_tax_amount
|
808
|
+
# The total tax amount
|
809
|
+
attr_accessor :total_tax_amount
|
810
|
+
|
811
|
+
def initialize(
|
812
|
+
address: nil,
|
813
|
+
adults: nil,
|
814
|
+
affiliate: nil,
|
815
|
+
booking_number: nil,
|
816
|
+
category: nil,
|
817
|
+
checkin_at: nil,
|
818
|
+
checkout_at: nil,
|
819
|
+
customer_service_phone_number: nil,
|
820
|
+
daily_room_rate_amount: nil,
|
821
|
+
delivery: nil,
|
822
|
+
extra_charges: nil,
|
823
|
+
fire_safety_act_compliance: nil,
|
824
|
+
name: nil,
|
825
|
+
no_show: nil,
|
826
|
+
number_of_rooms: nil,
|
827
|
+
passengers: nil,
|
828
|
+
property_phone_number: nil,
|
829
|
+
room_class: nil,
|
830
|
+
room_nights: nil,
|
831
|
+
total_room_tax_amount: nil,
|
832
|
+
total_tax_amount: nil
|
833
|
+
)
|
834
|
+
@address = address
|
835
|
+
@adults = adults
|
836
|
+
@affiliate = affiliate
|
837
|
+
@booking_number = booking_number
|
838
|
+
@category = category
|
839
|
+
@checkin_at = checkin_at
|
840
|
+
@checkout_at = checkout_at
|
841
|
+
@customer_service_phone_number = customer_service_phone_number
|
842
|
+
@daily_room_rate_amount = daily_room_rate_amount
|
843
|
+
@delivery = delivery
|
844
|
+
@extra_charges = extra_charges
|
845
|
+
@fire_safety_act_compliance = fire_safety_act_compliance
|
846
|
+
@name = name
|
847
|
+
@no_show = no_show
|
848
|
+
@number_of_rooms = number_of_rooms
|
849
|
+
@passengers = passengers
|
850
|
+
@property_phone_number = property_phone_number
|
851
|
+
@room_class = room_class
|
852
|
+
@room_nights = room_nights
|
853
|
+
@total_room_tax_amount = total_room_tax_amount
|
854
|
+
@total_tax_amount = total_tax_amount
|
855
|
+
end
|
856
|
+
end
|
857
|
+
|
858
|
+
class Subscription < Stripe::RequestParams
|
859
|
+
class Affiliate < Stripe::RequestParams
|
860
|
+
# The name of the affiliate that originated the purchase.
|
861
|
+
attr_accessor :name
|
862
|
+
|
863
|
+
def initialize(name: nil)
|
864
|
+
@name = name
|
865
|
+
end
|
866
|
+
end
|
867
|
+
|
868
|
+
class BillingInterval < Stripe::RequestParams
|
869
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
870
|
+
attr_accessor :count
|
871
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
872
|
+
attr_accessor :interval
|
873
|
+
|
874
|
+
def initialize(count: nil, interval: nil)
|
875
|
+
@count = count
|
876
|
+
@interval = interval
|
877
|
+
end
|
49
878
|
end
|
50
|
-
|
51
|
-
|
52
|
-
|
879
|
+
# Affiliate details for this purchase.
|
880
|
+
attr_accessor :affiliate
|
881
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
882
|
+
attr_accessor :auto_renewal
|
883
|
+
# Subscription billing details for this purchase.
|
884
|
+
attr_accessor :billing_interval
|
885
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
886
|
+
attr_accessor :ends_at
|
887
|
+
# Name of the product on subscription. e.g. Apple Music Subscription
|
888
|
+
attr_accessor :name
|
889
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
890
|
+
attr_accessor :starts_at
|
53
891
|
|
54
|
-
|
55
|
-
|
892
|
+
def initialize(
|
893
|
+
affiliate: nil,
|
894
|
+
auto_renewal: nil,
|
895
|
+
billing_interval: nil,
|
896
|
+
ends_at: nil,
|
897
|
+
name: nil,
|
898
|
+
starts_at: nil
|
899
|
+
)
|
900
|
+
@affiliate = affiliate
|
901
|
+
@auto_renewal = auto_renewal
|
902
|
+
@billing_interval = billing_interval
|
903
|
+
@ends_at = ends_at
|
904
|
+
@name = name
|
905
|
+
@starts_at = starts_at
|
906
|
+
end
|
907
|
+
end
|
908
|
+
# Car rental details for this PaymentIntent.
|
909
|
+
attr_accessor :car_rental
|
910
|
+
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
|
911
|
+
attr_accessor :customer_reference
|
912
|
+
# Event details for this PaymentIntent
|
913
|
+
attr_accessor :event_details
|
914
|
+
# Flight reservation details for this PaymentIntent
|
915
|
+
attr_accessor :flight
|
916
|
+
# Lodging reservation details for this PaymentIntent
|
917
|
+
attr_accessor :lodging
|
918
|
+
# A unique value assigned by the business to identify the transaction.
|
919
|
+
attr_accessor :order_reference
|
920
|
+
# Subscription details for this PaymentIntent
|
921
|
+
attr_accessor :subscription
|
922
|
+
|
923
|
+
def initialize(
|
924
|
+
car_rental: nil,
|
925
|
+
customer_reference: nil,
|
926
|
+
event_details: nil,
|
927
|
+
flight: nil,
|
928
|
+
lodging: nil,
|
929
|
+
order_reference: nil,
|
930
|
+
subscription: nil
|
931
|
+
)
|
932
|
+
@car_rental = car_rental
|
933
|
+
@customer_reference = customer_reference
|
934
|
+
@event_details = event_details
|
935
|
+
@flight = flight
|
936
|
+
@lodging = lodging
|
937
|
+
@order_reference = order_reference
|
938
|
+
@subscription = subscription
|
56
939
|
end
|
57
940
|
end
|
58
941
|
|
@@ -193,8 +1076,18 @@ module Stripe
|
|
193
1076
|
end
|
194
1077
|
|
195
1078
|
class Giropay < Stripe::RequestParams; end
|
1079
|
+
class Gopay < Stripe::RequestParams; end
|
196
1080
|
class Grabpay < Stripe::RequestParams; end
|
197
1081
|
|
1082
|
+
class IdBankTransfer < Stripe::RequestParams
|
1083
|
+
# Bank where the account is held.
|
1084
|
+
attr_accessor :bank
|
1085
|
+
|
1086
|
+
def initialize(bank: nil)
|
1087
|
+
@bank = bank
|
1088
|
+
end
|
1089
|
+
end
|
1090
|
+
|
198
1091
|
class Ideal < Stripe::RequestParams
|
199
1092
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
200
1093
|
attr_accessor :bank
|
@@ -292,8 +1185,26 @@ module Stripe
|
|
292
1185
|
class Payco < Stripe::RequestParams; end
|
293
1186
|
class Paynow < Stripe::RequestParams; end
|
294
1187
|
class Paypal < Stripe::RequestParams; end
|
1188
|
+
class Paypay < Stripe::RequestParams; end
|
1189
|
+
|
1190
|
+
class Payto < Stripe::RequestParams
|
1191
|
+
# The account number for the bank account.
|
1192
|
+
attr_accessor :account_number
|
1193
|
+
# Bank-State-Branch number of the bank account.
|
1194
|
+
attr_accessor :bsb_number
|
1195
|
+
# The PayID alias for the bank account.
|
1196
|
+
attr_accessor :pay_id
|
1197
|
+
|
1198
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
1199
|
+
@account_number = account_number
|
1200
|
+
@bsb_number = bsb_number
|
1201
|
+
@pay_id = pay_id
|
1202
|
+
end
|
1203
|
+
end
|
1204
|
+
|
295
1205
|
class Pix < Stripe::RequestParams; end
|
296
1206
|
class Promptpay < Stripe::RequestParams; end
|
1207
|
+
class Qris < Stripe::RequestParams; end
|
297
1208
|
|
298
1209
|
class RadarOptions < Stripe::RequestParams
|
299
1210
|
# 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.
|
@@ -304,6 +1215,29 @@ module Stripe
|
|
304
1215
|
end
|
305
1216
|
end
|
306
1217
|
|
1218
|
+
class Rechnung < Stripe::RequestParams
|
1219
|
+
class Dob < Stripe::RequestParams
|
1220
|
+
# The day of birth, between 1 and 31.
|
1221
|
+
attr_accessor :day
|
1222
|
+
# The month of birth, between 1 and 12.
|
1223
|
+
attr_accessor :month
|
1224
|
+
# The four-digit year of birth.
|
1225
|
+
attr_accessor :year
|
1226
|
+
|
1227
|
+
def initialize(day: nil, month: nil, year: nil)
|
1228
|
+
@day = day
|
1229
|
+
@month = month
|
1230
|
+
@year = year
|
1231
|
+
end
|
1232
|
+
end
|
1233
|
+
# Customer's date of birth
|
1234
|
+
attr_accessor :dob
|
1235
|
+
|
1236
|
+
def initialize(dob: nil)
|
1237
|
+
@dob = dob
|
1238
|
+
end
|
1239
|
+
end
|
1240
|
+
|
307
1241
|
class RevolutPay < Stripe::RequestParams; end
|
308
1242
|
class SamsungPay < Stripe::RequestParams; end
|
309
1243
|
class Satispay < Stripe::RequestParams; end
|
@@ -317,6 +1251,8 @@ module Stripe
|
|
317
1251
|
end
|
318
1252
|
end
|
319
1253
|
|
1254
|
+
class Shopeepay < Stripe::RequestParams; end
|
1255
|
+
|
320
1256
|
class Sofort < Stripe::RequestParams
|
321
1257
|
# Two-letter ISO code representing the country the bank account is located in.
|
322
1258
|
attr_accessor :country
|
@@ -326,6 +1262,18 @@ module Stripe
|
|
326
1262
|
end
|
327
1263
|
end
|
328
1264
|
|
1265
|
+
class StripeBalance < Stripe::RequestParams
|
1266
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
1267
|
+
attr_accessor :account
|
1268
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
1269
|
+
attr_accessor :source_type
|
1270
|
+
|
1271
|
+
def initialize(account: nil, source_type: nil)
|
1272
|
+
@account = account
|
1273
|
+
@source_type = source_type
|
1274
|
+
end
|
1275
|
+
end
|
1276
|
+
|
329
1277
|
class Swish < Stripe::RequestParams; end
|
330
1278
|
class Twint < Stripe::RequestParams; end
|
331
1279
|
|
@@ -398,8 +1346,12 @@ module Stripe
|
|
398
1346
|
attr_accessor :fpx
|
399
1347
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
400
1348
|
attr_accessor :giropay
|
1349
|
+
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
1350
|
+
attr_accessor :gopay
|
401
1351
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
402
1352
|
attr_accessor :grabpay
|
1353
|
+
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
1354
|
+
attr_accessor :id_bank_transfer
|
403
1355
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
404
1356
|
attr_accessor :ideal
|
405
1357
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -438,12 +1390,20 @@ module Stripe
|
|
438
1390
|
attr_accessor :paynow
|
439
1391
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
440
1392
|
attr_accessor :paypal
|
1393
|
+
# If this is a `paypay` PaymentMethod, this hash contains details about the PayPay payment method.
|
1394
|
+
attr_accessor :paypay
|
1395
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
1396
|
+
attr_accessor :payto
|
441
1397
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
442
1398
|
attr_accessor :pix
|
443
1399
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
444
1400
|
attr_accessor :promptpay
|
1401
|
+
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
1402
|
+
attr_accessor :qris
|
445
1403
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
446
1404
|
attr_accessor :radar_options
|
1405
|
+
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
1406
|
+
attr_accessor :rechnung
|
447
1407
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
448
1408
|
attr_accessor :revolut_pay
|
449
1409
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -452,8 +1412,12 @@ module Stripe
|
|
452
1412
|
attr_accessor :satispay
|
453
1413
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
454
1414
|
attr_accessor :sepa_debit
|
1415
|
+
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
1416
|
+
attr_accessor :shopeepay
|
455
1417
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
456
1418
|
attr_accessor :sofort
|
1419
|
+
# This hash contains details about the Stripe balance payment method.
|
1420
|
+
attr_accessor :stripe_balance
|
457
1421
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
458
1422
|
attr_accessor :swish
|
459
1423
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -488,7 +1452,9 @@ module Stripe
|
|
488
1452
|
eps: nil,
|
489
1453
|
fpx: nil,
|
490
1454
|
giropay: nil,
|
1455
|
+
gopay: nil,
|
491
1456
|
grabpay: nil,
|
1457
|
+
id_bank_transfer: nil,
|
492
1458
|
ideal: nil,
|
493
1459
|
interac_present: nil,
|
494
1460
|
kakao_pay: nil,
|
@@ -508,14 +1474,20 @@ module Stripe
|
|
508
1474
|
payco: nil,
|
509
1475
|
paynow: nil,
|
510
1476
|
paypal: nil,
|
1477
|
+
paypay: nil,
|
1478
|
+
payto: nil,
|
511
1479
|
pix: nil,
|
512
1480
|
promptpay: nil,
|
1481
|
+
qris: nil,
|
513
1482
|
radar_options: nil,
|
1483
|
+
rechnung: nil,
|
514
1484
|
revolut_pay: nil,
|
515
1485
|
samsung_pay: nil,
|
516
1486
|
satispay: nil,
|
517
1487
|
sepa_debit: nil,
|
1488
|
+
shopeepay: nil,
|
518
1489
|
sofort: nil,
|
1490
|
+
stripe_balance: nil,
|
519
1491
|
swish: nil,
|
520
1492
|
twint: nil,
|
521
1493
|
type: nil,
|
@@ -543,7 +1515,9 @@ module Stripe
|
|
543
1515
|
@eps = eps
|
544
1516
|
@fpx = fpx
|
545
1517
|
@giropay = giropay
|
1518
|
+
@gopay = gopay
|
546
1519
|
@grabpay = grabpay
|
1520
|
+
@id_bank_transfer = id_bank_transfer
|
547
1521
|
@ideal = ideal
|
548
1522
|
@interac_present = interac_present
|
549
1523
|
@kakao_pay = kakao_pay
|
@@ -563,14 +1537,20 @@ module Stripe
|
|
563
1537
|
@payco = payco
|
564
1538
|
@paynow = paynow
|
565
1539
|
@paypal = paypal
|
1540
|
+
@paypay = paypay
|
1541
|
+
@payto = payto
|
566
1542
|
@pix = pix
|
567
1543
|
@promptpay = promptpay
|
1544
|
+
@qris = qris
|
568
1545
|
@radar_options = radar_options
|
1546
|
+
@rechnung = rechnung
|
569
1547
|
@revolut_pay = revolut_pay
|
570
1548
|
@samsung_pay = samsung_pay
|
571
1549
|
@satispay = satispay
|
572
1550
|
@sepa_debit = sepa_debit
|
1551
|
+
@shopeepay = shopeepay
|
573
1552
|
@sofort = sofort
|
1553
|
+
@stripe_balance = stripe_balance
|
574
1554
|
@swish = swish
|
575
1555
|
@twint = twint
|
576
1556
|
@type = type
|
@@ -941,6 +1921,48 @@ module Stripe
|
|
941
1921
|
end
|
942
1922
|
end
|
943
1923
|
|
1924
|
+
class StatementDetails < Stripe::RequestParams
|
1925
|
+
class Address < Stripe::RequestParams
|
1926
|
+
# City, district, suburb, town, or village.
|
1927
|
+
attr_accessor :city
|
1928
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1929
|
+
attr_accessor :country
|
1930
|
+
# Address line 1, such as the street, PO Box, or company name.
|
1931
|
+
attr_accessor :line1
|
1932
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
1933
|
+
attr_accessor :line2
|
1934
|
+
# ZIP or postal code.
|
1935
|
+
attr_accessor :postal_code
|
1936
|
+
# State, county, province, or region.
|
1937
|
+
attr_accessor :state
|
1938
|
+
|
1939
|
+
def initialize(
|
1940
|
+
city: nil,
|
1941
|
+
country: nil,
|
1942
|
+
line1: nil,
|
1943
|
+
line2: nil,
|
1944
|
+
postal_code: nil,
|
1945
|
+
state: nil
|
1946
|
+
)
|
1947
|
+
@city = city
|
1948
|
+
@country = country
|
1949
|
+
@line1 = line1
|
1950
|
+
@line2 = line2
|
1951
|
+
@postal_code = postal_code
|
1952
|
+
@state = state
|
1953
|
+
end
|
1954
|
+
end
|
1955
|
+
# Please pass in an address that is within your Stripe user account country
|
1956
|
+
attr_accessor :address
|
1957
|
+
# Phone number (e.g., a toll-free number that customers can call)
|
1958
|
+
attr_accessor :phone
|
1959
|
+
|
1960
|
+
def initialize(address: nil, phone: nil)
|
1961
|
+
@address = address
|
1962
|
+
@phone = phone
|
1963
|
+
end
|
1964
|
+
end
|
1965
|
+
|
944
1966
|
class ThreeDSecure < Stripe::RequestParams
|
945
1967
|
class NetworkOptions < Stripe::RequestParams
|
946
1968
|
class CartesBancaires < Stripe::RequestParams
|
@@ -1035,6 +2057,8 @@ module Stripe
|
|
1035
2057
|
attr_accessor :moto
|
1036
2058
|
# 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.
|
1037
2059
|
attr_accessor :network
|
2060
|
+
# Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
2061
|
+
attr_accessor :request_decremental_authorization
|
1038
2062
|
# Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
1039
2063
|
attr_accessor :request_extended_authorization
|
1040
2064
|
# Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
|
@@ -1043,6 +2067,8 @@ module Stripe
|
|
1043
2067
|
attr_accessor :request_multicapture
|
1044
2068
|
# Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
|
1045
2069
|
attr_accessor :request_overcapture
|
2070
|
+
# Request partial authorization on this PaymentIntent.
|
2071
|
+
attr_accessor :request_partial_authorization
|
1046
2072
|
# 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.
|
1047
2073
|
attr_accessor :request_three_d_secure
|
1048
2074
|
# 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).
|
@@ -1061,6 +2087,8 @@ module Stripe
|
|
1061
2087
|
attr_accessor :statement_descriptor_suffix_kana
|
1062
2088
|
# 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.
|
1063
2089
|
attr_accessor :statement_descriptor_suffix_kanji
|
2090
|
+
# Statement details for this payment intent. You can use this to override the merchant details shown on your customers' statements.
|
2091
|
+
attr_accessor :statement_details
|
1064
2092
|
# If 3D Secure authentication was performed with a third-party provider,
|
1065
2093
|
# the authentication details to use for this payment.
|
1066
2094
|
attr_accessor :three_d_secure
|
@@ -1072,15 +2100,18 @@ module Stripe
|
|
1072
2100
|
mandate_options: nil,
|
1073
2101
|
moto: nil,
|
1074
2102
|
network: nil,
|
2103
|
+
request_decremental_authorization: nil,
|
1075
2104
|
request_extended_authorization: nil,
|
1076
2105
|
request_incremental_authorization: nil,
|
1077
2106
|
request_multicapture: nil,
|
1078
2107
|
request_overcapture: nil,
|
2108
|
+
request_partial_authorization: nil,
|
1079
2109
|
request_three_d_secure: nil,
|
1080
2110
|
require_cvc_recollection: nil,
|
1081
2111
|
setup_future_usage: nil,
|
1082
2112
|
statement_descriptor_suffix_kana: nil,
|
1083
2113
|
statement_descriptor_suffix_kanji: nil,
|
2114
|
+
statement_details: nil,
|
1084
2115
|
three_d_secure: nil
|
1085
2116
|
)
|
1086
2117
|
@capture_method = capture_method
|
@@ -1089,15 +2120,18 @@ module Stripe
|
|
1089
2120
|
@mandate_options = mandate_options
|
1090
2121
|
@moto = moto
|
1091
2122
|
@network = network
|
2123
|
+
@request_decremental_authorization = request_decremental_authorization
|
1092
2124
|
@request_extended_authorization = request_extended_authorization
|
1093
2125
|
@request_incremental_authorization = request_incremental_authorization
|
1094
2126
|
@request_multicapture = request_multicapture
|
1095
2127
|
@request_overcapture = request_overcapture
|
2128
|
+
@request_partial_authorization = request_partial_authorization
|
1096
2129
|
@request_three_d_secure = request_three_d_secure
|
1097
2130
|
@require_cvc_recollection = require_cvc_recollection
|
1098
2131
|
@setup_future_usage = setup_future_usage
|
1099
2132
|
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
1100
2133
|
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
2134
|
+
@statement_details = statement_details
|
1101
2135
|
@three_d_secure = three_d_secure
|
1102
2136
|
end
|
1103
2137
|
end
|
@@ -1268,6 +2302,23 @@ module Stripe
|
|
1268
2302
|
end
|
1269
2303
|
end
|
1270
2304
|
|
2305
|
+
class Gopay < Stripe::RequestParams
|
2306
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2307
|
+
#
|
2308
|
+
# 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.
|
2309
|
+
#
|
2310
|
+
# 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.
|
2311
|
+
#
|
2312
|
+
# 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).
|
2313
|
+
#
|
2314
|
+
# 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`.
|
2315
|
+
attr_accessor :setup_future_usage
|
2316
|
+
|
2317
|
+
def initialize(setup_future_usage: nil)
|
2318
|
+
@setup_future_usage = setup_future_usage
|
2319
|
+
end
|
2320
|
+
end
|
2321
|
+
|
1271
2322
|
class Grabpay < Stripe::RequestParams
|
1272
2323
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1273
2324
|
#
|
@@ -1285,6 +2336,29 @@ module Stripe
|
|
1285
2336
|
end
|
1286
2337
|
end
|
1287
2338
|
|
2339
|
+
class IdBankTransfer < Stripe::RequestParams
|
2340
|
+
# 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.
|
2341
|
+
attr_accessor :expires_after
|
2342
|
+
# 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.
|
2343
|
+
attr_accessor :expires_at
|
2344
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2345
|
+
#
|
2346
|
+
# 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.
|
2347
|
+
#
|
2348
|
+
# 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.
|
2349
|
+
#
|
2350
|
+
# 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).
|
2351
|
+
#
|
2352
|
+
# 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`.
|
2353
|
+
attr_accessor :setup_future_usage
|
2354
|
+
|
2355
|
+
def initialize(expires_after: nil, expires_at: nil, setup_future_usage: nil)
|
2356
|
+
@expires_after = expires_after
|
2357
|
+
@expires_at = expires_at
|
2358
|
+
@setup_future_usage = setup_future_usage
|
2359
|
+
end
|
2360
|
+
end
|
2361
|
+
|
1288
2362
|
class Ideal < Stripe::RequestParams
|
1289
2363
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1290
2364
|
#
|
@@ -1686,12 +2760,65 @@ module Stripe
|
|
1686
2760
|
end
|
1687
2761
|
|
1688
2762
|
class Paypal < Stripe::RequestParams
|
2763
|
+
class LineItem < Stripe::RequestParams
|
2764
|
+
class Tax < Stripe::RequestParams
|
2765
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
2766
|
+
attr_accessor :amount
|
2767
|
+
# The tax behavior for the line item.
|
2768
|
+
attr_accessor :behavior
|
2769
|
+
|
2770
|
+
def initialize(amount: nil, behavior: nil)
|
2771
|
+
@amount = amount
|
2772
|
+
@behavior = behavior
|
2773
|
+
end
|
2774
|
+
end
|
2775
|
+
# Type of the line item.
|
2776
|
+
attr_accessor :category
|
2777
|
+
# Description of the line item.
|
2778
|
+
attr_accessor :description
|
2779
|
+
# Descriptive name of the line item.
|
2780
|
+
attr_accessor :name
|
2781
|
+
# Quantity of the line item. Must be a positive number.
|
2782
|
+
attr_accessor :quantity
|
2783
|
+
# Client facing stock keeping unit, article number or similar.
|
2784
|
+
attr_accessor :sku
|
2785
|
+
# The Stripe account ID of the connected account that sells the item.
|
2786
|
+
attr_accessor :sold_by
|
2787
|
+
# The tax information for the line item.
|
2788
|
+
attr_accessor :tax
|
2789
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
2790
|
+
attr_accessor :unit_amount
|
2791
|
+
|
2792
|
+
def initialize(
|
2793
|
+
category: nil,
|
2794
|
+
description: nil,
|
2795
|
+
name: nil,
|
2796
|
+
quantity: nil,
|
2797
|
+
sku: nil,
|
2798
|
+
sold_by: nil,
|
2799
|
+
tax: nil,
|
2800
|
+
unit_amount: nil
|
2801
|
+
)
|
2802
|
+
@category = category
|
2803
|
+
@description = description
|
2804
|
+
@name = name
|
2805
|
+
@quantity = quantity
|
2806
|
+
@sku = sku
|
2807
|
+
@sold_by = sold_by
|
2808
|
+
@tax = tax
|
2809
|
+
@unit_amount = unit_amount
|
2810
|
+
end
|
2811
|
+
end
|
1689
2812
|
# Controls when the funds will be captured from the customer's account.
|
1690
2813
|
attr_accessor :capture_method
|
2814
|
+
# The line items purchased by the customer.
|
2815
|
+
attr_accessor :line_items
|
1691
2816
|
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
1692
2817
|
attr_accessor :preferred_locale
|
1693
2818
|
# 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.
|
1694
2819
|
attr_accessor :reference
|
2820
|
+
# 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.
|
2821
|
+
attr_accessor :reference_id
|
1695
2822
|
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
1696
2823
|
attr_accessor :risk_correlation_id
|
1697
2824
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
@@ -1704,29 +2831,140 @@ module Stripe
|
|
1704
2831
|
#
|
1705
2832
|
# 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`.
|
1706
2833
|
attr_accessor :setup_future_usage
|
2834
|
+
# 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.
|
2835
|
+
attr_accessor :subsellers
|
1707
2836
|
|
1708
2837
|
def initialize(
|
1709
2838
|
capture_method: nil,
|
2839
|
+
line_items: nil,
|
1710
2840
|
preferred_locale: nil,
|
1711
2841
|
reference: nil,
|
2842
|
+
reference_id: nil,
|
1712
2843
|
risk_correlation_id: nil,
|
1713
|
-
setup_future_usage: nil
|
2844
|
+
setup_future_usage: nil,
|
2845
|
+
subsellers: nil
|
1714
2846
|
)
|
1715
2847
|
@capture_method = capture_method
|
2848
|
+
@line_items = line_items
|
1716
2849
|
@preferred_locale = preferred_locale
|
1717
2850
|
@reference = reference
|
2851
|
+
@reference_id = reference_id
|
1718
2852
|
@risk_correlation_id = risk_correlation_id
|
1719
2853
|
@setup_future_usage = setup_future_usage
|
2854
|
+
@subsellers = subsellers
|
2855
|
+
end
|
2856
|
+
end
|
2857
|
+
|
2858
|
+
class Paypay < Stripe::RequestParams
|
2859
|
+
# Controls when the funds are captured from the customer's account.
|
2860
|
+
#
|
2861
|
+
# 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.
|
2862
|
+
#
|
2863
|
+
# 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.
|
2864
|
+
attr_accessor :capture_method
|
2865
|
+
|
2866
|
+
def initialize(capture_method: nil)
|
2867
|
+
@capture_method = capture_method
|
2868
|
+
end
|
2869
|
+
end
|
2870
|
+
|
2871
|
+
class Payto < Stripe::RequestParams
|
2872
|
+
class MandateOptions < Stripe::RequestParams
|
2873
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
2874
|
+
attr_accessor :amount
|
2875
|
+
# 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.
|
2876
|
+
attr_accessor :amount_type
|
2877
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
2878
|
+
attr_accessor :end_date
|
2879
|
+
# The periodicity at which payments will be collected.
|
2880
|
+
attr_accessor :payment_schedule
|
2881
|
+
# 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.
|
2882
|
+
attr_accessor :payments_per_period
|
2883
|
+
# The purpose for which payments are made. Defaults to retail.
|
2884
|
+
attr_accessor :purpose
|
2885
|
+
|
2886
|
+
def initialize(
|
2887
|
+
amount: nil,
|
2888
|
+
amount_type: nil,
|
2889
|
+
end_date: nil,
|
2890
|
+
payment_schedule: nil,
|
2891
|
+
payments_per_period: nil,
|
2892
|
+
purpose: nil
|
2893
|
+
)
|
2894
|
+
@amount = amount
|
2895
|
+
@amount_type = amount_type
|
2896
|
+
@end_date = end_date
|
2897
|
+
@payment_schedule = payment_schedule
|
2898
|
+
@payments_per_period = payments_per_period
|
2899
|
+
@purpose = purpose
|
2900
|
+
end
|
2901
|
+
end
|
2902
|
+
# 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`
|
2903
|
+
attr_accessor :mandate_options
|
2904
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2905
|
+
#
|
2906
|
+
# 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.
|
2907
|
+
#
|
2908
|
+
# 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.
|
2909
|
+
#
|
2910
|
+
# 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).
|
2911
|
+
#
|
2912
|
+
# 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`.
|
2913
|
+
attr_accessor :setup_future_usage
|
2914
|
+
|
2915
|
+
def initialize(mandate_options: nil, setup_future_usage: nil)
|
2916
|
+
@mandate_options = mandate_options
|
2917
|
+
@setup_future_usage = setup_future_usage
|
1720
2918
|
end
|
1721
2919
|
end
|
1722
2920
|
|
1723
2921
|
class Pix < Stripe::RequestParams
|
2922
|
+
class MandateOptions < Stripe::RequestParams
|
2923
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
2924
|
+
attr_accessor :amount
|
2925
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
2926
|
+
attr_accessor :amount_includes_iof
|
2927
|
+
# Type of amount. Defaults to `maximum`.
|
2928
|
+
attr_accessor :amount_type
|
2929
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
2930
|
+
attr_accessor :currency
|
2931
|
+
# 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.
|
2932
|
+
attr_accessor :end_date
|
2933
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
2934
|
+
attr_accessor :payment_schedule
|
2935
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
2936
|
+
attr_accessor :reference
|
2937
|
+
# 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.
|
2938
|
+
attr_accessor :start_date
|
2939
|
+
|
2940
|
+
def initialize(
|
2941
|
+
amount: nil,
|
2942
|
+
amount_includes_iof: nil,
|
2943
|
+
amount_type: nil,
|
2944
|
+
currency: nil,
|
2945
|
+
end_date: nil,
|
2946
|
+
payment_schedule: nil,
|
2947
|
+
reference: nil,
|
2948
|
+
start_date: nil
|
2949
|
+
)
|
2950
|
+
@amount = amount
|
2951
|
+
@amount_includes_iof = amount_includes_iof
|
2952
|
+
@amount_type = amount_type
|
2953
|
+
@currency = currency
|
2954
|
+
@end_date = end_date
|
2955
|
+
@payment_schedule = payment_schedule
|
2956
|
+
@reference = reference
|
2957
|
+
@start_date = start_date
|
2958
|
+
end
|
2959
|
+
end
|
1724
2960
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
1725
2961
|
attr_accessor :amount_includes_iof
|
1726
2962
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
1727
2963
|
attr_accessor :expires_after_seconds
|
1728
2964
|
# The timestamp at which the Pix expires (between 10 and 1209600 seconds in the future). Defaults to 1 day in the future.
|
1729
2965
|
attr_accessor :expires_at
|
2966
|
+
# Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
|
2967
|
+
attr_accessor :mandate_options
|
1730
2968
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1731
2969
|
#
|
1732
2970
|
# 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.
|
@@ -1742,11 +2980,13 @@ module Stripe
|
|
1742
2980
|
amount_includes_iof: nil,
|
1743
2981
|
expires_after_seconds: nil,
|
1744
2982
|
expires_at: nil,
|
2983
|
+
mandate_options: nil,
|
1745
2984
|
setup_future_usage: nil
|
1746
2985
|
)
|
1747
2986
|
@amount_includes_iof = amount_includes_iof
|
1748
2987
|
@expires_after_seconds = expires_after_seconds
|
1749
2988
|
@expires_at = expires_at
|
2989
|
+
@mandate_options = mandate_options
|
1750
2990
|
@setup_future_usage = setup_future_usage
|
1751
2991
|
end
|
1752
2992
|
end
|
@@ -1768,6 +3008,25 @@ module Stripe
|
|
1768
3008
|
end
|
1769
3009
|
end
|
1770
3010
|
|
3011
|
+
class Qris < Stripe::RequestParams
|
3012
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
3013
|
+
#
|
3014
|
+
# 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.
|
3015
|
+
#
|
3016
|
+
# 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.
|
3017
|
+
#
|
3018
|
+
# 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).
|
3019
|
+
#
|
3020
|
+
# 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`.
|
3021
|
+
attr_accessor :setup_future_usage
|
3022
|
+
|
3023
|
+
def initialize(setup_future_usage: nil)
|
3024
|
+
@setup_future_usage = setup_future_usage
|
3025
|
+
end
|
3026
|
+
end
|
3027
|
+
|
3028
|
+
class Rechnung < Stripe::RequestParams; end
|
3029
|
+
|
1771
3030
|
class RevolutPay < Stripe::RequestParams
|
1772
3031
|
# Controls when the funds are captured from the customer's account.
|
1773
3032
|
#
|
@@ -1847,6 +3106,23 @@ module Stripe
|
|
1847
3106
|
end
|
1848
3107
|
end
|
1849
3108
|
|
3109
|
+
class Shopeepay < Stripe::RequestParams
|
3110
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
3111
|
+
#
|
3112
|
+
# 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.
|
3113
|
+
#
|
3114
|
+
# 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.
|
3115
|
+
#
|
3116
|
+
# 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).
|
3117
|
+
#
|
3118
|
+
# 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`.
|
3119
|
+
attr_accessor :setup_future_usage
|
3120
|
+
|
3121
|
+
def initialize(setup_future_usage: nil)
|
3122
|
+
@setup_future_usage = setup_future_usage
|
3123
|
+
end
|
3124
|
+
end
|
3125
|
+
|
1850
3126
|
class Sofort < Stripe::RequestParams
|
1851
3127
|
# Language shown to the payer on redirect.
|
1852
3128
|
attr_accessor :preferred_language
|
@@ -1867,6 +3143,23 @@ module Stripe
|
|
1867
3143
|
end
|
1868
3144
|
end
|
1869
3145
|
|
3146
|
+
class StripeBalance < Stripe::RequestParams
|
3147
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
3148
|
+
#
|
3149
|
+
# 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.
|
3150
|
+
#
|
3151
|
+
# 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.
|
3152
|
+
#
|
3153
|
+
# 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).
|
3154
|
+
#
|
3155
|
+
# 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`.
|
3156
|
+
attr_accessor :setup_future_usage
|
3157
|
+
|
3158
|
+
def initialize(setup_future_usage: nil)
|
3159
|
+
@setup_future_usage = setup_future_usage
|
3160
|
+
end
|
3161
|
+
end
|
3162
|
+
|
1870
3163
|
class Swish < Stripe::RequestParams
|
1871
3164
|
# A reference for this payment to be displayed in the Swish app.
|
1872
3165
|
attr_accessor :reference
|
@@ -1909,13 +3202,27 @@ module Stripe
|
|
1909
3202
|
class Filters < Stripe::RequestParams
|
1910
3203
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
1911
3204
|
attr_accessor :account_subcategories
|
3205
|
+
# ID of the institution to use to filter for selectable accounts.
|
3206
|
+
attr_accessor :institution
|
1912
3207
|
|
1913
|
-
def initialize(account_subcategories: nil)
|
3208
|
+
def initialize(account_subcategories: nil, institution: nil)
|
1914
3209
|
@account_subcategories = account_subcategories
|
3210
|
+
@institution = institution
|
3211
|
+
end
|
3212
|
+
end
|
3213
|
+
|
3214
|
+
class ManualEntry < Stripe::RequestParams
|
3215
|
+
# Settings for configuring manual entry of account details.
|
3216
|
+
attr_accessor :mode
|
3217
|
+
|
3218
|
+
def initialize(mode: nil)
|
3219
|
+
@mode = mode
|
1915
3220
|
end
|
1916
3221
|
end
|
1917
3222
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
1918
3223
|
attr_accessor :filters
|
3224
|
+
# Customize manual entry behavior
|
3225
|
+
attr_accessor :manual_entry
|
1919
3226
|
# 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`.
|
1920
3227
|
attr_accessor :permissions
|
1921
3228
|
# List of data features that you would like to retrieve upon account creation.
|
@@ -1923,8 +3230,15 @@ module Stripe
|
|
1923
3230
|
# 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.
|
1924
3231
|
attr_accessor :return_url
|
1925
3232
|
|
1926
|
-
def initialize(
|
3233
|
+
def initialize(
|
3234
|
+
filters: nil,
|
3235
|
+
manual_entry: nil,
|
3236
|
+
permissions: nil,
|
3237
|
+
prefetch: nil,
|
3238
|
+
return_url: nil
|
3239
|
+
)
|
1927
3240
|
@filters = filters
|
3241
|
+
@manual_entry = manual_entry
|
1928
3242
|
@permissions = permissions
|
1929
3243
|
@prefetch = prefetch
|
1930
3244
|
@return_url = return_url
|
@@ -2069,8 +3383,12 @@ module Stripe
|
|
2069
3383
|
attr_accessor :fpx
|
2070
3384
|
# If this is a `giropay` PaymentMethod, this sub-hash contains details about the Giropay payment method options.
|
2071
3385
|
attr_accessor :giropay
|
3386
|
+
# If this is a `gopay` PaymentMethod, this sub-hash contains details about the Gopay payment method options.
|
3387
|
+
attr_accessor :gopay
|
2072
3388
|
# If this is a `grabpay` PaymentMethod, this sub-hash contains details about the Grabpay payment method options.
|
2073
3389
|
attr_accessor :grabpay
|
3390
|
+
# If this is a `id_bank_transfer` PaymentMethod, this sub-hash contains details about the Indonesia Bank Transfer payment method options.
|
3391
|
+
attr_accessor :id_bank_transfer
|
2074
3392
|
# If this is a `ideal` PaymentMethod, this sub-hash contains details about the Ideal payment method options.
|
2075
3393
|
attr_accessor :ideal
|
2076
3394
|
# If this is a `interac_present` PaymentMethod, this sub-hash contains details about the Card Present payment method options.
|
@@ -2107,10 +3425,18 @@ module Stripe
|
|
2107
3425
|
attr_accessor :paynow
|
2108
3426
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
2109
3427
|
attr_accessor :paypal
|
3428
|
+
# If this is a `paypay` PaymentMethod, this sub-hash contains details about the PayPay payment method options.
|
3429
|
+
attr_accessor :paypay
|
3430
|
+
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
3431
|
+
attr_accessor :payto
|
2110
3432
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
2111
3433
|
attr_accessor :pix
|
2112
3434
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
2113
3435
|
attr_accessor :promptpay
|
3436
|
+
# If this is a `qris` PaymentMethod, this sub-hash contains details about the QRIS payment method options.
|
3437
|
+
attr_accessor :qris
|
3438
|
+
# If this is a `rechnung` PaymentMethod, this sub-hash contains details about the Rechnung payment method options.
|
3439
|
+
attr_accessor :rechnung
|
2114
3440
|
# If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options.
|
2115
3441
|
attr_accessor :revolut_pay
|
2116
3442
|
# If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options.
|
@@ -2119,8 +3445,12 @@ module Stripe
|
|
2119
3445
|
attr_accessor :satispay
|
2120
3446
|
# If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
2121
3447
|
attr_accessor :sepa_debit
|
3448
|
+
# If this is a `shopeepay` PaymentMethod, this sub-hash contains details about the ShopeePay payment method options.
|
3449
|
+
attr_accessor :shopeepay
|
2122
3450
|
# If this is a `sofort` PaymentMethod, this sub-hash contains details about the SOFORT payment method options.
|
2123
3451
|
attr_accessor :sofort
|
3452
|
+
# If this is a `stripe_balance` PaymentMethod, this sub-hash contains details about the Stripe Balance payment method options.
|
3453
|
+
attr_accessor :stripe_balance
|
2124
3454
|
# If this is a `Swish` PaymentMethod, this sub-hash contains details about the Swish payment method options.
|
2125
3455
|
attr_accessor :swish
|
2126
3456
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
@@ -2153,7 +3483,9 @@ module Stripe
|
|
2153
3483
|
eps: nil,
|
2154
3484
|
fpx: nil,
|
2155
3485
|
giropay: nil,
|
3486
|
+
gopay: nil,
|
2156
3487
|
grabpay: nil,
|
3488
|
+
id_bank_transfer: nil,
|
2157
3489
|
ideal: nil,
|
2158
3490
|
interac_present: nil,
|
2159
3491
|
kakao_pay: nil,
|
@@ -2172,13 +3504,19 @@ module Stripe
|
|
2172
3504
|
payco: nil,
|
2173
3505
|
paynow: nil,
|
2174
3506
|
paypal: nil,
|
3507
|
+
paypay: nil,
|
3508
|
+
payto: nil,
|
2175
3509
|
pix: nil,
|
2176
3510
|
promptpay: nil,
|
3511
|
+
qris: nil,
|
3512
|
+
rechnung: nil,
|
2177
3513
|
revolut_pay: nil,
|
2178
3514
|
samsung_pay: nil,
|
2179
3515
|
satispay: nil,
|
2180
3516
|
sepa_debit: nil,
|
3517
|
+
shopeepay: nil,
|
2181
3518
|
sofort: nil,
|
3519
|
+
stripe_balance: nil,
|
2182
3520
|
swish: nil,
|
2183
3521
|
twint: nil,
|
2184
3522
|
us_bank_account: nil,
|
@@ -2205,7 +3543,9 @@ module Stripe
|
|
2205
3543
|
@eps = eps
|
2206
3544
|
@fpx = fpx
|
2207
3545
|
@giropay = giropay
|
3546
|
+
@gopay = gopay
|
2208
3547
|
@grabpay = grabpay
|
3548
|
+
@id_bank_transfer = id_bank_transfer
|
2209
3549
|
@ideal = ideal
|
2210
3550
|
@interac_present = interac_present
|
2211
3551
|
@kakao_pay = kakao_pay
|
@@ -2224,13 +3564,19 @@ module Stripe
|
|
2224
3564
|
@payco = payco
|
2225
3565
|
@paynow = paynow
|
2226
3566
|
@paypal = paypal
|
3567
|
+
@paypay = paypay
|
3568
|
+
@payto = payto
|
2227
3569
|
@pix = pix
|
2228
3570
|
@promptpay = promptpay
|
3571
|
+
@qris = qris
|
3572
|
+
@rechnung = rechnung
|
2229
3573
|
@revolut_pay = revolut_pay
|
2230
3574
|
@samsung_pay = samsung_pay
|
2231
3575
|
@satispay = satispay
|
2232
3576
|
@sepa_debit = sepa_debit
|
3577
|
+
@shopeepay = shopeepay
|
2233
3578
|
@sofort = sofort
|
3579
|
+
@stripe_balance = stripe_balance
|
2234
3580
|
@swish = swish
|
2235
3581
|
@twint = twint
|
2236
3582
|
@us_bank_account = us_bank_account
|
@@ -2321,6 +3667,8 @@ module Stripe
|
|
2321
3667
|
end
|
2322
3668
|
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
2323
3669
|
attr_accessor :amount
|
3670
|
+
# Provides industry-specific information about the amount.
|
3671
|
+
attr_accessor :amount_details
|
2324
3672
|
# 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).
|
2325
3673
|
attr_accessor :application_fee_amount
|
2326
3674
|
# When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters.
|
@@ -2343,6 +3691,12 @@ module Stripe
|
|
2343
3691
|
#
|
2344
3692
|
# If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
2345
3693
|
attr_accessor :customer
|
3694
|
+
# ID of the Account this PaymentIntent belongs to, if one exists.
|
3695
|
+
#
|
3696
|
+
# Payment methods attached to other Accounts cannot be used with this PaymentIntent.
|
3697
|
+
#
|
3698
|
+
# If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
|
3699
|
+
attr_accessor :customer_account
|
2346
3700
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
2347
3701
|
attr_accessor :description
|
2348
3702
|
# Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. Use this parameter for simpler integrations that don't handle customer actions, such as [saving cards without authentication](https://stripe.com/docs/payments/save-card-without-authentication). This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
|
@@ -2351,6 +3705,10 @@ module Stripe
|
|
2351
3705
|
attr_accessor :excluded_payment_method_types
|
2352
3706
|
# Specifies which fields in the response should be expanded.
|
2353
3707
|
attr_accessor :expand
|
3708
|
+
# The FX rate in the quote is validated and used to convert the presentment amount to the settlement amount.
|
3709
|
+
attr_accessor :fx_quote
|
3710
|
+
# Automations to be run during the PaymentIntent lifecycle
|
3711
|
+
attr_accessor :hooks
|
2354
3712
|
# ID of the mandate that's used for this payment. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
|
2355
3713
|
attr_accessor :mandate
|
2356
3714
|
# This hash contains details about the Mandate to create. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
|
@@ -2361,6 +3719,8 @@ module Stripe
|
|
2361
3719
|
attr_accessor :off_session
|
2362
3720
|
# The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
2363
3721
|
attr_accessor :on_behalf_of
|
3722
|
+
# Provides industry-specific information about the charge.
|
3723
|
+
attr_accessor :payment_details
|
2364
3724
|
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent.
|
2365
3725
|
#
|
2366
3726
|
# If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward.
|
@@ -2383,6 +3743,8 @@ module Stripe
|
|
2383
3743
|
attr_accessor :receipt_email
|
2384
3744
|
# The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. This parameter can only be used with [`confirm=true`](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-confirm).
|
2385
3745
|
attr_accessor :return_url
|
3746
|
+
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
3747
|
+
attr_accessor :secret_key_confirmation
|
2386
3748
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2387
3749
|
#
|
2388
3750
|
# 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.
|
@@ -2409,6 +3771,7 @@ module Stripe
|
|
2409
3771
|
|
2410
3772
|
def initialize(
|
2411
3773
|
amount: nil,
|
3774
|
+
amount_details: nil,
|
2412
3775
|
application_fee_amount: nil,
|
2413
3776
|
automatic_payment_methods: nil,
|
2414
3777
|
capture_method: nil,
|
@@ -2417,15 +3780,19 @@ module Stripe
|
|
2417
3780
|
confirmation_token: nil,
|
2418
3781
|
currency: nil,
|
2419
3782
|
customer: nil,
|
3783
|
+
customer_account: nil,
|
2420
3784
|
description: nil,
|
2421
3785
|
error_on_requires_action: nil,
|
2422
3786
|
excluded_payment_method_types: nil,
|
2423
3787
|
expand: nil,
|
3788
|
+
fx_quote: nil,
|
3789
|
+
hooks: nil,
|
2424
3790
|
mandate: nil,
|
2425
3791
|
mandate_data: nil,
|
2426
3792
|
metadata: nil,
|
2427
3793
|
off_session: nil,
|
2428
3794
|
on_behalf_of: nil,
|
3795
|
+
payment_details: nil,
|
2429
3796
|
payment_method: nil,
|
2430
3797
|
payment_method_configuration: nil,
|
2431
3798
|
payment_method_data: nil,
|
@@ -2434,6 +3801,7 @@ module Stripe
|
|
2434
3801
|
radar_options: nil,
|
2435
3802
|
receipt_email: nil,
|
2436
3803
|
return_url: nil,
|
3804
|
+
secret_key_confirmation: nil,
|
2437
3805
|
setup_future_usage: nil,
|
2438
3806
|
shipping: nil,
|
2439
3807
|
statement_descriptor: nil,
|
@@ -2443,6 +3811,7 @@ module Stripe
|
|
2443
3811
|
use_stripe_sdk: nil
|
2444
3812
|
)
|
2445
3813
|
@amount = amount
|
3814
|
+
@amount_details = amount_details
|
2446
3815
|
@application_fee_amount = application_fee_amount
|
2447
3816
|
@automatic_payment_methods = automatic_payment_methods
|
2448
3817
|
@capture_method = capture_method
|
@@ -2451,15 +3820,19 @@ module Stripe
|
|
2451
3820
|
@confirmation_token = confirmation_token
|
2452
3821
|
@currency = currency
|
2453
3822
|
@customer = customer
|
3823
|
+
@customer_account = customer_account
|
2454
3824
|
@description = description
|
2455
3825
|
@error_on_requires_action = error_on_requires_action
|
2456
3826
|
@excluded_payment_method_types = excluded_payment_method_types
|
2457
3827
|
@expand = expand
|
3828
|
+
@fx_quote = fx_quote
|
3829
|
+
@hooks = hooks
|
2458
3830
|
@mandate = mandate
|
2459
3831
|
@mandate_data = mandate_data
|
2460
3832
|
@metadata = metadata
|
2461
3833
|
@off_session = off_session
|
2462
3834
|
@on_behalf_of = on_behalf_of
|
3835
|
+
@payment_details = payment_details
|
2463
3836
|
@payment_method = payment_method
|
2464
3837
|
@payment_method_configuration = payment_method_configuration
|
2465
3838
|
@payment_method_data = payment_method_data
|
@@ -2468,6 +3841,7 @@ module Stripe
|
|
2468
3841
|
@radar_options = radar_options
|
2469
3842
|
@receipt_email = receipt_email
|
2470
3843
|
@return_url = return_url
|
3844
|
+
@secret_key_confirmation = secret_key_confirmation
|
2471
3845
|
@setup_future_usage = setup_future_usage
|
2472
3846
|
@shipping = shipping
|
2473
3847
|
@statement_descriptor = statement_descriptor
|