stripe 17.0.1 → 19.0.0
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 +40 -44
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +3 -0
- data/lib/stripe/event_types.rb +61 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +7 -7
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +5 -5
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +2 -2
- data/lib/stripe/object_types.rb +14 -0
- data/lib/stripe/params/account_capability_list_params.rb +1 -1
- data/lib/stripe/params/account_capability_retrieve_params.rb +1 -1
- data/lib/stripe/params/account_capability_update_params.rb +1 -1
- data/lib/stripe/params/account_create_params.rb +210 -143
- data/lib/stripe/params/account_delete_params.rb +1 -1
- data/lib/stripe/params/account_external_account_create_params.rb +6 -6
- data/lib/stripe/params/account_external_account_delete_params.rb +1 -1
- data/lib/stripe/params/account_external_account_list_params.rb +1 -1
- data/lib/stripe/params/account_external_account_retrieve_params.rb +1 -1
- data/lib/stripe/params/account_external_account_update_params.rb +5 -5
- data/lib/stripe/params/account_link_create_params.rb +2 -2
- data/lib/stripe/params/account_list_params.rb +2 -2
- data/lib/stripe/params/account_login_link_create_params.rb +1 -1
- data/lib/stripe/params/account_person_create_params.rb +29 -29
- data/lib/stripe/params/account_person_delete_params.rb +1 -1
- data/lib/stripe/params/account_person_list_params.rb +2 -2
- data/lib/stripe/params/account_person_retrieve_params.rb +1 -1
- data/lib/stripe/params/account_person_update_params.rb +29 -29
- data/lib/stripe/params/account_persons_params.rb +2 -2
- data/lib/stripe/params/account_reject_params.rb +1 -1
- data/lib/stripe/params/account_retrieve_current_params.rb +1 -1
- data/lib/stripe/params/account_retrieve_params.rb +1 -1
- data/lib/stripe/params/account_session_create_params.rb +43 -43
- data/lib/stripe/params/account_update_params.rb +206 -139
- data/lib/stripe/params/apple_pay_domain_create_params.rb +1 -1
- data/lib/stripe/params/apple_pay_domain_delete_params.rb +1 -1
- data/lib/stripe/params/apple_pay_domain_list_params.rb +1 -1
- data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +1 -1
- data/lib/stripe/params/application_fee_list_params.rb +2 -2
- data/lib/stripe/params/application_fee_refund_create_params.rb +2 -2
- data/lib/stripe/params/application_fee_refund_list_params.rb +1 -1
- data/lib/stripe/params/application_fee_refund_retrieve_params.rb +1 -1
- data/lib/stripe/params/application_fee_refund_update_params.rb +2 -2
- data/lib/stripe/params/application_fee_retrieve_params.rb +1 -1
- data/lib/stripe/params/apps/secret_create_params.rb +2 -2
- data/lib/stripe/params/apps/secret_delete_where_params.rb +2 -2
- data/lib/stripe/params/apps/secret_find_params.rb +2 -2
- data/lib/stripe/params/apps/secret_list_params.rb +2 -2
- data/lib/stripe/params/balance_retrieve_params.rb +1 -1
- data/lib/stripe/params/balance_settings_retrieve_params.rb +1 -1
- data/lib/stripe/params/balance_settings_update_params.rb +5 -5
- data/lib/stripe/params/balance_transaction_list_params.rb +4 -4
- data/lib/stripe/params/balance_transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/alert_activate_params.rb +1 -1
- data/lib/stripe/params/billing/alert_archive_params.rb +1 -1
- data/lib/stripe/params/billing/alert_create_params.rb +4 -4
- data/lib/stripe/params/billing/alert_deactivate_params.rb +1 -1
- data/lib/stripe/params/billing/alert_list_params.rb +1 -1
- data/lib/stripe/params/billing/alert_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +9 -6
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +6 -2
- data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/credit_grant_create_params.rb +12 -8
- data/lib/stripe/params/billing/credit_grant_expire_params.rb +1 -1
- data/lib/stripe/params/billing/credit_grant_list_params.rb +5 -1
- data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/credit_grant_update_params.rb +1 -1
- data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +1 -1
- data/lib/stripe/params/billing/meter_create_params.rb +4 -4
- data/lib/stripe/params/billing/meter_deactivate_params.rb +1 -1
- data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +2 -2
- data/lib/stripe/params/billing/meter_event_create_params.rb +2 -2
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_reactivate_params.rb +1 -1
- data/lib/stripe/params/billing/meter_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/meter_update_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +25 -18
- data/lib/stripe/params/billing_portal/configuration_list_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +25 -18
- data/lib/stripe/params/billing_portal/session_create_params.rb +23 -19
- data/lib/stripe/params/charge_capture_params.rb +4 -4
- data/lib/stripe/params/charge_create_params.rb +18 -18
- data/lib/stripe/params/charge_list_params.rb +2 -2
- data/lib/stripe/params/charge_retrieve_params.rb +1 -1
- data/lib/stripe/params/charge_search_params.rb +2 -2
- data/lib/stripe/params/charge_update_params.rb +7 -7
- data/lib/stripe/params/checkout/session_create_params.rb +359 -177
- data/lib/stripe/params/checkout/session_expire_params.rb +1 -1
- data/lib/stripe/params/checkout/session_line_item_list_params.rb +1 -1
- data/lib/stripe/params/checkout/session_list_line_items_params.rb +1 -1
- data/lib/stripe/params/checkout/session_list_params.rb +7 -3
- data/lib/stripe/params/checkout/session_retrieve_params.rb +1 -1
- data/lib/stripe/params/checkout/session_update_params.rb +185 -16
- data/lib/stripe/params/climate/order_cancel_params.rb +1 -1
- data/lib/stripe/params/climate/order_create_params.rb +7 -3
- data/lib/stripe/params/climate/order_list_params.rb +1 -1
- data/lib/stripe/params/climate/order_retrieve_params.rb +1 -1
- data/lib/stripe/params/climate/order_update_params.rb +3 -3
- data/lib/stripe/params/climate/product_list_params.rb +1 -1
- data/lib/stripe/params/climate/product_retrieve_params.rb +1 -1
- data/lib/stripe/params/climate/supplier_list_params.rb +1 -1
- data/lib/stripe/params/climate/supplier_retrieve_params.rb +1 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +117 -67
- data/lib/stripe/params/confirmation_token_retrieve_params.rb +1 -1
- data/lib/stripe/params/country_spec_list_params.rb +1 -1
- data/lib/stripe/params/country_spec_retrieve_params.rb +1 -1
- data/lib/stripe/params/coupon_create_params.rb +5 -5
- data/lib/stripe/params/coupon_delete_params.rb +1 -1
- data/lib/stripe/params/coupon_list_params.rb +2 -2
- data/lib/stripe/params/coupon_retrieve_params.rb +1 -1
- data/lib/stripe/params/coupon_update_params.rb +3 -3
- data/lib/stripe/params/credit_note_create_params.rb +44 -10
- data/lib/stripe/params/credit_note_line_item_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_params.rb +6 -2
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +44 -10
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +44 -10
- data/lib/stripe/params/credit_note_preview_params.rb +44 -10
- data/lib/stripe/params/credit_note_retrieve_params.rb +1 -1
- data/lib/stripe/params/credit_note_update_params.rb +2 -2
- data/lib/stripe/params/credit_note_void_credit_note_params.rb +1 -1
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +3 -3
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +32 -2
- data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +2 -2
- data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_update_params.rb +3 -3
- data/lib/stripe/params/customer_create_funding_instructions_params.rb +4 -4
- data/lib/stripe/params/customer_create_params.rb +17 -17
- data/lib/stripe/params/customer_delete_discount_params.rb +1 -1
- data/lib/stripe/params/customer_delete_params.rb +1 -1
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +3 -3
- data/lib/stripe/params/customer_funding_instructions_create_params.rb +4 -4
- data/lib/stripe/params/customer_list_params.rb +2 -2
- data/lib/stripe/params/customer_list_payment_methods_params.rb +1 -1
- data/lib/stripe/params/customer_payment_method_list_params.rb +1 -1
- data/lib/stripe/params/customer_payment_method_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_payment_source_create_params.rb +3 -3
- data/lib/stripe/params/customer_payment_source_delete_params.rb +1 -1
- data/lib/stripe/params/customer_payment_source_list_params.rb +1 -1
- data/lib/stripe/params/customer_payment_source_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_payment_source_update_params.rb +5 -5
- data/lib/stripe/params/customer_payment_source_verify_params.rb +1 -1
- data/lib/stripe/params/customer_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_retrieve_payment_method_params.rb +1 -1
- data/lib/stripe/params/customer_search_params.rb +2 -2
- data/lib/stripe/params/customer_session_create_params.rb +97 -9
- data/lib/stripe/params/customer_tax_id_create_params.rb +2 -2
- data/lib/stripe/params/customer_tax_id_delete_params.rb +1 -1
- data/lib/stripe/params/customer_tax_id_list_params.rb +1 -1
- data/lib/stripe/params/customer_tax_id_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_update_params.rb +17 -17
- data/lib/stripe/params/dispute_close_params.rb +1 -1
- data/lib/stripe/params/dispute_list_params.rb +2 -2
- data/lib/stripe/params/dispute_retrieve_params.rb +1 -1
- data/lib/stripe/params/dispute_update_params.rb +12 -12
- data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +1 -1
- data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +1 -1
- data/lib/stripe/params/entitlements/feature_create_params.rb +1 -1
- data/lib/stripe/params/entitlements/feature_list_params.rb +1 -1
- data/lib/stripe/params/entitlements/feature_retrieve_params.rb +1 -1
- data/lib/stripe/params/entitlements/feature_update_params.rb +1 -1
- data/lib/stripe/params/ephemeral_key_create_params.rb +1 -1
- data/lib/stripe/params/ephemeral_key_delete_params.rb +1 -1
- data/lib/stripe/params/event_list_params.rb +2 -2
- data/lib/stripe/params/event_retrieve_params.rb +1 -1
- data/lib/stripe/params/exchange_rate_list_params.rb +1 -1
- data/lib/stripe/params/exchange_rate_retrieve_params.rb +1 -1
- data/lib/stripe/params/file_create_params.rb +5 -5
- data/lib/stripe/params/file_link_create_params.rb +2 -2
- data/lib/stripe/params/file_link_list_params.rb +2 -2
- data/lib/stripe/params/file_link_retrieve_params.rb +1 -1
- data/lib/stripe/params/file_link_update_params.rb +2 -2
- data/lib/stripe/params/file_list_params.rb +2 -2
- data/lib/stripe/params/file_retrieve_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_disconnect_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_list_owners_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_list_params.rb +8 -5
- data/lib/stripe/params/financial_connections/account_owner_list_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_refresh_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_retrieve_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_subscribe_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +1 -1
- data/lib/stripe/params/financial_connections/session_create_params.rb +9 -6
- data/lib/stripe/params/financial_connections/session_retrieve_params.rb +1 -1
- data/lib/stripe/params/financial_connections/transaction_list_params.rb +3 -3
- data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/forwarding/request_create_params.rb +4 -4
- data/lib/stripe/params/forwarding/request_list_params.rb +2 -2
- data/lib/stripe/params/forwarding/request_retrieve_params.rb +1 -1
- data/lib/stripe/params/identity/verification_report_list_params.rb +2 -2
- data/lib/stripe/params/identity/verification_report_retrieve_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_cancel_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_create_params.rb +14 -10
- data/lib/stripe/params/identity/verification_session_list_params.rb +8 -4
- data/lib/stripe/params/identity/verification_session_redact_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_retrieve_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_update_params.rb +9 -9
- data/lib/stripe/params/invoice_add_lines_params.rb +48 -18
- data/lib/stripe/params/invoice_attach_payment_params.rb +5 -2
- data/lib/stripe/params/invoice_create_params.rb +77 -48
- data/lib/stripe/params/invoice_create_preview_params.rb +257 -80
- data/lib/stripe/params/invoice_delete_params.rb +1 -1
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +2 -2
- data/lib/stripe/params/invoice_item_create_params.rb +33 -13
- data/lib/stripe/params/invoice_item_delete_params.rb +1 -1
- data/lib/stripe/params/invoice_item_list_params.rb +7 -3
- data/lib/stripe/params/invoice_item_retrieve_params.rb +1 -1
- data/lib/stripe/params/invoice_item_update_params.rb +28 -12
- data/lib/stripe/params/invoice_line_item_list_params.rb +1 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +31 -16
- data/lib/stripe/params/invoice_list_params.rb +8 -4
- data/lib/stripe/params/invoice_mark_uncollectible_params.rb +1 -1
- data/lib/stripe/params/invoice_pay_params.rb +1 -1
- data/lib/stripe/params/invoice_payment_list_params.rb +28 -3
- data/lib/stripe/params/invoice_payment_retrieve_params.rb +1 -1
- data/lib/stripe/params/invoice_remove_lines_params.rb +3 -3
- data/lib/stripe/params/invoice_rendering_template_archive_params.rb +1 -1
- data/lib/stripe/params/invoice_rendering_template_list_params.rb +1 -1
- data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +1 -1
- data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +1 -1
- data/lib/stripe/params/invoice_retrieve_params.rb +1 -1
- data/lib/stripe/params/invoice_search_params.rb +2 -2
- data/lib/stripe/params/invoice_send_invoice_params.rb +1 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -18
- data/lib/stripe/params/invoice_update_params.rb +70 -45
- data/lib/stripe/params/invoice_void_invoice_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_approve_params.rb +3 -3
- data/lib/stripe/params/issuing/authorization_capture_params.rb +139 -14
- data/lib/stripe/params/issuing/authorization_create_params.rb +124 -29
- data/lib/stripe/params/issuing/authorization_decline_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_expire_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +89 -9
- data/lib/stripe/params/issuing/authorization_increment_params.rb +3 -3
- data/lib/stripe/params/issuing/authorization_list_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_respond_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_update_params.rb +2 -2
- data/lib/stripe/params/issuing/card_create_params.rb +36 -15
- data/lib/stripe/params/issuing/card_deliver_card_params.rb +1 -1
- data/lib/stripe/params/issuing/card_fail_card_params.rb +1 -1
- data/lib/stripe/params/issuing/card_list_params.rb +2 -2
- data/lib/stripe/params/issuing/card_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/card_return_card_params.rb +1 -1
- data/lib/stripe/params/issuing/card_ship_card_params.rb +1 -1
- data/lib/stripe/params/issuing/card_submit_card_params.rb +1 -1
- data/lib/stripe/params/issuing/card_update_params.rb +14 -14
- data/lib/stripe/params/issuing/cardholder_create_params.rb +26 -26
- data/lib/stripe/params/issuing/cardholder_list_params.rb +2 -2
- data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/cardholder_update_params.rb +25 -25
- data/lib/stripe/params/issuing/dispute_create_params.rb +13 -13
- data/lib/stripe/params/issuing/dispute_list_params.rb +2 -2
- data/lib/stripe/params/issuing/dispute_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/dispute_submit_params.rb +2 -2
- data/lib/stripe/params/issuing/dispute_update_params.rb +12 -12
- data/lib/stripe/params/issuing/personalization_design_activate_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +4 -4
- data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_list_params.rb +2 -2
- data/lib/stripe/params/issuing/personalization_design_reject_params.rb +2 -2
- data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +4 -4
- data/lib/stripe/params/issuing/physical_bundle_list_params.rb +1 -1
- data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/token_list_params.rb +2 -2
- data/lib/stripe/params/issuing/token_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/token_update_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +141 -16
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +141 -16
- data/lib/stripe/params/issuing/transaction_list_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_refund_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_update_params.rb +2 -2
- data/lib/stripe/params/mandate_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_attempt_record_list_params.rb +22 -0
- data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +2 -2
- data/lib/stripe/params/payment_intent_cancel_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +243 -6
- data/lib/stripe/params/payment_intent_confirm_params.rb +544 -162
- data/lib/stripe/params/payment_intent_create_params.rb +568 -178
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +242 -5
- data/lib/stripe/params/payment_intent_list_params.rb +6 -2
- data/lib/stripe/params/payment_intent_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_intent_search_params.rb +2 -2
- data/lib/stripe/params/payment_intent_update_params.rb +550 -160
- data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +1 -1
- data/lib/stripe/params/payment_link_create_params.rb +134 -73
- data/lib/stripe/params/payment_link_line_item_list_params.rb +1 -1
- data/lib/stripe/params/payment_link_list_line_items_params.rb +1 -1
- data/lib/stripe/params/payment_link_list_params.rb +1 -1
- data/lib/stripe/params/payment_link_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_link_update_params.rb +128 -54
- data/lib/stripe/params/payment_method_attach_params.rb +5 -2
- data/lib/stripe/params/payment_method_configuration_create_params.rb +227 -143
- data/lib/stripe/params/payment_method_configuration_list_params.rb +1 -1
- data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_method_configuration_update_params.rb +227 -143
- data/lib/stripe/params/payment_method_create_params.rb +124 -60
- data/lib/stripe/params/payment_method_detach_params.rb +1 -1
- data/lib/stripe/params/payment_method_domain_create_params.rb +1 -1
- data/lib/stripe/params/payment_method_domain_list_params.rb +1 -1
- data/lib/stripe/params/payment_method_domain_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_method_domain_update_params.rb +1 -1
- data/lib/stripe/params/payment_method_domain_validate_params.rb +1 -1
- data/lib/stripe/params/payment_method_list_params.rb +10 -2
- data/lib/stripe/params/payment_method_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_method_update_params.rb +27 -8
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
- data/lib/stripe/params/payment_record_report_refund_params.rb +79 -0
- data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/payout_cancel_params.rb +1 -1
- data/lib/stripe/params/payout_create_params.rb +2 -2
- data/lib/stripe/params/payout_list_params.rb +3 -3
- data/lib/stripe/params/payout_retrieve_params.rb +1 -1
- data/lib/stripe/params/payout_reverse_params.rb +2 -2
- data/lib/stripe/params/payout_update_params.rb +2 -2
- data/lib/stripe/params/plan_create_params.rb +28 -8
- data/lib/stripe/params/plan_delete_params.rb +1 -1
- data/lib/stripe/params/plan_list_params.rb +2 -2
- data/lib/stripe/params/plan_retrieve_params.rb +1 -1
- data/lib/stripe/params/plan_update_params.rb +3 -3
- data/lib/stripe/params/price_create_params.rb +55 -15
- data/lib/stripe/params/price_list_params.rb +3 -3
- data/lib/stripe/params/price_retrieve_params.rb +1 -1
- data/lib/stripe/params/price_search_params.rb +2 -2
- data/lib/stripe/params/price_update_params.rb +27 -7
- data/lib/stripe/params/product_create_params.rb +49 -16
- data/lib/stripe/params/product_delete_params.rb +1 -1
- data/lib/stripe/params/product_feature_create_params.rb +2 -2
- data/lib/stripe/params/product_feature_delete_params.rb +1 -1
- data/lib/stripe/params/product_feature_list_params.rb +1 -1
- data/lib/stripe/params/product_feature_retrieve_params.rb +1 -1
- data/lib/stripe/params/product_list_params.rb +3 -3
- data/lib/stripe/params/product_retrieve_params.rb +1 -1
- data/lib/stripe/params/product_search_params.rb +2 -2
- data/lib/stripe/params/product_update_params.rb +7 -7
- data/lib/stripe/params/promotion_code_create_params.rb +11 -7
- data/lib/stripe/params/promotion_code_list_params.rb +6 -2
- data/lib/stripe/params/promotion_code_retrieve_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +4 -4
- data/lib/stripe/params/quote_accept_params.rb +1 -1
- data/lib/stripe/params/quote_cancel_params.rb +1 -1
- data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +1 -1
- data/lib/stripe/params/quote_create_params.rb +45 -19
- data/lib/stripe/params/quote_finalize_quote_params.rb +1 -1
- data/lib/stripe/params/quote_line_item_list_params.rb +1 -1
- data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +1 -1
- data/lib/stripe/params/quote_list_line_items_params.rb +1 -1
- data/lib/stripe/params/quote_list_params.rb +6 -2
- data/lib/stripe/params/quote_pdf_params.rb +1 -1
- data/lib/stripe/params/quote_retrieve_params.rb +1 -1
- data/lib/stripe/params/quote_update_params.rb +42 -16
- data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +2 -2
- data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +1 -1
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +223 -0
- data/lib/stripe/params/radar/value_list_create_params.rb +3 -3
- data/lib/stripe/params/radar/value_list_delete_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_item_create_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_item_delete_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_item_list_params.rb +2 -2
- data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_list_params.rb +2 -2
- data/lib/stripe/params/radar/value_list_retrieve_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_update_params.rb +2 -2
- data/lib/stripe/params/refund_cancel_params.rb +1 -1
- data/lib/stripe/params/refund_create_params.rb +3 -3
- data/lib/stripe/params/refund_expire_params.rb +1 -1
- data/lib/stripe/params/refund_list_params.rb +2 -2
- data/lib/stripe/params/refund_retrieve_params.rb +1 -1
- data/lib/stripe/params/refund_update_params.rb +2 -2
- data/lib/stripe/params/reporting/report_run_create_params.rb +4 -4
- data/lib/stripe/params/reporting/report_run_list_params.rb +2 -2
- data/lib/stripe/params/reporting/report_run_retrieve_params.rb +1 -1
- data/lib/stripe/params/reporting/report_type_list_params.rb +1 -1
- data/lib/stripe/params/reporting/report_type_retrieve_params.rb +1 -1
- data/lib/stripe/params/review_approve_params.rb +1 -1
- data/lib/stripe/params/review_list_params.rb +2 -2
- data/lib/stripe/params/review_retrieve_params.rb +1 -1
- data/lib/stripe/params/setup_attempt_list_params.rb +2 -2
- data/lib/stripe/params/setup_intent_cancel_params.rb +1 -1
- data/lib/stripe/params/setup_intent_confirm_params.rb +223 -93
- data/lib/stripe/params/setup_intent_create_params.rb +241 -101
- data/lib/stripe/params/setup_intent_list_params.rb +6 -2
- data/lib/stripe/params/setup_intent_retrieve_params.rb +1 -1
- data/lib/stripe/params/setup_intent_update_params.rb +231 -91
- data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +1 -1
- data/lib/stripe/params/shipping_rate_create_params.rb +8 -8
- data/lib/stripe/params/shipping_rate_list_params.rb +2 -2
- data/lib/stripe/params/shipping_rate_retrieve_params.rb +1 -1
- data/lib/stripe/params/shipping_rate_update_params.rb +4 -4
- data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +1 -1
- data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +1 -1
- data/lib/stripe/params/source_create_params.rb +16 -16
- data/lib/stripe/params/source_detach_params.rb +1 -1
- data/lib/stripe/params/source_retrieve_params.rb +1 -1
- data/lib/stripe/params/source_transaction_list_params.rb +1 -1
- data/lib/stripe/params/source_update_params.rb +14 -14
- data/lib/stripe/params/source_verify_params.rb +1 -1
- data/lib/stripe/params/subscription_cancel_params.rb +2 -2
- data/lib/stripe/params/subscription_create_params.rb +131 -63
- data/lib/stripe/params/subscription_delete_discount_params.rb +1 -1
- data/lib/stripe/params/subscription_item_create_params.rb +25 -15
- data/lib/stripe/params/subscription_item_delete_params.rb +18 -4
- data/lib/stripe/params/subscription_item_list_params.rb +1 -1
- data/lib/stripe/params/subscription_item_retrieve_params.rb +1 -1
- data/lib/stripe/params/subscription_item_update_params.rb +25 -15
- data/lib/stripe/params/subscription_list_params.rb +11 -7
- data/lib/stripe/params/subscription_migrate_params.rb +3 -3
- data/lib/stripe/params/subscription_resume_params.rb +3 -3
- data/lib/stripe/params/subscription_retrieve_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_cancel_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_create_params.rb +119 -45
- data/lib/stripe/params/subscription_schedule_list_params.rb +9 -5
- data/lib/stripe/params/subscription_schedule_release_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_retrieve_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_update_params.rb +113 -43
- data/lib/stripe/params/subscription_search_params.rb +2 -2
- data/lib/stripe/params/subscription_update_params.rb +126 -62
- data/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +16 -16
- data/lib/stripe/params/tax/calculation_line_item_list_params.rb +1 -1
- data/lib/stripe/params/tax/calculation_list_line_items_params.rb +1 -1
- data/lib/stripe/params/tax/calculation_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax/registration_create_params.rb +190 -164
- data/lib/stripe/params/tax/registration_list_params.rb +1 -1
- data/lib/stripe/params/tax/registration_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax/registration_update_params.rb +1 -1
- data/lib/stripe/params/tax/settings_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax/settings_update_params.rb +5 -5
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +2 -2
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +12 -12
- data/lib/stripe/params/tax/transaction_line_item_list_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_list_line_items_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax_code_list_params.rb +1 -1
- data/lib/stripe/params/tax_code_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax_id_create_params.rb +8 -5
- data/lib/stripe/params/tax_id_delete_params.rb +1 -1
- data/lib/stripe/params/tax_id_list_params.rb +7 -4
- data/lib/stripe/params/tax_id_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax_rate_create_params.rb +2 -2
- data/lib/stripe/params/tax_rate_list_params.rb +2 -2
- data/lib/stripe/params/tax_rate_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax_rate_update_params.rb +2 -2
- data/lib/stripe/params/terminal/configuration_create_params.rb +72 -46
- data/lib/stripe/params/terminal/configuration_delete_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_list_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_retrieve_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_update_params.rb +72 -46
- data/lib/stripe/params/terminal/connection_token_create_params.rb +1 -1
- data/lib/stripe/params/terminal/location_create_params.rb +6 -6
- data/lib/stripe/params/terminal/location_delete_params.rb +1 -1
- data/lib/stripe/params/terminal/location_list_params.rb +1 -1
- data/lib/stripe/params/terminal/location_retrieve_params.rb +1 -1
- data/lib/stripe/params/terminal/location_update_params.rb +6 -6
- data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
- data/lib/stripe/params/terminal/reader_cancel_action_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +14 -14
- data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +5 -5
- data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +4 -4
- data/lib/stripe/params/terminal/reader_create_params.rb +2 -2
- data/lib/stripe/params/terminal/reader_delete_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_list_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +5 -5
- data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +5 -5
- data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +4 -4
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +4 -4
- data/lib/stripe/params/terminal/reader_retrieve_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +9 -9
- data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_update_params.rb +2 -2
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +117 -67
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +3 -3
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +142 -14
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +127 -29
- data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +92 -9
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +3 -3
- data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +144 -16
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +144 -16
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +2 -2
- data/lib/stripe/params/test_helpers/refund_expire_params.rb +1 -1
- data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +5 -5
- data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +1 -1
- data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +1 -1
- data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +1 -1
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +1 -1
- data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +1 -1
- data/lib/stripe/params/test_helpers/test_clock_list_params.rb +1 -1
- data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +2 -2
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +4 -4
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +4 -4
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +4 -4
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +4 -4
- data/lib/stripe/params/token_create_params.rb +86 -67
- data/lib/stripe/params/token_retrieve_params.rb +1 -1
- data/lib/stripe/params/topup_cancel_params.rb +1 -1
- data/lib/stripe/params/topup_create_params.rb +3 -3
- data/lib/stripe/params/topup_list_params.rb +3 -3
- data/lib/stripe/params/topup_retrieve_params.rb +1 -1
- data/lib/stripe/params/topup_update_params.rb +2 -2
- data/lib/stripe/params/transfer_create_params.rb +4 -4
- data/lib/stripe/params/transfer_list_params.rb +2 -2
- data/lib/stripe/params/transfer_retrieve_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_create_params.rb +2 -2
- data/lib/stripe/params/transfer_reversal_list_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_retrieve_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_update_params.rb +2 -2
- data/lib/stripe/params/transfer_update_params.rb +2 -2
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +2 -2
- data/lib/stripe/params/treasury/credit_reversal_list_params.rb +1 -1
- data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +2 -2
- data/lib/stripe/params/treasury/debit_reversal_list_params.rb +1 -1
- data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_close_params.rb +2 -2
- data/lib/stripe/params/treasury/financial_account_create_params.rb +17 -17
- data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +14 -14
- data/lib/stripe/params/treasury/financial_account_list_params.rb +2 -2
- data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +14 -14
- data/lib/stripe/params/treasury/financial_account_update_params.rb +18 -18
- data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +1 -1
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +3 -3
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +2 -2
- data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +1 -1
- data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
- data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +13 -13
- data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_payment_list_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_payment_post_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_payment_update_params.rb +4 -4
- data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +7 -7
- data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +4 -4
- data/lib/stripe/params/treasury/received_credit_create_params.rb +4 -4
- data/lib/stripe/params/treasury/received_credit_list_params.rb +2 -2
- data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +4 -4
- data/lib/stripe/params/treasury/received_debit_list_params.rb +1 -1
- data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/transaction_entry_list_params.rb +3 -3
- data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/transaction_list_params.rb +4 -4
- data/lib/stripe/params/treasury/transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/meter_event_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +2 -2
- data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2154 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1048 -0
- data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2207 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +507 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +497 -0
- data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +507 -0
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +8 -4
- data/lib/stripe/params/v2/core/event_destination_delete_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_disable_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_enable_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_list_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_ping_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_update_params.rb +2 -2
- data/lib/stripe/params/v2/core/event_list_params.rb +25 -2
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_create_params.rb +2 -2
- data/lib/stripe/params/webhook_endpoint_delete_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_list_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_update_params.rb +2 -2
- data/lib/stripe/params.rb +29 -0
- data/lib/stripe/request_params.rb +116 -0
- data/lib/stripe/resources/account.rb +94 -68
- data/lib/stripe/resources/account_link.rb +1 -1
- data/lib/stripe/resources/account_session.rb +45 -45
- data/lib/stripe/resources/apple_pay_domain.rb +1 -1
- data/lib/stripe/resources/application_fee.rb +2 -2
- data/lib/stripe/resources/application_fee_refund.rb +2 -2
- data/lib/stripe/resources/apps/secret.rb +3 -3
- data/lib/stripe/resources/balance.rb +21 -21
- data/lib/stripe/resources/balance_settings.rb +5 -5
- data/lib/stripe/resources/balance_transaction.rb +3 -3
- data/lib/stripe/resources/bank_account.rb +16 -16
- data/lib/stripe/resources/billing/alert.rb +4 -4
- data/lib/stripe/resources/billing/alert_triggered.rb +1 -1
- data/lib/stripe/resources/billing/credit_balance_summary.rb +8 -6
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +9 -9
- data/lib/stripe/resources/billing/credit_grant.rb +9 -7
- data/lib/stripe/resources/billing/meter.rb +5 -5
- data/lib/stripe/resources/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +2 -2
- data/lib/stripe/resources/billing/meter_event_summary.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +22 -18
- data/lib/stripe/resources/billing_portal/session.rb +20 -18
- data/lib/stripe/resources/capability.rb +22 -22
- data/lib/stripe/resources/card.rb +3 -3
- data/lib/stripe/resources/cash_balance.rb +5 -3
- data/lib/stripe/resources/charge.rb +198 -138
- data/lib/stripe/resources/checkout/session.rb +266 -140
- data/lib/stripe/resources/climate/order.rb +8 -4
- data/lib/stripe/resources/climate/product.rb +5 -1
- data/lib/stripe/resources/climate/supplier.rb +1 -1
- data/lib/stripe/resources/confirmation_token.rb +147 -105
- data/lib/stripe/resources/connect_collection_transfer.rb +1 -1
- data/lib/stripe/resources/country_spec.rb +3 -3
- data/lib/stripe/resources/coupon.rb +6 -6
- data/lib/stripe/resources/credit_note.rb +33 -13
- data/lib/stripe/resources/credit_note_line_item.rb +12 -6
- data/lib/stripe/resources/customer.rb +21 -17
- data/lib/stripe/resources/customer_balance_transaction.rb +8 -6
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +23 -21
- data/lib/stripe/resources/customer_session.rb +90 -6
- data/lib/stripe/resources/discount.rb +5 -3
- data/lib/stripe/resources/dispute.rb +23 -23
- data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -2
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +1 -1
- data/lib/stripe/resources/entitlements/feature.rb +1 -1
- data/lib/stripe/resources/ephemeral_key.rb +1 -1
- data/lib/stripe/resources/event.rb +4 -4
- data/lib/stripe/resources/exchange_rate.rb +2 -2
- data/lib/stripe/resources/file.rb +4 -4
- data/lib/stripe/resources/file_link.rb +2 -2
- data/lib/stripe/resources/financial_connections/account.rb +37 -13
- data/lib/stripe/resources/financial_connections/session.rb +7 -5
- data/lib/stripe/resources/financial_connections/transaction.rb +2 -2
- data/lib/stripe/resources/forwarding/request.rb +7 -7
- data/lib/stripe/resources/funding_instructions.rb +35 -35
- data/lib/stripe/resources/identity/verification_report.rb +28 -28
- data/lib/stripe/resources/identity/verification_session.rb +26 -24
- data/lib/stripe/resources/invoice.rb +119 -85
- data/lib/stripe/resources/invoice_item.rb +29 -14
- data/lib/stripe/resources/invoice_line_item.rb +35 -20
- data/lib/stripe/resources/invoice_payment.rb +6 -4
- data/lib/stripe/resources/invoice_rendering_template.rb +2 -2
- data/lib/stripe/resources/issuing/authorization.rb +120 -40
- data/lib/stripe/resources/issuing/card.rb +69 -23
- data/lib/stripe/resources/issuing/cardholder.rb +28 -28
- data/lib/stripe/resources/issuing/dispute.rb +18 -18
- data/lib/stripe/resources/issuing/personalization_design.rb +5 -5
- data/lib/stripe/resources/issuing/physical_bundle.rb +2 -2
- data/lib/stripe/resources/issuing/token.rb +8 -8
- data/lib/stripe/resources/issuing/transaction.rb +145 -29
- data/lib/stripe/resources/line_item.rb +30 -5
- data/lib/stripe/resources/login_link.rb +1 -1
- data/lib/stripe/resources/mandate.rb +77 -23
- data/lib/stripe/resources/payment_attempt_record.rb +2010 -0
- data/lib/stripe/resources/payment_intent.rb +413 -178
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +138 -0
- data/lib/stripe/resources/payment_link.rb +101 -54
- data/lib/stripe/resources/payment_method.rb +174 -98
- data/lib/stripe/resources/payment_method_configuration.rb +243 -107
- data/lib/stripe/resources/payment_method_domain.rb +14 -14
- data/lib/stripe/resources/payment_record.rb +2140 -0
- data/lib/stripe/resources/payout.rb +12 -12
- data/lib/stripe/resources/person.rb +43 -43
- data/lib/stripe/resources/plan.rb +28 -8
- data/lib/stripe/resources/price.rb +54 -14
- data/lib/stripe/resources/product.rb +12 -12
- data/lib/stripe/resources/product_feature.rb +1 -1
- data/lib/stripe/resources/promotion_code.rb +10 -8
- data/lib/stripe/resources/quote.rb +39 -37
- data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -2
- data/lib/stripe/resources/radar/payment_evaluation.rb +497 -0
- data/lib/stripe/resources/radar/value_list.rb +4 -4
- data/lib/stripe/resources/radar/value_list_item.rb +2 -2
- data/lib/stripe/resources/refund.rb +87 -40
- data/lib/stripe/resources/reporting/report_run.rb +4 -4
- data/lib/stripe/resources/reporting/report_type.rb +4 -4
- data/lib/stripe/resources/reserve/hold.rb +67 -0
- data/lib/stripe/resources/reserve/plan.rb +78 -0
- data/lib/stripe/resources/reserve/release.rb +65 -0
- data/lib/stripe/resources/reversal.rb +4 -4
- data/lib/stripe/resources/review.rb +4 -4
- data/lib/stripe/resources/setup_attempt.rb +74 -46
- data/lib/stripe/resources/setup_intent.rb +163 -49
- data/lib/stripe/resources/shipping_rate.rb +9 -9
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +3 -3
- data/lib/stripe/resources/source.rb +38 -38
- data/lib/stripe/resources/source_mandate_notification.rb +7 -7
- data/lib/stripe/resources/source_transaction.rb +6 -6
- data/lib/stripe/resources/subscription.rb +105 -55
- data/lib/stripe/resources/subscription_item.rb +8 -8
- data/lib/stripe/resources/subscription_schedule.rb +37 -35
- data/lib/stripe/resources/tax/association.rb +86 -0
- data/lib/stripe/resources/tax/calculation.rb +26 -26
- data/lib/stripe/resources/tax/calculation_line_item.rb +11 -11
- data/lib/stripe/resources/tax/registration.rb +176 -144
- data/lib/stripe/resources/tax/settings.rb +9 -9
- data/lib/stripe/resources/tax/transaction.rb +21 -21
- data/lib/stripe/resources/tax/transaction_line_item.rb +7 -7
- data/lib/stripe/resources/tax_id.rb +10 -6
- data/lib/stripe/resources/tax_rate.rb +3 -3
- data/lib/stripe/resources/terminal/configuration.rb +68 -36
- data/lib/stripe/resources/terminal/connection_token.rb +1 -1
- data/lib/stripe/resources/terminal/location.rb +7 -7
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
- data/lib/stripe/resources/terminal/reader.rb +64 -62
- data/lib/stripe/resources/test_helpers/test_clock.rb +3 -3
- data/lib/stripe/resources/token.rb +5 -5
- data/lib/stripe/resources/topup.rb +4 -4
- data/lib/stripe/resources/transfer.rb +6 -6
- data/lib/stripe/resources/treasury/credit_reversal.rb +5 -5
- data/lib/stripe/resources/treasury/debit_reversal.rb +6 -6
- data/lib/stripe/resources/treasury/financial_account.rb +8 -8
- data/lib/stripe/resources/treasury/financial_account_features.rb +22 -22
- data/lib/stripe/resources/treasury/inbound_transfer.rb +13 -13
- data/lib/stripe/resources/treasury/outbound_payment.rb +18 -18
- data/lib/stripe/resources/treasury/outbound_transfer.rb +16 -16
- data/lib/stripe/resources/treasury/received_credit.rb +19 -19
- data/lib/stripe/resources/treasury/received_debit.rb +17 -15
- data/lib/stripe/resources/treasury/transaction.rb +15 -15
- data/lib/stripe/resources/treasury/transaction_entry.rb +14 -14
- data/lib/stripe/resources/v2/billing/meter_event.rb +3 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -1
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +1 -0
- data/lib/stripe/resources/v2/core/account.rb +3586 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +487 -0
- data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
- data/lib/stripe/resources/v2/core/account_token.rb +37 -0
- data/lib/stripe/resources/v2/core/event.rb +6 -4
- data/lib/stripe/resources/v2/core/event_destination.rb +9 -5
- data/lib/stripe/resources/v2/core/event_notification.rb +2 -1
- data/lib/stripe/resources/webhook_endpoint.rb +2 -2
- data/lib/stripe/resources.rb +31 -0
- data/lib/stripe/services/checkout/session_service.rb +5 -1
- data/lib/stripe/services/climate/order_service.rb +2 -0
- data/lib/stripe/services/credit_note_preview_lines_service.rb +2 -0
- data/lib/stripe/services/credit_note_service.rb +4 -0
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/invoice_item_service.rb +4 -0
- data/lib/stripe/services/invoice_line_item_service.rb +2 -0
- data/lib/stripe/services/invoice_service.rb +10 -4
- data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
- data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
- data/lib/stripe/services/payment_intent_service.rb +8 -1
- data/lib/stripe/services/payment_link_service.rb +2 -0
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/payment_record_service.rb +101 -0
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +2 -0
- data/lib/stripe/services/price_service.rb +2 -0
- data/lib/stripe/services/product_service.rb +2 -0
- data/lib/stripe/services/quote_service.rb +4 -0
- data/lib/stripe/services/radar/payment_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/subscription_item_service.rb +4 -0
- data/lib/stripe/services/subscription_schedule_service.rb +4 -0
- data/lib/stripe/services/subscription_service.rb +6 -2
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_service.rb +8 -8
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +12 -0
- data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +8 -0
- data/lib/stripe/services/v1_services.rb +3 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +23 -0
- data/lib/stripe/services/v2/core/account_service.rb +87 -0
- data/lib/stripe/services/v2/core/account_token_service.rb +38 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +85 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +42 -0
- data/lib/stripe/services/v2/core_service.rb +4 -1
- data/lib/stripe/services.rb +11 -0
- data/lib/stripe/stripe_client.rb +6 -0
- data/lib/stripe/stripe_object.rb +39 -1
- data/lib/stripe/util.rb +12 -14
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +7 -0
- data/lib/stripe.rb +1 -1
- data/rbi/stripe.rbi +64414 -32011
- metadata +103 -6
- data/lib/stripe/resources/alipay_account.rb +0 -34
- data/lib/stripe/resources/recipient_transfer.rb +0 -7
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Checkout
|
|
6
6
|
# A Checkout Session represents your customer's session as they pay for
|
|
7
|
-
# one-time purchases or subscriptions through [Checkout](https://stripe.com/
|
|
8
|
-
# or [Payment Links](https://stripe.com/
|
|
7
|
+
# one-time purchases or subscriptions through [Checkout](https://docs.stripe.com/payments/checkout)
|
|
8
|
+
# or [Payment Links](https://docs.stripe.com/payments/payment-links). We recommend creating a
|
|
9
9
|
# new Session each time your customer attempts to pay.
|
|
10
10
|
#
|
|
11
11
|
# Once payment is successful, the Checkout Session will contain a reference
|
|
12
|
-
# to the [Customer](https://stripe.com/
|
|
13
|
-
# [PaymentIntent](https://stripe.com/
|
|
14
|
-
# [Subscription](https://stripe.com/
|
|
12
|
+
# to the [Customer](https://docs.stripe.com/api/customers), and either the successful
|
|
13
|
+
# [PaymentIntent](https://docs.stripe.com/api/payment_intents) or an active
|
|
14
|
+
# [Subscription](https://docs.stripe.com/api/subscriptions).
|
|
15
15
|
#
|
|
16
16
|
# You can create a Checkout Session on your server and redirect to its URL
|
|
17
17
|
# to begin Checkout.
|
|
18
18
|
#
|
|
19
|
-
# Related guide: [Checkout quickstart](https://stripe.com/
|
|
19
|
+
# Related guide: [Checkout quickstart](https://docs.stripe.com/checkout/quickstart)
|
|
20
20
|
class Session < APIResource
|
|
21
21
|
extend Stripe::APIOperations::Create
|
|
22
22
|
extend Stripe::APIOperations::List
|
|
@@ -27,7 +27,7 @@ module Stripe
|
|
|
27
27
|
"checkout.session"
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
class AdaptivePricing < Stripe::StripeObject
|
|
30
|
+
class AdaptivePricing < ::Stripe::StripeObject
|
|
31
31
|
# If enabled, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions).
|
|
32
32
|
attr_reader :enabled
|
|
33
33
|
|
|
@@ -40,8 +40,8 @@ module Stripe
|
|
|
40
40
|
end
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
class AfterExpiration < Stripe::StripeObject
|
|
44
|
-
class Recovery < Stripe::StripeObject
|
|
43
|
+
class AfterExpiration < ::Stripe::StripeObject
|
|
44
|
+
class Recovery < ::Stripe::StripeObject
|
|
45
45
|
# Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false`
|
|
46
46
|
attr_reader :allow_promotion_codes
|
|
47
47
|
# If `true`, a recovery url will be generated to recover this Checkout Session if it
|
|
@@ -73,8 +73,8 @@ module Stripe
|
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
-
class AutomaticTax < Stripe::StripeObject
|
|
77
|
-
class Liability < Stripe::StripeObject
|
|
76
|
+
class AutomaticTax < ::Stripe::StripeObject
|
|
77
|
+
class Liability < ::Stripe::StripeObject
|
|
78
78
|
# The connected account being referenced when `type` is `account`.
|
|
79
79
|
attr_reader :account
|
|
80
80
|
# Type of the account referenced.
|
|
@@ -106,8 +106,8 @@ module Stripe
|
|
|
106
106
|
end
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
class BrandingSettings < Stripe::StripeObject
|
|
110
|
-
class Icon < Stripe::StripeObject
|
|
109
|
+
class BrandingSettings < ::Stripe::StripeObject
|
|
110
|
+
class Icon < ::Stripe::StripeObject
|
|
111
111
|
# The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise.
|
|
112
112
|
attr_reader :file
|
|
113
113
|
# The type of image for the icon. Must be one of `file` or `url`.
|
|
@@ -124,7 +124,7 @@ module Stripe
|
|
|
124
124
|
end
|
|
125
125
|
end
|
|
126
126
|
|
|
127
|
-
class Logo < Stripe::StripeObject
|
|
127
|
+
class Logo < ::Stripe::StripeObject
|
|
128
128
|
# The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise.
|
|
129
129
|
attr_reader :file
|
|
130
130
|
# The type of image for the logo. Must be one of `file` or `url`.
|
|
@@ -164,9 +164,9 @@ module Stripe
|
|
|
164
164
|
end
|
|
165
165
|
end
|
|
166
166
|
|
|
167
|
-
class CollectedInformation < Stripe::StripeObject
|
|
168
|
-
class ShippingDetails < Stripe::StripeObject
|
|
169
|
-
class Address < Stripe::StripeObject
|
|
167
|
+
class CollectedInformation < ::Stripe::StripeObject
|
|
168
|
+
class ShippingDetails < ::Stripe::StripeObject
|
|
169
|
+
class Address < ::Stripe::StripeObject
|
|
170
170
|
# City, district, suburb, town, or village.
|
|
171
171
|
attr_reader :city
|
|
172
172
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
@@ -177,7 +177,7 @@ module Stripe
|
|
|
177
177
|
attr_reader :line2
|
|
178
178
|
# ZIP or postal code.
|
|
179
179
|
attr_reader :postal_code
|
|
180
|
-
# State, county, province, or region.
|
|
180
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
181
181
|
attr_reader :state
|
|
182
182
|
|
|
183
183
|
def self.inner_class_types
|
|
@@ -217,7 +217,7 @@ module Stripe
|
|
|
217
217
|
end
|
|
218
218
|
end
|
|
219
219
|
|
|
220
|
-
class Consent < Stripe::StripeObject
|
|
220
|
+
class Consent < ::Stripe::StripeObject
|
|
221
221
|
# If `opt_in`, the customer consents to receiving promotional communications
|
|
222
222
|
# from the merchant about this Checkout Session.
|
|
223
223
|
attr_reader :promotions
|
|
@@ -233,8 +233,8 @@ module Stripe
|
|
|
233
233
|
end
|
|
234
234
|
end
|
|
235
235
|
|
|
236
|
-
class ConsentCollection < Stripe::StripeObject
|
|
237
|
-
class PaymentMethodReuseAgreement < Stripe::StripeObject
|
|
236
|
+
class ConsentCollection < ::Stripe::StripeObject
|
|
237
|
+
class PaymentMethodReuseAgreement < ::Stripe::StripeObject
|
|
238
238
|
# Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used.
|
|
239
239
|
#
|
|
240
240
|
# When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
|
|
@@ -266,7 +266,7 @@ module Stripe
|
|
|
266
266
|
end
|
|
267
267
|
end
|
|
268
268
|
|
|
269
|
-
class CurrencyConversion < Stripe::StripeObject
|
|
269
|
+
class CurrencyConversion < ::Stripe::StripeObject
|
|
270
270
|
# Total of all items in source currency before discounts or taxes are applied.
|
|
271
271
|
attr_reader :amount_subtotal
|
|
272
272
|
# Total of all items in source currency after discounts and taxes are applied.
|
|
@@ -283,11 +283,15 @@ module Stripe
|
|
|
283
283
|
def self.field_remappings
|
|
284
284
|
@field_remappings = {}
|
|
285
285
|
end
|
|
286
|
+
|
|
287
|
+
def self.field_encodings
|
|
288
|
+
@field_encodings = { fx_rate: :decimal_string }
|
|
289
|
+
end
|
|
286
290
|
end
|
|
287
291
|
|
|
288
|
-
class CustomField < Stripe::StripeObject
|
|
289
|
-
class Dropdown < Stripe::StripeObject
|
|
290
|
-
class Option < Stripe::StripeObject
|
|
292
|
+
class CustomField < ::Stripe::StripeObject
|
|
293
|
+
class Dropdown < ::Stripe::StripeObject
|
|
294
|
+
class Option < ::Stripe::StripeObject
|
|
291
295
|
# The label for the option, displayed to the customer. Up to 100 characters.
|
|
292
296
|
attr_reader :label
|
|
293
297
|
# The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
|
|
@@ -301,7 +305,7 @@ module Stripe
|
|
|
301
305
|
@field_remappings = {}
|
|
302
306
|
end
|
|
303
307
|
end
|
|
304
|
-
# The value that
|
|
308
|
+
# The value that pre-fills on the payment page.
|
|
305
309
|
attr_reader :default_value
|
|
306
310
|
# The options available for the customer to select. Up to 200 options allowed.
|
|
307
311
|
attr_reader :options
|
|
@@ -317,7 +321,7 @@ module Stripe
|
|
|
317
321
|
end
|
|
318
322
|
end
|
|
319
323
|
|
|
320
|
-
class Label < Stripe::StripeObject
|
|
324
|
+
class Label < ::Stripe::StripeObject
|
|
321
325
|
# Custom text for the label, displayed to the customer. Up to 50 characters.
|
|
322
326
|
attr_reader :custom
|
|
323
327
|
# The type of the label.
|
|
@@ -332,8 +336,8 @@ module Stripe
|
|
|
332
336
|
end
|
|
333
337
|
end
|
|
334
338
|
|
|
335
|
-
class Numeric < Stripe::StripeObject
|
|
336
|
-
# The value that
|
|
339
|
+
class Numeric < ::Stripe::StripeObject
|
|
340
|
+
# The value that pre-fills the field on the payment page.
|
|
337
341
|
attr_reader :default_value
|
|
338
342
|
# The maximum character length constraint for the customer's input.
|
|
339
343
|
attr_reader :maximum_length
|
|
@@ -351,8 +355,8 @@ module Stripe
|
|
|
351
355
|
end
|
|
352
356
|
end
|
|
353
357
|
|
|
354
|
-
class Text < Stripe::StripeObject
|
|
355
|
-
# The value that
|
|
358
|
+
class Text < ::Stripe::StripeObject
|
|
359
|
+
# The value that pre-fills the field on the payment page.
|
|
356
360
|
attr_reader :default_value
|
|
357
361
|
# The maximum character length constraint for the customer's input.
|
|
358
362
|
attr_reader :maximum_length
|
|
@@ -393,9 +397,9 @@ module Stripe
|
|
|
393
397
|
end
|
|
394
398
|
end
|
|
395
399
|
|
|
396
|
-
class CustomText < Stripe::StripeObject
|
|
397
|
-
class AfterSubmit < Stripe::StripeObject
|
|
398
|
-
# Text
|
|
400
|
+
class CustomText < ::Stripe::StripeObject
|
|
401
|
+
class AfterSubmit < ::Stripe::StripeObject
|
|
402
|
+
# Text can be up to 1200 characters in length.
|
|
399
403
|
attr_reader :message
|
|
400
404
|
|
|
401
405
|
def self.inner_class_types
|
|
@@ -407,8 +411,8 @@ module Stripe
|
|
|
407
411
|
end
|
|
408
412
|
end
|
|
409
413
|
|
|
410
|
-
class ShippingAddress < Stripe::StripeObject
|
|
411
|
-
# Text
|
|
414
|
+
class ShippingAddress < ::Stripe::StripeObject
|
|
415
|
+
# Text can be up to 1200 characters in length.
|
|
412
416
|
attr_reader :message
|
|
413
417
|
|
|
414
418
|
def self.inner_class_types
|
|
@@ -420,8 +424,8 @@ module Stripe
|
|
|
420
424
|
end
|
|
421
425
|
end
|
|
422
426
|
|
|
423
|
-
class Submit < Stripe::StripeObject
|
|
424
|
-
# Text
|
|
427
|
+
class Submit < ::Stripe::StripeObject
|
|
428
|
+
# Text can be up to 1200 characters in length.
|
|
425
429
|
attr_reader :message
|
|
426
430
|
|
|
427
431
|
def self.inner_class_types
|
|
@@ -433,8 +437,8 @@ module Stripe
|
|
|
433
437
|
end
|
|
434
438
|
end
|
|
435
439
|
|
|
436
|
-
class TermsOfServiceAcceptance < Stripe::StripeObject
|
|
437
|
-
# Text
|
|
440
|
+
class TermsOfServiceAcceptance < ::Stripe::StripeObject
|
|
441
|
+
# Text can be up to 1200 characters in length.
|
|
438
442
|
attr_reader :message
|
|
439
443
|
|
|
440
444
|
def self.inner_class_types
|
|
@@ -468,8 +472,8 @@ module Stripe
|
|
|
468
472
|
end
|
|
469
473
|
end
|
|
470
474
|
|
|
471
|
-
class CustomerDetails < Stripe::StripeObject
|
|
472
|
-
class Address < Stripe::StripeObject
|
|
475
|
+
class CustomerDetails < ::Stripe::StripeObject
|
|
476
|
+
class Address < ::Stripe::StripeObject
|
|
473
477
|
# City, district, suburb, town, or village.
|
|
474
478
|
attr_reader :city
|
|
475
479
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
@@ -480,7 +484,7 @@ module Stripe
|
|
|
480
484
|
attr_reader :line2
|
|
481
485
|
# ZIP or postal code.
|
|
482
486
|
attr_reader :postal_code
|
|
483
|
-
# State, county, province, or region.
|
|
487
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
484
488
|
attr_reader :state
|
|
485
489
|
|
|
486
490
|
def self.inner_class_types
|
|
@@ -492,8 +496,8 @@ module Stripe
|
|
|
492
496
|
end
|
|
493
497
|
end
|
|
494
498
|
|
|
495
|
-
class TaxId < Stripe::StripeObject
|
|
496
|
-
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
|
499
|
+
class TaxId < ::Stripe::StripeObject
|
|
500
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
|
497
501
|
attr_reader :type
|
|
498
502
|
# The value of the tax ID.
|
|
499
503
|
attr_reader :value
|
|
@@ -533,7 +537,7 @@ module Stripe
|
|
|
533
537
|
end
|
|
534
538
|
end
|
|
535
539
|
|
|
536
|
-
class Discount < Stripe::StripeObject
|
|
540
|
+
class Discount < ::Stripe::StripeObject
|
|
537
541
|
# Coupon attached to the Checkout Session.
|
|
538
542
|
attr_reader :coupon
|
|
539
543
|
# Promotion code attached to the Checkout Session.
|
|
@@ -548,9 +552,9 @@ module Stripe
|
|
|
548
552
|
end
|
|
549
553
|
end
|
|
550
554
|
|
|
551
|
-
class InvoiceCreation < Stripe::StripeObject
|
|
552
|
-
class InvoiceData < Stripe::StripeObject
|
|
553
|
-
class CustomField < Stripe::StripeObject
|
|
555
|
+
class InvoiceCreation < ::Stripe::StripeObject
|
|
556
|
+
class InvoiceData < ::Stripe::StripeObject
|
|
557
|
+
class CustomField < ::Stripe::StripeObject
|
|
554
558
|
# The name of the custom field.
|
|
555
559
|
attr_reader :name
|
|
556
560
|
# The value of the custom field.
|
|
@@ -565,7 +569,7 @@ module Stripe
|
|
|
565
569
|
end
|
|
566
570
|
end
|
|
567
571
|
|
|
568
|
-
class Issuer < Stripe::StripeObject
|
|
572
|
+
class Issuer < ::Stripe::StripeObject
|
|
569
573
|
# The connected account being referenced when `type` is `account`.
|
|
570
574
|
attr_reader :account
|
|
571
575
|
# Type of the account referenced.
|
|
@@ -580,7 +584,7 @@ module Stripe
|
|
|
580
584
|
end
|
|
581
585
|
end
|
|
582
586
|
|
|
583
|
-
class RenderingOptions < Stripe::StripeObject
|
|
587
|
+
class RenderingOptions < ::Stripe::StripeObject
|
|
584
588
|
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
|
585
589
|
attr_reader :amount_tax_display
|
|
586
590
|
# ID of the invoice rendering template to be used for the generated invoice.
|
|
@@ -604,7 +608,7 @@ module Stripe
|
|
|
604
608
|
attr_reader :footer
|
|
605
609
|
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
606
610
|
attr_reader :issuer
|
|
607
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
611
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
608
612
|
attr_reader :metadata
|
|
609
613
|
# Options for invoice PDF rendering.
|
|
610
614
|
attr_reader :rendering_options
|
|
@@ -635,8 +639,8 @@ module Stripe
|
|
|
635
639
|
end
|
|
636
640
|
end
|
|
637
641
|
|
|
638
|
-
class NameCollection < Stripe::StripeObject
|
|
639
|
-
class Business < Stripe::StripeObject
|
|
642
|
+
class NameCollection < ::Stripe::StripeObject
|
|
643
|
+
class Business < ::Stripe::StripeObject
|
|
640
644
|
# Indicates whether business name collection is enabled for the session
|
|
641
645
|
attr_reader :enabled
|
|
642
646
|
# Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
|
|
@@ -651,7 +655,7 @@ module Stripe
|
|
|
651
655
|
end
|
|
652
656
|
end
|
|
653
657
|
|
|
654
|
-
class Individual < Stripe::StripeObject
|
|
658
|
+
class Individual < ::Stripe::StripeObject
|
|
655
659
|
# Indicates whether individual name collection is enabled for the session
|
|
656
660
|
attr_reader :enabled
|
|
657
661
|
# Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
|
|
@@ -679,8 +683,8 @@ module Stripe
|
|
|
679
683
|
end
|
|
680
684
|
end
|
|
681
685
|
|
|
682
|
-
class OptionalItem < Stripe::StripeObject
|
|
683
|
-
class AdjustableQuantity < Stripe::StripeObject
|
|
686
|
+
class OptionalItem < ::Stripe::StripeObject
|
|
687
|
+
class AdjustableQuantity < ::Stripe::StripeObject
|
|
684
688
|
# Set to true if the quantity can be adjusted to any non-negative integer.
|
|
685
689
|
attr_reader :enabled
|
|
686
690
|
# The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
|
|
@@ -712,7 +716,7 @@ module Stripe
|
|
|
712
716
|
end
|
|
713
717
|
end
|
|
714
718
|
|
|
715
|
-
class PaymentMethodConfigurationDetails < Stripe::StripeObject
|
|
719
|
+
class PaymentMethodConfigurationDetails < ::Stripe::StripeObject
|
|
716
720
|
# ID of the payment method configuration used.
|
|
717
721
|
attr_reader :id
|
|
718
722
|
# ID of the parent payment method configuration used.
|
|
@@ -727,9 +731,9 @@ module Stripe
|
|
|
727
731
|
end
|
|
728
732
|
end
|
|
729
733
|
|
|
730
|
-
class PaymentMethodOptions < Stripe::StripeObject
|
|
731
|
-
class AcssDebit < Stripe::StripeObject
|
|
732
|
-
class MandateOptions < Stripe::StripeObject
|
|
734
|
+
class PaymentMethodOptions < ::Stripe::StripeObject
|
|
735
|
+
class AcssDebit < ::Stripe::StripeObject
|
|
736
|
+
class MandateOptions < ::Stripe::StripeObject
|
|
733
737
|
# A URL for custom mandate text
|
|
734
738
|
attr_reader :custom_mandate_url
|
|
735
739
|
# List of Stripe products where this mandate can be selected automatically. Returned when the Session is in `setup` mode.
|
|
@@ -763,7 +767,7 @@ module Stripe
|
|
|
763
767
|
attr_reader :setup_future_usage
|
|
764
768
|
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
765
769
|
attr_reader :target_date
|
|
766
|
-
# Bank account verification method.
|
|
770
|
+
# Bank account verification method. The default value is `automatic`.
|
|
767
771
|
attr_reader :verification_method
|
|
768
772
|
|
|
769
773
|
def self.inner_class_types
|
|
@@ -775,7 +779,7 @@ module Stripe
|
|
|
775
779
|
end
|
|
776
780
|
end
|
|
777
781
|
|
|
778
|
-
class Affirm < Stripe::StripeObject
|
|
782
|
+
class Affirm < ::Stripe::StripeObject
|
|
779
783
|
# Controls when the funds will be captured from the customer's account.
|
|
780
784
|
attr_reader :capture_method
|
|
781
785
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -796,7 +800,7 @@ module Stripe
|
|
|
796
800
|
end
|
|
797
801
|
end
|
|
798
802
|
|
|
799
|
-
class AfterpayClearpay < Stripe::StripeObject
|
|
803
|
+
class AfterpayClearpay < ::Stripe::StripeObject
|
|
800
804
|
# Controls when the funds will be captured from the customer's account.
|
|
801
805
|
attr_reader :capture_method
|
|
802
806
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -817,7 +821,7 @@ module Stripe
|
|
|
817
821
|
end
|
|
818
822
|
end
|
|
819
823
|
|
|
820
|
-
class Alipay < Stripe::StripeObject
|
|
824
|
+
class Alipay < ::Stripe::StripeObject
|
|
821
825
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
822
826
|
#
|
|
823
827
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -836,7 +840,7 @@ module Stripe
|
|
|
836
840
|
end
|
|
837
841
|
end
|
|
838
842
|
|
|
839
|
-
class Alma < Stripe::StripeObject
|
|
843
|
+
class Alma < ::Stripe::StripeObject
|
|
840
844
|
# Controls when the funds will be captured from the customer's account.
|
|
841
845
|
attr_reader :capture_method
|
|
842
846
|
|
|
@@ -849,7 +853,7 @@ module Stripe
|
|
|
849
853
|
end
|
|
850
854
|
end
|
|
851
855
|
|
|
852
|
-
class AmazonPay < Stripe::StripeObject
|
|
856
|
+
class AmazonPay < ::Stripe::StripeObject
|
|
853
857
|
# Controls when the funds will be captured from the customer's account.
|
|
854
858
|
attr_reader :capture_method
|
|
855
859
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -870,7 +874,7 @@ module Stripe
|
|
|
870
874
|
end
|
|
871
875
|
end
|
|
872
876
|
|
|
873
|
-
class AuBecsDebit < Stripe::StripeObject
|
|
877
|
+
class AuBecsDebit < ::Stripe::StripeObject
|
|
874
878
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
875
879
|
#
|
|
876
880
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -891,8 +895,8 @@ module Stripe
|
|
|
891
895
|
end
|
|
892
896
|
end
|
|
893
897
|
|
|
894
|
-
class BacsDebit < Stripe::StripeObject
|
|
895
|
-
class MandateOptions < Stripe::StripeObject
|
|
898
|
+
class BacsDebit < ::Stripe::StripeObject
|
|
899
|
+
class MandateOptions < ::Stripe::StripeObject
|
|
896
900
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
|
|
897
901
|
attr_reader :reference_prefix
|
|
898
902
|
|
|
@@ -926,7 +930,7 @@ module Stripe
|
|
|
926
930
|
end
|
|
927
931
|
end
|
|
928
932
|
|
|
929
|
-
class Bancontact < Stripe::StripeObject
|
|
933
|
+
class Bancontact < ::Stripe::StripeObject
|
|
930
934
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
931
935
|
#
|
|
932
936
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -945,7 +949,7 @@ module Stripe
|
|
|
945
949
|
end
|
|
946
950
|
end
|
|
947
951
|
|
|
948
|
-
class Billie < Stripe::StripeObject
|
|
952
|
+
class Billie < ::Stripe::StripeObject
|
|
949
953
|
# Controls when the funds will be captured from the customer's account.
|
|
950
954
|
attr_reader :capture_method
|
|
951
955
|
|
|
@@ -958,7 +962,7 @@ module Stripe
|
|
|
958
962
|
end
|
|
959
963
|
end
|
|
960
964
|
|
|
961
|
-
class Boleto < Stripe::StripeObject
|
|
965
|
+
class Boleto < ::Stripe::StripeObject
|
|
962
966
|
# The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time.
|
|
963
967
|
attr_reader :expires_after_days
|
|
964
968
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -979,8 +983,8 @@ module Stripe
|
|
|
979
983
|
end
|
|
980
984
|
end
|
|
981
985
|
|
|
982
|
-
class Card < Stripe::StripeObject
|
|
983
|
-
class Installments < Stripe::StripeObject
|
|
986
|
+
class Card < ::Stripe::StripeObject
|
|
987
|
+
class Installments < ::Stripe::StripeObject
|
|
984
988
|
# Indicates if installments are enabled
|
|
985
989
|
attr_reader :enabled
|
|
986
990
|
|
|
@@ -993,7 +997,7 @@ module Stripe
|
|
|
993
997
|
end
|
|
994
998
|
end
|
|
995
999
|
|
|
996
|
-
class Restrictions < Stripe::StripeObject
|
|
1000
|
+
class Restrictions < ::Stripe::StripeObject
|
|
997
1001
|
# Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.
|
|
998
1002
|
attr_reader :brands_blocked
|
|
999
1003
|
|
|
@@ -1017,7 +1021,7 @@ module Stripe
|
|
|
1017
1021
|
attr_reader :request_multicapture
|
|
1018
1022
|
# Request ability to [overcapture](/payments/overcapture) for this CheckoutSession.
|
|
1019
1023
|
attr_reader :request_overcapture
|
|
1020
|
-
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/
|
|
1024
|
+
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1021
1025
|
attr_reader :request_three_d_secure
|
|
1022
1026
|
# Attribute for field restrictions
|
|
1023
1027
|
attr_reader :restrictions
|
|
@@ -1043,7 +1047,7 @@ module Stripe
|
|
|
1043
1047
|
end
|
|
1044
1048
|
end
|
|
1045
1049
|
|
|
1046
|
-
class Cashapp < Stripe::StripeObject
|
|
1050
|
+
class Cashapp < ::Stripe::StripeObject
|
|
1047
1051
|
# Controls when the funds will be captured from the customer's account.
|
|
1048
1052
|
attr_reader :capture_method
|
|
1049
1053
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1064,10 +1068,10 @@ module Stripe
|
|
|
1064
1068
|
end
|
|
1065
1069
|
end
|
|
1066
1070
|
|
|
1067
|
-
class CustomerBalance < Stripe::StripeObject
|
|
1068
|
-
class BankTransfer < Stripe::StripeObject
|
|
1069
|
-
class EuBankTransfer < Stripe::StripeObject
|
|
1070
|
-
# The desired country code of the bank account information. Permitted values include: `
|
|
1071
|
+
class CustomerBalance < ::Stripe::StripeObject
|
|
1072
|
+
class BankTransfer < ::Stripe::StripeObject
|
|
1073
|
+
class EuBankTransfer < ::Stripe::StripeObject
|
|
1074
|
+
# The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
|
|
1071
1075
|
attr_reader :country
|
|
1072
1076
|
|
|
1073
1077
|
def self.inner_class_types
|
|
@@ -1117,7 +1121,7 @@ module Stripe
|
|
|
1117
1121
|
end
|
|
1118
1122
|
end
|
|
1119
1123
|
|
|
1120
|
-
class Eps < Stripe::StripeObject
|
|
1124
|
+
class Eps < ::Stripe::StripeObject
|
|
1121
1125
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1122
1126
|
#
|
|
1123
1127
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1136,7 +1140,7 @@ module Stripe
|
|
|
1136
1140
|
end
|
|
1137
1141
|
end
|
|
1138
1142
|
|
|
1139
|
-
class Fpx < Stripe::StripeObject
|
|
1143
|
+
class Fpx < ::Stripe::StripeObject
|
|
1140
1144
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1141
1145
|
#
|
|
1142
1146
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1155,7 +1159,7 @@ module Stripe
|
|
|
1155
1159
|
end
|
|
1156
1160
|
end
|
|
1157
1161
|
|
|
1158
|
-
class Giropay < Stripe::StripeObject
|
|
1162
|
+
class Giropay < ::Stripe::StripeObject
|
|
1159
1163
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1160
1164
|
#
|
|
1161
1165
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1174,7 +1178,7 @@ module Stripe
|
|
|
1174
1178
|
end
|
|
1175
1179
|
end
|
|
1176
1180
|
|
|
1177
|
-
class Grabpay < Stripe::StripeObject
|
|
1181
|
+
class Grabpay < ::Stripe::StripeObject
|
|
1178
1182
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1179
1183
|
#
|
|
1180
1184
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1193,7 +1197,7 @@ module Stripe
|
|
|
1193
1197
|
end
|
|
1194
1198
|
end
|
|
1195
1199
|
|
|
1196
|
-
class Ideal < Stripe::StripeObject
|
|
1200
|
+
class Ideal < ::Stripe::StripeObject
|
|
1197
1201
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1198
1202
|
#
|
|
1199
1203
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1212,7 +1216,7 @@ module Stripe
|
|
|
1212
1216
|
end
|
|
1213
1217
|
end
|
|
1214
1218
|
|
|
1215
|
-
class KakaoPay < Stripe::StripeObject
|
|
1219
|
+
class KakaoPay < ::Stripe::StripeObject
|
|
1216
1220
|
# Controls when the funds will be captured from the customer's account.
|
|
1217
1221
|
attr_reader :capture_method
|
|
1218
1222
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1233,7 +1237,7 @@ module Stripe
|
|
|
1233
1237
|
end
|
|
1234
1238
|
end
|
|
1235
1239
|
|
|
1236
|
-
class Klarna < Stripe::StripeObject
|
|
1240
|
+
class Klarna < ::Stripe::StripeObject
|
|
1237
1241
|
# Controls when the funds will be captured from the customer's account.
|
|
1238
1242
|
attr_reader :capture_method
|
|
1239
1243
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1254,7 +1258,7 @@ module Stripe
|
|
|
1254
1258
|
end
|
|
1255
1259
|
end
|
|
1256
1260
|
|
|
1257
|
-
class Konbini < Stripe::StripeObject
|
|
1261
|
+
class Konbini < ::Stripe::StripeObject
|
|
1258
1262
|
# The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST.
|
|
1259
1263
|
attr_reader :expires_after_days
|
|
1260
1264
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1275,7 +1279,7 @@ module Stripe
|
|
|
1275
1279
|
end
|
|
1276
1280
|
end
|
|
1277
1281
|
|
|
1278
|
-
class KrCard < Stripe::StripeObject
|
|
1282
|
+
class KrCard < ::Stripe::StripeObject
|
|
1279
1283
|
# Controls when the funds will be captured from the customer's account.
|
|
1280
1284
|
attr_reader :capture_method
|
|
1281
1285
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1296,7 +1300,7 @@ module Stripe
|
|
|
1296
1300
|
end
|
|
1297
1301
|
end
|
|
1298
1302
|
|
|
1299
|
-
class Link < Stripe::StripeObject
|
|
1303
|
+
class Link < ::Stripe::StripeObject
|
|
1300
1304
|
# Controls when the funds will be captured from the customer's account.
|
|
1301
1305
|
attr_reader :capture_method
|
|
1302
1306
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1317,7 +1321,7 @@ module Stripe
|
|
|
1317
1321
|
end
|
|
1318
1322
|
end
|
|
1319
1323
|
|
|
1320
|
-
class Mobilepay < Stripe::StripeObject
|
|
1324
|
+
class Mobilepay < ::Stripe::StripeObject
|
|
1321
1325
|
# Controls when the funds will be captured from the customer's account.
|
|
1322
1326
|
attr_reader :capture_method
|
|
1323
1327
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1338,7 +1342,7 @@ module Stripe
|
|
|
1338
1342
|
end
|
|
1339
1343
|
end
|
|
1340
1344
|
|
|
1341
|
-
class Multibanco < Stripe::StripeObject
|
|
1345
|
+
class Multibanco < ::Stripe::StripeObject
|
|
1342
1346
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1343
1347
|
#
|
|
1344
1348
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1357,7 +1361,7 @@ module Stripe
|
|
|
1357
1361
|
end
|
|
1358
1362
|
end
|
|
1359
1363
|
|
|
1360
|
-
class NaverPay < Stripe::StripeObject
|
|
1364
|
+
class NaverPay < ::Stripe::StripeObject
|
|
1361
1365
|
# Controls when the funds will be captured from the customer's account.
|
|
1362
1366
|
attr_reader :capture_method
|
|
1363
1367
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1378,7 +1382,7 @@ module Stripe
|
|
|
1378
1382
|
end
|
|
1379
1383
|
end
|
|
1380
1384
|
|
|
1381
|
-
class Oxxo < Stripe::StripeObject
|
|
1385
|
+
class Oxxo < ::Stripe::StripeObject
|
|
1382
1386
|
# The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
|
|
1383
1387
|
attr_reader :expires_after_days
|
|
1384
1388
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1399,7 +1403,7 @@ module Stripe
|
|
|
1399
1403
|
end
|
|
1400
1404
|
end
|
|
1401
1405
|
|
|
1402
|
-
class P24 < Stripe::StripeObject
|
|
1406
|
+
class P24 < ::Stripe::StripeObject
|
|
1403
1407
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1404
1408
|
#
|
|
1405
1409
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1418,7 +1422,7 @@ module Stripe
|
|
|
1418
1422
|
end
|
|
1419
1423
|
end
|
|
1420
1424
|
|
|
1421
|
-
class Payco < Stripe::StripeObject
|
|
1425
|
+
class Payco < ::Stripe::StripeObject
|
|
1422
1426
|
# Controls when the funds will be captured from the customer's account.
|
|
1423
1427
|
attr_reader :capture_method
|
|
1424
1428
|
|
|
@@ -1431,7 +1435,7 @@ module Stripe
|
|
|
1431
1435
|
end
|
|
1432
1436
|
end
|
|
1433
1437
|
|
|
1434
|
-
class Paynow < Stripe::StripeObject
|
|
1438
|
+
class Paynow < ::Stripe::StripeObject
|
|
1435
1439
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1436
1440
|
#
|
|
1437
1441
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1450,7 +1454,7 @@ module Stripe
|
|
|
1450
1454
|
end
|
|
1451
1455
|
end
|
|
1452
1456
|
|
|
1453
|
-
class Paypal < Stripe::StripeObject
|
|
1457
|
+
class Paypal < ::Stripe::StripeObject
|
|
1454
1458
|
# Controls when the funds will be captured from the customer's account.
|
|
1455
1459
|
attr_reader :capture_method
|
|
1456
1460
|
# Preferred locale of the PayPal checkout page that the customer is redirected to.
|
|
@@ -1475,7 +1479,52 @@ module Stripe
|
|
|
1475
1479
|
end
|
|
1476
1480
|
end
|
|
1477
1481
|
|
|
1478
|
-
class
|
|
1482
|
+
class Payto < ::Stripe::StripeObject
|
|
1483
|
+
class MandateOptions < ::Stripe::StripeObject
|
|
1484
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1485
|
+
attr_reader :amount
|
|
1486
|
+
# The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`.
|
|
1487
|
+
attr_reader :amount_type
|
|
1488
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1489
|
+
attr_reader :end_date
|
|
1490
|
+
# The periodicity at which payments will be collected. Defaults to `adhoc`.
|
|
1491
|
+
attr_reader :payment_schedule
|
|
1492
|
+
# The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
|
1493
|
+
attr_reader :payments_per_period
|
|
1494
|
+
# The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
1495
|
+
attr_reader :purpose
|
|
1496
|
+
# Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
1497
|
+
attr_reader :start_date
|
|
1498
|
+
|
|
1499
|
+
def self.inner_class_types
|
|
1500
|
+
@inner_class_types = {}
|
|
1501
|
+
end
|
|
1502
|
+
|
|
1503
|
+
def self.field_remappings
|
|
1504
|
+
@field_remappings = {}
|
|
1505
|
+
end
|
|
1506
|
+
end
|
|
1507
|
+
# Attribute for field mandate_options
|
|
1508
|
+
attr_reader :mandate_options
|
|
1509
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1510
|
+
#
|
|
1511
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
1512
|
+
#
|
|
1513
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
1514
|
+
#
|
|
1515
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
1516
|
+
attr_reader :setup_future_usage
|
|
1517
|
+
|
|
1518
|
+
def self.inner_class_types
|
|
1519
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
|
1520
|
+
end
|
|
1521
|
+
|
|
1522
|
+
def self.field_remappings
|
|
1523
|
+
@field_remappings = {}
|
|
1524
|
+
end
|
|
1525
|
+
end
|
|
1526
|
+
|
|
1527
|
+
class Pix < ::Stripe::StripeObject
|
|
1479
1528
|
# Determines if the amount includes the IOF tax.
|
|
1480
1529
|
attr_reader :amount_includes_iof
|
|
1481
1530
|
# The number of seconds after which Pix payment will expire.
|
|
@@ -1498,7 +1547,7 @@ module Stripe
|
|
|
1498
1547
|
end
|
|
1499
1548
|
end
|
|
1500
1549
|
|
|
1501
|
-
class RevolutPay < Stripe::StripeObject
|
|
1550
|
+
class RevolutPay < ::Stripe::StripeObject
|
|
1502
1551
|
# Controls when the funds will be captured from the customer's account.
|
|
1503
1552
|
attr_reader :capture_method
|
|
1504
1553
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1519,7 +1568,7 @@ module Stripe
|
|
|
1519
1568
|
end
|
|
1520
1569
|
end
|
|
1521
1570
|
|
|
1522
|
-
class SamsungPay < Stripe::StripeObject
|
|
1571
|
+
class SamsungPay < ::Stripe::StripeObject
|
|
1523
1572
|
# Controls when the funds will be captured from the customer's account.
|
|
1524
1573
|
attr_reader :capture_method
|
|
1525
1574
|
|
|
@@ -1532,7 +1581,7 @@ module Stripe
|
|
|
1532
1581
|
end
|
|
1533
1582
|
end
|
|
1534
1583
|
|
|
1535
|
-
class Satispay < Stripe::StripeObject
|
|
1584
|
+
class Satispay < ::Stripe::StripeObject
|
|
1536
1585
|
# Controls when the funds will be captured from the customer's account.
|
|
1537
1586
|
attr_reader :capture_method
|
|
1538
1587
|
|
|
@@ -1545,8 +1594,8 @@ module Stripe
|
|
|
1545
1594
|
end
|
|
1546
1595
|
end
|
|
1547
1596
|
|
|
1548
|
-
class SepaDebit < Stripe::StripeObject
|
|
1549
|
-
class MandateOptions < Stripe::StripeObject
|
|
1597
|
+
class SepaDebit < ::Stripe::StripeObject
|
|
1598
|
+
class MandateOptions < ::Stripe::StripeObject
|
|
1550
1599
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
|
1551
1600
|
attr_reader :reference_prefix
|
|
1552
1601
|
|
|
@@ -1580,7 +1629,7 @@ module Stripe
|
|
|
1580
1629
|
end
|
|
1581
1630
|
end
|
|
1582
1631
|
|
|
1583
|
-
class Sofort < Stripe::StripeObject
|
|
1632
|
+
class Sofort < ::Stripe::StripeObject
|
|
1584
1633
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1585
1634
|
#
|
|
1586
1635
|
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
@@ -1599,7 +1648,7 @@ module Stripe
|
|
|
1599
1648
|
end
|
|
1600
1649
|
end
|
|
1601
1650
|
|
|
1602
|
-
class Swish < Stripe::StripeObject
|
|
1651
|
+
class Swish < ::Stripe::StripeObject
|
|
1603
1652
|
# The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
|
|
1604
1653
|
attr_reader :reference
|
|
1605
1654
|
|
|
@@ -1612,9 +1661,67 @@ module Stripe
|
|
|
1612
1661
|
end
|
|
1613
1662
|
end
|
|
1614
1663
|
|
|
1615
|
-
class
|
|
1616
|
-
|
|
1617
|
-
|
|
1664
|
+
class Twint < ::Stripe::StripeObject
|
|
1665
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1666
|
+
#
|
|
1667
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
1668
|
+
#
|
|
1669
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
1670
|
+
#
|
|
1671
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
1672
|
+
attr_reader :setup_future_usage
|
|
1673
|
+
|
|
1674
|
+
def self.inner_class_types
|
|
1675
|
+
@inner_class_types = {}
|
|
1676
|
+
end
|
|
1677
|
+
|
|
1678
|
+
def self.field_remappings
|
|
1679
|
+
@field_remappings = {}
|
|
1680
|
+
end
|
|
1681
|
+
end
|
|
1682
|
+
|
|
1683
|
+
class Upi < ::Stripe::StripeObject
|
|
1684
|
+
class MandateOptions < ::Stripe::StripeObject
|
|
1685
|
+
# Amount to be charged for future payments.
|
|
1686
|
+
attr_reader :amount
|
|
1687
|
+
# One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
1688
|
+
attr_reader :amount_type
|
|
1689
|
+
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
1690
|
+
attr_reader :description
|
|
1691
|
+
# End date of the mandate or subscription.
|
|
1692
|
+
attr_reader :end_date
|
|
1693
|
+
|
|
1694
|
+
def self.inner_class_types
|
|
1695
|
+
@inner_class_types = {}
|
|
1696
|
+
end
|
|
1697
|
+
|
|
1698
|
+
def self.field_remappings
|
|
1699
|
+
@field_remappings = {}
|
|
1700
|
+
end
|
|
1701
|
+
end
|
|
1702
|
+
# Attribute for field mandate_options
|
|
1703
|
+
attr_reader :mandate_options
|
|
1704
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1705
|
+
#
|
|
1706
|
+
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
|
1707
|
+
#
|
|
1708
|
+
# If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
|
|
1709
|
+
#
|
|
1710
|
+
# When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication).
|
|
1711
|
+
attr_reader :setup_future_usage
|
|
1712
|
+
|
|
1713
|
+
def self.inner_class_types
|
|
1714
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
|
1715
|
+
end
|
|
1716
|
+
|
|
1717
|
+
def self.field_remappings
|
|
1718
|
+
@field_remappings = {}
|
|
1719
|
+
end
|
|
1720
|
+
end
|
|
1721
|
+
|
|
1722
|
+
class UsBankAccount < ::Stripe::StripeObject
|
|
1723
|
+
class FinancialConnections < ::Stripe::StripeObject
|
|
1724
|
+
class Filters < ::Stripe::StripeObject
|
|
1618
1725
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1619
1726
|
attr_reader :account_subcategories
|
|
1620
1727
|
|
|
@@ -1655,7 +1762,7 @@ module Stripe
|
|
|
1655
1762
|
attr_reader :setup_future_usage
|
|
1656
1763
|
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
1657
1764
|
attr_reader :target_date
|
|
1658
|
-
# Bank account verification method.
|
|
1765
|
+
# Bank account verification method. The default value is `automatic`.
|
|
1659
1766
|
attr_reader :verification_method
|
|
1660
1767
|
|
|
1661
1768
|
def self.inner_class_types
|
|
@@ -1730,6 +1837,8 @@ module Stripe
|
|
|
1730
1837
|
attr_reader :paynow
|
|
1731
1838
|
# Attribute for field paypal
|
|
1732
1839
|
attr_reader :paypal
|
|
1840
|
+
# Attribute for field payto
|
|
1841
|
+
attr_reader :payto
|
|
1733
1842
|
# Attribute for field pix
|
|
1734
1843
|
attr_reader :pix
|
|
1735
1844
|
# Attribute for field revolut_pay
|
|
@@ -1744,6 +1853,10 @@ module Stripe
|
|
|
1744
1853
|
attr_reader :sofort
|
|
1745
1854
|
# Attribute for field swish
|
|
1746
1855
|
attr_reader :swish
|
|
1856
|
+
# Attribute for field twint
|
|
1857
|
+
attr_reader :twint
|
|
1858
|
+
# Attribute for field upi
|
|
1859
|
+
attr_reader :upi
|
|
1747
1860
|
# Attribute for field us_bank_account
|
|
1748
1861
|
attr_reader :us_bank_account
|
|
1749
1862
|
|
|
@@ -1781,6 +1894,7 @@ module Stripe
|
|
|
1781
1894
|
payco: Payco,
|
|
1782
1895
|
paynow: Paynow,
|
|
1783
1896
|
paypal: Paypal,
|
|
1897
|
+
payto: Payto,
|
|
1784
1898
|
pix: Pix,
|
|
1785
1899
|
revolut_pay: RevolutPay,
|
|
1786
1900
|
samsung_pay: SamsungPay,
|
|
@@ -1788,6 +1902,8 @@ module Stripe
|
|
|
1788
1902
|
sepa_debit: SepaDebit,
|
|
1789
1903
|
sofort: Sofort,
|
|
1790
1904
|
swish: Swish,
|
|
1905
|
+
twint: Twint,
|
|
1906
|
+
upi: Upi,
|
|
1791
1907
|
us_bank_account: UsBankAccount,
|
|
1792
1908
|
}
|
|
1793
1909
|
end
|
|
@@ -1797,7 +1913,7 @@ module Stripe
|
|
|
1797
1913
|
end
|
|
1798
1914
|
end
|
|
1799
1915
|
|
|
1800
|
-
class Permissions < Stripe::StripeObject
|
|
1916
|
+
class Permissions < ::Stripe::StripeObject
|
|
1801
1917
|
# Determines which entity is allowed to update the shipping details.
|
|
1802
1918
|
#
|
|
1803
1919
|
# Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
|
@@ -1814,7 +1930,7 @@ module Stripe
|
|
|
1814
1930
|
end
|
|
1815
1931
|
end
|
|
1816
1932
|
|
|
1817
|
-
class PhoneNumberCollection < Stripe::StripeObject
|
|
1933
|
+
class PhoneNumberCollection < ::Stripe::StripeObject
|
|
1818
1934
|
# Indicates whether phone number collection is enabled for the session
|
|
1819
1935
|
attr_reader :enabled
|
|
1820
1936
|
|
|
@@ -1827,7 +1943,7 @@ module Stripe
|
|
|
1827
1943
|
end
|
|
1828
1944
|
end
|
|
1829
1945
|
|
|
1830
|
-
class PresentmentDetails < Stripe::StripeObject
|
|
1946
|
+
class PresentmentDetails < ::Stripe::StripeObject
|
|
1831
1947
|
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
|
|
1832
1948
|
attr_reader :presentment_amount
|
|
1833
1949
|
# Currency presented to the customer during payment.
|
|
@@ -1842,7 +1958,7 @@ module Stripe
|
|
|
1842
1958
|
end
|
|
1843
1959
|
end
|
|
1844
1960
|
|
|
1845
|
-
class SavedPaymentMethodOptions < Stripe::StripeObject
|
|
1961
|
+
class SavedPaymentMethodOptions < ::Stripe::StripeObject
|
|
1846
1962
|
# Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
|
|
1847
1963
|
attr_reader :allow_redisplay_filters
|
|
1848
1964
|
# Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
|
|
@@ -1859,7 +1975,7 @@ module Stripe
|
|
|
1859
1975
|
end
|
|
1860
1976
|
end
|
|
1861
1977
|
|
|
1862
|
-
class ShippingAddressCollection < Stripe::StripeObject
|
|
1978
|
+
class ShippingAddressCollection < ::Stripe::StripeObject
|
|
1863
1979
|
# An array of two-letter ISO country codes representing which countries Checkout should provide as options for
|
|
1864
1980
|
# shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`.
|
|
1865
1981
|
attr_reader :allowed_countries
|
|
@@ -1873,8 +1989,8 @@ module Stripe
|
|
|
1873
1989
|
end
|
|
1874
1990
|
end
|
|
1875
1991
|
|
|
1876
|
-
class ShippingCost < Stripe::StripeObject
|
|
1877
|
-
class Tax < Stripe::StripeObject
|
|
1992
|
+
class ShippingCost < ::Stripe::StripeObject
|
|
1993
|
+
class Tax < ::Stripe::StripeObject
|
|
1878
1994
|
# Amount of tax applied for this rate.
|
|
1879
1995
|
attr_reader :amount
|
|
1880
1996
|
# Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
@@ -1914,7 +2030,7 @@ module Stripe
|
|
|
1914
2030
|
end
|
|
1915
2031
|
end
|
|
1916
2032
|
|
|
1917
|
-
class ShippingOption < Stripe::StripeObject
|
|
2033
|
+
class ShippingOption < ::Stripe::StripeObject
|
|
1918
2034
|
# A non-negative integer in cents representing how much to charge.
|
|
1919
2035
|
attr_reader :shipping_amount
|
|
1920
2036
|
# The shipping rate.
|
|
@@ -1929,7 +2045,7 @@ module Stripe
|
|
|
1929
2045
|
end
|
|
1930
2046
|
end
|
|
1931
2047
|
|
|
1932
|
-
class TaxIdCollection < Stripe::StripeObject
|
|
2048
|
+
class TaxIdCollection < ::Stripe::StripeObject
|
|
1933
2049
|
# Indicates whether tax ID collection is enabled for the session
|
|
1934
2050
|
attr_reader :enabled
|
|
1935
2051
|
# Indicates whether a tax ID is required on the payment page
|
|
@@ -1944,15 +2060,15 @@ module Stripe
|
|
|
1944
2060
|
end
|
|
1945
2061
|
end
|
|
1946
2062
|
|
|
1947
|
-
class TotalDetails < Stripe::StripeObject
|
|
1948
|
-
class Breakdown < Stripe::StripeObject
|
|
1949
|
-
class Discount < Stripe::StripeObject
|
|
2063
|
+
class TotalDetails < ::Stripe::StripeObject
|
|
2064
|
+
class Breakdown < ::Stripe::StripeObject
|
|
2065
|
+
class Discount < ::Stripe::StripeObject
|
|
1950
2066
|
# The amount discounted.
|
|
1951
2067
|
attr_reader :amount
|
|
1952
|
-
# A discount represents the actual application of a [coupon](https://stripe.com
|
|
2068
|
+
# A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes).
|
|
1953
2069
|
# It contains information about when the discount began, when it will end, and what it is applied to.
|
|
1954
2070
|
#
|
|
1955
|
-
# Related guide: [Applying discounts to subscriptions](https://stripe.com/
|
|
2071
|
+
# Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts)
|
|
1956
2072
|
attr_reader :discount
|
|
1957
2073
|
|
|
1958
2074
|
def self.inner_class_types
|
|
@@ -1964,7 +2080,7 @@ module Stripe
|
|
|
1964
2080
|
end
|
|
1965
2081
|
end
|
|
1966
2082
|
|
|
1967
|
-
class Tax < Stripe::StripeObject
|
|
2083
|
+
class Tax < ::Stripe::StripeObject
|
|
1968
2084
|
# Amount of tax applied for this rate.
|
|
1969
2085
|
attr_reader :amount
|
|
1970
2086
|
# Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
@@ -2015,8 +2131,8 @@ module Stripe
|
|
|
2015
2131
|
end
|
|
2016
2132
|
end
|
|
2017
2133
|
|
|
2018
|
-
class WalletOptions < Stripe::StripeObject
|
|
2019
|
-
class Link < Stripe::StripeObject
|
|
2134
|
+
class WalletOptions < ::Stripe::StripeObject
|
|
2135
|
+
class Link < ::Stripe::StripeObject
|
|
2020
2136
|
# Describes whether Checkout should display Link. Defaults to `auto`.
|
|
2021
2137
|
attr_reader :display
|
|
2022
2138
|
|
|
@@ -2062,7 +2178,7 @@ module Stripe
|
|
|
2062
2178
|
# Session with your internal systems.
|
|
2063
2179
|
attr_reader :client_reference_id
|
|
2064
2180
|
# The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout.
|
|
2065
|
-
# For `ui_mode: custom`, use the client secret with [initCheckout](https://stripe.com/
|
|
2181
|
+
# For `ui_mode: custom`, use the client secret with [initCheckout](https://docs.stripe.com/js/custom_checkout/init) on your front end.
|
|
2066
2182
|
attr_reader :client_secret
|
|
2067
2183
|
# Information about the customer collected within the Checkout Session.
|
|
2068
2184
|
attr_reader :collected_information
|
|
@@ -2076,7 +2192,7 @@ module Stripe
|
|
|
2076
2192
|
attr_reader :currency
|
|
2077
2193
|
# Currency conversion details for [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing) sessions created before 2025-03-31.
|
|
2078
2194
|
attr_reader :currency_conversion
|
|
2079
|
-
# Collect additional information from your customer using custom fields. Up to 3 fields are supported.
|
|
2195
|
+
# Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`.
|
|
2080
2196
|
attr_reader :custom_fields
|
|
2081
2197
|
# Attribute for field custom_text
|
|
2082
2198
|
attr_reader :custom_text
|
|
@@ -2086,6 +2202,8 @@ module Stripe
|
|
|
2086
2202
|
# during the payment flow unless an existing customer was provided when
|
|
2087
2203
|
# the Session was created.
|
|
2088
2204
|
attr_reader :customer
|
|
2205
|
+
# The ID of the account for this Session.
|
|
2206
|
+
attr_reader :customer_account
|
|
2089
2207
|
# Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
|
|
2090
2208
|
attr_reader :customer_creation
|
|
2091
2209
|
# The customer details including the customer's tax exempt status and the customer's tax IDs. Customer's address details are not present on Sessions in `setup` mode.
|
|
@@ -2104,17 +2222,19 @@ module Stripe
|
|
|
2104
2222
|
attr_reader :expires_at
|
|
2105
2223
|
# Unique identifier for the object.
|
|
2106
2224
|
attr_reader :id
|
|
2225
|
+
# The integration identifier for this Checkout Session. Multiple Checkout Sessions can have the same integration identifier.
|
|
2226
|
+
attr_reader :integration_identifier
|
|
2107
2227
|
# ID of the invoice created by the Checkout Session, if it exists.
|
|
2108
2228
|
attr_reader :invoice
|
|
2109
2229
|
# Details on the state of invoice creation for the Checkout Session.
|
|
2110
2230
|
attr_reader :invoice_creation
|
|
2111
2231
|
# The line items purchased by the customer.
|
|
2112
2232
|
attr_reader :line_items
|
|
2113
|
-
#
|
|
2233
|
+
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
2114
2234
|
attr_reader :livemode
|
|
2115
2235
|
# The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
|
|
2116
2236
|
attr_reader :locale
|
|
2117
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
2237
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
2118
2238
|
attr_reader :metadata
|
|
2119
2239
|
# The mode of the Checkout Session.
|
|
2120
2240
|
attr_reader :mode
|
|
@@ -2126,7 +2246,7 @@ module Stripe
|
|
|
2126
2246
|
attr_reader :optional_items
|
|
2127
2247
|
# Where the user is coming from. This informs the optimizations that are applied to the session.
|
|
2128
2248
|
attr_reader :origin_context
|
|
2129
|
-
# The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/
|
|
2249
|
+
# The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://docs.stripe.com/api/checkout/sessions/expire) instead.
|
|
2130
2250
|
attr_reader :payment_intent
|
|
2131
2251
|
# The ID of the Payment Link that created this Session.
|
|
2132
2252
|
attr_reader :payment_link
|
|
@@ -2152,13 +2272,13 @@ module Stripe
|
|
|
2152
2272
|
attr_reader :presentment_details
|
|
2153
2273
|
# The ID of the original expired Checkout Session that triggered the recovery flow.
|
|
2154
2274
|
attr_reader :recovered_from
|
|
2155
|
-
# This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/
|
|
2275
|
+
# This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
|
|
2156
2276
|
attr_reader :redirect_on_completion
|
|
2157
2277
|
# Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
|
2158
2278
|
attr_reader :return_url
|
|
2159
2279
|
# Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
|
|
2160
2280
|
attr_reader :saved_payment_method_options
|
|
2161
|
-
# The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/
|
|
2281
|
+
# The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://docs.stripe.com/api/checkout/sessions/expire) instead.
|
|
2162
2282
|
attr_reader :setup_intent
|
|
2163
2283
|
# When set, provides configuration for Checkout to collect a shipping address from a customer.
|
|
2164
2284
|
attr_reader :shipping_address_collection
|
|
@@ -2172,7 +2292,7 @@ module Stripe
|
|
|
2172
2292
|
# relevant text on the page, such as the submit button. `submit_type` can only be
|
|
2173
2293
|
# specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
|
|
2174
2294
|
attr_reader :submit_type
|
|
2175
|
-
# The ID of the [Subscription](https://stripe.com/
|
|
2295
|
+
# The ID of the [Subscription](https://docs.stripe.com/api/subscriptions) for Checkout Sessions in `subscription` mode.
|
|
2176
2296
|
attr_reader :subscription
|
|
2177
2297
|
# The URL the customer will be directed to after the payment or
|
|
2178
2298
|
# subscription creation is successful.
|
|
@@ -2181,9 +2301,9 @@ module Stripe
|
|
|
2181
2301
|
attr_reader :tax_id_collection
|
|
2182
2302
|
# Tax and discount details for the computed total amount.
|
|
2183
2303
|
attr_reader :total_details
|
|
2184
|
-
# The UI mode of the Session. Defaults to `
|
|
2304
|
+
# The UI mode of the Session. Defaults to `hosted_page`.
|
|
2185
2305
|
attr_reader :ui_mode
|
|
2186
|
-
# The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://stripe.com/
|
|
2306
|
+
# The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.`
|
|
2187
2307
|
# This value is only present when the session is active.
|
|
2188
2308
|
attr_reader :url
|
|
2189
2309
|
# Wallet-specific configuration for this Checkout Session.
|
|
@@ -2255,7 +2375,7 @@ module Stripe
|
|
|
2255
2375
|
|
|
2256
2376
|
# Updates a Checkout Session object.
|
|
2257
2377
|
#
|
|
2258
|
-
# Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/
|
|
2378
|
+
# Related guide: [Dynamically update a Checkout Session](https://docs.stripe.com/payments/advanced/dynamic-updates)
|
|
2259
2379
|
def self.update(session, params = {}, opts = {})
|
|
2260
2380
|
request_stripe_object(
|
|
2261
2381
|
method: :post,
|
|
@@ -2300,6 +2420,12 @@ module Stripe
|
|
|
2300
2420
|
def self.field_remappings
|
|
2301
2421
|
@field_remappings = {}
|
|
2302
2422
|
end
|
|
2423
|
+
|
|
2424
|
+
def self.field_encodings
|
|
2425
|
+
@field_encodings = {
|
|
2426
|
+
currency_conversion: { kind: :object, fields: { fx_rate: :decimal_string } },
|
|
2427
|
+
}
|
|
2428
|
+
end
|
|
2303
2429
|
end
|
|
2304
2430
|
end
|
|
2305
2431
|
end
|