stripe 19.2.0 → 19.3.0.pre.beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +36 -3
- data/lib/stripe/api_version.rb +1 -2
- data/lib/stripe/errors.rb +87 -0
- data/lib/stripe/event_types.rb +228 -0
- data/lib/stripe/events/unknown_event_notification.rb +1 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +44 -0
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +44 -0
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +75 -0
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +44 -0
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +63 -0
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +97 -0
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +97 -0
- data/lib/stripe/object_types.rb +61 -0
- data/lib/stripe/params/account_create_params.rb +374 -1
- data/lib/stripe/params/account_notice_list_params.rb +25 -0
- data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
- data/lib/stripe/params/account_notice_update_params.rb +36 -0
- data/lib/stripe/params/account_session_create_params.rb +226 -1
- data/lib/stripe/params/account_update_params.rb +336 -0
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
- data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
- data/lib/stripe/params/charge_capture_params.rb +1646 -0
- data/lib/stripe/params/charge_update_params.rb +1646 -0
- data/lib/stripe/params/checkout/session_create_params.rb +126 -3
- data/lib/stripe/params/checkout/session_update_params.rb +176 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +78 -0
- data/lib/stripe/params/coupon_create_params.rb +17 -1
- data/lib/stripe/params/customer_session_create_params.rb +32 -1
- data/lib/stripe/params/dispute_update_params.rb +10 -1
- data/lib/stripe/params/external_account_create_params.rb +134 -0
- data/lib/stripe/params/external_account_delete_params.rb +6 -0
- data/lib/stripe/params/external_account_list_params.rb +25 -0
- data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
- data/lib/stripe/params/external_account_update_params.rb +91 -0
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
- data/lib/stripe/params/financial_connections/session_create_params.rb +64 -2
- data/lib/stripe/params/fx_quote_create_params.rb +73 -0
- data/lib/stripe/params/fx_quote_list_params.rb +22 -0
- data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
- data/lib/stripe/params/invoice_add_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_attach_payment_params.rb +43 -1
- data/lib/stripe/params/invoice_create_params.rb +70 -2
- data/lib/stripe/params/invoice_create_preview_params.rb +790 -9
- data/lib/stripe/params/invoice_detach_payment_params.rb +16 -0
- data/lib/stripe/params/invoice_item_create_params.rb +33 -1
- data/lib/stripe/params/invoice_item_update_params.rb +33 -1
- data/lib/stripe/params/invoice_line_item_update_params.rb +48 -1
- data/lib/stripe/params/invoice_update_lines_params.rb +48 -1
- data/lib/stripe/params/invoice_update_params.rb +70 -2
- data/lib/stripe/params/issuing/cardholder_create_params.rb +2 -1
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
- data/lib/stripe/params/issuing/transaction_list_params.rb +4 -0
- data/lib/stripe/params/mandate_list_params.rb +39 -0
- data/lib/stripe/params/margin_create_params.rb +25 -0
- data/lib/stripe/params/margin_list_params.rb +25 -0
- data/lib/stripe/params/margin_retrieve_params.rb +13 -0
- data/lib/stripe/params/margin_update_params.rb +22 -0
- data/lib/stripe/params/order_create_params.rb +2083 -0
- data/lib/stripe/params/order_list_params.rb +25 -0
- data/lib/stripe/params/order_retrieve_params.rb +13 -0
- data/lib/stripe/params/order_submit_params.rb +16 -0
- data/lib/stripe/params/order_update_params.rb +2087 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +1643 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +3022 -87
- data/lib/stripe/params/payment_intent_create_params.rb +3034 -99
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +297 -0
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +37 -0
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
- data/lib/stripe/params/payment_intent_update_params.rb +3023 -57
- data/lib/stripe/params/payment_link_create_params.rb +15 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +105 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +105 -0
- data/lib/stripe/params/payment_method_create_params.rb +74 -0
- data/lib/stripe/params/plan_create_params.rb +15 -0
- data/lib/stripe/params/price_create_params.rb +15 -0
- data/lib/stripe/params/price_update_params.rb +19 -0
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +63 -0
- data/lib/stripe/params/product_create_params.rb +16 -0
- data/lib/stripe/params/product_update_params.rb +16 -0
- data/lib/stripe/params/quote_create_params.rb +809 -3
- data/lib/stripe/params/quote_line_list_params.rb +22 -0
- data/lib/stripe/params/quote_list_lines_params.rb +22 -0
- data/lib/stripe/params/quote_list_params.rb +4 -0
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
- data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
- data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
- data/lib/stripe/params/quote_reestimate_params.rb +13 -0
- data/lib/stripe/params/quote_update_params.rb +817 -4
- data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
- data/lib/stripe/params/reserve/release_list_params.rb +41 -0
- data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +108 -3
- data/lib/stripe/params/setup_intent_create_params.rb +108 -3
- data/lib/stripe/params/setup_intent_update_params.rb +108 -3
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +47 -0
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +67 -0
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +15 -0
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +15 -0
- data/lib/stripe/params/subscription_create_params.rb +170 -6
- data/lib/stripe/params/subscription_item_create_params.rb +62 -2
- data/lib/stripe/params/subscription_item_update_params.rb +45 -1
- data/lib/stripe/params/subscription_pause_params.rb +50 -0
- data/lib/stripe/params/subscription_resume_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_amend_params.rb +578 -0
- data/lib/stripe/params/subscription_schedule_create_params.rb +167 -5
- data/lib/stripe/params/subscription_schedule_update_params.rb +167 -5
- data/lib/stripe/params/subscription_update_params.rb +153 -5
- data/lib/stripe/params/tax/calculation_create_params.rb +4 -0
- data/lib/stripe/params/tax/form_list_params.rb +51 -0
- data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
- data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/location_create_params.rb +54 -0
- data/lib/stripe/params/tax/location_list_params.rb +27 -0
- data/lib/stripe/params/tax/location_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/registration_create_params.rb +104 -0
- data/lib/stripe/params/terminal/configuration_create_params.rb +13 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +13 -0
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +78 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +49 -0
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +17 -0
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/transfer_create_params.rb +4 -0
- data/lib/stripe/params/treasury/financial_account_create_params.rb +8 -1
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +4 -1
- data/lib/stripe/params/treasury/financial_account_update_params.rb +8 -1
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +4 -0
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +24 -0
- data/lib/stripe/params/treasury/received_credit_create_params.rb +25 -1
- data/lib/stripe/params/treasury/received_debit_create_params.rb +25 -1
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +257 -0
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +263 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
- data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +282 -5
- data/lib/stripe/params/v2/core/account_token_create_params.rb +13 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +274 -4
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +58 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +37 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +31 -0
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +17 -0
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +21 -0
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +23 -0
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +23 -0
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +50 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +102 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +67 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +92 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +88 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +77 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +10 -0
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +17 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +20 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +10 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +23 -0
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
- data/lib/stripe/params.rb +426 -0
- data/lib/stripe/resources/account.rb +259 -1
- data/lib/stripe/resources/account_notice.rb +94 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/balance.rb +83 -0
- data/lib/stripe/resources/billing/alert_triggered.rb +4 -0
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
- data/lib/stripe/resources/capital/financing_offer.rb +142 -0
- data/lib/stripe/resources/capital/financing_summary.rb +82 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
- data/lib/stripe/resources/card.rb +2 -0
- data/lib/stripe/resources/charge.rb +211 -1
- data/lib/stripe/resources/checkout/session.rb +75 -3
- data/lib/stripe/resources/confirmation_token.rb +131 -0
- data/lib/stripe/resources/coupon.rb +26 -1
- data/lib/stripe/resources/credit_note_line_item.rb +18 -0
- data/lib/stripe/resources/customer_session.rb +36 -0
- data/lib/stripe/resources/dispute.rb +22 -0
- data/lib/stripe/resources/event.rb +64 -1
- data/lib/stripe/resources/financial_connections/account.rb +57 -0
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
- data/lib/stripe/resources/financial_connections/authorization.rb +82 -0
- data/lib/stripe/resources/financial_connections/institution.rb +127 -0
- data/lib/stripe/resources/financial_connections/session.rb +125 -1
- data/lib/stripe/resources/fx_quote.rb +147 -0
- data/lib/stripe/resources/invoice.rb +117 -1
- data/lib/stripe/resources/invoice_item.rb +2 -0
- data/lib/stripe/resources/invoice_line_item.rb +40 -0
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
- data/lib/stripe/resources/issuing/settlement.rb +61 -0
- data/lib/stripe/resources/issuing/transaction.rb +2 -0
- data/lib/stripe/resources/line_item.rb +42 -0
- data/lib/stripe/resources/mandate.rb +12 -0
- data/lib/stripe/resources/margin.rb +64 -0
- data/lib/stripe/resources/order.rb +927 -0
- data/lib/stripe/resources/payment_attempt_record.rb +177 -1
- data/lib/stripe/resources/payment_intent.rb +1561 -8
- data/lib/stripe/resources/payment_method.rb +135 -0
- data/lib/stripe/resources/payment_method_configuration.rb +170 -0
- data/lib/stripe/resources/payment_record.rb +177 -1
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/privacy/redaction_job.rb +189 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
- data/lib/stripe/resources/product.rb +18 -0
- data/lib/stripe/resources/product_catalog/trial_offer.rb +106 -0
- data/lib/stripe/resources/quote.rb +569 -2
- data/lib/stripe/resources/quote_line.rb +525 -0
- data/lib/stripe/resources/quote_preview_invoice.rb +1183 -0
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +736 -0
- data/lib/stripe/resources/refund.rb +18 -0
- data/lib/stripe/resources/reserve/hold.rb +7 -0
- data/lib/stripe/resources/reserve/release.rb +12 -0
- data/lib/stripe/resources/setup_attempt.rb +35 -0
- data/lib/stripe/resources/setup_intent.rb +22 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +1792 -0
- data/lib/stripe/resources/shared_payment/issued_token.rb +291 -0
- data/lib/stripe/resources/source.rb +38 -0
- data/lib/stripe/resources/subscription.rb +167 -0
- data/lib/stripe/resources/subscription_item.rb +41 -1
- data/lib/stripe/resources/subscription_schedule.rb +198 -3
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/form.rb +264 -0
- data/lib/stripe/resources/tax/location.rb +72 -0
- data/lib/stripe/resources/tax/registration.rb +128 -0
- data/lib/stripe/resources/tax_code.rb +15 -1
- data/lib/stripe/resources/terminal/configuration.rb +16 -0
- data/lib/stripe/resources/terminal/reader.rb +8 -0
- data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
- data/lib/stripe/resources/transfer.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account.rb +2 -0
- data/lib/stripe/resources/treasury/financial_account_features.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +2 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +30 -0
- data/lib/stripe/resources/treasury/received_credit.rb +30 -0
- data/lib/stripe/resources/treasury/received_debit.rb +32 -0
- data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +91 -0
- data/lib/stripe/resources/v2/billing/cadence.rb +710 -0
- data/lib/stripe/resources/v2/billing/collection_setting.rb +327 -0
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +316 -0
- data/lib/stripe/resources/v2/billing/profile.rb +47 -0
- data/lib/stripe/resources/v2/core/account.rb +597 -3
- data/lib/stripe/resources/v2/core/batch_job.rb +488 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +1 -0
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +136 -0
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +105 -0
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +142 -0
- data/lib/stripe/resources/v2/extend/workflow.rb +80 -0
- data/lib/stripe/resources/v2/extend/workflow_run.rb +158 -0
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +29 -0
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +31 -0
- data/lib/stripe/resources/v2/iam/activity_log.rb +187 -0
- data/lib/stripe/resources/v2/money_management/adjustment.rb +67 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +140 -0
- data/lib/stripe/resources/v2/money_management/financial_address.rb +160 -0
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +181 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +219 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +144 -0
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +196 -0
- data/lib/stripe/resources/v2/money_management/payout_method.rb +145 -0
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +83 -0
- data/lib/stripe/resources/v2/money_management/received_credit.rb +230 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +136 -0
- data/lib/stripe/resources/v2/money_management/transaction.rb +135 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +105 -0
- data/lib/stripe/resources/v2/network/business_profile.rb +84 -0
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +93 -0
- data/lib/stripe/resources.rb +417 -0
- data/lib/stripe/services/account_notice_service.rb +39 -0
- data/lib/stripe/services/account_service.rb +15 -0
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
- data/lib/stripe/services/billing/analytics_service.rb +15 -0
- data/lib/stripe/services/billing_service.rb +2 -1
- data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
- data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
- data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
- data/lib/stripe/services/capital_service.rb +15 -0
- data/lib/stripe/services/coupon_service.rb +14 -0
- data/lib/stripe/services/customer_service.rb +15 -0
- data/lib/stripe/services/external_account_service.rb +68 -0
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
- data/lib/stripe/services/financial_connections/account_service.rb +3 -1
- data/lib/stripe/services/financial_connections/authorization_service.rb +19 -0
- data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
- data/lib/stripe/services/financial_connections_service.rb +3 -1
- data/lib/stripe/services/fx_quote_service.rb +27 -0
- data/lib/stripe/services/invoice_service.rb +11 -0
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
- data/lib/stripe/services/issuing_service.rb +5 -1
- data/lib/stripe/services/mandate_service.rb +5 -0
- data/lib/stripe/services/margin_service.rb +50 -0
- data/lib/stripe/services/order_service.rb +53 -0
- data/lib/stripe/services/payment_intent_service.rb +37 -0
- data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
- data/lib/stripe/services/privacy_service.rb +13 -0
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
- data/lib/stripe/services/product_catalog_service.rb +13 -0
- data/lib/stripe/services/promotion_code_service.rb +29 -0
- data/lib/stripe/services/quote_line_service.rb +17 -0
- data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
- data/lib/stripe/services/quote_service.rb +49 -1
- data/lib/stripe/services/reserve/hold_service.rb +30 -0
- data/lib/stripe/services/reserve/plan_service.rb +19 -0
- data/lib/stripe/services/reserve/release_service.rb +30 -0
- data/lib/stripe/services/reserve_service.rb +15 -0
- data/lib/stripe/services/shared_payment/granted_token_service.rb +19 -0
- data/lib/stripe/services/shared_payment/issued_token_service.rb +41 -0
- data/lib/stripe/services/shared_payment_service.rb +14 -0
- data/lib/stripe/services/subscription_schedule_service.rb +11 -0
- data/lib/stripe/services/subscription_service.rb +56 -0
- data/lib/stripe/services/tax/form_service.rb +37 -0
- data/lib/stripe/services/tax/location_service.rb +45 -0
- data/lib/stripe/services/tax_service.rb +3 -1
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
- data/lib/stripe/services/terminal_service.rb +2 -1
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +32 -0
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +15 -0
- data/lib/stripe/services/test_helpers_service.rb +2 -1
- data/lib/stripe/services/v1_services.rb +11 -1
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +69 -0
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
- data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
- data/lib/stripe/services/v2/billing_service.rb +5 -1
- data/lib/stripe/services/v2/core/batch_job_service.rb +43 -0
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
- data/lib/stripe/services/v2/core/vault_service.rb +18 -0
- data/lib/stripe/services/v2/core_service.rb +3 -1
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +35 -0
- data/lib/stripe/services/v2/data/reporting_service.rb +17 -0
- data/lib/stripe/services/v2/data_service.rb +15 -0
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +32 -0
- data/lib/stripe/services/v2/extend/workflow_service.rb +45 -0
- data/lib/stripe/services/v2/extend_service.rb +16 -0
- data/lib/stripe/services/v2/iam/activity_log_service.rb +32 -0
- data/lib/stripe/services/v2/iam_service.rb +15 -0
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +66 -0
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
- data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
- data/lib/stripe/services/v2/money_management_service.rb +31 -0
- data/lib/stripe/services/v2/network/business_profile_service.rb +32 -0
- data/lib/stripe/services/v2/network_service.rb +15 -0
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +65 -0
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +15 -0
- data/lib/stripe/services/v2/test_helper_service.rb +15 -0
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
- data/lib/stripe/services/v2_services.rb +8 -1
- data/lib/stripe/services.rb +209 -0
- data/lib/stripe/stripe_client.rb +8 -1
- data/lib/stripe/stripe_configuration.rb +3 -1
- data/lib/stripe/stripe_event_notification_handler.rb +582 -0
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +7 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +54 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +3 -0
- data/rbi/stripe/stripe_client.rbi +13 -0
- data/rbi/stripe.rbi +124159 -57389
- metadata +378 -3
|
@@ -5,16 +5,44 @@ module Stripe
|
|
|
5
5
|
class SubscriptionUpdateParams < ::Stripe::RequestParams
|
|
6
6
|
class AddInvoiceItem < ::Stripe::RequestParams
|
|
7
7
|
class Discount < ::Stripe::RequestParams
|
|
8
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
9
|
+
class Duration < ::Stripe::RequestParams
|
|
10
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
11
|
+
attr_accessor :interval
|
|
12
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
13
|
+
attr_accessor :interval_count
|
|
14
|
+
|
|
15
|
+
def initialize(interval: nil, interval_count: nil)
|
|
16
|
+
@interval = interval
|
|
17
|
+
@interval_count = interval_count
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
# Time span for the redeemed discount.
|
|
21
|
+
attr_accessor :duration
|
|
22
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
23
|
+
attr_accessor :timestamp
|
|
24
|
+
# The type of calculation made to determine when the discount ends.
|
|
25
|
+
attr_accessor :type
|
|
26
|
+
|
|
27
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
28
|
+
@duration = duration
|
|
29
|
+
@timestamp = timestamp
|
|
30
|
+
@type = type
|
|
31
|
+
end
|
|
32
|
+
end
|
|
8
33
|
# ID of the coupon to create a new discount for.
|
|
9
34
|
attr_accessor :coupon
|
|
10
35
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
11
36
|
attr_accessor :discount
|
|
37
|
+
# Details to determine how long the discount should be applied for.
|
|
38
|
+
attr_accessor :discount_end
|
|
12
39
|
# ID of the promotion code to create a new discount for.
|
|
13
40
|
attr_accessor :promotion_code
|
|
14
41
|
|
|
15
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
42
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
16
43
|
@coupon = coupon
|
|
17
44
|
@discount = discount
|
|
45
|
+
@discount_end = discount_end
|
|
18
46
|
@promotion_code = promotion_code
|
|
19
47
|
end
|
|
20
48
|
end
|
|
@@ -228,16 +256,44 @@ module Stripe
|
|
|
228
256
|
end
|
|
229
257
|
|
|
230
258
|
class Discount < ::Stripe::RequestParams
|
|
259
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
260
|
+
class Duration < ::Stripe::RequestParams
|
|
261
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
262
|
+
attr_accessor :interval
|
|
263
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
264
|
+
attr_accessor :interval_count
|
|
265
|
+
|
|
266
|
+
def initialize(interval: nil, interval_count: nil)
|
|
267
|
+
@interval = interval
|
|
268
|
+
@interval_count = interval_count
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
# Time span for the redeemed discount.
|
|
272
|
+
attr_accessor :duration
|
|
273
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
274
|
+
attr_accessor :timestamp
|
|
275
|
+
# The type of calculation made to determine when the discount ends.
|
|
276
|
+
attr_accessor :type
|
|
277
|
+
|
|
278
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
279
|
+
@duration = duration
|
|
280
|
+
@timestamp = timestamp
|
|
281
|
+
@type = type
|
|
282
|
+
end
|
|
283
|
+
end
|
|
231
284
|
# ID of the coupon to create a new discount for.
|
|
232
285
|
attr_accessor :coupon
|
|
233
286
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
234
287
|
attr_accessor :discount
|
|
288
|
+
# Details to determine how long the discount should be applied for.
|
|
289
|
+
attr_accessor :discount_end
|
|
235
290
|
# ID of the promotion code to create a new discount for.
|
|
236
291
|
attr_accessor :promotion_code
|
|
237
292
|
|
|
238
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
293
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
239
294
|
@coupon = coupon
|
|
240
295
|
@discount = discount
|
|
296
|
+
@discount_end = discount_end
|
|
241
297
|
@promotion_code = promotion_code
|
|
242
298
|
end
|
|
243
299
|
end
|
|
@@ -275,17 +331,57 @@ module Stripe
|
|
|
275
331
|
end
|
|
276
332
|
end
|
|
277
333
|
|
|
334
|
+
class CurrentTrial < ::Stripe::RequestParams
|
|
335
|
+
# Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
336
|
+
attr_accessor :trial_end
|
|
337
|
+
# The ID of the trial offer to apply to the subscription item.
|
|
338
|
+
attr_accessor :trial_offer
|
|
339
|
+
|
|
340
|
+
def initialize(trial_end: nil, trial_offer: nil)
|
|
341
|
+
@trial_end = trial_end
|
|
342
|
+
@trial_offer = trial_offer
|
|
343
|
+
end
|
|
344
|
+
end
|
|
345
|
+
|
|
278
346
|
class Discount < ::Stripe::RequestParams
|
|
347
|
+
class DiscountEnd < ::Stripe::RequestParams
|
|
348
|
+
class Duration < ::Stripe::RequestParams
|
|
349
|
+
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
350
|
+
attr_accessor :interval
|
|
351
|
+
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
352
|
+
attr_accessor :interval_count
|
|
353
|
+
|
|
354
|
+
def initialize(interval: nil, interval_count: nil)
|
|
355
|
+
@interval = interval
|
|
356
|
+
@interval_count = interval_count
|
|
357
|
+
end
|
|
358
|
+
end
|
|
359
|
+
# Time span for the redeemed discount.
|
|
360
|
+
attr_accessor :duration
|
|
361
|
+
# A precise Unix timestamp for the discount to end. Must be in the future.
|
|
362
|
+
attr_accessor :timestamp
|
|
363
|
+
# The type of calculation made to determine when the discount ends.
|
|
364
|
+
attr_accessor :type
|
|
365
|
+
|
|
366
|
+
def initialize(duration: nil, timestamp: nil, type: nil)
|
|
367
|
+
@duration = duration
|
|
368
|
+
@timestamp = timestamp
|
|
369
|
+
@type = type
|
|
370
|
+
end
|
|
371
|
+
end
|
|
279
372
|
# ID of the coupon to create a new discount for.
|
|
280
373
|
attr_accessor :coupon
|
|
281
374
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
282
375
|
attr_accessor :discount
|
|
376
|
+
# Details to determine how long the discount should be applied for.
|
|
377
|
+
attr_accessor :discount_end
|
|
283
378
|
# ID of the promotion code to create a new discount for.
|
|
284
379
|
attr_accessor :promotion_code
|
|
285
380
|
|
|
286
|
-
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
|
381
|
+
def initialize(coupon: nil, discount: nil, discount_end: nil, promotion_code: nil)
|
|
287
382
|
@coupon = coupon
|
|
288
383
|
@discount = discount
|
|
384
|
+
@discount_end = discount_end
|
|
289
385
|
@promotion_code = promotion_code
|
|
290
386
|
end
|
|
291
387
|
end
|
|
@@ -339,6 +435,8 @@ module Stripe
|
|
|
339
435
|
attr_accessor :billing_thresholds
|
|
340
436
|
# Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
|
341
437
|
attr_accessor :clear_usage
|
|
438
|
+
# The trial offer to apply to this subscription item.
|
|
439
|
+
attr_accessor :current_trial
|
|
342
440
|
# A flag that, if set to `true`, will delete the specified item.
|
|
343
441
|
attr_accessor :deleted
|
|
344
442
|
# The coupons to redeem into discounts for the subscription item.
|
|
@@ -361,6 +459,7 @@ module Stripe
|
|
|
361
459
|
def initialize(
|
|
362
460
|
billing_thresholds: nil,
|
|
363
461
|
clear_usage: nil,
|
|
462
|
+
current_trial: nil,
|
|
364
463
|
deleted: nil,
|
|
365
464
|
discounts: nil,
|
|
366
465
|
id: nil,
|
|
@@ -373,6 +472,7 @@ module Stripe
|
|
|
373
472
|
)
|
|
374
473
|
@billing_thresholds = billing_thresholds
|
|
375
474
|
@clear_usage = clear_usage
|
|
475
|
+
@current_trial = current_trial
|
|
376
476
|
@deleted = deleted
|
|
377
477
|
@discounts = discounts
|
|
378
478
|
@id = id
|
|
@@ -434,6 +534,23 @@ module Stripe
|
|
|
434
534
|
end
|
|
435
535
|
end
|
|
436
536
|
|
|
537
|
+
class Blik < ::Stripe::RequestParams
|
|
538
|
+
class MandateOptions < ::Stripe::RequestParams
|
|
539
|
+
# Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
540
|
+
attr_accessor :expires_after
|
|
541
|
+
|
|
542
|
+
def initialize(expires_after: nil)
|
|
543
|
+
@expires_after = expires_after
|
|
544
|
+
end
|
|
545
|
+
end
|
|
546
|
+
# Configuration options for setting up a mandate
|
|
547
|
+
attr_accessor :mandate_options
|
|
548
|
+
|
|
549
|
+
def initialize(mandate_options: nil)
|
|
550
|
+
@mandate_options = mandate_options
|
|
551
|
+
end
|
|
552
|
+
end
|
|
553
|
+
|
|
437
554
|
class Card < ::Stripe::RequestParams
|
|
438
555
|
class MandateOptions < ::Stripe::RequestParams
|
|
439
556
|
# Amount to be charged for future payments, specified in the presentment currency.
|
|
@@ -494,6 +611,7 @@ module Stripe
|
|
|
494
611
|
end
|
|
495
612
|
end
|
|
496
613
|
|
|
614
|
+
class IdBankTransfer < ::Stripe::RequestParams; end
|
|
497
615
|
class Konbini < ::Stripe::RequestParams; end
|
|
498
616
|
|
|
499
617
|
class Payto < ::Stripe::RequestParams
|
|
@@ -583,9 +701,12 @@ module Stripe
|
|
|
583
701
|
class Filters < ::Stripe::RequestParams
|
|
584
702
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
585
703
|
attr_accessor :account_subcategories
|
|
704
|
+
# ID of the institution to use to filter for selectable accounts.
|
|
705
|
+
attr_accessor :institution
|
|
586
706
|
|
|
587
|
-
def initialize(account_subcategories: nil)
|
|
707
|
+
def initialize(account_subcategories: nil, institution: nil)
|
|
588
708
|
@account_subcategories = account_subcategories
|
|
709
|
+
@institution = institution
|
|
589
710
|
end
|
|
590
711
|
end
|
|
591
712
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
|
@@ -615,10 +736,14 @@ module Stripe
|
|
|
615
736
|
attr_accessor :acss_debit
|
|
616
737
|
# This sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
|
|
617
738
|
attr_accessor :bancontact
|
|
739
|
+
# This sub-hash contains details about the Blik payment method options to pass to the invoice’s PaymentIntent.
|
|
740
|
+
attr_accessor :blik
|
|
618
741
|
# This sub-hash contains details about the Card payment method options to pass to the invoice’s PaymentIntent.
|
|
619
742
|
attr_accessor :card
|
|
620
743
|
# This sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
|
621
744
|
attr_accessor :customer_balance
|
|
745
|
+
# This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
|
746
|
+
attr_accessor :id_bank_transfer
|
|
622
747
|
# This sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
|
623
748
|
attr_accessor :konbini
|
|
624
749
|
# This sub-hash contains details about the PayTo payment method options to pass to the invoice’s PaymentIntent.
|
|
@@ -635,8 +760,10 @@ module Stripe
|
|
|
635
760
|
def initialize(
|
|
636
761
|
acss_debit: nil,
|
|
637
762
|
bancontact: nil,
|
|
763
|
+
blik: nil,
|
|
638
764
|
card: nil,
|
|
639
765
|
customer_balance: nil,
|
|
766
|
+
id_bank_transfer: nil,
|
|
640
767
|
konbini: nil,
|
|
641
768
|
payto: nil,
|
|
642
769
|
pix: nil,
|
|
@@ -646,8 +773,10 @@ module Stripe
|
|
|
646
773
|
)
|
|
647
774
|
@acss_debit = acss_debit
|
|
648
775
|
@bancontact = bancontact
|
|
776
|
+
@blik = blik
|
|
649
777
|
@card = card
|
|
650
778
|
@customer_balance = customer_balance
|
|
779
|
+
@id_bank_transfer = id_bank_transfer
|
|
651
780
|
@konbini = konbini
|
|
652
781
|
@payto = payto
|
|
653
782
|
@pix = pix
|
|
@@ -686,6 +815,18 @@ module Stripe
|
|
|
686
815
|
end
|
|
687
816
|
end
|
|
688
817
|
|
|
818
|
+
class Prebilling < ::Stripe::RequestParams
|
|
819
|
+
# This is used to determine the number of billing cycles to prebill.
|
|
820
|
+
attr_accessor :iterations
|
|
821
|
+
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
822
|
+
attr_accessor :update_behavior
|
|
823
|
+
|
|
824
|
+
def initialize(iterations: nil, update_behavior: nil)
|
|
825
|
+
@iterations = iterations
|
|
826
|
+
@update_behavior = update_behavior
|
|
827
|
+
end
|
|
828
|
+
end
|
|
829
|
+
|
|
689
830
|
class TransferData < ::Stripe::RequestParams
|
|
690
831
|
# 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.
|
|
691
832
|
attr_accessor :amount_percent
|
|
@@ -700,10 +841,13 @@ module Stripe
|
|
|
700
841
|
|
|
701
842
|
class TrialSettings < ::Stripe::RequestParams
|
|
702
843
|
class EndBehavior < ::Stripe::RequestParams
|
|
844
|
+
# Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`.
|
|
845
|
+
attr_accessor :billing_cycle_anchor
|
|
703
846
|
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
704
847
|
attr_accessor :missing_payment_method
|
|
705
848
|
|
|
706
|
-
def initialize(missing_payment_method: nil)
|
|
849
|
+
def initialize(billing_cycle_anchor: nil, missing_payment_method: nil)
|
|
850
|
+
@billing_cycle_anchor = billing_cycle_anchor
|
|
707
851
|
@missing_payment_method = missing_payment_method
|
|
708
852
|
end
|
|
709
853
|
end
|
|
@@ -766,6 +910,8 @@ module Stripe
|
|
|
766
910
|
attr_accessor :payment_settings
|
|
767
911
|
# Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](/api/invoices/create) for the given subscription at the specified interval.
|
|
768
912
|
attr_accessor :pending_invoice_item_interval
|
|
913
|
+
# If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
914
|
+
attr_accessor :prebilling
|
|
769
915
|
# 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`.
|
|
770
916
|
attr_accessor :proration_behavior
|
|
771
917
|
# If set, prorations will be calculated as though the subscription was updated at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint. `proration_date` can also be used to implement custom proration logic, such as prorating by day instead of by second, by providing the time that you wish to use for proration calculations.
|
|
@@ -806,6 +952,7 @@ module Stripe
|
|
|
806
952
|
payment_behavior: nil,
|
|
807
953
|
payment_settings: nil,
|
|
808
954
|
pending_invoice_item_interval: nil,
|
|
955
|
+
prebilling: nil,
|
|
809
956
|
proration_behavior: nil,
|
|
810
957
|
proration_date: nil,
|
|
811
958
|
transfer_data: nil,
|
|
@@ -839,6 +986,7 @@ module Stripe
|
|
|
839
986
|
@payment_behavior = payment_behavior
|
|
840
987
|
@payment_settings = payment_settings
|
|
841
988
|
@pending_invoice_item_interval = pending_invoice_item_interval
|
|
989
|
+
@prebilling = prebilling
|
|
842
990
|
@proration_behavior = proration_behavior
|
|
843
991
|
@proration_date = proration_date
|
|
844
992
|
@transfer_data = transfer_data
|
|
@@ -79,6 +79,8 @@ module Stripe
|
|
|
79
79
|
attr_accessor :amount
|
|
80
80
|
# 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.
|
|
81
81
|
attr_accessor :metadata
|
|
82
|
+
# A tax location ID. Depending on the [tax code](/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
83
|
+
attr_accessor :performance_location
|
|
82
84
|
# If provided, the product's `tax_code` will be used as the line item's `tax_code`.
|
|
83
85
|
attr_accessor :product
|
|
84
86
|
# The number of units of the item being purchased. Used to calculate the per-unit price from the total `amount` for the line. For example, if `amount=100` and `quantity=4`, the calculated unit price is 25.
|
|
@@ -93,6 +95,7 @@ module Stripe
|
|
|
93
95
|
def initialize(
|
|
94
96
|
amount: nil,
|
|
95
97
|
metadata: nil,
|
|
98
|
+
performance_location: nil,
|
|
96
99
|
product: nil,
|
|
97
100
|
quantity: nil,
|
|
98
101
|
reference: nil,
|
|
@@ -101,6 +104,7 @@ module Stripe
|
|
|
101
104
|
)
|
|
102
105
|
@amount = amount
|
|
103
106
|
@metadata = metadata
|
|
107
|
+
@performance_location = performance_location
|
|
104
108
|
@product = product
|
|
105
109
|
@quantity = quantity
|
|
106
110
|
@reference = reference
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
class FormListParams < ::Stripe::RequestParams
|
|
7
|
+
class Payee < ::Stripe::RequestParams
|
|
8
|
+
# The ID of the Stripe account whose forms will be retrieved.
|
|
9
|
+
attr_accessor :account
|
|
10
|
+
# The external reference to the payee whose forms will be retrieved.
|
|
11
|
+
attr_accessor :external_reference
|
|
12
|
+
# Specifies the payee type. Either `account` or `external_reference`.
|
|
13
|
+
attr_accessor :type
|
|
14
|
+
|
|
15
|
+
def initialize(account: nil, external_reference: nil, type: nil)
|
|
16
|
+
@account = account
|
|
17
|
+
@external_reference = external_reference
|
|
18
|
+
@type = type
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
|
22
|
+
attr_accessor :ending_before
|
|
23
|
+
# Specifies which fields in the response should be expanded.
|
|
24
|
+
attr_accessor :expand
|
|
25
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
26
|
+
attr_accessor :limit
|
|
27
|
+
# The payee whose volume is represented on the tax form.
|
|
28
|
+
attr_accessor :payee
|
|
29
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
30
|
+
attr_accessor :starting_after
|
|
31
|
+
# An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future tax form types. If your integration expects only one type of tax form in the response, make sure to provide a type value in the request.
|
|
32
|
+
attr_accessor :type
|
|
33
|
+
|
|
34
|
+
def initialize(
|
|
35
|
+
ending_before: nil,
|
|
36
|
+
expand: nil,
|
|
37
|
+
limit: nil,
|
|
38
|
+
payee: nil,
|
|
39
|
+
starting_after: nil,
|
|
40
|
+
type: nil
|
|
41
|
+
)
|
|
42
|
+
@ending_before = ending_before
|
|
43
|
+
@expand = expand
|
|
44
|
+
@limit = limit
|
|
45
|
+
@payee = payee
|
|
46
|
+
@starting_after = starting_after
|
|
47
|
+
@type = type
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
class FormPdfParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
class FormRetrieveParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
class LocationCreateParams < ::Stripe::RequestParams
|
|
7
|
+
class Address < ::Stripe::RequestParams
|
|
8
|
+
# City, district, suburb, town, or village.
|
|
9
|
+
attr_accessor :city
|
|
10
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
11
|
+
attr_accessor :country
|
|
12
|
+
# Address line 1, such as the street, PO Box, or company name.
|
|
13
|
+
attr_accessor :line1
|
|
14
|
+
# Address line 2, such as the apartment, suite, unit, or building.
|
|
15
|
+
attr_accessor :line2
|
|
16
|
+
# ZIP or postal code.
|
|
17
|
+
attr_accessor :postal_code
|
|
18
|
+
# State/province as an [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision code, without country prefix, such as "NY" or "TX".
|
|
19
|
+
attr_accessor :state
|
|
20
|
+
|
|
21
|
+
def initialize(
|
|
22
|
+
city: nil,
|
|
23
|
+
country: nil,
|
|
24
|
+
line1: nil,
|
|
25
|
+
line2: nil,
|
|
26
|
+
postal_code: nil,
|
|
27
|
+
state: nil
|
|
28
|
+
)
|
|
29
|
+
@city = city
|
|
30
|
+
@country = country
|
|
31
|
+
@line1 = line1
|
|
32
|
+
@line2 = line2
|
|
33
|
+
@postal_code = postal_code
|
|
34
|
+
@state = state
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
# The physical address of the tax location.
|
|
38
|
+
attr_accessor :address
|
|
39
|
+
# Details to identify the tax location by its venue, types of events held, or available services, such as "A spacious auditorium suitable for large concerts and events.".
|
|
40
|
+
attr_accessor :description
|
|
41
|
+
# Specifies which fields in the response should be expanded.
|
|
42
|
+
attr_accessor :expand
|
|
43
|
+
# The type of tax location. The only supported value is "performance".
|
|
44
|
+
attr_accessor :type
|
|
45
|
+
|
|
46
|
+
def initialize(address: nil, description: nil, expand: nil, type: nil)
|
|
47
|
+
@address = address
|
|
48
|
+
@description = description
|
|
49
|
+
@expand = expand
|
|
50
|
+
@type = type
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
class LocationListParams < ::Stripe::RequestParams
|
|
7
|
+
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
|
8
|
+
attr_accessor :ending_before
|
|
9
|
+
# Specifies which fields in the response should be expanded.
|
|
10
|
+
attr_accessor :expand
|
|
11
|
+
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
12
|
+
attr_accessor :limit
|
|
13
|
+
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
|
14
|
+
attr_accessor :starting_after
|
|
15
|
+
# Type of the tax location. Currently the only option is `performance`.
|
|
16
|
+
attr_accessor :type
|
|
17
|
+
|
|
18
|
+
def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil, type: nil)
|
|
19
|
+
@ending_before = ending_before
|
|
20
|
+
@expand = expand
|
|
21
|
+
@limit = limit
|
|
22
|
+
@starting_after = starting_after
|
|
23
|
+
@type = type
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
class LocationRetrieveParams < ::Stripe::RequestParams
|
|
7
|
+
# Specifies which fields in the response should be expanded.
|
|
8
|
+
attr_accessor :expand
|
|
9
|
+
|
|
10
|
+
def initialize(expand: nil)
|
|
11
|
+
@expand = expand
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -1457,6 +1457,51 @@ module Stripe
|
|
|
1457
1457
|
end
|
|
1458
1458
|
|
|
1459
1459
|
class Us < ::Stripe::RequestParams
|
|
1460
|
+
class AdmissionsTax < ::Stripe::RequestParams
|
|
1461
|
+
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=admissions_tax#registration-types).
|
|
1462
|
+
attr_accessor :jurisdiction
|
|
1463
|
+
|
|
1464
|
+
def initialize(jurisdiction: nil)
|
|
1465
|
+
@jurisdiction = jurisdiction
|
|
1466
|
+
end
|
|
1467
|
+
end
|
|
1468
|
+
|
|
1469
|
+
class AttendanceTax < ::Stripe::RequestParams
|
|
1470
|
+
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=attendance_tax#registration-types).
|
|
1471
|
+
attr_accessor :jurisdiction
|
|
1472
|
+
|
|
1473
|
+
def initialize(jurisdiction: nil)
|
|
1474
|
+
@jurisdiction = jurisdiction
|
|
1475
|
+
end
|
|
1476
|
+
end
|
|
1477
|
+
|
|
1478
|
+
class EntertainmentTax < ::Stripe::RequestParams
|
|
1479
|
+
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=entertainment_tax#registration-types).
|
|
1480
|
+
attr_accessor :jurisdiction
|
|
1481
|
+
|
|
1482
|
+
def initialize(jurisdiction: nil)
|
|
1483
|
+
@jurisdiction = jurisdiction
|
|
1484
|
+
end
|
|
1485
|
+
end
|
|
1486
|
+
|
|
1487
|
+
class GrossReceiptsTax < ::Stripe::RequestParams
|
|
1488
|
+
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=gross_receipts_tax#registration-types).
|
|
1489
|
+
attr_accessor :jurisdiction
|
|
1490
|
+
|
|
1491
|
+
def initialize(jurisdiction: nil)
|
|
1492
|
+
@jurisdiction = jurisdiction
|
|
1493
|
+
end
|
|
1494
|
+
end
|
|
1495
|
+
|
|
1496
|
+
class HospitalityTax < ::Stripe::RequestParams
|
|
1497
|
+
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=hospitality_tax#registration-types).
|
|
1498
|
+
attr_accessor :jurisdiction
|
|
1499
|
+
|
|
1500
|
+
def initialize(jurisdiction: nil)
|
|
1501
|
+
@jurisdiction = jurisdiction
|
|
1502
|
+
end
|
|
1503
|
+
end
|
|
1504
|
+
|
|
1460
1505
|
class LocalAmusementTax < ::Stripe::RequestParams
|
|
1461
1506
|
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=amusement_tax#registration-types).
|
|
1462
1507
|
attr_accessor :jurisdiction
|
|
@@ -1475,6 +1520,24 @@ module Stripe
|
|
|
1475
1520
|
end
|
|
1476
1521
|
end
|
|
1477
1522
|
|
|
1523
|
+
class LuxuryTax < ::Stripe::RequestParams
|
|
1524
|
+
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=luxury_tax#registration-types).
|
|
1525
|
+
attr_accessor :jurisdiction
|
|
1526
|
+
|
|
1527
|
+
def initialize(jurisdiction: nil)
|
|
1528
|
+
@jurisdiction = jurisdiction
|
|
1529
|
+
end
|
|
1530
|
+
end
|
|
1531
|
+
|
|
1532
|
+
class ResortTax < ::Stripe::RequestParams
|
|
1533
|
+
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=resort_tax#registration-types).
|
|
1534
|
+
attr_accessor :jurisdiction
|
|
1535
|
+
|
|
1536
|
+
def initialize(jurisdiction: nil)
|
|
1537
|
+
@jurisdiction = jurisdiction
|
|
1538
|
+
end
|
|
1539
|
+
end
|
|
1540
|
+
|
|
1478
1541
|
class StateSalesTax < ::Stripe::RequestParams
|
|
1479
1542
|
class Election < ::Stripe::RequestParams
|
|
1480
1543
|
# A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `003` (Allegheny County) and `60000` (Philadelphia City).
|
|
@@ -1494,28 +1557,69 @@ module Stripe
|
|
|
1494
1557
|
@elections = elections
|
|
1495
1558
|
end
|
|
1496
1559
|
end
|
|
1560
|
+
|
|
1561
|
+
class TourismTax < ::Stripe::RequestParams
|
|
1562
|
+
# A jurisdiction code representing the [local jurisdiction](/tax/registering?type=tourism_tax#registration-types).
|
|
1563
|
+
attr_accessor :jurisdiction
|
|
1564
|
+
|
|
1565
|
+
def initialize(jurisdiction: nil)
|
|
1566
|
+
@jurisdiction = jurisdiction
|
|
1567
|
+
end
|
|
1568
|
+
end
|
|
1569
|
+
# Options for the admission tax registration.
|
|
1570
|
+
attr_accessor :admissions_tax
|
|
1571
|
+
# Options for the attendance tax registration.
|
|
1572
|
+
attr_accessor :attendance_tax
|
|
1573
|
+
# Options for the entertainment tax registration.
|
|
1574
|
+
attr_accessor :entertainment_tax
|
|
1575
|
+
# Options for the gross receipts tax registration.
|
|
1576
|
+
attr_accessor :gross_receipts_tax
|
|
1577
|
+
# Options for the hospitality tax registration.
|
|
1578
|
+
attr_accessor :hospitality_tax
|
|
1497
1579
|
# Options for the local amusement tax registration.
|
|
1498
1580
|
attr_accessor :local_amusement_tax
|
|
1499
1581
|
# Options for the local lease tax registration.
|
|
1500
1582
|
attr_accessor :local_lease_tax
|
|
1583
|
+
# Options for the luxury tax registration.
|
|
1584
|
+
attr_accessor :luxury_tax
|
|
1585
|
+
# Options for the resort tax registration.
|
|
1586
|
+
attr_accessor :resort_tax
|
|
1501
1587
|
# Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1502
1588
|
attr_accessor :state
|
|
1503
1589
|
# Options for the state sales tax registration.
|
|
1504
1590
|
attr_accessor :state_sales_tax
|
|
1591
|
+
# Options for the tourism tax registration.
|
|
1592
|
+
attr_accessor :tourism_tax
|
|
1505
1593
|
# Type of registration to be created in the US.
|
|
1506
1594
|
attr_accessor :type
|
|
1507
1595
|
|
|
1508
1596
|
def initialize(
|
|
1597
|
+
admissions_tax: nil,
|
|
1598
|
+
attendance_tax: nil,
|
|
1599
|
+
entertainment_tax: nil,
|
|
1600
|
+
gross_receipts_tax: nil,
|
|
1601
|
+
hospitality_tax: nil,
|
|
1509
1602
|
local_amusement_tax: nil,
|
|
1510
1603
|
local_lease_tax: nil,
|
|
1604
|
+
luxury_tax: nil,
|
|
1605
|
+
resort_tax: nil,
|
|
1511
1606
|
state: nil,
|
|
1512
1607
|
state_sales_tax: nil,
|
|
1608
|
+
tourism_tax: nil,
|
|
1513
1609
|
type: nil
|
|
1514
1610
|
)
|
|
1611
|
+
@admissions_tax = admissions_tax
|
|
1612
|
+
@attendance_tax = attendance_tax
|
|
1613
|
+
@entertainment_tax = entertainment_tax
|
|
1614
|
+
@gross_receipts_tax = gross_receipts_tax
|
|
1615
|
+
@hospitality_tax = hospitality_tax
|
|
1515
1616
|
@local_amusement_tax = local_amusement_tax
|
|
1516
1617
|
@local_lease_tax = local_lease_tax
|
|
1618
|
+
@luxury_tax = luxury_tax
|
|
1619
|
+
@resort_tax = resort_tax
|
|
1517
1620
|
@state = state
|
|
1518
1621
|
@state_sales_tax = state_sales_tax
|
|
1622
|
+
@tourism_tax = tourism_tax
|
|
1519
1623
|
@type = type
|
|
1520
1624
|
end
|
|
1521
1625
|
end
|