stripe 13.4.1 → 17.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_operations/request.rb +1 -0
- data/lib/stripe/api_operations/save.rb +2 -1
- data/lib/stripe/api_operations/singleton_save.rb +2 -1
- data/lib/stripe/api_requestor.rb +12 -4
- data/lib/stripe/api_resource.rb +13 -3
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/errors.rb +0 -7
- data/lib/stripe/event_types.rb +20 -5
- data/lib/stripe/events/unknown_event_notification.rb +19 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +115 -15
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +93 -6
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +44 -0
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/object_types.rb +11 -4
- data/lib/stripe/params/account_capability_list_params.rb +13 -0
- data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_capability_update_params.rb +18 -0
- data/lib/stripe/params/account_create_params.rb +2083 -0
- data/lib/stripe/params/account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_create_params.rb +134 -0
- data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_list_params.rb +25 -0
- data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_external_account_update_params.rb +91 -0
- data/lib/stripe/params/account_link_create_params.rb +52 -0
- data/lib/stripe/params/account_list_params.rb +42 -0
- data/lib/stripe/params/account_login_link_create_params.rb +13 -0
- data/lib/stripe/params/account_person_create_params.rb +435 -0
- data/lib/stripe/params/account_person_delete_params.rb +6 -0
- data/lib/stripe/params/account_person_list_params.rb +61 -0
- data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_person_update_params.rb +435 -0
- data/lib/stripe/params/account_persons_params.rb +61 -0
- data/lib/stripe/params/account_reject_params.rb +16 -0
- data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
- data/lib/stripe/params/account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_session_create_params.rb +598 -0
- data/lib/stripe/params/account_update_params.rb +2030 -0
- data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
- data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
- data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
- data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_list_params.rb +52 -0
- data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
- data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
- data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
- data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
- data/lib/stripe/params/apps/secret_create_params.rb +38 -0
- data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
- data/lib/stripe/params/apps/secret_find_params.rb +32 -0
- data/lib/stripe/params/apps/secret_list_params.rb +38 -0
- data/lib/stripe/params/balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_update_params.rb +67 -0
- data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
- data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
- data/lib/stripe/params/billing/alert_create_params.rb +52 -0
- data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_list_params.rb +37 -0
- data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +54 -0
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +37 -0
- data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +103 -0
- data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +33 -0
- data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
- data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
- data/lib/stripe/params/billing/meter_create_params.rb +70 -0
- data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
- data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
- data/lib/stripe/params/billing/meter_list_params.rb +27 -0
- data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/meter_update_params.rb +18 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +225 -0
- data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
- data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +231 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +179 -0
- data/lib/stripe/params/charge_capture_params.rb +57 -0
- data/lib/stripe/params/charge_create_params.rb +172 -0
- data/lib/stripe/params/charge_list_params.rb +60 -0
- data/lib/stripe/params/charge_retrieve_params.rb +13 -0
- data/lib/stripe/params/charge_search_params.rb +22 -0
- data/lib/stripe/params/charge_update_params.rb +102 -0
- data/lib/stripe/params/checkout/session_create_params.rb +2445 -0
- data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
- data/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
- data/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
- data/lib/stripe/params/checkout/session_list_params.rb +83 -0
- data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/checkout/session_update_params.rb +179 -0
- data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
- data/lib/stripe/params/climate/order_create_params.rb +49 -0
- data/lib/stripe/params/climate/order_list_params.rb +24 -0
- data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/order_update_params.rb +29 -0
- data/lib/stripe/params/climate/product_list_params.rb +24 -0
- data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
- data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +650 -0
- data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
- data/lib/stripe/params/country_spec_list_params.rb +22 -0
- data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_create_params.rb +80 -0
- data/lib/stripe/params/coupon_delete_params.rb +6 -0
- data/lib/stripe/params/coupon_list_params.rb +42 -0
- data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_update_params.rb +30 -0
- data/lib/stripe/params/credit_note_create_params.rb +144 -0
- data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
- data/lib/stripe/params/credit_note_list_params.rb +56 -0
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +156 -0
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +156 -0
- data/lib/stripe/params/credit_note_preview_params.rb +144 -0
- data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
- data/lib/stripe/params/credit_note_update_params.rb +19 -0
- data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +22 -0
- data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
- data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
- data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
- data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
- data/lib/stripe/params/customer_create_params.rb +259 -0
- data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
- data/lib/stripe/params/customer_delete_params.rb +6 -0
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
- data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
- data/lib/stripe/params/customer_list_params.rb +56 -0
- data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
- data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
- data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
- data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
- data/lib/stripe/params/customer_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
- data/lib/stripe/params/customer_search_params.rb +22 -0
- data/lib/stripe/params/customer_session_create_params.rb +100 -0
- data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
- data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
- data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_update_params.rb +243 -0
- data/lib/stripe/params/dispute_close_params.rb +13 -0
- data/lib/stripe/params/dispute_list_params.rb +56 -0
- data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
- data/lib/stripe/params/dispute_update_params.rb +308 -0
- data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
- data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
- data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
- data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
- data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
- data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
- data/lib/stripe/params/event_list_params.rb +60 -0
- data/lib/stripe/params/event_retrieve_params.rb +13 -0
- data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
- data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/file_create_params.rb +36 -0
- data/lib/stripe/params/file_link_create_params.rb +22 -0
- data/lib/stripe/params/file_link_list_params.rb +56 -0
- data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/file_link_update_params.rb +19 -0
- data/lib/stripe/params/file_list_params.rb +52 -0
- data/lib/stripe/params/file_retrieve_params.rb +13 -0
- data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +48 -0
- data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +65 -0
- data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
- data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
- data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
- data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
- data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +107 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +62 -0
- data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +231 -0
- data/lib/stripe/params/invoice_attach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_create_params.rb +589 -0
- data/lib/stripe/params/invoice_create_preview_params.rb +993 -0
- data/lib/stripe/params/invoice_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +145 -0
- data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_item_list_params.rb +60 -0
- data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_item_update_params.rb +129 -0
- data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
- data/lib/stripe/params/invoice_line_item_update_params.rb +217 -0
- data/lib/stripe/params/invoice_list_params.rb +86 -0
- data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
- data/lib/stripe/params/invoice_pay_params.rb +41 -0
- data/lib/stripe/params/invoice_payment_list_params.rb +50 -0
- data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
- data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
- data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
- data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
- data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
- data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_search_params.rb +22 -0
- data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +231 -0
- data/lib/stripe/params/invoice_update_params.rb +557 -0
- data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
- data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
- data/lib/stripe/params/issuing/authorization_create_params.rb +357 -0
- data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
- data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
- data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
- data/lib/stripe/params/issuing/card_create_params.rb +213 -0
- data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_list_params.rb +78 -0
- data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_update_params.rb +181 -0
- data/lib/stripe/params/issuing/cardholder_create_params.rb +238 -0
- data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
- data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -0
- data/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
- data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
- data/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
- data/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
- data/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
- data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
- data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
- data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
- data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
- data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_list_params.rb +58 -0
- data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_update_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +62 -0
- data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
- data/lib/stripe/params/mandate_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
- data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +54 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +2379 -0
- data/lib/stripe/params/payment_intent_create_params.rb +2480 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +48 -0
- data/lib/stripe/params/payment_intent_list_params.rb +52 -0
- data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/payment_intent_search_params.rb +22 -0
- data/lib/stripe/params/payment_intent_update_params.rb +2353 -0
- data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/payment_link_create_params.rb +776 -0
- data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_params.rb +25 -0
- data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_link_update_params.rb +564 -0
- data/lib/stripe/params/payment_method_attach_params.rb +16 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +1135 -0
- data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
- data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +1135 -0
- data/lib/stripe/params/payment_method_create_params.rb +583 -0
- data/lib/stripe/params/payment_method_detach_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
- data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
- data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
- data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
- data/lib/stripe/params/payment_method_list_params.rb +35 -0
- data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_update_params.rb +120 -0
- data/lib/stripe/params/payout_cancel_params.rb +13 -0
- data/lib/stripe/params/payout_create_params.rb +51 -0
- data/lib/stripe/params/payout_list_params.rb +78 -0
- data/lib/stripe/params/payout_retrieve_params.rb +13 -0
- data/lib/stripe/params/payout_reverse_params.rb +16 -0
- data/lib/stripe/params/payout_update_params.rb +16 -0
- data/lib/stripe/params/plan_create_params.rb +158 -0
- data/lib/stripe/params/plan_delete_params.rb +6 -0
- data/lib/stripe/params/plan_list_params.rb +56 -0
- data/lib/stripe/params/plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/plan_update_params.rb +35 -0
- data/lib/stripe/params/price_create_params.rb +278 -0
- data/lib/stripe/params/price_list_params.rb +87 -0
- data/lib/stripe/params/price_retrieve_params.rb +13 -0
- data/lib/stripe/params/price_search_params.rb +22 -0
- data/lib/stripe/params/price_update_params.rb +113 -0
- data/lib/stripe/params/product_create_params.rb +243 -0
- data/lib/stripe/params/product_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_create_params.rb +16 -0
- data/lib/stripe/params/product_feature_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_list_params.rb +22 -0
- data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_list_params.rb +68 -0
- data/lib/stripe/params/product_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_search_params.rb +22 -0
- data/lib/stripe/params/product_update_params.rb +96 -0
- data/lib/stripe/params/promotion_code_create_params.rb +91 -0
- data/lib/stripe/params/promotion_code_list_params.rb +64 -0
- data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/promotion_code_update_params.rb +38 -0
- data/lib/stripe/params/quote_accept_params.rb +13 -0
- data/lib/stripe/params/quote_cancel_params.rb +13 -0
- data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
- data/lib/stripe/params/quote_create_params.rb +301 -0
- data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
- data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +39 -0
- data/lib/stripe/params/quote_pdf_params.rb +13 -0
- data/lib/stripe/params/quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +263 -0
- data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
- data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
- data/lib/stripe/params/radar/value_list_delete_params.rb +8 -0
- data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
- data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
- data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
- data/lib/stripe/params/refund_cancel_params.rb +13 -0
- data/lib/stripe/params/refund_create_params.rb +59 -0
- data/lib/stripe/params/refund_expire_params.rb +13 -0
- data/lib/stripe/params/refund_list_params.rb +56 -0
- data/lib/stripe/params/refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/refund_update_params.rb +16 -0
- data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
- data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
- data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
- data/lib/stripe/params/review_approve_params.rb +13 -0
- data/lib/stripe/params/review_list_params.rb +42 -0
- data/lib/stripe/params/review_retrieve_params.rb +13 -0
- data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
- data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +1050 -0
- data/lib/stripe/params/setup_intent_create_params.rb +1130 -0
- data/lib/stripe/params/setup_intent_list_params.rb +62 -0
- data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/setup_intent_update_params.rb +1025 -0
- data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
- data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
- data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
- data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
- data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/source_create_params.rb +317 -0
- data/lib/stripe/params/source_detach_params.rb +13 -0
- data/lib/stripe/params/source_retrieve_params.rb +16 -0
- data/lib/stripe/params/source_transaction_list_params.rb +22 -0
- data/lib/stripe/params/source_update_params.rb +259 -0
- data/lib/stripe/params/source_verify_params.rb +16 -0
- data/lib/stripe/params/subscription_cancel_params.rb +33 -0
- data/lib/stripe/params/subscription_create_params.rb +704 -0
- data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
- data/lib/stripe/params/subscription_item_create_params.rb +134 -0
- data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
- data/lib/stripe/params/subscription_item_list_params.rb +31 -0
- data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_item_update_params.rb +134 -0
- data/lib/stripe/params/subscription_list_params.rb +129 -0
- data/lib/stripe/params/subscription_migrate_params.rb +35 -0
- data/lib/stripe/params/subscription_resume_params.rb +27 -0
- data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +590 -0
- data/lib/stripe/params/subscription_schedule_list_params.rb +122 -0
- data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
- data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +562 -0
- data/lib/stripe/params/subscription_search_params.rb +22 -0
- data/lib/stripe/params/subscription_update_params.rb +683 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
- data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
- data/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
- data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +2018 -0
- data/lib/stripe/params/tax/registration_list_params.rb +27 -0
- data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_update_params.rb +21 -0
- data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/settings_update_params.rb +71 -0
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
- data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
- data/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
- data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_code_list_params.rb +22 -0
- data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_id_create_params.rb +36 -0
- data/lib/stripe/params/tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/tax_id_list_params.rb +39 -0
- data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_create_params.rb +55 -0
- data/lib/stripe/params/tax_rate_list_params.rb +56 -0
- data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_update_params.rb +47 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +593 -0
- data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
- data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +593 -0
- data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
- data/lib/stripe/params/terminal/location_create_params.rb +153 -0
- data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/location_list_params.rb +24 -0
- data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/location_update_params.rb +153 -0
- data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
- data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
- data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
- data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
- data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
- data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
- data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
- data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
- data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
- data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
- data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +652 -0
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +359 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
- data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
- data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
- data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
- data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
- data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
- data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
- data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
- data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +68 -0
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +68 -0
- data/lib/stripe/params/token_create_params.rb +1191 -0
- data/lib/stripe/params/token_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_cancel_params.rb +13 -0
- data/lib/stripe/params/topup_create_params.rb +43 -0
- data/lib/stripe/params/topup_list_params.rb +74 -0
- data/lib/stripe/params/topup_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_update_params.rb +19 -0
- data/lib/stripe/params/transfer_create_params.rb +47 -0
- data/lib/stripe/params/transfer_list_params.rb +56 -0
- data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
- data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
- data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
- data/lib/stripe/params/transfer_update_params.rb +19 -0
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
- data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
- data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +201 -0
- data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +163 -0
- data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +163 -0
- data/lib/stripe/params/treasury/financial_account_update_params.rb +216 -0
- data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
- data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
- data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
- data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
- data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +81 -0
- data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +66 -0
- data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
- data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/received_debit_create_params.rb +66 -0
- data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
- data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
- data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
- data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
- data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
- data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
- data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
- data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
- data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
- data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
- data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
- data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
- data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
- data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
- data/lib/stripe/params.rb +588 -0
- data/lib/stripe/request_options.rb +16 -6
- data/lib/stripe/request_params.rb +24 -0
- data/lib/stripe/resources/account.rb +1007 -20
- data/lib/stripe/resources/account_link.rb +17 -0
- data/lib/stripe/resources/account_session.rb +658 -0
- data/lib/stripe/resources/apple_pay_domain.rb +21 -0
- data/lib/stripe/resources/application.rb +28 -0
- data/lib/stripe/resources/application_fee.rb +55 -0
- data/lib/stripe/resources/application_fee_refund.rb +25 -0
- data/lib/stripe/resources/apps/secret.rb +41 -0
- data/lib/stripe/resources/balance.rb +325 -7
- data/lib/stripe/resources/balance_settings.rb +92 -0
- data/lib/stripe/resources/balance_transaction.rb +61 -0
- data/lib/stripe/resources/bank_account.rb +126 -4
- data/lib/stripe/resources/billing/alert.rb +55 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +34 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +88 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +151 -0
- data/lib/stripe/resources/billing/credit_grant.rb +108 -0
- data/lib/stripe/resources/billing/meter.rb +93 -0
- data/lib/stripe/resources/billing/meter_event.rb +23 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +33 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +25 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +254 -0
- data/lib/stripe/resources/billing_portal/session.rb +200 -1
- data/lib/stripe/resources/capability.rb +140 -0
- data/lib/stripe/resources/card.rb +93 -0
- data/lib/stripe/resources/cash_balance.rb +33 -0
- data/lib/stripe/resources/charge.rb +2221 -7
- data/lib/stripe/resources/checkout/session.rb +2206 -6
- data/lib/stripe/resources/climate/order.rb +106 -0
- data/lib/stripe/resources/climate/product.rb +45 -0
- data/lib/stripe/resources/climate/supplier.rb +43 -0
- data/lib/stripe/resources/confirmation_token.rb +1679 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +32 -0
- data/lib/stripe/resources/country_spec.rb +69 -1
- data/lib/stripe/resources/coupon.rb +70 -0
- data/lib/stripe/resources/credit_note.rb +213 -9
- data/lib/stripe/resources/credit_note_line_item.rb +111 -0
- data/lib/stripe/resources/customer.rb +228 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +37 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +217 -0
- data/lib/stripe/resources/customer_session.rb +118 -3
- data/lib/stripe/resources/discount.rb +49 -0
- data/lib/stripe/resources/dispute.rb +405 -1
- data/lib/stripe/resources/entitlements/active_entitlement.rb +19 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
- data/lib/stripe/resources/entitlements/feature.rb +23 -0
- data/lib/stripe/resources/ephemeral_key.rb +21 -0
- data/lib/stripe/resources/event.rb +74 -26
- data/lib/stripe/resources/exchange_rate.rb +25 -0
- data/lib/stripe/resources/file.rb +32 -1
- data/lib/stripe/resources/file_link.rb +27 -0
- data/lib/stripe/resources/financial_connections/account.rb +193 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +25 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +17 -0
- data/lib/stripe/resources/financial_connections/session.rb +60 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +47 -0
- data/lib/stripe/resources/forwarding/request.rb +111 -0
- data/lib/stripe/resources/funding_instructions.rb +502 -1
- data/lib/stripe/resources/identity/verification_report.rb +372 -0
- data/lib/stripe/resources/identity/verification_session.rb +290 -11
- data/lib/stripe/resources/invoice.rb +997 -34
- data/lib/stripe/resources/invoice_item.rb +160 -4
- data/lib/stripe/resources/invoice_line_item.rb +278 -1
- data/lib/stripe/resources/invoice_payment.rb +90 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +25 -0
- data/lib/stripe/resources/issuing/authorization.rb +449 -8
- data/lib/stripe/resources/issuing/card.rb +264 -0
- data/lib/stripe/resources/issuing/cardholder.rb +242 -0
- data/lib/stripe/resources/issuing/dispute.rb +257 -3
- data/lib/stripe/resources/issuing/personalization_design.rb +87 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +39 -0
- data/lib/stripe/resources/issuing/token.rb +163 -0
- data/lib/stripe/resources/issuing/transaction.rb +363 -0
- data/lib/stripe/resources/line_item.rb +71 -0
- data/lib/stripe/resources/login_link.rb +17 -1
- data/lib/stripe/resources/mandate.rb +358 -0
- data/lib/stripe/resources/payment_intent.rb +2775 -23
- data/lib/stripe/resources/payment_link.rb +686 -0
- data/lib/stripe/resources/payment_method.rb +1536 -12
- data/lib/stripe/resources/payment_method_configuration.rb +1759 -0
- data/lib/stripe/resources/payment_method_domain.rb +209 -8
- data/lib/stripe/resources/payout.rb +81 -4
- data/lib/stripe/resources/person.rb +469 -2
- data/lib/stripe/resources/plan.rb +87 -1
- data/lib/stripe/resources/price.rb +192 -2
- data/lib/stripe/resources/product.rb +83 -0
- data/lib/stripe/resources/product_feature.rb +20 -0
- data/lib/stripe/resources/promotion_code.rb +86 -3
- data/lib/stripe/resources/quote.rb +510 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +25 -0
- data/lib/stripe/resources/radar/value_list.rb +31 -0
- data/lib/stripe/resources/radar/value_list_item.rb +25 -0
- data/lib/stripe/resources/refund.rb +614 -0
- data/lib/stripe/resources/reporting/report_run.rb +60 -0
- data/lib/stripe/resources/reporting/report_type.rb +27 -0
- data/lib/stripe/resources/reserve_transaction.rb +30 -0
- data/lib/stripe/resources/reversal.rb +30 -1
- data/lib/stripe/resources/review.rb +77 -1
- data/lib/stripe/resources/setup_attempt.rb +589 -0
- data/lib/stripe/resources/setup_intent.rb +574 -3
- data/lib/stripe/resources/shipping_rate.rb +107 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +43 -0
- data/lib/stripe/resources/source.rb +885 -2
- data/lib/stripe/resources/source_mandate_notification.rb +98 -0
- data/lib/stripe/resources/source_transaction.rb +139 -0
- data/lib/stripe/resources/subscription.rb +606 -9
- data/lib/stripe/resources/subscription_item.rb +60 -5
- data/lib/stripe/resources/subscription_schedule.rb +526 -0
- data/lib/stripe/resources/tax/calculation.rb +273 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +90 -0
- data/lib/stripe/resources/tax/registration.rb +2189 -0
- data/lib/stripe/resources/tax/settings.rb +114 -0
- data/lib/stripe/resources/tax/transaction.rb +231 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +47 -0
- data/lib/stripe/resources/tax_code.rb +17 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
- data/lib/stripe/resources/tax_id.rb +66 -0
- data/lib/stripe/resources/tax_rate.rb +63 -2
- data/lib/stripe/resources/terminal/configuration.rb +634 -0
- data/lib/stripe/resources/terminal/connection_token.rb +15 -0
- data/lib/stripe/resources/terminal/location.rb +112 -1
- data/lib/stripe/resources/terminal/reader.rb +605 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +53 -0
- data/lib/stripe/resources/token.rb +39 -2
- data/lib/stripe/resources/topup.rb +41 -0
- data/lib/stripe/resources/transfer.rb +44 -1
- data/lib/stripe/resources/treasury/credit_reversal.rb +49 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +64 -0
- data/lib/stripe/resources/treasury/financial_account.rb +145 -1
- data/lib/stripe/resources/treasury/financial_account_features.rb +381 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +178 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +256 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +236 -0
- data/lib/stripe/resources/treasury/received_credit.rb +214 -0
- data/lib/stripe/resources/treasury/received_debit.rb +177 -0
- data/lib/stripe/resources/treasury/transaction.rb +117 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +94 -0
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +26 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +37 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +22 -0
- data/lib/stripe/resources/v2/core/event.rb +67 -0
- data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +62 -0
- data/lib/stripe/resources/v2/deleted_object.rb +21 -0
- data/lib/stripe/resources/webhook_endpoint.rb +35 -0
- data/lib/stripe/resources.rb +13 -4
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +12 -12
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/balance_settings_service.rb +30 -0
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +8 -6
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/credit_note_service.rb +8 -9
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +6 -6
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/exchange_rate_service.rb +4 -0
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/financial_connections_service.rb +1 -1
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +5 -5
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_payment_service.rb +28 -0
- data/lib/stripe/services/invoice_service.rb +34 -30
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/issuing_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +20 -15
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_domain_service.rb +4 -4
- data/lib/stripe/services/payment_method_service.rb +9 -9
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +1 -1
- data/lib/stripe/services/price_service.rb +3 -3
- data/lib/stripe/services/product_service.rb +2 -2
- data/lib/stripe/services/promotion_code_service.rb +2 -2
- data/lib/stripe/services/quote_service.rb +3 -3
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +3 -3
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +2 -2
- data/lib/stripe/services/subscription_item_service.rb +0 -8
- data/lib/stripe/services/subscription_service.rb +19 -8
- data/lib/stripe/services/tax/calculation_service.rb +1 -1
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_service.rb +1 -1
- data/lib/stripe/services/terminal/location_service.rb +1 -1
- data/lib/stripe/services/terminal/reader_service.rb +33 -0
- data/lib/stripe/services/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/transfer_service.rb +2 -2
- data/lib/stripe/services/treasury/financial_account_service.rb +2 -2
- data/lib/stripe/services/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +7 -5
- data/lib/stripe/services/v2/billing_service.rb +4 -4
- data/lib/stripe/services/v2/core_service.rb +3 -3
- data/lib/stripe/services/v2_services.rb +1 -1
- data/lib/stripe/services.rb +2 -3
- data/lib/stripe/stripe_client.rb +10 -6
- data/lib/stripe/stripe_configuration.rb +1 -6
- data/lib/stripe/stripe_context.rb +68 -0
- data/lib/stripe/stripe_object.rb +57 -12
- data/lib/stripe/stripe_service.rb +3 -1
- data/lib/stripe/util.rb +34 -12
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/lib/stripe.rb +6 -1
- data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
- data/rbi/stripe/stripe_client.rbi +17 -0
- data/rbi/stripe.rbi +132984 -0
- metadata +612 -28
- data/CHANGELOG.md +0 -1589
- data/CODE_OF_CONDUCT.md +0 -77
- data/CONTRIBUTORS +0 -3
- data/Gemfile +0 -37
- data/History.txt +0 -1
- data/LICENSE +0 -21
- data/Makefile +0 -22
- data/OPENAPI_VERSION +0 -1
- data/README.md +0 -422
- data/Rakefile +0 -34
- data/VERSION +0 -1
- data/examples/README.md +0 -16
- data/examples/example_template.rb +0 -36
- data/examples/meter_event_stream.rb +0 -57
- data/examples/thinevent_webhook_handler.rb +0 -39
- data/justfile +0 -43
- data/lib/stripe/resources/usage_record.rb +0 -17
- data/lib/stripe/resources/usage_record_summary.rb +0 -12
- data/lib/stripe/resources/v2/event.rb +0 -13
- data/lib/stripe/resources/v2/event_destination.rb +0 -13
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -17
- data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -23
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -19
- data/lib/stripe/thin_event.rb +0 -37
- data/stripe.gemspec +0 -44
|
@@ -27,7 +27,2169 @@ module Stripe
|
|
|
27
27
|
"checkout.session"
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
class AdaptivePricing < Stripe::StripeObject
|
|
31
|
+
# If enabled, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions).
|
|
32
|
+
attr_reader :enabled
|
|
33
|
+
|
|
34
|
+
def self.inner_class_types
|
|
35
|
+
@inner_class_types = {}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def self.field_remappings
|
|
39
|
+
@field_remappings = {}
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
class AfterExpiration < Stripe::StripeObject
|
|
44
|
+
class Recovery < Stripe::StripeObject
|
|
45
|
+
# Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false`
|
|
46
|
+
attr_reader :allow_promotion_codes
|
|
47
|
+
# If `true`, a recovery url will be generated to recover this Checkout Session if it
|
|
48
|
+
# expires before a transaction is completed. It will be attached to the
|
|
49
|
+
# Checkout Session object upon expiration.
|
|
50
|
+
attr_reader :enabled
|
|
51
|
+
# The timestamp at which the recovery URL will expire.
|
|
52
|
+
attr_reader :expires_at
|
|
53
|
+
# URL that creates a new Checkout Session when clicked that is a copy of this expired Checkout Session
|
|
54
|
+
attr_reader :url
|
|
55
|
+
|
|
56
|
+
def self.inner_class_types
|
|
57
|
+
@inner_class_types = {}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def self.field_remappings
|
|
61
|
+
@field_remappings = {}
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
# When set, configuration used to recover the Checkout Session on expiry.
|
|
65
|
+
attr_reader :recovery
|
|
66
|
+
|
|
67
|
+
def self.inner_class_types
|
|
68
|
+
@inner_class_types = { recovery: Recovery }
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def self.field_remappings
|
|
72
|
+
@field_remappings = {}
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
class AutomaticTax < Stripe::StripeObject
|
|
77
|
+
class Liability < Stripe::StripeObject
|
|
78
|
+
# The connected account being referenced when `type` is `account`.
|
|
79
|
+
attr_reader :account
|
|
80
|
+
# Type of the account referenced.
|
|
81
|
+
attr_reader :type
|
|
82
|
+
|
|
83
|
+
def self.inner_class_types
|
|
84
|
+
@inner_class_types = {}
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
def self.field_remappings
|
|
88
|
+
@field_remappings = {}
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
# Indicates whether automatic tax is enabled for the session
|
|
92
|
+
attr_reader :enabled
|
|
93
|
+
# The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
|
94
|
+
attr_reader :liability
|
|
95
|
+
# The tax provider powering automatic tax.
|
|
96
|
+
attr_reader :provider
|
|
97
|
+
# The status of the most recent automated tax calculation for this session.
|
|
98
|
+
attr_reader :status
|
|
99
|
+
|
|
100
|
+
def self.inner_class_types
|
|
101
|
+
@inner_class_types = { liability: Liability }
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
def self.field_remappings
|
|
105
|
+
@field_remappings = {}
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
class BrandingSettings < Stripe::StripeObject
|
|
110
|
+
class Icon < Stripe::StripeObject
|
|
111
|
+
# The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise.
|
|
112
|
+
attr_reader :file
|
|
113
|
+
# The type of image for the icon. Must be one of `file` or `url`.
|
|
114
|
+
attr_reader :type
|
|
115
|
+
# The URL of the image. Present when `type` is `url`.
|
|
116
|
+
attr_reader :url
|
|
117
|
+
|
|
118
|
+
def self.inner_class_types
|
|
119
|
+
@inner_class_types = {}
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
def self.field_remappings
|
|
123
|
+
@field_remappings = {}
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
class Logo < Stripe::StripeObject
|
|
128
|
+
# The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise.
|
|
129
|
+
attr_reader :file
|
|
130
|
+
# The type of image for the logo. Must be one of `file` or `url`.
|
|
131
|
+
attr_reader :type
|
|
132
|
+
# The URL of the image. Present when `type` is `url`.
|
|
133
|
+
attr_reader :url
|
|
134
|
+
|
|
135
|
+
def self.inner_class_types
|
|
136
|
+
@inner_class_types = {}
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
def self.field_remappings
|
|
140
|
+
@field_remappings = {}
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
# A hex color value starting with `#` representing the background color for the Checkout Session.
|
|
144
|
+
attr_reader :background_color
|
|
145
|
+
# The border style for the Checkout Session. Must be one of `rounded`, `rectangular`, or `pill`.
|
|
146
|
+
attr_reader :border_style
|
|
147
|
+
# A hex color value starting with `#` representing the button color for the Checkout Session.
|
|
148
|
+
attr_reader :button_color
|
|
149
|
+
# The display name shown on the Checkout Session.
|
|
150
|
+
attr_reader :display_name
|
|
151
|
+
# The font family for the Checkout Session. Must be one of the [supported font families](https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility).
|
|
152
|
+
attr_reader :font_family
|
|
153
|
+
# The icon for the Checkout Session. You cannot set both `logo` and `icon`.
|
|
154
|
+
attr_reader :icon
|
|
155
|
+
# The logo for the Checkout Session. You cannot set both `logo` and `icon`.
|
|
156
|
+
attr_reader :logo
|
|
157
|
+
|
|
158
|
+
def self.inner_class_types
|
|
159
|
+
@inner_class_types = { icon: Icon, logo: Logo }
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
def self.field_remappings
|
|
163
|
+
@field_remappings = {}
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
class CollectedInformation < Stripe::StripeObject
|
|
168
|
+
class ShippingDetails < Stripe::StripeObject
|
|
169
|
+
class Address < Stripe::StripeObject
|
|
170
|
+
# City, district, suburb, town, or village.
|
|
171
|
+
attr_reader :city
|
|
172
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
173
|
+
attr_reader :country
|
|
174
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
175
|
+
attr_reader :line1
|
|
176
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
177
|
+
attr_reader :line2
|
|
178
|
+
# ZIP or postal code.
|
|
179
|
+
attr_reader :postal_code
|
|
180
|
+
# State, county, province, or region.
|
|
181
|
+
attr_reader :state
|
|
182
|
+
|
|
183
|
+
def self.inner_class_types
|
|
184
|
+
@inner_class_types = {}
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
def self.field_remappings
|
|
188
|
+
@field_remappings = {}
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
# Attribute for field address
|
|
192
|
+
attr_reader :address
|
|
193
|
+
# Customer name.
|
|
194
|
+
attr_reader :name
|
|
195
|
+
|
|
196
|
+
def self.inner_class_types
|
|
197
|
+
@inner_class_types = { address: Address }
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
def self.field_remappings
|
|
201
|
+
@field_remappings = {}
|
|
202
|
+
end
|
|
203
|
+
end
|
|
204
|
+
# Customer’s business name for this Checkout Session
|
|
205
|
+
attr_reader :business_name
|
|
206
|
+
# Customer’s individual name for this Checkout Session
|
|
207
|
+
attr_reader :individual_name
|
|
208
|
+
# Shipping information for this Checkout Session.
|
|
209
|
+
attr_reader :shipping_details
|
|
210
|
+
|
|
211
|
+
def self.inner_class_types
|
|
212
|
+
@inner_class_types = { shipping_details: ShippingDetails }
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
def self.field_remappings
|
|
216
|
+
@field_remappings = {}
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
class Consent < Stripe::StripeObject
|
|
221
|
+
# If `opt_in`, the customer consents to receiving promotional communications
|
|
222
|
+
# from the merchant about this Checkout Session.
|
|
223
|
+
attr_reader :promotions
|
|
224
|
+
# If `accepted`, the customer in this Checkout Session has agreed to the merchant's terms of service.
|
|
225
|
+
attr_reader :terms_of_service
|
|
226
|
+
|
|
227
|
+
def self.inner_class_types
|
|
228
|
+
@inner_class_types = {}
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
def self.field_remappings
|
|
232
|
+
@field_remappings = {}
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
class ConsentCollection < Stripe::StripeObject
|
|
237
|
+
class PaymentMethodReuseAgreement < Stripe::StripeObject
|
|
238
|
+
# Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used.
|
|
239
|
+
#
|
|
240
|
+
# When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
|
|
241
|
+
attr_reader :position
|
|
242
|
+
|
|
243
|
+
def self.inner_class_types
|
|
244
|
+
@inner_class_types = {}
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
def self.field_remappings
|
|
248
|
+
@field_remappings = {}
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
# If set to `hidden`, it will hide legal text related to the reuse of a payment method.
|
|
252
|
+
attr_reader :payment_method_reuse_agreement
|
|
253
|
+
# If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout
|
|
254
|
+
# Session will determine whether to display an option to opt into promotional communication
|
|
255
|
+
# from the merchant depending on the customer's locale. Only available to US merchants.
|
|
256
|
+
attr_reader :promotions
|
|
257
|
+
# If set to `required`, it requires customers to accept the terms of service before being able to pay.
|
|
258
|
+
attr_reader :terms_of_service
|
|
259
|
+
|
|
260
|
+
def self.inner_class_types
|
|
261
|
+
@inner_class_types = { payment_method_reuse_agreement: PaymentMethodReuseAgreement }
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
def self.field_remappings
|
|
265
|
+
@field_remappings = {}
|
|
266
|
+
end
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
class CurrencyConversion < Stripe::StripeObject
|
|
270
|
+
# Total of all items in source currency before discounts or taxes are applied.
|
|
271
|
+
attr_reader :amount_subtotal
|
|
272
|
+
# Total of all items in source currency after discounts and taxes are applied.
|
|
273
|
+
attr_reader :amount_total
|
|
274
|
+
# Exchange rate used to convert source currency amounts to customer currency amounts
|
|
275
|
+
attr_reader :fx_rate
|
|
276
|
+
# Creation currency of the CheckoutSession before localization
|
|
277
|
+
attr_reader :source_currency
|
|
278
|
+
|
|
279
|
+
def self.inner_class_types
|
|
280
|
+
@inner_class_types = {}
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
def self.field_remappings
|
|
284
|
+
@field_remappings = {}
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
class CustomField < Stripe::StripeObject
|
|
289
|
+
class Dropdown < Stripe::StripeObject
|
|
290
|
+
class Option < Stripe::StripeObject
|
|
291
|
+
# The label for the option, displayed to the customer. Up to 100 characters.
|
|
292
|
+
attr_reader :label
|
|
293
|
+
# The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
|
|
294
|
+
attr_reader :value
|
|
295
|
+
|
|
296
|
+
def self.inner_class_types
|
|
297
|
+
@inner_class_types = {}
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
def self.field_remappings
|
|
301
|
+
@field_remappings = {}
|
|
302
|
+
end
|
|
303
|
+
end
|
|
304
|
+
# The value that will pre-fill on the payment page.
|
|
305
|
+
attr_reader :default_value
|
|
306
|
+
# The options available for the customer to select. Up to 200 options allowed.
|
|
307
|
+
attr_reader :options
|
|
308
|
+
# The option selected by the customer. This will be the `value` for the option.
|
|
309
|
+
attr_reader :value
|
|
310
|
+
|
|
311
|
+
def self.inner_class_types
|
|
312
|
+
@inner_class_types = { options: Option }
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
def self.field_remappings
|
|
316
|
+
@field_remappings = {}
|
|
317
|
+
end
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
class Label < Stripe::StripeObject
|
|
321
|
+
# Custom text for the label, displayed to the customer. Up to 50 characters.
|
|
322
|
+
attr_reader :custom
|
|
323
|
+
# The type of the label.
|
|
324
|
+
attr_reader :type
|
|
325
|
+
|
|
326
|
+
def self.inner_class_types
|
|
327
|
+
@inner_class_types = {}
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
def self.field_remappings
|
|
331
|
+
@field_remappings = {}
|
|
332
|
+
end
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
class Numeric < Stripe::StripeObject
|
|
336
|
+
# The value that will pre-fill the field on the payment page.
|
|
337
|
+
attr_reader :default_value
|
|
338
|
+
# The maximum character length constraint for the customer's input.
|
|
339
|
+
attr_reader :maximum_length
|
|
340
|
+
# The minimum character length requirement for the customer's input.
|
|
341
|
+
attr_reader :minimum_length
|
|
342
|
+
# The value entered by the customer, containing only digits.
|
|
343
|
+
attr_reader :value
|
|
344
|
+
|
|
345
|
+
def self.inner_class_types
|
|
346
|
+
@inner_class_types = {}
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
def self.field_remappings
|
|
350
|
+
@field_remappings = {}
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
class Text < Stripe::StripeObject
|
|
355
|
+
# The value that will pre-fill the field on the payment page.
|
|
356
|
+
attr_reader :default_value
|
|
357
|
+
# The maximum character length constraint for the customer's input.
|
|
358
|
+
attr_reader :maximum_length
|
|
359
|
+
# The minimum character length requirement for the customer's input.
|
|
360
|
+
attr_reader :minimum_length
|
|
361
|
+
# The value entered by the customer.
|
|
362
|
+
attr_reader :value
|
|
363
|
+
|
|
364
|
+
def self.inner_class_types
|
|
365
|
+
@inner_class_types = {}
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
def self.field_remappings
|
|
369
|
+
@field_remappings = {}
|
|
370
|
+
end
|
|
371
|
+
end
|
|
372
|
+
# Attribute for field dropdown
|
|
373
|
+
attr_reader :dropdown
|
|
374
|
+
# String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
|
|
375
|
+
attr_reader :key
|
|
376
|
+
# Attribute for field label
|
|
377
|
+
attr_reader :label
|
|
378
|
+
# Attribute for field numeric
|
|
379
|
+
attr_reader :numeric
|
|
380
|
+
# Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
|
|
381
|
+
attr_reader :optional
|
|
382
|
+
# Attribute for field text
|
|
383
|
+
attr_reader :text
|
|
384
|
+
# The type of the field.
|
|
385
|
+
attr_reader :type
|
|
386
|
+
|
|
387
|
+
def self.inner_class_types
|
|
388
|
+
@inner_class_types = { dropdown: Dropdown, label: Label, numeric: Numeric, text: Text }
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
def self.field_remappings
|
|
392
|
+
@field_remappings = {}
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
class CustomText < Stripe::StripeObject
|
|
397
|
+
class AfterSubmit < Stripe::StripeObject
|
|
398
|
+
# Text may be up to 1200 characters in length.
|
|
399
|
+
attr_reader :message
|
|
400
|
+
|
|
401
|
+
def self.inner_class_types
|
|
402
|
+
@inner_class_types = {}
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
def self.field_remappings
|
|
406
|
+
@field_remappings = {}
|
|
407
|
+
end
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
class ShippingAddress < Stripe::StripeObject
|
|
411
|
+
# Text may be up to 1200 characters in length.
|
|
412
|
+
attr_reader :message
|
|
413
|
+
|
|
414
|
+
def self.inner_class_types
|
|
415
|
+
@inner_class_types = {}
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
def self.field_remappings
|
|
419
|
+
@field_remappings = {}
|
|
420
|
+
end
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
class Submit < Stripe::StripeObject
|
|
424
|
+
# Text may be up to 1200 characters in length.
|
|
425
|
+
attr_reader :message
|
|
426
|
+
|
|
427
|
+
def self.inner_class_types
|
|
428
|
+
@inner_class_types = {}
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
def self.field_remappings
|
|
432
|
+
@field_remappings = {}
|
|
433
|
+
end
|
|
434
|
+
end
|
|
435
|
+
|
|
436
|
+
class TermsOfServiceAcceptance < Stripe::StripeObject
|
|
437
|
+
# Text may be up to 1200 characters in length.
|
|
438
|
+
attr_reader :message
|
|
439
|
+
|
|
440
|
+
def self.inner_class_types
|
|
441
|
+
@inner_class_types = {}
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
def self.field_remappings
|
|
445
|
+
@field_remappings = {}
|
|
446
|
+
end
|
|
447
|
+
end
|
|
448
|
+
# Custom text that should be displayed after the payment confirmation button.
|
|
449
|
+
attr_reader :after_submit
|
|
450
|
+
# Custom text that should be displayed alongside shipping address collection.
|
|
451
|
+
attr_reader :shipping_address
|
|
452
|
+
# Custom text that should be displayed alongside the payment confirmation button.
|
|
453
|
+
attr_reader :submit
|
|
454
|
+
# Custom text that should be displayed in place of the default terms of service agreement text.
|
|
455
|
+
attr_reader :terms_of_service_acceptance
|
|
456
|
+
|
|
457
|
+
def self.inner_class_types
|
|
458
|
+
@inner_class_types = {
|
|
459
|
+
after_submit: AfterSubmit,
|
|
460
|
+
shipping_address: ShippingAddress,
|
|
461
|
+
submit: Submit,
|
|
462
|
+
terms_of_service_acceptance: TermsOfServiceAcceptance,
|
|
463
|
+
}
|
|
464
|
+
end
|
|
465
|
+
|
|
466
|
+
def self.field_remappings
|
|
467
|
+
@field_remappings = {}
|
|
468
|
+
end
|
|
469
|
+
end
|
|
470
|
+
|
|
471
|
+
class CustomerDetails < Stripe::StripeObject
|
|
472
|
+
class Address < Stripe::StripeObject
|
|
473
|
+
# City, district, suburb, town, or village.
|
|
474
|
+
attr_reader :city
|
|
475
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
476
|
+
attr_reader :country
|
|
477
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
478
|
+
attr_reader :line1
|
|
479
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
480
|
+
attr_reader :line2
|
|
481
|
+
# ZIP or postal code.
|
|
482
|
+
attr_reader :postal_code
|
|
483
|
+
# State, county, province, or region.
|
|
484
|
+
attr_reader :state
|
|
485
|
+
|
|
486
|
+
def self.inner_class_types
|
|
487
|
+
@inner_class_types = {}
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
def self.field_remappings
|
|
491
|
+
@field_remappings = {}
|
|
492
|
+
end
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
class TaxId < Stripe::StripeObject
|
|
496
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
|
497
|
+
attr_reader :type
|
|
498
|
+
# The value of the tax ID.
|
|
499
|
+
attr_reader :value
|
|
500
|
+
|
|
501
|
+
def self.inner_class_types
|
|
502
|
+
@inner_class_types = {}
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
def self.field_remappings
|
|
506
|
+
@field_remappings = {}
|
|
507
|
+
end
|
|
508
|
+
end
|
|
509
|
+
# The customer's address after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022.
|
|
510
|
+
attr_reader :address
|
|
511
|
+
# The customer's business name after a completed Checkout Session.
|
|
512
|
+
attr_reader :business_name
|
|
513
|
+
# The email associated with the Customer, if one exists, on the Checkout Session after a completed Checkout Session or at time of session expiry.
|
|
514
|
+
# Otherwise, if the customer has consented to promotional content, this value is the most recent valid email provided by the customer on the Checkout form.
|
|
515
|
+
attr_reader :email
|
|
516
|
+
# The customer's individual name after a completed Checkout Session.
|
|
517
|
+
attr_reader :individual_name
|
|
518
|
+
# The customer's name after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022.
|
|
519
|
+
attr_reader :name
|
|
520
|
+
# The customer's phone number after a completed Checkout Session.
|
|
521
|
+
attr_reader :phone
|
|
522
|
+
# The customer’s tax exempt status after a completed Checkout Session.
|
|
523
|
+
attr_reader :tax_exempt
|
|
524
|
+
# The customer’s tax IDs after a completed Checkout Session.
|
|
525
|
+
attr_reader :tax_ids
|
|
526
|
+
|
|
527
|
+
def self.inner_class_types
|
|
528
|
+
@inner_class_types = { address: Address, tax_ids: TaxId }
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
def self.field_remappings
|
|
532
|
+
@field_remappings = {}
|
|
533
|
+
end
|
|
534
|
+
end
|
|
535
|
+
|
|
536
|
+
class Discount < Stripe::StripeObject
|
|
537
|
+
# Coupon attached to the Checkout Session.
|
|
538
|
+
attr_reader :coupon
|
|
539
|
+
# Promotion code attached to the Checkout Session.
|
|
540
|
+
attr_reader :promotion_code
|
|
541
|
+
|
|
542
|
+
def self.inner_class_types
|
|
543
|
+
@inner_class_types = {}
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
def self.field_remappings
|
|
547
|
+
@field_remappings = {}
|
|
548
|
+
end
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
class InvoiceCreation < Stripe::StripeObject
|
|
552
|
+
class InvoiceData < Stripe::StripeObject
|
|
553
|
+
class CustomField < Stripe::StripeObject
|
|
554
|
+
# The name of the custom field.
|
|
555
|
+
attr_reader :name
|
|
556
|
+
# The value of the custom field.
|
|
557
|
+
attr_reader :value
|
|
558
|
+
|
|
559
|
+
def self.inner_class_types
|
|
560
|
+
@inner_class_types = {}
|
|
561
|
+
end
|
|
562
|
+
|
|
563
|
+
def self.field_remappings
|
|
564
|
+
@field_remappings = {}
|
|
565
|
+
end
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
class Issuer < Stripe::StripeObject
|
|
569
|
+
# The connected account being referenced when `type` is `account`.
|
|
570
|
+
attr_reader :account
|
|
571
|
+
# Type of the account referenced.
|
|
572
|
+
attr_reader :type
|
|
573
|
+
|
|
574
|
+
def self.inner_class_types
|
|
575
|
+
@inner_class_types = {}
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
def self.field_remappings
|
|
579
|
+
@field_remappings = {}
|
|
580
|
+
end
|
|
581
|
+
end
|
|
582
|
+
|
|
583
|
+
class RenderingOptions < Stripe::StripeObject
|
|
584
|
+
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
|
585
|
+
attr_reader :amount_tax_display
|
|
586
|
+
# ID of the invoice rendering template to be used for the generated invoice.
|
|
587
|
+
attr_reader :template
|
|
588
|
+
|
|
589
|
+
def self.inner_class_types
|
|
590
|
+
@inner_class_types = {}
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
def self.field_remappings
|
|
594
|
+
@field_remappings = {}
|
|
595
|
+
end
|
|
596
|
+
end
|
|
597
|
+
# The account tax IDs associated with the invoice.
|
|
598
|
+
attr_reader :account_tax_ids
|
|
599
|
+
# Custom fields displayed on the invoice.
|
|
600
|
+
attr_reader :custom_fields
|
|
601
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
602
|
+
attr_reader :description
|
|
603
|
+
# Footer displayed on the invoice.
|
|
604
|
+
attr_reader :footer
|
|
605
|
+
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
606
|
+
attr_reader :issuer
|
|
607
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
608
|
+
attr_reader :metadata
|
|
609
|
+
# Options for invoice PDF rendering.
|
|
610
|
+
attr_reader :rendering_options
|
|
611
|
+
|
|
612
|
+
def self.inner_class_types
|
|
613
|
+
@inner_class_types = {
|
|
614
|
+
custom_fields: CustomField,
|
|
615
|
+
issuer: Issuer,
|
|
616
|
+
rendering_options: RenderingOptions,
|
|
617
|
+
}
|
|
618
|
+
end
|
|
619
|
+
|
|
620
|
+
def self.field_remappings
|
|
621
|
+
@field_remappings = {}
|
|
622
|
+
end
|
|
623
|
+
end
|
|
624
|
+
# Indicates whether invoice creation is enabled for the Checkout Session.
|
|
625
|
+
attr_reader :enabled
|
|
626
|
+
# Attribute for field invoice_data
|
|
627
|
+
attr_reader :invoice_data
|
|
628
|
+
|
|
629
|
+
def self.inner_class_types
|
|
630
|
+
@inner_class_types = { invoice_data: InvoiceData }
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
def self.field_remappings
|
|
634
|
+
@field_remappings = {}
|
|
635
|
+
end
|
|
636
|
+
end
|
|
637
|
+
|
|
638
|
+
class NameCollection < Stripe::StripeObject
|
|
639
|
+
class Business < Stripe::StripeObject
|
|
640
|
+
# Indicates whether business name collection is enabled for the session
|
|
641
|
+
attr_reader :enabled
|
|
642
|
+
# Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
|
|
643
|
+
attr_reader :optional
|
|
644
|
+
|
|
645
|
+
def self.inner_class_types
|
|
646
|
+
@inner_class_types = {}
|
|
647
|
+
end
|
|
648
|
+
|
|
649
|
+
def self.field_remappings
|
|
650
|
+
@field_remappings = {}
|
|
651
|
+
end
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
class Individual < Stripe::StripeObject
|
|
655
|
+
# Indicates whether individual name collection is enabled for the session
|
|
656
|
+
attr_reader :enabled
|
|
657
|
+
# Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
|
|
658
|
+
attr_reader :optional
|
|
659
|
+
|
|
660
|
+
def self.inner_class_types
|
|
661
|
+
@inner_class_types = {}
|
|
662
|
+
end
|
|
663
|
+
|
|
664
|
+
def self.field_remappings
|
|
665
|
+
@field_remappings = {}
|
|
666
|
+
end
|
|
667
|
+
end
|
|
668
|
+
# Attribute for field business
|
|
669
|
+
attr_reader :business
|
|
670
|
+
# Attribute for field individual
|
|
671
|
+
attr_reader :individual
|
|
672
|
+
|
|
673
|
+
def self.inner_class_types
|
|
674
|
+
@inner_class_types = { business: Business, individual: Individual }
|
|
675
|
+
end
|
|
676
|
+
|
|
677
|
+
def self.field_remappings
|
|
678
|
+
@field_remappings = {}
|
|
679
|
+
end
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
class OptionalItem < Stripe::StripeObject
|
|
683
|
+
class AdjustableQuantity < Stripe::StripeObject
|
|
684
|
+
# Set to true if the quantity can be adjusted to any non-negative integer.
|
|
685
|
+
attr_reader :enabled
|
|
686
|
+
# The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
|
|
687
|
+
attr_reader :maximum
|
|
688
|
+
# The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
|
|
689
|
+
attr_reader :minimum
|
|
690
|
+
|
|
691
|
+
def self.inner_class_types
|
|
692
|
+
@inner_class_types = {}
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
def self.field_remappings
|
|
696
|
+
@field_remappings = {}
|
|
697
|
+
end
|
|
698
|
+
end
|
|
699
|
+
# Attribute for field adjustable_quantity
|
|
700
|
+
attr_reader :adjustable_quantity
|
|
701
|
+
# Attribute for field price
|
|
702
|
+
attr_reader :price
|
|
703
|
+
# Attribute for field quantity
|
|
704
|
+
attr_reader :quantity
|
|
705
|
+
|
|
706
|
+
def self.inner_class_types
|
|
707
|
+
@inner_class_types = { adjustable_quantity: AdjustableQuantity }
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
def self.field_remappings
|
|
711
|
+
@field_remappings = {}
|
|
712
|
+
end
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
class PaymentMethodConfigurationDetails < Stripe::StripeObject
|
|
716
|
+
# ID of the payment method configuration used.
|
|
717
|
+
attr_reader :id
|
|
718
|
+
# ID of the parent payment method configuration used.
|
|
719
|
+
attr_reader :parent
|
|
720
|
+
|
|
721
|
+
def self.inner_class_types
|
|
722
|
+
@inner_class_types = {}
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
def self.field_remappings
|
|
726
|
+
@field_remappings = {}
|
|
727
|
+
end
|
|
728
|
+
end
|
|
729
|
+
|
|
730
|
+
class PaymentMethodOptions < Stripe::StripeObject
|
|
731
|
+
class AcssDebit < Stripe::StripeObject
|
|
732
|
+
class MandateOptions < Stripe::StripeObject
|
|
733
|
+
# A URL for custom mandate text
|
|
734
|
+
attr_reader :custom_mandate_url
|
|
735
|
+
# List of Stripe products where this mandate can be selected automatically. Returned when the Session is in `setup` mode.
|
|
736
|
+
attr_reader :default_for
|
|
737
|
+
# Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
|
|
738
|
+
attr_reader :interval_description
|
|
739
|
+
# Payment schedule for the mandate.
|
|
740
|
+
attr_reader :payment_schedule
|
|
741
|
+
# Transaction type of the mandate.
|
|
742
|
+
attr_reader :transaction_type
|
|
743
|
+
|
|
744
|
+
def self.inner_class_types
|
|
745
|
+
@inner_class_types = {}
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
def self.field_remappings
|
|
749
|
+
@field_remappings = {}
|
|
750
|
+
end
|
|
751
|
+
end
|
|
752
|
+
# Currency supported by the bank account. Returned when the Session is in `setup` mode.
|
|
753
|
+
attr_reader :currency
|
|
754
|
+
# Attribute for field mandate_options
|
|
755
|
+
attr_reader :mandate_options
|
|
756
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
757
|
+
#
|
|
758
|
+
# 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.
|
|
759
|
+
#
|
|
760
|
+
# 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.
|
|
761
|
+
#
|
|
762
|
+
# 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).
|
|
763
|
+
attr_reader :setup_future_usage
|
|
764
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
765
|
+
attr_reader :target_date
|
|
766
|
+
# Bank account verification method.
|
|
767
|
+
attr_reader :verification_method
|
|
768
|
+
|
|
769
|
+
def self.inner_class_types
|
|
770
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
def self.field_remappings
|
|
774
|
+
@field_remappings = {}
|
|
775
|
+
end
|
|
776
|
+
end
|
|
777
|
+
|
|
778
|
+
class Affirm < Stripe::StripeObject
|
|
779
|
+
# Controls when the funds will be captured from the customer's account.
|
|
780
|
+
attr_reader :capture_method
|
|
781
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
782
|
+
#
|
|
783
|
+
# 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.
|
|
784
|
+
#
|
|
785
|
+
# 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.
|
|
786
|
+
#
|
|
787
|
+
# 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).
|
|
788
|
+
attr_reader :setup_future_usage
|
|
789
|
+
|
|
790
|
+
def self.inner_class_types
|
|
791
|
+
@inner_class_types = {}
|
|
792
|
+
end
|
|
793
|
+
|
|
794
|
+
def self.field_remappings
|
|
795
|
+
@field_remappings = {}
|
|
796
|
+
end
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
class AfterpayClearpay < Stripe::StripeObject
|
|
800
|
+
# Controls when the funds will be captured from the customer's account.
|
|
801
|
+
attr_reader :capture_method
|
|
802
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
803
|
+
#
|
|
804
|
+
# 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.
|
|
805
|
+
#
|
|
806
|
+
# 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.
|
|
807
|
+
#
|
|
808
|
+
# 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).
|
|
809
|
+
attr_reader :setup_future_usage
|
|
810
|
+
|
|
811
|
+
def self.inner_class_types
|
|
812
|
+
@inner_class_types = {}
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
def self.field_remappings
|
|
816
|
+
@field_remappings = {}
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
class Alipay < Stripe::StripeObject
|
|
821
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
822
|
+
#
|
|
823
|
+
# 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.
|
|
824
|
+
#
|
|
825
|
+
# 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.
|
|
826
|
+
#
|
|
827
|
+
# 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).
|
|
828
|
+
attr_reader :setup_future_usage
|
|
829
|
+
|
|
830
|
+
def self.inner_class_types
|
|
831
|
+
@inner_class_types = {}
|
|
832
|
+
end
|
|
833
|
+
|
|
834
|
+
def self.field_remappings
|
|
835
|
+
@field_remappings = {}
|
|
836
|
+
end
|
|
837
|
+
end
|
|
838
|
+
|
|
839
|
+
class Alma < Stripe::StripeObject
|
|
840
|
+
# Controls when the funds will be captured from the customer's account.
|
|
841
|
+
attr_reader :capture_method
|
|
842
|
+
|
|
843
|
+
def self.inner_class_types
|
|
844
|
+
@inner_class_types = {}
|
|
845
|
+
end
|
|
846
|
+
|
|
847
|
+
def self.field_remappings
|
|
848
|
+
@field_remappings = {}
|
|
849
|
+
end
|
|
850
|
+
end
|
|
851
|
+
|
|
852
|
+
class AmazonPay < Stripe::StripeObject
|
|
853
|
+
# Controls when the funds will be captured from the customer's account.
|
|
854
|
+
attr_reader :capture_method
|
|
855
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
856
|
+
#
|
|
857
|
+
# 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.
|
|
858
|
+
#
|
|
859
|
+
# 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.
|
|
860
|
+
#
|
|
861
|
+
# 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).
|
|
862
|
+
attr_reader :setup_future_usage
|
|
863
|
+
|
|
864
|
+
def self.inner_class_types
|
|
865
|
+
@inner_class_types = {}
|
|
866
|
+
end
|
|
867
|
+
|
|
868
|
+
def self.field_remappings
|
|
869
|
+
@field_remappings = {}
|
|
870
|
+
end
|
|
871
|
+
end
|
|
872
|
+
|
|
873
|
+
class AuBecsDebit < Stripe::StripeObject
|
|
874
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
875
|
+
#
|
|
876
|
+
# 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.
|
|
877
|
+
#
|
|
878
|
+
# 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.
|
|
879
|
+
#
|
|
880
|
+
# 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).
|
|
881
|
+
attr_reader :setup_future_usage
|
|
882
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
883
|
+
attr_reader :target_date
|
|
884
|
+
|
|
885
|
+
def self.inner_class_types
|
|
886
|
+
@inner_class_types = {}
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
def self.field_remappings
|
|
890
|
+
@field_remappings = {}
|
|
891
|
+
end
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
class BacsDebit < Stripe::StripeObject
|
|
895
|
+
class MandateOptions < Stripe::StripeObject
|
|
896
|
+
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
|
|
897
|
+
attr_reader :reference_prefix
|
|
898
|
+
|
|
899
|
+
def self.inner_class_types
|
|
900
|
+
@inner_class_types = {}
|
|
901
|
+
end
|
|
902
|
+
|
|
903
|
+
def self.field_remappings
|
|
904
|
+
@field_remappings = {}
|
|
905
|
+
end
|
|
906
|
+
end
|
|
907
|
+
# Attribute for field mandate_options
|
|
908
|
+
attr_reader :mandate_options
|
|
909
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
910
|
+
#
|
|
911
|
+
# 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.
|
|
912
|
+
#
|
|
913
|
+
# 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.
|
|
914
|
+
#
|
|
915
|
+
# 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).
|
|
916
|
+
attr_reader :setup_future_usage
|
|
917
|
+
# 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.
|
|
918
|
+
attr_reader :target_date
|
|
919
|
+
|
|
920
|
+
def self.inner_class_types
|
|
921
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
|
922
|
+
end
|
|
923
|
+
|
|
924
|
+
def self.field_remappings
|
|
925
|
+
@field_remappings = {}
|
|
926
|
+
end
|
|
927
|
+
end
|
|
928
|
+
|
|
929
|
+
class Bancontact < Stripe::StripeObject
|
|
930
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
931
|
+
#
|
|
932
|
+
# 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.
|
|
933
|
+
#
|
|
934
|
+
# 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.
|
|
935
|
+
#
|
|
936
|
+
# 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).
|
|
937
|
+
attr_reader :setup_future_usage
|
|
938
|
+
|
|
939
|
+
def self.inner_class_types
|
|
940
|
+
@inner_class_types = {}
|
|
941
|
+
end
|
|
942
|
+
|
|
943
|
+
def self.field_remappings
|
|
944
|
+
@field_remappings = {}
|
|
945
|
+
end
|
|
946
|
+
end
|
|
947
|
+
|
|
948
|
+
class Billie < Stripe::StripeObject
|
|
949
|
+
# Controls when the funds will be captured from the customer's account.
|
|
950
|
+
attr_reader :capture_method
|
|
951
|
+
|
|
952
|
+
def self.inner_class_types
|
|
953
|
+
@inner_class_types = {}
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
def self.field_remappings
|
|
957
|
+
@field_remappings = {}
|
|
958
|
+
end
|
|
959
|
+
end
|
|
960
|
+
|
|
961
|
+
class Boleto < Stripe::StripeObject
|
|
962
|
+
# The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time.
|
|
963
|
+
attr_reader :expires_after_days
|
|
964
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
965
|
+
#
|
|
966
|
+
# 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.
|
|
967
|
+
#
|
|
968
|
+
# 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.
|
|
969
|
+
#
|
|
970
|
+
# 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).
|
|
971
|
+
attr_reader :setup_future_usage
|
|
972
|
+
|
|
973
|
+
def self.inner_class_types
|
|
974
|
+
@inner_class_types = {}
|
|
975
|
+
end
|
|
976
|
+
|
|
977
|
+
def self.field_remappings
|
|
978
|
+
@field_remappings = {}
|
|
979
|
+
end
|
|
980
|
+
end
|
|
981
|
+
|
|
982
|
+
class Card < Stripe::StripeObject
|
|
983
|
+
class Installments < Stripe::StripeObject
|
|
984
|
+
# Indicates if installments are enabled
|
|
985
|
+
attr_reader :enabled
|
|
986
|
+
|
|
987
|
+
def self.inner_class_types
|
|
988
|
+
@inner_class_types = {}
|
|
989
|
+
end
|
|
990
|
+
|
|
991
|
+
def self.field_remappings
|
|
992
|
+
@field_remappings = {}
|
|
993
|
+
end
|
|
994
|
+
end
|
|
995
|
+
|
|
996
|
+
class Restrictions < Stripe::StripeObject
|
|
997
|
+
# Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session.
|
|
998
|
+
attr_reader :brands_blocked
|
|
999
|
+
|
|
1000
|
+
def self.inner_class_types
|
|
1001
|
+
@inner_class_types = {}
|
|
1002
|
+
end
|
|
1003
|
+
|
|
1004
|
+
def self.field_remappings
|
|
1005
|
+
@field_remappings = {}
|
|
1006
|
+
end
|
|
1007
|
+
end
|
|
1008
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1009
|
+
attr_reader :capture_method
|
|
1010
|
+
# Attribute for field installments
|
|
1011
|
+
attr_reader :installments
|
|
1012
|
+
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
|
1013
|
+
attr_reader :request_extended_authorization
|
|
1014
|
+
# Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
|
|
1015
|
+
attr_reader :request_incremental_authorization
|
|
1016
|
+
# Request ability to make [multiple captures](/payments/multicapture) for this CheckoutSession.
|
|
1017
|
+
attr_reader :request_multicapture
|
|
1018
|
+
# Request ability to [overcapture](/payments/overcapture) for this CheckoutSession.
|
|
1019
|
+
attr_reader :request_overcapture
|
|
1020
|
+
# We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/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://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
1021
|
+
attr_reader :request_three_d_secure
|
|
1022
|
+
# Attribute for field restrictions
|
|
1023
|
+
attr_reader :restrictions
|
|
1024
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1025
|
+
#
|
|
1026
|
+
# 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.
|
|
1027
|
+
#
|
|
1028
|
+
# 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.
|
|
1029
|
+
#
|
|
1030
|
+
# 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).
|
|
1031
|
+
attr_reader :setup_future_usage
|
|
1032
|
+
# Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters.
|
|
1033
|
+
attr_reader :statement_descriptor_suffix_kana
|
|
1034
|
+
# Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
|
|
1035
|
+
attr_reader :statement_descriptor_suffix_kanji
|
|
1036
|
+
|
|
1037
|
+
def self.inner_class_types
|
|
1038
|
+
@inner_class_types = { installments: Installments, restrictions: Restrictions }
|
|
1039
|
+
end
|
|
1040
|
+
|
|
1041
|
+
def self.field_remappings
|
|
1042
|
+
@field_remappings = {}
|
|
1043
|
+
end
|
|
1044
|
+
end
|
|
1045
|
+
|
|
1046
|
+
class Cashapp < Stripe::StripeObject
|
|
1047
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1048
|
+
attr_reader :capture_method
|
|
1049
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1050
|
+
#
|
|
1051
|
+
# 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.
|
|
1052
|
+
#
|
|
1053
|
+
# 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.
|
|
1054
|
+
#
|
|
1055
|
+
# 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).
|
|
1056
|
+
attr_reader :setup_future_usage
|
|
1057
|
+
|
|
1058
|
+
def self.inner_class_types
|
|
1059
|
+
@inner_class_types = {}
|
|
1060
|
+
end
|
|
1061
|
+
|
|
1062
|
+
def self.field_remappings
|
|
1063
|
+
@field_remappings = {}
|
|
1064
|
+
end
|
|
1065
|
+
end
|
|
1066
|
+
|
|
1067
|
+
class CustomerBalance < Stripe::StripeObject
|
|
1068
|
+
class BankTransfer < Stripe::StripeObject
|
|
1069
|
+
class EuBankTransfer < Stripe::StripeObject
|
|
1070
|
+
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
|
1071
|
+
attr_reader :country
|
|
1072
|
+
|
|
1073
|
+
def self.inner_class_types
|
|
1074
|
+
@inner_class_types = {}
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1077
|
+
def self.field_remappings
|
|
1078
|
+
@field_remappings = {}
|
|
1079
|
+
end
|
|
1080
|
+
end
|
|
1081
|
+
# Attribute for field eu_bank_transfer
|
|
1082
|
+
attr_reader :eu_bank_transfer
|
|
1083
|
+
# List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
|
|
1084
|
+
#
|
|
1085
|
+
# Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
|
|
1086
|
+
attr_reader :requested_address_types
|
|
1087
|
+
# The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
|
|
1088
|
+
attr_reader :type
|
|
1089
|
+
|
|
1090
|
+
def self.inner_class_types
|
|
1091
|
+
@inner_class_types = { eu_bank_transfer: EuBankTransfer }
|
|
1092
|
+
end
|
|
1093
|
+
|
|
1094
|
+
def self.field_remappings
|
|
1095
|
+
@field_remappings = {}
|
|
1096
|
+
end
|
|
1097
|
+
end
|
|
1098
|
+
# Attribute for field bank_transfer
|
|
1099
|
+
attr_reader :bank_transfer
|
|
1100
|
+
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
|
1101
|
+
attr_reader :funding_type
|
|
1102
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1103
|
+
#
|
|
1104
|
+
# 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.
|
|
1105
|
+
#
|
|
1106
|
+
# 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.
|
|
1107
|
+
#
|
|
1108
|
+
# 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).
|
|
1109
|
+
attr_reader :setup_future_usage
|
|
1110
|
+
|
|
1111
|
+
def self.inner_class_types
|
|
1112
|
+
@inner_class_types = { bank_transfer: BankTransfer }
|
|
1113
|
+
end
|
|
1114
|
+
|
|
1115
|
+
def self.field_remappings
|
|
1116
|
+
@field_remappings = {}
|
|
1117
|
+
end
|
|
1118
|
+
end
|
|
1119
|
+
|
|
1120
|
+
class Eps < Stripe::StripeObject
|
|
1121
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1122
|
+
#
|
|
1123
|
+
# 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.
|
|
1124
|
+
#
|
|
1125
|
+
# 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.
|
|
1126
|
+
#
|
|
1127
|
+
# 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).
|
|
1128
|
+
attr_reader :setup_future_usage
|
|
1129
|
+
|
|
1130
|
+
def self.inner_class_types
|
|
1131
|
+
@inner_class_types = {}
|
|
1132
|
+
end
|
|
1133
|
+
|
|
1134
|
+
def self.field_remappings
|
|
1135
|
+
@field_remappings = {}
|
|
1136
|
+
end
|
|
1137
|
+
end
|
|
1138
|
+
|
|
1139
|
+
class Fpx < Stripe::StripeObject
|
|
1140
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1141
|
+
#
|
|
1142
|
+
# 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.
|
|
1143
|
+
#
|
|
1144
|
+
# 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.
|
|
1145
|
+
#
|
|
1146
|
+
# 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).
|
|
1147
|
+
attr_reader :setup_future_usage
|
|
1148
|
+
|
|
1149
|
+
def self.inner_class_types
|
|
1150
|
+
@inner_class_types = {}
|
|
1151
|
+
end
|
|
1152
|
+
|
|
1153
|
+
def self.field_remappings
|
|
1154
|
+
@field_remappings = {}
|
|
1155
|
+
end
|
|
1156
|
+
end
|
|
1157
|
+
|
|
1158
|
+
class Giropay < Stripe::StripeObject
|
|
1159
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1160
|
+
#
|
|
1161
|
+
# 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.
|
|
1162
|
+
#
|
|
1163
|
+
# 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.
|
|
1164
|
+
#
|
|
1165
|
+
# 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).
|
|
1166
|
+
attr_reader :setup_future_usage
|
|
1167
|
+
|
|
1168
|
+
def self.inner_class_types
|
|
1169
|
+
@inner_class_types = {}
|
|
1170
|
+
end
|
|
1171
|
+
|
|
1172
|
+
def self.field_remappings
|
|
1173
|
+
@field_remappings = {}
|
|
1174
|
+
end
|
|
1175
|
+
end
|
|
1176
|
+
|
|
1177
|
+
class Grabpay < Stripe::StripeObject
|
|
1178
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1179
|
+
#
|
|
1180
|
+
# 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
|
+
#
|
|
1182
|
+
# 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.
|
|
1183
|
+
#
|
|
1184
|
+
# 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).
|
|
1185
|
+
attr_reader :setup_future_usage
|
|
1186
|
+
|
|
1187
|
+
def self.inner_class_types
|
|
1188
|
+
@inner_class_types = {}
|
|
1189
|
+
end
|
|
1190
|
+
|
|
1191
|
+
def self.field_remappings
|
|
1192
|
+
@field_remappings = {}
|
|
1193
|
+
end
|
|
1194
|
+
end
|
|
1195
|
+
|
|
1196
|
+
class Ideal < Stripe::StripeObject
|
|
1197
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1198
|
+
#
|
|
1199
|
+
# 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.
|
|
1200
|
+
#
|
|
1201
|
+
# 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.
|
|
1202
|
+
#
|
|
1203
|
+
# 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).
|
|
1204
|
+
attr_reader :setup_future_usage
|
|
1205
|
+
|
|
1206
|
+
def self.inner_class_types
|
|
1207
|
+
@inner_class_types = {}
|
|
1208
|
+
end
|
|
1209
|
+
|
|
1210
|
+
def self.field_remappings
|
|
1211
|
+
@field_remappings = {}
|
|
1212
|
+
end
|
|
1213
|
+
end
|
|
1214
|
+
|
|
1215
|
+
class KakaoPay < Stripe::StripeObject
|
|
1216
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1217
|
+
attr_reader :capture_method
|
|
1218
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1219
|
+
#
|
|
1220
|
+
# 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.
|
|
1221
|
+
#
|
|
1222
|
+
# 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.
|
|
1223
|
+
#
|
|
1224
|
+
# 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).
|
|
1225
|
+
attr_reader :setup_future_usage
|
|
1226
|
+
|
|
1227
|
+
def self.inner_class_types
|
|
1228
|
+
@inner_class_types = {}
|
|
1229
|
+
end
|
|
1230
|
+
|
|
1231
|
+
def self.field_remappings
|
|
1232
|
+
@field_remappings = {}
|
|
1233
|
+
end
|
|
1234
|
+
end
|
|
1235
|
+
|
|
1236
|
+
class Klarna < Stripe::StripeObject
|
|
1237
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1238
|
+
attr_reader :capture_method
|
|
1239
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1240
|
+
#
|
|
1241
|
+
# 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.
|
|
1242
|
+
#
|
|
1243
|
+
# 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.
|
|
1244
|
+
#
|
|
1245
|
+
# 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).
|
|
1246
|
+
attr_reader :setup_future_usage
|
|
1247
|
+
|
|
1248
|
+
def self.inner_class_types
|
|
1249
|
+
@inner_class_types = {}
|
|
1250
|
+
end
|
|
1251
|
+
|
|
1252
|
+
def self.field_remappings
|
|
1253
|
+
@field_remappings = {}
|
|
1254
|
+
end
|
|
1255
|
+
end
|
|
1256
|
+
|
|
1257
|
+
class Konbini < Stripe::StripeObject
|
|
1258
|
+
# The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST.
|
|
1259
|
+
attr_reader :expires_after_days
|
|
1260
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1261
|
+
#
|
|
1262
|
+
# 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.
|
|
1263
|
+
#
|
|
1264
|
+
# 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.
|
|
1265
|
+
#
|
|
1266
|
+
# 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).
|
|
1267
|
+
attr_reader :setup_future_usage
|
|
1268
|
+
|
|
1269
|
+
def self.inner_class_types
|
|
1270
|
+
@inner_class_types = {}
|
|
1271
|
+
end
|
|
1272
|
+
|
|
1273
|
+
def self.field_remappings
|
|
1274
|
+
@field_remappings = {}
|
|
1275
|
+
end
|
|
1276
|
+
end
|
|
1277
|
+
|
|
1278
|
+
class KrCard < Stripe::StripeObject
|
|
1279
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1280
|
+
attr_reader :capture_method
|
|
1281
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1282
|
+
#
|
|
1283
|
+
# 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.
|
|
1284
|
+
#
|
|
1285
|
+
# 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.
|
|
1286
|
+
#
|
|
1287
|
+
# 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).
|
|
1288
|
+
attr_reader :setup_future_usage
|
|
1289
|
+
|
|
1290
|
+
def self.inner_class_types
|
|
1291
|
+
@inner_class_types = {}
|
|
1292
|
+
end
|
|
1293
|
+
|
|
1294
|
+
def self.field_remappings
|
|
1295
|
+
@field_remappings = {}
|
|
1296
|
+
end
|
|
1297
|
+
end
|
|
1298
|
+
|
|
1299
|
+
class Link < Stripe::StripeObject
|
|
1300
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1301
|
+
attr_reader :capture_method
|
|
1302
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1303
|
+
#
|
|
1304
|
+
# 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.
|
|
1305
|
+
#
|
|
1306
|
+
# 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.
|
|
1307
|
+
#
|
|
1308
|
+
# 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).
|
|
1309
|
+
attr_reader :setup_future_usage
|
|
1310
|
+
|
|
1311
|
+
def self.inner_class_types
|
|
1312
|
+
@inner_class_types = {}
|
|
1313
|
+
end
|
|
1314
|
+
|
|
1315
|
+
def self.field_remappings
|
|
1316
|
+
@field_remappings = {}
|
|
1317
|
+
end
|
|
1318
|
+
end
|
|
1319
|
+
|
|
1320
|
+
class Mobilepay < Stripe::StripeObject
|
|
1321
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1322
|
+
attr_reader :capture_method
|
|
1323
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1324
|
+
#
|
|
1325
|
+
# 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.
|
|
1326
|
+
#
|
|
1327
|
+
# 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.
|
|
1328
|
+
#
|
|
1329
|
+
# 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).
|
|
1330
|
+
attr_reader :setup_future_usage
|
|
1331
|
+
|
|
1332
|
+
def self.inner_class_types
|
|
1333
|
+
@inner_class_types = {}
|
|
1334
|
+
end
|
|
1335
|
+
|
|
1336
|
+
def self.field_remappings
|
|
1337
|
+
@field_remappings = {}
|
|
1338
|
+
end
|
|
1339
|
+
end
|
|
1340
|
+
|
|
1341
|
+
class Multibanco < Stripe::StripeObject
|
|
1342
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1343
|
+
#
|
|
1344
|
+
# 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.
|
|
1345
|
+
#
|
|
1346
|
+
# 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.
|
|
1347
|
+
#
|
|
1348
|
+
# 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).
|
|
1349
|
+
attr_reader :setup_future_usage
|
|
1350
|
+
|
|
1351
|
+
def self.inner_class_types
|
|
1352
|
+
@inner_class_types = {}
|
|
1353
|
+
end
|
|
1354
|
+
|
|
1355
|
+
def self.field_remappings
|
|
1356
|
+
@field_remappings = {}
|
|
1357
|
+
end
|
|
1358
|
+
end
|
|
1359
|
+
|
|
1360
|
+
class NaverPay < Stripe::StripeObject
|
|
1361
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1362
|
+
attr_reader :capture_method
|
|
1363
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1364
|
+
#
|
|
1365
|
+
# 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.
|
|
1366
|
+
#
|
|
1367
|
+
# 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.
|
|
1368
|
+
#
|
|
1369
|
+
# 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).
|
|
1370
|
+
attr_reader :setup_future_usage
|
|
1371
|
+
|
|
1372
|
+
def self.inner_class_types
|
|
1373
|
+
@inner_class_types = {}
|
|
1374
|
+
end
|
|
1375
|
+
|
|
1376
|
+
def self.field_remappings
|
|
1377
|
+
@field_remappings = {}
|
|
1378
|
+
end
|
|
1379
|
+
end
|
|
1380
|
+
|
|
1381
|
+
class Oxxo < Stripe::StripeObject
|
|
1382
|
+
# The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
|
|
1383
|
+
attr_reader :expires_after_days
|
|
1384
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1385
|
+
#
|
|
1386
|
+
# 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.
|
|
1387
|
+
#
|
|
1388
|
+
# 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.
|
|
1389
|
+
#
|
|
1390
|
+
# 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).
|
|
1391
|
+
attr_reader :setup_future_usage
|
|
1392
|
+
|
|
1393
|
+
def self.inner_class_types
|
|
1394
|
+
@inner_class_types = {}
|
|
1395
|
+
end
|
|
1396
|
+
|
|
1397
|
+
def self.field_remappings
|
|
1398
|
+
@field_remappings = {}
|
|
1399
|
+
end
|
|
1400
|
+
end
|
|
1401
|
+
|
|
1402
|
+
class P24 < Stripe::StripeObject
|
|
1403
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1404
|
+
#
|
|
1405
|
+
# 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.
|
|
1406
|
+
#
|
|
1407
|
+
# 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.
|
|
1408
|
+
#
|
|
1409
|
+
# 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).
|
|
1410
|
+
attr_reader :setup_future_usage
|
|
1411
|
+
|
|
1412
|
+
def self.inner_class_types
|
|
1413
|
+
@inner_class_types = {}
|
|
1414
|
+
end
|
|
1415
|
+
|
|
1416
|
+
def self.field_remappings
|
|
1417
|
+
@field_remappings = {}
|
|
1418
|
+
end
|
|
1419
|
+
end
|
|
1420
|
+
|
|
1421
|
+
class Payco < Stripe::StripeObject
|
|
1422
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1423
|
+
attr_reader :capture_method
|
|
1424
|
+
|
|
1425
|
+
def self.inner_class_types
|
|
1426
|
+
@inner_class_types = {}
|
|
1427
|
+
end
|
|
1428
|
+
|
|
1429
|
+
def self.field_remappings
|
|
1430
|
+
@field_remappings = {}
|
|
1431
|
+
end
|
|
1432
|
+
end
|
|
1433
|
+
|
|
1434
|
+
class Paynow < Stripe::StripeObject
|
|
1435
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1436
|
+
#
|
|
1437
|
+
# 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.
|
|
1438
|
+
#
|
|
1439
|
+
# 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.
|
|
1440
|
+
#
|
|
1441
|
+
# 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).
|
|
1442
|
+
attr_reader :setup_future_usage
|
|
1443
|
+
|
|
1444
|
+
def self.inner_class_types
|
|
1445
|
+
@inner_class_types = {}
|
|
1446
|
+
end
|
|
1447
|
+
|
|
1448
|
+
def self.field_remappings
|
|
1449
|
+
@field_remappings = {}
|
|
1450
|
+
end
|
|
1451
|
+
end
|
|
1452
|
+
|
|
1453
|
+
class Paypal < Stripe::StripeObject
|
|
1454
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1455
|
+
attr_reader :capture_method
|
|
1456
|
+
# Preferred locale of the PayPal checkout page that the customer is redirected to.
|
|
1457
|
+
attr_reader :preferred_locale
|
|
1458
|
+
# 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.
|
|
1459
|
+
attr_reader :reference
|
|
1460
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1461
|
+
#
|
|
1462
|
+
# 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.
|
|
1463
|
+
#
|
|
1464
|
+
# 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.
|
|
1465
|
+
#
|
|
1466
|
+
# 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).
|
|
1467
|
+
attr_reader :setup_future_usage
|
|
1468
|
+
|
|
1469
|
+
def self.inner_class_types
|
|
1470
|
+
@inner_class_types = {}
|
|
1471
|
+
end
|
|
1472
|
+
|
|
1473
|
+
def self.field_remappings
|
|
1474
|
+
@field_remappings = {}
|
|
1475
|
+
end
|
|
1476
|
+
end
|
|
1477
|
+
|
|
1478
|
+
class Pix < Stripe::StripeObject
|
|
1479
|
+
# Determines if the amount includes the IOF tax.
|
|
1480
|
+
attr_reader :amount_includes_iof
|
|
1481
|
+
# The number of seconds after which Pix payment will expire.
|
|
1482
|
+
attr_reader :expires_after_seconds
|
|
1483
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1484
|
+
#
|
|
1485
|
+
# 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.
|
|
1486
|
+
#
|
|
1487
|
+
# 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.
|
|
1488
|
+
#
|
|
1489
|
+
# 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).
|
|
1490
|
+
attr_reader :setup_future_usage
|
|
1491
|
+
|
|
1492
|
+
def self.inner_class_types
|
|
1493
|
+
@inner_class_types = {}
|
|
1494
|
+
end
|
|
1495
|
+
|
|
1496
|
+
def self.field_remappings
|
|
1497
|
+
@field_remappings = {}
|
|
1498
|
+
end
|
|
1499
|
+
end
|
|
1500
|
+
|
|
1501
|
+
class RevolutPay < Stripe::StripeObject
|
|
1502
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1503
|
+
attr_reader :capture_method
|
|
1504
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1505
|
+
#
|
|
1506
|
+
# 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.
|
|
1507
|
+
#
|
|
1508
|
+
# 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.
|
|
1509
|
+
#
|
|
1510
|
+
# 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).
|
|
1511
|
+
attr_reader :setup_future_usage
|
|
1512
|
+
|
|
1513
|
+
def self.inner_class_types
|
|
1514
|
+
@inner_class_types = {}
|
|
1515
|
+
end
|
|
1516
|
+
|
|
1517
|
+
def self.field_remappings
|
|
1518
|
+
@field_remappings = {}
|
|
1519
|
+
end
|
|
1520
|
+
end
|
|
1521
|
+
|
|
1522
|
+
class SamsungPay < Stripe::StripeObject
|
|
1523
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1524
|
+
attr_reader :capture_method
|
|
1525
|
+
|
|
1526
|
+
def self.inner_class_types
|
|
1527
|
+
@inner_class_types = {}
|
|
1528
|
+
end
|
|
1529
|
+
|
|
1530
|
+
def self.field_remappings
|
|
1531
|
+
@field_remappings = {}
|
|
1532
|
+
end
|
|
1533
|
+
end
|
|
1534
|
+
|
|
1535
|
+
class Satispay < Stripe::StripeObject
|
|
1536
|
+
# Controls when the funds will be captured from the customer's account.
|
|
1537
|
+
attr_reader :capture_method
|
|
1538
|
+
|
|
1539
|
+
def self.inner_class_types
|
|
1540
|
+
@inner_class_types = {}
|
|
1541
|
+
end
|
|
1542
|
+
|
|
1543
|
+
def self.field_remappings
|
|
1544
|
+
@field_remappings = {}
|
|
1545
|
+
end
|
|
1546
|
+
end
|
|
1547
|
+
|
|
1548
|
+
class SepaDebit < Stripe::StripeObject
|
|
1549
|
+
class MandateOptions < Stripe::StripeObject
|
|
1550
|
+
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
|
1551
|
+
attr_reader :reference_prefix
|
|
1552
|
+
|
|
1553
|
+
def self.inner_class_types
|
|
1554
|
+
@inner_class_types = {}
|
|
1555
|
+
end
|
|
1556
|
+
|
|
1557
|
+
def self.field_remappings
|
|
1558
|
+
@field_remappings = {}
|
|
1559
|
+
end
|
|
1560
|
+
end
|
|
1561
|
+
# Attribute for field mandate_options
|
|
1562
|
+
attr_reader :mandate_options
|
|
1563
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1564
|
+
#
|
|
1565
|
+
# 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.
|
|
1566
|
+
#
|
|
1567
|
+
# 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.
|
|
1568
|
+
#
|
|
1569
|
+
# 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).
|
|
1570
|
+
attr_reader :setup_future_usage
|
|
1571
|
+
# 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.
|
|
1572
|
+
attr_reader :target_date
|
|
1573
|
+
|
|
1574
|
+
def self.inner_class_types
|
|
1575
|
+
@inner_class_types = { mandate_options: MandateOptions }
|
|
1576
|
+
end
|
|
1577
|
+
|
|
1578
|
+
def self.field_remappings
|
|
1579
|
+
@field_remappings = {}
|
|
1580
|
+
end
|
|
1581
|
+
end
|
|
1582
|
+
|
|
1583
|
+
class Sofort < Stripe::StripeObject
|
|
1584
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1585
|
+
#
|
|
1586
|
+
# 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.
|
|
1587
|
+
#
|
|
1588
|
+
# 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.
|
|
1589
|
+
#
|
|
1590
|
+
# 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).
|
|
1591
|
+
attr_reader :setup_future_usage
|
|
1592
|
+
|
|
1593
|
+
def self.inner_class_types
|
|
1594
|
+
@inner_class_types = {}
|
|
1595
|
+
end
|
|
1596
|
+
|
|
1597
|
+
def self.field_remappings
|
|
1598
|
+
@field_remappings = {}
|
|
1599
|
+
end
|
|
1600
|
+
end
|
|
1601
|
+
|
|
1602
|
+
class Swish < Stripe::StripeObject
|
|
1603
|
+
# The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
|
|
1604
|
+
attr_reader :reference
|
|
1605
|
+
|
|
1606
|
+
def self.inner_class_types
|
|
1607
|
+
@inner_class_types = {}
|
|
1608
|
+
end
|
|
1609
|
+
|
|
1610
|
+
def self.field_remappings
|
|
1611
|
+
@field_remappings = {}
|
|
1612
|
+
end
|
|
1613
|
+
end
|
|
1614
|
+
|
|
1615
|
+
class UsBankAccount < Stripe::StripeObject
|
|
1616
|
+
class FinancialConnections < Stripe::StripeObject
|
|
1617
|
+
class Filters < Stripe::StripeObject
|
|
1618
|
+
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1619
|
+
attr_reader :account_subcategories
|
|
1620
|
+
|
|
1621
|
+
def self.inner_class_types
|
|
1622
|
+
@inner_class_types = {}
|
|
1623
|
+
end
|
|
1624
|
+
|
|
1625
|
+
def self.field_remappings
|
|
1626
|
+
@field_remappings = {}
|
|
1627
|
+
end
|
|
1628
|
+
end
|
|
1629
|
+
# Attribute for field filters
|
|
1630
|
+
attr_reader :filters
|
|
1631
|
+
# The list of permissions to request. The `payment_method` permission must be included.
|
|
1632
|
+
attr_reader :permissions
|
|
1633
|
+
# Data features requested to be retrieved upon account creation.
|
|
1634
|
+
attr_reader :prefetch
|
|
1635
|
+
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
1636
|
+
attr_reader :return_url
|
|
1637
|
+
|
|
1638
|
+
def self.inner_class_types
|
|
1639
|
+
@inner_class_types = { filters: Filters }
|
|
1640
|
+
end
|
|
1641
|
+
|
|
1642
|
+
def self.field_remappings
|
|
1643
|
+
@field_remappings = {}
|
|
1644
|
+
end
|
|
1645
|
+
end
|
|
1646
|
+
# Attribute for field financial_connections
|
|
1647
|
+
attr_reader :financial_connections
|
|
1648
|
+
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1649
|
+
#
|
|
1650
|
+
# 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.
|
|
1651
|
+
#
|
|
1652
|
+
# 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.
|
|
1653
|
+
#
|
|
1654
|
+
# 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).
|
|
1655
|
+
attr_reader :setup_future_usage
|
|
1656
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
1657
|
+
attr_reader :target_date
|
|
1658
|
+
# Bank account verification method.
|
|
1659
|
+
attr_reader :verification_method
|
|
1660
|
+
|
|
1661
|
+
def self.inner_class_types
|
|
1662
|
+
@inner_class_types = { financial_connections: FinancialConnections }
|
|
1663
|
+
end
|
|
1664
|
+
|
|
1665
|
+
def self.field_remappings
|
|
1666
|
+
@field_remappings = {}
|
|
1667
|
+
end
|
|
1668
|
+
end
|
|
1669
|
+
# Attribute for field acss_debit
|
|
1670
|
+
attr_reader :acss_debit
|
|
1671
|
+
# Attribute for field affirm
|
|
1672
|
+
attr_reader :affirm
|
|
1673
|
+
# Attribute for field afterpay_clearpay
|
|
1674
|
+
attr_reader :afterpay_clearpay
|
|
1675
|
+
# Attribute for field alipay
|
|
1676
|
+
attr_reader :alipay
|
|
1677
|
+
# Attribute for field alma
|
|
1678
|
+
attr_reader :alma
|
|
1679
|
+
# Attribute for field amazon_pay
|
|
1680
|
+
attr_reader :amazon_pay
|
|
1681
|
+
# Attribute for field au_becs_debit
|
|
1682
|
+
attr_reader :au_becs_debit
|
|
1683
|
+
# Attribute for field bacs_debit
|
|
1684
|
+
attr_reader :bacs_debit
|
|
1685
|
+
# Attribute for field bancontact
|
|
1686
|
+
attr_reader :bancontact
|
|
1687
|
+
# Attribute for field billie
|
|
1688
|
+
attr_reader :billie
|
|
1689
|
+
# Attribute for field boleto
|
|
1690
|
+
attr_reader :boleto
|
|
1691
|
+
# Attribute for field card
|
|
1692
|
+
attr_reader :card
|
|
1693
|
+
# Attribute for field cashapp
|
|
1694
|
+
attr_reader :cashapp
|
|
1695
|
+
# Attribute for field customer_balance
|
|
1696
|
+
attr_reader :customer_balance
|
|
1697
|
+
# Attribute for field eps
|
|
1698
|
+
attr_reader :eps
|
|
1699
|
+
# Attribute for field fpx
|
|
1700
|
+
attr_reader :fpx
|
|
1701
|
+
# Attribute for field giropay
|
|
1702
|
+
attr_reader :giropay
|
|
1703
|
+
# Attribute for field grabpay
|
|
1704
|
+
attr_reader :grabpay
|
|
1705
|
+
# Attribute for field ideal
|
|
1706
|
+
attr_reader :ideal
|
|
1707
|
+
# Attribute for field kakao_pay
|
|
1708
|
+
attr_reader :kakao_pay
|
|
1709
|
+
# Attribute for field klarna
|
|
1710
|
+
attr_reader :klarna
|
|
1711
|
+
# Attribute for field konbini
|
|
1712
|
+
attr_reader :konbini
|
|
1713
|
+
# Attribute for field kr_card
|
|
1714
|
+
attr_reader :kr_card
|
|
1715
|
+
# Attribute for field link
|
|
1716
|
+
attr_reader :link
|
|
1717
|
+
# Attribute for field mobilepay
|
|
1718
|
+
attr_reader :mobilepay
|
|
1719
|
+
# Attribute for field multibanco
|
|
1720
|
+
attr_reader :multibanco
|
|
1721
|
+
# Attribute for field naver_pay
|
|
1722
|
+
attr_reader :naver_pay
|
|
1723
|
+
# Attribute for field oxxo
|
|
1724
|
+
attr_reader :oxxo
|
|
1725
|
+
# Attribute for field p24
|
|
1726
|
+
attr_reader :p24
|
|
1727
|
+
# Attribute for field payco
|
|
1728
|
+
attr_reader :payco
|
|
1729
|
+
# Attribute for field paynow
|
|
1730
|
+
attr_reader :paynow
|
|
1731
|
+
# Attribute for field paypal
|
|
1732
|
+
attr_reader :paypal
|
|
1733
|
+
# Attribute for field pix
|
|
1734
|
+
attr_reader :pix
|
|
1735
|
+
# Attribute for field revolut_pay
|
|
1736
|
+
attr_reader :revolut_pay
|
|
1737
|
+
# Attribute for field samsung_pay
|
|
1738
|
+
attr_reader :samsung_pay
|
|
1739
|
+
# Attribute for field satispay
|
|
1740
|
+
attr_reader :satispay
|
|
1741
|
+
# Attribute for field sepa_debit
|
|
1742
|
+
attr_reader :sepa_debit
|
|
1743
|
+
# Attribute for field sofort
|
|
1744
|
+
attr_reader :sofort
|
|
1745
|
+
# Attribute for field swish
|
|
1746
|
+
attr_reader :swish
|
|
1747
|
+
# Attribute for field us_bank_account
|
|
1748
|
+
attr_reader :us_bank_account
|
|
1749
|
+
|
|
1750
|
+
def self.inner_class_types
|
|
1751
|
+
@inner_class_types = {
|
|
1752
|
+
acss_debit: AcssDebit,
|
|
1753
|
+
affirm: Affirm,
|
|
1754
|
+
afterpay_clearpay: AfterpayClearpay,
|
|
1755
|
+
alipay: Alipay,
|
|
1756
|
+
alma: Alma,
|
|
1757
|
+
amazon_pay: AmazonPay,
|
|
1758
|
+
au_becs_debit: AuBecsDebit,
|
|
1759
|
+
bacs_debit: BacsDebit,
|
|
1760
|
+
bancontact: Bancontact,
|
|
1761
|
+
billie: Billie,
|
|
1762
|
+
boleto: Boleto,
|
|
1763
|
+
card: Card,
|
|
1764
|
+
cashapp: Cashapp,
|
|
1765
|
+
customer_balance: CustomerBalance,
|
|
1766
|
+
eps: Eps,
|
|
1767
|
+
fpx: Fpx,
|
|
1768
|
+
giropay: Giropay,
|
|
1769
|
+
grabpay: Grabpay,
|
|
1770
|
+
ideal: Ideal,
|
|
1771
|
+
kakao_pay: KakaoPay,
|
|
1772
|
+
klarna: Klarna,
|
|
1773
|
+
konbini: Konbini,
|
|
1774
|
+
kr_card: KrCard,
|
|
1775
|
+
link: Link,
|
|
1776
|
+
mobilepay: Mobilepay,
|
|
1777
|
+
multibanco: Multibanco,
|
|
1778
|
+
naver_pay: NaverPay,
|
|
1779
|
+
oxxo: Oxxo,
|
|
1780
|
+
p24: P24,
|
|
1781
|
+
payco: Payco,
|
|
1782
|
+
paynow: Paynow,
|
|
1783
|
+
paypal: Paypal,
|
|
1784
|
+
pix: Pix,
|
|
1785
|
+
revolut_pay: RevolutPay,
|
|
1786
|
+
samsung_pay: SamsungPay,
|
|
1787
|
+
satispay: Satispay,
|
|
1788
|
+
sepa_debit: SepaDebit,
|
|
1789
|
+
sofort: Sofort,
|
|
1790
|
+
swish: Swish,
|
|
1791
|
+
us_bank_account: UsBankAccount,
|
|
1792
|
+
}
|
|
1793
|
+
end
|
|
1794
|
+
|
|
1795
|
+
def self.field_remappings
|
|
1796
|
+
@field_remappings = {}
|
|
1797
|
+
end
|
|
1798
|
+
end
|
|
1799
|
+
|
|
1800
|
+
class Permissions < Stripe::StripeObject
|
|
1801
|
+
# Determines which entity is allowed to update the shipping details.
|
|
1802
|
+
#
|
|
1803
|
+
# Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
|
|
1804
|
+
#
|
|
1805
|
+
# When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
|
|
1806
|
+
attr_reader :update_shipping_details
|
|
1807
|
+
|
|
1808
|
+
def self.inner_class_types
|
|
1809
|
+
@inner_class_types = {}
|
|
1810
|
+
end
|
|
1811
|
+
|
|
1812
|
+
def self.field_remappings
|
|
1813
|
+
@field_remappings = {}
|
|
1814
|
+
end
|
|
1815
|
+
end
|
|
1816
|
+
|
|
1817
|
+
class PhoneNumberCollection < Stripe::StripeObject
|
|
1818
|
+
# Indicates whether phone number collection is enabled for the session
|
|
1819
|
+
attr_reader :enabled
|
|
1820
|
+
|
|
1821
|
+
def self.inner_class_types
|
|
1822
|
+
@inner_class_types = {}
|
|
1823
|
+
end
|
|
1824
|
+
|
|
1825
|
+
def self.field_remappings
|
|
1826
|
+
@field_remappings = {}
|
|
1827
|
+
end
|
|
1828
|
+
end
|
|
1829
|
+
|
|
1830
|
+
class PresentmentDetails < Stripe::StripeObject
|
|
1831
|
+
# Amount intended to be collected by this payment, denominated in `presentment_currency`.
|
|
1832
|
+
attr_reader :presentment_amount
|
|
1833
|
+
# Currency presented to the customer during payment.
|
|
1834
|
+
attr_reader :presentment_currency
|
|
1835
|
+
|
|
1836
|
+
def self.inner_class_types
|
|
1837
|
+
@inner_class_types = {}
|
|
1838
|
+
end
|
|
1839
|
+
|
|
1840
|
+
def self.field_remappings
|
|
1841
|
+
@field_remappings = {}
|
|
1842
|
+
end
|
|
1843
|
+
end
|
|
1844
|
+
|
|
1845
|
+
class SavedPaymentMethodOptions < Stripe::StripeObject
|
|
1846
|
+
# Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout.
|
|
1847
|
+
attr_reader :allow_redisplay_filters
|
|
1848
|
+
# Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
|
|
1849
|
+
attr_reader :payment_method_remove
|
|
1850
|
+
# Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
|
|
1851
|
+
attr_reader :payment_method_save
|
|
1852
|
+
|
|
1853
|
+
def self.inner_class_types
|
|
1854
|
+
@inner_class_types = {}
|
|
1855
|
+
end
|
|
1856
|
+
|
|
1857
|
+
def self.field_remappings
|
|
1858
|
+
@field_remappings = {}
|
|
1859
|
+
end
|
|
1860
|
+
end
|
|
1861
|
+
|
|
1862
|
+
class ShippingAddressCollection < Stripe::StripeObject
|
|
1863
|
+
# An array of two-letter ISO country codes representing which countries Checkout should provide as options for
|
|
1864
|
+
# shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`.
|
|
1865
|
+
attr_reader :allowed_countries
|
|
1866
|
+
|
|
1867
|
+
def self.inner_class_types
|
|
1868
|
+
@inner_class_types = {}
|
|
1869
|
+
end
|
|
1870
|
+
|
|
1871
|
+
def self.field_remappings
|
|
1872
|
+
@field_remappings = {}
|
|
1873
|
+
end
|
|
1874
|
+
end
|
|
1875
|
+
|
|
1876
|
+
class ShippingCost < Stripe::StripeObject
|
|
1877
|
+
class Tax < Stripe::StripeObject
|
|
1878
|
+
# Amount of tax applied for this rate.
|
|
1879
|
+
attr_reader :amount
|
|
1880
|
+
# Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
1881
|
+
#
|
|
1882
|
+
# Related guide: [Tax rates](/billing/taxes/tax-rates)
|
|
1883
|
+
attr_reader :rate
|
|
1884
|
+
# The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
|
|
1885
|
+
attr_reader :taxability_reason
|
|
1886
|
+
# The amount on which tax is calculated, in cents (or local equivalent).
|
|
1887
|
+
attr_reader :taxable_amount
|
|
1888
|
+
|
|
1889
|
+
def self.inner_class_types
|
|
1890
|
+
@inner_class_types = {}
|
|
1891
|
+
end
|
|
1892
|
+
|
|
1893
|
+
def self.field_remappings
|
|
1894
|
+
@field_remappings = {}
|
|
1895
|
+
end
|
|
1896
|
+
end
|
|
1897
|
+
# Total shipping cost before any discounts or taxes are applied.
|
|
1898
|
+
attr_reader :amount_subtotal
|
|
1899
|
+
# Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0.
|
|
1900
|
+
attr_reader :amount_tax
|
|
1901
|
+
# Total shipping cost after discounts and taxes are applied.
|
|
1902
|
+
attr_reader :amount_total
|
|
1903
|
+
# The ID of the ShippingRate for this order.
|
|
1904
|
+
attr_reader :shipping_rate
|
|
1905
|
+
# The taxes applied to the shipping rate.
|
|
1906
|
+
attr_reader :taxes
|
|
1907
|
+
|
|
1908
|
+
def self.inner_class_types
|
|
1909
|
+
@inner_class_types = { taxes: Tax }
|
|
1910
|
+
end
|
|
1911
|
+
|
|
1912
|
+
def self.field_remappings
|
|
1913
|
+
@field_remappings = {}
|
|
1914
|
+
end
|
|
1915
|
+
end
|
|
1916
|
+
|
|
1917
|
+
class ShippingOption < Stripe::StripeObject
|
|
1918
|
+
# A non-negative integer in cents representing how much to charge.
|
|
1919
|
+
attr_reader :shipping_amount
|
|
1920
|
+
# The shipping rate.
|
|
1921
|
+
attr_reader :shipping_rate
|
|
1922
|
+
|
|
1923
|
+
def self.inner_class_types
|
|
1924
|
+
@inner_class_types = {}
|
|
1925
|
+
end
|
|
1926
|
+
|
|
1927
|
+
def self.field_remappings
|
|
1928
|
+
@field_remappings = {}
|
|
1929
|
+
end
|
|
1930
|
+
end
|
|
1931
|
+
|
|
1932
|
+
class TaxIdCollection < Stripe::StripeObject
|
|
1933
|
+
# Indicates whether tax ID collection is enabled for the session
|
|
1934
|
+
attr_reader :enabled
|
|
1935
|
+
# Indicates whether a tax ID is required on the payment page
|
|
1936
|
+
attr_reader :required
|
|
1937
|
+
|
|
1938
|
+
def self.inner_class_types
|
|
1939
|
+
@inner_class_types = {}
|
|
1940
|
+
end
|
|
1941
|
+
|
|
1942
|
+
def self.field_remappings
|
|
1943
|
+
@field_remappings = {}
|
|
1944
|
+
end
|
|
1945
|
+
end
|
|
1946
|
+
|
|
1947
|
+
class TotalDetails < Stripe::StripeObject
|
|
1948
|
+
class Breakdown < Stripe::StripeObject
|
|
1949
|
+
class Discount < Stripe::StripeObject
|
|
1950
|
+
# The amount discounted.
|
|
1951
|
+
attr_reader :amount
|
|
1952
|
+
# A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes).
|
|
1953
|
+
# It contains information about when the discount began, when it will end, and what it is applied to.
|
|
1954
|
+
#
|
|
1955
|
+
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
|
1956
|
+
attr_reader :discount
|
|
1957
|
+
|
|
1958
|
+
def self.inner_class_types
|
|
1959
|
+
@inner_class_types = {}
|
|
1960
|
+
end
|
|
1961
|
+
|
|
1962
|
+
def self.field_remappings
|
|
1963
|
+
@field_remappings = {}
|
|
1964
|
+
end
|
|
1965
|
+
end
|
|
1966
|
+
|
|
1967
|
+
class Tax < Stripe::StripeObject
|
|
1968
|
+
# Amount of tax applied for this rate.
|
|
1969
|
+
attr_reader :amount
|
|
1970
|
+
# Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax.
|
|
1971
|
+
#
|
|
1972
|
+
# Related guide: [Tax rates](/billing/taxes/tax-rates)
|
|
1973
|
+
attr_reader :rate
|
|
1974
|
+
# The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported.
|
|
1975
|
+
attr_reader :taxability_reason
|
|
1976
|
+
# The amount on which tax is calculated, in cents (or local equivalent).
|
|
1977
|
+
attr_reader :taxable_amount
|
|
1978
|
+
|
|
1979
|
+
def self.inner_class_types
|
|
1980
|
+
@inner_class_types = {}
|
|
1981
|
+
end
|
|
1982
|
+
|
|
1983
|
+
def self.field_remappings
|
|
1984
|
+
@field_remappings = {}
|
|
1985
|
+
end
|
|
1986
|
+
end
|
|
1987
|
+
# The aggregated discounts.
|
|
1988
|
+
attr_reader :discounts
|
|
1989
|
+
# The aggregated tax amounts by rate.
|
|
1990
|
+
attr_reader :taxes
|
|
1991
|
+
|
|
1992
|
+
def self.inner_class_types
|
|
1993
|
+
@inner_class_types = { discounts: Discount, taxes: Tax }
|
|
1994
|
+
end
|
|
1995
|
+
|
|
1996
|
+
def self.field_remappings
|
|
1997
|
+
@field_remappings = {}
|
|
1998
|
+
end
|
|
1999
|
+
end
|
|
2000
|
+
# This is the sum of all the discounts.
|
|
2001
|
+
attr_reader :amount_discount
|
|
2002
|
+
# This is the sum of all the shipping amounts.
|
|
2003
|
+
attr_reader :amount_shipping
|
|
2004
|
+
# This is the sum of all the tax amounts.
|
|
2005
|
+
attr_reader :amount_tax
|
|
2006
|
+
# Attribute for field breakdown
|
|
2007
|
+
attr_reader :breakdown
|
|
2008
|
+
|
|
2009
|
+
def self.inner_class_types
|
|
2010
|
+
@inner_class_types = { breakdown: Breakdown }
|
|
2011
|
+
end
|
|
2012
|
+
|
|
2013
|
+
def self.field_remappings
|
|
2014
|
+
@field_remappings = {}
|
|
2015
|
+
end
|
|
2016
|
+
end
|
|
2017
|
+
|
|
2018
|
+
class WalletOptions < Stripe::StripeObject
|
|
2019
|
+
class Link < Stripe::StripeObject
|
|
2020
|
+
# Describes whether Checkout should display Link. Defaults to `auto`.
|
|
2021
|
+
attr_reader :display
|
|
2022
|
+
|
|
2023
|
+
def self.inner_class_types
|
|
2024
|
+
@inner_class_types = {}
|
|
2025
|
+
end
|
|
2026
|
+
|
|
2027
|
+
def self.field_remappings
|
|
2028
|
+
@field_remappings = {}
|
|
2029
|
+
end
|
|
2030
|
+
end
|
|
2031
|
+
# Attribute for field link
|
|
2032
|
+
attr_reader :link
|
|
2033
|
+
|
|
2034
|
+
def self.inner_class_types
|
|
2035
|
+
@inner_class_types = { link: Link }
|
|
2036
|
+
end
|
|
2037
|
+
|
|
2038
|
+
def self.field_remappings
|
|
2039
|
+
@field_remappings = {}
|
|
2040
|
+
end
|
|
2041
|
+
end
|
|
2042
|
+
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
|
|
2043
|
+
attr_reader :adaptive_pricing
|
|
2044
|
+
# When set, provides configuration for actions to take if this Checkout Session expires.
|
|
2045
|
+
attr_reader :after_expiration
|
|
2046
|
+
# Enables user redeemable promotion codes.
|
|
2047
|
+
attr_reader :allow_promotion_codes
|
|
2048
|
+
# Total of all items before discounts or taxes are applied.
|
|
2049
|
+
attr_reader :amount_subtotal
|
|
2050
|
+
# Total of all items after discounts and taxes are applied.
|
|
2051
|
+
attr_reader :amount_total
|
|
2052
|
+
# Attribute for field automatic_tax
|
|
2053
|
+
attr_reader :automatic_tax
|
|
2054
|
+
# Describes whether Checkout should collect the customer's billing address. Defaults to `auto`.
|
|
2055
|
+
attr_reader :billing_address_collection
|
|
2056
|
+
# Attribute for field branding_settings
|
|
2057
|
+
attr_reader :branding_settings
|
|
2058
|
+
# If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website.
|
|
2059
|
+
attr_reader :cancel_url
|
|
2060
|
+
# A unique string to reference the Checkout Session. This can be a
|
|
2061
|
+
# customer ID, a cart ID, or similar, and can be used to reconcile the
|
|
2062
|
+
# Session with your internal systems.
|
|
2063
|
+
attr_reader :client_reference_id
|
|
2064
|
+
# The client secret of your Checkout Session. Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. For `ui_mode: embedded`, the client secret is to be used when initializing Stripe.js embedded checkout.
|
|
2065
|
+
# For `ui_mode: custom`, use the client secret with [initCheckout](https://stripe.com/docs/js/custom_checkout/init) on your front end.
|
|
2066
|
+
attr_reader :client_secret
|
|
2067
|
+
# Information about the customer collected within the Checkout Session.
|
|
2068
|
+
attr_reader :collected_information
|
|
2069
|
+
# Results of `consent_collection` for this session.
|
|
2070
|
+
attr_reader :consent
|
|
2071
|
+
# When set, provides configuration for the Checkout Session to gather active consent from customers.
|
|
2072
|
+
attr_reader :consent_collection
|
|
2073
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
2074
|
+
attr_reader :created
|
|
2075
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
2076
|
+
attr_reader :currency
|
|
2077
|
+
# Currency conversion details for [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing) sessions created before 2025-03-31.
|
|
2078
|
+
attr_reader :currency_conversion
|
|
2079
|
+
# Collect additional information from your customer using custom fields. Up to 3 fields are supported.
|
|
2080
|
+
attr_reader :custom_fields
|
|
2081
|
+
# Attribute for field custom_text
|
|
2082
|
+
attr_reader :custom_text
|
|
2083
|
+
# The ID of the customer for this Session.
|
|
2084
|
+
# For Checkout Sessions in `subscription` mode or Checkout Sessions with `customer_creation` set as `always` in `payment` mode, Checkout
|
|
2085
|
+
# will create a new customer object based on information provided
|
|
2086
|
+
# during the payment flow unless an existing customer was provided when
|
|
2087
|
+
# the Session was created.
|
|
2088
|
+
attr_reader :customer
|
|
2089
|
+
# Configure whether a Checkout Session creates a Customer when the Checkout Session completes.
|
|
2090
|
+
attr_reader :customer_creation
|
|
2091
|
+
# The customer details including the customer's tax exempt status and the customer's tax IDs. Customer's address details are not present on Sessions in `setup` mode.
|
|
2092
|
+
attr_reader :customer_details
|
|
2093
|
+
# If provided, this value will be used when the Customer object is created.
|
|
2094
|
+
# If not provided, customers will be asked to enter their email address.
|
|
2095
|
+
# Use this parameter to prefill customer data if you already have an email
|
|
2096
|
+
# on file. To access information about the customer once the payment flow is
|
|
2097
|
+
# complete, use the `customer` attribute.
|
|
2098
|
+
attr_reader :customer_email
|
|
2099
|
+
# List of coupons and promotion codes attached to the Checkout Session.
|
|
2100
|
+
attr_reader :discounts
|
|
2101
|
+
# A list of the types of payment methods (e.g., `card`) that should be excluded from this Checkout Session. This should only be used when payment methods for this Checkout Session are managed through the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
|
|
2102
|
+
attr_reader :excluded_payment_method_types
|
|
2103
|
+
# The timestamp at which the Checkout Session will expire.
|
|
2104
|
+
attr_reader :expires_at
|
|
2105
|
+
# Unique identifier for the object.
|
|
2106
|
+
attr_reader :id
|
|
2107
|
+
# ID of the invoice created by the Checkout Session, if it exists.
|
|
2108
|
+
attr_reader :invoice
|
|
2109
|
+
# Details on the state of invoice creation for the Checkout Session.
|
|
2110
|
+
attr_reader :invoice_creation
|
|
2111
|
+
# The line items purchased by the customer.
|
|
2112
|
+
attr_reader :line_items
|
|
2113
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
2114
|
+
attr_reader :livemode
|
|
2115
|
+
# The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
|
|
2116
|
+
attr_reader :locale
|
|
2117
|
+
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
2118
|
+
attr_reader :metadata
|
|
2119
|
+
# The mode of the Checkout Session.
|
|
2120
|
+
attr_reader :mode
|
|
2121
|
+
# Attribute for field name_collection
|
|
2122
|
+
attr_reader :name_collection
|
|
2123
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
2124
|
+
attr_reader :object
|
|
2125
|
+
# The optional items presented to the customer at checkout.
|
|
2126
|
+
attr_reader :optional_items
|
|
2127
|
+
# Where the user is coming from. This informs the optimizations that are applied to the session.
|
|
2128
|
+
attr_reader :origin_context
|
|
2129
|
+
# The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
|
2130
|
+
attr_reader :payment_intent
|
|
2131
|
+
# The ID of the Payment Link that created this Session.
|
|
2132
|
+
attr_reader :payment_link
|
|
2133
|
+
# Configure whether a Checkout Session should collect a payment method. Defaults to `always`.
|
|
2134
|
+
attr_reader :payment_method_collection
|
|
2135
|
+
# Information about the payment method configuration used for this Checkout session if using dynamic payment methods.
|
|
2136
|
+
attr_reader :payment_method_configuration_details
|
|
2137
|
+
# Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession.
|
|
2138
|
+
attr_reader :payment_method_options
|
|
2139
|
+
# A list of the types of payment methods (e.g. card) this Checkout
|
|
2140
|
+
# Session is allowed to accept.
|
|
2141
|
+
attr_reader :payment_method_types
|
|
2142
|
+
# The payment status of the Checkout Session, one of `paid`, `unpaid`, or `no_payment_required`.
|
|
2143
|
+
# You can use this value to decide when to fulfill your customer's order.
|
|
2144
|
+
attr_reader :payment_status
|
|
2145
|
+
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
|
|
2146
|
+
#
|
|
2147
|
+
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
|
|
2148
|
+
attr_reader :permissions
|
|
2149
|
+
# Attribute for field phone_number_collection
|
|
2150
|
+
attr_reader :phone_number_collection
|
|
2151
|
+
# Attribute for field presentment_details
|
|
2152
|
+
attr_reader :presentment_details
|
|
2153
|
+
# The ID of the original expired Checkout Session that triggered the recovery flow.
|
|
2154
|
+
attr_reader :recovered_from
|
|
2155
|
+
# This parameter applies to `ui_mode: embedded`. Learn more about the [redirect behavior](https://stripe.com/docs/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`.
|
|
2156
|
+
attr_reader :redirect_on_completion
|
|
2157
|
+
# Applies to Checkout Sessions with `ui_mode: embedded` or `ui_mode: custom`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site.
|
|
2158
|
+
attr_reader :return_url
|
|
2159
|
+
# Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
|
|
2160
|
+
attr_reader :saved_payment_method_options
|
|
2161
|
+
# The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
|
2162
|
+
attr_reader :setup_intent
|
|
2163
|
+
# When set, provides configuration for Checkout to collect a shipping address from a customer.
|
|
2164
|
+
attr_reader :shipping_address_collection
|
|
2165
|
+
# The details of the customer cost of shipping, including the customer chosen ShippingRate.
|
|
2166
|
+
attr_reader :shipping_cost
|
|
2167
|
+
# The shipping rate options applied to this Session.
|
|
2168
|
+
attr_reader :shipping_options
|
|
2169
|
+
# The status of the Checkout Session, one of `open`, `complete`, or `expired`.
|
|
2170
|
+
attr_reader :status
|
|
2171
|
+
# Describes the type of transaction being performed by Checkout in order to customize
|
|
2172
|
+
# relevant text on the page, such as the submit button. `submit_type` can only be
|
|
2173
|
+
# specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used.
|
|
2174
|
+
attr_reader :submit_type
|
|
2175
|
+
# The ID of the [Subscription](https://stripe.com/docs/api/subscriptions) for Checkout Sessions in `subscription` mode.
|
|
2176
|
+
attr_reader :subscription
|
|
2177
|
+
# The URL the customer will be directed to after the payment or
|
|
2178
|
+
# subscription creation is successful.
|
|
2179
|
+
attr_reader :success_url
|
|
2180
|
+
# Attribute for field tax_id_collection
|
|
2181
|
+
attr_reader :tax_id_collection
|
|
2182
|
+
# Tax and discount details for the computed total amount.
|
|
2183
|
+
attr_reader :total_details
|
|
2184
|
+
# The UI mode of the Session. Defaults to `hosted`.
|
|
2185
|
+
attr_reader :ui_mode
|
|
2186
|
+
# The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.`
|
|
2187
|
+
# This value is only present when the session is active.
|
|
2188
|
+
attr_reader :url
|
|
2189
|
+
# Wallet-specific configuration for this Checkout Session.
|
|
2190
|
+
attr_reader :wallet_options
|
|
2191
|
+
|
|
2192
|
+
# Creates a Checkout Session object.
|
|
31
2193
|
def self.create(params = {}, opts = {})
|
|
32
2194
|
request_stripe_object(
|
|
33
2195
|
method: :post,
|
|
@@ -37,9 +2199,9 @@ module Stripe
|
|
|
37
2199
|
)
|
|
38
2200
|
end
|
|
39
2201
|
|
|
40
|
-
# A Session can be expired when it is in one of these statuses: open
|
|
2202
|
+
# A Checkout Session can be expired when it is in one of these statuses: open
|
|
41
2203
|
#
|
|
42
|
-
# After it expires, a customer can't complete a Session and customers loading the Session see a message saying the Session is expired.
|
|
2204
|
+
# After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
|
|
43
2205
|
def expire(params = {}, opts = {})
|
|
44
2206
|
request_stripe_object(
|
|
45
2207
|
method: :post,
|
|
@@ -49,9 +2211,9 @@ module Stripe
|
|
|
49
2211
|
)
|
|
50
2212
|
end
|
|
51
2213
|
|
|
52
|
-
# A Session can be expired when it is in one of these statuses: open
|
|
2214
|
+
# A Checkout Session can be expired when it is in one of these statuses: open
|
|
53
2215
|
#
|
|
54
|
-
# After it expires, a customer can't complete a Session and customers loading the Session see a message saying the Session is expired.
|
|
2216
|
+
# After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired.
|
|
55
2217
|
def self.expire(session, params = {}, opts = {})
|
|
56
2218
|
request_stripe_object(
|
|
57
2219
|
method: :post,
|
|
@@ -91,7 +2253,9 @@ module Stripe
|
|
|
91
2253
|
)
|
|
92
2254
|
end
|
|
93
2255
|
|
|
94
|
-
# Updates a Session object.
|
|
2256
|
+
# Updates a Checkout Session object.
|
|
2257
|
+
#
|
|
2258
|
+
# Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates)
|
|
95
2259
|
def self.update(session, params = {}, opts = {})
|
|
96
2260
|
request_stripe_object(
|
|
97
2261
|
method: :post,
|
|
@@ -100,6 +2264,42 @@ module Stripe
|
|
|
100
2264
|
opts: opts
|
|
101
2265
|
)
|
|
102
2266
|
end
|
|
2267
|
+
|
|
2268
|
+
def self.inner_class_types
|
|
2269
|
+
@inner_class_types = {
|
|
2270
|
+
adaptive_pricing: AdaptivePricing,
|
|
2271
|
+
after_expiration: AfterExpiration,
|
|
2272
|
+
automatic_tax: AutomaticTax,
|
|
2273
|
+
branding_settings: BrandingSettings,
|
|
2274
|
+
collected_information: CollectedInformation,
|
|
2275
|
+
consent: Consent,
|
|
2276
|
+
consent_collection: ConsentCollection,
|
|
2277
|
+
currency_conversion: CurrencyConversion,
|
|
2278
|
+
custom_fields: CustomField,
|
|
2279
|
+
custom_text: CustomText,
|
|
2280
|
+
customer_details: CustomerDetails,
|
|
2281
|
+
discounts: Discount,
|
|
2282
|
+
invoice_creation: InvoiceCreation,
|
|
2283
|
+
name_collection: NameCollection,
|
|
2284
|
+
optional_items: OptionalItem,
|
|
2285
|
+
payment_method_configuration_details: PaymentMethodConfigurationDetails,
|
|
2286
|
+
payment_method_options: PaymentMethodOptions,
|
|
2287
|
+
permissions: Permissions,
|
|
2288
|
+
phone_number_collection: PhoneNumberCollection,
|
|
2289
|
+
presentment_details: PresentmentDetails,
|
|
2290
|
+
saved_payment_method_options: SavedPaymentMethodOptions,
|
|
2291
|
+
shipping_address_collection: ShippingAddressCollection,
|
|
2292
|
+
shipping_cost: ShippingCost,
|
|
2293
|
+
shipping_options: ShippingOption,
|
|
2294
|
+
tax_id_collection: TaxIdCollection,
|
|
2295
|
+
total_details: TotalDetails,
|
|
2296
|
+
wallet_options: WalletOptions,
|
|
2297
|
+
}
|
|
2298
|
+
end
|
|
2299
|
+
|
|
2300
|
+
def self.field_remappings
|
|
2301
|
+
@field_remappings = {}
|
|
2302
|
+
end
|
|
103
2303
|
end
|
|
104
2304
|
end
|
|
105
2305
|
end
|