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
|
@@ -14,11 +14,11 @@ module Stripe
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://stripe.com/docs/payments/intents), processing.
|
|
17
|
+
# You can cancel a PaymentIntent object when it's in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action or, [in rare cases](https://docs.stripe.com/docs/payments/intents), processing.
|
|
18
18
|
#
|
|
19
19
|
# After it's canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a status of requires_capture, the remaining amount_capturable is automatically refunded.
|
|
20
20
|
#
|
|
21
|
-
# You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
|
21
|
+
# You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
|
|
22
22
|
def cancel(intent, params = {}, opts = {})
|
|
23
23
|
request(
|
|
24
24
|
method: :post,
|
|
@@ -33,7 +33,7 @@ module Stripe
|
|
|
33
33
|
#
|
|
34
34
|
# Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.
|
|
35
35
|
#
|
|
36
|
-
# Learn more about [separate authorization and capture](https://stripe.com/docs/payments/capture-later).
|
|
36
|
+
# Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later).
|
|
37
37
|
def capture(intent, params = {}, opts = {})
|
|
38
38
|
request(
|
|
39
39
|
method: :post,
|
|
@@ -47,6 +47,7 @@ module Stripe
|
|
|
47
47
|
# Confirm that your customer intends to pay with current or provided
|
|
48
48
|
# payment method. Upon confirmation, the PaymentIntent will attempt to initiate
|
|
49
49
|
# a payment.
|
|
50
|
+
#
|
|
50
51
|
# If the selected payment method requires additional authentication steps, the
|
|
51
52
|
# PaymentIntent will transition to the requires_action status and
|
|
52
53
|
# suggest additional actions via next_action. If payment fails,
|
|
@@ -54,18 +55,22 @@ module Stripe
|
|
|
54
55
|
# canceled status if the confirmation limit is reached. If
|
|
55
56
|
# payment succeeds, the PaymentIntent will transition to the succeeded
|
|
56
57
|
# status (or requires_capture, if capture_method is set to manual).
|
|
58
|
+
#
|
|
57
59
|
# If the confirmation_method is automatic, payment may be attempted
|
|
58
|
-
# using our [client SDKs](https://stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
|
|
59
|
-
# and the PaymentIntent's [client_secret](https://stripe.com/
|
|
60
|
+
# using our [client SDKs](https://docs.stripe.com/docs/stripe-js/reference#stripe-handle-card-payment)
|
|
61
|
+
# and the PaymentIntent's [client_secret](https://docs.stripe.com/api#payment_intent_object-client_secret).
|
|
60
62
|
# After next_actions are handled by the client, no additional
|
|
61
63
|
# confirmation is required to complete the payment.
|
|
64
|
+
#
|
|
62
65
|
# If the confirmation_method is manual, all payment attempts must be
|
|
63
66
|
# initiated using a secret key.
|
|
67
|
+
#
|
|
64
68
|
# If any actions are required for the payment, the PaymentIntent will
|
|
65
69
|
# return to the requires_confirmation state
|
|
66
70
|
# after those actions are completed. Your server needs to then
|
|
67
71
|
# explicitly re-confirm the PaymentIntent to initiate the next payment
|
|
68
72
|
# attempt.
|
|
73
|
+
#
|
|
69
74
|
# There is a variable upper limit on how many times a PaymentIntent can be confirmed.
|
|
70
75
|
# After this limit is reached, any further calls to this endpoint will
|
|
71
76
|
# transition the PaymentIntent to the canceled state.
|
|
@@ -81,13 +86,13 @@ module Stripe
|
|
|
81
86
|
|
|
82
87
|
# Creates a PaymentIntent object.
|
|
83
88
|
#
|
|
84
|
-
# After the PaymentIntent is created, attach a payment method and [confirm](https://stripe.com/docs/api/payment_intents/confirm)
|
|
89
|
+
# After the PaymentIntent is created, attach a payment method and [confirm](https://docs.stripe.com/docs/api/payment_intents/confirm)
|
|
85
90
|
# to continue the payment. Learn more about <a href="/docs/payments/payment-intents">the available payment flows
|
|
86
91
|
# with the Payment Intents API.
|
|
87
92
|
#
|
|
88
93
|
# When you use confirm=true during creation, it's equivalent to creating
|
|
89
94
|
# and confirming the PaymentIntent in the same call. You can use any parameters
|
|
90
|
-
# available in the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) when you supply
|
|
95
|
+
# available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply
|
|
91
96
|
# confirm=true.
|
|
92
97
|
def create(params = {}, opts = {})
|
|
93
98
|
request(
|
|
@@ -100,9 +105,9 @@ module Stripe
|
|
|
100
105
|
end
|
|
101
106
|
|
|
102
107
|
# Perform an incremental authorization on an eligible
|
|
103
|
-
# [PaymentIntent](https://stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
108
|
+
# [PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/object). To be eligible, the
|
|
104
109
|
# PaymentIntent's status must be requires_capture and
|
|
105
|
-
# [incremental_authorization_supported](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
|
|
110
|
+
# [incremental_authorization_supported](https://docs.stripe.com/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported)
|
|
106
111
|
# must be true.
|
|
107
112
|
#
|
|
108
113
|
# Incremental authorizations attempt to increase the authorized amount on
|
|
@@ -113,16 +118,16 @@ module Stripe
|
|
|
113
118
|
#
|
|
114
119
|
# If the incremental authorization succeeds, the PaymentIntent object
|
|
115
120
|
# returns with the updated
|
|
116
|
-
# [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
|
121
|
+
# [amount](https://docs.stripe.com/docs/api/payment_intents/object#payment_intent_object-amount).
|
|
117
122
|
# If the incremental authorization fails, a
|
|
118
|
-
# [card_declined](https://stripe.com/docs/error-codes#card-declined) error returns, and no other
|
|
123
|
+
# [card_declined](https://docs.stripe.com/docs/error-codes#card-declined) error returns, and no other
|
|
119
124
|
# fields on the PaymentIntent or Charge update. The PaymentIntent
|
|
120
125
|
# object remains capturable for the previously authorized amount.
|
|
121
126
|
#
|
|
122
127
|
# Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
|
|
123
128
|
# After it's captured, a PaymentIntent can no longer be incremented.
|
|
124
129
|
#
|
|
125
|
-
# Learn more about [incremental authorizations](https://stripe.com/docs/terminal/features/incremental-authorizations).
|
|
130
|
+
# Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations).
|
|
126
131
|
def increment_authorization(intent, params = {}, opts = {})
|
|
127
132
|
request(
|
|
128
133
|
method: :post,
|
|
@@ -148,7 +153,7 @@ module Stripe
|
|
|
148
153
|
#
|
|
149
154
|
# You can retrieve a PaymentIntent client-side using a publishable key when the client_secret is in the query string.
|
|
150
155
|
#
|
|
151
|
-
# If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://stripe.com/
|
|
156
|
+
# If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details.
|
|
152
157
|
def retrieve(intent, params = {}, opts = {})
|
|
153
158
|
request(
|
|
154
159
|
method: :get,
|
|
@@ -159,7 +164,7 @@ module Stripe
|
|
|
159
164
|
)
|
|
160
165
|
end
|
|
161
166
|
|
|
162
|
-
# Search for PaymentIntents you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
|
167
|
+
# Search for PaymentIntents you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
|
163
168
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
|
164
169
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
|
165
170
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
|
@@ -179,7 +184,7 @@ module Stripe
|
|
|
179
184
|
# PaymentIntent again. For example, updating the payment_method
|
|
180
185
|
# always requires you to confirm the PaymentIntent again. If you prefer to
|
|
181
186
|
# update and confirm at the same time, we recommend updating properties through
|
|
182
|
-
# the [confirm API](https://stripe.com/docs/api/payment_intents/confirm) instead.
|
|
187
|
+
# the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead.
|
|
183
188
|
def update(intent, params = {}, opts = {})
|
|
184
189
|
request(
|
|
185
190
|
method: :post,
|
|
@@ -47,12 +47,12 @@ module Stripe
|
|
|
47
47
|
)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
# Some payment methods
|
|
51
|
-
# The payment method doesn't appear in Elements for this domain until it is active.
|
|
50
|
+
# Some payment methods might require additional steps to register a domain. If the requirements weren't satisfied when the domain was created, the payment method will be inactive on the domain.
|
|
51
|
+
# The payment method doesn't appear in Elements or Embedded Checkout for this domain until it is active.
|
|
52
52
|
#
|
|
53
|
-
# To activate a payment method on an existing payment method domain, complete the required
|
|
53
|
+
# To activate a payment method on an existing payment method domain, complete the required registration steps specific to the payment method, and then validate the payment method domain with this endpoint.
|
|
54
54
|
#
|
|
55
|
-
# Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
|
|
55
|
+
# Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration).
|
|
56
56
|
def validate(payment_method_domain, params = {}, opts = {})
|
|
57
57
|
request(
|
|
58
58
|
method: :post,
|
|
@@ -5,16 +5,16 @@ module Stripe
|
|
|
5
5
|
class PaymentMethodService < StripeService
|
|
6
6
|
# Attaches a PaymentMethod object to a Customer.
|
|
7
7
|
#
|
|
8
|
-
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
|
9
|
-
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
|
8
|
+
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
|
|
9
|
+
# or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
|
10
10
|
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
|
11
11
|
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
|
12
12
|
# future use, which makes later declines and payment friction more likely.
|
|
13
|
-
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
|
13
|
+
# See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
|
14
14
|
# future payments.
|
|
15
15
|
#
|
|
16
16
|
# To use this PaymentMethod as the default for invoice or subscription payments,
|
|
17
|
-
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
|
17
|
+
# set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
|
18
18
|
# on the Customer to the PaymentMethod's ID.
|
|
19
19
|
def attach(payment_method, params = {}, opts = {})
|
|
20
20
|
request(
|
|
@@ -26,9 +26,9 @@ module Stripe
|
|
|
26
26
|
)
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
|
29
|
+
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://docs.stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
|
30
30
|
#
|
|
31
|
-
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
|
31
|
+
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
|
32
32
|
def create(params = {}, opts = {})
|
|
33
33
|
request(
|
|
34
34
|
method: :post,
|
|
@@ -50,7 +50,7 @@ module Stripe
|
|
|
50
50
|
)
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
|
|
53
|
+
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead.
|
|
54
54
|
def list(params = {}, opts = {})
|
|
55
55
|
request(
|
|
56
56
|
method: :get,
|
|
@@ -61,7 +61,7 @@ module Stripe
|
|
|
61
61
|
)
|
|
62
62
|
end
|
|
63
63
|
|
|
64
|
-
# Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer)
|
|
64
|
+
# Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer)
|
|
65
65
|
def retrieve(payment_method, params = {}, opts = {})
|
|
66
66
|
request(
|
|
67
67
|
method: :get,
|
|
@@ -72,7 +72,7 @@ module Stripe
|
|
|
72
72
|
)
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
# Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.
|
|
75
|
+
# Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated.
|
|
76
76
|
def update(payment_method, params = {}, opts = {})
|
|
77
77
|
request(
|
|
78
78
|
method: :post,
|
|
@@ -14,11 +14,11 @@ module Stripe
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
-
# To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://stripe.com/
|
|
17
|
+
# To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://docs.stripe.com/api#balance) must cover the payout amount. If it doesn't, you receive an “Insufficient Funds” error.
|
|
18
18
|
#
|
|
19
19
|
# If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
|
|
20
20
|
#
|
|
21
|
-
# If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://stripe.com/
|
|
21
|
+
# If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
|
|
22
22
|
def create(params = {}, opts = {})
|
|
23
23
|
request(method: :post, path: "/v1/payouts", params: params, opts: opts, base_address: :api)
|
|
24
24
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class PlanService < StripeService
|
|
6
|
-
# You can now model subscriptions more flexibly using the [Prices API](https://stripe.com/
|
|
6
|
+
# You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration.
|
|
7
7
|
def create(params = {}, opts = {})
|
|
8
8
|
request(method: :post, path: "/v1/plans", params: params, opts: opts, base_address: :api)
|
|
9
9
|
end
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class PriceService < StripeService
|
|
6
|
-
# Creates a new
|
|
6
|
+
# Creates a new [Price for an existing <a href="https://docs.stripe.com/api/products">Product](https://docs.stripe.com/api/prices). The Price can be recurring or one-time.
|
|
7
7
|
def create(params = {}, opts = {})
|
|
8
8
|
request(method: :post, path: "/v1/prices", params: params, opts: opts, base_address: :api)
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
# Returns a list of your active prices, excluding [inline prices](https://stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
|
|
11
|
+
# Returns a list of your active prices, excluding [inline prices](https://docs.stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false.
|
|
12
12
|
def list(params = {}, opts = {})
|
|
13
13
|
request(method: :get, path: "/v1/prices", params: params, opts: opts, base_address: :api)
|
|
14
14
|
end
|
|
@@ -24,7 +24,7 @@ module Stripe
|
|
|
24
24
|
)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
# Search for prices you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
|
27
|
+
# Search for prices you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
|
28
28
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
|
29
29
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
|
30
30
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
attr_reader :features
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
|
-
super
|
|
9
|
+
super
|
|
10
10
|
@features = Stripe::ProductFeatureService.new(@requestor)
|
|
11
11
|
end
|
|
12
12
|
|
|
@@ -42,7 +42,7 @@ module Stripe
|
|
|
42
42
|
)
|
|
43
43
|
end
|
|
44
44
|
|
|
45
|
-
# Search for products you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
|
45
|
+
# Search for products you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
|
46
46
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
|
47
47
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
|
48
48
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class PromotionCodeService < StripeService
|
|
6
|
-
# A promotion code points to
|
|
6
|
+
# A promotion code points to an underlying promotion. You can optionally restrict the code to a specific customer, redemption limit, and expiration date.
|
|
7
7
|
def create(params = {}, opts = {})
|
|
8
8
|
request(
|
|
9
9
|
method: :post,
|
|
@@ -25,7 +25,7 @@ module Stripe
|
|
|
25
25
|
)
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
# Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://stripe.com/docs/api/promotion_codes/list) with the desired code.
|
|
28
|
+
# Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://docs.stripe.com/docs/api/promotion_codes/list) with the desired code.
|
|
29
29
|
def retrieve(promotion_code, params = {}, opts = {})
|
|
30
30
|
request(
|
|
31
31
|
method: :get,
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class QuoteService < StripeService
|
|
6
|
-
attr_reader :
|
|
6
|
+
attr_reader :computed_upfront_line_items, :line_items
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
|
-
super
|
|
10
|
-
@line_items = Stripe::QuoteLineItemService.new(@requestor)
|
|
9
|
+
super
|
|
11
10
|
@computed_upfront_line_items = Stripe::QuoteComputedUpfrontLineItemsService.new(@requestor)
|
|
11
|
+
@line_items = Stripe::QuoteLineItemService.new(@requestor)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
# Accepts the specified quote.
|
|
@@ -17,7 +17,7 @@ module Stripe
|
|
|
17
17
|
|
|
18
18
|
# Retrieves the details of an early fraud warning that has previously been created.
|
|
19
19
|
#
|
|
20
|
-
# Please refer to the [early fraud warning](https://stripe.com/
|
|
20
|
+
# Please refer to the [early fraud warning](https://docs.stripe.com/api#early_fraud_warning_object) object reference for more details.
|
|
21
21
|
def retrieve(early_fraud_warning, params = {}, opts = {})
|
|
22
22
|
request(
|
|
23
23
|
method: :get,
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
attr_reader :early_fraud_warnings, :value_lists, :value_list_items
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
|
-
super
|
|
9
|
+
super
|
|
10
10
|
@early_fraud_warnings = Stripe::Radar::EarlyFraudWarningService.new(@requestor)
|
|
11
11
|
@value_lists = Stripe::Radar::ValueListService.new(@requestor)
|
|
12
12
|
@value_list_items = Stripe::Radar::ValueListItemService.new(@requestor)
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
class SetupIntentService < StripeService
|
|
6
6
|
# You can cancel a SetupIntent object when it's in one of these statuses: requires_payment_method, requires_confirmation, or requires_action.
|
|
7
7
|
#
|
|
8
|
-
# After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead.
|
|
8
|
+
# After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead.
|
|
9
9
|
def cancel(intent, params = {}, opts = {})
|
|
10
10
|
request(
|
|
11
11
|
method: :post,
|
|
@@ -42,7 +42,7 @@ module Stripe
|
|
|
42
42
|
|
|
43
43
|
# Creates a SetupIntent object.
|
|
44
44
|
#
|
|
45
|
-
# After you create the SetupIntent, attach a payment method and [confirm](https://stripe.com/docs/api/setup_intents/confirm)
|
|
45
|
+
# After you create the SetupIntent, attach a payment method and [confirm](https://docs.stripe.com/docs/api/setup_intents/confirm)
|
|
46
46
|
# it to collect any required permissions to charge the payment method later.
|
|
47
47
|
def create(params = {}, opts = {})
|
|
48
48
|
request(
|
|
@@ -69,7 +69,7 @@ module Stripe
|
|
|
69
69
|
#
|
|
70
70
|
# Client-side retrieval using a publishable key is allowed when the client_secret is provided in the query string.
|
|
71
71
|
#
|
|
72
|
-
# When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the [SetupIntent](https://stripe.com/
|
|
72
|
+
# When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the [SetupIntent](https://docs.stripe.com/api#setup_intent_object) object reference for more details.
|
|
73
73
|
def retrieve(intent, params = {}, opts = {})
|
|
74
74
|
request(
|
|
75
75
|
method: :get,
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
attr_reader :transactions
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
|
-
super
|
|
9
|
+
super
|
|
10
10
|
@transactions = Stripe::SourceTransactionService.new(@requestor)
|
|
11
11
|
end
|
|
12
12
|
|
|
@@ -39,7 +39,7 @@ module Stripe
|
|
|
39
39
|
|
|
40
40
|
# Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
41
41
|
#
|
|
42
|
-
# This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our [payment method guides](https://stripe.com/docs/sources) for more detail.
|
|
42
|
+
# This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our [payment method guides](https://docs.stripe.com/docs/sources) for more detail.
|
|
43
43
|
def update(source, params = {}, opts = {})
|
|
44
44
|
request(
|
|
45
45
|
method: :post,
|
|
@@ -3,14 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class SubscriptionItemService < StripeService
|
|
6
|
-
attr_reader :usage_records, :usage_record_summaries
|
|
7
|
-
|
|
8
|
-
def initialize(requestor)
|
|
9
|
-
super(requestor)
|
|
10
|
-
@usage_records = Stripe::SubscriptionItemUsageRecordService.new(@requestor)
|
|
11
|
-
@usage_record_summaries = Stripe::SubscriptionItemUsageRecordSummaryService.new(@requestor)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
6
|
# Adds a new item to an existing subscription. No existing items will be changed or replaced.
|
|
15
7
|
def create(params = {}, opts = {})
|
|
16
8
|
request(
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class SubscriptionService < StripeService
|
|
6
|
-
# Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://stripe.com/metadata).
|
|
6
|
+
# Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://docs.stripe.com/metadata).
|
|
7
7
|
#
|
|
8
|
-
# Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://stripe.com/
|
|
8
|
+
# Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to true.
|
|
9
9
|
#
|
|
10
10
|
# By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
|
|
11
11
|
def cancel(subscription_exposed_id, params = {}, opts = {})
|
|
@@ -23,7 +23,7 @@ module Stripe
|
|
|
23
23
|
# When you create a subscription with collection_method=charge_automatically, the first invoice is finalized as part of the request.
|
|
24
24
|
# The payment_behavior parameter determines the exact behavior of the initial payment.
|
|
25
25
|
#
|
|
26
|
-
# To start subscriptions where the first invoice always begins in a draft status, use [subscription schedules](https://stripe.com/docs/billing/subscriptions/subscription-schedules#managing) instead.
|
|
26
|
+
# To start subscriptions where the first invoice always begins in a draft status, use [subscription schedules](https://docs.stripe.com/docs/billing/subscriptions/subscription-schedules#managing) instead.
|
|
27
27
|
# Schedules provide the flexibility to model more complex billing configurations that change over time.
|
|
28
28
|
def create(params = {}, opts = {})
|
|
29
29
|
request(
|
|
@@ -57,6 +57,17 @@ module Stripe
|
|
|
57
57
|
)
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
# Upgrade the billing_mode of an existing subscription.
|
|
61
|
+
def migrate(subscription, params = {}, opts = {})
|
|
62
|
+
request(
|
|
63
|
+
method: :post,
|
|
64
|
+
path: format("/v1/subscriptions/%<subscription>s/migrate", { subscription: CGI.escape(subscription) }),
|
|
65
|
+
params: params,
|
|
66
|
+
opts: opts,
|
|
67
|
+
base_address: :api
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
|
|
60
71
|
# Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date.
|
|
61
72
|
def resume(subscription, params = {}, opts = {})
|
|
62
73
|
request(
|
|
@@ -79,7 +90,7 @@ module Stripe
|
|
|
79
90
|
)
|
|
80
91
|
end
|
|
81
92
|
|
|
82
|
-
# Search for subscriptions you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language).
|
|
93
|
+
# Search for subscriptions you've previously created using Stripe's [Search Query Language](https://docs.stripe.com/docs/search#search-query-language).
|
|
83
94
|
# Don't use search in read-after-write flows where strict consistency is necessary. Under normal operating
|
|
84
95
|
# conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
|
|
85
96
|
# to an hour behind during outages. Search functionality is not available to merchants in India.
|
|
@@ -95,7 +106,7 @@ module Stripe
|
|
|
95
106
|
|
|
96
107
|
# Updates an existing subscription to match the specified parameters.
|
|
97
108
|
# When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
|
|
98
|
-
# To preview how the proration is calculated, use the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint.
|
|
109
|
+
# To preview how the proration is calculated, use the [create preview](https://docs.stripe.com/docs/api/invoices/create_preview) endpoint.
|
|
99
110
|
#
|
|
100
111
|
# By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a 100 price, they'll be billed 100 immediately. If on May 15 they switch to a 200 price, then on June 1 they'll be billed 250 (200 for a renewal of her subscription, plus a 50 prorating adjustment for half of the previous month's 100 difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.
|
|
101
112
|
#
|
|
@@ -107,13 +118,13 @@ module Stripe
|
|
|
107
118
|
# A trial starts or ends.
|
|
108
119
|
#
|
|
109
120
|
#
|
|
110
|
-
# In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment).
|
|
121
|
+
# In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://docs.stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment).
|
|
111
122
|
#
|
|
112
|
-
# If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create).
|
|
123
|
+
# If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://docs.stripe.com/docs/api/invoices/create).
|
|
113
124
|
#
|
|
114
125
|
# If you don't want to prorate, set the proration_behavior option to none. With this option, the customer is billed 100 on May 1 and 200 on June 1. Similarly, if you set proration_behavior to none when switching between different billing intervals (for example, from monthly to yearly), we don't generate any credits for the old subscription's unused time. We still reset the billing date and bill immediately for the new subscription.
|
|
115
126
|
#
|
|
116
|
-
# Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating <a href="/docs/billing/subscriptions/usage-based">usage-based billing](https://stripe.com/docs/rate-limits) instead.
|
|
127
|
+
# Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating <a href="/docs/billing/subscriptions/usage-based">usage-based billing](https://docs.stripe.com/docs/rate-limits) instead.
|
|
117
128
|
def update(subscription_exposed_id, params = {}, opts = {})
|
|
118
129
|
request(
|
|
119
130
|
method: :post,
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
attr_reader :calculations, :registrations, :settings, :transactions
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
|
-
super
|
|
9
|
+
super
|
|
10
10
|
@calculations = Stripe::Tax::CalculationService.new(@requestor)
|
|
11
11
|
@registrations = Stripe::Tax::RegistrationService.new(@requestor)
|
|
12
12
|
@settings = Stripe::Tax::SettingsService.new(@requestor)
|
|
@@ -5,7 +5,7 @@ module Stripe
|
|
|
5
5
|
module Terminal
|
|
6
6
|
class LocationService < StripeService
|
|
7
7
|
# Creates a new Location object.
|
|
8
|
-
# For further details, including which address fields are required in each country, see the [Manage locations](https://stripe.com/docs/terminal/fleet/locations) guide.
|
|
8
|
+
# For further details, including which address fields are required in each country, see the [Manage locations](https://docs.stripe.com/docs/terminal/fleet/locations) guide.
|
|
9
9
|
def create(params = {}, opts = {})
|
|
10
10
|
request(
|
|
11
11
|
method: :post,
|
|
@@ -15,6 +15,39 @@ module Stripe
|
|
|
15
15
|
)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
|
+
# Initiates an input collection flow on a Reader.
|
|
19
|
+
def collect_inputs(reader, params = {}, opts = {})
|
|
20
|
+
request(
|
|
21
|
+
method: :post,
|
|
22
|
+
path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(reader) }),
|
|
23
|
+
params: params,
|
|
24
|
+
opts: opts,
|
|
25
|
+
base_address: :api
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
|
|
30
|
+
def collect_payment_method(reader, params = {}, opts = {})
|
|
31
|
+
request(
|
|
32
|
+
method: :post,
|
|
33
|
+
path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(reader) }),
|
|
34
|
+
params: params,
|
|
35
|
+
opts: opts,
|
|
36
|
+
base_address: :api
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Finalizes a payment on a Reader.
|
|
41
|
+
def confirm_payment_intent(reader, params = {}, opts = {})
|
|
42
|
+
request(
|
|
43
|
+
method: :post,
|
|
44
|
+
path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(reader) }),
|
|
45
|
+
params: params,
|
|
46
|
+
opts: opts,
|
|
47
|
+
base_address: :api
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
18
51
|
# Creates a new Reader object.
|
|
19
52
|
def create(params = {}, opts = {})
|
|
20
53
|
request(
|
|
@@ -6,7 +6,7 @@ module Stripe
|
|
|
6
6
|
attr_reader :configurations, :connection_tokens, :locations, :readers
|
|
7
7
|
|
|
8
8
|
def initialize(requestor)
|
|
9
|
-
super
|
|
9
|
+
super
|
|
10
10
|
@configurations = Stripe::Terminal::ConfigurationService.new(@requestor)
|
|
11
11
|
@connection_tokens = Stripe::Terminal::ConnectionTokenService.new(@requestor)
|
|
12
12
|
@locations = Stripe::Terminal::LocationService.new(@requestor)
|
|
@@ -7,7 +7,7 @@ module Stripe
|
|
|
7
7
|
attr_reader :authorizations, :cards, :personalization_designs, :transactions
|
|
8
8
|
|
|
9
9
|
def initialize(requestor)
|
|
10
|
-
super
|
|
10
|
+
super
|
|
11
11
|
@authorizations = Stripe::TestHelpers::Issuing::AuthorizationService.new(@requestor)
|
|
12
12
|
@cards = Stripe::TestHelpers::Issuing::CardService.new(@requestor)
|
|
13
13
|
@personalization_designs = Stripe::TestHelpers::Issuing::PersonalizationDesignService
|