stripe 18.1.0.pre.alpha.4 → 18.2.0.pre.alpha.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/data/ca-certificates.crt +682 -518
- data/lib/stripe/api_requestor.rb +2 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +3 -0
- data/lib/stripe/event_types.rb +56 -0
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +19 -1
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_firing_event.rb +58 -0
- data/lib/stripe/events/v2_core_health_sepa_debit_delayed_resolved_event.rb +60 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_created_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_errored_event.rb +65 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_funds_not_received_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_matched_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_not_found_event.rb +38 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_settled_event.rb +44 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_canceled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_created_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_split_settled_event.rb +61 -0
- data/lib/stripe/events/v2_payments_settlement_allocation_intent_submitted_event.rb +44 -0
- data/lib/stripe/object_types.rb +6 -0
- data/lib/stripe/params/account_create_params.rb +50 -28
- data/lib/stripe/params/account_external_account_create_params.rb +2 -2
- data/lib/stripe/params/account_external_account_update_params.rb +2 -2
- data/lib/stripe/params/account_notice_update_params.rb +1 -1
- data/lib/stripe/params/account_person_create_params.rb +10 -10
- data/lib/stripe/params/account_person_update_params.rb +10 -10
- data/lib/stripe/params/account_session_create_params.rb +17 -0
- data/lib/stripe/params/account_update_params.rb +49 -27
- data/lib/stripe/params/application_fee_refund_create_params.rb +1 -1
- data/lib/stripe/params/application_fee_refund_update_params.rb +1 -1
- data/lib/stripe/params/balance_transfer_create_params.rb +1 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +2 -2
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -2
- data/lib/stripe/params/billing/credit_grant_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_event_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +7 -3
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +7 -3
- data/lib/stripe/params/billing_portal/session_create_params.rb +7 -7
- data/lib/stripe/params/charge_capture_params.rb +9 -9
- data/lib/stripe/params/charge_create_params.rb +12 -12
- data/lib/stripe/params/charge_search_params.rb +1 -1
- data/lib/stripe/params/charge_update_params.rb +10 -10
- data/lib/stripe/params/checkout/session_create_params.rb +53 -41
- data/lib/stripe/params/checkout/session_update_params.rb +27 -15
- data/lib/stripe/params/climate/order_create_params.rb +1 -1
- data/lib/stripe/params/climate/order_update_params.rb +1 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +6 -6
- data/lib/stripe/params/coupon_create_params.rb +1 -1
- data/lib/stripe/params/coupon_update_params.rb +1 -1
- data/lib/stripe/params/credit_note_create_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_params.rb +1 -1
- data/lib/stripe/params/credit_note_update_params.rb +1 -1
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +2 -2
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +11 -1
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_update_params.rb +1 -1
- data/lib/stripe/params/customer_create_params.rb +5 -5
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_create_params.rb +2 -2
- data/lib/stripe/params/customer_payment_source_update_params.rb +2 -2
- data/lib/stripe/params/customer_search_params.rb +1 -1
- data/lib/stripe/params/customer_update_params.rb +7 -7
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +84 -1
- data/lib/stripe/params/dispute_update_params.rb +3 -3
- data/lib/stripe/params/external_account_create_params.rb +2 -2
- data/lib/stripe/params/external_account_update_params.rb +2 -2
- data/lib/stripe/params/file_create_params.rb +3 -3
- data/lib/stripe/params/file_link_create_params.rb +1 -1
- data/lib/stripe/params/file_link_update_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_list_params.rb +3 -3
- data/lib/stripe/params/financial_connections/session_create_params.rb +3 -3
- data/lib/stripe/params/forwarding/request_create_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_create_params.rb +6 -6
- data/lib/stripe/params/identity/verification_session_list_params.rb +3 -3
- data/lib/stripe/params/identity/verification_session_update_params.rb +5 -5
- data/lib/stripe/params/invoice_add_lines_params.rb +21 -9
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -1
- data/lib/stripe/params/invoice_create_params.rb +37 -13
- data/lib/stripe/params/invoice_create_preview_params.rb +60 -60
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +1 -1
- data/lib/stripe/params/invoice_item_create_params.rb +8 -8
- data/lib/stripe/params/invoice_item_list_params.rb +2 -2
- data/lib/stripe/params/invoice_item_update_params.rb +6 -6
- data/lib/stripe/params/invoice_line_item_update_params.rb +20 -8
- data/lib/stripe/params/invoice_list_params.rb +2 -2
- data/lib/stripe/params/invoice_remove_lines_params.rb +1 -1
- data/lib/stripe/params/invoice_search_params.rb +1 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +21 -9
- data/lib/stripe/params/invoice_update_params.rb +34 -10
- data/lib/stripe/params/issuing/authorization_approve_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/issuing/authorization_decline_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_update_params.rb +1 -1
- data/lib/stripe/params/issuing/card_create_params.rb +7 -7
- data/lib/stripe/params/issuing/card_list_params.rb +34 -1
- data/lib/stripe/params/issuing/card_update_params.rb +6 -6
- data/lib/stripe/params/issuing/cardholder_create_params.rb +11 -11
- data/lib/stripe/params/issuing/cardholder_update_params.rb +10 -10
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +5 -5
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +1 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +5 -5
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +4 -4
- data/lib/stripe/params/issuing/dispute_create_params.rb +2 -2
- data/lib/stripe/params/issuing/dispute_submit_params.rb +1 -1
- data/lib/stripe/params/issuing/dispute_update_params.rb +2 -2
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +1 -1
- data/lib/stripe/params/issuing/program_update_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_refund_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_update_params.rb +1 -1
- data/lib/stripe/params/mandate_list_params.rb +1 -1
- data/lib/stripe/params/margin_create_params.rb +1 -1
- data/lib/stripe/params/margin_update_params.rb +1 -1
- data/lib/stripe/params/order_create_params.rb +12 -12
- data/lib/stripe/params/order_update_params.rb +12 -12
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +18 -18
- data/lib/stripe/params/payment_intent_confirm_params.rb +43 -39
- data/lib/stripe/params/payment_intent_create_params.rb +61 -57
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +4 -4
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +10 -10
- data/lib/stripe/params/payment_intent_list_params.rb +1 -1
- data/lib/stripe/params/payment_intent_search_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +40 -40
- data/lib/stripe/params/payment_link_create_params.rb +32 -20
- data/lib/stripe/params/payment_link_update_params.rb +9 -9
- data/lib/stripe/params/payment_method_attach_params.rb +1 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +40 -40
- data/lib/stripe/params/payment_method_configuration_update_params.rb +40 -40
- data/lib/stripe/params/payment_method_create_params.rb +4 -4
- data/lib/stripe/params/payment_method_update_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +2 -2
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +3 -3
- data/lib/stripe/params/payment_record_report_payment_params.rb +4 -4
- data/lib/stripe/params/payment_record_report_refund_params.rb +3 -3
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/payout_reverse_params.rb +1 -1
- data/lib/stripe/params/payout_update_params.rb +1 -1
- data/lib/stripe/params/plan_create_params.rb +4 -4
- data/lib/stripe/params/plan_update_params.rb +2 -2
- data/lib/stripe/params/price_create_params.rb +6 -6
- data/lib/stripe/params/price_search_params.rb +1 -1
- data/lib/stripe/params/price_update_params.rb +3 -3
- data/lib/stripe/params/product_create_params.rb +21 -8
- data/lib/stripe/params/product_feature_create_params.rb +1 -1
- data/lib/stripe/params/product_list_params.rb +1 -1
- data/lib/stripe/params/product_search_params.rb +1 -1
- data/lib/stripe/params/product_update_params.rb +18 -5
- data/lib/stripe/params/promotion_code_create_params.rb +3 -3
- data/lib/stripe/params/promotion_code_list_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +1 -1
- data/lib/stripe/params/quote_create_params.rb +14 -14
- data/lib/stripe/params/quote_list_params.rb +2 -2
- data/lib/stripe/params/quote_update_params.rb +14 -14
- data/lib/stripe/params/radar/value_list_create_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_update_params.rb +1 -1
- data/lib/stripe/params/refund_create_params.rb +2 -2
- data/lib/stripe/params/refund_update_params.rb +1 -1
- data/lib/stripe/params/reporting/report_run_create_params.rb +2 -2
- data/lib/stripe/params/setup_intent_confirm_params.rb +6 -6
- data/lib/stripe/params/setup_intent_create_params.rb +12 -12
- data/lib/stripe/params/setup_intent_update_params.rb +8 -8
- 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_update_params.rb +15 -0
- data/lib/stripe/params/shipping_rate_create_params.rb +2 -2
- data/lib/stripe/params/shipping_rate_update_params.rb +1 -1
- data/lib/stripe/params/source_create_params.rb +3 -3
- data/lib/stripe/params/source_update_params.rb +3 -3
- data/lib/stripe/params/subscription_create_params.rb +51 -27
- data/lib/stripe/params/subscription_item_create_params.rb +15 -15
- data/lib/stripe/params/subscription_item_delete_params.rb +2 -2
- data/lib/stripe/params/subscription_item_update_params.rb +15 -15
- data/lib/stripe/params/subscription_list_params.rb +3 -3
- data/lib/stripe/params/subscription_resume_params.rb +2 -2
- data/lib/stripe/params/subscription_schedule_amend_params.rb +10 -10
- data/lib/stripe/params/subscription_schedule_create_params.rb +31 -31
- data/lib/stripe/params/subscription_schedule_update_params.rb +31 -31
- data/lib/stripe/params/subscription_search_params.rb +1 -1
- data/lib/stripe/params/subscription_update_params.rb +49 -25
- data/lib/stripe/params/tax/association_find_params.rb +1 -1
- data/lib/stripe/params/tax/calculation_create_params.rb +7 -7
- data/lib/stripe/params/tax/settings_update_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +9 -9
- data/lib/stripe/params/tax_id_create_params.rb +2 -2
- data/lib/stripe/params/tax_id_list_params.rb +2 -2
- data/lib/stripe/params/tax_rate_create_params.rb +1 -1
- data/lib/stripe/params/tax_rate_update_params.rb +1 -1
- data/lib/stripe/params/terminal/location_create_params.rb +2 -2
- data/lib/stripe/params/terminal/location_update_params.rb +2 -2
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_create_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +3 -3
- data/lib/stripe/params/terminal/reader_update_params.rb +1 -1
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +6 -6
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +5 -5
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +1 -1
- 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_update_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -1
- data/lib/stripe/params/token_create_params.rb +22 -22
- data/lib/stripe/params/topup_create_params.rb +2 -2
- data/lib/stripe/params/topup_update_params.rb +1 -1
- data/lib/stripe/params/transfer_create_params.rb +3 -3
- data/lib/stripe/params/transfer_reversal_create_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_update_params.rb +1 -1
- data/lib/stripe/params/transfer_update_params.rb +1 -1
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -1
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +5 -5
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +3 -3
- data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/intent_create_params.rb +110 -40
- data/lib/stripe/params/v2/core/account_create_params.rb +36 -24
- data/lib/stripe/params/v2/core/account_link_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +8 -8
- data/lib/stripe/params/v2/core/account_update_params.rb +41 -29
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +5 -5
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +5 -5
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +1 -1
- data/lib/stripe/params/v2/iam/api_key_create_params.rb +51 -0
- data/lib/stripe/params/v2/iam/api_key_expire_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_list_params.rb +20 -0
- data/lib/stripe/params/v2/iam/api_key_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/api_key_rotate_params.rb +46 -0
- data/lib/stripe/params/v2/iam/api_key_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +4 -1
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +4 -1
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_submit_params.rb +10 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intent_update_params.rb +31 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params.rb +12 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_create_params.rb +39 -0
- data/lib/stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/tax/manual_rule_create_params.rb +94 -0
- data/lib/stripe/params/v2/tax/manual_rule_deactivate_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_list_params.rb +17 -0
- data/lib/stripe/params/v2/tax/manual_rule_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/tax/manual_rule_update_params.rb +94 -0
- data/lib/stripe/params/webhook_endpoint_create_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_update_params.rb +1 -1
- data/lib/stripe/params.rb +24 -0
- data/lib/stripe/resources/account.rb +27 -27
- data/lib/stripe/resources/account_link.rb +1 -1
- data/lib/stripe/resources/account_notice.rb +6 -6
- data/lib/stripe/resources/account_session.rb +5 -5
- data/lib/stripe/resources/application_fee_refund.rb +2 -2
- data/lib/stripe/resources/apps/secret.rb +1 -1
- data/lib/stripe/resources/balance.rb +2 -2
- data/lib/stripe/resources/balance_settings.rb +1 -1
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/balance_transfer.rb +3 -3
- data/lib/stripe/resources/bank_account.rb +10 -10
- data/lib/stripe/resources/billing/alert.rb +2 -2
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -2
- data/lib/stripe/resources/billing/credit_grant.rb +3 -3
- data/lib/stripe/resources/billing/meter_event.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +5 -3
- data/lib/stripe/resources/billing_portal/session.rb +6 -6
- data/lib/stripe/resources/capability.rb +16 -16
- data/lib/stripe/resources/capital/financing_offer.rb +2 -2
- data/lib/stripe/resources/capital/financing_summary.rb +7 -4
- data/lib/stripe/resources/card.rb +2 -2
- data/lib/stripe/resources/cash_balance.rb +2 -2
- data/lib/stripe/resources/charge.rb +47 -35
- data/lib/stripe/resources/checkout/session.rb +19 -19
- data/lib/stripe/resources/climate/order.rb +1 -1
- data/lib/stripe/resources/confirmation_token.rb +11 -11
- data/lib/stripe/resources/coupon.rb +3 -3
- data/lib/stripe/resources/credit_note.rb +5 -5
- data/lib/stripe/resources/credit_note_line_item.rb +1 -1
- data/lib/stripe/resources/customer.rb +8 -8
- data/lib/stripe/resources/customer_balance_transaction.rb +6 -6
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +10 -10
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +63 -10
- data/lib/stripe/resources/discount.rb +5 -5
- data/lib/stripe/resources/dispute.rb +5 -5
- data/lib/stripe/resources/entitlements/active_entitlement.rb +1 -1
- data/lib/stripe/resources/event.rb +1 -1
- data/lib/stripe/resources/exchange_rate.rb +2 -2
- data/lib/stripe/resources/file.rb +4 -4
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/financial_connections/account.rb +3 -3
- data/lib/stripe/resources/financial_connections/session.rb +2 -2
- data/lib/stripe/resources/forwarding/request.rb +1 -1
- data/lib/stripe/resources/funding_instructions.rb +14 -14
- data/lib/stripe/resources/identity/blocklist_entry.rb +1 -1
- data/lib/stripe/resources/identity/verification_report.rb +9 -9
- data/lib/stripe/resources/identity/verification_session.rb +11 -11
- data/lib/stripe/resources/invoice.rb +66 -34
- data/lib/stripe/resources/invoice_item.rb +9 -9
- data/lib/stripe/resources/invoice_line_item.rb +7 -7
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/invoice_rendering_template.rb +1 -1
- data/lib/stripe/resources/issuing/authorization.rb +20 -20
- data/lib/stripe/resources/issuing/card.rb +16 -12
- data/lib/stripe/resources/issuing/cardholder.rb +14 -14
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +5 -5
- data/lib/stripe/resources/issuing/dispute.rb +7 -7
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +1 -1
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/issuing/program.rb +1 -1
- data/lib/stripe/resources/issuing/settlement.rb +2 -2
- data/lib/stripe/resources/issuing/token.rb +1 -1
- data/lib/stripe/resources/issuing/transaction.rb +13 -13
- data/lib/stripe/resources/line_item.rb +3 -3
- data/lib/stripe/resources/login_link.rb +1 -1
- data/lib/stripe/resources/margin.rb +1 -1
- data/lib/stripe/resources/order.rb +13 -13
- data/lib/stripe/resources/payment_attempt_record.rb +80 -22
- data/lib/stripe/resources/payment_intent.rb +117 -74
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +3 -3
- data/lib/stripe/resources/payment_link.rb +7 -7
- data/lib/stripe/resources/payment_method.rb +13 -13
- data/lib/stripe/resources/payment_method_configuration.rb +4 -4
- data/lib/stripe/resources/payment_method_domain.rb +1 -1
- data/lib/stripe/resources/payment_record.rb +82 -22
- data/lib/stripe/resources/payout.rb +7 -7
- data/lib/stripe/resources/person.rb +23 -23
- data/lib/stripe/resources/plan.rb +5 -5
- data/lib/stripe/resources/price.rb +6 -6
- data/lib/stripe/resources/product.rb +9 -9
- data/lib/stripe/resources/promotion_code.rb +4 -4
- data/lib/stripe/resources/quote.rb +15 -15
- data/lib/stripe/resources/quote_line.rb +5 -5
- data/lib/stripe/resources/quote_preview_invoice.rb +64 -32
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +100 -100
- data/lib/stripe/resources/radar/early_fraud_warning.rb +1 -1
- data/lib/stripe/resources/radar/value_list.rb +2 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -1
- data/lib/stripe/resources/refund.rb +3 -3
- data/lib/stripe/resources/reporting/report_run.rb +3 -3
- data/lib/stripe/resources/reporting/report_type.rb +3 -3
- data/lib/stripe/resources/reversal.rb +4 -4
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +17 -17
- data/lib/stripe/resources/setup_intent.rb +19 -19
- data/lib/stripe/resources/shared_payment/granted_token.rb +126 -0
- data/lib/stripe/resources/shipping_rate.rb +3 -3
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +1 -1
- data/lib/stripe/resources/source.rb +8 -8
- data/lib/stripe/resources/source_mandate_notification.rb +3 -3
- data/lib/stripe/resources/subscription.rb +46 -14
- data/lib/stripe/resources/subscription_item.rb +22 -22
- data/lib/stripe/resources/subscription_schedule.rb +101 -101
- data/lib/stripe/resources/tax/association.rb +3 -3
- data/lib/stripe/resources/tax/calculation.rb +12 -12
- data/lib/stripe/resources/tax/calculation_line_item.rb +7 -7
- data/lib/stripe/resources/tax/registration.rb +3 -3
- data/lib/stripe/resources/tax/settings.rb +2 -2
- data/lib/stripe/resources/tax/transaction.rb +9 -9
- data/lib/stripe/resources/tax/transaction_line_item.rb +5 -5
- data/lib/stripe/resources/tax_id.rb +4 -4
- data/lib/stripe/resources/tax_rate.rb +1 -1
- data/lib/stripe/resources/terminal/connection_token.rb +1 -1
- data/lib/stripe/resources/terminal/location.rb +3 -3
- data/lib/stripe/resources/terminal/reader.rb +10 -10
- data/lib/stripe/resources/token.rb +4 -4
- data/lib/stripe/resources/topup.rb +3 -3
- data/lib/stripe/resources/transfer.rb +5 -5
- data/lib/stripe/resources/treasury/credit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/debit_reversal.rb +3 -3
- data/lib/stripe/resources/treasury/financial_account.rb +1 -1
- data/lib/stripe/resources/treasury/inbound_transfer.rb +5 -5
- data/lib/stripe/resources/treasury/outbound_payment.rb +6 -6
- data/lib/stripe/resources/treasury/outbound_transfer.rb +5 -5
- data/lib/stripe/resources/treasury/received_credit.rb +10 -10
- data/lib/stripe/resources/treasury/received_debit.rb +7 -7
- data/lib/stripe/resources/treasury/transaction.rb +11 -11
- data/lib/stripe/resources/treasury/transaction_entry.rb +11 -11
- data/lib/stripe/resources/v2/billing/intent_action.rb +139 -51
- data/lib/stripe/resources/v2/core/account.rb +174 -289
- data/lib/stripe/resources/v2/core/account_link.rb +11 -11
- data/lib/stripe/resources/v2/core/account_person.rb +10 -10
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +21 -1
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +23 -1
- data/lib/stripe/resources/v2/iam/api_key.rb +129 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +35 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +2 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +20 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +2 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent.rb +92 -0
- data/lib/stripe/resources/v2/payments/settlement_allocation_intent_split.rb +78 -0
- data/lib/stripe/resources/v2/tax/manual_rule.rb +115 -0
- data/lib/stripe/resources/webhook_endpoint.rb +1 -1
- data/lib/stripe/resources.rb +19 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment_service.rb +13 -0
- 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 +2 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_service.rb +0 -4
- data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -2
- data/lib/stripe/services/v2/iam/api_key_service.rb +76 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +2 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +2 -0
- data/lib/stripe/services/v2/payment_service.rb +3 -1
- data/lib/stripe/services/v2/payments/settlement_allocation_intent_service.rb +72 -0
- data/lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb +45 -0
- data/lib/stripe/services/v2/tax/manual_rule_service.rb +65 -0
- data/lib/stripe/services/v2/tax_service.rb +15 -0
- data/lib/stripe/services/v2_services.rb +3 -1
- data/lib/stripe/services.rb +10 -0
- data/lib/stripe/stripe_object.rb +11 -3
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +6022 -3221
- metadata +55 -2
data/lib/stripe/api_requestor.rb
CHANGED
|
@@ -859,6 +859,8 @@ module Stripe
|
|
|
859
859
|
AlreadyExistsError.new(error_data[:message], **opts)
|
|
860
860
|
when "blocked_by_stripe"
|
|
861
861
|
BlockedByStripeError.new(error_data[:message], **opts)
|
|
862
|
+
when "controlled_by_alternate_resource"
|
|
863
|
+
ControlledByAlternateResourceError.new(error_data[:message], **opts)
|
|
862
864
|
when "controlled_by_dashboard"
|
|
863
865
|
ControlledByDashboardError.new(error_data[:message], **opts)
|
|
864
866
|
when "feature_not_enabled"
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/errors.rb
CHANGED
data/lib/stripe/event_types.rb
CHANGED
|
@@ -137,6 +137,10 @@ module Stripe
|
|
|
137
137
|
Events::V2CoreHealthPaymentMethodErrorFiringEvent,
|
|
138
138
|
Events::V2CoreHealthPaymentMethodErrorResolvedEvent.lookup_type =>
|
|
139
139
|
Events::V2CoreHealthPaymentMethodErrorResolvedEvent,
|
|
140
|
+
Events::V2CoreHealthSepaDebitDelayedFiringEvent.lookup_type =>
|
|
141
|
+
Events::V2CoreHealthSepaDebitDelayedFiringEvent,
|
|
142
|
+
Events::V2CoreHealthSepaDebitDelayedResolvedEvent.lookup_type =>
|
|
143
|
+
Events::V2CoreHealthSepaDebitDelayedResolvedEvent,
|
|
140
144
|
Events::V2CoreHealthTrafficVolumeDropFiringEvent.lookup_type =>
|
|
141
145
|
Events::V2CoreHealthTrafficVolumeDropFiringEvent,
|
|
142
146
|
Events::V2CoreHealthTrafficVolumeDropResolvedEvent.lookup_type =>
|
|
@@ -199,6 +203,8 @@ module Stripe
|
|
|
199
203
|
Events::V2MoneyManagementOutboundTransferReturnedEvent,
|
|
200
204
|
Events::V2MoneyManagementOutboundTransferUpdatedEvent.lookup_type =>
|
|
201
205
|
Events::V2MoneyManagementOutboundTransferUpdatedEvent,
|
|
206
|
+
Events::V2MoneyManagementPayoutMethodCreatedEvent.lookup_type =>
|
|
207
|
+
Events::V2MoneyManagementPayoutMethodCreatedEvent,
|
|
202
208
|
Events::V2MoneyManagementPayoutMethodUpdatedEvent.lookup_type =>
|
|
203
209
|
Events::V2MoneyManagementPayoutMethodUpdatedEvent,
|
|
204
210
|
Events::V2MoneyManagementReceivedCreditAvailableEvent.lookup_type =>
|
|
@@ -245,6 +251,28 @@ module Stripe
|
|
|
245
251
|
Events::V2PaymentsOffSessionPaymentRequiresCaptureEvent,
|
|
246
252
|
Events::V2PaymentsOffSessionPaymentSucceededEvent.lookup_type =>
|
|
247
253
|
Events::V2PaymentsOffSessionPaymentSucceededEvent,
|
|
254
|
+
Events::V2PaymentsSettlementAllocationIntentCanceledEvent.lookup_type =>
|
|
255
|
+
Events::V2PaymentsSettlementAllocationIntentCanceledEvent,
|
|
256
|
+
Events::V2PaymentsSettlementAllocationIntentCreatedEvent.lookup_type =>
|
|
257
|
+
Events::V2PaymentsSettlementAllocationIntentCreatedEvent,
|
|
258
|
+
Events::V2PaymentsSettlementAllocationIntentErroredEvent.lookup_type =>
|
|
259
|
+
Events::V2PaymentsSettlementAllocationIntentErroredEvent,
|
|
260
|
+
Events::V2PaymentsSettlementAllocationIntentFundsNotReceivedEvent.lookup_type =>
|
|
261
|
+
Events::V2PaymentsSettlementAllocationIntentFundsNotReceivedEvent,
|
|
262
|
+
Events::V2PaymentsSettlementAllocationIntentMatchedEvent.lookup_type =>
|
|
263
|
+
Events::V2PaymentsSettlementAllocationIntentMatchedEvent,
|
|
264
|
+
Events::V2PaymentsSettlementAllocationIntentNotFoundEvent.lookup_type =>
|
|
265
|
+
Events::V2PaymentsSettlementAllocationIntentNotFoundEvent,
|
|
266
|
+
Events::V2PaymentsSettlementAllocationIntentSettledEvent.lookup_type =>
|
|
267
|
+
Events::V2PaymentsSettlementAllocationIntentSettledEvent,
|
|
268
|
+
Events::V2PaymentsSettlementAllocationIntentSplitCanceledEvent.lookup_type =>
|
|
269
|
+
Events::V2PaymentsSettlementAllocationIntentSplitCanceledEvent,
|
|
270
|
+
Events::V2PaymentsSettlementAllocationIntentSplitCreatedEvent.lookup_type =>
|
|
271
|
+
Events::V2PaymentsSettlementAllocationIntentSplitCreatedEvent,
|
|
272
|
+
Events::V2PaymentsSettlementAllocationIntentSplitSettledEvent.lookup_type =>
|
|
273
|
+
Events::V2PaymentsSettlementAllocationIntentSplitSettledEvent,
|
|
274
|
+
Events::V2PaymentsSettlementAllocationIntentSubmittedEvent.lookup_type =>
|
|
275
|
+
Events::V2PaymentsSettlementAllocationIntentSubmittedEvent,
|
|
248
276
|
Events::V2ReportingReportRunCreatedEvent.lookup_type => Events::V2ReportingReportRunCreatedEvent,
|
|
249
277
|
Events::V2ReportingReportRunFailedEvent.lookup_type => Events::V2ReportingReportRunFailedEvent,
|
|
250
278
|
Events::V2ReportingReportRunSucceededEvent.lookup_type =>
|
|
@@ -415,6 +443,10 @@ module Stripe
|
|
|
415
443
|
Events::V2CoreHealthPaymentMethodErrorFiringEventNotification,
|
|
416
444
|
Events::V2CoreHealthPaymentMethodErrorResolvedEventNotification.lookup_type =>
|
|
417
445
|
Events::V2CoreHealthPaymentMethodErrorResolvedEventNotification,
|
|
446
|
+
Events::V2CoreHealthSepaDebitDelayedFiringEventNotification.lookup_type =>
|
|
447
|
+
Events::V2CoreHealthSepaDebitDelayedFiringEventNotification,
|
|
448
|
+
Events::V2CoreHealthSepaDebitDelayedResolvedEventNotification.lookup_type =>
|
|
449
|
+
Events::V2CoreHealthSepaDebitDelayedResolvedEventNotification,
|
|
418
450
|
Events::V2CoreHealthTrafficVolumeDropFiringEventNotification.lookup_type =>
|
|
419
451
|
Events::V2CoreHealthTrafficVolumeDropFiringEventNotification,
|
|
420
452
|
Events::V2CoreHealthTrafficVolumeDropResolvedEventNotification.lookup_type =>
|
|
@@ -481,6 +513,8 @@ module Stripe
|
|
|
481
513
|
Events::V2MoneyManagementOutboundTransferReturnedEventNotification,
|
|
482
514
|
Events::V2MoneyManagementOutboundTransferUpdatedEventNotification.lookup_type =>
|
|
483
515
|
Events::V2MoneyManagementOutboundTransferUpdatedEventNotification,
|
|
516
|
+
Events::V2MoneyManagementPayoutMethodCreatedEventNotification.lookup_type =>
|
|
517
|
+
Events::V2MoneyManagementPayoutMethodCreatedEventNotification,
|
|
484
518
|
Events::V2MoneyManagementPayoutMethodUpdatedEventNotification.lookup_type =>
|
|
485
519
|
Events::V2MoneyManagementPayoutMethodUpdatedEventNotification,
|
|
486
520
|
Events::V2MoneyManagementReceivedCreditAvailableEventNotification.lookup_type =>
|
|
@@ -527,6 +561,28 @@ module Stripe
|
|
|
527
561
|
Events::V2PaymentsOffSessionPaymentRequiresCaptureEventNotification,
|
|
528
562
|
Events::V2PaymentsOffSessionPaymentSucceededEventNotification.lookup_type =>
|
|
529
563
|
Events::V2PaymentsOffSessionPaymentSucceededEventNotification,
|
|
564
|
+
Events::V2PaymentsSettlementAllocationIntentCanceledEventNotification.lookup_type =>
|
|
565
|
+
Events::V2PaymentsSettlementAllocationIntentCanceledEventNotification,
|
|
566
|
+
Events::V2PaymentsSettlementAllocationIntentCreatedEventNotification.lookup_type =>
|
|
567
|
+
Events::V2PaymentsSettlementAllocationIntentCreatedEventNotification,
|
|
568
|
+
Events::V2PaymentsSettlementAllocationIntentErroredEventNotification.lookup_type =>
|
|
569
|
+
Events::V2PaymentsSettlementAllocationIntentErroredEventNotification,
|
|
570
|
+
Events::V2PaymentsSettlementAllocationIntentFundsNotReceivedEventNotification.lookup_type =>
|
|
571
|
+
Events::V2PaymentsSettlementAllocationIntentFundsNotReceivedEventNotification,
|
|
572
|
+
Events::V2PaymentsSettlementAllocationIntentMatchedEventNotification.lookup_type =>
|
|
573
|
+
Events::V2PaymentsSettlementAllocationIntentMatchedEventNotification,
|
|
574
|
+
Events::V2PaymentsSettlementAllocationIntentNotFoundEventNotification.lookup_type =>
|
|
575
|
+
Events::V2PaymentsSettlementAllocationIntentNotFoundEventNotification,
|
|
576
|
+
Events::V2PaymentsSettlementAllocationIntentSettledEventNotification.lookup_type =>
|
|
577
|
+
Events::V2PaymentsSettlementAllocationIntentSettledEventNotification,
|
|
578
|
+
Events::V2PaymentsSettlementAllocationIntentSplitCanceledEventNotification.lookup_type =>
|
|
579
|
+
Events::V2PaymentsSettlementAllocationIntentSplitCanceledEventNotification,
|
|
580
|
+
Events::V2PaymentsSettlementAllocationIntentSplitCreatedEventNotification.lookup_type =>
|
|
581
|
+
Events::V2PaymentsSettlementAllocationIntentSplitCreatedEventNotification,
|
|
582
|
+
Events::V2PaymentsSettlementAllocationIntentSplitSettledEventNotification.lookup_type =>
|
|
583
|
+
Events::V2PaymentsSettlementAllocationIntentSplitSettledEventNotification,
|
|
584
|
+
Events::V2PaymentsSettlementAllocationIntentSubmittedEventNotification.lookup_type =>
|
|
585
|
+
Events::V2PaymentsSettlementAllocationIntentSubmittedEventNotification,
|
|
530
586
|
Events::V2ReportingReportRunCreatedEventNotification.lookup_type =>
|
|
531
587
|
Events::V2ReportingReportRunCreatedEventNotification,
|
|
532
588
|
Events::V2ReportingReportRunFailedEventNotification.lookup_type =>
|
|
@@ -11,6 +11,22 @@ module Stripe
|
|
|
11
11
|
|
|
12
12
|
class V2CoreHealthApiErrorFiringEventData < ::Stripe::StripeObject
|
|
13
13
|
class Impact < ::Stripe::StripeObject
|
|
14
|
+
class TopImpactedAccount < ::Stripe::StripeObject
|
|
15
|
+
# The account ID of the impacted connected account.
|
|
16
|
+
attr_reader :account
|
|
17
|
+
# The number of impacted requests.
|
|
18
|
+
attr_reader :impacted_requests
|
|
19
|
+
# The percentage of impacted requests.
|
|
20
|
+
attr_reader :impacted_requests_percentage
|
|
21
|
+
|
|
22
|
+
def self.inner_class_types
|
|
23
|
+
@inner_class_types = {}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.field_remappings
|
|
27
|
+
@field_remappings = {}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
14
30
|
# The canonical path.
|
|
15
31
|
attr_reader :canonical_path
|
|
16
32
|
# The error code.
|
|
@@ -23,9 +39,11 @@ module Stripe
|
|
|
23
39
|
attr_reader :impacted_requests
|
|
24
40
|
# The percentage of impacted requests.
|
|
25
41
|
attr_reader :impacted_requests_percentage
|
|
42
|
+
# The top impacted connected accounts (only for platforms).
|
|
43
|
+
attr_reader :top_impacted_accounts
|
|
26
44
|
|
|
27
45
|
def self.inner_class_types
|
|
28
|
-
@inner_class_types = {}
|
|
46
|
+
@inner_class_types = { top_impacted_accounts: TopImpactedAccount }
|
|
29
47
|
end
|
|
30
48
|
|
|
31
49
|
def self.field_remappings
|
|
@@ -11,6 +11,22 @@ module Stripe
|
|
|
11
11
|
|
|
12
12
|
class V2CoreHealthApiErrorResolvedEventData < ::Stripe::StripeObject
|
|
13
13
|
class Impact < ::Stripe::StripeObject
|
|
14
|
+
class TopImpactedAccount < ::Stripe::StripeObject
|
|
15
|
+
# The account ID of the impacted connected account.
|
|
16
|
+
attr_reader :account
|
|
17
|
+
# The number of impacted requests.
|
|
18
|
+
attr_reader :impacted_requests
|
|
19
|
+
# The percentage of impacted requests.
|
|
20
|
+
attr_reader :impacted_requests_percentage
|
|
21
|
+
|
|
22
|
+
def self.inner_class_types
|
|
23
|
+
@inner_class_types = {}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.field_remappings
|
|
27
|
+
@field_remappings = {}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
14
30
|
# The canonical path.
|
|
15
31
|
attr_reader :canonical_path
|
|
16
32
|
# The error code.
|
|
@@ -23,9 +39,11 @@ module Stripe
|
|
|
23
39
|
attr_reader :impacted_requests
|
|
24
40
|
# The percentage of impacted requests.
|
|
25
41
|
attr_reader :impacted_requests_percentage
|
|
42
|
+
# The top impacted connected accounts (only for platforms).
|
|
43
|
+
attr_reader :top_impacted_accounts
|
|
26
44
|
|
|
27
45
|
def self.inner_class_types
|
|
28
|
-
@inner_class_types = {}
|
|
46
|
+
@inner_class_types = { top_impacted_accounts: TopImpactedAccount }
|
|
29
47
|
end
|
|
30
48
|
|
|
31
49
|
def self.field_remappings
|
|
@@ -11,6 +11,22 @@ module Stripe
|
|
|
11
11
|
|
|
12
12
|
class V2CoreHealthApiLatencyFiringEventData < ::Stripe::StripeObject
|
|
13
13
|
class Impact < ::Stripe::StripeObject
|
|
14
|
+
class TopImpactedAccount < ::Stripe::StripeObject
|
|
15
|
+
# The account ID of the impacted connected account.
|
|
16
|
+
attr_reader :account
|
|
17
|
+
# The number of impacted requests.
|
|
18
|
+
attr_reader :impacted_requests
|
|
19
|
+
# The percentage of impacted requests.
|
|
20
|
+
attr_reader :impacted_requests_percentage
|
|
21
|
+
|
|
22
|
+
def self.inner_class_types
|
|
23
|
+
@inner_class_types = {}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.field_remappings
|
|
27
|
+
@field_remappings = {}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
14
30
|
# The canonical path.
|
|
15
31
|
attr_reader :canonical_path
|
|
16
32
|
# The HTTP method.
|
|
@@ -21,9 +37,11 @@ module Stripe
|
|
|
21
37
|
attr_reader :impacted_requests
|
|
22
38
|
# The percentage of impacted requests.
|
|
23
39
|
attr_reader :impacted_requests_percentage
|
|
40
|
+
# The top impacted connected accounts (only for platforms).
|
|
41
|
+
attr_reader :top_impacted_accounts
|
|
24
42
|
|
|
25
43
|
def self.inner_class_types
|
|
26
|
-
@inner_class_types = {}
|
|
44
|
+
@inner_class_types = { top_impacted_accounts: TopImpactedAccount }
|
|
27
45
|
end
|
|
28
46
|
|
|
29
47
|
def self.field_remappings
|
|
@@ -11,6 +11,22 @@ module Stripe
|
|
|
11
11
|
|
|
12
12
|
class V2CoreHealthApiLatencyResolvedEventData < ::Stripe::StripeObject
|
|
13
13
|
class Impact < ::Stripe::StripeObject
|
|
14
|
+
class TopImpactedAccount < ::Stripe::StripeObject
|
|
15
|
+
# The account ID of the impacted connected account.
|
|
16
|
+
attr_reader :account
|
|
17
|
+
# The number of impacted requests.
|
|
18
|
+
attr_reader :impacted_requests
|
|
19
|
+
# The percentage of impacted requests.
|
|
20
|
+
attr_reader :impacted_requests_percentage
|
|
21
|
+
|
|
22
|
+
def self.inner_class_types
|
|
23
|
+
@inner_class_types = {}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.field_remappings
|
|
27
|
+
@field_remappings = {}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
14
30
|
# The canonical path.
|
|
15
31
|
attr_reader :canonical_path
|
|
16
32
|
# The HTTP method.
|
|
@@ -21,9 +37,11 @@ module Stripe
|
|
|
21
37
|
attr_reader :impacted_requests
|
|
22
38
|
# The percentage of impacted requests.
|
|
23
39
|
attr_reader :impacted_requests_percentage
|
|
40
|
+
# The top impacted connected accounts (only for platforms).
|
|
41
|
+
attr_reader :top_impacted_accounts
|
|
24
42
|
|
|
25
43
|
def self.inner_class_types
|
|
26
|
-
@inner_class_types = {}
|
|
44
|
+
@inner_class_types = { top_impacted_accounts: TopImpactedAccount }
|
|
27
45
|
end
|
|
28
46
|
|
|
29
47
|
def self.field_remappings
|
|
@@ -11,6 +11,22 @@ module Stripe
|
|
|
11
11
|
|
|
12
12
|
class V2CoreHealthPaymentMethodErrorFiringEventData < ::Stripe::StripeObject
|
|
13
13
|
class Impact < ::Stripe::StripeObject
|
|
14
|
+
class TopImpactedAccount < ::Stripe::StripeObject
|
|
15
|
+
# The account ID of the impacted connected account.
|
|
16
|
+
attr_reader :account
|
|
17
|
+
# The number of impacted requests.
|
|
18
|
+
attr_reader :impacted_requests
|
|
19
|
+
# The percentage of impacted requests.
|
|
20
|
+
attr_reader :impacted_requests_percentage
|
|
21
|
+
|
|
22
|
+
def self.inner_class_types
|
|
23
|
+
@inner_class_types = {}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.field_remappings
|
|
27
|
+
@field_remappings = {}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
14
30
|
# The returned error code.
|
|
15
31
|
attr_reader :error_code
|
|
16
32
|
# The number of impacted requests.
|
|
@@ -19,9 +35,11 @@ module Stripe
|
|
|
19
35
|
attr_reader :impacted_requests_percentage
|
|
20
36
|
# The type of the payment method.
|
|
21
37
|
attr_reader :payment_method_type
|
|
38
|
+
# The top impacted connected accounts (only for platforms).
|
|
39
|
+
attr_reader :top_impacted_accounts
|
|
22
40
|
|
|
23
41
|
def self.inner_class_types
|
|
24
|
-
@inner_class_types = {}
|
|
42
|
+
@inner_class_types = { top_impacted_accounts: TopImpactedAccount }
|
|
25
43
|
end
|
|
26
44
|
|
|
27
45
|
def self.field_remappings
|
|
@@ -11,6 +11,22 @@ module Stripe
|
|
|
11
11
|
|
|
12
12
|
class V2CoreHealthPaymentMethodErrorResolvedEventData < ::Stripe::StripeObject
|
|
13
13
|
class Impact < ::Stripe::StripeObject
|
|
14
|
+
class TopImpactedAccount < ::Stripe::StripeObject
|
|
15
|
+
# The account ID of the impacted connected account.
|
|
16
|
+
attr_reader :account
|
|
17
|
+
# The number of impacted requests.
|
|
18
|
+
attr_reader :impacted_requests
|
|
19
|
+
# The percentage of impacted requests.
|
|
20
|
+
attr_reader :impacted_requests_percentage
|
|
21
|
+
|
|
22
|
+
def self.inner_class_types
|
|
23
|
+
@inner_class_types = {}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.field_remappings
|
|
27
|
+
@field_remappings = {}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
14
30
|
# The returned error code.
|
|
15
31
|
attr_reader :error_code
|
|
16
32
|
# The number of impacted requests.
|
|
@@ -19,9 +35,11 @@ module Stripe
|
|
|
19
35
|
attr_reader :impacted_requests_percentage
|
|
20
36
|
# The type of the payment method.
|
|
21
37
|
attr_reader :payment_method_type
|
|
38
|
+
# The top impacted connected accounts (only for platforms).
|
|
39
|
+
attr_reader :top_impacted_accounts
|
|
22
40
|
|
|
23
41
|
def self.inner_class_types
|
|
24
|
-
@inner_class_types = {}
|
|
42
|
+
@inner_class_types = { top_impacted_accounts: TopImpactedAccount }
|
|
25
43
|
end
|
|
26
44
|
|
|
27
45
|
def self.field_remappings
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a SEPA debit delayed alert is firing.
|
|
7
|
+
class V2CoreHealthSepaDebitDelayedFiringEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.core.health.sepa_debit_delayed.firing"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class V2CoreHealthSepaDebitDelayedFiringEventData < ::Stripe::StripeObject
|
|
13
|
+
class Impact < ::Stripe::StripeObject
|
|
14
|
+
# The number of impacted payments.
|
|
15
|
+
attr_reader :impacted_payments
|
|
16
|
+
# The percentage of impacted payments.
|
|
17
|
+
attr_reader :impacted_payments_percentage
|
|
18
|
+
|
|
19
|
+
def self.inner_class_types
|
|
20
|
+
@inner_class_types = {}
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.field_remappings
|
|
24
|
+
@field_remappings = {}
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
# A short description of the alert.
|
|
28
|
+
attr_reader :summary
|
|
29
|
+
# The user impact.
|
|
30
|
+
attr_reader :impact
|
|
31
|
+
# The time when impact on the user experience was first detected.
|
|
32
|
+
attr_reader :started_at
|
|
33
|
+
# The grouping key for the alert.
|
|
34
|
+
attr_reader :grouping_key
|
|
35
|
+
|
|
36
|
+
def self.inner_class_types
|
|
37
|
+
@inner_class_types = { impact: Impact }
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def self.field_remappings
|
|
41
|
+
@field_remappings = {}
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def self.inner_class_types
|
|
46
|
+
@inner_class_types = { data: V2CoreHealthSepaDebitDelayedFiringEventData }
|
|
47
|
+
end
|
|
48
|
+
attr_reader :data
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Occurs when a SEPA debit delayed alert is firing.
|
|
52
|
+
class V2CoreHealthSepaDebitDelayedFiringEventNotification < Stripe::V2::Core::EventNotification
|
|
53
|
+
def self.lookup_type
|
|
54
|
+
"v2.core.health.sepa_debit_delayed.firing"
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a SEPA debit delayed alert is resolved.
|
|
7
|
+
class V2CoreHealthSepaDebitDelayedResolvedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.core.health.sepa_debit_delayed.resolved"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class V2CoreHealthSepaDebitDelayedResolvedEventData < ::Stripe::StripeObject
|
|
13
|
+
class Impact < ::Stripe::StripeObject
|
|
14
|
+
# The number of impacted payments.
|
|
15
|
+
attr_reader :impacted_payments
|
|
16
|
+
# The percentage of impacted payments.
|
|
17
|
+
attr_reader :impacted_payments_percentage
|
|
18
|
+
|
|
19
|
+
def self.inner_class_types
|
|
20
|
+
@inner_class_types = {}
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def self.field_remappings
|
|
24
|
+
@field_remappings = {}
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
# A short description of the alert.
|
|
28
|
+
attr_reader :summary
|
|
29
|
+
# The time when the user experience has returned to expected levels.
|
|
30
|
+
attr_reader :resolved_at
|
|
31
|
+
# The user impact.
|
|
32
|
+
attr_reader :impact
|
|
33
|
+
# The time when impact on the user experience was first detected.
|
|
34
|
+
attr_reader :started_at
|
|
35
|
+
# The grouping key for the alert.
|
|
36
|
+
attr_reader :grouping_key
|
|
37
|
+
|
|
38
|
+
def self.inner_class_types
|
|
39
|
+
@inner_class_types = { impact: Impact }
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def self.field_remappings
|
|
43
|
+
@field_remappings = {}
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def self.inner_class_types
|
|
48
|
+
@inner_class_types = { data: V2CoreHealthSepaDebitDelayedResolvedEventData }
|
|
49
|
+
end
|
|
50
|
+
attr_reader :data
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Occurs when a SEPA debit delayed alert is resolved.
|
|
54
|
+
class V2CoreHealthSepaDebitDelayedResolvedEventNotification < Stripe::V2::Core::EventNotification
|
|
55
|
+
def self.lookup_type
|
|
56
|
+
"v2.core.health.sepa_debit_delayed.resolved"
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a PayoutMethod is created.
|
|
7
|
+
class V2MoneyManagementPayoutMethodCreatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.money_management.payout_method.created"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
13
|
+
def fetch_related_object
|
|
14
|
+
_request(
|
|
15
|
+
method: :get,
|
|
16
|
+
path: related_object.url,
|
|
17
|
+
base_address: :api,
|
|
18
|
+
opts: { stripe_context: context }
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_reader :related_object
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Occurs when a PayoutMethod is created.
|
|
25
|
+
class V2MoneyManagementPayoutMethodCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.money_management.payout_method.created"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the PayoutMethod related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
33
|
+
def fetch_related_object
|
|
34
|
+
resp = @client.raw_request(
|
|
35
|
+
:get,
|
|
36
|
+
related_object.url,
|
|
37
|
+
opts: { stripe_context: context },
|
|
38
|
+
usage: ["fetch_related_object"]
|
|
39
|
+
)
|
|
40
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a SettlementAllocationIntent is canceled.
|
|
7
|
+
class V2PaymentsSettlementAllocationIntentCanceledEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.payments.settlement_allocation_intent.canceled"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
13
|
+
def fetch_related_object
|
|
14
|
+
_request(
|
|
15
|
+
method: :get,
|
|
16
|
+
path: related_object.url,
|
|
17
|
+
base_address: :api,
|
|
18
|
+
opts: { stripe_context: context }
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_reader :related_object
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Occurs when a SettlementAllocationIntent is canceled.
|
|
25
|
+
class V2PaymentsSettlementAllocationIntentCanceledEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.payments.settlement_allocation_intent.canceled"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the SettlementAllocationIntent related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
33
|
+
def fetch_related_object
|
|
34
|
+
resp = @client.raw_request(
|
|
35
|
+
:get,
|
|
36
|
+
related_object.url,
|
|
37
|
+
opts: { stripe_context: context },
|
|
38
|
+
usage: ["fetch_related_object"]
|
|
39
|
+
)
|
|
40
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when a SettlementAllocationIntent is created.
|
|
7
|
+
class V2PaymentsSettlementAllocationIntentCreatedEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.payments.settlement_allocation_intent.created"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
13
|
+
def fetch_related_object
|
|
14
|
+
_request(
|
|
15
|
+
method: :get,
|
|
16
|
+
path: related_object.url,
|
|
17
|
+
base_address: :api,
|
|
18
|
+
opts: { stripe_context: context }
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
attr_reader :related_object
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Occurs when a SettlementAllocationIntent is created.
|
|
25
|
+
class V2PaymentsSettlementAllocationIntentCreatedEventNotification < Stripe::V2::Core::EventNotification
|
|
26
|
+
def self.lookup_type
|
|
27
|
+
"v2.payments.settlement_allocation_intent.created"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
attr_reader :related_object
|
|
31
|
+
|
|
32
|
+
# Retrieves the SettlementAllocationIntent related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
33
|
+
def fetch_related_object
|
|
34
|
+
resp = @client.raw_request(
|
|
35
|
+
:get,
|
|
36
|
+
related_object.url,
|
|
37
|
+
opts: { stripe_context: context },
|
|
38
|
+
usage: ["fetch_related_object"]
|
|
39
|
+
)
|
|
40
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Events
|
|
6
|
+
# Occurs when an error occurs in reconciling a SettlementAllocationIntent.
|
|
7
|
+
class V2PaymentsSettlementAllocationIntentErroredEvent < Stripe::V2::Core::Event
|
|
8
|
+
def self.lookup_type
|
|
9
|
+
"v2.payments.settlement_allocation_intent.errored"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class V2PaymentsSettlementAllocationIntentErroredEventData < ::Stripe::StripeObject
|
|
13
|
+
# Open Enum. The `errored` status reason.
|
|
14
|
+
attr_reader :reason_code
|
|
15
|
+
# Stripe doc link to debug the issue.
|
|
16
|
+
attr_reader :doc_url
|
|
17
|
+
# User Message detailing the reason code and possible resolution .
|
|
18
|
+
attr_reader :message
|
|
19
|
+
|
|
20
|
+
def self.inner_class_types
|
|
21
|
+
@inner_class_types = {}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def self.field_remappings
|
|
25
|
+
@field_remappings = {}
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def self.inner_class_types
|
|
30
|
+
@inner_class_types = { data: V2PaymentsSettlementAllocationIntentErroredEventData }
|
|
31
|
+
end
|
|
32
|
+
attr_reader :data, :related_object
|
|
33
|
+
|
|
34
|
+
# Retrieves the related object from the API. Makes an API request on every call.
|
|
35
|
+
def fetch_related_object
|
|
36
|
+
_request(
|
|
37
|
+
method: :get,
|
|
38
|
+
path: related_object.url,
|
|
39
|
+
base_address: :api,
|
|
40
|
+
opts: { stripe_context: context }
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Occurs when an error occurs in reconciling a SettlementAllocationIntent.
|
|
46
|
+
class V2PaymentsSettlementAllocationIntentErroredEventNotification < Stripe::V2::Core::EventNotification
|
|
47
|
+
def self.lookup_type
|
|
48
|
+
"v2.payments.settlement_allocation_intent.errored"
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
attr_reader :related_object
|
|
52
|
+
|
|
53
|
+
# Retrieves the SettlementAllocationIntent related to this EventNotification from the Stripe API. Makes an API request on every call.
|
|
54
|
+
def fetch_related_object
|
|
55
|
+
resp = @client.raw_request(
|
|
56
|
+
:get,
|
|
57
|
+
related_object.url,
|
|
58
|
+
opts: { stripe_context: context },
|
|
59
|
+
usage: ["fetch_related_object"]
|
|
60
|
+
)
|
|
61
|
+
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|