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
|
@@ -61,7 +61,7 @@ module Stripe
|
|
|
61
61
|
attr_accessor :financial_account
|
|
62
62
|
# Initiating payment method details for the object.
|
|
63
63
|
attr_accessor :initiating_payment_method_details
|
|
64
|
-
# Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/
|
|
64
|
+
# Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
|
|
65
65
|
attr_accessor :network
|
|
66
66
|
# Details about the network used for the ReceivedDebit.
|
|
67
67
|
attr_accessor :network_details
|
|
@@ -52,15 +52,6 @@ module Stripe
|
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
class Deactivate < ::Stripe::RequestParams
|
|
55
|
-
class BillingDetails < ::Stripe::RequestParams
|
|
56
|
-
# This controls the proration adjustment for the partial servicing period.
|
|
57
|
-
attr_accessor :proration_behavior
|
|
58
|
-
|
|
59
|
-
def initialize(proration_behavior: nil)
|
|
60
|
-
@proration_behavior = proration_behavior
|
|
61
|
-
end
|
|
62
|
-
end
|
|
63
|
-
|
|
64
55
|
class EffectiveAt < ::Stripe::RequestParams
|
|
65
56
|
# The timestamp at which the deactivate action will take effect. Only present if type is timestamp.
|
|
66
57
|
attr_accessor :timestamp
|
|
@@ -74,15 +65,45 @@ module Stripe
|
|
|
74
65
|
end
|
|
75
66
|
|
|
76
67
|
class PricingPlanSubscriptionDetails < ::Stripe::RequestParams
|
|
68
|
+
class Overrides < ::Stripe::RequestParams
|
|
69
|
+
class PartialPeriodBehavior < ::Stripe::RequestParams
|
|
70
|
+
class LicenseFee < ::Stripe::RequestParams
|
|
71
|
+
# The proration behavior for the partial servicing period. Defines how we prorate the license fee when the user is deactivating.
|
|
72
|
+
attr_accessor :credit_proration_behavior
|
|
73
|
+
|
|
74
|
+
def initialize(credit_proration_behavior: nil)
|
|
75
|
+
@credit_proration_behavior = credit_proration_behavior
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
# Type of the partial period behavior override.
|
|
79
|
+
attr_accessor :type
|
|
80
|
+
# Override for the license fee.
|
|
81
|
+
attr_accessor :license_fee
|
|
82
|
+
|
|
83
|
+
def initialize(type: nil, license_fee: nil)
|
|
84
|
+
@type = type
|
|
85
|
+
@license_fee = license_fee
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
# Override for the partial period behavior.
|
|
89
|
+
attr_accessor :partial_period_behaviors
|
|
90
|
+
|
|
91
|
+
def initialize(partial_period_behaviors: nil)
|
|
92
|
+
@partial_period_behaviors = partial_period_behaviors
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
# Allows users to override the partial period behavior.
|
|
96
|
+
attr_accessor :overrides
|
|
77
97
|
# ID of the pricing plan subscription to deactivate.
|
|
78
98
|
attr_accessor :pricing_plan_subscription
|
|
79
99
|
|
|
80
|
-
def initialize(pricing_plan_subscription: nil)
|
|
100
|
+
def initialize(overrides: nil, pricing_plan_subscription: nil)
|
|
101
|
+
@overrides = overrides
|
|
81
102
|
@pricing_plan_subscription = pricing_plan_subscription
|
|
82
103
|
end
|
|
83
104
|
end
|
|
84
|
-
#
|
|
85
|
-
attr_accessor :
|
|
105
|
+
# Allows users to override the collect at behavior.
|
|
106
|
+
attr_accessor :collect_at
|
|
86
107
|
# When the deactivate action will take effect. If not specified, the default behavior is on_reserve.
|
|
87
108
|
attr_accessor :effective_at
|
|
88
109
|
# Details for deactivating a pricing plan subscription.
|
|
@@ -91,12 +112,12 @@ module Stripe
|
|
|
91
112
|
attr_accessor :type
|
|
92
113
|
|
|
93
114
|
def initialize(
|
|
94
|
-
|
|
115
|
+
collect_at: nil,
|
|
95
116
|
effective_at: nil,
|
|
96
117
|
pricing_plan_subscription_details: nil,
|
|
97
118
|
type: nil
|
|
98
119
|
)
|
|
99
|
-
@
|
|
120
|
+
@collect_at = collect_at
|
|
100
121
|
@effective_at = effective_at
|
|
101
122
|
@pricing_plan_subscription_details = pricing_plan_subscription_details
|
|
102
123
|
@type = type
|
|
@@ -104,15 +125,6 @@ module Stripe
|
|
|
104
125
|
end
|
|
105
126
|
|
|
106
127
|
class Modify < ::Stripe::RequestParams
|
|
107
|
-
class BillingDetails < ::Stripe::RequestParams
|
|
108
|
-
# This controls the proration adjustment for the partial servicing period.
|
|
109
|
-
attr_accessor :proration_behavior
|
|
110
|
-
|
|
111
|
-
def initialize(proration_behavior: nil)
|
|
112
|
-
@proration_behavior = proration_behavior
|
|
113
|
-
end
|
|
114
|
-
end
|
|
115
|
-
|
|
116
128
|
class EffectiveAt < ::Stripe::RequestParams
|
|
117
129
|
# The timestamp at which the modify action will take effect. Only present if type is timestamp.
|
|
118
130
|
attr_accessor :timestamp
|
|
@@ -140,12 +152,45 @@ module Stripe
|
|
|
140
152
|
@pricing_plan_component = pricing_plan_component
|
|
141
153
|
end
|
|
142
154
|
end
|
|
155
|
+
|
|
156
|
+
class Overrides < ::Stripe::RequestParams
|
|
157
|
+
class PartialPeriodBehavior < ::Stripe::RequestParams
|
|
158
|
+
class LicenseFee < ::Stripe::RequestParams
|
|
159
|
+
# The proration behavior for the partial servicing period. Defines how we prorate the license fee when the user is upgrading.
|
|
160
|
+
attr_accessor :credit_proration_behavior
|
|
161
|
+
# The proration behavior for the partial servicing period. Defines how we prorate the license fee when the user is downgrading.
|
|
162
|
+
attr_accessor :debit_proration_behavior
|
|
163
|
+
|
|
164
|
+
def initialize(credit_proration_behavior: nil, debit_proration_behavior: nil)
|
|
165
|
+
@credit_proration_behavior = credit_proration_behavior
|
|
166
|
+
@debit_proration_behavior = debit_proration_behavior
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
# Type of the partial period behavior override.
|
|
170
|
+
attr_accessor :type
|
|
171
|
+
# Override for the license fee.
|
|
172
|
+
attr_accessor :license_fee
|
|
173
|
+
|
|
174
|
+
def initialize(type: nil, license_fee: nil)
|
|
175
|
+
@type = type
|
|
176
|
+
@license_fee = license_fee
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
# Override for the partial period behavior.
|
|
180
|
+
attr_accessor :partial_period_behaviors
|
|
181
|
+
|
|
182
|
+
def initialize(partial_period_behaviors: nil)
|
|
183
|
+
@partial_period_behaviors = partial_period_behaviors
|
|
184
|
+
end
|
|
185
|
+
end
|
|
143
186
|
# New configurations for the components of the pricing plan.
|
|
144
187
|
attr_accessor :component_configurations
|
|
145
188
|
# The ID of the new Pricing Plan, if changing plans.
|
|
146
189
|
attr_accessor :new_pricing_plan
|
|
147
190
|
# The ID of the new Pricing Plan Version to use.
|
|
148
191
|
attr_accessor :new_pricing_plan_version
|
|
192
|
+
# Allows users to override the partial period behavior.
|
|
193
|
+
attr_accessor :overrides
|
|
149
194
|
# The ID of the Pricing Plan Subscription to modify.
|
|
150
195
|
attr_accessor :pricing_plan_subscription
|
|
151
196
|
|
|
@@ -153,16 +198,18 @@ module Stripe
|
|
|
153
198
|
component_configurations: nil,
|
|
154
199
|
new_pricing_plan: nil,
|
|
155
200
|
new_pricing_plan_version: nil,
|
|
201
|
+
overrides: nil,
|
|
156
202
|
pricing_plan_subscription: nil
|
|
157
203
|
)
|
|
158
204
|
@component_configurations = component_configurations
|
|
159
205
|
@new_pricing_plan = new_pricing_plan
|
|
160
206
|
@new_pricing_plan_version = new_pricing_plan_version
|
|
207
|
+
@overrides = overrides
|
|
161
208
|
@pricing_plan_subscription = pricing_plan_subscription
|
|
162
209
|
end
|
|
163
210
|
end
|
|
164
|
-
#
|
|
165
|
-
attr_accessor :
|
|
211
|
+
# Allows users to override the collect at behavior.
|
|
212
|
+
attr_accessor :collect_at
|
|
166
213
|
# When the modify action will take effect. If not specified, the default behavior is on_reserve.
|
|
167
214
|
attr_accessor :effective_at
|
|
168
215
|
# Details for modifying a pricing plan subscription.
|
|
@@ -171,12 +218,12 @@ module Stripe
|
|
|
171
218
|
attr_accessor :type
|
|
172
219
|
|
|
173
220
|
def initialize(
|
|
174
|
-
|
|
221
|
+
collect_at: nil,
|
|
175
222
|
effective_at: nil,
|
|
176
223
|
pricing_plan_subscription_details: nil,
|
|
177
224
|
type: nil
|
|
178
225
|
)
|
|
179
|
-
@
|
|
226
|
+
@collect_at = collect_at
|
|
180
227
|
@effective_at = effective_at
|
|
181
228
|
@pricing_plan_subscription_details = pricing_plan_subscription_details
|
|
182
229
|
@type = type
|
|
@@ -196,15 +243,6 @@ module Stripe
|
|
|
196
243
|
end
|
|
197
244
|
|
|
198
245
|
class Subscribe < ::Stripe::RequestParams
|
|
199
|
-
class BillingDetails < ::Stripe::RequestParams
|
|
200
|
-
# This controls the proration adjustment for the partial servicing period.
|
|
201
|
-
attr_accessor :proration_behavior
|
|
202
|
-
|
|
203
|
-
def initialize(proration_behavior: nil)
|
|
204
|
-
@proration_behavior = proration_behavior
|
|
205
|
-
end
|
|
206
|
-
end
|
|
207
|
-
|
|
208
246
|
class EffectiveAt < ::Stripe::RequestParams
|
|
209
247
|
# The timestamp at which the subscribe action will take effect. Only present if type is timestamp.
|
|
210
248
|
attr_accessor :timestamp
|
|
@@ -232,10 +270,40 @@ module Stripe
|
|
|
232
270
|
@pricing_plan_component = pricing_plan_component
|
|
233
271
|
end
|
|
234
272
|
end
|
|
273
|
+
|
|
274
|
+
class Overrides < ::Stripe::RequestParams
|
|
275
|
+
class PartialPeriodBehavior < ::Stripe::RequestParams
|
|
276
|
+
class LicenseFee < ::Stripe::RequestParams
|
|
277
|
+
# The proration behavior for the partial servicing period. Defines how we prorate the license fee when the user is subscribing.
|
|
278
|
+
attr_accessor :debit_proration_behavior
|
|
279
|
+
|
|
280
|
+
def initialize(debit_proration_behavior: nil)
|
|
281
|
+
@debit_proration_behavior = debit_proration_behavior
|
|
282
|
+
end
|
|
283
|
+
end
|
|
284
|
+
# Type of the partial period behavior override.
|
|
285
|
+
attr_accessor :type
|
|
286
|
+
# Override for the license fee.
|
|
287
|
+
attr_accessor :license_fee
|
|
288
|
+
|
|
289
|
+
def initialize(type: nil, license_fee: nil)
|
|
290
|
+
@type = type
|
|
291
|
+
@license_fee = license_fee
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
# Override for the partial period behavior.
|
|
295
|
+
attr_accessor :partial_period_behaviors
|
|
296
|
+
|
|
297
|
+
def initialize(partial_period_behaviors: nil)
|
|
298
|
+
@partial_period_behaviors = partial_period_behaviors
|
|
299
|
+
end
|
|
300
|
+
end
|
|
235
301
|
# Configurations for the components of the pricing plan.
|
|
236
302
|
attr_accessor :component_configurations
|
|
237
303
|
# Set of [key-value pairs](/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
238
304
|
attr_accessor :metadata
|
|
305
|
+
# Allows users to override the partial period behavior.
|
|
306
|
+
attr_accessor :overrides
|
|
239
307
|
# ID of the Pricing Plan to subscribe to.
|
|
240
308
|
attr_accessor :pricing_plan
|
|
241
309
|
# Version of the Pricing Plan to use.
|
|
@@ -244,11 +312,13 @@ module Stripe
|
|
|
244
312
|
def initialize(
|
|
245
313
|
component_configurations: nil,
|
|
246
314
|
metadata: nil,
|
|
315
|
+
overrides: nil,
|
|
247
316
|
pricing_plan: nil,
|
|
248
317
|
pricing_plan_version: nil
|
|
249
318
|
)
|
|
250
319
|
@component_configurations = component_configurations
|
|
251
320
|
@metadata = metadata
|
|
321
|
+
@overrides = overrides
|
|
252
322
|
@pricing_plan = pricing_plan
|
|
253
323
|
@pricing_plan_version = pricing_plan_version
|
|
254
324
|
end
|
|
@@ -283,8 +353,8 @@ module Stripe
|
|
|
283
353
|
@metadata = metadata
|
|
284
354
|
end
|
|
285
355
|
end
|
|
286
|
-
#
|
|
287
|
-
attr_accessor :
|
|
356
|
+
# Allows users to override the collect at behavior.
|
|
357
|
+
attr_accessor :collect_at
|
|
288
358
|
# When the subscribe action will take effect. If not specified, the default behavior is on_reserve.
|
|
289
359
|
attr_accessor :effective_at
|
|
290
360
|
# Type of the action details.
|
|
@@ -295,13 +365,13 @@ module Stripe
|
|
|
295
365
|
attr_accessor :v1_subscription_details
|
|
296
366
|
|
|
297
367
|
def initialize(
|
|
298
|
-
|
|
368
|
+
collect_at: nil,
|
|
299
369
|
effective_at: nil,
|
|
300
370
|
type: nil,
|
|
301
371
|
pricing_plan_subscription_details: nil,
|
|
302
372
|
v1_subscription_details: nil
|
|
303
373
|
)
|
|
304
|
-
@
|
|
374
|
+
@collect_at = collect_at
|
|
305
375
|
@effective_at = effective_at
|
|
306
376
|
@type = type
|
|
307
377
|
@pricing_plan_subscription_details = pricing_plan_subscription_details
|
|
@@ -174,7 +174,7 @@ module Stripe
|
|
|
174
174
|
end
|
|
175
175
|
|
|
176
176
|
class Rendering < ::Stripe::RequestParams
|
|
177
|
-
#
|
|
177
|
+
# Indicates whether displayed line item prices and amounts on invoice PDFs include inclusive tax amounts. Must be either `include_inclusive_tax` or `exclude_tax`.
|
|
178
178
|
attr_accessor :amount_tax_display
|
|
179
179
|
# ID of the invoice rendering template to use for future invoices.
|
|
180
180
|
attr_accessor :template
|
|
@@ -186,13 +186,13 @@ module Stripe
|
|
|
186
186
|
end
|
|
187
187
|
# The list of up to 4 default custom fields to be displayed on invoices for this customer.
|
|
188
188
|
attr_accessor :custom_fields
|
|
189
|
-
# Default footer
|
|
189
|
+
# Default invoice footer.
|
|
190
190
|
attr_accessor :footer
|
|
191
|
-
#
|
|
191
|
+
# Sequence number to use on the customer account's next invoice. Defaults to 1.
|
|
192
192
|
attr_accessor :next_sequence
|
|
193
|
-
#
|
|
193
|
+
# Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or numbers.
|
|
194
194
|
attr_accessor :prefix
|
|
195
|
-
# Default
|
|
195
|
+
# Default invoice PDF rendering options.
|
|
196
196
|
attr_accessor :rendering
|
|
197
197
|
|
|
198
198
|
def initialize(
|
|
@@ -209,7 +209,7 @@ module Stripe
|
|
|
209
209
|
@rendering = rendering
|
|
210
210
|
end
|
|
211
211
|
end
|
|
212
|
-
# Default settings
|
|
212
|
+
# Default invoice settings for the customer account.
|
|
213
213
|
attr_accessor :invoice
|
|
214
214
|
|
|
215
215
|
def initialize(invoice: nil)
|
|
@@ -306,7 +306,7 @@ module Stripe
|
|
|
306
306
|
|
|
307
307
|
class Merchant < ::Stripe::RequestParams
|
|
308
308
|
class BacsDebitPayments < ::Stripe::RequestParams
|
|
309
|
-
# Display name for Bacs
|
|
309
|
+
# Display name for Bacs Direct Debit payments.
|
|
310
310
|
attr_accessor :display_name
|
|
311
311
|
|
|
312
312
|
def initialize(display_name: nil)
|
|
@@ -1025,7 +1025,7 @@ module Stripe
|
|
|
1025
1025
|
attr_accessor :postal_code
|
|
1026
1026
|
# State, county, province, or region.
|
|
1027
1027
|
attr_accessor :state
|
|
1028
|
-
# Town or
|
|
1028
|
+
# Town or district.
|
|
1029
1029
|
attr_accessor :town
|
|
1030
1030
|
|
|
1031
1031
|
def initialize(
|
|
@@ -1072,7 +1072,7 @@ module Stripe
|
|
|
1072
1072
|
attr_accessor :card_payments
|
|
1073
1073
|
# Settings specific to Konbini payments on the account.
|
|
1074
1074
|
attr_accessor :konbini_payments
|
|
1075
|
-
# The
|
|
1075
|
+
# The Merchant Category Code (MCC) for the Merchant Configuration. MCCs classify businesses based on the goods or services they provide.
|
|
1076
1076
|
attr_accessor :mcc
|
|
1077
1077
|
# Settings for the default text that appears on statements for language variations.
|
|
1078
1078
|
attr_accessor :script_statement_descriptor
|
|
@@ -1107,6 +1107,15 @@ module Stripe
|
|
|
1107
1107
|
class Recipient < ::Stripe::RequestParams
|
|
1108
1108
|
class Capabilities < ::Stripe::RequestParams
|
|
1109
1109
|
class BankAccounts < ::Stripe::RequestParams
|
|
1110
|
+
class Instant < ::Stripe::RequestParams
|
|
1111
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1112
|
+
attr_accessor :requested
|
|
1113
|
+
|
|
1114
|
+
def initialize(requested: nil)
|
|
1115
|
+
@requested = requested
|
|
1116
|
+
end
|
|
1117
|
+
end
|
|
1118
|
+
|
|
1110
1119
|
class Local < ::Stripe::RequestParams
|
|
1111
1120
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1112
1121
|
attr_accessor :requested
|
|
@@ -1124,12 +1133,15 @@ module Stripe
|
|
|
1124
1133
|
@requested = requested
|
|
1125
1134
|
end
|
|
1126
1135
|
end
|
|
1136
|
+
# Enables this Account to receive OutboundPayments to linked bank accounts over real time rails.
|
|
1137
|
+
attr_accessor :instant
|
|
1127
1138
|
# Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
|
|
1128
1139
|
attr_accessor :local
|
|
1129
1140
|
# Enables this Account to receive OutboundPayments to linked bank accounts over wire.
|
|
1130
1141
|
attr_accessor :wire
|
|
1131
1142
|
|
|
1132
|
-
def initialize(local: nil, wire: nil)
|
|
1143
|
+
def initialize(instant: nil, local: nil, wire: nil)
|
|
1144
|
+
@instant = instant
|
|
1133
1145
|
@local = local
|
|
1134
1146
|
@wire = wire
|
|
1135
1147
|
end
|
|
@@ -1162,7 +1174,7 @@ module Stripe
|
|
|
1162
1174
|
@requested = requested
|
|
1163
1175
|
end
|
|
1164
1176
|
end
|
|
1165
|
-
#
|
|
1177
|
+
# Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance).
|
|
1166
1178
|
attr_accessor :stripe_transfers
|
|
1167
1179
|
|
|
1168
1180
|
def initialize(stripe_transfers: nil)
|
|
@@ -1449,13 +1461,13 @@ module Stripe
|
|
|
1449
1461
|
attr_accessor :capabilities
|
|
1450
1462
|
# List of high-risk activities the business is involved in.
|
|
1451
1463
|
attr_accessor :high_risk_activities
|
|
1452
|
-
#
|
|
1464
|
+
# Description of the high-risk activities the business offers.
|
|
1453
1465
|
attr_accessor :high_risk_activities_description
|
|
1454
1466
|
# Description of the money services offered by the business.
|
|
1455
1467
|
attr_accessor :money_services_description
|
|
1456
|
-
#
|
|
1468
|
+
# Indicates whether the business operates in any prohibited countries.
|
|
1457
1469
|
attr_accessor :operates_in_prohibited_countries
|
|
1458
|
-
#
|
|
1470
|
+
# Indicates whether the business participates in any regulated activity.
|
|
1459
1471
|
attr_accessor :participates_in_regulated_activity
|
|
1460
1472
|
# Primary purpose of the stored funds.
|
|
1461
1473
|
attr_accessor :purpose_of_funds
|
|
@@ -1498,9 +1510,9 @@ module Stripe
|
|
|
1498
1510
|
attr_accessor :card_creator
|
|
1499
1511
|
# The Customer Configuration allows the Account to be used in inbound payment flows.
|
|
1500
1512
|
attr_accessor :customer
|
|
1501
|
-
#
|
|
1513
|
+
# Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set.
|
|
1502
1514
|
attr_accessor :merchant
|
|
1503
|
-
# The Recipient Configuration allows the Account to receive funds.
|
|
1515
|
+
# The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
|
|
1504
1516
|
attr_accessor :recipient
|
|
1505
1517
|
# The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
|
|
1506
1518
|
attr_accessor :storer
|
|
@@ -2124,7 +2136,7 @@ module Stripe
|
|
|
2124
2136
|
attr_accessor :postal_code
|
|
2125
2137
|
# State, county, province, or region.
|
|
2126
2138
|
attr_accessor :state
|
|
2127
|
-
# Town or
|
|
2139
|
+
# Town or district.
|
|
2128
2140
|
attr_accessor :town
|
|
2129
2141
|
|
|
2130
2142
|
def initialize(
|
|
@@ -2395,7 +2407,7 @@ module Stripe
|
|
|
2395
2407
|
attr_accessor :postal_code
|
|
2396
2408
|
# State, county, province, or region.
|
|
2397
2409
|
attr_accessor :state
|
|
2398
|
-
# Town or
|
|
2410
|
+
# Town or district.
|
|
2399
2411
|
attr_accessor :town
|
|
2400
2412
|
|
|
2401
2413
|
def initialize(
|
|
@@ -2430,7 +2442,7 @@ module Stripe
|
|
|
2430
2442
|
attr_accessor :postal_code
|
|
2431
2443
|
# State, county, province, or region.
|
|
2432
2444
|
attr_accessor :state
|
|
2433
|
-
# Town or
|
|
2445
|
+
# Town or district.
|
|
2434
2446
|
attr_accessor :town
|
|
2435
2447
|
|
|
2436
2448
|
def initialize(
|
|
@@ -2498,7 +2510,7 @@ module Stripe
|
|
|
2498
2510
|
attr_accessor :compliance_screening_description
|
|
2499
2511
|
# A document verifying the business.
|
|
2500
2512
|
attr_accessor :documents
|
|
2501
|
-
#
|
|
2513
|
+
# Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors).
|
|
2502
2514
|
attr_accessor :estimated_worker_count
|
|
2503
2515
|
# The ID numbers of a business entity.
|
|
2504
2516
|
attr_accessor :id_numbers
|
|
@@ -2560,7 +2572,7 @@ module Stripe
|
|
|
2560
2572
|
attr_accessor :purpose
|
|
2561
2573
|
# State, county, province, or region.
|
|
2562
2574
|
attr_accessor :state
|
|
2563
|
-
# Town or
|
|
2575
|
+
# Town or district.
|
|
2564
2576
|
attr_accessor :town
|
|
2565
2577
|
|
|
2566
2578
|
def initialize(
|
|
@@ -2615,7 +2627,7 @@ module Stripe
|
|
|
2615
2627
|
attr_accessor :postal_code
|
|
2616
2628
|
# State, county, province, or region.
|
|
2617
2629
|
attr_accessor :state
|
|
2618
|
-
# Town or
|
|
2630
|
+
# Town or district.
|
|
2619
2631
|
attr_accessor :town
|
|
2620
2632
|
|
|
2621
2633
|
def initialize(
|
|
@@ -2813,7 +2825,7 @@ module Stripe
|
|
|
2813
2825
|
attr_accessor :postal_code
|
|
2814
2826
|
# State, county, province, or region.
|
|
2815
2827
|
attr_accessor :state
|
|
2816
|
-
# Town or
|
|
2828
|
+
# Town or district.
|
|
2817
2829
|
attr_accessor :town
|
|
2818
2830
|
|
|
2819
2831
|
def initialize(
|
|
@@ -2848,7 +2860,7 @@ module Stripe
|
|
|
2848
2860
|
attr_accessor :postal_code
|
|
2849
2861
|
# State, county, province, or region.
|
|
2850
2862
|
attr_accessor :state
|
|
2851
|
-
# Town or
|
|
2863
|
+
# Town or district.
|
|
2852
2864
|
attr_accessor :town
|
|
2853
2865
|
|
|
2854
2866
|
def initialize(
|
|
@@ -42,7 +42,7 @@ module Stripe
|
|
|
42
42
|
|
|
43
43
|
class AccountUpdate < ::Stripe::RequestParams
|
|
44
44
|
class CollectionOptions < ::Stripe::RequestParams
|
|
45
|
-
# Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`).
|
|
45
|
+
# 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`.
|
|
46
46
|
attr_accessor :fields
|
|
47
47
|
# Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
|
|
48
48
|
attr_accessor :future_requirements
|
|
@@ -56,7 +56,7 @@ module Stripe
|
|
|
56
56
|
attr_accessor :collection_options
|
|
57
57
|
# 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.
|
|
58
58
|
attr_accessor :configurations
|
|
59
|
-
# The URL the user will be redirected to if the
|
|
59
|
+
# 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.
|
|
60
60
|
attr_accessor :refresh_url
|
|
61
61
|
# The URL that the user will be redirected to upon completing the linked flow.
|
|
62
62
|
attr_accessor :return_url
|
|
@@ -73,11 +73,11 @@ module Stripe
|
|
|
73
73
|
@return_url = return_url
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
|
-
# Open Enum. The type of
|
|
76
|
+
# Open Enum. The type of Account Link the user is requesting.
|
|
77
77
|
attr_accessor :type
|
|
78
|
-
#
|
|
78
|
+
# Hash containing configuration options for an Account Link object that onboards a new account.
|
|
79
79
|
attr_accessor :account_onboarding
|
|
80
|
-
#
|
|
80
|
+
# Hash containing configuration options for an Account Link that updates an existing account.
|
|
81
81
|
attr_accessor :account_update
|
|
82
82
|
|
|
83
83
|
def initialize(type: nil, account_onboarding: nil, account_update: nil)
|
|
@@ -357,7 +357,7 @@ module Stripe
|
|
|
357
357
|
attr_accessor :postal_code
|
|
358
358
|
# State, county, province, or region.
|
|
359
359
|
attr_accessor :state
|
|
360
|
-
# Town or
|
|
360
|
+
# Town or district.
|
|
361
361
|
attr_accessor :town
|
|
362
362
|
|
|
363
363
|
def initialize(
|
|
@@ -628,7 +628,7 @@ module Stripe
|
|
|
628
628
|
attr_accessor :postal_code
|
|
629
629
|
# State, county, province, or region.
|
|
630
630
|
attr_accessor :state
|
|
631
|
-
# Town or
|
|
631
|
+
# Town or district.
|
|
632
632
|
attr_accessor :town
|
|
633
633
|
|
|
634
634
|
def initialize(
|
|
@@ -663,7 +663,7 @@ module Stripe
|
|
|
663
663
|
attr_accessor :postal_code
|
|
664
664
|
# State, county, province, or region.
|
|
665
665
|
attr_accessor :state
|
|
666
|
-
# Town or
|
|
666
|
+
# Town or district.
|
|
667
667
|
attr_accessor :town
|
|
668
668
|
|
|
669
669
|
def initialize(
|
|
@@ -731,7 +731,7 @@ module Stripe
|
|
|
731
731
|
attr_accessor :compliance_screening_description
|
|
732
732
|
# A document verifying the business.
|
|
733
733
|
attr_accessor :documents
|
|
734
|
-
#
|
|
734
|
+
# Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors).
|
|
735
735
|
attr_accessor :estimated_worker_count
|
|
736
736
|
# The ID numbers of a business entity.
|
|
737
737
|
attr_accessor :id_numbers
|
|
@@ -793,7 +793,7 @@ module Stripe
|
|
|
793
793
|
attr_accessor :purpose
|
|
794
794
|
# State, county, province, or region.
|
|
795
795
|
attr_accessor :state
|
|
796
|
-
# Town or
|
|
796
|
+
# Town or district.
|
|
797
797
|
attr_accessor :town
|
|
798
798
|
|
|
799
799
|
def initialize(
|
|
@@ -848,7 +848,7 @@ module Stripe
|
|
|
848
848
|
attr_accessor :postal_code
|
|
849
849
|
# State, county, province, or region.
|
|
850
850
|
attr_accessor :state
|
|
851
|
-
# Town or
|
|
851
|
+
# Town or district.
|
|
852
852
|
attr_accessor :town
|
|
853
853
|
|
|
854
854
|
def initialize(
|
|
@@ -1046,7 +1046,7 @@ module Stripe
|
|
|
1046
1046
|
attr_accessor :postal_code
|
|
1047
1047
|
# State, county, province, or region.
|
|
1048
1048
|
attr_accessor :state
|
|
1049
|
-
# Town or
|
|
1049
|
+
# Town or district.
|
|
1050
1050
|
attr_accessor :town
|
|
1051
1051
|
|
|
1052
1052
|
def initialize(
|
|
@@ -1081,7 +1081,7 @@ module Stripe
|
|
|
1081
1081
|
attr_accessor :postal_code
|
|
1082
1082
|
# State, county, province, or region.
|
|
1083
1083
|
attr_accessor :state
|
|
1084
|
-
# Town or
|
|
1084
|
+
# Town or district.
|
|
1085
1085
|
attr_accessor :town
|
|
1086
1086
|
|
|
1087
1087
|
def initialize(
|