stripe 15.5.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +5 -2
- data/lib/stripe/api_resource.rb +3 -0
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/event_types.rb +20 -6
- 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 +35 -12
- data/lib/stripe/object_types.rb +3 -2
- 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 +14 -5
- data/lib/stripe/resources/account.rb +448 -4265
- data/lib/stripe/resources/account_link.rb +8 -47
- data/lib/stripe/resources/account_session.rb +340 -657
- data/lib/stripe/resources/apple_pay_domain.rb +8 -40
- data/lib/stripe/resources/application.rb +8 -0
- data/lib/stripe/resources/application_fee.rb +12 -44
- data/lib/stripe/resources/application_fee_refund.rb +8 -0
- data/lib/stripe/resources/apps/secret.rb +12 -112
- data/lib/stripe/resources/balance.rb +159 -0
- data/lib/stripe/resources/balance_settings.rb +92 -0
- data/lib/stripe/resources/balance_transaction.rb +12 -56
- data/lib/stripe/resources/bank_account.rb +40 -0
- data/lib/stripe/resources/billing/alert.rb +20 -100
- data/lib/stripe/resources/billing/alert_triggered.rb +8 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +48 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +73 -29
- data/lib/stripe/resources/billing/credit_grant.rb +42 -151
- data/lib/stripe/resources/billing/meter.rb +40 -116
- data/lib/stripe/resources/billing/meter_event.rb +8 -20
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +12 -22
- data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +120 -473
- data/lib/stripe/resources/billing_portal/session.rb +98 -170
- data/lib/stripe/resources/capability.rb +56 -0
- data/lib/stripe/resources/card.rb +17 -1
- data/lib/stripe/resources/cash_balance.rb +16 -0
- data/lib/stripe/resources/charge.rb +958 -414
- data/lib/stripe/resources/checkout/session.rb +1039 -2501
- data/lib/stripe/resources/climate/order.rb +28 -89
- data/lib/stripe/resources/climate/product.rb +13 -15
- data/lib/stripe/resources/climate/supplier.rb +13 -15
- data/lib/stripe/resources/confirmation_token.rb +895 -683
- data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
- data/lib/stripe/resources/country_spec.rb +29 -15
- data/lib/stripe/resources/coupon.rb +19 -137
- data/lib/stripe/resources/credit_note.rb +66 -504
- data/lib/stripe/resources/credit_note_line_item.rb +44 -0
- data/lib/stripe/resources/customer.rb +81 -675
- data/lib/stripe/resources/customer_balance_transaction.rb +8 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -0
- data/lib/stripe/resources/customer_session.rb +49 -93
- data/lib/stripe/resources/discount.rb +24 -4
- data/lib/stripe/resources/dispute.rb +159 -365
- data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -26
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
- data/lib/stripe/resources/entitlements/feature.rb +8 -66
- data/lib/stripe/resources/ephemeral_key.rb +8 -8
- data/lib/stripe/resources/event.rb +20 -52
- data/lib/stripe/resources/exchange_rate.rb +18 -17
- data/lib/stripe/resources/file.rb +8 -79
- data/lib/stripe/resources/file_link.rb +8 -84
- data/lib/stripe/resources/financial_connections/account.rb +66 -110
- data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
- data/lib/stripe/resources/financial_connections/session.rb +20 -55
- data/lib/stripe/resources/financial_connections/transaction.rb +12 -57
- data/lib/stripe/resources/forwarding/request.rb +48 -93
- data/lib/stripe/resources/funding_instructions.rb +217 -24
- data/lib/stripe/resources/identity/verification_report.rb +165 -56
- data/lib/stripe/resources/identity/verification_session.rb +124 -237
- data/lib/stripe/resources/invoice.rb +489 -2882
- data/lib/stripe/resources/invoice_item.rb +69 -309
- data/lib/stripe/resources/invoice_line_item.rb +126 -199
- data/lib/stripe/resources/invoice_payment.rb +20 -42
- data/lib/stripe/resources/invoice_rendering_template.rb +8 -38
- data/lib/stripe/resources/issuing/authorization.rb +173 -836
- data/lib/stripe/resources/issuing/card.rb +98 -499
- data/lib/stripe/resources/issuing/cardholder.rb +108 -514
- data/lib/stripe/resources/issuing/dispute.rb +93 -620
- data/lib/stripe/resources/issuing/personalization_design.rb +32 -221
- data/lib/stripe/resources/issuing/physical_bundle.rb +13 -28
- data/lib/stripe/resources/issuing/token.rb +57 -60
- data/lib/stripe/resources/issuing/transaction.rb +147 -696
- data/lib/stripe/resources/line_item.rb +24 -0
- data/lib/stripe/resources/login_link.rb +8 -0
- data/lib/stripe/resources/mandate.rb +225 -12
- data/lib/stripe/resources/payment_intent.rb +1129 -7346
- data/lib/stripe/resources/payment_link.rb +333 -1357
- data/lib/stripe/resources/payment_method.rb +807 -784
- data/lib/stripe/resources/payment_method_configuration.rb +940 -2311
- data/lib/stripe/resources/payment_method_domain.rb +107 -63
- data/lib/stripe/resources/payout.rb +12 -150
- data/lib/stripe/resources/person.rb +184 -4
- data/lib/stripe/resources/plan.rb +20 -235
- data/lib/stripe/resources/price.rb +66 -480
- data/lib/stripe/resources/product.rb +23 -411
- data/lib/stripe/resources/product_feature.rb +8 -0
- data/lib/stripe/resources/promotion_code.rb +40 -172
- data/lib/stripe/resources/quote.rb +219 -651
- data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -51
- data/lib/stripe/resources/radar/value_list.rb +8 -92
- data/lib/stripe/resources/radar/value_list_item.rb +8 -68
- data/lib/stripe/resources/refund.rb +367 -152
- data/lib/stripe/resources/reporting/report_run.rb +12 -93
- data/lib/stripe/resources/reporting/report_type.rb +8 -8
- data/lib/stripe/resources/reserve_transaction.rb +8 -0
- data/lib/stripe/resources/reversal.rb +8 -0
- data/lib/stripe/resources/review.rb +20 -43
- data/lib/stripe/resources/setup_attempt.rb +286 -65
- data/lib/stripe/resources/setup_intent.rb +336 -3359
- data/lib/stripe/resources/shipping_rate.rb +44 -187
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +13 -15
- data/lib/stripe/resources/source.rb +268 -583
- data/lib/stripe/resources/source_mandate_notification.rb +32 -0
- data/lib/stripe/resources/source_transaction.rb +54 -0
- data/lib/stripe/resources/subscription.rb +272 -1581
- data/lib/stripe/resources/subscription_item.rb +12 -298
- data/lib/stripe/resources/subscription_schedule.rb +236 -1282
- data/lib/stripe/resources/tax/calculation.rb +111 -220
- data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
- data/lib/stripe/resources/tax/registration.rb +1274 -2096
- data/lib/stripe/resources/tax/settings.rb +61 -64
- data/lib/stripe/resources/tax/transaction.rb +95 -122
- data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
- data/lib/stripe/resources/tax_code.rb +8 -17
- data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
- data/lib/stripe/resources/tax_id.rb +20 -65
- data/lib/stripe/resources/tax_rate.rb +12 -142
- data/lib/stripe/resources/terminal/configuration.rb +302 -1173
- data/lib/stripe/resources/terminal/connection_token.rb +8 -11
- data/lib/stripe/resources/terminal/location.rb +72 -126
- data/lib/stripe/resources/terminal/reader.rb +237 -501
- data/lib/stripe/resources/test_helpers/test_clock.rb +20 -43
- data/lib/stripe/resources/token.rb +8 -1191
- data/lib/stripe/resources/topup.rb +8 -132
- data/lib/stripe/resources/transfer.rb +8 -109
- data/lib/stripe/resources/treasury/credit_reversal.rb +12 -46
- data/lib/stripe/resources/treasury/debit_reversal.rb +20 -50
- data/lib/stripe/resources/treasury/financial_account.rb +55 -639
- data/lib/stripe/resources/treasury/financial_account_features.rb +192 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +67 -115
- data/lib/stripe/resources/treasury/outbound_payment.rb +104 -334
- data/lib/stripe/resources/treasury/outbound_transfer.rb +95 -200
- data/lib/stripe/resources/treasury/received_credit.rb +78 -101
- data/lib/stripe/resources/treasury/received_debit.rb +70 -89
- data/lib/stripe/resources/treasury/transaction.rb +32 -82
- data/lib/stripe/resources/treasury/transaction_entry.rb +20 -74
- data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -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 +8 -85
- data/lib/stripe/resources.rb +4 -2
- data/lib/stripe/services/account_capability_service.rb +0 -32
- data/lib/stripe/services/account_external_account_service.rb +0 -249
- data/lib/stripe/services/account_link_service.rb +0 -48
- data/lib/stripe/services/account_login_link_service.rb +0 -9
- data/lib/stripe/services/account_person_service.rb +0 -958
- data/lib/stripe/services/account_service.rb +0 -4149
- data/lib/stripe/services/account_session_service.rb +0 -637
- data/lib/stripe/services/apple_pay_domain_service.rb +0 -50
- data/lib/stripe/services/application_fee_refund_service.rb +0 -54
- data/lib/stripe/services/application_fee_service.rb +0 -57
- data/lib/stripe/services/apps/secret_service.rb +0 -116
- data/lib/stripe/services/balance_service.rb +0 -9
- data/lib/stripe/services/balance_settings_service.rb +30 -0
- data/lib/stripe/services/balance_transaction_service.rb +0 -69
- data/lib/stripe/services/billing/alert_service.rb +0 -113
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +0 -48
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -40
- data/lib/stripe/services/billing/credit_grant_service.rb +0 -166
- data/lib/stripe/services/billing/meter_event_adjustment_service.rb +0 -26
- data/lib/stripe/services/billing/meter_event_service.rb +0 -21
- data/lib/stripe/services/billing/meter_event_summary_service.rb +0 -39
- data/lib/stripe/services/billing/meter_service.rb +0 -130
- data/lib/stripe/services/billing_portal/configuration_service.rb +0 -486
- data/lib/stripe/services/billing_portal/session_service.rb +0 -173
- data/lib/stripe/services/charge_service.rb +0 -402
- data/lib/stripe/services/checkout/session_line_item_service.rb +0 -18
- data/lib/stripe/services/checkout/session_service.rb +0 -2494
- data/lib/stripe/services/climate/order_service.rb +0 -102
- data/lib/stripe/services/climate/product_service.rb +0 -27
- data/lib/stripe/services/climate/supplier_service.rb +0 -27
- data/lib/stripe/services/confirmation_token_service.rb +0 -9
- data/lib/stripe/services/country_spec_service.rb +0 -27
- data/lib/stripe/services/coupon_service.rb +0 -151
- data/lib/stripe/services/credit_note_line_item_service.rb +0 -18
- data/lib/stripe/services/credit_note_preview_lines_service.rb +0 -152
- data/lib/stripe/services/credit_note_service.rb +0 -365
- data/lib/stripe/services/customer_balance_transaction_service.rb +0 -63
- data/lib/stripe/services/customer_cash_balance_service.rb +0 -29
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +0 -27
- data/lib/stripe/services/customer_funding_instructions_service.rb +0 -42
- data/lib/stripe/services/customer_payment_method_service.rb +0 -40
- data/lib/stripe/services/customer_payment_source_service.rb +0 -179
- data/lib/stripe/services/customer_service.rb +0 -575
- data/lib/stripe/services/customer_session_service.rb +0 -96
- data/lib/stripe/services/customer_tax_id_service.rb +0 -44
- data/lib/stripe/services/dispute_service.rb +0 -374
- data/lib/stripe/services/entitlements/active_entitlement_service.rb +0 -36
- data/lib/stripe/services/entitlements/feature_service.rb +0 -76
- data/lib/stripe/services/ephemeral_key_service.rb +0 -36
- data/lib/stripe/services/event_service.rb +0 -65
- data/lib/stripe/services/exchange_rate_service.rb +4 -27
- data/lib/stripe/services/file_link_service.rb +0 -94
- data/lib/stripe/services/file_service.rb +0 -89
- data/lib/stripe/services/financial_connections/account_owner_service.rb +0 -27
- data/lib/stripe/services/financial_connections/account_service.rb +0 -96
- data/lib/stripe/services/financial_connections/session_service.rb +0 -68
- data/lib/stripe/services/financial_connections/transaction_service.rb +0 -70
- data/lib/stripe/services/forwarding/request_service.rb +0 -106
- data/lib/stripe/services/identity/verification_report_service.rb +0 -65
- data/lib/stripe/services/identity/verification_session_service.rb +0 -247
- data/lib/stripe/services/invoice_item_service.rb +0 -333
- data/lib/stripe/services/invoice_line_item_service.rb +0 -221
- data/lib/stripe/services/invoice_payment_service.rb +0 -55
- data/lib/stripe/services/invoice_rendering_template_service.rb +0 -51
- data/lib/stripe/services/invoice_service.rb +0 -2778
- data/lib/stripe/services/issuing/authorization_service.rb +0 -104
- data/lib/stripe/services/issuing/card_service.rb +0 -463
- data/lib/stripe/services/issuing/cardholder_service.rb +0 -525
- data/lib/stripe/services/issuing/dispute_service.rb +0 -633
- data/lib/stripe/services/issuing/personalization_design_service.rb +0 -193
- data/lib/stripe/services/issuing/physical_bundle_service.rb +0 -40
- data/lib/stripe/services/issuing/token_service.rb +0 -73
- data/lib/stripe/services/issuing/transaction_service.rb +0 -77
- data/lib/stripe/services/mandate_service.rb +0 -9
- data/lib/stripe/services/payment_intent_service.rb +0 -7332
- data/lib/stripe/services/payment_link_line_item_service.rb +0 -18
- data/lib/stripe/services/payment_link_service.rb +0 -1352
- data/lib/stripe/services/payment_method_configuration_service.rb +0 -2256
- data/lib/stripe/services/payment_method_domain_service.rb +0 -76
- data/lib/stripe/services/payment_method_service.rb +0 -762
- data/lib/stripe/services/payout_service.rb +0 -163
- data/lib/stripe/services/plan_service.rb +0 -248
- data/lib/stripe/services/price_service.rb +0 -493
- data/lib/stripe/services/product_feature_service.rb +0 -41
- data/lib/stripe/services/product_service.rb +0 -424
- data/lib/stripe/services/promotion_code_service.rb +1 -179
- data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +0 -18
- data/lib/stripe/services/quote_line_item_service.rb +0 -18
- data/lib/stripe/services/quote_service.rb +0 -628
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +0 -61
- data/lib/stripe/services/radar/value_list_item_service.rb +0 -78
- data/lib/stripe/services/radar/value_list_service.rb +0 -102
- data/lib/stripe/services/refund_service.rb +0 -137
- data/lib/stripe/services/reporting/report_run_service.rb +0 -106
- data/lib/stripe/services/reporting/report_type_service.rb +0 -18
- data/lib/stripe/services/review_service.rb +0 -56
- data/lib/stripe/services/setup_attempt_service.rb +0 -51
- data/lib/stripe/services/setup_intent_service.rb +0 -3275
- data/lib/stripe/services/shipping_rate_service.rb +0 -200
- data/lib/stripe/services/sigma/scheduled_query_run_service.rb +0 -27
- data/lib/stripe/services/source_service.rb +0 -601
- data/lib/stripe/services/source_transaction_service.rb +0 -18
- data/lib/stripe/services/subscription_item_service.rb +0 -311
- data/lib/stripe/services/subscription_schedule_service.rb +0 -1295
- data/lib/stripe/services/subscription_service.rb +0 -1594
- data/lib/stripe/services/tax/calculation_line_item_service.rb +0 -18
- data/lib/stripe/services/tax/calculation_service.rb +0 -209
- data/lib/stripe/services/tax/registration_service.rb +0 -2063
- data/lib/stripe/services/tax/settings_service.rb +0 -74
- data/lib/stripe/services/tax/transaction_line_item_service.rb +0 -18
- data/lib/stripe/services/tax/transaction_service.rb +0 -111
- data/lib/stripe/services/tax_code_service.rb +0 -27
- data/lib/stripe/services/tax_id_service.rb +0 -78
- data/lib/stripe/services/tax_rate_service.rb +0 -155
- data/lib/stripe/services/terminal/configuration_service.rb +0 -1186
- data/lib/stripe/services/terminal/connection_token_service.rb +0 -12
- data/lib/stripe/services/terminal/location_service.rb +0 -143
- data/lib/stripe/services/terminal/reader_service.rb +0 -427
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +0 -641
- data/lib/stripe/services/test_helpers/customer_service.rb +0 -18
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +0 -745
- data/lib/stripe/services/test_helpers/issuing/card_service.rb +0 -45
- data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +0 -41
- data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +0 -632
- data/lib/stripe/services/test_helpers/refund_service.rb +0 -9
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +0 -87
- data/lib/stripe/services/test_helpers/test_clock_service.rb +0 -56
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +0 -38
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +0 -87
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +0 -87
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +0 -60
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +0 -60
- data/lib/stripe/services/token_service.rb +0 -1201
- data/lib/stripe/services/topup_service.rb +0 -142
- data/lib/stripe/services/transfer_reversal_service.rb +0 -66
- data/lib/stripe/services/transfer_service.rb +0 -119
- data/lib/stripe/services/treasury/credit_reversal_service.rb +0 -59
- data/lib/stripe/services/treasury/debit_reversal_service.rb +0 -63
- data/lib/stripe/services/treasury/financial_account_features_service.rb +0 -166
- data/lib/stripe/services/treasury/financial_account_service.rb +0 -488
- data/lib/stripe/services/treasury/inbound_transfer_service.rb +0 -88
- data/lib/stripe/services/treasury/outbound_payment_service.rb +0 -258
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -124
- data/lib/stripe/services/treasury/received_credit_service.rb +0 -52
- data/lib/stripe/services/treasury/received_debit_service.rb +0 -40
- data/lib/stripe/services/treasury/transaction_entry_service.rb +0 -87
- data/lib/stripe/services/treasury/transaction_service.rb +0 -95
- data/lib/stripe/services/v1_services.rb +2 -1
- data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +0 -23
- data/lib/stripe/services/v2/billing/meter_event_service.rb +0 -25
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +0 -2
- data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +0 -33
- data/lib/stripe/services/v2/core/event_destination_service.rb +0 -137
- data/lib/stripe/services/v2/core/event_service.rb +0 -16
- data/lib/stripe/services/webhook_endpoint_service.rb +0 -95
- data/lib/stripe/services.rb +1 -0
- data/lib/stripe/stripe_client.rb +8 -5
- data/lib/stripe/stripe_configuration.rb +1 -6
- data/lib/stripe/stripe_context.rb +68 -0
- data/lib/stripe/stripe_object.rb +33 -9
- data/lib/stripe/util.rb +24 -13
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +3 -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 +600 -345
- data/API_VERSION +0 -1
- data/CHANGELOG.md +0 -1769
- data/CODE_OF_CONDUCT.md +0 -77
- data/CONTRIBUTING.md +0 -25
- data/CONTRIBUTORS +0 -3
- data/Gemfile +0 -41
- data/History.txt +0 -1
- data/LICENSE +0 -21
- data/Makefile +0 -22
- data/OPENAPI_VERSION +0 -1
- data/README.md +0 -426
- 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/v2/event.rb +0 -41
- data/lib/stripe/resources/v2/event_destination.rb +0 -73
- data/lib/stripe/thin_event.rb +0 -37
- data/rbi/stripe/resources/account.rbi +0 -4991
- data/rbi/stripe/resources/account_link.rbi +0 -76
- data/rbi/stripe/resources/account_session.rbi +0 -1173
- data/rbi/stripe/resources/apple_pay_domain.rbi +0 -88
- data/rbi/stripe/resources/application.rbi +0 -20
- data/rbi/stripe/resources/application_fee.rbi +0 -118
- data/rbi/stripe/resources/application_fee_refund.rbi +0 -37
- data/rbi/stripe/resources/apps/secret.rbi +0 -195
- data/rbi/stripe/resources/balance.rbi +0 -230
- data/rbi/stripe/resources/balance_transaction.rbi +0 -147
- data/rbi/stripe/resources/bank_account.rbi +0 -127
- data/rbi/stripe/resources/billing/alert.rbi +0 -201
- data/rbi/stripe/resources/billing/alert_triggered.rbi +0 -28
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -63
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +0 -147
- data/rbi/stripe/resources/billing/credit_grant.rbi +0 -291
- data/rbi/stripe/resources/billing/meter.rbi +0 -226
- data/rbi/stripe/resources/billing/meter_event.rbi +0 -64
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +0 -64
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +0 -35
- data/rbi/stripe/resources/billing_portal/configuration.rbi +0 -712
- data/rbi/stripe/resources/billing_portal/session.rbi +0 -345
- data/rbi/stripe/resources/capability.rbi +0 -125
- data/rbi/stripe/resources/card.rbi +0 -125
- data/rbi/stripe/resources/cash_balance.rbi +0 -32
- data/rbi/stripe/resources/charge.rbi +0 -2136
- data/rbi/stripe/resources/checkout/session.rbi +0 -4105
- data/rbi/stripe/resources/climate/order.rbi +0 -245
- data/rbi/stripe/resources/climate/product.rbi +0 -75
- data/rbi/stripe/resources/climate/supplier.rbi +0 -72
- data/rbi/stripe/resources/confirmation_token.rbi +0 -1818
- data/rbi/stripe/resources/connect_collection_transfer.rbi +0 -26
- data/rbi/stripe/resources/country_spec.rbi +0 -85
- data/rbi/stripe/resources/coupon.rbi +0 -250
- data/rbi/stripe/resources/credit_note.rbi +0 -752
- data/rbi/stripe/resources/credit_note_line_item.rbi +0 -101
- data/rbi/stripe/resources/customer.rbi +0 -993
- data/rbi/stripe/resources/customer_balance_transaction.rbi +0 -56
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +0 -151
- data/rbi/stripe/resources/customer_session.rbi +0 -200
- data/rbi/stripe/resources/discount.rbi +0 -53
- data/rbi/stripe/resources/dispute.rbi +0 -761
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +0 -58
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +0 -23
- data/rbi/stripe/resources/entitlements/feature.rbi +0 -117
- data/rbi/stripe/resources/ephemeral_key.rbi +0 -44
- data/rbi/stripe/resources/event.rbi +0 -137
- data/rbi/stripe/resources/exchange_rate.rbi +0 -66
- data/rbi/stripe/resources/file.rbi +0 -143
- data/rbi/stripe/resources/file_link.rbi +0 -141
- data/rbi/stripe/resources/financial_connections/account.rbi +0 -339
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +0 -35
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +0 -23
- data/rbi/stripe/resources/financial_connections/session.rbi +0 -123
- data/rbi/stripe/resources/financial_connections/transaction.rbi +0 -124
- data/rbi/stripe/resources/forwarding/request.rbi +0 -216
- data/rbi/stripe/resources/funding_instructions.rbi +0 -437
- data/rbi/stripe/resources/identity/verification_report.rbi +0 -360
- data/rbi/stripe/resources/identity/verification_session.rbi +0 -564
- data/rbi/stripe/resources/invoice.rbi +0 -3894
- data/rbi/stripe/resources/invoice_item.rbi +0 -470
- data/rbi/stripe/resources/invoice_line_item.rbi +0 -432
- data/rbi/stripe/resources/invoice_payment.rbi +0 -121
- data/rbi/stripe/resources/invoice_rendering_template.rbi +0 -104
- data/rbi/stripe/resources/issuing/authorization.rbi +0 -1283
- data/rbi/stripe/resources/issuing/card.rbi +0 -749
- data/rbi/stripe/resources/issuing/cardholder.rbi +0 -744
- data/rbi/stripe/resources/issuing/dispute.rbi +0 -913
- data/rbi/stripe/resources/issuing/personalization_design.rbi +0 -338
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +0 -79
- data/rbi/stripe/resources/issuing/token.rbi +0 -226
- data/rbi/stripe/resources/issuing/transaction.rbi +0 -1061
- data/rbi/stripe/resources/line_item.rbi +0 -72
- data/rbi/stripe/resources/login_link.rbi +0 -19
- data/rbi/stripe/resources/mandate.rbi +0 -191
- data/rbi/stripe/resources/payment_intent.rbi +0 -10011
- data/rbi/stripe/resources/payment_link.rbi +0 -1891
- data/rbi/stripe/resources/payment_method.rbi +0 -1770
- data/rbi/stripe/resources/payment_method_configuration.rbi +0 -3550
- data/rbi/stripe/resources/payment_method_domain.rbi +0 -228
- data/rbi/stripe/resources/payout.rbi +0 -307
- data/rbi/stripe/resources/person.rbi +0 -401
- data/rbi/stripe/resources/plan.rbi +0 -371
- data/rbi/stripe/resources/price.rbi +0 -694
- data/rbi/stripe/resources/product.rbi +0 -553
- data/rbi/stripe/resources/product_feature.rbi +0 -26
- data/rbi/stripe/resources/promotion_code.rbi +0 -264
- data/rbi/stripe/resources/quote.rbi +0 -1137
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +0 -98
- data/rbi/stripe/resources/radar/value_list.rbi +0 -168
- data/rbi/stripe/resources/radar/value_list_item.rbi +0 -129
- data/rbi/stripe/resources/refund.rbi +0 -523
- data/rbi/stripe/resources/reporting/report_run.rbi +0 -191
- data/rbi/stripe/resources/reporting/report_type.rbi +0 -57
- data/rbi/stripe/resources/reserve_transaction.rbi +0 -23
- data/rbi/stripe/resources/reversal.rbi +0 -51
- data/rbi/stripe/resources/review.rbi +0 -154
- data/rbi/stripe/resources/setup_attempt.rbi +0 -477
- data/rbi/stripe/resources/setup_intent.rbi +0 -3974
- data/rbi/stripe/resources/shipping_rate.rbi +0 -305
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +0 -75
- data/rbi/stripe/resources/source.rbi +0 -1496
- data/rbi/stripe/resources/source_mandate_notification.rbi +0 -77
- data/rbi/stripe/resources/source_transaction.rbi +0 -127
- data/rbi/stripe/resources/subscription.rbi +0 -2154
- data/rbi/stripe/resources/subscription_item.rbi +0 -404
- data/rbi/stripe/resources/subscription_schedule.rbi +0 -1795
- data/rbi/stripe/resources/tax/calculation.rbi +0 -478
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +0 -91
- data/rbi/stripe/resources/tax/registration.rbi +0 -3216
- data/rbi/stripe/resources/tax/settings.rbi +0 -141
- data/rbi/stripe/resources/tax/transaction.rbi +0 -351
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +0 -54
- data/rbi/stripe/resources/tax_code.rbi +0 -44
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +0 -23
- data/rbi/stripe/resources/tax_id.rbi +0 -165
- data/rbi/stripe/resources/tax_rate.rbi +0 -239
- data/rbi/stripe/resources/terminal/configuration.rbi +0 -1647
- data/rbi/stripe/resources/terminal/connection_token.rbi +0 -37
- data/rbi/stripe/resources/terminal/location.rbi +0 -222
- data/rbi/stripe/resources/terminal/reader.rbi +0 -1016
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +0 -132
- data/rbi/stripe/resources/token.rbi +0 -1281
- data/rbi/stripe/resources/topup.rbi +0 -222
- data/rbi/stripe/resources/transfer.rbi +0 -199
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +0 -119
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +0 -131
- data/rbi/stripe/resources/treasury/financial_account.rbi +0 -869
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -260
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +0 -295
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +0 -592
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +0 -431
- data/rbi/stripe/resources/treasury/received_credit.rbi +0 -302
- data/rbi/stripe/resources/treasury/received_debit.rbi +0 -256
- data/rbi/stripe/resources/treasury/transaction.rbi +0 -215
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +0 -192
- data/rbi/stripe/resources/v2/amount.rbi +0 -14
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +0 -37
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +0 -41
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +0 -31
- data/rbi/stripe/resources/v2/event.rbi +0 -48
- data/rbi/stripe/resources/v2/event_destination.rbi +0 -91
- data/rbi/stripe/resources/webhook_endpoint.rbi +0 -168
- data/rbi/stripe/services/account_capability_service.rbi +0 -51
- data/rbi/stripe/services/account_external_account_service.rbi +0 -304
- data/rbi/stripe/services/account_link_service.rbi +0 -60
- data/rbi/stripe/services/account_login_link_service.rbi +0 -22
- data/rbi/stripe/services/account_person_service.rbi +0 -1007
- data/rbi/stripe/services/account_service.rbi +0 -4281
- data/rbi/stripe/services/account_session_service.rbi +0 -748
- data/rbi/stripe/services/apple_pay_domain_service.rbi +0 -76
- data/rbi/stripe/services/application_fee_refund_service.rbi +0 -93
- data/rbi/stripe/services/application_fee_service.rbi +0 -78
- data/rbi/stripe/services/apps/secret_service.rbi +0 -151
- data/rbi/stripe/services/apps_service.rbi +0 -9
- data/rbi/stripe/services/balance_service.rbi +0 -21
- data/rbi/stripe/services/balance_transaction_service.rbi +0 -93
- data/rbi/stripe/services/billing/alert_service.rbi +0 -152
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +0 -68
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +0 -59
- data/rbi/stripe/services/billing/credit_grant_service.rbi +0 -211
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +0 -42
- data/rbi/stripe/services/billing/meter_event_service.rbi +0 -42
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +0 -54
- data/rbi/stripe/services/billing/meter_service.rbi +0 -163
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +0 -561
- data/rbi/stripe/services/billing_portal/session_service.rbi +0 -204
- data/rbi/stripe/services/billing_portal_service.rbi +0 -10
- data/rbi/stripe/services/billing_service.rbi +0 -15
- data/rbi/stripe/services/charge_service.rbi +0 -448
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +0 -33
- data/rbi/stripe/services/checkout/session_service.rbi +0 -2697
- data/rbi/stripe/services/checkout_service.rbi +0 -9
- data/rbi/stripe/services/climate/order_service.rbi +0 -142
- data/rbi/stripe/services/climate/product_service.rbi +0 -46
- data/rbi/stripe/services/climate/supplier_service.rbi +0 -46
- data/rbi/stripe/services/climate_service.rbi +0 -11
- data/rbi/stripe/services/confirmation_token_service.rbi +0 -20
- data/rbi/stripe/services/country_spec_service.rbi +0 -44
- data/rbi/stripe/services/coupon_service.rbi +0 -194
- data/rbi/stripe/services/credit_note_line_item_service.rbi +0 -31
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +0 -167
- data/rbi/stripe/services/credit_note_service.rbi +0 -415
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +0 -92
- data/rbi/stripe/services/customer_cash_balance_service.rbi +0 -45
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +0 -44
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +0 -59
- data/rbi/stripe/services/customer_payment_method_service.rbi +0 -57
- data/rbi/stripe/services/customer_payment_source_service.rbi +0 -232
- data/rbi/stripe/services/customer_service.rbi +0 -635
- data/rbi/stripe/services/customer_session_service.rbi +0 -116
- data/rbi/stripe/services/customer_tax_id_service.rbi +0 -70
- data/rbi/stripe/services/dispute_service.rbi +0 -424
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +0 -55
- data/rbi/stripe/services/entitlements/feature_service.rbi +0 -107
- data/rbi/stripe/services/entitlements_service.rbi +0 -10
- data/rbi/stripe/services/ephemeral_key_service.rbi +0 -53
- data/rbi/stripe/services/event_service.rbi +0 -83
- data/rbi/stripe/services/exchange_rate_service.rbi +0 -44
- data/rbi/stripe/services/file_link_service.rbi +0 -124
- data/rbi/stripe/services/file_service.rbi +0 -116
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +0 -42
- data/rbi/stripe/services/financial_connections/account_service.rbi +0 -133
- data/rbi/stripe/services/financial_connections/session_service.rbi +0 -88
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +0 -92
- data/rbi/stripe/services/financial_connections_service.rbi +0 -11
- data/rbi/stripe/services/forwarding/request_service.rbi +0 -134
- data/rbi/stripe/services/forwarding_service.rbi +0 -9
- data/rbi/stripe/services/identity/verification_report_service.rbi +0 -87
- data/rbi/stripe/services/identity/verification_session_service.rbi +0 -339
- data/rbi/stripe/services/identity_service.rbi +0 -10
- data/rbi/stripe/services/invoice_item_service.rbi +0 -366
- data/rbi/stripe/services/invoice_line_item_service.rbi +0 -259
- data/rbi/stripe/services/invoice_payment_service.rbi +0 -71
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +0 -82
- data/rbi/stripe/services/invoice_service.rbi +0 -3073
- data/rbi/stripe/services/issuing/authorization_service.rbi +0 -146
- data/rbi/stripe/services/issuing/card_service.rbi +0 -503
- data/rbi/stripe/services/issuing/cardholder_service.rbi +0 -587
- data/rbi/stripe/services/issuing/dispute_service.rbi +0 -707
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +0 -243
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +0 -59
- data/rbi/stripe/services/issuing/token_service.rbi +0 -99
- data/rbi/stripe/services/issuing/transaction_service.rbi +0 -105
- data/rbi/stripe/services/issuing_service.rbi +0 -16
- data/rbi/stripe/services/mandate_service.rbi +0 -20
- data/rbi/stripe/services/payment_intent_service.rbi +0 -8010
- data/rbi/stripe/services/payment_link_line_item_service.rbi +0 -31
- data/rbi/stripe/services/payment_link_service.rbi +0 -1441
- data/rbi/stripe/services/payment_method_configuration_service.rbi +0 -2487
- data/rbi/stripe/services/payment_method_domain_service.rbi +0 -112
- data/rbi/stripe/services/payment_method_service.rbi +0 -781
- data/rbi/stripe/services/payout_service.rbi +0 -209
- data/rbi/stripe/services/plan_service.rbi +0 -282
- data/rbi/stripe/services/price_service.rbi +0 -546
- data/rbi/stripe/services/product_feature_service.rbi +0 -67
- data/rbi/stripe/services/product_service.rbi +0 -477
- data/rbi/stripe/services/promotion_code_service.rbi +0 -214
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +0 -31
- data/rbi/stripe/services/quote_line_item_service.rbi +0 -31
- data/rbi/stripe/services/quote_service.rbi +0 -695
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +0 -85
- data/rbi/stripe/services/radar/value_list_item_service.rbi +0 -109
- data/rbi/stripe/services/radar/value_list_service.rbi +0 -141
- data/rbi/stripe/services/radar_service.rbi +0 -11
- data/rbi/stripe/services/refund_service.rbi +0 -185
- data/rbi/stripe/services/reporting/report_run_service.rbi +0 -135
- data/rbi/stripe/services/reporting/report_type_service.rbi +0 -35
- data/rbi/stripe/services/reporting_service.rbi +0 -10
- data/rbi/stripe/services/review_service.rbi +0 -84
- data/rbi/stripe/services/setup_attempt_service.rbi +0 -65
- data/rbi/stripe/services/setup_intent_service.rbi +0 -3709
- data/rbi/stripe/services/shipping_rate_service.rbi +0 -241
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +0 -46
- data/rbi/stripe/services/sigma_service.rbi +0 -9
- data/rbi/stripe/services/source_service.rbi +0 -663
- data/rbi/stripe/services/source_transaction_service.rbi +0 -31
- data/rbi/stripe/services/subscription_item_service.rbi +0 -350
- data/rbi/stripe/services/subscription_schedule_service.rbi +0 -1425
- data/rbi/stripe/services/subscription_service.rbi +0 -1768
- data/rbi/stripe/services/tax/calculation_line_item_service.rbi +0 -33
- data/rbi/stripe/services/tax/calculation_service.rbi +0 -234
- data/rbi/stripe/services/tax/registration_service.rbi +0 -2278
- data/rbi/stripe/services/tax/settings_service.rbi +0 -93
- data/rbi/stripe/services/tax/transaction_line_item_service.rbi +0 -33
- data/rbi/stripe/services/tax/transaction_service.rbi +0 -146
- data/rbi/stripe/services/tax_code_service.rbi +0 -44
- data/rbi/stripe/services/tax_id_service.rbi +0 -110
- data/rbi/stripe/services/tax_rate_service.rbi +0 -185
- data/rbi/stripe/services/tax_service.rbi +0 -12
- data/rbi/stripe/services/terminal/configuration_service.rbi +0 -1328
- data/rbi/stripe/services/terminal/connection_token_service.rbi +0 -25
- data/rbi/stripe/services/terminal/location_service.rbi +0 -182
- data/rbi/stripe/services/terminal/reader_service.rbi +0 -540
- data/rbi/stripe/services/terminal_service.rbi +0 -12
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +0 -746
- data/rbi/stripe/services/test_helpers/customer_service.rbi +0 -33
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +0 -848
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +0 -76
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +0 -69
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +0 -711
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +0 -14
- data/rbi/stripe/services/test_helpers/refund_service.rbi +0 -22
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +0 -117
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +0 -11
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +0 -90
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +0 -64
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +0 -125
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +0 -125
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +0 -87
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +0 -87
- data/rbi/stripe/services/test_helpers/treasury_service.rbi +0 -15
- data/rbi/stripe/services/test_helpers_service.rbi +0 -15
- data/rbi/stripe/services/token_service.rbi +0 -1255
- data/rbi/stripe/services/topup_service.rbi +0 -176
- data/rbi/stripe/services/transfer_reversal_service.rbi +0 -101
- data/rbi/stripe/services/transfer_service.rbi +0 -152
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +0 -84
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +0 -88
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +0 -198
- data/rbi/stripe/services/treasury/financial_account_service.rbi +0 -566
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +0 -117
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +0 -304
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +0 -157
- data/rbi/stripe/services/treasury/received_credit_service.rbi +0 -72
- data/rbi/stripe/services/treasury/received_debit_service.rbi +0 -59
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +0 -111
- data/rbi/stripe/services/treasury/transaction_service.rbi +0 -122
- data/rbi/stripe/services/treasury_service.rbi +0 -18
- data/rbi/stripe/services/v1_services.rbi +0 -77
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +0 -39
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +0 -42
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +0 -18
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +0 -55
- data/rbi/stripe/services/v2/billing_service.rbi +0 -14
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +0 -192
- data/rbi/stripe/services/v2/core/event_service.rbi +0 -36
- data/rbi/stripe/services/v2/core_service.rbi +0 -12
- data/rbi/stripe/services/v2_services.rbi +0 -10
- data/rbi/stripe/services/webhook_endpoint_service.rbi +0 -129
- data/stripe.gemspec +0 -44
@@ -30,6 +30,14 @@ module Stripe
|
|
30
30
|
class AdaptivePricing < Stripe::StripeObject
|
31
31
|
# If enabled, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions).
|
32
32
|
attr_reader :enabled
|
33
|
+
|
34
|
+
def self.inner_class_types
|
35
|
+
@inner_class_types = {}
|
36
|
+
end
|
37
|
+
|
38
|
+
def self.field_remappings
|
39
|
+
@field_remappings = {}
|
40
|
+
end
|
33
41
|
end
|
34
42
|
|
35
43
|
class AfterExpiration < Stripe::StripeObject
|
@@ -44,9 +52,25 @@ module Stripe
|
|
44
52
|
attr_reader :expires_at
|
45
53
|
# URL that creates a new Checkout Session when clicked that is a copy of this expired Checkout Session
|
46
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
|
47
63
|
end
|
48
64
|
# When set, configuration used to recover the Checkout Session on expiry.
|
49
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
|
50
74
|
end
|
51
75
|
|
52
76
|
class AutomaticTax < Stripe::StripeObject
|
@@ -55,6 +79,14 @@ module Stripe
|
|
55
79
|
attr_reader :account
|
56
80
|
# Type of the account referenced.
|
57
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
|
58
90
|
end
|
59
91
|
# Indicates whether automatic tax is enabled for the session
|
60
92
|
attr_reader :enabled
|
@@ -64,6 +96,72 @@ module Stripe
|
|
64
96
|
attr_reader :provider
|
65
97
|
# The status of the most recent automated tax calculation for this session.
|
66
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
|
67
165
|
end
|
68
166
|
|
69
167
|
class CollectedInformation < Stripe::StripeObject
|
@@ -73,22 +171,50 @@ module Stripe
|
|
73
171
|
attr_reader :city
|
74
172
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
75
173
|
attr_reader :country
|
76
|
-
# Address line 1
|
174
|
+
# Address line 1, such as the street, PO Box, or company name.
|
77
175
|
attr_reader :line1
|
78
|
-
# Address line 2
|
176
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
79
177
|
attr_reader :line2
|
80
178
|
# ZIP or postal code.
|
81
179
|
attr_reader :postal_code
|
82
180
|
# State, county, province, or region.
|
83
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
|
84
190
|
end
|
85
191
|
# Attribute for field address
|
86
192
|
attr_reader :address
|
87
193
|
# Customer name.
|
88
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
|
89
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
|
90
208
|
# Shipping information for this Checkout Session.
|
91
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
|
92
218
|
end
|
93
219
|
|
94
220
|
class Consent < Stripe::StripeObject
|
@@ -97,6 +223,14 @@ module Stripe
|
|
97
223
|
attr_reader :promotions
|
98
224
|
# If `accepted`, the customer in this Checkout Session has agreed to the merchant's terms of service.
|
99
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
|
100
234
|
end
|
101
235
|
|
102
236
|
class ConsentCollection < Stripe::StripeObject
|
@@ -105,6 +239,14 @@ module Stripe
|
|
105
239
|
#
|
106
240
|
# When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
|
107
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
|
108
250
|
end
|
109
251
|
# If set to `hidden`, it will hide legal text related to the reuse of a payment method.
|
110
252
|
attr_reader :payment_method_reuse_agreement
|
@@ -114,6 +256,14 @@ module Stripe
|
|
114
256
|
attr_reader :promotions
|
115
257
|
# If set to `required`, it requires customers to accept the terms of service before being able to pay.
|
116
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
|
117
267
|
end
|
118
268
|
|
119
269
|
class CurrencyConversion < Stripe::StripeObject
|
@@ -125,6 +275,14 @@ module Stripe
|
|
125
275
|
attr_reader :fx_rate
|
126
276
|
# Creation currency of the CheckoutSession before localization
|
127
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
|
128
286
|
end
|
129
287
|
|
130
288
|
class CustomField < Stripe::StripeObject
|
@@ -134,6 +292,14 @@ module Stripe
|
|
134
292
|
attr_reader :label
|
135
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.
|
136
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
|
137
303
|
end
|
138
304
|
# The value that will pre-fill on the payment page.
|
139
305
|
attr_reader :default_value
|
@@ -141,6 +307,14 @@ module Stripe
|
|
141
307
|
attr_reader :options
|
142
308
|
# The option selected by the customer. This will be the `value` for the option.
|
143
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
|
144
318
|
end
|
145
319
|
|
146
320
|
class Label < Stripe::StripeObject
|
@@ -148,6 +322,14 @@ module Stripe
|
|
148
322
|
attr_reader :custom
|
149
323
|
# The type of the label.
|
150
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
|
151
333
|
end
|
152
334
|
|
153
335
|
class Numeric < Stripe::StripeObject
|
@@ -159,6 +341,14 @@ module Stripe
|
|
159
341
|
attr_reader :minimum_length
|
160
342
|
# The value entered by the customer, containing only digits.
|
161
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
|
162
352
|
end
|
163
353
|
|
164
354
|
class Text < Stripe::StripeObject
|
@@ -170,6 +360,14 @@ module Stripe
|
|
170
360
|
attr_reader :minimum_length
|
171
361
|
# The value entered by the customer.
|
172
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
|
173
371
|
end
|
174
372
|
# Attribute for field dropdown
|
175
373
|
attr_reader :dropdown
|
@@ -185,27 +383,67 @@ module Stripe
|
|
185
383
|
attr_reader :text
|
186
384
|
# The type of the field.
|
187
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
|
188
394
|
end
|
189
395
|
|
190
396
|
class CustomText < Stripe::StripeObject
|
191
397
|
class AfterSubmit < Stripe::StripeObject
|
192
398
|
# Text may be up to 1200 characters in length.
|
193
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
|
194
408
|
end
|
195
409
|
|
196
410
|
class ShippingAddress < Stripe::StripeObject
|
197
411
|
# Text may be up to 1200 characters in length.
|
198
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
|
199
421
|
end
|
200
422
|
|
201
423
|
class Submit < Stripe::StripeObject
|
202
424
|
# Text may be up to 1200 characters in length.
|
203
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
|
204
434
|
end
|
205
435
|
|
206
436
|
class TermsOfServiceAcceptance < Stripe::StripeObject
|
207
437
|
# Text may be up to 1200 characters in length.
|
208
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
|
209
447
|
end
|
210
448
|
# Custom text that should be displayed after the payment confirmation button.
|
211
449
|
attr_reader :after_submit
|
@@ -215,6 +453,19 @@ module Stripe
|
|
215
453
|
attr_reader :submit
|
216
454
|
# Custom text that should be displayed in place of the default terms of service agreement text.
|
217
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
|
218
469
|
end
|
219
470
|
|
220
471
|
class CustomerDetails < Stripe::StripeObject
|
@@ -223,14 +474,22 @@ module Stripe
|
|
223
474
|
attr_reader :city
|
224
475
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
225
476
|
attr_reader :country
|
226
|
-
# Address line 1
|
477
|
+
# Address line 1, such as the street, PO Box, or company name.
|
227
478
|
attr_reader :line1
|
228
|
-
# Address line 2
|
479
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
229
480
|
attr_reader :line2
|
230
481
|
# ZIP or postal code.
|
231
482
|
attr_reader :postal_code
|
232
483
|
# State, county, province, or region.
|
233
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
|
234
493
|
end
|
235
494
|
|
236
495
|
class TaxId < Stripe::StripeObject
|
@@ -238,12 +497,24 @@ module Stripe
|
|
238
497
|
attr_reader :type
|
239
498
|
# The value of the tax ID.
|
240
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
|
241
508
|
end
|
242
509
|
# The customer's address after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022.
|
243
510
|
attr_reader :address
|
511
|
+
# The customer's business name after a completed Checkout Session.
|
512
|
+
attr_reader :business_name
|
244
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.
|
245
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.
|
246
515
|
attr_reader :email
|
516
|
+
# The customer's individual name after a completed Checkout Session.
|
517
|
+
attr_reader :individual_name
|
247
518
|
# The customer's name after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022.
|
248
519
|
attr_reader :name
|
249
520
|
# The customer's phone number after a completed Checkout Session.
|
@@ -252,6 +523,14 @@ module Stripe
|
|
252
523
|
attr_reader :tax_exempt
|
253
524
|
# The customer’s tax IDs after a completed Checkout Session.
|
254
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
|
255
534
|
end
|
256
535
|
|
257
536
|
class Discount < Stripe::StripeObject
|
@@ -259,6 +538,14 @@ module Stripe
|
|
259
538
|
attr_reader :coupon
|
260
539
|
# Promotion code attached to the Checkout Session.
|
261
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
|
262
549
|
end
|
263
550
|
|
264
551
|
class InvoiceCreation < Stripe::StripeObject
|
@@ -268,6 +555,14 @@ module Stripe
|
|
268
555
|
attr_reader :name
|
269
556
|
# The value of the custom field.
|
270
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
|
271
566
|
end
|
272
567
|
|
273
568
|
class Issuer < Stripe::StripeObject
|
@@ -275,6 +570,14 @@ module Stripe
|
|
275
570
|
attr_reader :account
|
276
571
|
# Type of the account referenced.
|
277
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
|
278
581
|
end
|
279
582
|
|
280
583
|
class RenderingOptions < Stripe::StripeObject
|
@@ -282,6 +585,14 @@ module Stripe
|
|
282
585
|
attr_reader :amount_tax_display
|
283
586
|
# ID of the invoice rendering template to be used for the generated invoice.
|
284
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
|
285
596
|
end
|
286
597
|
# The account tax IDs associated with the invoice.
|
287
598
|
attr_reader :account_tax_ids
|
@@ -297,11 +608,75 @@ module Stripe
|
|
297
608
|
attr_reader :metadata
|
298
609
|
# Options for invoice PDF rendering.
|
299
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
|
300
623
|
end
|
301
624
|
# Indicates whether invoice creation is enabled for the Checkout Session.
|
302
625
|
attr_reader :enabled
|
303
626
|
# Attribute for field invoice_data
|
304
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
|
305
680
|
end
|
306
681
|
|
307
682
|
class OptionalItem < Stripe::StripeObject
|
@@ -312,6 +687,14 @@ module Stripe
|
|
312
687
|
attr_reader :maximum
|
313
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.
|
314
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
|
315
698
|
end
|
316
699
|
# Attribute for field adjustable_quantity
|
317
700
|
attr_reader :adjustable_quantity
|
@@ -319,6 +702,14 @@ module Stripe
|
|
319
702
|
attr_reader :price
|
320
703
|
# Attribute for field quantity
|
321
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
|
322
713
|
end
|
323
714
|
|
324
715
|
class PaymentMethodConfigurationDetails < Stripe::StripeObject
|
@@ -326,6 +717,14 @@ module Stripe
|
|
326
717
|
attr_reader :id
|
327
718
|
# ID of the parent payment method configuration used.
|
328
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
|
329
728
|
end
|
330
729
|
|
331
730
|
class PaymentMethodOptions < Stripe::StripeObject
|
@@ -341,6 +740,14 @@ module Stripe
|
|
341
740
|
attr_reader :payment_schedule
|
342
741
|
# Transaction type of the mandate.
|
343
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
|
344
751
|
end
|
345
752
|
# Currency supported by the bank account. Returned when the Session is in `setup` mode.
|
346
753
|
attr_reader :currency
|
@@ -358,9 +765,19 @@ module Stripe
|
|
358
765
|
attr_reader :target_date
|
359
766
|
# Bank account verification method.
|
360
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
|
361
776
|
end
|
362
777
|
|
363
778
|
class Affirm < Stripe::StripeObject
|
779
|
+
# Controls when the funds will be captured from the customer's account.
|
780
|
+
attr_reader :capture_method
|
364
781
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
365
782
|
#
|
366
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.
|
@@ -369,9 +786,19 @@ module Stripe
|
|
369
786
|
#
|
370
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).
|
371
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
|
372
797
|
end
|
373
798
|
|
374
799
|
class AfterpayClearpay < Stripe::StripeObject
|
800
|
+
# Controls when the funds will be captured from the customer's account.
|
801
|
+
attr_reader :capture_method
|
375
802
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
376
803
|
#
|
377
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.
|
@@ -380,6 +807,14 @@ module Stripe
|
|
380
807
|
#
|
381
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).
|
382
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
|
383
818
|
end
|
384
819
|
|
385
820
|
class Alipay < Stripe::StripeObject
|
@@ -391,9 +826,32 @@ module Stripe
|
|
391
826
|
#
|
392
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).
|
393
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
|
394
850
|
end
|
395
851
|
|
396
852
|
class AmazonPay < Stripe::StripeObject
|
853
|
+
# Controls when the funds will be captured from the customer's account.
|
854
|
+
attr_reader :capture_method
|
397
855
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
398
856
|
#
|
399
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.
|
@@ -402,6 +860,14 @@ module Stripe
|
|
402
860
|
#
|
403
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).
|
404
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
|
405
871
|
end
|
406
872
|
|
407
873
|
class AuBecsDebit < Stripe::StripeObject
|
@@ -415,12 +881,28 @@ module Stripe
|
|
415
881
|
attr_reader :setup_future_usage
|
416
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.
|
417
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
|
418
892
|
end
|
419
893
|
|
420
894
|
class BacsDebit < Stripe::StripeObject
|
421
895
|
class MandateOptions < Stripe::StripeObject
|
422
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'.
|
423
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
|
424
906
|
end
|
425
907
|
# Attribute for field mandate_options
|
426
908
|
attr_reader :mandate_options
|
@@ -434,6 +916,14 @@ module Stripe
|
|
434
916
|
attr_reader :setup_future_usage
|
435
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.
|
436
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
|
437
927
|
end
|
438
928
|
|
439
929
|
class Bancontact < Stripe::StripeObject
|
@@ -445,6 +935,27 @@ module Stripe
|
|
445
935
|
#
|
446
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).
|
447
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
|
448
959
|
end
|
449
960
|
|
450
961
|
class Boleto < Stripe::StripeObject
|
@@ -458,18 +969,44 @@ module Stripe
|
|
458
969
|
#
|
459
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).
|
460
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
|
461
980
|
end
|
462
981
|
|
463
982
|
class Card < Stripe::StripeObject
|
464
983
|
class Installments < Stripe::StripeObject
|
465
984
|
# Indicates if installments are enabled
|
466
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
|
467
994
|
end
|
468
995
|
|
469
996
|
class Restrictions < Stripe::StripeObject
|
470
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.
|
471
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
|
472
1007
|
end
|
1008
|
+
# Controls when the funds will be captured from the customer's account.
|
1009
|
+
attr_reader :capture_method
|
473
1010
|
# Attribute for field installments
|
474
1011
|
attr_reader :installments
|
475
1012
|
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
@@ -496,9 +1033,19 @@ module Stripe
|
|
496
1033
|
attr_reader :statement_descriptor_suffix_kana
|
497
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.
|
498
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
|
499
1044
|
end
|
500
1045
|
|
501
1046
|
class Cashapp < Stripe::StripeObject
|
1047
|
+
# Controls when the funds will be captured from the customer's account.
|
1048
|
+
attr_reader :capture_method
|
502
1049
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
503
1050
|
#
|
504
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.
|
@@ -507,6 +1054,14 @@ module Stripe
|
|
507
1054
|
#
|
508
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).
|
509
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
|
510
1065
|
end
|
511
1066
|
|
512
1067
|
class CustomerBalance < Stripe::StripeObject
|
@@ -514,6 +1069,14 @@ module Stripe
|
|
514
1069
|
class EuBankTransfer < Stripe::StripeObject
|
515
1070
|
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
516
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
|
517
1080
|
end
|
518
1081
|
# Attribute for field eu_bank_transfer
|
519
1082
|
attr_reader :eu_bank_transfer
|
@@ -523,6 +1086,14 @@ module Stripe
|
|
523
1086
|
attr_reader :requested_address_types
|
524
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`.
|
525
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
|
526
1097
|
end
|
527
1098
|
# Attribute for field bank_transfer
|
528
1099
|
attr_reader :bank_transfer
|
@@ -536,6 +1107,14 @@ module Stripe
|
|
536
1107
|
#
|
537
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).
|
538
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
|
539
1118
|
end
|
540
1119
|
|
541
1120
|
class Eps < Stripe::StripeObject
|
@@ -547,6 +1126,14 @@ module Stripe
|
|
547
1126
|
#
|
548
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).
|
549
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
|
550
1137
|
end
|
551
1138
|
|
552
1139
|
class Fpx < Stripe::StripeObject
|
@@ -558,6 +1145,14 @@ module Stripe
|
|
558
1145
|
#
|
559
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).
|
560
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
|
561
1156
|
end
|
562
1157
|
|
563
1158
|
class Giropay < Stripe::StripeObject
|
@@ -569,6 +1164,14 @@ module Stripe
|
|
569
1164
|
#
|
570
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).
|
571
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
|
572
1175
|
end
|
573
1176
|
|
574
1177
|
class Grabpay < Stripe::StripeObject
|
@@ -580,6 +1183,14 @@ module Stripe
|
|
580
1183
|
#
|
581
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).
|
582
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
|
583
1194
|
end
|
584
1195
|
|
585
1196
|
class Ideal < Stripe::StripeObject
|
@@ -591,6 +1202,14 @@ module Stripe
|
|
591
1202
|
#
|
592
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).
|
593
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
|
594
1213
|
end
|
595
1214
|
|
596
1215
|
class KakaoPay < Stripe::StripeObject
|
@@ -604,9 +1223,19 @@ module Stripe
|
|
604
1223
|
#
|
605
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).
|
606
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
|
607
1234
|
end
|
608
1235
|
|
609
1236
|
class Klarna < Stripe::StripeObject
|
1237
|
+
# Controls when the funds will be captured from the customer's account.
|
1238
|
+
attr_reader :capture_method
|
610
1239
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
611
1240
|
#
|
612
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.
|
@@ -615,6 +1244,14 @@ module Stripe
|
|
615
1244
|
#
|
616
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).
|
617
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
|
618
1255
|
end
|
619
1256
|
|
620
1257
|
class Konbini < Stripe::StripeObject
|
@@ -628,6 +1265,14 @@ module Stripe
|
|
628
1265
|
#
|
629
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).
|
630
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
|
631
1276
|
end
|
632
1277
|
|
633
1278
|
class KrCard < Stripe::StripeObject
|
@@ -641,9 +1286,19 @@ module Stripe
|
|
641
1286
|
#
|
642
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).
|
643
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
|
644
1297
|
end
|
645
1298
|
|
646
1299
|
class Link < Stripe::StripeObject
|
1300
|
+
# Controls when the funds will be captured from the customer's account.
|
1301
|
+
attr_reader :capture_method
|
647
1302
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
648
1303
|
#
|
649
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.
|
@@ -652,9 +1307,19 @@ module Stripe
|
|
652
1307
|
#
|
653
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).
|
654
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
|
655
1318
|
end
|
656
1319
|
|
657
1320
|
class Mobilepay < Stripe::StripeObject
|
1321
|
+
# Controls when the funds will be captured from the customer's account.
|
1322
|
+
attr_reader :capture_method
|
658
1323
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
659
1324
|
#
|
660
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.
|
@@ -663,6 +1328,14 @@ module Stripe
|
|
663
1328
|
#
|
664
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).
|
665
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
|
666
1339
|
end
|
667
1340
|
|
668
1341
|
class Multibanco < Stripe::StripeObject
|
@@ -674,6 +1347,14 @@ module Stripe
|
|
674
1347
|
#
|
675
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).
|
676
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
|
677
1358
|
end
|
678
1359
|
|
679
1360
|
class NaverPay < Stripe::StripeObject
|
@@ -687,6 +1368,14 @@ module Stripe
|
|
687
1368
|
#
|
688
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).
|
689
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
|
690
1379
|
end
|
691
1380
|
|
692
1381
|
class Oxxo < Stripe::StripeObject
|
@@ -700,6 +1389,14 @@ module Stripe
|
|
700
1389
|
#
|
701
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).
|
702
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
|
703
1400
|
end
|
704
1401
|
|
705
1402
|
class P24 < Stripe::StripeObject
|
@@ -711,11 +1408,27 @@ module Stripe
|
|
711
1408
|
#
|
712
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).
|
713
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
|
714
1419
|
end
|
715
1420
|
|
716
1421
|
class Payco < Stripe::StripeObject
|
717
1422
|
# Controls when the funds will be captured from the customer's account.
|
718
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
|
719
1432
|
end
|
720
1433
|
|
721
1434
|
class Paynow < Stripe::StripeObject
|
@@ -727,6 +1440,14 @@ module Stripe
|
|
727
1440
|
#
|
728
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).
|
729
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
|
730
1451
|
end
|
731
1452
|
|
732
1453
|
class Paypal < Stripe::StripeObject
|
@@ -744,6 +1465,14 @@ module Stripe
|
|
744
1465
|
#
|
745
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).
|
746
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
|
747
1476
|
end
|
748
1477
|
|
749
1478
|
class Pix < Stripe::StripeObject
|
@@ -759,9 +1488,19 @@ module Stripe
|
|
759
1488
|
#
|
760
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).
|
761
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
|
762
1499
|
end
|
763
1500
|
|
764
1501
|
class RevolutPay < Stripe::StripeObject
|
1502
|
+
# Controls when the funds will be captured from the customer's account.
|
1503
|
+
attr_reader :capture_method
|
765
1504
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
766
1505
|
#
|
767
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.
|
@@ -770,17 +1509,54 @@ module Stripe
|
|
770
1509
|
#
|
771
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).
|
772
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
|
773
1520
|
end
|
774
1521
|
|
775
1522
|
class SamsungPay < Stripe::StripeObject
|
776
1523
|
# Controls when the funds will be captured from the customer's account.
|
777
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
|
778
1546
|
end
|
779
1547
|
|
780
1548
|
class SepaDebit < Stripe::StripeObject
|
781
1549
|
class MandateOptions < Stripe::StripeObject
|
782
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'.
|
783
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
|
784
1560
|
end
|
785
1561
|
# Attribute for field mandate_options
|
786
1562
|
attr_reader :mandate_options
|
@@ -794,6 +1570,14 @@ module Stripe
|
|
794
1570
|
attr_reader :setup_future_usage
|
795
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.
|
796
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
|
797
1581
|
end
|
798
1582
|
|
799
1583
|
class Sofort < Stripe::StripeObject
|
@@ -805,11 +1589,27 @@ module Stripe
|
|
805
1589
|
#
|
806
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).
|
807
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
|
808
1600
|
end
|
809
1601
|
|
810
1602
|
class Swish < Stripe::StripeObject
|
811
1603
|
# The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
|
812
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
|
813
1613
|
end
|
814
1614
|
|
815
1615
|
class UsBankAccount < Stripe::StripeObject
|
@@ -817,6 +1617,14 @@ module Stripe
|
|
817
1617
|
class Filters < Stripe::StripeObject
|
818
1618
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
819
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
|
820
1628
|
end
|
821
1629
|
# Attribute for field filters
|
822
1630
|
attr_reader :filters
|
@@ -826,6 +1634,14 @@ module Stripe
|
|
826
1634
|
attr_reader :prefetch
|
827
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.
|
828
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
|
829
1645
|
end
|
830
1646
|
# Attribute for field financial_connections
|
831
1647
|
attr_reader :financial_connections
|
@@ -841,6 +1657,14 @@ module Stripe
|
|
841
1657
|
attr_reader :target_date
|
842
1658
|
# Bank account verification method.
|
843
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
|
844
1668
|
end
|
845
1669
|
# Attribute for field acss_debit
|
846
1670
|
attr_reader :acss_debit
|
@@ -850,6 +1674,8 @@ module Stripe
|
|
850
1674
|
attr_reader :afterpay_clearpay
|
851
1675
|
# Attribute for field alipay
|
852
1676
|
attr_reader :alipay
|
1677
|
+
# Attribute for field alma
|
1678
|
+
attr_reader :alma
|
853
1679
|
# Attribute for field amazon_pay
|
854
1680
|
attr_reader :amazon_pay
|
855
1681
|
# Attribute for field au_becs_debit
|
@@ -858,6 +1684,8 @@ module Stripe
|
|
858
1684
|
attr_reader :bacs_debit
|
859
1685
|
# Attribute for field bancontact
|
860
1686
|
attr_reader :bancontact
|
1687
|
+
# Attribute for field billie
|
1688
|
+
attr_reader :billie
|
861
1689
|
# Attribute for field boleto
|
862
1690
|
attr_reader :boleto
|
863
1691
|
# Attribute for field card
|
@@ -908,6 +1736,8 @@ module Stripe
|
|
908
1736
|
attr_reader :revolut_pay
|
909
1737
|
# Attribute for field samsung_pay
|
910
1738
|
attr_reader :samsung_pay
|
1739
|
+
# Attribute for field satispay
|
1740
|
+
attr_reader :satispay
|
911
1741
|
# Attribute for field sepa_debit
|
912
1742
|
attr_reader :sepa_debit
|
913
1743
|
# Attribute for field sofort
|
@@ -916,6 +1746,55 @@ module Stripe
|
|
916
1746
|
attr_reader :swish
|
917
1747
|
# Attribute for field us_bank_account
|
918
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
|
919
1798
|
end
|
920
1799
|
|
921
1800
|
class Permissions < Stripe::StripeObject
|
@@ -925,11 +1804,27 @@ module Stripe
|
|
925
1804
|
#
|
926
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.
|
927
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
|
928
1815
|
end
|
929
1816
|
|
930
1817
|
class PhoneNumberCollection < Stripe::StripeObject
|
931
1818
|
# Indicates whether phone number collection is enabled for the session
|
932
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
|
933
1828
|
end
|
934
1829
|
|
935
1830
|
class PresentmentDetails < Stripe::StripeObject
|
@@ -937,6 +1832,14 @@ module Stripe
|
|
937
1832
|
attr_reader :presentment_amount
|
938
1833
|
# Currency presented to the customer during payment.
|
939
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
|
940
1843
|
end
|
941
1844
|
|
942
1845
|
class SavedPaymentMethodOptions < Stripe::StripeObject
|
@@ -946,12 +1849,28 @@ module Stripe
|
|
946
1849
|
attr_reader :payment_method_remove
|
947
1850
|
# Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
|
948
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
|
949
1860
|
end
|
950
1861
|
|
951
1862
|
class ShippingAddressCollection < Stripe::StripeObject
|
952
1863
|
# An array of two-letter ISO country codes representing which countries Checkout should provide as options for
|
953
1864
|
# shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`.
|
954
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
|
955
1874
|
end
|
956
1875
|
|
957
1876
|
class ShippingCost < Stripe::StripeObject
|
@@ -966,6 +1885,14 @@ module Stripe
|
|
966
1885
|
attr_reader :taxability_reason
|
967
1886
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
968
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
|
969
1896
|
end
|
970
1897
|
# Total shipping cost before any discounts or taxes are applied.
|
971
1898
|
attr_reader :amount_subtotal
|
@@ -977,6 +1904,14 @@ module Stripe
|
|
977
1904
|
attr_reader :shipping_rate
|
978
1905
|
# The taxes applied to the shipping rate.
|
979
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
|
980
1915
|
end
|
981
1916
|
|
982
1917
|
class ShippingOption < Stripe::StripeObject
|
@@ -984,6 +1919,14 @@ module Stripe
|
|
984
1919
|
attr_reader :shipping_amount
|
985
1920
|
# The shipping rate.
|
986
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
|
987
1930
|
end
|
988
1931
|
|
989
1932
|
class TaxIdCollection < Stripe::StripeObject
|
@@ -991,6 +1934,14 @@ module Stripe
|
|
991
1934
|
attr_reader :enabled
|
992
1935
|
# Indicates whether a tax ID is required on the payment page
|
993
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
|
994
1945
|
end
|
995
1946
|
|
996
1947
|
class TotalDetails < Stripe::StripeObject
|
@@ -1003,6 +1954,14 @@ module Stripe
|
|
1003
1954
|
#
|
1004
1955
|
# Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts)
|
1005
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
|
1006
1965
|
end
|
1007
1966
|
|
1008
1967
|
class Tax < Stripe::StripeObject
|
@@ -1016,11 +1975,27 @@ module Stripe
|
|
1016
1975
|
attr_reader :taxability_reason
|
1017
1976
|
# The amount on which tax is calculated, in cents (or local equivalent).
|
1018
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
|
1019
1986
|
end
|
1020
1987
|
# The aggregated discounts.
|
1021
1988
|
attr_reader :discounts
|
1022
1989
|
# The aggregated tax amounts by rate.
|
1023
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
|
1024
1999
|
end
|
1025
2000
|
# This is the sum of all the discounts.
|
1026
2001
|
attr_reader :amount_discount
|
@@ -1030,2517 +2005,38 @@ module Stripe
|
|
1030
2005
|
attr_reader :amount_tax
|
1031
2006
|
# Attribute for field breakdown
|
1032
2007
|
attr_reader :breakdown
|
1033
|
-
end
|
1034
2008
|
|
1035
|
-
|
1036
|
-
|
1037
|
-
# Describes whether Checkout should display Link. Defaults to `auto`.
|
1038
|
-
attr_reader :display
|
2009
|
+
def self.inner_class_types
|
2010
|
+
@inner_class_types = { breakdown: Breakdown }
|
1039
2011
|
end
|
1040
|
-
# Attribute for field link
|
1041
|
-
attr_reader :link
|
1042
|
-
end
|
1043
2012
|
|
1044
|
-
|
1045
|
-
|
1046
|
-
# Minimum value to filter by (exclusive)
|
1047
|
-
attr_accessor :gt
|
1048
|
-
# Minimum value to filter by (inclusive)
|
1049
|
-
attr_accessor :gte
|
1050
|
-
# Maximum value to filter by (exclusive)
|
1051
|
-
attr_accessor :lt
|
1052
|
-
# Maximum value to filter by (inclusive)
|
1053
|
-
attr_accessor :lte
|
1054
|
-
|
1055
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
1056
|
-
@gt = gt
|
1057
|
-
@gte = gte
|
1058
|
-
@lt = lt
|
1059
|
-
@lte = lte
|
1060
|
-
end
|
1061
|
-
end
|
1062
|
-
|
1063
|
-
class CustomerDetails < Stripe::RequestParams
|
1064
|
-
# Customer's email address.
|
1065
|
-
attr_accessor :email
|
1066
|
-
|
1067
|
-
def initialize(email: nil)
|
1068
|
-
@email = email
|
1069
|
-
end
|
1070
|
-
end
|
1071
|
-
# Only return Checkout Sessions that were created during the given date interval.
|
1072
|
-
attr_accessor :created
|
1073
|
-
# Only return the Checkout Sessions for the Customer specified.
|
1074
|
-
attr_accessor :customer
|
1075
|
-
# Only return the Checkout Sessions for the Customer details specified.
|
1076
|
-
attr_accessor :customer_details
|
1077
|
-
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
1078
|
-
attr_accessor :ending_before
|
1079
|
-
# Specifies which fields in the response should be expanded.
|
1080
|
-
attr_accessor :expand
|
1081
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
1082
|
-
attr_accessor :limit
|
1083
|
-
# Only return the Checkout Session for the PaymentIntent specified.
|
1084
|
-
attr_accessor :payment_intent
|
1085
|
-
# Only return the Checkout Sessions for the Payment Link specified.
|
1086
|
-
attr_accessor :payment_link
|
1087
|
-
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
1088
|
-
attr_accessor :starting_after
|
1089
|
-
# Only return the Checkout Sessions matching the given status.
|
1090
|
-
attr_accessor :status
|
1091
|
-
# Only return the Checkout Session for the subscription specified.
|
1092
|
-
attr_accessor :subscription
|
1093
|
-
|
1094
|
-
def initialize(
|
1095
|
-
created: nil,
|
1096
|
-
customer: nil,
|
1097
|
-
customer_details: nil,
|
1098
|
-
ending_before: nil,
|
1099
|
-
expand: nil,
|
1100
|
-
limit: nil,
|
1101
|
-
payment_intent: nil,
|
1102
|
-
payment_link: nil,
|
1103
|
-
starting_after: nil,
|
1104
|
-
status: nil,
|
1105
|
-
subscription: nil
|
1106
|
-
)
|
1107
|
-
@created = created
|
1108
|
-
@customer = customer
|
1109
|
-
@customer_details = customer_details
|
1110
|
-
@ending_before = ending_before
|
1111
|
-
@expand = expand
|
1112
|
-
@limit = limit
|
1113
|
-
@payment_intent = payment_intent
|
1114
|
-
@payment_link = payment_link
|
1115
|
-
@starting_after = starting_after
|
1116
|
-
@status = status
|
1117
|
-
@subscription = subscription
|
2013
|
+
def self.field_remappings
|
2014
|
+
@field_remappings = {}
|
1118
2015
|
end
|
1119
2016
|
end
|
1120
2017
|
|
1121
|
-
class
|
1122
|
-
class
|
1123
|
-
#
|
1124
|
-
|
1125
|
-
|
1126
|
-
def initialize(enabled: nil)
|
1127
|
-
@enabled = enabled
|
1128
|
-
end
|
1129
|
-
end
|
1130
|
-
|
1131
|
-
class AfterExpiration < Stripe::RequestParams
|
1132
|
-
class Recovery < Stripe::RequestParams
|
1133
|
-
# Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false`
|
1134
|
-
attr_accessor :allow_promotion_codes
|
1135
|
-
# If `true`, a recovery URL will be generated to recover this Checkout Session if it
|
1136
|
-
# expires before a successful transaction is completed. It will be attached to the
|
1137
|
-
# Checkout Session object upon expiration.
|
1138
|
-
attr_accessor :enabled
|
2018
|
+
class WalletOptions < Stripe::StripeObject
|
2019
|
+
class Link < Stripe::StripeObject
|
2020
|
+
# Describes whether Checkout should display Link. Defaults to `auto`.
|
2021
|
+
attr_reader :display
|
1139
2022
|
|
1140
|
-
|
1141
|
-
|
1142
|
-
@enabled = enabled
|
1143
|
-
end
|
2023
|
+
def self.inner_class_types
|
2024
|
+
@inner_class_types = {}
|
1144
2025
|
end
|
1145
|
-
# Configure a Checkout Session that can be used to recover an expired session.
|
1146
|
-
attr_accessor :recovery
|
1147
2026
|
|
1148
|
-
def
|
1149
|
-
@
|
2027
|
+
def self.field_remappings
|
2028
|
+
@field_remappings = {}
|
1150
2029
|
end
|
1151
2030
|
end
|
2031
|
+
# Attribute for field link
|
2032
|
+
attr_reader :link
|
1152
2033
|
|
1153
|
-
|
1154
|
-
|
1155
|
-
# The connected account being referenced when `type` is `account`.
|
1156
|
-
attr_accessor :account
|
1157
|
-
# Type of the account referenced in the request.
|
1158
|
-
attr_accessor :type
|
1159
|
-
|
1160
|
-
def initialize(account: nil, type: nil)
|
1161
|
-
@account = account
|
1162
|
-
@type = type
|
1163
|
-
end
|
1164
|
-
end
|
1165
|
-
# Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
|
1166
|
-
#
|
1167
|
-
# Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation.
|
1168
|
-
attr_accessor :enabled
|
1169
|
-
# 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.
|
1170
|
-
attr_accessor :liability
|
1171
|
-
|
1172
|
-
def initialize(enabled: nil, liability: nil)
|
1173
|
-
@enabled = enabled
|
1174
|
-
@liability = liability
|
1175
|
-
end
|
2034
|
+
def self.inner_class_types
|
2035
|
+
@inner_class_types = { link: Link }
|
1176
2036
|
end
|
1177
2037
|
|
1178
|
-
|
1179
|
-
|
1180
|
-
# Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's
|
1181
|
-
# defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI.
|
1182
|
-
attr_accessor :position
|
1183
|
-
|
1184
|
-
def initialize(position: nil)
|
1185
|
-
@position = position
|
1186
|
-
end
|
1187
|
-
end
|
1188
|
-
# Determines the display of payment method reuse agreement text in the UI. If set to `hidden`, it will hide legal text related to the reuse of a payment method.
|
1189
|
-
attr_accessor :payment_method_reuse_agreement
|
1190
|
-
# If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout
|
1191
|
-
# Session will determine whether to display an option to opt into promotional communication
|
1192
|
-
# from the merchant depending on the customer's locale. Only available to US merchants.
|
1193
|
-
attr_accessor :promotions
|
1194
|
-
# If set to `required`, it requires customers to check a terms of service checkbox before being able to pay.
|
1195
|
-
# There must be a valid terms of service URL set in your [Dashboard settings](https://dashboard.stripe.com/settings/public).
|
1196
|
-
attr_accessor :terms_of_service
|
1197
|
-
|
1198
|
-
def initialize(
|
1199
|
-
payment_method_reuse_agreement: nil,
|
1200
|
-
promotions: nil,
|
1201
|
-
terms_of_service: nil
|
1202
|
-
)
|
1203
|
-
@payment_method_reuse_agreement = payment_method_reuse_agreement
|
1204
|
-
@promotions = promotions
|
1205
|
-
@terms_of_service = terms_of_service
|
1206
|
-
end
|
1207
|
-
end
|
1208
|
-
|
1209
|
-
class CustomField < Stripe::RequestParams
|
1210
|
-
class Dropdown < Stripe::RequestParams
|
1211
|
-
class Option < Stripe::RequestParams
|
1212
|
-
# The label for the option, displayed to the customer. Up to 100 characters.
|
1213
|
-
attr_accessor :label
|
1214
|
-
# 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.
|
1215
|
-
attr_accessor :value
|
1216
|
-
|
1217
|
-
def initialize(label: nil, value: nil)
|
1218
|
-
@label = label
|
1219
|
-
@value = value
|
1220
|
-
end
|
1221
|
-
end
|
1222
|
-
# The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array.
|
1223
|
-
attr_accessor :default_value
|
1224
|
-
# The options available for the customer to select. Up to 200 options allowed.
|
1225
|
-
attr_accessor :options
|
1226
|
-
|
1227
|
-
def initialize(default_value: nil, options: nil)
|
1228
|
-
@default_value = default_value
|
1229
|
-
@options = options
|
1230
|
-
end
|
1231
|
-
end
|
1232
|
-
|
1233
|
-
class Label < Stripe::RequestParams
|
1234
|
-
# Custom text for the label, displayed to the customer. Up to 50 characters.
|
1235
|
-
attr_accessor :custom
|
1236
|
-
# The type of the label.
|
1237
|
-
attr_accessor :type
|
1238
|
-
|
1239
|
-
def initialize(custom: nil, type: nil)
|
1240
|
-
@custom = custom
|
1241
|
-
@type = type
|
1242
|
-
end
|
1243
|
-
end
|
1244
|
-
|
1245
|
-
class Numeric < Stripe::RequestParams
|
1246
|
-
# The value that will pre-fill the field on the payment page.
|
1247
|
-
attr_accessor :default_value
|
1248
|
-
# The maximum character length constraint for the customer's input.
|
1249
|
-
attr_accessor :maximum_length
|
1250
|
-
# The minimum character length requirement for the customer's input.
|
1251
|
-
attr_accessor :minimum_length
|
1252
|
-
|
1253
|
-
def initialize(default_value: nil, maximum_length: nil, minimum_length: nil)
|
1254
|
-
@default_value = default_value
|
1255
|
-
@maximum_length = maximum_length
|
1256
|
-
@minimum_length = minimum_length
|
1257
|
-
end
|
1258
|
-
end
|
1259
|
-
|
1260
|
-
class Text < Stripe::RequestParams
|
1261
|
-
# The value that will pre-fill the field on the payment page.
|
1262
|
-
attr_accessor :default_value
|
1263
|
-
# The maximum character length constraint for the customer's input.
|
1264
|
-
attr_accessor :maximum_length
|
1265
|
-
# The minimum character length requirement for the customer's input.
|
1266
|
-
attr_accessor :minimum_length
|
1267
|
-
|
1268
|
-
def initialize(default_value: nil, maximum_length: nil, minimum_length: nil)
|
1269
|
-
@default_value = default_value
|
1270
|
-
@maximum_length = maximum_length
|
1271
|
-
@minimum_length = minimum_length
|
1272
|
-
end
|
1273
|
-
end
|
1274
|
-
# Configuration for `type=dropdown` fields.
|
1275
|
-
attr_accessor :dropdown
|
1276
|
-
# 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.
|
1277
|
-
attr_accessor :key
|
1278
|
-
# The label for the field, displayed to the customer.
|
1279
|
-
attr_accessor :label
|
1280
|
-
# Configuration for `type=numeric` fields.
|
1281
|
-
attr_accessor :numeric
|
1282
|
-
# Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
|
1283
|
-
attr_accessor :optional
|
1284
|
-
# Configuration for `type=text` fields.
|
1285
|
-
attr_accessor :text
|
1286
|
-
# The type of the field.
|
1287
|
-
attr_accessor :type
|
1288
|
-
|
1289
|
-
def initialize(
|
1290
|
-
dropdown: nil,
|
1291
|
-
key: nil,
|
1292
|
-
label: nil,
|
1293
|
-
numeric: nil,
|
1294
|
-
optional: nil,
|
1295
|
-
text: nil,
|
1296
|
-
type: nil
|
1297
|
-
)
|
1298
|
-
@dropdown = dropdown
|
1299
|
-
@key = key
|
1300
|
-
@label = label
|
1301
|
-
@numeric = numeric
|
1302
|
-
@optional = optional
|
1303
|
-
@text = text
|
1304
|
-
@type = type
|
1305
|
-
end
|
1306
|
-
end
|
1307
|
-
|
1308
|
-
class CustomText < Stripe::RequestParams
|
1309
|
-
class AfterSubmit < Stripe::RequestParams
|
1310
|
-
# Text may be up to 1200 characters in length.
|
1311
|
-
attr_accessor :message
|
1312
|
-
|
1313
|
-
def initialize(message: nil)
|
1314
|
-
@message = message
|
1315
|
-
end
|
1316
|
-
end
|
1317
|
-
|
1318
|
-
class ShippingAddress < Stripe::RequestParams
|
1319
|
-
# Text may be up to 1200 characters in length.
|
1320
|
-
attr_accessor :message
|
1321
|
-
|
1322
|
-
def initialize(message: nil)
|
1323
|
-
@message = message
|
1324
|
-
end
|
1325
|
-
end
|
1326
|
-
|
1327
|
-
class Submit < Stripe::RequestParams
|
1328
|
-
# Text may be up to 1200 characters in length.
|
1329
|
-
attr_accessor :message
|
1330
|
-
|
1331
|
-
def initialize(message: nil)
|
1332
|
-
@message = message
|
1333
|
-
end
|
1334
|
-
end
|
1335
|
-
|
1336
|
-
class TermsOfServiceAcceptance < Stripe::RequestParams
|
1337
|
-
# Text may be up to 1200 characters in length.
|
1338
|
-
attr_accessor :message
|
1339
|
-
|
1340
|
-
def initialize(message: nil)
|
1341
|
-
@message = message
|
1342
|
-
end
|
1343
|
-
end
|
1344
|
-
# Custom text that should be displayed after the payment confirmation button.
|
1345
|
-
attr_accessor :after_submit
|
1346
|
-
# Custom text that should be displayed alongside shipping address collection.
|
1347
|
-
attr_accessor :shipping_address
|
1348
|
-
# Custom text that should be displayed alongside the payment confirmation button.
|
1349
|
-
attr_accessor :submit
|
1350
|
-
# Custom text that should be displayed in place of the default terms of service agreement text.
|
1351
|
-
attr_accessor :terms_of_service_acceptance
|
1352
|
-
|
1353
|
-
def initialize(
|
1354
|
-
after_submit: nil,
|
1355
|
-
shipping_address: nil,
|
1356
|
-
submit: nil,
|
1357
|
-
terms_of_service_acceptance: nil
|
1358
|
-
)
|
1359
|
-
@after_submit = after_submit
|
1360
|
-
@shipping_address = shipping_address
|
1361
|
-
@submit = submit
|
1362
|
-
@terms_of_service_acceptance = terms_of_service_acceptance
|
1363
|
-
end
|
1364
|
-
end
|
1365
|
-
|
1366
|
-
class CustomerUpdate < Stripe::RequestParams
|
1367
|
-
# Describes whether Checkout saves the billing address onto `customer.address`.
|
1368
|
-
# To always collect a full billing address, use `billing_address_collection`. Defaults to `never`.
|
1369
|
-
attr_accessor :address
|
1370
|
-
# Describes whether Checkout saves the name onto `customer.name`. Defaults to `never`.
|
1371
|
-
attr_accessor :name
|
1372
|
-
# Describes whether Checkout saves shipping information onto `customer.shipping`.
|
1373
|
-
# To collect shipping information, use `shipping_address_collection`. Defaults to `never`.
|
1374
|
-
attr_accessor :shipping
|
1375
|
-
|
1376
|
-
def initialize(address: nil, name: nil, shipping: nil)
|
1377
|
-
@address = address
|
1378
|
-
@name = name
|
1379
|
-
@shipping = shipping
|
1380
|
-
end
|
1381
|
-
end
|
1382
|
-
|
1383
|
-
class Discount < Stripe::RequestParams
|
1384
|
-
# The ID of the coupon to apply to this Session.
|
1385
|
-
attr_accessor :coupon
|
1386
|
-
# The ID of a promotion code to apply to this Session.
|
1387
|
-
attr_accessor :promotion_code
|
1388
|
-
|
1389
|
-
def initialize(coupon: nil, promotion_code: nil)
|
1390
|
-
@coupon = coupon
|
1391
|
-
@promotion_code = promotion_code
|
1392
|
-
end
|
1393
|
-
end
|
1394
|
-
|
1395
|
-
class InvoiceCreation < Stripe::RequestParams
|
1396
|
-
class InvoiceData < Stripe::RequestParams
|
1397
|
-
class CustomField < Stripe::RequestParams
|
1398
|
-
# The name of the custom field. This may be up to 40 characters.
|
1399
|
-
attr_accessor :name
|
1400
|
-
# The value of the custom field. This may be up to 140 characters.
|
1401
|
-
attr_accessor :value
|
1402
|
-
|
1403
|
-
def initialize(name: nil, value: nil)
|
1404
|
-
@name = name
|
1405
|
-
@value = value
|
1406
|
-
end
|
1407
|
-
end
|
1408
|
-
|
1409
|
-
class Issuer < Stripe::RequestParams
|
1410
|
-
# The connected account being referenced when `type` is `account`.
|
1411
|
-
attr_accessor :account
|
1412
|
-
# Type of the account referenced in the request.
|
1413
|
-
attr_accessor :type
|
1414
|
-
|
1415
|
-
def initialize(account: nil, type: nil)
|
1416
|
-
@account = account
|
1417
|
-
@type = type
|
1418
|
-
end
|
1419
|
-
end
|
1420
|
-
|
1421
|
-
class RenderingOptions < Stripe::RequestParams
|
1422
|
-
# How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
|
1423
|
-
attr_accessor :amount_tax_display
|
1424
|
-
# ID of the invoice rendering template to use for this invoice.
|
1425
|
-
attr_accessor :template
|
1426
|
-
|
1427
|
-
def initialize(amount_tax_display: nil, template: nil)
|
1428
|
-
@amount_tax_display = amount_tax_display
|
1429
|
-
@template = template
|
1430
|
-
end
|
1431
|
-
end
|
1432
|
-
# The account tax IDs associated with the invoice.
|
1433
|
-
attr_accessor :account_tax_ids
|
1434
|
-
# Default custom fields to be displayed on invoices for this customer.
|
1435
|
-
attr_accessor :custom_fields
|
1436
|
-
# An arbitrary string attached to the object. Often useful for displaying to users.
|
1437
|
-
attr_accessor :description
|
1438
|
-
# Default footer to be displayed on invoices for this customer.
|
1439
|
-
attr_accessor :footer
|
1440
|
-
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
1441
|
-
attr_accessor :issuer
|
1442
|
-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
1443
|
-
attr_accessor :metadata
|
1444
|
-
# Default options for invoice PDF rendering for this customer.
|
1445
|
-
attr_accessor :rendering_options
|
1446
|
-
|
1447
|
-
def initialize(
|
1448
|
-
account_tax_ids: nil,
|
1449
|
-
custom_fields: nil,
|
1450
|
-
description: nil,
|
1451
|
-
footer: nil,
|
1452
|
-
issuer: nil,
|
1453
|
-
metadata: nil,
|
1454
|
-
rendering_options: nil
|
1455
|
-
)
|
1456
|
-
@account_tax_ids = account_tax_ids
|
1457
|
-
@custom_fields = custom_fields
|
1458
|
-
@description = description
|
1459
|
-
@footer = footer
|
1460
|
-
@issuer = issuer
|
1461
|
-
@metadata = metadata
|
1462
|
-
@rendering_options = rendering_options
|
1463
|
-
end
|
1464
|
-
end
|
1465
|
-
# Set to `true` to enable invoice creation.
|
1466
|
-
attr_accessor :enabled
|
1467
|
-
# Parameters passed when creating invoices for payment-mode Checkout Sessions.
|
1468
|
-
attr_accessor :invoice_data
|
1469
|
-
|
1470
|
-
def initialize(enabled: nil, invoice_data: nil)
|
1471
|
-
@enabled = enabled
|
1472
|
-
@invoice_data = invoice_data
|
1473
|
-
end
|
1474
|
-
end
|
1475
|
-
|
1476
|
-
class LineItem < Stripe::RequestParams
|
1477
|
-
class AdjustableQuantity < Stripe::RequestParams
|
1478
|
-
# Set to true if the quantity can be adjusted to any non-negative integer.
|
1479
|
-
attr_accessor :enabled
|
1480
|
-
# The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999.
|
1481
|
-
attr_accessor :maximum
|
1482
|
-
# The minimum quantity the customer must purchase for the Checkout Session. By default this value is 0.
|
1483
|
-
attr_accessor :minimum
|
1484
|
-
|
1485
|
-
def initialize(enabled: nil, maximum: nil, minimum: nil)
|
1486
|
-
@enabled = enabled
|
1487
|
-
@maximum = maximum
|
1488
|
-
@minimum = minimum
|
1489
|
-
end
|
1490
|
-
end
|
1491
|
-
|
1492
|
-
class PriceData < Stripe::RequestParams
|
1493
|
-
class ProductData < Stripe::RequestParams
|
1494
|
-
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
1495
|
-
attr_accessor :description
|
1496
|
-
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
1497
|
-
attr_accessor :images
|
1498
|
-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
1499
|
-
attr_accessor :metadata
|
1500
|
-
# The product's name, meant to be displayable to the customer.
|
1501
|
-
attr_accessor :name
|
1502
|
-
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
1503
|
-
attr_accessor :tax_code
|
1504
|
-
|
1505
|
-
def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil)
|
1506
|
-
@description = description
|
1507
|
-
@images = images
|
1508
|
-
@metadata = metadata
|
1509
|
-
@name = name
|
1510
|
-
@tax_code = tax_code
|
1511
|
-
end
|
1512
|
-
end
|
1513
|
-
|
1514
|
-
class Recurring < Stripe::RequestParams
|
1515
|
-
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
1516
|
-
attr_accessor :interval
|
1517
|
-
# The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
|
1518
|
-
attr_accessor :interval_count
|
1519
|
-
|
1520
|
-
def initialize(interval: nil, interval_count: nil)
|
1521
|
-
@interval = interval
|
1522
|
-
@interval_count = interval_count
|
1523
|
-
end
|
1524
|
-
end
|
1525
|
-
# 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).
|
1526
|
-
attr_accessor :currency
|
1527
|
-
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
|
1528
|
-
attr_accessor :product
|
1529
|
-
# Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
|
1530
|
-
attr_accessor :product_data
|
1531
|
-
# The recurring components of a price such as `interval` and `interval_count`.
|
1532
|
-
attr_accessor :recurring
|
1533
|
-
# Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
1534
|
-
attr_accessor :tax_behavior
|
1535
|
-
# A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
|
1536
|
-
attr_accessor :unit_amount
|
1537
|
-
# Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
|
1538
|
-
attr_accessor :unit_amount_decimal
|
1539
|
-
|
1540
|
-
def initialize(
|
1541
|
-
currency: nil,
|
1542
|
-
product: nil,
|
1543
|
-
product_data: nil,
|
1544
|
-
recurring: nil,
|
1545
|
-
tax_behavior: nil,
|
1546
|
-
unit_amount: nil,
|
1547
|
-
unit_amount_decimal: nil
|
1548
|
-
)
|
1549
|
-
@currency = currency
|
1550
|
-
@product = product
|
1551
|
-
@product_data = product_data
|
1552
|
-
@recurring = recurring
|
1553
|
-
@tax_behavior = tax_behavior
|
1554
|
-
@unit_amount = unit_amount
|
1555
|
-
@unit_amount_decimal = unit_amount_decimal
|
1556
|
-
end
|
1557
|
-
end
|
1558
|
-
# When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
|
1559
|
-
attr_accessor :adjustable_quantity
|
1560
|
-
# The [tax rates](https://stripe.com/docs/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.
|
1561
|
-
attr_accessor :dynamic_tax_rates
|
1562
|
-
# The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
|
1563
|
-
attr_accessor :price
|
1564
|
-
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
1565
|
-
attr_accessor :price_data
|
1566
|
-
# The quantity of the line item being purchased. Quantity should not be defined when `recurring.usage_type=metered`.
|
1567
|
-
attr_accessor :quantity
|
1568
|
-
# The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
|
1569
|
-
attr_accessor :tax_rates
|
1570
|
-
|
1571
|
-
def initialize(
|
1572
|
-
adjustable_quantity: nil,
|
1573
|
-
dynamic_tax_rates: nil,
|
1574
|
-
price: nil,
|
1575
|
-
price_data: nil,
|
1576
|
-
quantity: nil,
|
1577
|
-
tax_rates: nil
|
1578
|
-
)
|
1579
|
-
@adjustable_quantity = adjustable_quantity
|
1580
|
-
@dynamic_tax_rates = dynamic_tax_rates
|
1581
|
-
@price = price
|
1582
|
-
@price_data = price_data
|
1583
|
-
@quantity = quantity
|
1584
|
-
@tax_rates = tax_rates
|
1585
|
-
end
|
1586
|
-
end
|
1587
|
-
|
1588
|
-
class OptionalItem < Stripe::RequestParams
|
1589
|
-
class AdjustableQuantity < Stripe::RequestParams
|
1590
|
-
# Set to true if the quantity can be adjusted to any non-negative integer.
|
1591
|
-
attr_accessor :enabled
|
1592
|
-
# The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999.
|
1593
|
-
attr_accessor :maximum
|
1594
|
-
# 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.
|
1595
|
-
attr_accessor :minimum
|
1596
|
-
|
1597
|
-
def initialize(enabled: nil, maximum: nil, minimum: nil)
|
1598
|
-
@enabled = enabled
|
1599
|
-
@maximum = maximum
|
1600
|
-
@minimum = minimum
|
1601
|
-
end
|
1602
|
-
end
|
1603
|
-
# When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.
|
1604
|
-
attr_accessor :adjustable_quantity
|
1605
|
-
# The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
|
1606
|
-
attr_accessor :price
|
1607
|
-
# The initial quantity of the line item created when a customer chooses to add this optional item to their order.
|
1608
|
-
attr_accessor :quantity
|
1609
|
-
|
1610
|
-
def initialize(adjustable_quantity: nil, price: nil, quantity: nil)
|
1611
|
-
@adjustable_quantity = adjustable_quantity
|
1612
|
-
@price = price
|
1613
|
-
@quantity = quantity
|
1614
|
-
end
|
1615
|
-
end
|
1616
|
-
|
1617
|
-
class PaymentIntentData < Stripe::RequestParams
|
1618
|
-
class Shipping < Stripe::RequestParams
|
1619
|
-
class Address < Stripe::RequestParams
|
1620
|
-
# City, district, suburb, town, or village.
|
1621
|
-
attr_accessor :city
|
1622
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1623
|
-
attr_accessor :country
|
1624
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
1625
|
-
attr_accessor :line1
|
1626
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1627
|
-
attr_accessor :line2
|
1628
|
-
# ZIP or postal code.
|
1629
|
-
attr_accessor :postal_code
|
1630
|
-
# State, county, province, or region.
|
1631
|
-
attr_accessor :state
|
1632
|
-
|
1633
|
-
def initialize(
|
1634
|
-
city: nil,
|
1635
|
-
country: nil,
|
1636
|
-
line1: nil,
|
1637
|
-
line2: nil,
|
1638
|
-
postal_code: nil,
|
1639
|
-
state: nil
|
1640
|
-
)
|
1641
|
-
@city = city
|
1642
|
-
@country = country
|
1643
|
-
@line1 = line1
|
1644
|
-
@line2 = line2
|
1645
|
-
@postal_code = postal_code
|
1646
|
-
@state = state
|
1647
|
-
end
|
1648
|
-
end
|
1649
|
-
# Shipping address.
|
1650
|
-
attr_accessor :address
|
1651
|
-
# The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
|
1652
|
-
attr_accessor :carrier
|
1653
|
-
# Recipient name.
|
1654
|
-
attr_accessor :name
|
1655
|
-
# Recipient phone (including extension).
|
1656
|
-
attr_accessor :phone
|
1657
|
-
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
1658
|
-
attr_accessor :tracking_number
|
1659
|
-
|
1660
|
-
def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil)
|
1661
|
-
@address = address
|
1662
|
-
@carrier = carrier
|
1663
|
-
@name = name
|
1664
|
-
@phone = phone
|
1665
|
-
@tracking_number = tracking_number
|
1666
|
-
end
|
1667
|
-
end
|
1668
|
-
|
1669
|
-
class TransferData < Stripe::RequestParams
|
1670
|
-
# The amount that will be transferred automatically when a charge succeeds.
|
1671
|
-
attr_accessor :amount
|
1672
|
-
# If specified, successful charges will be attributed to the destination
|
1673
|
-
# account for tax reporting, and the funds from charges will be transferred
|
1674
|
-
# to the destination account. The ID of the resulting transfer will be
|
1675
|
-
# returned on the successful charge's `transfer` field.
|
1676
|
-
attr_accessor :destination
|
1677
|
-
|
1678
|
-
def initialize(amount: nil, destination: nil)
|
1679
|
-
@amount = amount
|
1680
|
-
@destination = destination
|
1681
|
-
end
|
1682
|
-
end
|
1683
|
-
# The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
1684
|
-
attr_accessor :application_fee_amount
|
1685
|
-
# Controls when the funds will be captured from the customer's account.
|
1686
|
-
attr_accessor :capture_method
|
1687
|
-
# An arbitrary string attached to the object. Often useful for displaying to users.
|
1688
|
-
attr_accessor :description
|
1689
|
-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
1690
|
-
attr_accessor :metadata
|
1691
|
-
# The Stripe account ID for which these funds are intended. For details,
|
1692
|
-
# see the PaymentIntents [use case for connected
|
1693
|
-
# accounts](/docs/payments/connected-accounts).
|
1694
|
-
attr_accessor :on_behalf_of
|
1695
|
-
# Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
1696
|
-
attr_accessor :receipt_email
|
1697
|
-
# Indicates that you intend to [make future payments](https://stripe.com/docs/payments/payment-intents#future-usage) with the payment
|
1698
|
-
# method collected by this Checkout Session.
|
1699
|
-
#
|
1700
|
-
# When setting this to `on_session`, Checkout will show a notice to the
|
1701
|
-
# customer that their payment details will be saved.
|
1702
|
-
#
|
1703
|
-
# When setting this to `off_session`, Checkout will show a notice to the
|
1704
|
-
# customer that their payment details will be saved and used for future
|
1705
|
-
# payments.
|
1706
|
-
#
|
1707
|
-
# If a Customer has been provided or Checkout creates a new Customer,
|
1708
|
-
# Checkout will attach the payment method to the Customer.
|
1709
|
-
#
|
1710
|
-
# If Checkout does not create a Customer, the payment method is not attached
|
1711
|
-
# to a Customer. To reuse the payment method, you can retrieve it from the
|
1712
|
-
# Checkout Session's PaymentIntent.
|
1713
|
-
#
|
1714
|
-
# When processing card payments, Checkout also uses `setup_future_usage`
|
1715
|
-
# to dynamically optimize your payment flow and comply with regional
|
1716
|
-
# legislation and network rules, such as SCA.
|
1717
|
-
attr_accessor :setup_future_usage
|
1718
|
-
# Shipping information for this payment.
|
1719
|
-
attr_accessor :shipping
|
1720
|
-
# Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
1721
|
-
#
|
1722
|
-
# Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
|
1723
|
-
attr_accessor :statement_descriptor
|
1724
|
-
# Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
|
1725
|
-
attr_accessor :statement_descriptor_suffix
|
1726
|
-
# The parameters used to automatically create a Transfer when the payment succeeds.
|
1727
|
-
# For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts).
|
1728
|
-
attr_accessor :transfer_data
|
1729
|
-
# A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
|
1730
|
-
attr_accessor :transfer_group
|
1731
|
-
|
1732
|
-
def initialize(
|
1733
|
-
application_fee_amount: nil,
|
1734
|
-
capture_method: nil,
|
1735
|
-
description: nil,
|
1736
|
-
metadata: nil,
|
1737
|
-
on_behalf_of: nil,
|
1738
|
-
receipt_email: nil,
|
1739
|
-
setup_future_usage: nil,
|
1740
|
-
shipping: nil,
|
1741
|
-
statement_descriptor: nil,
|
1742
|
-
statement_descriptor_suffix: nil,
|
1743
|
-
transfer_data: nil,
|
1744
|
-
transfer_group: nil
|
1745
|
-
)
|
1746
|
-
@application_fee_amount = application_fee_amount
|
1747
|
-
@capture_method = capture_method
|
1748
|
-
@description = description
|
1749
|
-
@metadata = metadata
|
1750
|
-
@on_behalf_of = on_behalf_of
|
1751
|
-
@receipt_email = receipt_email
|
1752
|
-
@setup_future_usage = setup_future_usage
|
1753
|
-
@shipping = shipping
|
1754
|
-
@statement_descriptor = statement_descriptor
|
1755
|
-
@statement_descriptor_suffix = statement_descriptor_suffix
|
1756
|
-
@transfer_data = transfer_data
|
1757
|
-
@transfer_group = transfer_group
|
1758
|
-
end
|
1759
|
-
end
|
1760
|
-
|
1761
|
-
class PaymentMethodData < Stripe::RequestParams
|
1762
|
-
# Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout.
|
1763
|
-
attr_accessor :allow_redisplay
|
1764
|
-
|
1765
|
-
def initialize(allow_redisplay: nil)
|
1766
|
-
@allow_redisplay = allow_redisplay
|
1767
|
-
end
|
1768
|
-
end
|
1769
|
-
|
1770
|
-
class PaymentMethodOptions < Stripe::RequestParams
|
1771
|
-
class AcssDebit < Stripe::RequestParams
|
1772
|
-
class MandateOptions < Stripe::RequestParams
|
1773
|
-
# A URL for custom mandate text to render during confirmation step.
|
1774
|
-
# The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent,
|
1775
|
-
# or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent.
|
1776
|
-
attr_accessor :custom_mandate_url
|
1777
|
-
# List of Stripe products where this mandate can be selected automatically. Only usable in `setup` mode.
|
1778
|
-
attr_accessor :default_for
|
1779
|
-
# Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
|
1780
|
-
attr_accessor :interval_description
|
1781
|
-
# Payment schedule for the mandate.
|
1782
|
-
attr_accessor :payment_schedule
|
1783
|
-
# Transaction type of the mandate.
|
1784
|
-
attr_accessor :transaction_type
|
1785
|
-
|
1786
|
-
def initialize(
|
1787
|
-
custom_mandate_url: nil,
|
1788
|
-
default_for: nil,
|
1789
|
-
interval_description: nil,
|
1790
|
-
payment_schedule: nil,
|
1791
|
-
transaction_type: nil
|
1792
|
-
)
|
1793
|
-
@custom_mandate_url = custom_mandate_url
|
1794
|
-
@default_for = default_for
|
1795
|
-
@interval_description = interval_description
|
1796
|
-
@payment_schedule = payment_schedule
|
1797
|
-
@transaction_type = transaction_type
|
1798
|
-
end
|
1799
|
-
end
|
1800
|
-
# 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). This is only accepted for Checkout Sessions in `setup` mode.
|
1801
|
-
attr_accessor :currency
|
1802
|
-
# Additional fields for Mandate creation
|
1803
|
-
attr_accessor :mandate_options
|
1804
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1805
|
-
#
|
1806
|
-
# 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.
|
1807
|
-
#
|
1808
|
-
# 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.
|
1809
|
-
#
|
1810
|
-
# 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).
|
1811
|
-
attr_accessor :setup_future_usage
|
1812
|
-
# 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.
|
1813
|
-
attr_accessor :target_date
|
1814
|
-
# Verification method for the intent
|
1815
|
-
attr_accessor :verification_method
|
1816
|
-
|
1817
|
-
def initialize(
|
1818
|
-
currency: nil,
|
1819
|
-
mandate_options: nil,
|
1820
|
-
setup_future_usage: nil,
|
1821
|
-
target_date: nil,
|
1822
|
-
verification_method: nil
|
1823
|
-
)
|
1824
|
-
@currency = currency
|
1825
|
-
@mandate_options = mandate_options
|
1826
|
-
@setup_future_usage = setup_future_usage
|
1827
|
-
@target_date = target_date
|
1828
|
-
@verification_method = verification_method
|
1829
|
-
end
|
1830
|
-
end
|
1831
|
-
|
1832
|
-
class Affirm < Stripe::RequestParams
|
1833
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1834
|
-
#
|
1835
|
-
# 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.
|
1836
|
-
#
|
1837
|
-
# 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.
|
1838
|
-
#
|
1839
|
-
# 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).
|
1840
|
-
attr_accessor :setup_future_usage
|
1841
|
-
|
1842
|
-
def initialize(setup_future_usage: nil)
|
1843
|
-
@setup_future_usage = setup_future_usage
|
1844
|
-
end
|
1845
|
-
end
|
1846
|
-
|
1847
|
-
class AfterpayClearpay < Stripe::RequestParams
|
1848
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1849
|
-
#
|
1850
|
-
# If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
|
1851
|
-
#
|
1852
|
-
# 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.
|
1853
|
-
#
|
1854
|
-
# 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).
|
1855
|
-
attr_accessor :setup_future_usage
|
1856
|
-
|
1857
|
-
def initialize(setup_future_usage: nil)
|
1858
|
-
@setup_future_usage = setup_future_usage
|
1859
|
-
end
|
1860
|
-
end
|
1861
|
-
|
1862
|
-
class Alipay < Stripe::RequestParams
|
1863
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1864
|
-
#
|
1865
|
-
# 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.
|
1866
|
-
#
|
1867
|
-
# 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.
|
1868
|
-
#
|
1869
|
-
# 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).
|
1870
|
-
attr_accessor :setup_future_usage
|
1871
|
-
|
1872
|
-
def initialize(setup_future_usage: nil)
|
1873
|
-
@setup_future_usage = setup_future_usage
|
1874
|
-
end
|
1875
|
-
end
|
1876
|
-
|
1877
|
-
class AmazonPay < Stripe::RequestParams
|
1878
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1879
|
-
#
|
1880
|
-
# 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.
|
1881
|
-
#
|
1882
|
-
# 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.
|
1883
|
-
#
|
1884
|
-
# 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).
|
1885
|
-
attr_accessor :setup_future_usage
|
1886
|
-
|
1887
|
-
def initialize(setup_future_usage: nil)
|
1888
|
-
@setup_future_usage = setup_future_usage
|
1889
|
-
end
|
1890
|
-
end
|
1891
|
-
|
1892
|
-
class AuBecsDebit < Stripe::RequestParams
|
1893
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1894
|
-
#
|
1895
|
-
# 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.
|
1896
|
-
#
|
1897
|
-
# 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.
|
1898
|
-
#
|
1899
|
-
# 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).
|
1900
|
-
attr_accessor :setup_future_usage
|
1901
|
-
# 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.
|
1902
|
-
attr_accessor :target_date
|
1903
|
-
|
1904
|
-
def initialize(setup_future_usage: nil, target_date: nil)
|
1905
|
-
@setup_future_usage = setup_future_usage
|
1906
|
-
@target_date = target_date
|
1907
|
-
end
|
1908
|
-
end
|
1909
|
-
|
1910
|
-
class BacsDebit < Stripe::RequestParams
|
1911
|
-
class MandateOptions < Stripe::RequestParams
|
1912
|
-
# 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'.
|
1913
|
-
attr_accessor :reference_prefix
|
1914
|
-
|
1915
|
-
def initialize(reference_prefix: nil)
|
1916
|
-
@reference_prefix = reference_prefix
|
1917
|
-
end
|
1918
|
-
end
|
1919
|
-
# Additional fields for Mandate creation
|
1920
|
-
attr_accessor :mandate_options
|
1921
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1922
|
-
#
|
1923
|
-
# 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.
|
1924
|
-
#
|
1925
|
-
# 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.
|
1926
|
-
#
|
1927
|
-
# 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).
|
1928
|
-
attr_accessor :setup_future_usage
|
1929
|
-
# 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.
|
1930
|
-
attr_accessor :target_date
|
1931
|
-
|
1932
|
-
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
1933
|
-
@mandate_options = mandate_options
|
1934
|
-
@setup_future_usage = setup_future_usage
|
1935
|
-
@target_date = target_date
|
1936
|
-
end
|
1937
|
-
end
|
1938
|
-
|
1939
|
-
class Bancontact < Stripe::RequestParams
|
1940
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1941
|
-
#
|
1942
|
-
# 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.
|
1943
|
-
#
|
1944
|
-
# 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.
|
1945
|
-
#
|
1946
|
-
# 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).
|
1947
|
-
attr_accessor :setup_future_usage
|
1948
|
-
|
1949
|
-
def initialize(setup_future_usage: nil)
|
1950
|
-
@setup_future_usage = setup_future_usage
|
1951
|
-
end
|
1952
|
-
end
|
1953
|
-
|
1954
|
-
class Boleto < Stripe::RequestParams
|
1955
|
-
# The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time.
|
1956
|
-
attr_accessor :expires_after_days
|
1957
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
1958
|
-
#
|
1959
|
-
# 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.
|
1960
|
-
#
|
1961
|
-
# 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.
|
1962
|
-
#
|
1963
|
-
# 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).
|
1964
|
-
attr_accessor :setup_future_usage
|
1965
|
-
|
1966
|
-
def initialize(expires_after_days: nil, setup_future_usage: nil)
|
1967
|
-
@expires_after_days = expires_after_days
|
1968
|
-
@setup_future_usage = setup_future_usage
|
1969
|
-
end
|
1970
|
-
end
|
1971
|
-
|
1972
|
-
class Card < Stripe::RequestParams
|
1973
|
-
class Installments < Stripe::RequestParams
|
1974
|
-
# Setting to true enables installments for this Checkout Session.
|
1975
|
-
# Setting to false will prevent any installment plan from applying to a payment.
|
1976
|
-
attr_accessor :enabled
|
1977
|
-
|
1978
|
-
def initialize(enabled: nil)
|
1979
|
-
@enabled = enabled
|
1980
|
-
end
|
1981
|
-
end
|
1982
|
-
|
1983
|
-
class Restrictions < Stripe::RequestParams
|
1984
|
-
# 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.
|
1985
|
-
attr_accessor :brands_blocked
|
1986
|
-
|
1987
|
-
def initialize(brands_blocked: nil)
|
1988
|
-
@brands_blocked = brands_blocked
|
1989
|
-
end
|
1990
|
-
end
|
1991
|
-
# Installment options for card payments
|
1992
|
-
attr_accessor :installments
|
1993
|
-
# Request ability to [capture beyond the standard authorization validity window](/payments/extended-authorization) for this CheckoutSession.
|
1994
|
-
attr_accessor :request_extended_authorization
|
1995
|
-
# Request ability to [increment the authorization](/payments/incremental-authorization) for this CheckoutSession.
|
1996
|
-
attr_accessor :request_incremental_authorization
|
1997
|
-
# Request ability to make [multiple captures](/payments/multicapture) for this CheckoutSession.
|
1998
|
-
attr_accessor :request_multicapture
|
1999
|
-
# Request ability to [overcapture](/payments/overcapture) for this CheckoutSession.
|
2000
|
-
attr_accessor :request_overcapture
|
2001
|
-
# 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.
|
2002
|
-
attr_accessor :request_three_d_secure
|
2003
|
-
# Restrictions to apply to the card payment method. For example, you can block specific card brands.
|
2004
|
-
attr_accessor :restrictions
|
2005
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2006
|
-
#
|
2007
|
-
# 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.
|
2008
|
-
#
|
2009
|
-
# 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.
|
2010
|
-
#
|
2011
|
-
# 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).
|
2012
|
-
attr_accessor :setup_future_usage
|
2013
|
-
# 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.
|
2014
|
-
attr_accessor :statement_descriptor_suffix_kana
|
2015
|
-
# 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.
|
2016
|
-
attr_accessor :statement_descriptor_suffix_kanji
|
2017
|
-
|
2018
|
-
def initialize(
|
2019
|
-
installments: nil,
|
2020
|
-
request_extended_authorization: nil,
|
2021
|
-
request_incremental_authorization: nil,
|
2022
|
-
request_multicapture: nil,
|
2023
|
-
request_overcapture: nil,
|
2024
|
-
request_three_d_secure: nil,
|
2025
|
-
restrictions: nil,
|
2026
|
-
setup_future_usage: nil,
|
2027
|
-
statement_descriptor_suffix_kana: nil,
|
2028
|
-
statement_descriptor_suffix_kanji: nil
|
2029
|
-
)
|
2030
|
-
@installments = installments
|
2031
|
-
@request_extended_authorization = request_extended_authorization
|
2032
|
-
@request_incremental_authorization = request_incremental_authorization
|
2033
|
-
@request_multicapture = request_multicapture
|
2034
|
-
@request_overcapture = request_overcapture
|
2035
|
-
@request_three_d_secure = request_three_d_secure
|
2036
|
-
@restrictions = restrictions
|
2037
|
-
@setup_future_usage = setup_future_usage
|
2038
|
-
@statement_descriptor_suffix_kana = statement_descriptor_suffix_kana
|
2039
|
-
@statement_descriptor_suffix_kanji = statement_descriptor_suffix_kanji
|
2040
|
-
end
|
2041
|
-
end
|
2042
|
-
|
2043
|
-
class Cashapp < Stripe::RequestParams
|
2044
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2045
|
-
#
|
2046
|
-
# 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.
|
2047
|
-
#
|
2048
|
-
# 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.
|
2049
|
-
#
|
2050
|
-
# 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).
|
2051
|
-
attr_accessor :setup_future_usage
|
2052
|
-
|
2053
|
-
def initialize(setup_future_usage: nil)
|
2054
|
-
@setup_future_usage = setup_future_usage
|
2055
|
-
end
|
2056
|
-
end
|
2057
|
-
|
2058
|
-
class CustomerBalance < Stripe::RequestParams
|
2059
|
-
class BankTransfer < Stripe::RequestParams
|
2060
|
-
class EuBankTransfer < Stripe::RequestParams
|
2061
|
-
# The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`.
|
2062
|
-
attr_accessor :country
|
2063
|
-
|
2064
|
-
def initialize(country: nil)
|
2065
|
-
@country = country
|
2066
|
-
end
|
2067
|
-
end
|
2068
|
-
# Configuration for eu_bank_transfer funding type.
|
2069
|
-
attr_accessor :eu_bank_transfer
|
2070
|
-
# List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
|
2071
|
-
#
|
2072
|
-
# Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`.
|
2073
|
-
attr_accessor :requested_address_types
|
2074
|
-
# The list of bank transfer types that this PaymentIntent is allowed to use for funding.
|
2075
|
-
attr_accessor :type
|
2076
|
-
|
2077
|
-
def initialize(eu_bank_transfer: nil, requested_address_types: nil, type: nil)
|
2078
|
-
@eu_bank_transfer = eu_bank_transfer
|
2079
|
-
@requested_address_types = requested_address_types
|
2080
|
-
@type = type
|
2081
|
-
end
|
2082
|
-
end
|
2083
|
-
# Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
2084
|
-
attr_accessor :bank_transfer
|
2085
|
-
# The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
|
2086
|
-
attr_accessor :funding_type
|
2087
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2088
|
-
#
|
2089
|
-
# 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.
|
2090
|
-
#
|
2091
|
-
# 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.
|
2092
|
-
#
|
2093
|
-
# 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).
|
2094
|
-
attr_accessor :setup_future_usage
|
2095
|
-
|
2096
|
-
def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil)
|
2097
|
-
@bank_transfer = bank_transfer
|
2098
|
-
@funding_type = funding_type
|
2099
|
-
@setup_future_usage = setup_future_usage
|
2100
|
-
end
|
2101
|
-
end
|
2102
|
-
|
2103
|
-
class Eps < Stripe::RequestParams
|
2104
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2105
|
-
#
|
2106
|
-
# 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.
|
2107
|
-
#
|
2108
|
-
# 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.
|
2109
|
-
#
|
2110
|
-
# 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).
|
2111
|
-
attr_accessor :setup_future_usage
|
2112
|
-
|
2113
|
-
def initialize(setup_future_usage: nil)
|
2114
|
-
@setup_future_usage = setup_future_usage
|
2115
|
-
end
|
2116
|
-
end
|
2117
|
-
|
2118
|
-
class Fpx < Stripe::RequestParams
|
2119
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2120
|
-
#
|
2121
|
-
# 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.
|
2122
|
-
#
|
2123
|
-
# 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.
|
2124
|
-
#
|
2125
|
-
# 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).
|
2126
|
-
attr_accessor :setup_future_usage
|
2127
|
-
|
2128
|
-
def initialize(setup_future_usage: nil)
|
2129
|
-
@setup_future_usage = setup_future_usage
|
2130
|
-
end
|
2131
|
-
end
|
2132
|
-
|
2133
|
-
class Giropay < Stripe::RequestParams
|
2134
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2135
|
-
#
|
2136
|
-
# 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.
|
2137
|
-
#
|
2138
|
-
# 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.
|
2139
|
-
#
|
2140
|
-
# 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).
|
2141
|
-
attr_accessor :setup_future_usage
|
2142
|
-
|
2143
|
-
def initialize(setup_future_usage: nil)
|
2144
|
-
@setup_future_usage = setup_future_usage
|
2145
|
-
end
|
2146
|
-
end
|
2147
|
-
|
2148
|
-
class Grabpay < Stripe::RequestParams
|
2149
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2150
|
-
#
|
2151
|
-
# 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.
|
2152
|
-
#
|
2153
|
-
# 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.
|
2154
|
-
#
|
2155
|
-
# 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).
|
2156
|
-
attr_accessor :setup_future_usage
|
2157
|
-
|
2158
|
-
def initialize(setup_future_usage: nil)
|
2159
|
-
@setup_future_usage = setup_future_usage
|
2160
|
-
end
|
2161
|
-
end
|
2162
|
-
|
2163
|
-
class Ideal < Stripe::RequestParams
|
2164
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2165
|
-
#
|
2166
|
-
# 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.
|
2167
|
-
#
|
2168
|
-
# 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.
|
2169
|
-
#
|
2170
|
-
# 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).
|
2171
|
-
attr_accessor :setup_future_usage
|
2172
|
-
|
2173
|
-
def initialize(setup_future_usage: nil)
|
2174
|
-
@setup_future_usage = setup_future_usage
|
2175
|
-
end
|
2176
|
-
end
|
2177
|
-
|
2178
|
-
class KakaoPay < Stripe::RequestParams
|
2179
|
-
# Controls when the funds will be captured from the customer's account.
|
2180
|
-
attr_accessor :capture_method
|
2181
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2182
|
-
#
|
2183
|
-
# 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.
|
2184
|
-
#
|
2185
|
-
# 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.
|
2186
|
-
#
|
2187
|
-
# 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).
|
2188
|
-
attr_accessor :setup_future_usage
|
2189
|
-
|
2190
|
-
def initialize(capture_method: nil, setup_future_usage: nil)
|
2191
|
-
@capture_method = capture_method
|
2192
|
-
@setup_future_usage = setup_future_usage
|
2193
|
-
end
|
2194
|
-
end
|
2195
|
-
|
2196
|
-
class Klarna < Stripe::RequestParams
|
2197
|
-
class Subscription < Stripe::RequestParams
|
2198
|
-
class NextBilling < Stripe::RequestParams
|
2199
|
-
# The amount of the next charge for the subscription.
|
2200
|
-
attr_accessor :amount
|
2201
|
-
# The date of the next charge for the subscription in YYYY-MM-DD format.
|
2202
|
-
attr_accessor :date
|
2203
|
-
|
2204
|
-
def initialize(amount: nil, date: nil)
|
2205
|
-
@amount = amount
|
2206
|
-
@date = date
|
2207
|
-
end
|
2208
|
-
end
|
2209
|
-
# Unit of time between subscription charges.
|
2210
|
-
attr_accessor :interval
|
2211
|
-
# The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
|
2212
|
-
attr_accessor :interval_count
|
2213
|
-
# Name for subscription.
|
2214
|
-
attr_accessor :name
|
2215
|
-
# Describes the upcoming charge for this subscription.
|
2216
|
-
attr_accessor :next_billing
|
2217
|
-
# A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
|
2218
|
-
attr_accessor :reference
|
2219
|
-
|
2220
|
-
def initialize(
|
2221
|
-
interval: nil,
|
2222
|
-
interval_count: nil,
|
2223
|
-
name: nil,
|
2224
|
-
next_billing: nil,
|
2225
|
-
reference: nil
|
2226
|
-
)
|
2227
|
-
@interval = interval
|
2228
|
-
@interval_count = interval_count
|
2229
|
-
@name = name
|
2230
|
-
@next_billing = next_billing
|
2231
|
-
@reference = reference
|
2232
|
-
end
|
2233
|
-
end
|
2234
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2235
|
-
#
|
2236
|
-
# 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.
|
2237
|
-
#
|
2238
|
-
# 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.
|
2239
|
-
#
|
2240
|
-
# 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).
|
2241
|
-
attr_accessor :setup_future_usage
|
2242
|
-
# Subscription details if the Checkout Session sets up a future subscription.
|
2243
|
-
attr_accessor :subscriptions
|
2244
|
-
|
2245
|
-
def initialize(setup_future_usage: nil, subscriptions: nil)
|
2246
|
-
@setup_future_usage = setup_future_usage
|
2247
|
-
@subscriptions = subscriptions
|
2248
|
-
end
|
2249
|
-
end
|
2250
|
-
|
2251
|
-
class Konbini < Stripe::RequestParams
|
2252
|
-
# The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days.
|
2253
|
-
attr_accessor :expires_after_days
|
2254
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2255
|
-
#
|
2256
|
-
# 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.
|
2257
|
-
#
|
2258
|
-
# 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.
|
2259
|
-
#
|
2260
|
-
# 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).
|
2261
|
-
attr_accessor :setup_future_usage
|
2262
|
-
|
2263
|
-
def initialize(expires_after_days: nil, setup_future_usage: nil)
|
2264
|
-
@expires_after_days = expires_after_days
|
2265
|
-
@setup_future_usage = setup_future_usage
|
2266
|
-
end
|
2267
|
-
end
|
2268
|
-
|
2269
|
-
class KrCard < Stripe::RequestParams
|
2270
|
-
# Controls when the funds will be captured from the customer's account.
|
2271
|
-
attr_accessor :capture_method
|
2272
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2273
|
-
#
|
2274
|
-
# 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.
|
2275
|
-
#
|
2276
|
-
# 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.
|
2277
|
-
#
|
2278
|
-
# 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).
|
2279
|
-
attr_accessor :setup_future_usage
|
2280
|
-
|
2281
|
-
def initialize(capture_method: nil, setup_future_usage: nil)
|
2282
|
-
@capture_method = capture_method
|
2283
|
-
@setup_future_usage = setup_future_usage
|
2284
|
-
end
|
2285
|
-
end
|
2286
|
-
|
2287
|
-
class Link < Stripe::RequestParams
|
2288
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2289
|
-
#
|
2290
|
-
# 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.
|
2291
|
-
#
|
2292
|
-
# 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.
|
2293
|
-
#
|
2294
|
-
# 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).
|
2295
|
-
attr_accessor :setup_future_usage
|
2296
|
-
|
2297
|
-
def initialize(setup_future_usage: nil)
|
2298
|
-
@setup_future_usage = setup_future_usage
|
2299
|
-
end
|
2300
|
-
end
|
2301
|
-
|
2302
|
-
class Mobilepay < Stripe::RequestParams
|
2303
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2304
|
-
#
|
2305
|
-
# 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.
|
2306
|
-
#
|
2307
|
-
# 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.
|
2308
|
-
#
|
2309
|
-
# 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).
|
2310
|
-
attr_accessor :setup_future_usage
|
2311
|
-
|
2312
|
-
def initialize(setup_future_usage: nil)
|
2313
|
-
@setup_future_usage = setup_future_usage
|
2314
|
-
end
|
2315
|
-
end
|
2316
|
-
|
2317
|
-
class Multibanco < Stripe::RequestParams
|
2318
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2319
|
-
#
|
2320
|
-
# 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.
|
2321
|
-
#
|
2322
|
-
# 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.
|
2323
|
-
#
|
2324
|
-
# 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).
|
2325
|
-
attr_accessor :setup_future_usage
|
2326
|
-
|
2327
|
-
def initialize(setup_future_usage: nil)
|
2328
|
-
@setup_future_usage = setup_future_usage
|
2329
|
-
end
|
2330
|
-
end
|
2331
|
-
|
2332
|
-
class NaverPay < Stripe::RequestParams
|
2333
|
-
# Controls when the funds will be captured from the customer's account.
|
2334
|
-
attr_accessor :capture_method
|
2335
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2336
|
-
#
|
2337
|
-
# 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.
|
2338
|
-
#
|
2339
|
-
# 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.
|
2340
|
-
#
|
2341
|
-
# 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).
|
2342
|
-
attr_accessor :setup_future_usage
|
2343
|
-
|
2344
|
-
def initialize(capture_method: nil, setup_future_usage: nil)
|
2345
|
-
@capture_method = capture_method
|
2346
|
-
@setup_future_usage = setup_future_usage
|
2347
|
-
end
|
2348
|
-
end
|
2349
|
-
|
2350
|
-
class Oxxo < Stripe::RequestParams
|
2351
|
-
# The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time.
|
2352
|
-
attr_accessor :expires_after_days
|
2353
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2354
|
-
#
|
2355
|
-
# 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.
|
2356
|
-
#
|
2357
|
-
# 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.
|
2358
|
-
#
|
2359
|
-
# 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).
|
2360
|
-
attr_accessor :setup_future_usage
|
2361
|
-
|
2362
|
-
def initialize(expires_after_days: nil, setup_future_usage: nil)
|
2363
|
-
@expires_after_days = expires_after_days
|
2364
|
-
@setup_future_usage = setup_future_usage
|
2365
|
-
end
|
2366
|
-
end
|
2367
|
-
|
2368
|
-
class P24 < Stripe::RequestParams
|
2369
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2370
|
-
#
|
2371
|
-
# 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.
|
2372
|
-
#
|
2373
|
-
# 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.
|
2374
|
-
#
|
2375
|
-
# 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).
|
2376
|
-
attr_accessor :setup_future_usage
|
2377
|
-
# Confirm that the payer has accepted the P24 terms and conditions.
|
2378
|
-
attr_accessor :tos_shown_and_accepted
|
2379
|
-
|
2380
|
-
def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil)
|
2381
|
-
@setup_future_usage = setup_future_usage
|
2382
|
-
@tos_shown_and_accepted = tos_shown_and_accepted
|
2383
|
-
end
|
2384
|
-
end
|
2385
|
-
|
2386
|
-
class PayByBank < Stripe::RequestParams; end
|
2387
|
-
|
2388
|
-
class Payco < Stripe::RequestParams
|
2389
|
-
# Controls when the funds will be captured from the customer's account.
|
2390
|
-
attr_accessor :capture_method
|
2391
|
-
|
2392
|
-
def initialize(capture_method: nil)
|
2393
|
-
@capture_method = capture_method
|
2394
|
-
end
|
2395
|
-
end
|
2396
|
-
|
2397
|
-
class Paynow < Stripe::RequestParams
|
2398
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2399
|
-
#
|
2400
|
-
# 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.
|
2401
|
-
#
|
2402
|
-
# 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.
|
2403
|
-
#
|
2404
|
-
# 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).
|
2405
|
-
attr_accessor :setup_future_usage
|
2406
|
-
|
2407
|
-
def initialize(setup_future_usage: nil)
|
2408
|
-
@setup_future_usage = setup_future_usage
|
2409
|
-
end
|
2410
|
-
end
|
2411
|
-
|
2412
|
-
class Paypal < Stripe::RequestParams
|
2413
|
-
# Controls when the funds will be captured from the customer's account.
|
2414
|
-
attr_accessor :capture_method
|
2415
|
-
# [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to.
|
2416
|
-
attr_accessor :preferred_locale
|
2417
|
-
# 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.
|
2418
|
-
attr_accessor :reference
|
2419
|
-
# The risk correlation ID for an on-session payment using a saved PayPal payment method.
|
2420
|
-
attr_accessor :risk_correlation_id
|
2421
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2422
|
-
#
|
2423
|
-
# 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.
|
2424
|
-
#
|
2425
|
-
# 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.
|
2426
|
-
#
|
2427
|
-
# 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).
|
2428
|
-
#
|
2429
|
-
# If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
|
2430
|
-
attr_accessor :setup_future_usage
|
2431
|
-
|
2432
|
-
def initialize(
|
2433
|
-
capture_method: nil,
|
2434
|
-
preferred_locale: nil,
|
2435
|
-
reference: nil,
|
2436
|
-
risk_correlation_id: nil,
|
2437
|
-
setup_future_usage: nil
|
2438
|
-
)
|
2439
|
-
@capture_method = capture_method
|
2440
|
-
@preferred_locale = preferred_locale
|
2441
|
-
@reference = reference
|
2442
|
-
@risk_correlation_id = risk_correlation_id
|
2443
|
-
@setup_future_usage = setup_future_usage
|
2444
|
-
end
|
2445
|
-
end
|
2446
|
-
|
2447
|
-
class Pix < Stripe::RequestParams
|
2448
|
-
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
2449
|
-
attr_accessor :amount_includes_iof
|
2450
|
-
# The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
|
2451
|
-
attr_accessor :expires_after_seconds
|
2452
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2453
|
-
#
|
2454
|
-
# 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.
|
2455
|
-
#
|
2456
|
-
# 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.
|
2457
|
-
#
|
2458
|
-
# 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).
|
2459
|
-
attr_accessor :setup_future_usage
|
2460
|
-
|
2461
|
-
def initialize(
|
2462
|
-
amount_includes_iof: nil,
|
2463
|
-
expires_after_seconds: nil,
|
2464
|
-
setup_future_usage: nil
|
2465
|
-
)
|
2466
|
-
@amount_includes_iof = amount_includes_iof
|
2467
|
-
@expires_after_seconds = expires_after_seconds
|
2468
|
-
@setup_future_usage = setup_future_usage
|
2469
|
-
end
|
2470
|
-
end
|
2471
|
-
|
2472
|
-
class RevolutPay < Stripe::RequestParams
|
2473
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2474
|
-
#
|
2475
|
-
# 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.
|
2476
|
-
#
|
2477
|
-
# 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.
|
2478
|
-
#
|
2479
|
-
# 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).
|
2480
|
-
attr_accessor :setup_future_usage
|
2481
|
-
|
2482
|
-
def initialize(setup_future_usage: nil)
|
2483
|
-
@setup_future_usage = setup_future_usage
|
2484
|
-
end
|
2485
|
-
end
|
2486
|
-
|
2487
|
-
class SamsungPay < Stripe::RequestParams
|
2488
|
-
# Controls when the funds will be captured from the customer's account.
|
2489
|
-
attr_accessor :capture_method
|
2490
|
-
|
2491
|
-
def initialize(capture_method: nil)
|
2492
|
-
@capture_method = capture_method
|
2493
|
-
end
|
2494
|
-
end
|
2495
|
-
|
2496
|
-
class SepaDebit < Stripe::RequestParams
|
2497
|
-
class MandateOptions < Stripe::RequestParams
|
2498
|
-
# 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'.
|
2499
|
-
attr_accessor :reference_prefix
|
2500
|
-
|
2501
|
-
def initialize(reference_prefix: nil)
|
2502
|
-
@reference_prefix = reference_prefix
|
2503
|
-
end
|
2504
|
-
end
|
2505
|
-
# Additional fields for Mandate creation
|
2506
|
-
attr_accessor :mandate_options
|
2507
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2508
|
-
#
|
2509
|
-
# 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.
|
2510
|
-
#
|
2511
|
-
# 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.
|
2512
|
-
#
|
2513
|
-
# 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).
|
2514
|
-
attr_accessor :setup_future_usage
|
2515
|
-
# 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.
|
2516
|
-
attr_accessor :target_date
|
2517
|
-
|
2518
|
-
def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil)
|
2519
|
-
@mandate_options = mandate_options
|
2520
|
-
@setup_future_usage = setup_future_usage
|
2521
|
-
@target_date = target_date
|
2522
|
-
end
|
2523
|
-
end
|
2524
|
-
|
2525
|
-
class Sofort < Stripe::RequestParams
|
2526
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2527
|
-
#
|
2528
|
-
# 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.
|
2529
|
-
#
|
2530
|
-
# 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.
|
2531
|
-
#
|
2532
|
-
# 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).
|
2533
|
-
attr_accessor :setup_future_usage
|
2534
|
-
|
2535
|
-
def initialize(setup_future_usage: nil)
|
2536
|
-
@setup_future_usage = setup_future_usage
|
2537
|
-
end
|
2538
|
-
end
|
2539
|
-
|
2540
|
-
class Swish < Stripe::RequestParams
|
2541
|
-
# The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent.
|
2542
|
-
attr_accessor :reference
|
2543
|
-
|
2544
|
-
def initialize(reference: nil)
|
2545
|
-
@reference = reference
|
2546
|
-
end
|
2547
|
-
end
|
2548
|
-
|
2549
|
-
class UsBankAccount < Stripe::RequestParams
|
2550
|
-
class FinancialConnections < Stripe::RequestParams
|
2551
|
-
# The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
|
2552
|
-
attr_accessor :permissions
|
2553
|
-
# List of data features that you would like to retrieve upon account creation.
|
2554
|
-
attr_accessor :prefetch
|
2555
|
-
|
2556
|
-
def initialize(permissions: nil, prefetch: nil)
|
2557
|
-
@permissions = permissions
|
2558
|
-
@prefetch = prefetch
|
2559
|
-
end
|
2560
|
-
end
|
2561
|
-
# Additional fields for Financial Connections Session creation
|
2562
|
-
attr_accessor :financial_connections
|
2563
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2564
|
-
#
|
2565
|
-
# 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.
|
2566
|
-
#
|
2567
|
-
# 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.
|
2568
|
-
#
|
2569
|
-
# 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).
|
2570
|
-
attr_accessor :setup_future_usage
|
2571
|
-
# 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.
|
2572
|
-
attr_accessor :target_date
|
2573
|
-
# Verification method for the intent
|
2574
|
-
attr_accessor :verification_method
|
2575
|
-
|
2576
|
-
def initialize(
|
2577
|
-
financial_connections: nil,
|
2578
|
-
setup_future_usage: nil,
|
2579
|
-
target_date: nil,
|
2580
|
-
verification_method: nil
|
2581
|
-
)
|
2582
|
-
@financial_connections = financial_connections
|
2583
|
-
@setup_future_usage = setup_future_usage
|
2584
|
-
@target_date = target_date
|
2585
|
-
@verification_method = verification_method
|
2586
|
-
end
|
2587
|
-
end
|
2588
|
-
|
2589
|
-
class WechatPay < Stripe::RequestParams
|
2590
|
-
# The app ID registered with WeChat Pay. Only required when client is ios or android.
|
2591
|
-
attr_accessor :app_id
|
2592
|
-
# The client type that the end customer will pay from
|
2593
|
-
attr_accessor :client
|
2594
|
-
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
2595
|
-
#
|
2596
|
-
# 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.
|
2597
|
-
#
|
2598
|
-
# 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.
|
2599
|
-
#
|
2600
|
-
# 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).
|
2601
|
-
attr_accessor :setup_future_usage
|
2602
|
-
|
2603
|
-
def initialize(app_id: nil, client: nil, setup_future_usage: nil)
|
2604
|
-
@app_id = app_id
|
2605
|
-
@client = client
|
2606
|
-
@setup_future_usage = setup_future_usage
|
2607
|
-
end
|
2608
|
-
end
|
2609
|
-
# contains details about the ACSS Debit payment method options.
|
2610
|
-
attr_accessor :acss_debit
|
2611
|
-
# contains details about the Affirm payment method options.
|
2612
|
-
attr_accessor :affirm
|
2613
|
-
# contains details about the Afterpay Clearpay payment method options.
|
2614
|
-
attr_accessor :afterpay_clearpay
|
2615
|
-
# contains details about the Alipay payment method options.
|
2616
|
-
attr_accessor :alipay
|
2617
|
-
# contains details about the AmazonPay payment method options.
|
2618
|
-
attr_accessor :amazon_pay
|
2619
|
-
# contains details about the AU Becs Debit payment method options.
|
2620
|
-
attr_accessor :au_becs_debit
|
2621
|
-
# contains details about the Bacs Debit payment method options.
|
2622
|
-
attr_accessor :bacs_debit
|
2623
|
-
# contains details about the Bancontact payment method options.
|
2624
|
-
attr_accessor :bancontact
|
2625
|
-
# contains details about the Boleto payment method options.
|
2626
|
-
attr_accessor :boleto
|
2627
|
-
# contains details about the Card payment method options.
|
2628
|
-
attr_accessor :card
|
2629
|
-
# contains details about the Cashapp Pay payment method options.
|
2630
|
-
attr_accessor :cashapp
|
2631
|
-
# contains details about the Customer Balance payment method options.
|
2632
|
-
attr_accessor :customer_balance
|
2633
|
-
# contains details about the EPS payment method options.
|
2634
|
-
attr_accessor :eps
|
2635
|
-
# contains details about the FPX payment method options.
|
2636
|
-
attr_accessor :fpx
|
2637
|
-
# contains details about the Giropay payment method options.
|
2638
|
-
attr_accessor :giropay
|
2639
|
-
# contains details about the Grabpay payment method options.
|
2640
|
-
attr_accessor :grabpay
|
2641
|
-
# contains details about the Ideal payment method options.
|
2642
|
-
attr_accessor :ideal
|
2643
|
-
# contains details about the Kakao Pay payment method options.
|
2644
|
-
attr_accessor :kakao_pay
|
2645
|
-
# contains details about the Klarna payment method options.
|
2646
|
-
attr_accessor :klarna
|
2647
|
-
# contains details about the Konbini payment method options.
|
2648
|
-
attr_accessor :konbini
|
2649
|
-
# contains details about the Korean card payment method options.
|
2650
|
-
attr_accessor :kr_card
|
2651
|
-
# contains details about the Link payment method options.
|
2652
|
-
attr_accessor :link
|
2653
|
-
# contains details about the Mobilepay payment method options.
|
2654
|
-
attr_accessor :mobilepay
|
2655
|
-
# contains details about the Multibanco payment method options.
|
2656
|
-
attr_accessor :multibanco
|
2657
|
-
# contains details about the Naver Pay payment method options.
|
2658
|
-
attr_accessor :naver_pay
|
2659
|
-
# contains details about the OXXO payment method options.
|
2660
|
-
attr_accessor :oxxo
|
2661
|
-
# contains details about the P24 payment method options.
|
2662
|
-
attr_accessor :p24
|
2663
|
-
# contains details about the Pay By Bank payment method options.
|
2664
|
-
attr_accessor :pay_by_bank
|
2665
|
-
# contains details about the PAYCO payment method options.
|
2666
|
-
attr_accessor :payco
|
2667
|
-
# contains details about the PayNow payment method options.
|
2668
|
-
attr_accessor :paynow
|
2669
|
-
# contains details about the PayPal payment method options.
|
2670
|
-
attr_accessor :paypal
|
2671
|
-
# contains details about the Pix payment method options.
|
2672
|
-
attr_accessor :pix
|
2673
|
-
# contains details about the RevolutPay payment method options.
|
2674
|
-
attr_accessor :revolut_pay
|
2675
|
-
# contains details about the Samsung Pay payment method options.
|
2676
|
-
attr_accessor :samsung_pay
|
2677
|
-
# contains details about the Sepa Debit payment method options.
|
2678
|
-
attr_accessor :sepa_debit
|
2679
|
-
# contains details about the Sofort payment method options.
|
2680
|
-
attr_accessor :sofort
|
2681
|
-
# contains details about the Swish payment method options.
|
2682
|
-
attr_accessor :swish
|
2683
|
-
# contains details about the Us Bank Account payment method options.
|
2684
|
-
attr_accessor :us_bank_account
|
2685
|
-
# contains details about the WeChat Pay payment method options.
|
2686
|
-
attr_accessor :wechat_pay
|
2687
|
-
|
2688
|
-
def initialize(
|
2689
|
-
acss_debit: nil,
|
2690
|
-
affirm: nil,
|
2691
|
-
afterpay_clearpay: nil,
|
2692
|
-
alipay: nil,
|
2693
|
-
amazon_pay: nil,
|
2694
|
-
au_becs_debit: nil,
|
2695
|
-
bacs_debit: nil,
|
2696
|
-
bancontact: nil,
|
2697
|
-
boleto: nil,
|
2698
|
-
card: nil,
|
2699
|
-
cashapp: nil,
|
2700
|
-
customer_balance: nil,
|
2701
|
-
eps: nil,
|
2702
|
-
fpx: nil,
|
2703
|
-
giropay: nil,
|
2704
|
-
grabpay: nil,
|
2705
|
-
ideal: nil,
|
2706
|
-
kakao_pay: nil,
|
2707
|
-
klarna: nil,
|
2708
|
-
konbini: nil,
|
2709
|
-
kr_card: nil,
|
2710
|
-
link: nil,
|
2711
|
-
mobilepay: nil,
|
2712
|
-
multibanco: nil,
|
2713
|
-
naver_pay: nil,
|
2714
|
-
oxxo: nil,
|
2715
|
-
p24: nil,
|
2716
|
-
pay_by_bank: nil,
|
2717
|
-
payco: nil,
|
2718
|
-
paynow: nil,
|
2719
|
-
paypal: nil,
|
2720
|
-
pix: nil,
|
2721
|
-
revolut_pay: nil,
|
2722
|
-
samsung_pay: nil,
|
2723
|
-
sepa_debit: nil,
|
2724
|
-
sofort: nil,
|
2725
|
-
swish: nil,
|
2726
|
-
us_bank_account: nil,
|
2727
|
-
wechat_pay: nil
|
2728
|
-
)
|
2729
|
-
@acss_debit = acss_debit
|
2730
|
-
@affirm = affirm
|
2731
|
-
@afterpay_clearpay = afterpay_clearpay
|
2732
|
-
@alipay = alipay
|
2733
|
-
@amazon_pay = amazon_pay
|
2734
|
-
@au_becs_debit = au_becs_debit
|
2735
|
-
@bacs_debit = bacs_debit
|
2736
|
-
@bancontact = bancontact
|
2737
|
-
@boleto = boleto
|
2738
|
-
@card = card
|
2739
|
-
@cashapp = cashapp
|
2740
|
-
@customer_balance = customer_balance
|
2741
|
-
@eps = eps
|
2742
|
-
@fpx = fpx
|
2743
|
-
@giropay = giropay
|
2744
|
-
@grabpay = grabpay
|
2745
|
-
@ideal = ideal
|
2746
|
-
@kakao_pay = kakao_pay
|
2747
|
-
@klarna = klarna
|
2748
|
-
@konbini = konbini
|
2749
|
-
@kr_card = kr_card
|
2750
|
-
@link = link
|
2751
|
-
@mobilepay = mobilepay
|
2752
|
-
@multibanco = multibanco
|
2753
|
-
@naver_pay = naver_pay
|
2754
|
-
@oxxo = oxxo
|
2755
|
-
@p24 = p24
|
2756
|
-
@pay_by_bank = pay_by_bank
|
2757
|
-
@payco = payco
|
2758
|
-
@paynow = paynow
|
2759
|
-
@paypal = paypal
|
2760
|
-
@pix = pix
|
2761
|
-
@revolut_pay = revolut_pay
|
2762
|
-
@samsung_pay = samsung_pay
|
2763
|
-
@sepa_debit = sepa_debit
|
2764
|
-
@sofort = sofort
|
2765
|
-
@swish = swish
|
2766
|
-
@us_bank_account = us_bank_account
|
2767
|
-
@wechat_pay = wechat_pay
|
2768
|
-
end
|
2769
|
-
end
|
2770
|
-
|
2771
|
-
class Permissions < Stripe::RequestParams
|
2772
|
-
# Determines which entity is allowed to update the shipping details.
|
2773
|
-
#
|
2774
|
-
# 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.
|
2775
|
-
#
|
2776
|
-
# 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.
|
2777
|
-
attr_accessor :update_shipping_details
|
2778
|
-
|
2779
|
-
def initialize(update_shipping_details: nil)
|
2780
|
-
@update_shipping_details = update_shipping_details
|
2781
|
-
end
|
2782
|
-
end
|
2783
|
-
|
2784
|
-
class PhoneNumberCollection < Stripe::RequestParams
|
2785
|
-
# Set to `true` to enable phone number collection.
|
2786
|
-
#
|
2787
|
-
# Can only be set in `payment` and `subscription` mode.
|
2788
|
-
attr_accessor :enabled
|
2789
|
-
|
2790
|
-
def initialize(enabled: nil)
|
2791
|
-
@enabled = enabled
|
2792
|
-
end
|
2793
|
-
end
|
2794
|
-
|
2795
|
-
class SavedPaymentMethodOptions < Stripe::RequestParams
|
2796
|
-
# 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.
|
2797
|
-
attr_accessor :allow_redisplay_filters
|
2798
|
-
# Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
|
2799
|
-
attr_accessor :payment_method_remove
|
2800
|
-
# Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
|
2801
|
-
attr_accessor :payment_method_save
|
2802
|
-
|
2803
|
-
def initialize(
|
2804
|
-
allow_redisplay_filters: nil,
|
2805
|
-
payment_method_remove: nil,
|
2806
|
-
payment_method_save: nil
|
2807
|
-
)
|
2808
|
-
@allow_redisplay_filters = allow_redisplay_filters
|
2809
|
-
@payment_method_remove = payment_method_remove
|
2810
|
-
@payment_method_save = payment_method_save
|
2811
|
-
end
|
2812
|
-
end
|
2813
|
-
|
2814
|
-
class SetupIntentData < Stripe::RequestParams
|
2815
|
-
# An arbitrary string attached to the object. Often useful for displaying to users.
|
2816
|
-
attr_accessor :description
|
2817
|
-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
2818
|
-
attr_accessor :metadata
|
2819
|
-
# The Stripe account for which the setup is intended.
|
2820
|
-
attr_accessor :on_behalf_of
|
2821
|
-
|
2822
|
-
def initialize(description: nil, metadata: nil, on_behalf_of: nil)
|
2823
|
-
@description = description
|
2824
|
-
@metadata = metadata
|
2825
|
-
@on_behalf_of = on_behalf_of
|
2826
|
-
end
|
2827
|
-
end
|
2828
|
-
|
2829
|
-
class ShippingAddressCollection < Stripe::RequestParams
|
2830
|
-
# An array of two-letter ISO country codes representing which countries Checkout should provide as options for
|
2831
|
-
# shipping locations.
|
2832
|
-
attr_accessor :allowed_countries
|
2833
|
-
|
2834
|
-
def initialize(allowed_countries: nil)
|
2835
|
-
@allowed_countries = allowed_countries
|
2836
|
-
end
|
2837
|
-
end
|
2838
|
-
|
2839
|
-
class ShippingOption < Stripe::RequestParams
|
2840
|
-
class ShippingRateData < Stripe::RequestParams
|
2841
|
-
class DeliveryEstimate < Stripe::RequestParams
|
2842
|
-
class Maximum < Stripe::RequestParams
|
2843
|
-
# A unit of time.
|
2844
|
-
attr_accessor :unit
|
2845
|
-
# Must be greater than 0.
|
2846
|
-
attr_accessor :value
|
2847
|
-
|
2848
|
-
def initialize(unit: nil, value: nil)
|
2849
|
-
@unit = unit
|
2850
|
-
@value = value
|
2851
|
-
end
|
2852
|
-
end
|
2853
|
-
|
2854
|
-
class Minimum < Stripe::RequestParams
|
2855
|
-
# A unit of time.
|
2856
|
-
attr_accessor :unit
|
2857
|
-
# Must be greater than 0.
|
2858
|
-
attr_accessor :value
|
2859
|
-
|
2860
|
-
def initialize(unit: nil, value: nil)
|
2861
|
-
@unit = unit
|
2862
|
-
@value = value
|
2863
|
-
end
|
2864
|
-
end
|
2865
|
-
# The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
|
2866
|
-
attr_accessor :maximum
|
2867
|
-
# The lower bound of the estimated range. If empty, represents no lower bound.
|
2868
|
-
attr_accessor :minimum
|
2869
|
-
|
2870
|
-
def initialize(maximum: nil, minimum: nil)
|
2871
|
-
@maximum = maximum
|
2872
|
-
@minimum = minimum
|
2873
|
-
end
|
2874
|
-
end
|
2875
|
-
|
2876
|
-
class FixedAmount < Stripe::RequestParams
|
2877
|
-
class CurrencyOptions < Stripe::RequestParams
|
2878
|
-
# A non-negative integer in cents representing how much to charge.
|
2879
|
-
attr_accessor :amount
|
2880
|
-
# Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
2881
|
-
attr_accessor :tax_behavior
|
2882
|
-
|
2883
|
-
def initialize(amount: nil, tax_behavior: nil)
|
2884
|
-
@amount = amount
|
2885
|
-
@tax_behavior = tax_behavior
|
2886
|
-
end
|
2887
|
-
end
|
2888
|
-
# A non-negative integer in cents representing how much to charge.
|
2889
|
-
attr_accessor :amount
|
2890
|
-
# 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).
|
2891
|
-
attr_accessor :currency
|
2892
|
-
# Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
|
2893
|
-
attr_accessor :currency_options
|
2894
|
-
|
2895
|
-
def initialize(amount: nil, currency: nil, currency_options: nil)
|
2896
|
-
@amount = amount
|
2897
|
-
@currency = currency
|
2898
|
-
@currency_options = currency_options
|
2899
|
-
end
|
2900
|
-
end
|
2901
|
-
# The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
2902
|
-
attr_accessor :delivery_estimate
|
2903
|
-
# The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
2904
|
-
attr_accessor :display_name
|
2905
|
-
# Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
|
2906
|
-
attr_accessor :fixed_amount
|
2907
|
-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
2908
|
-
attr_accessor :metadata
|
2909
|
-
# Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
2910
|
-
attr_accessor :tax_behavior
|
2911
|
-
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
|
2912
|
-
attr_accessor :tax_code
|
2913
|
-
# The type of calculation to use on the shipping rate.
|
2914
|
-
attr_accessor :type
|
2915
|
-
|
2916
|
-
def initialize(
|
2917
|
-
delivery_estimate: nil,
|
2918
|
-
display_name: nil,
|
2919
|
-
fixed_amount: nil,
|
2920
|
-
metadata: nil,
|
2921
|
-
tax_behavior: nil,
|
2922
|
-
tax_code: nil,
|
2923
|
-
type: nil
|
2924
|
-
)
|
2925
|
-
@delivery_estimate = delivery_estimate
|
2926
|
-
@display_name = display_name
|
2927
|
-
@fixed_amount = fixed_amount
|
2928
|
-
@metadata = metadata
|
2929
|
-
@tax_behavior = tax_behavior
|
2930
|
-
@tax_code = tax_code
|
2931
|
-
@type = type
|
2932
|
-
end
|
2933
|
-
end
|
2934
|
-
# The ID of the Shipping Rate to use for this shipping option.
|
2935
|
-
attr_accessor :shipping_rate
|
2936
|
-
# Parameters to be passed to Shipping Rate creation for this shipping option.
|
2937
|
-
attr_accessor :shipping_rate_data
|
2938
|
-
|
2939
|
-
def initialize(shipping_rate: nil, shipping_rate_data: nil)
|
2940
|
-
@shipping_rate = shipping_rate
|
2941
|
-
@shipping_rate_data = shipping_rate_data
|
2942
|
-
end
|
2943
|
-
end
|
2944
|
-
|
2945
|
-
class SubscriptionData < Stripe::RequestParams
|
2946
|
-
class BillingMode < Stripe::RequestParams
|
2947
|
-
# Controls the calculation and orchestration of prorations and invoices for subscriptions.
|
2948
|
-
attr_accessor :type
|
2949
|
-
|
2950
|
-
def initialize(type: nil)
|
2951
|
-
@type = type
|
2952
|
-
end
|
2953
|
-
end
|
2954
|
-
|
2955
|
-
class InvoiceSettings < Stripe::RequestParams
|
2956
|
-
class Issuer < Stripe::RequestParams
|
2957
|
-
# The connected account being referenced when `type` is `account`.
|
2958
|
-
attr_accessor :account
|
2959
|
-
# Type of the account referenced in the request.
|
2960
|
-
attr_accessor :type
|
2961
|
-
|
2962
|
-
def initialize(account: nil, type: nil)
|
2963
|
-
@account = account
|
2964
|
-
@type = type
|
2965
|
-
end
|
2966
|
-
end
|
2967
|
-
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
2968
|
-
attr_accessor :issuer
|
2969
|
-
|
2970
|
-
def initialize(issuer: nil)
|
2971
|
-
@issuer = issuer
|
2972
|
-
end
|
2973
|
-
end
|
2974
|
-
|
2975
|
-
class TransferData < Stripe::RequestParams
|
2976
|
-
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
2977
|
-
attr_accessor :amount_percent
|
2978
|
-
# ID of an existing, connected Stripe account.
|
2979
|
-
attr_accessor :destination
|
2980
|
-
|
2981
|
-
def initialize(amount_percent: nil, destination: nil)
|
2982
|
-
@amount_percent = amount_percent
|
2983
|
-
@destination = destination
|
2984
|
-
end
|
2985
|
-
end
|
2986
|
-
|
2987
|
-
class TrialSettings < Stripe::RequestParams
|
2988
|
-
class EndBehavior < Stripe::RequestParams
|
2989
|
-
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
2990
|
-
attr_accessor :missing_payment_method
|
2991
|
-
|
2992
|
-
def initialize(missing_payment_method: nil)
|
2993
|
-
@missing_payment_method = missing_payment_method
|
2994
|
-
end
|
2995
|
-
end
|
2996
|
-
# Defines how the subscription should behave when the user's free trial ends.
|
2997
|
-
attr_accessor :end_behavior
|
2998
|
-
|
2999
|
-
def initialize(end_behavior: nil)
|
3000
|
-
@end_behavior = end_behavior
|
3001
|
-
end
|
3002
|
-
end
|
3003
|
-
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. To use an application fee percent, the request must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
|
3004
|
-
attr_accessor :application_fee_percent
|
3005
|
-
# A future timestamp to anchor the subscription's billing cycle for new subscriptions.
|
3006
|
-
attr_accessor :billing_cycle_anchor
|
3007
|
-
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
3008
|
-
attr_accessor :billing_mode
|
3009
|
-
# The tax rates that will apply to any subscription item that does not have
|
3010
|
-
# `tax_rates` set. Invoices created will have their `default_tax_rates` populated
|
3011
|
-
# from the subscription.
|
3012
|
-
attr_accessor :default_tax_rates
|
3013
|
-
# The subscription's description, meant to be displayable to the customer.
|
3014
|
-
# Use this field to optionally store an explanation of the subscription
|
3015
|
-
# for rendering in the [customer portal](https://stripe.com/docs/customer-management).
|
3016
|
-
attr_accessor :description
|
3017
|
-
# All invoices will be billed using the specified settings.
|
3018
|
-
attr_accessor :invoice_settings
|
3019
|
-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
3020
|
-
attr_accessor :metadata
|
3021
|
-
# The account on behalf of which to charge, for each of the subscription's invoices.
|
3022
|
-
attr_accessor :on_behalf_of
|
3023
|
-
# Determines how to handle prorations resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
|
3024
|
-
attr_accessor :proration_behavior
|
3025
|
-
# If specified, the funds from the subscription's invoices will be transferred to the destination and the ID of the resulting transfers will be found on the resulting charges.
|
3026
|
-
attr_accessor :transfer_data
|
3027
|
-
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
|
3028
|
-
attr_accessor :trial_end
|
3029
|
-
# Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
|
3030
|
-
attr_accessor :trial_period_days
|
3031
|
-
# Settings related to subscription trials.
|
3032
|
-
attr_accessor :trial_settings
|
3033
|
-
|
3034
|
-
def initialize(
|
3035
|
-
application_fee_percent: nil,
|
3036
|
-
billing_cycle_anchor: nil,
|
3037
|
-
billing_mode: nil,
|
3038
|
-
default_tax_rates: nil,
|
3039
|
-
description: nil,
|
3040
|
-
invoice_settings: nil,
|
3041
|
-
metadata: nil,
|
3042
|
-
on_behalf_of: nil,
|
3043
|
-
proration_behavior: nil,
|
3044
|
-
transfer_data: nil,
|
3045
|
-
trial_end: nil,
|
3046
|
-
trial_period_days: nil,
|
3047
|
-
trial_settings: nil
|
3048
|
-
)
|
3049
|
-
@application_fee_percent = application_fee_percent
|
3050
|
-
@billing_cycle_anchor = billing_cycle_anchor
|
3051
|
-
@billing_mode = billing_mode
|
3052
|
-
@default_tax_rates = default_tax_rates
|
3053
|
-
@description = description
|
3054
|
-
@invoice_settings = invoice_settings
|
3055
|
-
@metadata = metadata
|
3056
|
-
@on_behalf_of = on_behalf_of
|
3057
|
-
@proration_behavior = proration_behavior
|
3058
|
-
@transfer_data = transfer_data
|
3059
|
-
@trial_end = trial_end
|
3060
|
-
@trial_period_days = trial_period_days
|
3061
|
-
@trial_settings = trial_settings
|
3062
|
-
end
|
3063
|
-
end
|
3064
|
-
|
3065
|
-
class TaxIdCollection < Stripe::RequestParams
|
3066
|
-
# Enable tax ID collection during checkout. Defaults to `false`.
|
3067
|
-
attr_accessor :enabled
|
3068
|
-
# Describes whether a tax ID is required during checkout. Defaults to `never`.
|
3069
|
-
attr_accessor :required
|
3070
|
-
|
3071
|
-
def initialize(enabled: nil, required: nil)
|
3072
|
-
@enabled = enabled
|
3073
|
-
@required = required
|
3074
|
-
end
|
3075
|
-
end
|
3076
|
-
|
3077
|
-
class WalletOptions < Stripe::RequestParams
|
3078
|
-
class Link < Stripe::RequestParams
|
3079
|
-
# Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
|
3080
|
-
attr_accessor :display
|
3081
|
-
|
3082
|
-
def initialize(display: nil)
|
3083
|
-
@display = display
|
3084
|
-
end
|
3085
|
-
end
|
3086
|
-
# contains details about the Link wallet options.
|
3087
|
-
attr_accessor :link
|
3088
|
-
|
3089
|
-
def initialize(link: nil)
|
3090
|
-
@link = link
|
3091
|
-
end
|
3092
|
-
end
|
3093
|
-
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
|
3094
|
-
attr_accessor :adaptive_pricing
|
3095
|
-
# Configure actions after a Checkout Session has expired.
|
3096
|
-
attr_accessor :after_expiration
|
3097
|
-
# Enables user redeemable promotion codes.
|
3098
|
-
attr_accessor :allow_promotion_codes
|
3099
|
-
# Settings for automatic tax lookup for this session and resulting payments, invoices, and subscriptions.
|
3100
|
-
attr_accessor :automatic_tax
|
3101
|
-
# Specify whether Checkout should collect the customer's billing address. Defaults to `auto`.
|
3102
|
-
attr_accessor :billing_address_collection
|
3103
|
-
# 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. This parameter is not allowed if ui_mode is `embedded` or `custom`.
|
3104
|
-
attr_accessor :cancel_url
|
3105
|
-
# A unique string to reference the Checkout Session. This can be a
|
3106
|
-
# customer ID, a cart ID, or similar, and can be used to reconcile the
|
3107
|
-
# session with your internal systems.
|
3108
|
-
attr_accessor :client_reference_id
|
3109
|
-
# Configure fields for the Checkout Session to gather active consent from customers.
|
3110
|
-
attr_accessor :consent_collection
|
3111
|
-
# 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). Required in `setup` mode when `payment_method_types` is not set.
|
3112
|
-
attr_accessor :currency
|
3113
|
-
# Collect additional information from your customer using custom fields. Up to 3 fields are supported.
|
3114
|
-
attr_accessor :custom_fields
|
3115
|
-
# Display additional text for your customers using custom text.
|
3116
|
-
attr_accessor :custom_text
|
3117
|
-
# ID of an existing Customer, if one exists. In `payment` mode, the customer’s most recently saved card
|
3118
|
-
# payment method will be used to prefill the email, name, card details, and billing address
|
3119
|
-
# on the Checkout page. In `subscription` mode, the customer’s [default payment method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method)
|
3120
|
-
# will be used if it’s a card, otherwise the most recently saved card will be used. A valid billing address, billing name and billing email are required on the payment method for Checkout to prefill the customer's card details.
|
3121
|
-
#
|
3122
|
-
# If the Customer already has a valid [email](https://stripe.com/docs/api/customers/object#customer_object-email) set, the email will be prefilled and not editable in Checkout.
|
3123
|
-
# If the Customer does not have a valid `email`, Checkout will set the email entered during the session on the Customer.
|
3124
|
-
#
|
3125
|
-
# If blank for Checkout Sessions in `subscription` mode or with `customer_creation` set as `always` in `payment` mode, Checkout will create a new Customer object based on information provided during the payment flow.
|
3126
|
-
#
|
3127
|
-
# You can set [`payment_intent_data.setup_future_usage`](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage) to have Checkout automatically attach the payment method to the Customer you pass in for future reuse.
|
3128
|
-
attr_accessor :customer
|
3129
|
-
# Configure whether a Checkout Session creates a [Customer](https://stripe.com/docs/api/customers) during Session confirmation.
|
3130
|
-
#
|
3131
|
-
# When a Customer is not created, you can still retrieve email, address, and other customer data entered in Checkout
|
3132
|
-
# with [customer_details](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer_details).
|
3133
|
-
#
|
3134
|
-
# Sessions that don't create Customers instead are grouped by [guest customers](https://stripe.com/docs/payments/checkout/guest-customers)
|
3135
|
-
# in the Dashboard. Promotion codes limited to first time customers will return invalid for these Sessions.
|
3136
|
-
#
|
3137
|
-
# Can only be set in `payment` and `setup` mode.
|
3138
|
-
attr_accessor :customer_creation
|
3139
|
-
# If provided, this value will be used when the Customer object is created.
|
3140
|
-
# If not provided, customers will be asked to enter their email address.
|
3141
|
-
# Use this parameter to prefill customer data if you already have an email
|
3142
|
-
# on file. To access information about the customer once a session is
|
3143
|
-
# complete, use the `customer` field.
|
3144
|
-
attr_accessor :customer_email
|
3145
|
-
# Controls what fields on Customer can be updated by the Checkout Session. Can only be provided when `customer` is provided.
|
3146
|
-
attr_accessor :customer_update
|
3147
|
-
# The coupon or promotion code to apply to this Session. Currently, only up to one may be specified.
|
3148
|
-
attr_accessor :discounts
|
3149
|
-
# Specifies which fields in the response should be expanded.
|
3150
|
-
attr_accessor :expand
|
3151
|
-
# The Epoch time in seconds at which the Checkout Session will expire. It can be anywhere from 30 minutes to 24 hours after Checkout Session creation. By default, this value is 24 hours from creation.
|
3152
|
-
attr_accessor :expires_at
|
3153
|
-
# Generate a post-purchase Invoice for one-time payments.
|
3154
|
-
attr_accessor :invoice_creation
|
3155
|
-
# A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices). The parameter is required for `payment` and `subscription` mode.
|
3156
|
-
#
|
3157
|
-
# For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
|
3158
|
-
#
|
3159
|
-
# For `subscription` mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only.
|
3160
|
-
attr_accessor :line_items
|
3161
|
-
# The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used.
|
3162
|
-
attr_accessor :locale
|
3163
|
-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
3164
|
-
attr_accessor :metadata
|
3165
|
-
# The mode of the Checkout Session. Pass `subscription` if the Checkout Session includes at least one recurring item.
|
3166
|
-
attr_accessor :mode
|
3167
|
-
# A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
|
3168
|
-
#
|
3169
|
-
# There is a maximum of 10 optional items allowed on a Checkout Session, and the existing limits on the number of line items allowed on a Checkout Session apply to the combined number of line items and optional items.
|
3170
|
-
#
|
3171
|
-
# For `payment` mode, there is a maximum of 100 combined line items and optional items, however it is recommended to consolidate items if there are more than a few dozen.
|
3172
|
-
#
|
3173
|
-
# For `subscription` mode, there is a maximum of 20 line items and optional items with recurring Prices and 20 line items and optional items with one-time Prices.
|
3174
|
-
attr_accessor :optional_items
|
3175
|
-
# Where the user is coming from. This informs the optimizations that are applied to the session.
|
3176
|
-
attr_accessor :origin_context
|
3177
|
-
# A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
|
3178
|
-
attr_accessor :payment_intent_data
|
3179
|
-
# Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.
|
3180
|
-
# This may occur if the Checkout Session includes a free trial or a discount.
|
3181
|
-
#
|
3182
|
-
# Can only be set in `subscription` mode. Defaults to `always`.
|
3183
|
-
#
|
3184
|
-
# If you'd like information on how to collect a payment method outside of Checkout, read the guide on configuring [subscriptions with a free trial](https://stripe.com/docs/payments/checkout/free-trials).
|
3185
|
-
attr_accessor :payment_method_collection
|
3186
|
-
# The ID of the payment method configuration to use with this Checkout session.
|
3187
|
-
attr_accessor :payment_method_configuration
|
3188
|
-
# This parameter allows you to set some attributes on the payment method created during a Checkout session.
|
3189
|
-
attr_accessor :payment_method_data
|
3190
|
-
# Payment-method-specific configuration.
|
3191
|
-
attr_accessor :payment_method_options
|
3192
|
-
# A list of the types of payment methods (e.g., `card`) this Checkout Session can accept.
|
3193
|
-
#
|
3194
|
-
# You can omit this attribute to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods).
|
3195
|
-
# See [Dynamic Payment Methods](https://stripe.com/docs/payments/payment-methods/integration-options#using-dynamic-payment-methods) for more details.
|
3196
|
-
#
|
3197
|
-
# Read more about the supported payment methods and their requirements in our [payment
|
3198
|
-
# method details guide](/docs/payments/checkout/payment-methods).
|
3199
|
-
#
|
3200
|
-
# If multiple payment methods are passed, Checkout will dynamically reorder them to
|
3201
|
-
# prioritize the most relevant payment methods based on the customer's location and
|
3202
|
-
# other characteristics.
|
3203
|
-
attr_accessor :payment_method_types
|
3204
|
-
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. Can only be set when creating `embedded` or `custom` sessions.
|
3205
|
-
#
|
3206
|
-
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
|
3207
|
-
attr_accessor :permissions
|
3208
|
-
# Controls phone number collection settings for the session.
|
3209
|
-
#
|
3210
|
-
# We recommend that you review your privacy policy and check with your legal contacts
|
3211
|
-
# before using this feature. Learn more about [collecting phone numbers with Checkout](https://stripe.com/docs/payments/checkout/phone-numbers).
|
3212
|
-
attr_accessor :phone_number_collection
|
3213
|
-
# 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`.
|
3214
|
-
attr_accessor :redirect_on_completion
|
3215
|
-
# The URL to redirect your customer back to after they authenticate or cancel their payment on the
|
3216
|
-
# payment method's app or site. This parameter is required if `ui_mode` is `embedded` or `custom`
|
3217
|
-
# and redirect-based payment methods are enabled on the session.
|
3218
|
-
attr_accessor :return_url
|
3219
|
-
# Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode.
|
3220
|
-
attr_accessor :saved_payment_method_options
|
3221
|
-
# A subset of parameters to be passed to SetupIntent creation for Checkout Sessions in `setup` mode.
|
3222
|
-
attr_accessor :setup_intent_data
|
3223
|
-
# When set, provides configuration for Checkout to collect a shipping address from a customer.
|
3224
|
-
attr_accessor :shipping_address_collection
|
3225
|
-
# The shipping rate options to apply to this Session. Up to a maximum of 5.
|
3226
|
-
attr_accessor :shipping_options
|
3227
|
-
# Describes the type of transaction being performed by Checkout in order
|
3228
|
-
# to customize relevant text on the page, such as the submit button.
|
3229
|
-
# `submit_type` can only be specified on Checkout Sessions in
|
3230
|
-
# `payment` or `subscription` mode. If blank or `auto`, `pay` is used.
|
3231
|
-
attr_accessor :submit_type
|
3232
|
-
# A subset of parameters to be passed to subscription creation for Checkout Sessions in `subscription` mode.
|
3233
|
-
attr_accessor :subscription_data
|
3234
|
-
# The URL to which Stripe should send customers when payment or setup
|
3235
|
-
# is complete.
|
3236
|
-
# This parameter is not allowed if ui_mode is `embedded` or `custom`. If you'd like to use
|
3237
|
-
# information from the successful Checkout Session on your page, read the
|
3238
|
-
# guide on [customizing your success page](https://stripe.com/docs/payments/checkout/custom-success-page).
|
3239
|
-
attr_accessor :success_url
|
3240
|
-
# Controls tax ID collection during checkout.
|
3241
|
-
attr_accessor :tax_id_collection
|
3242
|
-
# The UI mode of the Session. Defaults to `hosted`.
|
3243
|
-
attr_accessor :ui_mode
|
3244
|
-
# Wallet-specific configuration.
|
3245
|
-
attr_accessor :wallet_options
|
3246
|
-
|
3247
|
-
def initialize(
|
3248
|
-
adaptive_pricing: nil,
|
3249
|
-
after_expiration: nil,
|
3250
|
-
allow_promotion_codes: nil,
|
3251
|
-
automatic_tax: nil,
|
3252
|
-
billing_address_collection: nil,
|
3253
|
-
cancel_url: nil,
|
3254
|
-
client_reference_id: nil,
|
3255
|
-
consent_collection: nil,
|
3256
|
-
currency: nil,
|
3257
|
-
custom_fields: nil,
|
3258
|
-
custom_text: nil,
|
3259
|
-
customer: nil,
|
3260
|
-
customer_creation: nil,
|
3261
|
-
customer_email: nil,
|
3262
|
-
customer_update: nil,
|
3263
|
-
discounts: nil,
|
3264
|
-
expand: nil,
|
3265
|
-
expires_at: nil,
|
3266
|
-
invoice_creation: nil,
|
3267
|
-
line_items: nil,
|
3268
|
-
locale: nil,
|
3269
|
-
metadata: nil,
|
3270
|
-
mode: nil,
|
3271
|
-
optional_items: nil,
|
3272
|
-
origin_context: nil,
|
3273
|
-
payment_intent_data: nil,
|
3274
|
-
payment_method_collection: nil,
|
3275
|
-
payment_method_configuration: nil,
|
3276
|
-
payment_method_data: nil,
|
3277
|
-
payment_method_options: nil,
|
3278
|
-
payment_method_types: nil,
|
3279
|
-
permissions: nil,
|
3280
|
-
phone_number_collection: nil,
|
3281
|
-
redirect_on_completion: nil,
|
3282
|
-
return_url: nil,
|
3283
|
-
saved_payment_method_options: nil,
|
3284
|
-
setup_intent_data: nil,
|
3285
|
-
shipping_address_collection: nil,
|
3286
|
-
shipping_options: nil,
|
3287
|
-
submit_type: nil,
|
3288
|
-
subscription_data: nil,
|
3289
|
-
success_url: nil,
|
3290
|
-
tax_id_collection: nil,
|
3291
|
-
ui_mode: nil,
|
3292
|
-
wallet_options: nil
|
3293
|
-
)
|
3294
|
-
@adaptive_pricing = adaptive_pricing
|
3295
|
-
@after_expiration = after_expiration
|
3296
|
-
@allow_promotion_codes = allow_promotion_codes
|
3297
|
-
@automatic_tax = automatic_tax
|
3298
|
-
@billing_address_collection = billing_address_collection
|
3299
|
-
@cancel_url = cancel_url
|
3300
|
-
@client_reference_id = client_reference_id
|
3301
|
-
@consent_collection = consent_collection
|
3302
|
-
@currency = currency
|
3303
|
-
@custom_fields = custom_fields
|
3304
|
-
@custom_text = custom_text
|
3305
|
-
@customer = customer
|
3306
|
-
@customer_creation = customer_creation
|
3307
|
-
@customer_email = customer_email
|
3308
|
-
@customer_update = customer_update
|
3309
|
-
@discounts = discounts
|
3310
|
-
@expand = expand
|
3311
|
-
@expires_at = expires_at
|
3312
|
-
@invoice_creation = invoice_creation
|
3313
|
-
@line_items = line_items
|
3314
|
-
@locale = locale
|
3315
|
-
@metadata = metadata
|
3316
|
-
@mode = mode
|
3317
|
-
@optional_items = optional_items
|
3318
|
-
@origin_context = origin_context
|
3319
|
-
@payment_intent_data = payment_intent_data
|
3320
|
-
@payment_method_collection = payment_method_collection
|
3321
|
-
@payment_method_configuration = payment_method_configuration
|
3322
|
-
@payment_method_data = payment_method_data
|
3323
|
-
@payment_method_options = payment_method_options
|
3324
|
-
@payment_method_types = payment_method_types
|
3325
|
-
@permissions = permissions
|
3326
|
-
@phone_number_collection = phone_number_collection
|
3327
|
-
@redirect_on_completion = redirect_on_completion
|
3328
|
-
@return_url = return_url
|
3329
|
-
@saved_payment_method_options = saved_payment_method_options
|
3330
|
-
@setup_intent_data = setup_intent_data
|
3331
|
-
@shipping_address_collection = shipping_address_collection
|
3332
|
-
@shipping_options = shipping_options
|
3333
|
-
@submit_type = submit_type
|
3334
|
-
@subscription_data = subscription_data
|
3335
|
-
@success_url = success_url
|
3336
|
-
@tax_id_collection = tax_id_collection
|
3337
|
-
@ui_mode = ui_mode
|
3338
|
-
@wallet_options = wallet_options
|
3339
|
-
end
|
3340
|
-
end
|
3341
|
-
|
3342
|
-
class UpdateParams < Stripe::RequestParams
|
3343
|
-
class CollectedInformation < Stripe::RequestParams
|
3344
|
-
class ShippingDetails < Stripe::RequestParams
|
3345
|
-
class Address < Stripe::RequestParams
|
3346
|
-
# City, district, suburb, town, or village.
|
3347
|
-
attr_accessor :city
|
3348
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
3349
|
-
attr_accessor :country
|
3350
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
3351
|
-
attr_accessor :line1
|
3352
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
3353
|
-
attr_accessor :line2
|
3354
|
-
# ZIP or postal code.
|
3355
|
-
attr_accessor :postal_code
|
3356
|
-
# State, county, province, or region.
|
3357
|
-
attr_accessor :state
|
3358
|
-
|
3359
|
-
def initialize(
|
3360
|
-
city: nil,
|
3361
|
-
country: nil,
|
3362
|
-
line1: nil,
|
3363
|
-
line2: nil,
|
3364
|
-
postal_code: nil,
|
3365
|
-
state: nil
|
3366
|
-
)
|
3367
|
-
@city = city
|
3368
|
-
@country = country
|
3369
|
-
@line1 = line1
|
3370
|
-
@line2 = line2
|
3371
|
-
@postal_code = postal_code
|
3372
|
-
@state = state
|
3373
|
-
end
|
3374
|
-
end
|
3375
|
-
# The address of the customer
|
3376
|
-
attr_accessor :address
|
3377
|
-
# The name of customer
|
3378
|
-
attr_accessor :name
|
3379
|
-
|
3380
|
-
def initialize(address: nil, name: nil)
|
3381
|
-
@address = address
|
3382
|
-
@name = name
|
3383
|
-
end
|
3384
|
-
end
|
3385
|
-
# The shipping details to apply to this Session.
|
3386
|
-
attr_accessor :shipping_details
|
3387
|
-
|
3388
|
-
def initialize(shipping_details: nil)
|
3389
|
-
@shipping_details = shipping_details
|
3390
|
-
end
|
3391
|
-
end
|
3392
|
-
|
3393
|
-
class ShippingOption < Stripe::RequestParams
|
3394
|
-
class ShippingRateData < Stripe::RequestParams
|
3395
|
-
class DeliveryEstimate < Stripe::RequestParams
|
3396
|
-
class Maximum < Stripe::RequestParams
|
3397
|
-
# A unit of time.
|
3398
|
-
attr_accessor :unit
|
3399
|
-
# Must be greater than 0.
|
3400
|
-
attr_accessor :value
|
3401
|
-
|
3402
|
-
def initialize(unit: nil, value: nil)
|
3403
|
-
@unit = unit
|
3404
|
-
@value = value
|
3405
|
-
end
|
3406
|
-
end
|
3407
|
-
|
3408
|
-
class Minimum < Stripe::RequestParams
|
3409
|
-
# A unit of time.
|
3410
|
-
attr_accessor :unit
|
3411
|
-
# Must be greater than 0.
|
3412
|
-
attr_accessor :value
|
3413
|
-
|
3414
|
-
def initialize(unit: nil, value: nil)
|
3415
|
-
@unit = unit
|
3416
|
-
@value = value
|
3417
|
-
end
|
3418
|
-
end
|
3419
|
-
# The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
|
3420
|
-
attr_accessor :maximum
|
3421
|
-
# The lower bound of the estimated range. If empty, represents no lower bound.
|
3422
|
-
attr_accessor :minimum
|
3423
|
-
|
3424
|
-
def initialize(maximum: nil, minimum: nil)
|
3425
|
-
@maximum = maximum
|
3426
|
-
@minimum = minimum
|
3427
|
-
end
|
3428
|
-
end
|
3429
|
-
|
3430
|
-
class FixedAmount < Stripe::RequestParams
|
3431
|
-
class CurrencyOptions < Stripe::RequestParams
|
3432
|
-
# A non-negative integer in cents representing how much to charge.
|
3433
|
-
attr_accessor :amount
|
3434
|
-
# Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
3435
|
-
attr_accessor :tax_behavior
|
3436
|
-
|
3437
|
-
def initialize(amount: nil, tax_behavior: nil)
|
3438
|
-
@amount = amount
|
3439
|
-
@tax_behavior = tax_behavior
|
3440
|
-
end
|
3441
|
-
end
|
3442
|
-
# A non-negative integer in cents representing how much to charge.
|
3443
|
-
attr_accessor :amount
|
3444
|
-
# 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).
|
3445
|
-
attr_accessor :currency
|
3446
|
-
# Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
|
3447
|
-
attr_accessor :currency_options
|
3448
|
-
|
3449
|
-
def initialize(amount: nil, currency: nil, currency_options: nil)
|
3450
|
-
@amount = amount
|
3451
|
-
@currency = currency
|
3452
|
-
@currency_options = currency_options
|
3453
|
-
end
|
3454
|
-
end
|
3455
|
-
# The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
3456
|
-
attr_accessor :delivery_estimate
|
3457
|
-
# The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
3458
|
-
attr_accessor :display_name
|
3459
|
-
# Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
|
3460
|
-
attr_accessor :fixed_amount
|
3461
|
-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
3462
|
-
attr_accessor :metadata
|
3463
|
-
# Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
3464
|
-
attr_accessor :tax_behavior
|
3465
|
-
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
|
3466
|
-
attr_accessor :tax_code
|
3467
|
-
# The type of calculation to use on the shipping rate.
|
3468
|
-
attr_accessor :type
|
3469
|
-
|
3470
|
-
def initialize(
|
3471
|
-
delivery_estimate: nil,
|
3472
|
-
display_name: nil,
|
3473
|
-
fixed_amount: nil,
|
3474
|
-
metadata: nil,
|
3475
|
-
tax_behavior: nil,
|
3476
|
-
tax_code: nil,
|
3477
|
-
type: nil
|
3478
|
-
)
|
3479
|
-
@delivery_estimate = delivery_estimate
|
3480
|
-
@display_name = display_name
|
3481
|
-
@fixed_amount = fixed_amount
|
3482
|
-
@metadata = metadata
|
3483
|
-
@tax_behavior = tax_behavior
|
3484
|
-
@tax_code = tax_code
|
3485
|
-
@type = type
|
3486
|
-
end
|
3487
|
-
end
|
3488
|
-
# The ID of the Shipping Rate to use for this shipping option.
|
3489
|
-
attr_accessor :shipping_rate
|
3490
|
-
# Parameters to be passed to Shipping Rate creation for this shipping option.
|
3491
|
-
attr_accessor :shipping_rate_data
|
3492
|
-
|
3493
|
-
def initialize(shipping_rate: nil, shipping_rate_data: nil)
|
3494
|
-
@shipping_rate = shipping_rate
|
3495
|
-
@shipping_rate_data = shipping_rate_data
|
3496
|
-
end
|
3497
|
-
end
|
3498
|
-
# Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
|
3499
|
-
attr_accessor :collected_information
|
3500
|
-
# Specifies which fields in the response should be expanded.
|
3501
|
-
attr_accessor :expand
|
3502
|
-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
3503
|
-
attr_accessor :metadata
|
3504
|
-
# The shipping rate options to apply to this Session. Up to a maximum of 5.
|
3505
|
-
attr_accessor :shipping_options
|
3506
|
-
|
3507
|
-
def initialize(
|
3508
|
-
collected_information: nil,
|
3509
|
-
expand: nil,
|
3510
|
-
metadata: nil,
|
3511
|
-
shipping_options: nil
|
3512
|
-
)
|
3513
|
-
@collected_information = collected_information
|
3514
|
-
@expand = expand
|
3515
|
-
@metadata = metadata
|
3516
|
-
@shipping_options = shipping_options
|
3517
|
-
end
|
3518
|
-
end
|
3519
|
-
|
3520
|
-
class ListLineItemsParams < Stripe::RequestParams
|
3521
|
-
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
3522
|
-
attr_accessor :ending_before
|
3523
|
-
# Specifies which fields in the response should be expanded.
|
3524
|
-
attr_accessor :expand
|
3525
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
3526
|
-
attr_accessor :limit
|
3527
|
-
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
3528
|
-
attr_accessor :starting_after
|
3529
|
-
|
3530
|
-
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
|
3531
|
-
@ending_before = ending_before
|
3532
|
-
@expand = expand
|
3533
|
-
@limit = limit
|
3534
|
-
@starting_after = starting_after
|
3535
|
-
end
|
3536
|
-
end
|
3537
|
-
|
3538
|
-
class ExpireParams < Stripe::RequestParams
|
3539
|
-
# Specifies which fields in the response should be expanded.
|
3540
|
-
attr_accessor :expand
|
3541
|
-
|
3542
|
-
def initialize(expand: nil)
|
3543
|
-
@expand = expand
|
2038
|
+
def self.field_remappings
|
2039
|
+
@field_remappings = {}
|
3544
2040
|
end
|
3545
2041
|
end
|
3546
2042
|
# Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
|
@@ -3557,6 +2053,8 @@ module Stripe
|
|
3557
2053
|
attr_reader :automatic_tax
|
3558
2054
|
# Describes whether Checkout should collect the customer's billing address. Defaults to `auto`.
|
3559
2055
|
attr_reader :billing_address_collection
|
2056
|
+
# Attribute for field branding_settings
|
2057
|
+
attr_reader :branding_settings
|
3560
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.
|
3561
2059
|
attr_reader :cancel_url
|
3562
2060
|
# A unique string to reference the Checkout Session. This can be a
|
@@ -3600,6 +2098,8 @@ module Stripe
|
|
3600
2098
|
attr_reader :customer_email
|
3601
2099
|
# List of coupons and promotion codes attached to the Checkout Session.
|
3602
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
|
3603
2103
|
# The timestamp at which the Checkout Session will expire.
|
3604
2104
|
attr_reader :expires_at
|
3605
2105
|
# Unique identifier for the object.
|
@@ -3618,6 +2118,8 @@ module Stripe
|
|
3618
2118
|
attr_reader :metadata
|
3619
2119
|
# The mode of the Checkout Session.
|
3620
2120
|
attr_reader :mode
|
2121
|
+
# Attribute for field name_collection
|
2122
|
+
attr_reader :name_collection
|
3621
2123
|
# String representing the object's type. Objects of the same type share the same value.
|
3622
2124
|
attr_reader :object
|
3623
2125
|
# The optional items presented to the customer at checkout.
|
@@ -3762,6 +2264,42 @@ module Stripe
|
|
3762
2264
|
opts: opts
|
3763
2265
|
)
|
3764
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
|
3765
2303
|
end
|
3766
2304
|
end
|
3767
2305
|
end
|