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
|
@@ -148,13 +148,13 @@ module Stripe
|
|
|
148
148
|
|
|
149
149
|
class Customer < ::Stripe::RequestParams
|
|
150
150
|
class AutomaticIndirectTax < ::Stripe::RequestParams
|
|
151
|
-
#
|
|
151
|
+
# The customer account's tax exemption status: `none`, `exempt`, or `reverse`. When `reverse`, invoice and receipt PDFs include "Reverse charge".
|
|
152
152
|
attr_accessor :exempt
|
|
153
153
|
# A recent IP address of the customer used for tax reporting and tax location inference.
|
|
154
154
|
attr_accessor :ip_address
|
|
155
|
-
#
|
|
155
|
+
# Data source used to identify the customer account's tax location. Defaults to `identity_address`. Used for automatic indirect tax calculation.
|
|
156
156
|
attr_accessor :location_source
|
|
157
|
-
# A per-request flag that indicates when Stripe should validate the customer tax location - defaults to
|
|
157
|
+
# A per-request flag that indicates when Stripe should validate the customer tax location - defaults to `auto`.
|
|
158
158
|
attr_accessor :validate_location
|
|
159
159
|
|
|
160
160
|
def initialize(
|
|
@@ -185,7 +185,7 @@ module Stripe
|
|
|
185
185
|
end
|
|
186
186
|
|
|
187
187
|
class Rendering < ::Stripe::RequestParams
|
|
188
|
-
#
|
|
188
|
+
# Indicates whether displayed line item prices and amounts on invoice PDFs include inclusive tax amounts. Must be either `include_inclusive_tax` or `exclude_tax`.
|
|
189
189
|
attr_accessor :amount_tax_display
|
|
190
190
|
# ID of the invoice rendering template to use for future invoices.
|
|
191
191
|
attr_accessor :template
|
|
@@ -197,13 +197,13 @@ module Stripe
|
|
|
197
197
|
end
|
|
198
198
|
# The list of up to 4 default custom fields to be displayed on invoices for this customer.
|
|
199
199
|
attr_accessor :custom_fields
|
|
200
|
-
# Default footer
|
|
200
|
+
# Default invoice footer.
|
|
201
201
|
attr_accessor :footer
|
|
202
|
-
#
|
|
202
|
+
# Sequence number to use on the customer account's next invoice. Defaults to 1.
|
|
203
203
|
attr_accessor :next_sequence
|
|
204
|
-
#
|
|
204
|
+
# Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or numbers.
|
|
205
205
|
attr_accessor :prefix
|
|
206
|
-
# Default
|
|
206
|
+
# Default invoice PDF rendering options.
|
|
207
207
|
attr_accessor :rendering
|
|
208
208
|
|
|
209
209
|
def initialize(
|
|
@@ -220,9 +220,9 @@ module Stripe
|
|
|
220
220
|
@rendering = rendering
|
|
221
221
|
end
|
|
222
222
|
end
|
|
223
|
-
# ID of a
|
|
223
|
+
# ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions.
|
|
224
224
|
attr_accessor :default_payment_method
|
|
225
|
-
# Default settings
|
|
225
|
+
# Default invoice settings for the customer account.
|
|
226
226
|
attr_accessor :invoice
|
|
227
227
|
|
|
228
228
|
def initialize(default_payment_method: nil, invoice: nil)
|
|
@@ -324,7 +324,7 @@ module Stripe
|
|
|
324
324
|
|
|
325
325
|
class Merchant < ::Stripe::RequestParams
|
|
326
326
|
class BacsDebitPayments < ::Stripe::RequestParams
|
|
327
|
-
# Display name for Bacs
|
|
327
|
+
# Display name for Bacs Direct Debit payments.
|
|
328
328
|
attr_accessor :display_name
|
|
329
329
|
|
|
330
330
|
def initialize(display_name: nil)
|
|
@@ -1043,7 +1043,7 @@ module Stripe
|
|
|
1043
1043
|
attr_accessor :postal_code
|
|
1044
1044
|
# State, county, province, or region.
|
|
1045
1045
|
attr_accessor :state
|
|
1046
|
-
# Town or
|
|
1046
|
+
# Town or district.
|
|
1047
1047
|
attr_accessor :town
|
|
1048
1048
|
|
|
1049
1049
|
def initialize(
|
|
@@ -1082,7 +1082,7 @@ module Stripe
|
|
|
1082
1082
|
end
|
|
1083
1083
|
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
|
|
1084
1084
|
attr_accessor :applied
|
|
1085
|
-
# Settings
|
|
1085
|
+
# Settings for Bacs Direct Debit payments.
|
|
1086
1086
|
attr_accessor :bacs_debit_payments
|
|
1087
1087
|
# Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
|
|
1088
1088
|
attr_accessor :branding
|
|
@@ -1092,11 +1092,11 @@ module Stripe
|
|
|
1092
1092
|
attr_accessor :card_payments
|
|
1093
1093
|
# Settings specific to Konbini payments on the account.
|
|
1094
1094
|
attr_accessor :konbini_payments
|
|
1095
|
-
# The
|
|
1095
|
+
# The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the goods or services they provide.
|
|
1096
1096
|
attr_accessor :mcc
|
|
1097
1097
|
# Settings for the default text that appears on statements for language variations.
|
|
1098
1098
|
attr_accessor :script_statement_descriptor
|
|
1099
|
-
#
|
|
1099
|
+
# Settings for the default [statement descriptor](/connect/statement-descriptors) text.
|
|
1100
1100
|
attr_accessor :statement_descriptor
|
|
1101
1101
|
# Publicly available contact information for sending support issues to.
|
|
1102
1102
|
attr_accessor :support
|
|
@@ -1129,6 +1129,15 @@ module Stripe
|
|
|
1129
1129
|
class Recipient < ::Stripe::RequestParams
|
|
1130
1130
|
class Capabilities < ::Stripe::RequestParams
|
|
1131
1131
|
class BankAccounts < ::Stripe::RequestParams
|
|
1132
|
+
class Instant < ::Stripe::RequestParams
|
|
1133
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1134
|
+
attr_accessor :requested
|
|
1135
|
+
|
|
1136
|
+
def initialize(requested: nil)
|
|
1137
|
+
@requested = requested
|
|
1138
|
+
end
|
|
1139
|
+
end
|
|
1140
|
+
|
|
1132
1141
|
class Local < ::Stripe::RequestParams
|
|
1133
1142
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1134
1143
|
attr_accessor :requested
|
|
@@ -1146,12 +1155,15 @@ module Stripe
|
|
|
1146
1155
|
@requested = requested
|
|
1147
1156
|
end
|
|
1148
1157
|
end
|
|
1158
|
+
# Enables this Account to receive OutboundPayments to linked bank accounts over real time rails.
|
|
1159
|
+
attr_accessor :instant
|
|
1149
1160
|
# Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
|
|
1150
1161
|
attr_accessor :local
|
|
1151
1162
|
# Enables this Account to receive OutboundPayments to linked bank accounts over wire.
|
|
1152
1163
|
attr_accessor :wire
|
|
1153
1164
|
|
|
1154
|
-
def initialize(local: nil, wire: nil)
|
|
1165
|
+
def initialize(instant: nil, local: nil, wire: nil)
|
|
1166
|
+
@instant = instant
|
|
1155
1167
|
@local = local
|
|
1156
1168
|
@wire = wire
|
|
1157
1169
|
end
|
|
@@ -1184,7 +1196,7 @@ module Stripe
|
|
|
1184
1196
|
@requested = requested
|
|
1185
1197
|
end
|
|
1186
1198
|
end
|
|
1187
|
-
#
|
|
1199
|
+
# Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance).
|
|
1188
1200
|
attr_accessor :stripe_transfers
|
|
1189
1201
|
|
|
1190
1202
|
def initialize(stripe_transfers: nil)
|
|
@@ -1479,13 +1491,13 @@ module Stripe
|
|
|
1479
1491
|
attr_accessor :capabilities
|
|
1480
1492
|
# List of high-risk activities the business is involved in.
|
|
1481
1493
|
attr_accessor :high_risk_activities
|
|
1482
|
-
#
|
|
1494
|
+
# Description of the high-risk activities the business offers.
|
|
1483
1495
|
attr_accessor :high_risk_activities_description
|
|
1484
1496
|
# Description of the money services offered by the business.
|
|
1485
1497
|
attr_accessor :money_services_description
|
|
1486
1498
|
# Does the business operate in any prohibited countries.
|
|
1487
1499
|
attr_accessor :operates_in_prohibited_countries
|
|
1488
|
-
#
|
|
1500
|
+
# Indicates whether the business participates in any regulated activity.
|
|
1489
1501
|
attr_accessor :participates_in_regulated_activity
|
|
1490
1502
|
# Primary purpose of the stored funds.
|
|
1491
1503
|
attr_accessor :purpose_of_funds
|
|
@@ -1530,9 +1542,9 @@ module Stripe
|
|
|
1530
1542
|
attr_accessor :card_creator
|
|
1531
1543
|
# The Customer Configuration allows the Account to be charged.
|
|
1532
1544
|
attr_accessor :customer
|
|
1533
|
-
#
|
|
1545
|
+
# 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.
|
|
1534
1546
|
attr_accessor :merchant
|
|
1535
|
-
# The Recipient Configuration allows the Account to receive funds.
|
|
1547
|
+
# 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.
|
|
1536
1548
|
attr_accessor :recipient
|
|
1537
1549
|
# The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
|
|
1538
1550
|
attr_accessor :storer
|
|
@@ -2156,7 +2168,7 @@ module Stripe
|
|
|
2156
2168
|
attr_accessor :postal_code
|
|
2157
2169
|
# State, county, province, or region.
|
|
2158
2170
|
attr_accessor :state
|
|
2159
|
-
# Town or
|
|
2171
|
+
# Town or district.
|
|
2160
2172
|
attr_accessor :town
|
|
2161
2173
|
|
|
2162
2174
|
def initialize(
|
|
@@ -2427,7 +2439,7 @@ module Stripe
|
|
|
2427
2439
|
attr_accessor :postal_code
|
|
2428
2440
|
# State, county, province, or region.
|
|
2429
2441
|
attr_accessor :state
|
|
2430
|
-
# Town or
|
|
2442
|
+
# Town or district.
|
|
2431
2443
|
attr_accessor :town
|
|
2432
2444
|
|
|
2433
2445
|
def initialize(
|
|
@@ -2462,7 +2474,7 @@ module Stripe
|
|
|
2462
2474
|
attr_accessor :postal_code
|
|
2463
2475
|
# State, county, province, or region.
|
|
2464
2476
|
attr_accessor :state
|
|
2465
|
-
# Town or
|
|
2477
|
+
# Town or district.
|
|
2466
2478
|
attr_accessor :town
|
|
2467
2479
|
|
|
2468
2480
|
def initialize(
|
|
@@ -2530,7 +2542,7 @@ module Stripe
|
|
|
2530
2542
|
attr_accessor :compliance_screening_description
|
|
2531
2543
|
# A document verifying the business.
|
|
2532
2544
|
attr_accessor :documents
|
|
2533
|
-
#
|
|
2545
|
+
# Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors).
|
|
2534
2546
|
attr_accessor :estimated_worker_count
|
|
2535
2547
|
# The ID numbers of a business entity.
|
|
2536
2548
|
attr_accessor :id_numbers
|
|
@@ -2592,7 +2604,7 @@ module Stripe
|
|
|
2592
2604
|
attr_accessor :purpose
|
|
2593
2605
|
# State, county, province, or region.
|
|
2594
2606
|
attr_accessor :state
|
|
2595
|
-
# Town or
|
|
2607
|
+
# Town or district.
|
|
2596
2608
|
attr_accessor :town
|
|
2597
2609
|
|
|
2598
2610
|
def initialize(
|
|
@@ -2647,7 +2659,7 @@ module Stripe
|
|
|
2647
2659
|
attr_accessor :postal_code
|
|
2648
2660
|
# State, county, province, or region.
|
|
2649
2661
|
attr_accessor :state
|
|
2650
|
-
# Town or
|
|
2662
|
+
# Town or district.
|
|
2651
2663
|
attr_accessor :town
|
|
2652
2664
|
|
|
2653
2665
|
def initialize(
|
|
@@ -2845,7 +2857,7 @@ module Stripe
|
|
|
2845
2857
|
attr_accessor :postal_code
|
|
2846
2858
|
# State, county, province, or region.
|
|
2847
2859
|
attr_accessor :state
|
|
2848
|
-
# Town or
|
|
2860
|
+
# Town or district.
|
|
2849
2861
|
attr_accessor :town
|
|
2850
2862
|
|
|
2851
2863
|
def initialize(
|
|
@@ -2880,7 +2892,7 @@ module Stripe
|
|
|
2880
2892
|
attr_accessor :postal_code
|
|
2881
2893
|
# State, county, province, or region.
|
|
2882
2894
|
attr_accessor :state
|
|
2883
|
-
# Town or
|
|
2895
|
+
# Town or district.
|
|
2884
2896
|
attr_accessor :town
|
|
2885
2897
|
|
|
2886
2898
|
def initialize(
|
|
@@ -21,7 +21,7 @@ module Stripe
|
|
|
21
21
|
attr_accessor :purpose
|
|
22
22
|
# State, county, province, or region.
|
|
23
23
|
attr_accessor :state
|
|
24
|
-
# Town or
|
|
24
|
+
# Town or district.
|
|
25
25
|
attr_accessor :town
|
|
26
26
|
|
|
27
27
|
def initialize(
|
|
@@ -99,7 +99,7 @@ module Stripe
|
|
|
99
99
|
attr_accessor :postal_code
|
|
100
100
|
# State, county, province, or region.
|
|
101
101
|
attr_accessor :state
|
|
102
|
-
# Town or
|
|
102
|
+
# Town or district.
|
|
103
103
|
attr_accessor :town
|
|
104
104
|
|
|
105
105
|
def initialize(
|
|
@@ -257,7 +257,7 @@ module Stripe
|
|
|
257
257
|
end
|
|
258
258
|
|
|
259
259
|
class Relationship < ::Stripe::RequestParams
|
|
260
|
-
# Whether the individual is an authorizer of the Account
|
|
260
|
+
# Whether the individual is an authorizer of the Account's identity.
|
|
261
261
|
attr_accessor :authorizer
|
|
262
262
|
# Indicates whether the person is a director of the associated legal entity.
|
|
263
263
|
attr_accessor :director
|
|
@@ -309,7 +309,7 @@ module Stripe
|
|
|
309
309
|
attr_accessor :postal_code
|
|
310
310
|
# State, county, province, or region.
|
|
311
311
|
attr_accessor :state
|
|
312
|
-
# Town or
|
|
312
|
+
# Town or district.
|
|
313
313
|
attr_accessor :town
|
|
314
314
|
|
|
315
315
|
def initialize(
|
|
@@ -344,7 +344,7 @@ module Stripe
|
|
|
344
344
|
attr_accessor :postal_code
|
|
345
345
|
# State, county, province, or region.
|
|
346
346
|
attr_accessor :state
|
|
347
|
-
# Town or
|
|
347
|
+
# Town or district.
|
|
348
348
|
attr_accessor :town
|
|
349
349
|
|
|
350
350
|
def initialize(
|
|
@@ -21,7 +21,7 @@ module Stripe
|
|
|
21
21
|
attr_accessor :purpose
|
|
22
22
|
# State, county, province, or region.
|
|
23
23
|
attr_accessor :state
|
|
24
|
-
# Town or
|
|
24
|
+
# Town or district.
|
|
25
25
|
attr_accessor :town
|
|
26
26
|
|
|
27
27
|
def initialize(
|
|
@@ -93,7 +93,7 @@ module Stripe
|
|
|
93
93
|
attr_accessor :postal_code
|
|
94
94
|
# State, county, province, or region.
|
|
95
95
|
attr_accessor :state
|
|
96
|
-
# Town or
|
|
96
|
+
# Town or district.
|
|
97
97
|
attr_accessor :town
|
|
98
98
|
|
|
99
99
|
def initialize(
|
|
@@ -251,7 +251,7 @@ module Stripe
|
|
|
251
251
|
end
|
|
252
252
|
|
|
253
253
|
class Relationship < ::Stripe::RequestParams
|
|
254
|
-
# Whether the individual is an authorizer of the Account
|
|
254
|
+
# Whether the individual is an authorizer of the Account's identity.
|
|
255
255
|
attr_accessor :authorizer
|
|
256
256
|
# Indicates whether the person is a director of the associated legal entity.
|
|
257
257
|
attr_accessor :director
|
|
@@ -303,7 +303,7 @@ module Stripe
|
|
|
303
303
|
attr_accessor :postal_code
|
|
304
304
|
# State, county, province, or region.
|
|
305
305
|
attr_accessor :state
|
|
306
|
-
# Town or
|
|
306
|
+
# Town or district.
|
|
307
307
|
attr_accessor :town
|
|
308
308
|
|
|
309
309
|
def initialize(
|
|
@@ -338,7 +338,7 @@ module Stripe
|
|
|
338
338
|
attr_accessor :postal_code
|
|
339
339
|
# State, county, province, or region.
|
|
340
340
|
attr_accessor :state
|
|
341
|
-
# Town or
|
|
341
|
+
# Town or district.
|
|
342
342
|
attr_accessor :town
|
|
343
343
|
|
|
344
344
|
def initialize(
|
|
@@ -21,7 +21,7 @@ module Stripe
|
|
|
21
21
|
attr_accessor :purpose
|
|
22
22
|
# State, county, province, or region.
|
|
23
23
|
attr_accessor :state
|
|
24
|
-
# Town or
|
|
24
|
+
# Town or district.
|
|
25
25
|
attr_accessor :town
|
|
26
26
|
|
|
27
27
|
def initialize(
|
|
@@ -99,7 +99,7 @@ module Stripe
|
|
|
99
99
|
attr_accessor :postal_code
|
|
100
100
|
# State, county, province, or region.
|
|
101
101
|
attr_accessor :state
|
|
102
|
-
# Town or
|
|
102
|
+
# Town or district.
|
|
103
103
|
attr_accessor :town
|
|
104
104
|
|
|
105
105
|
def initialize(
|
|
@@ -257,7 +257,7 @@ module Stripe
|
|
|
257
257
|
end
|
|
258
258
|
|
|
259
259
|
class Relationship < ::Stripe::RequestParams
|
|
260
|
-
# Whether the individual is an authorizer of the Account
|
|
260
|
+
# Whether the individual is an authorizer of the Account's identity.
|
|
261
261
|
attr_accessor :authorizer
|
|
262
262
|
# Indicates whether the person is a director of the associated legal entity.
|
|
263
263
|
attr_accessor :director
|
|
@@ -309,7 +309,7 @@ module Stripe
|
|
|
309
309
|
attr_accessor :postal_code
|
|
310
310
|
# State, county, province, or region.
|
|
311
311
|
attr_accessor :state
|
|
312
|
-
# Town or
|
|
312
|
+
# Town or district.
|
|
313
313
|
attr_accessor :town
|
|
314
314
|
|
|
315
315
|
def initialize(
|
|
@@ -344,7 +344,7 @@ module Stripe
|
|
|
344
344
|
attr_accessor :postal_code
|
|
345
345
|
# State, county, province, or region.
|
|
346
346
|
attr_accessor :state
|
|
347
|
-
# Town or
|
|
347
|
+
# Town or district.
|
|
348
348
|
attr_accessor :town
|
|
349
349
|
|
|
350
350
|
def initialize(
|
|
@@ -12,7 +12,7 @@ module Stripe
|
|
|
12
12
|
# Email that this sandbox is meant to be claimed by. Stripe will
|
|
13
13
|
# notify this email address before the sandbox expires.
|
|
14
14
|
attr_accessor :email
|
|
15
|
-
# Name for the sandbox.
|
|
15
|
+
# Name for the sandbox.
|
|
16
16
|
attr_accessor :name
|
|
17
17
|
|
|
18
18
|
def initialize(country: nil, email: nil, name: nil)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Iam
|
|
7
|
+
class ApiKeyCreateParams < ::Stripe::RequestParams
|
|
8
|
+
class PublicKey < ::Stripe::RequestParams
|
|
9
|
+
class PemKey < ::Stripe::RequestParams
|
|
10
|
+
# The encryption algorithm used with this key (e.g., RSA).
|
|
11
|
+
attr_accessor :algorithm
|
|
12
|
+
# The PEM-encoded public key data. Newlines are required between header/footer and body, and optional within the body.
|
|
13
|
+
attr_accessor :data
|
|
14
|
+
|
|
15
|
+
def initialize(algorithm: nil, data: nil)
|
|
16
|
+
@algorithm = algorithm
|
|
17
|
+
@data = data
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
# Caller's identifier of the public key. This is used for tracking purposes only, and will be echoed in the response if provided.
|
|
21
|
+
attr_accessor :id
|
|
22
|
+
# PEM-formatted public key.
|
|
23
|
+
attr_accessor :pem_key
|
|
24
|
+
|
|
25
|
+
def initialize(id: nil, pem_key: nil)
|
|
26
|
+
@id = id
|
|
27
|
+
@pem_key = pem_key
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
# Name for the API key.
|
|
31
|
+
attr_accessor :name
|
|
32
|
+
# Note or description for the API key.
|
|
33
|
+
attr_accessor :note
|
|
34
|
+
# Public key for encrypting the API key secret.
|
|
35
|
+
# This must a PEM-formatted RSA key suitable for encryption, >= 2048 bits.
|
|
36
|
+
# A public key is required when creating secret keys.
|
|
37
|
+
# Publishable keys are not encrypted and a public key should not be included.
|
|
38
|
+
attr_accessor :public_key
|
|
39
|
+
# Type of the API key to create (secret or publishable).
|
|
40
|
+
attr_accessor :type
|
|
41
|
+
|
|
42
|
+
def initialize(name: nil, note: nil, public_key: nil, type: nil)
|
|
43
|
+
@name = name
|
|
44
|
+
@note = note
|
|
45
|
+
@public_key = public_key
|
|
46
|
+
@type = type
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Iam
|
|
7
|
+
class ApiKeyListParams < ::Stripe::RequestParams
|
|
8
|
+
# Whether to include expired API keys in the response.
|
|
9
|
+
attr_accessor :include_expired
|
|
10
|
+
# Limit of items to return per page.
|
|
11
|
+
attr_accessor :limit
|
|
12
|
+
|
|
13
|
+
def initialize(include_expired: nil, limit: nil)
|
|
14
|
+
@include_expired = include_expired
|
|
15
|
+
@limit = limit
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Iam
|
|
7
|
+
class ApiKeyRotateParams < ::Stripe::RequestParams
|
|
8
|
+
class PublicKey < ::Stripe::RequestParams
|
|
9
|
+
class PemKey < ::Stripe::RequestParams
|
|
10
|
+
# The encryption algorithm used with this key (e.g., RSA).
|
|
11
|
+
attr_accessor :algorithm
|
|
12
|
+
# The PEM-encoded public key data. Newlines are required between header/footer and body, and optional within the body.
|
|
13
|
+
attr_accessor :data
|
|
14
|
+
|
|
15
|
+
def initialize(algorithm: nil, data: nil)
|
|
16
|
+
@algorithm = algorithm
|
|
17
|
+
@data = data
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
# Caller's identifier of the public key. This is used for tracking purposes only, and will be echoed in the response if provided.
|
|
21
|
+
attr_accessor :id
|
|
22
|
+
# PEM-formatted public key.
|
|
23
|
+
attr_accessor :pem_key
|
|
24
|
+
|
|
25
|
+
def initialize(id: nil, pem_key: nil)
|
|
26
|
+
@id = id
|
|
27
|
+
@pem_key = pem_key
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
# Duration in minutes before the current key expires, with a maximum of 7 days (10080 minutes).
|
|
31
|
+
# If not provided, the current key expires immediately.
|
|
32
|
+
attr_accessor :expire_current_key_in_minutes
|
|
33
|
+
# Public key for encrypting the new API key secret.
|
|
34
|
+
# This must a PEM-formatted RSA key suitable for encryption, >= 2048 bits.
|
|
35
|
+
# A public key is required when rotating secret keys.
|
|
36
|
+
# Publishable keys are not encrypted and a public key should not be included.
|
|
37
|
+
attr_accessor :public_key
|
|
38
|
+
|
|
39
|
+
def initialize(expire_current_key_in_minutes: nil, public_key: nil)
|
|
40
|
+
@expire_current_key_in_minutes = expire_current_key_in_minutes
|
|
41
|
+
@public_key = public_key
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Iam
|
|
7
|
+
class ApiKeyUpdateParams < ::Stripe::RequestParams
|
|
8
|
+
# Name to set for the API key. If blank, the field is left unchanged.
|
|
9
|
+
attr_accessor :name
|
|
10
|
+
# Note or description to set for the API key. If blank, the field is left unchanged.
|
|
11
|
+
attr_accessor :note
|
|
12
|
+
|
|
13
|
+
def initialize(name: nil, note: nil)
|
|
14
|
+
@name = name
|
|
15
|
+
@note = note
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -9,10 +9,13 @@ module Stripe
|
|
|
9
9
|
attr_accessor :limit
|
|
10
10
|
# The status of the FinancialAccount to filter by. By default, closed FinancialAccounts are not returned.
|
|
11
11
|
attr_accessor :status
|
|
12
|
+
# Filter for FinancialAccount `type`. By default, FinancialAccounts of any `type` are returned.
|
|
13
|
+
attr_accessor :types
|
|
12
14
|
|
|
13
|
-
def initialize(limit: nil, status: nil)
|
|
15
|
+
def initialize(limit: nil, status: nil, types: nil)
|
|
14
16
|
@limit = limit
|
|
15
17
|
@status = status
|
|
18
|
+
@types = types
|
|
16
19
|
end
|
|
17
20
|
end
|
|
18
21
|
end
|
|
@@ -20,9 +20,12 @@ module Stripe
|
|
|
20
20
|
class DeliveryOptions < ::Stripe::RequestParams
|
|
21
21
|
# Open Enum. Method for bank account.
|
|
22
22
|
attr_accessor :bank_account
|
|
23
|
+
# Open Enum. Speed of the payout.
|
|
24
|
+
attr_accessor :speed
|
|
23
25
|
|
|
24
|
-
def initialize(bank_account: nil)
|
|
26
|
+
def initialize(bank_account: nil, speed: nil)
|
|
25
27
|
@bank_account = bank_account
|
|
28
|
+
@speed = speed
|
|
26
29
|
end
|
|
27
30
|
end
|
|
28
31
|
|
|
@@ -20,9 +20,12 @@ module Stripe
|
|
|
20
20
|
class DeliveryOptions < ::Stripe::RequestParams
|
|
21
21
|
# Open Enum. Method for bank account.
|
|
22
22
|
attr_accessor :bank_account
|
|
23
|
+
# Open Enum. Speed of the payout.
|
|
24
|
+
attr_accessor :speed
|
|
23
25
|
|
|
24
|
-
def initialize(bank_account: nil)
|
|
26
|
+
def initialize(bank_account: nil, speed: nil)
|
|
25
27
|
@bank_account = bank_account
|
|
28
|
+
@speed = speed
|
|
26
29
|
end
|
|
27
30
|
end
|
|
28
31
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Payments
|
|
7
|
+
class SettlementAllocationIntentCreateParams < ::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 amount and currency of the SettlementAllocationIntent. Allowed Currencies are `gbp` | `eur`.
|
|
20
|
+
attr_accessor :amount
|
|
21
|
+
# Date when we expect to receive the funds. Must be in future .
|
|
22
|
+
attr_accessor :expected_settlement_date
|
|
23
|
+
# Financial Account Id where the funds are expected for this SettlementAllocationIntent.
|
|
24
|
+
attr_accessor :financial_account
|
|
25
|
+
# Metadata associated with the SettlementAllocationIntent.
|
|
26
|
+
attr_accessor :metadata
|
|
27
|
+
# Reference for the SettlementAllocationIntent. This should be same as the transaction reference used by payments processor to send funds to Stripe. Must have length between 5 and 255 characters and it must be unique among existing SettlementAllocationIntents that have a non-terminal status (`pending`, `submitted`, `matched`, `errored`).
|
|
28
|
+
attr_accessor :reference
|
|
29
|
+
|
|
30
|
+
def initialize(
|
|
31
|
+
amount: nil,
|
|
32
|
+
expected_settlement_date: nil,
|
|
33
|
+
financial_account: nil,
|
|
34
|
+
metadata: nil,
|
|
35
|
+
reference: nil
|
|
36
|
+
)
|
|
37
|
+
@amount = amount
|
|
38
|
+
@expected_settlement_date = expected_settlement_date
|
|
39
|
+
@financial_account = financial_account
|
|
40
|
+
@metadata = metadata
|
|
41
|
+
@reference = reference
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|