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,9 +2,234 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
class PaymentIntentUpdateParams < Stripe::RequestParams
|
|
6
|
-
class
|
|
7
|
-
class
|
|
5
|
+
class PaymentIntentUpdateParams < ::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
|
|
49
|
+
|
|
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 PaymentDetails < ::Stripe::RequestParams
|
|
216
|
+
# A unique value to identify the customer. This field is available only for card payments.
|
|
217
|
+
#
|
|
218
|
+
# This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
|
|
219
|
+
attr_accessor :customer_reference
|
|
220
|
+
# A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
|
|
221
|
+
#
|
|
222
|
+
# 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.
|
|
223
|
+
attr_accessor :order_reference
|
|
224
|
+
|
|
225
|
+
def initialize(customer_reference: nil, order_reference: nil)
|
|
226
|
+
@customer_reference = customer_reference
|
|
227
|
+
@order_reference = order_reference
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
class PaymentMethodData < ::Stripe::RequestParams
|
|
232
|
+
class AcssDebit < ::Stripe::RequestParams
|
|
8
233
|
# Customer's bank account number.
|
|
9
234
|
attr_accessor :account_number
|
|
10
235
|
# Institution number of the customer's bank.
|
|
@@ -19,13 +244,13 @@ module Stripe
|
|
|
19
244
|
end
|
|
20
245
|
end
|
|
21
246
|
|
|
22
|
-
class Affirm < Stripe::RequestParams; end
|
|
23
|
-
class AfterpayClearpay < Stripe::RequestParams; end
|
|
24
|
-
class Alipay < Stripe::RequestParams; end
|
|
25
|
-
class Alma < Stripe::RequestParams; end
|
|
26
|
-
class AmazonPay < Stripe::RequestParams; end
|
|
247
|
+
class Affirm < ::Stripe::RequestParams; end
|
|
248
|
+
class AfterpayClearpay < ::Stripe::RequestParams; end
|
|
249
|
+
class Alipay < ::Stripe::RequestParams; end
|
|
250
|
+
class Alma < ::Stripe::RequestParams; end
|
|
251
|
+
class AmazonPay < ::Stripe::RequestParams; end
|
|
27
252
|
|
|
28
|
-
class AuBecsDebit < Stripe::RequestParams
|
|
253
|
+
class AuBecsDebit < ::Stripe::RequestParams
|
|
29
254
|
# The account number for the bank account.
|
|
30
255
|
attr_accessor :account_number
|
|
31
256
|
# Bank-State-Branch number of the bank account.
|
|
@@ -37,7 +262,7 @@ module Stripe
|
|
|
37
262
|
end
|
|
38
263
|
end
|
|
39
264
|
|
|
40
|
-
class BacsDebit < Stripe::RequestParams
|
|
265
|
+
class BacsDebit < ::Stripe::RequestParams
|
|
41
266
|
# Account number of the bank account that the funds will be debited from.
|
|
42
267
|
attr_accessor :account_number
|
|
43
268
|
# Sort code of the bank account. (e.g., `10-20-30`)
|
|
@@ -49,11 +274,11 @@ module Stripe
|
|
|
49
274
|
end
|
|
50
275
|
end
|
|
51
276
|
|
|
52
|
-
class Bancontact < Stripe::RequestParams; end
|
|
53
|
-
class Billie < Stripe::RequestParams; end
|
|
277
|
+
class Bancontact < ::Stripe::RequestParams; end
|
|
278
|
+
class Billie < ::Stripe::RequestParams; end
|
|
54
279
|
|
|
55
|
-
class BillingDetails < Stripe::RequestParams
|
|
56
|
-
class Address < Stripe::RequestParams
|
|
280
|
+
class BillingDetails < ::Stripe::RequestParams
|
|
281
|
+
class Address < ::Stripe::RequestParams
|
|
57
282
|
# City, district, suburb, town, or village.
|
|
58
283
|
attr_accessor :city
|
|
59
284
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
@@ -64,7 +289,7 @@ module Stripe
|
|
|
64
289
|
attr_accessor :line2
|
|
65
290
|
# ZIP or postal code.
|
|
66
291
|
attr_accessor :postal_code
|
|
67
|
-
# State, county, province, or region.
|
|
292
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
68
293
|
attr_accessor :state
|
|
69
294
|
|
|
70
295
|
def initialize(
|
|
@@ -103,9 +328,9 @@ module Stripe
|
|
|
103
328
|
end
|
|
104
329
|
end
|
|
105
330
|
|
|
106
|
-
class Blik < Stripe::RequestParams; end
|
|
331
|
+
class Blik < ::Stripe::RequestParams; end
|
|
107
332
|
|
|
108
|
-
class Boleto < Stripe::RequestParams
|
|
333
|
+
class Boleto < ::Stripe::RequestParams
|
|
109
334
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
|
110
335
|
attr_accessor :tax_id
|
|
111
336
|
|
|
@@ -114,11 +339,11 @@ module Stripe
|
|
|
114
339
|
end
|
|
115
340
|
end
|
|
116
341
|
|
|
117
|
-
class Cashapp < Stripe::RequestParams; end
|
|
118
|
-
class Crypto < Stripe::RequestParams; end
|
|
119
|
-
class CustomerBalance < Stripe::RequestParams; end
|
|
342
|
+
class Cashapp < ::Stripe::RequestParams; end
|
|
343
|
+
class Crypto < ::Stripe::RequestParams; end
|
|
344
|
+
class CustomerBalance < ::Stripe::RequestParams; end
|
|
120
345
|
|
|
121
|
-
class Eps < Stripe::RequestParams
|
|
346
|
+
class Eps < ::Stripe::RequestParams
|
|
122
347
|
# The customer's bank.
|
|
123
348
|
attr_accessor :bank
|
|
124
349
|
|
|
@@ -127,7 +352,7 @@ module Stripe
|
|
|
127
352
|
end
|
|
128
353
|
end
|
|
129
354
|
|
|
130
|
-
class Fpx < Stripe::RequestParams
|
|
355
|
+
class Fpx < ::Stripe::RequestParams
|
|
131
356
|
# Account holder type for FPX transaction
|
|
132
357
|
attr_accessor :account_holder_type
|
|
133
358
|
# The customer's bank.
|
|
@@ -139,10 +364,10 @@ module Stripe
|
|
|
139
364
|
end
|
|
140
365
|
end
|
|
141
366
|
|
|
142
|
-
class Giropay < Stripe::RequestParams; end
|
|
143
|
-
class Grabpay < Stripe::RequestParams; end
|
|
367
|
+
class Giropay < ::Stripe::RequestParams; end
|
|
368
|
+
class Grabpay < ::Stripe::RequestParams; end
|
|
144
369
|
|
|
145
|
-
class Ideal < Stripe::RequestParams
|
|
370
|
+
class Ideal < ::Stripe::RequestParams
|
|
146
371
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
|
147
372
|
attr_accessor :bank
|
|
148
373
|
|
|
@@ -151,11 +376,11 @@ module Stripe
|
|
|
151
376
|
end
|
|
152
377
|
end
|
|
153
378
|
|
|
154
|
-
class InteracPresent < Stripe::RequestParams; end
|
|
155
|
-
class KakaoPay < Stripe::RequestParams; end
|
|
379
|
+
class InteracPresent < ::Stripe::RequestParams; end
|
|
380
|
+
class KakaoPay < ::Stripe::RequestParams; end
|
|
156
381
|
|
|
157
|
-
class Klarna < Stripe::RequestParams
|
|
158
|
-
class Dob < Stripe::RequestParams
|
|
382
|
+
class Klarna < ::Stripe::RequestParams
|
|
383
|
+
class Dob < ::Stripe::RequestParams
|
|
159
384
|
# The day of birth, between 1 and 31.
|
|
160
385
|
attr_accessor :day
|
|
161
386
|
# The month of birth, between 1 and 12.
|
|
@@ -177,14 +402,14 @@ module Stripe
|
|
|
177
402
|
end
|
|
178
403
|
end
|
|
179
404
|
|
|
180
|
-
class Konbini < Stripe::RequestParams; end
|
|
181
|
-
class KrCard < Stripe::RequestParams; end
|
|
182
|
-
class Link < Stripe::RequestParams; end
|
|
183
|
-
class MbWay < Stripe::RequestParams; end
|
|
184
|
-
class Mobilepay < Stripe::RequestParams; end
|
|
185
|
-
class Multibanco < Stripe::RequestParams; end
|
|
405
|
+
class Konbini < ::Stripe::RequestParams; end
|
|
406
|
+
class KrCard < ::Stripe::RequestParams; end
|
|
407
|
+
class Link < ::Stripe::RequestParams; end
|
|
408
|
+
class MbWay < ::Stripe::RequestParams; end
|
|
409
|
+
class Mobilepay < ::Stripe::RequestParams; end
|
|
410
|
+
class Multibanco < ::Stripe::RequestParams; end
|
|
186
411
|
|
|
187
|
-
class NaverPay < Stripe::RequestParams
|
|
412
|
+
class NaverPay < ::Stripe::RequestParams
|
|
188
413
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
|
189
414
|
attr_accessor :funding
|
|
190
415
|
|
|
@@ -193,7 +418,7 @@ module Stripe
|
|
|
193
418
|
end
|
|
194
419
|
end
|
|
195
420
|
|
|
196
|
-
class NzBankAccount < Stripe::RequestParams
|
|
421
|
+
class NzBankAccount < ::Stripe::RequestParams
|
|
197
422
|
# 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.
|
|
198
423
|
attr_accessor :account_holder_name
|
|
199
424
|
# The account number for the bank account.
|
|
@@ -224,9 +449,9 @@ module Stripe
|
|
|
224
449
|
end
|
|
225
450
|
end
|
|
226
451
|
|
|
227
|
-
class Oxxo < Stripe::RequestParams; end
|
|
452
|
+
class Oxxo < ::Stripe::RequestParams; end
|
|
228
453
|
|
|
229
|
-
class P24 < Stripe::RequestParams
|
|
454
|
+
class P24 < ::Stripe::RequestParams
|
|
230
455
|
# The customer's bank.
|
|
231
456
|
attr_accessor :bank
|
|
232
457
|
|
|
@@ -235,15 +460,31 @@ module Stripe
|
|
|
235
460
|
end
|
|
236
461
|
end
|
|
237
462
|
|
|
238
|
-
class PayByBank < Stripe::RequestParams; end
|
|
239
|
-
class Payco < Stripe::RequestParams; end
|
|
240
|
-
class Paynow < Stripe::RequestParams; end
|
|
241
|
-
class Paypal < Stripe::RequestParams; end
|
|
242
|
-
|
|
243
|
-
class
|
|
463
|
+
class PayByBank < ::Stripe::RequestParams; end
|
|
464
|
+
class Payco < ::Stripe::RequestParams; end
|
|
465
|
+
class Paynow < ::Stripe::RequestParams; end
|
|
466
|
+
class Paypal < ::Stripe::RequestParams; end
|
|
467
|
+
|
|
468
|
+
class Payto < ::Stripe::RequestParams
|
|
469
|
+
# The account number for the bank account.
|
|
470
|
+
attr_accessor :account_number
|
|
471
|
+
# Bank-State-Branch number of the bank account.
|
|
472
|
+
attr_accessor :bsb_number
|
|
473
|
+
# The PayID alias for the bank account.
|
|
474
|
+
attr_accessor :pay_id
|
|
475
|
+
|
|
476
|
+
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
|
477
|
+
@account_number = account_number
|
|
478
|
+
@bsb_number = bsb_number
|
|
479
|
+
@pay_id = pay_id
|
|
480
|
+
end
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
class Pix < ::Stripe::RequestParams; end
|
|
484
|
+
class Promptpay < ::Stripe::RequestParams; end
|
|
244
485
|
|
|
245
|
-
class RadarOptions < Stripe::RequestParams
|
|
246
|
-
# A [Radar Session](https://stripe.com/
|
|
486
|
+
class RadarOptions < ::Stripe::RequestParams
|
|
487
|
+
# 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.
|
|
247
488
|
attr_accessor :session
|
|
248
489
|
|
|
249
490
|
def initialize(session: nil)
|
|
@@ -251,11 +492,11 @@ module Stripe
|
|
|
251
492
|
end
|
|
252
493
|
end
|
|
253
494
|
|
|
254
|
-
class RevolutPay < Stripe::RequestParams; end
|
|
255
|
-
class SamsungPay < Stripe::RequestParams; end
|
|
256
|
-
class Satispay < Stripe::RequestParams; end
|
|
495
|
+
class RevolutPay < ::Stripe::RequestParams; end
|
|
496
|
+
class SamsungPay < ::Stripe::RequestParams; end
|
|
497
|
+
class Satispay < ::Stripe::RequestParams; end
|
|
257
498
|
|
|
258
|
-
class SepaDebit < Stripe::RequestParams
|
|
499
|
+
class SepaDebit < ::Stripe::RequestParams
|
|
259
500
|
# IBAN of the bank account.
|
|
260
501
|
attr_accessor :iban
|
|
261
502
|
|
|
@@ -264,7 +505,7 @@ module Stripe
|
|
|
264
505
|
end
|
|
265
506
|
end
|
|
266
507
|
|
|
267
|
-
class Sofort < Stripe::RequestParams
|
|
508
|
+
class Sofort < ::Stripe::RequestParams
|
|
268
509
|
# Two-letter ISO code representing the country the bank account is located in.
|
|
269
510
|
attr_accessor :country
|
|
270
511
|
|
|
@@ -273,10 +514,36 @@ module Stripe
|
|
|
273
514
|
end
|
|
274
515
|
end
|
|
275
516
|
|
|
276
|
-
class Swish < Stripe::RequestParams; end
|
|
277
|
-
class Twint < Stripe::RequestParams; end
|
|
517
|
+
class Swish < ::Stripe::RequestParams; end
|
|
518
|
+
class Twint < ::Stripe::RequestParams; end
|
|
519
|
+
|
|
520
|
+
class Upi < ::Stripe::RequestParams
|
|
521
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
522
|
+
# Amount to be charged for future payments.
|
|
523
|
+
attr_accessor :amount
|
|
524
|
+
# 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.
|
|
525
|
+
attr_accessor :amount_type
|
|
526
|
+
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
527
|
+
attr_accessor :description
|
|
528
|
+
# End date of the mandate or subscription.
|
|
529
|
+
attr_accessor :end_date
|
|
530
|
+
|
|
531
|
+
def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
|
|
532
|
+
@amount = amount
|
|
533
|
+
@amount_type = amount_type
|
|
534
|
+
@description = description
|
|
535
|
+
@end_date = end_date
|
|
536
|
+
end
|
|
537
|
+
end
|
|
538
|
+
# Configuration options for setting up an eMandate
|
|
539
|
+
attr_accessor :mandate_options
|
|
540
|
+
|
|
541
|
+
def initialize(mandate_options: nil)
|
|
542
|
+
@mandate_options = mandate_options
|
|
543
|
+
end
|
|
544
|
+
end
|
|
278
545
|
|
|
279
|
-
class UsBankAccount < Stripe::RequestParams
|
|
546
|
+
class UsBankAccount < ::Stripe::RequestParams
|
|
280
547
|
# Account holder type: individual or company.
|
|
281
548
|
attr_accessor :account_holder_type
|
|
282
549
|
# Account number of the bank account.
|
|
@@ -303,8 +570,8 @@ module Stripe
|
|
|
303
570
|
end
|
|
304
571
|
end
|
|
305
572
|
|
|
306
|
-
class WechatPay < Stripe::RequestParams; end
|
|
307
|
-
class Zip < Stripe::RequestParams; end
|
|
573
|
+
class WechatPay < ::Stripe::RequestParams; end
|
|
574
|
+
class Zip < ::Stripe::RequestParams; end
|
|
308
575
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
309
576
|
attr_accessor :acss_debit
|
|
310
577
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
@@ -363,7 +630,7 @@ module Stripe
|
|
|
363
630
|
attr_accessor :link
|
|
364
631
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
365
632
|
attr_accessor :mb_way
|
|
366
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
633
|
+
# 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`.
|
|
367
634
|
attr_accessor :metadata
|
|
368
635
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
369
636
|
attr_accessor :mobilepay
|
|
@@ -385,11 +652,13 @@ module Stripe
|
|
|
385
652
|
attr_accessor :paynow
|
|
386
653
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
|
387
654
|
attr_accessor :paypal
|
|
655
|
+
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
|
656
|
+
attr_accessor :payto
|
|
388
657
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
|
389
658
|
attr_accessor :pix
|
|
390
659
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
|
391
660
|
attr_accessor :promptpay
|
|
392
|
-
# Options to configure Radar. See [Radar Session](https://stripe.com/
|
|
661
|
+
# Options to configure Radar. See [Radar Session](https://docs.stripe.com/radar/radar-session) for more information.
|
|
393
662
|
attr_accessor :radar_options
|
|
394
663
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
|
395
664
|
attr_accessor :revolut_pay
|
|
@@ -407,6 +676,8 @@ module Stripe
|
|
|
407
676
|
attr_accessor :twint
|
|
408
677
|
# 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.
|
|
409
678
|
attr_accessor :type
|
|
679
|
+
# If this is a `upi` PaymentMethod, this hash contains details about the UPI payment method.
|
|
680
|
+
attr_accessor :upi
|
|
410
681
|
# If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.
|
|
411
682
|
attr_accessor :us_bank_account
|
|
412
683
|
# If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method.
|
|
@@ -455,6 +726,7 @@ module Stripe
|
|
|
455
726
|
payco: nil,
|
|
456
727
|
paynow: nil,
|
|
457
728
|
paypal: nil,
|
|
729
|
+
payto: nil,
|
|
458
730
|
pix: nil,
|
|
459
731
|
promptpay: nil,
|
|
460
732
|
radar_options: nil,
|
|
@@ -466,6 +738,7 @@ module Stripe
|
|
|
466
738
|
swish: nil,
|
|
467
739
|
twint: nil,
|
|
468
740
|
type: nil,
|
|
741
|
+
upi: nil,
|
|
469
742
|
us_bank_account: nil,
|
|
470
743
|
wechat_pay: nil,
|
|
471
744
|
zip: nil
|
|
@@ -510,6 +783,7 @@ module Stripe
|
|
|
510
783
|
@payco = payco
|
|
511
784
|
@paynow = paynow
|
|
512
785
|
@paypal = paypal
|
|
786
|
+
@payto = payto
|
|
513
787
|
@pix = pix
|
|
514
788
|
@promptpay = promptpay
|
|
515
789
|
@radar_options = radar_options
|
|
@@ -521,15 +795,16 @@ module Stripe
|
|
|
521
795
|
@swish = swish
|
|
522
796
|
@twint = twint
|
|
523
797
|
@type = type
|
|
798
|
+
@upi = upi
|
|
524
799
|
@us_bank_account = us_bank_account
|
|
525
800
|
@wechat_pay = wechat_pay
|
|
526
801
|
@zip = zip
|
|
527
802
|
end
|
|
528
803
|
end
|
|
529
804
|
|
|
530
|
-
class PaymentMethodOptions < Stripe::RequestParams
|
|
531
|
-
class AcssDebit < Stripe::RequestParams
|
|
532
|
-
class MandateOptions < Stripe::RequestParams
|
|
805
|
+
class PaymentMethodOptions < ::Stripe::RequestParams
|
|
806
|
+
class AcssDebit < ::Stripe::RequestParams
|
|
807
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
533
808
|
# A URL for custom mandate text to render during confirmation step.
|
|
534
809
|
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
|
|
535
810
|
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
|
|
@@ -567,7 +842,7 @@ module Stripe
|
|
|
567
842
|
attr_accessor :setup_future_usage
|
|
568
843
|
# 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.
|
|
569
844
|
attr_accessor :target_date
|
|
570
|
-
# Bank account verification method.
|
|
845
|
+
# Bank account verification method. The default value is `automatic`.
|
|
571
846
|
attr_accessor :verification_method
|
|
572
847
|
|
|
573
848
|
def initialize(
|
|
@@ -583,7 +858,7 @@ module Stripe
|
|
|
583
858
|
end
|
|
584
859
|
end
|
|
585
860
|
|
|
586
|
-
class Affirm < Stripe::RequestParams
|
|
861
|
+
class Affirm < ::Stripe::RequestParams
|
|
587
862
|
# Controls when the funds are captured from the customer's account.
|
|
588
863
|
#
|
|
589
864
|
# 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.
|
|
@@ -610,7 +885,7 @@ module Stripe
|
|
|
610
885
|
end
|
|
611
886
|
end
|
|
612
887
|
|
|
613
|
-
class AfterpayClearpay < Stripe::RequestParams
|
|
888
|
+
class AfterpayClearpay < ::Stripe::RequestParams
|
|
614
889
|
# Controls when the funds are captured from the customer's account.
|
|
615
890
|
#
|
|
616
891
|
# 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.
|
|
@@ -638,7 +913,7 @@ module Stripe
|
|
|
638
913
|
end
|
|
639
914
|
end
|
|
640
915
|
|
|
641
|
-
class Alipay < Stripe::RequestParams
|
|
916
|
+
class Alipay < ::Stripe::RequestParams
|
|
642
917
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
643
918
|
#
|
|
644
919
|
# 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.
|
|
@@ -655,7 +930,7 @@ module Stripe
|
|
|
655
930
|
end
|
|
656
931
|
end
|
|
657
932
|
|
|
658
|
-
class Alma < Stripe::RequestParams
|
|
933
|
+
class Alma < ::Stripe::RequestParams
|
|
659
934
|
# Controls when the funds are captured from the customer's account.
|
|
660
935
|
#
|
|
661
936
|
# 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.
|
|
@@ -668,7 +943,7 @@ module Stripe
|
|
|
668
943
|
end
|
|
669
944
|
end
|
|
670
945
|
|
|
671
|
-
class AmazonPay < Stripe::RequestParams
|
|
946
|
+
class AmazonPay < ::Stripe::RequestParams
|
|
672
947
|
# Controls when the funds are captured from the customer's account.
|
|
673
948
|
#
|
|
674
949
|
# 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.
|
|
@@ -690,7 +965,7 @@ module Stripe
|
|
|
690
965
|
end
|
|
691
966
|
end
|
|
692
967
|
|
|
693
|
-
class AuBecsDebit < Stripe::RequestParams
|
|
968
|
+
class AuBecsDebit < ::Stripe::RequestParams
|
|
694
969
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
695
970
|
#
|
|
696
971
|
# 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.
|
|
@@ -710,8 +985,8 @@ module Stripe
|
|
|
710
985
|
end
|
|
711
986
|
end
|
|
712
987
|
|
|
713
|
-
class BacsDebit < Stripe::RequestParams
|
|
714
|
-
class MandateOptions < Stripe::RequestParams
|
|
988
|
+
class BacsDebit < ::Stripe::RequestParams
|
|
989
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
715
990
|
# 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'.
|
|
716
991
|
attr_accessor :reference_prefix
|
|
717
992
|
|
|
@@ -741,7 +1016,7 @@ module Stripe
|
|
|
741
1016
|
end
|
|
742
1017
|
end
|
|
743
1018
|
|
|
744
|
-
class Bancontact < Stripe::RequestParams
|
|
1019
|
+
class Bancontact < ::Stripe::RequestParams
|
|
745
1020
|
# Preferred language of the Bancontact authorization page that the customer is redirected to.
|
|
746
1021
|
attr_accessor :preferred_language
|
|
747
1022
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -761,7 +1036,7 @@ module Stripe
|
|
|
761
1036
|
end
|
|
762
1037
|
end
|
|
763
1038
|
|
|
764
|
-
class Billie < Stripe::RequestParams
|
|
1039
|
+
class Billie < ::Stripe::RequestParams
|
|
765
1040
|
# Controls when the funds are captured from the customer's account.
|
|
766
1041
|
#
|
|
767
1042
|
# 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.
|
|
@@ -774,7 +1049,7 @@ module Stripe
|
|
|
774
1049
|
end
|
|
775
1050
|
end
|
|
776
1051
|
|
|
777
|
-
class Blik < Stripe::RequestParams
|
|
1052
|
+
class Blik < ::Stripe::RequestParams
|
|
778
1053
|
# The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation.
|
|
779
1054
|
attr_accessor :code
|
|
780
1055
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -794,7 +1069,7 @@ module Stripe
|
|
|
794
1069
|
end
|
|
795
1070
|
end
|
|
796
1071
|
|
|
797
|
-
class Boleto < Stripe::RequestParams
|
|
1072
|
+
class Boleto < ::Stripe::RequestParams
|
|
798
1073
|
# 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.
|
|
799
1074
|
attr_accessor :expires_after_days
|
|
800
1075
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -814,9 +1089,9 @@ module Stripe
|
|
|
814
1089
|
end
|
|
815
1090
|
end
|
|
816
1091
|
|
|
817
|
-
class Card < Stripe::RequestParams
|
|
818
|
-
class Installments < Stripe::RequestParams
|
|
819
|
-
class Plan < Stripe::RequestParams
|
|
1092
|
+
class Card < ::Stripe::RequestParams
|
|
1093
|
+
class Installments < ::Stripe::RequestParams
|
|
1094
|
+
class Plan < ::Stripe::RequestParams
|
|
820
1095
|
# For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
|
|
821
1096
|
attr_accessor :count
|
|
822
1097
|
# For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
|
|
@@ -845,8 +1120,8 @@ module Stripe
|
|
|
845
1120
|
end
|
|
846
1121
|
end
|
|
847
1122
|
|
|
848
|
-
class MandateOptions < Stripe::RequestParams
|
|
849
|
-
# Amount to be charged for future payments.
|
|
1123
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
1124
|
+
# Amount to be charged for future payments, specified in the presentment currency.
|
|
850
1125
|
attr_accessor :amount
|
|
851
1126
|
# 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.
|
|
852
1127
|
attr_accessor :amount_type
|
|
@@ -888,9 +1163,9 @@ module Stripe
|
|
|
888
1163
|
end
|
|
889
1164
|
end
|
|
890
1165
|
|
|
891
|
-
class ThreeDSecure < Stripe::RequestParams
|
|
892
|
-
class NetworkOptions < Stripe::RequestParams
|
|
893
|
-
class CartesBancaires < Stripe::RequestParams
|
|
1166
|
+
class ThreeDSecure < ::Stripe::RequestParams
|
|
1167
|
+
class NetworkOptions < ::Stripe::RequestParams
|
|
1168
|
+
class CartesBancaires < ::Stripe::RequestParams
|
|
894
1169
|
# The cryptogram calculation algorithm used by the card Issuer's ACS
|
|
895
1170
|
# to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`.
|
|
896
1171
|
# messageExtension: CB-AVALGO
|
|
@@ -972,7 +1247,7 @@ module Stripe
|
|
|
972
1247
|
attr_accessor :cvc_token
|
|
973
1248
|
# Installment configuration for payments attempted on this PaymentIntent.
|
|
974
1249
|
#
|
|
975
|
-
# For more information, see the [installments integration guide](https://stripe.com/
|
|
1250
|
+
# For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
|
|
976
1251
|
attr_accessor :installments
|
|
977
1252
|
# Configuration options for setting up an eMandate for cards issued in India.
|
|
978
1253
|
attr_accessor :mandate_options
|
|
@@ -982,15 +1257,15 @@ module Stripe
|
|
|
982
1257
|
attr_accessor :moto
|
|
983
1258
|
# 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.
|
|
984
1259
|
attr_accessor :network
|
|
985
|
-
# Request ability to [capture beyond the standard authorization validity window](https://stripe.com/
|
|
1260
|
+
# Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this PaymentIntent.
|
|
986
1261
|
attr_accessor :request_extended_authorization
|
|
987
|
-
# Request ability to [increment the authorization](https://stripe.com/
|
|
1262
|
+
# Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this PaymentIntent.
|
|
988
1263
|
attr_accessor :request_incremental_authorization
|
|
989
|
-
# Request ability to make [multiple captures](https://stripe.com/
|
|
1264
|
+
# Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this PaymentIntent.
|
|
990
1265
|
attr_accessor :request_multicapture
|
|
991
|
-
# Request ability to [overcapture](https://stripe.com/
|
|
1266
|
+
# Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this PaymentIntent.
|
|
992
1267
|
attr_accessor :request_overcapture
|
|
993
|
-
# 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/
|
|
1268
|
+
# 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.
|
|
994
1269
|
attr_accessor :request_three_d_secure
|
|
995
1270
|
# 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).
|
|
996
1271
|
attr_accessor :require_cvc_recollection
|
|
@@ -1049,8 +1324,8 @@ module Stripe
|
|
|
1049
1324
|
end
|
|
1050
1325
|
end
|
|
1051
1326
|
|
|
1052
|
-
class CardPresent < Stripe::RequestParams
|
|
1053
|
-
class Routing < Stripe::RequestParams
|
|
1327
|
+
class CardPresent < ::Stripe::RequestParams
|
|
1328
|
+
class Routing < ::Stripe::RequestParams
|
|
1054
1329
|
# Routing requested priority
|
|
1055
1330
|
attr_accessor :requested_priority
|
|
1056
1331
|
|
|
@@ -1058,25 +1333,33 @@ module Stripe
|
|
|
1058
1333
|
@requested_priority = requested_priority
|
|
1059
1334
|
end
|
|
1060
1335
|
end
|
|
1061
|
-
#
|
|
1336
|
+
# Controls when the funds are captured from the customer's account.
|
|
1337
|
+
#
|
|
1338
|
+
# 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.
|
|
1339
|
+
#
|
|
1340
|
+
# 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.
|
|
1341
|
+
attr_accessor :capture_method
|
|
1342
|
+
# Request ability to capture this payment beyond the standard [authorization validity window](https://docs.stripe.com/terminal/features/extended-authorizations#authorization-validity)
|
|
1062
1343
|
attr_accessor :request_extended_authorization
|
|
1063
|
-
# Request ability to [increment](https://stripe.com/
|
|
1344
|
+
# 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.
|
|
1064
1345
|
attr_accessor :request_incremental_authorization_support
|
|
1065
1346
|
# Network routing priority on co-branded EMV cards supporting domestic debit and international card schemes.
|
|
1066
1347
|
attr_accessor :routing
|
|
1067
1348
|
|
|
1068
1349
|
def initialize(
|
|
1350
|
+
capture_method: nil,
|
|
1069
1351
|
request_extended_authorization: nil,
|
|
1070
1352
|
request_incremental_authorization_support: nil,
|
|
1071
1353
|
routing: nil
|
|
1072
1354
|
)
|
|
1355
|
+
@capture_method = capture_method
|
|
1073
1356
|
@request_extended_authorization = request_extended_authorization
|
|
1074
1357
|
@request_incremental_authorization_support = request_incremental_authorization_support
|
|
1075
1358
|
@routing = routing
|
|
1076
1359
|
end
|
|
1077
1360
|
end
|
|
1078
1361
|
|
|
1079
|
-
class Cashapp < Stripe::RequestParams
|
|
1362
|
+
class Cashapp < ::Stripe::RequestParams
|
|
1080
1363
|
# Controls when the funds are captured from the customer's account.
|
|
1081
1364
|
#
|
|
1082
1365
|
# 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.
|
|
@@ -1100,7 +1383,7 @@ module Stripe
|
|
|
1100
1383
|
end
|
|
1101
1384
|
end
|
|
1102
1385
|
|
|
1103
|
-
class Crypto < Stripe::RequestParams
|
|
1386
|
+
class Crypto < ::Stripe::RequestParams
|
|
1104
1387
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1105
1388
|
#
|
|
1106
1389
|
# 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.
|
|
@@ -1117,10 +1400,10 @@ module Stripe
|
|
|
1117
1400
|
end
|
|
1118
1401
|
end
|
|
1119
1402
|
|
|
1120
|
-
class CustomerBalance < Stripe::RequestParams
|
|
1121
|
-
class BankTransfer < Stripe::RequestParams
|
|
1122
|
-
class EuBankTransfer < Stripe::RequestParams
|
|
1123
|
-
# The desired country code of the bank account information. Permitted values include: `
|
|
1403
|
+
class CustomerBalance < ::Stripe::RequestParams
|
|
1404
|
+
class BankTransfer < ::Stripe::RequestParams
|
|
1405
|
+
class EuBankTransfer < ::Stripe::RequestParams
|
|
1406
|
+
# The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
|
|
1124
1407
|
attr_accessor :country
|
|
1125
1408
|
|
|
1126
1409
|
def initialize(country: nil)
|
|
@@ -1164,7 +1447,7 @@ module Stripe
|
|
|
1164
1447
|
end
|
|
1165
1448
|
end
|
|
1166
1449
|
|
|
1167
|
-
class Eps < Stripe::RequestParams
|
|
1450
|
+
class Eps < ::Stripe::RequestParams
|
|
1168
1451
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1169
1452
|
#
|
|
1170
1453
|
# 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.
|
|
@@ -1181,7 +1464,7 @@ module Stripe
|
|
|
1181
1464
|
end
|
|
1182
1465
|
end
|
|
1183
1466
|
|
|
1184
|
-
class Fpx < Stripe::RequestParams
|
|
1467
|
+
class Fpx < ::Stripe::RequestParams
|
|
1185
1468
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1186
1469
|
#
|
|
1187
1470
|
# 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.
|
|
@@ -1198,7 +1481,7 @@ module Stripe
|
|
|
1198
1481
|
end
|
|
1199
1482
|
end
|
|
1200
1483
|
|
|
1201
|
-
class Giropay < Stripe::RequestParams
|
|
1484
|
+
class Giropay < ::Stripe::RequestParams
|
|
1202
1485
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1203
1486
|
#
|
|
1204
1487
|
# 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.
|
|
@@ -1215,7 +1498,7 @@ module Stripe
|
|
|
1215
1498
|
end
|
|
1216
1499
|
end
|
|
1217
1500
|
|
|
1218
|
-
class Grabpay < Stripe::RequestParams
|
|
1501
|
+
class Grabpay < ::Stripe::RequestParams
|
|
1219
1502
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1220
1503
|
#
|
|
1221
1504
|
# 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.
|
|
@@ -1232,7 +1515,7 @@ module Stripe
|
|
|
1232
1515
|
end
|
|
1233
1516
|
end
|
|
1234
1517
|
|
|
1235
|
-
class Ideal < Stripe::RequestParams
|
|
1518
|
+
class Ideal < ::Stripe::RequestParams
|
|
1236
1519
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1237
1520
|
#
|
|
1238
1521
|
# 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.
|
|
@@ -1249,9 +1532,9 @@ module Stripe
|
|
|
1249
1532
|
end
|
|
1250
1533
|
end
|
|
1251
1534
|
|
|
1252
|
-
class InteracPresent < Stripe::RequestParams; end
|
|
1535
|
+
class InteracPresent < ::Stripe::RequestParams; end
|
|
1253
1536
|
|
|
1254
|
-
class KakaoPay < Stripe::RequestParams
|
|
1537
|
+
class KakaoPay < ::Stripe::RequestParams
|
|
1255
1538
|
# Controls when the funds are captured from the customer's account.
|
|
1256
1539
|
#
|
|
1257
1540
|
# 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.
|
|
@@ -1273,8 +1556,8 @@ module Stripe
|
|
|
1273
1556
|
end
|
|
1274
1557
|
end
|
|
1275
1558
|
|
|
1276
|
-
class Klarna < Stripe::RequestParams
|
|
1277
|
-
class OnDemand < Stripe::RequestParams
|
|
1559
|
+
class Klarna < ::Stripe::RequestParams
|
|
1560
|
+
class OnDemand < ::Stripe::RequestParams
|
|
1278
1561
|
# Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc.
|
|
1279
1562
|
attr_accessor :average_amount
|
|
1280
1563
|
# 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.
|
|
@@ -1301,8 +1584,8 @@ module Stripe
|
|
|
1301
1584
|
end
|
|
1302
1585
|
end
|
|
1303
1586
|
|
|
1304
|
-
class Subscription < Stripe::RequestParams
|
|
1305
|
-
class NextBilling < Stripe::RequestParams
|
|
1587
|
+
class Subscription < ::Stripe::RequestParams
|
|
1588
|
+
class NextBilling < ::Stripe::RequestParams
|
|
1306
1589
|
# The amount of the next charge for the subscription.
|
|
1307
1590
|
attr_accessor :amount
|
|
1308
1591
|
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
|
@@ -1376,7 +1659,7 @@ module Stripe
|
|
|
1376
1659
|
end
|
|
1377
1660
|
end
|
|
1378
1661
|
|
|
1379
|
-
class Konbini < Stripe::RequestParams
|
|
1662
|
+
class Konbini < ::Stripe::RequestParams
|
|
1380
1663
|
# 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.
|
|
1381
1664
|
attr_accessor :confirmation_number
|
|
1382
1665
|
# 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.
|
|
@@ -1411,7 +1694,7 @@ module Stripe
|
|
|
1411
1694
|
end
|
|
1412
1695
|
end
|
|
1413
1696
|
|
|
1414
|
-
class KrCard < Stripe::RequestParams
|
|
1697
|
+
class KrCard < ::Stripe::RequestParams
|
|
1415
1698
|
# Controls when the funds are captured from the customer's account.
|
|
1416
1699
|
#
|
|
1417
1700
|
# 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.
|
|
@@ -1433,7 +1716,7 @@ module Stripe
|
|
|
1433
1716
|
end
|
|
1434
1717
|
end
|
|
1435
1718
|
|
|
1436
|
-
class Link < Stripe::RequestParams
|
|
1719
|
+
class Link < ::Stripe::RequestParams
|
|
1437
1720
|
# Controls when the funds are captured from the customer's account.
|
|
1438
1721
|
#
|
|
1439
1722
|
# 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.
|
|
@@ -1460,7 +1743,7 @@ module Stripe
|
|
|
1460
1743
|
end
|
|
1461
1744
|
end
|
|
1462
1745
|
|
|
1463
|
-
class MbWay < Stripe::RequestParams
|
|
1746
|
+
class MbWay < ::Stripe::RequestParams
|
|
1464
1747
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1465
1748
|
#
|
|
1466
1749
|
# 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.
|
|
@@ -1477,7 +1760,7 @@ module Stripe
|
|
|
1477
1760
|
end
|
|
1478
1761
|
end
|
|
1479
1762
|
|
|
1480
|
-
class Mobilepay < Stripe::RequestParams
|
|
1763
|
+
class Mobilepay < ::Stripe::RequestParams
|
|
1481
1764
|
# Controls when the funds are captured from the customer's account.
|
|
1482
1765
|
#
|
|
1483
1766
|
# 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.
|
|
@@ -1501,7 +1784,7 @@ module Stripe
|
|
|
1501
1784
|
end
|
|
1502
1785
|
end
|
|
1503
1786
|
|
|
1504
|
-
class Multibanco < Stripe::RequestParams
|
|
1787
|
+
class Multibanco < ::Stripe::RequestParams
|
|
1505
1788
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1506
1789
|
#
|
|
1507
1790
|
# 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.
|
|
@@ -1518,7 +1801,7 @@ module Stripe
|
|
|
1518
1801
|
end
|
|
1519
1802
|
end
|
|
1520
1803
|
|
|
1521
|
-
class NaverPay < Stripe::RequestParams
|
|
1804
|
+
class NaverPay < ::Stripe::RequestParams
|
|
1522
1805
|
# Controls when the funds are captured from the customer's account.
|
|
1523
1806
|
#
|
|
1524
1807
|
# 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 NzBankAccount < Stripe::RequestParams
|
|
1826
|
+
class NzBankAccount < ::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.
|
|
@@ -1560,7 +1843,7 @@ module Stripe
|
|
|
1560
1843
|
end
|
|
1561
1844
|
end
|
|
1562
1845
|
|
|
1563
|
-
class Oxxo < Stripe::RequestParams
|
|
1846
|
+
class Oxxo < ::Stripe::RequestParams
|
|
1564
1847
|
# 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.
|
|
1565
1848
|
attr_accessor :expires_after_days
|
|
1566
1849
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1580,7 +1863,7 @@ module Stripe
|
|
|
1580
1863
|
end
|
|
1581
1864
|
end
|
|
1582
1865
|
|
|
1583
|
-
class P24 < Stripe::RequestParams
|
|
1866
|
+
class P24 < ::Stripe::RequestParams
|
|
1584
1867
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1585
1868
|
#
|
|
1586
1869
|
# 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.
|
|
@@ -1600,9 +1883,9 @@ module Stripe
|
|
|
1600
1883
|
end
|
|
1601
1884
|
end
|
|
1602
1885
|
|
|
1603
|
-
class PayByBank < Stripe::RequestParams; end
|
|
1886
|
+
class PayByBank < ::Stripe::RequestParams; end
|
|
1604
1887
|
|
|
1605
|
-
class Payco < Stripe::RequestParams
|
|
1888
|
+
class Payco < ::Stripe::RequestParams
|
|
1606
1889
|
# Controls when the funds are captured from the customer's account.
|
|
1607
1890
|
#
|
|
1608
1891
|
# 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.
|
|
@@ -1615,7 +1898,7 @@ module Stripe
|
|
|
1615
1898
|
end
|
|
1616
1899
|
end
|
|
1617
1900
|
|
|
1618
|
-
class Paynow < Stripe::RequestParams
|
|
1901
|
+
class Paynow < ::Stripe::RequestParams
|
|
1619
1902
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1620
1903
|
#
|
|
1621
1904
|
# 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.
|
|
@@ -1632,10 +1915,10 @@ module Stripe
|
|
|
1632
1915
|
end
|
|
1633
1916
|
end
|
|
1634
1917
|
|
|
1635
|
-
class Paypal < Stripe::RequestParams
|
|
1918
|
+
class Paypal < ::Stripe::RequestParams
|
|
1636
1919
|
# Controls when the funds will be captured from the customer's account.
|
|
1637
1920
|
attr_accessor :capture_method
|
|
1638
|
-
# [Preferred locale](https://stripe.com/
|
|
1921
|
+
# [Preferred locale](https://docs.stripe.com/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
|
1639
1922
|
attr_accessor :preferred_locale
|
|
1640
1923
|
# 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.
|
|
1641
1924
|
attr_accessor :reference
|
|
@@ -1667,7 +1950,57 @@ module Stripe
|
|
|
1667
1950
|
end
|
|
1668
1951
|
end
|
|
1669
1952
|
|
|
1670
|
-
class
|
|
1953
|
+
class Payto < ::Stripe::RequestParams
|
|
1954
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
1955
|
+
# Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
1956
|
+
attr_accessor :amount
|
|
1957
|
+
# 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`.
|
|
1958
|
+
attr_accessor :amount_type
|
|
1959
|
+
# Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
1960
|
+
attr_accessor :end_date
|
|
1961
|
+
# The periodicity at which payments will be collected. Defaults to `adhoc`.
|
|
1962
|
+
attr_accessor :payment_schedule
|
|
1963
|
+
# 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.
|
|
1964
|
+
attr_accessor :payments_per_period
|
|
1965
|
+
# The purpose for which payments are made. Has a default value based on your merchant category code.
|
|
1966
|
+
attr_accessor :purpose
|
|
1967
|
+
|
|
1968
|
+
def initialize(
|
|
1969
|
+
amount: nil,
|
|
1970
|
+
amount_type: nil,
|
|
1971
|
+
end_date: nil,
|
|
1972
|
+
payment_schedule: nil,
|
|
1973
|
+
payments_per_period: nil,
|
|
1974
|
+
purpose: nil
|
|
1975
|
+
)
|
|
1976
|
+
@amount = amount
|
|
1977
|
+
@amount_type = amount_type
|
|
1978
|
+
@end_date = end_date
|
|
1979
|
+
@payment_schedule = payment_schedule
|
|
1980
|
+
@payments_per_period = payments_per_period
|
|
1981
|
+
@purpose = purpose
|
|
1982
|
+
end
|
|
1983
|
+
end
|
|
1984
|
+
# 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`
|
|
1985
|
+
attr_accessor :mandate_options
|
|
1986
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1987
|
+
#
|
|
1988
|
+
# 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.
|
|
1989
|
+
#
|
|
1990
|
+
# 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.
|
|
1991
|
+
#
|
|
1992
|
+
# 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).
|
|
1993
|
+
#
|
|
1994
|
+
# 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`.
|
|
1995
|
+
attr_accessor :setup_future_usage
|
|
1996
|
+
|
|
1997
|
+
def initialize(mandate_options: nil, setup_future_usage: nil)
|
|
1998
|
+
@mandate_options = mandate_options
|
|
1999
|
+
@setup_future_usage = setup_future_usage
|
|
2000
|
+
end
|
|
2001
|
+
end
|
|
2002
|
+
|
|
2003
|
+
class Pix < ::Stripe::RequestParams
|
|
1671
2004
|
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
|
1672
2005
|
attr_accessor :amount_includes_iof
|
|
1673
2006
|
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
|
@@ -1698,7 +2031,7 @@ module Stripe
|
|
|
1698
2031
|
end
|
|
1699
2032
|
end
|
|
1700
2033
|
|
|
1701
|
-
class Promptpay < Stripe::RequestParams
|
|
2034
|
+
class Promptpay < ::Stripe::RequestParams
|
|
1702
2035
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1703
2036
|
#
|
|
1704
2037
|
# 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.
|
|
@@ -1715,7 +2048,7 @@ module Stripe
|
|
|
1715
2048
|
end
|
|
1716
2049
|
end
|
|
1717
2050
|
|
|
1718
|
-
class RevolutPay < Stripe::RequestParams
|
|
2051
|
+
class RevolutPay < ::Stripe::RequestParams
|
|
1719
2052
|
# Controls when the funds are captured from the customer's account.
|
|
1720
2053
|
#
|
|
1721
2054
|
# 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.
|
|
@@ -1737,7 +2070,7 @@ module Stripe
|
|
|
1737
2070
|
end
|
|
1738
2071
|
end
|
|
1739
2072
|
|
|
1740
|
-
class SamsungPay < Stripe::RequestParams
|
|
2073
|
+
class SamsungPay < ::Stripe::RequestParams
|
|
1741
2074
|
# Controls when the funds are captured from the customer's account.
|
|
1742
2075
|
#
|
|
1743
2076
|
# 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.
|
|
@@ -1750,7 +2083,7 @@ module Stripe
|
|
|
1750
2083
|
end
|
|
1751
2084
|
end
|
|
1752
2085
|
|
|
1753
|
-
class Satispay < Stripe::RequestParams
|
|
2086
|
+
class Satispay < ::Stripe::RequestParams
|
|
1754
2087
|
# Controls when the funds are captured from the customer's account.
|
|
1755
2088
|
#
|
|
1756
2089
|
# 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.
|
|
@@ -1763,8 +2096,8 @@ module Stripe
|
|
|
1763
2096
|
end
|
|
1764
2097
|
end
|
|
1765
2098
|
|
|
1766
|
-
class SepaDebit < Stripe::RequestParams
|
|
1767
|
-
class MandateOptions < Stripe::RequestParams
|
|
2099
|
+
class SepaDebit < ::Stripe::RequestParams
|
|
2100
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
1768
2101
|
# 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'.
|
|
1769
2102
|
attr_accessor :reference_prefix
|
|
1770
2103
|
|
|
@@ -1794,7 +2127,7 @@ module Stripe
|
|
|
1794
2127
|
end
|
|
1795
2128
|
end
|
|
1796
2129
|
|
|
1797
|
-
class Sofort < Stripe::RequestParams
|
|
2130
|
+
class Sofort < ::Stripe::RequestParams
|
|
1798
2131
|
# Language shown to the payer on redirect.
|
|
1799
2132
|
attr_accessor :preferred_language
|
|
1800
2133
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1814,7 +2147,7 @@ module Stripe
|
|
|
1814
2147
|
end
|
|
1815
2148
|
end
|
|
1816
2149
|
|
|
1817
|
-
class Swish < Stripe::RequestParams
|
|
2150
|
+
class Swish < ::Stripe::RequestParams
|
|
1818
2151
|
# A reference for this payment to be displayed in the Swish app.
|
|
1819
2152
|
attr_accessor :reference
|
|
1820
2153
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -1834,7 +2167,7 @@ module Stripe
|
|
|
1834
2167
|
end
|
|
1835
2168
|
end
|
|
1836
2169
|
|
|
1837
|
-
class Twint < Stripe::RequestParams
|
|
2170
|
+
class Twint < ::Stripe::RequestParams
|
|
1838
2171
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1839
2172
|
#
|
|
1840
2173
|
# 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.
|
|
@@ -1851,9 +2184,38 @@ module Stripe
|
|
|
1851
2184
|
end
|
|
1852
2185
|
end
|
|
1853
2186
|
|
|
1854
|
-
class
|
|
1855
|
-
class
|
|
1856
|
-
|
|
2187
|
+
class Upi < ::Stripe::RequestParams
|
|
2188
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
2189
|
+
# Amount to be charged for future payments.
|
|
2190
|
+
attr_accessor :amount
|
|
2191
|
+
# 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.
|
|
2192
|
+
attr_accessor :amount_type
|
|
2193
|
+
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
2194
|
+
attr_accessor :description
|
|
2195
|
+
# End date of the mandate or subscription.
|
|
2196
|
+
attr_accessor :end_date
|
|
2197
|
+
|
|
2198
|
+
def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
|
|
2199
|
+
@amount = amount
|
|
2200
|
+
@amount_type = amount_type
|
|
2201
|
+
@description = description
|
|
2202
|
+
@end_date = end_date
|
|
2203
|
+
end
|
|
2204
|
+
end
|
|
2205
|
+
# Configuration options for setting up an eMandate
|
|
2206
|
+
attr_accessor :mandate_options
|
|
2207
|
+
# Attribute for param field setup_future_usage
|
|
2208
|
+
attr_accessor :setup_future_usage
|
|
2209
|
+
|
|
2210
|
+
def initialize(mandate_options: nil, setup_future_usage: nil)
|
|
2211
|
+
@mandate_options = mandate_options
|
|
2212
|
+
@setup_future_usage = setup_future_usage
|
|
2213
|
+
end
|
|
2214
|
+
end
|
|
2215
|
+
|
|
2216
|
+
class UsBankAccount < ::Stripe::RequestParams
|
|
2217
|
+
class FinancialConnections < ::Stripe::RequestParams
|
|
2218
|
+
class Filters < ::Stripe::RequestParams
|
|
1857
2219
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1858
2220
|
attr_accessor :account_subcategories
|
|
1859
2221
|
|
|
@@ -1878,7 +2240,7 @@ module Stripe
|
|
|
1878
2240
|
end
|
|
1879
2241
|
end
|
|
1880
2242
|
|
|
1881
|
-
class MandateOptions < Stripe::RequestParams
|
|
2243
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
1882
2244
|
# The method used to collect offline mandate customer acceptance.
|
|
1883
2245
|
attr_accessor :collection_method
|
|
1884
2246
|
|
|
@@ -1887,7 +2249,7 @@ module Stripe
|
|
|
1887
2249
|
end
|
|
1888
2250
|
end
|
|
1889
2251
|
|
|
1890
|
-
class Networks < Stripe::RequestParams
|
|
2252
|
+
class Networks < ::Stripe::RequestParams
|
|
1891
2253
|
# Triggers validations to run across the selected networks
|
|
1892
2254
|
attr_accessor :requested
|
|
1893
2255
|
|
|
@@ -1901,8 +2263,6 @@ module Stripe
|
|
|
1901
2263
|
attr_accessor :mandate_options
|
|
1902
2264
|
# Additional fields for network related functions
|
|
1903
2265
|
attr_accessor :networks
|
|
1904
|
-
# Preferred transaction settlement speed
|
|
1905
|
-
attr_accessor :preferred_settlement_speed
|
|
1906
2266
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1907
2267
|
#
|
|
1908
2268
|
# 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.
|
|
@@ -1915,29 +2275,31 @@ module Stripe
|
|
|
1915
2275
|
attr_accessor :setup_future_usage
|
|
1916
2276
|
# 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.
|
|
1917
2277
|
attr_accessor :target_date
|
|
1918
|
-
#
|
|
2278
|
+
# The purpose of the transaction.
|
|
2279
|
+
attr_accessor :transaction_purpose
|
|
2280
|
+
# Bank account verification method. The default value is `automatic`.
|
|
1919
2281
|
attr_accessor :verification_method
|
|
1920
2282
|
|
|
1921
2283
|
def initialize(
|
|
1922
2284
|
financial_connections: nil,
|
|
1923
2285
|
mandate_options: nil,
|
|
1924
2286
|
networks: nil,
|
|
1925
|
-
preferred_settlement_speed: nil,
|
|
1926
2287
|
setup_future_usage: nil,
|
|
1927
2288
|
target_date: nil,
|
|
2289
|
+
transaction_purpose: nil,
|
|
1928
2290
|
verification_method: nil
|
|
1929
2291
|
)
|
|
1930
2292
|
@financial_connections = financial_connections
|
|
1931
2293
|
@mandate_options = mandate_options
|
|
1932
2294
|
@networks = networks
|
|
1933
|
-
@preferred_settlement_speed = preferred_settlement_speed
|
|
1934
2295
|
@setup_future_usage = setup_future_usage
|
|
1935
2296
|
@target_date = target_date
|
|
2297
|
+
@transaction_purpose = transaction_purpose
|
|
1936
2298
|
@verification_method = verification_method
|
|
1937
2299
|
end
|
|
1938
2300
|
end
|
|
1939
2301
|
|
|
1940
|
-
class WechatPay < Stripe::RequestParams
|
|
2302
|
+
class WechatPay < ::Stripe::RequestParams
|
|
1941
2303
|
# The app ID registered with WeChat Pay. Only required when client is ios or android.
|
|
1942
2304
|
attr_accessor :app_id
|
|
1943
2305
|
# The client type that the end customer will pay from
|
|
@@ -1960,7 +2322,7 @@ module Stripe
|
|
|
1960
2322
|
end
|
|
1961
2323
|
end
|
|
1962
2324
|
|
|
1963
|
-
class Zip < Stripe::RequestParams
|
|
2325
|
+
class Zip < ::Stripe::RequestParams
|
|
1964
2326
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1965
2327
|
#
|
|
1966
2328
|
# 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.
|
|
@@ -2054,6 +2416,8 @@ module Stripe
|
|
|
2054
2416
|
attr_accessor :paynow
|
|
2055
2417
|
# If this is a `paypal` PaymentMethod, this sub-hash contains details about the PayPal payment method options.
|
|
2056
2418
|
attr_accessor :paypal
|
|
2419
|
+
# If this is a `payto` PaymentMethod, this sub-hash contains details about the PayTo payment method options.
|
|
2420
|
+
attr_accessor :payto
|
|
2057
2421
|
# If this is a `pix` PaymentMethod, this sub-hash contains details about the Pix payment method options.
|
|
2058
2422
|
attr_accessor :pix
|
|
2059
2423
|
# If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options.
|
|
@@ -2072,6 +2436,8 @@ module Stripe
|
|
|
2072
2436
|
attr_accessor :swish
|
|
2073
2437
|
# If this is a `twint` PaymentMethod, this sub-hash contains details about the TWINT payment method options.
|
|
2074
2438
|
attr_accessor :twint
|
|
2439
|
+
# If this is a `upi` PaymentIntent, this sub-hash contains details about the UPI payment method options.
|
|
2440
|
+
attr_accessor :upi
|
|
2075
2441
|
# If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options.
|
|
2076
2442
|
attr_accessor :us_bank_account
|
|
2077
2443
|
# If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options.
|
|
@@ -2119,6 +2485,7 @@ module Stripe
|
|
|
2119
2485
|
payco: nil,
|
|
2120
2486
|
paynow: nil,
|
|
2121
2487
|
paypal: nil,
|
|
2488
|
+
payto: nil,
|
|
2122
2489
|
pix: nil,
|
|
2123
2490
|
promptpay: nil,
|
|
2124
2491
|
revolut_pay: nil,
|
|
@@ -2128,6 +2495,7 @@ module Stripe
|
|
|
2128
2495
|
sofort: nil,
|
|
2129
2496
|
swish: nil,
|
|
2130
2497
|
twint: nil,
|
|
2498
|
+
upi: nil,
|
|
2131
2499
|
us_bank_account: nil,
|
|
2132
2500
|
wechat_pay: nil,
|
|
2133
2501
|
zip: nil
|
|
@@ -2171,6 +2539,7 @@ module Stripe
|
|
|
2171
2539
|
@payco = payco
|
|
2172
2540
|
@paynow = paynow
|
|
2173
2541
|
@paypal = paypal
|
|
2542
|
+
@payto = payto
|
|
2174
2543
|
@pix = pix
|
|
2175
2544
|
@promptpay = promptpay
|
|
2176
2545
|
@revolut_pay = revolut_pay
|
|
@@ -2180,14 +2549,15 @@ module Stripe
|
|
|
2180
2549
|
@sofort = sofort
|
|
2181
2550
|
@swish = swish
|
|
2182
2551
|
@twint = twint
|
|
2552
|
+
@upi = upi
|
|
2183
2553
|
@us_bank_account = us_bank_account
|
|
2184
2554
|
@wechat_pay = wechat_pay
|
|
2185
2555
|
@zip = zip
|
|
2186
2556
|
end
|
|
2187
2557
|
end
|
|
2188
2558
|
|
|
2189
|
-
class Shipping < Stripe::RequestParams
|
|
2190
|
-
class Address < Stripe::RequestParams
|
|
2559
|
+
class Shipping < ::Stripe::RequestParams
|
|
2560
|
+
class Address < ::Stripe::RequestParams
|
|
2191
2561
|
# City, district, suburb, town, or village.
|
|
2192
2562
|
attr_accessor :city
|
|
2193
2563
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
@@ -2198,7 +2568,7 @@ module Stripe
|
|
|
2198
2568
|
attr_accessor :line2
|
|
2199
2569
|
# ZIP or postal code.
|
|
2200
2570
|
attr_accessor :postal_code
|
|
2201
|
-
# State, county, province, or region.
|
|
2571
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
2202
2572
|
attr_accessor :state
|
|
2203
2573
|
|
|
2204
2574
|
def initialize(
|
|
@@ -2237,7 +2607,7 @@ module Stripe
|
|
|
2237
2607
|
end
|
|
2238
2608
|
end
|
|
2239
2609
|
|
|
2240
|
-
class TransferData < Stripe::RequestParams
|
|
2610
|
+
class TransferData < ::Stripe::RequestParams
|
|
2241
2611
|
# The amount that will be transferred automatically when a charge succeeds.
|
|
2242
2612
|
attr_accessor :amount
|
|
2243
2613
|
|
|
@@ -2245,9 +2615,11 @@ module Stripe
|
|
|
2245
2615
|
@amount = amount
|
|
2246
2616
|
end
|
|
2247
2617
|
end
|
|
2248
|
-
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/
|
|
2618
|
+
# Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
2249
2619
|
attr_accessor :amount
|
|
2250
|
-
#
|
|
2620
|
+
# Provides industry-specific information about the amount.
|
|
2621
|
+
attr_accessor :amount_details
|
|
2622
|
+
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
2251
2623
|
attr_accessor :application_fee_amount
|
|
2252
2624
|
# Controls when the funds will be captured from the customer's account.
|
|
2253
2625
|
attr_accessor :capture_method
|
|
@@ -2257,22 +2629,32 @@ module Stripe
|
|
|
2257
2629
|
#
|
|
2258
2630
|
# Payment methods attached to other Customers cannot be used with this PaymentIntent.
|
|
2259
2631
|
#
|
|
2260
|
-
# If [setup_future_usage](https://stripe.com
|
|
2632
|
+
# If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead.
|
|
2261
2633
|
attr_accessor :customer
|
|
2634
|
+
# ID of the Account representing the customer that this PaymentIntent belongs to, if one exists.
|
|
2635
|
+
#
|
|
2636
|
+
# Payment methods attached to other Accounts cannot be used with this PaymentIntent.
|
|
2637
|
+
#
|
|
2638
|
+
# If [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Account after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Account instead.
|
|
2639
|
+
attr_accessor :customer_account
|
|
2262
2640
|
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
2263
2641
|
attr_accessor :description
|
|
2264
2642
|
# The list of payment method types to exclude from use with this payment.
|
|
2265
2643
|
attr_accessor :excluded_payment_method_types
|
|
2266
2644
|
# Specifies which fields in the response should be expanded.
|
|
2267
2645
|
attr_accessor :expand
|
|
2268
|
-
#
|
|
2646
|
+
# Automations to be run during the PaymentIntent lifecycle
|
|
2647
|
+
attr_accessor :hooks
|
|
2648
|
+
# 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`.
|
|
2269
2649
|
attr_accessor :metadata
|
|
2270
|
-
#
|
|
2650
|
+
# Provides industry-specific information about the charge.
|
|
2651
|
+
attr_accessor :payment_details
|
|
2652
|
+
# 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. To unset this field to null, pass in an empty string.
|
|
2271
2653
|
attr_accessor :payment_method
|
|
2272
|
-
# The ID of the [payment method configuration](https://stripe.com/
|
|
2654
|
+
# The ID of the [payment method configuration](https://docs.stripe.com/api/payment_method_configurations) to use with this PaymentIntent.
|
|
2273
2655
|
attr_accessor :payment_method_configuration
|
|
2274
2656
|
# If provided, this hash will be used to create a PaymentMethod. The new PaymentMethod will appear
|
|
2275
|
-
# in the [payment_method](https://stripe.com/
|
|
2657
|
+
# in the [payment_method](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-payment_method)
|
|
2276
2658
|
# property on the PaymentIntent.
|
|
2277
2659
|
attr_accessor :payment_method_data
|
|
2278
2660
|
# Payment-method-specific configuration for this PaymentIntent.
|
|
@@ -2299,21 +2681,25 @@ module Stripe
|
|
|
2299
2681
|
attr_accessor :statement_descriptor
|
|
2300
2682
|
# Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
|
|
2301
2683
|
attr_accessor :statement_descriptor_suffix
|
|
2302
|
-
# Use this parameter to automatically create a Transfer when the payment succeeds. Learn more about the [use case for connected accounts](https://stripe.com/
|
|
2684
|
+
# Use this parameter to automatically create a Transfer when the payment succeeds. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
2303
2685
|
attr_accessor :transfer_data
|
|
2304
|
-
# A string that identifies the resulting payment as part of a group. You can only provide `transfer_group` if it hasn't been set. Learn more about the [use case for connected accounts](https://stripe.com/
|
|
2686
|
+
# A string that identifies the resulting payment as part of a group. You can only provide `transfer_group` if it hasn't been set. Learn more about the [use case for connected accounts](https://docs.stripe.com/payments/connected-accounts).
|
|
2305
2687
|
attr_accessor :transfer_group
|
|
2306
2688
|
|
|
2307
2689
|
def initialize(
|
|
2308
2690
|
amount: nil,
|
|
2691
|
+
amount_details: nil,
|
|
2309
2692
|
application_fee_amount: nil,
|
|
2310
2693
|
capture_method: nil,
|
|
2311
2694
|
currency: nil,
|
|
2312
2695
|
customer: nil,
|
|
2696
|
+
customer_account: nil,
|
|
2313
2697
|
description: nil,
|
|
2314
2698
|
excluded_payment_method_types: nil,
|
|
2315
2699
|
expand: nil,
|
|
2700
|
+
hooks: nil,
|
|
2316
2701
|
metadata: nil,
|
|
2702
|
+
payment_details: nil,
|
|
2317
2703
|
payment_method: nil,
|
|
2318
2704
|
payment_method_configuration: nil,
|
|
2319
2705
|
payment_method_data: nil,
|
|
@@ -2328,14 +2714,18 @@ module Stripe
|
|
|
2328
2714
|
transfer_group: nil
|
|
2329
2715
|
)
|
|
2330
2716
|
@amount = amount
|
|
2717
|
+
@amount_details = amount_details
|
|
2331
2718
|
@application_fee_amount = application_fee_amount
|
|
2332
2719
|
@capture_method = capture_method
|
|
2333
2720
|
@currency = currency
|
|
2334
2721
|
@customer = customer
|
|
2722
|
+
@customer_account = customer_account
|
|
2335
2723
|
@description = description
|
|
2336
2724
|
@excluded_payment_method_types = excluded_payment_method_types
|
|
2337
2725
|
@expand = expand
|
|
2726
|
+
@hooks = hooks
|
|
2338
2727
|
@metadata = metadata
|
|
2728
|
+
@payment_details = payment_details
|
|
2339
2729
|
@payment_method = payment_method
|
|
2340
2730
|
@payment_method_configuration = payment_method_configuration
|
|
2341
2731
|
@payment_method_data = payment_method_data
|