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
@@ -22,6 +22,14 @@ module Stripe
|
|
22
22
|
attr_reader :atm_fee
|
23
23
|
# The amount of cash requested by the cardholder.
|
24
24
|
attr_reader :cashback_amount
|
25
|
+
|
26
|
+
def self.inner_class_types
|
27
|
+
@inner_class_types = {}
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.field_remappings
|
31
|
+
@field_remappings = {}
|
32
|
+
end
|
25
33
|
end
|
26
34
|
|
27
35
|
class MerchantData < Stripe::StripeObject
|
@@ -47,6 +55,14 @@ module Stripe
|
|
47
55
|
attr_reader :terminal_id
|
48
56
|
# URL provided by the merchant on a 3DS request
|
49
57
|
attr_reader :url
|
58
|
+
|
59
|
+
def self.inner_class_types
|
60
|
+
@inner_class_types = {}
|
61
|
+
end
|
62
|
+
|
63
|
+
def self.field_remappings
|
64
|
+
@field_remappings = {}
|
65
|
+
end
|
50
66
|
end
|
51
67
|
|
52
68
|
class NetworkData < Stripe::StripeObject
|
@@ -56,6 +72,14 @@ module Stripe
|
|
56
72
|
attr_reader :processing_date
|
57
73
|
# Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions.
|
58
74
|
attr_reader :transaction_id
|
75
|
+
|
76
|
+
def self.inner_class_types
|
77
|
+
@inner_class_types = {}
|
78
|
+
end
|
79
|
+
|
80
|
+
def self.field_remappings
|
81
|
+
@field_remappings = {}
|
82
|
+
end
|
59
83
|
end
|
60
84
|
|
61
85
|
class PurchaseDetails < Stripe::StripeObject
|
@@ -71,17 +95,41 @@ module Stripe
|
|
71
95
|
attr_reader :user_id
|
72
96
|
# Vehicle number.
|
73
97
|
attr_reader :vehicle_number
|
98
|
+
|
99
|
+
def self.inner_class_types
|
100
|
+
@inner_class_types = {}
|
101
|
+
end
|
102
|
+
|
103
|
+
def self.field_remappings
|
104
|
+
@field_remappings = {}
|
105
|
+
end
|
74
106
|
end
|
75
107
|
|
76
108
|
class ReportedBreakdown < Stripe::StripeObject
|
77
109
|
class Fuel < Stripe::StripeObject
|
78
110
|
# Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
79
111
|
attr_reader :gross_amount_decimal
|
112
|
+
|
113
|
+
def self.inner_class_types
|
114
|
+
@inner_class_types = {}
|
115
|
+
end
|
116
|
+
|
117
|
+
def self.field_remappings
|
118
|
+
@field_remappings = {}
|
119
|
+
end
|
80
120
|
end
|
81
121
|
|
82
122
|
class NonFuel < Stripe::StripeObject
|
83
123
|
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
84
124
|
attr_reader :gross_amount_decimal
|
125
|
+
|
126
|
+
def self.inner_class_types
|
127
|
+
@inner_class_types = {}
|
128
|
+
end
|
129
|
+
|
130
|
+
def self.field_remappings
|
131
|
+
@field_remappings = {}
|
132
|
+
end
|
85
133
|
end
|
86
134
|
|
87
135
|
class Tax < Stripe::StripeObject
|
@@ -89,6 +137,14 @@ module Stripe
|
|
89
137
|
attr_reader :local_amount_decimal
|
90
138
|
# Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
91
139
|
attr_reader :national_amount_decimal
|
140
|
+
|
141
|
+
def self.inner_class_types
|
142
|
+
@inner_class_types = {}
|
143
|
+
end
|
144
|
+
|
145
|
+
def self.field_remappings
|
146
|
+
@field_remappings = {}
|
147
|
+
end
|
92
148
|
end
|
93
149
|
# Breakdown of fuel portion of the purchase.
|
94
150
|
attr_reader :fuel
|
@@ -96,6 +152,14 @@ module Stripe
|
|
96
152
|
attr_reader :non_fuel
|
97
153
|
# Information about tax included in this transaction.
|
98
154
|
attr_reader :tax
|
155
|
+
|
156
|
+
def self.inner_class_types
|
157
|
+
@inner_class_types = { fuel: Fuel, non_fuel: NonFuel, tax: Tax }
|
158
|
+
end
|
159
|
+
|
160
|
+
def self.field_remappings
|
161
|
+
@field_remappings = {}
|
162
|
+
end
|
99
163
|
end
|
100
164
|
# Answers to prompts presented to cardholder at point of sale.
|
101
165
|
attr_reader :cardholder_prompt_data
|
@@ -105,6 +169,17 @@ module Stripe
|
|
105
169
|
attr_reader :reported_breakdown
|
106
170
|
# The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
107
171
|
attr_reader :service_type
|
172
|
+
|
173
|
+
def self.inner_class_types
|
174
|
+
@inner_class_types = {
|
175
|
+
cardholder_prompt_data: CardholderPromptData,
|
176
|
+
reported_breakdown: ReportedBreakdown,
|
177
|
+
}
|
178
|
+
end
|
179
|
+
|
180
|
+
def self.field_remappings
|
181
|
+
@field_remappings = {}
|
182
|
+
end
|
108
183
|
end
|
109
184
|
|
110
185
|
class Flight < Stripe::StripeObject
|
@@ -121,6 +196,14 @@ module Stripe
|
|
121
196
|
attr_reader :service_class
|
122
197
|
# Whether a stopover is allowed on this flight.
|
123
198
|
attr_reader :stopover_allowed
|
199
|
+
|
200
|
+
def self.inner_class_types
|
201
|
+
@inner_class_types = {}
|
202
|
+
end
|
203
|
+
|
204
|
+
def self.field_remappings
|
205
|
+
@field_remappings = {}
|
206
|
+
end
|
124
207
|
end
|
125
208
|
# The time that the flight departed.
|
126
209
|
attr_reader :departure_at
|
@@ -132,6 +215,14 @@ module Stripe
|
|
132
215
|
attr_reader :segments
|
133
216
|
# The travel agency that issued the ticket.
|
134
217
|
attr_reader :travel_agency
|
218
|
+
|
219
|
+
def self.inner_class_types
|
220
|
+
@inner_class_types = { segments: Segment }
|
221
|
+
end
|
222
|
+
|
223
|
+
def self.field_remappings
|
224
|
+
@field_remappings = {}
|
225
|
+
end
|
135
226
|
end
|
136
227
|
|
137
228
|
class Fuel < Stripe::StripeObject
|
@@ -145,6 +236,14 @@ module Stripe
|
|
145
236
|
attr_reader :unit
|
146
237
|
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
147
238
|
attr_reader :unit_cost_decimal
|
239
|
+
|
240
|
+
def self.inner_class_types
|
241
|
+
@inner_class_types = {}
|
242
|
+
end
|
243
|
+
|
244
|
+
def self.field_remappings
|
245
|
+
@field_remappings = {}
|
246
|
+
end
|
148
247
|
end
|
149
248
|
|
150
249
|
class Lodging < Stripe::StripeObject
|
@@ -152,6 +251,14 @@ module Stripe
|
|
152
251
|
attr_reader :check_in_at
|
153
252
|
# The number of nights stayed at the lodging.
|
154
253
|
attr_reader :nights
|
254
|
+
|
255
|
+
def self.inner_class_types
|
256
|
+
@inner_class_types = {}
|
257
|
+
end
|
258
|
+
|
259
|
+
def self.field_remappings
|
260
|
+
@field_remappings = {}
|
261
|
+
end
|
155
262
|
end
|
156
263
|
|
157
264
|
class Receipt < Stripe::StripeObject
|
@@ -163,6 +270,14 @@ module Stripe
|
|
163
270
|
attr_reader :total
|
164
271
|
# The unit cost of the item in cents.
|
165
272
|
attr_reader :unit_cost
|
273
|
+
|
274
|
+
def self.inner_class_types
|
275
|
+
@inner_class_types = {}
|
276
|
+
end
|
277
|
+
|
278
|
+
def self.field_remappings
|
279
|
+
@field_remappings = {}
|
280
|
+
end
|
166
281
|
end
|
167
282
|
# Fleet-specific information for transactions using Fleet cards.
|
168
283
|
attr_reader :fleet
|
@@ -176,6 +291,20 @@ module Stripe
|
|
176
291
|
attr_reader :receipt
|
177
292
|
# A merchant-specific order number.
|
178
293
|
attr_reader :reference
|
294
|
+
|
295
|
+
def self.inner_class_types
|
296
|
+
@inner_class_types = {
|
297
|
+
fleet: Fleet,
|
298
|
+
flight: Flight,
|
299
|
+
fuel: Fuel,
|
300
|
+
lodging: Lodging,
|
301
|
+
receipt: Receipt,
|
302
|
+
}
|
303
|
+
end
|
304
|
+
|
305
|
+
def self.field_remappings
|
306
|
+
@field_remappings = {}
|
307
|
+
end
|
179
308
|
end
|
180
309
|
|
181
310
|
class Treasury < Stripe::StripeObject
|
@@ -183,709 +312,13 @@ module Stripe
|
|
183
312
|
attr_reader :received_credit
|
184
313
|
# The Treasury [ReceivedDebit](https://stripe.com/docs/api/treasury/received_debits) representing this Issuing transaction if it is a capture
|
185
314
|
attr_reader :received_debit
|
186
|
-
end
|
187
|
-
|
188
|
-
class ListParams < Stripe::RequestParams
|
189
|
-
class Created < Stripe::RequestParams
|
190
|
-
# Minimum value to filter by (exclusive)
|
191
|
-
attr_accessor :gt
|
192
|
-
# Minimum value to filter by (inclusive)
|
193
|
-
attr_accessor :gte
|
194
|
-
# Maximum value to filter by (exclusive)
|
195
|
-
attr_accessor :lt
|
196
|
-
# Maximum value to filter by (inclusive)
|
197
|
-
attr_accessor :lte
|
198
|
-
|
199
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
200
|
-
@gt = gt
|
201
|
-
@gte = gte
|
202
|
-
@lt = lt
|
203
|
-
@lte = lte
|
204
|
-
end
|
205
|
-
end
|
206
|
-
# Only return transactions that belong to the given card.
|
207
|
-
attr_accessor :card
|
208
|
-
# Only return transactions that belong to the given cardholder.
|
209
|
-
attr_accessor :cardholder
|
210
|
-
# Only return transactions that were created during the given date interval.
|
211
|
-
attr_accessor :created
|
212
|
-
# 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.
|
213
|
-
attr_accessor :ending_before
|
214
|
-
# Specifies which fields in the response should be expanded.
|
215
|
-
attr_accessor :expand
|
216
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
217
|
-
attr_accessor :limit
|
218
|
-
# Only return transactions that are associated with the given settlement.
|
219
|
-
attr_accessor :settlement
|
220
|
-
# 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.
|
221
|
-
attr_accessor :starting_after
|
222
|
-
# Only return transactions that have the given type. One of `capture` or `refund`.
|
223
|
-
attr_accessor :type
|
224
|
-
|
225
|
-
def initialize(
|
226
|
-
card: nil,
|
227
|
-
cardholder: nil,
|
228
|
-
created: nil,
|
229
|
-
ending_before: nil,
|
230
|
-
expand: nil,
|
231
|
-
limit: nil,
|
232
|
-
settlement: nil,
|
233
|
-
starting_after: nil,
|
234
|
-
type: nil
|
235
|
-
)
|
236
|
-
@card = card
|
237
|
-
@cardholder = cardholder
|
238
|
-
@created = created
|
239
|
-
@ending_before = ending_before
|
240
|
-
@expand = expand
|
241
|
-
@limit = limit
|
242
|
-
@settlement = settlement
|
243
|
-
@starting_after = starting_after
|
244
|
-
@type = type
|
245
|
-
end
|
246
|
-
end
|
247
|
-
|
248
|
-
class UpdateParams < Stripe::RequestParams
|
249
|
-
# Specifies which fields in the response should be expanded.
|
250
|
-
attr_accessor :expand
|
251
|
-
# 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`.
|
252
|
-
attr_accessor :metadata
|
253
|
-
|
254
|
-
def initialize(expand: nil, metadata: nil)
|
255
|
-
@expand = expand
|
256
|
-
@metadata = metadata
|
257
|
-
end
|
258
|
-
end
|
259
|
-
|
260
|
-
class RefundParams < Stripe::RequestParams
|
261
|
-
# Specifies which fields in the response should be expanded.
|
262
|
-
attr_accessor :expand
|
263
|
-
# The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
264
|
-
attr_accessor :refund_amount
|
265
|
-
|
266
|
-
def initialize(expand: nil, refund_amount: nil)
|
267
|
-
@expand = expand
|
268
|
-
@refund_amount = refund_amount
|
269
|
-
end
|
270
|
-
end
|
271
|
-
|
272
|
-
class CreateForceCaptureParams < Stripe::RequestParams
|
273
|
-
class MerchantData < Stripe::RequestParams
|
274
|
-
# A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values.
|
275
|
-
attr_accessor :category
|
276
|
-
# City where the seller is located
|
277
|
-
attr_accessor :city
|
278
|
-
# Country where the seller is located
|
279
|
-
attr_accessor :country
|
280
|
-
# Name of the seller
|
281
|
-
attr_accessor :name
|
282
|
-
# Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant.
|
283
|
-
attr_accessor :network_id
|
284
|
-
# Postal code where the seller is located
|
285
|
-
attr_accessor :postal_code
|
286
|
-
# State where the seller is located
|
287
|
-
attr_accessor :state
|
288
|
-
# An ID assigned by the seller to the location of the sale.
|
289
|
-
attr_accessor :terminal_id
|
290
|
-
# URL provided by the merchant on a 3DS request
|
291
|
-
attr_accessor :url
|
292
|
-
|
293
|
-
def initialize(
|
294
|
-
category: nil,
|
295
|
-
city: nil,
|
296
|
-
country: nil,
|
297
|
-
name: nil,
|
298
|
-
network_id: nil,
|
299
|
-
postal_code: nil,
|
300
|
-
state: nil,
|
301
|
-
terminal_id: nil,
|
302
|
-
url: nil
|
303
|
-
)
|
304
|
-
@category = category
|
305
|
-
@city = city
|
306
|
-
@country = country
|
307
|
-
@name = name
|
308
|
-
@network_id = network_id
|
309
|
-
@postal_code = postal_code
|
310
|
-
@state = state
|
311
|
-
@terminal_id = terminal_id
|
312
|
-
@url = url
|
313
|
-
end
|
314
|
-
end
|
315
|
-
|
316
|
-
class PurchaseDetails < Stripe::RequestParams
|
317
|
-
class Fleet < Stripe::RequestParams
|
318
|
-
class CardholderPromptData < Stripe::RequestParams
|
319
|
-
# Driver ID.
|
320
|
-
attr_accessor :driver_id
|
321
|
-
# Odometer reading.
|
322
|
-
attr_accessor :odometer
|
323
|
-
# An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
324
|
-
attr_accessor :unspecified_id
|
325
|
-
# User ID.
|
326
|
-
attr_accessor :user_id
|
327
|
-
# Vehicle number.
|
328
|
-
attr_accessor :vehicle_number
|
329
|
-
|
330
|
-
def initialize(
|
331
|
-
driver_id: nil,
|
332
|
-
odometer: nil,
|
333
|
-
unspecified_id: nil,
|
334
|
-
user_id: nil,
|
335
|
-
vehicle_number: nil
|
336
|
-
)
|
337
|
-
@driver_id = driver_id
|
338
|
-
@odometer = odometer
|
339
|
-
@unspecified_id = unspecified_id
|
340
|
-
@user_id = user_id
|
341
|
-
@vehicle_number = vehicle_number
|
342
|
-
end
|
343
|
-
end
|
344
|
-
|
345
|
-
class ReportedBreakdown < Stripe::RequestParams
|
346
|
-
class Fuel < Stripe::RequestParams
|
347
|
-
# Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
348
|
-
attr_accessor :gross_amount_decimal
|
349
|
-
|
350
|
-
def initialize(gross_amount_decimal: nil)
|
351
|
-
@gross_amount_decimal = gross_amount_decimal
|
352
|
-
end
|
353
|
-
end
|
354
|
-
|
355
|
-
class NonFuel < Stripe::RequestParams
|
356
|
-
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
357
|
-
attr_accessor :gross_amount_decimal
|
358
|
-
|
359
|
-
def initialize(gross_amount_decimal: nil)
|
360
|
-
@gross_amount_decimal = gross_amount_decimal
|
361
|
-
end
|
362
|
-
end
|
363
315
|
|
364
|
-
|
365
|
-
|
366
|
-
attr_accessor :local_amount_decimal
|
367
|
-
# Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
368
|
-
attr_accessor :national_amount_decimal
|
369
|
-
|
370
|
-
def initialize(local_amount_decimal: nil, national_amount_decimal: nil)
|
371
|
-
@local_amount_decimal = local_amount_decimal
|
372
|
-
@national_amount_decimal = national_amount_decimal
|
373
|
-
end
|
374
|
-
end
|
375
|
-
# Breakdown of fuel portion of the purchase.
|
376
|
-
attr_accessor :fuel
|
377
|
-
# Breakdown of non-fuel portion of the purchase.
|
378
|
-
attr_accessor :non_fuel
|
379
|
-
# Information about tax included in this transaction.
|
380
|
-
attr_accessor :tax
|
381
|
-
|
382
|
-
def initialize(fuel: nil, non_fuel: nil, tax: nil)
|
383
|
-
@fuel = fuel
|
384
|
-
@non_fuel = non_fuel
|
385
|
-
@tax = tax
|
386
|
-
end
|
387
|
-
end
|
388
|
-
# Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
389
|
-
attr_accessor :cardholder_prompt_data
|
390
|
-
# The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
391
|
-
attr_accessor :purchase_type
|
392
|
-
# More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
393
|
-
attr_accessor :reported_breakdown
|
394
|
-
# The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
395
|
-
attr_accessor :service_type
|
396
|
-
|
397
|
-
def initialize(
|
398
|
-
cardholder_prompt_data: nil,
|
399
|
-
purchase_type: nil,
|
400
|
-
reported_breakdown: nil,
|
401
|
-
service_type: nil
|
402
|
-
)
|
403
|
-
@cardholder_prompt_data = cardholder_prompt_data
|
404
|
-
@purchase_type = purchase_type
|
405
|
-
@reported_breakdown = reported_breakdown
|
406
|
-
@service_type = service_type
|
407
|
-
end
|
408
|
-
end
|
409
|
-
|
410
|
-
class Flight < Stripe::RequestParams
|
411
|
-
class Segment < Stripe::RequestParams
|
412
|
-
# The three-letter IATA airport code of the flight's destination.
|
413
|
-
attr_accessor :arrival_airport_code
|
414
|
-
# The airline carrier code.
|
415
|
-
attr_accessor :carrier
|
416
|
-
# The three-letter IATA airport code that the flight departed from.
|
417
|
-
attr_accessor :departure_airport_code
|
418
|
-
# The flight number.
|
419
|
-
attr_accessor :flight_number
|
420
|
-
# The flight's service class.
|
421
|
-
attr_accessor :service_class
|
422
|
-
# Whether a stopover is allowed on this flight.
|
423
|
-
attr_accessor :stopover_allowed
|
424
|
-
|
425
|
-
def initialize(
|
426
|
-
arrival_airport_code: nil,
|
427
|
-
carrier: nil,
|
428
|
-
departure_airport_code: nil,
|
429
|
-
flight_number: nil,
|
430
|
-
service_class: nil,
|
431
|
-
stopover_allowed: nil
|
432
|
-
)
|
433
|
-
@arrival_airport_code = arrival_airport_code
|
434
|
-
@carrier = carrier
|
435
|
-
@departure_airport_code = departure_airport_code
|
436
|
-
@flight_number = flight_number
|
437
|
-
@service_class = service_class
|
438
|
-
@stopover_allowed = stopover_allowed
|
439
|
-
end
|
440
|
-
end
|
441
|
-
# The time that the flight departed.
|
442
|
-
attr_accessor :departure_at
|
443
|
-
# The name of the passenger.
|
444
|
-
attr_accessor :passenger_name
|
445
|
-
# Whether the ticket is refundable.
|
446
|
-
attr_accessor :refundable
|
447
|
-
# The legs of the trip.
|
448
|
-
attr_accessor :segments
|
449
|
-
# The travel agency that issued the ticket.
|
450
|
-
attr_accessor :travel_agency
|
451
|
-
|
452
|
-
def initialize(
|
453
|
-
departure_at: nil,
|
454
|
-
passenger_name: nil,
|
455
|
-
refundable: nil,
|
456
|
-
segments: nil,
|
457
|
-
travel_agency: nil
|
458
|
-
)
|
459
|
-
@departure_at = departure_at
|
460
|
-
@passenger_name = passenger_name
|
461
|
-
@refundable = refundable
|
462
|
-
@segments = segments
|
463
|
-
@travel_agency = travel_agency
|
464
|
-
end
|
465
|
-
end
|
466
|
-
|
467
|
-
class Fuel < Stripe::RequestParams
|
468
|
-
# [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
469
|
-
attr_accessor :industry_product_code
|
470
|
-
# The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
471
|
-
attr_accessor :quantity_decimal
|
472
|
-
# The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
473
|
-
attr_accessor :type
|
474
|
-
# The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
475
|
-
attr_accessor :unit
|
476
|
-
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
477
|
-
attr_accessor :unit_cost_decimal
|
478
|
-
|
479
|
-
def initialize(
|
480
|
-
industry_product_code: nil,
|
481
|
-
quantity_decimal: nil,
|
482
|
-
type: nil,
|
483
|
-
unit: nil,
|
484
|
-
unit_cost_decimal: nil
|
485
|
-
)
|
486
|
-
@industry_product_code = industry_product_code
|
487
|
-
@quantity_decimal = quantity_decimal
|
488
|
-
@type = type
|
489
|
-
@unit = unit
|
490
|
-
@unit_cost_decimal = unit_cost_decimal
|
491
|
-
end
|
492
|
-
end
|
493
|
-
|
494
|
-
class Lodging < Stripe::RequestParams
|
495
|
-
# The time of checking into the lodging.
|
496
|
-
attr_accessor :check_in_at
|
497
|
-
# The number of nights stayed at the lodging.
|
498
|
-
attr_accessor :nights
|
499
|
-
|
500
|
-
def initialize(check_in_at: nil, nights: nil)
|
501
|
-
@check_in_at = check_in_at
|
502
|
-
@nights = nights
|
503
|
-
end
|
504
|
-
end
|
505
|
-
|
506
|
-
class Receipt < Stripe::RequestParams
|
507
|
-
# Attribute for param field description
|
508
|
-
attr_accessor :description
|
509
|
-
# Attribute for param field quantity
|
510
|
-
attr_accessor :quantity
|
511
|
-
# Attribute for param field total
|
512
|
-
attr_accessor :total
|
513
|
-
# Attribute for param field unit_cost
|
514
|
-
attr_accessor :unit_cost
|
515
|
-
|
516
|
-
def initialize(description: nil, quantity: nil, total: nil, unit_cost: nil)
|
517
|
-
@description = description
|
518
|
-
@quantity = quantity
|
519
|
-
@total = total
|
520
|
-
@unit_cost = unit_cost
|
521
|
-
end
|
522
|
-
end
|
523
|
-
# Fleet-specific information for transactions using Fleet cards.
|
524
|
-
attr_accessor :fleet
|
525
|
-
# Information about the flight that was purchased with this transaction.
|
526
|
-
attr_accessor :flight
|
527
|
-
# Information about fuel that was purchased with this transaction.
|
528
|
-
attr_accessor :fuel
|
529
|
-
# Information about lodging that was purchased with this transaction.
|
530
|
-
attr_accessor :lodging
|
531
|
-
# The line items in the purchase.
|
532
|
-
attr_accessor :receipt
|
533
|
-
# A merchant-specific order number.
|
534
|
-
attr_accessor :reference
|
535
|
-
|
536
|
-
def initialize(
|
537
|
-
fleet: nil,
|
538
|
-
flight: nil,
|
539
|
-
fuel: nil,
|
540
|
-
lodging: nil,
|
541
|
-
receipt: nil,
|
542
|
-
reference: nil
|
543
|
-
)
|
544
|
-
@fleet = fleet
|
545
|
-
@flight = flight
|
546
|
-
@fuel = fuel
|
547
|
-
@lodging = lodging
|
548
|
-
@receipt = receipt
|
549
|
-
@reference = reference
|
550
|
-
end
|
551
|
-
end
|
552
|
-
# The total amount to attempt to capture. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
553
|
-
attr_accessor :amount
|
554
|
-
# Card associated with this transaction.
|
555
|
-
attr_accessor :card
|
556
|
-
# The currency of the capture. If not provided, defaults to the currency of the card. 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).
|
557
|
-
attr_accessor :currency
|
558
|
-
# Specifies which fields in the response should be expanded.
|
559
|
-
attr_accessor :expand
|
560
|
-
# Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
|
561
|
-
attr_accessor :merchant_data
|
562
|
-
# Additional purchase information that is optionally provided by the merchant.
|
563
|
-
attr_accessor :purchase_details
|
564
|
-
|
565
|
-
def initialize(
|
566
|
-
amount: nil,
|
567
|
-
card: nil,
|
568
|
-
currency: nil,
|
569
|
-
expand: nil,
|
570
|
-
merchant_data: nil,
|
571
|
-
purchase_details: nil
|
572
|
-
)
|
573
|
-
@amount = amount
|
574
|
-
@card = card
|
575
|
-
@currency = currency
|
576
|
-
@expand = expand
|
577
|
-
@merchant_data = merchant_data
|
578
|
-
@purchase_details = purchase_details
|
579
|
-
end
|
580
|
-
end
|
581
|
-
|
582
|
-
class CreateUnlinkedRefundParams < Stripe::RequestParams
|
583
|
-
class MerchantData < Stripe::RequestParams
|
584
|
-
# A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values.
|
585
|
-
attr_accessor :category
|
586
|
-
# City where the seller is located
|
587
|
-
attr_accessor :city
|
588
|
-
# Country where the seller is located
|
589
|
-
attr_accessor :country
|
590
|
-
# Name of the seller
|
591
|
-
attr_accessor :name
|
592
|
-
# Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant.
|
593
|
-
attr_accessor :network_id
|
594
|
-
# Postal code where the seller is located
|
595
|
-
attr_accessor :postal_code
|
596
|
-
# State where the seller is located
|
597
|
-
attr_accessor :state
|
598
|
-
# An ID assigned by the seller to the location of the sale.
|
599
|
-
attr_accessor :terminal_id
|
600
|
-
# URL provided by the merchant on a 3DS request
|
601
|
-
attr_accessor :url
|
602
|
-
|
603
|
-
def initialize(
|
604
|
-
category: nil,
|
605
|
-
city: nil,
|
606
|
-
country: nil,
|
607
|
-
name: nil,
|
608
|
-
network_id: nil,
|
609
|
-
postal_code: nil,
|
610
|
-
state: nil,
|
611
|
-
terminal_id: nil,
|
612
|
-
url: nil
|
613
|
-
)
|
614
|
-
@category = category
|
615
|
-
@city = city
|
616
|
-
@country = country
|
617
|
-
@name = name
|
618
|
-
@network_id = network_id
|
619
|
-
@postal_code = postal_code
|
620
|
-
@state = state
|
621
|
-
@terminal_id = terminal_id
|
622
|
-
@url = url
|
623
|
-
end
|
316
|
+
def self.inner_class_types
|
317
|
+
@inner_class_types = {}
|
624
318
|
end
|
625
319
|
|
626
|
-
|
627
|
-
|
628
|
-
class CardholderPromptData < Stripe::RequestParams
|
629
|
-
# Driver ID.
|
630
|
-
attr_accessor :driver_id
|
631
|
-
# Odometer reading.
|
632
|
-
attr_accessor :odometer
|
633
|
-
# An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
634
|
-
attr_accessor :unspecified_id
|
635
|
-
# User ID.
|
636
|
-
attr_accessor :user_id
|
637
|
-
# Vehicle number.
|
638
|
-
attr_accessor :vehicle_number
|
639
|
-
|
640
|
-
def initialize(
|
641
|
-
driver_id: nil,
|
642
|
-
odometer: nil,
|
643
|
-
unspecified_id: nil,
|
644
|
-
user_id: nil,
|
645
|
-
vehicle_number: nil
|
646
|
-
)
|
647
|
-
@driver_id = driver_id
|
648
|
-
@odometer = odometer
|
649
|
-
@unspecified_id = unspecified_id
|
650
|
-
@user_id = user_id
|
651
|
-
@vehicle_number = vehicle_number
|
652
|
-
end
|
653
|
-
end
|
654
|
-
|
655
|
-
class ReportedBreakdown < Stripe::RequestParams
|
656
|
-
class Fuel < Stripe::RequestParams
|
657
|
-
# Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
658
|
-
attr_accessor :gross_amount_decimal
|
659
|
-
|
660
|
-
def initialize(gross_amount_decimal: nil)
|
661
|
-
@gross_amount_decimal = gross_amount_decimal
|
662
|
-
end
|
663
|
-
end
|
664
|
-
|
665
|
-
class NonFuel < Stripe::RequestParams
|
666
|
-
# Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
667
|
-
attr_accessor :gross_amount_decimal
|
668
|
-
|
669
|
-
def initialize(gross_amount_decimal: nil)
|
670
|
-
@gross_amount_decimal = gross_amount_decimal
|
671
|
-
end
|
672
|
-
end
|
673
|
-
|
674
|
-
class Tax < Stripe::RequestParams
|
675
|
-
# Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
676
|
-
attr_accessor :local_amount_decimal
|
677
|
-
# Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
678
|
-
attr_accessor :national_amount_decimal
|
679
|
-
|
680
|
-
def initialize(local_amount_decimal: nil, national_amount_decimal: nil)
|
681
|
-
@local_amount_decimal = local_amount_decimal
|
682
|
-
@national_amount_decimal = national_amount_decimal
|
683
|
-
end
|
684
|
-
end
|
685
|
-
# Breakdown of fuel portion of the purchase.
|
686
|
-
attr_accessor :fuel
|
687
|
-
# Breakdown of non-fuel portion of the purchase.
|
688
|
-
attr_accessor :non_fuel
|
689
|
-
# Information about tax included in this transaction.
|
690
|
-
attr_accessor :tax
|
691
|
-
|
692
|
-
def initialize(fuel: nil, non_fuel: nil, tax: nil)
|
693
|
-
@fuel = fuel
|
694
|
-
@non_fuel = non_fuel
|
695
|
-
@tax = tax
|
696
|
-
end
|
697
|
-
end
|
698
|
-
# Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
699
|
-
attr_accessor :cardholder_prompt_data
|
700
|
-
# The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
701
|
-
attr_accessor :purchase_type
|
702
|
-
# More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
703
|
-
attr_accessor :reported_breakdown
|
704
|
-
# The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
705
|
-
attr_accessor :service_type
|
706
|
-
|
707
|
-
def initialize(
|
708
|
-
cardholder_prompt_data: nil,
|
709
|
-
purchase_type: nil,
|
710
|
-
reported_breakdown: nil,
|
711
|
-
service_type: nil
|
712
|
-
)
|
713
|
-
@cardholder_prompt_data = cardholder_prompt_data
|
714
|
-
@purchase_type = purchase_type
|
715
|
-
@reported_breakdown = reported_breakdown
|
716
|
-
@service_type = service_type
|
717
|
-
end
|
718
|
-
end
|
719
|
-
|
720
|
-
class Flight < Stripe::RequestParams
|
721
|
-
class Segment < Stripe::RequestParams
|
722
|
-
# The three-letter IATA airport code of the flight's destination.
|
723
|
-
attr_accessor :arrival_airport_code
|
724
|
-
# The airline carrier code.
|
725
|
-
attr_accessor :carrier
|
726
|
-
# The three-letter IATA airport code that the flight departed from.
|
727
|
-
attr_accessor :departure_airport_code
|
728
|
-
# The flight number.
|
729
|
-
attr_accessor :flight_number
|
730
|
-
# The flight's service class.
|
731
|
-
attr_accessor :service_class
|
732
|
-
# Whether a stopover is allowed on this flight.
|
733
|
-
attr_accessor :stopover_allowed
|
734
|
-
|
735
|
-
def initialize(
|
736
|
-
arrival_airport_code: nil,
|
737
|
-
carrier: nil,
|
738
|
-
departure_airport_code: nil,
|
739
|
-
flight_number: nil,
|
740
|
-
service_class: nil,
|
741
|
-
stopover_allowed: nil
|
742
|
-
)
|
743
|
-
@arrival_airport_code = arrival_airport_code
|
744
|
-
@carrier = carrier
|
745
|
-
@departure_airport_code = departure_airport_code
|
746
|
-
@flight_number = flight_number
|
747
|
-
@service_class = service_class
|
748
|
-
@stopover_allowed = stopover_allowed
|
749
|
-
end
|
750
|
-
end
|
751
|
-
# The time that the flight departed.
|
752
|
-
attr_accessor :departure_at
|
753
|
-
# The name of the passenger.
|
754
|
-
attr_accessor :passenger_name
|
755
|
-
# Whether the ticket is refundable.
|
756
|
-
attr_accessor :refundable
|
757
|
-
# The legs of the trip.
|
758
|
-
attr_accessor :segments
|
759
|
-
# The travel agency that issued the ticket.
|
760
|
-
attr_accessor :travel_agency
|
761
|
-
|
762
|
-
def initialize(
|
763
|
-
departure_at: nil,
|
764
|
-
passenger_name: nil,
|
765
|
-
refundable: nil,
|
766
|
-
segments: nil,
|
767
|
-
travel_agency: nil
|
768
|
-
)
|
769
|
-
@departure_at = departure_at
|
770
|
-
@passenger_name = passenger_name
|
771
|
-
@refundable = refundable
|
772
|
-
@segments = segments
|
773
|
-
@travel_agency = travel_agency
|
774
|
-
end
|
775
|
-
end
|
776
|
-
|
777
|
-
class Fuel < Stripe::RequestParams
|
778
|
-
# [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
779
|
-
attr_accessor :industry_product_code
|
780
|
-
# The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
781
|
-
attr_accessor :quantity_decimal
|
782
|
-
# The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
783
|
-
attr_accessor :type
|
784
|
-
# The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
785
|
-
attr_accessor :unit
|
786
|
-
# The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
787
|
-
attr_accessor :unit_cost_decimal
|
788
|
-
|
789
|
-
def initialize(
|
790
|
-
industry_product_code: nil,
|
791
|
-
quantity_decimal: nil,
|
792
|
-
type: nil,
|
793
|
-
unit: nil,
|
794
|
-
unit_cost_decimal: nil
|
795
|
-
)
|
796
|
-
@industry_product_code = industry_product_code
|
797
|
-
@quantity_decimal = quantity_decimal
|
798
|
-
@type = type
|
799
|
-
@unit = unit
|
800
|
-
@unit_cost_decimal = unit_cost_decimal
|
801
|
-
end
|
802
|
-
end
|
803
|
-
|
804
|
-
class Lodging < Stripe::RequestParams
|
805
|
-
# The time of checking into the lodging.
|
806
|
-
attr_accessor :check_in_at
|
807
|
-
# The number of nights stayed at the lodging.
|
808
|
-
attr_accessor :nights
|
809
|
-
|
810
|
-
def initialize(check_in_at: nil, nights: nil)
|
811
|
-
@check_in_at = check_in_at
|
812
|
-
@nights = nights
|
813
|
-
end
|
814
|
-
end
|
815
|
-
|
816
|
-
class Receipt < Stripe::RequestParams
|
817
|
-
# Attribute for param field description
|
818
|
-
attr_accessor :description
|
819
|
-
# Attribute for param field quantity
|
820
|
-
attr_accessor :quantity
|
821
|
-
# Attribute for param field total
|
822
|
-
attr_accessor :total
|
823
|
-
# Attribute for param field unit_cost
|
824
|
-
attr_accessor :unit_cost
|
825
|
-
|
826
|
-
def initialize(description: nil, quantity: nil, total: nil, unit_cost: nil)
|
827
|
-
@description = description
|
828
|
-
@quantity = quantity
|
829
|
-
@total = total
|
830
|
-
@unit_cost = unit_cost
|
831
|
-
end
|
832
|
-
end
|
833
|
-
# Fleet-specific information for transactions using Fleet cards.
|
834
|
-
attr_accessor :fleet
|
835
|
-
# Information about the flight that was purchased with this transaction.
|
836
|
-
attr_accessor :flight
|
837
|
-
# Information about fuel that was purchased with this transaction.
|
838
|
-
attr_accessor :fuel
|
839
|
-
# Information about lodging that was purchased with this transaction.
|
840
|
-
attr_accessor :lodging
|
841
|
-
# The line items in the purchase.
|
842
|
-
attr_accessor :receipt
|
843
|
-
# A merchant-specific order number.
|
844
|
-
attr_accessor :reference
|
845
|
-
|
846
|
-
def initialize(
|
847
|
-
fleet: nil,
|
848
|
-
flight: nil,
|
849
|
-
fuel: nil,
|
850
|
-
lodging: nil,
|
851
|
-
receipt: nil,
|
852
|
-
reference: nil
|
853
|
-
)
|
854
|
-
@fleet = fleet
|
855
|
-
@flight = flight
|
856
|
-
@fuel = fuel
|
857
|
-
@lodging = lodging
|
858
|
-
@receipt = receipt
|
859
|
-
@reference = reference
|
860
|
-
end
|
861
|
-
end
|
862
|
-
# The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
863
|
-
attr_accessor :amount
|
864
|
-
# Card associated with this unlinked refund transaction.
|
865
|
-
attr_accessor :card
|
866
|
-
# The currency of the unlinked refund. If not provided, defaults to the currency of the card. 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).
|
867
|
-
attr_accessor :currency
|
868
|
-
# Specifies which fields in the response should be expanded.
|
869
|
-
attr_accessor :expand
|
870
|
-
# Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
|
871
|
-
attr_accessor :merchant_data
|
872
|
-
# Additional purchase information that is optionally provided by the merchant.
|
873
|
-
attr_accessor :purchase_details
|
874
|
-
|
875
|
-
def initialize(
|
876
|
-
amount: nil,
|
877
|
-
card: nil,
|
878
|
-
currency: nil,
|
879
|
-
expand: nil,
|
880
|
-
merchant_data: nil,
|
881
|
-
purchase_details: nil
|
882
|
-
)
|
883
|
-
@amount = amount
|
884
|
-
@card = card
|
885
|
-
@currency = currency
|
886
|
-
@expand = expand
|
887
|
-
@merchant_data = merchant_data
|
888
|
-
@purchase_details = purchase_details
|
320
|
+
def self.field_remappings
|
321
|
+
@field_remappings = {}
|
889
322
|
end
|
890
323
|
end
|
891
324
|
# The transaction amount, which will be reflected in your balance. This amount is in your currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
@@ -924,8 +357,6 @@ module Stripe
|
|
924
357
|
attr_reader :object
|
925
358
|
# Additional purchase information that is optionally provided by the merchant.
|
926
359
|
attr_reader :purchase_details
|
927
|
-
# The ID of the [settlement](https://stripe.com/docs/api/issuing/settlements) to which this transaction belongs.
|
928
|
-
attr_reader :settlement
|
929
360
|
# [Token](https://stripe.com/docs/api/issuing/tokens/object) object used for this transaction. If a network token was not used for this transaction, this field will be null.
|
930
361
|
attr_reader :token
|
931
362
|
# [Treasury](https://stripe.com/docs/api/treasury) details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts
|
@@ -1005,6 +436,20 @@ module Stripe
|
|
1005
436
|
)
|
1006
437
|
end
|
1007
438
|
end
|
439
|
+
|
440
|
+
def self.inner_class_types
|
441
|
+
@inner_class_types = {
|
442
|
+
amount_details: AmountDetails,
|
443
|
+
merchant_data: MerchantData,
|
444
|
+
network_data: NetworkData,
|
445
|
+
purchase_details: PurchaseDetails,
|
446
|
+
treasury: Treasury,
|
447
|
+
}
|
448
|
+
end
|
449
|
+
|
450
|
+
def self.field_remappings
|
451
|
+
@field_remappings = {}
|
452
|
+
end
|
1008
453
|
end
|
1009
454
|
end
|
1010
455
|
end
|