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
|
@@ -114,6 +114,8 @@ module Stripe
|
|
|
114
114
|
|
|
115
115
|
class PaymentMethodPreview < ::Stripe::StripeObject
|
|
116
116
|
class AcssDebit < ::Stripe::StripeObject
|
|
117
|
+
# Account number of the bank account.
|
|
118
|
+
attr_reader :account_number
|
|
117
119
|
# Name of the bank associated with the bank account.
|
|
118
120
|
attr_reader :bank_name
|
|
119
121
|
# Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
@@ -932,6 +934,16 @@ module Stripe
|
|
|
932
934
|
end
|
|
933
935
|
end
|
|
934
936
|
|
|
937
|
+
class Gopay < ::Stripe::StripeObject
|
|
938
|
+
def self.inner_class_types
|
|
939
|
+
@inner_class_types = {}
|
|
940
|
+
end
|
|
941
|
+
|
|
942
|
+
def self.field_remappings
|
|
943
|
+
@field_remappings = {}
|
|
944
|
+
end
|
|
945
|
+
end
|
|
946
|
+
|
|
935
947
|
class Grabpay < ::Stripe::StripeObject
|
|
936
948
|
def self.inner_class_types
|
|
937
949
|
@inner_class_types = {}
|
|
@@ -942,6 +954,25 @@ module Stripe
|
|
|
942
954
|
end
|
|
943
955
|
end
|
|
944
956
|
|
|
957
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
958
|
+
# Attribute for field bank
|
|
959
|
+
attr_reader :bank
|
|
960
|
+
# Attribute for field bank_code
|
|
961
|
+
attr_reader :bank_code
|
|
962
|
+
# Attribute for field bank_name
|
|
963
|
+
attr_reader :bank_name
|
|
964
|
+
# Attribute for field display_name
|
|
965
|
+
attr_reader :display_name
|
|
966
|
+
|
|
967
|
+
def self.inner_class_types
|
|
968
|
+
@inner_class_types = {}
|
|
969
|
+
end
|
|
970
|
+
|
|
971
|
+
def self.field_remappings
|
|
972
|
+
@field_remappings = {}
|
|
973
|
+
end
|
|
974
|
+
end
|
|
975
|
+
|
|
945
976
|
class Ideal < ::Stripe::StripeObject
|
|
946
977
|
# The customer's bank, if provided. 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`.
|
|
947
978
|
attr_reader :bank
|
|
@@ -1215,12 +1246,27 @@ module Stripe
|
|
|
1215
1246
|
class Paypal < ::Stripe::StripeObject
|
|
1216
1247
|
# 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.
|
|
1217
1248
|
attr_reader :country
|
|
1249
|
+
# Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
1250
|
+
attr_reader :fingerprint
|
|
1218
1251
|
# Owner's email. Values are provided by PayPal directly
|
|
1219
1252
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1220
1253
|
attr_reader :payer_email
|
|
1221
1254
|
# PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
1222
1255
|
attr_reader :payer_id
|
|
1256
|
+
# Owner's verified email. Values are verified or provided by PayPal directly
|
|
1257
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1258
|
+
attr_reader :verified_email
|
|
1259
|
+
|
|
1260
|
+
def self.inner_class_types
|
|
1261
|
+
@inner_class_types = {}
|
|
1262
|
+
end
|
|
1263
|
+
|
|
1264
|
+
def self.field_remappings
|
|
1265
|
+
@field_remappings = {}
|
|
1266
|
+
end
|
|
1267
|
+
end
|
|
1223
1268
|
|
|
1269
|
+
class Paypay < ::Stripe::StripeObject
|
|
1224
1270
|
def self.inner_class_types
|
|
1225
1271
|
@inner_class_types = {}
|
|
1226
1272
|
end
|
|
@@ -1267,6 +1313,45 @@ module Stripe
|
|
|
1267
1313
|
end
|
|
1268
1314
|
end
|
|
1269
1315
|
|
|
1316
|
+
class Qris < ::Stripe::StripeObject
|
|
1317
|
+
def self.inner_class_types
|
|
1318
|
+
@inner_class_types = {}
|
|
1319
|
+
end
|
|
1320
|
+
|
|
1321
|
+
def self.field_remappings
|
|
1322
|
+
@field_remappings = {}
|
|
1323
|
+
end
|
|
1324
|
+
end
|
|
1325
|
+
|
|
1326
|
+
class Rechnung < ::Stripe::StripeObject
|
|
1327
|
+
class Dob < ::Stripe::StripeObject
|
|
1328
|
+
# The day of birth, between 1 and 31.
|
|
1329
|
+
attr_reader :day
|
|
1330
|
+
# The month of birth, between 1 and 12.
|
|
1331
|
+
attr_reader :month
|
|
1332
|
+
# The four-digit year of birth.
|
|
1333
|
+
attr_reader :year
|
|
1334
|
+
|
|
1335
|
+
def self.inner_class_types
|
|
1336
|
+
@inner_class_types = {}
|
|
1337
|
+
end
|
|
1338
|
+
|
|
1339
|
+
def self.field_remappings
|
|
1340
|
+
@field_remappings = {}
|
|
1341
|
+
end
|
|
1342
|
+
end
|
|
1343
|
+
# Attribute for field dob
|
|
1344
|
+
attr_reader :dob
|
|
1345
|
+
|
|
1346
|
+
def self.inner_class_types
|
|
1347
|
+
@inner_class_types = { dob: Dob }
|
|
1348
|
+
end
|
|
1349
|
+
|
|
1350
|
+
def self.field_remappings
|
|
1351
|
+
@field_remappings = {}
|
|
1352
|
+
end
|
|
1353
|
+
end
|
|
1354
|
+
|
|
1270
1355
|
class RevolutPay < ::Stripe::StripeObject
|
|
1271
1356
|
def self.inner_class_types
|
|
1272
1357
|
@inner_class_types = {}
|
|
@@ -1334,6 +1419,16 @@ module Stripe
|
|
|
1334
1419
|
end
|
|
1335
1420
|
end
|
|
1336
1421
|
|
|
1422
|
+
class Shopeepay < ::Stripe::StripeObject
|
|
1423
|
+
def self.inner_class_types
|
|
1424
|
+
@inner_class_types = {}
|
|
1425
|
+
end
|
|
1426
|
+
|
|
1427
|
+
def self.field_remappings
|
|
1428
|
+
@field_remappings = {}
|
|
1429
|
+
end
|
|
1430
|
+
end
|
|
1431
|
+
|
|
1337
1432
|
class Sofort < ::Stripe::StripeObject
|
|
1338
1433
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
1339
1434
|
attr_reader :country
|
|
@@ -1347,6 +1442,21 @@ module Stripe
|
|
|
1347
1442
|
end
|
|
1348
1443
|
end
|
|
1349
1444
|
|
|
1445
|
+
class StripeBalance < ::Stripe::StripeObject
|
|
1446
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
1447
|
+
attr_reader :account
|
|
1448
|
+
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
|
1449
|
+
attr_reader :source_type
|
|
1450
|
+
|
|
1451
|
+
def self.inner_class_types
|
|
1452
|
+
@inner_class_types = {}
|
|
1453
|
+
end
|
|
1454
|
+
|
|
1455
|
+
def self.field_remappings
|
|
1456
|
+
@field_remappings = {}
|
|
1457
|
+
end
|
|
1458
|
+
end
|
|
1459
|
+
|
|
1350
1460
|
class Swish < ::Stripe::StripeObject
|
|
1351
1461
|
def self.inner_class_types
|
|
1352
1462
|
@inner_class_types = {}
|
|
@@ -1411,6 +1521,8 @@ module Stripe
|
|
|
1411
1521
|
end
|
|
1412
1522
|
# Account holder type: individual or company.
|
|
1413
1523
|
attr_reader :account_holder_type
|
|
1524
|
+
# Account number of the bank account.
|
|
1525
|
+
attr_reader :account_number
|
|
1414
1526
|
# Account type: checkings or savings. Defaults to checking if omitted.
|
|
1415
1527
|
attr_reader :account_type
|
|
1416
1528
|
# The name of the bank.
|
|
@@ -1504,8 +1616,12 @@ module Stripe
|
|
|
1504
1616
|
attr_reader :fpx
|
|
1505
1617
|
# Attribute for field giropay
|
|
1506
1618
|
attr_reader :giropay
|
|
1619
|
+
# Attribute for field gopay
|
|
1620
|
+
attr_reader :gopay
|
|
1507
1621
|
# Attribute for field grabpay
|
|
1508
1622
|
attr_reader :grabpay
|
|
1623
|
+
# Attribute for field id_bank_transfer
|
|
1624
|
+
attr_reader :id_bank_transfer
|
|
1509
1625
|
# Attribute for field ideal
|
|
1510
1626
|
attr_reader :ideal
|
|
1511
1627
|
# Attribute for field interac_present
|
|
@@ -1542,12 +1658,18 @@ module Stripe
|
|
|
1542
1658
|
attr_reader :paynow
|
|
1543
1659
|
# Attribute for field paypal
|
|
1544
1660
|
attr_reader :paypal
|
|
1661
|
+
# Attribute for field paypay
|
|
1662
|
+
attr_reader :paypay
|
|
1545
1663
|
# Attribute for field payto
|
|
1546
1664
|
attr_reader :payto
|
|
1547
1665
|
# Attribute for field pix
|
|
1548
1666
|
attr_reader :pix
|
|
1549
1667
|
# Attribute for field promptpay
|
|
1550
1668
|
attr_reader :promptpay
|
|
1669
|
+
# Attribute for field qris
|
|
1670
|
+
attr_reader :qris
|
|
1671
|
+
# Attribute for field rechnung
|
|
1672
|
+
attr_reader :rechnung
|
|
1551
1673
|
# Attribute for field revolut_pay
|
|
1552
1674
|
attr_reader :revolut_pay
|
|
1553
1675
|
# Attribute for field samsung_pay
|
|
@@ -1556,8 +1678,12 @@ module Stripe
|
|
|
1556
1678
|
attr_reader :satispay
|
|
1557
1679
|
# Attribute for field sepa_debit
|
|
1558
1680
|
attr_reader :sepa_debit
|
|
1681
|
+
# Attribute for field shopeepay
|
|
1682
|
+
attr_reader :shopeepay
|
|
1559
1683
|
# Attribute for field sofort
|
|
1560
1684
|
attr_reader :sofort
|
|
1685
|
+
# Attribute for field stripe_balance
|
|
1686
|
+
attr_reader :stripe_balance
|
|
1561
1687
|
# Attribute for field swish
|
|
1562
1688
|
attr_reader :swish
|
|
1563
1689
|
# Attribute for field twint
|
|
@@ -1594,7 +1720,9 @@ module Stripe
|
|
|
1594
1720
|
eps: Eps,
|
|
1595
1721
|
fpx: Fpx,
|
|
1596
1722
|
giropay: Giropay,
|
|
1723
|
+
gopay: Gopay,
|
|
1597
1724
|
grabpay: Grabpay,
|
|
1725
|
+
id_bank_transfer: IdBankTransfer,
|
|
1598
1726
|
ideal: Ideal,
|
|
1599
1727
|
interac_present: InteracPresent,
|
|
1600
1728
|
kakao_pay: KakaoPay,
|
|
@@ -1613,14 +1741,19 @@ module Stripe
|
|
|
1613
1741
|
payco: Payco,
|
|
1614
1742
|
paynow: Paynow,
|
|
1615
1743
|
paypal: Paypal,
|
|
1744
|
+
paypay: Paypay,
|
|
1616
1745
|
payto: Payto,
|
|
1617
1746
|
pix: Pix,
|
|
1618
1747
|
promptpay: Promptpay,
|
|
1748
|
+
qris: Qris,
|
|
1749
|
+
rechnung: Rechnung,
|
|
1619
1750
|
revolut_pay: RevolutPay,
|
|
1620
1751
|
samsung_pay: SamsungPay,
|
|
1621
1752
|
satispay: Satispay,
|
|
1622
1753
|
sepa_debit: SepaDebit,
|
|
1754
|
+
shopeepay: Shopeepay,
|
|
1623
1755
|
sofort: Sofort,
|
|
1756
|
+
stripe_balance: StripeBalance,
|
|
1624
1757
|
swish: Swish,
|
|
1625
1758
|
twint: Twint,
|
|
1626
1759
|
us_bank_account: UsBankAccount,
|
|
@@ -41,6 +41,23 @@ module Stripe
|
|
|
41
41
|
@field_remappings = {}
|
|
42
42
|
end
|
|
43
43
|
end
|
|
44
|
+
|
|
45
|
+
class Script < ::Stripe::StripeObject
|
|
46
|
+
# The configuration values of the script. The keys and values are specific to the script implementation.
|
|
47
|
+
attr_reader :configuration
|
|
48
|
+
# The name of the script used to calculate the discount.
|
|
49
|
+
attr_reader :display_name
|
|
50
|
+
# The script implementation ID for this coupon.
|
|
51
|
+
attr_reader :id
|
|
52
|
+
|
|
53
|
+
def self.inner_class_types
|
|
54
|
+
@inner_class_types = {}
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def self.field_remappings
|
|
58
|
+
@field_remappings = {}
|
|
59
|
+
end
|
|
60
|
+
end
|
|
44
61
|
# Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer.
|
|
45
62
|
attr_reader :amount_off
|
|
46
63
|
# Attribute for field applies_to
|
|
@@ -71,8 +88,12 @@ module Stripe
|
|
|
71
88
|
attr_reader :percent_off
|
|
72
89
|
# Date after which the coupon can no longer be redeemed.
|
|
73
90
|
attr_reader :redeem_by
|
|
91
|
+
# Configuration of the [script](https://docs.stripe.com/billing/subscriptions/script-coupons) used to calculate the discount.
|
|
92
|
+
attr_reader :script
|
|
74
93
|
# Number of times this coupon has been applied to a customer.
|
|
75
94
|
attr_reader :times_redeemed
|
|
95
|
+
# One of `amount_off`, `percent_off`, or `script`. Describes the type of coupon logic used to calculate the discount.
|
|
96
|
+
attr_reader :type
|
|
76
97
|
# Taking account of the above properties, whether this coupon can still be applied to a customer.
|
|
77
98
|
attr_reader :valid
|
|
78
99
|
# Always true for a deleted object
|
|
@@ -121,7 +142,11 @@ module Stripe
|
|
|
121
142
|
end
|
|
122
143
|
|
|
123
144
|
def self.inner_class_types
|
|
124
|
-
@inner_class_types = {
|
|
145
|
+
@inner_class_types = {
|
|
146
|
+
applies_to: AppliesTo,
|
|
147
|
+
currency_options: CurrencyOptions,
|
|
148
|
+
script: Script,
|
|
149
|
+
}
|
|
125
150
|
end
|
|
126
151
|
|
|
127
152
|
def self.field_remappings
|
|
@@ -43,6 +43,21 @@ module Stripe
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
class TaxCalculationReference < ::Stripe::StripeObject
|
|
47
|
+
# The calculation identifier for tax calculation response.
|
|
48
|
+
attr_reader :calculation_id
|
|
49
|
+
# The calculation identifier for tax calculation response line item.
|
|
50
|
+
attr_reader :calculation_item_id
|
|
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
|
+
|
|
46
61
|
class Tax < ::Stripe::StripeObject
|
|
47
62
|
class TaxRateDetails < ::Stripe::StripeObject
|
|
48
63
|
# ID of the tax rate
|
|
@@ -97,6 +112,8 @@ module Stripe
|
|
|
97
112
|
attr_reader :pretax_credit_amounts
|
|
98
113
|
# The number of units of product being credited.
|
|
99
114
|
attr_reader :quantity
|
|
115
|
+
# The tax calculation identifiers of the line item.
|
|
116
|
+
attr_reader :tax_calculation_reference
|
|
100
117
|
# The tax rates which apply to the line item.
|
|
101
118
|
attr_reader :tax_rates
|
|
102
119
|
# The tax information of the line item.
|
|
@@ -112,6 +129,7 @@ module Stripe
|
|
|
112
129
|
@inner_class_types = {
|
|
113
130
|
discount_amounts: DiscountAmount,
|
|
114
131
|
pretax_credit_amounts: PretaxCreditAmount,
|
|
132
|
+
tax_calculation_reference: TaxCalculationReference,
|
|
115
133
|
taxes: Tax,
|
|
116
134
|
}
|
|
117
135
|
end
|
|
@@ -163,6 +163,39 @@ module Stripe
|
|
|
163
163
|
@field_remappings = {}
|
|
164
164
|
end
|
|
165
165
|
end
|
|
166
|
+
|
|
167
|
+
class TaxIdElement < ::Stripe::StripeObject
|
|
168
|
+
class Features < ::Stripe::StripeObject
|
|
169
|
+
# Controls whether the Tax ID Element displays saved tax IDs for the customer. This parameter defaults to `disabled`.
|
|
170
|
+
#
|
|
171
|
+
# When enabled, the Tax ID Element will show existing tax IDs associated with the customer, allowing them to select from previously saved tax identification numbers.
|
|
172
|
+
attr_reader :tax_id_redisplay
|
|
173
|
+
# Controls whether the Tax ID Element allows merchants to save new tax IDs for their customer. This parameter defaults to `disabled`.
|
|
174
|
+
#
|
|
175
|
+
# When enabled, customers can enter and save new tax identification numbers during the payment flow, which will be stored securely and associated with their customer object for future use.
|
|
176
|
+
attr_reader :tax_id_save
|
|
177
|
+
|
|
178
|
+
def self.inner_class_types
|
|
179
|
+
@inner_class_types = {}
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
def self.field_remappings
|
|
183
|
+
@field_remappings = {}
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
# Whether the Tax ID Element is enabled.
|
|
187
|
+
attr_reader :enabled
|
|
188
|
+
# This hash defines whether the Tax ID Element supports certain features.
|
|
189
|
+
attr_reader :features
|
|
190
|
+
|
|
191
|
+
def self.inner_class_types
|
|
192
|
+
@inner_class_types = { features: Features }
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
def self.field_remappings
|
|
196
|
+
@field_remappings = {}
|
|
197
|
+
end
|
|
198
|
+
end
|
|
166
199
|
# This hash contains whether the buy button is enabled.
|
|
167
200
|
attr_reader :buy_button
|
|
168
201
|
# This hash contains whether the customer sheet is enabled and the features it supports.
|
|
@@ -173,6 +206,8 @@ module Stripe
|
|
|
173
206
|
attr_reader :payment_element
|
|
174
207
|
# This hash contains whether the pricing table is enabled.
|
|
175
208
|
attr_reader :pricing_table
|
|
209
|
+
# This hash contains whether the Tax ID Element is enabled and the features it supports.
|
|
210
|
+
attr_reader :tax_id_element
|
|
176
211
|
|
|
177
212
|
def self.inner_class_types
|
|
178
213
|
@inner_class_types = {
|
|
@@ -181,6 +216,7 @@ module Stripe
|
|
|
181
216
|
mobile_payment_element: MobilePaymentElement,
|
|
182
217
|
payment_element: PaymentElement,
|
|
183
218
|
pricing_table: PricingTable,
|
|
219
|
+
tax_id_element: TaxIdElement,
|
|
184
220
|
}
|
|
185
221
|
end
|
|
186
222
|
|
|
@@ -282,6 +282,8 @@ module Stripe
|
|
|
282
282
|
attr_reader :past_due
|
|
283
283
|
# The number of times evidence has been submitted. Typically, you may only submit evidence once.
|
|
284
284
|
attr_reader :submission_count
|
|
285
|
+
# Whether the dispute was submitted manually, with Smart Disputes, or not submitted.
|
|
286
|
+
attr_reader :submission_method
|
|
285
287
|
|
|
286
288
|
def self.inner_class_types
|
|
287
289
|
@inner_class_types = { enhanced_eligibility: EnhancedEligibility }
|
|
@@ -371,6 +373,21 @@ module Stripe
|
|
|
371
373
|
@field_remappings = {}
|
|
372
374
|
end
|
|
373
375
|
end
|
|
376
|
+
|
|
377
|
+
class SmartDisputes < ::Stripe::StripeObject
|
|
378
|
+
# Evidence that could be provided to improve the SmartDisputes packet
|
|
379
|
+
attr_reader :recommended_evidence
|
|
380
|
+
# Smart Disputes auto representment packet availability status.
|
|
381
|
+
attr_reader :status
|
|
382
|
+
|
|
383
|
+
def self.inner_class_types
|
|
384
|
+
@inner_class_types = {}
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
def self.field_remappings
|
|
388
|
+
@field_remappings = {}
|
|
389
|
+
end
|
|
390
|
+
end
|
|
374
391
|
# Disputed amount. Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed).
|
|
375
392
|
attr_reader :amount
|
|
376
393
|
# List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
|
|
@@ -389,6 +406,8 @@ module Stripe
|
|
|
389
406
|
attr_reader :evidence_details
|
|
390
407
|
# Unique identifier for the object.
|
|
391
408
|
attr_reader :id
|
|
409
|
+
# Intended submission method for the dispute.
|
|
410
|
+
attr_reader :intended_submission_method
|
|
392
411
|
# If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute.
|
|
393
412
|
attr_reader :is_charge_refundable
|
|
394
413
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
@@ -405,6 +424,8 @@ module Stripe
|
|
|
405
424
|
attr_reader :payment_method_details
|
|
406
425
|
# Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://docs.stripe.com/disputes/categories).
|
|
407
426
|
attr_reader :reason
|
|
427
|
+
# Attribute for field smart_disputes
|
|
428
|
+
attr_reader :smart_disputes
|
|
408
429
|
# The current status of a dispute. Possible values include:`warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `won`, `lost`, or `prevented`.
|
|
409
430
|
attr_reader :status
|
|
410
431
|
|
|
@@ -454,6 +475,7 @@ module Stripe
|
|
|
454
475
|
evidence: Evidence,
|
|
455
476
|
evidence_details: EvidenceDetails,
|
|
456
477
|
payment_method_details: PaymentMethodDetails,
|
|
478
|
+
smart_disputes: SmartDisputes,
|
|
457
479
|
}
|
|
458
480
|
end
|
|
459
481
|
|
|
@@ -43,6 +43,67 @@ module Stripe
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
class Reason < ::Stripe::StripeObject
|
|
47
|
+
class AutomationAction < ::Stripe::StripeObject
|
|
48
|
+
class StripeSendWebhookCustomEvent < ::Stripe::StripeObject
|
|
49
|
+
# Set of key-value pairs attached to the action when creating an Automation.
|
|
50
|
+
attr_reader :custom_data
|
|
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
|
+
# Attribute for field stripe_send_webhook_custom_event
|
|
61
|
+
attr_reader :stripe_send_webhook_custom_event
|
|
62
|
+
# The trigger name of the automation that triggered this action.
|
|
63
|
+
# Please visit [Revenue and retention automations](https://docs.stripe.com/billing/automations#choose-a-trigger) for all possible trigger names.
|
|
64
|
+
attr_reader :trigger
|
|
65
|
+
# The type of the `automation_action`.
|
|
66
|
+
attr_reader :type
|
|
67
|
+
|
|
68
|
+
def self.inner_class_types
|
|
69
|
+
@inner_class_types = { stripe_send_webhook_custom_event: StripeSendWebhookCustomEvent }
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def self.field_remappings
|
|
73
|
+
@field_remappings = {}
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
class Request < ::Stripe::StripeObject
|
|
78
|
+
# ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API.
|
|
79
|
+
attr_reader :id
|
|
80
|
+
# The idempotency key transmitted during the request, if any. *Note: This property is populated only for events on or after May 23, 2017*.
|
|
81
|
+
attr_reader :idempotency_key
|
|
82
|
+
|
|
83
|
+
def self.inner_class_types
|
|
84
|
+
@inner_class_types = {}
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def self.field_remappings
|
|
88
|
+
@field_remappings = {}
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
# Attribute for field automation_action
|
|
92
|
+
attr_reader :automation_action
|
|
93
|
+
# Attribute for field request
|
|
94
|
+
attr_reader :request
|
|
95
|
+
# The type of the reason for the event.
|
|
96
|
+
attr_reader :type
|
|
97
|
+
|
|
98
|
+
def self.inner_class_types
|
|
99
|
+
@inner_class_types = { automation_action: AutomationAction, request: Request }
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
def self.field_remappings
|
|
103
|
+
@field_remappings = {}
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
46
107
|
class Request < ::Stripe::StripeObject
|
|
47
108
|
# ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API.
|
|
48
109
|
attr_reader :id
|
|
@@ -75,6 +136,8 @@ module Stripe
|
|
|
75
136
|
attr_reader :object
|
|
76
137
|
# Number of webhooks that haven't been successfully delivered (for example, to return a 20x response) to the URLs you specify.
|
|
77
138
|
attr_reader :pending_webhooks
|
|
139
|
+
# Information about the action that causes the event. Only present when the event is triggered by an API request or an [Automation](https://docs.stripe.com/billing/automations) action.
|
|
140
|
+
attr_reader :reason
|
|
78
141
|
# Information on the API request that triggers the event.
|
|
79
142
|
attr_reader :request
|
|
80
143
|
# Description of the event (for example, `invoice.created` or `charge.refunded`).
|
|
@@ -86,7 +149,7 @@ module Stripe
|
|
|
86
149
|
end
|
|
87
150
|
|
|
88
151
|
def self.inner_class_types
|
|
89
|
-
@inner_class_types = { data: Data, request: Request }
|
|
152
|
+
@inner_class_types = { data: Data, reason: Reason, request: Request }
|
|
90
153
|
end
|
|
91
154
|
|
|
92
155
|
def self.field_remappings
|
|
@@ -6,12 +6,15 @@ module Stripe
|
|
|
6
6
|
# A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access.
|
|
7
7
|
class Account < APIResource
|
|
8
8
|
extend Stripe::APIOperations::List
|
|
9
|
+
extend Stripe::APIOperations::NestedResource
|
|
9
10
|
|
|
10
11
|
OBJECT_NAME = "financial_connections.account"
|
|
11
12
|
def self.object_name
|
|
12
13
|
"financial_connections.account"
|
|
13
14
|
end
|
|
14
15
|
|
|
16
|
+
nested_resource_class_methods :inferred_balance, operations: %i[list]
|
|
17
|
+
|
|
15
18
|
class AccountHolder < ::Stripe::StripeObject
|
|
16
19
|
# The ID of the Stripe account that this account belongs to. Only available when `account_holder.type` is `account`.
|
|
17
20
|
attr_reader :account
|
|
@@ -125,6 +128,23 @@ module Stripe
|
|
|
125
128
|
end
|
|
126
129
|
end
|
|
127
130
|
|
|
131
|
+
class InferredBalancesRefresh < ::Stripe::StripeObject
|
|
132
|
+
# The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch.
|
|
133
|
+
attr_reader :last_attempted_at
|
|
134
|
+
# Time at which the next inferred balance refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch.
|
|
135
|
+
attr_reader :next_refresh_available_at
|
|
136
|
+
# The status of the last refresh attempt.
|
|
137
|
+
attr_reader :status
|
|
138
|
+
|
|
139
|
+
def self.inner_class_types
|
|
140
|
+
@inner_class_types = {}
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
def self.field_remappings
|
|
144
|
+
@field_remappings = {}
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
128
148
|
class OwnershipRefresh < ::Stripe::StripeObject
|
|
129
149
|
# The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch.
|
|
130
150
|
attr_reader :last_attempted_at
|
|
@@ -176,6 +196,10 @@ module Stripe
|
|
|
176
196
|
attr_reader :display_name
|
|
177
197
|
# Unique identifier for the object.
|
|
178
198
|
attr_reader :id
|
|
199
|
+
# The state of the most recent attempt to refresh the account's inferred balance history.
|
|
200
|
+
attr_reader :inferred_balances_refresh
|
|
201
|
+
# The ID of the Financial Connections Institution this account belongs to. Note that this relationship may sometimes change in rare circumstances (e.g. institution mergers).
|
|
202
|
+
attr_reader :institution
|
|
179
203
|
# The name of the institution that holds this account.
|
|
180
204
|
attr_reader :institution_name
|
|
181
205
|
# The last 4 digits of the account number. If present, this will be 4 numeric characters.
|
|
@@ -330,6 +354,7 @@ module Stripe
|
|
|
330
354
|
account_numbers: AccountNumber,
|
|
331
355
|
balance: Balance,
|
|
332
356
|
balance_refresh: BalanceRefresh,
|
|
357
|
+
inferred_balances_refresh: InferredBalancesRefresh,
|
|
333
358
|
ownership_refresh: OwnershipRefresh,
|
|
334
359
|
transaction_refresh: TransactionRefresh,
|
|
335
360
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module FinancialConnections
|
|
6
|
+
# A historical balance for the account on a particular day. It may be sourced from a balance snapshot provided by a financial institution, or inferred using transactions data.
|
|
7
|
+
class AccountInferredBalance < APIResource
|
|
8
|
+
OBJECT_NAME = "financial_connections.account_inferred_balance"
|
|
9
|
+
def self.object_name
|
|
10
|
+
"financial_connections.account_inferred_balance"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# The time for which this balance was calculated, measured in seconds since the Unix epoch. If the balance was computed by Stripe and not provided directly by a financial institution, it will always be 23:59:59 UTC.
|
|
14
|
+
attr_reader :as_of
|
|
15
|
+
# The balances owed to (or by) the account holder, before subtracting any outbound pending transactions or adding any inbound pending transactions.
|
|
16
|
+
#
|
|
17
|
+
# Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
|
18
|
+
#
|
|
19
|
+
# Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder.
|
|
20
|
+
attr_reader :current
|
|
21
|
+
# Unique identifier for the object.
|
|
22
|
+
attr_reader :id
|
|
23
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
24
|
+
attr_reader :object
|
|
25
|
+
|
|
26
|
+
def self.inner_class_types
|
|
27
|
+
@inner_class_types = {}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def self.field_remappings
|
|
31
|
+
@field_remappings = {}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|