stripe 17.0.1 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/data/ca-certificates.crt +682 -518
- data/lib/stripe/api_requestor.rb +40 -44
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +3 -0
- data/lib/stripe/event_types.rb +61 -0
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +7 -7
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +5 -5
- data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_future_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
- data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
- data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +2 -2
- data/lib/stripe/object_types.rb +14 -0
- data/lib/stripe/params/account_capability_list_params.rb +1 -1
- data/lib/stripe/params/account_capability_retrieve_params.rb +1 -1
- data/lib/stripe/params/account_capability_update_params.rb +1 -1
- data/lib/stripe/params/account_create_params.rb +210 -143
- data/lib/stripe/params/account_delete_params.rb +1 -1
- data/lib/stripe/params/account_external_account_create_params.rb +6 -6
- data/lib/stripe/params/account_external_account_delete_params.rb +1 -1
- data/lib/stripe/params/account_external_account_list_params.rb +1 -1
- data/lib/stripe/params/account_external_account_retrieve_params.rb +1 -1
- data/lib/stripe/params/account_external_account_update_params.rb +5 -5
- data/lib/stripe/params/account_link_create_params.rb +2 -2
- data/lib/stripe/params/account_list_params.rb +2 -2
- data/lib/stripe/params/account_login_link_create_params.rb +1 -1
- data/lib/stripe/params/account_person_create_params.rb +29 -29
- data/lib/stripe/params/account_person_delete_params.rb +1 -1
- data/lib/stripe/params/account_person_list_params.rb +2 -2
- data/lib/stripe/params/account_person_retrieve_params.rb +1 -1
- data/lib/stripe/params/account_person_update_params.rb +29 -29
- data/lib/stripe/params/account_persons_params.rb +2 -2
- data/lib/stripe/params/account_reject_params.rb +1 -1
- data/lib/stripe/params/account_retrieve_current_params.rb +1 -1
- data/lib/stripe/params/account_retrieve_params.rb +1 -1
- data/lib/stripe/params/account_session_create_params.rb +43 -43
- data/lib/stripe/params/account_update_params.rb +206 -139
- data/lib/stripe/params/apple_pay_domain_create_params.rb +1 -1
- data/lib/stripe/params/apple_pay_domain_delete_params.rb +1 -1
- data/lib/stripe/params/apple_pay_domain_list_params.rb +1 -1
- data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +1 -1
- data/lib/stripe/params/application_fee_list_params.rb +2 -2
- data/lib/stripe/params/application_fee_refund_create_params.rb +2 -2
- data/lib/stripe/params/application_fee_refund_list_params.rb +1 -1
- data/lib/stripe/params/application_fee_refund_retrieve_params.rb +1 -1
- data/lib/stripe/params/application_fee_refund_update_params.rb +2 -2
- data/lib/stripe/params/application_fee_retrieve_params.rb +1 -1
- data/lib/stripe/params/apps/secret_create_params.rb +2 -2
- data/lib/stripe/params/apps/secret_delete_where_params.rb +2 -2
- data/lib/stripe/params/apps/secret_find_params.rb +2 -2
- data/lib/stripe/params/apps/secret_list_params.rb +2 -2
- data/lib/stripe/params/balance_retrieve_params.rb +1 -1
- data/lib/stripe/params/balance_settings_retrieve_params.rb +1 -1
- data/lib/stripe/params/balance_settings_update_params.rb +5 -5
- data/lib/stripe/params/balance_transaction_list_params.rb +4 -4
- data/lib/stripe/params/balance_transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/alert_activate_params.rb +1 -1
- data/lib/stripe/params/billing/alert_archive_params.rb +1 -1
- data/lib/stripe/params/billing/alert_create_params.rb +4 -4
- data/lib/stripe/params/billing/alert_deactivate_params.rb +1 -1
- data/lib/stripe/params/billing/alert_list_params.rb +1 -1
- data/lib/stripe/params/billing/alert_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +9 -6
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +6 -2
- data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/credit_grant_create_params.rb +12 -8
- data/lib/stripe/params/billing/credit_grant_expire_params.rb +1 -1
- data/lib/stripe/params/billing/credit_grant_list_params.rb +5 -1
- data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/credit_grant_update_params.rb +1 -1
- data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +1 -1
- data/lib/stripe/params/billing/meter_create_params.rb +4 -4
- data/lib/stripe/params/billing/meter_deactivate_params.rb +1 -1
- data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +2 -2
- data/lib/stripe/params/billing/meter_event_create_params.rb +2 -2
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_list_params.rb +1 -1
- data/lib/stripe/params/billing/meter_reactivate_params.rb +1 -1
- data/lib/stripe/params/billing/meter_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/meter_update_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +25 -18
- data/lib/stripe/params/billing_portal/configuration_list_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +25 -18
- data/lib/stripe/params/billing_portal/session_create_params.rb +23 -19
- data/lib/stripe/params/charge_capture_params.rb +4 -4
- data/lib/stripe/params/charge_create_params.rb +18 -18
- data/lib/stripe/params/charge_list_params.rb +2 -2
- data/lib/stripe/params/charge_retrieve_params.rb +1 -1
- data/lib/stripe/params/charge_search_params.rb +2 -2
- data/lib/stripe/params/charge_update_params.rb +7 -7
- data/lib/stripe/params/checkout/session_create_params.rb +359 -177
- data/lib/stripe/params/checkout/session_expire_params.rb +1 -1
- data/lib/stripe/params/checkout/session_line_item_list_params.rb +1 -1
- data/lib/stripe/params/checkout/session_list_line_items_params.rb +1 -1
- data/lib/stripe/params/checkout/session_list_params.rb +7 -3
- data/lib/stripe/params/checkout/session_retrieve_params.rb +1 -1
- data/lib/stripe/params/checkout/session_update_params.rb +185 -16
- data/lib/stripe/params/climate/order_cancel_params.rb +1 -1
- data/lib/stripe/params/climate/order_create_params.rb +7 -3
- data/lib/stripe/params/climate/order_list_params.rb +1 -1
- data/lib/stripe/params/climate/order_retrieve_params.rb +1 -1
- data/lib/stripe/params/climate/order_update_params.rb +3 -3
- data/lib/stripe/params/climate/product_list_params.rb +1 -1
- data/lib/stripe/params/climate/product_retrieve_params.rb +1 -1
- data/lib/stripe/params/climate/supplier_list_params.rb +1 -1
- data/lib/stripe/params/climate/supplier_retrieve_params.rb +1 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +117 -67
- data/lib/stripe/params/confirmation_token_retrieve_params.rb +1 -1
- data/lib/stripe/params/country_spec_list_params.rb +1 -1
- data/lib/stripe/params/country_spec_retrieve_params.rb +1 -1
- data/lib/stripe/params/coupon_create_params.rb +5 -5
- data/lib/stripe/params/coupon_delete_params.rb +1 -1
- data/lib/stripe/params/coupon_list_params.rb +2 -2
- data/lib/stripe/params/coupon_retrieve_params.rb +1 -1
- data/lib/stripe/params/coupon_update_params.rb +3 -3
- data/lib/stripe/params/credit_note_create_params.rb +44 -10
- data/lib/stripe/params/credit_note_line_item_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_params.rb +6 -2
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +44 -10
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +44 -10
- data/lib/stripe/params/credit_note_preview_params.rb +44 -10
- data/lib/stripe/params/credit_note_retrieve_params.rb +1 -1
- data/lib/stripe/params/credit_note_update_params.rb +2 -2
- data/lib/stripe/params/credit_note_void_credit_note_params.rb +1 -1
- data/lib/stripe/params/customer_balance_transaction_create_params.rb +3 -3
- data/lib/stripe/params/customer_balance_transaction_list_params.rb +32 -2
- data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_balance_transaction_update_params.rb +2 -2
- data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_cash_balance_update_params.rb +3 -3
- data/lib/stripe/params/customer_create_funding_instructions_params.rb +4 -4
- data/lib/stripe/params/customer_create_params.rb +17 -17
- data/lib/stripe/params/customer_delete_discount_params.rb +1 -1
- data/lib/stripe/params/customer_delete_params.rb +1 -1
- data/lib/stripe/params/customer_fund_cash_balance_params.rb +3 -3
- data/lib/stripe/params/customer_funding_instructions_create_params.rb +4 -4
- data/lib/stripe/params/customer_list_params.rb +2 -2
- data/lib/stripe/params/customer_list_payment_methods_params.rb +1 -1
- data/lib/stripe/params/customer_payment_method_list_params.rb +1 -1
- data/lib/stripe/params/customer_payment_method_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_payment_source_create_params.rb +3 -3
- data/lib/stripe/params/customer_payment_source_delete_params.rb +1 -1
- data/lib/stripe/params/customer_payment_source_list_params.rb +1 -1
- data/lib/stripe/params/customer_payment_source_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_payment_source_update_params.rb +5 -5
- data/lib/stripe/params/customer_payment_source_verify_params.rb +1 -1
- data/lib/stripe/params/customer_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_retrieve_payment_method_params.rb +1 -1
- data/lib/stripe/params/customer_search_params.rb +2 -2
- data/lib/stripe/params/customer_session_create_params.rb +97 -9
- data/lib/stripe/params/customer_tax_id_create_params.rb +2 -2
- data/lib/stripe/params/customer_tax_id_delete_params.rb +1 -1
- data/lib/stripe/params/customer_tax_id_list_params.rb +1 -1
- data/lib/stripe/params/customer_tax_id_retrieve_params.rb +1 -1
- data/lib/stripe/params/customer_update_params.rb +17 -17
- data/lib/stripe/params/dispute_close_params.rb +1 -1
- data/lib/stripe/params/dispute_list_params.rb +2 -2
- data/lib/stripe/params/dispute_retrieve_params.rb +1 -1
- data/lib/stripe/params/dispute_update_params.rb +12 -12
- data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +1 -1
- data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +1 -1
- data/lib/stripe/params/entitlements/feature_create_params.rb +1 -1
- data/lib/stripe/params/entitlements/feature_list_params.rb +1 -1
- data/lib/stripe/params/entitlements/feature_retrieve_params.rb +1 -1
- data/lib/stripe/params/entitlements/feature_update_params.rb +1 -1
- data/lib/stripe/params/ephemeral_key_create_params.rb +1 -1
- data/lib/stripe/params/ephemeral_key_delete_params.rb +1 -1
- data/lib/stripe/params/event_list_params.rb +2 -2
- data/lib/stripe/params/event_retrieve_params.rb +1 -1
- data/lib/stripe/params/exchange_rate_list_params.rb +1 -1
- data/lib/stripe/params/exchange_rate_retrieve_params.rb +1 -1
- data/lib/stripe/params/file_create_params.rb +5 -5
- data/lib/stripe/params/file_link_create_params.rb +2 -2
- data/lib/stripe/params/file_link_list_params.rb +2 -2
- data/lib/stripe/params/file_link_retrieve_params.rb +1 -1
- data/lib/stripe/params/file_link_update_params.rb +2 -2
- data/lib/stripe/params/file_list_params.rb +2 -2
- data/lib/stripe/params/file_retrieve_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_disconnect_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_list_owners_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_list_params.rb +8 -5
- data/lib/stripe/params/financial_connections/account_owner_list_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_refresh_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_retrieve_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_subscribe_params.rb +1 -1
- data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +1 -1
- data/lib/stripe/params/financial_connections/session_create_params.rb +9 -6
- data/lib/stripe/params/financial_connections/session_retrieve_params.rb +1 -1
- data/lib/stripe/params/financial_connections/transaction_list_params.rb +3 -3
- data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/forwarding/request_create_params.rb +4 -4
- data/lib/stripe/params/forwarding/request_list_params.rb +2 -2
- data/lib/stripe/params/forwarding/request_retrieve_params.rb +1 -1
- data/lib/stripe/params/identity/verification_report_list_params.rb +2 -2
- data/lib/stripe/params/identity/verification_report_retrieve_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_cancel_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_create_params.rb +14 -10
- data/lib/stripe/params/identity/verification_session_list_params.rb +8 -4
- data/lib/stripe/params/identity/verification_session_redact_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_retrieve_params.rb +1 -1
- data/lib/stripe/params/identity/verification_session_update_params.rb +9 -9
- data/lib/stripe/params/invoice_add_lines_params.rb +48 -18
- data/lib/stripe/params/invoice_attach_payment_params.rb +5 -2
- data/lib/stripe/params/invoice_create_params.rb +77 -48
- data/lib/stripe/params/invoice_create_preview_params.rb +257 -80
- data/lib/stripe/params/invoice_delete_params.rb +1 -1
- data/lib/stripe/params/invoice_finalize_invoice_params.rb +2 -2
- data/lib/stripe/params/invoice_item_create_params.rb +33 -13
- data/lib/stripe/params/invoice_item_delete_params.rb +1 -1
- data/lib/stripe/params/invoice_item_list_params.rb +7 -3
- data/lib/stripe/params/invoice_item_retrieve_params.rb +1 -1
- data/lib/stripe/params/invoice_item_update_params.rb +28 -12
- data/lib/stripe/params/invoice_line_item_list_params.rb +1 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +31 -16
- data/lib/stripe/params/invoice_list_params.rb +8 -4
- data/lib/stripe/params/invoice_mark_uncollectible_params.rb +1 -1
- data/lib/stripe/params/invoice_pay_params.rb +1 -1
- data/lib/stripe/params/invoice_payment_list_params.rb +28 -3
- data/lib/stripe/params/invoice_payment_retrieve_params.rb +1 -1
- data/lib/stripe/params/invoice_remove_lines_params.rb +3 -3
- data/lib/stripe/params/invoice_rendering_template_archive_params.rb +1 -1
- data/lib/stripe/params/invoice_rendering_template_list_params.rb +1 -1
- data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +1 -1
- data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +1 -1
- data/lib/stripe/params/invoice_retrieve_params.rb +1 -1
- data/lib/stripe/params/invoice_search_params.rb +2 -2
- data/lib/stripe/params/invoice_send_invoice_params.rb +1 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -18
- data/lib/stripe/params/invoice_update_params.rb +70 -45
- data/lib/stripe/params/invoice_void_invoice_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_approve_params.rb +3 -3
- data/lib/stripe/params/issuing/authorization_capture_params.rb +139 -14
- data/lib/stripe/params/issuing/authorization_create_params.rb +124 -29
- data/lib/stripe/params/issuing/authorization_decline_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_expire_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +89 -9
- data/lib/stripe/params/issuing/authorization_increment_params.rb +3 -3
- data/lib/stripe/params/issuing/authorization_list_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_respond_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_reverse_params.rb +2 -2
- data/lib/stripe/params/issuing/authorization_update_params.rb +2 -2
- data/lib/stripe/params/issuing/card_create_params.rb +36 -15
- data/lib/stripe/params/issuing/card_deliver_card_params.rb +1 -1
- data/lib/stripe/params/issuing/card_fail_card_params.rb +1 -1
- data/lib/stripe/params/issuing/card_list_params.rb +2 -2
- data/lib/stripe/params/issuing/card_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/card_return_card_params.rb +1 -1
- data/lib/stripe/params/issuing/card_ship_card_params.rb +1 -1
- data/lib/stripe/params/issuing/card_submit_card_params.rb +1 -1
- data/lib/stripe/params/issuing/card_update_params.rb +14 -14
- data/lib/stripe/params/issuing/cardholder_create_params.rb +26 -26
- data/lib/stripe/params/issuing/cardholder_list_params.rb +2 -2
- data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/cardholder_update_params.rb +25 -25
- data/lib/stripe/params/issuing/dispute_create_params.rb +13 -13
- data/lib/stripe/params/issuing/dispute_list_params.rb +2 -2
- data/lib/stripe/params/issuing/dispute_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/dispute_submit_params.rb +2 -2
- data/lib/stripe/params/issuing/dispute_update_params.rb +12 -12
- data/lib/stripe/params/issuing/personalization_design_activate_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_create_params.rb +4 -4
- data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_list_params.rb +2 -2
- data/lib/stripe/params/issuing/personalization_design_reject_params.rb +2 -2
- data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/personalization_design_update_params.rb +4 -4
- data/lib/stripe/params/issuing/physical_bundle_list_params.rb +1 -1
- data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/token_list_params.rb +2 -2
- data/lib/stripe/params/issuing/token_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/token_update_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +141 -16
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +141 -16
- data/lib/stripe/params/issuing/transaction_list_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_refund_params.rb +2 -2
- data/lib/stripe/params/issuing/transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_update_params.rb +2 -2
- data/lib/stripe/params/mandate_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_attempt_record_list_params.rb +22 -0
- data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
- data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +2 -2
- data/lib/stripe/params/payment_intent_cancel_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +243 -6
- data/lib/stripe/params/payment_intent_confirm_params.rb +544 -162
- data/lib/stripe/params/payment_intent_create_params.rb +568 -178
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +242 -5
- data/lib/stripe/params/payment_intent_list_params.rb +6 -2
- data/lib/stripe/params/payment_intent_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_intent_search_params.rb +2 -2
- data/lib/stripe/params/payment_intent_update_params.rb +550 -160
- data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +1 -1
- data/lib/stripe/params/payment_link_create_params.rb +134 -73
- data/lib/stripe/params/payment_link_line_item_list_params.rb +1 -1
- data/lib/stripe/params/payment_link_list_line_items_params.rb +1 -1
- data/lib/stripe/params/payment_link_list_params.rb +1 -1
- data/lib/stripe/params/payment_link_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_link_update_params.rb +128 -54
- data/lib/stripe/params/payment_method_attach_params.rb +5 -2
- data/lib/stripe/params/payment_method_configuration_create_params.rb +227 -143
- data/lib/stripe/params/payment_method_configuration_list_params.rb +1 -1
- data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_method_configuration_update_params.rb +227 -143
- data/lib/stripe/params/payment_method_create_params.rb +124 -60
- data/lib/stripe/params/payment_method_detach_params.rb +1 -1
- data/lib/stripe/params/payment_method_domain_create_params.rb +1 -1
- data/lib/stripe/params/payment_method_domain_list_params.rb +1 -1
- data/lib/stripe/params/payment_method_domain_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_method_domain_update_params.rb +1 -1
- data/lib/stripe/params/payment_method_domain_validate_params.rb +1 -1
- data/lib/stripe/params/payment_method_list_params.rb +10 -2
- data/lib/stripe/params/payment_method_retrieve_params.rb +1 -1
- data/lib/stripe/params/payment_method_update_params.rb +27 -8
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
- data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
- data/lib/stripe/params/payment_record_report_refund_params.rb +79 -0
- data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
- data/lib/stripe/params/payout_cancel_params.rb +1 -1
- data/lib/stripe/params/payout_create_params.rb +2 -2
- data/lib/stripe/params/payout_list_params.rb +3 -3
- data/lib/stripe/params/payout_retrieve_params.rb +1 -1
- data/lib/stripe/params/payout_reverse_params.rb +2 -2
- data/lib/stripe/params/payout_update_params.rb +2 -2
- data/lib/stripe/params/plan_create_params.rb +28 -8
- data/lib/stripe/params/plan_delete_params.rb +1 -1
- data/lib/stripe/params/plan_list_params.rb +2 -2
- data/lib/stripe/params/plan_retrieve_params.rb +1 -1
- data/lib/stripe/params/plan_update_params.rb +3 -3
- data/lib/stripe/params/price_create_params.rb +55 -15
- data/lib/stripe/params/price_list_params.rb +3 -3
- data/lib/stripe/params/price_retrieve_params.rb +1 -1
- data/lib/stripe/params/price_search_params.rb +2 -2
- data/lib/stripe/params/price_update_params.rb +27 -7
- data/lib/stripe/params/product_create_params.rb +49 -16
- data/lib/stripe/params/product_delete_params.rb +1 -1
- data/lib/stripe/params/product_feature_create_params.rb +2 -2
- data/lib/stripe/params/product_feature_delete_params.rb +1 -1
- data/lib/stripe/params/product_feature_list_params.rb +1 -1
- data/lib/stripe/params/product_feature_retrieve_params.rb +1 -1
- data/lib/stripe/params/product_list_params.rb +3 -3
- data/lib/stripe/params/product_retrieve_params.rb +1 -1
- data/lib/stripe/params/product_search_params.rb +2 -2
- data/lib/stripe/params/product_update_params.rb +7 -7
- data/lib/stripe/params/promotion_code_create_params.rb +11 -7
- data/lib/stripe/params/promotion_code_list_params.rb +6 -2
- data/lib/stripe/params/promotion_code_retrieve_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +4 -4
- data/lib/stripe/params/quote_accept_params.rb +1 -1
- data/lib/stripe/params/quote_cancel_params.rb +1 -1
- data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +1 -1
- data/lib/stripe/params/quote_create_params.rb +45 -19
- data/lib/stripe/params/quote_finalize_quote_params.rb +1 -1
- data/lib/stripe/params/quote_line_item_list_params.rb +1 -1
- data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +1 -1
- data/lib/stripe/params/quote_list_line_items_params.rb +1 -1
- data/lib/stripe/params/quote_list_params.rb +6 -2
- data/lib/stripe/params/quote_pdf_params.rb +1 -1
- data/lib/stripe/params/quote_retrieve_params.rb +1 -1
- data/lib/stripe/params/quote_update_params.rb +42 -16
- data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +2 -2
- data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +1 -1
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +223 -0
- data/lib/stripe/params/radar/value_list_create_params.rb +3 -3
- data/lib/stripe/params/radar/value_list_delete_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_item_create_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_item_delete_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_item_list_params.rb +2 -2
- data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_list_params.rb +2 -2
- data/lib/stripe/params/radar/value_list_retrieve_params.rb +1 -1
- data/lib/stripe/params/radar/value_list_update_params.rb +2 -2
- data/lib/stripe/params/refund_cancel_params.rb +1 -1
- data/lib/stripe/params/refund_create_params.rb +3 -3
- data/lib/stripe/params/refund_expire_params.rb +1 -1
- data/lib/stripe/params/refund_list_params.rb +2 -2
- data/lib/stripe/params/refund_retrieve_params.rb +1 -1
- data/lib/stripe/params/refund_update_params.rb +2 -2
- data/lib/stripe/params/reporting/report_run_create_params.rb +4 -4
- data/lib/stripe/params/reporting/report_run_list_params.rb +2 -2
- data/lib/stripe/params/reporting/report_run_retrieve_params.rb +1 -1
- data/lib/stripe/params/reporting/report_type_list_params.rb +1 -1
- data/lib/stripe/params/reporting/report_type_retrieve_params.rb +1 -1
- data/lib/stripe/params/review_approve_params.rb +1 -1
- data/lib/stripe/params/review_list_params.rb +2 -2
- data/lib/stripe/params/review_retrieve_params.rb +1 -1
- data/lib/stripe/params/setup_attempt_list_params.rb +2 -2
- data/lib/stripe/params/setup_intent_cancel_params.rb +1 -1
- data/lib/stripe/params/setup_intent_confirm_params.rb +223 -93
- data/lib/stripe/params/setup_intent_create_params.rb +241 -101
- data/lib/stripe/params/setup_intent_list_params.rb +6 -2
- data/lib/stripe/params/setup_intent_retrieve_params.rb +1 -1
- data/lib/stripe/params/setup_intent_update_params.rb +231 -91
- data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +1 -1
- data/lib/stripe/params/shipping_rate_create_params.rb +8 -8
- data/lib/stripe/params/shipping_rate_list_params.rb +2 -2
- data/lib/stripe/params/shipping_rate_retrieve_params.rb +1 -1
- data/lib/stripe/params/shipping_rate_update_params.rb +4 -4
- data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +1 -1
- data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +1 -1
- data/lib/stripe/params/source_create_params.rb +16 -16
- data/lib/stripe/params/source_detach_params.rb +1 -1
- data/lib/stripe/params/source_retrieve_params.rb +1 -1
- data/lib/stripe/params/source_transaction_list_params.rb +1 -1
- data/lib/stripe/params/source_update_params.rb +14 -14
- data/lib/stripe/params/source_verify_params.rb +1 -1
- data/lib/stripe/params/subscription_cancel_params.rb +2 -2
- data/lib/stripe/params/subscription_create_params.rb +131 -63
- data/lib/stripe/params/subscription_delete_discount_params.rb +1 -1
- data/lib/stripe/params/subscription_item_create_params.rb +25 -15
- data/lib/stripe/params/subscription_item_delete_params.rb +18 -4
- data/lib/stripe/params/subscription_item_list_params.rb +1 -1
- data/lib/stripe/params/subscription_item_retrieve_params.rb +1 -1
- data/lib/stripe/params/subscription_item_update_params.rb +25 -15
- data/lib/stripe/params/subscription_list_params.rb +11 -7
- data/lib/stripe/params/subscription_migrate_params.rb +3 -3
- data/lib/stripe/params/subscription_resume_params.rb +3 -3
- data/lib/stripe/params/subscription_retrieve_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_cancel_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_create_params.rb +119 -45
- data/lib/stripe/params/subscription_schedule_list_params.rb +9 -5
- data/lib/stripe/params/subscription_schedule_release_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_retrieve_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_update_params.rb +113 -43
- data/lib/stripe/params/subscription_search_params.rb +2 -2
- data/lib/stripe/params/subscription_update_params.rb +126 -62
- data/lib/stripe/params/tax/association_find_params.rb +18 -0
- data/lib/stripe/params/tax/calculation_create_params.rb +16 -16
- data/lib/stripe/params/tax/calculation_line_item_list_params.rb +1 -1
- data/lib/stripe/params/tax/calculation_list_line_items_params.rb +1 -1
- data/lib/stripe/params/tax/calculation_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax/registration_create_params.rb +190 -164
- data/lib/stripe/params/tax/registration_list_params.rb +1 -1
- data/lib/stripe/params/tax/registration_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax/registration_update_params.rb +1 -1
- data/lib/stripe/params/tax/settings_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax/settings_update_params.rb +5 -5
- data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +2 -2
- data/lib/stripe/params/tax/transaction_create_reversal_params.rb +12 -12
- data/lib/stripe/params/tax/transaction_line_item_list_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_list_line_items_params.rb +1 -1
- data/lib/stripe/params/tax/transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax_code_list_params.rb +1 -1
- data/lib/stripe/params/tax_code_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax_id_create_params.rb +8 -5
- data/lib/stripe/params/tax_id_delete_params.rb +1 -1
- data/lib/stripe/params/tax_id_list_params.rb +7 -4
- data/lib/stripe/params/tax_id_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax_rate_create_params.rb +2 -2
- data/lib/stripe/params/tax_rate_list_params.rb +2 -2
- data/lib/stripe/params/tax_rate_retrieve_params.rb +1 -1
- data/lib/stripe/params/tax_rate_update_params.rb +2 -2
- data/lib/stripe/params/terminal/configuration_create_params.rb +72 -46
- data/lib/stripe/params/terminal/configuration_delete_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_list_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_retrieve_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_update_params.rb +72 -46
- data/lib/stripe/params/terminal/connection_token_create_params.rb +1 -1
- data/lib/stripe/params/terminal/location_create_params.rb +6 -6
- data/lib/stripe/params/terminal/location_delete_params.rb +1 -1
- data/lib/stripe/params/terminal/location_list_params.rb +1 -1
- data/lib/stripe/params/terminal/location_retrieve_params.rb +1 -1
- data/lib/stripe/params/terminal/location_update_params.rb +6 -6
- data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
- data/lib/stripe/params/terminal/reader_cancel_action_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +14 -14
- data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +5 -5
- data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +4 -4
- data/lib/stripe/params/terminal/reader_create_params.rb +2 -2
- data/lib/stripe/params/terminal/reader_delete_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_list_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +5 -5
- data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +5 -5
- data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +4 -4
- data/lib/stripe/params/terminal/reader_refund_payment_params.rb +4 -4
- data/lib/stripe/params/terminal/reader_retrieve_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +9 -9
- data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +1 -1
- data/lib/stripe/params/terminal/reader_update_params.rb +2 -2
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +117 -67
- data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +3 -3
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +142 -14
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +127 -29
- data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +92 -9
- data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +3 -3
- data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +2 -2
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +144 -16
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +144 -16
- data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +2 -2
- data/lib/stripe/params/test_helpers/refund_expire_params.rb +1 -1
- data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +5 -5
- data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +1 -1
- data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +1 -1
- data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +1 -1
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +1 -1
- data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +1 -1
- data/lib/stripe/params/test_helpers/test_clock_list_params.rb +1 -1
- data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +2 -2
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
- data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +4 -4
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +1 -1
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
- data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +4 -4
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +4 -4
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +4 -4
- data/lib/stripe/params/token_create_params.rb +86 -67
- data/lib/stripe/params/token_retrieve_params.rb +1 -1
- data/lib/stripe/params/topup_cancel_params.rb +1 -1
- data/lib/stripe/params/topup_create_params.rb +3 -3
- data/lib/stripe/params/topup_list_params.rb +3 -3
- data/lib/stripe/params/topup_retrieve_params.rb +1 -1
- data/lib/stripe/params/topup_update_params.rb +2 -2
- data/lib/stripe/params/transfer_create_params.rb +4 -4
- data/lib/stripe/params/transfer_list_params.rb +2 -2
- data/lib/stripe/params/transfer_retrieve_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_create_params.rb +2 -2
- data/lib/stripe/params/transfer_reversal_list_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_retrieve_params.rb +1 -1
- data/lib/stripe/params/transfer_reversal_update_params.rb +2 -2
- data/lib/stripe/params/transfer_update_params.rb +2 -2
- data/lib/stripe/params/treasury/credit_reversal_create_params.rb +2 -2
- data/lib/stripe/params/treasury/credit_reversal_list_params.rb +1 -1
- data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/debit_reversal_create_params.rb +2 -2
- data/lib/stripe/params/treasury/debit_reversal_list_params.rb +1 -1
- data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_close_params.rb +2 -2
- data/lib/stripe/params/treasury/financial_account_create_params.rb +17 -17
- data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +14 -14
- data/lib/stripe/params/treasury/financial_account_list_params.rb +2 -2
- data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +14 -14
- data/lib/stripe/params/treasury/financial_account_update_params.rb +18 -18
- data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +1 -1
- data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +3 -3
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +2 -2
- data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +1 -1
- data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +1 -1
- data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +13 -13
- data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_payment_list_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_payment_post_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_payment_update_params.rb +4 -4
- data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +7 -7
- data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +2 -2
- data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +4 -4
- data/lib/stripe/params/treasury/received_credit_create_params.rb +4 -4
- data/lib/stripe/params/treasury/received_credit_list_params.rb +2 -2
- data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +4 -4
- data/lib/stripe/params/treasury/received_debit_list_params.rb +1 -1
- data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/transaction_entry_list_params.rb +3 -3
- data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +1 -1
- data/lib/stripe/params/treasury/transaction_list_params.rb +4 -4
- data/lib/stripe/params/treasury/transaction_retrieve_params.rb +1 -1
- data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/meter_event_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +1 -1
- data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +2 -2
- data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +2154 -0
- data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
- data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1048 -0
- data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/account_update_params.rb +2207 -0
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +507 -0
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +497 -0
- data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +507 -0
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +8 -4
- data/lib/stripe/params/v2/core/event_destination_delete_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_disable_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_enable_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_list_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_ping_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +1 -1
- data/lib/stripe/params/v2/core/event_destination_update_params.rb +2 -2
- data/lib/stripe/params/v2/core/event_list_params.rb +25 -2
- data/lib/stripe/params/v2/core/event_retrieve_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_create_params.rb +2 -2
- data/lib/stripe/params/webhook_endpoint_delete_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_list_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +1 -1
- data/lib/stripe/params/webhook_endpoint_update_params.rb +2 -2
- data/lib/stripe/params.rb +29 -0
- data/lib/stripe/request_params.rb +116 -0
- data/lib/stripe/resources/account.rb +94 -68
- data/lib/stripe/resources/account_link.rb +1 -1
- data/lib/stripe/resources/account_session.rb +45 -45
- data/lib/stripe/resources/apple_pay_domain.rb +1 -1
- data/lib/stripe/resources/application_fee.rb +2 -2
- data/lib/stripe/resources/application_fee_refund.rb +2 -2
- data/lib/stripe/resources/apps/secret.rb +3 -3
- data/lib/stripe/resources/balance.rb +21 -21
- data/lib/stripe/resources/balance_settings.rb +5 -5
- data/lib/stripe/resources/balance_transaction.rb +3 -3
- data/lib/stripe/resources/bank_account.rb +16 -16
- data/lib/stripe/resources/billing/alert.rb +4 -4
- data/lib/stripe/resources/billing/alert_triggered.rb +1 -1
- data/lib/stripe/resources/billing/credit_balance_summary.rb +8 -6
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +9 -9
- data/lib/stripe/resources/billing/credit_grant.rb +9 -7
- data/lib/stripe/resources/billing/meter.rb +5 -5
- data/lib/stripe/resources/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/billing/meter_event_adjustment.rb +2 -2
- data/lib/stripe/resources/billing/meter_event_summary.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +22 -18
- data/lib/stripe/resources/billing_portal/session.rb +20 -18
- data/lib/stripe/resources/capability.rb +22 -22
- data/lib/stripe/resources/card.rb +3 -3
- data/lib/stripe/resources/cash_balance.rb +5 -3
- data/lib/stripe/resources/charge.rb +198 -138
- data/lib/stripe/resources/checkout/session.rb +266 -140
- data/lib/stripe/resources/climate/order.rb +8 -4
- data/lib/stripe/resources/climate/product.rb +5 -1
- data/lib/stripe/resources/climate/supplier.rb +1 -1
- data/lib/stripe/resources/confirmation_token.rb +147 -105
- data/lib/stripe/resources/connect_collection_transfer.rb +1 -1
- data/lib/stripe/resources/country_spec.rb +3 -3
- data/lib/stripe/resources/coupon.rb +6 -6
- data/lib/stripe/resources/credit_note.rb +33 -13
- data/lib/stripe/resources/credit_note_line_item.rb +12 -6
- data/lib/stripe/resources/customer.rb +21 -17
- data/lib/stripe/resources/customer_balance_transaction.rb +8 -6
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +23 -21
- data/lib/stripe/resources/customer_session.rb +90 -6
- data/lib/stripe/resources/discount.rb +5 -3
- data/lib/stripe/resources/dispute.rb +23 -23
- data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -2
- data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +1 -1
- data/lib/stripe/resources/entitlements/feature.rb +1 -1
- data/lib/stripe/resources/ephemeral_key.rb +1 -1
- data/lib/stripe/resources/event.rb +4 -4
- data/lib/stripe/resources/exchange_rate.rb +2 -2
- data/lib/stripe/resources/file.rb +4 -4
- data/lib/stripe/resources/file_link.rb +2 -2
- data/lib/stripe/resources/financial_connections/account.rb +37 -13
- data/lib/stripe/resources/financial_connections/session.rb +7 -5
- data/lib/stripe/resources/financial_connections/transaction.rb +2 -2
- data/lib/stripe/resources/forwarding/request.rb +7 -7
- data/lib/stripe/resources/funding_instructions.rb +35 -35
- data/lib/stripe/resources/identity/verification_report.rb +28 -28
- data/lib/stripe/resources/identity/verification_session.rb +26 -24
- data/lib/stripe/resources/invoice.rb +119 -85
- data/lib/stripe/resources/invoice_item.rb +29 -14
- data/lib/stripe/resources/invoice_line_item.rb +35 -20
- data/lib/stripe/resources/invoice_payment.rb +6 -4
- data/lib/stripe/resources/invoice_rendering_template.rb +2 -2
- data/lib/stripe/resources/issuing/authorization.rb +120 -40
- data/lib/stripe/resources/issuing/card.rb +69 -23
- data/lib/stripe/resources/issuing/cardholder.rb +28 -28
- data/lib/stripe/resources/issuing/dispute.rb +18 -18
- data/lib/stripe/resources/issuing/personalization_design.rb +5 -5
- data/lib/stripe/resources/issuing/physical_bundle.rb +2 -2
- data/lib/stripe/resources/issuing/token.rb +8 -8
- data/lib/stripe/resources/issuing/transaction.rb +145 -29
- data/lib/stripe/resources/line_item.rb +30 -5
- data/lib/stripe/resources/login_link.rb +1 -1
- data/lib/stripe/resources/mandate.rb +77 -23
- data/lib/stripe/resources/payment_attempt_record.rb +2010 -0
- data/lib/stripe/resources/payment_intent.rb +413 -178
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +138 -0
- data/lib/stripe/resources/payment_link.rb +101 -54
- data/lib/stripe/resources/payment_method.rb +174 -98
- data/lib/stripe/resources/payment_method_configuration.rb +243 -107
- data/lib/stripe/resources/payment_method_domain.rb +14 -14
- data/lib/stripe/resources/payment_record.rb +2140 -0
- data/lib/stripe/resources/payout.rb +12 -12
- data/lib/stripe/resources/person.rb +43 -43
- data/lib/stripe/resources/plan.rb +28 -8
- data/lib/stripe/resources/price.rb +54 -14
- data/lib/stripe/resources/product.rb +12 -12
- data/lib/stripe/resources/product_feature.rb +1 -1
- data/lib/stripe/resources/promotion_code.rb +10 -8
- data/lib/stripe/resources/quote.rb +39 -37
- data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -2
- data/lib/stripe/resources/radar/payment_evaluation.rb +497 -0
- data/lib/stripe/resources/radar/value_list.rb +4 -4
- data/lib/stripe/resources/radar/value_list_item.rb +2 -2
- data/lib/stripe/resources/refund.rb +87 -40
- data/lib/stripe/resources/reporting/report_run.rb +4 -4
- data/lib/stripe/resources/reporting/report_type.rb +4 -4
- data/lib/stripe/resources/reserve/hold.rb +67 -0
- data/lib/stripe/resources/reserve/plan.rb +78 -0
- data/lib/stripe/resources/reserve/release.rb +65 -0
- data/lib/stripe/resources/reversal.rb +4 -4
- data/lib/stripe/resources/review.rb +4 -4
- data/lib/stripe/resources/setup_attempt.rb +74 -46
- data/lib/stripe/resources/setup_intent.rb +163 -49
- data/lib/stripe/resources/shipping_rate.rb +9 -9
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +3 -3
- data/lib/stripe/resources/source.rb +38 -38
- data/lib/stripe/resources/source_mandate_notification.rb +7 -7
- data/lib/stripe/resources/source_transaction.rb +6 -6
- data/lib/stripe/resources/subscription.rb +105 -55
- data/lib/stripe/resources/subscription_item.rb +8 -8
- data/lib/stripe/resources/subscription_schedule.rb +37 -35
- data/lib/stripe/resources/tax/association.rb +86 -0
- data/lib/stripe/resources/tax/calculation.rb +26 -26
- data/lib/stripe/resources/tax/calculation_line_item.rb +11 -11
- data/lib/stripe/resources/tax/registration.rb +176 -144
- data/lib/stripe/resources/tax/settings.rb +9 -9
- data/lib/stripe/resources/tax/transaction.rb +21 -21
- data/lib/stripe/resources/tax/transaction_line_item.rb +7 -7
- data/lib/stripe/resources/tax_id.rb +10 -6
- data/lib/stripe/resources/tax_rate.rb +3 -3
- data/lib/stripe/resources/terminal/configuration.rb +68 -36
- data/lib/stripe/resources/terminal/connection_token.rb +1 -1
- data/lib/stripe/resources/terminal/location.rb +7 -7
- data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
- data/lib/stripe/resources/terminal/reader.rb +64 -62
- data/lib/stripe/resources/test_helpers/test_clock.rb +3 -3
- data/lib/stripe/resources/token.rb +5 -5
- data/lib/stripe/resources/topup.rb +4 -4
- data/lib/stripe/resources/transfer.rb +6 -6
- data/lib/stripe/resources/treasury/credit_reversal.rb +5 -5
- data/lib/stripe/resources/treasury/debit_reversal.rb +6 -6
- data/lib/stripe/resources/treasury/financial_account.rb +8 -8
- data/lib/stripe/resources/treasury/financial_account_features.rb +22 -22
- data/lib/stripe/resources/treasury/inbound_transfer.rb +13 -13
- data/lib/stripe/resources/treasury/outbound_payment.rb +18 -18
- data/lib/stripe/resources/treasury/outbound_transfer.rb +16 -16
- data/lib/stripe/resources/treasury/received_credit.rb +19 -19
- data/lib/stripe/resources/treasury/received_debit.rb +17 -15
- data/lib/stripe/resources/treasury/transaction.rb +15 -15
- data/lib/stripe/resources/treasury/transaction_entry.rb +14 -14
- data/lib/stripe/resources/v2/billing/meter_event.rb +3 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -1
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +1 -0
- data/lib/stripe/resources/v2/core/account.rb +3586 -0
- data/lib/stripe/resources/v2/core/account_link.rb +123 -0
- data/lib/stripe/resources/v2/core/account_person.rb +487 -0
- data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
- data/lib/stripe/resources/v2/core/account_token.rb +37 -0
- data/lib/stripe/resources/v2/core/event.rb +6 -4
- data/lib/stripe/resources/v2/core/event_destination.rb +9 -5
- data/lib/stripe/resources/v2/core/event_notification.rb +2 -1
- data/lib/stripe/resources/webhook_endpoint.rb +2 -2
- data/lib/stripe/resources.rb +31 -0
- data/lib/stripe/services/checkout/session_service.rb +5 -1
- data/lib/stripe/services/climate/order_service.rb +2 -0
- data/lib/stripe/services/credit_note_preview_lines_service.rb +2 -0
- data/lib/stripe/services/credit_note_service.rb +4 -0
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/invoice_item_service.rb +4 -0
- data/lib/stripe/services/invoice_line_item_service.rb +2 -0
- data/lib/stripe/services/invoice_service.rb +10 -4
- data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
- data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
- data/lib/stripe/services/payment_intent_service.rb +8 -1
- data/lib/stripe/services/payment_link_service.rb +2 -0
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/payment_record_service.rb +101 -0
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +2 -0
- data/lib/stripe/services/price_service.rb +2 -0
- data/lib/stripe/services/product_service.rb +2 -0
- data/lib/stripe/services/quote_service.rb +4 -0
- data/lib/stripe/services/radar/payment_evaluation_service.rb +19 -0
- data/lib/stripe/services/radar_service.rb +2 -1
- data/lib/stripe/services/subscription_item_service.rb +4 -0
- data/lib/stripe/services/subscription_schedule_service.rb +4 -0
- data/lib/stripe/services/subscription_service.rb +6 -2
- data/lib/stripe/services/tax/association_service.rb +19 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
- data/lib/stripe/services/terminal/reader_service.rb +8 -8
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +12 -0
- data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +8 -0
- data/lib/stripe/services/v1_services.rb +3 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +23 -0
- data/lib/stripe/services/v2/core/account_service.rb +87 -0
- data/lib/stripe/services/v2/core/account_token_service.rb +38 -0
- data/lib/stripe/services/v2/core/accounts/person_service.rb +85 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +42 -0
- data/lib/stripe/services/v2/core_service.rb +4 -1
- data/lib/stripe/services.rb +11 -0
- data/lib/stripe/stripe_client.rb +6 -0
- data/lib/stripe/stripe_object.rb +39 -1
- data/lib/stripe/util.rb +12 -14
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +7 -0
- data/lib/stripe.rb +1 -1
- data/rbi/stripe.rbi +64414 -32011
- metadata +103 -6
- data/lib/stripe/resources/alipay_account.rb +0 -34
- data/lib/stripe/resources/recipient_transfer.rb +0 -7
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
class SubscriptionScheduleCreateParams < Stripe::RequestParams
|
|
6
|
-
class BillingMode < Stripe::RequestParams
|
|
7
|
-
class Flexible < Stripe::RequestParams
|
|
5
|
+
class SubscriptionScheduleCreateParams < ::Stripe::RequestParams
|
|
6
|
+
class BillingMode < ::Stripe::RequestParams
|
|
7
|
+
class Flexible < ::Stripe::RequestParams
|
|
8
8
|
# Controls how invoices and invoice items display proration amounts and discount amounts.
|
|
9
9
|
attr_accessor :proration_discounts
|
|
10
10
|
|
|
@@ -23,9 +23,9 @@ module Stripe
|
|
|
23
23
|
end
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
-
class DefaultSettings < Stripe::RequestParams
|
|
27
|
-
class AutomaticTax < Stripe::RequestParams
|
|
28
|
-
class Liability < Stripe::RequestParams
|
|
26
|
+
class DefaultSettings < ::Stripe::RequestParams
|
|
27
|
+
class AutomaticTax < ::Stripe::RequestParams
|
|
28
|
+
class Liability < ::Stripe::RequestParams
|
|
29
29
|
# The connected account being referenced when `type` is `account`.
|
|
30
30
|
attr_accessor :account
|
|
31
31
|
# Type of the account referenced in the request.
|
|
@@ -47,7 +47,7 @@ module Stripe
|
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
class BillingThresholds < Stripe::RequestParams
|
|
50
|
+
class BillingThresholds < ::Stripe::RequestParams
|
|
51
51
|
# Monetary threshold that triggers the subscription to advance to a new billing period
|
|
52
52
|
attr_accessor :amount_gte
|
|
53
53
|
# Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
|
|
@@ -59,8 +59,8 @@ module Stripe
|
|
|
59
59
|
end
|
|
60
60
|
end
|
|
61
61
|
|
|
62
|
-
class InvoiceSettings < Stripe::RequestParams
|
|
63
|
-
class Issuer < Stripe::RequestParams
|
|
62
|
+
class InvoiceSettings < ::Stripe::RequestParams
|
|
63
|
+
class Issuer < ::Stripe::RequestParams
|
|
64
64
|
# The connected account being referenced when `type` is `account`.
|
|
65
65
|
attr_accessor :account
|
|
66
66
|
# Type of the account referenced in the request.
|
|
@@ -85,7 +85,7 @@ module Stripe
|
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
class TransferData < Stripe::RequestParams
|
|
88
|
+
class TransferData < ::Stripe::RequestParams
|
|
89
89
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
|
90
90
|
attr_accessor :amount_percent
|
|
91
91
|
# ID of an existing, connected Stripe account.
|
|
@@ -100,7 +100,7 @@ module Stripe
|
|
|
100
100
|
attr_accessor :application_fee_percent
|
|
101
101
|
# Default settings for automatic tax computation.
|
|
102
102
|
attr_accessor :automatic_tax
|
|
103
|
-
# Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/
|
|
103
|
+
# Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
|
104
104
|
attr_accessor :billing_cycle_anchor
|
|
105
105
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
106
106
|
attr_accessor :billing_thresholds
|
|
@@ -142,9 +142,9 @@ module Stripe
|
|
|
142
142
|
end
|
|
143
143
|
end
|
|
144
144
|
|
|
145
|
-
class Phase < Stripe::RequestParams
|
|
146
|
-
class AddInvoiceItem < Stripe::RequestParams
|
|
147
|
-
class Discount < Stripe::RequestParams
|
|
145
|
+
class Phase < ::Stripe::RequestParams
|
|
146
|
+
class AddInvoiceItem < ::Stripe::RequestParams
|
|
147
|
+
class Discount < ::Stripe::RequestParams
|
|
148
148
|
# ID of the coupon to create a new discount for.
|
|
149
149
|
attr_accessor :coupon
|
|
150
150
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -159,8 +159,8 @@ module Stripe
|
|
|
159
159
|
end
|
|
160
160
|
end
|
|
161
161
|
|
|
162
|
-
class Period < Stripe::RequestParams
|
|
163
|
-
class End < Stripe::RequestParams
|
|
162
|
+
class Period < ::Stripe::RequestParams
|
|
163
|
+
class End < ::Stripe::RequestParams
|
|
164
164
|
# A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
|
|
165
165
|
attr_accessor :timestamp
|
|
166
166
|
# Select how to calculate the end of the invoice item period.
|
|
@@ -172,7 +172,7 @@ module Stripe
|
|
|
172
172
|
end
|
|
173
173
|
end
|
|
174
174
|
|
|
175
|
-
class Start < Stripe::RequestParams
|
|
175
|
+
class Start < ::Stripe::RequestParams
|
|
176
176
|
# A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
|
|
177
177
|
attr_accessor :timestamp
|
|
178
178
|
# Select how to calculate the start of the invoice item period.
|
|
@@ -194,12 +194,12 @@ module Stripe
|
|
|
194
194
|
end
|
|
195
195
|
end
|
|
196
196
|
|
|
197
|
-
class PriceData < Stripe::RequestParams
|
|
197
|
+
class PriceData < ::Stripe::RequestParams
|
|
198
198
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
199
199
|
attr_accessor :currency
|
|
200
200
|
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
201
201
|
attr_accessor :product
|
|
202
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
202
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
203
203
|
attr_accessor :tax_behavior
|
|
204
204
|
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge or a negative integer representing the amount to credit to the customer.
|
|
205
205
|
attr_accessor :unit_amount
|
|
@@ -219,16 +219,20 @@ module Stripe
|
|
|
219
219
|
@unit_amount = unit_amount
|
|
220
220
|
@unit_amount_decimal = unit_amount_decimal
|
|
221
221
|
end
|
|
222
|
+
|
|
223
|
+
def self.field_encodings
|
|
224
|
+
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
225
|
+
end
|
|
222
226
|
end
|
|
223
227
|
# The coupons to redeem into discounts for the item.
|
|
224
228
|
attr_accessor :discounts
|
|
225
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
229
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
226
230
|
attr_accessor :metadata
|
|
227
231
|
# The period associated with this invoice item. If not set, `period.start.type` defaults to `max_item_period_start` and `period.end.type` defaults to `min_item_period_end`.
|
|
228
232
|
attr_accessor :period
|
|
229
233
|
# The ID of the price object. One of `price` or `price_data` is required.
|
|
230
234
|
attr_accessor :price
|
|
231
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
235
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
|
|
232
236
|
attr_accessor :price_data
|
|
233
237
|
# Quantity for this item. Defaults to 1.
|
|
234
238
|
attr_accessor :quantity
|
|
@@ -252,10 +256,16 @@ module Stripe
|
|
|
252
256
|
@quantity = quantity
|
|
253
257
|
@tax_rates = tax_rates
|
|
254
258
|
end
|
|
259
|
+
|
|
260
|
+
def self.field_encodings
|
|
261
|
+
@field_encodings = {
|
|
262
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
263
|
+
}
|
|
264
|
+
end
|
|
255
265
|
end
|
|
256
266
|
|
|
257
|
-
class AutomaticTax < Stripe::RequestParams
|
|
258
|
-
class Liability < Stripe::RequestParams
|
|
267
|
+
class AutomaticTax < ::Stripe::RequestParams
|
|
268
|
+
class Liability < ::Stripe::RequestParams
|
|
259
269
|
# The connected account being referenced when `type` is `account`.
|
|
260
270
|
attr_accessor :account
|
|
261
271
|
# Type of the account referenced in the request.
|
|
@@ -277,7 +287,7 @@ module Stripe
|
|
|
277
287
|
end
|
|
278
288
|
end
|
|
279
289
|
|
|
280
|
-
class BillingThresholds < Stripe::RequestParams
|
|
290
|
+
class BillingThresholds < ::Stripe::RequestParams
|
|
281
291
|
# Monetary threshold that triggers the subscription to advance to a new billing period
|
|
282
292
|
attr_accessor :amount_gte
|
|
283
293
|
# Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
|
|
@@ -289,7 +299,7 @@ module Stripe
|
|
|
289
299
|
end
|
|
290
300
|
end
|
|
291
301
|
|
|
292
|
-
class Discount < Stripe::RequestParams
|
|
302
|
+
class Discount < ::Stripe::RequestParams
|
|
293
303
|
# ID of the coupon to create a new discount for.
|
|
294
304
|
attr_accessor :coupon
|
|
295
305
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -304,7 +314,7 @@ module Stripe
|
|
|
304
314
|
end
|
|
305
315
|
end
|
|
306
316
|
|
|
307
|
-
class Duration < Stripe::RequestParams
|
|
317
|
+
class Duration < ::Stripe::RequestParams
|
|
308
318
|
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
|
|
309
319
|
attr_accessor :interval
|
|
310
320
|
# The multiplier applied to the interval.
|
|
@@ -316,8 +326,8 @@ module Stripe
|
|
|
316
326
|
end
|
|
317
327
|
end
|
|
318
328
|
|
|
319
|
-
class InvoiceSettings < Stripe::RequestParams
|
|
320
|
-
class Issuer < Stripe::RequestParams
|
|
329
|
+
class InvoiceSettings < ::Stripe::RequestParams
|
|
330
|
+
class Issuer < ::Stripe::RequestParams
|
|
321
331
|
# The connected account being referenced when `type` is `account`.
|
|
322
332
|
attr_accessor :account
|
|
323
333
|
# Type of the account referenced in the request.
|
|
@@ -342,9 +352,9 @@ module Stripe
|
|
|
342
352
|
end
|
|
343
353
|
end
|
|
344
354
|
|
|
345
|
-
class Item < Stripe::RequestParams
|
|
346
|
-
class BillingThresholds < Stripe::RequestParams
|
|
347
|
-
# Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/
|
|
355
|
+
class Item < ::Stripe::RequestParams
|
|
356
|
+
class BillingThresholds < ::Stripe::RequestParams
|
|
357
|
+
# Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://docs.stripe.com/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte))
|
|
348
358
|
attr_accessor :usage_gte
|
|
349
359
|
|
|
350
360
|
def initialize(usage_gte: nil)
|
|
@@ -352,7 +362,7 @@ module Stripe
|
|
|
352
362
|
end
|
|
353
363
|
end
|
|
354
364
|
|
|
355
|
-
class Discount < Stripe::RequestParams
|
|
365
|
+
class Discount < ::Stripe::RequestParams
|
|
356
366
|
# ID of the coupon to create a new discount for.
|
|
357
367
|
attr_accessor :coupon
|
|
358
368
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -367,8 +377,8 @@ module Stripe
|
|
|
367
377
|
end
|
|
368
378
|
end
|
|
369
379
|
|
|
370
|
-
class PriceData < Stripe::RequestParams
|
|
371
|
-
class Recurring < Stripe::RequestParams
|
|
380
|
+
class PriceData < ::Stripe::RequestParams
|
|
381
|
+
class Recurring < ::Stripe::RequestParams
|
|
372
382
|
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
|
373
383
|
attr_accessor :interval
|
|
374
384
|
# The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
|
|
@@ -385,7 +395,7 @@ module Stripe
|
|
|
385
395
|
attr_accessor :product
|
|
386
396
|
# The recurring components of a price such as `interval` and `interval_count`.
|
|
387
397
|
attr_accessor :recurring
|
|
388
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
398
|
+
# Only required if a [default tax behavior](https://docs.stripe.com/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
|
389
399
|
attr_accessor :tax_behavior
|
|
390
400
|
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
391
401
|
attr_accessor :unit_amount
|
|
@@ -407,22 +417,26 @@ module Stripe
|
|
|
407
417
|
@unit_amount = unit_amount
|
|
408
418
|
@unit_amount_decimal = unit_amount_decimal
|
|
409
419
|
end
|
|
420
|
+
|
|
421
|
+
def self.field_encodings
|
|
422
|
+
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
423
|
+
end
|
|
410
424
|
end
|
|
411
425
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
412
426
|
attr_accessor :billing_thresholds
|
|
413
427
|
# The coupons to redeem into discounts for the subscription item.
|
|
414
428
|
attr_accessor :discounts
|
|
415
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
429
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a configuration item. Metadata on a configuration item will update the underlying subscription item's `metadata` when the phase is entered, adding new keys and replacing existing keys. Individual keys in the subscription item's `metadata` can be unset by posting an empty value to them in the configuration item's `metadata`. To unset all keys in the subscription item's `metadata`, update the subscription item directly or unset every key individually from the configuration item's `metadata`.
|
|
416
430
|
attr_accessor :metadata
|
|
417
431
|
# The plan ID to subscribe to. You may specify the same ID in `plan` and `price`.
|
|
418
432
|
attr_accessor :plan
|
|
419
433
|
# The ID of the price object.
|
|
420
434
|
attr_accessor :price
|
|
421
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
435
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.
|
|
422
436
|
attr_accessor :price_data
|
|
423
437
|
# Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`.
|
|
424
438
|
attr_accessor :quantity
|
|
425
|
-
# A list of [Tax Rate](https://stripe.com/
|
|
439
|
+
# A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
426
440
|
attr_accessor :tax_rates
|
|
427
441
|
|
|
428
442
|
def initialize(
|
|
@@ -444,9 +458,15 @@ module Stripe
|
|
|
444
458
|
@quantity = quantity
|
|
445
459
|
@tax_rates = tax_rates
|
|
446
460
|
end
|
|
461
|
+
|
|
462
|
+
def self.field_encodings
|
|
463
|
+
@field_encodings = {
|
|
464
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
465
|
+
}
|
|
466
|
+
end
|
|
447
467
|
end
|
|
448
468
|
|
|
449
|
-
class TransferData < Stripe::RequestParams
|
|
469
|
+
class TransferData < ::Stripe::RequestParams
|
|
450
470
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
|
451
471
|
attr_accessor :amount_percent
|
|
452
472
|
# ID of an existing, connected Stripe account.
|
|
@@ -463,7 +483,7 @@ module Stripe
|
|
|
463
483
|
attr_accessor :application_fee_percent
|
|
464
484
|
# Automatic tax settings for this phase.
|
|
465
485
|
attr_accessor :automatic_tax
|
|
466
|
-
# Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/
|
|
486
|
+
# Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
|
467
487
|
attr_accessor :billing_cycle_anchor
|
|
468
488
|
# Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
469
489
|
attr_accessor :billing_thresholds
|
|
@@ -473,7 +493,7 @@ module Stripe
|
|
|
473
493
|
attr_accessor :currency
|
|
474
494
|
# ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings.
|
|
475
495
|
attr_accessor :default_payment_method
|
|
476
|
-
# A list of [Tax Rate](https://stripe.com/
|
|
496
|
+
# A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will set the Subscription's [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates), which means they will be the Invoice's [`default_tax_rates`](https://docs.stripe.com/api/invoices/create#create_invoice-default_tax_rates) for any Invoices issued by the Subscription during this Phase.
|
|
477
497
|
attr_accessor :default_tax_rates
|
|
478
498
|
# Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
479
499
|
attr_accessor :description
|
|
@@ -481,17 +501,17 @@ module Stripe
|
|
|
481
501
|
attr_accessor :discounts
|
|
482
502
|
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
483
503
|
attr_accessor :duration
|
|
484
|
-
# The date at which this phase of the subscription schedule ends. If set, `
|
|
504
|
+
# The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
485
505
|
attr_accessor :end_date
|
|
486
506
|
# All invoices will be billed using the specified settings.
|
|
487
507
|
attr_accessor :invoice_settings
|
|
488
508
|
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
|
|
489
509
|
attr_accessor :items
|
|
490
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
510
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to a phase. Metadata on a schedule's phase will update the underlying subscription's `metadata` when the phase is entered, adding new keys and replacing existing keys in the subscription's `metadata`. Individual keys in the subscription's `metadata` can be unset by posting an empty value to them in the phase's `metadata`. To unset all keys in the subscription's `metadata`, update the subscription directly or unset every key individually from the phase's `metadata`.
|
|
491
511
|
attr_accessor :metadata
|
|
492
512
|
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
493
513
|
attr_accessor :on_behalf_of
|
|
494
|
-
# Controls whether the subscription schedule should create [prorations](https://stripe.com/
|
|
514
|
+
# Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
|
495
515
|
attr_accessor :proration_behavior
|
|
496
516
|
# The data with which to automatically create a Transfer for each of the associated subscription's invoices.
|
|
497
517
|
attr_accessor :transfer_data
|
|
@@ -545,11 +565,32 @@ module Stripe
|
|
|
545
565
|
@trial = trial
|
|
546
566
|
@trial_end = trial_end
|
|
547
567
|
end
|
|
568
|
+
|
|
569
|
+
def self.field_encodings
|
|
570
|
+
@field_encodings = {
|
|
571
|
+
add_invoice_items: {
|
|
572
|
+
kind: :array,
|
|
573
|
+
element: {
|
|
574
|
+
kind: :object,
|
|
575
|
+
fields: { price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } } },
|
|
576
|
+
},
|
|
577
|
+
},
|
|
578
|
+
items: {
|
|
579
|
+
kind: :array,
|
|
580
|
+
element: {
|
|
581
|
+
kind: :object,
|
|
582
|
+
fields: { price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } } },
|
|
583
|
+
},
|
|
584
|
+
},
|
|
585
|
+
}
|
|
586
|
+
end
|
|
548
587
|
end
|
|
549
588
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
550
589
|
attr_accessor :billing_mode
|
|
551
590
|
# The identifier of the customer to create the subscription schedule for.
|
|
552
591
|
attr_accessor :customer
|
|
592
|
+
# The identifier of the account to create the subscription schedule for.
|
|
593
|
+
attr_accessor :customer_account
|
|
553
594
|
# Object representing the subscription schedule's default settings.
|
|
554
595
|
attr_accessor :default_settings
|
|
555
596
|
# Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
|
@@ -558,7 +599,7 @@ module Stripe
|
|
|
558
599
|
attr_accessor :expand
|
|
559
600
|
# Migrate an existing subscription to be managed by a subscription schedule. If this parameter is set, a subscription schedule will be created using the subscription's item(s), set to auto-renew using the subscription's interval. When using this parameter, other parameters (such as phase values) cannot be set. To create a subscription schedule with other modifications, we recommend making two separate API calls.
|
|
560
601
|
attr_accessor :from_subscription
|
|
561
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
602
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
562
603
|
attr_accessor :metadata
|
|
563
604
|
# List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
|
|
564
605
|
attr_accessor :phases
|
|
@@ -568,6 +609,7 @@ module Stripe
|
|
|
568
609
|
def initialize(
|
|
569
610
|
billing_mode: nil,
|
|
570
611
|
customer: nil,
|
|
612
|
+
customer_account: nil,
|
|
571
613
|
default_settings: nil,
|
|
572
614
|
end_behavior: nil,
|
|
573
615
|
expand: nil,
|
|
@@ -578,6 +620,7 @@ module Stripe
|
|
|
578
620
|
)
|
|
579
621
|
@billing_mode = billing_mode
|
|
580
622
|
@customer = customer
|
|
623
|
+
@customer_account = customer_account
|
|
581
624
|
@default_settings = default_settings
|
|
582
625
|
@end_behavior = end_behavior
|
|
583
626
|
@expand = expand
|
|
@@ -586,5 +629,36 @@ module Stripe
|
|
|
586
629
|
@phases = phases
|
|
587
630
|
@start_date = start_date
|
|
588
631
|
end
|
|
632
|
+
|
|
633
|
+
def self.field_encodings
|
|
634
|
+
@field_encodings = {
|
|
635
|
+
phases: {
|
|
636
|
+
kind: :array,
|
|
637
|
+
element: {
|
|
638
|
+
kind: :object,
|
|
639
|
+
fields: {
|
|
640
|
+
add_invoice_items: {
|
|
641
|
+
kind: :array,
|
|
642
|
+
element: {
|
|
643
|
+
kind: :object,
|
|
644
|
+
fields: {
|
|
645
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
646
|
+
},
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
items: {
|
|
650
|
+
kind: :array,
|
|
651
|
+
element: {
|
|
652
|
+
kind: :object,
|
|
653
|
+
fields: {
|
|
654
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
655
|
+
},
|
|
656
|
+
},
|
|
657
|
+
},
|
|
658
|
+
},
|
|
659
|
+
},
|
|
660
|
+
},
|
|
661
|
+
}
|
|
662
|
+
end
|
|
589
663
|
end
|
|
590
664
|
end
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
class SubscriptionScheduleListParams < Stripe::RequestParams
|
|
6
|
-
class CanceledAt < Stripe::RequestParams
|
|
5
|
+
class SubscriptionScheduleListParams < ::Stripe::RequestParams
|
|
6
|
+
class CanceledAt < ::Stripe::RequestParams
|
|
7
7
|
# Minimum value to filter by (exclusive)
|
|
8
8
|
attr_accessor :gt
|
|
9
9
|
# Minimum value to filter by (inclusive)
|
|
@@ -21,7 +21,7 @@ module Stripe
|
|
|
21
21
|
end
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
class CompletedAt < Stripe::RequestParams
|
|
24
|
+
class CompletedAt < ::Stripe::RequestParams
|
|
25
25
|
# Minimum value to filter by (exclusive)
|
|
26
26
|
attr_accessor :gt
|
|
27
27
|
# Minimum value to filter by (inclusive)
|
|
@@ -39,7 +39,7 @@ module Stripe
|
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
class Created < Stripe::RequestParams
|
|
42
|
+
class Created < ::Stripe::RequestParams
|
|
43
43
|
# Minimum value to filter by (exclusive)
|
|
44
44
|
attr_accessor :gt
|
|
45
45
|
# Minimum value to filter by (inclusive)
|
|
@@ -57,7 +57,7 @@ module Stripe
|
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
class ReleasedAt < Stripe::RequestParams
|
|
60
|
+
class ReleasedAt < ::Stripe::RequestParams
|
|
61
61
|
# Minimum value to filter by (exclusive)
|
|
62
62
|
attr_accessor :gt
|
|
63
63
|
# Minimum value to filter by (inclusive)
|
|
@@ -82,6 +82,8 @@ module Stripe
|
|
|
82
82
|
attr_accessor :created
|
|
83
83
|
# Only return subscription schedules for the given customer.
|
|
84
84
|
attr_accessor :customer
|
|
85
|
+
# Only return subscription schedules for the given account.
|
|
86
|
+
attr_accessor :customer_account
|
|
85
87
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
|
86
88
|
attr_accessor :ending_before
|
|
87
89
|
# Specifies which fields in the response should be expanded.
|
|
@@ -100,6 +102,7 @@ module Stripe
|
|
|
100
102
|
completed_at: nil,
|
|
101
103
|
created: nil,
|
|
102
104
|
customer: nil,
|
|
105
|
+
customer_account: nil,
|
|
103
106
|
ending_before: nil,
|
|
104
107
|
expand: nil,
|
|
105
108
|
limit: nil,
|
|
@@ -111,6 +114,7 @@ module Stripe
|
|
|
111
114
|
@completed_at = completed_at
|
|
112
115
|
@created = created
|
|
113
116
|
@customer = customer
|
|
117
|
+
@customer_account = customer_account
|
|
114
118
|
@ending_before = ending_before
|
|
115
119
|
@expand = expand
|
|
116
120
|
@limit = limit
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
class SubscriptionScheduleReleaseParams < Stripe::RequestParams
|
|
5
|
+
class SubscriptionScheduleReleaseParams < ::Stripe::RequestParams
|
|
6
6
|
# Specifies which fields in the response should be expanded.
|
|
7
7
|
attr_accessor :expand
|
|
8
8
|
# Keep any cancellation on the subscription that the schedule has set
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
|
-
class SubscriptionScheduleRetrieveParams < Stripe::RequestParams
|
|
5
|
+
class SubscriptionScheduleRetrieveParams < ::Stripe::RequestParams
|
|
6
6
|
# Specifies which fields in the response should be expanded.
|
|
7
7
|
attr_accessor :expand
|
|
8
8
|
|