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 InvoiceCreatePreviewParams < Stripe::RequestParams
|
|
6
|
-
class AutomaticTax < Stripe::RequestParams
|
|
7
|
-
class Liability < Stripe::RequestParams
|
|
5
|
+
class InvoiceCreatePreviewParams < ::Stripe::RequestParams
|
|
6
|
+
class AutomaticTax < ::Stripe::RequestParams
|
|
7
|
+
class Liability < ::Stripe::RequestParams
|
|
8
8
|
# The connected account being referenced when `type` is `account`.
|
|
9
9
|
attr_accessor :account
|
|
10
10
|
# Type of the account referenced in the request.
|
|
@@ -15,7 +15,7 @@ module Stripe
|
|
|
15
15
|
@type = type
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
|
-
# Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/
|
|
18
|
+
# Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
|
|
19
19
|
attr_accessor :enabled
|
|
20
20
|
# The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
|
21
21
|
attr_accessor :liability
|
|
@@ -26,8 +26,8 @@ module Stripe
|
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
class CustomerDetails < Stripe::RequestParams
|
|
30
|
-
class Address < Stripe::RequestParams
|
|
29
|
+
class CustomerDetails < ::Stripe::RequestParams
|
|
30
|
+
class Address < ::Stripe::RequestParams
|
|
31
31
|
# City, district, suburb, town, or village.
|
|
32
32
|
attr_accessor :city
|
|
33
33
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
@@ -38,7 +38,7 @@ module Stripe
|
|
|
38
38
|
attr_accessor :line2
|
|
39
39
|
# ZIP or postal code.
|
|
40
40
|
attr_accessor :postal_code
|
|
41
|
-
# State, county, province, or region.
|
|
41
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
42
42
|
attr_accessor :state
|
|
43
43
|
|
|
44
44
|
def initialize(
|
|
@@ -58,8 +58,8 @@ module Stripe
|
|
|
58
58
|
end
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
class Shipping < Stripe::RequestParams
|
|
62
|
-
class Address < Stripe::RequestParams
|
|
61
|
+
class Shipping < ::Stripe::RequestParams
|
|
62
|
+
class Address < ::Stripe::RequestParams
|
|
63
63
|
# City, district, suburb, town, or village.
|
|
64
64
|
attr_accessor :city
|
|
65
65
|
# A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
@@ -70,7 +70,7 @@ module Stripe
|
|
|
70
70
|
attr_accessor :line2
|
|
71
71
|
# ZIP or postal code.
|
|
72
72
|
attr_accessor :postal_code
|
|
73
|
-
# State, county, province, or region.
|
|
73
|
+
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
74
74
|
attr_accessor :state
|
|
75
75
|
|
|
76
76
|
def initialize(
|
|
@@ -103,7 +103,7 @@ module Stripe
|
|
|
103
103
|
end
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
-
class Tax < Stripe::RequestParams
|
|
106
|
+
class Tax < ::Stripe::RequestParams
|
|
107
107
|
# A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
|
|
108
108
|
attr_accessor :ip_address
|
|
109
109
|
|
|
@@ -112,8 +112,8 @@ module Stripe
|
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
class TaxId < Stripe::RequestParams
|
|
116
|
-
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
115
|
+
class TaxId < ::Stripe::RequestParams
|
|
116
|
+
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
|
|
117
117
|
attr_accessor :type
|
|
118
118
|
# Value of the tax ID.
|
|
119
119
|
attr_accessor :value
|
|
@@ -123,7 +123,7 @@ module Stripe
|
|
|
123
123
|
@value = value
|
|
124
124
|
end
|
|
125
125
|
end
|
|
126
|
-
# The customer's address.
|
|
126
|
+
# The customer's address. Learn about [country-specific requirements for calculating tax](/invoicing/taxes?dashboard-or-api=dashboard#set-up-customer).
|
|
127
127
|
attr_accessor :address
|
|
128
128
|
# The customer's shipping information. Appears on invoices emailed to this customer.
|
|
129
129
|
attr_accessor :shipping
|
|
@@ -143,7 +143,7 @@ module Stripe
|
|
|
143
143
|
end
|
|
144
144
|
end
|
|
145
145
|
|
|
146
|
-
class Discount < Stripe::RequestParams
|
|
146
|
+
class Discount < ::Stripe::RequestParams
|
|
147
147
|
# ID of the coupon to create a new discount for.
|
|
148
148
|
attr_accessor :coupon
|
|
149
149
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -158,8 +158,8 @@ module Stripe
|
|
|
158
158
|
end
|
|
159
159
|
end
|
|
160
160
|
|
|
161
|
-
class InvoiceItem < Stripe::RequestParams
|
|
162
|
-
class Discount < Stripe::RequestParams
|
|
161
|
+
class InvoiceItem < ::Stripe::RequestParams
|
|
162
|
+
class Discount < ::Stripe::RequestParams
|
|
163
163
|
# ID of the coupon to create a new discount for.
|
|
164
164
|
attr_accessor :coupon
|
|
165
165
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -174,7 +174,7 @@ module Stripe
|
|
|
174
174
|
end
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
class Period < Stripe::RequestParams
|
|
177
|
+
class Period < ::Stripe::RequestParams
|
|
178
178
|
# The end of the period, which must be greater than or equal to the start. This value is inclusive.
|
|
179
179
|
attr_accessor :end
|
|
180
180
|
# The start of the period. This value is inclusive.
|
|
@@ -186,12 +186,12 @@ module Stripe
|
|
|
186
186
|
end
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
class PriceData < Stripe::RequestParams
|
|
189
|
+
class PriceData < ::Stripe::RequestParams
|
|
190
190
|
# 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).
|
|
191
191
|
attr_accessor :currency
|
|
192
192
|
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
193
193
|
attr_accessor :product
|
|
194
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
194
|
+
# 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.
|
|
195
195
|
attr_accessor :tax_behavior
|
|
196
196
|
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
197
197
|
attr_accessor :unit_amount
|
|
@@ -211,6 +211,10 @@ module Stripe
|
|
|
211
211
|
@unit_amount = unit_amount
|
|
212
212
|
@unit_amount_decimal = unit_amount_decimal
|
|
213
213
|
end
|
|
214
|
+
|
|
215
|
+
def self.field_encodings
|
|
216
|
+
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
217
|
+
end
|
|
214
218
|
end
|
|
215
219
|
# The integer amount in cents (or local equivalent) of previewed invoice item.
|
|
216
220
|
attr_accessor :amount
|
|
@@ -224,19 +228,21 @@ module Stripe
|
|
|
224
228
|
attr_accessor :discounts
|
|
225
229
|
# The ID of the invoice item to update in preview. If not specified, a new invoice item will be added to the preview of the upcoming invoice.
|
|
226
230
|
attr_accessor :invoiceitem
|
|
227
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
231
|
+
# 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`.
|
|
228
232
|
attr_accessor :metadata
|
|
229
|
-
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/
|
|
233
|
+
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://docs.stripe.com/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://docs.stripe.com/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
|
230
234
|
attr_accessor :period
|
|
231
235
|
# The ID of the price object. One of `price` or `price_data` is required.
|
|
232
236
|
attr_accessor :price
|
|
233
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
237
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
|
|
234
238
|
attr_accessor :price_data
|
|
235
|
-
# Non-negative integer. The quantity of units for the invoice item.
|
|
239
|
+
# Non-negative integer. The quantity of units for the invoice item. Use `quantity_decimal` instead to provide decimal precision. This field will be deprecated in favor of `quantity_decimal` in a future version.
|
|
236
240
|
attr_accessor :quantity
|
|
237
|
-
#
|
|
241
|
+
# Non-negative decimal with at most 12 decimal places. The quantity of units for the invoice item.
|
|
242
|
+
attr_accessor :quantity_decimal
|
|
243
|
+
# 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.
|
|
238
244
|
attr_accessor :tax_behavior
|
|
239
|
-
# A [tax code](https://stripe.com/
|
|
245
|
+
# A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
240
246
|
attr_accessor :tax_code
|
|
241
247
|
# The tax rates that apply to the item. When set, any `default_tax_rates` do not apply to this item.
|
|
242
248
|
attr_accessor :tax_rates
|
|
@@ -257,6 +263,7 @@ module Stripe
|
|
|
257
263
|
price: nil,
|
|
258
264
|
price_data: nil,
|
|
259
265
|
quantity: nil,
|
|
266
|
+
quantity_decimal: nil,
|
|
260
267
|
tax_behavior: nil,
|
|
261
268
|
tax_code: nil,
|
|
262
269
|
tax_rates: nil,
|
|
@@ -274,15 +281,24 @@ module Stripe
|
|
|
274
281
|
@price = price
|
|
275
282
|
@price_data = price_data
|
|
276
283
|
@quantity = quantity
|
|
284
|
+
@quantity_decimal = quantity_decimal
|
|
277
285
|
@tax_behavior = tax_behavior
|
|
278
286
|
@tax_code = tax_code
|
|
279
287
|
@tax_rates = tax_rates
|
|
280
288
|
@unit_amount = unit_amount
|
|
281
289
|
@unit_amount_decimal = unit_amount_decimal
|
|
282
290
|
end
|
|
291
|
+
|
|
292
|
+
def self.field_encodings
|
|
293
|
+
@field_encodings = {
|
|
294
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
295
|
+
quantity_decimal: :decimal_string,
|
|
296
|
+
unit_amount_decimal: :decimal_string,
|
|
297
|
+
}
|
|
298
|
+
end
|
|
283
299
|
end
|
|
284
300
|
|
|
285
|
-
class Issuer < Stripe::RequestParams
|
|
301
|
+
class Issuer < ::Stripe::RequestParams
|
|
286
302
|
# The connected account being referenced when `type` is `account`.
|
|
287
303
|
attr_accessor :account
|
|
288
304
|
# Type of the account referenced in the request.
|
|
@@ -294,9 +310,9 @@ module Stripe
|
|
|
294
310
|
end
|
|
295
311
|
end
|
|
296
312
|
|
|
297
|
-
class ScheduleDetails < Stripe::RequestParams
|
|
298
|
-
class BillingMode < Stripe::RequestParams
|
|
299
|
-
class Flexible < Stripe::RequestParams
|
|
313
|
+
class ScheduleDetails < ::Stripe::RequestParams
|
|
314
|
+
class BillingMode < ::Stripe::RequestParams
|
|
315
|
+
class Flexible < ::Stripe::RequestParams
|
|
300
316
|
# Controls how invoices and invoice items display proration amounts and discount amounts.
|
|
301
317
|
attr_accessor :proration_discounts
|
|
302
318
|
|
|
@@ -315,9 +331,9 @@ module Stripe
|
|
|
315
331
|
end
|
|
316
332
|
end
|
|
317
333
|
|
|
318
|
-
class Phase < Stripe::RequestParams
|
|
319
|
-
class AddInvoiceItem < Stripe::RequestParams
|
|
320
|
-
class Discount < Stripe::RequestParams
|
|
334
|
+
class Phase < ::Stripe::RequestParams
|
|
335
|
+
class AddInvoiceItem < ::Stripe::RequestParams
|
|
336
|
+
class Discount < ::Stripe::RequestParams
|
|
321
337
|
# ID of the coupon to create a new discount for.
|
|
322
338
|
attr_accessor :coupon
|
|
323
339
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -332,8 +348,8 @@ module Stripe
|
|
|
332
348
|
end
|
|
333
349
|
end
|
|
334
350
|
|
|
335
|
-
class Period < Stripe::RequestParams
|
|
336
|
-
class End < Stripe::RequestParams
|
|
351
|
+
class Period < ::Stripe::RequestParams
|
|
352
|
+
class End < ::Stripe::RequestParams
|
|
337
353
|
# A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
|
|
338
354
|
attr_accessor :timestamp
|
|
339
355
|
# Select how to calculate the end of the invoice item period.
|
|
@@ -345,7 +361,7 @@ module Stripe
|
|
|
345
361
|
end
|
|
346
362
|
end
|
|
347
363
|
|
|
348
|
-
class Start < Stripe::RequestParams
|
|
364
|
+
class Start < ::Stripe::RequestParams
|
|
349
365
|
# A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
|
|
350
366
|
attr_accessor :timestamp
|
|
351
367
|
# Select how to calculate the start of the invoice item period.
|
|
@@ -367,12 +383,12 @@ module Stripe
|
|
|
367
383
|
end
|
|
368
384
|
end
|
|
369
385
|
|
|
370
|
-
class PriceData < Stripe::RequestParams
|
|
386
|
+
class PriceData < ::Stripe::RequestParams
|
|
371
387
|
# 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).
|
|
372
388
|
attr_accessor :currency
|
|
373
389
|
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to.
|
|
374
390
|
attr_accessor :product
|
|
375
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
391
|
+
# 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.
|
|
376
392
|
attr_accessor :tax_behavior
|
|
377
393
|
# 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.
|
|
378
394
|
attr_accessor :unit_amount
|
|
@@ -392,16 +408,20 @@ module Stripe
|
|
|
392
408
|
@unit_amount = unit_amount
|
|
393
409
|
@unit_amount_decimal = unit_amount_decimal
|
|
394
410
|
end
|
|
411
|
+
|
|
412
|
+
def self.field_encodings
|
|
413
|
+
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
414
|
+
end
|
|
395
415
|
end
|
|
396
416
|
# The coupons to redeem into discounts for the item.
|
|
397
417
|
attr_accessor :discounts
|
|
398
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
418
|
+
# 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`.
|
|
399
419
|
attr_accessor :metadata
|
|
400
420
|
# 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`.
|
|
401
421
|
attr_accessor :period
|
|
402
422
|
# The ID of the price object. One of `price` or `price_data` is required.
|
|
403
423
|
attr_accessor :price
|
|
404
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
424
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
|
|
405
425
|
attr_accessor :price_data
|
|
406
426
|
# Quantity for this item. Defaults to 1.
|
|
407
427
|
attr_accessor :quantity
|
|
@@ -425,10 +445,16 @@ module Stripe
|
|
|
425
445
|
@quantity = quantity
|
|
426
446
|
@tax_rates = tax_rates
|
|
427
447
|
end
|
|
448
|
+
|
|
449
|
+
def self.field_encodings
|
|
450
|
+
@field_encodings = {
|
|
451
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
452
|
+
}
|
|
453
|
+
end
|
|
428
454
|
end
|
|
429
455
|
|
|
430
|
-
class AutomaticTax < Stripe::RequestParams
|
|
431
|
-
class Liability < Stripe::RequestParams
|
|
456
|
+
class AutomaticTax < ::Stripe::RequestParams
|
|
457
|
+
class Liability < ::Stripe::RequestParams
|
|
432
458
|
# The connected account being referenced when `type` is `account`.
|
|
433
459
|
attr_accessor :account
|
|
434
460
|
# Type of the account referenced in the request.
|
|
@@ -450,7 +476,7 @@ module Stripe
|
|
|
450
476
|
end
|
|
451
477
|
end
|
|
452
478
|
|
|
453
|
-
class BillingThresholds < Stripe::RequestParams
|
|
479
|
+
class BillingThresholds < ::Stripe::RequestParams
|
|
454
480
|
# Monetary threshold that triggers the subscription to advance to a new billing period
|
|
455
481
|
attr_accessor :amount_gte
|
|
456
482
|
# 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.
|
|
@@ -462,7 +488,7 @@ module Stripe
|
|
|
462
488
|
end
|
|
463
489
|
end
|
|
464
490
|
|
|
465
|
-
class Discount < Stripe::RequestParams
|
|
491
|
+
class Discount < ::Stripe::RequestParams
|
|
466
492
|
# ID of the coupon to create a new discount for.
|
|
467
493
|
attr_accessor :coupon
|
|
468
494
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -477,7 +503,7 @@ module Stripe
|
|
|
477
503
|
end
|
|
478
504
|
end
|
|
479
505
|
|
|
480
|
-
class Duration < Stripe::RequestParams
|
|
506
|
+
class Duration < ::Stripe::RequestParams
|
|
481
507
|
# Specifies phase duration. Either `day`, `week`, `month` or `year`.
|
|
482
508
|
attr_accessor :interval
|
|
483
509
|
# The multiplier applied to the interval.
|
|
@@ -489,8 +515,8 @@ module Stripe
|
|
|
489
515
|
end
|
|
490
516
|
end
|
|
491
517
|
|
|
492
|
-
class InvoiceSettings < Stripe::RequestParams
|
|
493
|
-
class Issuer < Stripe::RequestParams
|
|
518
|
+
class InvoiceSettings < ::Stripe::RequestParams
|
|
519
|
+
class Issuer < ::Stripe::RequestParams
|
|
494
520
|
# The connected account being referenced when `type` is `account`.
|
|
495
521
|
attr_accessor :account
|
|
496
522
|
# Type of the account referenced in the request.
|
|
@@ -515,9 +541,9 @@ module Stripe
|
|
|
515
541
|
end
|
|
516
542
|
end
|
|
517
543
|
|
|
518
|
-
class Item < Stripe::RequestParams
|
|
519
|
-
class BillingThresholds < Stripe::RequestParams
|
|
520
|
-
# 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/
|
|
544
|
+
class Item < ::Stripe::RequestParams
|
|
545
|
+
class BillingThresholds < ::Stripe::RequestParams
|
|
546
|
+
# 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))
|
|
521
547
|
attr_accessor :usage_gte
|
|
522
548
|
|
|
523
549
|
def initialize(usage_gte: nil)
|
|
@@ -525,7 +551,7 @@ module Stripe
|
|
|
525
551
|
end
|
|
526
552
|
end
|
|
527
553
|
|
|
528
|
-
class Discount < Stripe::RequestParams
|
|
554
|
+
class Discount < ::Stripe::RequestParams
|
|
529
555
|
# ID of the coupon to create a new discount for.
|
|
530
556
|
attr_accessor :coupon
|
|
531
557
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -540,8 +566,8 @@ module Stripe
|
|
|
540
566
|
end
|
|
541
567
|
end
|
|
542
568
|
|
|
543
|
-
class PriceData < Stripe::RequestParams
|
|
544
|
-
class Recurring < Stripe::RequestParams
|
|
569
|
+
class PriceData < ::Stripe::RequestParams
|
|
570
|
+
class Recurring < ::Stripe::RequestParams
|
|
545
571
|
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
|
546
572
|
attr_accessor :interval
|
|
547
573
|
# 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).
|
|
@@ -558,7 +584,7 @@ module Stripe
|
|
|
558
584
|
attr_accessor :product
|
|
559
585
|
# The recurring components of a price such as `interval` and `interval_count`.
|
|
560
586
|
attr_accessor :recurring
|
|
561
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
587
|
+
# 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.
|
|
562
588
|
attr_accessor :tax_behavior
|
|
563
589
|
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
564
590
|
attr_accessor :unit_amount
|
|
@@ -580,22 +606,26 @@ module Stripe
|
|
|
580
606
|
@unit_amount = unit_amount
|
|
581
607
|
@unit_amount_decimal = unit_amount_decimal
|
|
582
608
|
end
|
|
609
|
+
|
|
610
|
+
def self.field_encodings
|
|
611
|
+
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
612
|
+
end
|
|
583
613
|
end
|
|
584
614
|
# 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.
|
|
585
615
|
attr_accessor :billing_thresholds
|
|
586
616
|
# The coupons to redeem into discounts for the subscription item.
|
|
587
617
|
attr_accessor :discounts
|
|
588
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
618
|
+
# 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`.
|
|
589
619
|
attr_accessor :metadata
|
|
590
620
|
# The plan ID to subscribe to. You may specify the same ID in `plan` and `price`.
|
|
591
621
|
attr_accessor :plan
|
|
592
622
|
# The ID of the price object.
|
|
593
623
|
attr_accessor :price
|
|
594
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
624
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline.
|
|
595
625
|
attr_accessor :price_data
|
|
596
626
|
# Quantity for the given price. Can be set only if the price's `usage_type` is `licensed` and not `metered`.
|
|
597
627
|
attr_accessor :quantity
|
|
598
|
-
# A list of [Tax Rate](https://stripe.com/
|
|
628
|
+
# 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.
|
|
599
629
|
attr_accessor :tax_rates
|
|
600
630
|
|
|
601
631
|
def initialize(
|
|
@@ -617,9 +647,15 @@ module Stripe
|
|
|
617
647
|
@quantity = quantity
|
|
618
648
|
@tax_rates = tax_rates
|
|
619
649
|
end
|
|
650
|
+
|
|
651
|
+
def self.field_encodings
|
|
652
|
+
@field_encodings = {
|
|
653
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
654
|
+
}
|
|
655
|
+
end
|
|
620
656
|
end
|
|
621
657
|
|
|
622
|
-
class TransferData < Stripe::RequestParams
|
|
658
|
+
class TransferData < ::Stripe::RequestParams
|
|
623
659
|
# 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.
|
|
624
660
|
attr_accessor :amount_percent
|
|
625
661
|
# ID of an existing, connected Stripe account.
|
|
@@ -636,7 +672,7 @@ module Stripe
|
|
|
636
672
|
attr_accessor :application_fee_percent
|
|
637
673
|
# Automatic tax settings for this phase.
|
|
638
674
|
attr_accessor :automatic_tax
|
|
639
|
-
# 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/
|
|
675
|
+
# 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).
|
|
640
676
|
attr_accessor :billing_cycle_anchor
|
|
641
677
|
# 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.
|
|
642
678
|
attr_accessor :billing_thresholds
|
|
@@ -646,7 +682,7 @@ module Stripe
|
|
|
646
682
|
attr_accessor :currency
|
|
647
683
|
# 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.
|
|
648
684
|
attr_accessor :default_payment_method
|
|
649
|
-
# A list of [Tax Rate](https://stripe.com/
|
|
685
|
+
# 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.
|
|
650
686
|
attr_accessor :default_tax_rates
|
|
651
687
|
# 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.
|
|
652
688
|
attr_accessor :description
|
|
@@ -654,17 +690,17 @@ module Stripe
|
|
|
654
690
|
attr_accessor :discounts
|
|
655
691
|
# The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
656
692
|
attr_accessor :duration
|
|
657
|
-
# The date at which this phase of the subscription schedule ends. If set, `
|
|
693
|
+
# The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
658
694
|
attr_accessor :end_date
|
|
659
695
|
# All invoices will be billed using the specified settings.
|
|
660
696
|
attr_accessor :invoice_settings
|
|
661
697
|
# List of configuration items, each with an attached price, to apply during this phase of the subscription schedule.
|
|
662
698
|
attr_accessor :items
|
|
663
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
699
|
+
# 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`.
|
|
664
700
|
attr_accessor :metadata
|
|
665
701
|
# The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
666
702
|
attr_accessor :on_behalf_of
|
|
667
|
-
# Controls whether the subscription schedule should create [prorations](https://stripe.com/
|
|
703
|
+
# 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.
|
|
668
704
|
attr_accessor :proration_behavior
|
|
669
705
|
# The date at which this phase of the subscription schedule starts or `now`. Must be set on the first phase.
|
|
670
706
|
attr_accessor :start_date
|
|
@@ -722,6 +758,29 @@ module Stripe
|
|
|
722
758
|
@trial = trial
|
|
723
759
|
@trial_end = trial_end
|
|
724
760
|
end
|
|
761
|
+
|
|
762
|
+
def self.field_encodings
|
|
763
|
+
@field_encodings = {
|
|
764
|
+
add_invoice_items: {
|
|
765
|
+
kind: :array,
|
|
766
|
+
element: {
|
|
767
|
+
kind: :object,
|
|
768
|
+
fields: {
|
|
769
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
770
|
+
},
|
|
771
|
+
},
|
|
772
|
+
},
|
|
773
|
+
items: {
|
|
774
|
+
kind: :array,
|
|
775
|
+
element: {
|
|
776
|
+
kind: :object,
|
|
777
|
+
fields: {
|
|
778
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
779
|
+
},
|
|
780
|
+
},
|
|
781
|
+
},
|
|
782
|
+
}
|
|
783
|
+
end
|
|
725
784
|
end
|
|
726
785
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
727
786
|
attr_accessor :billing_mode
|
|
@@ -738,11 +797,42 @@ module Stripe
|
|
|
738
797
|
@phases = phases
|
|
739
798
|
@proration_behavior = proration_behavior
|
|
740
799
|
end
|
|
800
|
+
|
|
801
|
+
def self.field_encodings
|
|
802
|
+
@field_encodings = {
|
|
803
|
+
phases: {
|
|
804
|
+
kind: :array,
|
|
805
|
+
element: {
|
|
806
|
+
kind: :object,
|
|
807
|
+
fields: {
|
|
808
|
+
add_invoice_items: {
|
|
809
|
+
kind: :array,
|
|
810
|
+
element: {
|
|
811
|
+
kind: :object,
|
|
812
|
+
fields: {
|
|
813
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
814
|
+
},
|
|
815
|
+
},
|
|
816
|
+
},
|
|
817
|
+
items: {
|
|
818
|
+
kind: :array,
|
|
819
|
+
element: {
|
|
820
|
+
kind: :object,
|
|
821
|
+
fields: {
|
|
822
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
823
|
+
},
|
|
824
|
+
},
|
|
825
|
+
},
|
|
826
|
+
},
|
|
827
|
+
},
|
|
828
|
+
},
|
|
829
|
+
}
|
|
830
|
+
end
|
|
741
831
|
end
|
|
742
832
|
|
|
743
|
-
class SubscriptionDetails < Stripe::RequestParams
|
|
744
|
-
class BillingMode < Stripe::RequestParams
|
|
745
|
-
class Flexible < Stripe::RequestParams
|
|
833
|
+
class SubscriptionDetails < ::Stripe::RequestParams
|
|
834
|
+
class BillingMode < ::Stripe::RequestParams
|
|
835
|
+
class Flexible < ::Stripe::RequestParams
|
|
746
836
|
# Controls how invoices and invoice items display proration amounts and discount amounts.
|
|
747
837
|
attr_accessor :proration_discounts
|
|
748
838
|
|
|
@@ -761,9 +851,9 @@ module Stripe
|
|
|
761
851
|
end
|
|
762
852
|
end
|
|
763
853
|
|
|
764
|
-
class Item < Stripe::RequestParams
|
|
765
|
-
class BillingThresholds < Stripe::RequestParams
|
|
766
|
-
# 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/
|
|
854
|
+
class Item < ::Stripe::RequestParams
|
|
855
|
+
class BillingThresholds < ::Stripe::RequestParams
|
|
856
|
+
# 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))
|
|
767
857
|
attr_accessor :usage_gte
|
|
768
858
|
|
|
769
859
|
def initialize(usage_gte: nil)
|
|
@@ -771,7 +861,7 @@ module Stripe
|
|
|
771
861
|
end
|
|
772
862
|
end
|
|
773
863
|
|
|
774
|
-
class Discount < Stripe::RequestParams
|
|
864
|
+
class Discount < ::Stripe::RequestParams
|
|
775
865
|
# ID of the coupon to create a new discount for.
|
|
776
866
|
attr_accessor :coupon
|
|
777
867
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
@@ -786,8 +876,8 @@ module Stripe
|
|
|
786
876
|
end
|
|
787
877
|
end
|
|
788
878
|
|
|
789
|
-
class PriceData < Stripe::RequestParams
|
|
790
|
-
class Recurring < Stripe::RequestParams
|
|
879
|
+
class PriceData < ::Stripe::RequestParams
|
|
880
|
+
class Recurring < ::Stripe::RequestParams
|
|
791
881
|
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
|
792
882
|
attr_accessor :interval
|
|
793
883
|
# 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).
|
|
@@ -804,7 +894,7 @@ module Stripe
|
|
|
804
894
|
attr_accessor :product
|
|
805
895
|
# The recurring components of a price such as `interval` and `interval_count`.
|
|
806
896
|
attr_accessor :recurring
|
|
807
|
-
# Only required if a [default tax behavior](https://stripe.com/
|
|
897
|
+
# 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.
|
|
808
898
|
attr_accessor :tax_behavior
|
|
809
899
|
# A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge.
|
|
810
900
|
attr_accessor :unit_amount
|
|
@@ -826,6 +916,10 @@ module Stripe
|
|
|
826
916
|
@unit_amount = unit_amount
|
|
827
917
|
@unit_amount_decimal = unit_amount_decimal
|
|
828
918
|
end
|
|
919
|
+
|
|
920
|
+
def self.field_encodings
|
|
921
|
+
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
922
|
+
end
|
|
829
923
|
end
|
|
830
924
|
# 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.
|
|
831
925
|
attr_accessor :billing_thresholds
|
|
@@ -837,17 +931,17 @@ module Stripe
|
|
|
837
931
|
attr_accessor :discounts
|
|
838
932
|
# Subscription item to update.
|
|
839
933
|
attr_accessor :id
|
|
840
|
-
# Set of [key-value pairs](https://stripe.com/
|
|
934
|
+
# 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`.
|
|
841
935
|
attr_accessor :metadata
|
|
842
936
|
# Plan ID for this item, as a string.
|
|
843
937
|
attr_accessor :plan
|
|
844
938
|
# The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
|
|
845
939
|
attr_accessor :price
|
|
846
|
-
# Data used to generate a new [Price](https://stripe.com/
|
|
940
|
+
# Data used to generate a new [Price](https://docs.stripe.com/api/prices) object inline. One of `price` or `price_data` is required.
|
|
847
941
|
attr_accessor :price_data
|
|
848
942
|
# Quantity for this item.
|
|
849
943
|
attr_accessor :quantity
|
|
850
|
-
# A list of [Tax Rate](https://stripe.com/
|
|
944
|
+
# 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.
|
|
851
945
|
attr_accessor :tax_rates
|
|
852
946
|
|
|
853
947
|
def initialize(
|
|
@@ -875,8 +969,14 @@ module Stripe
|
|
|
875
969
|
@quantity = quantity
|
|
876
970
|
@tax_rates = tax_rates
|
|
877
971
|
end
|
|
972
|
+
|
|
973
|
+
def self.field_encodings
|
|
974
|
+
@field_encodings = {
|
|
975
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
976
|
+
}
|
|
977
|
+
end
|
|
878
978
|
end
|
|
879
|
-
# For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://stripe.com/
|
|
979
|
+
# For new subscriptions, a future timestamp to anchor the subscription's [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle). This is used to determine the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. For existing subscriptions, the value can only be set to `now` or `unchanged`.
|
|
880
980
|
attr_accessor :billing_cycle_anchor
|
|
881
981
|
# Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
882
982
|
attr_accessor :billing_mode
|
|
@@ -890,7 +990,7 @@ module Stripe
|
|
|
890
990
|
attr_accessor :default_tax_rates
|
|
891
991
|
# A list of up to 20 subscription items, each with an attached price.
|
|
892
992
|
attr_accessor :items
|
|
893
|
-
# Determines how to handle [prorations](https://stripe.com/
|
|
993
|
+
# Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
894
994
|
attr_accessor :proration_behavior
|
|
895
995
|
# If previewing an update to a subscription, and doing proration, `subscription_details.proration_date` forces the proration to be calculated as though the update was done at the specified time. The time given must be within the current subscription period and within the current phase of the schedule backing this subscription, if the schedule exists. If set, `subscription`, and one of `subscription_details.items`, or `subscription_details.trial_end` are required. Also, `subscription_details.proration_behavior` cannot be set to 'none'.
|
|
896
996
|
attr_accessor :proration_date
|
|
@@ -928,13 +1028,27 @@ module Stripe
|
|
|
928
1028
|
@start_date = start_date
|
|
929
1029
|
@trial_end = trial_end
|
|
930
1030
|
end
|
|
1031
|
+
|
|
1032
|
+
def self.field_encodings
|
|
1033
|
+
@field_encodings = {
|
|
1034
|
+
items: {
|
|
1035
|
+
kind: :array,
|
|
1036
|
+
element: {
|
|
1037
|
+
kind: :object,
|
|
1038
|
+
fields: { price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } } },
|
|
1039
|
+
},
|
|
1040
|
+
},
|
|
1041
|
+
}
|
|
1042
|
+
end
|
|
931
1043
|
end
|
|
932
1044
|
# Settings for automatic tax lookup for this invoice preview.
|
|
933
1045
|
attr_accessor :automatic_tax
|
|
934
1046
|
# The currency to preview this invoice in. Defaults to that of `customer` if not specified.
|
|
935
1047
|
attr_accessor :currency
|
|
936
|
-
# The identifier of the customer whose upcoming invoice you'
|
|
1048
|
+
# The identifier of the customer whose upcoming invoice you're retrieving. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
|
|
937
1049
|
attr_accessor :customer
|
|
1050
|
+
# The identifier of the account representing the customer whose upcoming invoice you're retrieving. If `automatic_tax` is enabled then one of `customer`, `customer_account`, `customer_details`, `subscription`, or `schedule` must be set.
|
|
1051
|
+
attr_accessor :customer_account
|
|
938
1052
|
# Details about the customer you want to invoice or overrides for an existing customer. If `automatic_tax` is enabled then one of `customer`, `customer_details`, `subscription`, or `schedule` must be set.
|
|
939
1053
|
attr_accessor :customer_details
|
|
940
1054
|
# The coupons to redeem into discounts for the invoice preview. If not specified, inherits the discount from the subscription or customer. This works for both coupons directly applied to an invoice and coupons applied to a subscription. Pass an empty string to avoid inheriting any discounts.
|
|
@@ -945,7 +1059,7 @@ module Stripe
|
|
|
945
1059
|
attr_accessor :invoice_items
|
|
946
1060
|
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
947
1061
|
attr_accessor :issuer
|
|
948
|
-
# The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/
|
|
1062
|
+
# The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://docs.stripe.com/billing/invoices/connect) documentation for details.
|
|
949
1063
|
attr_accessor :on_behalf_of
|
|
950
1064
|
# Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
|
|
951
1065
|
attr_accessor :preview_mode
|
|
@@ -962,6 +1076,7 @@ module Stripe
|
|
|
962
1076
|
automatic_tax: nil,
|
|
963
1077
|
currency: nil,
|
|
964
1078
|
customer: nil,
|
|
1079
|
+
customer_account: nil,
|
|
965
1080
|
customer_details: nil,
|
|
966
1081
|
discounts: nil,
|
|
967
1082
|
expand: nil,
|
|
@@ -977,6 +1092,7 @@ module Stripe
|
|
|
977
1092
|
@automatic_tax = automatic_tax
|
|
978
1093
|
@currency = currency
|
|
979
1094
|
@customer = customer
|
|
1095
|
+
@customer_account = customer_account
|
|
980
1096
|
@customer_details = customer_details
|
|
981
1097
|
@discounts = discounts
|
|
982
1098
|
@expand = expand
|
|
@@ -989,5 +1105,66 @@ module Stripe
|
|
|
989
1105
|
@subscription = subscription
|
|
990
1106
|
@subscription_details = subscription_details
|
|
991
1107
|
end
|
|
1108
|
+
|
|
1109
|
+
def self.field_encodings
|
|
1110
|
+
@field_encodings = {
|
|
1111
|
+
invoice_items: {
|
|
1112
|
+
kind: :array,
|
|
1113
|
+
element: {
|
|
1114
|
+
kind: :object,
|
|
1115
|
+
fields: {
|
|
1116
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
1117
|
+
quantity_decimal: :decimal_string,
|
|
1118
|
+
unit_amount_decimal: :decimal_string,
|
|
1119
|
+
},
|
|
1120
|
+
},
|
|
1121
|
+
},
|
|
1122
|
+
schedule_details: {
|
|
1123
|
+
kind: :object,
|
|
1124
|
+
fields: {
|
|
1125
|
+
phases: {
|
|
1126
|
+
kind: :array,
|
|
1127
|
+
element: {
|
|
1128
|
+
kind: :object,
|
|
1129
|
+
fields: {
|
|
1130
|
+
add_invoice_items: {
|
|
1131
|
+
kind: :array,
|
|
1132
|
+
element: {
|
|
1133
|
+
kind: :object,
|
|
1134
|
+
fields: {
|
|
1135
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
1136
|
+
},
|
|
1137
|
+
},
|
|
1138
|
+
},
|
|
1139
|
+
items: {
|
|
1140
|
+
kind: :array,
|
|
1141
|
+
element: {
|
|
1142
|
+
kind: :object,
|
|
1143
|
+
fields: {
|
|
1144
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
1145
|
+
},
|
|
1146
|
+
},
|
|
1147
|
+
},
|
|
1148
|
+
},
|
|
1149
|
+
},
|
|
1150
|
+
},
|
|
1151
|
+
},
|
|
1152
|
+
},
|
|
1153
|
+
subscription_details: {
|
|
1154
|
+
kind: :object,
|
|
1155
|
+
fields: {
|
|
1156
|
+
items: {
|
|
1157
|
+
kind: :array,
|
|
1158
|
+
element: {
|
|
1159
|
+
kind: :object,
|
|
1160
|
+
fields: {
|
|
1161
|
+
price_data: { kind: :object, fields: { unit_amount_decimal: :decimal_string } },
|
|
1162
|
+
},
|
|
1163
|
+
},
|
|
1164
|
+
},
|
|
1165
|
+
},
|
|
1166
|
+
},
|
|
1167
|
+
}
|
|
1168
|
+
end
|
|
992
1169
|
end
|
|
993
1170
|
end
|