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
|
@@ -2,12 +2,221 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
class PaymentIntentConfirmParams < Stripe::RequestParams
|
|
6
|
-
class
|
|
7
|
-
class
|
|
8
|
-
class
|
|
5
|
+
class PaymentIntentConfirmParams < ::Stripe::RequestParams
|
|
6
|
+
class AmountDetails < ::Stripe::RequestParams
|
|
7
|
+
class LineItem < ::Stripe::RequestParams
|
|
8
|
+
class PaymentMethodOptions < ::Stripe::RequestParams
|
|
9
|
+
class Card < ::Stripe::RequestParams
|
|
10
|
+
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
|
|
11
|
+
attr_accessor :commodity_code
|
|
12
|
+
|
|
13
|
+
def initialize(commodity_code: nil)
|
|
14
|
+
@commodity_code = commodity_code
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
class CardPresent < ::Stripe::RequestParams
|
|
19
|
+
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
|
|
20
|
+
attr_accessor :commodity_code
|
|
21
|
+
|
|
22
|
+
def initialize(commodity_code: nil)
|
|
23
|
+
@commodity_code = commodity_code
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
class Klarna < ::Stripe::RequestParams
|
|
28
|
+
# URL to an image for the product. Max length, 4096 characters.
|
|
29
|
+
attr_accessor :image_url
|
|
30
|
+
# URL to the product page. Max length, 4096 characters.
|
|
31
|
+
attr_accessor :product_url
|
|
32
|
+
# Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed.
|
|
33
|
+
attr_accessor :reference
|
|
34
|
+
# Reference for the subscription this line item is for.
|
|
35
|
+
attr_accessor :subscription_reference
|
|
36
|
+
|
|
37
|
+
def initialize(
|
|
38
|
+
image_url: nil,
|
|
39
|
+
product_url: nil,
|
|
40
|
+
reference: nil,
|
|
41
|
+
subscription_reference: nil
|
|
42
|
+
)
|
|
43
|
+
@image_url = image_url
|
|
44
|
+
@product_url = product_url
|
|
45
|
+
@reference = reference
|
|
46
|
+
@subscription_reference = subscription_reference
|
|
47
|
+
end
|
|
48
|
+
end
|
|
9
49
|
|
|
10
|
-
|
|
50
|
+
class Paypal < ::Stripe::RequestParams
|
|
51
|
+
# Type of the line item.
|
|
52
|
+
attr_accessor :category
|
|
53
|
+
# Description of the line item.
|
|
54
|
+
attr_accessor :description
|
|
55
|
+
# The Stripe account ID of the connected account that sells the item.
|
|
56
|
+
attr_accessor :sold_by
|
|
57
|
+
|
|
58
|
+
def initialize(category: nil, description: nil, sold_by: nil)
|
|
59
|
+
@category = category
|
|
60
|
+
@description = description
|
|
61
|
+
@sold_by = sold_by
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
# This sub-hash contains line item details that are specific to the `card` payment method.
|
|
65
|
+
attr_accessor :card
|
|
66
|
+
# This sub-hash contains line item details that are specific to the `card_present` payment method.
|
|
67
|
+
attr_accessor :card_present
|
|
68
|
+
# This sub-hash contains line item details that are specific to the `klarna` payment method.
|
|
69
|
+
attr_accessor :klarna
|
|
70
|
+
# This sub-hash contains line item details that are specific to the `paypal` payment method.
|
|
71
|
+
attr_accessor :paypal
|
|
72
|
+
|
|
73
|
+
def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil)
|
|
74
|
+
@card = card
|
|
75
|
+
@card_present = card_present
|
|
76
|
+
@klarna = klarna
|
|
77
|
+
@paypal = paypal
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
class Tax < ::Stripe::RequestParams
|
|
82
|
+
# The total amount of tax on a single line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
|
|
83
|
+
#
|
|
84
|
+
# This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field.
|
|
85
|
+
attr_accessor :total_tax_amount
|
|
86
|
+
|
|
87
|
+
def initialize(total_tax_amount: nil)
|
|
88
|
+
@total_tax_amount = total_tax_amount
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
# The discount applied on this line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
92
|
+
#
|
|
93
|
+
# This field is mutually exclusive with the `amount_details[discount_amount]` field.
|
|
94
|
+
attr_accessor :discount_amount
|
|
95
|
+
# Payment method-specific information for line items.
|
|
96
|
+
attr_accessor :payment_method_options
|
|
97
|
+
# The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long.
|
|
98
|
+
attr_accessor :product_code
|
|
99
|
+
# The product name of the line item. Required for L3 rates. At most 1024 characters long.
|
|
100
|
+
#
|
|
101
|
+
# For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For PayPal, this field is truncated to 127 characters.
|
|
102
|
+
attr_accessor :product_name
|
|
103
|
+
# The quantity of items. Required for L3 rates. An integer greater than 0.
|
|
104
|
+
attr_accessor :quantity
|
|
105
|
+
# Contains information about the tax on the item.
|
|
106
|
+
attr_accessor :tax
|
|
107
|
+
# The unit cost of the line item represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0.
|
|
108
|
+
attr_accessor :unit_cost
|
|
109
|
+
# A unit of measure for the line item, such as gallons, feet, meters, etc.
|
|
110
|
+
attr_accessor :unit_of_measure
|
|
111
|
+
|
|
112
|
+
def initialize(
|
|
113
|
+
discount_amount: nil,
|
|
114
|
+
payment_method_options: nil,
|
|
115
|
+
product_code: nil,
|
|
116
|
+
product_name: nil,
|
|
117
|
+
quantity: nil,
|
|
118
|
+
tax: nil,
|
|
119
|
+
unit_cost: nil,
|
|
120
|
+
unit_of_measure: nil
|
|
121
|
+
)
|
|
122
|
+
@discount_amount = discount_amount
|
|
123
|
+
@payment_method_options = payment_method_options
|
|
124
|
+
@product_code = product_code
|
|
125
|
+
@product_name = product_name
|
|
126
|
+
@quantity = quantity
|
|
127
|
+
@tax = tax
|
|
128
|
+
@unit_cost = unit_cost
|
|
129
|
+
@unit_of_measure = unit_of_measure
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
class Shipping < ::Stripe::RequestParams
|
|
134
|
+
# If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
|
|
135
|
+
attr_accessor :amount
|
|
136
|
+
# If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
137
|
+
attr_accessor :from_postal_code
|
|
138
|
+
# If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
139
|
+
attr_accessor :to_postal_code
|
|
140
|
+
|
|
141
|
+
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
|
|
142
|
+
@amount = amount
|
|
143
|
+
@from_postal_code = from_postal_code
|
|
144
|
+
@to_postal_code = to_postal_code
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
class Tax < ::Stripe::RequestParams
|
|
149
|
+
# The total amount of tax on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0.
|
|
150
|
+
#
|
|
151
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field.
|
|
152
|
+
attr_accessor :total_tax_amount
|
|
153
|
+
|
|
154
|
+
def initialize(total_tax_amount: nil)
|
|
155
|
+
@total_tax_amount = total_tax_amount
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
# The total discount applied on the transaction represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than 0.
|
|
159
|
+
#
|
|
160
|
+
# This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field.
|
|
161
|
+
attr_accessor :discount_amount
|
|
162
|
+
# Set to `false` to return arithmetic validation errors in the response without failing the request. Use this when you want the operation to proceed regardless of arithmetic errors in the line item data.
|
|
163
|
+
#
|
|
164
|
+
# Omit or set to `true` to immediately return a 400 error when arithmetic validation fails. Use this for strict validation that prevents processing with line item data that has arithmetic inconsistencies.
|
|
165
|
+
#
|
|
166
|
+
# For card payments, Stripe doesn't send line item data to card networks if there's an arithmetic validation error.
|
|
167
|
+
attr_accessor :enforce_arithmetic_validation
|
|
168
|
+
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 200 line items.
|
|
169
|
+
attr_accessor :line_items
|
|
170
|
+
# Contains information about the shipping portion of the amount.
|
|
171
|
+
attr_accessor :shipping
|
|
172
|
+
# Contains information about the tax portion of the amount.
|
|
173
|
+
attr_accessor :tax
|
|
174
|
+
|
|
175
|
+
def initialize(
|
|
176
|
+
discount_amount: nil,
|
|
177
|
+
enforce_arithmetic_validation: nil,
|
|
178
|
+
line_items: nil,
|
|
179
|
+
shipping: nil,
|
|
180
|
+
tax: nil
|
|
181
|
+
)
|
|
182
|
+
@discount_amount = discount_amount
|
|
183
|
+
@enforce_arithmetic_validation = enforce_arithmetic_validation
|
|
184
|
+
@line_items = line_items
|
|
185
|
+
@shipping = shipping
|
|
186
|
+
@tax = tax
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
class Hooks < ::Stripe::RequestParams
|
|
191
|
+
class Inputs < ::Stripe::RequestParams
|
|
192
|
+
class Tax < ::Stripe::RequestParams
|
|
193
|
+
# The [TaxCalculation](https://docs.stripe.com/api/tax/calculations) id
|
|
194
|
+
attr_accessor :calculation
|
|
195
|
+
|
|
196
|
+
def initialize(calculation: nil)
|
|
197
|
+
@calculation = calculation
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
# Tax arguments for automations
|
|
201
|
+
attr_accessor :tax
|
|
202
|
+
|
|
203
|
+
def initialize(tax: nil)
|
|
204
|
+
@tax = tax
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
# Arguments passed in automations
|
|
208
|
+
attr_accessor :inputs
|
|
209
|
+
|
|
210
|
+
def initialize(inputs: nil)
|
|
211
|
+
@inputs = inputs
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
class MandateData < ::Stripe::RequestParams
|
|
216
|
+
class CustomerAcceptance < ::Stripe::RequestParams
|
|
217
|
+
class Offline < ::Stripe::RequestParams; end
|
|
218
|
+
|
|
219
|
+
class Online < ::Stripe::RequestParams
|
|
11
220
|
# The IP address from which the Mandate was accepted by the customer.
|
|
12
221
|
attr_accessor :ip_address
|
|
13
222
|
# The user agent of the browser from which the Mandate was accepted by the customer.
|
|
@@ -42,8 +251,24 @@ module Stripe
|
|
|
42
251
|
end
|
|
43
252
|
end
|
|
44
253
|
|
|
45
|
-
class
|
|
46
|
-
|
|
254
|
+
class PaymentDetails < ::Stripe::RequestParams
|
|
255
|
+
# A unique value to identify the customer. This field is available only for card payments.
|
|
256
|
+
#
|
|
257
|
+
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
258
|
+
attr_accessor :customer_reference
|
|
259
|
+
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
260
|
+
#
|
|
261
|
+
# For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
|
|
262
|
+
attr_accessor :order_reference
|
|
263
|
+
|
|
264
|
+
def initialize(customer_reference: nil, order_reference: nil)
|
|
265
|
+
@customer_reference = customer_reference
|
|
266
|
+
@order_reference = order_reference
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
class PaymentMethodData < ::Stripe::RequestParams
|
|
271
|
+
class AcssDebit < ::Stripe::RequestParams
|
|
47
272
|
# Customer's bank account number.
|
|
48
273
|
attr_accessor :account_number
|
|
49
274
|
# Institution number of the customer's bank.
|
|
@@ -58,13 +283,13 @@ module Stripe
|
|
|
58
283
|
end
|
|
59
284
|
end
|
|
60
285
|
|
|
61
|
-
class Affirm < Stripe::RequestParams; end
|
|
62
|
-
class AfterpayClearpay < Stripe::RequestParams; end
|
|
63
|
-
class Alipay < Stripe::RequestParams; end
|
|
64
|
-
class Alma < Stripe::RequestParams; end
|
|
65
|
-
class AmazonPay < Stripe::RequestParams; end
|
|
286
|
+
class Affirm < ::Stripe::RequestParams; end
|
|
287
|
+
class AfterpayClearpay < ::Stripe::RequestParams; end
|
|
288
|
+
class Alipay < ::Stripe::RequestParams; end
|
|
289
|
+
class Alma < ::Stripe::RequestParams; end
|
|
290
|
+
class AmazonPay < ::Stripe::RequestParams; end
|
|
66
291
|
|
|
67
|
-
class AuBecsDebit < Stripe::RequestParams
|
|
292
|
+
class AuBecsDebit < ::Stripe::RequestParams
|
|
68
293
|
# The account number for the bank account.
|
|
69
294
|
attr_accessor :account_number
|
|
70
295
|
# Bank-State-Branch number of the bank account.
|
|
@@ -76,7 +301,7 @@ module Stripe
|
|
|
76
301
|
end
|
|
77
302
|
end
|
|
78
303
|
|
|
79
|
-
class BacsDebit < Stripe::RequestParams
|
|
304
|
+
class BacsDebit < ::Stripe::RequestParams
|
|
80
305
|
# Account number of the bank account that the funds will be debited from.
|
|
81
306
|
attr_accessor :account_number
|
|
82
307
|
# Sort code of the bank account. (e.g., `10-20-30`)
|
|
@@ -88,11 +313,11 @@ module Stripe
|
|
|
88
313
|
end
|
|
89
314
|
end
|
|
90
315
|
|
|
91
|
-
class Bancontact < Stripe::RequestParams; end
|
|
92
|
-
class Billie < Stripe::RequestParams; end
|
|
316
|
+
class Bancontact < ::Stripe::RequestParams; end
|
|
317
|
+
class Billie < ::Stripe::RequestParams; end
|
|
93
318
|
|
|
94
|
-
class BillingDetails < Stripe::RequestParams
|
|
95
|
-
class Address < Stripe::RequestParams
|
|
319
|
+
class BillingDetails < ::Stripe::RequestParams
|
|
320
|
+
class Address < ::Stripe::RequestParams
|
|
96
321
|
# City, district, suburb, town, or village.
|
|
97
322
|
attr_accessor :city
|
|
98
323
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
@@ -103,7 +328,7 @@ module Stripe
|
|
|
103
328
|
attr_accessor :line2
|
|
104
329
|
# ZIP or postal code.
|
|
105
330
|
attr_accessor :postal_code
|
|
106
|
-
# State, county, province, or region.
|
|
331
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
107
332
|
attr_accessor :state
|
|
108
333
|
|
|
109
334
|
def initialize(
|
|
@@ -142,9 +367,9 @@ module Stripe
|
|
|
142
367
|
end
|
|
143
368
|
end
|
|
144
369
|
|
|
145
|
-
class Blik < Stripe::RequestParams; end
|
|
370
|
+
class Blik < ::Stripe::RequestParams; end
|
|
146
371
|
|
|
147
|
-
class Boleto < Stripe::RequestParams
|
|
372
|
+
class Boleto < ::Stripe::RequestParams
|
|
148
373
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
|
149
374
|
attr_accessor :tax_id
|
|
150
375
|
|
|
@@ -153,11 +378,11 @@ module Stripe
|
|
|
153
378
|
end
|
|
154
379
|
end
|
|
155
380
|
|
|
156
|
-
class Cashapp < Stripe::RequestParams; end
|
|
157
|
-
class Crypto < Stripe::RequestParams; end
|
|
158
|
-
class CustomerBalance < Stripe::RequestParams; end
|
|
381
|
+
class Cashapp < ::Stripe::RequestParams; end
|
|
382
|
+
class Crypto < ::Stripe::RequestParams; end
|
|
383
|
+
class CustomerBalance < ::Stripe::RequestParams; end
|
|
159
384
|
|
|
160
|
-
class Eps < Stripe::RequestParams
|
|
385
|
+
class Eps < ::Stripe::RequestParams
|
|
161
386
|
# The customer's bank.
|
|
162
387
|
attr_accessor :bank
|
|
163
388
|
|
|
@@ -166,7 +391,7 @@ module Stripe
|
|
|
166
391
|
end
|
|
167
392
|
end
|
|
168
393
|
|
|
169
|
-
class Fpx < Stripe::RequestParams
|
|
394
|
+
class Fpx < ::Stripe::RequestParams
|
|
170
395
|
# Account holder type for FPX transaction
|
|
171
396
|
attr_accessor :account_holder_type
|
|
172
397
|
# The customer's bank.
|
|
@@ -178,10 +403,10 @@ module Stripe
|
|
|
178
403
|
end
|
|
179
404
|
end
|
|
180
405
|
|
|
181
|
-
class Giropay < Stripe::RequestParams; end
|
|
182
|
-
class Grabpay < Stripe::RequestParams; end
|
|
406
|
+
class Giropay < ::Stripe::RequestParams; end
|
|
407
|
+
class Grabpay < ::Stripe::RequestParams; end
|
|
183
408
|
|
|
184
|
-
class Ideal < Stripe::RequestParams
|
|
409
|
+
class Ideal < ::Stripe::RequestParams
|
|
185
410
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
186
411
|
attr_accessor :bank
|
|
187
412
|
|
|
@@ -190,11 +415,11 @@ module Stripe
|
|
|
190
415
|
end
|
|
191
416
|
end
|
|
192
417
|
|
|
193
|
-
class InteracPresent < Stripe::RequestParams; end
|
|
194
|
-
class KakaoPay < Stripe::RequestParams; end
|
|
418
|
+
class InteracPresent < ::Stripe::RequestParams; end
|
|
419
|
+
class KakaoPay < ::Stripe::RequestParams; end
|
|
195
420
|
|
|
196
|
-
class Klarna < Stripe::RequestParams
|
|
197
|
-
class Dob < Stripe::RequestParams
|
|
421
|
+
class Klarna < ::Stripe::RequestParams
|
|
422
|
+
class Dob < ::Stripe::RequestParams
|
|
198
423
|
# The day of birth, between 1 and 31.
|
|
199
424
|
attr_accessor :day
|
|
200
425
|
# The month of birth, between 1 and 12.
|
|
@@ -216,14 +441,14 @@ module Stripe
|
|
|
216
441
|
end
|
|
217
442
|
end
|
|
218
443
|
|
|
219
|
-
class Konbini < Stripe::RequestParams; end
|
|
220
|
-
class KrCard < Stripe::RequestParams; end
|
|
221
|
-
class Link < Stripe::RequestParams; end
|
|
222
|
-
class MbWay < Stripe::RequestParams; end
|
|
223
|
-
class Mobilepay < Stripe::RequestParams; end
|
|
224
|
-
class Multibanco < Stripe::RequestParams; end
|
|
444
|
+
class Konbini < ::Stripe::RequestParams; end
|
|
445
|
+
class KrCard < ::Stripe::RequestParams; end
|
|
446
|
+
class Link < ::Stripe::RequestParams; end
|
|
447
|
+
class MbWay < ::Stripe::RequestParams; end
|
|
448
|
+
class Mobilepay < ::Stripe::RequestParams; end
|
|
449
|
+
class Multibanco < ::Stripe::RequestParams; end
|
|
225
450
|
|
|
226
|
-
class NaverPay < Stripe::RequestParams
|
|
451
|
+
class NaverPay < ::Stripe::RequestParams
|
|
227
452
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
|
228
453
|
attr_accessor :funding
|
|
229
454
|
|
|
@@ -232,7 +457,7 @@ module Stripe
|
|
|
232
457
|
end
|
|
233
458
|
end
|
|
234
459
|
|
|
235
|
-
class NzBankAccount < Stripe::RequestParams
|
|
460
|
+
class NzBankAccount < ::Stripe::RequestParams
|
|
236
461
|
# The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details.
|
|
237
462
|
attr_accessor :account_holder_name
|
|
238
463
|
# The account number for the bank account.
|
|
@@ -263,9 +488,9 @@ module Stripe
|
|
|
263
488
|
end
|
|
264
489
|
end
|
|
265
490
|
|
|
266
|
-
class Oxxo < Stripe::RequestParams; end
|
|
491
|
+
class Oxxo < ::Stripe::RequestParams; end
|
|
267
492
|
|
|
268
|
-
class P24 < Stripe::RequestParams
|
|
493
|
+
class P24 < ::Stripe::RequestParams
|
|
269
494
|
# The customer's bank.
|
|
270
495
|
attr_accessor :bank
|
|
271
496
|
|
|
@@ -274,15 +499,31 @@ module Stripe
|
|
|
274
499
|
end
|
|
275
500
|
end
|
|
276
501
|
|
|
277
|
-
class PayByBank < Stripe::RequestParams; end
|
|
278
|
-
class Payco < Stripe::RequestParams; end
|
|
279
|
-
class Paynow < Stripe::RequestParams; end
|
|
280
|
-
class Paypal < Stripe::RequestParams; end
|
|
281
|
-
|
|
282
|
-
class
|
|
502
|
+
class PayByBank < ::Stripe::RequestParams; end
|
|
503
|
+
class Payco < ::Stripe::RequestParams; end
|
|
504
|
+
class Paynow < ::Stripe::RequestParams; end
|
|
505
|
+
class Paypal < ::Stripe::RequestParams; end
|
|
506
|
+
|
|
507
|
+
class Payto < ::Stripe::RequestParams
|
|
508
|
+
# The account number for the bank account.
|
|
509
|
+
attr_accessor :account_number
|
|
510
|
+
# Bank-State-Branch number of the bank account.
|
|
511
|
+
attr_accessor :bsb_number
|
|
512
|
+
# The PayID alias for the bank account.
|
|
513
|
+
attr_accessor :pay_id
|
|
514
|
+
|
|
515
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
|
516
|
+
@account_number = account_number
|
|
517
|
+
@bsb_number = bsb_number
|
|
518
|
+
@pay_id = pay_id
|
|
519
|
+
end
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
class Pix < ::Stripe::RequestParams; end
|
|
523
|
+
class Promptpay < ::Stripe::RequestParams; end
|
|
283
524
|
|
|
284
|
-
class RadarOptions < Stripe::RequestParams
|
|
285
|
-
# A [Radar Session](https://stripe.com/
|
|
525
|
+
class RadarOptions < ::Stripe::RequestParams
|
|
526
|
+
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
286
527
|
attr_accessor :session
|
|
287
528
|
|
|
288
529
|
def initialize(session: nil)
|
|
@@ -290,11 +531,11 @@ module Stripe
|
|
|
290
531
|
end
|
|
291
532
|
end
|
|
292
533
|
|
|
293
|
-
class RevolutPay < Stripe::RequestParams; end
|
|
294
|
-
class SamsungPay < Stripe::RequestParams; end
|
|
295
|
-
class Satispay < Stripe::RequestParams; end
|
|
534
|
+
class RevolutPay < ::Stripe::RequestParams; end
|
|
535
|
+
class SamsungPay < ::Stripe::RequestParams; end
|
|
536
|
+
class Satispay < ::Stripe::RequestParams; end
|
|
296
537
|
|
|
297
|
-
class SepaDebit < Stripe::RequestParams
|
|
538
|
+
class SepaDebit < ::Stripe::RequestParams
|
|
298
539
|
# IBAN of the bank account.
|
|
299
540
|
attr_accessor :iban
|
|
300
541
|
|
|
@@ -303,7 +544,7 @@ module Stripe
|
|
|
303
544
|
end
|
|
304
545
|
end
|
|
305
546
|
|
|
306
|
-
class Sofort < Stripe::RequestParams
|
|
547
|
+
class Sofort < ::Stripe::RequestParams
|
|
307
548
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
308
549
|
attr_accessor :country
|
|
309
550
|
|
|
@@ -312,10 +553,36 @@ module Stripe
|
|
|
312
553
|
end
|
|
313
554
|
end
|
|
314
555
|
|
|
315
|
-
class Swish < Stripe::RequestParams; end
|
|
316
|
-
class Twint < Stripe::RequestParams; end
|
|
556
|
+
class Swish < ::Stripe::RequestParams; end
|
|
557
|
+
class Twint < ::Stripe::RequestParams; end
|
|
558
|
+
|
|
559
|
+
class Upi < ::Stripe::RequestParams
|
|
560
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
561
|
+
# Amount to be charged for future payments.
|
|
562
|
+
attr_accessor :amount
|
|
563
|
+
# 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.
|
|
564
|
+
attr_accessor :amount_type
|
|
565
|
+
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
566
|
+
attr_accessor :description
|
|
567
|
+
# End date of the mandate or subscription.
|
|
568
|
+
attr_accessor :end_date
|
|
569
|
+
|
|
570
|
+
def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
|
|
571
|
+
@amount = amount
|
|
572
|
+
@amount_type = amount_type
|
|
573
|
+
@description = description
|
|
574
|
+
@end_date = end_date
|
|
575
|
+
end
|
|
576
|
+
end
|
|
577
|
+
# Configuration options for setting up an eMandate
|
|
578
|
+
attr_accessor :mandate_options
|
|
579
|
+
|
|
580
|
+
def initialize(mandate_options: nil)
|
|
581
|
+
@mandate_options = mandate_options
|
|
582
|
+
end
|
|
583
|
+
end
|
|
317
584
|
|
|
318
|
-
class UsBankAccount < Stripe::RequestParams
|
|
585
|
+
class UsBankAccount < ::Stripe::RequestParams
|
|
319
586
|
# Account holder type: individual or company.
|
|
320
587
|
attr_accessor :account_holder_type
|
|
321
588
|
# Account number of the bank account.
|
|
@@ -342,8 +609,8 @@ module Stripe
|
|
|
342
609
|
end
|
|
343
610
|
end
|
|
344
611
|
|
|
345
|
-
class WechatPay < Stripe::RequestParams; end
|
|
346
|
-
class Zip < Stripe::RequestParams; end
|
|
612
|
+
class WechatPay < ::Stripe::RequestParams; end
|
|
613
|
+
class Zip < ::Stripe::RequestParams; end
|
|
347
614
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
348
615
|
attr_accessor :acss_debit
|
|
349
616
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
@@ -402,7 +669,7 @@ module Stripe
|
|
|
402
669
|
attr_accessor :link
|
|
403
670
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
404
671
|
attr_accessor :mb_way
|
|
405
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
672
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
406
673
|
attr_accessor :metadata
|
|
407
674
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
408
675
|
attr_accessor :mobilepay
|
|
@@ -424,11 +691,13 @@ module Stripe
|
|
|
424
691
|
attr_accessor :paynow
|
|
425
692
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
426
693
|
attr_accessor :paypal
|
|
694
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
695
|
+
attr_accessor :payto
|
|
427
696
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
428
697
|
attr_accessor :pix
|
|
429
698
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
430
699
|
attr_accessor :promptpay
|
|
431
|
-
# Options to configure Radar. See [Radar Session](https://stripe.com/
|
|
700
|
+
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
432
701
|
attr_accessor :radar_options
|
|
433
702
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
434
703
|
attr_accessor :revolut_pay
|
|
@@ -446,6 +715,8 @@ module Stripe
|
|
|
446
715
|
attr_accessor :twint
|
|
447
716
|
# The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.
|
|
448
717
|
attr_accessor :type
|
|
718
|
+
# If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
|
|
719
|
+
attr_accessor :upi
|
|
449
720
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
|
450
721
|
attr_accessor :us_bank_account
|
|
451
722
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
@@ -494,6 +765,7 @@ module Stripe
|
|
|
494
765
|
payco: nil,
|
|
495
766
|
paynow: nil,
|
|
496
767
|
paypal: nil,
|
|
768
|
+
payto: nil,
|
|
497
769
|
pix: nil,
|
|
498
770
|
promptpay: nil,
|
|
499
771
|
radar_options: nil,
|
|
@@ -505,6 +777,7 @@ module Stripe
|
|
|
505
777
|
swish: nil,
|
|
506
778
|
twint: nil,
|
|
507
779
|
type: nil,
|
|
780
|
+
upi: nil,
|
|
508
781
|
us_bank_account: nil,
|
|
509
782
|
wechat_pay: nil,
|
|
510
783
|
zip: nil
|
|
@@ -549,6 +822,7 @@ module Stripe
|
|
|
549
822
|
@payco = payco
|
|
550
823
|
@paynow = paynow
|
|
551
824
|
@paypal = paypal
|
|
825
|
+
@payto = payto
|
|
552
826
|
@pix = pix
|
|
553
827
|
@promptpay = promptpay
|
|
554
828
|
@radar_options = radar_options
|
|
@@ -560,15 +834,16 @@ module Stripe
|
|
|
560
834
|
@swish = swish
|
|
561
835
|
@twint = twint
|
|
562
836
|
@type = type
|
|
837
|
+
@upi = upi
|
|
563
838
|
@us_bank_account = us_bank_account
|
|
564
839
|
@wechat_pay = wechat_pay
|
|
565
840
|
@zip = zip
|
|
566
841
|
end
|
|
567
842
|
end
|
|
568
843
|
|
|
569
|
-
class PaymentMethodOptions < Stripe::RequestParams
|
|
570
|
-
class AcssDebit < Stripe::RequestParams
|
|
571
|
-
class MandateOptions < Stripe::RequestParams
|
|
844
|
+
class PaymentMethodOptions < ::Stripe::RequestParams
|
|
845
|
+
class AcssDebit < ::Stripe::RequestParams
|
|
846
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
572
847
|
# A URL for custom mandate text to render during confirmation step.
|
|
573
848
|
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
|
|
574
849
|
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
|
|
@@ -606,7 +881,7 @@ module Stripe
|
|
|
606
881
|
attr_accessor :setup_future_usage
|
|
607
882
|
# 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.
|
|
608
883
|
attr_accessor :target_date
|
|
609
|
-
# Bank account verification method.
|
|
884
|
+
# Bank account verification method. The default value is `automatic`.
|
|
610
885
|
attr_accessor :verification_method
|
|
611
886
|
|
|
612
887
|
def initialize(
|
|
@@ -622,7 +897,7 @@ module Stripe
|
|
|
622
897
|
end
|
|
623
898
|
end
|
|
624
899
|
|
|
625
|
-
class Affirm < Stripe::RequestParams
|
|
900
|
+
class Affirm < ::Stripe::RequestParams
|
|
626
901
|
# Controls when the funds are captured from the customer's account.
|
|
627
902
|
#
|
|
628
903
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -649,7 +924,7 @@ module Stripe
|
|
|
649
924
|
end
|
|
650
925
|
end
|
|
651
926
|
|
|
652
|
-
class AfterpayClearpay < Stripe::RequestParams
|
|
927
|
+
class AfterpayClearpay < ::Stripe::RequestParams
|
|
653
928
|
# Controls when the funds are captured from the customer's account.
|
|
654
929
|
#
|
|
655
930
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -677,7 +952,7 @@ module Stripe
|
|
|
677
952
|
end
|
|
678
953
|
end
|
|
679
954
|
|
|
680
|
-
class Alipay < Stripe::RequestParams
|
|
955
|
+
class Alipay < ::Stripe::RequestParams
|
|
681
956
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
682
957
|
#
|
|
683
958
|
# 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.
|
|
@@ -694,7 +969,7 @@ module Stripe
|
|
|
694
969
|
end
|
|
695
970
|
end
|
|
696
971
|
|
|
697
|
-
class Alma < Stripe::RequestParams
|
|
972
|
+
class Alma < ::Stripe::RequestParams
|
|
698
973
|
# Controls when the funds are captured from the customer's account.
|
|
699
974
|
#
|
|
700
975
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -707,7 +982,7 @@ module Stripe
|
|
|
707
982
|
end
|
|
708
983
|
end
|
|
709
984
|
|
|
710
|
-
class AmazonPay < Stripe::RequestParams
|
|
985
|
+
class AmazonPay < ::Stripe::RequestParams
|
|
711
986
|
# Controls when the funds are captured from the customer's account.
|
|
712
987
|
#
|
|
713
988
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -729,7 +1004,7 @@ module Stripe
|
|
|
729
1004
|
end
|
|
730
1005
|
end
|
|
731
1006
|
|
|
732
|
-
class AuBecsDebit < Stripe::RequestParams
|
|
1007
|
+
class AuBecsDebit < ::Stripe::RequestParams
|
|
733
1008
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
734
1009
|
#
|
|
735
1010
|
# 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.
|
|
@@ -749,8 +1024,8 @@ module Stripe
|
|
|
749
1024
|
end
|
|
750
1025
|
end
|
|
751
1026
|
|
|
752
|
-
class BacsDebit < Stripe::RequestParams
|
|
753
|
-
class MandateOptions < Stripe::RequestParams
|
|
1027
|
+
class BacsDebit < ::Stripe::RequestParams
|
|
1028
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
754
1029
|
# 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'.
|
|
755
1030
|
attr_accessor :reference_prefix
|
|
756
1031
|
|
|
@@ -780,7 +1055,7 @@ module Stripe
|
|
|
780
1055
|
end
|
|
781
1056
|
end
|
|
782
1057
|
|
|
783
|
-
class Bancontact < Stripe::RequestParams
|
|
1058
|
+
class Bancontact < ::Stripe::RequestParams
|
|
784
1059
|
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
|
785
1060
|
attr_accessor :preferred_language
|
|
786
1061
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -800,7 +1075,7 @@ module Stripe
|
|
|
800
1075
|
end
|
|
801
1076
|
end
|
|
802
1077
|
|
|
803
|
-
class Billie < Stripe::RequestParams
|
|
1078
|
+
class Billie < ::Stripe::RequestParams
|
|
804
1079
|
# Controls when the funds are captured from the customer's account.
|
|
805
1080
|
#
|
|
806
1081
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -813,7 +1088,7 @@ module Stripe
|
|
|
813
1088
|
end
|
|
814
1089
|
end
|
|
815
1090
|
|
|
816
|
-
class Blik < Stripe::RequestParams
|
|
1091
|
+
class Blik < ::Stripe::RequestParams
|
|
817
1092
|
# The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
|
|
818
1093
|
attr_accessor :code
|
|
819
1094
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -833,7 +1108,7 @@ module Stripe
|
|
|
833
1108
|
end
|
|
834
1109
|
end
|
|
835
1110
|
|
|
836
|
-
class Boleto < Stripe::RequestParams
|
|
1111
|
+
class Boleto < ::Stripe::RequestParams
|
|
837
1112
|
# 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 invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
|
|
838
1113
|
attr_accessor :expires_after_days
|
|
839
1114
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -853,9 +1128,9 @@ module Stripe
|
|
|
853
1128
|
end
|
|
854
1129
|
end
|
|
855
1130
|
|
|
856
|
-
class Card < Stripe::RequestParams
|
|
857
|
-
class Installments < Stripe::RequestParams
|
|
858
|
-
class Plan < Stripe::RequestParams
|
|
1131
|
+
class Card < ::Stripe::RequestParams
|
|
1132
|
+
class Installments < ::Stripe::RequestParams
|
|
1133
|
+
class Plan < ::Stripe::RequestParams
|
|
859
1134
|
# For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
|
|
860
1135
|
attr_accessor :count
|
|
861
1136
|
# For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
|
|
@@ -884,8 +1159,8 @@ module Stripe
|
|
|
884
1159
|
end
|
|
885
1160
|
end
|
|
886
1161
|
|
|
887
|
-
class MandateOptions < Stripe::RequestParams
|
|
888
|
-
# Amount to be charged for future payments.
|
|
1162
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
1163
|
+
# Amount to be charged for future payments, specified in the presentment currency.
|
|
889
1164
|
attr_accessor :amount
|
|
890
1165
|
# 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.
|
|
891
1166
|
attr_accessor :amount_type
|
|
@@ -927,9 +1202,9 @@ module Stripe
|
|
|
927
1202
|
end
|
|
928
1203
|
end
|
|
929
1204
|
|
|
930
|
-
class ThreeDSecure < Stripe::RequestParams
|
|
931
|
-
class NetworkOptions < Stripe::RequestParams
|
|
932
|
-
class CartesBancaires < Stripe::RequestParams
|
|
1205
|
+
class ThreeDSecure < ::Stripe::RequestParams
|
|
1206
|
+
class NetworkOptions < ::Stripe::RequestParams
|
|
1207
|
+
class CartesBancaires < ::Stripe::RequestParams
|
|
933
1208
|
# The cryptogram calculation algorithm used by the card Issuer's ACS
|
|
934
1209
|
# to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
|
|
935
1210
|
# messageExtension: CB-AVALGO
|
|
@@ -1011,7 +1286,7 @@ module Stripe
|
|
|
1011
1286
|
attr_accessor :cvc_token
|
|
1012
1287
|
# Installment configuration for payments attempted on this PaymentIntent.
|
|
1013
1288
|
#
|
|
1014
|
-
# For more information, see the [installments integration guide](https://stripe.com/
|
|
1289
|
+
# For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
|
|
1015
1290
|
attr_accessor :installments
|
|
1016
1291
|
# Configuration options for setting up an eMandate for cards issued in India.
|
|
1017
1292
|
attr_accessor :mandate_options
|
|
@@ -1021,15 +1296,15 @@ module Stripe
|
|
|
1021
1296
|
attr_accessor :moto
|
|
1022
1297
|
# Selected network to process this PaymentIntent on. Depends on the available networks of the card attached to the PaymentIntent. Can be only set confirm-time.
|
|
1023
1298
|
attr_accessor :network
|
|
1024
|
-
# Request ability to [capture beyond the standard authorization validity window](https://stripe.com/
|
|
1299
|
+
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
1025
1300
|
attr_accessor :request_extended_authorization
|
|
1026
|
-
# Request ability to [increment the authorization](https://stripe.com/
|
|
1301
|
+
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
1027
1302
|
attr_accessor :request_incremental_authorization
|
|
1028
|
-
# Request ability to make [multiple captures](https://stripe.com/
|
|
1303
|
+
# Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
|
|
1029
1304
|
attr_accessor :request_multicapture
|
|
1030
|
-
# Request ability to [overcapture](https://stripe.com/
|
|
1305
|
+
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
1031
1306
|
attr_accessor :request_overcapture
|
|
1032
|
-
# 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/
|
|
1307
|
+
# 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.
|
|
1033
1308
|
attr_accessor :request_three_d_secure
|
|
1034
1309
|
# When enabled, using a card that is attached to a customer will require the CVC to be provided again (i.e. using the cvc_token parameter).
|
|
1035
1310
|
attr_accessor :require_cvc_recollection
|
|
@@ -1088,8 +1363,8 @@ module Stripe
|
|
|
1088
1363
|
end
|
|
1089
1364
|
end
|
|
1090
1365
|
|
|
1091
|
-
class CardPresent < Stripe::RequestParams
|
|
1092
|
-
class Routing < Stripe::RequestParams
|
|
1366
|
+
class CardPresent < ::Stripe::RequestParams
|
|
1367
|
+
class Routing < ::Stripe::RequestParams
|
|
1093
1368
|
# Routing requested priority
|
|
1094
1369
|
attr_accessor :requested_priority
|
|
1095
1370
|
|
|
@@ -1097,25 +1372,33 @@ module Stripe
|
|
|
1097
1372
|
@requested_priority = requested_priority
|
|
1098
1373
|
end
|
|
1099
1374
|
end
|
|
1100
|
-
#
|
|
1375
|
+
# Controls when the funds are captured from the customer's account.
|
|
1376
|
+
#
|
|
1377
|
+
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
1378
|
+
#
|
|
1379
|
+
# If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type.
|
|
1380
|
+
attr_accessor :capture_method
|
|
1381
|
+
# Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
|
|
1101
1382
|
attr_accessor :request_extended_authorization
|
|
1102
|
-
# Request ability to [increment](https://stripe.com/
|
|
1383
|
+
# Request ability to [increment](https://docs.stripe.com/terminal/features/incremental-authorizations) this PaymentIntent if the combination of MCC and card brand is eligible. Check [incremental_authorization_supported](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported) in the [Confirm](https://docs.stripe.com/api/payment_intents/confirm) response to verify support.
|
|
1103
1384
|
attr_accessor :request_incremental_authorization_support
|
|
1104
1385
|
# Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
|
|
1105
1386
|
attr_accessor :routing
|
|
1106
1387
|
|
|
1107
1388
|
def initialize(
|
|
1389
|
+
capture_method: nil,
|
|
1108
1390
|
request_extended_authorization: nil,
|
|
1109
1391
|
request_incremental_authorization_support: nil,
|
|
1110
1392
|
routing: nil
|
|
1111
1393
|
)
|
|
1394
|
+
@capture_method = capture_method
|
|
1112
1395
|
@request_extended_authorization = request_extended_authorization
|
|
1113
1396
|
@request_incremental_authorization_support = request_incremental_authorization_support
|
|
1114
1397
|
@routing = routing
|
|
1115
1398
|
end
|
|
1116
1399
|
end
|
|
1117
1400
|
|
|
1118
|
-
class Cashapp < Stripe::RequestParams
|
|
1401
|
+
class Cashapp < ::Stripe::RequestParams
|
|
1119
1402
|
# Controls when the funds are captured from the customer's account.
|
|
1120
1403
|
#
|
|
1121
1404
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -1139,7 +1422,7 @@ module Stripe
|
|
|
1139
1422
|
end
|
|
1140
1423
|
end
|
|
1141
1424
|
|
|
1142
|
-
class Crypto < Stripe::RequestParams
|
|
1425
|
+
class Crypto < ::Stripe::RequestParams
|
|
1143
1426
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1144
1427
|
#
|
|
1145
1428
|
# 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.
|
|
@@ -1156,10 +1439,10 @@ module Stripe
|
|
|
1156
1439
|
end
|
|
1157
1440
|
end
|
|
1158
1441
|
|
|
1159
|
-
class CustomerBalance < Stripe::RequestParams
|
|
1160
|
-
class BankTransfer < Stripe::RequestParams
|
|
1161
|
-
class EuBankTransfer < Stripe::RequestParams
|
|
1162
|
-
# The desired country code of the bank account information. Permitted values include: `
|
|
1442
|
+
class CustomerBalance < ::Stripe::RequestParams
|
|
1443
|
+
class BankTransfer < ::Stripe::RequestParams
|
|
1444
|
+
class EuBankTransfer < ::Stripe::RequestParams
|
|
1445
|
+
# The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
|
|
1163
1446
|
attr_accessor :country
|
|
1164
1447
|
|
|
1165
1448
|
def initialize(country: nil)
|
|
@@ -1203,7 +1486,7 @@ module Stripe
|
|
|
1203
1486
|
end
|
|
1204
1487
|
end
|
|
1205
1488
|
|
|
1206
|
-
class Eps < Stripe::RequestParams
|
|
1489
|
+
class Eps < ::Stripe::RequestParams
|
|
1207
1490
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1208
1491
|
#
|
|
1209
1492
|
# 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.
|
|
@@ -1220,7 +1503,7 @@ module Stripe
|
|
|
1220
1503
|
end
|
|
1221
1504
|
end
|
|
1222
1505
|
|
|
1223
|
-
class Fpx < Stripe::RequestParams
|
|
1506
|
+
class Fpx < ::Stripe::RequestParams
|
|
1224
1507
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1225
1508
|
#
|
|
1226
1509
|
# 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.
|
|
@@ -1237,7 +1520,7 @@ module Stripe
|
|
|
1237
1520
|
end
|
|
1238
1521
|
end
|
|
1239
1522
|
|
|
1240
|
-
class Giropay < Stripe::RequestParams
|
|
1523
|
+
class Giropay < ::Stripe::RequestParams
|
|
1241
1524
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1242
1525
|
#
|
|
1243
1526
|
# 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.
|
|
@@ -1254,7 +1537,7 @@ module Stripe
|
|
|
1254
1537
|
end
|
|
1255
1538
|
end
|
|
1256
1539
|
|
|
1257
|
-
class Grabpay < Stripe::RequestParams
|
|
1540
|
+
class Grabpay < ::Stripe::RequestParams
|
|
1258
1541
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1259
1542
|
#
|
|
1260
1543
|
# 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.
|
|
@@ -1271,7 +1554,7 @@ module Stripe
|
|
|
1271
1554
|
end
|
|
1272
1555
|
end
|
|
1273
1556
|
|
|
1274
|
-
class Ideal < Stripe::RequestParams
|
|
1557
|
+
class Ideal < ::Stripe::RequestParams
|
|
1275
1558
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1276
1559
|
#
|
|
1277
1560
|
# 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.
|
|
@@ -1288,9 +1571,9 @@ module Stripe
|
|
|
1288
1571
|
end
|
|
1289
1572
|
end
|
|
1290
1573
|
|
|
1291
|
-
class InteracPresent < Stripe::RequestParams; end
|
|
1574
|
+
class InteracPresent < ::Stripe::RequestParams; end
|
|
1292
1575
|
|
|
1293
|
-
class KakaoPay < Stripe::RequestParams
|
|
1576
|
+
class KakaoPay < ::Stripe::RequestParams
|
|
1294
1577
|
# Controls when the funds are captured from the customer's account.
|
|
1295
1578
|
#
|
|
1296
1579
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -1312,8 +1595,8 @@ module Stripe
|
|
|
1312
1595
|
end
|
|
1313
1596
|
end
|
|
1314
1597
|
|
|
1315
|
-
class Klarna < Stripe::RequestParams
|
|
1316
|
-
class OnDemand < Stripe::RequestParams
|
|
1598
|
+
class Klarna < ::Stripe::RequestParams
|
|
1599
|
+
class OnDemand < ::Stripe::RequestParams
|
|
1317
1600
|
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
|
1318
1601
|
attr_accessor :average_amount
|
|
1319
1602
|
# The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc.
|
|
@@ -1340,8 +1623,8 @@ module Stripe
|
|
|
1340
1623
|
end
|
|
1341
1624
|
end
|
|
1342
1625
|
|
|
1343
|
-
class Subscription < Stripe::RequestParams
|
|
1344
|
-
class NextBilling < Stripe::RequestParams
|
|
1626
|
+
class Subscription < ::Stripe::RequestParams
|
|
1627
|
+
class NextBilling < ::Stripe::RequestParams
|
|
1345
1628
|
# The amount of the next charge for the subscription.
|
|
1346
1629
|
attr_accessor :amount
|
|
1347
1630
|
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
|
@@ -1415,7 +1698,7 @@ module Stripe
|
|
|
1415
1698
|
end
|
|
1416
1699
|
end
|
|
1417
1700
|
|
|
1418
|
-
class Konbini < Stripe::RequestParams
|
|
1701
|
+
class Konbini < ::Stripe::RequestParams
|
|
1419
1702
|
# An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number.
|
|
1420
1703
|
attr_accessor :confirmation_number
|
|
1421
1704
|
# 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. Defaults to 3 days.
|
|
@@ -1450,7 +1733,7 @@ module Stripe
|
|
|
1450
1733
|
end
|
|
1451
1734
|
end
|
|
1452
1735
|
|
|
1453
|
-
class KrCard < Stripe::RequestParams
|
|
1736
|
+
class KrCard < ::Stripe::RequestParams
|
|
1454
1737
|
# Controls when the funds are captured from the customer's account.
|
|
1455
1738
|
#
|
|
1456
1739
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -1472,7 +1755,7 @@ module Stripe
|
|
|
1472
1755
|
end
|
|
1473
1756
|
end
|
|
1474
1757
|
|
|
1475
|
-
class Link < Stripe::RequestParams
|
|
1758
|
+
class Link < ::Stripe::RequestParams
|
|
1476
1759
|
# Controls when the funds are captured from the customer's account.
|
|
1477
1760
|
#
|
|
1478
1761
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -1499,7 +1782,7 @@ module Stripe
|
|
|
1499
1782
|
end
|
|
1500
1783
|
end
|
|
1501
1784
|
|
|
1502
|
-
class MbWay < Stripe::RequestParams
|
|
1785
|
+
class MbWay < ::Stripe::RequestParams
|
|
1503
1786
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1504
1787
|
#
|
|
1505
1788
|
# 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.
|
|
@@ -1516,7 +1799,7 @@ module Stripe
|
|
|
1516
1799
|
end
|
|
1517
1800
|
end
|
|
1518
1801
|
|
|
1519
|
-
class Mobilepay < Stripe::RequestParams
|
|
1802
|
+
class Mobilepay < ::Stripe::RequestParams
|
|
1520
1803
|
# Controls when the funds are captured from the customer's account.
|
|
1521
1804
|
#
|
|
1522
1805
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -1540,7 +1823,7 @@ module Stripe
|
|
|
1540
1823
|
end
|
|
1541
1824
|
end
|
|
1542
1825
|
|
|
1543
|
-
class Multibanco < Stripe::RequestParams
|
|
1826
|
+
class Multibanco < ::Stripe::RequestParams
|
|
1544
1827
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1545
1828
|
#
|
|
1546
1829
|
# 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.
|
|
@@ -1557,7 +1840,7 @@ module Stripe
|
|
|
1557
1840
|
end
|
|
1558
1841
|
end
|
|
1559
1842
|
|
|
1560
|
-
class NaverPay < Stripe::RequestParams
|
|
1843
|
+
class NaverPay < ::Stripe::RequestParams
|
|
1561
1844
|
# Controls when the funds are captured from the customer's account.
|
|
1562
1845
|
#
|
|
1563
1846
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -1579,7 +1862,7 @@ module Stripe
|
|
|
1579
1862
|
end
|
|
1580
1863
|
end
|
|
1581
1864
|
|
|
1582
|
-
class NzBankAccount < Stripe::RequestParams
|
|
1865
|
+
class NzBankAccount < ::Stripe::RequestParams
|
|
1583
1866
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1584
1867
|
#
|
|
1585
1868
|
# 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 +1882,7 @@ module Stripe
|
|
|
1599
1882
|
end
|
|
1600
1883
|
end
|
|
1601
1884
|
|
|
1602
|
-
class Oxxo < Stripe::RequestParams
|
|
1885
|
+
class Oxxo < ::Stripe::RequestParams
|
|
1603
1886
|
# The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
|
|
1604
1887
|
attr_accessor :expires_after_days
|
|
1605
1888
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1619,7 +1902,7 @@ module Stripe
|
|
|
1619
1902
|
end
|
|
1620
1903
|
end
|
|
1621
1904
|
|
|
1622
|
-
class P24 < Stripe::RequestParams
|
|
1905
|
+
class P24 < ::Stripe::RequestParams
|
|
1623
1906
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1624
1907
|
#
|
|
1625
1908
|
# 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.
|
|
@@ -1639,9 +1922,9 @@ module Stripe
|
|
|
1639
1922
|
end
|
|
1640
1923
|
end
|
|
1641
1924
|
|
|
1642
|
-
class PayByBank < Stripe::RequestParams; end
|
|
1925
|
+
class PayByBank < ::Stripe::RequestParams; end
|
|
1643
1926
|
|
|
1644
|
-
class Payco < Stripe::RequestParams
|
|
1927
|
+
class Payco < ::Stripe::RequestParams
|
|
1645
1928
|
# Controls when the funds are captured from the customer's account.
|
|
1646
1929
|
#
|
|
1647
1930
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -1654,7 +1937,7 @@ module Stripe
|
|
|
1654
1937
|
end
|
|
1655
1938
|
end
|
|
1656
1939
|
|
|
1657
|
-
class Paynow < Stripe::RequestParams
|
|
1940
|
+
class Paynow < ::Stripe::RequestParams
|
|
1658
1941
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1659
1942
|
#
|
|
1660
1943
|
# 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.
|
|
@@ -1671,10 +1954,10 @@ module Stripe
|
|
|
1671
1954
|
end
|
|
1672
1955
|
end
|
|
1673
1956
|
|
|
1674
|
-
class Paypal < Stripe::RequestParams
|
|
1957
|
+
class Paypal < ::Stripe::RequestParams
|
|
1675
1958
|
# Controls when the funds will be captured from the customer's account.
|
|
1676
1959
|
attr_accessor :capture_method
|
|
1677
|
-
# [Preferred locale](https://stripe.com/
|
|
1960
|
+
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1678
1961
|
attr_accessor :preferred_locale
|
|
1679
1962
|
# A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
|
|
1680
1963
|
attr_accessor :reference
|
|
@@ -1706,7 +1989,57 @@ module Stripe
|
|
|
1706
1989
|
end
|
|
1707
1990
|
end
|
|
1708
1991
|
|
|
1709
|
-
class
|
|
1992
|
+
class Payto < ::Stripe::RequestParams
|
|
1993
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
1994
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1995
|
+
attr_accessor :amount
|
|
1996
|
+
# 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`.
|
|
1997
|
+
attr_accessor :amount_type
|
|
1998
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1999
|
+
attr_accessor :end_date
|
|
2000
|
+
# The periodicity at which payments will be collected. Defaults to `adhoc`.
|
|
2001
|
+
attr_accessor :payment_schedule
|
|
2002
|
+
# 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.
|
|
2003
|
+
attr_accessor :payments_per_period
|
|
2004
|
+
# The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
2005
|
+
attr_accessor :purpose
|
|
2006
|
+
|
|
2007
|
+
def initialize(
|
|
2008
|
+
amount: nil,
|
|
2009
|
+
amount_type: nil,
|
|
2010
|
+
end_date: nil,
|
|
2011
|
+
payment_schedule: nil,
|
|
2012
|
+
payments_per_period: nil,
|
|
2013
|
+
purpose: nil
|
|
2014
|
+
)
|
|
2015
|
+
@amount = amount
|
|
2016
|
+
@amount_type = amount_type
|
|
2017
|
+
@end_date = end_date
|
|
2018
|
+
@payment_schedule = payment_schedule
|
|
2019
|
+
@payments_per_period = payments_per_period
|
|
2020
|
+
@purpose = purpose
|
|
2021
|
+
end
|
|
2022
|
+
end
|
|
2023
|
+
# Additional fields for Mandate creation. Only `purpose` field is configurable for PayTo PaymentIntent with `setup_future_usage=none`. Other fields are only applicable to PayTo PaymentIntent with `setup_future_usage=off_session`
|
|
2024
|
+
attr_accessor :mandate_options
|
|
2025
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2026
|
+
#
|
|
2027
|
+
# 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.
|
|
2028
|
+
#
|
|
2029
|
+
# 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.
|
|
2030
|
+
#
|
|
2031
|
+
# 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).
|
|
2032
|
+
#
|
|
2033
|
+
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
|
2034
|
+
attr_accessor :setup_future_usage
|
|
2035
|
+
|
|
2036
|
+
def initialize(mandate_options: nil, setup_future_usage: nil)
|
|
2037
|
+
@mandate_options = mandate_options
|
|
2038
|
+
@setup_future_usage = setup_future_usage
|
|
2039
|
+
end
|
|
2040
|
+
end
|
|
2041
|
+
|
|
2042
|
+
class Pix < ::Stripe::RequestParams
|
|
1710
2043
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
1711
2044
|
attr_accessor :amount_includes_iof
|
|
1712
2045
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
@@ -1737,7 +2070,7 @@ module Stripe
|
|
|
1737
2070
|
end
|
|
1738
2071
|
end
|
|
1739
2072
|
|
|
1740
|
-
class Promptpay < Stripe::RequestParams
|
|
2073
|
+
class Promptpay < ::Stripe::RequestParams
|
|
1741
2074
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1742
2075
|
#
|
|
1743
2076
|
# 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.
|
|
@@ -1754,7 +2087,7 @@ module Stripe
|
|
|
1754
2087
|
end
|
|
1755
2088
|
end
|
|
1756
2089
|
|
|
1757
|
-
class RevolutPay < Stripe::RequestParams
|
|
2090
|
+
class RevolutPay < ::Stripe::RequestParams
|
|
1758
2091
|
# Controls when the funds are captured from the customer's account.
|
|
1759
2092
|
#
|
|
1760
2093
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -1776,7 +2109,7 @@ module Stripe
|
|
|
1776
2109
|
end
|
|
1777
2110
|
end
|
|
1778
2111
|
|
|
1779
|
-
class SamsungPay < Stripe::RequestParams
|
|
2112
|
+
class SamsungPay < ::Stripe::RequestParams
|
|
1780
2113
|
# Controls when the funds are captured from the customer's account.
|
|
1781
2114
|
#
|
|
1782
2115
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -1789,7 +2122,7 @@ module Stripe
|
|
|
1789
2122
|
end
|
|
1790
2123
|
end
|
|
1791
2124
|
|
|
1792
|
-
class Satispay < Stripe::RequestParams
|
|
2125
|
+
class Satispay < ::Stripe::RequestParams
|
|
1793
2126
|
# Controls when the funds are captured from the customer's account.
|
|
1794
2127
|
#
|
|
1795
2128
|
# If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type.
|
|
@@ -1802,8 +2135,8 @@ module Stripe
|
|
|
1802
2135
|
end
|
|
1803
2136
|
end
|
|
1804
2137
|
|
|
1805
|
-
class SepaDebit < Stripe::RequestParams
|
|
1806
|
-
class MandateOptions < Stripe::RequestParams
|
|
2138
|
+
class SepaDebit < ::Stripe::RequestParams
|
|
2139
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
1807
2140
|
# 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'.
|
|
1808
2141
|
attr_accessor :reference_prefix
|
|
1809
2142
|
|
|
@@ -1833,7 +2166,7 @@ module Stripe
|
|
|
1833
2166
|
end
|
|
1834
2167
|
end
|
|
1835
2168
|
|
|
1836
|
-
class Sofort < Stripe::RequestParams
|
|
2169
|
+
class Sofort < ::Stripe::RequestParams
|
|
1837
2170
|
# Language shown to the payer on redirect.
|
|
1838
2171
|
attr_accessor :preferred_language
|
|
1839
2172
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1853,7 +2186,7 @@ module Stripe
|
|
|
1853
2186
|
end
|
|
1854
2187
|
end
|
|
1855
2188
|
|
|
1856
|
-
class Swish < Stripe::RequestParams
|
|
2189
|
+
class Swish < ::Stripe::RequestParams
|
|
1857
2190
|
# A reference for this payment to be displayed in the Swish app.
|
|
1858
2191
|
attr_accessor :reference
|
|
1859
2192
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1873,7 +2206,7 @@ module Stripe
|
|
|
1873
2206
|
end
|
|
1874
2207
|
end
|
|
1875
2208
|
|
|
1876
|
-
class Twint < Stripe::RequestParams
|
|
2209
|
+
class Twint < ::Stripe::RequestParams
|
|
1877
2210
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1878
2211
|
#
|
|
1879
2212
|
# 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.
|
|
@@ -1890,9 +2223,38 @@ module Stripe
|
|
|
1890
2223
|
end
|
|
1891
2224
|
end
|
|
1892
2225
|
|
|
1893
|
-
class
|
|
1894
|
-
class
|
|
1895
|
-
|
|
2226
|
+
class Upi < ::Stripe::RequestParams
|
|
2227
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
2228
|
+
# Amount to be charged for future payments.
|
|
2229
|
+
attr_accessor :amount
|
|
2230
|
+
# 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.
|
|
2231
|
+
attr_accessor :amount_type
|
|
2232
|
+
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
2233
|
+
attr_accessor :description
|
|
2234
|
+
# End date of the mandate or subscription.
|
|
2235
|
+
attr_accessor :end_date
|
|
2236
|
+
|
|
2237
|
+
def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
|
|
2238
|
+
@amount = amount
|
|
2239
|
+
@amount_type = amount_type
|
|
2240
|
+
@description = description
|
|
2241
|
+
@end_date = end_date
|
|
2242
|
+
end
|
|
2243
|
+
end
|
|
2244
|
+
# Configuration options for setting up an eMandate
|
|
2245
|
+
attr_accessor :mandate_options
|
|
2246
|
+
# Attribute for param field setup_future_usage
|
|
2247
|
+
attr_accessor :setup_future_usage
|
|
2248
|
+
|
|
2249
|
+
def initialize(mandate_options: nil, setup_future_usage: nil)
|
|
2250
|
+
@mandate_options = mandate_options
|
|
2251
|
+
@setup_future_usage = setup_future_usage
|
|
2252
|
+
end
|
|
2253
|
+
end
|
|
2254
|
+
|
|
2255
|
+
class UsBankAccount < ::Stripe::RequestParams
|
|
2256
|
+
class FinancialConnections < ::Stripe::RequestParams
|
|
2257
|
+
class Filters < ::Stripe::RequestParams
|
|
1896
2258
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1897
2259
|
attr_accessor :account_subcategories
|
|
1898
2260
|
|
|
@@ -1917,7 +2279,7 @@ module Stripe
|
|
|
1917
2279
|
end
|
|
1918
2280
|
end
|
|
1919
2281
|
|
|
1920
|
-
class MandateOptions < Stripe::RequestParams
|
|
2282
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
1921
2283
|
# The method used to collect offline mandate customer acceptance.
|
|
1922
2284
|
attr_accessor :collection_method
|
|
1923
2285
|
|
|
@@ -1926,7 +2288,7 @@ module Stripe
|
|
|
1926
2288
|
end
|
|
1927
2289
|
end
|
|
1928
2290
|
|
|
1929
|
-
class Networks < Stripe::RequestParams
|
|
2291
|
+
class Networks < ::Stripe::RequestParams
|
|
1930
2292
|
# Triggers validations to run across the selected networks
|
|
1931
2293
|
attr_accessor :requested
|
|
1932
2294
|
|
|
@@ -1940,8 +2302,6 @@ module Stripe
|
|
|
1940
2302
|
attr_accessor :mandate_options
|
|
1941
2303
|
# Additional fields for network related functions
|
|
1942
2304
|
attr_accessor :networks
|
|
1943
|
-
# Preferred transaction settlement speed
|
|
1944
|
-
attr_accessor :preferred_settlement_speed
|
|
1945
2305
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1946
2306
|
#
|
|
1947
2307
|
# 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.
|
|
@@ -1954,29 +2314,31 @@ module Stripe
|
|
|
1954
2314
|
attr_accessor :setup_future_usage
|
|
1955
2315
|
# 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.
|
|
1956
2316
|
attr_accessor :target_date
|
|
1957
|
-
#
|
|
2317
|
+
# The purpose of the transaction.
|
|
2318
|
+
attr_accessor :transaction_purpose
|
|
2319
|
+
# Bank account verification method. The default value is `automatic`.
|
|
1958
2320
|
attr_accessor :verification_method
|
|
1959
2321
|
|
|
1960
2322
|
def initialize(
|
|
1961
2323
|
financial_connections: nil,
|
|
1962
2324
|
mandate_options: nil,
|
|
1963
2325
|
networks: nil,
|
|
1964
|
-
preferred_settlement_speed: nil,
|
|
1965
2326
|
setup_future_usage: nil,
|
|
1966
2327
|
target_date: nil,
|
|
2328
|
+
transaction_purpose: nil,
|
|
1967
2329
|
verification_method: nil
|
|
1968
2330
|
)
|
|
1969
2331
|
@financial_connections = financial_connections
|
|
1970
2332
|
@mandate_options = mandate_options
|
|
1971
2333
|
@networks = networks
|
|
1972
|
-
@preferred_settlement_speed = preferred_settlement_speed
|
|
1973
2334
|
@setup_future_usage = setup_future_usage
|
|
1974
2335
|
@target_date = target_date
|
|
2336
|
+
@transaction_purpose = transaction_purpose
|
|
1975
2337
|
@verification_method = verification_method
|
|
1976
2338
|
end
|
|
1977
2339
|
end
|
|
1978
2340
|
|
|
1979
|
-
class WechatPay < Stripe::RequestParams
|
|
2341
|
+
class WechatPay < ::Stripe::RequestParams
|
|
1980
2342
|
# The app ID registered with WeChat Pay. Only required when client is ios or android.
|
|
1981
2343
|
attr_accessor :app_id
|
|
1982
2344
|
# The client type that the end customer will pay from
|
|
@@ -1999,7 +2361,7 @@ module Stripe
|
|
|
1999
2361
|
end
|
|
2000
2362
|
end
|
|
2001
2363
|
|
|
2002
|
-
class Zip < Stripe::RequestParams
|
|
2364
|
+
class Zip < ::Stripe::RequestParams
|
|
2003
2365
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
2004
2366
|
#
|
|
2005
2367
|
# 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.
|
|
@@ -2093,6 +2455,8 @@ module Stripe
|
|
|
2093
2455
|
attr_accessor :paynow
|
|
2094
2456
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2095
2457
|
attr_accessor :paypal
|
|
2458
|
+
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
2459
|
+
attr_accessor :payto
|
|
2096
2460
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2097
2461
|
attr_accessor :pix
|
|
2098
2462
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
@@ -2111,6 +2475,8 @@ module Stripe
|
|
|
2111
2475
|
attr_accessor :swish
|
|
2112
2476
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
2113
2477
|
attr_accessor :twint
|
|
2478
|
+
# If this is a `upi` PaymentIntent, this sub-hash contains details about the UPI payment method options.
|
|
2479
|
+
attr_accessor :upi
|
|
2114
2480
|
# If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
|
|
2115
2481
|
attr_accessor :us_bank_account
|
|
2116
2482
|
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
|
|
@@ -2158,6 +2524,7 @@ module Stripe
|
|
|
2158
2524
|
payco: nil,
|
|
2159
2525
|
paynow: nil,
|
|
2160
2526
|
paypal: nil,
|
|
2527
|
+
payto: nil,
|
|
2161
2528
|
pix: nil,
|
|
2162
2529
|
promptpay: nil,
|
|
2163
2530
|
revolut_pay: nil,
|
|
@@ -2167,6 +2534,7 @@ module Stripe
|
|
|
2167
2534
|
sofort: nil,
|
|
2168
2535
|
swish: nil,
|
|
2169
2536
|
twint: nil,
|
|
2537
|
+
upi: nil,
|
|
2170
2538
|
us_bank_account: nil,
|
|
2171
2539
|
wechat_pay: nil,
|
|
2172
2540
|
zip: nil
|
|
@@ -2210,6 +2578,7 @@ module Stripe
|
|
|
2210
2578
|
@payco = payco
|
|
2211
2579
|
@paynow = paynow
|
|
2212
2580
|
@paypal = paypal
|
|
2581
|
+
@payto = payto
|
|
2213
2582
|
@pix = pix
|
|
2214
2583
|
@promptpay = promptpay
|
|
2215
2584
|
@revolut_pay = revolut_pay
|
|
@@ -2219,14 +2588,15 @@ module Stripe
|
|
|
2219
2588
|
@sofort = sofort
|
|
2220
2589
|
@swish = swish
|
|
2221
2590
|
@twint = twint
|
|
2591
|
+
@upi = upi
|
|
2222
2592
|
@us_bank_account = us_bank_account
|
|
2223
2593
|
@wechat_pay = wechat_pay
|
|
2224
2594
|
@zip = zip
|
|
2225
2595
|
end
|
|
2226
2596
|
end
|
|
2227
2597
|
|
|
2228
|
-
class RadarOptions < Stripe::RequestParams
|
|
2229
|
-
# A [Radar Session](https://stripe.com/
|
|
2598
|
+
class RadarOptions < ::Stripe::RequestParams
|
|
2599
|
+
# A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
2230
2600
|
attr_accessor :session
|
|
2231
2601
|
|
|
2232
2602
|
def initialize(session: nil)
|
|
@@ -2234,8 +2604,8 @@ module Stripe
|
|
|
2234
2604
|
end
|
|
2235
2605
|
end
|
|
2236
2606
|
|
|
2237
|
-
class Shipping < Stripe::RequestParams
|
|
2238
|
-
class Address < Stripe::RequestParams
|
|
2607
|
+
class Shipping < ::Stripe::RequestParams
|
|
2608
|
+
class Address < ::Stripe::RequestParams
|
|
2239
2609
|
# City, district, suburb, town, or village.
|
|
2240
2610
|
attr_accessor :city
|
|
2241
2611
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
@@ -2246,7 +2616,7 @@ module Stripe
|
|
|
2246
2616
|
attr_accessor :line2
|
|
2247
2617
|
# ZIP or postal code.
|
|
2248
2618
|
attr_accessor :postal_code
|
|
2249
|
-
# State, county, province, or region.
|
|
2619
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2250
2620
|
attr_accessor :state
|
|
2251
2621
|
|
|
2252
2622
|
def initialize(
|
|
@@ -2284,36 +2654,42 @@ module Stripe
|
|
|
2284
2654
|
@tracking_number = tracking_number
|
|
2285
2655
|
end
|
|
2286
2656
|
end
|
|
2657
|
+
# Provides industry-specific information about the amount.
|
|
2658
|
+
attr_accessor :amount_details
|
|
2287
2659
|
# Controls when the funds will be captured from the customer's account.
|
|
2288
2660
|
attr_accessor :capture_method
|
|
2289
2661
|
# ID of the ConfirmationToken used to confirm this PaymentIntent.
|
|
2290
2662
|
#
|
|
2291
2663
|
# If the provided ConfirmationToken contains properties that are also being provided in this request, such as `payment_method`, then the values in this request will take precedence.
|
|
2292
2664
|
attr_accessor :confirmation_token
|
|
2293
|
-
# Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://stripe.com/
|
|
2665
|
+
# Set to `true` to fail the payment attempt if the PaymentIntent transitions into `requires_action`. This parameter is intended for simpler integrations that do not handle customer actions, like [saving cards without authentication](https://docs.stripe.com/payments/save-card-without-authentication).
|
|
2294
2666
|
attr_accessor :error_on_requires_action
|
|
2295
2667
|
# The list of payment method types to exclude from use with this payment.
|
|
2296
2668
|
attr_accessor :excluded_payment_method_types
|
|
2297
2669
|
# Specifies which fields in the response should be expanded.
|
|
2298
2670
|
attr_accessor :expand
|
|
2671
|
+
# Automations to be run during the PaymentIntent lifecycle
|
|
2672
|
+
attr_accessor :hooks
|
|
2299
2673
|
# ID of the mandate that's used for this payment.
|
|
2300
2674
|
attr_accessor :mandate
|
|
2301
2675
|
# Attribute for param field mandate_data
|
|
2302
2676
|
attr_accessor :mandate_data
|
|
2303
|
-
# Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/
|
|
2677
|
+
# Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://docs.stripe.com/payments/cards/charging-saved-cards).
|
|
2304
2678
|
attr_accessor :off_session
|
|
2305
|
-
#
|
|
2306
|
-
|
|
2679
|
+
# Provides industry-specific information about the charge.
|
|
2680
|
+
attr_accessor :payment_details
|
|
2681
|
+
# ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://docs.stripe.com/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent.
|
|
2682
|
+
# If the payment method is attached to a Customer, it must match the [customer](https://api.stripe.com#create_payment_intent-customer) that is set on this PaymentIntent.
|
|
2307
2683
|
attr_accessor :payment_method
|
|
2308
2684
|
# If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
|
|
2309
|
-
# in the [payment_method](https://stripe.com/
|
|
2685
|
+
# in the [payment_method](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method)
|
|
2310
2686
|
# property on the PaymentIntent.
|
|
2311
2687
|
attr_accessor :payment_method_data
|
|
2312
2688
|
# Payment method-specific configuration for this PaymentIntent.
|
|
2313
2689
|
attr_accessor :payment_method_options
|
|
2314
2690
|
# The list of payment method types (for example, a card) that this PaymentIntent can use. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). A list of valid payment method types can be found [here](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type).
|
|
2315
2691
|
attr_accessor :payment_method_types
|
|
2316
|
-
# Options to configure Radar. Learn more about [Radar Sessions](https://stripe.com/
|
|
2692
|
+
# Options to configure Radar. Learn more about [Radar Sessions](https://docs.stripe.com/radar/radar-session).
|
|
2317
2693
|
attr_accessor :radar_options
|
|
2318
2694
|
# Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
|
2319
2695
|
attr_accessor :receipt_email
|
|
@@ -2337,14 +2713,17 @@ module Stripe
|
|
|
2337
2713
|
attr_accessor :use_stripe_sdk
|
|
2338
2714
|
|
|
2339
2715
|
def initialize(
|
|
2716
|
+
amount_details: nil,
|
|
2340
2717
|
capture_method: nil,
|
|
2341
2718
|
confirmation_token: nil,
|
|
2342
2719
|
error_on_requires_action: nil,
|
|
2343
2720
|
excluded_payment_method_types: nil,
|
|
2344
2721
|
expand: nil,
|
|
2722
|
+
hooks: nil,
|
|
2345
2723
|
mandate: nil,
|
|
2346
2724
|
mandate_data: nil,
|
|
2347
2725
|
off_session: nil,
|
|
2726
|
+
payment_details: nil,
|
|
2348
2727
|
payment_method: nil,
|
|
2349
2728
|
payment_method_data: nil,
|
|
2350
2729
|
payment_method_options: nil,
|
|
@@ -2356,14 +2735,17 @@ module Stripe
|
|
|
2356
2735
|
shipping: nil,
|
|
2357
2736
|
use_stripe_sdk: nil
|
|
2358
2737
|
)
|
|
2738
|
+
@amount_details = amount_details
|
|
2359
2739
|
@capture_method = capture_method
|
|
2360
2740
|
@confirmation_token = confirmation_token
|
|
2361
2741
|
@error_on_requires_action = error_on_requires_action
|
|
2362
2742
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
2363
2743
|
@expand = expand
|
|
2744
|
+
@hooks = hooks
|
|
2364
2745
|
@mandate = mandate
|
|
2365
2746
|
@mandate_data = mandate_data
|
|
2366
2747
|
@off_session = off_session
|
|
2748
|
+
@payment_details = payment_details
|
|
2367
2749
|
@payment_method = payment_method
|
|
2368
2750
|
@payment_method_data = payment_method_data
|
|
2369
2751
|
@payment_method_options = payment_method_options
|