stripe 19.2.0.pre.beta.2 → 19.2.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/stripe/api_requestor.rb +3 -36
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/errors.rb +0 -87
- data/lib/stripe/event_types.rb +0 -228
- data/lib/stripe/object_types.rb +0 -61
- data/lib/stripe/params/account_create_params.rb +17 -364
- data/lib/stripe/params/account_session_create_params.rb +1 -226
- data/lib/stripe/params/account_update_params.rb +16 -326
- data/lib/stripe/params/balance_settings_update_params.rb +42 -2
- data/lib/stripe/params/charge_capture_params.rb +0 -1646
- data/lib/stripe/params/charge_create_params.rb +4 -1
- data/lib/stripe/params/charge_update_params.rb +0 -1646
- data/lib/stripe/params/checkout/session_create_params.rb +31 -141
- data/lib/stripe/params/checkout/session_update_params.rb +1 -176
- data/lib/stripe/params/confirmation_token_create_params.rb +11 -79
- data/lib/stripe/params/coupon_create_params.rb +1 -17
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/dispute_update_params.rb +1 -10
- data/lib/stripe/params/financial_connections/session_create_params.rb +2 -64
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -48
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +2 -70
- data/lib/stripe/params/invoice_create_preview_params.rb +13 -790
- data/lib/stripe/params/invoice_item_create_params.rb +1 -33
- data/lib/stripe/params/invoice_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -48
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -48
- data/lib/stripe/params/invoice_update_params.rb +2 -70
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +3 -1645
- data/lib/stripe/params/payment_intent_confirm_params.rb +136 -3038
- data/lib/stripe/params/payment_intent_create_params.rb +167 -3043
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -39
- data/lib/stripe/params/payment_intent_update_params.rb +121 -3034
- data/lib/stripe/params/payment_link_create_params.rb +30 -16
- data/lib/stripe/params/payment_link_update_params.rb +29 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +24 -87
- data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +24 -87
- data/lib/stripe/params/payment_method_create_params.rb +11 -75
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/plan_create_params.rb +0 -15
- data/lib/stripe/params/price_create_params.rb +0 -15
- data/lib/stripe/params/price_update_params.rb +0 -19
- data/lib/stripe/params/product_create_params.rb +0 -16
- data/lib/stripe/params/product_update_params.rb +0 -16
- data/lib/stripe/params/quote_create_params.rb +3 -809
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +4 -817
- data/lib/stripe/params/setup_intent_confirm_params.rb +21 -110
- data/lib/stripe/params/setup_intent_create_params.rb +21 -110
- data/lib/stripe/params/setup_intent_update_params.rb +21 -110
- data/lib/stripe/params/subscription_create_params.rb +11 -181
- data/lib/stripe/params/subscription_item_create_params.rb +3 -69
- data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
- data/lib/stripe/params/subscription_item_update_params.rb +2 -52
- data/lib/stripe/params/subscription_schedule_create_params.rb +9 -167
- data/lib/stripe/params/subscription_schedule_update_params.rb +9 -167
- data/lib/stripe/params/subscription_update_params.rb +11 -161
- data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
- data/lib/stripe/params/tax/registration_create_params.rb +0 -104
- data/lib/stripe/params/terminal/configuration_create_params.rb +52 -13
- data/lib/stripe/params/terminal/configuration_update_params.rb +52 -13
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -79
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/transfer_create_params.rb +0 -4
- data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
- data/lib/stripe/params/treasury/outbound_payment_create_params.rb +0 -4
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
- data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/v2/core/account_create_params.rb +33 -288
- data/lib/stripe/params/v2/core/account_token_create_params.rb +28 -18
- data/lib/stripe/params/v2/core/account_update_params.rb +33 -281
- data/lib/stripe/params.rb +1342 -795
- data/lib/stripe/railtie.rb +8 -0
- data/lib/stripe/resources/account.rb +5 -259
- data/lib/stripe/resources/account_session.rb +0 -81
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_settings.rb +42 -2
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/card.rb +0 -2
- data/lib/stripe/resources/charge.rb +36 -211
- data/lib/stripe/resources/checkout/session.rb +26 -82
- data/lib/stripe/resources/confirmation_token.rb +20 -125
- data/lib/stripe/resources/coupon.rb +1 -26
- data/lib/stripe/resources/credit_note_line_item.rb +0 -18
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/discount.rb +2 -2
- data/lib/stripe/resources/dispute.rb +0 -22
- data/lib/stripe/resources/event.rb +1 -64
- data/lib/stripe/resources/financial_connections/account.rb +0 -57
- data/lib/stripe/resources/financial_connections/session.rb +1 -125
- data/lib/stripe/resources/invoice.rb +3 -117
- data/lib/stripe/resources/invoice_item.rb +34 -3
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/issuing/dispute.rb +1 -1
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/issuing/transaction.rb +0 -2
- data/lib/stripe/resources/line_item.rb +0 -42
- data/lib/stripe/resources/mandate.rb +13 -12
- data/lib/stripe/resources/payment_attempt_record.rb +41 -187
- data/lib/stripe/resources/payment_intent.rb +96 -1583
- data/lib/stripe/resources/payment_link.rb +40 -0
- data/lib/stripe/resources/payment_method.rb +21 -130
- data/lib/stripe/resources/payment_method_configuration.rb +20 -122
- data/lib/stripe/resources/payment_record.rb +41 -187
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/product.rb +0 -18
- data/lib/stripe/resources/quote.rb +2 -569
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/refund.rb +13 -18
- data/lib/stripe/resources/reserve/hold.rb +0 -7
- data/lib/stripe/resources/reserve/release.rb +0 -12
- data/lib/stripe/resources/setup_attempt.rb +4 -26
- data/lib/stripe/resources/setup_intent.rb +27 -22
- data/lib/stripe/resources/source.rb +0 -38
- data/lib/stripe/resources/subscription.rb +10 -107
- data/lib/stripe/resources/subscription_item.rb +1 -41
- data/lib/stripe/resources/subscription_schedule.rb +5 -198
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
- data/lib/stripe/resources/tax/registration.rb +0 -128
- data/lib/stripe/resources/tax_code.rb +1 -15
- data/lib/stripe/resources/terminal/configuration.rb +64 -16
- data/lib/stripe/resources/terminal/reader.rb +116 -8
- data/lib/stripe/resources/transfer.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_payment.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
- data/lib/stripe/resources/treasury/received_credit.rb +0 -30
- data/lib/stripe/resources/treasury/received_debit.rb +0 -32
- data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +1 -1
- data/lib/stripe/resources/v2/core/account.rb +40 -607
- data/lib/stripe/resources/v2/core/account_token.rb +1 -1
- data/lib/stripe/resources/v2/core/event.rb +1 -0
- data/lib/stripe/resources.rb +500 -301
- data/lib/stripe/services/account_service.rb +0 -15
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/credit_note_service.rb +0 -14
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -3
- data/lib/stripe/services/invoice_service.rb +0 -41
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -5
- data/lib/stripe/services/payment_intent_service.rb +3 -38
- data/lib/stripe/services/promotion_code_service.rb +0 -29
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/subscription_schedule_service.rb +0 -55
- data/lib/stripe/services/subscription_service.rb +2 -32
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -11
- data/lib/stripe/services/v2/billing_service.rb +1 -5
- data/lib/stripe/services/v2/core/account_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
- data/lib/stripe/services/v2/core/event_service.rb +2 -1
- data/lib/stripe/services/v2/core_service.rb +1 -3
- data/lib/stripe/services/v2_services.rb +1 -8
- data/lib/stripe/services.rb +469 -268
- data/lib/stripe/stripe_client.rb +1 -8
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +25 -58
- data/rbi/stripe/stripe_client.rbi +0 -13
- data/rbi/stripe.rbi +53183 -118054
- metadata +5 -377
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -63
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
- data/lib/stripe/params/account_notice_list_params.rb +0 -25
- data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
- data/lib/stripe/params/account_notice_update_params.rb +0 -36
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
- data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
- data/lib/stripe/params/external_account_create_params.rb +0 -134
- data/lib/stripe/params/external_account_delete_params.rb +0 -6
- data/lib/stripe/params/external_account_list_params.rb +0 -25
- data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
- data/lib/stripe/params/external_account_update_params.rb +0 -91
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
- data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
- data/lib/stripe/params/fx_quote_create_params.rb +0 -73
- data/lib/stripe/params/fx_quote_list_params.rb +0 -22
- data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
- data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
- data/lib/stripe/params/mandate_list_params.rb +0 -39
- data/lib/stripe/params/margin_create_params.rb +0 -25
- data/lib/stripe/params/margin_list_params.rb +0 -25
- data/lib/stripe/params/margin_retrieve_params.rb +0 -13
- data/lib/stripe/params/margin_update_params.rb +0 -22
- data/lib/stripe/params/order_create_params.rb +0 -2083
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_retrieve_params.rb +0 -13
- data/lib/stripe/params/order_submit_params.rb +0 -16
- data/lib/stripe/params/order_update_params.rb +0 -2087
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +0 -63
- data/lib/stripe/params/quote_line_list_params.rb +0 -22
- data/lib/stripe/params/quote_list_lines_params.rb +0 -22
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
- data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
- data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
- data/lib/stripe/params/quote_reestimate_params.rb +0 -13
- data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/release_list_params.rb +0 -41
- data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -67
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
- data/lib/stripe/params/tax/form_list_params.rb +0 -51
- data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
- data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
- data/lib/stripe/params/tax/location_create_params.rb +0 -54
- data/lib/stripe/params/tax/location_list_params.rb +0 -27
- data/lib/stripe/params/tax/location_retrieve_params.rb +0 -15
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
- data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -58
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -58
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -37
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
- data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -28
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -34
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +0 -23
- data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +0 -50
- data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -102
- data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +0 -52
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -67
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +0 -92
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +0 -87
- data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -77
- data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +0 -48
- data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +0 -31
- data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +0 -44
- data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +0 -17
- data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +0 -43
- data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/transaction_list_params.rb +0 -47
- data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
- data/lib/stripe/resources/account_notice.rb +0 -94
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
- data/lib/stripe/resources/capital/financing_offer.rb +0 -142
- data/lib/stripe/resources/capital/financing_summary.rb +0 -82
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
- data/lib/stripe/resources/financial_connections/authorization.rb +0 -82
- data/lib/stripe/resources/financial_connections/institution.rb +0 -127
- data/lib/stripe/resources/fx_quote.rb +0 -147
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
- data/lib/stripe/resources/issuing/settlement.rb +0 -61
- data/lib/stripe/resources/margin.rb +0 -64
- data/lib/stripe/resources/order.rb +0 -927
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/product_catalog/trial_offer.rb +0 -103
- data/lib/stripe/resources/quote_line.rb +0 -525
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1181
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -734
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -1766
- data/lib/stripe/resources/shared_payment/issued_token.rb +0 -291
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/tax/location.rb +0 -72
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
- data/lib/stripe/resources/v2/billing/profile.rb +0 -47
- data/lib/stripe/resources/v2/core/batch_job.rb +0 -492
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -136
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -105
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
- data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
- data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -29
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -31
- data/lib/stripe/resources/v2/iam/activity_log.rb +0 -187
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -160
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -181
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -219
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -145
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -83
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -230
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -135
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
- data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
- data/lib/stripe/services/billing/analytics_service.rb +0 -15
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -68
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/fx_quote_service.rb +0 -27
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_service.rb +0 -53
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +0 -19
- data/lib/stripe/services/product_catalog_service.rb +0 -13
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -19
- data/lib/stripe/services/reserve/release_service.rb +0 -30
- data/lib/stripe/services/reserve_service.rb +0 -15
- data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
- data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
- data/lib/stripe/services/shared_payment_service.rb +0 -14
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/tax/location_service.rb +0 -45
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
- data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
- data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
- data/lib/stripe/services/v2/datum_service.rb +0 -15
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
- data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
- data/lib/stripe/services/v2/extend_service.rb +0 -16
- data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -21
- data/lib/stripe/services/v2/iam_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -46
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -45
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -34
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -62
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -75
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -60
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -66
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -23
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -32
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
- data/lib/stripe/services/v2/network_service.rb +0 -15
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
- data/lib/stripe/stripe_event_notification_handler.rb +0 -581
|
@@ -27,38 +27,6 @@ module Stripe
|
|
|
27
27
|
@field_remappings = {}
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
|
-
|
|
31
|
-
class CurrentTrial < ::Stripe::StripeObject
|
|
32
|
-
# Attribute for field end_date
|
|
33
|
-
attr_reader :end_date
|
|
34
|
-
# Attribute for field start_date
|
|
35
|
-
attr_reader :start_date
|
|
36
|
-
# Attribute for field trial_offer
|
|
37
|
-
attr_reader :trial_offer
|
|
38
|
-
|
|
39
|
-
def self.inner_class_types
|
|
40
|
-
@inner_class_types = {}
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
def self.field_remappings
|
|
44
|
-
@field_remappings = {}
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
class Trial < ::Stripe::StripeObject
|
|
49
|
-
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
|
50
|
-
attr_reader :converts_to
|
|
51
|
-
# Determines the type of trial for this item.
|
|
52
|
-
attr_reader :type
|
|
53
|
-
|
|
54
|
-
def self.inner_class_types
|
|
55
|
-
@inner_class_types = {}
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
def self.field_remappings
|
|
59
|
-
@field_remappings = {}
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
30
|
# The time period the subscription item has been billed for.
|
|
63
31
|
attr_reader :billed_until
|
|
64
32
|
# Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
|
|
@@ -69,8 +37,6 @@ module Stripe
|
|
|
69
37
|
attr_reader :current_period_end
|
|
70
38
|
# The start time of this subscription item's current billing period.
|
|
71
39
|
attr_reader :current_period_start
|
|
72
|
-
# The current trial that is applied to this subscription item.
|
|
73
|
-
attr_reader :current_trial
|
|
74
40
|
# Always true for a deleted object
|
|
75
41
|
attr_reader :deleted
|
|
76
42
|
# The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
|
|
@@ -103,8 +69,6 @@ module Stripe
|
|
|
103
69
|
attr_reader :subscription
|
|
104
70
|
# The tax rates which apply to this `subscription_item`. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
|
|
105
71
|
attr_reader :tax_rates
|
|
106
|
-
# Options that configure the trial on the subscription item.
|
|
107
|
-
attr_reader :trial
|
|
108
72
|
|
|
109
73
|
# Adds a new item to an existing subscription. No existing items will be changed or replaced.
|
|
110
74
|
def self.create(params = {}, opts = {})
|
|
@@ -157,11 +121,7 @@ module Stripe
|
|
|
157
121
|
end
|
|
158
122
|
|
|
159
123
|
def self.inner_class_types
|
|
160
|
-
@inner_class_types = {
|
|
161
|
-
billing_thresholds: BillingThresholds,
|
|
162
|
-
current_trial: CurrentTrial,
|
|
163
|
-
trial: Trial,
|
|
164
|
-
}
|
|
124
|
+
@inner_class_types = { billing_thresholds: BillingThresholds }
|
|
165
125
|
end
|
|
166
126
|
|
|
167
127
|
def self.field_remappings
|
|
@@ -186,65 +186,18 @@ module Stripe
|
|
|
186
186
|
end
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
class LastPriceMigrationError < ::Stripe::StripeObject
|
|
190
|
-
class FailedTransition < ::Stripe::StripeObject
|
|
191
|
-
# The original price to be migrated.
|
|
192
|
-
attr_reader :source_price
|
|
193
|
-
# The intended resulting price of the migration.
|
|
194
|
-
attr_reader :target_price
|
|
195
|
-
|
|
196
|
-
def self.inner_class_types
|
|
197
|
-
@inner_class_types = {}
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
def self.field_remappings
|
|
201
|
-
@field_remappings = {}
|
|
202
|
-
end
|
|
203
|
-
end
|
|
204
|
-
# The time at which the price migration encountered an error.
|
|
205
|
-
attr_reader :errored_at
|
|
206
|
-
# The involved price pairs in each failed transition.
|
|
207
|
-
attr_reader :failed_transitions
|
|
208
|
-
# The type of error encountered by the price migration.
|
|
209
|
-
attr_reader :type
|
|
210
|
-
|
|
211
|
-
def self.inner_class_types
|
|
212
|
-
@inner_class_types = { failed_transitions: FailedTransition }
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
def self.field_remappings
|
|
216
|
-
@field_remappings = {}
|
|
217
|
-
end
|
|
218
|
-
end
|
|
219
|
-
|
|
220
189
|
class Phase < ::Stripe::StripeObject
|
|
221
190
|
class AddInvoiceItem < ::Stripe::StripeObject
|
|
222
191
|
class Discount < ::Stripe::StripeObject
|
|
223
|
-
class DiscountEnd < ::Stripe::StripeObject
|
|
224
|
-
# The discount end timestamp.
|
|
225
|
-
attr_reader :timestamp
|
|
226
|
-
# The discount end type.
|
|
227
|
-
attr_reader :type
|
|
228
|
-
|
|
229
|
-
def self.inner_class_types
|
|
230
|
-
@inner_class_types = {}
|
|
231
|
-
end
|
|
232
|
-
|
|
233
|
-
def self.field_remappings
|
|
234
|
-
@field_remappings = {}
|
|
235
|
-
end
|
|
236
|
-
end
|
|
237
192
|
# ID of the coupon to create a new discount for.
|
|
238
193
|
attr_reader :coupon
|
|
239
194
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
240
195
|
attr_reader :discount
|
|
241
|
-
# Details to determine how long the discount should be applied for.
|
|
242
|
-
attr_reader :discount_end
|
|
243
196
|
# ID of the promotion code to create a new discount for.
|
|
244
197
|
attr_reader :promotion_code
|
|
245
198
|
|
|
246
199
|
def self.inner_class_types
|
|
247
|
-
@inner_class_types = {
|
|
200
|
+
@inner_class_types = {}
|
|
248
201
|
end
|
|
249
202
|
|
|
250
203
|
def self.field_remappings
|
|
@@ -295,6 +248,8 @@ module Stripe
|
|
|
295
248
|
@field_remappings = {}
|
|
296
249
|
end
|
|
297
250
|
end
|
|
251
|
+
# Controls whether discounts apply to this invoice item. Defaults to true if no value is provided.
|
|
252
|
+
attr_reader :discountable
|
|
298
253
|
# The stackable discounts that will be applied to the item.
|
|
299
254
|
attr_reader :discounts
|
|
300
255
|
# 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.
|
|
@@ -364,31 +319,15 @@ module Stripe
|
|
|
364
319
|
end
|
|
365
320
|
|
|
366
321
|
class Discount < ::Stripe::StripeObject
|
|
367
|
-
class DiscountEnd < ::Stripe::StripeObject
|
|
368
|
-
# The discount end timestamp.
|
|
369
|
-
attr_reader :timestamp
|
|
370
|
-
# The discount end type.
|
|
371
|
-
attr_reader :type
|
|
372
|
-
|
|
373
|
-
def self.inner_class_types
|
|
374
|
-
@inner_class_types = {}
|
|
375
|
-
end
|
|
376
|
-
|
|
377
|
-
def self.field_remappings
|
|
378
|
-
@field_remappings = {}
|
|
379
|
-
end
|
|
380
|
-
end
|
|
381
322
|
# ID of the coupon to create a new discount for.
|
|
382
323
|
attr_reader :coupon
|
|
383
324
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
384
325
|
attr_reader :discount
|
|
385
|
-
# Details to determine how long the discount should be applied for.
|
|
386
|
-
attr_reader :discount_end
|
|
387
326
|
# ID of the promotion code to create a new discount for.
|
|
388
327
|
attr_reader :promotion_code
|
|
389
328
|
|
|
390
329
|
def self.inner_class_types
|
|
391
|
-
@inner_class_types = {
|
|
330
|
+
@inner_class_types = {}
|
|
392
331
|
end
|
|
393
332
|
|
|
394
333
|
def self.field_remappings
|
|
@@ -442,44 +381,13 @@ module Stripe
|
|
|
442
381
|
end
|
|
443
382
|
|
|
444
383
|
class Discount < ::Stripe::StripeObject
|
|
445
|
-
class DiscountEnd < ::Stripe::StripeObject
|
|
446
|
-
# The discount end timestamp.
|
|
447
|
-
attr_reader :timestamp
|
|
448
|
-
# The discount end type.
|
|
449
|
-
attr_reader :type
|
|
450
|
-
|
|
451
|
-
def self.inner_class_types
|
|
452
|
-
@inner_class_types = {}
|
|
453
|
-
end
|
|
454
|
-
|
|
455
|
-
def self.field_remappings
|
|
456
|
-
@field_remappings = {}
|
|
457
|
-
end
|
|
458
|
-
end
|
|
459
384
|
# ID of the coupon to create a new discount for.
|
|
460
385
|
attr_reader :coupon
|
|
461
386
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
462
387
|
attr_reader :discount
|
|
463
|
-
# Details to determine how long the discount should be applied for.
|
|
464
|
-
attr_reader :discount_end
|
|
465
388
|
# ID of the promotion code to create a new discount for.
|
|
466
389
|
attr_reader :promotion_code
|
|
467
390
|
|
|
468
|
-
def self.inner_class_types
|
|
469
|
-
@inner_class_types = { discount_end: DiscountEnd }
|
|
470
|
-
end
|
|
471
|
-
|
|
472
|
-
def self.field_remappings
|
|
473
|
-
@field_remappings = {}
|
|
474
|
-
end
|
|
475
|
-
end
|
|
476
|
-
|
|
477
|
-
class Trial < ::Stripe::StripeObject
|
|
478
|
-
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
|
479
|
-
attr_reader :converts_to
|
|
480
|
-
# Determines the type of trial for this item.
|
|
481
|
-
attr_reader :type
|
|
482
|
-
|
|
483
391
|
def self.inner_class_types
|
|
484
392
|
@inner_class_types = {}
|
|
485
393
|
end
|
|
@@ -502,30 +410,9 @@ module Stripe
|
|
|
502
410
|
attr_reader :quantity
|
|
503
411
|
# The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
|
|
504
412
|
attr_reader :tax_rates
|
|
505
|
-
# Options that configure the trial on the subscription item.
|
|
506
|
-
attr_reader :trial
|
|
507
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
508
|
-
attr_reader :trial_offer
|
|
509
413
|
|
|
510
414
|
def self.inner_class_types
|
|
511
|
-
@inner_class_types = {
|
|
512
|
-
billing_thresholds: BillingThresholds,
|
|
513
|
-
discounts: Discount,
|
|
514
|
-
trial: Trial,
|
|
515
|
-
}
|
|
516
|
-
end
|
|
517
|
-
|
|
518
|
-
def self.field_remappings
|
|
519
|
-
@field_remappings = {}
|
|
520
|
-
end
|
|
521
|
-
end
|
|
522
|
-
|
|
523
|
-
class PauseCollection < ::Stripe::StripeObject
|
|
524
|
-
# The payment collection behavior for this subscription while paused.
|
|
525
|
-
attr_reader :behavior
|
|
526
|
-
|
|
527
|
-
def self.inner_class_types
|
|
528
|
-
@inner_class_types = {}
|
|
415
|
+
@inner_class_types = { billing_thresholds: BillingThresholds, discounts: Discount }
|
|
529
416
|
end
|
|
530
417
|
|
|
531
418
|
def self.field_remappings
|
|
@@ -547,31 +434,6 @@ module Stripe
|
|
|
547
434
|
@field_remappings = {}
|
|
548
435
|
end
|
|
549
436
|
end
|
|
550
|
-
|
|
551
|
-
class TrialSettings < ::Stripe::StripeObject
|
|
552
|
-
class EndBehavior < ::Stripe::StripeObject
|
|
553
|
-
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
554
|
-
attr_reader :prorate_up_front
|
|
555
|
-
|
|
556
|
-
def self.inner_class_types
|
|
557
|
-
@inner_class_types = {}
|
|
558
|
-
end
|
|
559
|
-
|
|
560
|
-
def self.field_remappings
|
|
561
|
-
@field_remappings = {}
|
|
562
|
-
end
|
|
563
|
-
end
|
|
564
|
-
# Defines how the subscription should behave when a trial ends.
|
|
565
|
-
attr_reader :end_behavior
|
|
566
|
-
|
|
567
|
-
def self.inner_class_types
|
|
568
|
-
@inner_class_types = { end_behavior: EndBehavior }
|
|
569
|
-
end
|
|
570
|
-
|
|
571
|
-
def self.field_remappings
|
|
572
|
-
@field_remappings = {}
|
|
573
|
-
end
|
|
574
|
-
end
|
|
575
437
|
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
|
|
576
438
|
attr_reader :add_invoice_items
|
|
577
439
|
# 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 application owner's Stripe account during this phase of the schedule.
|
|
@@ -604,20 +466,14 @@ module Stripe
|
|
|
604
466
|
attr_reader :metadata
|
|
605
467
|
# The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
|
|
606
468
|
attr_reader :on_behalf_of
|
|
607
|
-
# If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
608
|
-
attr_reader :pause_collection
|
|
609
469
|
# When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
|
|
610
470
|
attr_reader :proration_behavior
|
|
611
471
|
# The start of this phase of the subscription schedule.
|
|
612
472
|
attr_reader :start_date
|
|
613
473
|
# The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
|
|
614
474
|
attr_reader :transfer_data
|
|
615
|
-
# Specify behavior of the trial when crossing schedule phase boundaries
|
|
616
|
-
attr_reader :trial_continuation
|
|
617
475
|
# When the trial ends within the phase.
|
|
618
476
|
attr_reader :trial_end
|
|
619
|
-
# Settings related to any trials on the subscription during this phase.
|
|
620
|
-
attr_reader :trial_settings
|
|
621
477
|
|
|
622
478
|
def self.inner_class_types
|
|
623
479
|
@inner_class_types = {
|
|
@@ -627,9 +483,7 @@ module Stripe
|
|
|
627
483
|
discounts: Discount,
|
|
628
484
|
invoice_settings: InvoiceSettings,
|
|
629
485
|
items: Item,
|
|
630
|
-
pause_collection: PauseCollection,
|
|
631
486
|
transfer_data: TransferData,
|
|
632
|
-
trial_settings: TrialSettings,
|
|
633
487
|
}
|
|
634
488
|
end
|
|
635
489
|
|
|
@@ -637,29 +491,8 @@ module Stripe
|
|
|
637
491
|
@field_remappings = {}
|
|
638
492
|
end
|
|
639
493
|
end
|
|
640
|
-
|
|
641
|
-
class Prebilling < ::Stripe::StripeObject
|
|
642
|
-
# ID of the prebilling invoice.
|
|
643
|
-
attr_reader :invoice
|
|
644
|
-
# The end of the last period for which the invoice pre-bills.
|
|
645
|
-
attr_reader :period_end
|
|
646
|
-
# The start of the first period for which the invoice pre-bills.
|
|
647
|
-
attr_reader :period_start
|
|
648
|
-
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
649
|
-
attr_reader :update_behavior
|
|
650
|
-
|
|
651
|
-
def self.inner_class_types
|
|
652
|
-
@inner_class_types = {}
|
|
653
|
-
end
|
|
654
|
-
|
|
655
|
-
def self.field_remappings
|
|
656
|
-
@field_remappings = {}
|
|
657
|
-
end
|
|
658
|
-
end
|
|
659
494
|
# ID of the Connect Application that created the schedule.
|
|
660
495
|
attr_reader :application
|
|
661
|
-
# Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
|
662
|
-
attr_reader :billing_behavior
|
|
663
496
|
# The billing mode of the subscription.
|
|
664
497
|
attr_reader :billing_mode
|
|
665
498
|
# Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
|
|
@@ -680,8 +513,6 @@ module Stripe
|
|
|
680
513
|
attr_reader :end_behavior
|
|
681
514
|
# Unique identifier for the object.
|
|
682
515
|
attr_reader :id
|
|
683
|
-
# Details of the most recent price migration that failed for the subscription schedule.
|
|
684
|
-
attr_reader :last_price_migration_error
|
|
685
516
|
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
686
517
|
attr_reader :livemode
|
|
687
518
|
# 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.
|
|
@@ -690,8 +521,6 @@ module Stripe
|
|
|
690
521
|
attr_reader :object
|
|
691
522
|
# Configuration for the subscription schedule's phases.
|
|
692
523
|
attr_reader :phases
|
|
693
|
-
# Time period and invoice for a Subscription billed in advance.
|
|
694
|
-
attr_reader :prebilling
|
|
695
524
|
# Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
|
696
525
|
attr_reader :released_at
|
|
697
526
|
# ID of the subscription once managed by the subscription schedule (if it is released).
|
|
@@ -703,26 +532,6 @@ module Stripe
|
|
|
703
532
|
# ID of the test clock this subscription schedule belongs to.
|
|
704
533
|
attr_reader :test_clock
|
|
705
534
|
|
|
706
|
-
# Amends an existing subscription schedule.
|
|
707
|
-
def amend(params = {}, opts = {})
|
|
708
|
-
request_stripe_object(
|
|
709
|
-
method: :post,
|
|
710
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
|
|
711
|
-
params: params,
|
|
712
|
-
opts: opts
|
|
713
|
-
)
|
|
714
|
-
end
|
|
715
|
-
|
|
716
|
-
# Amends an existing subscription schedule.
|
|
717
|
-
def self.amend(schedule, params = {}, opts = {})
|
|
718
|
-
request_stripe_object(
|
|
719
|
-
method: :post,
|
|
720
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
|
|
721
|
-
params: params,
|
|
722
|
-
opts: opts
|
|
723
|
-
)
|
|
724
|
-
end
|
|
725
|
-
|
|
726
535
|
# Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.
|
|
727
536
|
def cancel(params = {}, opts = {})
|
|
728
537
|
request_stripe_object(
|
|
@@ -798,9 +607,7 @@ module Stripe
|
|
|
798
607
|
billing_mode: BillingMode,
|
|
799
608
|
current_phase: CurrentPhase,
|
|
800
609
|
default_settings: DefaultSettings,
|
|
801
|
-
last_price_migration_error: LastPriceMigrationError,
|
|
802
610
|
phases: Phase,
|
|
803
|
-
prebilling: Prebilling,
|
|
804
611
|
}
|
|
805
612
|
end
|
|
806
613
|
|
|
@@ -78,8 +78,6 @@ module Stripe
|
|
|
78
78
|
attr_reader :metadata
|
|
79
79
|
# String representing the object's type. Objects of the same type share the same value.
|
|
80
80
|
attr_reader :object
|
|
81
|
-
# Indicates the line item represents a performance where the venue location might determine the tax, not the customer address. Leave empty if the tax code doesn't require a tax location. If you provide this value for tax codes with an `optional` location requirement, it overrides the customer address.
|
|
82
|
-
attr_reader :performance_location
|
|
83
81
|
# The ID of an existing [Product](https://docs.stripe.com/api/products/object).
|
|
84
82
|
attr_reader :product
|
|
85
83
|
# The number of units of the item being purchased. For reversals, this is the quantity reversed.
|
|
@@ -1746,71 +1746,6 @@ module Stripe
|
|
|
1746
1746
|
end
|
|
1747
1747
|
|
|
1748
1748
|
class Us < ::Stripe::StripeObject
|
|
1749
|
-
class AdmissionsTax < ::Stripe::StripeObject
|
|
1750
|
-
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=admissions_tax#registration-types) representing the local jurisdiction.
|
|
1751
|
-
attr_reader :jurisdiction
|
|
1752
|
-
|
|
1753
|
-
def self.inner_class_types
|
|
1754
|
-
@inner_class_types = {}
|
|
1755
|
-
end
|
|
1756
|
-
|
|
1757
|
-
def self.field_remappings
|
|
1758
|
-
@field_remappings = {}
|
|
1759
|
-
end
|
|
1760
|
-
end
|
|
1761
|
-
|
|
1762
|
-
class AttendanceTax < ::Stripe::StripeObject
|
|
1763
|
-
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=attendance_tax#registration-types) representing the local jurisdiction.
|
|
1764
|
-
attr_reader :jurisdiction
|
|
1765
|
-
|
|
1766
|
-
def self.inner_class_types
|
|
1767
|
-
@inner_class_types = {}
|
|
1768
|
-
end
|
|
1769
|
-
|
|
1770
|
-
def self.field_remappings
|
|
1771
|
-
@field_remappings = {}
|
|
1772
|
-
end
|
|
1773
|
-
end
|
|
1774
|
-
|
|
1775
|
-
class EntertainmentTax < ::Stripe::StripeObject
|
|
1776
|
-
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=entertainment_tax#registration-types) representing the local jurisdiction.
|
|
1777
|
-
attr_reader :jurisdiction
|
|
1778
|
-
|
|
1779
|
-
def self.inner_class_types
|
|
1780
|
-
@inner_class_types = {}
|
|
1781
|
-
end
|
|
1782
|
-
|
|
1783
|
-
def self.field_remappings
|
|
1784
|
-
@field_remappings = {}
|
|
1785
|
-
end
|
|
1786
|
-
end
|
|
1787
|
-
|
|
1788
|
-
class GrossReceiptsTax < ::Stripe::StripeObject
|
|
1789
|
-
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=gross_receipts_tax#registration-types) representing the local jurisdiction.
|
|
1790
|
-
attr_reader :jurisdiction
|
|
1791
|
-
|
|
1792
|
-
def self.inner_class_types
|
|
1793
|
-
@inner_class_types = {}
|
|
1794
|
-
end
|
|
1795
|
-
|
|
1796
|
-
def self.field_remappings
|
|
1797
|
-
@field_remappings = {}
|
|
1798
|
-
end
|
|
1799
|
-
end
|
|
1800
|
-
|
|
1801
|
-
class HospitalityTax < ::Stripe::StripeObject
|
|
1802
|
-
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=hospitality_tax#registration-types) representing the local jurisdiction.
|
|
1803
|
-
attr_reader :jurisdiction
|
|
1804
|
-
|
|
1805
|
-
def self.inner_class_types
|
|
1806
|
-
@inner_class_types = {}
|
|
1807
|
-
end
|
|
1808
|
-
|
|
1809
|
-
def self.field_remappings
|
|
1810
|
-
@field_remappings = {}
|
|
1811
|
-
end
|
|
1812
|
-
end
|
|
1813
|
-
|
|
1814
1749
|
class LocalAmusementTax < ::Stripe::StripeObject
|
|
1815
1750
|
# A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction.
|
|
1816
1751
|
attr_reader :jurisdiction
|
|
@@ -1837,32 +1772,6 @@ module Stripe
|
|
|
1837
1772
|
end
|
|
1838
1773
|
end
|
|
1839
1774
|
|
|
1840
|
-
class LuxuryTax < ::Stripe::StripeObject
|
|
1841
|
-
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=luxury_tax#registration-types) representing the local jurisdiction.
|
|
1842
|
-
attr_reader :jurisdiction
|
|
1843
|
-
|
|
1844
|
-
def self.inner_class_types
|
|
1845
|
-
@inner_class_types = {}
|
|
1846
|
-
end
|
|
1847
|
-
|
|
1848
|
-
def self.field_remappings
|
|
1849
|
-
@field_remappings = {}
|
|
1850
|
-
end
|
|
1851
|
-
end
|
|
1852
|
-
|
|
1853
|
-
class ResortTax < ::Stripe::StripeObject
|
|
1854
|
-
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=resort_tax#registration-types) representing the local jurisdiction.
|
|
1855
|
-
attr_reader :jurisdiction
|
|
1856
|
-
|
|
1857
|
-
def self.inner_class_types
|
|
1858
|
-
@inner_class_types = {}
|
|
1859
|
-
end
|
|
1860
|
-
|
|
1861
|
-
def self.field_remappings
|
|
1862
|
-
@field_remappings = {}
|
|
1863
|
-
end
|
|
1864
|
-
end
|
|
1865
|
-
|
|
1866
1775
|
class StateSalesTax < ::Stripe::StripeObject
|
|
1867
1776
|
class Election < ::Stripe::StripeObject
|
|
1868
1777
|
# A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction.
|
|
@@ -1889,59 +1798,22 @@ module Stripe
|
|
|
1889
1798
|
@field_remappings = {}
|
|
1890
1799
|
end
|
|
1891
1800
|
end
|
|
1892
|
-
|
|
1893
|
-
class TourismTax < ::Stripe::StripeObject
|
|
1894
|
-
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=tourism_tax#registration-types) representing the local jurisdiction.
|
|
1895
|
-
attr_reader :jurisdiction
|
|
1896
|
-
|
|
1897
|
-
def self.inner_class_types
|
|
1898
|
-
@inner_class_types = {}
|
|
1899
|
-
end
|
|
1900
|
-
|
|
1901
|
-
def self.field_remappings
|
|
1902
|
-
@field_remappings = {}
|
|
1903
|
-
end
|
|
1904
|
-
end
|
|
1905
|
-
# Attribute for field admissions_tax
|
|
1906
|
-
attr_reader :admissions_tax
|
|
1907
|
-
# Attribute for field attendance_tax
|
|
1908
|
-
attr_reader :attendance_tax
|
|
1909
|
-
# Attribute for field entertainment_tax
|
|
1910
|
-
attr_reader :entertainment_tax
|
|
1911
|
-
# Attribute for field gross_receipts_tax
|
|
1912
|
-
attr_reader :gross_receipts_tax
|
|
1913
|
-
# Attribute for field hospitality_tax
|
|
1914
|
-
attr_reader :hospitality_tax
|
|
1915
1801
|
# Attribute for field local_amusement_tax
|
|
1916
1802
|
attr_reader :local_amusement_tax
|
|
1917
1803
|
# Attribute for field local_lease_tax
|
|
1918
1804
|
attr_reader :local_lease_tax
|
|
1919
|
-
# Attribute for field luxury_tax
|
|
1920
|
-
attr_reader :luxury_tax
|
|
1921
|
-
# Attribute for field resort_tax
|
|
1922
|
-
attr_reader :resort_tax
|
|
1923
1805
|
# Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1924
1806
|
attr_reader :state
|
|
1925
1807
|
# Attribute for field state_sales_tax
|
|
1926
1808
|
attr_reader :state_sales_tax
|
|
1927
|
-
# Attribute for field tourism_tax
|
|
1928
|
-
attr_reader :tourism_tax
|
|
1929
1809
|
# Type of registration in the US.
|
|
1930
1810
|
attr_reader :type
|
|
1931
1811
|
|
|
1932
1812
|
def self.inner_class_types
|
|
1933
1813
|
@inner_class_types = {
|
|
1934
|
-
admissions_tax: AdmissionsTax,
|
|
1935
|
-
attendance_tax: AttendanceTax,
|
|
1936
|
-
entertainment_tax: EntertainmentTax,
|
|
1937
|
-
gross_receipts_tax: GrossReceiptsTax,
|
|
1938
|
-
hospitality_tax: HospitalityTax,
|
|
1939
1814
|
local_amusement_tax: LocalAmusementTax,
|
|
1940
1815
|
local_lease_tax: LocalLeaseTax,
|
|
1941
|
-
luxury_tax: LuxuryTax,
|
|
1942
|
-
resort_tax: ResortTax,
|
|
1943
1816
|
state_sales_tax: StateSalesTax,
|
|
1944
|
-
tourism_tax: TourismTax,
|
|
1945
1817
|
}
|
|
1946
1818
|
end
|
|
1947
1819
|
|
|
@@ -11,18 +11,6 @@ module Stripe
|
|
|
11
11
|
"tax_code"
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
class Requirements < ::Stripe::StripeObject
|
|
15
|
-
# Describes whether a performance location is required for a successful tax calculation with a tax code.
|
|
16
|
-
attr_reader :performance_location
|
|
17
|
-
|
|
18
|
-
def self.inner_class_types
|
|
19
|
-
@inner_class_types = {}
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
def self.field_remappings
|
|
23
|
-
@field_remappings = {}
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
14
|
# A detailed description of which types of products the tax code represents.
|
|
27
15
|
attr_reader :description
|
|
28
16
|
# Unique identifier for the object.
|
|
@@ -31,8 +19,6 @@ module Stripe
|
|
|
31
19
|
attr_reader :name
|
|
32
20
|
# String representing the object's type. Objects of the same type share the same value.
|
|
33
21
|
attr_reader :object
|
|
34
|
-
# An object that describes more information about the tax location required for this tax code. Some [tax codes](/tax/tax-for-tickets/integration-guide#types-of-products) require a tax location of type `performance` to calculate tax correctly.
|
|
35
|
-
attr_reader :requirements
|
|
36
22
|
|
|
37
23
|
# A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations.
|
|
38
24
|
def self.list(params = {}, opts = {})
|
|
@@ -40,7 +26,7 @@ module Stripe
|
|
|
40
26
|
end
|
|
41
27
|
|
|
42
28
|
def self.inner_class_types
|
|
43
|
-
@inner_class_types = {
|
|
29
|
+
@inner_class_types = {}
|
|
44
30
|
end
|
|
45
31
|
|
|
46
32
|
def self.field_remappings
|