stripe 19.2.0 → 19.3.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 +36 -3
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +87 -0
- data/lib/stripe/event_types.rb +228 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -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_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_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_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 +63 -0
- data/lib/stripe/events/v2_money_management_transaction_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/object_types.rb +61 -0
- data/lib/stripe/params/account_create_params.rb +374 -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 +336 -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 +1646 -0
- data/lib/stripe/params/charge_update_params.rb +1646 -0
- data/lib/stripe/params/checkout/session_create_params.rb +126 -3
- data/lib/stripe/params/checkout/session_update_params.rb +176 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +78 -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/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 +64 -2
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +70 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +790 -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 +48 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_update_params.rb +70 -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_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 +3022 -87
- data/lib/stripe/params/payment_intent_create_params.rb +3034 -99
- 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 +3023 -57
- data/lib/stripe/params/payment_link_create_params.rb +15 -0
- 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 +74 -0
- data/lib/stripe/params/plan_create_params.rb +15 -0
- data/lib/stripe/params/price_create_params.rb +15 -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/product_catalog/trial_offer_create_params.rb +63 -0
- data/lib/stripe/params/product_create_params.rb +16 -0
- data/lib/stripe/params/product_update_params.rb +16 -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/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 +108 -3
- data/lib/stripe/params/setup_intent_create_params.rb +108 -3
- data/lib/stripe/params/setup_intent_update_params.rb +108 -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 +67 -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 +170 -6
- data/lib/stripe/params/subscription_item_create_params.rb +62 -2
- data/lib/stripe/params/subscription_item_update_params.rb +45 -1
- data/lib/stripe/params/subscription_pause_params.rb +50 -0
- data/lib/stripe/params/subscription_resume_params.rb +4 -0
- 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 +153 -5
- data/lib/stripe/params/tax/calculation_create_params.rb +4 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/location_create_params.rb +54 -0
- data/lib/stripe/params/tax/location_list_params.rb +27 -0
- data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +104 -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 +78 -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 +4 -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 +282 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +274 -4
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +58 -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 +37 -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/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/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/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 +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +92 -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 +88 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/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/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +426 -0
- data/lib/stripe/resources/account.rb +259 -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/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 +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 +211 -1
- data/lib/stripe/resources/checkout/session.rb +75 -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_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 +57 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +125 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +117 -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 +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 +1561 -8
- 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 +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/product.rb +18 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +106 -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 +1183 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +736 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.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 +22 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +1792 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +291 -0
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +167 -0
- data/lib/stripe/resources/subscription_item.rb +41 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/location.rb +72 -0
- data/lib/stripe/resources/tax/registration.rb +128 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- 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_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 +597 -3
- data/lib/stripe/resources/v2/core/batch_job.rb +488 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -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/financial_address_credit_simulation.rb +29 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +187 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +160 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +145 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +135 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -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.rb +417 -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/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/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_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/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/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 +56 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax_service.rb +3 -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/batch_job_service.rb +43 -0
- 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 +3 -1
- 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_service.rb +15 -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/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 +66 -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/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/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 +8 -1
- data/lib/stripe/services.rb +209 -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 +582 -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/resources/v2/core/event_notification.rbi +3 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +124159 -57389
- metadata +378 -3
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module OrchestratedCommerce
|
|
7
|
+
class AgreementService < StripeService
|
|
8
|
+
# Confirm an Agreement.
|
|
9
|
+
def confirm(id, params = {}, opts = {})
|
|
10
|
+
request(
|
|
11
|
+
method: :post,
|
|
12
|
+
path: format("/v2/orchestrated_commerce/agreements/%<id>s/confirm", { id: CGI.escape(id) }),
|
|
13
|
+
params: params,
|
|
14
|
+
opts: opts,
|
|
15
|
+
base_address: :api
|
|
16
|
+
)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# Create a new Agreement.
|
|
20
|
+
def create(params = {}, opts = {})
|
|
21
|
+
request(
|
|
22
|
+
method: :post,
|
|
23
|
+
path: "/v2/orchestrated_commerce/agreements",
|
|
24
|
+
params: params,
|
|
25
|
+
opts: opts,
|
|
26
|
+
base_address: :api
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# List Agreements for the profile associated with the authenticated merchant.
|
|
31
|
+
def list(params = {}, opts = {})
|
|
32
|
+
request(
|
|
33
|
+
method: :get,
|
|
34
|
+
path: "/v2/orchestrated_commerce/agreements",
|
|
35
|
+
params: params,
|
|
36
|
+
opts: opts,
|
|
37
|
+
base_address: :api
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Retrieve an Agreement by ID.
|
|
42
|
+
def retrieve(id, params = {}, opts = {})
|
|
43
|
+
request(
|
|
44
|
+
method: :get,
|
|
45
|
+
path: format("/v2/orchestrated_commerce/agreements/%<id>s", { id: CGI.escape(id) }),
|
|
46
|
+
params: params,
|
|
47
|
+
opts: opts,
|
|
48
|
+
base_address: :api
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Terminate an Agreement.
|
|
53
|
+
def terminate(id, params = {}, opts = {})
|
|
54
|
+
request(
|
|
55
|
+
method: :post,
|
|
56
|
+
path: format("/v2/orchestrated_commerce/agreements/%<id>s/terminate", { id: CGI.escape(id) }),
|
|
57
|
+
params: params,
|
|
58
|
+
opts: opts,
|
|
59
|
+
base_address: :api
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
class OrchestratedCommerceService < StripeService
|
|
7
|
+
attr_reader :agreements
|
|
8
|
+
|
|
9
|
+
def initialize(requestor)
|
|
10
|
+
super
|
|
11
|
+
@agreements = Stripe::V2::OrchestratedCommerce::AgreementService.new(@requestor)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
class TestHelperService < StripeService
|
|
7
|
+
attr_reader :financial_addresses
|
|
8
|
+
|
|
9
|
+
def initialize(requestor)
|
|
10
|
+
super
|
|
11
|
+
@financial_addresses = Stripe::V2::TestHelpers::FinancialAddressService.new(@requestor)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module TestHelpers
|
|
7
|
+
class FinancialAddressService < StripeService
|
|
8
|
+
# Simulate crediting a FinancialAddress in a Sandbox environment. This can be used to add virtual funds and increase your balance for testing.
|
|
9
|
+
#
|
|
10
|
+
# ** raises FeatureNotEnabledError
|
|
11
|
+
def credit(id, params = {}, opts = {})
|
|
12
|
+
request(
|
|
13
|
+
method: :post,
|
|
14
|
+
path: format("/v2/test_helpers/financial_addresses/%<id>s/credit", { id: CGI.escape(id) }),
|
|
15
|
+
params: params,
|
|
16
|
+
opts: opts,
|
|
17
|
+
base_address: :api
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
# Generates microdeposits for a FinancialAddress in a Sandbox environment.
|
|
22
|
+
#
|
|
23
|
+
# ** raises FeatureNotEnabledError
|
|
24
|
+
def generate_microdeposits(id, params = {}, opts = {})
|
|
25
|
+
request(
|
|
26
|
+
method: :post,
|
|
27
|
+
path: format("/v2/test_helpers/financial_addresses/%<id>s/generate_microdeposits", { id: CGI.escape(id) }),
|
|
28
|
+
params: params,
|
|
29
|
+
opts: opts,
|
|
30
|
+
base_address: :api
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -3,13 +3,20 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class V2Services < StripeService
|
|
6
|
-
attr_reader :billing, :commerce, :core
|
|
6
|
+
attr_reader :billing, :commerce, :core, :data, :extend, :iam, :money_management, :network, :orchestrated_commerce, :test_helpers
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
9
|
super
|
|
10
10
|
@billing = Stripe::V2::BillingService.new(@requestor)
|
|
11
11
|
@commerce = Stripe::V2::CommerceService.new(@requestor)
|
|
12
12
|
@core = Stripe::V2::CoreService.new(@requestor)
|
|
13
|
+
@data = Stripe::V2::DataService.new(@requestor)
|
|
14
|
+
@extend = Stripe::V2::ExtendService.new(@requestor)
|
|
15
|
+
@iam = Stripe::V2::IamService.new(@requestor)
|
|
16
|
+
@money_management = Stripe::V2::MoneyManagementService.new(@requestor)
|
|
17
|
+
@network = Stripe::V2::NetworkService.new(@requestor)
|
|
18
|
+
@orchestrated_commerce = Stripe::V2::OrchestratedCommerceService.new(@requestor)
|
|
19
|
+
@test_helpers = Stripe::V2::TestHelperService.new(@requestor)
|
|
13
20
|
end
|
|
14
21
|
end
|
|
15
22
|
end
|
data/lib/stripe/services.rb
CHANGED
|
@@ -6,6 +6,7 @@ module Stripe
|
|
|
6
6
|
autoload :AccountExternalAccountService, "stripe/services/account_external_account_service"
|
|
7
7
|
autoload :AccountLinkService, "stripe/services/account_link_service"
|
|
8
8
|
autoload :AccountLoginLinkService, "stripe/services/account_login_link_service"
|
|
9
|
+
autoload :AccountNoticeService, "stripe/services/account_notice_service"
|
|
9
10
|
autoload :AccountPersonService, "stripe/services/account_person_service"
|
|
10
11
|
autoload :AccountService, "stripe/services/account_service"
|
|
11
12
|
autoload :AccountSessionService, "stripe/services/account_session_service"
|
|
@@ -18,6 +19,7 @@ module Stripe
|
|
|
18
19
|
autoload :BalanceTransactionService, "stripe/services/balance_transaction_service"
|
|
19
20
|
autoload :BillingPortalService, "stripe/services/billing_portal_service"
|
|
20
21
|
autoload :BillingService, "stripe/services/billing_service"
|
|
22
|
+
autoload :CapitalService, "stripe/services/capital_service"
|
|
21
23
|
autoload :ChargeService, "stripe/services/charge_service"
|
|
22
24
|
autoload :CheckoutService, "stripe/services/checkout_service"
|
|
23
25
|
autoload :ClimateService, "stripe/services/climate_service"
|
|
@@ -41,10 +43,12 @@ module Stripe
|
|
|
41
43
|
autoload :EphemeralKeyService, "stripe/services/ephemeral_key_service"
|
|
42
44
|
autoload :EventService, "stripe/services/event_service"
|
|
43
45
|
autoload :ExchangeRateService, "stripe/services/exchange_rate_service"
|
|
46
|
+
autoload :ExternalAccountService, "stripe/services/external_account_service"
|
|
44
47
|
autoload :FileLinkService, "stripe/services/file_link_service"
|
|
45
48
|
autoload :FileService, "stripe/services/file_service"
|
|
46
49
|
autoload :FinancialConnectionsService, "stripe/services/financial_connections_service"
|
|
47
50
|
autoload :ForwardingService, "stripe/services/forwarding_service"
|
|
51
|
+
autoload :FxQuoteService, "stripe/services/fx_quote_service"
|
|
48
52
|
autoload :IdentityService, "stripe/services/identity_service"
|
|
49
53
|
autoload :InvoiceItemService, "stripe/services/invoice_item_service"
|
|
50
54
|
autoload :InvoiceLineItemService, "stripe/services/invoice_line_item_service"
|
|
@@ -53,6 +57,8 @@ module Stripe
|
|
|
53
57
|
autoload :InvoiceService, "stripe/services/invoice_service"
|
|
54
58
|
autoload :IssuingService, "stripe/services/issuing_service"
|
|
55
59
|
autoload :MandateService, "stripe/services/mandate_service"
|
|
60
|
+
autoload :MarginService, "stripe/services/margin_service"
|
|
61
|
+
autoload :OrderService, "stripe/services/order_service"
|
|
56
62
|
autoload :PaymentAttemptRecordService, "stripe/services/payment_attempt_record_service"
|
|
57
63
|
autoload :PaymentIntentAmountDetailsLineItemService, "stripe/services/payment_intent_amount_details_line_item_service"
|
|
58
64
|
autoload :PaymentIntentService, "stripe/services/payment_intent_service"
|
|
@@ -65,18 +71,25 @@ module Stripe
|
|
|
65
71
|
autoload :PayoutService, "stripe/services/payout_service"
|
|
66
72
|
autoload :PlanService, "stripe/services/plan_service"
|
|
67
73
|
autoload :PriceService, "stripe/services/price_service"
|
|
74
|
+
autoload :PrivacyService, "stripe/services/privacy_service"
|
|
75
|
+
autoload :ProductCatalogService, "stripe/services/product_catalog_service"
|
|
68
76
|
autoload :ProductFeatureService, "stripe/services/product_feature_service"
|
|
69
77
|
autoload :ProductService, "stripe/services/product_service"
|
|
70
78
|
autoload :PromotionCodeService, "stripe/services/promotion_code_service"
|
|
71
79
|
autoload :QuoteComputedUpfrontLineItemsService, "stripe/services/quote_computed_upfront_line_items_service"
|
|
72
80
|
autoload :QuoteLineItemService, "stripe/services/quote_line_item_service"
|
|
81
|
+
autoload :QuoteLineService, "stripe/services/quote_line_service"
|
|
82
|
+
autoload :QuotePreviewInvoiceService, "stripe/services/quote_preview_invoice_service"
|
|
83
|
+
autoload :QuotePreviewSubscriptionScheduleService, "stripe/services/quote_preview_subscription_schedule_service"
|
|
73
84
|
autoload :QuoteService, "stripe/services/quote_service"
|
|
74
85
|
autoload :RadarService, "stripe/services/radar_service"
|
|
75
86
|
autoload :RefundService, "stripe/services/refund_service"
|
|
76
87
|
autoload :ReportingService, "stripe/services/reporting_service"
|
|
88
|
+
autoload :ReserveService, "stripe/services/reserve_service"
|
|
77
89
|
autoload :ReviewService, "stripe/services/review_service"
|
|
78
90
|
autoload :SetupAttemptService, "stripe/services/setup_attempt_service"
|
|
79
91
|
autoload :SetupIntentService, "stripe/services/setup_intent_service"
|
|
92
|
+
autoload :SharedPaymentService, "stripe/services/shared_payment_service"
|
|
80
93
|
autoload :ShippingRateService, "stripe/services/shipping_rate_service"
|
|
81
94
|
autoload :SigmaService, "stripe/services/sigma_service"
|
|
82
95
|
autoload :SourceService, "stripe/services/source_service"
|
|
@@ -105,6 +118,7 @@ module Stripe
|
|
|
105
118
|
|
|
106
119
|
module Billing
|
|
107
120
|
autoload :AlertService, "stripe/services/billing/alert_service"
|
|
121
|
+
autoload :AnalyticsService, "stripe/services/billing/analytics_service"
|
|
108
122
|
autoload :CreditBalanceSummaryService, "stripe/services/billing/credit_balance_summary_service"
|
|
109
123
|
autoload :CreditBalanceTransactionService, "stripe/services/billing/credit_balance_transaction_service"
|
|
110
124
|
autoload :CreditGrantService, "stripe/services/billing/credit_grant_service"
|
|
@@ -112,6 +126,10 @@ module Stripe
|
|
|
112
126
|
autoload :MeterEventService, "stripe/services/billing/meter_event_service"
|
|
113
127
|
autoload :MeterEventSummaryService, "stripe/services/billing/meter_event_summary_service"
|
|
114
128
|
autoload :MeterService, "stripe/services/billing/meter_service"
|
|
129
|
+
|
|
130
|
+
module Analytics
|
|
131
|
+
autoload :MeterUsageService, "stripe/services/billing/analytics/meter_usage_service"
|
|
132
|
+
end
|
|
115
133
|
end
|
|
116
134
|
|
|
117
135
|
module BillingPortal
|
|
@@ -119,6 +137,12 @@ module Stripe
|
|
|
119
137
|
autoload :SessionService, "stripe/services/billing_portal/session_service"
|
|
120
138
|
end
|
|
121
139
|
|
|
140
|
+
module Capital
|
|
141
|
+
autoload :FinancingOfferService, "stripe/services/capital/financing_offer_service"
|
|
142
|
+
autoload :FinancingSummaryService, "stripe/services/capital/financing_summary_service"
|
|
143
|
+
autoload :FinancingTransactionService, "stripe/services/capital/financing_transaction_service"
|
|
144
|
+
end
|
|
145
|
+
|
|
122
146
|
module Checkout
|
|
123
147
|
autoload :SessionLineItemService, "stripe/services/checkout/session_line_item_service"
|
|
124
148
|
autoload :SessionService, "stripe/services/checkout/session_service"
|
|
@@ -136,8 +160,11 @@ module Stripe
|
|
|
136
160
|
end
|
|
137
161
|
|
|
138
162
|
module FinancialConnections
|
|
163
|
+
autoload :AccountInferredBalanceService, "stripe/services/financial_connections/account_inferred_balance_service"
|
|
139
164
|
autoload :AccountOwnerService, "stripe/services/financial_connections/account_owner_service"
|
|
140
165
|
autoload :AccountService, "stripe/services/financial_connections/account_service"
|
|
166
|
+
autoload :AuthorizationService, "stripe/services/financial_connections/authorization_service"
|
|
167
|
+
autoload :InstitutionService, "stripe/services/financial_connections/institution_service"
|
|
141
168
|
autoload :SessionService, "stripe/services/financial_connections/session_service"
|
|
142
169
|
autoload :TransactionService, "stripe/services/financial_connections/transaction_service"
|
|
143
170
|
end
|
|
@@ -155,13 +182,25 @@ module Stripe
|
|
|
155
182
|
autoload :AuthorizationService, "stripe/services/issuing/authorization_service"
|
|
156
183
|
autoload :CardholderService, "stripe/services/issuing/cardholder_service"
|
|
157
184
|
autoload :CardService, "stripe/services/issuing/card_service"
|
|
185
|
+
autoload :CreditUnderwritingRecordService, "stripe/services/issuing/credit_underwriting_record_service"
|
|
158
186
|
autoload :DisputeService, "stripe/services/issuing/dispute_service"
|
|
187
|
+
autoload :DisputeSettlementDetailService, "stripe/services/issuing/dispute_settlement_detail_service"
|
|
188
|
+
autoload :FraudLiabilityDebitService, "stripe/services/issuing/fraud_liability_debit_service"
|
|
159
189
|
autoload :PersonalizationDesignService, "stripe/services/issuing/personalization_design_service"
|
|
160
190
|
autoload :PhysicalBundleService, "stripe/services/issuing/physical_bundle_service"
|
|
161
191
|
autoload :TokenService, "stripe/services/issuing/token_service"
|
|
162
192
|
autoload :TransactionService, "stripe/services/issuing/transaction_service"
|
|
163
193
|
end
|
|
164
194
|
|
|
195
|
+
module Privacy
|
|
196
|
+
autoload :RedactionJobService, "stripe/services/privacy/redaction_job_service"
|
|
197
|
+
autoload :RedactionJobValidationErrorService, "stripe/services/privacy/redaction_job_validation_error_service"
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
module ProductCatalog
|
|
201
|
+
autoload :TrialOfferService, "stripe/services/product_catalog/trial_offer_service"
|
|
202
|
+
end
|
|
203
|
+
|
|
165
204
|
module Radar
|
|
166
205
|
autoload :EarlyFraudWarningService, "stripe/services/radar/early_fraud_warning_service"
|
|
167
206
|
autoload :PaymentEvaluationService, "stripe/services/radar/payment_evaluation_service"
|
|
@@ -174,6 +213,17 @@ module Stripe
|
|
|
174
213
|
autoload :ReportTypeService, "stripe/services/reporting/report_type_service"
|
|
175
214
|
end
|
|
176
215
|
|
|
216
|
+
module Reserve
|
|
217
|
+
autoload :HoldService, "stripe/services/reserve/hold_service"
|
|
218
|
+
autoload :PlanService, "stripe/services/reserve/plan_service"
|
|
219
|
+
autoload :ReleaseService, "stripe/services/reserve/release_service"
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
module SharedPayment
|
|
223
|
+
autoload :GrantedTokenService, "stripe/services/shared_payment/granted_token_service"
|
|
224
|
+
autoload :IssuedTokenService, "stripe/services/shared_payment/issued_token_service"
|
|
225
|
+
end
|
|
226
|
+
|
|
177
227
|
module Sigma
|
|
178
228
|
autoload :ScheduledQueryRunService, "stripe/services/sigma/scheduled_query_run_service"
|
|
179
229
|
end
|
|
@@ -182,6 +232,8 @@ module Stripe
|
|
|
182
232
|
autoload :AssociationService, "stripe/services/tax/association_service"
|
|
183
233
|
autoload :CalculationLineItemService, "stripe/services/tax/calculation_line_item_service"
|
|
184
234
|
autoload :CalculationService, "stripe/services/tax/calculation_service"
|
|
235
|
+
autoload :FormService, "stripe/services/tax/form_service"
|
|
236
|
+
autoload :LocationService, "stripe/services/tax/location_service"
|
|
185
237
|
autoload :RegistrationService, "stripe/services/tax/registration_service"
|
|
186
238
|
autoload :SettingsService, "stripe/services/tax/settings_service"
|
|
187
239
|
autoload :TransactionLineItemService, "stripe/services/tax/transaction_line_item_service"
|
|
@@ -193,6 +245,7 @@ module Stripe
|
|
|
193
245
|
autoload :ConnectionTokenService, "stripe/services/terminal/connection_token_service"
|
|
194
246
|
autoload :LocationService, "stripe/services/terminal/location_service"
|
|
195
247
|
autoload :OnboardingLinkService, "stripe/services/terminal/onboarding_link_service"
|
|
248
|
+
autoload :ReaderCollectedDataService, "stripe/services/terminal/reader_collected_data_service"
|
|
196
249
|
autoload :ReaderService, "stripe/services/terminal/reader_service"
|
|
197
250
|
end
|
|
198
251
|
|
|
@@ -201,6 +254,7 @@ module Stripe
|
|
|
201
254
|
autoload :CustomerService, "stripe/services/test_helpers/customer_service"
|
|
202
255
|
autoload :IssuingService, "stripe/services/test_helpers/issuing_service"
|
|
203
256
|
autoload :RefundService, "stripe/services/test_helpers/refund_service"
|
|
257
|
+
autoload :SharedPaymentService, "stripe/services/test_helpers/shared_payment_service"
|
|
204
258
|
autoload :TerminalService, "stripe/services/test_helpers/terminal_service"
|
|
205
259
|
autoload :TestClockService, "stripe/services/test_helpers/test_clock_service"
|
|
206
260
|
autoload :TreasuryService, "stripe/services/test_helpers/treasury_service"
|
|
@@ -212,6 +266,10 @@ module Stripe
|
|
|
212
266
|
autoload :TransactionService, "stripe/services/test_helpers/issuing/transaction_service"
|
|
213
267
|
end
|
|
214
268
|
|
|
269
|
+
module SharedPayment
|
|
270
|
+
autoload :GrantedTokenService, "stripe/services/test_helpers/shared_payment/granted_token_service"
|
|
271
|
+
end
|
|
272
|
+
|
|
215
273
|
module Terminal
|
|
216
274
|
autoload :ReaderService, "stripe/services/test_helpers/terminal/reader_service"
|
|
217
275
|
end
|
|
@@ -243,12 +301,31 @@ module Stripe
|
|
|
243
301
|
autoload :BillingService, "stripe/services/v2/billing_service"
|
|
244
302
|
autoload :CommerceService, "stripe/services/v2/commerce_service"
|
|
245
303
|
autoload :CoreService, "stripe/services/v2/core_service"
|
|
304
|
+
autoload :DataService, "stripe/services/v2/data_service"
|
|
305
|
+
autoload :ExtendService, "stripe/services/v2/extend_service"
|
|
306
|
+
autoload :IamService, "stripe/services/v2/iam_service"
|
|
307
|
+
autoload :MoneyManagementService, "stripe/services/v2/money_management_service"
|
|
308
|
+
autoload :NetworkService, "stripe/services/v2/network_service"
|
|
309
|
+
autoload :OrchestratedCommerceService, "stripe/services/v2/orchestrated_commerce_service"
|
|
310
|
+
autoload :TestHelperService, "stripe/services/v2/test_helper_service"
|
|
246
311
|
|
|
247
312
|
module Billing
|
|
313
|
+
autoload :BillSettingService, "stripe/services/v2/billing/bill_setting_service"
|
|
314
|
+
autoload :CadenceService, "stripe/services/v2/billing/cadence_service"
|
|
315
|
+
autoload :CollectionSettingService, "stripe/services/v2/billing/collection_setting_service"
|
|
248
316
|
autoload :MeterEventAdjustmentService, "stripe/services/v2/billing/meter_event_adjustment_service"
|
|
249
317
|
autoload :MeterEventService, "stripe/services/v2/billing/meter_event_service"
|
|
250
318
|
autoload :MeterEventSessionService, "stripe/services/v2/billing/meter_event_session_service"
|
|
251
319
|
autoload :MeterEventStreamService, "stripe/services/v2/billing/meter_event_stream_service"
|
|
320
|
+
autoload :ProfileService, "stripe/services/v2/billing/profile_service"
|
|
321
|
+
|
|
322
|
+
module BillSettings
|
|
323
|
+
autoload :VersionService, "stripe/services/v2/billing/bill_settings/version_service"
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
module CollectionSettings
|
|
327
|
+
autoload :VersionService, "stripe/services/v2/billing/collection_settings/version_service"
|
|
328
|
+
end
|
|
252
329
|
end
|
|
253
330
|
|
|
254
331
|
module Commerce
|
|
@@ -263,23 +340,79 @@ module Stripe
|
|
|
263
340
|
autoload :AccountLinkService, "stripe/services/v2/core/account_link_service"
|
|
264
341
|
autoload :AccountService, "stripe/services/v2/core/account_service"
|
|
265
342
|
autoload :AccountTokenService, "stripe/services/v2/core/account_token_service"
|
|
343
|
+
autoload :BatchJobService, "stripe/services/v2/core/batch_job_service"
|
|
266
344
|
autoload :EventDestinationService, "stripe/services/v2/core/event_destination_service"
|
|
267
345
|
autoload :EventService, "stripe/services/v2/core/event_service"
|
|
346
|
+
autoload :VaultService, "stripe/services/v2/core/vault_service"
|
|
268
347
|
|
|
269
348
|
module Accounts
|
|
270
349
|
autoload :PersonService, "stripe/services/v2/core/accounts/person_service"
|
|
271
350
|
autoload :PersonTokenService, "stripe/services/v2/core/accounts/person_token_service"
|
|
272
351
|
end
|
|
352
|
+
|
|
353
|
+
module Vault
|
|
354
|
+
autoload :GbBankAccountService, "stripe/services/v2/core/vault/gb_bank_account_service"
|
|
355
|
+
autoload :UsBankAccountService, "stripe/services/v2/core/vault/us_bank_account_service"
|
|
356
|
+
end
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
module Data
|
|
360
|
+
autoload :ReportingService, "stripe/services/v2/data/reporting_service"
|
|
361
|
+
|
|
362
|
+
module Reporting
|
|
363
|
+
autoload :QueryRunService, "stripe/services/v2/data/reporting/query_run_service"
|
|
364
|
+
end
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
module Extend
|
|
368
|
+
autoload :WorkflowRunService, "stripe/services/v2/extend/workflow_run_service"
|
|
369
|
+
autoload :WorkflowService, "stripe/services/v2/extend/workflow_service"
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
module Iam
|
|
373
|
+
autoload :ActivityLogService, "stripe/services/v2/iam/activity_log_service"
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
module MoneyManagement
|
|
377
|
+
autoload :AdjustmentService, "stripe/services/v2/money_management/adjustment_service"
|
|
378
|
+
autoload :FinancialAccountService, "stripe/services/v2/money_management/financial_account_service"
|
|
379
|
+
autoload :FinancialAddressService, "stripe/services/v2/money_management/financial_address_service"
|
|
380
|
+
autoload :InboundTransferService, "stripe/services/v2/money_management/inbound_transfer_service"
|
|
381
|
+
autoload :OutboundPaymentQuoteService, "stripe/services/v2/money_management/outbound_payment_quote_service"
|
|
382
|
+
autoload :OutboundPaymentService, "stripe/services/v2/money_management/outbound_payment_service"
|
|
383
|
+
autoload :OutboundSetupIntentService, "stripe/services/v2/money_management/outbound_setup_intent_service"
|
|
384
|
+
autoload :OutboundTransferService, "stripe/services/v2/money_management/outbound_transfer_service"
|
|
385
|
+
autoload :PayoutMethodsBankAccountSpecService,
|
|
386
|
+
"stripe/services/v2/money_management/payout_methods_bank_account_spec_service"
|
|
387
|
+
autoload :PayoutMethodService, "stripe/services/v2/money_management/payout_method_service"
|
|
388
|
+
autoload :ReceivedCreditService, "stripe/services/v2/money_management/received_credit_service"
|
|
389
|
+
autoload :ReceivedDebitService, "stripe/services/v2/money_management/received_debit_service"
|
|
390
|
+
autoload :TransactionEntryService, "stripe/services/v2/money_management/transaction_entry_service"
|
|
391
|
+
autoload :TransactionService, "stripe/services/v2/money_management/transaction_service"
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
module Network
|
|
395
|
+
autoload :BusinessProfileService, "stripe/services/v2/network/business_profile_service"
|
|
396
|
+
end
|
|
397
|
+
|
|
398
|
+
module OrchestratedCommerce
|
|
399
|
+
autoload :AgreementService, "stripe/services/v2/orchestrated_commerce/agreement_service"
|
|
400
|
+
end
|
|
401
|
+
|
|
402
|
+
module TestHelpers
|
|
403
|
+
autoload :FinancialAddressService, "stripe/services/v2/test_helpers/financial_address_service"
|
|
273
404
|
end
|
|
274
405
|
end
|
|
275
406
|
end
|
|
276
407
|
|
|
277
408
|
module Stripe
|
|
409
|
+
# rubocop:disable Metrics/CollectionLiteralLength
|
|
278
410
|
SERVICE_FILES = %w[
|
|
279
411
|
stripe/services/account_capability_service
|
|
280
412
|
stripe/services/account_external_account_service
|
|
281
413
|
stripe/services/account_link_service
|
|
282
414
|
stripe/services/account_login_link_service
|
|
415
|
+
stripe/services/account_notice_service
|
|
283
416
|
stripe/services/account_person_service
|
|
284
417
|
stripe/services/account_service
|
|
285
418
|
stripe/services/account_session_service
|
|
@@ -292,6 +425,8 @@ module Stripe
|
|
|
292
425
|
stripe/services/balance_settings_service
|
|
293
426
|
stripe/services/balance_transaction_service
|
|
294
427
|
stripe/services/billing/alert_service
|
|
428
|
+
stripe/services/billing/analytics/meter_usage_service
|
|
429
|
+
stripe/services/billing/analytics_service
|
|
295
430
|
stripe/services/billing/credit_balance_summary_service
|
|
296
431
|
stripe/services/billing/credit_balance_transaction_service
|
|
297
432
|
stripe/services/billing/credit_grant_service
|
|
@@ -303,6 +438,10 @@ module Stripe
|
|
|
303
438
|
stripe/services/billing_portal/session_service
|
|
304
439
|
stripe/services/billing_portal_service
|
|
305
440
|
stripe/services/billing_service
|
|
441
|
+
stripe/services/capital/financing_offer_service
|
|
442
|
+
stripe/services/capital/financing_summary_service
|
|
443
|
+
stripe/services/capital/financing_transaction_service
|
|
444
|
+
stripe/services/capital_service
|
|
306
445
|
stripe/services/charge_service
|
|
307
446
|
stripe/services/checkout/session_line_item_service
|
|
308
447
|
stripe/services/checkout/session_service
|
|
@@ -333,15 +472,20 @@ module Stripe
|
|
|
333
472
|
stripe/services/ephemeral_key_service
|
|
334
473
|
stripe/services/event_service
|
|
335
474
|
stripe/services/exchange_rate_service
|
|
475
|
+
stripe/services/external_account_service
|
|
336
476
|
stripe/services/file_link_service
|
|
337
477
|
stripe/services/file_service
|
|
478
|
+
stripe/services/financial_connections/account_inferred_balance_service
|
|
338
479
|
stripe/services/financial_connections/account_owner_service
|
|
339
480
|
stripe/services/financial_connections/account_service
|
|
481
|
+
stripe/services/financial_connections/authorization_service
|
|
482
|
+
stripe/services/financial_connections/institution_service
|
|
340
483
|
stripe/services/financial_connections/session_service
|
|
341
484
|
stripe/services/financial_connections/transaction_service
|
|
342
485
|
stripe/services/financial_connections_service
|
|
343
486
|
stripe/services/forwarding/request_service
|
|
344
487
|
stripe/services/forwarding_service
|
|
488
|
+
stripe/services/fx_quote_service
|
|
345
489
|
stripe/services/identity/verification_report_service
|
|
346
490
|
stripe/services/identity/verification_session_service
|
|
347
491
|
stripe/services/identity_service
|
|
@@ -353,13 +497,18 @@ module Stripe
|
|
|
353
497
|
stripe/services/issuing/authorization_service
|
|
354
498
|
stripe/services/issuing/card_service
|
|
355
499
|
stripe/services/issuing/cardholder_service
|
|
500
|
+
stripe/services/issuing/credit_underwriting_record_service
|
|
356
501
|
stripe/services/issuing/dispute_service
|
|
502
|
+
stripe/services/issuing/dispute_settlement_detail_service
|
|
503
|
+
stripe/services/issuing/fraud_liability_debit_service
|
|
357
504
|
stripe/services/issuing/personalization_design_service
|
|
358
505
|
stripe/services/issuing/physical_bundle_service
|
|
359
506
|
stripe/services/issuing/token_service
|
|
360
507
|
stripe/services/issuing/transaction_service
|
|
361
508
|
stripe/services/issuing_service
|
|
362
509
|
stripe/services/mandate_service
|
|
510
|
+
stripe/services/margin_service
|
|
511
|
+
stripe/services/order_service
|
|
363
512
|
stripe/services/payment_attempt_record_service
|
|
364
513
|
stripe/services/payment_intent_amount_details_line_item_service
|
|
365
514
|
stripe/services/payment_intent_service
|
|
@@ -372,11 +521,19 @@ module Stripe
|
|
|
372
521
|
stripe/services/payout_service
|
|
373
522
|
stripe/services/plan_service
|
|
374
523
|
stripe/services/price_service
|
|
524
|
+
stripe/services/privacy/redaction_job_service
|
|
525
|
+
stripe/services/privacy/redaction_job_validation_error_service
|
|
526
|
+
stripe/services/privacy_service
|
|
527
|
+
stripe/services/product_catalog/trial_offer_service
|
|
528
|
+
stripe/services/product_catalog_service
|
|
375
529
|
stripe/services/product_feature_service
|
|
376
530
|
stripe/services/product_service
|
|
377
531
|
stripe/services/promotion_code_service
|
|
378
532
|
stripe/services/quote_computed_upfront_line_items_service
|
|
379
533
|
stripe/services/quote_line_item_service
|
|
534
|
+
stripe/services/quote_line_service
|
|
535
|
+
stripe/services/quote_preview_invoice_service
|
|
536
|
+
stripe/services/quote_preview_subscription_schedule_service
|
|
380
537
|
stripe/services/quote_service
|
|
381
538
|
stripe/services/radar/early_fraud_warning_service
|
|
382
539
|
stripe/services/radar/payment_evaluation_service
|
|
@@ -387,9 +544,16 @@ module Stripe
|
|
|
387
544
|
stripe/services/reporting/report_run_service
|
|
388
545
|
stripe/services/reporting/report_type_service
|
|
389
546
|
stripe/services/reporting_service
|
|
547
|
+
stripe/services/reserve/hold_service
|
|
548
|
+
stripe/services/reserve/plan_service
|
|
549
|
+
stripe/services/reserve/release_service
|
|
550
|
+
stripe/services/reserve_service
|
|
390
551
|
stripe/services/review_service
|
|
391
552
|
stripe/services/setup_attempt_service
|
|
392
553
|
stripe/services/setup_intent_service
|
|
554
|
+
stripe/services/shared_payment/granted_token_service
|
|
555
|
+
stripe/services/shared_payment/issued_token_service
|
|
556
|
+
stripe/services/shared_payment_service
|
|
393
557
|
stripe/services/shipping_rate_service
|
|
394
558
|
stripe/services/sigma/scheduled_query_run_service
|
|
395
559
|
stripe/services/sigma_service
|
|
@@ -401,6 +565,8 @@ module Stripe
|
|
|
401
565
|
stripe/services/tax/association_service
|
|
402
566
|
stripe/services/tax/calculation_line_item_service
|
|
403
567
|
stripe/services/tax/calculation_service
|
|
568
|
+
stripe/services/tax/form_service
|
|
569
|
+
stripe/services/tax/location_service
|
|
404
570
|
stripe/services/tax/registration_service
|
|
405
571
|
stripe/services/tax/settings_service
|
|
406
572
|
stripe/services/tax/transaction_line_item_service
|
|
@@ -413,6 +579,7 @@ module Stripe
|
|
|
413
579
|
stripe/services/terminal/connection_token_service
|
|
414
580
|
stripe/services/terminal/location_service
|
|
415
581
|
stripe/services/terminal/onboarding_link_service
|
|
582
|
+
stripe/services/terminal/reader_collected_data_service
|
|
416
583
|
stripe/services/terminal/reader_service
|
|
417
584
|
stripe/services/terminal_service
|
|
418
585
|
stripe/services/test_helpers/confirmation_token_service
|
|
@@ -423,6 +590,8 @@ module Stripe
|
|
|
423
590
|
stripe/services/test_helpers/issuing/transaction_service
|
|
424
591
|
stripe/services/test_helpers/issuing_service
|
|
425
592
|
stripe/services/test_helpers/refund_service
|
|
593
|
+
stripe/services/test_helpers/shared_payment/granted_token_service
|
|
594
|
+
stripe/services/test_helpers/shared_payment_service
|
|
426
595
|
stripe/services/test_helpers/terminal/reader_service
|
|
427
596
|
stripe/services/test_helpers/terminal_service
|
|
428
597
|
stripe/services/test_helpers/test_clock_service
|
|
@@ -450,10 +619,16 @@ module Stripe
|
|
|
450
619
|
stripe/services/treasury/transaction_service
|
|
451
620
|
stripe/services/treasury_service
|
|
452
621
|
stripe/services/v1_services
|
|
622
|
+
stripe/services/v2/billing/bill_setting_service
|
|
623
|
+
stripe/services/v2/billing/bill_settings/version_service
|
|
624
|
+
stripe/services/v2/billing/cadence_service
|
|
625
|
+
stripe/services/v2/billing/collection_setting_service
|
|
626
|
+
stripe/services/v2/billing/collection_settings/version_service
|
|
453
627
|
stripe/services/v2/billing/meter_event_adjustment_service
|
|
454
628
|
stripe/services/v2/billing/meter_event_service
|
|
455
629
|
stripe/services/v2/billing/meter_event_session_service
|
|
456
630
|
stripe/services/v2/billing/meter_event_stream_service
|
|
631
|
+
stripe/services/v2/billing/profile_service
|
|
457
632
|
stripe/services/v2/billing_service
|
|
458
633
|
stripe/services/v2/commerce/product_catalog/import_service
|
|
459
634
|
stripe/services/v2/commerce/product_catalog_service
|
|
@@ -463,10 +638,44 @@ module Stripe
|
|
|
463
638
|
stripe/services/v2/core/account_token_service
|
|
464
639
|
stripe/services/v2/core/accounts/person_service
|
|
465
640
|
stripe/services/v2/core/accounts/person_token_service
|
|
641
|
+
stripe/services/v2/core/batch_job_service
|
|
466
642
|
stripe/services/v2/core/event_destination_service
|
|
467
643
|
stripe/services/v2/core/event_service
|
|
644
|
+
stripe/services/v2/core/vault/gb_bank_account_service
|
|
645
|
+
stripe/services/v2/core/vault/us_bank_account_service
|
|
646
|
+
stripe/services/v2/core/vault_service
|
|
468
647
|
stripe/services/v2/core_service
|
|
648
|
+
stripe/services/v2/data/reporting/query_run_service
|
|
649
|
+
stripe/services/v2/data/reporting_service
|
|
650
|
+
stripe/services/v2/data_service
|
|
651
|
+
stripe/services/v2/extend/workflow_run_service
|
|
652
|
+
stripe/services/v2/extend/workflow_service
|
|
653
|
+
stripe/services/v2/extend_service
|
|
654
|
+
stripe/services/v2/iam/activity_log_service
|
|
655
|
+
stripe/services/v2/iam_service
|
|
656
|
+
stripe/services/v2/money_management/adjustment_service
|
|
657
|
+
stripe/services/v2/money_management/financial_account_service
|
|
658
|
+
stripe/services/v2/money_management/financial_address_service
|
|
659
|
+
stripe/services/v2/money_management/inbound_transfer_service
|
|
660
|
+
stripe/services/v2/money_management/outbound_payment_quote_service
|
|
661
|
+
stripe/services/v2/money_management/outbound_payment_service
|
|
662
|
+
stripe/services/v2/money_management/outbound_setup_intent_service
|
|
663
|
+
stripe/services/v2/money_management/outbound_transfer_service
|
|
664
|
+
stripe/services/v2/money_management/payout_method_service
|
|
665
|
+
stripe/services/v2/money_management/payout_methods_bank_account_spec_service
|
|
666
|
+
stripe/services/v2/money_management/received_credit_service
|
|
667
|
+
stripe/services/v2/money_management/received_debit_service
|
|
668
|
+
stripe/services/v2/money_management/transaction_entry_service
|
|
669
|
+
stripe/services/v2/money_management/transaction_service
|
|
670
|
+
stripe/services/v2/money_management_service
|
|
671
|
+
stripe/services/v2/network/business_profile_service
|
|
672
|
+
stripe/services/v2/network_service
|
|
673
|
+
stripe/services/v2/orchestrated_commerce/agreement_service
|
|
674
|
+
stripe/services/v2/orchestrated_commerce_service
|
|
675
|
+
stripe/services/v2/test_helper_service
|
|
676
|
+
stripe/services/v2/test_helpers/financial_address_service
|
|
469
677
|
stripe/services/v2_services
|
|
470
678
|
stripe/services/webhook_endpoint_service
|
|
471
679
|
].freeze
|
|
680
|
+
# rubocop:enable Metrics/CollectionLiteralLength
|
|
472
681
|
end
|
data/lib/stripe/stripe_client.rb
CHANGED
|
@@ -8,9 +8,12 @@ module Stripe
|
|
|
8
8
|
# attr_readers: The beginning of the section generated from our OpenAPI spec
|
|
9
9
|
attr_reader :v1
|
|
10
10
|
attr_reader :v2
|
|
11
|
-
|
|
12
11
|
# attr_readers: The end of the section generated from our OpenAPI spec
|
|
13
12
|
|
|
13
|
+
# For internal use only. Does not provide a stable API and may be broken
|
|
14
|
+
# with future non-major changes.
|
|
15
|
+
attr_reader :requestor
|
|
16
|
+
|
|
14
17
|
# For internal use only. Does not provide a stable API and may be broken
|
|
15
18
|
# with future non-major changes.
|
|
16
19
|
CLIENT_OPTIONS = Set.new(%i[api_key stripe_account stripe_context api_version api_base uploads_base connect_base meter_events_base client_id])
|
|
@@ -93,5 +96,9 @@ module Stripe
|
|
|
93
96
|
data = JSON.parse(data) if data.is_a?(String)
|
|
94
97
|
Util.convert_to_stripe_object(data, {}, api_mode: api_mode, requestor: @requestor)
|
|
95
98
|
end
|
|
99
|
+
|
|
100
|
+
def notification_handler(webhook_secret, &fallback_callback)
|
|
101
|
+
::Stripe::StripeEventNotificationHandler.new(self, webhook_secret, &fallback_callback)
|
|
102
|
+
end
|
|
96
103
|
end
|
|
97
104
|
end
|