stripe 16.0.0 → 16.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 +35 -3
- 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/request_options.rb +3 -1
- 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_client.rb +1 -1
- data/lib/stripe/stripe_configuration.rb +9 -2
- data/lib/stripe/stripe_object.rb +9 -9
- data/lib/stripe/util.rb +9 -3
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +53 -0
- data/rbi/stripe.rbi +155102 -90522
- metadata +351 -5
@@ -16,6 +16,7 @@ module Stripe
|
|
16
16
|
class PaymentIntent < APIResource
|
17
17
|
extend Stripe::APIOperations::Create
|
18
18
|
extend Stripe::APIOperations::List
|
19
|
+
extend Stripe::APIOperations::NestedResource
|
19
20
|
extend Stripe::APIOperations::Search
|
20
21
|
include Stripe::APIOperations::Save
|
21
22
|
|
@@ -24,7 +25,39 @@ module Stripe
|
|
24
25
|
"payment_intent"
|
25
26
|
end
|
26
27
|
|
28
|
+
nested_resource_class_methods :amount_details_line_item, operations: %i[list]
|
29
|
+
|
27
30
|
class AmountDetails < Stripe::StripeObject
|
31
|
+
class Shipping < Stripe::StripeObject
|
32
|
+
# Portion of the amount that is for shipping.
|
33
|
+
attr_reader :amount
|
34
|
+
# The postal code that represents the shipping source.
|
35
|
+
attr_reader :from_postal_code
|
36
|
+
# The postal code that represents the shipping destination.
|
37
|
+
attr_reader :to_postal_code
|
38
|
+
|
39
|
+
def self.inner_class_types
|
40
|
+
@inner_class_types = {}
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.field_remappings
|
44
|
+
@field_remappings = {}
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
class Tax < Stripe::StripeObject
|
49
|
+
# Total portion of the amount that is for tax.
|
50
|
+
attr_reader :total_tax_amount
|
51
|
+
|
52
|
+
def self.inner_class_types
|
53
|
+
@inner_class_types = {}
|
54
|
+
end
|
55
|
+
|
56
|
+
def self.field_remappings
|
57
|
+
@field_remappings = {}
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
28
61
|
class Tip < Stripe::StripeObject
|
29
62
|
# Portion of the amount that corresponds to a tip.
|
30
63
|
attr_reader :amount
|
@@ -37,11 +70,19 @@ module Stripe
|
|
37
70
|
@field_remappings = {}
|
38
71
|
end
|
39
72
|
end
|
73
|
+
# The total discount applied on the transaction.
|
74
|
+
attr_reader :discount_amount
|
75
|
+
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
|
76
|
+
attr_reader :line_items
|
77
|
+
# Attribute for field shipping
|
78
|
+
attr_reader :shipping
|
79
|
+
# Attribute for field tax
|
80
|
+
attr_reader :tax
|
40
81
|
# Attribute for field tip
|
41
82
|
attr_reader :tip
|
42
83
|
|
43
84
|
def self.inner_class_types
|
44
|
-
@inner_class_types = { tip: Tip }
|
85
|
+
@inner_class_types = { shipping: Shipping, tax: Tax, tip: Tip }
|
45
86
|
end
|
46
87
|
|
47
88
|
def self.field_remappings
|
@@ -66,6 +107,43 @@ module Stripe
|
|
66
107
|
end
|
67
108
|
end
|
68
109
|
|
110
|
+
class Hooks < Stripe::StripeObject
|
111
|
+
class Inputs < Stripe::StripeObject
|
112
|
+
class Tax < Stripe::StripeObject
|
113
|
+
# The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
|
114
|
+
attr_reader :calculation
|
115
|
+
|
116
|
+
def self.inner_class_types
|
117
|
+
@inner_class_types = {}
|
118
|
+
end
|
119
|
+
|
120
|
+
def self.field_remappings
|
121
|
+
@field_remappings = {}
|
122
|
+
end
|
123
|
+
end
|
124
|
+
# Attribute for field tax
|
125
|
+
attr_reader :tax
|
126
|
+
|
127
|
+
def self.inner_class_types
|
128
|
+
@inner_class_types = { tax: Tax }
|
129
|
+
end
|
130
|
+
|
131
|
+
def self.field_remappings
|
132
|
+
@field_remappings = {}
|
133
|
+
end
|
134
|
+
end
|
135
|
+
# Attribute for field inputs
|
136
|
+
attr_reader :inputs
|
137
|
+
|
138
|
+
def self.inner_class_types
|
139
|
+
@inner_class_types = { inputs: Inputs }
|
140
|
+
end
|
141
|
+
|
142
|
+
def self.field_remappings
|
143
|
+
@field_remappings = {}
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
69
147
|
class LastPaymentError < Stripe::StripeObject
|
70
148
|
# For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one.
|
71
149
|
attr_reader :advice_code
|
@@ -1102,6 +1180,362 @@ module Stripe
|
|
1102
1180
|
end
|
1103
1181
|
end
|
1104
1182
|
|
1183
|
+
class PaymentDetails < Stripe::StripeObject
|
1184
|
+
class CarRental < Stripe::StripeObject
|
1185
|
+
class Affiliate < Stripe::StripeObject
|
1186
|
+
# The name of the affiliate that originated the purchase.
|
1187
|
+
attr_reader :name
|
1188
|
+
|
1189
|
+
def self.inner_class_types
|
1190
|
+
@inner_class_types = {}
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
def self.field_remappings
|
1194
|
+
@field_remappings = {}
|
1195
|
+
end
|
1196
|
+
end
|
1197
|
+
|
1198
|
+
class Delivery < Stripe::StripeObject
|
1199
|
+
class Recipient < Stripe::StripeObject
|
1200
|
+
# The email of the recipient the ticket is delivered to.
|
1201
|
+
attr_reader :email
|
1202
|
+
# The name of the recipient the ticket is delivered to.
|
1203
|
+
attr_reader :name
|
1204
|
+
# The phone number of the recipient the ticket is delivered to.
|
1205
|
+
attr_reader :phone
|
1206
|
+
|
1207
|
+
def self.inner_class_types
|
1208
|
+
@inner_class_types = {}
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
def self.field_remappings
|
1212
|
+
@field_remappings = {}
|
1213
|
+
end
|
1214
|
+
end
|
1215
|
+
# The delivery method for the payment
|
1216
|
+
attr_reader :mode
|
1217
|
+
# Attribute for field recipient
|
1218
|
+
attr_reader :recipient
|
1219
|
+
|
1220
|
+
def self.inner_class_types
|
1221
|
+
@inner_class_types = { recipient: Recipient }
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
def self.field_remappings
|
1225
|
+
@field_remappings = {}
|
1226
|
+
end
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
class Distance < Stripe::StripeObject
|
1230
|
+
# Distance traveled.
|
1231
|
+
attr_reader :amount
|
1232
|
+
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`
|
1233
|
+
attr_reader :unit
|
1234
|
+
|
1235
|
+
def self.inner_class_types
|
1236
|
+
@inner_class_types = {}
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
def self.field_remappings
|
1240
|
+
@field_remappings = {}
|
1241
|
+
end
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
class Driver < Stripe::StripeObject
|
1245
|
+
# Driver's identification number.
|
1246
|
+
attr_reader :driver_identification_number
|
1247
|
+
# Driver's tax number.
|
1248
|
+
attr_reader :driver_tax_number
|
1249
|
+
# Full name of the driver on the reservation.
|
1250
|
+
attr_reader :name
|
1251
|
+
|
1252
|
+
def self.inner_class_types
|
1253
|
+
@inner_class_types = {}
|
1254
|
+
end
|
1255
|
+
|
1256
|
+
def self.field_remappings
|
1257
|
+
@field_remappings = {}
|
1258
|
+
end
|
1259
|
+
end
|
1260
|
+
|
1261
|
+
class PickupAddress < Stripe::StripeObject
|
1262
|
+
# City, district, suburb, town, or village.
|
1263
|
+
attr_reader :city
|
1264
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1265
|
+
attr_reader :country
|
1266
|
+
# Address line 1, such as the street, PO Box, or company name.
|
1267
|
+
attr_reader :line1
|
1268
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
1269
|
+
attr_reader :line2
|
1270
|
+
# ZIP or postal code.
|
1271
|
+
attr_reader :postal_code
|
1272
|
+
# State, county, province, or region.
|
1273
|
+
attr_reader :state
|
1274
|
+
|
1275
|
+
def self.inner_class_types
|
1276
|
+
@inner_class_types = {}
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
def self.field_remappings
|
1280
|
+
@field_remappings = {}
|
1281
|
+
end
|
1282
|
+
end
|
1283
|
+
|
1284
|
+
class ReturnAddress < Stripe::StripeObject
|
1285
|
+
# City, district, suburb, town, or village.
|
1286
|
+
attr_reader :city
|
1287
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1288
|
+
attr_reader :country
|
1289
|
+
# Address line 1, such as the street, PO Box, or company name.
|
1290
|
+
attr_reader :line1
|
1291
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
1292
|
+
attr_reader :line2
|
1293
|
+
# ZIP or postal code.
|
1294
|
+
attr_reader :postal_code
|
1295
|
+
# State, county, province, or region.
|
1296
|
+
attr_reader :state
|
1297
|
+
|
1298
|
+
def self.inner_class_types
|
1299
|
+
@inner_class_types = {}
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
def self.field_remappings
|
1303
|
+
@field_remappings = {}
|
1304
|
+
end
|
1305
|
+
end
|
1306
|
+
# Attribute for field affiliate
|
1307
|
+
attr_reader :affiliate
|
1308
|
+
# The booking number associated with the car rental.
|
1309
|
+
attr_reader :booking_number
|
1310
|
+
# Class code of the car.
|
1311
|
+
attr_reader :car_class_code
|
1312
|
+
# Make of the car.
|
1313
|
+
attr_reader :car_make
|
1314
|
+
# Model of the car.
|
1315
|
+
attr_reader :car_model
|
1316
|
+
# The name of the rental car company.
|
1317
|
+
attr_reader :company
|
1318
|
+
# The customer service phone number of the car rental company.
|
1319
|
+
attr_reader :customer_service_phone_number
|
1320
|
+
# Number of days the car is being rented.
|
1321
|
+
attr_reader :days_rented
|
1322
|
+
# Attribute for field delivery
|
1323
|
+
attr_reader :delivery
|
1324
|
+
# Attribute for field distance
|
1325
|
+
attr_reader :distance
|
1326
|
+
# The details of the drivers associated with the trip.
|
1327
|
+
attr_reader :drivers
|
1328
|
+
# List of additional charges being billed.
|
1329
|
+
attr_reader :extra_charges
|
1330
|
+
# Indicates if the customer did not keep nor cancel their booking.
|
1331
|
+
attr_reader :no_show
|
1332
|
+
# Attribute for field pickup_address
|
1333
|
+
attr_reader :pickup_address
|
1334
|
+
# Car pick-up time. Measured in seconds since the Unix epoch.
|
1335
|
+
attr_reader :pickup_at
|
1336
|
+
# Name of the pickup location.
|
1337
|
+
attr_reader :pickup_location_name
|
1338
|
+
# Rental rate.
|
1339
|
+
attr_reader :rate_amount
|
1340
|
+
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
1341
|
+
attr_reader :rate_interval
|
1342
|
+
# The full name of the person or entity renting the car.
|
1343
|
+
attr_reader :renter_name
|
1344
|
+
# Attribute for field return_address
|
1345
|
+
attr_reader :return_address
|
1346
|
+
# Car return time. Measured in seconds since the Unix epoch.
|
1347
|
+
attr_reader :return_at
|
1348
|
+
# Name of the return location.
|
1349
|
+
attr_reader :return_location_name
|
1350
|
+
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
1351
|
+
attr_reader :tax_exempt
|
1352
|
+
# The vehicle identification number of the car.
|
1353
|
+
attr_reader :vehicle_identification_number
|
1354
|
+
|
1355
|
+
def self.inner_class_types
|
1356
|
+
@inner_class_types = {
|
1357
|
+
affiliate: Affiliate,
|
1358
|
+
delivery: Delivery,
|
1359
|
+
distance: Distance,
|
1360
|
+
drivers: Driver,
|
1361
|
+
pickup_address: PickupAddress,
|
1362
|
+
return_address: ReturnAddress,
|
1363
|
+
}
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
def self.field_remappings
|
1367
|
+
@field_remappings = {}
|
1368
|
+
end
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
class EventDetails < Stripe::StripeObject
|
1372
|
+
class Address < Stripe::StripeObject
|
1373
|
+
# City, district, suburb, town, or village.
|
1374
|
+
attr_reader :city
|
1375
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1376
|
+
attr_reader :country
|
1377
|
+
# Address line 1, such as the street, PO Box, or company name.
|
1378
|
+
attr_reader :line1
|
1379
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
1380
|
+
attr_reader :line2
|
1381
|
+
# ZIP or postal code.
|
1382
|
+
attr_reader :postal_code
|
1383
|
+
# State, county, province, or region.
|
1384
|
+
attr_reader :state
|
1385
|
+
|
1386
|
+
def self.inner_class_types
|
1387
|
+
@inner_class_types = {}
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
def self.field_remappings
|
1391
|
+
@field_remappings = {}
|
1392
|
+
end
|
1393
|
+
end
|
1394
|
+
|
1395
|
+
class Affiliate < Stripe::StripeObject
|
1396
|
+
# The name of the affiliate that originated the purchase.
|
1397
|
+
attr_reader :name
|
1398
|
+
|
1399
|
+
def self.inner_class_types
|
1400
|
+
@inner_class_types = {}
|
1401
|
+
end
|
1402
|
+
|
1403
|
+
def self.field_remappings
|
1404
|
+
@field_remappings = {}
|
1405
|
+
end
|
1406
|
+
end
|
1407
|
+
|
1408
|
+
class Delivery < Stripe::StripeObject
|
1409
|
+
class Recipient < Stripe::StripeObject
|
1410
|
+
# The email of the recipient the ticket is delivered to.
|
1411
|
+
attr_reader :email
|
1412
|
+
# The name of the recipient the ticket is delivered to.
|
1413
|
+
attr_reader :name
|
1414
|
+
# The phone number of the recipient the ticket is delivered to.
|
1415
|
+
attr_reader :phone
|
1416
|
+
|
1417
|
+
def self.inner_class_types
|
1418
|
+
@inner_class_types = {}
|
1419
|
+
end
|
1420
|
+
|
1421
|
+
def self.field_remappings
|
1422
|
+
@field_remappings = {}
|
1423
|
+
end
|
1424
|
+
end
|
1425
|
+
# The delivery method for the payment
|
1426
|
+
attr_reader :mode
|
1427
|
+
# Attribute for field recipient
|
1428
|
+
attr_reader :recipient
|
1429
|
+
|
1430
|
+
def self.inner_class_types
|
1431
|
+
@inner_class_types = { recipient: Recipient }
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
def self.field_remappings
|
1435
|
+
@field_remappings = {}
|
1436
|
+
end
|
1437
|
+
end
|
1438
|
+
# Indicates if the tickets are digitally checked when entering the venue.
|
1439
|
+
attr_reader :access_controlled_venue
|
1440
|
+
# Attribute for field address
|
1441
|
+
attr_reader :address
|
1442
|
+
# Attribute for field affiliate
|
1443
|
+
attr_reader :affiliate
|
1444
|
+
# The name of the company
|
1445
|
+
attr_reader :company
|
1446
|
+
# Attribute for field delivery
|
1447
|
+
attr_reader :delivery
|
1448
|
+
# Event end time. Measured in seconds since the Unix epoch.
|
1449
|
+
attr_reader :ends_at
|
1450
|
+
# Type of the event entertainment (concert, sports event etc)
|
1451
|
+
attr_reader :genre
|
1452
|
+
# The name of the event.
|
1453
|
+
attr_reader :name
|
1454
|
+
# Event start time. Measured in seconds since the Unix epoch.
|
1455
|
+
attr_reader :starts_at
|
1456
|
+
|
1457
|
+
def self.inner_class_types
|
1458
|
+
@inner_class_types = { address: Address, affiliate: Affiliate, delivery: Delivery }
|
1459
|
+
end
|
1460
|
+
|
1461
|
+
def self.field_remappings
|
1462
|
+
@field_remappings = {}
|
1463
|
+
end
|
1464
|
+
end
|
1465
|
+
|
1466
|
+
class Subscription < Stripe::StripeObject
|
1467
|
+
class Affiliate < Stripe::StripeObject
|
1468
|
+
# The name of the affiliate that originated the purchase.
|
1469
|
+
attr_reader :name
|
1470
|
+
|
1471
|
+
def self.inner_class_types
|
1472
|
+
@inner_class_types = {}
|
1473
|
+
end
|
1474
|
+
|
1475
|
+
def self.field_remappings
|
1476
|
+
@field_remappings = {}
|
1477
|
+
end
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
class BillingInterval < Stripe::StripeObject
|
1481
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
1482
|
+
attr_reader :count
|
1483
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
1484
|
+
attr_reader :interval
|
1485
|
+
|
1486
|
+
def self.inner_class_types
|
1487
|
+
@inner_class_types = {}
|
1488
|
+
end
|
1489
|
+
|
1490
|
+
def self.field_remappings
|
1491
|
+
@field_remappings = {}
|
1492
|
+
end
|
1493
|
+
end
|
1494
|
+
# Attribute for field affiliate
|
1495
|
+
attr_reader :affiliate
|
1496
|
+
# Info whether the subscription will be auto renewed upon expiry.
|
1497
|
+
attr_reader :auto_renewal
|
1498
|
+
# Attribute for field billing_interval
|
1499
|
+
attr_reader :billing_interval
|
1500
|
+
# Subscription end time. Measured in seconds since the Unix epoch.
|
1501
|
+
attr_reader :ends_at
|
1502
|
+
# Name of the product on subscription. e.g. Apple Music Subscription.
|
1503
|
+
attr_reader :name
|
1504
|
+
# Subscription start time. Measured in seconds since the Unix epoch.
|
1505
|
+
attr_reader :starts_at
|
1506
|
+
|
1507
|
+
def self.inner_class_types
|
1508
|
+
@inner_class_types = { affiliate: Affiliate, billing_interval: BillingInterval }
|
1509
|
+
end
|
1510
|
+
|
1511
|
+
def self.field_remappings
|
1512
|
+
@field_remappings = {}
|
1513
|
+
end
|
1514
|
+
end
|
1515
|
+
# Attribute for field car_rental
|
1516
|
+
attr_reader :car_rental
|
1517
|
+
# 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.
|
1518
|
+
attr_reader :customer_reference
|
1519
|
+
# Attribute for field event_details
|
1520
|
+
attr_reader :event_details
|
1521
|
+
# A unique value assigned by the business to identify the transaction.
|
1522
|
+
attr_reader :order_reference
|
1523
|
+
# Attribute for field subscription
|
1524
|
+
attr_reader :subscription
|
1525
|
+
|
1526
|
+
def self.inner_class_types
|
1527
|
+
@inner_class_types = {
|
1528
|
+
car_rental: CarRental,
|
1529
|
+
event_details: EventDetails,
|
1530
|
+
subscription: Subscription,
|
1531
|
+
}
|
1532
|
+
end
|
1533
|
+
|
1534
|
+
def self.field_remappings
|
1535
|
+
@field_remappings = {}
|
1536
|
+
end
|
1537
|
+
end
|
1538
|
+
|
1105
1539
|
class PaymentMethodConfigurationDetails < Stripe::StripeObject
|
1106
1540
|
# ID of the payment method configuration used.
|
1107
1541
|
attr_reader :id
|
@@ -1472,6 +1906,43 @@ module Stripe
|
|
1472
1906
|
@field_remappings = {}
|
1473
1907
|
end
|
1474
1908
|
end
|
1909
|
+
|
1910
|
+
class StatementDetails < Stripe::StripeObject
|
1911
|
+
class Address < Stripe::StripeObject
|
1912
|
+
# City, district, suburb, town, or village.
|
1913
|
+
attr_reader :city
|
1914
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1915
|
+
attr_reader :country
|
1916
|
+
# Address line 1, such as the street, PO Box, or company name.
|
1917
|
+
attr_reader :line1
|
1918
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
1919
|
+
attr_reader :line2
|
1920
|
+
# ZIP or postal code.
|
1921
|
+
attr_reader :postal_code
|
1922
|
+
# State, county, province, or region.
|
1923
|
+
attr_reader :state
|
1924
|
+
|
1925
|
+
def self.inner_class_types
|
1926
|
+
@inner_class_types = {}
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
def self.field_remappings
|
1930
|
+
@field_remappings = {}
|
1931
|
+
end
|
1932
|
+
end
|
1933
|
+
# Attribute for field address
|
1934
|
+
attr_reader :address
|
1935
|
+
# Phone number
|
1936
|
+
attr_reader :phone
|
1937
|
+
|
1938
|
+
def self.inner_class_types
|
1939
|
+
@inner_class_types = { address: Address }
|
1940
|
+
end
|
1941
|
+
|
1942
|
+
def self.field_remappings
|
1943
|
+
@field_remappings = {}
|
1944
|
+
end
|
1945
|
+
end
|
1475
1946
|
# Controls when the funds will be captured from the customer's account.
|
1476
1947
|
attr_reader :capture_method
|
1477
1948
|
# Installment details for this payment.
|
@@ -1482,6 +1953,8 @@ module Stripe
|
|
1482
1953
|
attr_reader :mandate_options
|
1483
1954
|
# Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
|
1484
1955
|
attr_reader :network
|
1956
|
+
# Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
|
1957
|
+
attr_reader :request_decremental_authorization
|
1485
1958
|
# Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
|
1486
1959
|
attr_reader :request_extended_authorization
|
1487
1960
|
# Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.
|
@@ -1490,6 +1963,8 @@ module Stripe
|
|
1490
1963
|
attr_reader :request_multicapture
|
1491
1964
|
# Request ability to [overcapture](https://stripe.com/docs/payments/overcapture) for this PaymentIntent.
|
1492
1965
|
attr_reader :request_overcapture
|
1966
|
+
# Request partial authorization on this PaymentIntent.
|
1967
|
+
attr_reader :request_partial_authorization
|
1493
1968
|
# 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.
|
1494
1969
|
attr_reader :request_three_d_secure
|
1495
1970
|
# 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).
|
@@ -1506,9 +1981,15 @@ module Stripe
|
|
1506
1981
|
attr_reader :statement_descriptor_suffix_kana
|
1507
1982
|
# 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.
|
1508
1983
|
attr_reader :statement_descriptor_suffix_kanji
|
1984
|
+
# Attribute for field statement_details
|
1985
|
+
attr_reader :statement_details
|
1509
1986
|
|
1510
1987
|
def self.inner_class_types
|
1511
|
-
@inner_class_types = {
|
1988
|
+
@inner_class_types = {
|
1989
|
+
installments: Installments,
|
1990
|
+
mandate_options: MandateOptions,
|
1991
|
+
statement_details: StatementDetails,
|
1992
|
+
}
|
1512
1993
|
end
|
1513
1994
|
|
1514
1995
|
def self.field_remappings
|
@@ -1695,6 +2176,25 @@ module Stripe
|
|
1695
2176
|
end
|
1696
2177
|
end
|
1697
2178
|
|
2179
|
+
class Gopay < Stripe::StripeObject
|
2180
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2181
|
+
#
|
2182
|
+
# 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.
|
2183
|
+
#
|
2184
|
+
# 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.
|
2185
|
+
#
|
2186
|
+
# 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).
|
2187
|
+
attr_reader :setup_future_usage
|
2188
|
+
|
2189
|
+
def self.inner_class_types
|
2190
|
+
@inner_class_types = {}
|
2191
|
+
end
|
2192
|
+
|
2193
|
+
def self.field_remappings
|
2194
|
+
@field_remappings = {}
|
2195
|
+
end
|
2196
|
+
end
|
2197
|
+
|
1698
2198
|
class Grabpay < Stripe::StripeObject
|
1699
2199
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1700
2200
|
#
|
@@ -1714,6 +2214,29 @@ module Stripe
|
|
1714
2214
|
end
|
1715
2215
|
end
|
1716
2216
|
|
2217
|
+
class IdBankTransfer < Stripe::StripeObject
|
2218
|
+
# The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
|
2219
|
+
attr_reader :expires_after
|
2220
|
+
# 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.
|
2221
|
+
attr_reader :expires_at
|
2222
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2223
|
+
#
|
2224
|
+
# 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.
|
2225
|
+
#
|
2226
|
+
# 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.
|
2227
|
+
#
|
2228
|
+
# 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).
|
2229
|
+
attr_reader :setup_future_usage
|
2230
|
+
|
2231
|
+
def self.inner_class_types
|
2232
|
+
@inner_class_types = {}
|
2233
|
+
end
|
2234
|
+
|
2235
|
+
def self.field_remappings
|
2236
|
+
@field_remappings = {}
|
2237
|
+
end
|
2238
|
+
end
|
2239
|
+
|
1717
2240
|
class Ideal < Stripe::StripeObject
|
1718
2241
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1719
2242
|
#
|
@@ -2042,12 +2565,56 @@ module Stripe
|
|
2042
2565
|
end
|
2043
2566
|
|
2044
2567
|
class Paypal < Stripe::StripeObject
|
2568
|
+
class LineItem < Stripe::StripeObject
|
2569
|
+
class Tax < Stripe::StripeObject
|
2570
|
+
# The tax for a single unit of the line item in minor units. Cannot be a negative number.
|
2571
|
+
attr_reader :amount
|
2572
|
+
# The tax behavior for the line item.
|
2573
|
+
attr_reader :behavior
|
2574
|
+
|
2575
|
+
def self.inner_class_types
|
2576
|
+
@inner_class_types = {}
|
2577
|
+
end
|
2578
|
+
|
2579
|
+
def self.field_remappings
|
2580
|
+
@field_remappings = {}
|
2581
|
+
end
|
2582
|
+
end
|
2583
|
+
# Type of the line item.
|
2584
|
+
attr_reader :category
|
2585
|
+
# Description of the line item.
|
2586
|
+
attr_reader :description
|
2587
|
+
# Descriptive name of the line item.
|
2588
|
+
attr_reader :name
|
2589
|
+
# Quantity of the line item. Cannot be a negative number.
|
2590
|
+
attr_reader :quantity
|
2591
|
+
# Client facing stock keeping unit, article number or similar.
|
2592
|
+
attr_reader :sku
|
2593
|
+
# The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
|
2594
|
+
attr_reader :sold_by
|
2595
|
+
# Attribute for field tax
|
2596
|
+
attr_reader :tax
|
2597
|
+
# Price for a single unit of the line item in minor units. Cannot be a negative number.
|
2598
|
+
attr_reader :unit_amount
|
2599
|
+
|
2600
|
+
def self.inner_class_types
|
2601
|
+
@inner_class_types = { tax: Tax }
|
2602
|
+
end
|
2603
|
+
|
2604
|
+
def self.field_remappings
|
2605
|
+
@field_remappings = {}
|
2606
|
+
end
|
2607
|
+
end
|
2045
2608
|
# Controls when the funds will be captured from the customer's account.
|
2046
2609
|
attr_reader :capture_method
|
2610
|
+
# The line items purchased by the customer.
|
2611
|
+
attr_reader :line_items
|
2047
2612
|
# Preferred locale of the PayPal checkout page that the customer is redirected to.
|
2048
2613
|
attr_reader :preferred_locale
|
2049
2614
|
# 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.
|
2050
2615
|
attr_reader :reference
|
2616
|
+
# 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.
|
2617
|
+
attr_reader :reference_id
|
2051
2618
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2052
2619
|
#
|
2053
2620
|
# 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.
|
@@ -2056,7 +2623,19 @@ module Stripe
|
|
2056
2623
|
#
|
2057
2624
|
# 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).
|
2058
2625
|
attr_reader :setup_future_usage
|
2626
|
+
# 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.
|
2627
|
+
attr_reader :subsellers
|
2628
|
+
|
2629
|
+
def self.inner_class_types
|
2630
|
+
@inner_class_types = { line_items: LineItem }
|
2631
|
+
end
|
2059
2632
|
|
2633
|
+
def self.field_remappings
|
2634
|
+
@field_remappings = {}
|
2635
|
+
end
|
2636
|
+
end
|
2637
|
+
|
2638
|
+
class Paypay < Stripe::StripeObject
|
2060
2639
|
def self.inner_class_types
|
2061
2640
|
@inner_class_types = {}
|
2062
2641
|
end
|
@@ -2066,13 +2645,84 @@ module Stripe
|
|
2066
2645
|
end
|
2067
2646
|
end
|
2068
2647
|
|
2648
|
+
class Payto < Stripe::StripeObject
|
2649
|
+
class MandateOptions < Stripe::StripeObject
|
2650
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
2651
|
+
attr_reader :amount
|
2652
|
+
# 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.
|
2653
|
+
attr_reader :amount_type
|
2654
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
2655
|
+
attr_reader :end_date
|
2656
|
+
# The periodicity at which payments will be collected.
|
2657
|
+
attr_reader :payment_schedule
|
2658
|
+
# 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.
|
2659
|
+
attr_reader :payments_per_period
|
2660
|
+
# The purpose for which payments are made. Defaults to retail.
|
2661
|
+
attr_reader :purpose
|
2662
|
+
|
2663
|
+
def self.inner_class_types
|
2664
|
+
@inner_class_types = {}
|
2665
|
+
end
|
2666
|
+
|
2667
|
+
def self.field_remappings
|
2668
|
+
@field_remappings = {}
|
2669
|
+
end
|
2670
|
+
end
|
2671
|
+
# Attribute for field mandate_options
|
2672
|
+
attr_reader :mandate_options
|
2673
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2674
|
+
#
|
2675
|
+
# 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.
|
2676
|
+
#
|
2677
|
+
# 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.
|
2678
|
+
#
|
2679
|
+
# 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).
|
2680
|
+
attr_reader :setup_future_usage
|
2681
|
+
|
2682
|
+
def self.inner_class_types
|
2683
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
2684
|
+
end
|
2685
|
+
|
2686
|
+
def self.field_remappings
|
2687
|
+
@field_remappings = {}
|
2688
|
+
end
|
2689
|
+
end
|
2690
|
+
|
2069
2691
|
class Pix < Stripe::StripeObject
|
2692
|
+
class MandateOptions < Stripe::StripeObject
|
2693
|
+
# Amount to be charged for future payments.
|
2694
|
+
attr_reader :amount
|
2695
|
+
# Determines if the amount includes the IOF tax.
|
2696
|
+
attr_reader :amount_includes_iof
|
2697
|
+
# Type of amount.
|
2698
|
+
attr_reader :amount_type
|
2699
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
2700
|
+
attr_reader :currency
|
2701
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
2702
|
+
attr_reader :end_date
|
2703
|
+
# Schedule at which the future payments will be charged.
|
2704
|
+
attr_reader :payment_schedule
|
2705
|
+
# Subscription name displayed to buyers in their bank app.
|
2706
|
+
attr_reader :reference
|
2707
|
+
# Start date of the mandate, in `YYYY-MM-DD`.
|
2708
|
+
attr_reader :start_date
|
2709
|
+
|
2710
|
+
def self.inner_class_types
|
2711
|
+
@inner_class_types = {}
|
2712
|
+
end
|
2713
|
+
|
2714
|
+
def self.field_remappings
|
2715
|
+
@field_remappings = {}
|
2716
|
+
end
|
2717
|
+
end
|
2070
2718
|
# Determines if the amount includes the IOF tax.
|
2071
2719
|
attr_reader :amount_includes_iof
|
2072
2720
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire.
|
2073
2721
|
attr_reader :expires_after_seconds
|
2074
2722
|
# The timestamp at which the Pix expires.
|
2075
2723
|
attr_reader :expires_at
|
2724
|
+
# Attribute for field mandate_options
|
2725
|
+
attr_reader :mandate_options
|
2076
2726
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2077
2727
|
#
|
2078
2728
|
# 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.
|
@@ -2083,7 +2733,7 @@ module Stripe
|
|
2083
2733
|
attr_reader :setup_future_usage
|
2084
2734
|
|
2085
2735
|
def self.inner_class_types
|
2086
|
-
@inner_class_types = {}
|
2736
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
2087
2737
|
end
|
2088
2738
|
|
2089
2739
|
def self.field_remappings
|
@@ -2110,6 +2760,35 @@ module Stripe
|
|
2110
2760
|
end
|
2111
2761
|
end
|
2112
2762
|
|
2763
|
+
class Qris < Stripe::StripeObject
|
2764
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2765
|
+
#
|
2766
|
+
# 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.
|
2767
|
+
#
|
2768
|
+
# 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.
|
2769
|
+
#
|
2770
|
+
# 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).
|
2771
|
+
attr_reader :setup_future_usage
|
2772
|
+
|
2773
|
+
def self.inner_class_types
|
2774
|
+
@inner_class_types = {}
|
2775
|
+
end
|
2776
|
+
|
2777
|
+
def self.field_remappings
|
2778
|
+
@field_remappings = {}
|
2779
|
+
end
|
2780
|
+
end
|
2781
|
+
|
2782
|
+
class Rechnung < Stripe::StripeObject
|
2783
|
+
def self.inner_class_types
|
2784
|
+
@inner_class_types = {}
|
2785
|
+
end
|
2786
|
+
|
2787
|
+
def self.field_remappings
|
2788
|
+
@field_remappings = {}
|
2789
|
+
end
|
2790
|
+
end
|
2791
|
+
|
2113
2792
|
class RevolutPay < Stripe::StripeObject
|
2114
2793
|
# Controls when the funds will be captured from the customer's account.
|
2115
2794
|
attr_reader :capture_method
|
@@ -2192,6 +2871,25 @@ module Stripe
|
|
2192
2871
|
end
|
2193
2872
|
end
|
2194
2873
|
|
2874
|
+
class Shopeepay < Stripe::StripeObject
|
2875
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2876
|
+
#
|
2877
|
+
# 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.
|
2878
|
+
#
|
2879
|
+
# 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.
|
2880
|
+
#
|
2881
|
+
# 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).
|
2882
|
+
attr_reader :setup_future_usage
|
2883
|
+
|
2884
|
+
def self.inner_class_types
|
2885
|
+
@inner_class_types = {}
|
2886
|
+
end
|
2887
|
+
|
2888
|
+
def self.field_remappings
|
2889
|
+
@field_remappings = {}
|
2890
|
+
end
|
2891
|
+
end
|
2892
|
+
|
2195
2893
|
class Sofort < Stripe::StripeObject
|
2196
2894
|
# Preferred language of the SOFORT authorization page that the customer is redirected to.
|
2197
2895
|
attr_reader :preferred_language
|
@@ -2213,6 +2911,25 @@ module Stripe
|
|
2213
2911
|
end
|
2214
2912
|
end
|
2215
2913
|
|
2914
|
+
class StripeBalance < Stripe::StripeObject
|
2915
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2916
|
+
#
|
2917
|
+
# 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.
|
2918
|
+
#
|
2919
|
+
# 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.
|
2920
|
+
#
|
2921
|
+
# 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).
|
2922
|
+
attr_reader :setup_future_usage
|
2923
|
+
|
2924
|
+
def self.inner_class_types
|
2925
|
+
@inner_class_types = {}
|
2926
|
+
end
|
2927
|
+
|
2928
|
+
def self.field_remappings
|
2929
|
+
@field_remappings = {}
|
2930
|
+
end
|
2931
|
+
end
|
2932
|
+
|
2216
2933
|
class Swish < Stripe::StripeObject
|
2217
2934
|
# A reference for this payment to be displayed in the Swish app.
|
2218
2935
|
attr_reader :reference
|
@@ -2258,6 +2975,21 @@ module Stripe
|
|
2258
2975
|
class Filters < Stripe::StripeObject
|
2259
2976
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
2260
2977
|
attr_reader :account_subcategories
|
2978
|
+
# The institution to use to filter for possible accounts to link.
|
2979
|
+
attr_reader :institution
|
2980
|
+
|
2981
|
+
def self.inner_class_types
|
2982
|
+
@inner_class_types = {}
|
2983
|
+
end
|
2984
|
+
|
2985
|
+
def self.field_remappings
|
2986
|
+
@field_remappings = {}
|
2987
|
+
end
|
2988
|
+
end
|
2989
|
+
|
2990
|
+
class ManualEntry < Stripe::StripeObject
|
2991
|
+
# Settings for configuring manual entry of account details.
|
2992
|
+
attr_reader :mode
|
2261
2993
|
|
2262
2994
|
def self.inner_class_types
|
2263
2995
|
@inner_class_types = {}
|
@@ -2269,6 +3001,8 @@ module Stripe
|
|
2269
3001
|
end
|
2270
3002
|
# Attribute for field filters
|
2271
3003
|
attr_reader :filters
|
3004
|
+
# Attribute for field manual_entry
|
3005
|
+
attr_reader :manual_entry
|
2272
3006
|
# The list of permissions to request. The `payment_method` permission must be included.
|
2273
3007
|
attr_reader :permissions
|
2274
3008
|
# Data features requested to be retrieved upon account creation.
|
@@ -2277,7 +3011,7 @@ module Stripe
|
|
2277
3011
|
attr_reader :return_url
|
2278
3012
|
|
2279
3013
|
def self.inner_class_types
|
2280
|
-
@inner_class_types = { filters: Filters }
|
3014
|
+
@inner_class_types = { filters: Filters, manual_entry: ManualEntry }
|
2281
3015
|
end
|
2282
3016
|
|
2283
3017
|
def self.field_remappings
|
@@ -2409,8 +3143,12 @@ module Stripe
|
|
2409
3143
|
attr_reader :fpx
|
2410
3144
|
# Attribute for field giropay
|
2411
3145
|
attr_reader :giropay
|
3146
|
+
# Attribute for field gopay
|
3147
|
+
attr_reader :gopay
|
2412
3148
|
# Attribute for field grabpay
|
2413
3149
|
attr_reader :grabpay
|
3150
|
+
# Attribute for field id_bank_transfer
|
3151
|
+
attr_reader :id_bank_transfer
|
2414
3152
|
# Attribute for field ideal
|
2415
3153
|
attr_reader :ideal
|
2416
3154
|
# Attribute for field interac_present
|
@@ -2447,10 +3185,18 @@ module Stripe
|
|
2447
3185
|
attr_reader :paynow
|
2448
3186
|
# Attribute for field paypal
|
2449
3187
|
attr_reader :paypal
|
3188
|
+
# Attribute for field paypay
|
3189
|
+
attr_reader :paypay
|
3190
|
+
# Attribute for field payto
|
3191
|
+
attr_reader :payto
|
2450
3192
|
# Attribute for field pix
|
2451
3193
|
attr_reader :pix
|
2452
3194
|
# Attribute for field promptpay
|
2453
3195
|
attr_reader :promptpay
|
3196
|
+
# Attribute for field qris
|
3197
|
+
attr_reader :qris
|
3198
|
+
# Attribute for field rechnung
|
3199
|
+
attr_reader :rechnung
|
2454
3200
|
# Attribute for field revolut_pay
|
2455
3201
|
attr_reader :revolut_pay
|
2456
3202
|
# Attribute for field samsung_pay
|
@@ -2459,8 +3205,12 @@ module Stripe
|
|
2459
3205
|
attr_reader :satispay
|
2460
3206
|
# Attribute for field sepa_debit
|
2461
3207
|
attr_reader :sepa_debit
|
3208
|
+
# Attribute for field shopeepay
|
3209
|
+
attr_reader :shopeepay
|
2462
3210
|
# Attribute for field sofort
|
2463
3211
|
attr_reader :sofort
|
3212
|
+
# Attribute for field stripe_balance
|
3213
|
+
attr_reader :stripe_balance
|
2464
3214
|
# Attribute for field swish
|
2465
3215
|
attr_reader :swish
|
2466
3216
|
# Attribute for field twint
|
@@ -2494,7 +3244,9 @@ module Stripe
|
|
2494
3244
|
eps: Eps,
|
2495
3245
|
fpx: Fpx,
|
2496
3246
|
giropay: Giropay,
|
3247
|
+
gopay: Gopay,
|
2497
3248
|
grabpay: Grabpay,
|
3249
|
+
id_bank_transfer: IdBankTransfer,
|
2498
3250
|
ideal: Ideal,
|
2499
3251
|
interac_present: InteracPresent,
|
2500
3252
|
kakao_pay: KakaoPay,
|
@@ -2513,13 +3265,19 @@ module Stripe
|
|
2513
3265
|
payco: Payco,
|
2514
3266
|
paynow: Paynow,
|
2515
3267
|
paypal: Paypal,
|
3268
|
+
paypay: Paypay,
|
3269
|
+
payto: Payto,
|
2516
3270
|
pix: Pix,
|
2517
3271
|
promptpay: Promptpay,
|
3272
|
+
qris: Qris,
|
3273
|
+
rechnung: Rechnung,
|
2518
3274
|
revolut_pay: RevolutPay,
|
2519
3275
|
samsung_pay: SamsungPay,
|
2520
3276
|
satispay: Satispay,
|
2521
3277
|
sepa_debit: SepaDebit,
|
3278
|
+
shopeepay: Shopeepay,
|
2522
3279
|
sofort: Sofort,
|
3280
|
+
stripe_balance: StripeBalance,
|
2523
3281
|
swish: Swish,
|
2524
3282
|
twint: Twint,
|
2525
3283
|
us_bank_account: UsBankAccount,
|
@@ -2686,10 +3444,20 @@ module Stripe
|
|
2686
3444
|
#
|
2687
3445
|
# 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.
|
2688
3446
|
attr_reader :customer
|
3447
|
+
# ID of the Account this PaymentIntent belongs to, if one exists.
|
3448
|
+
#
|
3449
|
+
# Payment methods attached to other Accounts cannot be used with this PaymentIntent.
|
3450
|
+
#
|
3451
|
+
# 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.
|
3452
|
+
attr_reader :customer_account
|
2689
3453
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
2690
3454
|
attr_reader :description
|
2691
3455
|
# The list of payment method types to exclude from use with this payment.
|
2692
3456
|
attr_reader :excluded_payment_method_types
|
3457
|
+
# The FX Quote used for the PaymentIntent.
|
3458
|
+
attr_reader :fx_quote
|
3459
|
+
# Attribute for field hooks
|
3460
|
+
attr_reader :hooks
|
2693
3461
|
# Unique identifier for the object.
|
2694
3462
|
attr_reader :id
|
2695
3463
|
# The payment error encountered in the previous PaymentIntent confirmation. It will be cleared if the PaymentIntent is later updated for any reason.
|
@@ -2706,6 +3474,8 @@ module Stripe
|
|
2706
3474
|
attr_reader :object
|
2707
3475
|
# The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details.
|
2708
3476
|
attr_reader :on_behalf_of
|
3477
|
+
# Attribute for field payment_details
|
3478
|
+
attr_reader :payment_details
|
2709
3479
|
# ID of the payment method used in this PaymentIntent.
|
2710
3480
|
attr_reader :payment_method
|
2711
3481
|
# Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent.
|
@@ -2722,6 +3492,8 @@ module Stripe
|
|
2722
3492
|
attr_reader :receipt_email
|
2723
3493
|
# ID of the review associated with this PaymentIntent, if any.
|
2724
3494
|
attr_reader :review
|
3495
|
+
# Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
|
3496
|
+
attr_reader :secret_key_confirmation
|
2725
3497
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2726
3498
|
#
|
2727
3499
|
# 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.
|
@@ -2915,6 +3687,56 @@ module Stripe
|
|
2915
3687
|
request_stripe_object(method: :post, path: "/v1/payment_intents", params: params, opts: opts)
|
2916
3688
|
end
|
2917
3689
|
|
3690
|
+
# Perform a decremental authorization on an eligible
|
3691
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
3692
|
+
# PaymentIntent's status must be requires_capture and
|
3693
|
+
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
3694
|
+
# must be available.
|
3695
|
+
#
|
3696
|
+
# Decremental authorizations decrease the authorized amount on your customer's card
|
3697
|
+
# to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
|
3698
|
+
#
|
3699
|
+
# After decrement, the PaymentIntent object
|
3700
|
+
# returns with the updated
|
3701
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
3702
|
+
# The PaymentIntent will now be capturable up to the new authorized amount.
|
3703
|
+
#
|
3704
|
+
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
3705
|
+
# After it's fully captured, a PaymentIntent can no longer be decremented.
|
3706
|
+
def decrement_authorization(params = {}, opts = {})
|
3707
|
+
request_stripe_object(
|
3708
|
+
method: :post,
|
3709
|
+
path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(self["id"]) }),
|
3710
|
+
params: params,
|
3711
|
+
opts: opts
|
3712
|
+
)
|
3713
|
+
end
|
3714
|
+
|
3715
|
+
# Perform a decremental authorization on an eligible
|
3716
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
3717
|
+
# PaymentIntent's status must be requires_capture and
|
3718
|
+
# [decremental_authorization.status](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card-decremental_authorization)
|
3719
|
+
# must be available.
|
3720
|
+
#
|
3721
|
+
# Decremental authorizations decrease the authorized amount on your customer's card
|
3722
|
+
# to the new, lower amount provided. A single PaymentIntent can call this endpoint multiple times to further decrease the authorized amount.
|
3723
|
+
#
|
3724
|
+
# After decrement, the PaymentIntent object
|
3725
|
+
# returns with the updated
|
3726
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
3727
|
+
# The PaymentIntent will now be capturable up to the new authorized amount.
|
3728
|
+
#
|
3729
|
+
# Each PaymentIntent can have a maximum of 10 decremental or incremental authorization attempts, including declines.
|
3730
|
+
# After it's fully captured, a PaymentIntent can no longer be decremented.
|
3731
|
+
def self.decrement_authorization(intent, params = {}, opts = {})
|
3732
|
+
request_stripe_object(
|
3733
|
+
method: :post,
|
3734
|
+
path: format("/v1/payment_intents/%<intent>s/decrement_authorization", { intent: CGI.escape(intent) }),
|
3735
|
+
params: params,
|
3736
|
+
opts: opts
|
3737
|
+
)
|
3738
|
+
end
|
3739
|
+
|
2918
3740
|
# Perform an incremental authorization on an eligible
|
2919
3741
|
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
2920
3742
|
# PaymentIntent's status must be requires_capture and
|
@@ -2999,6 +3821,26 @@ module Stripe
|
|
2999
3821
|
search(params, opts).auto_paging_each(&blk)
|
3000
3822
|
end
|
3001
3823
|
|
3824
|
+
# Trigger an external action on a PaymentIntent.
|
3825
|
+
def trigger_action(params = {}, opts = {})
|
3826
|
+
request_stripe_object(
|
3827
|
+
method: :post,
|
3828
|
+
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(self["id"]) }),
|
3829
|
+
params: params,
|
3830
|
+
opts: opts
|
3831
|
+
)
|
3832
|
+
end
|
3833
|
+
|
3834
|
+
# Trigger an external action on a PaymentIntent.
|
3835
|
+
def self.trigger_action(intent, params = {}, opts = {})
|
3836
|
+
request_stripe_object(
|
3837
|
+
method: :post,
|
3838
|
+
path: format("/v1/test/payment_intents/%<intent>s/trigger_action", { intent: CGI.escape(intent) }),
|
3839
|
+
params: params,
|
3840
|
+
opts: opts
|
3841
|
+
)
|
3842
|
+
end
|
3843
|
+
|
3002
3844
|
# Updates properties on a PaymentIntent object without confirming.
|
3003
3845
|
#
|
3004
3846
|
# Depending on which properties you update, you might need to confirm the
|
@@ -3039,8 +3881,10 @@ module Stripe
|
|
3039
3881
|
@inner_class_types = {
|
3040
3882
|
amount_details: AmountDetails,
|
3041
3883
|
automatic_payment_methods: AutomaticPaymentMethods,
|
3884
|
+
hooks: Hooks,
|
3042
3885
|
last_payment_error: LastPaymentError,
|
3043
3886
|
next_action: NextAction,
|
3887
|
+
payment_details: PaymentDetails,
|
3044
3888
|
payment_method_configuration_details: PaymentMethodConfigurationDetails,
|
3045
3889
|
payment_method_options: PaymentMethodOptions,
|
3046
3890
|
presentment_details: PresentmentDetails,
|