stripe 18.1.0 → 18.2.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +34 -0
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +63 -0
- data/lib/stripe/event_types.rb +213 -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_core_health_event_generation_failure_resolved_event.rb +78 -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_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +52 -0
- data/lib/stripe/params/account_create_params.rb +304 -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 +266 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -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 +1648 -0
- data/lib/stripe/params/charge_update_params.rb +1648 -0
- data/lib/stripe/params/checkout/session_create_params.rb +129 -3
- data/lib/stripe/params/checkout/session_update_params.rb +141 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +77 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -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/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 +30 -1
- 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/invoice_add_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +107 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +822 -9
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- 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_update_lines_params.rb +33 -1
- data/lib/stripe/params/invoice_update_params.rb +107 -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 +2061 -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 +2065 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1627 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +2971 -11
- data/lib/stripe/params/payment_intent_create_params.rb +2971 -11
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +21 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3003 -12
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +77 -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/quote_create_params.rb +801 -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 +4 -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 +809 -4
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +158 -3
- data/lib/stripe/params/setup_intent_create_params.rb +158 -3
- data/lib/stripe/params/setup_intent_update_params.rb +158 -3
- data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
- data/lib/stripe/params/subscription_create_params.rb +254 -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_schedule_amend_params.rb +570 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +163 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +163 -5
- data/lib/stripe/params/subscription_update_params.rb +237 -4
- 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/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -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 +77 -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_create_params.rb +251 -4
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +243 -3
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -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 +110 -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 +79 -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 +89 -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/test_helpers/financial_address_credit_params.rb +34 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +151 -0
- data/lib/stripe/resources/account.rb +182 -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/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/charge.rb +215 -1
- data/lib/stripe/resources/checkout/session.rb +104 -4
- data/lib/stripe/resources/confirmation_token.rb +133 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer_session.rb +36 -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 +25 -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 +65 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +150 -1
- data/lib/stripe/resources/invoice_item.rb +2 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +66 -1
- data/lib/stripe/resources/mandate.rb +43 -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 +181 -1
- data/lib/stripe/resources/payment_intent.rb +737 -4
- data/lib/stripe/resources/payment_method.rb +135 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_record.rb +181 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +521 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1182 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +74 -0
- data/lib/stripe/resources/reserve/plan.rb +78 -0
- data/lib/stripe/resources/reserve/release.rb +77 -0
- data/lib/stripe/resources/setup_attempt.rb +48 -0
- data/lib/stripe/resources/setup_intent.rb +88 -1
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +230 -0
- data/lib/stripe/resources/subscription_item.rb +20 -1
- data/lib/stripe/resources/subscription_schedule.rb +196 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/terminal/configuration.rb +16 -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 +565 -3
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +83 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +261 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +240 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +111 -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 +246 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +152 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
- data/lib/stripe/resources.rb +104 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +2 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_line_item_service.rb +17 -0
- data/lib/stripe/services/order_service.rb +78 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +11 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +9 -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/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -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 +65 -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/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 +3 -1
- data/lib/stripe/services.rb +55 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +425 -0
- 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 +54 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +93543 -33169
- metadata +314 -3
|
@@ -318,6 +318,8 @@ module Stripe
|
|
|
318
318
|
class Card < ::Stripe::StripeObject
|
|
319
319
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
320
320
|
attr_reader :brand
|
|
321
|
+
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
|
322
|
+
attr_reader :brand_product
|
|
321
323
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
322
324
|
attr_reader :country
|
|
323
325
|
# Two-digit number representing the card's expiration month.
|
|
@@ -492,6 +494,19 @@ module Stripe
|
|
|
492
494
|
end
|
|
493
495
|
end
|
|
494
496
|
|
|
497
|
+
class DecrementalAuthorization < ::Stripe::StripeObject
|
|
498
|
+
# Indicates whether or not the decremental authorization feature is supported.
|
|
499
|
+
attr_reader :status
|
|
500
|
+
|
|
501
|
+
def self.inner_class_types
|
|
502
|
+
@inner_class_types = {}
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
def self.field_remappings
|
|
506
|
+
@field_remappings = {}
|
|
507
|
+
end
|
|
508
|
+
end
|
|
509
|
+
|
|
495
510
|
class ExtendedAuthorization < ::Stripe::StripeObject
|
|
496
511
|
# Indicates whether or not the capture window is extended beyond the standard authorization.
|
|
497
512
|
attr_reader :status
|
|
@@ -589,6 +604,19 @@ module Stripe
|
|
|
589
604
|
end
|
|
590
605
|
end
|
|
591
606
|
|
|
607
|
+
class PartialAuthorization < ::Stripe::StripeObject
|
|
608
|
+
# Indicates whether the transaction requested for partial authorization feature and the authorization outcome.
|
|
609
|
+
attr_reader :status
|
|
610
|
+
|
|
611
|
+
def self.inner_class_types
|
|
612
|
+
@inner_class_types = {}
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
def self.field_remappings
|
|
616
|
+
@field_remappings = {}
|
|
617
|
+
end
|
|
618
|
+
end
|
|
619
|
+
|
|
592
620
|
class ThreeDSecure < ::Stripe::StripeObject
|
|
593
621
|
# For authenticated transactions: how the customer was authenticated by
|
|
594
622
|
# the issuing bank.
|
|
@@ -842,6 +870,8 @@ module Stripe
|
|
|
842
870
|
end
|
|
843
871
|
# The authorized amount.
|
|
844
872
|
attr_reader :amount_authorized
|
|
873
|
+
# The latest amount intended to be authorized by this charge.
|
|
874
|
+
attr_reader :amount_requested
|
|
845
875
|
# Authorization code on the charge.
|
|
846
876
|
attr_reader :authorization_code
|
|
847
877
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
@@ -852,6 +882,8 @@ module Stripe
|
|
|
852
882
|
attr_reader :checks
|
|
853
883
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
854
884
|
attr_reader :country
|
|
885
|
+
# Attribute for field decremental_authorization
|
|
886
|
+
attr_reader :decremental_authorization
|
|
855
887
|
# A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
|
856
888
|
attr_reader :description
|
|
857
889
|
# Two-digit number representing the card's expiration month.
|
|
@@ -892,6 +924,8 @@ module Stripe
|
|
|
892
924
|
attr_reader :network_transaction_id
|
|
893
925
|
# Attribute for field overcapture
|
|
894
926
|
attr_reader :overcapture
|
|
927
|
+
# Attribute for field partial_authorization
|
|
928
|
+
attr_reader :partial_authorization
|
|
895
929
|
# Status of a card based on the card issuer.
|
|
896
930
|
attr_reader :regulated_status
|
|
897
931
|
# Populated if this transaction used 3D Secure authentication.
|
|
@@ -902,12 +936,14 @@ module Stripe
|
|
|
902
936
|
def self.inner_class_types
|
|
903
937
|
@inner_class_types = {
|
|
904
938
|
checks: Checks,
|
|
939
|
+
decremental_authorization: DecrementalAuthorization,
|
|
905
940
|
extended_authorization: ExtendedAuthorization,
|
|
906
941
|
incremental_authorization: IncrementalAuthorization,
|
|
907
942
|
installments: Installments,
|
|
908
943
|
multicapture: Multicapture,
|
|
909
944
|
network_token: NetworkToken,
|
|
910
945
|
overcapture: Overcapture,
|
|
946
|
+
partial_authorization: PartialAuthorization,
|
|
911
947
|
three_d_secure: ThreeDSecure,
|
|
912
948
|
wallet: Wallet,
|
|
913
949
|
}
|
|
@@ -1138,6 +1174,16 @@ module Stripe
|
|
|
1138
1174
|
end
|
|
1139
1175
|
end
|
|
1140
1176
|
|
|
1177
|
+
class Gopay < ::Stripe::StripeObject
|
|
1178
|
+
def self.inner_class_types
|
|
1179
|
+
@inner_class_types = {}
|
|
1180
|
+
end
|
|
1181
|
+
|
|
1182
|
+
def self.field_remappings
|
|
1183
|
+
@field_remappings = {}
|
|
1184
|
+
end
|
|
1185
|
+
end
|
|
1186
|
+
|
|
1141
1187
|
class Grabpay < ::Stripe::StripeObject
|
|
1142
1188
|
# Unique transaction id generated by GrabPay
|
|
1143
1189
|
attr_reader :transaction_id
|
|
@@ -1151,6 +1197,27 @@ module Stripe
|
|
|
1151
1197
|
end
|
|
1152
1198
|
end
|
|
1153
1199
|
|
|
1200
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
1201
|
+
# Account number of the bank account to transfer funds to.
|
|
1202
|
+
attr_reader :account_number
|
|
1203
|
+
# Bank where the account is located.
|
|
1204
|
+
attr_reader :bank
|
|
1205
|
+
# Local bank code of the bank.
|
|
1206
|
+
attr_reader :bank_code
|
|
1207
|
+
# Name of the bank associated with the bank account.
|
|
1208
|
+
attr_reader :bank_name
|
|
1209
|
+
# Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
|
|
1210
|
+
attr_reader :display_name
|
|
1211
|
+
|
|
1212
|
+
def self.inner_class_types
|
|
1213
|
+
@inner_class_types = {}
|
|
1214
|
+
end
|
|
1215
|
+
|
|
1216
|
+
def self.field_remappings
|
|
1217
|
+
@field_remappings = {}
|
|
1218
|
+
end
|
|
1219
|
+
end
|
|
1220
|
+
|
|
1154
1221
|
class Ideal < ::Stripe::StripeObject
|
|
1155
1222
|
# The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
1156
1223
|
attr_reader :bank
|
|
@@ -1557,6 +1624,52 @@ module Stripe
|
|
|
1557
1624
|
@field_remappings = {}
|
|
1558
1625
|
end
|
|
1559
1626
|
end
|
|
1627
|
+
|
|
1628
|
+
class Shipping < ::Stripe::StripeObject
|
|
1629
|
+
# City, district, suburb, town, or village.
|
|
1630
|
+
attr_reader :city
|
|
1631
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1632
|
+
attr_reader :country
|
|
1633
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1634
|
+
attr_reader :line1
|
|
1635
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1636
|
+
attr_reader :line2
|
|
1637
|
+
# ZIP or postal code.
|
|
1638
|
+
attr_reader :postal_code
|
|
1639
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1640
|
+
attr_reader :state
|
|
1641
|
+
|
|
1642
|
+
def self.inner_class_types
|
|
1643
|
+
@inner_class_types = {}
|
|
1644
|
+
end
|
|
1645
|
+
|
|
1646
|
+
def self.field_remappings
|
|
1647
|
+
@field_remappings = {}
|
|
1648
|
+
end
|
|
1649
|
+
end
|
|
1650
|
+
|
|
1651
|
+
class VerifiedAddress < ::Stripe::StripeObject
|
|
1652
|
+
# City, district, suburb, town, or village.
|
|
1653
|
+
attr_reader :city
|
|
1654
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1655
|
+
attr_reader :country
|
|
1656
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1657
|
+
attr_reader :line1
|
|
1658
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1659
|
+
attr_reader :line2
|
|
1660
|
+
# ZIP or postal code.
|
|
1661
|
+
attr_reader :postal_code
|
|
1662
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1663
|
+
attr_reader :state
|
|
1664
|
+
|
|
1665
|
+
def self.inner_class_types
|
|
1666
|
+
@inner_class_types = {}
|
|
1667
|
+
end
|
|
1668
|
+
|
|
1669
|
+
def self.field_remappings
|
|
1670
|
+
@field_remappings = {}
|
|
1671
|
+
end
|
|
1672
|
+
end
|
|
1560
1673
|
# Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1561
1674
|
attr_reader :country
|
|
1562
1675
|
# Owner's email. Values are provided by PayPal directly
|
|
@@ -1569,11 +1682,39 @@ module Stripe
|
|
|
1569
1682
|
attr_reader :payer_name
|
|
1570
1683
|
# The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
|
|
1571
1684
|
attr_reader :seller_protection
|
|
1685
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1686
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1687
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
1688
|
+
attr_reader :shipping
|
|
1572
1689
|
# A unique ID generated by PayPal for this transaction.
|
|
1573
1690
|
attr_reader :transaction_id
|
|
1691
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1692
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1693
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
1694
|
+
attr_reader :verified_address
|
|
1695
|
+
# Owner's verified email. Values are verified or provided by PayPal directly
|
|
1696
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1697
|
+
attr_reader :verified_email
|
|
1698
|
+
# Owner's verified full name. Values are verified or provided by PayPal directly
|
|
1699
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1700
|
+
attr_reader :verified_name
|
|
1701
|
+
|
|
1702
|
+
def self.inner_class_types
|
|
1703
|
+
@inner_class_types = {
|
|
1704
|
+
seller_protection: SellerProtection,
|
|
1705
|
+
shipping: Shipping,
|
|
1706
|
+
verified_address: VerifiedAddress,
|
|
1707
|
+
}
|
|
1708
|
+
end
|
|
1574
1709
|
|
|
1710
|
+
def self.field_remappings
|
|
1711
|
+
@field_remappings = {}
|
|
1712
|
+
end
|
|
1713
|
+
end
|
|
1714
|
+
|
|
1715
|
+
class Paypay < ::Stripe::StripeObject
|
|
1575
1716
|
def self.inner_class_types
|
|
1576
|
-
@inner_class_types = {
|
|
1717
|
+
@inner_class_types = {}
|
|
1577
1718
|
end
|
|
1578
1719
|
|
|
1579
1720
|
def self.field_remappings
|
|
@@ -1603,6 +1744,8 @@ module Stripe
|
|
|
1603
1744
|
class Pix < ::Stripe::StripeObject
|
|
1604
1745
|
# Unique transaction id generated by BCB
|
|
1605
1746
|
attr_reader :bank_transaction_id
|
|
1747
|
+
# ID of the multi use Mandate generated by the PaymentIntent
|
|
1748
|
+
attr_reader :mandate
|
|
1606
1749
|
|
|
1607
1750
|
def self.inner_class_types
|
|
1608
1751
|
@inner_class_types = {}
|
|
@@ -1626,11 +1769,36 @@ module Stripe
|
|
|
1626
1769
|
end
|
|
1627
1770
|
end
|
|
1628
1771
|
|
|
1772
|
+
class Qris < ::Stripe::StripeObject
|
|
1773
|
+
def self.inner_class_types
|
|
1774
|
+
@inner_class_types = {}
|
|
1775
|
+
end
|
|
1776
|
+
|
|
1777
|
+
def self.field_remappings
|
|
1778
|
+
@field_remappings = {}
|
|
1779
|
+
end
|
|
1780
|
+
end
|
|
1781
|
+
|
|
1782
|
+
class Rechnung < ::Stripe::StripeObject
|
|
1783
|
+
# Payment portal URL.
|
|
1784
|
+
attr_reader :payment_portal_url
|
|
1785
|
+
|
|
1786
|
+
def self.inner_class_types
|
|
1787
|
+
@inner_class_types = {}
|
|
1788
|
+
end
|
|
1789
|
+
|
|
1790
|
+
def self.field_remappings
|
|
1791
|
+
@field_remappings = {}
|
|
1792
|
+
end
|
|
1793
|
+
end
|
|
1794
|
+
|
|
1629
1795
|
class RevolutPay < ::Stripe::StripeObject
|
|
1630
1796
|
class Funding < ::Stripe::StripeObject
|
|
1631
1797
|
class Card < ::Stripe::StripeObject
|
|
1632
1798
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
1633
1799
|
attr_reader :brand
|
|
1800
|
+
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
|
1801
|
+
attr_reader :brand_product
|
|
1634
1802
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
1635
1803
|
attr_reader :country
|
|
1636
1804
|
# Two-digit number representing the card's expiration month.
|
|
@@ -1747,6 +1915,16 @@ module Stripe
|
|
|
1747
1915
|
end
|
|
1748
1916
|
end
|
|
1749
1917
|
|
|
1918
|
+
class Shopeepay < ::Stripe::StripeObject
|
|
1919
|
+
def self.inner_class_types
|
|
1920
|
+
@inner_class_types = {}
|
|
1921
|
+
end
|
|
1922
|
+
|
|
1923
|
+
def self.field_remappings
|
|
1924
|
+
@field_remappings = {}
|
|
1925
|
+
end
|
|
1926
|
+
end
|
|
1927
|
+
|
|
1750
1928
|
class Sofort < ::Stripe::StripeObject
|
|
1751
1929
|
# Bank code of bank associated with the bank account.
|
|
1752
1930
|
attr_reader :bank_code
|
|
@@ -1788,6 +1966,21 @@ module Stripe
|
|
|
1788
1966
|
end
|
|
1789
1967
|
end
|
|
1790
1968
|
|
|
1969
|
+
class StripeBalance < ::Stripe::StripeObject
|
|
1970
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
1971
|
+
attr_reader :account
|
|
1972
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
1973
|
+
attr_reader :source_type
|
|
1974
|
+
|
|
1975
|
+
def self.inner_class_types
|
|
1976
|
+
@inner_class_types = {}
|
|
1977
|
+
end
|
|
1978
|
+
|
|
1979
|
+
def self.field_remappings
|
|
1980
|
+
@field_remappings = {}
|
|
1981
|
+
end
|
|
1982
|
+
end
|
|
1983
|
+
|
|
1791
1984
|
class Swish < ::Stripe::StripeObject
|
|
1792
1985
|
# Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer
|
|
1793
1986
|
attr_reader :fingerprint
|
|
@@ -1926,8 +2119,12 @@ module Stripe
|
|
|
1926
2119
|
attr_reader :fpx
|
|
1927
2120
|
# Attribute for field giropay
|
|
1928
2121
|
attr_reader :giropay
|
|
2122
|
+
# Attribute for field gopay
|
|
2123
|
+
attr_reader :gopay
|
|
1929
2124
|
# Attribute for field grabpay
|
|
1930
2125
|
attr_reader :grabpay
|
|
2126
|
+
# Attribute for field id_bank_transfer
|
|
2127
|
+
attr_reader :id_bank_transfer
|
|
1931
2128
|
# Attribute for field ideal
|
|
1932
2129
|
attr_reader :ideal
|
|
1933
2130
|
# Attribute for field interac_present
|
|
@@ -1964,12 +2161,18 @@ module Stripe
|
|
|
1964
2161
|
attr_reader :paynow
|
|
1965
2162
|
# Attribute for field paypal
|
|
1966
2163
|
attr_reader :paypal
|
|
2164
|
+
# Attribute for field paypay
|
|
2165
|
+
attr_reader :paypay
|
|
1967
2166
|
# Attribute for field payto
|
|
1968
2167
|
attr_reader :payto
|
|
1969
2168
|
# Attribute for field pix
|
|
1970
2169
|
attr_reader :pix
|
|
1971
2170
|
# Attribute for field promptpay
|
|
1972
2171
|
attr_reader :promptpay
|
|
2172
|
+
# Attribute for field qris
|
|
2173
|
+
attr_reader :qris
|
|
2174
|
+
# Attribute for field rechnung
|
|
2175
|
+
attr_reader :rechnung
|
|
1973
2176
|
# Attribute for field revolut_pay
|
|
1974
2177
|
attr_reader :revolut_pay
|
|
1975
2178
|
# Attribute for field samsung_pay
|
|
@@ -1980,10 +2183,14 @@ module Stripe
|
|
|
1980
2183
|
attr_reader :sepa_credit_transfer
|
|
1981
2184
|
# Attribute for field sepa_debit
|
|
1982
2185
|
attr_reader :sepa_debit
|
|
2186
|
+
# Attribute for field shopeepay
|
|
2187
|
+
attr_reader :shopeepay
|
|
1983
2188
|
# Attribute for field sofort
|
|
1984
2189
|
attr_reader :sofort
|
|
1985
2190
|
# Attribute for field stripe_account
|
|
1986
2191
|
attr_reader :stripe_account
|
|
2192
|
+
# Attribute for field stripe_balance
|
|
2193
|
+
attr_reader :stripe_balance
|
|
1987
2194
|
# Attribute for field swish
|
|
1988
2195
|
attr_reader :swish
|
|
1989
2196
|
# Attribute for field twint
|
|
@@ -2025,7 +2232,9 @@ module Stripe
|
|
|
2025
2232
|
eps: Eps,
|
|
2026
2233
|
fpx: Fpx,
|
|
2027
2234
|
giropay: Giropay,
|
|
2235
|
+
gopay: Gopay,
|
|
2028
2236
|
grabpay: Grabpay,
|
|
2237
|
+
id_bank_transfer: IdBankTransfer,
|
|
2029
2238
|
ideal: Ideal,
|
|
2030
2239
|
interac_present: InteracPresent,
|
|
2031
2240
|
kakao_pay: KakaoPay,
|
|
@@ -2044,16 +2253,21 @@ module Stripe
|
|
|
2044
2253
|
payco: Payco,
|
|
2045
2254
|
paynow: Paynow,
|
|
2046
2255
|
paypal: Paypal,
|
|
2256
|
+
paypay: Paypay,
|
|
2047
2257
|
payto: Payto,
|
|
2048
2258
|
pix: Pix,
|
|
2049
2259
|
promptpay: Promptpay,
|
|
2260
|
+
qris: Qris,
|
|
2261
|
+
rechnung: Rechnung,
|
|
2050
2262
|
revolut_pay: RevolutPay,
|
|
2051
2263
|
samsung_pay: SamsungPay,
|
|
2052
2264
|
satispay: Satispay,
|
|
2053
2265
|
sepa_credit_transfer: SepaCreditTransfer,
|
|
2054
2266
|
sepa_debit: SepaDebit,
|
|
2267
|
+
shopeepay: Shopeepay,
|
|
2055
2268
|
sofort: Sofort,
|
|
2056
2269
|
stripe_account: StripeAccount,
|
|
2270
|
+
stripe_balance: StripeBalance,
|
|
2057
2271
|
swish: Swish,
|
|
2058
2272
|
twint: Twint,
|
|
2059
2273
|
us_bank_account: UsBankAccount,
|
|
@@ -201,15 +201,36 @@ module Stripe
|
|
|
201
201
|
@field_remappings = {}
|
|
202
202
|
end
|
|
203
203
|
end
|
|
204
|
+
|
|
205
|
+
class TaxId < ::Stripe::StripeObject
|
|
206
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
|
207
|
+
attr_reader :type
|
|
208
|
+
# The value of the tax ID.
|
|
209
|
+
attr_reader :value
|
|
210
|
+
|
|
211
|
+
def self.inner_class_types
|
|
212
|
+
@inner_class_types = {}
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
def self.field_remappings
|
|
216
|
+
@field_remappings = {}
|
|
217
|
+
end
|
|
218
|
+
end
|
|
204
219
|
# Customer’s business name for this Checkout Session
|
|
205
220
|
attr_reader :business_name
|
|
221
|
+
# Customer’s email for this Checkout Session
|
|
222
|
+
attr_reader :email
|
|
206
223
|
# Customer’s individual name for this Checkout Session
|
|
207
224
|
attr_reader :individual_name
|
|
225
|
+
# Customer’s phone number for this Checkout Session
|
|
226
|
+
attr_reader :phone
|
|
208
227
|
# Shipping information for this Checkout Session.
|
|
209
228
|
attr_reader :shipping_details
|
|
229
|
+
# Customer’s tax ids for this Checkout Session.
|
|
230
|
+
attr_reader :tax_ids
|
|
210
231
|
|
|
211
232
|
def self.inner_class_types
|
|
212
|
-
@inner_class_types = { shipping_details: ShippingDetails }
|
|
233
|
+
@inner_class_types = { shipping_details: ShippingDetails, tax_ids: TaxId }
|
|
213
234
|
end
|
|
214
235
|
|
|
215
236
|
def self.field_remappings
|
|
@@ -1010,6 +1031,8 @@ module Stripe
|
|
|
1010
1031
|
# Attribute for field installments
|
|
1011
1032
|
attr_reader :installments
|
|
1012
1033
|
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
|
1034
|
+
attr_reader :request_decremental_authorization
|
|
1035
|
+
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
|
1013
1036
|
attr_reader :request_extended_authorization
|
|
1014
1037
|
# Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
|
|
1015
1038
|
attr_reader :request_incremental_authorization
|
|
@@ -1465,6 +1488,8 @@ module Stripe
|
|
|
1465
1488
|
#
|
|
1466
1489
|
# 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).
|
|
1467
1490
|
attr_reader :setup_future_usage
|
|
1491
|
+
# 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.
|
|
1492
|
+
attr_reader :subsellers
|
|
1468
1493
|
|
|
1469
1494
|
def self.inner_class_types
|
|
1470
1495
|
@inner_class_types = {}
|
|
@@ -1521,10 +1546,38 @@ module Stripe
|
|
|
1521
1546
|
end
|
|
1522
1547
|
|
|
1523
1548
|
class Pix < ::Stripe::StripeObject
|
|
1549
|
+
class MandateOptions < ::Stripe::StripeObject
|
|
1550
|
+
# Amount to be charged for future payments.
|
|
1551
|
+
attr_reader :amount
|
|
1552
|
+
# Determines if the amount includes the IOF tax.
|
|
1553
|
+
attr_reader :amount_includes_iof
|
|
1554
|
+
# Type of amount.
|
|
1555
|
+
attr_reader :amount_type
|
|
1556
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
|
1557
|
+
attr_reader :currency
|
|
1558
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
|
1559
|
+
attr_reader :end_date
|
|
1560
|
+
# Schedule at which the future payments will be charged.
|
|
1561
|
+
attr_reader :payment_schedule
|
|
1562
|
+
# Subscription name displayed to buyers in their bank app.
|
|
1563
|
+
attr_reader :reference
|
|
1564
|
+
# Start date of the mandate, in `YYYY-MM-DD`.
|
|
1565
|
+
attr_reader :start_date
|
|
1566
|
+
|
|
1567
|
+
def self.inner_class_types
|
|
1568
|
+
@inner_class_types = {}
|
|
1569
|
+
end
|
|
1570
|
+
|
|
1571
|
+
def self.field_remappings
|
|
1572
|
+
@field_remappings = {}
|
|
1573
|
+
end
|
|
1574
|
+
end
|
|
1524
1575
|
# Determines if the amount includes the IOF tax.
|
|
1525
1576
|
attr_reader :amount_includes_iof
|
|
1526
1577
|
# The number of seconds after which Pix payment will expire.
|
|
1527
1578
|
attr_reader :expires_after_seconds
|
|
1579
|
+
# Attribute for field mandate_options
|
|
1580
|
+
attr_reader :mandate_options
|
|
1528
1581
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1529
1582
|
#
|
|
1530
1583
|
# 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.
|
|
@@ -1535,7 +1588,7 @@ module Stripe
|
|
|
1535
1588
|
attr_reader :setup_future_usage
|
|
1536
1589
|
|
|
1537
1590
|
def self.inner_class_types
|
|
1538
|
-
@inner_class_types = {}
|
|
1591
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
|
1539
1592
|
end
|
|
1540
1593
|
|
|
1541
1594
|
def self.field_remappings
|
|
@@ -1681,6 +1734,21 @@ module Stripe
|
|
|
1681
1734
|
class Filters < ::Stripe::StripeObject
|
|
1682
1735
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1683
1736
|
attr_reader :account_subcategories
|
|
1737
|
+
# The institution to use to filter for possible accounts to link.
|
|
1738
|
+
attr_reader :institution
|
|
1739
|
+
|
|
1740
|
+
def self.inner_class_types
|
|
1741
|
+
@inner_class_types = {}
|
|
1742
|
+
end
|
|
1743
|
+
|
|
1744
|
+
def self.field_remappings
|
|
1745
|
+
@field_remappings = {}
|
|
1746
|
+
end
|
|
1747
|
+
end
|
|
1748
|
+
|
|
1749
|
+
class ManualEntry < ::Stripe::StripeObject
|
|
1750
|
+
# Settings for configuring manual entry of account details.
|
|
1751
|
+
attr_reader :mode
|
|
1684
1752
|
|
|
1685
1753
|
def self.inner_class_types
|
|
1686
1754
|
@inner_class_types = {}
|
|
@@ -1692,6 +1760,8 @@ module Stripe
|
|
|
1692
1760
|
end
|
|
1693
1761
|
# Attribute for field filters
|
|
1694
1762
|
attr_reader :filters
|
|
1763
|
+
# Attribute for field manual_entry
|
|
1764
|
+
attr_reader :manual_entry
|
|
1695
1765
|
# The list of permissions to request. The `payment_method` permission must be included.
|
|
1696
1766
|
attr_reader :permissions
|
|
1697
1767
|
# Data features requested to be retrieved upon account creation.
|
|
@@ -1700,7 +1770,7 @@ module Stripe
|
|
|
1700
1770
|
attr_reader :return_url
|
|
1701
1771
|
|
|
1702
1772
|
def self.inner_class_types
|
|
1703
|
-
@inner_class_types = { filters: Filters }
|
|
1773
|
+
@inner_class_types = { filters: Filters, manual_entry: ManualEntry }
|
|
1704
1774
|
end
|
|
1705
1775
|
|
|
1706
1776
|
def self.field_remappings
|
|
@@ -1868,6 +1938,36 @@ module Stripe
|
|
|
1868
1938
|
end
|
|
1869
1939
|
|
|
1870
1940
|
class Permissions < ::Stripe::StripeObject
|
|
1941
|
+
class Update < ::Stripe::StripeObject
|
|
1942
|
+
# Determines which entity is allowed to update the line items.
|
|
1943
|
+
#
|
|
1944
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
1945
|
+
#
|
|
1946
|
+
# When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
1947
|
+
attr_reader :line_items
|
|
1948
|
+
# Determines which entity is allowed to update the shipping details.
|
|
1949
|
+
#
|
|
1950
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
|
1951
|
+
#
|
|
1952
|
+
# When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
|
|
1953
|
+
attr_reader :shipping_details
|
|
1954
|
+
|
|
1955
|
+
def self.inner_class_types
|
|
1956
|
+
@inner_class_types = {}
|
|
1957
|
+
end
|
|
1958
|
+
|
|
1959
|
+
def self.field_remappings
|
|
1960
|
+
@field_remappings = {}
|
|
1961
|
+
end
|
|
1962
|
+
end
|
|
1963
|
+
# Permissions for updating the Checkout Session.
|
|
1964
|
+
attr_reader :update
|
|
1965
|
+
# Determines which entity is allowed to update the line items.
|
|
1966
|
+
#
|
|
1967
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items.
|
|
1968
|
+
#
|
|
1969
|
+
# When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API.
|
|
1970
|
+
attr_reader :update_line_items
|
|
1871
1971
|
# Determines which entity is allowed to update the shipping details.
|
|
1872
1972
|
#
|
|
1873
1973
|
# Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
|
@@ -1876,7 +1976,7 @@ module Stripe
|
|
|
1876
1976
|
attr_reader :update_shipping_details
|
|
1877
1977
|
|
|
1878
1978
|
def self.inner_class_types
|
|
1879
|
-
@inner_class_types = {}
|
|
1979
|
+
@inner_class_types = { update: Update }
|
|
1880
1980
|
end
|
|
1881
1981
|
|
|
1882
1982
|
def self.field_remappings
|