stripe 15.6.0.pre.beta.1 → 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 -34
- data/lib/stripe/api_resource.rb +3 -0
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/errors.rb +0 -60
- data/lib/stripe/event_types.rb +20 -108
- 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 +2 -54
- 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/{services/quote_line_service.rb → params/apps/secret_list_params.rb} +17 -14
- 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/{services/quote_preview_subscription_schedule_service.rb → params/checkout/session_line_item_list_params.rb} +2 -13
- data/lib/stripe/{services/order_line_item_service.rb → params/checkout/session_list_line_items_params.rb} +2 -13
- 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/{services/quote_preview_invoice_service.rb → params/tax/calculation_list_line_items_params.rb} +2 -13
- 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/{services/payment_intent_amount_details_line_item_service.rb → params/tax/transaction_list_line_items_params.rb} +2 -13
- 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 +437 -4906
- data/lib/stripe/resources/account_link.rb +8 -47
- data/lib/stripe/resources/account_session.rb +338 -910
- 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 +40 -60
- 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 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +73 -33
- data/lib/stripe/resources/billing/credit_grant.rb +42 -161
- 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 -176
- data/lib/stripe/resources/capability.rb +56 -0
- data/lib/stripe/resources/card.rb +17 -3
- data/lib/stripe/resources/cash_balance.rb +16 -2
- data/lib/stripe/resources/charge.rb +949 -1945
- data/lib/stripe/resources/checkout/session.rb +1038 -2991
- 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 +883 -841
- 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 -166
- data/lib/stripe/resources/credit_note.rb +66 -510
- data/lib/stripe/resources/credit_note_line_item.rb +43 -8
- data/lib/stripe/resources/customer.rb +81 -677
- data/lib/stripe/resources/customer_balance_transaction.rb +8 -2
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -2
- data/lib/stripe/resources/customer_session.rb +49 -98
- data/lib/stripe/resources/discount.rb +24 -6
- data/lib/stripe/resources/dispute.rb +159 -376
- 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 +16 -79
- 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 +65 -130
- 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 -115
- 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 -247
- data/lib/stripe/resources/invoice.rb +500 -4017
- data/lib/stripe/resources/invoice_item.rb +69 -385
- data/lib/stripe/resources/invoice_line_item.rb +124 -251
- data/lib/stripe/resources/invoice_payment.rb +20 -47
- 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 -515
- 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 -702
- data/lib/stripe/resources/line_item.rb +22 -35
- data/lib/stripe/resources/login_link.rb +8 -0
- data/lib/stripe/resources/mandate.rb +219 -94
- data/lib/stripe/resources/payment_intent.rb +1241 -13361
- data/lib/stripe/resources/payment_link.rb +333 -1357
- data/lib/stripe/resources/payment_method.rb +796 -966
- data/lib/stripe/resources/payment_method_configuration.rb +862 -2528
- 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 +65 -509
- 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 -182
- data/lib/stripe/resources/quote.rb +280 -2743
- 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 +365 -159
- 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 +284 -87
- data/lib/stripe/resources/setup_intent.rb +358 -4143
- 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 +267 -611
- 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 +266 -1931
- data/lib/stripe/resources/subscription_item.rb +12 -379
- data/lib/stripe/resources/subscription_schedule.rb +230 -2273
- 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 -75
- data/lib/stripe/resources/tax_rate.rb +12 -142
- data/lib/stripe/resources/terminal/configuration.rb +301 -1205
- 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 -509
- 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 -115
- 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 -658
- data/lib/stripe/resources/treasury/financial_account_features.rb +192 -2
- 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 +93 -235
- data/lib/stripe/resources/treasury/received_credit.rb +76 -136
- data/lib/stripe/resources/treasury/received_debit.rb +68 -126
- 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 +3 -110
- 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 -4710
- data/lib/stripe/services/account_session_service.rb +0 -862
- 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 +0 -69
- 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 -51
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -44
- data/lib/stripe/services/billing/credit_grant_service.rb +0 -174
- 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 -177
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/charge_service.rb +0 -1820
- data/lib/stripe/services/checkout/session_line_item_service.rb +0 -18
- data/lib/stripe/services/checkout/session_service.rb +0 -2882
- 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 -167
- 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 -369
- 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 -99
- 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 +1 -102
- data/lib/stripe/services/financial_connections/session_service.rb +0 -100
- data/lib/stripe/services/financial_connections/transaction_service.rb +0 -70
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- 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 -255
- data/lib/stripe/services/invoice_item_service.rb +0 -405
- data/lib/stripe/services/invoice_line_item_service.rb +0 -253
- data/lib/stripe/services/invoice_payment_service.rb +0 -58
- data/lib/stripe/services/invoice_rendering_template_service.rb +0 -51
- data/lib/stripe/services/invoice_service.rb +0 -3836
- 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 -526
- 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 -81
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -49
- data/lib/stripe/services/payment_intent_service.rb +0 -12747
- 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 -2466
- data/lib/stripe/services/payment_method_domain_service.rb +0 -76
- data/lib/stripe/services/payment_method_service.rb +0 -881
- 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 -512
- 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 -187
- 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 +1 -2344
- 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 -3957
- 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 -383
- data/lib/stripe/services/subscription_schedule_service.rb +0 -2196
- data/lib/stripe/services/subscription_service.rb +0 -1894
- 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 -84
- data/lib/stripe/services/tax_rate_service.rb +0 -155
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/configuration_service.rb +0 -1212
- 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/terminal_service.rb +1 -3
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +0 -738
- 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 -84
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +0 -84
- 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 -123
- 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 -169
- data/lib/stripe/services/treasury/financial_account_service.rb +0 -502
- 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 -148
- 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 +1 -10
- 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/v2/core_service.rb +1 -4
- data/lib/stripe/services/v2_services.rb +1 -4
- data/lib/stripe/services/webhook_endpoint_service.rb +0 -95
- data/lib/stripe/services.rb +0 -54
- data/lib/stripe/stripe_client.rb +8 -5
- data/lib/stripe/stripe_configuration.rb +2 -9
- data/lib/stripe/stripe_context.rb +68 -0
- data/lib/stripe/stripe_object.rb +34 -10
- data/lib/stripe/util.rb +25 -20
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +3 -54
- data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
- data/rbi/stripe/stripe_client.rbi +17 -0
- data/rbi/stripe.rbi +121931 -190301
- metadata +599 -189
- data/API_VERSION +0 -1
- data/CHANGELOG.md +0 -2780
- 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 -424
- 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/events/v2_core_account_closed_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_created_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -13
- data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -22
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -21
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -21
- data/lib/stripe/resources/account_notice.rb +0 -123
- data/lib/stripe/resources/billing/meter_usage.rb +0 -23
- data/lib/stripe/resources/billing/meter_usage_row.rb +0 -28
- data/lib/stripe/resources/capital/financing_offer.rb +0 -179
- data/lib/stripe/resources/capital/financing_summary.rb +0 -55
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -114
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -92
- data/lib/stripe/resources/fx_quote.rb +0 -186
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -602
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -82
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -86
- data/lib/stripe/resources/issuing/settlement.rb +0 -53
- data/lib/stripe/resources/margin.rb +0 -115
- data/lib/stripe/resources/order.rb +0 -2958
- data/lib/stripe/resources/payment_attempt_record.rb +0 -1181
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -72
- data/lib/stripe/resources/payment_record.rb +0 -1727
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -298
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -33
- data/lib/stripe/resources/quote_line.rb +0 -274
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -680
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -395
- data/lib/stripe/resources/tax/association.rb +0 -66
- data/lib/stripe/resources/tax/form.rb +0 -211
- data/lib/stripe/resources/terminal/onboarding_link.rb +0 -84
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -31
- data/lib/stripe/resources/v2/core/account.rb +0 -1938
- data/lib/stripe/resources/v2/core/account_link.rb +0 -72
- data/lib/stripe/resources/v2/core/person.rb +0 -276
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -74
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -39
- data/lib/stripe/resources/v2/event.rb +0 -41
- data/lib/stripe/resources/v2/event_destination.rb +0 -73
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -20
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -22
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -51
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -79
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -68
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -94
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -129
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -82
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -45
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -117
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -77
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -49
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -122
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -84
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -80
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -70
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -89
- data/lib/stripe/services/account_notice_service.rb +0 -101
- data/lib/stripe/services/billing/meter_usage_service.rb +0 -76
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -317
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -37
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -57
- data/lib/stripe/services/fx_quote_service.rb +0 -123
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
- data/lib/stripe/services/margin_service.rb +0 -119
- data/lib/stripe/services/order_service.rb +0 -2388
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -52
- data/lib/stripe/services/payment_record_service.rb +0 -562
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -240
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -37
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/tax/association_service.rb +0 -31
- data/lib/stripe/services/tax/form_service.rb +0 -100
- data/lib/stripe/services/terminal/onboarding_link_service.rb +0 -56
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
- data/lib/stripe/services/v2/core/account_link_service.rb +0 -114
- data/lib/stripe/services/v2/core/account_service.rb +0 -4536
- data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -1045
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -130
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -107
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -74
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -119
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -82
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -125
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -95
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -199
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -235
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -172
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -90
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -43
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -69
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -73
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/payment_service.rb +0 -15
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -152
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -53
- data/lib/stripe/thin_event.rb +0 -37
- data/stripe.gemspec +0 -47
@@ -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
|
@@ -197,8 +316,6 @@ module Stripe
|
|
197
316
|
class Card < Stripe::StripeObject
|
198
317
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
199
318
|
attr_reader :brand
|
200
|
-
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
201
|
-
attr_reader :brand_product
|
202
319
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
203
320
|
attr_reader :country
|
204
321
|
# Two-digit number representing the card's expiration month.
|
@@ -209,16 +326,40 @@ module Stripe
|
|
209
326
|
attr_reader :funding
|
210
327
|
# The last four digits of the card.
|
211
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
|
212
337
|
end
|
213
338
|
# Attribute for field card
|
214
339
|
attr_reader :card
|
215
340
|
# funding type of the underlying payment method.
|
216
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
|
217
350
|
end
|
218
351
|
# Attribute for field funding
|
219
352
|
attr_reader :funding
|
220
353
|
# The Amazon Pay transaction ID associated with this payment.
|
221
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
|
222
363
|
end
|
223
364
|
|
224
365
|
class AuBecsDebit < Stripe::StripeObject
|
@@ -230,6 +371,14 @@ module Stripe
|
|
230
371
|
attr_reader :last4
|
231
372
|
# ID of the mandate used to make this payment.
|
232
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
|
233
382
|
end
|
234
383
|
|
235
384
|
class BacsDebit < Stripe::StripeObject
|
@@ -241,6 +390,14 @@ module Stripe
|
|
241
390
|
attr_reader :mandate
|
242
391
|
# Sort code of the bank account. (e.g., `10-20-30`)
|
243
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
|
244
401
|
end
|
245
402
|
|
246
403
|
class Bancontact < Stripe::StripeObject
|
@@ -262,21 +419,53 @@ module Stripe
|
|
262
419
|
# Owner's verified full name. Values are verified or provided by Bancontact directly
|
263
420
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
264
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
|
265
430
|
end
|
266
431
|
|
267
432
|
class Billie < Stripe::StripeObject
|
268
433
|
# The Billie transaction ID associated with this payment.
|
269
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
|
270
443
|
end
|
271
444
|
|
272
445
|
class Blik < Stripe::StripeObject
|
273
446
|
# A unique and immutable identifier assigned by BLIK to every buyer.
|
274
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
|
275
456
|
end
|
276
457
|
|
277
458
|
class Boleto < Stripe::StripeObject
|
278
459
|
# The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers)
|
279
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
|
280
469
|
end
|
281
470
|
|
282
471
|
class Card < Stripe::StripeObject
|
@@ -287,21 +476,40 @@ module Stripe
|
|
287
476
|
attr_reader :address_postal_code_check
|
288
477
|
# If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
|
289
478
|
attr_reader :cvc_check
|
290
|
-
end
|
291
479
|
|
292
|
-
|
293
|
-
|
294
|
-
|
480
|
+
def self.inner_class_types
|
481
|
+
@inner_class_types = {}
|
482
|
+
end
|
483
|
+
|
484
|
+
def self.field_remappings
|
485
|
+
@field_remappings = {}
|
486
|
+
end
|
295
487
|
end
|
296
488
|
|
297
489
|
class ExtendedAuthorization < Stripe::StripeObject
|
298
490
|
# Indicates whether or not the capture window is extended beyond the standard authorization.
|
299
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
|
300
500
|
end
|
301
501
|
|
302
502
|
class IncrementalAuthorization < Stripe::StripeObject
|
303
503
|
# Indicates whether or not the incremental authorization feature is supported.
|
304
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
|
305
513
|
end
|
306
514
|
|
307
515
|
class Installments < Stripe::StripeObject
|
@@ -313,19 +521,51 @@ module Stripe
|
|
313
521
|
attr_reader :interval
|
314
522
|
# Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
|
315
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
|
316
532
|
end
|
317
533
|
# Installment plan selected for the payment.
|
318
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
|
319
543
|
end
|
320
544
|
|
321
545
|
class Multicapture < Stripe::StripeObject
|
322
546
|
# Indicates whether or not multiple captures are supported.
|
323
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
|
324
556
|
end
|
325
557
|
|
326
558
|
class NetworkToken < Stripe::StripeObject
|
327
559
|
# Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction.
|
328
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
|
329
569
|
end
|
330
570
|
|
331
571
|
class Overcapture < Stripe::StripeObject
|
@@ -333,11 +573,14 @@ module Stripe
|
|
333
573
|
attr_reader :maximum_amount_capturable
|
334
574
|
# Indicates whether or not the authorized amount can be over-captured.
|
335
575
|
attr_reader :status
|
336
|
-
end
|
337
576
|
|
338
|
-
|
339
|
-
|
340
|
-
|
577
|
+
def self.inner_class_types
|
578
|
+
@inner_class_types = {}
|
579
|
+
end
|
580
|
+
|
581
|
+
def self.field_remappings
|
582
|
+
@field_remappings = {}
|
583
|
+
end
|
341
584
|
end
|
342
585
|
|
343
586
|
class ThreeDSecure < Stripe::StripeObject
|
@@ -362,13 +605,56 @@ module Stripe
|
|
362
605
|
attr_reader :transaction_id
|
363
606
|
# The version of 3D Secure that was used.
|
364
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
|
365
616
|
end
|
366
617
|
|
367
618
|
class Wallet < Stripe::StripeObject
|
368
|
-
class AmexExpressCheckout < Stripe::StripeObject
|
369
|
-
|
370
|
-
|
371
|
-
|
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
|
372
658
|
|
373
659
|
class Masterpass < Stripe::StripeObject
|
374
660
|
class BillingAddress < Stripe::StripeObject
|
@@ -376,14 +662,22 @@ module Stripe
|
|
376
662
|
attr_reader :city
|
377
663
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
378
664
|
attr_reader :country
|
379
|
-
# Address line 1
|
665
|
+
# Address line 1, such as the street, PO Box, or company name.
|
380
666
|
attr_reader :line1
|
381
|
-
# Address line 2
|
667
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
382
668
|
attr_reader :line2
|
383
669
|
# ZIP or postal code.
|
384
670
|
attr_reader :postal_code
|
385
671
|
# State, county, province, or region.
|
386
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
|
387
681
|
end
|
388
682
|
|
389
683
|
class ShippingAddress < Stripe::StripeObject
|
@@ -391,14 +685,22 @@ module Stripe
|
|
391
685
|
attr_reader :city
|
392
686
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
393
687
|
attr_reader :country
|
394
|
-
# Address line 1
|
688
|
+
# Address line 1, such as the street, PO Box, or company name.
|
395
689
|
attr_reader :line1
|
396
|
-
# Address line 2
|
690
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
397
691
|
attr_reader :line2
|
398
692
|
# ZIP or postal code.
|
399
693
|
attr_reader :postal_code
|
400
694
|
# State, county, province, or region.
|
401
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
|
402
704
|
end
|
403
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.
|
404
706
|
attr_reader :billing_address
|
@@ -408,9 +710,28 @@ module Stripe
|
|
408
710
|
attr_reader :name
|
409
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.
|
410
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
|
411
724
|
end
|
412
725
|
|
413
|
-
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
|
414
735
|
|
415
736
|
class VisaCheckout < Stripe::StripeObject
|
416
737
|
class BillingAddress < Stripe::StripeObject
|
@@ -418,14 +739,22 @@ module Stripe
|
|
418
739
|
attr_reader :city
|
419
740
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
420
741
|
attr_reader :country
|
421
|
-
# Address line 1
|
742
|
+
# Address line 1, such as the street, PO Box, or company name.
|
422
743
|
attr_reader :line1
|
423
|
-
# Address line 2
|
744
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
424
745
|
attr_reader :line2
|
425
746
|
# ZIP or postal code.
|
426
747
|
attr_reader :postal_code
|
427
748
|
# State, county, province, or region.
|
428
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
|
429
758
|
end
|
430
759
|
|
431
760
|
class ShippingAddress < Stripe::StripeObject
|
@@ -433,14 +762,22 @@ module Stripe
|
|
433
762
|
attr_reader :city
|
434
763
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
435
764
|
attr_reader :country
|
436
|
-
# Address line 1
|
765
|
+
# Address line 1, such as the street, PO Box, or company name.
|
437
766
|
attr_reader :line1
|
438
|
-
# Address line 2
|
767
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
439
768
|
attr_reader :line2
|
440
769
|
# ZIP or postal code.
|
441
770
|
attr_reader :postal_code
|
442
771
|
# State, county, province, or region.
|
443
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
|
444
781
|
end
|
445
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.
|
446
783
|
attr_reader :billing_address
|
@@ -450,6 +787,17 @@ module Stripe
|
|
450
787
|
attr_reader :name
|
451
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.
|
452
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
|
453
801
|
end
|
454
802
|
# Attribute for field amex_express_checkout
|
455
803
|
attr_reader :amex_express_checkout
|
@@ -469,11 +817,25 @@ module Stripe
|
|
469
817
|
attr_reader :type
|
470
818
|
# Attribute for field visa_checkout
|
471
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
|
472
836
|
end
|
473
837
|
# The authorized amount.
|
474
838
|
attr_reader :amount_authorized
|
475
|
-
# The latest amount intended to be authorized by this charge.
|
476
|
-
attr_reader :amount_requested
|
477
839
|
# Authorization code on the charge.
|
478
840
|
attr_reader :authorization_code
|
479
841
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
@@ -484,8 +846,6 @@ module Stripe
|
|
484
846
|
attr_reader :checks
|
485
847
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
486
848
|
attr_reader :country
|
487
|
-
# Attribute for field decremental_authorization
|
488
|
-
attr_reader :decremental_authorization
|
489
849
|
# A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
|
490
850
|
attr_reader :description
|
491
851
|
# Two-digit number representing the card's expiration month.
|
@@ -526,14 +886,30 @@ module Stripe
|
|
526
886
|
attr_reader :network_transaction_id
|
527
887
|
# Attribute for field overcapture
|
528
888
|
attr_reader :overcapture
|
529
|
-
# Attribute for field partial_authorization
|
530
|
-
attr_reader :partial_authorization
|
531
889
|
# Status of a card based on the card issuer.
|
532
890
|
attr_reader :regulated_status
|
533
891
|
# Populated if this transaction used 3D Secure authentication.
|
534
892
|
attr_reader :three_d_secure
|
535
893
|
# If this Card is part of a card wallet, this contains the details of the card wallet.
|
536
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
|
537
913
|
end
|
538
914
|
|
539
915
|
class CardPresent < Stripe::StripeObject
|
@@ -542,6 +918,14 @@ module Stripe
|
|
542
918
|
attr_reader :stored_at
|
543
919
|
# The method used to process this payment method offline. Only deferred is allowed.
|
544
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
|
545
929
|
end
|
546
930
|
|
547
931
|
class Receipt < Stripe::StripeObject
|
@@ -563,11 +947,27 @@ module Stripe
|
|
563
947
|
attr_reader :terminal_verification_results
|
564
948
|
# An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
|
565
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
|
566
958
|
end
|
567
959
|
|
568
960
|
class Wallet < Stripe::StripeObject
|
569
961
|
# The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
|
570
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
|
571
971
|
end
|
572
972
|
# The authorized amount
|
573
973
|
attr_reader :amount_authorized
|
@@ -621,6 +1021,14 @@ module Stripe
|
|
621
1021
|
attr_reader :receipt
|
622
1022
|
# Attribute for field wallet
|
623
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
|
624
1032
|
end
|
625
1033
|
|
626
1034
|
class Cashapp < Stripe::StripeObject
|
@@ -630,6 +1038,14 @@ module Stripe
|
|
630
1038
|
attr_reader :cashtag
|
631
1039
|
# A unique and immutable identifier of payments assigned by Cash App
|
632
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
|
633
1049
|
end
|
634
1050
|
|
635
1051
|
class Crypto < Stripe::StripeObject
|
@@ -641,9 +1057,25 @@ module Stripe
|
|
641
1057
|
attr_reader :token_currency
|
642
1058
|
# The blockchain transaction hash of the crypto payment.
|
643
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
|
644
1068
|
end
|
645
1069
|
|
646
|
-
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
|
647
1079
|
|
648
1080
|
class Eps < Stripe::StripeObject
|
649
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`.
|
@@ -652,6 +1084,14 @@ module Stripe
|
|
652
1084
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
653
1085
|
# EPS rarely provides this information so the attribute is usually empty.
|
654
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
|
655
1095
|
end
|
656
1096
|
|
657
1097
|
class Fpx < Stripe::StripeObject
|
@@ -661,6 +1101,14 @@ module Stripe
|
|
661
1101
|
attr_reader :bank
|
662
1102
|
# Unique transaction id generated by FPX for every request from the merchant
|
663
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
|
664
1112
|
end
|
665
1113
|
|
666
1114
|
class Giropay < Stripe::StripeObject
|
@@ -674,26 +1122,27 @@ module Stripe
|
|
674
1122
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
675
1123
|
# Giropay rarely provides this information so the attribute is usually empty.
|
676
1124
|
attr_reader :verified_name
|
677
|
-
end
|
678
1125
|
|
679
|
-
|
1126
|
+
def self.inner_class_types
|
1127
|
+
@inner_class_types = {}
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
def self.field_remappings
|
1131
|
+
@field_remappings = {}
|
1132
|
+
end
|
1133
|
+
end
|
680
1134
|
|
681
1135
|
class Grabpay < Stripe::StripeObject
|
682
1136
|
# Unique transaction id generated by GrabPay
|
683
1137
|
attr_reader :transaction_id
|
684
|
-
end
|
685
1138
|
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
# Name of the bank associated with the bank account.
|
694
|
-
attr_reader :bank_name
|
695
|
-
# Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
|
696
|
-
attr_reader :display_name
|
1139
|
+
def self.inner_class_types
|
1140
|
+
@inner_class_types = {}
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
def self.field_remappings
|
1144
|
+
@field_remappings = {}
|
1145
|
+
end
|
697
1146
|
end
|
698
1147
|
|
699
1148
|
class Ideal < Stripe::StripeObject
|
@@ -710,6 +1159,14 @@ module Stripe
|
|
710
1159
|
# Owner's verified full name. Values are verified or provided by iDEAL directly
|
711
1160
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
712
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
|
713
1170
|
end
|
714
1171
|
|
715
1172
|
class InteracPresent < Stripe::StripeObject
|
@@ -732,6 +1189,14 @@ module Stripe
|
|
732
1189
|
attr_reader :terminal_verification_results
|
733
1190
|
# An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
|
734
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
|
735
1200
|
end
|
736
1201
|
# Card brand. Can be `interac`, `mastercard` or `visa`.
|
737
1202
|
attr_reader :brand
|
@@ -771,6 +1236,14 @@ module Stripe
|
|
771
1236
|
attr_reader :read_method
|
772
1237
|
# A collection of fields required to be displayed on receipts. Only required for EMV transactions.
|
773
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
|
774
1247
|
end
|
775
1248
|
|
776
1249
|
class KakaoPay < Stripe::StripeObject
|
@@ -778,6 +1251,14 @@ module Stripe
|
|
778
1251
|
attr_reader :buyer_id
|
779
1252
|
# The Kakao Pay transaction ID associated with this payment.
|
780
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
|
781
1262
|
end
|
782
1263
|
|
783
1264
|
class Klarna < Stripe::StripeObject
|
@@ -785,9 +1266,25 @@ module Stripe
|
|
785
1266
|
class Address < Stripe::StripeObject
|
786
1267
|
# The payer address country
|
787
1268
|
attr_reader :country
|
788
|
-
|
1269
|
+
|
1270
|
+
def self.inner_class_types
|
1271
|
+
@inner_class_types = {}
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
def self.field_remappings
|
1275
|
+
@field_remappings = {}
|
1276
|
+
end
|
1277
|
+
end
|
789
1278
|
# The payer's address
|
790
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
|
791
1288
|
end
|
792
1289
|
# The payer details for this transaction.
|
793
1290
|
attr_reader :payer_details
|
@@ -797,15 +1294,39 @@ module Stripe
|
|
797
1294
|
# Preferred language of the Klarna authorization page that the customer is redirected to.
|
798
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`
|
799
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
|
800
1305
|
end
|
801
1306
|
|
802
1307
|
class Konbini < Stripe::StripeObject
|
803
1308
|
class Store < Stripe::StripeObject
|
804
1309
|
# The name of the convenience store chain where the payment was completed.
|
805
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
|
806
1319
|
end
|
807
1320
|
# If the payment succeeded, this contains the details of the convenience store where the payment was completed.
|
808
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
|
809
1330
|
end
|
810
1331
|
|
811
1332
|
class KrCard < Stripe::StripeObject
|
@@ -817,15 +1338,39 @@ module Stripe
|
|
817
1338
|
attr_reader :last4
|
818
1339
|
# The Korean Card transaction ID associated with this payment.
|
819
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
|
820
1349
|
end
|
821
1350
|
|
822
1351
|
class Link < Stripe::StripeObject
|
823
1352
|
# Two-letter ISO code representing the funding source country beneath the Link payment.
|
824
1353
|
# You could use this attribute to get a sense of international fees.
|
825
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
|
826
1363
|
end
|
827
1364
|
|
828
|
-
class MbWay < Stripe::StripeObject
|
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
|
1373
|
+
end
|
829
1374
|
|
830
1375
|
class Mobilepay < Stripe::StripeObject
|
831
1376
|
class Card < Stripe::StripeObject
|
@@ -839,9 +1384,25 @@ module Stripe
|
|
839
1384
|
attr_reader :exp_year
|
840
1385
|
# The last 4 digits of the card
|
841
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
|
842
1395
|
end
|
843
1396
|
# Internal card details
|
844
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
|
845
1406
|
end
|
846
1407
|
|
847
1408
|
class Multibanco < Stripe::StripeObject
|
@@ -849,6 +1410,14 @@ module Stripe
|
|
849
1410
|
attr_reader :entity
|
850
1411
|
# Reference number associated with this Multibanco payment.
|
851
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
|
852
1421
|
end
|
853
1422
|
|
854
1423
|
class NaverPay < Stripe::StripeObject
|
@@ -856,6 +1425,14 @@ module Stripe
|
|
856
1425
|
attr_reader :buyer_id
|
857
1426
|
# The Naver Pay transaction ID associated with this payment.
|
858
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
|
859
1436
|
end
|
860
1437
|
|
861
1438
|
class NzBankAccount < Stripe::StripeObject
|
@@ -871,11 +1448,27 @@ module Stripe
|
|
871
1448
|
attr_reader :last4
|
872
1449
|
# The suffix of the bank account number.
|
873
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
|
874
1459
|
end
|
875
1460
|
|
876
1461
|
class Oxxo < Stripe::StripeObject
|
877
1462
|
# OXXO reference number
|
878
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
|
879
1472
|
end
|
880
1473
|
|
881
1474
|
class P24 < Stripe::StripeObject
|
@@ -887,15 +1480,39 @@ module Stripe
|
|
887
1480
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
888
1481
|
# Przelewy24 rarely provides this information so the attribute is usually empty.
|
889
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
|
890
1491
|
end
|
891
1492
|
|
892
|
-
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
|
893
1502
|
|
894
1503
|
class Payco < Stripe::StripeObject
|
895
1504
|
# A unique identifier for the buyer as determined by the local payment processor.
|
896
1505
|
attr_reader :buyer_id
|
897
1506
|
# The Payco transaction ID associated with this payment.
|
898
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
|
899
1516
|
end
|
900
1517
|
|
901
1518
|
class Paynow < Stripe::StripeObject
|
@@ -905,6 +1522,14 @@ module Stripe
|
|
905
1522
|
attr_reader :reader
|
906
1523
|
# Reference number associated with this PayNow payment
|
907
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
|
908
1533
|
end
|
909
1534
|
|
910
1535
|
class Paypal < Stripe::StripeObject
|
@@ -913,36 +1538,14 @@ module Stripe
|
|
913
1538
|
attr_reader :dispute_categories
|
914
1539
|
# Indicates whether the transaction is eligible for PayPal's seller protection.
|
915
1540
|
attr_reader :status
|
916
|
-
end
|
917
1541
|
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
925
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
926
|
-
attr_reader :line2
|
927
|
-
# ZIP or postal code.
|
928
|
-
attr_reader :postal_code
|
929
|
-
# State, county, province, or region.
|
930
|
-
attr_reader :state
|
931
|
-
end
|
932
|
-
|
933
|
-
class VerifiedAddress < Stripe::StripeObject
|
934
|
-
# City, district, suburb, town, or village.
|
935
|
-
attr_reader :city
|
936
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
937
|
-
attr_reader :country
|
938
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
939
|
-
attr_reader :line1
|
940
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
941
|
-
attr_reader :line2
|
942
|
-
# ZIP or postal code.
|
943
|
-
attr_reader :postal_code
|
944
|
-
# State, county, province, or region.
|
945
|
-
attr_reader :state
|
1542
|
+
def self.inner_class_types
|
1543
|
+
@inner_class_types = {}
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
def self.field_remappings
|
1547
|
+
@field_remappings = {}
|
1548
|
+
end
|
946
1549
|
end
|
947
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.
|
948
1551
|
attr_reader :country
|
@@ -956,57 +1559,49 @@ module Stripe
|
|
956
1559
|
attr_reader :payer_name
|
957
1560
|
# The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction.
|
958
1561
|
attr_reader :seller_protection
|
959
|
-
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
960
|
-
# execution. This shipping address will not be updated if the merchant updates the shipping
|
961
|
-
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
962
|
-
attr_reader :shipping
|
963
1562
|
# A unique ID generated by PayPal for this transaction.
|
964
1563
|
attr_reader :transaction_id
|
965
|
-
# The shipping address for the customer, as supplied by the merchant at the point of payment
|
966
|
-
# execution. This shipping address will not be updated if the merchant updates the shipping
|
967
|
-
# address on the PaymentIntent after the PaymentIntent was successfully confirmed.
|
968
|
-
attr_reader :verified_address
|
969
|
-
# Owner's verified email. Values are verified or provided by PayPal directly
|
970
|
-
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
971
|
-
attr_reader :verified_email
|
972
|
-
# Owner's verified full name. Values are verified or provided by PayPal directly
|
973
|
-
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
974
|
-
attr_reader :verified_name
|
975
|
-
end
|
976
1564
|
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
# The PayID alias for the bank account.
|
985
|
-
attr_reader :pay_id
|
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
|
986
1572
|
end
|
987
1573
|
|
988
1574
|
class Pix < Stripe::StripeObject
|
989
1575
|
# Unique transaction id generated by BCB
|
990
1576
|
attr_reader :bank_transaction_id
|
991
|
-
|
992
|
-
|
1577
|
+
|
1578
|
+
def self.inner_class_types
|
1579
|
+
@inner_class_types = {}
|
1580
|
+
end
|
1581
|
+
|
1582
|
+
def self.field_remappings
|
1583
|
+
@field_remappings = {}
|
1584
|
+
end
|
993
1585
|
end
|
994
1586
|
|
995
1587
|
class Promptpay < Stripe::StripeObject
|
996
1588
|
# Bill reference generated by PromptPay
|
997
1589
|
attr_reader :reference
|
998
|
-
end
|
999
1590
|
|
1000
|
-
|
1001
|
-
|
1591
|
+
def self.inner_class_types
|
1592
|
+
@inner_class_types = {}
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
def self.field_remappings
|
1596
|
+
@field_remappings = {}
|
1597
|
+
end
|
1598
|
+
end
|
1002
1599
|
|
1003
1600
|
class RevolutPay < Stripe::StripeObject
|
1004
1601
|
class Funding < Stripe::StripeObject
|
1005
1602
|
class Card < Stripe::StripeObject
|
1006
1603
|
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
1007
1604
|
attr_reader :brand
|
1008
|
-
# The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. (For internal use only and not typically available in standard API requests.)
|
1009
|
-
attr_reader :brand_product
|
1010
1605
|
# Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
1011
1606
|
attr_reader :country
|
1012
1607
|
# Two-digit number representing the card's expiration month.
|
@@ -1017,16 +1612,40 @@ module Stripe
|
|
1017
1612
|
attr_reader :funding
|
1018
1613
|
# The last four digits of the card.
|
1019
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
|
1020
1623
|
end
|
1021
1624
|
# Attribute for field card
|
1022
1625
|
attr_reader :card
|
1023
1626
|
# funding type of the underlying payment method.
|
1024
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
|
1025
1636
|
end
|
1026
1637
|
# Attribute for field funding
|
1027
1638
|
attr_reader :funding
|
1028
1639
|
# The Revolut Pay transaction ID associated with this payment.
|
1029
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
|
1030
1649
|
end
|
1031
1650
|
|
1032
1651
|
class SamsungPay < Stripe::StripeObject
|
@@ -1034,11 +1653,27 @@ module Stripe
|
|
1034
1653
|
attr_reader :buyer_id
|
1035
1654
|
# The Samsung Pay transaction ID associated with this payment.
|
1036
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
|
1037
1664
|
end
|
1038
1665
|
|
1039
1666
|
class Satispay < Stripe::StripeObject
|
1040
1667
|
# The Satispay transaction ID associated with this payment.
|
1041
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
|
1042
1677
|
end
|
1043
1678
|
|
1044
1679
|
class SepaCreditTransfer < Stripe::StripeObject
|
@@ -1048,6 +1683,14 @@ module Stripe
|
|
1048
1683
|
attr_reader :bic
|
1049
1684
|
# IBAN of the bank account to transfer funds to.
|
1050
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
|
1051
1694
|
end
|
1052
1695
|
|
1053
1696
|
class SepaDebit < Stripe::StripeObject
|
@@ -1063,9 +1706,15 @@ module Stripe
|
|
1063
1706
|
attr_reader :last4
|
1064
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).
|
1065
1708
|
attr_reader :mandate
|
1066
|
-
end
|
1067
1709
|
|
1068
|
-
|
1710
|
+
def self.inner_class_types
|
1711
|
+
@inner_class_types = {}
|
1712
|
+
end
|
1713
|
+
|
1714
|
+
def self.field_remappings
|
1715
|
+
@field_remappings = {}
|
1716
|
+
end
|
1717
|
+
end
|
1069
1718
|
|
1070
1719
|
class Sofort < Stripe::StripeObject
|
1071
1720
|
# Bank code of bank associated with the bank account.
|
@@ -1088,15 +1737,24 @@ module Stripe
|
|
1088
1737
|
# Owner's verified full name. Values are verified or provided by SOFORT directly
|
1089
1738
|
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
1090
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
|
1091
1748
|
end
|
1092
1749
|
|
1093
|
-
class StripeAccount < Stripe::StripeObject
|
1750
|
+
class StripeAccount < Stripe::StripeObject
|
1751
|
+
def self.inner_class_types
|
1752
|
+
@inner_class_types = {}
|
1753
|
+
end
|
1094
1754
|
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
1099
|
-
attr_reader :source_type
|
1755
|
+
def self.field_remappings
|
1756
|
+
@field_remappings = {}
|
1757
|
+
end
|
1100
1758
|
end
|
1101
1759
|
|
1102
1760
|
class Swish < Stripe::StripeObject
|
@@ -1106,9 +1764,25 @@ module Stripe
|
|
1106
1764
|
attr_reader :payment_reference
|
1107
1765
|
# The last four digits of the Swish account phone number
|
1108
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
|
1109
1775
|
end
|
1110
1776
|
|
1111
|
-
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
|
1112
1786
|
|
1113
1787
|
class UsBankAccount < Stripe::StripeObject
|
1114
1788
|
# Account holder type: individual or company.
|
@@ -1127,9 +1801,25 @@ module Stripe
|
|
1127
1801
|
attr_reader :payment_reference
|
1128
1802
|
# Routing number of the bank account.
|
1129
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
|
1130
1812
|
end
|
1131
1813
|
|
1132
|
-
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
|
1133
1823
|
|
1134
1824
|
class WechatPay < Stripe::StripeObject
|
1135
1825
|
# Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
|
@@ -1140,9 +1830,25 @@ module Stripe
|
|
1140
1830
|
attr_reader :reader
|
1141
1831
|
# Transaction ID of this particular WeChat Pay transaction.
|
1142
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
|
1143
1841
|
end
|
1144
1842
|
|
1145
|
-
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
|
1146
1852
|
# Attribute for field ach_credit_transfer
|
1147
1853
|
attr_reader :ach_credit_transfer
|
1148
1854
|
# Attribute for field ach_debit
|
@@ -1187,12 +1893,8 @@ module Stripe
|
|
1187
1893
|
attr_reader :fpx
|
1188
1894
|
# Attribute for field giropay
|
1189
1895
|
attr_reader :giropay
|
1190
|
-
# Attribute for field gopay
|
1191
|
-
attr_reader :gopay
|
1192
1896
|
# Attribute for field grabpay
|
1193
1897
|
attr_reader :grabpay
|
1194
|
-
# Attribute for field id_bank_transfer
|
1195
|
-
attr_reader :id_bank_transfer
|
1196
1898
|
# Attribute for field ideal
|
1197
1899
|
attr_reader :ideal
|
1198
1900
|
# Attribute for field interac_present
|
@@ -1229,16 +1931,10 @@ module Stripe
|
|
1229
1931
|
attr_reader :paynow
|
1230
1932
|
# Attribute for field paypal
|
1231
1933
|
attr_reader :paypal
|
1232
|
-
# Attribute for field payto
|
1233
|
-
attr_reader :payto
|
1234
1934
|
# Attribute for field pix
|
1235
1935
|
attr_reader :pix
|
1236
1936
|
# Attribute for field promptpay
|
1237
1937
|
attr_reader :promptpay
|
1238
|
-
# Attribute for field qris
|
1239
|
-
attr_reader :qris
|
1240
|
-
# Attribute for field rechnung
|
1241
|
-
attr_reader :rechnung
|
1242
1938
|
# Attribute for field revolut_pay
|
1243
1939
|
attr_reader :revolut_pay
|
1244
1940
|
# Attribute for field samsung_pay
|
@@ -1249,14 +1945,10 @@ module Stripe
|
|
1249
1945
|
attr_reader :sepa_credit_transfer
|
1250
1946
|
# Attribute for field sepa_debit
|
1251
1947
|
attr_reader :sepa_debit
|
1252
|
-
# Attribute for field shopeepay
|
1253
|
-
attr_reader :shopeepay
|
1254
1948
|
# Attribute for field sofort
|
1255
1949
|
attr_reader :sofort
|
1256
1950
|
# Attribute for field stripe_account
|
1257
1951
|
attr_reader :stripe_account
|
1258
|
-
# Attribute for field stripe_balance
|
1259
|
-
attr_reader :stripe_balance
|
1260
1952
|
# Attribute for field swish
|
1261
1953
|
attr_reader :swish
|
1262
1954
|
# Attribute for field twint
|
@@ -1273,6 +1965,71 @@ module Stripe
|
|
1273
1965
|
attr_reader :wechat_pay
|
1274
1966
|
# Attribute for field zip
|
1275
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
|
1276
2033
|
end
|
1277
2034
|
|
1278
2035
|
class PresentmentDetails < Stripe::StripeObject
|
@@ -1280,11 +2037,27 @@ module Stripe
|
|
1280
2037
|
attr_reader :presentment_amount
|
1281
2038
|
# Currency presented to the customer during payment.
|
1282
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
|
1283
2048
|
end
|
1284
2049
|
|
1285
2050
|
class RadarOptions < Stripe::StripeObject
|
1286
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.
|
1287
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
|
1288
2061
|
end
|
1289
2062
|
|
1290
2063
|
class Shipping < Stripe::StripeObject
|
@@ -1293,14 +2066,22 @@ module Stripe
|
|
1293
2066
|
attr_reader :city
|
1294
2067
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1295
2068
|
attr_reader :country
|
1296
|
-
# Address line 1
|
2069
|
+
# Address line 1, such as the street, PO Box, or company name.
|
1297
2070
|
attr_reader :line1
|
1298
|
-
# Address line 2
|
2071
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
1299
2072
|
attr_reader :line2
|
1300
2073
|
# ZIP or postal code.
|
1301
2074
|
attr_reader :postal_code
|
1302
2075
|
# State, county, province, or region.
|
1303
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
|
1304
2085
|
end
|
1305
2086
|
# Attribute for field address
|
1306
2087
|
attr_reader :address
|
@@ -1312,6 +2093,14 @@ module Stripe
|
|
1312
2093
|
attr_reader :phone
|
1313
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.
|
1314
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
|
1315
2104
|
end
|
1316
2105
|
|
1317
2106
|
class TransferData < Stripe::StripeObject
|
@@ -1319,1816 +2108,13 @@ module Stripe
|
|
1319
2108
|
attr_reader :amount
|
1320
2109
|
# ID of an existing, connected Stripe account to transfer funds to if `transfer_data` was specified in the charge request.
|
1321
2110
|
attr_reader :destination
|
1322
|
-
end
|
1323
|
-
|
1324
|
-
class ListParams < Stripe::RequestParams
|
1325
|
-
class Created < Stripe::RequestParams
|
1326
|
-
# Minimum value to filter by (exclusive)
|
1327
|
-
attr_accessor :gt
|
1328
|
-
# Minimum value to filter by (inclusive)
|
1329
|
-
attr_accessor :gte
|
1330
|
-
# Maximum value to filter by (exclusive)
|
1331
|
-
attr_accessor :lt
|
1332
|
-
# Maximum value to filter by (inclusive)
|
1333
|
-
attr_accessor :lte
|
1334
|
-
|
1335
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
1336
|
-
@gt = gt
|
1337
|
-
@gte = gte
|
1338
|
-
@lt = lt
|
1339
|
-
@lte = lte
|
1340
|
-
end
|
1341
|
-
end
|
1342
|
-
# Only return charges that were created during the given date interval.
|
1343
|
-
attr_accessor :created
|
1344
|
-
# Only return charges for the customer specified by this customer ID.
|
1345
|
-
attr_accessor :customer
|
1346
|
-
# 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.
|
1347
|
-
attr_accessor :ending_before
|
1348
|
-
# Specifies which fields in the response should be expanded.
|
1349
|
-
attr_accessor :expand
|
1350
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
1351
|
-
attr_accessor :limit
|
1352
|
-
# Only return charges that were created by the PaymentIntent specified by this PaymentIntent ID.
|
1353
|
-
attr_accessor :payment_intent
|
1354
|
-
# 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.
|
1355
|
-
attr_accessor :starting_after
|
1356
|
-
# Only return charges for this transfer group, limited to 100.
|
1357
|
-
attr_accessor :transfer_group
|
1358
|
-
|
1359
|
-
def initialize(
|
1360
|
-
created: nil,
|
1361
|
-
customer: nil,
|
1362
|
-
ending_before: nil,
|
1363
|
-
expand: nil,
|
1364
|
-
limit: nil,
|
1365
|
-
payment_intent: nil,
|
1366
|
-
starting_after: nil,
|
1367
|
-
transfer_group: nil
|
1368
|
-
)
|
1369
|
-
@created = created
|
1370
|
-
@customer = customer
|
1371
|
-
@ending_before = ending_before
|
1372
|
-
@expand = expand
|
1373
|
-
@limit = limit
|
1374
|
-
@payment_intent = payment_intent
|
1375
|
-
@starting_after = starting_after
|
1376
|
-
@transfer_group = transfer_group
|
1377
|
-
end
|
1378
|
-
end
|
1379
|
-
|
1380
|
-
class CreateParams < Stripe::RequestParams
|
1381
|
-
class Destination < Stripe::RequestParams
|
1382
|
-
# ID of an existing, connected Stripe account.
|
1383
|
-
attr_accessor :account
|
1384
|
-
# 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.
|
1385
|
-
attr_accessor :amount
|
1386
|
-
|
1387
|
-
def initialize(account: nil, amount: nil)
|
1388
|
-
@account = account
|
1389
|
-
@amount = amount
|
1390
|
-
end
|
1391
|
-
end
|
1392
|
-
|
1393
|
-
class RadarOptions < Stripe::RequestParams
|
1394
|
-
# 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.
|
1395
|
-
attr_accessor :session
|
1396
|
-
|
1397
|
-
def initialize(session: nil)
|
1398
|
-
@session = session
|
1399
|
-
end
|
1400
|
-
end
|
1401
|
-
|
1402
|
-
class Shipping < Stripe::RequestParams
|
1403
|
-
class Address < Stripe::RequestParams
|
1404
|
-
# City, district, suburb, town, or village.
|
1405
|
-
attr_accessor :city
|
1406
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1407
|
-
attr_accessor :country
|
1408
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
1409
|
-
attr_accessor :line1
|
1410
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1411
|
-
attr_accessor :line2
|
1412
|
-
# ZIP or postal code.
|
1413
|
-
attr_accessor :postal_code
|
1414
|
-
# State, county, province, or region.
|
1415
|
-
attr_accessor :state
|
1416
|
-
|
1417
|
-
def initialize(
|
1418
|
-
city: nil,
|
1419
|
-
country: nil,
|
1420
|
-
line1: nil,
|
1421
|
-
line2: nil,
|
1422
|
-
postal_code: nil,
|
1423
|
-
state: nil
|
1424
|
-
)
|
1425
|
-
@city = city
|
1426
|
-
@country = country
|
1427
|
-
@line1 = line1
|
1428
|
-
@line2 = line2
|
1429
|
-
@postal_code = postal_code
|
1430
|
-
@state = state
|
1431
|
-
end
|
1432
|
-
end
|
1433
|
-
# Shipping address.
|
1434
|
-
attr_accessor :address
|
1435
|
-
# The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
|
1436
|
-
attr_accessor :carrier
|
1437
|
-
# Recipient name.
|
1438
|
-
attr_accessor :name
|
1439
|
-
# Recipient phone (including extension).
|
1440
|
-
attr_accessor :phone
|
1441
|
-
# 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.
|
1442
|
-
attr_accessor :tracking_number
|
1443
|
-
|
1444
|
-
def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil)
|
1445
|
-
@address = address
|
1446
|
-
@carrier = carrier
|
1447
|
-
@name = name
|
1448
|
-
@phone = phone
|
1449
|
-
@tracking_number = tracking_number
|
1450
|
-
end
|
1451
|
-
end
|
1452
|
-
|
1453
|
-
class TransferData < Stripe::RequestParams
|
1454
|
-
# The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
|
1455
|
-
attr_accessor :amount
|
1456
|
-
# ID of an existing, connected Stripe account.
|
1457
|
-
attr_accessor :destination
|
1458
|
-
|
1459
|
-
def initialize(amount: nil, destination: nil)
|
1460
|
-
@amount = amount
|
1461
|
-
@destination = destination
|
1462
|
-
end
|
1463
|
-
end
|
1464
|
-
# 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).
|
1465
|
-
attr_accessor :amount
|
1466
|
-
# Attribute for param field application_fee
|
1467
|
-
attr_accessor :application_fee
|
1468
|
-
# 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).
|
1469
|
-
attr_accessor :application_fee_amount
|
1470
|
-
# 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.
|
1471
|
-
attr_accessor :capture
|
1472
|
-
# 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).
|
1473
|
-
attr_accessor :currency
|
1474
|
-
# The ID of an existing customer that will be charged in this request.
|
1475
|
-
attr_accessor :customer
|
1476
|
-
# 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.
|
1477
|
-
attr_accessor :description
|
1478
|
-
# Attribute for param field destination
|
1479
|
-
attr_accessor :destination
|
1480
|
-
# Specifies which fields in the response should be expanded.
|
1481
|
-
attr_accessor :expand
|
1482
|
-
# 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`.
|
1483
|
-
attr_accessor :metadata
|
1484
|
-
# 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).
|
1485
|
-
attr_accessor :on_behalf_of
|
1486
|
-
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
1487
|
-
attr_accessor :radar_options
|
1488
|
-
# 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).
|
1489
|
-
attr_accessor :receipt_email
|
1490
|
-
# Shipping information for the charge. Helps prevent fraud on charges for physical goods.
|
1491
|
-
attr_accessor :shipping
|
1492
|
-
# 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.
|
1493
|
-
attr_accessor :source
|
1494
|
-
# 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).
|
1495
|
-
#
|
1496
|
-
# 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.
|
1497
|
-
attr_accessor :statement_descriptor
|
1498
|
-
# 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.
|
1499
|
-
attr_accessor :statement_descriptor_suffix
|
1500
|
-
# 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.
|
1501
|
-
attr_accessor :transfer_data
|
1502
|
-
# 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).
|
1503
|
-
attr_accessor :transfer_group
|
1504
|
-
|
1505
|
-
def initialize(
|
1506
|
-
amount: nil,
|
1507
|
-
application_fee: nil,
|
1508
|
-
application_fee_amount: nil,
|
1509
|
-
capture: nil,
|
1510
|
-
currency: nil,
|
1511
|
-
customer: nil,
|
1512
|
-
description: nil,
|
1513
|
-
destination: nil,
|
1514
|
-
expand: nil,
|
1515
|
-
metadata: nil,
|
1516
|
-
on_behalf_of: nil,
|
1517
|
-
radar_options: nil,
|
1518
|
-
receipt_email: nil,
|
1519
|
-
shipping: nil,
|
1520
|
-
source: nil,
|
1521
|
-
statement_descriptor: nil,
|
1522
|
-
statement_descriptor_suffix: nil,
|
1523
|
-
transfer_data: nil,
|
1524
|
-
transfer_group: nil
|
1525
|
-
)
|
1526
|
-
@amount = amount
|
1527
|
-
@application_fee = application_fee
|
1528
|
-
@application_fee_amount = application_fee_amount
|
1529
|
-
@capture = capture
|
1530
|
-
@currency = currency
|
1531
|
-
@customer = customer
|
1532
|
-
@description = description
|
1533
|
-
@destination = destination
|
1534
|
-
@expand = expand
|
1535
|
-
@metadata = metadata
|
1536
|
-
@on_behalf_of = on_behalf_of
|
1537
|
-
@radar_options = radar_options
|
1538
|
-
@receipt_email = receipt_email
|
1539
|
-
@shipping = shipping
|
1540
|
-
@source = source
|
1541
|
-
@statement_descriptor = statement_descriptor
|
1542
|
-
@statement_descriptor_suffix = statement_descriptor_suffix
|
1543
|
-
@transfer_data = transfer_data
|
1544
|
-
@transfer_group = transfer_group
|
1545
|
-
end
|
1546
|
-
end
|
1547
|
-
|
1548
|
-
class UpdateParams < Stripe::RequestParams
|
1549
|
-
class FraudDetails < Stripe::RequestParams
|
1550
|
-
# Either `safe` or `fraudulent`.
|
1551
|
-
attr_accessor :user_report
|
1552
|
-
|
1553
|
-
def initialize(user_report: nil)
|
1554
|
-
@user_report = user_report
|
1555
|
-
end
|
1556
|
-
end
|
1557
|
-
|
1558
|
-
class PaymentDetails < Stripe::RequestParams
|
1559
|
-
class CarRental < Stripe::RequestParams
|
1560
|
-
class Affiliate < Stripe::RequestParams
|
1561
|
-
# The name of the affiliate that originated the purchase.
|
1562
|
-
attr_accessor :name
|
1563
|
-
|
1564
|
-
def initialize(name: nil)
|
1565
|
-
@name = name
|
1566
|
-
end
|
1567
|
-
end
|
1568
|
-
|
1569
|
-
class Delivery < Stripe::RequestParams
|
1570
|
-
class Recipient < Stripe::RequestParams
|
1571
|
-
# The email of the recipient the ticket is delivered to.
|
1572
|
-
attr_accessor :email
|
1573
|
-
# The name of the recipient the ticket is delivered to.
|
1574
|
-
attr_accessor :name
|
1575
|
-
# The phone number of the recipient the ticket is delivered to.
|
1576
|
-
attr_accessor :phone
|
1577
|
-
|
1578
|
-
def initialize(email: nil, name: nil, phone: nil)
|
1579
|
-
@email = email
|
1580
|
-
@name = name
|
1581
|
-
@phone = phone
|
1582
|
-
end
|
1583
|
-
end
|
1584
|
-
# The delivery method for the payment
|
1585
|
-
attr_accessor :mode
|
1586
|
-
# Details of the recipient.
|
1587
|
-
attr_accessor :recipient
|
1588
|
-
|
1589
|
-
def initialize(mode: nil, recipient: nil)
|
1590
|
-
@mode = mode
|
1591
|
-
@recipient = recipient
|
1592
|
-
end
|
1593
|
-
end
|
1594
|
-
|
1595
|
-
class Distance < Stripe::RequestParams
|
1596
|
-
# Distance traveled.
|
1597
|
-
attr_accessor :amount
|
1598
|
-
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
1599
|
-
attr_accessor :unit
|
1600
|
-
|
1601
|
-
def initialize(amount: nil, unit: nil)
|
1602
|
-
@amount = amount
|
1603
|
-
@unit = unit
|
1604
|
-
end
|
1605
|
-
end
|
1606
|
-
|
1607
|
-
class Driver < Stripe::RequestParams
|
1608
|
-
# Driver's identification number.
|
1609
|
-
attr_accessor :driver_identification_number
|
1610
|
-
# Driver's tax number.
|
1611
|
-
attr_accessor :driver_tax_number
|
1612
|
-
# Full name of the person or entity on the car reservation.
|
1613
|
-
attr_accessor :name
|
1614
|
-
|
1615
|
-
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
1616
|
-
@driver_identification_number = driver_identification_number
|
1617
|
-
@driver_tax_number = driver_tax_number
|
1618
|
-
@name = name
|
1619
|
-
end
|
1620
|
-
end
|
1621
|
-
|
1622
|
-
class PickupAddress < Stripe::RequestParams
|
1623
|
-
# City, district, suburb, town, or village.
|
1624
|
-
attr_accessor :city
|
1625
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1626
|
-
attr_accessor :country
|
1627
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
1628
|
-
attr_accessor :line1
|
1629
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1630
|
-
attr_accessor :line2
|
1631
|
-
# ZIP or postal code.
|
1632
|
-
attr_accessor :postal_code
|
1633
|
-
# State, county, province, or region.
|
1634
|
-
attr_accessor :state
|
1635
|
-
|
1636
|
-
def initialize(
|
1637
|
-
city: nil,
|
1638
|
-
country: nil,
|
1639
|
-
line1: nil,
|
1640
|
-
line2: nil,
|
1641
|
-
postal_code: nil,
|
1642
|
-
state: nil
|
1643
|
-
)
|
1644
|
-
@city = city
|
1645
|
-
@country = country
|
1646
|
-
@line1 = line1
|
1647
|
-
@line2 = line2
|
1648
|
-
@postal_code = postal_code
|
1649
|
-
@state = state
|
1650
|
-
end
|
1651
|
-
end
|
1652
|
-
|
1653
|
-
class ReturnAddress < Stripe::RequestParams
|
1654
|
-
# City, district, suburb, town, or village.
|
1655
|
-
attr_accessor :city
|
1656
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1657
|
-
attr_accessor :country
|
1658
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
1659
|
-
attr_accessor :line1
|
1660
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1661
|
-
attr_accessor :line2
|
1662
|
-
# ZIP or postal code.
|
1663
|
-
attr_accessor :postal_code
|
1664
|
-
# State, county, province, or region.
|
1665
|
-
attr_accessor :state
|
1666
|
-
|
1667
|
-
def initialize(
|
1668
|
-
city: nil,
|
1669
|
-
country: nil,
|
1670
|
-
line1: nil,
|
1671
|
-
line2: nil,
|
1672
|
-
postal_code: nil,
|
1673
|
-
state: nil
|
1674
|
-
)
|
1675
|
-
@city = city
|
1676
|
-
@country = country
|
1677
|
-
@line1 = line1
|
1678
|
-
@line2 = line2
|
1679
|
-
@postal_code = postal_code
|
1680
|
-
@state = state
|
1681
|
-
end
|
1682
|
-
end
|
1683
|
-
# Affiliate details for this purchase.
|
1684
|
-
attr_accessor :affiliate
|
1685
|
-
# The booking number associated with the car rental.
|
1686
|
-
attr_accessor :booking_number
|
1687
|
-
# Class code of the car.
|
1688
|
-
attr_accessor :car_class_code
|
1689
|
-
# Make of the car.
|
1690
|
-
attr_accessor :car_make
|
1691
|
-
# Model of the car.
|
1692
|
-
attr_accessor :car_model
|
1693
|
-
# The name of the rental car company.
|
1694
|
-
attr_accessor :company
|
1695
|
-
# The customer service phone number of the car rental company.
|
1696
|
-
attr_accessor :customer_service_phone_number
|
1697
|
-
# Number of days the car is being rented.
|
1698
|
-
attr_accessor :days_rented
|
1699
|
-
# Delivery details for this purchase.
|
1700
|
-
attr_accessor :delivery
|
1701
|
-
# The details of the distance traveled during the rental period.
|
1702
|
-
attr_accessor :distance
|
1703
|
-
# The details of the passengers in the travel reservation
|
1704
|
-
attr_accessor :drivers
|
1705
|
-
# List of additional charges being billed.
|
1706
|
-
attr_accessor :extra_charges
|
1707
|
-
# Indicates if the customer did not keep nor cancel their booking.
|
1708
|
-
attr_accessor :no_show
|
1709
|
-
# Car pick-up address.
|
1710
|
-
attr_accessor :pickup_address
|
1711
|
-
# Car pick-up time. Measured in seconds since the Unix epoch.
|
1712
|
-
attr_accessor :pickup_at
|
1713
|
-
# Name of the pickup location.
|
1714
|
-
attr_accessor :pickup_location_name
|
1715
|
-
# Rental rate.
|
1716
|
-
attr_accessor :rate_amount
|
1717
|
-
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
1718
|
-
attr_accessor :rate_interval
|
1719
|
-
# The name of the person or entity renting the car.
|
1720
|
-
attr_accessor :renter_name
|
1721
|
-
# Car return address.
|
1722
|
-
attr_accessor :return_address
|
1723
|
-
# Car return time. Measured in seconds since the Unix epoch.
|
1724
|
-
attr_accessor :return_at
|
1725
|
-
# Name of the return location.
|
1726
|
-
attr_accessor :return_location_name
|
1727
|
-
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
1728
|
-
attr_accessor :tax_exempt
|
1729
|
-
# The vehicle identification number.
|
1730
|
-
attr_accessor :vehicle_identification_number
|
1731
|
-
|
1732
|
-
def initialize(
|
1733
|
-
affiliate: nil,
|
1734
|
-
booking_number: nil,
|
1735
|
-
car_class_code: nil,
|
1736
|
-
car_make: nil,
|
1737
|
-
car_model: nil,
|
1738
|
-
company: nil,
|
1739
|
-
customer_service_phone_number: nil,
|
1740
|
-
days_rented: nil,
|
1741
|
-
delivery: nil,
|
1742
|
-
distance: nil,
|
1743
|
-
drivers: nil,
|
1744
|
-
extra_charges: nil,
|
1745
|
-
no_show: nil,
|
1746
|
-
pickup_address: nil,
|
1747
|
-
pickup_at: nil,
|
1748
|
-
pickup_location_name: nil,
|
1749
|
-
rate_amount: nil,
|
1750
|
-
rate_interval: nil,
|
1751
|
-
renter_name: nil,
|
1752
|
-
return_address: nil,
|
1753
|
-
return_at: nil,
|
1754
|
-
return_location_name: nil,
|
1755
|
-
tax_exempt: nil,
|
1756
|
-
vehicle_identification_number: nil
|
1757
|
-
)
|
1758
|
-
@affiliate = affiliate
|
1759
|
-
@booking_number = booking_number
|
1760
|
-
@car_class_code = car_class_code
|
1761
|
-
@car_make = car_make
|
1762
|
-
@car_model = car_model
|
1763
|
-
@company = company
|
1764
|
-
@customer_service_phone_number = customer_service_phone_number
|
1765
|
-
@days_rented = days_rented
|
1766
|
-
@delivery = delivery
|
1767
|
-
@distance = distance
|
1768
|
-
@drivers = drivers
|
1769
|
-
@extra_charges = extra_charges
|
1770
|
-
@no_show = no_show
|
1771
|
-
@pickup_address = pickup_address
|
1772
|
-
@pickup_at = pickup_at
|
1773
|
-
@pickup_location_name = pickup_location_name
|
1774
|
-
@rate_amount = rate_amount
|
1775
|
-
@rate_interval = rate_interval
|
1776
|
-
@renter_name = renter_name
|
1777
|
-
@return_address = return_address
|
1778
|
-
@return_at = return_at
|
1779
|
-
@return_location_name = return_location_name
|
1780
|
-
@tax_exempt = tax_exempt
|
1781
|
-
@vehicle_identification_number = vehicle_identification_number
|
1782
|
-
end
|
1783
|
-
end
|
1784
|
-
|
1785
|
-
class EventDetails < Stripe::RequestParams
|
1786
|
-
class Address < Stripe::RequestParams
|
1787
|
-
# City, district, suburb, town, or village.
|
1788
|
-
attr_accessor :city
|
1789
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
1790
|
-
attr_accessor :country
|
1791
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
1792
|
-
attr_accessor :line1
|
1793
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
1794
|
-
attr_accessor :line2
|
1795
|
-
# ZIP or postal code.
|
1796
|
-
attr_accessor :postal_code
|
1797
|
-
# State, county, province, or region.
|
1798
|
-
attr_accessor :state
|
1799
|
-
|
1800
|
-
def initialize(
|
1801
|
-
city: nil,
|
1802
|
-
country: nil,
|
1803
|
-
line1: nil,
|
1804
|
-
line2: nil,
|
1805
|
-
postal_code: nil,
|
1806
|
-
state: nil
|
1807
|
-
)
|
1808
|
-
@city = city
|
1809
|
-
@country = country
|
1810
|
-
@line1 = line1
|
1811
|
-
@line2 = line2
|
1812
|
-
@postal_code = postal_code
|
1813
|
-
@state = state
|
1814
|
-
end
|
1815
|
-
end
|
1816
|
-
|
1817
|
-
class Affiliate < Stripe::RequestParams
|
1818
|
-
# The name of the affiliate that originated the purchase.
|
1819
|
-
attr_accessor :name
|
1820
|
-
|
1821
|
-
def initialize(name: nil)
|
1822
|
-
@name = name
|
1823
|
-
end
|
1824
|
-
end
|
1825
|
-
|
1826
|
-
class Delivery < Stripe::RequestParams
|
1827
|
-
class Recipient < Stripe::RequestParams
|
1828
|
-
# The email of the recipient the ticket is delivered to.
|
1829
|
-
attr_accessor :email
|
1830
|
-
# The name of the recipient the ticket is delivered to.
|
1831
|
-
attr_accessor :name
|
1832
|
-
# The phone number of the recipient the ticket is delivered to.
|
1833
|
-
attr_accessor :phone
|
1834
|
-
|
1835
|
-
def initialize(email: nil, name: nil, phone: nil)
|
1836
|
-
@email = email
|
1837
|
-
@name = name
|
1838
|
-
@phone = phone
|
1839
|
-
end
|
1840
|
-
end
|
1841
|
-
# The delivery method for the payment
|
1842
|
-
attr_accessor :mode
|
1843
|
-
# Details of the recipient.
|
1844
|
-
attr_accessor :recipient
|
1845
|
-
|
1846
|
-
def initialize(mode: nil, recipient: nil)
|
1847
|
-
@mode = mode
|
1848
|
-
@recipient = recipient
|
1849
|
-
end
|
1850
|
-
end
|
1851
|
-
# Indicates if the tickets are digitally checked when entering the venue.
|
1852
|
-
attr_accessor :access_controlled_venue
|
1853
|
-
# The event location's address.
|
1854
|
-
attr_accessor :address
|
1855
|
-
# Affiliate details for this purchase.
|
1856
|
-
attr_accessor :affiliate
|
1857
|
-
# The name of the company
|
1858
|
-
attr_accessor :company
|
1859
|
-
# Delivery details for this purchase.
|
1860
|
-
attr_accessor :delivery
|
1861
|
-
# Event end time. Measured in seconds since the Unix epoch.
|
1862
|
-
attr_accessor :ends_at
|
1863
|
-
# Type of the event entertainment (concert, sports event etc)
|
1864
|
-
attr_accessor :genre
|
1865
|
-
# The name of the event.
|
1866
|
-
attr_accessor :name
|
1867
|
-
# Event start time. Measured in seconds since the Unix epoch.
|
1868
|
-
attr_accessor :starts_at
|
1869
|
-
|
1870
|
-
def initialize(
|
1871
|
-
access_controlled_venue: nil,
|
1872
|
-
address: nil,
|
1873
|
-
affiliate: nil,
|
1874
|
-
company: nil,
|
1875
|
-
delivery: nil,
|
1876
|
-
ends_at: nil,
|
1877
|
-
genre: nil,
|
1878
|
-
name: nil,
|
1879
|
-
starts_at: nil
|
1880
|
-
)
|
1881
|
-
@access_controlled_venue = access_controlled_venue
|
1882
|
-
@address = address
|
1883
|
-
@affiliate = affiliate
|
1884
|
-
@company = company
|
1885
|
-
@delivery = delivery
|
1886
|
-
@ends_at = ends_at
|
1887
|
-
@genre = genre
|
1888
|
-
@name = name
|
1889
|
-
@starts_at = starts_at
|
1890
|
-
end
|
1891
|
-
end
|
1892
|
-
|
1893
|
-
class Flight < Stripe::RequestParams
|
1894
|
-
class Affiliate < Stripe::RequestParams
|
1895
|
-
# The name of the affiliate that originated the purchase.
|
1896
|
-
attr_accessor :name
|
1897
|
-
|
1898
|
-
def initialize(name: nil)
|
1899
|
-
@name = name
|
1900
|
-
end
|
1901
|
-
end
|
1902
|
-
|
1903
|
-
class Delivery < Stripe::RequestParams
|
1904
|
-
class Recipient < Stripe::RequestParams
|
1905
|
-
# The email of the recipient the ticket is delivered to.
|
1906
|
-
attr_accessor :email
|
1907
|
-
# The name of the recipient the ticket is delivered to.
|
1908
|
-
attr_accessor :name
|
1909
|
-
# The phone number of the recipient the ticket is delivered to.
|
1910
|
-
attr_accessor :phone
|
1911
|
-
|
1912
|
-
def initialize(email: nil, name: nil, phone: nil)
|
1913
|
-
@email = email
|
1914
|
-
@name = name
|
1915
|
-
@phone = phone
|
1916
|
-
end
|
1917
|
-
end
|
1918
|
-
# The delivery method for the payment
|
1919
|
-
attr_accessor :mode
|
1920
|
-
# Details of the recipient.
|
1921
|
-
attr_accessor :recipient
|
1922
|
-
|
1923
|
-
def initialize(mode: nil, recipient: nil)
|
1924
|
-
@mode = mode
|
1925
|
-
@recipient = recipient
|
1926
|
-
end
|
1927
|
-
end
|
1928
|
-
|
1929
|
-
class Passenger < Stripe::RequestParams
|
1930
|
-
# Full name of the person or entity on the flight reservation.
|
1931
|
-
attr_accessor :name
|
1932
|
-
|
1933
|
-
def initialize(name: nil)
|
1934
|
-
@name = name
|
1935
|
-
end
|
1936
|
-
end
|
1937
|
-
|
1938
|
-
class Segment < Stripe::RequestParams
|
1939
|
-
# The flight segment amount.
|
1940
|
-
attr_accessor :amount
|
1941
|
-
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
1942
|
-
attr_accessor :arrival_airport
|
1943
|
-
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
1944
|
-
attr_accessor :arrives_at
|
1945
|
-
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
1946
|
-
attr_accessor :carrier
|
1947
|
-
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
1948
|
-
attr_accessor :departs_at
|
1949
|
-
# The International Air Transport Association (IATA) airport code for the departure airport.
|
1950
|
-
attr_accessor :departure_airport
|
1951
|
-
# The flight number associated with the segment
|
1952
|
-
attr_accessor :flight_number
|
1953
|
-
# The fare class for the segment.
|
1954
|
-
attr_accessor :service_class
|
1955
|
-
|
1956
|
-
def initialize(
|
1957
|
-
amount: nil,
|
1958
|
-
arrival_airport: nil,
|
1959
|
-
arrives_at: nil,
|
1960
|
-
carrier: nil,
|
1961
|
-
departs_at: nil,
|
1962
|
-
departure_airport: nil,
|
1963
|
-
flight_number: nil,
|
1964
|
-
service_class: nil
|
1965
|
-
)
|
1966
|
-
@amount = amount
|
1967
|
-
@arrival_airport = arrival_airport
|
1968
|
-
@arrives_at = arrives_at
|
1969
|
-
@carrier = carrier
|
1970
|
-
@departs_at = departs_at
|
1971
|
-
@departure_airport = departure_airport
|
1972
|
-
@flight_number = flight_number
|
1973
|
-
@service_class = service_class
|
1974
|
-
end
|
1975
|
-
end
|
1976
|
-
# Affiliate details for this purchase.
|
1977
|
-
attr_accessor :affiliate
|
1978
|
-
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
1979
|
-
attr_accessor :agency_number
|
1980
|
-
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
1981
|
-
attr_accessor :carrier
|
1982
|
-
# Delivery details for this purchase.
|
1983
|
-
attr_accessor :delivery
|
1984
|
-
# The name of the person or entity on the reservation.
|
1985
|
-
attr_accessor :passenger_name
|
1986
|
-
# The details of the passengers in the travel reservation.
|
1987
|
-
attr_accessor :passengers
|
1988
|
-
# The individual flight segments associated with the trip.
|
1989
|
-
attr_accessor :segments
|
1990
|
-
# The ticket number associated with the travel reservation.
|
1991
|
-
attr_accessor :ticket_number
|
1992
|
-
|
1993
|
-
def initialize(
|
1994
|
-
affiliate: nil,
|
1995
|
-
agency_number: nil,
|
1996
|
-
carrier: nil,
|
1997
|
-
delivery: nil,
|
1998
|
-
passenger_name: nil,
|
1999
|
-
passengers: nil,
|
2000
|
-
segments: nil,
|
2001
|
-
ticket_number: nil
|
2002
|
-
)
|
2003
|
-
@affiliate = affiliate
|
2004
|
-
@agency_number = agency_number
|
2005
|
-
@carrier = carrier
|
2006
|
-
@delivery = delivery
|
2007
|
-
@passenger_name = passenger_name
|
2008
|
-
@passengers = passengers
|
2009
|
-
@segments = segments
|
2010
|
-
@ticket_number = ticket_number
|
2011
|
-
end
|
2012
|
-
end
|
2013
|
-
|
2014
|
-
class Lodging < Stripe::RequestParams
|
2015
|
-
class Address < Stripe::RequestParams
|
2016
|
-
# City, district, suburb, town, or village.
|
2017
|
-
attr_accessor :city
|
2018
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2019
|
-
attr_accessor :country
|
2020
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
2021
|
-
attr_accessor :line1
|
2022
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2023
|
-
attr_accessor :line2
|
2024
|
-
# ZIP or postal code.
|
2025
|
-
attr_accessor :postal_code
|
2026
|
-
# State, county, province, or region.
|
2027
|
-
attr_accessor :state
|
2028
|
-
|
2029
|
-
def initialize(
|
2030
|
-
city: nil,
|
2031
|
-
country: nil,
|
2032
|
-
line1: nil,
|
2033
|
-
line2: nil,
|
2034
|
-
postal_code: nil,
|
2035
|
-
state: nil
|
2036
|
-
)
|
2037
|
-
@city = city
|
2038
|
-
@country = country
|
2039
|
-
@line1 = line1
|
2040
|
-
@line2 = line2
|
2041
|
-
@postal_code = postal_code
|
2042
|
-
@state = state
|
2043
|
-
end
|
2044
|
-
end
|
2045
|
-
|
2046
|
-
class Affiliate < Stripe::RequestParams
|
2047
|
-
# The name of the affiliate that originated the purchase.
|
2048
|
-
attr_accessor :name
|
2049
|
-
|
2050
|
-
def initialize(name: nil)
|
2051
|
-
@name = name
|
2052
|
-
end
|
2053
|
-
end
|
2054
|
-
|
2055
|
-
class Delivery < Stripe::RequestParams
|
2056
|
-
class Recipient < Stripe::RequestParams
|
2057
|
-
# The email of the recipient the ticket is delivered to.
|
2058
|
-
attr_accessor :email
|
2059
|
-
# The name of the recipient the ticket is delivered to.
|
2060
|
-
attr_accessor :name
|
2061
|
-
# The phone number of the recipient the ticket is delivered to.
|
2062
|
-
attr_accessor :phone
|
2063
|
-
|
2064
|
-
def initialize(email: nil, name: nil, phone: nil)
|
2065
|
-
@email = email
|
2066
|
-
@name = name
|
2067
|
-
@phone = phone
|
2068
|
-
end
|
2069
|
-
end
|
2070
|
-
# The delivery method for the payment
|
2071
|
-
attr_accessor :mode
|
2072
|
-
# Details of the recipient.
|
2073
|
-
attr_accessor :recipient
|
2074
|
-
|
2075
|
-
def initialize(mode: nil, recipient: nil)
|
2076
|
-
@mode = mode
|
2077
|
-
@recipient = recipient
|
2078
|
-
end
|
2079
|
-
end
|
2080
|
-
|
2081
|
-
class Passenger < Stripe::RequestParams
|
2082
|
-
# Full name of the person or entity on the lodging reservation.
|
2083
|
-
attr_accessor :name
|
2084
|
-
|
2085
|
-
def initialize(name: nil)
|
2086
|
-
@name = name
|
2087
|
-
end
|
2088
|
-
end
|
2089
|
-
# The lodging location's address.
|
2090
|
-
attr_accessor :address
|
2091
|
-
# The number of adults on the booking
|
2092
|
-
attr_accessor :adults
|
2093
|
-
# Affiliate details for this purchase.
|
2094
|
-
attr_accessor :affiliate
|
2095
|
-
# The booking number associated with the lodging reservation.
|
2096
|
-
attr_accessor :booking_number
|
2097
|
-
# The lodging category
|
2098
|
-
attr_accessor :category
|
2099
|
-
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
2100
|
-
attr_accessor :checkin_at
|
2101
|
-
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
2102
|
-
attr_accessor :checkout_at
|
2103
|
-
# The customer service phone number of the lodging company.
|
2104
|
-
attr_accessor :customer_service_phone_number
|
2105
|
-
# The daily lodging room rate.
|
2106
|
-
attr_accessor :daily_room_rate_amount
|
2107
|
-
# Delivery details for this purchase.
|
2108
|
-
attr_accessor :delivery
|
2109
|
-
# List of additional charges being billed.
|
2110
|
-
attr_accessor :extra_charges
|
2111
|
-
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
2112
|
-
attr_accessor :fire_safety_act_compliance
|
2113
|
-
# The name of the lodging location.
|
2114
|
-
attr_accessor :name
|
2115
|
-
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
2116
|
-
attr_accessor :no_show
|
2117
|
-
# The number of rooms on the booking
|
2118
|
-
attr_accessor :number_of_rooms
|
2119
|
-
# The details of the passengers in the travel reservation
|
2120
|
-
attr_accessor :passengers
|
2121
|
-
# The phone number of the lodging location.
|
2122
|
-
attr_accessor :property_phone_number
|
2123
|
-
# The room class for this purchase.
|
2124
|
-
attr_accessor :room_class
|
2125
|
-
# The number of room nights
|
2126
|
-
attr_accessor :room_nights
|
2127
|
-
# The total tax amount associating with the room reservation.
|
2128
|
-
attr_accessor :total_room_tax_amount
|
2129
|
-
# The total tax amount
|
2130
|
-
attr_accessor :total_tax_amount
|
2131
|
-
|
2132
|
-
def initialize(
|
2133
|
-
address: nil,
|
2134
|
-
adults: nil,
|
2135
|
-
affiliate: nil,
|
2136
|
-
booking_number: nil,
|
2137
|
-
category: nil,
|
2138
|
-
checkin_at: nil,
|
2139
|
-
checkout_at: nil,
|
2140
|
-
customer_service_phone_number: nil,
|
2141
|
-
daily_room_rate_amount: nil,
|
2142
|
-
delivery: nil,
|
2143
|
-
extra_charges: nil,
|
2144
|
-
fire_safety_act_compliance: nil,
|
2145
|
-
name: nil,
|
2146
|
-
no_show: nil,
|
2147
|
-
number_of_rooms: nil,
|
2148
|
-
passengers: nil,
|
2149
|
-
property_phone_number: nil,
|
2150
|
-
room_class: nil,
|
2151
|
-
room_nights: nil,
|
2152
|
-
total_room_tax_amount: nil,
|
2153
|
-
total_tax_amount: nil
|
2154
|
-
)
|
2155
|
-
@address = address
|
2156
|
-
@adults = adults
|
2157
|
-
@affiliate = affiliate
|
2158
|
-
@booking_number = booking_number
|
2159
|
-
@category = category
|
2160
|
-
@checkin_at = checkin_at
|
2161
|
-
@checkout_at = checkout_at
|
2162
|
-
@customer_service_phone_number = customer_service_phone_number
|
2163
|
-
@daily_room_rate_amount = daily_room_rate_amount
|
2164
|
-
@delivery = delivery
|
2165
|
-
@extra_charges = extra_charges
|
2166
|
-
@fire_safety_act_compliance = fire_safety_act_compliance
|
2167
|
-
@name = name
|
2168
|
-
@no_show = no_show
|
2169
|
-
@number_of_rooms = number_of_rooms
|
2170
|
-
@passengers = passengers
|
2171
|
-
@property_phone_number = property_phone_number
|
2172
|
-
@room_class = room_class
|
2173
|
-
@room_nights = room_nights
|
2174
|
-
@total_room_tax_amount = total_room_tax_amount
|
2175
|
-
@total_tax_amount = total_tax_amount
|
2176
|
-
end
|
2177
|
-
end
|
2178
|
-
|
2179
|
-
class Subscription < Stripe::RequestParams
|
2180
|
-
class Affiliate < Stripe::RequestParams
|
2181
|
-
# The name of the affiliate that originated the purchase.
|
2182
|
-
attr_accessor :name
|
2183
|
-
|
2184
|
-
def initialize(name: nil)
|
2185
|
-
@name = name
|
2186
|
-
end
|
2187
|
-
end
|
2188
|
-
|
2189
|
-
class BillingInterval < Stripe::RequestParams
|
2190
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
2191
|
-
attr_accessor :count
|
2192
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
2193
|
-
attr_accessor :interval
|
2194
|
-
|
2195
|
-
def initialize(count: nil, interval: nil)
|
2196
|
-
@count = count
|
2197
|
-
@interval = interval
|
2198
|
-
end
|
2199
|
-
end
|
2200
|
-
# Affiliate details for this purchase.
|
2201
|
-
attr_accessor :affiliate
|
2202
|
-
# Info whether the subscription will be auto renewed upon expiry.
|
2203
|
-
attr_accessor :auto_renewal
|
2204
|
-
# Subscription billing details for this purchase.
|
2205
|
-
attr_accessor :billing_interval
|
2206
|
-
# Subscription end time. Measured in seconds since the Unix epoch.
|
2207
|
-
attr_accessor :ends_at
|
2208
|
-
# Name of the product on subscription. e.g. Apple Music Subscription
|
2209
|
-
attr_accessor :name
|
2210
|
-
# Subscription start time. Measured in seconds since the Unix epoch.
|
2211
|
-
attr_accessor :starts_at
|
2212
|
-
|
2213
|
-
def initialize(
|
2214
|
-
affiliate: nil,
|
2215
|
-
auto_renewal: nil,
|
2216
|
-
billing_interval: nil,
|
2217
|
-
ends_at: nil,
|
2218
|
-
name: nil,
|
2219
|
-
starts_at: nil
|
2220
|
-
)
|
2221
|
-
@affiliate = affiliate
|
2222
|
-
@auto_renewal = auto_renewal
|
2223
|
-
@billing_interval = billing_interval
|
2224
|
-
@ends_at = ends_at
|
2225
|
-
@name = name
|
2226
|
-
@starts_at = starts_at
|
2227
|
-
end
|
2228
|
-
end
|
2229
|
-
# Car rental details for this PaymentIntent.
|
2230
|
-
attr_accessor :car_rental
|
2231
|
-
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
|
2232
|
-
attr_accessor :customer_reference
|
2233
|
-
# Event details for this PaymentIntent
|
2234
|
-
attr_accessor :event_details
|
2235
|
-
# Flight reservation details for this PaymentIntent
|
2236
|
-
attr_accessor :flight
|
2237
|
-
# Lodging reservation details for this PaymentIntent
|
2238
|
-
attr_accessor :lodging
|
2239
|
-
# A unique value assigned by the business to identify the transaction.
|
2240
|
-
attr_accessor :order_reference
|
2241
|
-
# Subscription details for this PaymentIntent
|
2242
|
-
attr_accessor :subscription
|
2243
|
-
|
2244
|
-
def initialize(
|
2245
|
-
car_rental: nil,
|
2246
|
-
customer_reference: nil,
|
2247
|
-
event_details: nil,
|
2248
|
-
flight: nil,
|
2249
|
-
lodging: nil,
|
2250
|
-
order_reference: nil,
|
2251
|
-
subscription: nil
|
2252
|
-
)
|
2253
|
-
@car_rental = car_rental
|
2254
|
-
@customer_reference = customer_reference
|
2255
|
-
@event_details = event_details
|
2256
|
-
@flight = flight
|
2257
|
-
@lodging = lodging
|
2258
|
-
@order_reference = order_reference
|
2259
|
-
@subscription = subscription
|
2260
|
-
end
|
2261
|
-
end
|
2262
|
-
|
2263
|
-
class Shipping < Stripe::RequestParams
|
2264
|
-
class Address < Stripe::RequestParams
|
2265
|
-
# City, district, suburb, town, or village.
|
2266
|
-
attr_accessor :city
|
2267
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2268
|
-
attr_accessor :country
|
2269
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
2270
|
-
attr_accessor :line1
|
2271
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2272
|
-
attr_accessor :line2
|
2273
|
-
# ZIP or postal code.
|
2274
|
-
attr_accessor :postal_code
|
2275
|
-
# State, county, province, or region.
|
2276
|
-
attr_accessor :state
|
2277
|
-
|
2278
|
-
def initialize(
|
2279
|
-
city: nil,
|
2280
|
-
country: nil,
|
2281
|
-
line1: nil,
|
2282
|
-
line2: nil,
|
2283
|
-
postal_code: nil,
|
2284
|
-
state: nil
|
2285
|
-
)
|
2286
|
-
@city = city
|
2287
|
-
@country = country
|
2288
|
-
@line1 = line1
|
2289
|
-
@line2 = line2
|
2290
|
-
@postal_code = postal_code
|
2291
|
-
@state = state
|
2292
|
-
end
|
2293
|
-
end
|
2294
|
-
# Shipping address.
|
2295
|
-
attr_accessor :address
|
2296
|
-
# The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
|
2297
|
-
attr_accessor :carrier
|
2298
|
-
# Recipient name.
|
2299
|
-
attr_accessor :name
|
2300
|
-
# Recipient phone (including extension).
|
2301
|
-
attr_accessor :phone
|
2302
|
-
# 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.
|
2303
|
-
attr_accessor :tracking_number
|
2304
|
-
|
2305
|
-
def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil)
|
2306
|
-
@address = address
|
2307
|
-
@carrier = carrier
|
2308
|
-
@name = name
|
2309
|
-
@phone = phone
|
2310
|
-
@tracking_number = tracking_number
|
2311
|
-
end
|
2312
|
-
end
|
2313
|
-
# 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.
|
2314
|
-
attr_accessor :customer
|
2315
|
-
# 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.
|
2316
|
-
attr_accessor :description
|
2317
|
-
# Specifies which fields in the response should be expanded.
|
2318
|
-
attr_accessor :expand
|
2319
|
-
# 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.
|
2320
|
-
attr_accessor :fraud_details
|
2321
|
-
# 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`.
|
2322
|
-
attr_accessor :metadata
|
2323
|
-
# Provides industry-specific information about the charge.
|
2324
|
-
attr_accessor :payment_details
|
2325
|
-
# 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.
|
2326
|
-
attr_accessor :receipt_email
|
2327
|
-
# Shipping information for the charge. Helps prevent fraud on charges for physical goods.
|
2328
|
-
attr_accessor :shipping
|
2329
|
-
# 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.
|
2330
|
-
attr_accessor :transfer_group
|
2331
|
-
|
2332
|
-
def initialize(
|
2333
|
-
customer: nil,
|
2334
|
-
description: nil,
|
2335
|
-
expand: nil,
|
2336
|
-
fraud_details: nil,
|
2337
|
-
metadata: nil,
|
2338
|
-
payment_details: nil,
|
2339
|
-
receipt_email: nil,
|
2340
|
-
shipping: nil,
|
2341
|
-
transfer_group: nil
|
2342
|
-
)
|
2343
|
-
@customer = customer
|
2344
|
-
@description = description
|
2345
|
-
@expand = expand
|
2346
|
-
@fraud_details = fraud_details
|
2347
|
-
@metadata = metadata
|
2348
|
-
@payment_details = payment_details
|
2349
|
-
@receipt_email = receipt_email
|
2350
|
-
@shipping = shipping
|
2351
|
-
@transfer_group = transfer_group
|
2352
|
-
end
|
2353
|
-
end
|
2354
2111
|
|
2355
|
-
|
2356
|
-
|
2357
|
-
attr_accessor :expand
|
2358
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
2359
|
-
attr_accessor :limit
|
2360
|
-
# 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.
|
2361
|
-
attr_accessor :page
|
2362
|
-
# 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).
|
2363
|
-
attr_accessor :query
|
2364
|
-
|
2365
|
-
def initialize(expand: nil, limit: nil, page: nil, query: nil)
|
2366
|
-
@expand = expand
|
2367
|
-
@limit = limit
|
2368
|
-
@page = page
|
2369
|
-
@query = query
|
2112
|
+
def self.inner_class_types
|
2113
|
+
@inner_class_types = {}
|
2370
2114
|
end
|
2371
|
-
end
|
2372
|
-
|
2373
|
-
class CaptureParams < Stripe::RequestParams
|
2374
|
-
class PaymentDetails < Stripe::RequestParams
|
2375
|
-
class CarRental < Stripe::RequestParams
|
2376
|
-
class Affiliate < Stripe::RequestParams
|
2377
|
-
# The name of the affiliate that originated the purchase.
|
2378
|
-
attr_accessor :name
|
2379
|
-
|
2380
|
-
def initialize(name: nil)
|
2381
|
-
@name = name
|
2382
|
-
end
|
2383
|
-
end
|
2384
|
-
|
2385
|
-
class Delivery < Stripe::RequestParams
|
2386
|
-
class Recipient < Stripe::RequestParams
|
2387
|
-
# The email of the recipient the ticket is delivered to.
|
2388
|
-
attr_accessor :email
|
2389
|
-
# The name of the recipient the ticket is delivered to.
|
2390
|
-
attr_accessor :name
|
2391
|
-
# The phone number of the recipient the ticket is delivered to.
|
2392
|
-
attr_accessor :phone
|
2393
|
-
|
2394
|
-
def initialize(email: nil, name: nil, phone: nil)
|
2395
|
-
@email = email
|
2396
|
-
@name = name
|
2397
|
-
@phone = phone
|
2398
|
-
end
|
2399
|
-
end
|
2400
|
-
# The delivery method for the payment
|
2401
|
-
attr_accessor :mode
|
2402
|
-
# Details of the recipient.
|
2403
|
-
attr_accessor :recipient
|
2404
|
-
|
2405
|
-
def initialize(mode: nil, recipient: nil)
|
2406
|
-
@mode = mode
|
2407
|
-
@recipient = recipient
|
2408
|
-
end
|
2409
|
-
end
|
2410
|
-
|
2411
|
-
class Distance < Stripe::RequestParams
|
2412
|
-
# Distance traveled.
|
2413
|
-
attr_accessor :amount
|
2414
|
-
# Unit of measurement for the distance traveled. One of `miles` or `kilometers`.
|
2415
|
-
attr_accessor :unit
|
2416
|
-
|
2417
|
-
def initialize(amount: nil, unit: nil)
|
2418
|
-
@amount = amount
|
2419
|
-
@unit = unit
|
2420
|
-
end
|
2421
|
-
end
|
2422
|
-
|
2423
|
-
class Driver < Stripe::RequestParams
|
2424
|
-
# Driver's identification number.
|
2425
|
-
attr_accessor :driver_identification_number
|
2426
|
-
# Driver's tax number.
|
2427
|
-
attr_accessor :driver_tax_number
|
2428
|
-
# Full name of the person or entity on the car reservation.
|
2429
|
-
attr_accessor :name
|
2430
|
-
|
2431
|
-
def initialize(driver_identification_number: nil, driver_tax_number: nil, name: nil)
|
2432
|
-
@driver_identification_number = driver_identification_number
|
2433
|
-
@driver_tax_number = driver_tax_number
|
2434
|
-
@name = name
|
2435
|
-
end
|
2436
|
-
end
|
2437
|
-
|
2438
|
-
class PickupAddress < Stripe::RequestParams
|
2439
|
-
# City, district, suburb, town, or village.
|
2440
|
-
attr_accessor :city
|
2441
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2442
|
-
attr_accessor :country
|
2443
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
2444
|
-
attr_accessor :line1
|
2445
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2446
|
-
attr_accessor :line2
|
2447
|
-
# ZIP or postal code.
|
2448
|
-
attr_accessor :postal_code
|
2449
|
-
# State, county, province, or region.
|
2450
|
-
attr_accessor :state
|
2451
|
-
|
2452
|
-
def initialize(
|
2453
|
-
city: nil,
|
2454
|
-
country: nil,
|
2455
|
-
line1: nil,
|
2456
|
-
line2: nil,
|
2457
|
-
postal_code: nil,
|
2458
|
-
state: nil
|
2459
|
-
)
|
2460
|
-
@city = city
|
2461
|
-
@country = country
|
2462
|
-
@line1 = line1
|
2463
|
-
@line2 = line2
|
2464
|
-
@postal_code = postal_code
|
2465
|
-
@state = state
|
2466
|
-
end
|
2467
|
-
end
|
2468
|
-
|
2469
|
-
class ReturnAddress < Stripe::RequestParams
|
2470
|
-
# City, district, suburb, town, or village.
|
2471
|
-
attr_accessor :city
|
2472
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2473
|
-
attr_accessor :country
|
2474
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
2475
|
-
attr_accessor :line1
|
2476
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2477
|
-
attr_accessor :line2
|
2478
|
-
# ZIP or postal code.
|
2479
|
-
attr_accessor :postal_code
|
2480
|
-
# State, county, province, or region.
|
2481
|
-
attr_accessor :state
|
2482
|
-
|
2483
|
-
def initialize(
|
2484
|
-
city: nil,
|
2485
|
-
country: nil,
|
2486
|
-
line1: nil,
|
2487
|
-
line2: nil,
|
2488
|
-
postal_code: nil,
|
2489
|
-
state: nil
|
2490
|
-
)
|
2491
|
-
@city = city
|
2492
|
-
@country = country
|
2493
|
-
@line1 = line1
|
2494
|
-
@line2 = line2
|
2495
|
-
@postal_code = postal_code
|
2496
|
-
@state = state
|
2497
|
-
end
|
2498
|
-
end
|
2499
|
-
# Affiliate details for this purchase.
|
2500
|
-
attr_accessor :affiliate
|
2501
|
-
# The booking number associated with the car rental.
|
2502
|
-
attr_accessor :booking_number
|
2503
|
-
# Class code of the car.
|
2504
|
-
attr_accessor :car_class_code
|
2505
|
-
# Make of the car.
|
2506
|
-
attr_accessor :car_make
|
2507
|
-
# Model of the car.
|
2508
|
-
attr_accessor :car_model
|
2509
|
-
# The name of the rental car company.
|
2510
|
-
attr_accessor :company
|
2511
|
-
# The customer service phone number of the car rental company.
|
2512
|
-
attr_accessor :customer_service_phone_number
|
2513
|
-
# Number of days the car is being rented.
|
2514
|
-
attr_accessor :days_rented
|
2515
|
-
# Delivery details for this purchase.
|
2516
|
-
attr_accessor :delivery
|
2517
|
-
# The details of the distance traveled during the rental period.
|
2518
|
-
attr_accessor :distance
|
2519
|
-
# The details of the passengers in the travel reservation
|
2520
|
-
attr_accessor :drivers
|
2521
|
-
# List of additional charges being billed.
|
2522
|
-
attr_accessor :extra_charges
|
2523
|
-
# Indicates if the customer did not keep nor cancel their booking.
|
2524
|
-
attr_accessor :no_show
|
2525
|
-
# Car pick-up address.
|
2526
|
-
attr_accessor :pickup_address
|
2527
|
-
# Car pick-up time. Measured in seconds since the Unix epoch.
|
2528
|
-
attr_accessor :pickup_at
|
2529
|
-
# Name of the pickup location.
|
2530
|
-
attr_accessor :pickup_location_name
|
2531
|
-
# Rental rate.
|
2532
|
-
attr_accessor :rate_amount
|
2533
|
-
# The frequency at which the rate amount is applied. One of `day`, `week` or `month`
|
2534
|
-
attr_accessor :rate_interval
|
2535
|
-
# The name of the person or entity renting the car.
|
2536
|
-
attr_accessor :renter_name
|
2537
|
-
# Car return address.
|
2538
|
-
attr_accessor :return_address
|
2539
|
-
# Car return time. Measured in seconds since the Unix epoch.
|
2540
|
-
attr_accessor :return_at
|
2541
|
-
# Name of the return location.
|
2542
|
-
attr_accessor :return_location_name
|
2543
|
-
# Indicates whether the goods or services are tax-exempt or tax is not collected.
|
2544
|
-
attr_accessor :tax_exempt
|
2545
|
-
# The vehicle identification number.
|
2546
|
-
attr_accessor :vehicle_identification_number
|
2547
|
-
|
2548
|
-
def initialize(
|
2549
|
-
affiliate: nil,
|
2550
|
-
booking_number: nil,
|
2551
|
-
car_class_code: nil,
|
2552
|
-
car_make: nil,
|
2553
|
-
car_model: nil,
|
2554
|
-
company: nil,
|
2555
|
-
customer_service_phone_number: nil,
|
2556
|
-
days_rented: nil,
|
2557
|
-
delivery: nil,
|
2558
|
-
distance: nil,
|
2559
|
-
drivers: nil,
|
2560
|
-
extra_charges: nil,
|
2561
|
-
no_show: nil,
|
2562
|
-
pickup_address: nil,
|
2563
|
-
pickup_at: nil,
|
2564
|
-
pickup_location_name: nil,
|
2565
|
-
rate_amount: nil,
|
2566
|
-
rate_interval: nil,
|
2567
|
-
renter_name: nil,
|
2568
|
-
return_address: nil,
|
2569
|
-
return_at: nil,
|
2570
|
-
return_location_name: nil,
|
2571
|
-
tax_exempt: nil,
|
2572
|
-
vehicle_identification_number: nil
|
2573
|
-
)
|
2574
|
-
@affiliate = affiliate
|
2575
|
-
@booking_number = booking_number
|
2576
|
-
@car_class_code = car_class_code
|
2577
|
-
@car_make = car_make
|
2578
|
-
@car_model = car_model
|
2579
|
-
@company = company
|
2580
|
-
@customer_service_phone_number = customer_service_phone_number
|
2581
|
-
@days_rented = days_rented
|
2582
|
-
@delivery = delivery
|
2583
|
-
@distance = distance
|
2584
|
-
@drivers = drivers
|
2585
|
-
@extra_charges = extra_charges
|
2586
|
-
@no_show = no_show
|
2587
|
-
@pickup_address = pickup_address
|
2588
|
-
@pickup_at = pickup_at
|
2589
|
-
@pickup_location_name = pickup_location_name
|
2590
|
-
@rate_amount = rate_amount
|
2591
|
-
@rate_interval = rate_interval
|
2592
|
-
@renter_name = renter_name
|
2593
|
-
@return_address = return_address
|
2594
|
-
@return_at = return_at
|
2595
|
-
@return_location_name = return_location_name
|
2596
|
-
@tax_exempt = tax_exempt
|
2597
|
-
@vehicle_identification_number = vehicle_identification_number
|
2598
|
-
end
|
2599
|
-
end
|
2600
|
-
|
2601
|
-
class EventDetails < Stripe::RequestParams
|
2602
|
-
class Address < Stripe::RequestParams
|
2603
|
-
# City, district, suburb, town, or village.
|
2604
|
-
attr_accessor :city
|
2605
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2606
|
-
attr_accessor :country
|
2607
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
2608
|
-
attr_accessor :line1
|
2609
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2610
|
-
attr_accessor :line2
|
2611
|
-
# ZIP or postal code.
|
2612
|
-
attr_accessor :postal_code
|
2613
|
-
# State, county, province, or region.
|
2614
|
-
attr_accessor :state
|
2615
|
-
|
2616
|
-
def initialize(
|
2617
|
-
city: nil,
|
2618
|
-
country: nil,
|
2619
|
-
line1: nil,
|
2620
|
-
line2: nil,
|
2621
|
-
postal_code: nil,
|
2622
|
-
state: nil
|
2623
|
-
)
|
2624
|
-
@city = city
|
2625
|
-
@country = country
|
2626
|
-
@line1 = line1
|
2627
|
-
@line2 = line2
|
2628
|
-
@postal_code = postal_code
|
2629
|
-
@state = state
|
2630
|
-
end
|
2631
|
-
end
|
2632
|
-
|
2633
|
-
class Affiliate < Stripe::RequestParams
|
2634
|
-
# The name of the affiliate that originated the purchase.
|
2635
|
-
attr_accessor :name
|
2636
|
-
|
2637
|
-
def initialize(name: nil)
|
2638
|
-
@name = name
|
2639
|
-
end
|
2640
|
-
end
|
2641
|
-
|
2642
|
-
class Delivery < Stripe::RequestParams
|
2643
|
-
class Recipient < Stripe::RequestParams
|
2644
|
-
# The email of the recipient the ticket is delivered to.
|
2645
|
-
attr_accessor :email
|
2646
|
-
# The name of the recipient the ticket is delivered to.
|
2647
|
-
attr_accessor :name
|
2648
|
-
# The phone number of the recipient the ticket is delivered to.
|
2649
|
-
attr_accessor :phone
|
2650
|
-
|
2651
|
-
def initialize(email: nil, name: nil, phone: nil)
|
2652
|
-
@email = email
|
2653
|
-
@name = name
|
2654
|
-
@phone = phone
|
2655
|
-
end
|
2656
|
-
end
|
2657
|
-
# The delivery method for the payment
|
2658
|
-
attr_accessor :mode
|
2659
|
-
# Details of the recipient.
|
2660
|
-
attr_accessor :recipient
|
2661
|
-
|
2662
|
-
def initialize(mode: nil, recipient: nil)
|
2663
|
-
@mode = mode
|
2664
|
-
@recipient = recipient
|
2665
|
-
end
|
2666
|
-
end
|
2667
|
-
# Indicates if the tickets are digitally checked when entering the venue.
|
2668
|
-
attr_accessor :access_controlled_venue
|
2669
|
-
# The event location's address.
|
2670
|
-
attr_accessor :address
|
2671
|
-
# Affiliate details for this purchase.
|
2672
|
-
attr_accessor :affiliate
|
2673
|
-
# The name of the company
|
2674
|
-
attr_accessor :company
|
2675
|
-
# Delivery details for this purchase.
|
2676
|
-
attr_accessor :delivery
|
2677
|
-
# Event end time. Measured in seconds since the Unix epoch.
|
2678
|
-
attr_accessor :ends_at
|
2679
|
-
# Type of the event entertainment (concert, sports event etc)
|
2680
|
-
attr_accessor :genre
|
2681
|
-
# The name of the event.
|
2682
|
-
attr_accessor :name
|
2683
|
-
# Event start time. Measured in seconds since the Unix epoch.
|
2684
|
-
attr_accessor :starts_at
|
2685
|
-
|
2686
|
-
def initialize(
|
2687
|
-
access_controlled_venue: nil,
|
2688
|
-
address: nil,
|
2689
|
-
affiliate: nil,
|
2690
|
-
company: nil,
|
2691
|
-
delivery: nil,
|
2692
|
-
ends_at: nil,
|
2693
|
-
genre: nil,
|
2694
|
-
name: nil,
|
2695
|
-
starts_at: nil
|
2696
|
-
)
|
2697
|
-
@access_controlled_venue = access_controlled_venue
|
2698
|
-
@address = address
|
2699
|
-
@affiliate = affiliate
|
2700
|
-
@company = company
|
2701
|
-
@delivery = delivery
|
2702
|
-
@ends_at = ends_at
|
2703
|
-
@genre = genre
|
2704
|
-
@name = name
|
2705
|
-
@starts_at = starts_at
|
2706
|
-
end
|
2707
|
-
end
|
2708
|
-
|
2709
|
-
class Flight < Stripe::RequestParams
|
2710
|
-
class Affiliate < Stripe::RequestParams
|
2711
|
-
# The name of the affiliate that originated the purchase.
|
2712
|
-
attr_accessor :name
|
2713
|
-
|
2714
|
-
def initialize(name: nil)
|
2715
|
-
@name = name
|
2716
|
-
end
|
2717
|
-
end
|
2718
2115
|
|
2719
|
-
|
2720
|
-
|
2721
|
-
# The email of the recipient the ticket is delivered to.
|
2722
|
-
attr_accessor :email
|
2723
|
-
# The name of the recipient the ticket is delivered to.
|
2724
|
-
attr_accessor :name
|
2725
|
-
# The phone number of the recipient the ticket is delivered to.
|
2726
|
-
attr_accessor :phone
|
2727
|
-
|
2728
|
-
def initialize(email: nil, name: nil, phone: nil)
|
2729
|
-
@email = email
|
2730
|
-
@name = name
|
2731
|
-
@phone = phone
|
2732
|
-
end
|
2733
|
-
end
|
2734
|
-
# The delivery method for the payment
|
2735
|
-
attr_accessor :mode
|
2736
|
-
# Details of the recipient.
|
2737
|
-
attr_accessor :recipient
|
2738
|
-
|
2739
|
-
def initialize(mode: nil, recipient: nil)
|
2740
|
-
@mode = mode
|
2741
|
-
@recipient = recipient
|
2742
|
-
end
|
2743
|
-
end
|
2744
|
-
|
2745
|
-
class Passenger < Stripe::RequestParams
|
2746
|
-
# Full name of the person or entity on the flight reservation.
|
2747
|
-
attr_accessor :name
|
2748
|
-
|
2749
|
-
def initialize(name: nil)
|
2750
|
-
@name = name
|
2751
|
-
end
|
2752
|
-
end
|
2753
|
-
|
2754
|
-
class Segment < Stripe::RequestParams
|
2755
|
-
# The flight segment amount.
|
2756
|
-
attr_accessor :amount
|
2757
|
-
# The International Air Transport Association (IATA) airport code for the arrival airport.
|
2758
|
-
attr_accessor :arrival_airport
|
2759
|
-
# The arrival time for the flight segment. Measured in seconds since the Unix epoch.
|
2760
|
-
attr_accessor :arrives_at
|
2761
|
-
# The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
|
2762
|
-
attr_accessor :carrier
|
2763
|
-
# The departure time for the flight segment. Measured in seconds since the Unix epoch.
|
2764
|
-
attr_accessor :departs_at
|
2765
|
-
# The International Air Transport Association (IATA) airport code for the departure airport.
|
2766
|
-
attr_accessor :departure_airport
|
2767
|
-
# The flight number associated with the segment
|
2768
|
-
attr_accessor :flight_number
|
2769
|
-
# The fare class for the segment.
|
2770
|
-
attr_accessor :service_class
|
2771
|
-
|
2772
|
-
def initialize(
|
2773
|
-
amount: nil,
|
2774
|
-
arrival_airport: nil,
|
2775
|
-
arrives_at: nil,
|
2776
|
-
carrier: nil,
|
2777
|
-
departs_at: nil,
|
2778
|
-
departure_airport: nil,
|
2779
|
-
flight_number: nil,
|
2780
|
-
service_class: nil
|
2781
|
-
)
|
2782
|
-
@amount = amount
|
2783
|
-
@arrival_airport = arrival_airport
|
2784
|
-
@arrives_at = arrives_at
|
2785
|
-
@carrier = carrier
|
2786
|
-
@departs_at = departs_at
|
2787
|
-
@departure_airport = departure_airport
|
2788
|
-
@flight_number = flight_number
|
2789
|
-
@service_class = service_class
|
2790
|
-
end
|
2791
|
-
end
|
2792
|
-
# Affiliate details for this purchase.
|
2793
|
-
attr_accessor :affiliate
|
2794
|
-
# The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
|
2795
|
-
attr_accessor :agency_number
|
2796
|
-
# The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
|
2797
|
-
attr_accessor :carrier
|
2798
|
-
# Delivery details for this purchase.
|
2799
|
-
attr_accessor :delivery
|
2800
|
-
# The name of the person or entity on the reservation.
|
2801
|
-
attr_accessor :passenger_name
|
2802
|
-
# The details of the passengers in the travel reservation.
|
2803
|
-
attr_accessor :passengers
|
2804
|
-
# The individual flight segments associated with the trip.
|
2805
|
-
attr_accessor :segments
|
2806
|
-
# The ticket number associated with the travel reservation.
|
2807
|
-
attr_accessor :ticket_number
|
2808
|
-
|
2809
|
-
def initialize(
|
2810
|
-
affiliate: nil,
|
2811
|
-
agency_number: nil,
|
2812
|
-
carrier: nil,
|
2813
|
-
delivery: nil,
|
2814
|
-
passenger_name: nil,
|
2815
|
-
passengers: nil,
|
2816
|
-
segments: nil,
|
2817
|
-
ticket_number: nil
|
2818
|
-
)
|
2819
|
-
@affiliate = affiliate
|
2820
|
-
@agency_number = agency_number
|
2821
|
-
@carrier = carrier
|
2822
|
-
@delivery = delivery
|
2823
|
-
@passenger_name = passenger_name
|
2824
|
-
@passengers = passengers
|
2825
|
-
@segments = segments
|
2826
|
-
@ticket_number = ticket_number
|
2827
|
-
end
|
2828
|
-
end
|
2829
|
-
|
2830
|
-
class Lodging < Stripe::RequestParams
|
2831
|
-
class Address < Stripe::RequestParams
|
2832
|
-
# City, district, suburb, town, or village.
|
2833
|
-
attr_accessor :city
|
2834
|
-
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
2835
|
-
attr_accessor :country
|
2836
|
-
# Address line 1 (e.g., street, PO Box, or company name).
|
2837
|
-
attr_accessor :line1
|
2838
|
-
# Address line 2 (e.g., apartment, suite, unit, or building).
|
2839
|
-
attr_accessor :line2
|
2840
|
-
# ZIP or postal code.
|
2841
|
-
attr_accessor :postal_code
|
2842
|
-
# State, county, province, or region.
|
2843
|
-
attr_accessor :state
|
2844
|
-
|
2845
|
-
def initialize(
|
2846
|
-
city: nil,
|
2847
|
-
country: nil,
|
2848
|
-
line1: nil,
|
2849
|
-
line2: nil,
|
2850
|
-
postal_code: nil,
|
2851
|
-
state: nil
|
2852
|
-
)
|
2853
|
-
@city = city
|
2854
|
-
@country = country
|
2855
|
-
@line1 = line1
|
2856
|
-
@line2 = line2
|
2857
|
-
@postal_code = postal_code
|
2858
|
-
@state = state
|
2859
|
-
end
|
2860
|
-
end
|
2861
|
-
|
2862
|
-
class Affiliate < Stripe::RequestParams
|
2863
|
-
# The name of the affiliate that originated the purchase.
|
2864
|
-
attr_accessor :name
|
2865
|
-
|
2866
|
-
def initialize(name: nil)
|
2867
|
-
@name = name
|
2868
|
-
end
|
2869
|
-
end
|
2870
|
-
|
2871
|
-
class Delivery < Stripe::RequestParams
|
2872
|
-
class Recipient < Stripe::RequestParams
|
2873
|
-
# The email of the recipient the ticket is delivered to.
|
2874
|
-
attr_accessor :email
|
2875
|
-
# The name of the recipient the ticket is delivered to.
|
2876
|
-
attr_accessor :name
|
2877
|
-
# The phone number of the recipient the ticket is delivered to.
|
2878
|
-
attr_accessor :phone
|
2879
|
-
|
2880
|
-
def initialize(email: nil, name: nil, phone: nil)
|
2881
|
-
@email = email
|
2882
|
-
@name = name
|
2883
|
-
@phone = phone
|
2884
|
-
end
|
2885
|
-
end
|
2886
|
-
# The delivery method for the payment
|
2887
|
-
attr_accessor :mode
|
2888
|
-
# Details of the recipient.
|
2889
|
-
attr_accessor :recipient
|
2890
|
-
|
2891
|
-
def initialize(mode: nil, recipient: nil)
|
2892
|
-
@mode = mode
|
2893
|
-
@recipient = recipient
|
2894
|
-
end
|
2895
|
-
end
|
2896
|
-
|
2897
|
-
class Passenger < Stripe::RequestParams
|
2898
|
-
# Full name of the person or entity on the lodging reservation.
|
2899
|
-
attr_accessor :name
|
2900
|
-
|
2901
|
-
def initialize(name: nil)
|
2902
|
-
@name = name
|
2903
|
-
end
|
2904
|
-
end
|
2905
|
-
# The lodging location's address.
|
2906
|
-
attr_accessor :address
|
2907
|
-
# The number of adults on the booking
|
2908
|
-
attr_accessor :adults
|
2909
|
-
# Affiliate details for this purchase.
|
2910
|
-
attr_accessor :affiliate
|
2911
|
-
# The booking number associated with the lodging reservation.
|
2912
|
-
attr_accessor :booking_number
|
2913
|
-
# The lodging category
|
2914
|
-
attr_accessor :category
|
2915
|
-
# Lodging check-in time. Measured in seconds since the Unix epoch.
|
2916
|
-
attr_accessor :checkin_at
|
2917
|
-
# Lodging check-out time. Measured in seconds since the Unix epoch.
|
2918
|
-
attr_accessor :checkout_at
|
2919
|
-
# The customer service phone number of the lodging company.
|
2920
|
-
attr_accessor :customer_service_phone_number
|
2921
|
-
# The daily lodging room rate.
|
2922
|
-
attr_accessor :daily_room_rate_amount
|
2923
|
-
# Delivery details for this purchase.
|
2924
|
-
attr_accessor :delivery
|
2925
|
-
# List of additional charges being billed.
|
2926
|
-
attr_accessor :extra_charges
|
2927
|
-
# Indicates whether the lodging location is compliant with the Fire Safety Act.
|
2928
|
-
attr_accessor :fire_safety_act_compliance
|
2929
|
-
# The name of the lodging location.
|
2930
|
-
attr_accessor :name
|
2931
|
-
# Indicates if the customer did not keep their booking while failing to cancel the reservation.
|
2932
|
-
attr_accessor :no_show
|
2933
|
-
# The number of rooms on the booking
|
2934
|
-
attr_accessor :number_of_rooms
|
2935
|
-
# The details of the passengers in the travel reservation
|
2936
|
-
attr_accessor :passengers
|
2937
|
-
# The phone number of the lodging location.
|
2938
|
-
attr_accessor :property_phone_number
|
2939
|
-
# The room class for this purchase.
|
2940
|
-
attr_accessor :room_class
|
2941
|
-
# The number of room nights
|
2942
|
-
attr_accessor :room_nights
|
2943
|
-
# The total tax amount associating with the room reservation.
|
2944
|
-
attr_accessor :total_room_tax_amount
|
2945
|
-
# The total tax amount
|
2946
|
-
attr_accessor :total_tax_amount
|
2947
|
-
|
2948
|
-
def initialize(
|
2949
|
-
address: nil,
|
2950
|
-
adults: nil,
|
2951
|
-
affiliate: nil,
|
2952
|
-
booking_number: nil,
|
2953
|
-
category: nil,
|
2954
|
-
checkin_at: nil,
|
2955
|
-
checkout_at: nil,
|
2956
|
-
customer_service_phone_number: nil,
|
2957
|
-
daily_room_rate_amount: nil,
|
2958
|
-
delivery: nil,
|
2959
|
-
extra_charges: nil,
|
2960
|
-
fire_safety_act_compliance: nil,
|
2961
|
-
name: nil,
|
2962
|
-
no_show: nil,
|
2963
|
-
number_of_rooms: nil,
|
2964
|
-
passengers: nil,
|
2965
|
-
property_phone_number: nil,
|
2966
|
-
room_class: nil,
|
2967
|
-
room_nights: nil,
|
2968
|
-
total_room_tax_amount: nil,
|
2969
|
-
total_tax_amount: nil
|
2970
|
-
)
|
2971
|
-
@address = address
|
2972
|
-
@adults = adults
|
2973
|
-
@affiliate = affiliate
|
2974
|
-
@booking_number = booking_number
|
2975
|
-
@category = category
|
2976
|
-
@checkin_at = checkin_at
|
2977
|
-
@checkout_at = checkout_at
|
2978
|
-
@customer_service_phone_number = customer_service_phone_number
|
2979
|
-
@daily_room_rate_amount = daily_room_rate_amount
|
2980
|
-
@delivery = delivery
|
2981
|
-
@extra_charges = extra_charges
|
2982
|
-
@fire_safety_act_compliance = fire_safety_act_compliance
|
2983
|
-
@name = name
|
2984
|
-
@no_show = no_show
|
2985
|
-
@number_of_rooms = number_of_rooms
|
2986
|
-
@passengers = passengers
|
2987
|
-
@property_phone_number = property_phone_number
|
2988
|
-
@room_class = room_class
|
2989
|
-
@room_nights = room_nights
|
2990
|
-
@total_room_tax_amount = total_room_tax_amount
|
2991
|
-
@total_tax_amount = total_tax_amount
|
2992
|
-
end
|
2993
|
-
end
|
2994
|
-
|
2995
|
-
class Subscription < Stripe::RequestParams
|
2996
|
-
class Affiliate < Stripe::RequestParams
|
2997
|
-
# The name of the affiliate that originated the purchase.
|
2998
|
-
attr_accessor :name
|
2999
|
-
|
3000
|
-
def initialize(name: nil)
|
3001
|
-
@name = name
|
3002
|
-
end
|
3003
|
-
end
|
3004
|
-
|
3005
|
-
class BillingInterval < Stripe::RequestParams
|
3006
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
3007
|
-
attr_accessor :count
|
3008
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
3009
|
-
attr_accessor :interval
|
3010
|
-
|
3011
|
-
def initialize(count: nil, interval: nil)
|
3012
|
-
@count = count
|
3013
|
-
@interval = interval
|
3014
|
-
end
|
3015
|
-
end
|
3016
|
-
# Affiliate details for this purchase.
|
3017
|
-
attr_accessor :affiliate
|
3018
|
-
# Info whether the subscription will be auto renewed upon expiry.
|
3019
|
-
attr_accessor :auto_renewal
|
3020
|
-
# Subscription billing details for this purchase.
|
3021
|
-
attr_accessor :billing_interval
|
3022
|
-
# Subscription end time. Measured in seconds since the Unix epoch.
|
3023
|
-
attr_accessor :ends_at
|
3024
|
-
# Name of the product on subscription. e.g. Apple Music Subscription
|
3025
|
-
attr_accessor :name
|
3026
|
-
# Subscription start time. Measured in seconds since the Unix epoch.
|
3027
|
-
attr_accessor :starts_at
|
3028
|
-
|
3029
|
-
def initialize(
|
3030
|
-
affiliate: nil,
|
3031
|
-
auto_renewal: nil,
|
3032
|
-
billing_interval: nil,
|
3033
|
-
ends_at: nil,
|
3034
|
-
name: nil,
|
3035
|
-
starts_at: nil
|
3036
|
-
)
|
3037
|
-
@affiliate = affiliate
|
3038
|
-
@auto_renewal = auto_renewal
|
3039
|
-
@billing_interval = billing_interval
|
3040
|
-
@ends_at = ends_at
|
3041
|
-
@name = name
|
3042
|
-
@starts_at = starts_at
|
3043
|
-
end
|
3044
|
-
end
|
3045
|
-
# Car rental details for this PaymentIntent.
|
3046
|
-
attr_accessor :car_rental
|
3047
|
-
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
|
3048
|
-
attr_accessor :customer_reference
|
3049
|
-
# Event details for this PaymentIntent
|
3050
|
-
attr_accessor :event_details
|
3051
|
-
# Flight reservation details for this PaymentIntent
|
3052
|
-
attr_accessor :flight
|
3053
|
-
# Lodging reservation details for this PaymentIntent
|
3054
|
-
attr_accessor :lodging
|
3055
|
-
# A unique value assigned by the business to identify the transaction.
|
3056
|
-
attr_accessor :order_reference
|
3057
|
-
# Subscription details for this PaymentIntent
|
3058
|
-
attr_accessor :subscription
|
3059
|
-
|
3060
|
-
def initialize(
|
3061
|
-
car_rental: nil,
|
3062
|
-
customer_reference: nil,
|
3063
|
-
event_details: nil,
|
3064
|
-
flight: nil,
|
3065
|
-
lodging: nil,
|
3066
|
-
order_reference: nil,
|
3067
|
-
subscription: nil
|
3068
|
-
)
|
3069
|
-
@car_rental = car_rental
|
3070
|
-
@customer_reference = customer_reference
|
3071
|
-
@event_details = event_details
|
3072
|
-
@flight = flight
|
3073
|
-
@lodging = lodging
|
3074
|
-
@order_reference = order_reference
|
3075
|
-
@subscription = subscription
|
3076
|
-
end
|
3077
|
-
end
|
3078
|
-
|
3079
|
-
class TransferData < Stripe::RequestParams
|
3080
|
-
# The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account.
|
3081
|
-
attr_accessor :amount
|
3082
|
-
|
3083
|
-
def initialize(amount: nil)
|
3084
|
-
@amount = amount
|
3085
|
-
end
|
3086
|
-
end
|
3087
|
-
# The amount to capture, which must be less than or equal to the original amount.
|
3088
|
-
attr_accessor :amount
|
3089
|
-
# An application fee to add on to this charge.
|
3090
|
-
attr_accessor :application_fee
|
3091
|
-
# An application fee amount to add on to this charge, which must be less than or equal to the original amount.
|
3092
|
-
attr_accessor :application_fee_amount
|
3093
|
-
# Specifies which fields in the response should be expanded.
|
3094
|
-
attr_accessor :expand
|
3095
|
-
# Provides industry-specific information about the charge.
|
3096
|
-
attr_accessor :payment_details
|
3097
|
-
# 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.
|
3098
|
-
attr_accessor :receipt_email
|
3099
|
-
# 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).
|
3100
|
-
#
|
3101
|
-
# 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.
|
3102
|
-
attr_accessor :statement_descriptor
|
3103
|
-
# 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.
|
3104
|
-
attr_accessor :statement_descriptor_suffix
|
3105
|
-
# 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.
|
3106
|
-
attr_accessor :transfer_data
|
3107
|
-
# 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.
|
3108
|
-
attr_accessor :transfer_group
|
3109
|
-
|
3110
|
-
def initialize(
|
3111
|
-
amount: nil,
|
3112
|
-
application_fee: nil,
|
3113
|
-
application_fee_amount: nil,
|
3114
|
-
expand: nil,
|
3115
|
-
payment_details: nil,
|
3116
|
-
receipt_email: nil,
|
3117
|
-
statement_descriptor: nil,
|
3118
|
-
statement_descriptor_suffix: nil,
|
3119
|
-
transfer_data: nil,
|
3120
|
-
transfer_group: nil
|
3121
|
-
)
|
3122
|
-
@amount = amount
|
3123
|
-
@application_fee = application_fee
|
3124
|
-
@application_fee_amount = application_fee_amount
|
3125
|
-
@expand = expand
|
3126
|
-
@payment_details = payment_details
|
3127
|
-
@receipt_email = receipt_email
|
3128
|
-
@statement_descriptor = statement_descriptor
|
3129
|
-
@statement_descriptor_suffix = statement_descriptor_suffix
|
3130
|
-
@transfer_data = transfer_data
|
3131
|
-
@transfer_group = transfer_group
|
2116
|
+
def self.field_remappings
|
2117
|
+
@field_remappings = {}
|
3132
2118
|
end
|
3133
2119
|
end
|
3134
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).
|
@@ -3287,5 +2273,23 @@ module Stripe
|
|
3287
2273
|
opts: opts
|
3288
2274
|
)
|
3289
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
|
3290
2294
|
end
|
3291
2295
|
end
|