stripe 13.4.1 → 17.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_operations/request.rb +1 -0
- data/lib/stripe/api_operations/save.rb +2 -1
- data/lib/stripe/api_operations/singleton_save.rb +2 -1
- data/lib/stripe/api_requestor.rb +12 -4
- data/lib/stripe/api_resource.rb +13 -3
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/errors.rb +0 -7
- data/lib/stripe/event_types.rb +20 -5
- data/lib/stripe/events/unknown_event_notification.rb +19 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +115 -15
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +93 -6
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +44 -0
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/object_types.rb +11 -4
- data/lib/stripe/params/account_capability_list_params.rb +13 -0
- data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_capability_update_params.rb +18 -0
- data/lib/stripe/params/account_create_params.rb +2083 -0
- data/lib/stripe/params/account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_create_params.rb +134 -0
- data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
- data/lib/stripe/params/account_external_account_list_params.rb +25 -0
- data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_external_account_update_params.rb +91 -0
- data/lib/stripe/params/account_link_create_params.rb +52 -0
- data/lib/stripe/params/account_list_params.rb +42 -0
- data/lib/stripe/params/account_login_link_create_params.rb +13 -0
- data/lib/stripe/params/account_person_create_params.rb +435 -0
- data/lib/stripe/params/account_person_delete_params.rb +6 -0
- data/lib/stripe/params/account_person_list_params.rb +61 -0
- data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_person_update_params.rb +435 -0
- data/lib/stripe/params/account_persons_params.rb +61 -0
- data/lib/stripe/params/account_reject_params.rb +16 -0
- data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
- data/lib/stripe/params/account_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_session_create_params.rb +598 -0
- data/lib/stripe/params/account_update_params.rb +2030 -0
- data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
- data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
- data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
- data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_list_params.rb +52 -0
- data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
- data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
- data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
- data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
- data/lib/stripe/params/apps/secret_create_params.rb +38 -0
- data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
- data/lib/stripe/params/apps/secret_find_params.rb +32 -0
- data/lib/stripe/params/apps/secret_list_params.rb +38 -0
- data/lib/stripe/params/balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
- data/lib/stripe/params/balance_settings_update_params.rb +67 -0
- data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
- data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
- data/lib/stripe/params/billing/alert_create_params.rb +52 -0
- data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/alert_list_params.rb +37 -0
- data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +54 -0
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +37 -0
- data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_create_params.rb +103 -0
- data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_list_params.rb +33 -0
- data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
- data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
- data/lib/stripe/params/billing/meter_create_params.rb +70 -0
- data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
- data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
- data/lib/stripe/params/billing/meter_list_params.rb +27 -0
- data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
- data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing/meter_update_params.rb +18 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +225 -0
- data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
- data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +231 -0
- data/lib/stripe/params/billing_portal/session_create_params.rb +179 -0
- data/lib/stripe/params/charge_capture_params.rb +57 -0
- data/lib/stripe/params/charge_create_params.rb +172 -0
- data/lib/stripe/params/charge_list_params.rb +60 -0
- data/lib/stripe/params/charge_retrieve_params.rb +13 -0
- data/lib/stripe/params/charge_search_params.rb +22 -0
- data/lib/stripe/params/charge_update_params.rb +102 -0
- data/lib/stripe/params/checkout/session_create_params.rb +2445 -0
- data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
- data/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
- data/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
- data/lib/stripe/params/checkout/session_list_params.rb +83 -0
- data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/checkout/session_update_params.rb +179 -0
- data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
- data/lib/stripe/params/climate/order_create_params.rb +49 -0
- data/lib/stripe/params/climate/order_list_params.rb +24 -0
- data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/order_update_params.rb +29 -0
- data/lib/stripe/params/climate/product_list_params.rb +24 -0
- data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
- data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
- data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
- data/lib/stripe/params/confirmation_token_create_params.rb +650 -0
- data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
- data/lib/stripe/params/country_spec_list_params.rb +22 -0
- data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_create_params.rb +80 -0
- data/lib/stripe/params/coupon_delete_params.rb +6 -0
- data/lib/stripe/params/coupon_list_params.rb +42 -0
- data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
- data/lib/stripe/params/coupon_update_params.rb +30 -0
- data/lib/stripe/params/credit_note_create_params.rb +144 -0
- data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
- data/lib/stripe/params/credit_note_list_params.rb +56 -0
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +156 -0
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +156 -0
- data/lib/stripe/params/credit_note_preview_params.rb +144 -0
- data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
- data/lib/stripe/params/credit_note_update_params.rb +19 -0
- data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +22 -0
- data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
- data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
- data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
- data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
- data/lib/stripe/params/customer_create_params.rb +259 -0
- data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
- data/lib/stripe/params/customer_delete_params.rb +6 -0
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
- data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
- data/lib/stripe/params/customer_list_params.rb +56 -0
- data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
- data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
- data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
- data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
- data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
- data/lib/stripe/params/customer_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
- data/lib/stripe/params/customer_search_params.rb +22 -0
- data/lib/stripe/params/customer_session_create_params.rb +100 -0
- data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
- data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
- data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/customer_update_params.rb +243 -0
- data/lib/stripe/params/dispute_close_params.rb +13 -0
- data/lib/stripe/params/dispute_list_params.rb +56 -0
- data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
- data/lib/stripe/params/dispute_update_params.rb +308 -0
- data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
- data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
- data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
- data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
- data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
- data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
- data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
- data/lib/stripe/params/event_list_params.rb +60 -0
- data/lib/stripe/params/event_retrieve_params.rb +13 -0
- data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
- data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/file_create_params.rb +36 -0
- data/lib/stripe/params/file_link_create_params.rb +22 -0
- data/lib/stripe/params/file_link_list_params.rb +56 -0
- data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/file_link_update_params.rb +19 -0
- data/lib/stripe/params/file_list_params.rb +52 -0
- data/lib/stripe/params/file_retrieve_params.rb +13 -0
- data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_list_params.rb +48 -0
- data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
- data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
- data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +65 -0
- data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
- data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
- data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
- data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
- data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_create_params.rb +107 -0
- data/lib/stripe/params/identity/verification_session_list_params.rb +62 -0
- data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
- data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +231 -0
- data/lib/stripe/params/invoice_attach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_create_params.rb +589 -0
- data/lib/stripe/params/invoice_create_preview_params.rb +993 -0
- data/lib/stripe/params/invoice_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +145 -0
- data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
- data/lib/stripe/params/invoice_item_list_params.rb +60 -0
- data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_item_update_params.rb +129 -0
- data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
- data/lib/stripe/params/invoice_line_item_update_params.rb +217 -0
- data/lib/stripe/params/invoice_list_params.rb +86 -0
- data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
- data/lib/stripe/params/invoice_pay_params.rb +41 -0
- data/lib/stripe/params/invoice_payment_list_params.rb +50 -0
- data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
- data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
- data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
- data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
- data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
- data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_search_params.rb +22 -0
- data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
- data/lib/stripe/params/invoice_update_lines_params.rb +231 -0
- data/lib/stripe/params/invoice_update_params.rb +557 -0
- data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
- data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
- data/lib/stripe/params/issuing/authorization_create_params.rb +357 -0
- data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
- data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
- data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
- data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
- data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
- data/lib/stripe/params/issuing/card_create_params.rb +213 -0
- data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_list_params.rb +78 -0
- data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
- data/lib/stripe/params/issuing/card_update_params.rb +181 -0
- data/lib/stripe/params/issuing/cardholder_create_params.rb +238 -0
- data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
- data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -0
- data/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
- data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
- data/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
- data/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
- data/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
- data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
- data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
- data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
- data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
- data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_list_params.rb +58 -0
- data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/token_update_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +62 -0
- data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
- data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
- data/lib/stripe/params/mandate_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
- data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +54 -0
- data/lib/stripe/params/payment_intent_confirm_params.rb +2379 -0
- data/lib/stripe/params/payment_intent_create_params.rb +2480 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +48 -0
- data/lib/stripe/params/payment_intent_list_params.rb +52 -0
- data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/payment_intent_search_params.rb +22 -0
- data/lib/stripe/params/payment_intent_update_params.rb +2353 -0
- data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/payment_link_create_params.rb +776 -0
- data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
- data/lib/stripe/params/payment_link_list_params.rb +25 -0
- data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_link_update_params.rb +564 -0
- data/lib/stripe/params/payment_method_attach_params.rb +16 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +1135 -0
- data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
- data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +1135 -0
- data/lib/stripe/params/payment_method_create_params.rb +583 -0
- data/lib/stripe/params/payment_method_detach_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
- data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
- data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
- data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
- data/lib/stripe/params/payment_method_list_params.rb +35 -0
- data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_method_update_params.rb +120 -0
- data/lib/stripe/params/payout_cancel_params.rb +13 -0
- data/lib/stripe/params/payout_create_params.rb +51 -0
- data/lib/stripe/params/payout_list_params.rb +78 -0
- data/lib/stripe/params/payout_retrieve_params.rb +13 -0
- data/lib/stripe/params/payout_reverse_params.rb +16 -0
- data/lib/stripe/params/payout_update_params.rb +16 -0
- data/lib/stripe/params/plan_create_params.rb +158 -0
- data/lib/stripe/params/plan_delete_params.rb +6 -0
- data/lib/stripe/params/plan_list_params.rb +56 -0
- data/lib/stripe/params/plan_retrieve_params.rb +13 -0
- data/lib/stripe/params/plan_update_params.rb +35 -0
- data/lib/stripe/params/price_create_params.rb +278 -0
- data/lib/stripe/params/price_list_params.rb +87 -0
- data/lib/stripe/params/price_retrieve_params.rb +13 -0
- data/lib/stripe/params/price_search_params.rb +22 -0
- data/lib/stripe/params/price_update_params.rb +113 -0
- data/lib/stripe/params/product_create_params.rb +243 -0
- data/lib/stripe/params/product_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_create_params.rb +16 -0
- data/lib/stripe/params/product_feature_delete_params.rb +6 -0
- data/lib/stripe/params/product_feature_list_params.rb +22 -0
- data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_list_params.rb +68 -0
- data/lib/stripe/params/product_retrieve_params.rb +13 -0
- data/lib/stripe/params/product_search_params.rb +22 -0
- data/lib/stripe/params/product_update_params.rb +96 -0
- data/lib/stripe/params/promotion_code_create_params.rb +91 -0
- data/lib/stripe/params/promotion_code_list_params.rb +64 -0
- data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/promotion_code_update_params.rb +38 -0
- data/lib/stripe/params/quote_accept_params.rb +13 -0
- data/lib/stripe/params/quote_cancel_params.rb +13 -0
- data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
- data/lib/stripe/params/quote_create_params.rb +301 -0
- data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
- data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +39 -0
- data/lib/stripe/params/quote_pdf_params.rb +13 -0
- data/lib/stripe/params/quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +263 -0
- data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
- data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
- data/lib/stripe/params/radar/value_list_delete_params.rb +8 -0
- data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
- data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
- data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
- data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
- data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
- data/lib/stripe/params/refund_cancel_params.rb +13 -0
- data/lib/stripe/params/refund_create_params.rb +59 -0
- data/lib/stripe/params/refund_expire_params.rb +13 -0
- data/lib/stripe/params/refund_list_params.rb +56 -0
- data/lib/stripe/params/refund_retrieve_params.rb +13 -0
- data/lib/stripe/params/refund_update_params.rb +16 -0
- data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
- data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
- data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
- data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
- data/lib/stripe/params/review_approve_params.rb +13 -0
- data/lib/stripe/params/review_list_params.rb +42 -0
- data/lib/stripe/params/review_retrieve_params.rb +13 -0
- data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
- data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +1050 -0
- data/lib/stripe/params/setup_intent_create_params.rb +1130 -0
- data/lib/stripe/params/setup_intent_list_params.rb +62 -0
- data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
- data/lib/stripe/params/setup_intent_update_params.rb +1025 -0
- data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
- data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
- data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
- data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
- data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
- data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
- data/lib/stripe/params/source_create_params.rb +317 -0
- data/lib/stripe/params/source_detach_params.rb +13 -0
- data/lib/stripe/params/source_retrieve_params.rb +16 -0
- data/lib/stripe/params/source_transaction_list_params.rb +22 -0
- data/lib/stripe/params/source_update_params.rb +259 -0
- data/lib/stripe/params/source_verify_params.rb +16 -0
- data/lib/stripe/params/subscription_cancel_params.rb +33 -0
- data/lib/stripe/params/subscription_create_params.rb +704 -0
- data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
- data/lib/stripe/params/subscription_item_create_params.rb +134 -0
- data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
- data/lib/stripe/params/subscription_item_list_params.rb +31 -0
- data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_item_update_params.rb +134 -0
- data/lib/stripe/params/subscription_list_params.rb +129 -0
- data/lib/stripe/params/subscription_migrate_params.rb +35 -0
- data/lib/stripe/params/subscription_resume_params.rb +27 -0
- data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +590 -0
- data/lib/stripe/params/subscription_schedule_list_params.rb +122 -0
- data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
- data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +562 -0
- data/lib/stripe/params/subscription_search_params.rb +22 -0
- data/lib/stripe/params/subscription_update_params.rb +683 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
- data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
- data/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
- data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +2018 -0
- data/lib/stripe/params/tax/registration_list_params.rb +27 -0
- data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_update_params.rb +21 -0
- data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/settings_update_params.rb +71 -0
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
- data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
- data/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
- data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax_code_list_params.rb +22 -0
- data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_id_create_params.rb +36 -0
- data/lib/stripe/params/tax_id_delete_params.rb +6 -0
- data/lib/stripe/params/tax_id_list_params.rb +39 -0
- data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_create_params.rb +55 -0
- data/lib/stripe/params/tax_rate_list_params.rb +56 -0
- data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
- data/lib/stripe/params/tax_rate_update_params.rb +47 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +593 -0
- data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
- data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +593 -0
- data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
- data/lib/stripe/params/terminal/location_create_params.rb +153 -0
- data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/location_list_params.rb +24 -0
- data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/location_update_params.rb +153 -0
- data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
- data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
- data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
- data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
- data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
- data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
- data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
- data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
- data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
- data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
- data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
- data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
- data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +652 -0
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +359 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
- data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
- data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
- data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
- data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
- data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
- data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
- data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
- data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
- data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
- data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +68 -0
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +68 -0
- data/lib/stripe/params/token_create_params.rb +1191 -0
- data/lib/stripe/params/token_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_cancel_params.rb +13 -0
- data/lib/stripe/params/topup_create_params.rb +43 -0
- data/lib/stripe/params/topup_list_params.rb +74 -0
- data/lib/stripe/params/topup_retrieve_params.rb +13 -0
- data/lib/stripe/params/topup_update_params.rb +19 -0
- data/lib/stripe/params/transfer_create_params.rb +47 -0
- data/lib/stripe/params/transfer_list_params.rb +56 -0
- data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
- data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
- data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
- data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
- data/lib/stripe/params/transfer_update_params.rb +19 -0
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
- data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
- data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
- data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +201 -0
- data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +163 -0
- data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +163 -0
- data/lib/stripe/params/treasury/financial_account_update_params.rb +216 -0
- data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
- data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
- data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
- data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
- data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
- data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +81 -0
- data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
- data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
- data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +66 -0
- data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
- data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/received_debit_create_params.rb +66 -0
- data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
- data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
- data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
- data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
- data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
- data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
- data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
- data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
- data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
- data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
- data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
- data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
- data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
- data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
- data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
- data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
- data/lib/stripe/params.rb +588 -0
- data/lib/stripe/request_options.rb +16 -6
- data/lib/stripe/request_params.rb +24 -0
- data/lib/stripe/resources/account.rb +1007 -20
- data/lib/stripe/resources/account_link.rb +17 -0
- data/lib/stripe/resources/account_session.rb +658 -0
- data/lib/stripe/resources/apple_pay_domain.rb +21 -0
- data/lib/stripe/resources/application.rb +28 -0
- data/lib/stripe/resources/application_fee.rb +55 -0
- data/lib/stripe/resources/application_fee_refund.rb +25 -0
- data/lib/stripe/resources/apps/secret.rb +41 -0
- data/lib/stripe/resources/balance.rb +325 -7
- data/lib/stripe/resources/balance_settings.rb +92 -0
- data/lib/stripe/resources/balance_transaction.rb +61 -0
- data/lib/stripe/resources/bank_account.rb +126 -4
- data/lib/stripe/resources/billing/alert.rb +55 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +34 -0
- data/lib/stripe/resources/billing/credit_balance_summary.rb +88 -0
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +151 -0
- data/lib/stripe/resources/billing/credit_grant.rb +108 -0
- data/lib/stripe/resources/billing/meter.rb +93 -0
- data/lib/stripe/resources/billing/meter_event.rb +23 -0
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +33 -0
- data/lib/stripe/resources/billing/meter_event_summary.rb +25 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +254 -0
- data/lib/stripe/resources/billing_portal/session.rb +200 -1
- data/lib/stripe/resources/capability.rb +140 -0
- data/lib/stripe/resources/card.rb +93 -0
- data/lib/stripe/resources/cash_balance.rb +33 -0
- data/lib/stripe/resources/charge.rb +2221 -7
- data/lib/stripe/resources/checkout/session.rb +2206 -6
- data/lib/stripe/resources/climate/order.rb +106 -0
- data/lib/stripe/resources/climate/product.rb +45 -0
- data/lib/stripe/resources/climate/supplier.rb +43 -0
- data/lib/stripe/resources/confirmation_token.rb +1679 -0
- data/lib/stripe/resources/connect_collection_transfer.rb +32 -0
- data/lib/stripe/resources/country_spec.rb +69 -1
- data/lib/stripe/resources/coupon.rb +70 -0
- data/lib/stripe/resources/credit_note.rb +213 -9
- data/lib/stripe/resources/credit_note_line_item.rb +111 -0
- data/lib/stripe/resources/customer.rb +228 -0
- data/lib/stripe/resources/customer_balance_transaction.rb +37 -0
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +217 -0
- data/lib/stripe/resources/customer_session.rb +118 -3
- data/lib/stripe/resources/discount.rb +49 -0
- data/lib/stripe/resources/dispute.rb +405 -1
- data/lib/stripe/resources/entitlements/active_entitlement.rb +19 -0
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
- data/lib/stripe/resources/entitlements/feature.rb +23 -0
- data/lib/stripe/resources/ephemeral_key.rb +21 -0
- data/lib/stripe/resources/event.rb +74 -26
- data/lib/stripe/resources/exchange_rate.rb +25 -0
- data/lib/stripe/resources/file.rb +32 -1
- data/lib/stripe/resources/file_link.rb +27 -0
- data/lib/stripe/resources/financial_connections/account.rb +193 -0
- data/lib/stripe/resources/financial_connections/account_owner.rb +25 -0
- data/lib/stripe/resources/financial_connections/account_ownership.rb +17 -0
- data/lib/stripe/resources/financial_connections/session.rb +60 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +47 -0
- data/lib/stripe/resources/forwarding/request.rb +111 -0
- data/lib/stripe/resources/funding_instructions.rb +502 -1
- data/lib/stripe/resources/identity/verification_report.rb +372 -0
- data/lib/stripe/resources/identity/verification_session.rb +290 -11
- data/lib/stripe/resources/invoice.rb +997 -34
- data/lib/stripe/resources/invoice_item.rb +160 -4
- data/lib/stripe/resources/invoice_line_item.rb +278 -1
- data/lib/stripe/resources/invoice_payment.rb +90 -0
- data/lib/stripe/resources/invoice_rendering_template.rb +25 -0
- data/lib/stripe/resources/issuing/authorization.rb +449 -8
- data/lib/stripe/resources/issuing/card.rb +264 -0
- data/lib/stripe/resources/issuing/cardholder.rb +242 -0
- data/lib/stripe/resources/issuing/dispute.rb +257 -3
- data/lib/stripe/resources/issuing/personalization_design.rb +87 -0
- data/lib/stripe/resources/issuing/physical_bundle.rb +39 -0
- data/lib/stripe/resources/issuing/token.rb +163 -0
- data/lib/stripe/resources/issuing/transaction.rb +363 -0
- data/lib/stripe/resources/line_item.rb +71 -0
- data/lib/stripe/resources/login_link.rb +17 -1
- data/lib/stripe/resources/mandate.rb +358 -0
- data/lib/stripe/resources/payment_intent.rb +2775 -23
- data/lib/stripe/resources/payment_link.rb +686 -0
- data/lib/stripe/resources/payment_method.rb +1536 -12
- data/lib/stripe/resources/payment_method_configuration.rb +1759 -0
- data/lib/stripe/resources/payment_method_domain.rb +209 -8
- data/lib/stripe/resources/payout.rb +81 -4
- data/lib/stripe/resources/person.rb +469 -2
- data/lib/stripe/resources/plan.rb +87 -1
- data/lib/stripe/resources/price.rb +192 -2
- data/lib/stripe/resources/product.rb +83 -0
- data/lib/stripe/resources/product_feature.rb +20 -0
- data/lib/stripe/resources/promotion_code.rb +86 -3
- data/lib/stripe/resources/quote.rb +510 -0
- data/lib/stripe/resources/radar/early_fraud_warning.rb +25 -0
- data/lib/stripe/resources/radar/value_list.rb +31 -0
- data/lib/stripe/resources/radar/value_list_item.rb +25 -0
- data/lib/stripe/resources/refund.rb +614 -0
- data/lib/stripe/resources/reporting/report_run.rb +60 -0
- data/lib/stripe/resources/reporting/report_type.rb +27 -0
- data/lib/stripe/resources/reserve_transaction.rb +30 -0
- data/lib/stripe/resources/reversal.rb +30 -1
- data/lib/stripe/resources/review.rb +77 -1
- data/lib/stripe/resources/setup_attempt.rb +589 -0
- data/lib/stripe/resources/setup_intent.rb +574 -3
- data/lib/stripe/resources/shipping_rate.rb +107 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +43 -0
- data/lib/stripe/resources/source.rb +885 -2
- data/lib/stripe/resources/source_mandate_notification.rb +98 -0
- data/lib/stripe/resources/source_transaction.rb +139 -0
- data/lib/stripe/resources/subscription.rb +606 -9
- data/lib/stripe/resources/subscription_item.rb +60 -5
- data/lib/stripe/resources/subscription_schedule.rb +526 -0
- data/lib/stripe/resources/tax/calculation.rb +273 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +90 -0
- data/lib/stripe/resources/tax/registration.rb +2189 -0
- data/lib/stripe/resources/tax/settings.rb +114 -0
- data/lib/stripe/resources/tax/transaction.rb +231 -0
- data/lib/stripe/resources/tax/transaction_line_item.rb +47 -0
- data/lib/stripe/resources/tax_code.rb +17 -0
- data/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
- data/lib/stripe/resources/tax_id.rb +66 -0
- data/lib/stripe/resources/tax_rate.rb +63 -2
- data/lib/stripe/resources/terminal/configuration.rb +634 -0
- data/lib/stripe/resources/terminal/connection_token.rb +15 -0
- data/lib/stripe/resources/terminal/location.rb +112 -1
- data/lib/stripe/resources/terminal/reader.rb +605 -0
- data/lib/stripe/resources/test_helpers/test_clock.rb +53 -0
- data/lib/stripe/resources/token.rb +39 -2
- data/lib/stripe/resources/topup.rb +41 -0
- data/lib/stripe/resources/transfer.rb +44 -1
- data/lib/stripe/resources/treasury/credit_reversal.rb +49 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +64 -0
- data/lib/stripe/resources/treasury/financial_account.rb +145 -1
- data/lib/stripe/resources/treasury/financial_account_features.rb +381 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +178 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +256 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +236 -0
- data/lib/stripe/resources/treasury/received_credit.rb +214 -0
- data/lib/stripe/resources/treasury/received_debit.rb +177 -0
- data/lib/stripe/resources/treasury/transaction.rb +117 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +94 -0
- data/lib/stripe/resources/v2/amount.rb +9 -0
- data/lib/stripe/resources/v2/billing/meter_event.rb +26 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +37 -0
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +22 -0
- data/lib/stripe/resources/v2/core/event.rb +67 -0
- data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +62 -0
- data/lib/stripe/resources/v2/deleted_object.rb +21 -0
- data/lib/stripe/resources/webhook_endpoint.rb +35 -0
- data/lib/stripe/resources.rb +13 -4
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +12 -12
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/balance_settings_service.rb +30 -0
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +8 -6
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/credit_note_service.rb +8 -9
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +6 -6
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/exchange_rate_service.rb +4 -0
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/financial_connections_service.rb +1 -1
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +5 -5
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_payment_service.rb +28 -0
- data/lib/stripe/services/invoice_service.rb +34 -30
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/issuing_service.rb +1 -1
- data/lib/stripe/services/payment_intent_service.rb +20 -15
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_domain_service.rb +4 -4
- data/lib/stripe/services/payment_method_service.rb +9 -9
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +1 -1
- data/lib/stripe/services/price_service.rb +3 -3
- data/lib/stripe/services/product_service.rb +2 -2
- data/lib/stripe/services/promotion_code_service.rb +2 -2
- data/lib/stripe/services/quote_service.rb +3 -3
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +3 -3
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +2 -2
- data/lib/stripe/services/subscription_item_service.rb +0 -8
- data/lib/stripe/services/subscription_service.rb +19 -8
- data/lib/stripe/services/tax/calculation_service.rb +1 -1
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_service.rb +1 -1
- data/lib/stripe/services/terminal/location_service.rb +1 -1
- data/lib/stripe/services/terminal/reader_service.rb +33 -0
- data/lib/stripe/services/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/transfer_service.rb +2 -2
- data/lib/stripe/services/treasury/financial_account_service.rb +2 -2
- data/lib/stripe/services/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +7 -5
- data/lib/stripe/services/v2/billing_service.rb +4 -4
- data/lib/stripe/services/v2/core_service.rb +3 -3
- data/lib/stripe/services/v2_services.rb +1 -1
- data/lib/stripe/services.rb +2 -3
- data/lib/stripe/stripe_client.rb +10 -6
- data/lib/stripe/stripe_configuration.rb +1 -6
- data/lib/stripe/stripe_context.rb +68 -0
- data/lib/stripe/stripe_object.rb +57 -12
- data/lib/stripe/stripe_service.rb +3 -1
- data/lib/stripe/util.rb +34 -12
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/lib/stripe.rb +6 -1
- data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
- data/rbi/stripe/stripe_client.rbi +17 -0
- data/rbi/stripe.rbi +132984 -0
- metadata +612 -28
- data/CHANGELOG.md +0 -1589
- data/CODE_OF_CONDUCT.md +0 -77
- data/CONTRIBUTORS +0 -3
- data/Gemfile +0 -37
- data/History.txt +0 -1
- data/LICENSE +0 -21
- data/Makefile +0 -22
- data/OPENAPI_VERSION +0 -1
- data/README.md +0 -422
- data/Rakefile +0 -34
- data/VERSION +0 -1
- data/examples/README.md +0 -16
- data/examples/example_template.rb +0 -36
- data/examples/meter_event_stream.rb +0 -57
- data/examples/thinevent_webhook_handler.rb +0 -39
- data/justfile +0 -43
- data/lib/stripe/resources/usage_record.rb +0 -17
- data/lib/stripe/resources/usage_record_summary.rb +0 -12
- data/lib/stripe/resources/v2/event.rb +0 -13
- data/lib/stripe/resources/v2/event_destination.rb +0 -13
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -17
- data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -23
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -19
- data/lib/stripe/thin_event.rb +0 -37
- data/stripe.gemspec +0 -44
|
@@ -11,5 +11,54 @@ module Stripe
|
|
|
11
11
|
def self.object_name
|
|
12
12
|
"discount"
|
|
13
13
|
end
|
|
14
|
+
|
|
15
|
+
class Source < Stripe::StripeObject
|
|
16
|
+
# The coupon that was redeemed to create this discount.
|
|
17
|
+
attr_reader :coupon
|
|
18
|
+
# The source type of the discount.
|
|
19
|
+
attr_reader :type
|
|
20
|
+
|
|
21
|
+
def self.inner_class_types
|
|
22
|
+
@inner_class_types = {}
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def self.field_remappings
|
|
26
|
+
@field_remappings = {}
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
# The Checkout session that this coupon is applied to, if it is applied to a particular session in payment mode. Will not be present for subscription mode.
|
|
30
|
+
attr_reader :checkout_session
|
|
31
|
+
# The ID of the customer associated with this discount.
|
|
32
|
+
attr_reader :customer
|
|
33
|
+
# If the coupon has a duration of `repeating`, the date that this discount will end. If the coupon has a duration of `once` or `forever`, this attribute will be null.
|
|
34
|
+
attr_reader :end
|
|
35
|
+
# The ID of the discount object. Discounts cannot be fetched by ID. Use `expand[]=discounts` in API calls to expand discount IDs in an array.
|
|
36
|
+
attr_reader :id
|
|
37
|
+
# The invoice that the discount's coupon was applied to, if it was applied directly to a particular invoice.
|
|
38
|
+
attr_reader :invoice
|
|
39
|
+
# The invoice item `id` (or invoice line item `id` for invoice line items of type='subscription') that the discount's coupon was applied to, if it was applied directly to a particular invoice item or invoice line item.
|
|
40
|
+
attr_reader :invoice_item
|
|
41
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
42
|
+
attr_reader :object
|
|
43
|
+
# The promotion code applied to create this discount.
|
|
44
|
+
attr_reader :promotion_code
|
|
45
|
+
# Attribute for field source
|
|
46
|
+
attr_reader :source
|
|
47
|
+
# Date that the coupon was applied.
|
|
48
|
+
attr_reader :start
|
|
49
|
+
# The subscription that this coupon is applied to, if it is applied to a particular subscription.
|
|
50
|
+
attr_reader :subscription
|
|
51
|
+
# The subscription item that this coupon is applied to, if it is applied to a particular subscription item.
|
|
52
|
+
attr_reader :subscription_item
|
|
53
|
+
# Always true for a deleted object
|
|
54
|
+
attr_reader :deleted
|
|
55
|
+
|
|
56
|
+
def self.inner_class_types
|
|
57
|
+
@inner_class_types = { source: Source }
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def self.field_remappings
|
|
61
|
+
@field_remappings = {}
|
|
62
|
+
end
|
|
14
63
|
end
|
|
15
64
|
end
|
|
@@ -16,6 +16,398 @@ module Stripe
|
|
|
16
16
|
"dispute"
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
class Evidence < Stripe::StripeObject
|
|
20
|
+
class EnhancedEvidence < Stripe::StripeObject
|
|
21
|
+
class VisaCompellingEvidence3 < Stripe::StripeObject
|
|
22
|
+
class DisputedTransaction < Stripe::StripeObject
|
|
23
|
+
class ShippingAddress < Stripe::StripeObject
|
|
24
|
+
# City, district, suburb, town, or village.
|
|
25
|
+
attr_reader :city
|
|
26
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
27
|
+
attr_reader :country
|
|
28
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
29
|
+
attr_reader :line1
|
|
30
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
31
|
+
attr_reader :line2
|
|
32
|
+
# ZIP or postal code.
|
|
33
|
+
attr_reader :postal_code
|
|
34
|
+
# State, county, province, or region.
|
|
35
|
+
attr_reader :state
|
|
36
|
+
|
|
37
|
+
def self.inner_class_types
|
|
38
|
+
@inner_class_types = {}
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def self.field_remappings
|
|
42
|
+
@field_remappings = {}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
# User Account ID used to log into business platform. Must be recognizable by the user.
|
|
46
|
+
attr_reader :customer_account_id
|
|
47
|
+
# Unique identifier of the cardholder’s device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
|
|
48
|
+
attr_reader :customer_device_fingerprint
|
|
49
|
+
# Unique identifier of the cardholder’s device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
|
|
50
|
+
attr_reader :customer_device_id
|
|
51
|
+
# The email address of the customer.
|
|
52
|
+
attr_reader :customer_email_address
|
|
53
|
+
# The IP address that the customer used when making the purchase.
|
|
54
|
+
attr_reader :customer_purchase_ip
|
|
55
|
+
# Categorization of disputed payment.
|
|
56
|
+
attr_reader :merchandise_or_services
|
|
57
|
+
# A description of the product or service that was sold.
|
|
58
|
+
attr_reader :product_description
|
|
59
|
+
# The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
|
60
|
+
attr_reader :shipping_address
|
|
61
|
+
|
|
62
|
+
def self.inner_class_types
|
|
63
|
+
@inner_class_types = { shipping_address: ShippingAddress }
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def self.field_remappings
|
|
67
|
+
@field_remappings = {}
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
class PriorUndisputedTransaction < Stripe::StripeObject
|
|
72
|
+
class ShippingAddress < Stripe::StripeObject
|
|
73
|
+
# City, district, suburb, town, or village.
|
|
74
|
+
attr_reader :city
|
|
75
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
76
|
+
attr_reader :country
|
|
77
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
78
|
+
attr_reader :line1
|
|
79
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
80
|
+
attr_reader :line2
|
|
81
|
+
# ZIP or postal code.
|
|
82
|
+
attr_reader :postal_code
|
|
83
|
+
# State, county, province, or region.
|
|
84
|
+
attr_reader :state
|
|
85
|
+
|
|
86
|
+
def self.inner_class_types
|
|
87
|
+
@inner_class_types = {}
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
def self.field_remappings
|
|
91
|
+
@field_remappings = {}
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
# Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
|
|
95
|
+
attr_reader :charge
|
|
96
|
+
# User Account ID used to log into business platform. Must be recognizable by the user.
|
|
97
|
+
attr_reader :customer_account_id
|
|
98
|
+
# Unique identifier of the cardholder’s device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
|
|
99
|
+
attr_reader :customer_device_fingerprint
|
|
100
|
+
# Unique identifier of the cardholder’s device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
|
|
101
|
+
attr_reader :customer_device_id
|
|
102
|
+
# The email address of the customer.
|
|
103
|
+
attr_reader :customer_email_address
|
|
104
|
+
# The IP address that the customer used when making the purchase.
|
|
105
|
+
attr_reader :customer_purchase_ip
|
|
106
|
+
# A description of the product or service that was sold.
|
|
107
|
+
attr_reader :product_description
|
|
108
|
+
# The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
|
|
109
|
+
attr_reader :shipping_address
|
|
110
|
+
|
|
111
|
+
def self.inner_class_types
|
|
112
|
+
@inner_class_types = { shipping_address: ShippingAddress }
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def self.field_remappings
|
|
116
|
+
@field_remappings = {}
|
|
117
|
+
end
|
|
118
|
+
end
|
|
119
|
+
# Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
|
|
120
|
+
attr_reader :disputed_transaction
|
|
121
|
+
# List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
|
|
122
|
+
attr_reader :prior_undisputed_transactions
|
|
123
|
+
|
|
124
|
+
def self.inner_class_types
|
|
125
|
+
@inner_class_types = {
|
|
126
|
+
disputed_transaction: DisputedTransaction,
|
|
127
|
+
prior_undisputed_transactions: PriorUndisputedTransaction,
|
|
128
|
+
}
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
def self.field_remappings
|
|
132
|
+
@field_remappings = {}
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
class VisaCompliance < Stripe::StripeObject
|
|
137
|
+
# A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute.
|
|
138
|
+
attr_reader :fee_acknowledged
|
|
139
|
+
|
|
140
|
+
def self.inner_class_types
|
|
141
|
+
@inner_class_types = {}
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
def self.field_remappings
|
|
145
|
+
@field_remappings = {}
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
# Attribute for field visa_compelling_evidence_3
|
|
149
|
+
attr_reader :visa_compelling_evidence_3
|
|
150
|
+
# Attribute for field visa_compliance
|
|
151
|
+
attr_reader :visa_compliance
|
|
152
|
+
|
|
153
|
+
def self.inner_class_types
|
|
154
|
+
@inner_class_types = {
|
|
155
|
+
visa_compelling_evidence_3: VisaCompellingEvidence3,
|
|
156
|
+
visa_compliance: VisaCompliance,
|
|
157
|
+
}
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
def self.field_remappings
|
|
161
|
+
@field_remappings = {}
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
# Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity.
|
|
165
|
+
attr_reader :access_activity_log
|
|
166
|
+
# The billing address provided by the customer.
|
|
167
|
+
attr_reader :billing_address
|
|
168
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your subscription cancellation policy, as shown to the customer.
|
|
169
|
+
attr_reader :cancellation_policy
|
|
170
|
+
# An explanation of how and when the customer was shown your refund policy prior to purchase.
|
|
171
|
+
attr_reader :cancellation_policy_disclosure
|
|
172
|
+
# A justification for why the customer's subscription was not canceled.
|
|
173
|
+
attr_reader :cancellation_rebuttal
|
|
174
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any communication with the customer that you feel is relevant to your case. Examples include emails proving that the customer received the product or service, or demonstrating their use of or satisfaction with the product or service.
|
|
175
|
+
attr_reader :customer_communication
|
|
176
|
+
# The email address of the customer.
|
|
177
|
+
attr_reader :customer_email_address
|
|
178
|
+
# The name of the customer.
|
|
179
|
+
attr_reader :customer_name
|
|
180
|
+
# The IP address that the customer used when making the purchase.
|
|
181
|
+
attr_reader :customer_purchase_ip
|
|
182
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A relevant document or contract showing the customer's signature.
|
|
183
|
+
attr_reader :customer_signature
|
|
184
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation for the prior charge that can uniquely identify the charge, such as a receipt, shipping label, work order, etc. This document should be paired with a similar document from the disputed payment that proves the two payments are separate.
|
|
185
|
+
attr_reader :duplicate_charge_documentation
|
|
186
|
+
# An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate.
|
|
187
|
+
attr_reader :duplicate_charge_explanation
|
|
188
|
+
# The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge.
|
|
189
|
+
attr_reader :duplicate_charge_id
|
|
190
|
+
# Attribute for field enhanced_evidence
|
|
191
|
+
attr_reader :enhanced_evidence
|
|
192
|
+
# A description of the product or service that was sold.
|
|
193
|
+
attr_reader :product_description
|
|
194
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any receipt or message sent to the customer notifying them of the charge.
|
|
195
|
+
attr_reader :receipt
|
|
196
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your refund policy, as shown to the customer.
|
|
197
|
+
attr_reader :refund_policy
|
|
198
|
+
# Documentation demonstrating that the customer was shown your refund policy prior to purchase.
|
|
199
|
+
attr_reader :refund_policy_disclosure
|
|
200
|
+
# A justification for why the customer is not entitled to a refund.
|
|
201
|
+
attr_reader :refund_refusal_explanation
|
|
202
|
+
# The date on which the customer received or began receiving the purchased service, in a clear human-readable format.
|
|
203
|
+
attr_reader :service_date
|
|
204
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a service was provided to the customer. This could include a copy of a signed contract, work order, or other form of written agreement.
|
|
205
|
+
attr_reader :service_documentation
|
|
206
|
+
# The address to which a physical product was shipped. You should try to include as complete address information as possible.
|
|
207
|
+
attr_reader :shipping_address
|
|
208
|
+
# The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. If multiple carriers were used for this purchase, please separate them with commas.
|
|
209
|
+
attr_reader :shipping_carrier
|
|
210
|
+
# The date on which a physical product began its route to the shipping address, in a clear human-readable format.
|
|
211
|
+
attr_reader :shipping_date
|
|
212
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a product was shipped to the customer at the same address the customer provided to you. This could include a copy of the shipment receipt, shipping label, etc. It should show the customer's full shipping address, if possible.
|
|
213
|
+
attr_reader :shipping_documentation
|
|
214
|
+
# The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
|
|
215
|
+
attr_reader :shipping_tracking_number
|
|
216
|
+
# (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any additional evidence or statements.
|
|
217
|
+
attr_reader :uncategorized_file
|
|
218
|
+
# Any additional evidence or statements.
|
|
219
|
+
attr_reader :uncategorized_text
|
|
220
|
+
|
|
221
|
+
def self.inner_class_types
|
|
222
|
+
@inner_class_types = { enhanced_evidence: EnhancedEvidence }
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
def self.field_remappings
|
|
226
|
+
@field_remappings = {}
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
class EvidenceDetails < Stripe::StripeObject
|
|
231
|
+
class EnhancedEligibility < Stripe::StripeObject
|
|
232
|
+
class VisaCompellingEvidence3 < Stripe::StripeObject
|
|
233
|
+
# List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission.
|
|
234
|
+
attr_reader :required_actions
|
|
235
|
+
# Visa Compelling Evidence 3.0 eligibility status.
|
|
236
|
+
attr_reader :status
|
|
237
|
+
|
|
238
|
+
def self.inner_class_types
|
|
239
|
+
@inner_class_types = {}
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
def self.field_remappings
|
|
243
|
+
@field_remappings = {}
|
|
244
|
+
end
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
class VisaCompliance < Stripe::StripeObject
|
|
248
|
+
# Visa compliance eligibility status.
|
|
249
|
+
attr_reader :status
|
|
250
|
+
|
|
251
|
+
def self.inner_class_types
|
|
252
|
+
@inner_class_types = {}
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
def self.field_remappings
|
|
256
|
+
@field_remappings = {}
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
# Attribute for field visa_compelling_evidence_3
|
|
260
|
+
attr_reader :visa_compelling_evidence_3
|
|
261
|
+
# Attribute for field visa_compliance
|
|
262
|
+
attr_reader :visa_compliance
|
|
263
|
+
|
|
264
|
+
def self.inner_class_types
|
|
265
|
+
@inner_class_types = {
|
|
266
|
+
visa_compelling_evidence_3: VisaCompellingEvidence3,
|
|
267
|
+
visa_compliance: VisaCompliance,
|
|
268
|
+
}
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
def self.field_remappings
|
|
272
|
+
@field_remappings = {}
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
# Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute.
|
|
276
|
+
attr_reader :due_by
|
|
277
|
+
# Attribute for field enhanced_eligibility
|
|
278
|
+
attr_reader :enhanced_eligibility
|
|
279
|
+
# Whether evidence has been staged for this dispute.
|
|
280
|
+
attr_reader :has_evidence
|
|
281
|
+
# Whether the last evidence submission was submitted past the due date. Defaults to `false` if no evidence submissions have occurred. If `true`, then delivery of the latest evidence is *not* guaranteed.
|
|
282
|
+
attr_reader :past_due
|
|
283
|
+
# The number of times evidence has been submitted. Typically, you may only submit evidence once.
|
|
284
|
+
attr_reader :submission_count
|
|
285
|
+
|
|
286
|
+
def self.inner_class_types
|
|
287
|
+
@inner_class_types = { enhanced_eligibility: EnhancedEligibility }
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
def self.field_remappings
|
|
291
|
+
@field_remappings = {}
|
|
292
|
+
end
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
class PaymentMethodDetails < Stripe::StripeObject
|
|
296
|
+
class AmazonPay < Stripe::StripeObject
|
|
297
|
+
# The AmazonPay dispute type, chargeback or claim
|
|
298
|
+
attr_reader :dispute_type
|
|
299
|
+
|
|
300
|
+
def self.inner_class_types
|
|
301
|
+
@inner_class_types = {}
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
def self.field_remappings
|
|
305
|
+
@field_remappings = {}
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
class Card < Stripe::StripeObject
|
|
310
|
+
# Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`.
|
|
311
|
+
attr_reader :brand
|
|
312
|
+
# The type of dispute opened. Different case types may have varying fees and financial impact.
|
|
313
|
+
attr_reader :case_type
|
|
314
|
+
# The card network's specific dispute reason code, which maps to one of Stripe's primary dispute categories to simplify response guidance. The [Network code map](https://stripe.com/docs/disputes/categories#network-code-map) lists all available dispute reason codes by network.
|
|
315
|
+
attr_reader :network_reason_code
|
|
316
|
+
|
|
317
|
+
def self.inner_class_types
|
|
318
|
+
@inner_class_types = {}
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
def self.field_remappings
|
|
322
|
+
@field_remappings = {}
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
class Klarna < Stripe::StripeObject
|
|
327
|
+
# Chargeback loss reason mapped by Stripe from Klarna's chargeback loss reason
|
|
328
|
+
attr_reader :chargeback_loss_reason_code
|
|
329
|
+
# The reason for the dispute as defined by Klarna
|
|
330
|
+
attr_reader :reason_code
|
|
331
|
+
|
|
332
|
+
def self.inner_class_types
|
|
333
|
+
@inner_class_types = {}
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
def self.field_remappings
|
|
337
|
+
@field_remappings = {}
|
|
338
|
+
end
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
class Paypal < Stripe::StripeObject
|
|
342
|
+
# The ID of the dispute in PayPal.
|
|
343
|
+
attr_reader :case_id
|
|
344
|
+
# The reason for the dispute as defined by PayPal
|
|
345
|
+
attr_reader :reason_code
|
|
346
|
+
|
|
347
|
+
def self.inner_class_types
|
|
348
|
+
@inner_class_types = {}
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
def self.field_remappings
|
|
352
|
+
@field_remappings = {}
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
# Attribute for field amazon_pay
|
|
356
|
+
attr_reader :amazon_pay
|
|
357
|
+
# Attribute for field card
|
|
358
|
+
attr_reader :card
|
|
359
|
+
# Attribute for field klarna
|
|
360
|
+
attr_reader :klarna
|
|
361
|
+
# Attribute for field paypal
|
|
362
|
+
attr_reader :paypal
|
|
363
|
+
# Payment method type.
|
|
364
|
+
attr_reader :type
|
|
365
|
+
|
|
366
|
+
def self.inner_class_types
|
|
367
|
+
@inner_class_types = { amazon_pay: AmazonPay, card: Card, klarna: Klarna, paypal: Paypal }
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
def self.field_remappings
|
|
371
|
+
@field_remappings = {}
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
# Disputed amount. Usually the amount of the charge, but it can differ (usually because of currency fluctuation or because only part of the order is disputed).
|
|
375
|
+
attr_reader :amount
|
|
376
|
+
# List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute.
|
|
377
|
+
attr_reader :balance_transactions
|
|
378
|
+
# ID of the charge that's disputed.
|
|
379
|
+
attr_reader :charge
|
|
380
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
381
|
+
attr_reader :created
|
|
382
|
+
# 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).
|
|
383
|
+
attr_reader :currency
|
|
384
|
+
# List of eligibility types that are included in `enhanced_evidence`.
|
|
385
|
+
attr_reader :enhanced_eligibility_types
|
|
386
|
+
# Attribute for field evidence
|
|
387
|
+
attr_reader :evidence
|
|
388
|
+
# Attribute for field evidence_details
|
|
389
|
+
attr_reader :evidence_details
|
|
390
|
+
# Unique identifier for the object.
|
|
391
|
+
attr_reader :id
|
|
392
|
+
# If true, it's still possible to refund the disputed payment. After the payment has been fully refunded, no further funds are withdrawn from your Stripe account as a result of this dispute.
|
|
393
|
+
attr_reader :is_charge_refundable
|
|
394
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
395
|
+
attr_reader :livemode
|
|
396
|
+
# 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.
|
|
397
|
+
attr_reader :metadata
|
|
398
|
+
# Network-dependent reason code for the dispute.
|
|
399
|
+
attr_reader :network_reason_code
|
|
400
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
401
|
+
attr_reader :object
|
|
402
|
+
# ID of the PaymentIntent that's disputed.
|
|
403
|
+
attr_reader :payment_intent
|
|
404
|
+
# Attribute for field payment_method_details
|
|
405
|
+
attr_reader :payment_method_details
|
|
406
|
+
# Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://stripe.com/docs/disputes/categories).
|
|
407
|
+
attr_reader :reason
|
|
408
|
+
# The current status of a dispute. Possible values include:`warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `won`, `lost`, or `prevented`.
|
|
409
|
+
attr_reader :status
|
|
410
|
+
|
|
19
411
|
# Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.
|
|
20
412
|
#
|
|
21
413
|
# The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible.
|
|
@@ -47,7 +439,7 @@ module Stripe
|
|
|
47
439
|
|
|
48
440
|
# When you get a dispute, contacting your customer is always the best first step. If that doesn't work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your [dashboard](https://dashboard.stripe.com/disputes), but if you prefer, you can use the API to submit evidence programmatically.
|
|
49
441
|
#
|
|
50
|
-
# Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://stripe.com/docs/disputes/categories).
|
|
442
|
+
# Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://docs.stripe.com/docs/disputes/categories).
|
|
51
443
|
def self.update(dispute, params = {}, opts = {})
|
|
52
444
|
request_stripe_object(
|
|
53
445
|
method: :post,
|
|
@@ -56,5 +448,17 @@ module Stripe
|
|
|
56
448
|
opts: opts
|
|
57
449
|
)
|
|
58
450
|
end
|
|
451
|
+
|
|
452
|
+
def self.inner_class_types
|
|
453
|
+
@inner_class_types = {
|
|
454
|
+
evidence: Evidence,
|
|
455
|
+
evidence_details: EvidenceDetails,
|
|
456
|
+
payment_method_details: PaymentMethodDetails,
|
|
457
|
+
}
|
|
458
|
+
end
|
|
459
|
+
|
|
460
|
+
def self.field_remappings
|
|
461
|
+
@field_remappings = {}
|
|
462
|
+
end
|
|
59
463
|
end
|
|
60
464
|
end
|
|
@@ -12,6 +12,17 @@ module Stripe
|
|
|
12
12
|
"entitlements.active_entitlement"
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
+
# The [Feature](https://stripe.com/docs/api/entitlements/feature) that the customer is entitled to.
|
|
16
|
+
attr_reader :feature
|
|
17
|
+
# Unique identifier for the object.
|
|
18
|
+
attr_reader :id
|
|
19
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
20
|
+
attr_reader :livemode
|
|
21
|
+
# A unique key you provide as your own system identifier. This may be up to 80 characters.
|
|
22
|
+
attr_reader :lookup_key
|
|
23
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
24
|
+
attr_reader :object
|
|
25
|
+
|
|
15
26
|
# Retrieve a list of active entitlements for a customer
|
|
16
27
|
def self.list(params = {}, opts = {})
|
|
17
28
|
request_stripe_object(
|
|
@@ -21,6 +32,14 @@ module Stripe
|
|
|
21
32
|
opts: opts
|
|
22
33
|
)
|
|
23
34
|
end
|
|
35
|
+
|
|
36
|
+
def self.inner_class_types
|
|
37
|
+
@inner_class_types = {}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def self.field_remappings
|
|
41
|
+
@field_remappings = {}
|
|
42
|
+
end
|
|
24
43
|
end
|
|
25
44
|
end
|
|
26
45
|
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Entitlements
|
|
6
|
+
# A summary of a customer's active entitlements.
|
|
7
|
+
class ActiveEntitlementSummary < APIResource
|
|
8
|
+
OBJECT_NAME = "entitlements.active_entitlement_summary"
|
|
9
|
+
def self.object_name
|
|
10
|
+
"entitlements.active_entitlement_summary"
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
# The customer that is entitled to this feature.
|
|
14
|
+
attr_reader :customer
|
|
15
|
+
# The list of entitlements this customer has.
|
|
16
|
+
attr_reader :entitlements
|
|
17
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
18
|
+
attr_reader :livemode
|
|
19
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
20
|
+
attr_reader :object
|
|
21
|
+
|
|
22
|
+
def self.inner_class_types
|
|
23
|
+
@inner_class_types = {}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def self.field_remappings
|
|
27
|
+
@field_remappings = {}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -15,6 +15,21 @@ module Stripe
|
|
|
15
15
|
"entitlements.feature"
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
# Inactive features cannot be attached to new products and will not be returned from the features list endpoint.
|
|
19
|
+
attr_reader :active
|
|
20
|
+
# Unique identifier for the object.
|
|
21
|
+
attr_reader :id
|
|
22
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
23
|
+
attr_reader :livemode
|
|
24
|
+
# A unique key you provide as your own system identifier. This may be up to 80 characters.
|
|
25
|
+
attr_reader :lookup_key
|
|
26
|
+
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
27
|
+
attr_reader :metadata
|
|
28
|
+
# The feature's name, for your own purpose, not meant to be displayable to the customer.
|
|
29
|
+
attr_reader :name
|
|
30
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
31
|
+
attr_reader :object
|
|
32
|
+
|
|
18
33
|
# Creates a feature
|
|
19
34
|
def self.create(params = {}, opts = {})
|
|
20
35
|
request_stripe_object(
|
|
@@ -44,6 +59,14 @@ module Stripe
|
|
|
44
59
|
opts: opts
|
|
45
60
|
)
|
|
46
61
|
end
|
|
62
|
+
|
|
63
|
+
def self.inner_class_types
|
|
64
|
+
@inner_class_types = {}
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
def self.field_remappings
|
|
68
|
+
@field_remappings = {}
|
|
69
|
+
end
|
|
47
70
|
end
|
|
48
71
|
end
|
|
49
72
|
end
|
|
@@ -11,6 +11,19 @@ module Stripe
|
|
|
11
11
|
"ephemeral_key"
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
+
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
15
|
+
attr_reader :created
|
|
16
|
+
# Time at which the key will expire. Measured in seconds since the Unix epoch.
|
|
17
|
+
attr_reader :expires
|
|
18
|
+
# Unique identifier for the object.
|
|
19
|
+
attr_reader :id
|
|
20
|
+
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
21
|
+
attr_reader :livemode
|
|
22
|
+
# String representing the object's type. Objects of the same type share the same value.
|
|
23
|
+
attr_reader :object
|
|
24
|
+
# The key's secret. You can use this value to make authorized requests to the Stripe API.
|
|
25
|
+
attr_reader :secret
|
|
26
|
+
|
|
14
27
|
# Invalidates a short-lived API key for a given resource.
|
|
15
28
|
def self.delete(key, params = {}, opts = {})
|
|
16
29
|
request_stripe_object(
|
|
@@ -39,5 +52,13 @@ module Stripe
|
|
|
39
52
|
end
|
|
40
53
|
super
|
|
41
54
|
end
|
|
55
|
+
|
|
56
|
+
def self.inner_class_types
|
|
57
|
+
@inner_class_types = {}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def self.field_remappings
|
|
61
|
+
@field_remappings = {}
|
|
62
|
+
end
|
|
42
63
|
end
|
|
43
64
|
end
|