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
@@ -3,8 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
# The `Charge` object represents a single attempt to move money into your Stripe account.
|
6
|
-
# PaymentIntent confirmation is the most common way to create Charges, but
|
7
|
-
# money to a different Stripe account through Connect also creates Charges.
|
6
|
+
# PaymentIntent confirmation is the most common way to create Charges, but [Account Debits](https://stripe.com/docs/connect/account-debits) may also create Charges.
|
8
7
|
# Some legacy payment flows create Charges directly, which is not recommended for new integrations.
|
9
8
|
class Charge < APIResource
|
10
9
|
extend Stripe::APIOperations::Create
|
@@ -26,14 +25,22 @@ module Stripe
|
|
26
25
|
attr_reader :city
|
27
26
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
28
27
|
attr_reader :country
|
29
|
-
# Address line 1
|
28
|
+
# Address line 1, such as the street, PO Box, or company name.
|
30
29
|
attr_reader :line1
|
31
|
-
# Address line 2
|
30
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
32
31
|
attr_reader :line2
|
33
32
|
# ZIP or postal code.
|
34
33
|
attr_reader :postal_code
|
35
34
|
# State, county, province, or region.
|
36
35
|
attr_reader :state
|
36
|
+
|
37
|
+
def self.inner_class_types
|
38
|
+
@inner_class_types = {}
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.field_remappings
|
42
|
+
@field_remappings = {}
|
43
|
+
end
|
37
44
|
end
|
38
45
|
# Billing address.
|
39
46
|
attr_reader :address
|
@@ -45,6 +52,14 @@ module Stripe
|
|
45
52
|
attr_reader :phone
|
46
53
|
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
47
54
|
attr_reader :tax_id
|
55
|
+
|
56
|
+
def self.inner_class_types
|
57
|
+
@inner_class_types = { address: Address }
|
58
|
+
end
|
59
|
+
|
60
|
+
def self.field_remappings
|
61
|
+
@field_remappings = {}
|
62
|
+
end
|
48
63
|
end
|
49
64
|
|
50
65
|
class FraudDetails < Stripe::StripeObject
|
@@ -52,6 +67,14 @@ module Stripe
|
|
52
67
|
attr_reader :stripe_report
|
53
68
|
# Assessments reported by you. If set, possible values of are `safe` and `fraudulent`.
|
54
69
|
attr_reader :user_report
|
70
|
+
|
71
|
+
def self.inner_class_types
|
72
|
+
@inner_class_types = {}
|
73
|
+
end
|
74
|
+
|
75
|
+
def self.field_remappings
|
76
|
+
@field_remappings = {}
|
77
|
+
end
|
55
78
|
end
|
56
79
|
|
57
80
|
class Level3 < Stripe::StripeObject
|
@@ -68,6 +91,14 @@ module Stripe
|
|
68
91
|
attr_reader :tax_amount
|
69
92
|
# Attribute for field unit_cost
|
70
93
|
attr_reader :unit_cost
|
94
|
+
|
95
|
+
def self.inner_class_types
|
96
|
+
@inner_class_types = {}
|
97
|
+
end
|
98
|
+
|
99
|
+
def self.field_remappings
|
100
|
+
@field_remappings = {}
|
101
|
+
end
|
71
102
|
end
|
72
103
|
# Attribute for field customer_reference
|
73
104
|
attr_reader :customer_reference
|
@@ -81,6 +112,14 @@ module Stripe
|
|
81
112
|
attr_reader :shipping_amount
|
82
113
|
# Attribute for field shipping_from_zip
|
83
114
|
attr_reader :shipping_from_zip
|
115
|
+
|
116
|
+
def self.inner_class_types
|
117
|
+
@inner_class_types = { line_items: LineItem }
|
118
|
+
end
|
119
|
+
|
120
|
+
def self.field_remappings
|
121
|
+
@field_remappings = {}
|
122
|
+
end
|
84
123
|
end
|
85
124
|
|
86
125
|
class Outcome < Stripe::StripeObject
|
@@ -91,6 +130,14 @@ module Stripe
|
|
91
130
|
attr_reader :id
|
92
131
|
# The predicate to evaluate the payment against.
|
93
132
|
attr_reader :predicate
|
133
|
+
|
134
|
+
def self.inner_class_types
|
135
|
+
@inner_class_types = {}
|
136
|
+
end
|
137
|
+
|
138
|
+
def self.field_remappings
|
139
|
+
@field_remappings = {}
|
140
|
+
end
|
94
141
|
end
|
95
142
|
# An enumerated value providing a more detailed explanation on [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines).
|
96
143
|
attr_reader :advice_code
|
@@ -112,6 +159,14 @@ module Stripe
|
|
112
159
|
attr_reader :seller_message
|
113
160
|
# Possible values are `authorized`, `manual_review`, `issuer_declined`, `blocked`, and `invalid`. See [understanding declines](https://stripe.com/docs/declines) and [Radar reviews](https://stripe.com/docs/radar/reviews) for details.
|
114
161
|
attr_reader :type
|
162
|
+
|
163
|
+
def self.inner_class_types
|
164
|
+
@inner_class_types = { rule: Rule }
|
165
|
+
end
|
166
|
+
|
167
|
+
def self.field_remappings
|
168
|
+
@field_remappings = {}
|
169
|
+
end
|
115
170
|
end
|
116
171
|
|
117
172
|
class PaymentMethodDetails < Stripe::StripeObject
|
@@ -124,6 +179,14 @@ module Stripe
|
|
124
179
|
attr_reader :routing_number
|
125
180
|
# SWIFT code of the bank associated with the routing number.
|
126
181
|
attr_reader :swift_code
|
182
|
+
|
183
|
+
def self.inner_class_types
|
184
|
+
@inner_class_types = {}
|
185
|
+
end
|
186
|
+
|
187
|
+
def self.field_remappings
|
188
|
+
@field_remappings = {}
|
189
|
+
end
|
127
190
|
end
|
128
191
|
|
129
192
|
class AchDebit < Stripe::StripeObject
|
@@ -139,6 +202,14 @@ module Stripe
|
|
139
202
|
attr_reader :last4
|
140
203
|
# Routing transit number of the bank account.
|
141
204
|
attr_reader :routing_number
|
205
|
+
|
206
|
+
def self.inner_class_types
|
207
|
+
@inner_class_types = {}
|
208
|
+
end
|
209
|
+
|
210
|
+
def self.field_remappings
|
211
|
+
@field_remappings = {}
|
212
|
+
end
|
142
213
|
end
|
143
214
|
|
144
215
|
class AcssDebit < Stripe::StripeObject
|
@@ -154,6 +225,14 @@ module Stripe
|
|
154
225
|
attr_reader :mandate
|
155
226
|
# Transit number of the bank account.
|
156
227
|
attr_reader :transit_number
|
228
|
+
|
229
|
+
def self.inner_class_types
|
230
|
+
@inner_class_types = {}
|
231
|
+
end
|
232
|
+
|
233
|
+
def self.field_remappings
|
234
|
+
@field_remappings = {}
|
235
|
+
end
|
157
236
|
end
|
158
237
|
|
159
238
|
class Affirm < Stripe::StripeObject
|
@@ -163,6 +242,14 @@ module Stripe
|
|
163
242
|
attr_reader :reader
|
164
243
|
# The Affirm transaction ID associated with this payment.
|
165
244
|
attr_reader :transaction_id
|
245
|
+
|
246
|
+
def self.inner_class_types
|
247
|
+
@inner_class_types = {}
|
248
|
+
end
|
249
|
+
|
250
|
+
def self.field_remappings
|
251
|
+
@field_remappings = {}
|
252
|
+
end
|
166
253
|
end
|
167
254
|
|
168
255
|
class AfterpayClearpay < Stripe::StripeObject
|
@@ -170,6 +257,14 @@ module Stripe
|
|
170
257
|
attr_reader :order_id
|
171
258
|
# Order identifier shown to the merchant in Afterpay’s online portal.
|
172
259
|
attr_reader :reference
|
260
|
+
|
261
|
+
def self.inner_class_types
|
262
|
+
@inner_class_types = {}
|
263
|
+
end
|
264
|
+
|
265
|
+
def self.field_remappings
|
266
|
+
@field_remappings = {}
|
267
|
+
end
|
173
268
|
end
|
174
269
|
|
175
270
|
class Alipay < Stripe::StripeObject
|
@@ -179,17 +274,41 @@ module Stripe
|
|
179
274
|
attr_reader :fingerprint
|
180
275
|
# Transaction ID of this particular Alipay transaction.
|
181
276
|
attr_reader :transaction_id
|
277
|
+
|
278
|
+
def self.inner_class_types
|
279
|
+
@inner_class_types = {}
|
280
|
+
end
|
281
|
+
|
282
|
+
def self.field_remappings
|
283
|
+
@field_remappings = {}
|
284
|
+
end
|
182
285
|
end
|
183
286
|
|
184
287
|
class Alma < Stripe::StripeObject
|
185
288
|
class Installments < Stripe::StripeObject
|
186
289
|
# The number of installments.
|
187
290
|
attr_reader :count
|
291
|
+
|
292
|
+
def self.inner_class_types
|
293
|
+
@inner_class_types = {}
|
294
|
+
end
|
295
|
+
|
296
|
+
def self.field_remappings
|
297
|
+
@field_remappings = {}
|
298
|
+
end
|
188
299
|
end
|
189
300
|
# Attribute for field installments
|
190
301
|
attr_reader :installments
|
191
302
|
# The Alma transaction ID associated with this payment.
|
192
303
|
attr_reader :transaction_id
|
304
|
+
|
305
|
+
def self.inner_class_types
|
306
|
+
@inner_class_types = { installments: Installments }
|
307
|
+
end
|
308
|
+
|
309
|
+
def self.field_remappings
|
310
|
+
@field_remappings = {}
|
311
|
+
end
|
193
312
|
end
|
194
313
|
|
195
314
|
class AmazonPay < Stripe::StripeObject
|
@@ -207,16 +326,40 @@ module Stripe
|
|
207
326
|
attr_reader :funding
|
208
327
|
# The last four digits of the card.
|
209
328
|
attr_reader :last4
|
329
|
+
|
330
|
+
def self.inner_class_types
|
331
|
+
@inner_class_types = {}
|
332
|
+
end
|
333
|
+
|
334
|
+
def self.field_remappings
|
335
|
+
@field_remappings = {}
|
336
|
+
end
|
210
337
|
end
|
211
338
|
# Attribute for field card
|
212
339
|
attr_reader :card
|
213
340
|
# funding type of the underlying payment method.
|
214
341
|
attr_reader :type
|
342
|
+
|
343
|
+
def self.inner_class_types
|
344
|
+
@inner_class_types = { card: Card }
|
345
|
+
end
|
346
|
+
|
347
|
+
def self.field_remappings
|
348
|
+
@field_remappings = {}
|
349
|
+
end
|
215
350
|
end
|
216
351
|
# Attribute for field funding
|
217
352
|
attr_reader :funding
|
218
353
|
# The Amazon Pay transaction ID associated with this payment.
|
219
354
|
attr_reader :transaction_id
|
355
|
+
|
356
|
+
def self.inner_class_types
|
357
|
+
@inner_class_types = { funding: Funding }
|
358
|
+
end
|
359
|
+
|
360
|
+
def self.field_remappings
|
361
|
+
@field_remappings = {}
|
362
|
+
end
|
220
363
|
end
|
221
364
|
|
222
365
|
class AuBecsDebit < Stripe::StripeObject
|
@@ -228,6 +371,14 @@ module Stripe
|
|
228
371
|
attr_reader :last4
|
229
372
|
# ID of the mandate used to make this payment.
|
230
373
|
attr_reader :mandate
|
374
|
+
|
375
|
+
def self.inner_class_types
|
376
|
+
@inner_class_types = {}
|
377
|
+
end
|
378
|
+
|
379
|
+
def self.field_remappings
|
380
|
+
@field_remappings = {}
|
381
|
+
end
|
231
382
|
end
|
232
383
|
|
233
384
|
class BacsDebit < Stripe::StripeObject
|
@@ -239,6 +390,14 @@ module Stripe
|
|
239
390
|
attr_reader :mandate
|
240
391
|
# Sort code of the bank account. (e.g., `10-20-30`)
|
241
392
|
attr_reader :sort_code
|
393
|
+
|
394
|
+
def self.inner_class_types
|
395
|
+
@inner_class_types = {}
|
396
|
+
end
|
397
|
+
|
398
|
+
def self.field_remappings
|
399
|
+
@field_remappings = {}
|
400
|
+
end
|
242
401
|
end
|
243
402
|
|
244
403
|
class Bancontact < Stripe::StripeObject
|
@@ -260,21 +419,53 @@ module Stripe
|
|
260
419
|
# Owner's verified full name. Values are verified or provided by Bancontact directly
|
261
420
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
262
421
|
attr_reader :verified_name
|
422
|
+
|
423
|
+
def self.inner_class_types
|
424
|
+
@inner_class_types = {}
|
425
|
+
end
|
426
|
+
|
427
|
+
def self.field_remappings
|
428
|
+
@field_remappings = {}
|
429
|
+
end
|
263
430
|
end
|
264
431
|
|
265
432
|
class Billie < Stripe::StripeObject
|
266
433
|
# The Billie transaction ID associated with this payment.
|
267
434
|
attr_reader :transaction_id
|
435
|
+
|
436
|
+
def self.inner_class_types
|
437
|
+
@inner_class_types = {}
|
438
|
+
end
|
439
|
+
|
440
|
+
def self.field_remappings
|
441
|
+
@field_remappings = {}
|
442
|
+
end
|
268
443
|
end
|
269
444
|
|
270
445
|
class Blik < Stripe::StripeObject
|
271
446
|
# A unique and immutable identifier assigned by BLIK to every buyer.
|
272
447
|
attr_reader :buyer_id
|
448
|
+
|
449
|
+
def self.inner_class_types
|
450
|
+
@inner_class_types = {}
|
451
|
+
end
|
452
|
+
|
453
|
+
def self.field_remappings
|
454
|
+
@field_remappings = {}
|
455
|
+
end
|
273
456
|
end
|
274
457
|
|
275
458
|
class Boleto < Stripe::StripeObject
|
276
459
|
# The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers)
|
277
460
|
attr_reader :tax_id
|
461
|
+
|
462
|
+
def self.inner_class_types
|
463
|
+
@inner_class_types = {}
|
464
|
+
end
|
465
|
+
|
466
|
+
def self.field_remappings
|
467
|
+
@field_remappings = {}
|
468
|
+
end
|
278
469
|
end
|
279
470
|
|
280
471
|
class Card < Stripe::StripeObject
|
@@ -285,16 +476,40 @@ module Stripe
|
|
285
476
|
attr_reader :address_postal_code_check
|
286
477
|
# If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
287
478
|
attr_reader :cvc_check
|
479
|
+
|
480
|
+
def self.inner_class_types
|
481
|
+
@inner_class_types = {}
|
482
|
+
end
|
483
|
+
|
484
|
+
def self.field_remappings
|
485
|
+
@field_remappings = {}
|
486
|
+
end
|
288
487
|
end
|
289
488
|
|
290
489
|
class ExtendedAuthorization < Stripe::StripeObject
|
291
490
|
# Indicates whether or not the capture window is extended beyond the standard authorization.
|
292
491
|
attr_reader :status
|
492
|
+
|
493
|
+
def self.inner_class_types
|
494
|
+
@inner_class_types = {}
|
495
|
+
end
|
496
|
+
|
497
|
+
def self.field_remappings
|
498
|
+
@field_remappings = {}
|
499
|
+
end
|
293
500
|
end
|
294
501
|
|
295
502
|
class IncrementalAuthorization < Stripe::StripeObject
|
296
503
|
# Indicates whether or not the incremental authorization feature is supported.
|
297
504
|
attr_reader :status
|
505
|
+
|
506
|
+
def self.inner_class_types
|
507
|
+
@inner_class_types = {}
|
508
|
+
end
|
509
|
+
|
510
|
+
def self.field_remappings
|
511
|
+
@field_remappings = {}
|
512
|
+
end
|
298
513
|
end
|
299
514
|
|
300
515
|
class Installments < Stripe::StripeObject
|
@@ -306,19 +521,51 @@ module Stripe
|
|
306
521
|
attr_reader :interval
|
307
522
|
# Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
|
308
523
|
attr_reader :type
|
524
|
+
|
525
|
+
def self.inner_class_types
|
526
|
+
@inner_class_types = {}
|
527
|
+
end
|
528
|
+
|
529
|
+
def self.field_remappings
|
530
|
+
@field_remappings = {}
|
531
|
+
end
|
309
532
|
end
|
310
533
|
# Installment plan selected for the payment.
|
311
534
|
attr_reader :plan
|
535
|
+
|
536
|
+
def self.inner_class_types
|
537
|
+
@inner_class_types = { plan: Plan }
|
538
|
+
end
|
539
|
+
|
540
|
+
def self.field_remappings
|
541
|
+
@field_remappings = {}
|
542
|
+
end
|
312
543
|
end
|
313
544
|
|
314
545
|
class Multicapture < Stripe::StripeObject
|
315
546
|
# Indicates whether or not multiple captures are supported.
|
316
547
|
attr_reader :status
|
548
|
+
|
549
|
+
def self.inner_class_types
|
550
|
+
@inner_class_types = {}
|
551
|
+
end
|
552
|
+
|
553
|
+
def self.field_remappings
|
554
|
+
@field_remappings = {}
|
555
|
+
end
|
317
556
|
end
|
318
557
|
|
319
558
|
class NetworkToken < Stripe::StripeObject
|
320
559
|
# Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
|
321
560
|
attr_reader :used
|
561
|
+
|
562
|
+
def self.inner_class_types
|
563
|
+
@inner_class_types = {}
|
564
|
+
end
|
565
|
+
|
566
|
+
def self.field_remappings
|
567
|
+
@field_remappings = {}
|
568
|
+
end
|
322
569
|
end
|
323
570
|
|
324
571
|
class Overcapture < Stripe::StripeObject
|
@@ -326,6 +573,14 @@ module Stripe
|
|
326
573
|
attr_reader :maximum_amount_capturable
|
327
574
|
# Indicates whether or not the authorized amount can be over-captured.
|
328
575
|
attr_reader :status
|
576
|
+
|
577
|
+
def self.inner_class_types
|
578
|
+
@inner_class_types = {}
|
579
|
+
end
|
580
|
+
|
581
|
+
def self.field_remappings
|
582
|
+
@field_remappings = {}
|
583
|
+
end
|
329
584
|
end
|
330
585
|
|
331
586
|
class ThreeDSecure < Stripe::StripeObject
|
@@ -350,13 +605,56 @@ module Stripe
|
|
350
605
|
attr_reader :transaction_id
|
351
606
|
# The version of 3D Secure that was used.
|
352
607
|
attr_reader :version
|
608
|
+
|
609
|
+
def self.inner_class_types
|
610
|
+
@inner_class_types = {}
|
611
|
+
end
|
612
|
+
|
613
|
+
def self.field_remappings
|
614
|
+
@field_remappings = {}
|
615
|
+
end
|
353
616
|
end
|
354
617
|
|
355
618
|
class Wallet < Stripe::StripeObject
|
356
|
-
class AmexExpressCheckout < Stripe::StripeObject
|
357
|
-
|
358
|
-
|
359
|
-
|
619
|
+
class AmexExpressCheckout < Stripe::StripeObject
|
620
|
+
def self.inner_class_types
|
621
|
+
@inner_class_types = {}
|
622
|
+
end
|
623
|
+
|
624
|
+
def self.field_remappings
|
625
|
+
@field_remappings = {}
|
626
|
+
end
|
627
|
+
end
|
628
|
+
|
629
|
+
class ApplePay < Stripe::StripeObject
|
630
|
+
def self.inner_class_types
|
631
|
+
@inner_class_types = {}
|
632
|
+
end
|
633
|
+
|
634
|
+
def self.field_remappings
|
635
|
+
@field_remappings = {}
|
636
|
+
end
|
637
|
+
end
|
638
|
+
|
639
|
+
class GooglePay < Stripe::StripeObject
|
640
|
+
def self.inner_class_types
|
641
|
+
@inner_class_types = {}
|
642
|
+
end
|
643
|
+
|
644
|
+
def self.field_remappings
|
645
|
+
@field_remappings = {}
|
646
|
+
end
|
647
|
+
end
|
648
|
+
|
649
|
+
class Link < Stripe::StripeObject
|
650
|
+
def self.inner_class_types
|
651
|
+
@inner_class_types = {}
|
652
|
+
end
|
653
|
+
|
654
|
+
def self.field_remappings
|
655
|
+
@field_remappings = {}
|
656
|
+
end
|
657
|
+
end
|
360
658
|
|
361
659
|
class Masterpass < Stripe::StripeObject
|
362
660
|
class BillingAddress < Stripe::StripeObject
|
@@ -364,14 +662,22 @@ module Stripe
|
|
364
662
|
attr_reader :city
|
365
663
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
366
664
|
attr_reader :country
|
367
|
-
# Address line 1
|
665
|
+
# Address line 1, such as the street, PO Box, or company name.
|
368
666
|
attr_reader :line1
|
369
|
-
# Address line 2
|
667
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
370
668
|
attr_reader :line2
|
371
669
|
# ZIP or postal code.
|
372
670
|
attr_reader :postal_code
|
373
671
|
# State, county, province, or region.
|
374
672
|
attr_reader :state
|
673
|
+
|
674
|
+
def self.inner_class_types
|
675
|
+
@inner_class_types = {}
|
676
|
+
end
|
677
|
+
|
678
|
+
def self.field_remappings
|
679
|
+
@field_remappings = {}
|
680
|
+
end
|
375
681
|
end
|
376
682
|
|
377
683
|
class ShippingAddress < Stripe::StripeObject
|
@@ -379,14 +685,22 @@ module Stripe
|
|
379
685
|
attr_reader :city
|
380
686
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
381
687
|
attr_reader :country
|
382
|
-
# Address line 1
|
688
|
+
# Address line 1, such as the street, PO Box, or company name.
|
383
689
|
attr_reader :line1
|
384
|
-
# Address line 2
|
690
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
385
691
|
attr_reader :line2
|
386
692
|
# ZIP or postal code.
|
387
693
|
attr_reader :postal_code
|
388
694
|
# State, county, province, or region.
|
389
695
|
attr_reader :state
|
696
|
+
|
697
|
+
def self.inner_class_types
|
698
|
+
@inner_class_types = {}
|
699
|
+
end
|
700
|
+
|
701
|
+
def self.field_remappings
|
702
|
+
@field_remappings = {}
|
703
|
+
end
|
390
704
|
end
|
391
705
|
# Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
392
706
|
attr_reader :billing_address
|
@@ -396,9 +710,28 @@ module Stripe
|
|
396
710
|
attr_reader :name
|
397
711
|
# Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
398
712
|
attr_reader :shipping_address
|
713
|
+
|
714
|
+
def self.inner_class_types
|
715
|
+
@inner_class_types = {
|
716
|
+
billing_address: BillingAddress,
|
717
|
+
shipping_address: ShippingAddress,
|
718
|
+
}
|
719
|
+
end
|
720
|
+
|
721
|
+
def self.field_remappings
|
722
|
+
@field_remappings = {}
|
723
|
+
end
|
399
724
|
end
|
400
725
|
|
401
|
-
class SamsungPay < Stripe::StripeObject
|
726
|
+
class SamsungPay < Stripe::StripeObject
|
727
|
+
def self.inner_class_types
|
728
|
+
@inner_class_types = {}
|
729
|
+
end
|
730
|
+
|
731
|
+
def self.field_remappings
|
732
|
+
@field_remappings = {}
|
733
|
+
end
|
734
|
+
end
|
402
735
|
|
403
736
|
class VisaCheckout < Stripe::StripeObject
|
404
737
|
class BillingAddress < Stripe::StripeObject
|
@@ -406,14 +739,22 @@ module Stripe
|
|
406
739
|
attr_reader :city
|
407
740
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
408
741
|
attr_reader :country
|
409
|
-
# Address line 1
|
742
|
+
# Address line 1, such as the street, PO Box, or company name.
|
410
743
|
attr_reader :line1
|
411
|
-
# Address line 2
|
744
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
412
745
|
attr_reader :line2
|
413
746
|
# ZIP or postal code.
|
414
747
|
attr_reader :postal_code
|
415
748
|
# State, county, province, or region.
|
416
749
|
attr_reader :state
|
750
|
+
|
751
|
+
def self.inner_class_types
|
752
|
+
@inner_class_types = {}
|
753
|
+
end
|
754
|
+
|
755
|
+
def self.field_remappings
|
756
|
+
@field_remappings = {}
|
757
|
+
end
|
417
758
|
end
|
418
759
|
|
419
760
|
class ShippingAddress < Stripe::StripeObject
|
@@ -421,14 +762,22 @@ module Stripe
|
|
421
762
|
attr_reader :city
|
422
763
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
423
764
|
attr_reader :country
|
424
|
-
# Address line 1
|
765
|
+
# Address line 1, such as the street, PO Box, or company name.
|
425
766
|
attr_reader :line1
|
426
|
-
# Address line 2
|
767
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
427
768
|
attr_reader :line2
|
428
769
|
# ZIP or postal code.
|
429
770
|
attr_reader :postal_code
|
430
771
|
# State, county, province, or region.
|
431
772
|
attr_reader :state
|
773
|
+
|
774
|
+
def self.inner_class_types
|
775
|
+
@inner_class_types = {}
|
776
|
+
end
|
777
|
+
|
778
|
+
def self.field_remappings
|
779
|
+
@field_remappings = {}
|
780
|
+
end
|
432
781
|
end
|
433
782
|
# Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
434
783
|
attr_reader :billing_address
|
@@ -438,6 +787,17 @@ module Stripe
|
|
438
787
|
attr_reader :name
|
439
788
|
# Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
440
789
|
attr_reader :shipping_address
|
790
|
+
|
791
|
+
def self.inner_class_types
|
792
|
+
@inner_class_types = {
|
793
|
+
billing_address: BillingAddress,
|
794
|
+
shipping_address: ShippingAddress,
|
795
|
+
}
|
796
|
+
end
|
797
|
+
|
798
|
+
def self.field_remappings
|
799
|
+
@field_remappings = {}
|
800
|
+
end
|
441
801
|
end
|
442
802
|
# Attribute for field amex_express_checkout
|
443
803
|
attr_reader :amex_express_checkout
|
@@ -457,6 +817,22 @@ module Stripe
|
|
457
817
|
attr_reader :type
|
458
818
|
# Attribute for field visa_checkout
|
459
819
|
attr_reader :visa_checkout
|
820
|
+
|
821
|
+
def self.inner_class_types
|
822
|
+
@inner_class_types = {
|
823
|
+
amex_express_checkout: AmexExpressCheckout,
|
824
|
+
apple_pay: ApplePay,
|
825
|
+
google_pay: GooglePay,
|
826
|
+
link: Link,
|
827
|
+
masterpass: Masterpass,
|
828
|
+
samsung_pay: SamsungPay,
|
829
|
+
visa_checkout: VisaCheckout,
|
830
|
+
}
|
831
|
+
end
|
832
|
+
|
833
|
+
def self.field_remappings
|
834
|
+
@field_remappings = {}
|
835
|
+
end
|
460
836
|
end
|
461
837
|
# The authorized amount.
|
462
838
|
attr_reader :amount_authorized
|
@@ -516,6 +892,24 @@ module Stripe
|
|
516
892
|
attr_reader :three_d_secure
|
517
893
|
# If this Card is part of a card wallet, this contains the details of the card wallet.
|
518
894
|
attr_reader :wallet
|
895
|
+
|
896
|
+
def self.inner_class_types
|
897
|
+
@inner_class_types = {
|
898
|
+
checks: Checks,
|
899
|
+
extended_authorization: ExtendedAuthorization,
|
900
|
+
incremental_authorization: IncrementalAuthorization,
|
901
|
+
installments: Installments,
|
902
|
+
multicapture: Multicapture,
|
903
|
+
network_token: NetworkToken,
|
904
|
+
overcapture: Overcapture,
|
905
|
+
three_d_secure: ThreeDSecure,
|
906
|
+
wallet: Wallet,
|
907
|
+
}
|
908
|
+
end
|
909
|
+
|
910
|
+
def self.field_remappings
|
911
|
+
@field_remappings = {}
|
912
|
+
end
|
519
913
|
end
|
520
914
|
|
521
915
|
class CardPresent < Stripe::StripeObject
|
@@ -524,6 +918,14 @@ module Stripe
|
|
524
918
|
attr_reader :stored_at
|
525
919
|
# The method used to process this payment method offline. Only deferred is allowed.
|
526
920
|
attr_reader :type
|
921
|
+
|
922
|
+
def self.inner_class_types
|
923
|
+
@inner_class_types = {}
|
924
|
+
end
|
925
|
+
|
926
|
+
def self.field_remappings
|
927
|
+
@field_remappings = {}
|
928
|
+
end
|
527
929
|
end
|
528
930
|
|
529
931
|
class Receipt < Stripe::StripeObject
|
@@ -545,11 +947,27 @@ module Stripe
|
|
545
947
|
attr_reader :terminal_verification_results
|
546
948
|
# An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
|
547
949
|
attr_reader :transaction_status_information
|
950
|
+
|
951
|
+
def self.inner_class_types
|
952
|
+
@inner_class_types = {}
|
953
|
+
end
|
954
|
+
|
955
|
+
def self.field_remappings
|
956
|
+
@field_remappings = {}
|
957
|
+
end
|
548
958
|
end
|
549
959
|
|
550
960
|
class Wallet < Stripe::StripeObject
|
551
961
|
# The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
|
552
962
|
attr_reader :type
|
963
|
+
|
964
|
+
def self.inner_class_types
|
965
|
+
@inner_class_types = {}
|
966
|
+
end
|
967
|
+
|
968
|
+
def self.field_remappings
|
969
|
+
@field_remappings = {}
|
970
|
+
end
|
553
971
|
end
|
554
972
|
# The authorized amount
|
555
973
|
attr_reader :amount_authorized
|
@@ -603,6 +1021,14 @@ module Stripe
|
|
603
1021
|
attr_reader :receipt
|
604
1022
|
# Attribute for field wallet
|
605
1023
|
attr_reader :wallet
|
1024
|
+
|
1025
|
+
def self.inner_class_types
|
1026
|
+
@inner_class_types = { offline: Offline, receipt: Receipt, wallet: Wallet }
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
def self.field_remappings
|
1030
|
+
@field_remappings = {}
|
1031
|
+
end
|
606
1032
|
end
|
607
1033
|
|
608
1034
|
class Cashapp < Stripe::StripeObject
|
@@ -612,6 +1038,14 @@ module Stripe
|
|
612
1038
|
attr_reader :cashtag
|
613
1039
|
# A unique and immutable identifier of payments assigned by Cash App
|
614
1040
|
attr_reader :transaction_id
|
1041
|
+
|
1042
|
+
def self.inner_class_types
|
1043
|
+
@inner_class_types = {}
|
1044
|
+
end
|
1045
|
+
|
1046
|
+
def self.field_remappings
|
1047
|
+
@field_remappings = {}
|
1048
|
+
end
|
615
1049
|
end
|
616
1050
|
|
617
1051
|
class Crypto < Stripe::StripeObject
|
@@ -623,9 +1057,25 @@ module Stripe
|
|
623
1057
|
attr_reader :token_currency
|
624
1058
|
# The blockchain transaction hash of the crypto payment.
|
625
1059
|
attr_reader :transaction_hash
|
1060
|
+
|
1061
|
+
def self.inner_class_types
|
1062
|
+
@inner_class_types = {}
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
def self.field_remappings
|
1066
|
+
@field_remappings = {}
|
1067
|
+
end
|
626
1068
|
end
|
627
1069
|
|
628
|
-
class CustomerBalance < Stripe::StripeObject
|
1070
|
+
class CustomerBalance < Stripe::StripeObject
|
1071
|
+
def self.inner_class_types
|
1072
|
+
@inner_class_types = {}
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
def self.field_remappings
|
1076
|
+
@field_remappings = {}
|
1077
|
+
end
|
1078
|
+
end
|
629
1079
|
|
630
1080
|
class Eps < Stripe::StripeObject
|
631
1081
|
# The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
|
@@ -634,6 +1084,14 @@ module Stripe
|
|
634
1084
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
635
1085
|
# EPS rarely provides this information so the attribute is usually empty.
|
636
1086
|
attr_reader :verified_name
|
1087
|
+
|
1088
|
+
def self.inner_class_types
|
1089
|
+
@inner_class_types = {}
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
def self.field_remappings
|
1093
|
+
@field_remappings = {}
|
1094
|
+
end
|
637
1095
|
end
|
638
1096
|
|
639
1097
|
class Fpx < Stripe::StripeObject
|
@@ -643,6 +1101,14 @@ module Stripe
|
|
643
1101
|
attr_reader :bank
|
644
1102
|
# Unique transaction id generated by FPX for every request from the merchant
|
645
1103
|
attr_reader :transaction_id
|
1104
|
+
|
1105
|
+
def self.inner_class_types
|
1106
|
+
@inner_class_types = {}
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
def self.field_remappings
|
1110
|
+
@field_remappings = {}
|
1111
|
+
end
|
646
1112
|
end
|
647
1113
|
|
648
1114
|
class Giropay < Stripe::StripeObject
|
@@ -656,11 +1122,27 @@ module Stripe
|
|
656
1122
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
657
1123
|
# Giropay rarely provides this information so the attribute is usually empty.
|
658
1124
|
attr_reader :verified_name
|
1125
|
+
|
1126
|
+
def self.inner_class_types
|
1127
|
+
@inner_class_types = {}
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
def self.field_remappings
|
1131
|
+
@field_remappings = {}
|
1132
|
+
end
|
659
1133
|
end
|
660
1134
|
|
661
1135
|
class Grabpay < Stripe::StripeObject
|
662
1136
|
# Unique transaction id generated by GrabPay
|
663
1137
|
attr_reader :transaction_id
|
1138
|
+
|
1139
|
+
def self.inner_class_types
|
1140
|
+
@inner_class_types = {}
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
def self.field_remappings
|
1144
|
+
@field_remappings = {}
|
1145
|
+
end
|
664
1146
|
end
|
665
1147
|
|
666
1148
|
class Ideal < Stripe::StripeObject
|
@@ -677,6 +1159,14 @@ module Stripe
|
|
677
1159
|
# Owner's verified full name. Values are verified or provided by iDEAL directly
|
678
1160
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
679
1161
|
attr_reader :verified_name
|
1162
|
+
|
1163
|
+
def self.inner_class_types
|
1164
|
+
@inner_class_types = {}
|
1165
|
+
end
|
1166
|
+
|
1167
|
+
def self.field_remappings
|
1168
|
+
@field_remappings = {}
|
1169
|
+
end
|
680
1170
|
end
|
681
1171
|
|
682
1172
|
class InteracPresent < Stripe::StripeObject
|
@@ -699,6 +1189,14 @@ module Stripe
|
|
699
1189
|
attr_reader :terminal_verification_results
|
700
1190
|
# An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
|
701
1191
|
attr_reader :transaction_status_information
|
1192
|
+
|
1193
|
+
def self.inner_class_types
|
1194
|
+
@inner_class_types = {}
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
def self.field_remappings
|
1198
|
+
@field_remappings = {}
|
1199
|
+
end
|
702
1200
|
end
|
703
1201
|
# Card brand. Can be `interac`, `mastercard` or `visa`.
|
704
1202
|
attr_reader :brand
|
@@ -738,6 +1236,14 @@ module Stripe
|
|
738
1236
|
attr_reader :read_method
|
739
1237
|
# A collection of fields required to be displayed on receipts. Only required for EMV transactions.
|
740
1238
|
attr_reader :receipt
|
1239
|
+
|
1240
|
+
def self.inner_class_types
|
1241
|
+
@inner_class_types = { receipt: Receipt }
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
def self.field_remappings
|
1245
|
+
@field_remappings = {}
|
1246
|
+
end
|
741
1247
|
end
|
742
1248
|
|
743
1249
|
class KakaoPay < Stripe::StripeObject
|
@@ -745,6 +1251,14 @@ module Stripe
|
|
745
1251
|
attr_reader :buyer_id
|
746
1252
|
# The Kakao Pay transaction ID associated with this payment.
|
747
1253
|
attr_reader :transaction_id
|
1254
|
+
|
1255
|
+
def self.inner_class_types
|
1256
|
+
@inner_class_types = {}
|
1257
|
+
end
|
1258
|
+
|
1259
|
+
def self.field_remappings
|
1260
|
+
@field_remappings = {}
|
1261
|
+
end
|
748
1262
|
end
|
749
1263
|
|
750
1264
|
class Klarna < Stripe::StripeObject
|
@@ -752,9 +1266,25 @@ module Stripe
|
|
752
1266
|
class Address < Stripe::StripeObject
|
753
1267
|
# The payer address country
|
754
1268
|
attr_reader :country
|
1269
|
+
|
1270
|
+
def self.inner_class_types
|
1271
|
+
@inner_class_types = {}
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
def self.field_remappings
|
1275
|
+
@field_remappings = {}
|
1276
|
+
end
|
755
1277
|
end
|
756
1278
|
# The payer's address
|
757
1279
|
attr_reader :address
|
1280
|
+
|
1281
|
+
def self.inner_class_types
|
1282
|
+
@inner_class_types = { address: Address }
|
1283
|
+
end
|
1284
|
+
|
1285
|
+
def self.field_remappings
|
1286
|
+
@field_remappings = {}
|
1287
|
+
end
|
758
1288
|
end
|
759
1289
|
# The payer details for this transaction.
|
760
1290
|
attr_reader :payer_details
|
@@ -764,15 +1294,39 @@ module Stripe
|
|
764
1294
|
# Preferred language of the Klarna authorization page that the customer is redirected to.
|
765
1295
|
# Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
|
766
1296
|
attr_reader :preferred_locale
|
1297
|
+
|
1298
|
+
def self.inner_class_types
|
1299
|
+
@inner_class_types = { payer_details: PayerDetails }
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
def self.field_remappings
|
1303
|
+
@field_remappings = {}
|
1304
|
+
end
|
767
1305
|
end
|
768
1306
|
|
769
1307
|
class Konbini < Stripe::StripeObject
|
770
1308
|
class Store < Stripe::StripeObject
|
771
1309
|
# The name of the convenience store chain where the payment was completed.
|
772
1310
|
attr_reader :chain
|
1311
|
+
|
1312
|
+
def self.inner_class_types
|
1313
|
+
@inner_class_types = {}
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
def self.field_remappings
|
1317
|
+
@field_remappings = {}
|
1318
|
+
end
|
773
1319
|
end
|
774
1320
|
# If the payment succeeded, this contains the details of the convenience store where the payment was completed.
|
775
1321
|
attr_reader :store
|
1322
|
+
|
1323
|
+
def self.inner_class_types
|
1324
|
+
@inner_class_types = { store: Store }
|
1325
|
+
end
|
1326
|
+
|
1327
|
+
def self.field_remappings
|
1328
|
+
@field_remappings = {}
|
1329
|
+
end
|
776
1330
|
end
|
777
1331
|
|
778
1332
|
class KrCard < Stripe::StripeObject
|
@@ -784,12 +1338,38 @@ module Stripe
|
|
784
1338
|
attr_reader :last4
|
785
1339
|
# The Korean Card transaction ID associated with this payment.
|
786
1340
|
attr_reader :transaction_id
|
1341
|
+
|
1342
|
+
def self.inner_class_types
|
1343
|
+
@inner_class_types = {}
|
1344
|
+
end
|
1345
|
+
|
1346
|
+
def self.field_remappings
|
1347
|
+
@field_remappings = {}
|
1348
|
+
end
|
787
1349
|
end
|
788
1350
|
|
789
1351
|
class Link < Stripe::StripeObject
|
790
1352
|
# Two-letter ISO code representing the funding source country beneath the Link payment.
|
791
1353
|
# You could use this attribute to get a sense of international fees.
|
792
1354
|
attr_reader :country
|
1355
|
+
|
1356
|
+
def self.inner_class_types
|
1357
|
+
@inner_class_types = {}
|
1358
|
+
end
|
1359
|
+
|
1360
|
+
def self.field_remappings
|
1361
|
+
@field_remappings = {}
|
1362
|
+
end
|
1363
|
+
end
|
1364
|
+
|
1365
|
+
class MbWay < Stripe::StripeObject
|
1366
|
+
def self.inner_class_types
|
1367
|
+
@inner_class_types = {}
|
1368
|
+
end
|
1369
|
+
|
1370
|
+
def self.field_remappings
|
1371
|
+
@field_remappings = {}
|
1372
|
+
end
|
793
1373
|
end
|
794
1374
|
|
795
1375
|
class Mobilepay < Stripe::StripeObject
|
@@ -804,9 +1384,25 @@ module Stripe
|
|
804
1384
|
attr_reader :exp_year
|
805
1385
|
# The last 4 digits of the card
|
806
1386
|
attr_reader :last4
|
1387
|
+
|
1388
|
+
def self.inner_class_types
|
1389
|
+
@inner_class_types = {}
|
1390
|
+
end
|
1391
|
+
|
1392
|
+
def self.field_remappings
|
1393
|
+
@field_remappings = {}
|
1394
|
+
end
|
807
1395
|
end
|
808
1396
|
# Internal card details
|
809
1397
|
attr_reader :card
|
1398
|
+
|
1399
|
+
def self.inner_class_types
|
1400
|
+
@inner_class_types = { card: Card }
|
1401
|
+
end
|
1402
|
+
|
1403
|
+
def self.field_remappings
|
1404
|
+
@field_remappings = {}
|
1405
|
+
end
|
810
1406
|
end
|
811
1407
|
|
812
1408
|
class Multibanco < Stripe::StripeObject
|
@@ -814,6 +1410,14 @@ module Stripe
|
|
814
1410
|
attr_reader :entity
|
815
1411
|
# Reference number associated with this Multibanco payment.
|
816
1412
|
attr_reader :reference
|
1413
|
+
|
1414
|
+
def self.inner_class_types
|
1415
|
+
@inner_class_types = {}
|
1416
|
+
end
|
1417
|
+
|
1418
|
+
def self.field_remappings
|
1419
|
+
@field_remappings = {}
|
1420
|
+
end
|
817
1421
|
end
|
818
1422
|
|
819
1423
|
class NaverPay < Stripe::StripeObject
|
@@ -821,6 +1425,14 @@ module Stripe
|
|
821
1425
|
attr_reader :buyer_id
|
822
1426
|
# The Naver Pay transaction ID associated with this payment.
|
823
1427
|
attr_reader :transaction_id
|
1428
|
+
|
1429
|
+
def self.inner_class_types
|
1430
|
+
@inner_class_types = {}
|
1431
|
+
end
|
1432
|
+
|
1433
|
+
def self.field_remappings
|
1434
|
+
@field_remappings = {}
|
1435
|
+
end
|
824
1436
|
end
|
825
1437
|
|
826
1438
|
class NzBankAccount < Stripe::StripeObject
|
@@ -836,11 +1448,27 @@ module Stripe
|
|
836
1448
|
attr_reader :last4
|
837
1449
|
# The suffix of the bank account number.
|
838
1450
|
attr_reader :suffix
|
1451
|
+
|
1452
|
+
def self.inner_class_types
|
1453
|
+
@inner_class_types = {}
|
1454
|
+
end
|
1455
|
+
|
1456
|
+
def self.field_remappings
|
1457
|
+
@field_remappings = {}
|
1458
|
+
end
|
839
1459
|
end
|
840
1460
|
|
841
1461
|
class Oxxo < Stripe::StripeObject
|
842
1462
|
# OXXO reference number
|
843
1463
|
attr_reader :number
|
1464
|
+
|
1465
|
+
def self.inner_class_types
|
1466
|
+
@inner_class_types = {}
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
def self.field_remappings
|
1470
|
+
@field_remappings = {}
|
1471
|
+
end
|
844
1472
|
end
|
845
1473
|
|
846
1474
|
class P24 < Stripe::StripeObject
|
@@ -852,15 +1480,39 @@ module Stripe
|
|
852
1480
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
853
1481
|
# Przelewy24 rarely provides this information so the attribute is usually empty.
|
854
1482
|
attr_reader :verified_name
|
1483
|
+
|
1484
|
+
def self.inner_class_types
|
1485
|
+
@inner_class_types = {}
|
1486
|
+
end
|
1487
|
+
|
1488
|
+
def self.field_remappings
|
1489
|
+
@field_remappings = {}
|
1490
|
+
end
|
855
1491
|
end
|
856
1492
|
|
857
|
-
class PayByBank < Stripe::StripeObject
|
1493
|
+
class PayByBank < Stripe::StripeObject
|
1494
|
+
def self.inner_class_types
|
1495
|
+
@inner_class_types = {}
|
1496
|
+
end
|
1497
|
+
|
1498
|
+
def self.field_remappings
|
1499
|
+
@field_remappings = {}
|
1500
|
+
end
|
1501
|
+
end
|
858
1502
|
|
859
1503
|
class Payco < Stripe::StripeObject
|
860
1504
|
# A unique identifier for the buyer as determined by the local payment processor.
|
861
1505
|
attr_reader :buyer_id
|
862
1506
|
# The Payco transaction ID associated with this payment.
|
863
1507
|
attr_reader :transaction_id
|
1508
|
+
|
1509
|
+
def self.inner_class_types
|
1510
|
+
@inner_class_types = {}
|
1511
|
+
end
|
1512
|
+
|
1513
|
+
def self.field_remappings
|
1514
|
+
@field_remappings = {}
|
1515
|
+
end
|
864
1516
|
end
|
865
1517
|
|
866
1518
|
class Paynow < Stripe::StripeObject
|
@@ -870,6 +1522,14 @@ module Stripe
|
|
870
1522
|
attr_reader :reader
|
871
1523
|
# Reference number associated with this PayNow payment
|
872
1524
|
attr_reader :reference
|
1525
|
+
|
1526
|
+
def self.inner_class_types
|
1527
|
+
@inner_class_types = {}
|
1528
|
+
end
|
1529
|
+
|
1530
|
+
def self.field_remappings
|
1531
|
+
@field_remappings = {}
|
1532
|
+
end
|
873
1533
|
end
|
874
1534
|
|
875
1535
|
class Paypal < Stripe::StripeObject
|
@@ -878,6 +1538,14 @@ module Stripe
|
|
878
1538
|
attr_reader :dispute_categories
|
879
1539
|
# Indicates whether the transaction is eligible for PayPal's seller protection.
|
880
1540
|
attr_reader :status
|
1541
|
+
|
1542
|
+
def self.inner_class_types
|
1543
|
+
@inner_class_types = {}
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
def self.field_remappings
|
1547
|
+
@field_remappings = {}
|
1548
|
+
end
|
881
1549
|
end
|
882
1550
|
# Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
883
1551
|
attr_reader :country
|
@@ -893,16 +1561,40 @@ module Stripe
|
|
893
1561
|
attr_reader :seller_protection
|
894
1562
|
# A unique ID generated by PayPal for this transaction.
|
895
1563
|
attr_reader :transaction_id
|
1564
|
+
|
1565
|
+
def self.inner_class_types
|
1566
|
+
@inner_class_types = { seller_protection: SellerProtection }
|
1567
|
+
end
|
1568
|
+
|
1569
|
+
def self.field_remappings
|
1570
|
+
@field_remappings = {}
|
1571
|
+
end
|
896
1572
|
end
|
897
1573
|
|
898
1574
|
class Pix < Stripe::StripeObject
|
899
1575
|
# Unique transaction id generated by BCB
|
900
1576
|
attr_reader :bank_transaction_id
|
1577
|
+
|
1578
|
+
def self.inner_class_types
|
1579
|
+
@inner_class_types = {}
|
1580
|
+
end
|
1581
|
+
|
1582
|
+
def self.field_remappings
|
1583
|
+
@field_remappings = {}
|
1584
|
+
end
|
901
1585
|
end
|
902
1586
|
|
903
1587
|
class Promptpay < Stripe::StripeObject
|
904
1588
|
# Bill reference generated by PromptPay
|
905
1589
|
attr_reader :reference
|
1590
|
+
|
1591
|
+
def self.inner_class_types
|
1592
|
+
@inner_class_types = {}
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
def self.field_remappings
|
1596
|
+
@field_remappings = {}
|
1597
|
+
end
|
906
1598
|
end
|
907
1599
|
|
908
1600
|
class RevolutPay < Stripe::StripeObject
|
@@ -920,16 +1612,40 @@ module Stripe
|
|
920
1612
|
attr_reader :funding
|
921
1613
|
# The last four digits of the card.
|
922
1614
|
attr_reader :last4
|
1615
|
+
|
1616
|
+
def self.inner_class_types
|
1617
|
+
@inner_class_types = {}
|
1618
|
+
end
|
1619
|
+
|
1620
|
+
def self.field_remappings
|
1621
|
+
@field_remappings = {}
|
1622
|
+
end
|
923
1623
|
end
|
924
1624
|
# Attribute for field card
|
925
1625
|
attr_reader :card
|
926
1626
|
# funding type of the underlying payment method.
|
927
1627
|
attr_reader :type
|
1628
|
+
|
1629
|
+
def self.inner_class_types
|
1630
|
+
@inner_class_types = { card: Card }
|
1631
|
+
end
|
1632
|
+
|
1633
|
+
def self.field_remappings
|
1634
|
+
@field_remappings = {}
|
1635
|
+
end
|
928
1636
|
end
|
929
1637
|
# Attribute for field funding
|
930
1638
|
attr_reader :funding
|
931
1639
|
# The Revolut Pay transaction ID associated with this payment.
|
932
1640
|
attr_reader :transaction_id
|
1641
|
+
|
1642
|
+
def self.inner_class_types
|
1643
|
+
@inner_class_types = { funding: Funding }
|
1644
|
+
end
|
1645
|
+
|
1646
|
+
def self.field_remappings
|
1647
|
+
@field_remappings = {}
|
1648
|
+
end
|
933
1649
|
end
|
934
1650
|
|
935
1651
|
class SamsungPay < Stripe::StripeObject
|
@@ -937,11 +1653,27 @@ module Stripe
|
|
937
1653
|
attr_reader :buyer_id
|
938
1654
|
# The Samsung Pay transaction ID associated with this payment.
|
939
1655
|
attr_reader :transaction_id
|
1656
|
+
|
1657
|
+
def self.inner_class_types
|
1658
|
+
@inner_class_types = {}
|
1659
|
+
end
|
1660
|
+
|
1661
|
+
def self.field_remappings
|
1662
|
+
@field_remappings = {}
|
1663
|
+
end
|
940
1664
|
end
|
941
1665
|
|
942
1666
|
class Satispay < Stripe::StripeObject
|
943
1667
|
# The Satispay transaction ID associated with this payment.
|
944
1668
|
attr_reader :transaction_id
|
1669
|
+
|
1670
|
+
def self.inner_class_types
|
1671
|
+
@inner_class_types = {}
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
def self.field_remappings
|
1675
|
+
@field_remappings = {}
|
1676
|
+
end
|
945
1677
|
end
|
946
1678
|
|
947
1679
|
class SepaCreditTransfer < Stripe::StripeObject
|
@@ -951,6 +1683,14 @@ module Stripe
|
|
951
1683
|
attr_reader :bic
|
952
1684
|
# IBAN of the bank account to transfer funds to.
|
953
1685
|
attr_reader :iban
|
1686
|
+
|
1687
|
+
def self.inner_class_types
|
1688
|
+
@inner_class_types = {}
|
1689
|
+
end
|
1690
|
+
|
1691
|
+
def self.field_remappings
|
1692
|
+
@field_remappings = {}
|
1693
|
+
end
|
954
1694
|
end
|
955
1695
|
|
956
1696
|
class SepaDebit < Stripe::StripeObject
|
@@ -966,6 +1706,14 @@ module Stripe
|
|
966
1706
|
attr_reader :last4
|
967
1707
|
# Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://stripe.com/docs/api/mandates/retrieve).
|
968
1708
|
attr_reader :mandate
|
1709
|
+
|
1710
|
+
def self.inner_class_types
|
1711
|
+
@inner_class_types = {}
|
1712
|
+
end
|
1713
|
+
|
1714
|
+
def self.field_remappings
|
1715
|
+
@field_remappings = {}
|
1716
|
+
end
|
969
1717
|
end
|
970
1718
|
|
971
1719
|
class Sofort < Stripe::StripeObject
|
@@ -989,9 +1737,25 @@ module Stripe
|
|
989
1737
|
# Owner's verified full name. Values are verified or provided by SOFORT directly
|
990
1738
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
991
1739
|
attr_reader :verified_name
|
1740
|
+
|
1741
|
+
def self.inner_class_types
|
1742
|
+
@inner_class_types = {}
|
1743
|
+
end
|
1744
|
+
|
1745
|
+
def self.field_remappings
|
1746
|
+
@field_remappings = {}
|
1747
|
+
end
|
992
1748
|
end
|
993
1749
|
|
994
|
-
class StripeAccount < Stripe::StripeObject
|
1750
|
+
class StripeAccount < Stripe::StripeObject
|
1751
|
+
def self.inner_class_types
|
1752
|
+
@inner_class_types = {}
|
1753
|
+
end
|
1754
|
+
|
1755
|
+
def self.field_remappings
|
1756
|
+
@field_remappings = {}
|
1757
|
+
end
|
1758
|
+
end
|
995
1759
|
|
996
1760
|
class Swish < Stripe::StripeObject
|
997
1761
|
# Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer
|
@@ -1000,9 +1764,25 @@ module Stripe
|
|
1000
1764
|
attr_reader :payment_reference
|
1001
1765
|
# The last four digits of the Swish account phone number
|
1002
1766
|
attr_reader :verified_phone_last4
|
1767
|
+
|
1768
|
+
def self.inner_class_types
|
1769
|
+
@inner_class_types = {}
|
1770
|
+
end
|
1771
|
+
|
1772
|
+
def self.field_remappings
|
1773
|
+
@field_remappings = {}
|
1774
|
+
end
|
1003
1775
|
end
|
1004
1776
|
|
1005
|
-
class Twint < Stripe::StripeObject
|
1777
|
+
class Twint < Stripe::StripeObject
|
1778
|
+
def self.inner_class_types
|
1779
|
+
@inner_class_types = {}
|
1780
|
+
end
|
1781
|
+
|
1782
|
+
def self.field_remappings
|
1783
|
+
@field_remappings = {}
|
1784
|
+
end
|
1785
|
+
end
|
1006
1786
|
|
1007
1787
|
class UsBankAccount < Stripe::StripeObject
|
1008
1788
|
# Account holder type: individual or company.
|
@@ -1021,9 +1801,25 @@ module Stripe
|
|
1021
1801
|
attr_reader :payment_reference
|
1022
1802
|
# Routing number of the bank account.
|
1023
1803
|
attr_reader :routing_number
|
1804
|
+
|
1805
|
+
def self.inner_class_types
|
1806
|
+
@inner_class_types = {}
|
1807
|
+
end
|
1808
|
+
|
1809
|
+
def self.field_remappings
|
1810
|
+
@field_remappings = {}
|
1811
|
+
end
|
1024
1812
|
end
|
1025
1813
|
|
1026
|
-
class Wechat < Stripe::StripeObject
|
1814
|
+
class Wechat < Stripe::StripeObject
|
1815
|
+
def self.inner_class_types
|
1816
|
+
@inner_class_types = {}
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
def self.field_remappings
|
1820
|
+
@field_remappings = {}
|
1821
|
+
end
|
1822
|
+
end
|
1027
1823
|
|
1028
1824
|
class WechatPay < Stripe::StripeObject
|
1029
1825
|
# Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
|
@@ -1034,9 +1830,25 @@ module Stripe
|
|
1034
1830
|
attr_reader :reader
|
1035
1831
|
# Transaction ID of this particular WeChat Pay transaction.
|
1036
1832
|
attr_reader :transaction_id
|
1833
|
+
|
1834
|
+
def self.inner_class_types
|
1835
|
+
@inner_class_types = {}
|
1836
|
+
end
|
1837
|
+
|
1838
|
+
def self.field_remappings
|
1839
|
+
@field_remappings = {}
|
1840
|
+
end
|
1037
1841
|
end
|
1038
1842
|
|
1039
|
-
class Zip < Stripe::StripeObject
|
1843
|
+
class Zip < Stripe::StripeObject
|
1844
|
+
def self.inner_class_types
|
1845
|
+
@inner_class_types = {}
|
1846
|
+
end
|
1847
|
+
|
1848
|
+
def self.field_remappings
|
1849
|
+
@field_remappings = {}
|
1850
|
+
end
|
1851
|
+
end
|
1040
1852
|
# Attribute for field ach_credit_transfer
|
1041
1853
|
attr_reader :ach_credit_transfer
|
1042
1854
|
# Attribute for field ach_debit
|
@@ -1097,6 +1909,8 @@ module Stripe
|
|
1097
1909
|
attr_reader :kr_card
|
1098
1910
|
# Attribute for field link
|
1099
1911
|
attr_reader :link
|
1912
|
+
# Attribute for field mb_way
|
1913
|
+
attr_reader :mb_way
|
1100
1914
|
# Attribute for field mobilepay
|
1101
1915
|
attr_reader :mobilepay
|
1102
1916
|
# Attribute for field multibanco
|
@@ -1151,6 +1965,71 @@ module Stripe
|
|
1151
1965
|
attr_reader :wechat_pay
|
1152
1966
|
# Attribute for field zip
|
1153
1967
|
attr_reader :zip
|
1968
|
+
|
1969
|
+
def self.inner_class_types
|
1970
|
+
@inner_class_types = {
|
1971
|
+
ach_credit_transfer: AchCreditTransfer,
|
1972
|
+
ach_debit: AchDebit,
|
1973
|
+
acss_debit: AcssDebit,
|
1974
|
+
affirm: Affirm,
|
1975
|
+
afterpay_clearpay: AfterpayClearpay,
|
1976
|
+
alipay: Alipay,
|
1977
|
+
alma: Alma,
|
1978
|
+
amazon_pay: AmazonPay,
|
1979
|
+
au_becs_debit: AuBecsDebit,
|
1980
|
+
bacs_debit: BacsDebit,
|
1981
|
+
bancontact: Bancontact,
|
1982
|
+
billie: Billie,
|
1983
|
+
blik: Blik,
|
1984
|
+
boleto: Boleto,
|
1985
|
+
card: Card,
|
1986
|
+
card_present: CardPresent,
|
1987
|
+
cashapp: Cashapp,
|
1988
|
+
crypto: Crypto,
|
1989
|
+
customer_balance: CustomerBalance,
|
1990
|
+
eps: Eps,
|
1991
|
+
fpx: Fpx,
|
1992
|
+
giropay: Giropay,
|
1993
|
+
grabpay: Grabpay,
|
1994
|
+
ideal: Ideal,
|
1995
|
+
interac_present: InteracPresent,
|
1996
|
+
kakao_pay: KakaoPay,
|
1997
|
+
klarna: Klarna,
|
1998
|
+
konbini: Konbini,
|
1999
|
+
kr_card: KrCard,
|
2000
|
+
link: Link,
|
2001
|
+
mb_way: MbWay,
|
2002
|
+
mobilepay: Mobilepay,
|
2003
|
+
multibanco: Multibanco,
|
2004
|
+
naver_pay: NaverPay,
|
2005
|
+
nz_bank_account: NzBankAccount,
|
2006
|
+
oxxo: Oxxo,
|
2007
|
+
p24: P24,
|
2008
|
+
pay_by_bank: PayByBank,
|
2009
|
+
payco: Payco,
|
2010
|
+
paynow: Paynow,
|
2011
|
+
paypal: Paypal,
|
2012
|
+
pix: Pix,
|
2013
|
+
promptpay: Promptpay,
|
2014
|
+
revolut_pay: RevolutPay,
|
2015
|
+
samsung_pay: SamsungPay,
|
2016
|
+
satispay: Satispay,
|
2017
|
+
sepa_credit_transfer: SepaCreditTransfer,
|
2018
|
+
sepa_debit: SepaDebit,
|
2019
|
+
sofort: Sofort,
|
2020
|
+
stripe_account: StripeAccount,
|
2021
|
+
swish: Swish,
|
2022
|
+
twint: Twint,
|
2023
|
+
us_bank_account: UsBankAccount,
|
2024
|
+
wechat: Wechat,
|
2025
|
+
wechat_pay: WechatPay,
|
2026
|
+
zip: Zip,
|
2027
|
+
}
|
2028
|
+
end
|
2029
|
+
|
2030
|
+
def self.field_remappings
|
2031
|
+
@field_remappings = {}
|
2032
|
+
end
|
1154
2033
|
end
|
1155
2034
|
|
1156
2035
|
class PresentmentDetails < Stripe::StripeObject
|
@@ -1158,11 +2037,27 @@ module Stripe
|
|
1158
2037
|
attr_reader :presentment_amount
|
1159
2038
|
# Currency presented to the customer during payment.
|
1160
2039
|
attr_reader :presentment_currency
|
2040
|
+
|
2041
|
+
def self.inner_class_types
|
2042
|
+
@inner_class_types = {}
|
2043
|
+
end
|
2044
|
+
|
2045
|
+
def self.field_remappings
|
2046
|
+
@field_remappings = {}
|
2047
|
+
end
|
1161
2048
|
end
|
1162
2049
|
|
1163
2050
|
class RadarOptions < Stripe::StripeObject
|
1164
2051
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
1165
2052
|
attr_reader :session
|
2053
|
+
|
2054
|
+
def self.inner_class_types
|
2055
|
+
@inner_class_types = {}
|
2056
|
+
end
|
2057
|
+
|
2058
|
+
def self.field_remappings
|
2059
|
+
@field_remappings = {}
|
2060
|
+
end
|
1166
2061
|
end
|
1167
2062
|
|
1168
2063
|
class Shipping < Stripe::StripeObject
|
@@ -1171,14 +2066,22 @@ module Stripe
|
|
1171
2066
|
attr_reader :city
|
1172
2067
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1173
2068
|
attr_reader :country
|
1174
|
-
# Address line 1
|
2069
|
+
# Address line 1, such as the street, PO Box, or company name.
|
1175
2070
|
attr_reader :line1
|
1176
|
-
# Address line 2
|
2071
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
1177
2072
|
attr_reader :line2
|
1178
2073
|
# ZIP or postal code.
|
1179
2074
|
attr_reader :postal_code
|
1180
2075
|
# State, county, province, or region.
|
1181
2076
|
attr_reader :state
|
2077
|
+
|
2078
|
+
def self.inner_class_types
|
2079
|
+
@inner_class_types = {}
|
2080
|
+
end
|
2081
|
+
|
2082
|
+
def self.field_remappings
|
2083
|
+
@field_remappings = {}
|
2084
|
+
end
|
1182
2085
|
end
|
1183
2086
|
# Attribute for field address
|
1184
2087
|
attr_reader :address
|
@@ -1190,6 +2093,14 @@ module Stripe
|
|
1190
2093
|
attr_reader :phone
|
1191
2094
|
# 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.
|
1192
2095
|
attr_reader :tracking_number
|
2096
|
+
|
2097
|
+
def self.inner_class_types
|
2098
|
+
@inner_class_types = { address: Address }
|
2099
|
+
end
|
2100
|
+
|
2101
|
+
def self.field_remappings
|
2102
|
+
@field_remappings = {}
|
2103
|
+
end
|
1193
2104
|
end
|
1194
2105
|
|
1195
2106
|
class TransferData < Stripe::StripeObject
|
@@ -1197,398 +2108,13 @@ module Stripe
|
|
1197
2108
|
attr_reader :amount
|
1198
2109
|
# ID of an existing, connected Stripe account to transfer funds to if `transfer_data` was specified in the charge request.
|
1199
2110
|
attr_reader :destination
|
1200
|
-
end
|
1201
|
-
|
1202
|
-
class ListParams < Stripe::RequestParams
|
1203
|
-
class Created < Stripe::RequestParams
|
1204
|
-
# Minimum value to filter by (exclusive)
|
1205
|
-
attr_accessor :gt
|
1206
|
-
# Minimum value to filter by (inclusive)
|
1207
|
-
attr_accessor :gte
|
1208
|
-
# Maximum value to filter by (exclusive)
|
1209
|
-
attr_accessor :lt
|
1210
|
-
# Maximum value to filter by (inclusive)
|
1211
|
-
attr_accessor :lte
|
1212
|
-
|
1213
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
1214
|
-
@gt = gt
|
1215
|
-
@gte = gte
|
1216
|
-
@lt = lt
|
1217
|
-
@lte = lte
|
1218
|
-
end
|
1219
|
-
end
|
1220
|
-
# Only return charges that were created during the given date interval.
|
1221
|
-
attr_accessor :created
|
1222
|
-
# Only return charges for the customer specified by this customer ID.
|
1223
|
-
attr_accessor :customer
|
1224
|
-
# 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.
|
1225
|
-
attr_accessor :ending_before
|
1226
|
-
# Specifies which fields in the response should be expanded.
|
1227
|
-
attr_accessor :expand
|
1228
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
1229
|
-
attr_accessor :limit
|
1230
|
-
# Only return charges that were created by the PaymentIntent specified by this PaymentIntent ID.
|
1231
|
-
attr_accessor :payment_intent
|
1232
|
-
# 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.
|
1233
|
-
attr_accessor :starting_after
|
1234
|
-
# Only return charges for this transfer group, limited to 100.
|
1235
|
-
attr_accessor :transfer_group
|
1236
|
-
|
1237
|
-
def initialize(
|
1238
|
-
created: nil,
|
1239
|
-
customer: nil,
|
1240
|
-
ending_before: nil,
|
1241
|
-
expand: nil,
|
1242
|
-
limit: nil,
|
1243
|
-
payment_intent: nil,
|
1244
|
-
starting_after: nil,
|
1245
|
-
transfer_group: nil
|
1246
|
-
)
|
1247
|
-
@created = created
|
1248
|
-
@customer = customer
|
1249
|
-
@ending_before = ending_before
|
1250
|
-
@expand = expand
|
1251
|
-
@limit = limit
|
1252
|
-
@payment_intent = payment_intent
|
1253
|
-
@starting_after = starting_after
|
1254
|
-
@transfer_group = transfer_group
|
1255
|
-
end
|
1256
|
-
end
|
1257
|
-
|
1258
|
-
class CreateParams < Stripe::RequestParams
|
1259
|
-
class Destination < Stripe::RequestParams
|
1260
|
-
# ID of an existing, connected Stripe account.
|
1261
|
-
attr_accessor :account
|
1262
|
-
# The amount to transfer to the destination account without creating an `Application Fee` object. Cannot be combined with the `application_fee` parameter. Must be less than or equal to the charge amount.
|
1263
|
-
attr_accessor :amount
|
1264
|
-
|
1265
|
-
def initialize(account: nil, amount: nil)
|
1266
|
-
@account = account
|
1267
|
-
@amount = amount
|
1268
|
-
end
|
1269
|
-
end
|
1270
|
-
|
1271
|
-
class RadarOptions < Stripe::RequestParams
|
1272
|
-
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
1273
|
-
attr_accessor :session
|
1274
|
-
|
1275
|
-
def initialize(session: nil)
|
1276
|
-
@session = session
|
1277
|
-
end
|
1278
|
-
end
|
1279
|
-
|
1280
|
-
class Shipping < Stripe::RequestParams
|
1281
|
-
class Address < Stripe::RequestParams
|
1282
|
-
# City, district, suburb, town, or village.
|
1283
|
-
attr_accessor :city
|
1284
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1285
|
-
attr_accessor :country
|
1286
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
1287
|
-
attr_accessor :line1
|
1288
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1289
|
-
attr_accessor :line2
|
1290
|
-
# ZIP or postal code.
|
1291
|
-
attr_accessor :postal_code
|
1292
|
-
# State, county, province, or region.
|
1293
|
-
attr_accessor :state
|
1294
|
-
|
1295
|
-
def initialize(
|
1296
|
-
city: nil,
|
1297
|
-
country: nil,
|
1298
|
-
line1: nil,
|
1299
|
-
line2: nil,
|
1300
|
-
postal_code: nil,
|
1301
|
-
state: nil
|
1302
|
-
)
|
1303
|
-
@city = city
|
1304
|
-
@country = country
|
1305
|
-
@line1 = line1
|
1306
|
-
@line2 = line2
|
1307
|
-
@postal_code = postal_code
|
1308
|
-
@state = state
|
1309
|
-
end
|
1310
|
-
end
|
1311
|
-
# Shipping address.
|
1312
|
-
attr_accessor :address
|
1313
|
-
# The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
|
1314
|
-
attr_accessor :carrier
|
1315
|
-
# Recipient name.
|
1316
|
-
attr_accessor :name
|
1317
|
-
# Recipient phone (including extension).
|
1318
|
-
attr_accessor :phone
|
1319
|
-
# 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.
|
1320
|
-
attr_accessor :tracking_number
|
1321
|
-
|
1322
|
-
def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil)
|
1323
|
-
@address = address
|
1324
|
-
@carrier = carrier
|
1325
|
-
@name = name
|
1326
|
-
@phone = phone
|
1327
|
-
@tracking_number = tracking_number
|
1328
|
-
end
|
1329
|
-
end
|
1330
|
-
|
1331
|
-
class TransferData < Stripe::RequestParams
|
1332
|
-
# The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
|
1333
|
-
attr_accessor :amount
|
1334
|
-
# ID of an existing, connected Stripe account.
|
1335
|
-
attr_accessor :destination
|
1336
|
-
|
1337
|
-
def initialize(amount: nil, destination: nil)
|
1338
|
-
@amount = amount
|
1339
|
-
@destination = destination
|
1340
|
-
end
|
1341
|
-
end
|
1342
|
-
# Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
1343
|
-
attr_accessor :amount
|
1344
|
-
# Attribute for param field application_fee
|
1345
|
-
attr_accessor :application_fee
|
1346
|
-
# A fee in cents (or local equivalent) that will be applied to the charge and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the `Stripe-Account` header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/direct-charges#collect-fees).
|
1347
|
-
attr_accessor :application_fee_amount
|
1348
|
-
# Whether to immediately capture the charge. Defaults to `true`. When `false`, the charge issues an authorization (or pre-authorization), and will need to be [captured](https://stripe.com/docs/api#capture_charge) later. Uncaptured charges expire after a set number of days (7 by default). For more information, see the [authorizing charges and settling later](https://stripe.com/docs/charges/placing-a-hold) documentation.
|
1349
|
-
attr_accessor :capture
|
1350
|
-
# 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).
|
1351
|
-
attr_accessor :currency
|
1352
|
-
# The ID of an existing customer that will be charged in this request.
|
1353
|
-
attr_accessor :customer
|
1354
|
-
# An arbitrary string which you can attach to a `Charge` object. It is displayed when in the web interface alongside the charge. Note that if you use Stripe to send automatic email receipts to your customers, your receipt emails will include the `description` of the charge(s) that they are describing.
|
1355
|
-
attr_accessor :description
|
1356
|
-
# Attribute for param field destination
|
1357
|
-
attr_accessor :destination
|
1358
|
-
# Specifies which fields in the response should be expanded.
|
1359
|
-
attr_accessor :expand
|
1360
|
-
# 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`.
|
1361
|
-
attr_accessor :metadata
|
1362
|
-
# The Stripe account ID for which these funds are intended. Automatically set if you use the `destination` parameter. For details, see [Creating Separate Charges and Transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant).
|
1363
|
-
attr_accessor :on_behalf_of
|
1364
|
-
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1365
|
-
attr_accessor :radar_options
|
1366
|
-
# The email address to which this charge's [receipt](https://stripe.com/docs/dashboard/receipts) will be sent. The receipt will not be sent until the charge is paid, and no receipts will be sent for test mode charges. If this charge is for a [Customer](https://stripe.com/docs/api/customers/object), the email address specified here will override the customer's email address. If `receipt_email` is specified for a charge in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
1367
|
-
attr_accessor :receipt_email
|
1368
|
-
# Shipping information for the charge. Helps prevent fraud on charges for physical goods.
|
1369
|
-
attr_accessor :shipping
|
1370
|
-
# A payment source to be charged. This can be the ID of a [card](https://stripe.com/docs/api#cards) (i.e., credit or debit card), a [bank account](https://stripe.com/docs/api#bank_accounts), a [source](https://stripe.com/docs/api#sources), a [token](https://stripe.com/docs/api#tokens), or a [connected account](https://stripe.com/docs/connect/account-debits#charging-a-connected-account). For certain sources---namely, [cards](https://stripe.com/docs/api#cards), [bank accounts](https://stripe.com/docs/api#bank_accounts), and attached [sources](https://stripe.com/docs/api#sources)---you must also pass the ID of the associated customer.
|
1371
|
-
attr_accessor :source
|
1372
|
-
# For a non-card charge, text that appears on the customer's statement as the statement descriptor. 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).
|
1373
|
-
#
|
1374
|
-
# For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
|
1375
|
-
attr_accessor :statement_descriptor
|
1376
|
-
# 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. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
|
1377
|
-
attr_accessor :statement_descriptor_suffix
|
1378
|
-
# An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
|
1379
|
-
attr_accessor :transfer_data
|
1380
|
-
# A string that identifies this transaction as part of a group. For details, see [Grouping transactions](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options).
|
1381
|
-
attr_accessor :transfer_group
|
1382
|
-
|
1383
|
-
def initialize(
|
1384
|
-
amount: nil,
|
1385
|
-
application_fee: nil,
|
1386
|
-
application_fee_amount: nil,
|
1387
|
-
capture: nil,
|
1388
|
-
currency: nil,
|
1389
|
-
customer: nil,
|
1390
|
-
description: nil,
|
1391
|
-
destination: nil,
|
1392
|
-
expand: nil,
|
1393
|
-
metadata: nil,
|
1394
|
-
on_behalf_of: nil,
|
1395
|
-
radar_options: nil,
|
1396
|
-
receipt_email: nil,
|
1397
|
-
shipping: nil,
|
1398
|
-
source: nil,
|
1399
|
-
statement_descriptor: nil,
|
1400
|
-
statement_descriptor_suffix: nil,
|
1401
|
-
transfer_data: nil,
|
1402
|
-
transfer_group: nil
|
1403
|
-
)
|
1404
|
-
@amount = amount
|
1405
|
-
@application_fee = application_fee
|
1406
|
-
@application_fee_amount = application_fee_amount
|
1407
|
-
@capture = capture
|
1408
|
-
@currency = currency
|
1409
|
-
@customer = customer
|
1410
|
-
@description = description
|
1411
|
-
@destination = destination
|
1412
|
-
@expand = expand
|
1413
|
-
@metadata = metadata
|
1414
|
-
@on_behalf_of = on_behalf_of
|
1415
|
-
@radar_options = radar_options
|
1416
|
-
@receipt_email = receipt_email
|
1417
|
-
@shipping = shipping
|
1418
|
-
@source = source
|
1419
|
-
@statement_descriptor = statement_descriptor
|
1420
|
-
@statement_descriptor_suffix = statement_descriptor_suffix
|
1421
|
-
@transfer_data = transfer_data
|
1422
|
-
@transfer_group = transfer_group
|
1423
|
-
end
|
1424
|
-
end
|
1425
2111
|
|
1426
|
-
|
1427
|
-
|
1428
|
-
# Either `safe` or `fraudulent`.
|
1429
|
-
attr_accessor :user_report
|
1430
|
-
|
1431
|
-
def initialize(user_report: nil)
|
1432
|
-
@user_report = user_report
|
1433
|
-
end
|
1434
|
-
end
|
1435
|
-
|
1436
|
-
class Shipping < Stripe::RequestParams
|
1437
|
-
class Address < Stripe::RequestParams
|
1438
|
-
# City, district, suburb, town, or village.
|
1439
|
-
attr_accessor :city
|
1440
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1441
|
-
attr_accessor :country
|
1442
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
1443
|
-
attr_accessor :line1
|
1444
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1445
|
-
attr_accessor :line2
|
1446
|
-
# ZIP or postal code.
|
1447
|
-
attr_accessor :postal_code
|
1448
|
-
# State, county, province, or region.
|
1449
|
-
attr_accessor :state
|
1450
|
-
|
1451
|
-
def initialize(
|
1452
|
-
city: nil,
|
1453
|
-
country: nil,
|
1454
|
-
line1: nil,
|
1455
|
-
line2: nil,
|
1456
|
-
postal_code: nil,
|
1457
|
-
state: nil
|
1458
|
-
)
|
1459
|
-
@city = city
|
1460
|
-
@country = country
|
1461
|
-
@line1 = line1
|
1462
|
-
@line2 = line2
|
1463
|
-
@postal_code = postal_code
|
1464
|
-
@state = state
|
1465
|
-
end
|
1466
|
-
end
|
1467
|
-
# Shipping address.
|
1468
|
-
attr_accessor :address
|
1469
|
-
# The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
|
1470
|
-
attr_accessor :carrier
|
1471
|
-
# Recipient name.
|
1472
|
-
attr_accessor :name
|
1473
|
-
# Recipient phone (including extension).
|
1474
|
-
attr_accessor :phone
|
1475
|
-
# 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.
|
1476
|
-
attr_accessor :tracking_number
|
1477
|
-
|
1478
|
-
def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil)
|
1479
|
-
@address = address
|
1480
|
-
@carrier = carrier
|
1481
|
-
@name = name
|
1482
|
-
@phone = phone
|
1483
|
-
@tracking_number = tracking_number
|
1484
|
-
end
|
1485
|
-
end
|
1486
|
-
# The ID of an existing customer that will be associated with this request. This field may only be updated if there is no existing associated customer with this charge.
|
1487
|
-
attr_accessor :customer
|
1488
|
-
# An arbitrary string which you can attach to a charge object. It is displayed when in the web interface alongside the charge. Note that if you use Stripe to send automatic email receipts to your customers, your receipt emails will include the `description` of the charge(s) that they are describing.
|
1489
|
-
attr_accessor :description
|
1490
|
-
# Specifies which fields in the response should be expanded.
|
1491
|
-
attr_accessor :expand
|
1492
|
-
# A set of key-value pairs you can attach to a charge giving information about its riskiness. If you believe a charge is fraudulent, include a `user_report` key with a value of `fraudulent`. If you believe a charge is safe, include a `user_report` key with a value of `safe`. Stripe will use the information you send to improve our fraud detection algorithms.
|
1493
|
-
attr_accessor :fraud_details
|
1494
|
-
# 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`.
|
1495
|
-
attr_accessor :metadata
|
1496
|
-
# This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.
|
1497
|
-
attr_accessor :receipt_email
|
1498
|
-
# Shipping information for the charge. Helps prevent fraud on charges for physical goods.
|
1499
|
-
attr_accessor :shipping
|
1500
|
-
# A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
|
1501
|
-
attr_accessor :transfer_group
|
1502
|
-
|
1503
|
-
def initialize(
|
1504
|
-
customer: nil,
|
1505
|
-
description: nil,
|
1506
|
-
expand: nil,
|
1507
|
-
fraud_details: nil,
|
1508
|
-
metadata: nil,
|
1509
|
-
receipt_email: nil,
|
1510
|
-
shipping: nil,
|
1511
|
-
transfer_group: nil
|
1512
|
-
)
|
1513
|
-
@customer = customer
|
1514
|
-
@description = description
|
1515
|
-
@expand = expand
|
1516
|
-
@fraud_details = fraud_details
|
1517
|
-
@metadata = metadata
|
1518
|
-
@receipt_email = receipt_email
|
1519
|
-
@shipping = shipping
|
1520
|
-
@transfer_group = transfer_group
|
2112
|
+
def self.inner_class_types
|
2113
|
+
@inner_class_types = {}
|
1521
2114
|
end
|
1522
|
-
end
|
1523
2115
|
|
1524
|
-
|
1525
|
-
|
1526
|
-
attr_accessor :expand
|
1527
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
1528
|
-
attr_accessor :limit
|
1529
|
-
# A cursor for pagination across multiple pages of results. Don't include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.
|
1530
|
-
attr_accessor :page
|
1531
|
-
# The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for charges](https://stripe.com/docs/search#query-fields-for-charges).
|
1532
|
-
attr_accessor :query
|
1533
|
-
|
1534
|
-
def initialize(expand: nil, limit: nil, page: nil, query: nil)
|
1535
|
-
@expand = expand
|
1536
|
-
@limit = limit
|
1537
|
-
@page = page
|
1538
|
-
@query = query
|
1539
|
-
end
|
1540
|
-
end
|
1541
|
-
|
1542
|
-
class CaptureParams < Stripe::RequestParams
|
1543
|
-
class TransferData < Stripe::RequestParams
|
1544
|
-
# The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
|
1545
|
-
attr_accessor :amount
|
1546
|
-
|
1547
|
-
def initialize(amount: nil)
|
1548
|
-
@amount = amount
|
1549
|
-
end
|
1550
|
-
end
|
1551
|
-
# The amount to capture, which must be less than or equal to the original amount.
|
1552
|
-
attr_accessor :amount
|
1553
|
-
# An application fee to add on to this charge.
|
1554
|
-
attr_accessor :application_fee
|
1555
|
-
# An application fee amount to add on to this charge, which must be less than or equal to the original amount.
|
1556
|
-
attr_accessor :application_fee_amount
|
1557
|
-
# Specifies which fields in the response should be expanded.
|
1558
|
-
attr_accessor :expand
|
1559
|
-
# The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode.
|
1560
|
-
attr_accessor :receipt_email
|
1561
|
-
# For a non-card charge, text that appears on the customer's statement as the statement descriptor. 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).
|
1562
|
-
#
|
1563
|
-
# For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
|
1564
|
-
attr_accessor :statement_descriptor
|
1565
|
-
# 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. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
|
1566
|
-
attr_accessor :statement_descriptor_suffix
|
1567
|
-
# An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
|
1568
|
-
attr_accessor :transfer_data
|
1569
|
-
# A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
|
1570
|
-
attr_accessor :transfer_group
|
1571
|
-
|
1572
|
-
def initialize(
|
1573
|
-
amount: nil,
|
1574
|
-
application_fee: nil,
|
1575
|
-
application_fee_amount: nil,
|
1576
|
-
expand: nil,
|
1577
|
-
receipt_email: nil,
|
1578
|
-
statement_descriptor: nil,
|
1579
|
-
statement_descriptor_suffix: nil,
|
1580
|
-
transfer_data: nil,
|
1581
|
-
transfer_group: nil
|
1582
|
-
)
|
1583
|
-
@amount = amount
|
1584
|
-
@application_fee = application_fee
|
1585
|
-
@application_fee_amount = application_fee_amount
|
1586
|
-
@expand = expand
|
1587
|
-
@receipt_email = receipt_email
|
1588
|
-
@statement_descriptor = statement_descriptor
|
1589
|
-
@statement_descriptor_suffix = statement_descriptor_suffix
|
1590
|
-
@transfer_data = transfer_data
|
1591
|
-
@transfer_group = transfer_group
|
2116
|
+
def self.field_remappings
|
2117
|
+
@field_remappings = {}
|
1592
2118
|
end
|
1593
2119
|
end
|
1594
2120
|
# Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
@@ -1747,5 +2273,23 @@ module Stripe
|
|
1747
2273
|
opts: opts
|
1748
2274
|
)
|
1749
2275
|
end
|
2276
|
+
|
2277
|
+
def self.inner_class_types
|
2278
|
+
@inner_class_types = {
|
2279
|
+
billing_details: BillingDetails,
|
2280
|
+
fraud_details: FraudDetails,
|
2281
|
+
level3: Level3,
|
2282
|
+
outcome: Outcome,
|
2283
|
+
payment_method_details: PaymentMethodDetails,
|
2284
|
+
presentment_details: PresentmentDetails,
|
2285
|
+
radar_options: RadarOptions,
|
2286
|
+
shipping: Shipping,
|
2287
|
+
transfer_data: TransferData,
|
2288
|
+
}
|
2289
|
+
end
|
2290
|
+
|
2291
|
+
def self.field_remappings
|
2292
|
+
@field_remappings = {}
|
2293
|
+
end
|
1750
2294
|
end
|
1751
2295
|
end
|