stripe 20.1.0 → 20.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 +4 -0
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +6 -0
- data/lib/stripe/event_types.rb +193 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_approved_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +44 -0
- data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_data_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_report_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_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_under_review_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_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_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
- data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +44 -0
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_event.rb +44 -0
- data/lib/stripe/object_types.rb +53 -0
- data/lib/stripe/params/account_create_params.rb +299 -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 +191 -0
- data/lib/stripe/params/account_update_params.rb +261 -0
- data/lib/stripe/params/balance_settings_update_params.rb +9 -1
- 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 +1646 -0
- data/lib/stripe/params/charge_update_params.rb +1646 -0
- data/lib/stripe/params/checkout/session_create_params.rb +87 -3
- data/lib/stripe/params/checkout/session_update_params.rb +161 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +92 -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/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/authorization_retrieve_params.rb +15 -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 +38 -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 +64 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +772 -9
- data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
- 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 +64 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/cardholder_update_params.rb +4 -0
- 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_create_params.rb +2083 -0
- data/lib/stripe/params/order_list_params.rb +25 -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 +2087 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3038 -85
- data/lib/stripe/params/payment_intent_create_params.rb +3050 -97
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3039 -55
- 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 +88 -0
- data/lib/stripe/params/payment_plan_create_params.rb +128 -0
- data/lib/stripe/params/payment_plan_list_params.rb +25 -0
- data/lib/stripe/params/payment_plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_plan_update_params.rb +105 -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 +809 -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 +817 -4
- data/lib/stripe/params/radar/billing_evaluation_create_params.rb +231 -0
- 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_list_params.rb +37 -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 +122 -3
- data/lib/stripe/params/setup_intent_create_params.rb +122 -3
- data/lib/stripe/params/setup_intent_update_params.rb +122 -3
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +71 -0
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_create_params.rb +133 -6
- data/lib/stripe/params/subscription_item_create_params.rb +50 -3
- data/lib/stripe/params/subscription_item_update_params.rb +33 -2
- data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
- data/lib/stripe/params/subscription_update_params.rb +116 -5
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +13 -1
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +92 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -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_payment_create_params.rb +19 -0
- 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 +257 -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 +263 -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 +392 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +29 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +376 -4
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +47 -0
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +17 -0
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +53 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +21 -0
- data/lib/stripe/params/v2/data/query_run_create_params.rb +50 -0
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_list_params.rb +23 -0
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/data/report_run_create_params.rb +48 -0
- data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +23 -0
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/data/schema_list_params.rb +26 -0
- data/lib/stripe/params/v2/data/schema_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +30 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +35 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +21 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +113 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +40 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +22 -1
- 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 +112 -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_disable_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/test_helpers/financial_address_generate_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +200 -0
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +192 -0
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
- data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +364 -0
- data/lib/stripe/resources/account.rb +176 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/balance_settings.rb +4 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +4 -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 +144 -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 +18 -1
- data/lib/stripe/resources/charge.rb +227 -1
- data/lib/stripe/resources/checkout/session.rb +91 -3
- data/lib/stripe/resources/confirmation_token.rb +131 -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.rb +16 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/dispute.rb +18 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +45 -1
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +24 -1
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +92 -0
- data/lib/stripe/resources/fx_quote.rb +149 -0
- data/lib/stripe/resources/invoice.rb +106 -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/authorization.rb +16 -0
- data/lib/stripe/resources/issuing/card.rb +16 -0
- data/lib/stripe/resources/issuing/cardholder.rb +16 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute.rb +16 -1
- 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 +18 -0
- data/lib/stripe/resources/line_item.rb +42 -0
- data/lib/stripe/resources/mandate.rb +12 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +927 -0
- data/lib/stripe/resources/payment_attempt_record.rb +177 -1
- data/lib/stripe/resources/payment_intent.rb +1588 -10
- data/lib/stripe/resources/payment_method.rb +151 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_plan.rb +213 -0
- data/lib/stripe/resources/payment_record.rb +177 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +189 -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 +525 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1241 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +968 -0
- data/lib/stripe/resources/radar/billing_evaluation.rb +281 -0
- data/lib/stripe/resources/radar/value_list_item.rb +15 -1
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +7 -0
- data/lib/stripe/resources/reserve/plan.rb +7 -0
- data/lib/stripe/resources/reserve/release.rb +12 -0
- data/lib/stripe/resources/setup_attempt.rb +35 -0
- data/lib/stripe/resources/setup_intent.rb +38 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +681 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +310 -0
- data/lib/stripe/resources/source.rb +54 -0
- data/lib/stripe/resources/subscription.rb +73 -0
- data/lib/stripe/resources/subscription_item.rb +22 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/registration.rb +16 -1
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/token.rb +15 -1
- 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_payment.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 +91 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +710 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
- data/lib/stripe/resources/v2/billing/profile.rb +47 -0
- data/lib/stripe/resources/v2/core/account.rb +802 -2
- data/lib/stripe/resources/v2/core/approval_request.rb +395 -0
- data/lib/stripe/resources/v2/core/batch_job.rb +536 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +91 -1
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +26 -1
- data/lib/stripe/resources/v2/data/query_run.rb +255 -0
- data/lib/stripe/resources/v2/data/report.rb +104 -0
- data/lib/stripe/resources/v2/data/report_run.rb +246 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
- data/lib/stripe/resources/v2/data/schema.rb +121 -0
- data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
- data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +368 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +4 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +50 -1
- data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +33 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +63 -1
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +255 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +31 -1
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +260 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +50 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +137 -0
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +2 -0
- data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
- data/lib/stripe/resources/v2/signals/account_activity.rb +252 -0
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +249 -0
- data/lib/stripe/resources/v2/signals/account_signal.rb +184 -0
- data/lib/stripe/resources.rb +341 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_service.rb +15 -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/coupon_service.rb +14 -0
- data/lib/stripe/services/customer_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/authorization_service.rb +19 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +3 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/invoice_service.rb +11 -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_service.rb +53 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/payment_plan_service.rb +50 -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/promotion_code_service.rb +29 -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/radar/billing_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +30 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
- data/lib/stripe/services/shared_payment_service.rb +14 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +45 -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/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +11 -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 +69 -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/approval_request_service.rb +58 -0
- data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/data/query_run_service.rb +34 -0
- data/lib/stripe/services/v2/data/report_run_service.rb +36 -0
- data/lib/stripe/services/v2/data/report_service.rb +34 -0
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
- data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
- data/lib/stripe/services/v2/data/schema_service.rb +32 -0
- data/lib/stripe/services/v2/data_service.rb +19 -0
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
- data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
- data/lib/stripe/services/v2/extend_service.rb +16 -0
- data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +27 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +35 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +61 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +13 -0
- data/lib/stripe/services/v2/money_management_service.rb +5 -1
- data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
- data/lib/stripe/services/v2/network_service.rb +15 -0
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
- data/lib/stripe/services/v2/signals/account_activity_service.rb +43 -0
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +32 -0
- data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
- data/lib/stripe/services/v2/signals_service.rb +17 -0
- data/lib/stripe/services/v2_services.rb +7 -1
- data/lib/stripe/services.rb +181 -0
- data/lib/stripe/stripe_client.rb +4 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +216 -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 +53 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +2 -0
- data/rbi/stripe.rbi +133319 -66595
- metadata +331 -3
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
# A Payment Plan splits a single invoice obligation into multiple installments,
|
|
6
|
+
# each with its own due date and amount. Payment Plans are associated with a
|
|
7
|
+
# finalized or draft invoice and track how much has been collected against
|
|
8
|
+
# each installment.
|
|
9
|
+
class PaymentPlan < APIResource
|
|
10
|
+
extend Stripe::APIOperations::Create
|
|
11
|
+
extend Stripe::APIOperations::List
|
|
12
|
+
include Stripe::APIOperations::Save
|
|
13
|
+
|
|
14
|
+
OBJECT_NAME = "payment_plan"
|
|
15
|
+
def self.object_name
|
|
16
|
+
"payment_plan"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
class CollectsOn < ::Stripe::StripeObject
|
|
20
|
+
class InvoiceDetails < ::Stripe::StripeObject
|
|
21
|
+
# The ID of the invoice this plan collects against.
|
|
22
|
+
attr_reader :invoice
|
|
23
|
+
|
|
24
|
+
def self.inner_class_types
|
|
25
|
+
@inner_class_types = {}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def self.field_remappings
|
|
29
|
+
@field_remappings = {}
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
# Attribute for field invoice_details
|
|
33
|
+
attr_reader :invoice_details
|
|
34
|
+
# The type of object this plan collects against. This is always `invoice_details`.
|
|
35
|
+
attr_reader :type
|
|
36
|
+
|
|
37
|
+
def self.inner_class_types
|
|
38
|
+
@inner_class_types = { invoice_details: InvoiceDetails }
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def self.field_remappings
|
|
42
|
+
@field_remappings = {}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
class Installment < ::Stripe::StripeObject
|
|
47
|
+
# Amount owed for this installment, in the smallest currency unit.
|
|
48
|
+
attr_reader :amount_due
|
|
49
|
+
# Amount forgiven for this installment, in the smallest currency unit.
|
|
50
|
+
attr_reader :amount_forgiven
|
|
51
|
+
# Amount already paid toward this installment, in the smallest currency unit.
|
|
52
|
+
attr_reader :amount_paid
|
|
53
|
+
# Three-letter ISO currency code.
|
|
54
|
+
attr_reader :currency
|
|
55
|
+
# A description of this installment.
|
|
56
|
+
attr_reader :description
|
|
57
|
+
# Unix timestamp when this installment is due. Omitted for installments with no due date.
|
|
58
|
+
attr_reader :due_date
|
|
59
|
+
# Unique identifier for the installment.
|
|
60
|
+
attr_reader :id
|
|
61
|
+
# Unix timestamp when this installment was paid.
|
|
62
|
+
attr_reader :paid_at
|
|
63
|
+
# The status of this installment. One of `open`, `paid`, `past_due`, or `canceled`.
|
|
64
|
+
attr_reader :status
|
|
65
|
+
|
|
66
|
+
def self.inner_class_types
|
|
67
|
+
@inner_class_types = {}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
def self.field_remappings
|
|
71
|
+
@field_remappings = {}
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
class Schedule < ::Stripe::StripeObject
|
|
76
|
+
class AmountsDue < ::Stripe::StripeObject
|
|
77
|
+
class Amount < ::Stripe::StripeObject
|
|
78
|
+
class DueDate < ::Stripe::StripeObject
|
|
79
|
+
class Relative < ::Stripe::StripeObject
|
|
80
|
+
# The number of intervals after the invoice is finalized that this entry is due.
|
|
81
|
+
attr_reader :count
|
|
82
|
+
# The interval unit: `day`, `week`, `month`, or `year`.
|
|
83
|
+
attr_reader :interval
|
|
84
|
+
|
|
85
|
+
def self.inner_class_types
|
|
86
|
+
@inner_class_types = {}
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def self.field_remappings
|
|
90
|
+
@field_remappings = {}
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
# Unix timestamp of the due date. Present when type is `absolute`.
|
|
94
|
+
attr_reader :absolute
|
|
95
|
+
# Attribute for field relative
|
|
96
|
+
attr_reader :relative
|
|
97
|
+
# The type of due date. Either `absolute` or `relative`.
|
|
98
|
+
attr_reader :type
|
|
99
|
+
|
|
100
|
+
def self.inner_class_types
|
|
101
|
+
@inner_class_types = { relative: Relative }
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
def self.field_remappings
|
|
105
|
+
@field_remappings = {}
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class FixedAmount < ::Stripe::StripeObject
|
|
110
|
+
# Fixed amount for this entry, in the smallest currency unit.
|
|
111
|
+
attr_reader :amount
|
|
112
|
+
# Three-letter ISO currency code.
|
|
113
|
+
attr_reader :currency
|
|
114
|
+
|
|
115
|
+
def self.inner_class_types
|
|
116
|
+
@inner_class_types = {}
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
def self.field_remappings
|
|
120
|
+
@field_remappings = {}
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
# A description of this schedule entry.
|
|
124
|
+
attr_reader :description
|
|
125
|
+
# Attribute for field due_date
|
|
126
|
+
attr_reader :due_date
|
|
127
|
+
# Attribute for field fixed_amount
|
|
128
|
+
attr_reader :fixed_amount
|
|
129
|
+
# Unique identifier for this schedule entry.
|
|
130
|
+
attr_reader :id
|
|
131
|
+
# Percentage of the invoice total for this entry (0–100). Present when type is `percentage`.
|
|
132
|
+
attr_reader :percentage
|
|
133
|
+
# The type of this schedule entry. Either `fixed_amount` or `percentage`.
|
|
134
|
+
attr_reader :type
|
|
135
|
+
|
|
136
|
+
def self.inner_class_types
|
|
137
|
+
@inner_class_types = { due_date: DueDate, fixed_amount: FixedAmount }
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
def self.field_remappings
|
|
141
|
+
@field_remappings = {}
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
# The list of installment schedule entries.
|
|
145
|
+
attr_reader :amounts
|
|
146
|
+
|
|
147
|
+
def self.inner_class_types
|
|
148
|
+
@inner_class_types = { amounts: Amount }
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
def self.field_remappings
|
|
152
|
+
@field_remappings = {}
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
# Attribute for field amounts_due
|
|
156
|
+
attr_reader :amounts_due
|
|
157
|
+
# The type of schedule. This is always `amounts_due`.
|
|
158
|
+
attr_reader :type
|
|
159
|
+
|
|
160
|
+
def self.inner_class_types
|
|
161
|
+
@inner_class_types = { amounts_due: AmountsDue }
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
def self.field_remappings
|
|
165
|
+
@field_remappings = {}
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
# The list of objects this payment plan collects against.
|
|
169
|
+
attr_reader :collects_on
|
|
170
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
171
|
+
attr_reader :created
|
|
172
|
+
# Unique identifier for the object.
|
|
173
|
+
attr_reader :id
|
|
174
|
+
# The list of installments derived from the schedule. Each installment tracks an individual payment obligation.
|
|
175
|
+
attr_reader :installments
|
|
176
|
+
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
177
|
+
attr_reader :livemode
|
|
178
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
179
|
+
attr_reader :metadata
|
|
180
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
181
|
+
attr_reader :object
|
|
182
|
+
# Attribute for field schedule
|
|
183
|
+
attr_reader :schedule
|
|
184
|
+
|
|
185
|
+
# Creates a payment plan that splits a single invoice obligation into installments with their own due dates and amounts.
|
|
186
|
+
def self.create(params = {}, opts = {})
|
|
187
|
+
request_stripe_object(method: :post, path: "/v1/payment_plans", params: params, opts: opts)
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns a list of payment plans.
|
|
191
|
+
def self.list(params = {}, opts = {})
|
|
192
|
+
request_stripe_object(method: :get, path: "/v1/payment_plans", params: params, opts: opts)
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Updates the schedule or metadata of an existing payment plan. Only unpaid installments can be updated.
|
|
196
|
+
def self.update(id, params = {}, opts = {})
|
|
197
|
+
request_stripe_object(
|
|
198
|
+
method: :post,
|
|
199
|
+
path: format("/v1/payment_plans/%<id>s", { id: CGI.escape(id) }),
|
|
200
|
+
params: params,
|
|
201
|
+
opts: opts
|
|
202
|
+
)
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
def self.inner_class_types
|
|
206
|
+
@inner_class_types = { collects_on: CollectsOn, installments: Installment, schedule: Schedule }
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
def self.field_remappings
|
|
210
|
+
@field_remappings = {}
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
end
|
|
@@ -287,6 +287,8 @@ module Stripe
|
|
|
287
287
|
class Card < ::Stripe::StripeObject
|
|
288
288
|
# Card brand. Can be `American Express`, `Cartes Bancaires`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
|
289
289
|
attr_reader :brand
|
|
290
|
+
# 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.)
|
|
291
|
+
attr_reader :brand_product
|
|
290
292
|
# 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.
|
|
291
293
|
attr_reader :country
|
|
292
294
|
# Two-digit number representing the card's expiration month.
|
|
@@ -933,6 +935,16 @@ module Stripe
|
|
|
933
935
|
end
|
|
934
936
|
end
|
|
935
937
|
|
|
938
|
+
class Gopay < ::Stripe::StripeObject
|
|
939
|
+
def self.inner_class_types
|
|
940
|
+
@inner_class_types = {}
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
def self.field_remappings
|
|
944
|
+
@field_remappings = {}
|
|
945
|
+
end
|
|
946
|
+
end
|
|
947
|
+
|
|
936
948
|
class Grabpay < ::Stripe::StripeObject
|
|
937
949
|
# Unique transaction id generated by GrabPay
|
|
938
950
|
attr_reader :transaction_id
|
|
@@ -946,6 +958,27 @@ module Stripe
|
|
|
946
958
|
end
|
|
947
959
|
end
|
|
948
960
|
|
|
961
|
+
class IdBankTransfer < ::Stripe::StripeObject
|
|
962
|
+
# Account number of the bank account to transfer funds to.
|
|
963
|
+
attr_reader :account_number
|
|
964
|
+
# Bank where the account is located.
|
|
965
|
+
attr_reader :bank
|
|
966
|
+
# Local bank code of the bank.
|
|
967
|
+
attr_reader :bank_code
|
|
968
|
+
# Name of the bank associated with the bank account.
|
|
969
|
+
attr_reader :bank_name
|
|
970
|
+
# Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
|
|
971
|
+
attr_reader :display_name
|
|
972
|
+
|
|
973
|
+
def self.inner_class_types
|
|
974
|
+
@inner_class_types = {}
|
|
975
|
+
end
|
|
976
|
+
|
|
977
|
+
def self.field_remappings
|
|
978
|
+
@field_remappings = {}
|
|
979
|
+
end
|
|
980
|
+
end
|
|
981
|
+
|
|
949
982
|
class Ideal < ::Stripe::StripeObject
|
|
950
983
|
# The customer's bank. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|
|
951
984
|
attr_reader :bank
|
|
@@ -1371,6 +1404,52 @@ module Stripe
|
|
|
1371
1404
|
@field_remappings = {}
|
|
1372
1405
|
end
|
|
1373
1406
|
end
|
|
1407
|
+
|
|
1408
|
+
class Shipping < ::Stripe::StripeObject
|
|
1409
|
+
# City, district, suburb, town, or village.
|
|
1410
|
+
attr_reader :city
|
|
1411
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1412
|
+
attr_reader :country
|
|
1413
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1414
|
+
attr_reader :line1
|
|
1415
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1416
|
+
attr_reader :line2
|
|
1417
|
+
# ZIP or postal code.
|
|
1418
|
+
attr_reader :postal_code
|
|
1419
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1420
|
+
attr_reader :state
|
|
1421
|
+
|
|
1422
|
+
def self.inner_class_types
|
|
1423
|
+
@inner_class_types = {}
|
|
1424
|
+
end
|
|
1425
|
+
|
|
1426
|
+
def self.field_remappings
|
|
1427
|
+
@field_remappings = {}
|
|
1428
|
+
end
|
|
1429
|
+
end
|
|
1430
|
+
|
|
1431
|
+
class VerifiedAddress < ::Stripe::StripeObject
|
|
1432
|
+
# City, district, suburb, town, or village.
|
|
1433
|
+
attr_reader :city
|
|
1434
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1435
|
+
attr_reader :country
|
|
1436
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
1437
|
+
attr_reader :line1
|
|
1438
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
1439
|
+
attr_reader :line2
|
|
1440
|
+
# ZIP or postal code.
|
|
1441
|
+
attr_reader :postal_code
|
|
1442
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1443
|
+
attr_reader :state
|
|
1444
|
+
|
|
1445
|
+
def self.inner_class_types
|
|
1446
|
+
@inner_class_types = {}
|
|
1447
|
+
end
|
|
1448
|
+
|
|
1449
|
+
def self.field_remappings
|
|
1450
|
+
@field_remappings = {}
|
|
1451
|
+
end
|
|
1452
|
+
end
|
|
1374
1453
|
# 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.
|
|
1375
1454
|
attr_reader :country
|
|
1376
1455
|
# Owner's email. Values are provided by PayPal directly
|
|
@@ -1383,11 +1462,29 @@ module Stripe
|
|
|
1383
1462
|
attr_reader :payer_name
|
|
1384
1463
|
# The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
|
|
1385
1464
|
attr_reader :seller_protection
|
|
1465
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1466
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1467
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
1468
|
+
attr_reader :shipping
|
|
1386
1469
|
# A unique ID generated by PayPal for this transaction.
|
|
1387
1470
|
attr_reader :transaction_id
|
|
1471
|
+
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
|
1472
|
+
# execution. This shipping address will not be updated if the merchant updates the shipping
|
|
1473
|
+
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
|
1474
|
+
attr_reader :verified_address
|
|
1475
|
+
# Owner's verified email. Values are verified or provided by PayPal directly
|
|
1476
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1477
|
+
attr_reader :verified_email
|
|
1478
|
+
# Owner's verified full name. Values are verified or provided by PayPal directly
|
|
1479
|
+
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1480
|
+
attr_reader :verified_name
|
|
1388
1481
|
|
|
1389
1482
|
def self.inner_class_types
|
|
1390
|
-
@inner_class_types = {
|
|
1483
|
+
@inner_class_types = {
|
|
1484
|
+
seller_protection: SellerProtection,
|
|
1485
|
+
shipping: Shipping,
|
|
1486
|
+
verified_address: VerifiedAddress,
|
|
1487
|
+
}
|
|
1391
1488
|
end
|
|
1392
1489
|
|
|
1393
1490
|
def self.field_remappings
|
|
@@ -1452,11 +1549,36 @@ module Stripe
|
|
|
1452
1549
|
end
|
|
1453
1550
|
end
|
|
1454
1551
|
|
|
1552
|
+
class Qris < ::Stripe::StripeObject
|
|
1553
|
+
def self.inner_class_types
|
|
1554
|
+
@inner_class_types = {}
|
|
1555
|
+
end
|
|
1556
|
+
|
|
1557
|
+
def self.field_remappings
|
|
1558
|
+
@field_remappings = {}
|
|
1559
|
+
end
|
|
1560
|
+
end
|
|
1561
|
+
|
|
1562
|
+
class Rechnung < ::Stripe::StripeObject
|
|
1563
|
+
# Payment portal URL.
|
|
1564
|
+
attr_reader :payment_portal_url
|
|
1565
|
+
|
|
1566
|
+
def self.inner_class_types
|
|
1567
|
+
@inner_class_types = {}
|
|
1568
|
+
end
|
|
1569
|
+
|
|
1570
|
+
def self.field_remappings
|
|
1571
|
+
@field_remappings = {}
|
|
1572
|
+
end
|
|
1573
|
+
end
|
|
1574
|
+
|
|
1455
1575
|
class RevolutPay < ::Stripe::StripeObject
|
|
1456
1576
|
class Funding < ::Stripe::StripeObject
|
|
1457
1577
|
class Card < ::Stripe::StripeObject
|
|
1458
1578
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
1459
1579
|
attr_reader :brand
|
|
1580
|
+
# 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.)
|
|
1581
|
+
attr_reader :brand_product
|
|
1460
1582
|
# 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.
|
|
1461
1583
|
attr_reader :country
|
|
1462
1584
|
# Two-digit number representing the card's expiration month.
|
|
@@ -1599,6 +1721,16 @@ module Stripe
|
|
|
1599
1721
|
end
|
|
1600
1722
|
end
|
|
1601
1723
|
|
|
1724
|
+
class Shopeepay < ::Stripe::StripeObject
|
|
1725
|
+
def self.inner_class_types
|
|
1726
|
+
@inner_class_types = {}
|
|
1727
|
+
end
|
|
1728
|
+
|
|
1729
|
+
def self.field_remappings
|
|
1730
|
+
@field_remappings = {}
|
|
1731
|
+
end
|
|
1732
|
+
end
|
|
1733
|
+
|
|
1602
1734
|
class Sofort < ::Stripe::StripeObject
|
|
1603
1735
|
# Bank code of bank associated with the bank account.
|
|
1604
1736
|
attr_reader :bank_code
|
|
@@ -1638,6 +1770,19 @@ module Stripe
|
|
|
1638
1770
|
end
|
|
1639
1771
|
end
|
|
1640
1772
|
|
|
1773
|
+
class StripeBalance < ::Stripe::StripeObject
|
|
1774
|
+
# The connected account ID whose Stripe balance to use as the source of payment
|
|
1775
|
+
attr_reader :account
|
|
1776
|
+
|
|
1777
|
+
def self.inner_class_types
|
|
1778
|
+
@inner_class_types = {}
|
|
1779
|
+
end
|
|
1780
|
+
|
|
1781
|
+
def self.field_remappings
|
|
1782
|
+
@field_remappings = {}
|
|
1783
|
+
end
|
|
1784
|
+
end
|
|
1785
|
+
|
|
1641
1786
|
class Sunbit < ::Stripe::StripeObject
|
|
1642
1787
|
# The Sunbit transaction ID associated with this payment.
|
|
1643
1788
|
attr_reader :transaction_id
|
|
@@ -1752,6 +1897,16 @@ module Stripe
|
|
|
1752
1897
|
end
|
|
1753
1898
|
end
|
|
1754
1899
|
|
|
1900
|
+
class Wero < ::Stripe::StripeObject
|
|
1901
|
+
def self.inner_class_types
|
|
1902
|
+
@inner_class_types = {}
|
|
1903
|
+
end
|
|
1904
|
+
|
|
1905
|
+
def self.field_remappings
|
|
1906
|
+
@field_remappings = {}
|
|
1907
|
+
end
|
|
1908
|
+
end
|
|
1909
|
+
|
|
1755
1910
|
class Zip < ::Stripe::StripeObject
|
|
1756
1911
|
def self.inner_class_types
|
|
1757
1912
|
@inner_class_types = {}
|
|
@@ -1813,8 +1968,12 @@ module Stripe
|
|
|
1813
1968
|
attr_reader :fpx
|
|
1814
1969
|
# Attribute for field giropay
|
|
1815
1970
|
attr_reader :giropay
|
|
1971
|
+
# Attribute for field gopay
|
|
1972
|
+
attr_reader :gopay
|
|
1816
1973
|
# Attribute for field grabpay
|
|
1817
1974
|
attr_reader :grabpay
|
|
1975
|
+
# Attribute for field id_bank_transfer
|
|
1976
|
+
attr_reader :id_bank_transfer
|
|
1818
1977
|
# Attribute for field ideal
|
|
1819
1978
|
attr_reader :ideal
|
|
1820
1979
|
# Attribute for field interac_present
|
|
@@ -1863,6 +2022,10 @@ module Stripe
|
|
|
1863
2022
|
attr_reader :pix
|
|
1864
2023
|
# Attribute for field promptpay
|
|
1865
2024
|
attr_reader :promptpay
|
|
2025
|
+
# Attribute for field qris
|
|
2026
|
+
attr_reader :qris
|
|
2027
|
+
# Attribute for field rechnung
|
|
2028
|
+
attr_reader :rechnung
|
|
1866
2029
|
# Attribute for field revolut_pay
|
|
1867
2030
|
attr_reader :revolut_pay
|
|
1868
2031
|
# Attribute for field samsung_pay
|
|
@@ -1877,10 +2040,14 @@ module Stripe
|
|
|
1877
2040
|
attr_reader :sepa_debit
|
|
1878
2041
|
# Attribute for field sequra
|
|
1879
2042
|
attr_reader :sequra
|
|
2043
|
+
# Attribute for field shopeepay
|
|
2044
|
+
attr_reader :shopeepay
|
|
1880
2045
|
# Attribute for field sofort
|
|
1881
2046
|
attr_reader :sofort
|
|
1882
2047
|
# Attribute for field stripe_account
|
|
1883
2048
|
attr_reader :stripe_account
|
|
2049
|
+
# Attribute for field stripe_balance
|
|
2050
|
+
attr_reader :stripe_balance
|
|
1884
2051
|
# Attribute for field sunbit
|
|
1885
2052
|
attr_reader :sunbit
|
|
1886
2053
|
# Attribute for field swish
|
|
@@ -1899,6 +2066,8 @@ module Stripe
|
|
|
1899
2066
|
attr_reader :wechat
|
|
1900
2067
|
# Attribute for field wechat_pay
|
|
1901
2068
|
attr_reader :wechat_pay
|
|
2069
|
+
# Attribute for field wero
|
|
2070
|
+
attr_reader :wero
|
|
1902
2071
|
# Attribute for field zip
|
|
1903
2072
|
attr_reader :zip
|
|
1904
2073
|
|
|
@@ -1929,7 +2098,9 @@ module Stripe
|
|
|
1929
2098
|
eps: Eps,
|
|
1930
2099
|
fpx: Fpx,
|
|
1931
2100
|
giropay: Giropay,
|
|
2101
|
+
gopay: Gopay,
|
|
1932
2102
|
grabpay: Grabpay,
|
|
2103
|
+
id_bank_transfer: IdBankTransfer,
|
|
1933
2104
|
ideal: Ideal,
|
|
1934
2105
|
interac_present: InteracPresent,
|
|
1935
2106
|
kakao_pay: KakaoPay,
|
|
@@ -1953,6 +2124,8 @@ module Stripe
|
|
|
1953
2124
|
payto: Payto,
|
|
1954
2125
|
pix: Pix,
|
|
1955
2126
|
promptpay: Promptpay,
|
|
2127
|
+
qris: Qris,
|
|
2128
|
+
rechnung: Rechnung,
|
|
1956
2129
|
revolut_pay: RevolutPay,
|
|
1957
2130
|
samsung_pay: SamsungPay,
|
|
1958
2131
|
satispay: Satispay,
|
|
@@ -1960,8 +2133,10 @@ module Stripe
|
|
|
1960
2133
|
sepa_credit_transfer: SepaCreditTransfer,
|
|
1961
2134
|
sepa_debit: SepaDebit,
|
|
1962
2135
|
sequra: Sequra,
|
|
2136
|
+
shopeepay: Shopeepay,
|
|
1963
2137
|
sofort: Sofort,
|
|
1964
2138
|
stripe_account: StripeAccount,
|
|
2139
|
+
stripe_balance: StripeBalance,
|
|
1965
2140
|
sunbit: Sunbit,
|
|
1966
2141
|
swish: Swish,
|
|
1967
2142
|
twint: Twint,
|
|
@@ -1969,6 +2144,7 @@ module Stripe
|
|
|
1969
2144
|
us_bank_account: UsBankAccount,
|
|
1970
2145
|
wechat: Wechat,
|
|
1971
2146
|
wechat_pay: WechatPay,
|
|
2147
|
+
wero: Wero,
|
|
1972
2148
|
zip: Zip,
|
|
1973
2149
|
}
|
|
1974
2150
|
end
|
|
@@ -117,6 +117,23 @@ module Stripe
|
|
|
117
117
|
end
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
+
class MigrateTo < ::Stripe::StripeObject
|
|
121
|
+
# The behavior controlling at what point in the subscription lifecycle to migrate the price
|
|
122
|
+
attr_reader :behavior
|
|
123
|
+
# The unix timestamp after at which subscriptions will start to migrate to the new price.
|
|
124
|
+
attr_reader :effective_after
|
|
125
|
+
# The id of the price being migrated to
|
|
126
|
+
attr_reader :price
|
|
127
|
+
|
|
128
|
+
def self.inner_class_types
|
|
129
|
+
@inner_class_types = {}
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
def self.field_remappings
|
|
133
|
+
@field_remappings = {}
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
120
137
|
class Recurring < ::Stripe::StripeObject
|
|
121
138
|
# The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
|
|
122
139
|
attr_reader :interval
|
|
@@ -202,6 +219,8 @@ module Stripe
|
|
|
202
219
|
attr_reader :lookup_key
|
|
203
220
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
204
221
|
attr_reader :metadata
|
|
222
|
+
# Subscriptions using this price will be migrated to use the new referenced price.
|
|
223
|
+
attr_reader :migrate_to
|
|
205
224
|
# A brief description of the price, hidden from customers.
|
|
206
225
|
attr_reader :nickname
|
|
207
226
|
# String representing the object's type. Objects of the same type share the same value.
|
|
@@ -257,6 +276,7 @@ module Stripe
|
|
|
257
276
|
@inner_class_types = {
|
|
258
277
|
currency_options: CurrencyOptions,
|
|
259
278
|
custom_unit_amount: CustomUnitAmount,
|
|
279
|
+
migrate_to: MigrateTo,
|
|
260
280
|
recurring: Recurring,
|
|
261
281
|
tiers: Tier,
|
|
262
282
|
transform_quantity: TransformQuantity,
|