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
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module V2
|
|
6
6
|
module Core
|
|
7
|
-
#
|
|
7
|
+
# Account Links let a platform create a temporary, single-use URL that an account can use to access a Stripe-hosted flow for collecting or updating required information.
|
|
8
8
|
class AccountLink < APIResource
|
|
9
9
|
OBJECT_NAME = "v2.core.account_link"
|
|
10
10
|
def self.object_name
|
|
@@ -47,7 +47,7 @@ module Stripe
|
|
|
47
47
|
|
|
48
48
|
class AccountUpdate < ::Stripe::StripeObject
|
|
49
49
|
class CollectionOptions < ::Stripe::StripeObject
|
|
50
|
-
# Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`).
|
|
50
|
+
# Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). The default value is `currently_due`.
|
|
51
51
|
attr_reader :fields
|
|
52
52
|
# Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
|
|
53
53
|
attr_reader :future_requirements
|
|
@@ -64,7 +64,7 @@ module Stripe
|
|
|
64
64
|
attr_reader :collection_options
|
|
65
65
|
# Open Enum. A v2/account can be configured to enable certain functionality. The configuration param targets the v2/account_link to collect information for the specified v2/account configuration/s.
|
|
66
66
|
attr_reader :configurations
|
|
67
|
-
# The URL the user will be redirected to if the
|
|
67
|
+
# The URL the user will be redirected to if the Account Link is expired, has been used, or is otherwise invalid. The URL you specify should attempt to generate a new Account Link with the same parameters used to create the original Account Link, then redirect the user to the new Account Link URL so they can continue the flow. Make sure to authenticate the user before redirecting to the new Account Link, in case the URL leaks to a third party. If a new Account Link can't be generated, or if the redirect fails, you should display a useful error to the user.
|
|
68
68
|
attr_reader :refresh_url
|
|
69
69
|
# The URL that the user will be redirected to upon completing the linked flow.
|
|
70
70
|
attr_reader :return_url
|
|
@@ -77,11 +77,11 @@ module Stripe
|
|
|
77
77
|
@field_remappings = {}
|
|
78
78
|
end
|
|
79
79
|
end
|
|
80
|
-
# Open Enum. The type of
|
|
80
|
+
# Open Enum. The type of Account Link the user is requesting.
|
|
81
81
|
attr_reader :type
|
|
82
|
-
#
|
|
82
|
+
# Hash containing configuration options for an Account Link object that onboards a new account.
|
|
83
83
|
attr_reader :account_onboarding
|
|
84
|
-
#
|
|
84
|
+
# Hash containing configuration options for an Account Link that updates an existing account.
|
|
85
85
|
attr_reader :account_update
|
|
86
86
|
|
|
87
87
|
def self.inner_class_types
|
|
@@ -95,17 +95,17 @@ module Stripe
|
|
|
95
95
|
@field_remappings = {}
|
|
96
96
|
end
|
|
97
97
|
end
|
|
98
|
-
# The ID of the
|
|
98
|
+
# The ID of the connected account this Account Link applies to.
|
|
99
99
|
attr_reader :account
|
|
100
|
-
# The timestamp at which this
|
|
100
|
+
# The timestamp at which this Account Link was created.
|
|
101
101
|
attr_reader :created
|
|
102
|
-
# The timestamp at which this
|
|
102
|
+
# The timestamp at which this Account Link will expire.
|
|
103
103
|
attr_reader :expires_at
|
|
104
104
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
105
105
|
attr_reader :object
|
|
106
|
-
# The URL
|
|
106
|
+
# The URL at which the account can access the Stripe-hosted flow.
|
|
107
107
|
attr_reader :url
|
|
108
|
-
#
|
|
108
|
+
# Hash containing usage options.
|
|
109
109
|
attr_reader :use_case
|
|
110
110
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
111
111
|
attr_reader :livemode
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module V2
|
|
6
6
|
module Core
|
|
7
|
-
# Person
|
|
7
|
+
# A Person represents an individual associated with an Account's identity (for example, an owner, director, executive, or representative). Use Persons to provide and update identity information for verification and compliance.
|
|
8
8
|
class AccountPerson < APIResource
|
|
9
9
|
OBJECT_NAME = "v2.core.account_person"
|
|
10
10
|
def self.object_name
|
|
@@ -26,7 +26,7 @@ module Stripe
|
|
|
26
26
|
attr_reader :purpose
|
|
27
27
|
# State, county, province, or region.
|
|
28
28
|
attr_reader :state
|
|
29
|
-
# Town or
|
|
29
|
+
# Town or district.
|
|
30
30
|
attr_reader :town
|
|
31
31
|
|
|
32
32
|
def self.inner_class_types
|
|
@@ -99,7 +99,7 @@ module Stripe
|
|
|
99
99
|
attr_reader :postal_code
|
|
100
100
|
# State, county, province, or region.
|
|
101
101
|
attr_reader :state
|
|
102
|
-
# Town or
|
|
102
|
+
# Town or district.
|
|
103
103
|
attr_reader :town
|
|
104
104
|
|
|
105
105
|
def self.inner_class_types
|
|
@@ -271,17 +271,17 @@ module Stripe
|
|
|
271
271
|
end
|
|
272
272
|
|
|
273
273
|
class Relationship < ::Stripe::StripeObject
|
|
274
|
-
# Whether the individual is an authorizer of the Account
|
|
274
|
+
# Whether the individual is an authorizer of the Account's identity.
|
|
275
275
|
attr_reader :authorizer
|
|
276
|
-
# Whether the individual is a director of the Account
|
|
276
|
+
# Whether the individual is a director of the Account's identity. Directors are typically members of the governing board of the company or are responsible for making sure that the company meets its regulatory obligations.
|
|
277
277
|
attr_reader :director
|
|
278
278
|
# Whether the individual has significant responsibility to control, manage, or direct the organization.
|
|
279
279
|
attr_reader :executive
|
|
280
|
-
# Whether the individual is the legal guardian of the Account
|
|
280
|
+
# Whether the individual is the legal guardian of the Account's representative.
|
|
281
281
|
attr_reader :legal_guardian
|
|
282
|
-
# Whether the individual is an owner of the Account
|
|
282
|
+
# Whether the individual is an owner of the Account's identity.
|
|
283
283
|
attr_reader :owner
|
|
284
|
-
# The
|
|
284
|
+
# The percentage of the Account's identity that the individual owns.
|
|
285
285
|
attr_reader :percent_ownership
|
|
286
286
|
# Whether the individual is authorized as the primary representative of the Account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account.
|
|
287
287
|
attr_reader :representative
|
|
@@ -311,7 +311,7 @@ module Stripe
|
|
|
311
311
|
attr_reader :postal_code
|
|
312
312
|
# State, county, province, or region.
|
|
313
313
|
attr_reader :state
|
|
314
|
-
# Town or
|
|
314
|
+
# Town or district.
|
|
315
315
|
attr_reader :town
|
|
316
316
|
|
|
317
317
|
def self.inner_class_types
|
|
@@ -336,7 +336,7 @@ module Stripe
|
|
|
336
336
|
attr_reader :postal_code
|
|
337
337
|
# State, county, province, or region.
|
|
338
338
|
attr_reader :state
|
|
339
|
-
# Town or
|
|
339
|
+
# Town or district.
|
|
340
340
|
attr_reader :town
|
|
341
341
|
|
|
342
342
|
def self.inner_class_types
|
|
@@ -12,6 +12,21 @@ module Stripe
|
|
|
12
12
|
"v2.core.vault.gb_bank_account"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
class AlternativeReference < ::Stripe::StripeObject
|
|
16
|
+
# The ID of the alternative resource being referenced.
|
|
17
|
+
attr_reader :id
|
|
18
|
+
# The type of the alternative reference (e.g., external_account for V1 external accounts).
|
|
19
|
+
attr_reader :type
|
|
20
|
+
|
|
21
|
+
def self.inner_class_types
|
|
22
|
+
@inner_class_types = {}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.field_remappings
|
|
26
|
+
@field_remappings = {}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
15
30
|
class ConfirmationOfPayee < ::Stripe::StripeObject
|
|
16
31
|
class Result < ::Stripe::StripeObject
|
|
17
32
|
class Matched < ::Stripe::StripeObject
|
|
@@ -76,6 +91,8 @@ module Stripe
|
|
|
76
91
|
@field_remappings = {}
|
|
77
92
|
end
|
|
78
93
|
end
|
|
94
|
+
# The alternative reference for this payout method, if it's a projected payout method.
|
|
95
|
+
attr_reader :alternative_reference
|
|
79
96
|
# Whether this bank account object was archived. Bank account objects can be archived through
|
|
80
97
|
# the /archive API, and they will not be automatically archived by Stripe. Archived bank account objects
|
|
81
98
|
# cannot be used as outbound destinations and will not appear in the outbound destination list.
|
|
@@ -101,7 +118,10 @@ module Stripe
|
|
|
101
118
|
attr_reader :livemode
|
|
102
119
|
|
|
103
120
|
def self.inner_class_types
|
|
104
|
-
@inner_class_types = {
|
|
121
|
+
@inner_class_types = {
|
|
122
|
+
alternative_reference: AlternativeReference,
|
|
123
|
+
confirmation_of_payee: ConfirmationOfPayee,
|
|
124
|
+
}
|
|
105
125
|
end
|
|
106
126
|
|
|
107
127
|
def self.field_remappings
|
|
@@ -12,6 +12,21 @@ module Stripe
|
|
|
12
12
|
"v2.core.vault.us_bank_account"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
class AlternativeReference < ::Stripe::StripeObject
|
|
16
|
+
# The ID of the alternative resource being referenced.
|
|
17
|
+
attr_reader :id
|
|
18
|
+
# The type of the alternative reference (e.g., external_account for V1 external accounts).
|
|
19
|
+
attr_reader :type
|
|
20
|
+
|
|
21
|
+
def self.inner_class_types
|
|
22
|
+
@inner_class_types = {}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.field_remappings
|
|
26
|
+
@field_remappings = {}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
15
30
|
class Verification < ::Stripe::StripeObject
|
|
16
31
|
class MicrodepositVerificationDetails < ::Stripe::StripeObject
|
|
17
32
|
# Time when microdeposits will expire and have to be re-sent.
|
|
@@ -44,6 +59,8 @@ module Stripe
|
|
|
44
59
|
@field_remappings = {}
|
|
45
60
|
end
|
|
46
61
|
end
|
|
62
|
+
# The alternative reference for this payout method, if it's a projected payout method.
|
|
63
|
+
attr_reader :alternative_reference
|
|
47
64
|
# Whether this USBankAccount object was archived.
|
|
48
65
|
attr_reader :archived
|
|
49
66
|
# Closed Enum. The type of bank account (checking or savings).
|
|
@@ -54,6 +71,8 @@ module Stripe
|
|
|
54
71
|
attr_reader :created
|
|
55
72
|
# The fedwire routing number of the bank account.
|
|
56
73
|
attr_reader :fedwire_routing_number
|
|
74
|
+
# The ID of the Financial Connections Account used to create the bank account.
|
|
75
|
+
attr_reader :financial_connections_account
|
|
57
76
|
# The ID of the USBankAccount object.
|
|
58
77
|
attr_reader :id
|
|
59
78
|
# The last 4 digits of the account number.
|
|
@@ -68,7 +87,10 @@ module Stripe
|
|
|
68
87
|
attr_reader :livemode
|
|
69
88
|
|
|
70
89
|
def self.inner_class_types
|
|
71
|
-
@inner_class_types = {
|
|
90
|
+
@inner_class_types = {
|
|
91
|
+
alternative_reference: AlternativeReference,
|
|
92
|
+
verification: Verification,
|
|
93
|
+
}
|
|
72
94
|
end
|
|
73
95
|
|
|
74
96
|
def self.field_remappings
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Iam
|
|
7
|
+
# An API key.
|
|
8
|
+
class ApiKey < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.iam.api_key"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.iam.api_key"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class ManagedBy < ::Stripe::StripeObject
|
|
15
|
+
class Application < ::Stripe::StripeObject
|
|
16
|
+
# Identifier of the application.
|
|
17
|
+
attr_reader :id
|
|
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
|
+
# The type of entity.
|
|
28
|
+
attr_reader :type
|
|
29
|
+
# An application.
|
|
30
|
+
attr_reader :application
|
|
31
|
+
|
|
32
|
+
def self.inner_class_types
|
|
33
|
+
@inner_class_types = { application: Application }
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def self.field_remappings
|
|
37
|
+
@field_remappings = {}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
class PublishableKey < ::Stripe::StripeObject
|
|
42
|
+
# The plaintext token for the API key.
|
|
43
|
+
attr_reader :token
|
|
44
|
+
|
|
45
|
+
def self.inner_class_types
|
|
46
|
+
@inner_class_types = {}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
def self.field_remappings
|
|
50
|
+
@field_remappings = {}
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
class SecretKey < ::Stripe::StripeObject
|
|
55
|
+
class EncryptedSecret < ::Stripe::StripeObject
|
|
56
|
+
# The encrypted secret data in base64 format.
|
|
57
|
+
attr_reader :ciphertext
|
|
58
|
+
# The format of the encrypted secret (e.g., jwe_compact).
|
|
59
|
+
attr_reader :format
|
|
60
|
+
# The caller's identifier of the public key provided.
|
|
61
|
+
attr_reader :recipient_key_id
|
|
62
|
+
|
|
63
|
+
def self.inner_class_types
|
|
64
|
+
@inner_class_types = {}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def self.field_remappings
|
|
68
|
+
@field_remappings = {}
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
# The encrypted secret for the API key. Only included when a key is first created.
|
|
72
|
+
attr_reader :encrypted_secret
|
|
73
|
+
# Redacted version of the secret token for display purposes.
|
|
74
|
+
attr_reader :secret_token_redacted
|
|
75
|
+
# The plaintext token for the API key. Only included for testmode keys.
|
|
76
|
+
attr_reader :token
|
|
77
|
+
|
|
78
|
+
def self.inner_class_types
|
|
79
|
+
@inner_class_types = { encrypted_secret: EncryptedSecret }
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
def self.field_remappings
|
|
83
|
+
@field_remappings = {}
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
# Timestamp when the API key was created.
|
|
87
|
+
attr_reader :created
|
|
88
|
+
# Timestamp when the API key expires.
|
|
89
|
+
attr_reader :expires_at
|
|
90
|
+
# Unique identifier of the API key.
|
|
91
|
+
attr_reader :id
|
|
92
|
+
# List of IP addresses allowed to use this API key. Addresses use IPv4 protocol, and may be a CIDR range (e.g., [100.10.38.255, 100.10.38.0/24]).
|
|
93
|
+
attr_reader :ip_allowlist
|
|
94
|
+
# Timestamp when the API key was last used.
|
|
95
|
+
attr_reader :last_used
|
|
96
|
+
# Account that manages this API key (for keys managed by platforms).
|
|
97
|
+
attr_reader :managed_by
|
|
98
|
+
# Name of the API key.
|
|
99
|
+
attr_reader :name
|
|
100
|
+
# Note or description for the API key.
|
|
101
|
+
attr_reader :note
|
|
102
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
103
|
+
attr_reader :object
|
|
104
|
+
# Current status of the API key (e.g., active, expired).
|
|
105
|
+
attr_reader :status
|
|
106
|
+
# Type of the API key.
|
|
107
|
+
attr_reader :type
|
|
108
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
109
|
+
attr_reader :livemode
|
|
110
|
+
# Token set for a publishable key.
|
|
111
|
+
attr_reader :publishable_key
|
|
112
|
+
# Token set for a secret key.
|
|
113
|
+
attr_reader :secret_key
|
|
114
|
+
|
|
115
|
+
def self.inner_class_types
|
|
116
|
+
@inner_class_types = {
|
|
117
|
+
managed_by: ManagedBy,
|
|
118
|
+
publishable_key: PublishableKey,
|
|
119
|
+
secret_key: SecretKey,
|
|
120
|
+
}
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
def self.field_remappings
|
|
124
|
+
@field_remappings = {}
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
@@ -76,6 +76,19 @@ module Stripe
|
|
|
76
76
|
end
|
|
77
77
|
end
|
|
78
78
|
|
|
79
|
+
class ManagedBy < ::Stripe::StripeObject
|
|
80
|
+
# Enum describing the Stripe product that is managing this FinancialAccount.
|
|
81
|
+
attr_reader :type
|
|
82
|
+
|
|
83
|
+
def self.inner_class_types
|
|
84
|
+
@inner_class_types = {}
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def self.field_remappings
|
|
88
|
+
@field_remappings = {}
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
79
92
|
class Other < ::Stripe::StripeObject
|
|
80
93
|
# The type of the FinancialAccount, represented as a string. Upgrade your API version to see the type reflected in `financial_account.type`.
|
|
81
94
|
attr_reader :type
|
|
@@ -89,6 +102,21 @@ module Stripe
|
|
|
89
102
|
end
|
|
90
103
|
end
|
|
91
104
|
|
|
105
|
+
class Payments < ::Stripe::StripeObject
|
|
106
|
+
# The currency that non-settlement currency payments will be converted to.
|
|
107
|
+
attr_reader :default_currency
|
|
108
|
+
# Settlement currencies enabled for this FinancialAccount. Payments in other currencies will be automatically converted to `default_currency`.
|
|
109
|
+
attr_reader :settlement_currencies
|
|
110
|
+
|
|
111
|
+
def self.inner_class_types
|
|
112
|
+
@inner_class_types = {}
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def self.field_remappings
|
|
116
|
+
@field_remappings = {}
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
|
|
92
120
|
class StatusDetails < ::Stripe::StripeObject
|
|
93
121
|
class Closed < ::Stripe::StripeObject
|
|
94
122
|
class ForwardingSettings < ::Stripe::StripeObject
|
|
@@ -152,12 +180,17 @@ module Stripe
|
|
|
152
180
|
attr_reader :display_name
|
|
153
181
|
# Unique identifier for the object.
|
|
154
182
|
attr_reader :id
|
|
183
|
+
# If this is a managed FinancialAccount, `managed_by` indicates the product that created and manages this FinancialAccount. For managed FinancialAccounts,
|
|
184
|
+
# creation of money management resources can only be orchestrated by the managing product.
|
|
185
|
+
attr_reader :managed_by
|
|
155
186
|
# Metadata associated with the FinancialAccount.
|
|
156
187
|
attr_reader :metadata
|
|
157
188
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
158
189
|
attr_reader :object
|
|
159
190
|
# If this is a `other` FinancialAccount, this hash indicates what the actual type is. Upgrade your API version to see it reflected in `type`.
|
|
160
191
|
attr_reader :other
|
|
192
|
+
# If this is a `payments` FinancialAccount, this hash include details specific to `payments` FinancialAccount.
|
|
193
|
+
attr_reader :payments
|
|
161
194
|
# Closed Enum. An enum representing the status of the FinancialAccount. This indicates whether or not the FinancialAccount can be used for any money movement flows.
|
|
162
195
|
attr_reader :status
|
|
163
196
|
# Attribute for field status_details
|
|
@@ -173,7 +206,9 @@ module Stripe
|
|
|
173
206
|
def self.inner_class_types
|
|
174
207
|
@inner_class_types = {
|
|
175
208
|
balance: Balance,
|
|
209
|
+
managed_by: ManagedBy,
|
|
176
210
|
other: Other,
|
|
211
|
+
payments: Payments,
|
|
177
212
|
status_details: StatusDetails,
|
|
178
213
|
storage: Storage,
|
|
179
214
|
}
|
|
@@ -11,6 +11,21 @@ module Stripe
|
|
|
11
11
|
"v2.money_management.payout_method"
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
class AlternativeReference < ::Stripe::StripeObject
|
|
15
|
+
# The ID of the alternative resource being referenced.
|
|
16
|
+
attr_reader :id
|
|
17
|
+
# The type of the alternative reference (e.g., external_account for V1 external accounts).
|
|
18
|
+
attr_reader :type
|
|
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
|
+
|
|
14
29
|
class UsageStatus < ::Stripe::StripeObject
|
|
15
30
|
# Payments status - used when sending OutboundPayments (sending funds to recipients).
|
|
16
31
|
attr_reader :payments
|
|
@@ -39,6 +54,8 @@ module Stripe
|
|
|
39
54
|
attr_reader :country
|
|
40
55
|
# List of enabled flows for this bank account (wire or local).
|
|
41
56
|
attr_reader :enabled_delivery_options
|
|
57
|
+
# The ID of the Financial Connections Account used to create the bank account.
|
|
58
|
+
attr_reader :financial_connections_account
|
|
42
59
|
# The last 4 digits of the account number.
|
|
43
60
|
attr_reader :last4
|
|
44
61
|
# The routing number of the bank account, if present.
|
|
@@ -96,6 +113,8 @@ module Stripe
|
|
|
96
113
|
@field_remappings = {}
|
|
97
114
|
end
|
|
98
115
|
end
|
|
116
|
+
# The alternative reference for this payout method, if it's a projected payout method.
|
|
117
|
+
attr_reader :alternative_reference
|
|
99
118
|
# A set of available payout speeds for this payout method.
|
|
100
119
|
attr_reader :available_payout_speeds
|
|
101
120
|
# Created timestamp.
|
|
@@ -121,6 +140,7 @@ module Stripe
|
|
|
121
140
|
|
|
122
141
|
def self.inner_class_types
|
|
123
142
|
@inner_class_types = {
|
|
143
|
+
alternative_reference: AlternativeReference,
|
|
124
144
|
usage_status: UsageStatus,
|
|
125
145
|
bank_account: BankAccount,
|
|
126
146
|
card: Card,
|
|
@@ -112,6 +112,8 @@ module Stripe
|
|
|
112
112
|
attr_reader :outbound_transfer
|
|
113
113
|
# The ID of the payout object that originated the ReceivedCredit.
|
|
114
114
|
attr_reader :payout_v1
|
|
115
|
+
# The ID of the v1 transfer object that originated the ReceivedCredit.
|
|
116
|
+
attr_reader :transfer
|
|
115
117
|
|
|
116
118
|
def self.inner_class_types
|
|
117
119
|
@inner_class_types = {}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Payments
|
|
7
|
+
# SettlementAllocationIntent resource.
|
|
8
|
+
class SettlementAllocationIntent < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.payments.settlement_allocation_intent"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.payments.settlement_allocation_intent"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class Amount < ::Stripe::StripeObject
|
|
15
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
16
|
+
attr_reader :value
|
|
17
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
18
|
+
attr_reader :currency
|
|
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
|
+
class StatusDetails < ::Stripe::StripeObject
|
|
30
|
+
class Errored < ::Stripe::StripeObject
|
|
31
|
+
# Stripe doc link to debug the issue.
|
|
32
|
+
attr_reader :doc_url
|
|
33
|
+
# User Message detailing the reason code and possible resolution .
|
|
34
|
+
attr_reader :message
|
|
35
|
+
# Open Enum. The `errored` status reason.
|
|
36
|
+
attr_reader :reason_code
|
|
37
|
+
|
|
38
|
+
def self.inner_class_types
|
|
39
|
+
@inner_class_types = {}
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def self.field_remappings
|
|
43
|
+
@field_remappings = {}
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
# Hash that provides additional information regarding the reason behind a `errored` SettlementAllocationIntent status. It is only present when the SettlementAllocationIntent status is `errored`.
|
|
47
|
+
attr_reader :errored
|
|
48
|
+
|
|
49
|
+
def self.inner_class_types
|
|
50
|
+
@inner_class_types = { errored: Errored }
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def self.field_remappings
|
|
54
|
+
@field_remappings = {}
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
# The amount and currency of the SettlementAllocationIntent.
|
|
58
|
+
attr_reader :amount
|
|
59
|
+
# Timestamp at which SettlementAllocationIntent was created .
|
|
60
|
+
attr_reader :created
|
|
61
|
+
# Date when we expect to receive the funds.
|
|
62
|
+
attr_reader :expected_settlement_date
|
|
63
|
+
# FinancialAccount ID where the funds are expected.
|
|
64
|
+
attr_reader :financial_account
|
|
65
|
+
# Unique identifier for the SettlementAllocationIntent.
|
|
66
|
+
attr_reader :id
|
|
67
|
+
# List of ReceivedCredits that matched with the SettlementAllocationIntent.
|
|
68
|
+
attr_reader :linked_credits
|
|
69
|
+
# Metadata associated with the SettlementAllocationIntent.
|
|
70
|
+
attr_reader :metadata
|
|
71
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
72
|
+
attr_reader :object
|
|
73
|
+
# Reference for the SettlementAllocationIntent. This is the transaction reference used by payments processor to send funds to Stripe .
|
|
74
|
+
attr_reader :reference
|
|
75
|
+
# SettlementAllocationIntent status.
|
|
76
|
+
attr_reader :status
|
|
77
|
+
# Status details for a SettlementAllocationIntent in `errored` state.
|
|
78
|
+
attr_reader :status_details
|
|
79
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
80
|
+
attr_reader :livemode
|
|
81
|
+
|
|
82
|
+
def self.inner_class_types
|
|
83
|
+
@inner_class_types = { amount: Amount, status_details: StatusDetails }
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
def self.field_remappings
|
|
87
|
+
@field_remappings = {}
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Payments
|
|
7
|
+
# SettlementAllocationIntentSplit resource.
|
|
8
|
+
class SettlementAllocationIntentSplit < APIResource
|
|
9
|
+
OBJECT_NAME = "v2.payments.settlement_allocation_intent_split"
|
|
10
|
+
def self.object_name
|
|
11
|
+
"v2.payments.settlement_allocation_intent_split"
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
class Amount < ::Stripe::StripeObject
|
|
15
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
16
|
+
attr_reader :value
|
|
17
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
18
|
+
attr_reader :currency
|
|
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
|
+
class Flow < ::Stripe::StripeObject
|
|
30
|
+
# Type of the flow linked to the transaction which settled the SettlementAllocationIntentSplit. The field matching this value will contain the ID of the flow.
|
|
31
|
+
attr_reader :type
|
|
32
|
+
# If applicable, the ID of the OutboundPayment that created this transaction.
|
|
33
|
+
attr_reader :outbound_payment
|
|
34
|
+
# If applicable, the ID of the OutboundTransfer that created this transaction.
|
|
35
|
+
attr_reader :outbound_transfer
|
|
36
|
+
# If applicable, the ID of the ReceivedCredit that created this transaction.
|
|
37
|
+
attr_reader :received_credit
|
|
38
|
+
|
|
39
|
+
def self.inner_class_types
|
|
40
|
+
@inner_class_types = {}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def self.field_remappings
|
|
44
|
+
@field_remappings = {}
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
# The account id against which the SettlementAllocationIntentSplit should be settled.
|
|
48
|
+
attr_reader :account
|
|
49
|
+
# The amount and currency of the SettlementAllocationIntentSplit.
|
|
50
|
+
attr_reader :amount
|
|
51
|
+
# Timestamp at which SettlementAllocationIntentSplit was created.
|
|
52
|
+
attr_reader :created
|
|
53
|
+
# Details about the Flow object that settled the split.
|
|
54
|
+
attr_reader :flow
|
|
55
|
+
# Unique identifier for the SettlementAllocationIntentSplit.
|
|
56
|
+
attr_reader :id
|
|
57
|
+
# String representing the object's type. Objects of the same type share the same value of the object field.
|
|
58
|
+
attr_reader :object
|
|
59
|
+
# The ID of the SettlementAllocationIntent that this split belongs too.
|
|
60
|
+
attr_reader :settlement_allocation_intent
|
|
61
|
+
# The status of the SettlementAllocationIntentSplit.
|
|
62
|
+
attr_reader :status
|
|
63
|
+
# The type of the SettlementAllocationIntentSplit.
|
|
64
|
+
attr_reader :type
|
|
65
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
66
|
+
attr_reader :livemode
|
|
67
|
+
|
|
68
|
+
def self.inner_class_types
|
|
69
|
+
@inner_class_types = { amount: Amount, flow: Flow }
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
def self.field_remappings
|
|
73
|
+
@field_remappings = {}
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|