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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Payments
|
|
7
|
+
class SettlementAllocationIntentUpdateParams < ::Stripe::RequestParams
|
|
8
|
+
class Amount < ::Stripe::RequestParams
|
|
9
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
10
|
+
attr_accessor :value
|
|
11
|
+
# 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).
|
|
12
|
+
attr_accessor :currency
|
|
13
|
+
|
|
14
|
+
def initialize(value: nil, currency: nil)
|
|
15
|
+
@value = value
|
|
16
|
+
@currency = currency
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
# The new amount for the SettlementAllocationIntent. Only amount.value can be updated and currency must remain same.
|
|
20
|
+
attr_accessor :amount
|
|
21
|
+
# The new reference for the SettlementAllocationIntent.
|
|
22
|
+
attr_accessor :reference
|
|
23
|
+
|
|
24
|
+
def initialize(amount: nil, reference: nil)
|
|
25
|
+
@amount = amount
|
|
26
|
+
@reference = reference
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Payments
|
|
7
|
+
module SettlementAllocationIntents
|
|
8
|
+
class SplitCreateParams < ::Stripe::RequestParams
|
|
9
|
+
class Amount < ::Stripe::RequestParams
|
|
10
|
+
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
|
|
11
|
+
attr_accessor :value
|
|
12
|
+
# 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).
|
|
13
|
+
attr_accessor :currency
|
|
14
|
+
|
|
15
|
+
def initialize(value: nil, currency: nil)
|
|
16
|
+
@value = value
|
|
17
|
+
@currency = currency
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
# The target account for settling the SettlementAllocationIntentSplit.
|
|
21
|
+
attr_accessor :account
|
|
22
|
+
# The amount and currency of the SettlementAllocationIntentSplit.
|
|
23
|
+
attr_accessor :amount
|
|
24
|
+
# Metadata associated with the SettlementAllocationIntentSplit.
|
|
25
|
+
attr_accessor :metadata
|
|
26
|
+
# The type of the fund transfer.
|
|
27
|
+
attr_accessor :type
|
|
28
|
+
|
|
29
|
+
def initialize(account: nil, amount: nil, metadata: nil, type: nil)
|
|
30
|
+
@account = account
|
|
31
|
+
@amount = amount
|
|
32
|
+
@metadata = metadata
|
|
33
|
+
@type = type
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Tax
|
|
7
|
+
class ManualRuleCreateParams < ::Stripe::RequestParams
|
|
8
|
+
class Location < ::Stripe::RequestParams
|
|
9
|
+
# Country ISO-3166.
|
|
10
|
+
attr_accessor :country
|
|
11
|
+
# State ISO-3166.
|
|
12
|
+
attr_accessor :state
|
|
13
|
+
|
|
14
|
+
def initialize(country: nil, state: nil)
|
|
15
|
+
@country = country
|
|
16
|
+
@state = state
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
class Product < ::Stripe::RequestParams
|
|
21
|
+
# The type of the product.
|
|
22
|
+
attr_accessor :type
|
|
23
|
+
# The licensed item identifier.
|
|
24
|
+
attr_accessor :licensed_item
|
|
25
|
+
# The metered item identifier.
|
|
26
|
+
attr_accessor :metered_item
|
|
27
|
+
# The tax code for the product.
|
|
28
|
+
attr_accessor :tax_code
|
|
29
|
+
|
|
30
|
+
def initialize(type: nil, licensed_item: nil, metered_item: nil, tax_code: nil)
|
|
31
|
+
@type = type
|
|
32
|
+
@licensed_item = licensed_item
|
|
33
|
+
@metered_item = metered_item
|
|
34
|
+
@tax_code = tax_code
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
class ScheduledTaxRate < ::Stripe::RequestParams
|
|
39
|
+
class Rate < ::Stripe::RequestParams
|
|
40
|
+
# Country of the tax rate.
|
|
41
|
+
attr_accessor :country
|
|
42
|
+
# Description of the tax rate.
|
|
43
|
+
attr_accessor :description
|
|
44
|
+
# Display name of the tax rate as it will be shown on the invoice.
|
|
45
|
+
attr_accessor :display_name
|
|
46
|
+
# Jurisdiction of the tax rate should apply as it will be shown on the invoice.
|
|
47
|
+
attr_accessor :jurisdiction
|
|
48
|
+
# Percentage of the tax rate. Must be positive and maximum of 4 decimal points.
|
|
49
|
+
attr_accessor :percentage
|
|
50
|
+
# State of the tax rate.
|
|
51
|
+
attr_accessor :state
|
|
52
|
+
|
|
53
|
+
def initialize(
|
|
54
|
+
country: nil,
|
|
55
|
+
description: nil,
|
|
56
|
+
display_name: nil,
|
|
57
|
+
jurisdiction: nil,
|
|
58
|
+
percentage: nil,
|
|
59
|
+
state: nil
|
|
60
|
+
)
|
|
61
|
+
@country = country
|
|
62
|
+
@description = description
|
|
63
|
+
@display_name = display_name
|
|
64
|
+
@jurisdiction = jurisdiction
|
|
65
|
+
@percentage = percentage
|
|
66
|
+
@state = state
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
# The tax rates to be applied.
|
|
70
|
+
attr_accessor :rates
|
|
71
|
+
# The start time for the tax rate.
|
|
72
|
+
attr_accessor :starts_at
|
|
73
|
+
|
|
74
|
+
def initialize(rates: nil, starts_at: nil)
|
|
75
|
+
@rates = rates
|
|
76
|
+
@starts_at = starts_at
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
# Location where the rule applies.
|
|
80
|
+
attr_accessor :location
|
|
81
|
+
# Products associated with the rule.
|
|
82
|
+
attr_accessor :products
|
|
83
|
+
# Tax rates to be applied.
|
|
84
|
+
attr_accessor :scheduled_tax_rates
|
|
85
|
+
|
|
86
|
+
def initialize(location: nil, products: nil, scheduled_tax_rates: nil)
|
|
87
|
+
@location = location
|
|
88
|
+
@products = products
|
|
89
|
+
@scheduled_tax_rates = scheduled_tax_rates
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Tax
|
|
7
|
+
class ManualRuleListParams < ::Stripe::RequestParams
|
|
8
|
+
# Optionally set the maximum number of results per page. Defaults to 20.
|
|
9
|
+
attr_accessor :limit
|
|
10
|
+
|
|
11
|
+
def initialize(limit: nil)
|
|
12
|
+
@limit = limit
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Tax
|
|
7
|
+
class ManualRuleUpdateParams < ::Stripe::RequestParams
|
|
8
|
+
class Location < ::Stripe::RequestParams
|
|
9
|
+
# Country ISO-3166.
|
|
10
|
+
attr_accessor :country
|
|
11
|
+
# State ISO-3166.
|
|
12
|
+
attr_accessor :state
|
|
13
|
+
|
|
14
|
+
def initialize(country: nil, state: nil)
|
|
15
|
+
@country = country
|
|
16
|
+
@state = state
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
class Product < ::Stripe::RequestParams
|
|
21
|
+
# The type of the product.
|
|
22
|
+
attr_accessor :type
|
|
23
|
+
# The licensed item identifier.
|
|
24
|
+
attr_accessor :licensed_item
|
|
25
|
+
# The metered item identifier.
|
|
26
|
+
attr_accessor :metered_item
|
|
27
|
+
# The tax code for the product.
|
|
28
|
+
attr_accessor :tax_code
|
|
29
|
+
|
|
30
|
+
def initialize(type: nil, licensed_item: nil, metered_item: nil, tax_code: nil)
|
|
31
|
+
@type = type
|
|
32
|
+
@licensed_item = licensed_item
|
|
33
|
+
@metered_item = metered_item
|
|
34
|
+
@tax_code = tax_code
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
class ScheduledTaxRate < ::Stripe::RequestParams
|
|
39
|
+
class Rate < ::Stripe::RequestParams
|
|
40
|
+
# Country of the tax rate.
|
|
41
|
+
attr_accessor :country
|
|
42
|
+
# Description of the tax rate.
|
|
43
|
+
attr_accessor :description
|
|
44
|
+
# Display name of the tax rate as it will be shown on the invoice.
|
|
45
|
+
attr_accessor :display_name
|
|
46
|
+
# Jurisdiction of the tax rate should apply as it will be shown on the invoice.
|
|
47
|
+
attr_accessor :jurisdiction
|
|
48
|
+
# Percentage of the tax rate. Must be positive and maximum of 4 decimal points.
|
|
49
|
+
attr_accessor :percentage
|
|
50
|
+
# State of the tax rate.
|
|
51
|
+
attr_accessor :state
|
|
52
|
+
|
|
53
|
+
def initialize(
|
|
54
|
+
country: nil,
|
|
55
|
+
description: nil,
|
|
56
|
+
display_name: nil,
|
|
57
|
+
jurisdiction: nil,
|
|
58
|
+
percentage: nil,
|
|
59
|
+
state: nil
|
|
60
|
+
)
|
|
61
|
+
@country = country
|
|
62
|
+
@description = description
|
|
63
|
+
@display_name = display_name
|
|
64
|
+
@jurisdiction = jurisdiction
|
|
65
|
+
@percentage = percentage
|
|
66
|
+
@state = state
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
# The tax rates to be applied.
|
|
70
|
+
attr_accessor :rates
|
|
71
|
+
# The start time for the tax rate.
|
|
72
|
+
attr_accessor :starts_at
|
|
73
|
+
|
|
74
|
+
def initialize(rates: nil, starts_at: nil)
|
|
75
|
+
@rates = rates
|
|
76
|
+
@starts_at = starts_at
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
# Location where the rule applies.
|
|
80
|
+
attr_accessor :location
|
|
81
|
+
# Products associated with the rule.
|
|
82
|
+
attr_accessor :products
|
|
83
|
+
# Tax rates to be applied.
|
|
84
|
+
attr_accessor :scheduled_tax_rates
|
|
85
|
+
|
|
86
|
+
def initialize(location: nil, products: nil, scheduled_tax_rates: nil)
|
|
87
|
+
@location = location
|
|
88
|
+
@products = products
|
|
89
|
+
@scheduled_tax_rates = scheduled_tax_rates
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -13,7 +13,7 @@ module Stripe
|
|
|
13
13
|
attr_accessor :enabled_events
|
|
14
14
|
# Specifies which fields in the response should be expanded.
|
|
15
15
|
attr_accessor :expand
|
|
16
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
16
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
17
17
|
attr_accessor :metadata
|
|
18
18
|
# The URL of the webhook endpoint.
|
|
19
19
|
attr_accessor :url
|
|
@@ -11,7 +11,7 @@ module Stripe
|
|
|
11
11
|
attr_accessor :enabled_events
|
|
12
12
|
# Specifies which fields in the response should be expanded.
|
|
13
13
|
attr_accessor :expand
|
|
14
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
14
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
15
15
|
attr_accessor :metadata
|
|
16
16
|
# The URL of the webhook endpoint.
|
|
17
17
|
attr_accessor :url
|
data/lib/stripe/params.rb
CHANGED
|
@@ -473,6 +473,9 @@ require "stripe/params/setup_intent_list_params"
|
|
|
473
473
|
require "stripe/params/setup_intent_retrieve_params"
|
|
474
474
|
require "stripe/params/setup_intent_update_params"
|
|
475
475
|
require "stripe/params/setup_intent_verify_microdeposits_params"
|
|
476
|
+
require "stripe/params/shared_payment/granted_token_create_params"
|
|
477
|
+
require "stripe/params/shared_payment/granted_token_retrieve_params"
|
|
478
|
+
require "stripe/params/shared_payment/granted_token_update_params"
|
|
476
479
|
require "stripe/params/shipping_rate_create_params"
|
|
477
480
|
require "stripe/params/shipping_rate_list_params"
|
|
478
481
|
require "stripe/params/shipping_rate_retrieve_params"
|
|
@@ -588,6 +591,8 @@ require "stripe/params/test_helpers/issuing/transaction_create_force_capture_par
|
|
|
588
591
|
require "stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params"
|
|
589
592
|
require "stripe/params/test_helpers/issuing/transaction_refund_params"
|
|
590
593
|
require "stripe/params/test_helpers/refund_expire_params"
|
|
594
|
+
require "stripe/params/test_helpers/shared_payment/granted_token_create_params"
|
|
595
|
+
require "stripe/params/test_helpers/shared_payment/granted_token_update_params"
|
|
591
596
|
require "stripe/params/test_helpers/terminal/reader_present_payment_method_params"
|
|
592
597
|
require "stripe/params/test_helpers/terminal/reader_succeed_input_collection_params"
|
|
593
598
|
require "stripe/params/test_helpers/terminal/reader_timeout_input_collection_params"
|
|
@@ -798,6 +803,12 @@ require "stripe/params/v2/core/vault/us_bank_account_list_params"
|
|
|
798
803
|
require "stripe/params/v2/core/vault/us_bank_account_retrieve_params"
|
|
799
804
|
require "stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params"
|
|
800
805
|
require "stripe/params/v2/core/vault/us_bank_account_update_params"
|
|
806
|
+
require "stripe/params/v2/iam/api_key_create_params"
|
|
807
|
+
require "stripe/params/v2/iam/api_key_expire_params"
|
|
808
|
+
require "stripe/params/v2/iam/api_key_list_params"
|
|
809
|
+
require "stripe/params/v2/iam/api_key_retrieve_params"
|
|
810
|
+
require "stripe/params/v2/iam/api_key_rotate_params"
|
|
811
|
+
require "stripe/params/v2/iam/api_key_update_params"
|
|
801
812
|
require "stripe/params/v2/money_management/adjustment_list_params"
|
|
802
813
|
require "stripe/params/v2/money_management/adjustment_retrieve_params"
|
|
803
814
|
require "stripe/params/v2/money_management/currency_conversion_create_params"
|
|
@@ -850,9 +861,22 @@ require "stripe/params/v2/payments/off_session_payment_capture_params"
|
|
|
850
861
|
require "stripe/params/v2/payments/off_session_payment_create_params"
|
|
851
862
|
require "stripe/params/v2/payments/off_session_payment_list_params"
|
|
852
863
|
require "stripe/params/v2/payments/off_session_payment_retrieve_params"
|
|
864
|
+
require "stripe/params/v2/payments/settlement_allocation_intent_cancel_params"
|
|
865
|
+
require "stripe/params/v2/payments/settlement_allocation_intent_create_params"
|
|
866
|
+
require "stripe/params/v2/payments/settlement_allocation_intent_retrieve_params"
|
|
867
|
+
require "stripe/params/v2/payments/settlement_allocation_intent_submit_params"
|
|
868
|
+
require "stripe/params/v2/payments/settlement_allocation_intent_update_params"
|
|
869
|
+
require "stripe/params/v2/payments/settlement_allocation_intents/split_cancel_params"
|
|
870
|
+
require "stripe/params/v2/payments/settlement_allocation_intents/split_create_params"
|
|
871
|
+
require "stripe/params/v2/payments/settlement_allocation_intents/split_retrieve_params"
|
|
853
872
|
require "stripe/params/v2/reporting/report_retrieve_params"
|
|
854
873
|
require "stripe/params/v2/reporting/report_run_create_params"
|
|
855
874
|
require "stripe/params/v2/reporting/report_run_retrieve_params"
|
|
875
|
+
require "stripe/params/v2/tax/manual_rule_create_params"
|
|
876
|
+
require "stripe/params/v2/tax/manual_rule_deactivate_params"
|
|
877
|
+
require "stripe/params/v2/tax/manual_rule_list_params"
|
|
878
|
+
require "stripe/params/v2/tax/manual_rule_retrieve_params"
|
|
879
|
+
require "stripe/params/v2/tax/manual_rule_update_params"
|
|
856
880
|
require "stripe/params/v2/test_helpers/financial_address_credit_params"
|
|
857
881
|
require "stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params"
|
|
858
882
|
require "stripe/params/v2/test_helpers/money_management_recipient_verifications_params"
|
|
@@ -78,7 +78,7 @@ module Stripe
|
|
|
78
78
|
attr_reader :line2
|
|
79
79
|
# ZIP or postal code.
|
|
80
80
|
attr_reader :postal_code
|
|
81
|
-
# State, county, province, or region.
|
|
81
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
82
82
|
attr_reader :state
|
|
83
83
|
|
|
84
84
|
def self.inner_class_types
|
|
@@ -300,7 +300,7 @@ module Stripe
|
|
|
300
300
|
attr_reader :line2
|
|
301
301
|
# ZIP or postal code.
|
|
302
302
|
attr_reader :postal_code
|
|
303
|
-
# State, county, province, or region.
|
|
303
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
304
304
|
attr_reader :state
|
|
305
305
|
|
|
306
306
|
def self.inner_class_types
|
|
@@ -432,13 +432,13 @@ module Stripe
|
|
|
432
432
|
|
|
433
433
|
class Verification < ::Stripe::StripeObject
|
|
434
434
|
class Document < ::Stripe::StripeObject
|
|
435
|
-
# The back of a document returned by a [file upload](https://stripe.com
|
|
435
|
+
# The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file).
|
|
436
436
|
attr_reader :back
|
|
437
437
|
# A user-displayable string describing the verification state of this document.
|
|
438
438
|
attr_reader :details
|
|
439
439
|
# One of `document_corrupt`, `document_expired`, `document_failed_copy`, `document_failed_greyscale`, `document_failed_other`, `document_failed_test_mode`, `document_fraudulent`, `document_incomplete`, `document_invalid`, `document_manipulated`, `document_not_readable`, `document_not_uploaded`, `document_type_not_supported`, or `document_too_large`. A machine-readable code specifying the verification state for this document.
|
|
440
440
|
attr_reader :details_code
|
|
441
|
-
# The front of a document returned by a [file upload](https://stripe.com
|
|
441
|
+
# The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file).
|
|
442
442
|
attr_reader :front
|
|
443
443
|
|
|
444
444
|
def self.inner_class_types
|
|
@@ -466,11 +466,11 @@ module Stripe
|
|
|
466
466
|
attr_reader :address_kana
|
|
467
467
|
# The Kanji variation of the company's primary address (Japan only).
|
|
468
468
|
attr_reader :address_kanji
|
|
469
|
-
# Whether the company's directors have been provided. This Boolean will be `true` if you've manually indicated that all directors are provided via [the `directors_provided` parameter](https://stripe.com/
|
|
469
|
+
# Whether the company's directors have been provided. This Boolean will be `true` if you've manually indicated that all directors are provided via [the `directors_provided` parameter](https://docs.stripe.com/api/accounts/update#update_account-company-directors_provided).
|
|
470
470
|
attr_reader :directors_provided
|
|
471
471
|
# This hash is used to attest that the director information provided to Stripe is both current and correct.
|
|
472
472
|
attr_reader :directorship_declaration
|
|
473
|
-
# Whether the company's executives have been provided. This Boolean will be `true` if you've manually indicated that all executives are provided via [the `executives_provided` parameter](https://stripe.com/
|
|
473
|
+
# Whether the company's executives have been provided. This Boolean will be `true` if you've manually indicated that all executives are provided via [the `executives_provided` parameter](https://docs.stripe.com/api/accounts/update#update_account-company-executives_provided), or if Stripe determined that sufficient executives were provided.
|
|
474
474
|
attr_reader :executives_provided
|
|
475
475
|
# The export license ID number of the company, also referred as Import Export Code (India only).
|
|
476
476
|
attr_reader :export_license_id
|
|
@@ -482,7 +482,7 @@ module Stripe
|
|
|
482
482
|
attr_reader :name_kana
|
|
483
483
|
# The Kanji variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
|
|
484
484
|
attr_reader :name_kanji
|
|
485
|
-
# Whether the company's owners have been provided. This Boolean will be `true` if you've manually indicated that all owners are provided via [the `owners_provided` parameter](https://stripe.com/
|
|
485
|
+
# Whether the company's owners have been provided. This Boolean will be `true` if you've manually indicated that all owners are provided via [the `owners_provided` parameter](https://docs.stripe.com/api/accounts/update#update_account-company-owners_provided), or if Stripe determined that sufficient owners were provided. Stripe determines ownership requirements using both the number of owners provided and their total percent ownership (calculated by adding the `percent_ownership` of each owner together).
|
|
486
486
|
attr_reader :owners_provided
|
|
487
487
|
# This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
|
|
488
488
|
attr_reader :ownership_declaration
|
|
@@ -494,7 +494,7 @@ module Stripe
|
|
|
494
494
|
attr_reader :registration_date
|
|
495
495
|
# This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
|
|
496
496
|
attr_reader :representative_declaration
|
|
497
|
-
# The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/
|
|
497
|
+
# The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://docs.stripe.com/connect/identity-verification#business-structure) for more details.
|
|
498
498
|
attr_reader :structure
|
|
499
499
|
# Whether the company's business ID number was provided.
|
|
500
500
|
attr_reader :tax_id_provided
|
|
@@ -598,7 +598,7 @@ module Stripe
|
|
|
598
598
|
attr_reader :dashboard
|
|
599
599
|
# Attribute for field fees
|
|
600
600
|
attr_reader :fees
|
|
601
|
-
# `true` if the Connect application retrieving the resource controls the account and can therefore exercise [platform controls](https://stripe.com/
|
|
601
|
+
# `true` if the Connect application retrieving the resource controls the account and can therefore exercise [platform controls](https://docs.stripe.com/connect/platform-controls-for-standard-accounts). Otherwise, this field is null.
|
|
602
602
|
attr_reader :is_controller
|
|
603
603
|
# Attribute for field losses
|
|
604
604
|
attr_reader :losses
|
|
@@ -626,9 +626,9 @@ module Stripe
|
|
|
626
626
|
|
|
627
627
|
class FutureRequirements < ::Stripe::StripeObject
|
|
628
628
|
class Alternative < ::Stripe::StripeObject
|
|
629
|
-
# Fields that can be provided to
|
|
629
|
+
# Fields that can be provided to resolve all fields in `original_fields_due`.
|
|
630
630
|
attr_reader :alternative_fields_due
|
|
631
|
-
# Fields that are due and can be
|
|
631
|
+
# Fields that are due and can be resolved by providing all fields in `alternative_fields_due`.
|
|
632
632
|
attr_reader :original_fields_due
|
|
633
633
|
|
|
634
634
|
def self.inner_class_types
|
|
@@ -656,21 +656,21 @@ module Stripe
|
|
|
656
656
|
@field_remappings = {}
|
|
657
657
|
end
|
|
658
658
|
end
|
|
659
|
-
# Fields that are due and can be
|
|
659
|
+
# Fields that are due and can be resolved by providing the corresponding alternative fields instead. Many alternatives can list the same `original_fields_due`, and any of these alternatives can serve as a pathway for attempting to resolve the fields again. Re-providing `original_fields_due` also serves as a pathway for attempting to resolve the fields again.
|
|
660
660
|
attr_reader :alternatives
|
|
661
661
|
# Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning.
|
|
662
662
|
attr_reader :current_deadline
|
|
663
|
-
# Fields that need to be
|
|
663
|
+
# Fields that need to be resolved to keep the account enabled. If not resolved by `future_requirements[current_deadline]`, these fields will transition to the main `requirements` hash.
|
|
664
664
|
attr_reader :currently_due
|
|
665
665
|
# This is typed as an enum for consistency with `requirements.disabled_reason`.
|
|
666
666
|
attr_reader :disabled_reason
|
|
667
|
-
#
|
|
667
|
+
# Details about validation and verification failures for `due` requirements that must be resolved.
|
|
668
668
|
attr_reader :errors
|
|
669
669
|
# Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well.
|
|
670
670
|
attr_reader :eventually_due
|
|
671
|
-
# Fields that
|
|
671
|
+
# Fields that haven't been resolved by `requirements.current_deadline`. These fields need to be resolved to enable the capability on the account. `future_requirements.past_due` is a subset of `requirements.past_due`.
|
|
672
672
|
attr_reader :past_due
|
|
673
|
-
# Fields that might become required depending on the results of
|
|
673
|
+
# Fields that are being reviewed, or might become required depending on the results of a review. If the review fails, these fields can move to `eventually_due`, `currently_due`, `past_due` or `alternatives`. Fields might appear in `eventually_due`, `currently_due`, `past_due` or `alternatives` and in `pending_verification` if one verification fails but another is still pending.
|
|
674
674
|
attr_reader :pending_verification
|
|
675
675
|
|
|
676
676
|
def self.inner_class_types
|
|
@@ -683,7 +683,7 @@ module Stripe
|
|
|
683
683
|
end
|
|
684
684
|
|
|
685
685
|
class Groups < ::Stripe::StripeObject
|
|
686
|
-
# The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/
|
|
686
|
+
# The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://docs.stripe.com/connect/platform-pricing-tools) for details.
|
|
687
687
|
attr_reader :payments_pricing
|
|
688
688
|
|
|
689
689
|
def self.inner_class_types
|
|
@@ -697,9 +697,9 @@ module Stripe
|
|
|
697
697
|
|
|
698
698
|
class Requirements < ::Stripe::StripeObject
|
|
699
699
|
class Alternative < ::Stripe::StripeObject
|
|
700
|
-
# Fields that can be provided to
|
|
700
|
+
# Fields that can be provided to resolve all fields in `original_fields_due`.
|
|
701
701
|
attr_reader :alternative_fields_due
|
|
702
|
-
# Fields that are due and can be
|
|
702
|
+
# Fields that are due and can be resolved by providing all fields in `alternative_fields_due`.
|
|
703
703
|
attr_reader :original_fields_due
|
|
704
704
|
|
|
705
705
|
def self.inner_class_types
|
|
@@ -727,21 +727,21 @@ module Stripe
|
|
|
727
727
|
@field_remappings = {}
|
|
728
728
|
end
|
|
729
729
|
end
|
|
730
|
-
# Fields that are due and can be
|
|
730
|
+
# Fields that are due and can be resolved by providing the corresponding alternative fields instead. Many alternatives can list the same `original_fields_due`, and any of these alternatives can serve as a pathway for attempting to resolve the fields again. Re-providing `original_fields_due` also serves as a pathway for attempting to resolve the fields again.
|
|
731
731
|
attr_reader :alternatives
|
|
732
732
|
# Date by which the fields in `currently_due` must be collected to keep the account enabled. These fields may disable the account sooner if the next threshold is reached before they are collected.
|
|
733
733
|
attr_reader :current_deadline
|
|
734
|
-
# Fields that need to be
|
|
734
|
+
# Fields that need to be resolved to keep the account enabled. If not resolved by `current_deadline`, these fields will appear in `past_due` as well, and the account is disabled.
|
|
735
735
|
attr_reader :currently_due
|
|
736
|
-
# If the account is disabled, this enum describes why. [Learn more about handling verification issues](https://stripe.com/
|
|
736
|
+
# If the account is disabled, this enum describes why. [Learn more about handling verification issues](https://docs.stripe.com/connect/handling-api-verification).
|
|
737
737
|
attr_reader :disabled_reason
|
|
738
|
-
#
|
|
738
|
+
# Details about validation and verification failures for `due` requirements that must be resolved.
|
|
739
739
|
attr_reader :errors
|
|
740
740
|
# Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set.
|
|
741
741
|
attr_reader :eventually_due
|
|
742
|
-
# Fields that
|
|
742
|
+
# Fields that haven't been resolved by `current_deadline`. These fields need to be resolved to enable the account.
|
|
743
743
|
attr_reader :past_due
|
|
744
|
-
# Fields that might become required depending on the results of
|
|
744
|
+
# Fields that are being reviewed, or might become required depending on the results of a review. If the review fails, these fields can move to `eventually_due`, `currently_due`, `past_due` or `alternatives`. Fields might appear in `eventually_due`, `currently_due`, `past_due` or `alternatives` and in `pending_verification` if one verification fails but another is still pending.
|
|
745
745
|
attr_reader :pending_verification
|
|
746
746
|
|
|
747
747
|
def self.inner_class_types
|
|
@@ -783,7 +783,7 @@ module Stripe
|
|
|
783
783
|
attr_reader :charges
|
|
784
784
|
# Attribute for field payouts
|
|
785
785
|
attr_reader :payouts
|
|
786
|
-
# Represents the rejected reason of the account. Empty if account is not rejected, or rejected by Stripe. Please see [this page for more details](https://stripe.com/
|
|
786
|
+
# Represents the rejected reason of the account. Empty if account is not rejected, or rejected by Stripe. Please see [this page for more details](https://docs.stripe.com/connect/)
|
|
787
787
|
attr_reader :rejected_reason
|
|
788
788
|
|
|
789
789
|
def self.inner_class_types
|
|
@@ -1186,7 +1186,7 @@ module Stripe
|
|
|
1186
1186
|
#
|
|
1187
1187
|
# See the [Standard onboarding](/connect/standard-accounts) or [Express onboarding](/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](/connect/handling-api-verification#person-information).
|
|
1188
1188
|
attr_reader :individual
|
|
1189
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
1189
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
1190
1190
|
attr_reader :metadata
|
|
1191
1191
|
# String representing the object's type. Objects of the same type share the same value.
|
|
1192
1192
|
attr_reader :object
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
# Account Links are the means by which a Connect platform grants a connected account permission to access
|
|
6
6
|
# Stripe-hosted applications, such as Connect Onboarding.
|
|
7
7
|
#
|
|
8
|
-
# Related guide: [Connect Onboarding](https://stripe.com/
|
|
8
|
+
# Related guide: [Connect Onboarding](https://docs.stripe.com/connect/custom/hosted-onboarding)
|
|
9
9
|
class AccountLink < APIResource
|
|
10
10
|
extend Stripe::APIOperations::Create
|
|
11
11
|
|