stripe 19.4.0.pre.beta.1 → 19.4.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 +2 -63
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/error_object.rb +43 -19
- data/lib/stripe/errors.rb +0 -87
- data/lib/stripe/event_types.rb +0 -236
- data/lib/stripe/events/unknown_event_notification.rb +0 -1
- data/lib/stripe/object_types.rb +0 -60
- data/lib/stripe/params/account_create_params.rb +73 -398
- data/lib/stripe/params/account_person_create_params.rb +6 -0
- data/lib/stripe/params/account_person_update_params.rb +6 -0
- data/lib/stripe/params/account_reject_params.rb +4 -1
- data/lib/stripe/params/account_session_create_params.rb +21 -230
- data/lib/stripe/params/{quote_mark_draft_params.rb → account_unreject_params.rb} +1 -1
- data/lib/stripe/params/account_update_params.rb +81 -332
- data/lib/stripe/params/billing/alert_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/charge_capture_params.rb +0 -1646
- data/lib/stripe/params/charge_update_params.rb +0 -1646
- data/lib/stripe/params/checkout/session_create_params.rb +24 -133
- data/lib/stripe/params/checkout/session_update_params.rb +1 -176
- data/lib/stripe/params/confirmation_token_create_params.rb +0 -78
- data/lib/stripe/params/coupon_create_params.rb +1 -17
- data/lib/stripe/params/customer_create_params.rb +1 -1
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/customer_tax_id_create_params.rb +1 -1
- data/lib/stripe/params/dispute_update_params.rb +1 -10
- data/lib/stripe/params/financial_connections/session_create_params.rb +9 -38
- 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 +16 -844
- 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/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/issuing/card_create_params.rb +4 -0
- data/lib/stripe/params/issuing/card_update_params.rb +4 -0
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +1 -1
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -1643
- data/lib/stripe/params/payment_intent_confirm_params.rb +137 -3047
- data/lib/stripe/params/payment_intent_create_params.rb +152 -3062
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
- data/lib/stripe/params/payment_intent_update_params.rb +105 -3049
- data/lib/stripe/params/payment_link_create_params.rb +0 -15
- data/lib/stripe/params/payment_link_update_params.rb +58 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -105
- data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -105
- data/lib/stripe/params/payment_method_create_params.rb +0 -74
- data/lib/stripe/params/{account_notice_list_params.rb → payment_record_list_params.rb} +15 -5
- 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/promotion_code_create_params.rb +1 -1
- data/lib/stripe/params/promotion_code_update_params.rb +1 -1
- data/lib/stripe/params/quote_create_params.rb +31 -810
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +32 -818
- data/lib/stripe/params/setup_intent_confirm_params.rb +7 -108
- data/lib/stripe/params/setup_intent_create_params.rb +7 -108
- data/lib/stripe/params/setup_intent_update_params.rb +7 -108
- data/lib/stripe/params/subscription_create_params.rb +6 -170
- data/lib/stripe/params/subscription_item_create_params.rb +2 -62
- data/lib/stripe/params/subscription_item_update_params.rb +1 -45
- data/lib/stripe/params/subscription_resume_params.rb +0 -4
- data/lib/stripe/params/subscription_schedule_create_params.rb +65 -171
- data/lib/stripe/params/subscription_schedule_list_params.rb +1 -1
- data/lib/stripe/params/subscription_schedule_update_params.rb +66 -172
- data/lib/stripe/params/subscription_update_params.rb +6 -154
- data/lib/stripe/params/tax/calculation_create_params.rb +2 -6
- data/lib/stripe/params/tax/registration_create_params.rb +12 -90
- data/lib/stripe/params/tax_id_create_params.rb +1 -1
- data/lib/stripe/params/terminal/configuration_create_params.rb +0 -13
- data/lib/stripe/params/terminal/configuration_update_params.rb +0 -13
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -78
- data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +1 -1
- data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +1 -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/token_create_params.rb +78 -0
- 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/billing/meter_event_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +2 -2
- data/lib/stripe/params/v2/core/account_create_params.rb +48 -403
- data/lib/stripe/params/v2/core/account_token_create_params.rb +44 -13
- data/lib/stripe/params/v2/core/account_update_params.rb +48 -396
- data/lib/stripe/params.rb +4 -426
- data/lib/stripe/resources/account.rb +87 -265
- data/lib/stripe/resources/account_session.rb +8 -81
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/billing_portal/configuration.rb +1 -1
- data/lib/stripe/resources/capability.rb +2 -2
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +4 -230
- data/lib/stripe/resources/checkout/session.rb +20 -92
- data/lib/stripe/resources/confirmation_token.rb +1 -132
- data/lib/stripe/resources/coupon.rb +1 -26
- data/lib/stripe/resources/credit_note_line_item.rb +0 -18
- data/lib/stripe/resources/customer.rb +0 -16
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/dispute.rb +4 -24
- data/lib/stripe/resources/event.rb +1 -64
- data/lib/stripe/resources/financial_connections/account.rb +1 -45
- data/lib/stripe/resources/financial_connections/authorization.rb +1 -24
- data/lib/stripe/resources/financial_connections/session.rb +25 -91
- data/lib/stripe/resources/invoice.rb +2 -118
- data/lib/stripe/resources/invoice_item.rb +0 -2
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/issuing/authorization.rb +0 -16
- data/lib/stripe/resources/issuing/card.rb +2 -16
- data/lib/stripe/resources/issuing/cardholder.rb +0 -16
- data/lib/stripe/resources/issuing/dispute.rb +1 -16
- data/lib/stripe/resources/issuing/transaction.rb +1 -19
- data/lib/stripe/resources/line_item.rb +0 -42
- data/lib/stripe/resources/mandate.rb +0 -12
- data/lib/stripe/resources/payment_attempt_record.rb +3 -179
- data/lib/stripe/resources/payment_intent.rb +23 -1574
- data/lib/stripe/resources/payment_method.rb +3 -154
- data/lib/stripe/resources/payment_method_configuration.rb +0 -170
- data/lib/stripe/resources/payment_record.rb +10 -179
- data/lib/stripe/resources/person.rb +2 -2
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/product.rb +0 -18
- data/lib/stripe/resources/quote.rb +23 -569
- data/lib/stripe/resources/radar/value_list_item.rb +1 -15
- data/lib/stripe/resources/refund.rb +6 -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 +0 -35
- data/lib/stripe/resources/setup_intent.rb +3 -38
- data/lib/stripe/resources/source.rb +0 -54
- data/lib/stripe/resources/subscription.rb +0 -167
- data/lib/stripe/resources/subscription_item.rb +1 -41
- data/lib/stripe/resources/subscription_schedule.rb +49 -200
- data/lib/stripe/resources/tax/calculation.rb +1 -1
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
- data/lib/stripe/resources/tax/registration.rb +10 -106
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/tax_code.rb +1 -15
- data/lib/stripe/resources/tax_id.rb +1 -1
- data/lib/stripe/resources/terminal/configuration.rb +0 -16
- data/lib/stripe/resources/terminal/reader.rb +0 -8
- data/lib/stripe/resources/token.rb +1 -15
- data/lib/stripe/resources/topup.rb +31 -1
- 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/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +1 -1
- data/lib/stripe/resources/v2/core/account.rb +100 -949
- data/lib/stripe/resources/v2/core/event_notification.rb +0 -1
- data/lib/stripe/resources.rb +0 -425
- data/lib/stripe/services/account_person_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +14 -14
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/coupon_service.rb +0 -14
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/dispute_service.rb +1 -1
- 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 -11
- 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 +0 -37
- data/lib/stripe/services/payment_method_service.rb +1 -1
- data/lib/stripe/services/payment_record_service.rb +11 -0
- 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 -11
- data/lib/stripe/services/subscription_service.rb +0 -56
- 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_service.rb +1 -3
- data/lib/stripe/services/v2_services.rb +1 -8
- data/lib/stripe/services.rb +0 -209
- 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/telemetry_id.rb +65 -0
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +2 -54
- data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -3
- data/rbi/stripe/stripe_client.rbi +0 -13
- data/rbi/stripe.rbi +46727 -112851
- metadata +7 -380
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_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_under_review_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_under_review_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_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_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_pause_params.rb +0 -50
- 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 -53
- 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/iam/activity_log_retrieve_params.rb +0 -10
- 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 -88
- 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 -144
- data/lib/stripe/resources/capital/financing_summary.rb +0 -84
- 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/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 -106
- data/lib/stripe/resources/quote_line.rb +0 -525
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1183
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -736
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -1801
- 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 -486
- 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 -234
- 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 -211
- 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 -232
- 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 -102
- 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/data_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 -32
- 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 -594
|
@@ -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
|
|
@@ -107,6 +107,21 @@ module Stripe
|
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
class InvoiceSettings < ::Stripe::StripeObject
|
|
110
|
+
class CustomField < ::Stripe::StripeObject
|
|
111
|
+
# The name of the custom field.
|
|
112
|
+
attr_reader :name
|
|
113
|
+
# The value of the custom field.
|
|
114
|
+
attr_reader :value
|
|
115
|
+
|
|
116
|
+
def self.inner_class_types
|
|
117
|
+
@inner_class_types = {}
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
def self.field_remappings
|
|
121
|
+
@field_remappings = {}
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
|
|
110
125
|
class Issuer < ::Stripe::StripeObject
|
|
111
126
|
# The connected account being referenced when `type` is `account`.
|
|
112
127
|
attr_reader :account
|
|
@@ -123,13 +138,19 @@ module Stripe
|
|
|
123
138
|
end
|
|
124
139
|
# The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule.
|
|
125
140
|
attr_reader :account_tax_ids
|
|
141
|
+
# A list of up to 4 custom fields to be displayed on the invoice.
|
|
142
|
+
attr_reader :custom_fields
|
|
126
143
|
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
|
|
127
144
|
attr_reader :days_until_due
|
|
145
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
146
|
+
attr_reader :description
|
|
147
|
+
# Footer to be displayed on the invoice.
|
|
148
|
+
attr_reader :footer
|
|
128
149
|
# Attribute for field issuer
|
|
129
150
|
attr_reader :issuer
|
|
130
151
|
|
|
131
152
|
def self.inner_class_types
|
|
132
|
-
@inner_class_types = { issuer: Issuer }
|
|
153
|
+
@inner_class_types = { custom_fields: CustomField, issuer: Issuer }
|
|
133
154
|
end
|
|
134
155
|
|
|
135
156
|
def self.field_remappings
|
|
@@ -186,65 +207,18 @@ module Stripe
|
|
|
186
207
|
end
|
|
187
208
|
end
|
|
188
209
|
|
|
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
210
|
class Phase < ::Stripe::StripeObject
|
|
221
211
|
class AddInvoiceItem < ::Stripe::StripeObject
|
|
222
212
|
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
213
|
# ID of the coupon to create a new discount for.
|
|
238
214
|
attr_reader :coupon
|
|
239
215
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
240
216
|
attr_reader :discount
|
|
241
|
-
# Details to determine how long the discount should be applied for.
|
|
242
|
-
attr_reader :discount_end
|
|
243
217
|
# ID of the promotion code to create a new discount for.
|
|
244
218
|
attr_reader :promotion_code
|
|
245
219
|
|
|
246
220
|
def self.inner_class_types
|
|
247
|
-
@inner_class_types = {
|
|
221
|
+
@inner_class_types = {}
|
|
248
222
|
end
|
|
249
223
|
|
|
250
224
|
def self.field_remappings
|
|
@@ -366,31 +340,15 @@ module Stripe
|
|
|
366
340
|
end
|
|
367
341
|
|
|
368
342
|
class Discount < ::Stripe::StripeObject
|
|
369
|
-
class DiscountEnd < ::Stripe::StripeObject
|
|
370
|
-
# The discount end timestamp.
|
|
371
|
-
attr_reader :timestamp
|
|
372
|
-
# The discount end type.
|
|
373
|
-
attr_reader :type
|
|
374
|
-
|
|
375
|
-
def self.inner_class_types
|
|
376
|
-
@inner_class_types = {}
|
|
377
|
-
end
|
|
378
|
-
|
|
379
|
-
def self.field_remappings
|
|
380
|
-
@field_remappings = {}
|
|
381
|
-
end
|
|
382
|
-
end
|
|
383
343
|
# ID of the coupon to create a new discount for.
|
|
384
344
|
attr_reader :coupon
|
|
385
345
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
386
346
|
attr_reader :discount
|
|
387
|
-
# Details to determine how long the discount should be applied for.
|
|
388
|
-
attr_reader :discount_end
|
|
389
347
|
# ID of the promotion code to create a new discount for.
|
|
390
348
|
attr_reader :promotion_code
|
|
391
349
|
|
|
392
350
|
def self.inner_class_types
|
|
393
|
-
@inner_class_types = {
|
|
351
|
+
@inner_class_types = {}
|
|
394
352
|
end
|
|
395
353
|
|
|
396
354
|
def self.field_remappings
|
|
@@ -399,6 +357,21 @@ module Stripe
|
|
|
399
357
|
end
|
|
400
358
|
|
|
401
359
|
class InvoiceSettings < ::Stripe::StripeObject
|
|
360
|
+
class CustomField < ::Stripe::StripeObject
|
|
361
|
+
# The name of the custom field.
|
|
362
|
+
attr_reader :name
|
|
363
|
+
# The value of the custom field.
|
|
364
|
+
attr_reader :value
|
|
365
|
+
|
|
366
|
+
def self.inner_class_types
|
|
367
|
+
@inner_class_types = {}
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
def self.field_remappings
|
|
371
|
+
@field_remappings = {}
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
|
|
402
375
|
class Issuer < ::Stripe::StripeObject
|
|
403
376
|
# The connected account being referenced when `type` is `account`.
|
|
404
377
|
attr_reader :account
|
|
@@ -415,13 +388,19 @@ module Stripe
|
|
|
415
388
|
end
|
|
416
389
|
# The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
|
|
417
390
|
attr_reader :account_tax_ids
|
|
391
|
+
# A list of up to 4 custom fields to be displayed on the invoice.
|
|
392
|
+
attr_reader :custom_fields
|
|
418
393
|
# Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.
|
|
419
394
|
attr_reader :days_until_due
|
|
395
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
396
|
+
attr_reader :description
|
|
397
|
+
# Footer to be displayed on the invoice.
|
|
398
|
+
attr_reader :footer
|
|
420
399
|
# The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
421
400
|
attr_reader :issuer
|
|
422
401
|
|
|
423
402
|
def self.inner_class_types
|
|
424
|
-
@inner_class_types = { issuer: Issuer }
|
|
403
|
+
@inner_class_types = { custom_fields: CustomField, issuer: Issuer }
|
|
425
404
|
end
|
|
426
405
|
|
|
427
406
|
def self.field_remappings
|
|
@@ -444,44 +423,13 @@ module Stripe
|
|
|
444
423
|
end
|
|
445
424
|
|
|
446
425
|
class Discount < ::Stripe::StripeObject
|
|
447
|
-
class DiscountEnd < ::Stripe::StripeObject
|
|
448
|
-
# The discount end timestamp.
|
|
449
|
-
attr_reader :timestamp
|
|
450
|
-
# The discount end type.
|
|
451
|
-
attr_reader :type
|
|
452
|
-
|
|
453
|
-
def self.inner_class_types
|
|
454
|
-
@inner_class_types = {}
|
|
455
|
-
end
|
|
456
|
-
|
|
457
|
-
def self.field_remappings
|
|
458
|
-
@field_remappings = {}
|
|
459
|
-
end
|
|
460
|
-
end
|
|
461
426
|
# ID of the coupon to create a new discount for.
|
|
462
427
|
attr_reader :coupon
|
|
463
428
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
464
429
|
attr_reader :discount
|
|
465
|
-
# Details to determine how long the discount should be applied for.
|
|
466
|
-
attr_reader :discount_end
|
|
467
430
|
# ID of the promotion code to create a new discount for.
|
|
468
431
|
attr_reader :promotion_code
|
|
469
432
|
|
|
470
|
-
def self.inner_class_types
|
|
471
|
-
@inner_class_types = { discount_end: DiscountEnd }
|
|
472
|
-
end
|
|
473
|
-
|
|
474
|
-
def self.field_remappings
|
|
475
|
-
@field_remappings = {}
|
|
476
|
-
end
|
|
477
|
-
end
|
|
478
|
-
|
|
479
|
-
class Trial < ::Stripe::StripeObject
|
|
480
|
-
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
|
481
|
-
attr_reader :converts_to
|
|
482
|
-
# Determines the type of trial for this item.
|
|
483
|
-
attr_reader :type
|
|
484
|
-
|
|
485
433
|
def self.inner_class_types
|
|
486
434
|
@inner_class_types = {}
|
|
487
435
|
end
|
|
@@ -504,30 +452,9 @@ module Stripe
|
|
|
504
452
|
attr_reader :quantity
|
|
505
453
|
# 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`.
|
|
506
454
|
attr_reader :tax_rates
|
|
507
|
-
# Options that configure the trial on the subscription item.
|
|
508
|
-
attr_reader :trial
|
|
509
|
-
# The ID of the trial offer to apply to the configuration item.
|
|
510
|
-
attr_reader :trial_offer
|
|
511
|
-
|
|
512
|
-
def self.inner_class_types
|
|
513
|
-
@inner_class_types = {
|
|
514
|
-
billing_thresholds: BillingThresholds,
|
|
515
|
-
discounts: Discount,
|
|
516
|
-
trial: Trial,
|
|
517
|
-
}
|
|
518
|
-
end
|
|
519
|
-
|
|
520
|
-
def self.field_remappings
|
|
521
|
-
@field_remappings = {}
|
|
522
|
-
end
|
|
523
|
-
end
|
|
524
|
-
|
|
525
|
-
class PauseCollection < ::Stripe::StripeObject
|
|
526
|
-
# The payment collection behavior for this subscription while paused.
|
|
527
|
-
attr_reader :behavior
|
|
528
455
|
|
|
529
456
|
def self.inner_class_types
|
|
530
|
-
@inner_class_types = {}
|
|
457
|
+
@inner_class_types = { billing_thresholds: BillingThresholds, discounts: Discount }
|
|
531
458
|
end
|
|
532
459
|
|
|
533
460
|
def self.field_remappings
|
|
@@ -549,31 +476,6 @@ module Stripe
|
|
|
549
476
|
@field_remappings = {}
|
|
550
477
|
end
|
|
551
478
|
end
|
|
552
|
-
|
|
553
|
-
class TrialSettings < ::Stripe::StripeObject
|
|
554
|
-
class EndBehavior < ::Stripe::StripeObject
|
|
555
|
-
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
556
|
-
attr_reader :prorate_up_front
|
|
557
|
-
|
|
558
|
-
def self.inner_class_types
|
|
559
|
-
@inner_class_types = {}
|
|
560
|
-
end
|
|
561
|
-
|
|
562
|
-
def self.field_remappings
|
|
563
|
-
@field_remappings = {}
|
|
564
|
-
end
|
|
565
|
-
end
|
|
566
|
-
# Defines how the subscription should behave when a trial ends.
|
|
567
|
-
attr_reader :end_behavior
|
|
568
|
-
|
|
569
|
-
def self.inner_class_types
|
|
570
|
-
@inner_class_types = { end_behavior: EndBehavior }
|
|
571
|
-
end
|
|
572
|
-
|
|
573
|
-
def self.field_remappings
|
|
574
|
-
@field_remappings = {}
|
|
575
|
-
end
|
|
576
|
-
end
|
|
577
479
|
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
|
|
578
480
|
attr_reader :add_invoice_items
|
|
579
481
|
# 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.
|
|
@@ -606,20 +508,16 @@ module Stripe
|
|
|
606
508
|
attr_reader :metadata
|
|
607
509
|
# 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.
|
|
608
510
|
attr_reader :on_behalf_of
|
|
609
|
-
# 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).
|
|
610
|
-
attr_reader :pause_collection
|
|
611
511
|
# When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
|
|
612
512
|
attr_reader :proration_behavior
|
|
613
513
|
# The start of this phase of the subscription schedule.
|
|
614
514
|
attr_reader :start_date
|
|
615
515
|
# 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.
|
|
616
516
|
attr_reader :transfer_data
|
|
617
|
-
#
|
|
618
|
-
attr_reader :
|
|
517
|
+
# If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
518
|
+
attr_reader :trial
|
|
619
519
|
# When the trial ends within the phase.
|
|
620
520
|
attr_reader :trial_end
|
|
621
|
-
# Settings related to any trials on the subscription during this phase.
|
|
622
|
-
attr_reader :trial_settings
|
|
623
521
|
|
|
624
522
|
def self.inner_class_types
|
|
625
523
|
@inner_class_types = {
|
|
@@ -629,9 +527,7 @@ module Stripe
|
|
|
629
527
|
discounts: Discount,
|
|
630
528
|
invoice_settings: InvoiceSettings,
|
|
631
529
|
items: Item,
|
|
632
|
-
pause_collection: PauseCollection,
|
|
633
530
|
transfer_data: TransferData,
|
|
634
|
-
trial_settings: TrialSettings,
|
|
635
531
|
}
|
|
636
532
|
end
|
|
637
533
|
|
|
@@ -639,29 +535,8 @@ module Stripe
|
|
|
639
535
|
@field_remappings = {}
|
|
640
536
|
end
|
|
641
537
|
end
|
|
642
|
-
|
|
643
|
-
class Prebilling < ::Stripe::StripeObject
|
|
644
|
-
# ID of the prebilling invoice.
|
|
645
|
-
attr_reader :invoice
|
|
646
|
-
# The end of the last period for which the invoice pre-bills.
|
|
647
|
-
attr_reader :period_end
|
|
648
|
-
# The start of the first period for which the invoice pre-bills.
|
|
649
|
-
attr_reader :period_start
|
|
650
|
-
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
651
|
-
attr_reader :update_behavior
|
|
652
|
-
|
|
653
|
-
def self.inner_class_types
|
|
654
|
-
@inner_class_types = {}
|
|
655
|
-
end
|
|
656
|
-
|
|
657
|
-
def self.field_remappings
|
|
658
|
-
@field_remappings = {}
|
|
659
|
-
end
|
|
660
|
-
end
|
|
661
538
|
# ID of the Connect Application that created the schedule.
|
|
662
539
|
attr_reader :application
|
|
663
|
-
# 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.
|
|
664
|
-
attr_reader :billing_behavior
|
|
665
540
|
# The billing mode of the subscription.
|
|
666
541
|
attr_reader :billing_mode
|
|
667
542
|
# Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
|
|
@@ -682,8 +557,6 @@ module Stripe
|
|
|
682
557
|
attr_reader :end_behavior
|
|
683
558
|
# Unique identifier for the object.
|
|
684
559
|
attr_reader :id
|
|
685
|
-
# Details of the most recent price migration that failed for the subscription schedule.
|
|
686
|
-
attr_reader :last_price_migration_error
|
|
687
560
|
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
688
561
|
attr_reader :livemode
|
|
689
562
|
# 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.
|
|
@@ -692,8 +565,6 @@ module Stripe
|
|
|
692
565
|
attr_reader :object
|
|
693
566
|
# Configuration for the subscription schedule's phases.
|
|
694
567
|
attr_reader :phases
|
|
695
|
-
# Time period and invoice for a Subscription billed in advance.
|
|
696
|
-
attr_reader :prebilling
|
|
697
568
|
# Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
|
698
569
|
attr_reader :released_at
|
|
699
570
|
# ID of the subscription once managed by the subscription schedule (if it is released).
|
|
@@ -705,26 +576,6 @@ module Stripe
|
|
|
705
576
|
# ID of the test clock this subscription schedule belongs to.
|
|
706
577
|
attr_reader :test_clock
|
|
707
578
|
|
|
708
|
-
# Amends an existing subscription schedule.
|
|
709
|
-
def amend(params = {}, opts = {})
|
|
710
|
-
request_stripe_object(
|
|
711
|
-
method: :post,
|
|
712
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
|
|
713
|
-
params: params,
|
|
714
|
-
opts: opts
|
|
715
|
-
)
|
|
716
|
-
end
|
|
717
|
-
|
|
718
|
-
# Amends an existing subscription schedule.
|
|
719
|
-
def self.amend(schedule, params = {}, opts = {})
|
|
720
|
-
request_stripe_object(
|
|
721
|
-
method: :post,
|
|
722
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
|
|
723
|
-
params: params,
|
|
724
|
-
opts: opts
|
|
725
|
-
)
|
|
726
|
-
end
|
|
727
|
-
|
|
728
579
|
# 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.
|
|
729
580
|
def cancel(params = {}, opts = {})
|
|
730
581
|
request_stripe_object(
|
|
@@ -800,9 +651,7 @@ module Stripe
|
|
|
800
651
|
billing_mode: BillingMode,
|
|
801
652
|
current_phase: CurrentPhase,
|
|
802
653
|
default_settings: DefaultSettings,
|
|
803
|
-
last_price_migration_error: LastPriceMigrationError,
|
|
804
654
|
phases: Phase,
|
|
805
|
-
prebilling: Prebilling,
|
|
806
655
|
}
|
|
807
656
|
end
|
|
808
657
|
|
|
@@ -39,7 +39,7 @@ module Stripe
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
class TaxId < ::Stripe::StripeObject
|
|
42
|
-
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
|
42
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown`
|
|
43
43
|
attr_reader :type
|
|
44
44
|
# The value of the tax ID.
|
|
45
45
|
attr_reader :value
|
|
@@ -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,8 +1772,8 @@ module Stripe
|
|
|
1837
1772
|
end
|
|
1838
1773
|
end
|
|
1839
1774
|
|
|
1840
|
-
class
|
|
1841
|
-
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=
|
|
1775
|
+
class MassTransitParkingTax < ::Stripe::StripeObject
|
|
1776
|
+
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=mass_transit_parking_tax#registration-types) representing the local jurisdiction.
|
|
1842
1777
|
attr_reader :jurisdiction
|
|
1843
1778
|
|
|
1844
1779
|
def self.inner_class_types
|
|
@@ -1850,8 +1785,8 @@ module Stripe
|
|
|
1850
1785
|
end
|
|
1851
1786
|
end
|
|
1852
1787
|
|
|
1853
|
-
class
|
|
1854
|
-
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=
|
|
1788
|
+
class ParkingTax < ::Stripe::StripeObject
|
|
1789
|
+
# A [jurisdiction code](https://docs.stripe.com/tax/registering?type=parking_tax#registration-types) representing the local jurisdiction.
|
|
1855
1790
|
attr_reader :jurisdiction
|
|
1856
1791
|
|
|
1857
1792
|
def self.inner_class_types
|
|
@@ -1889,59 +1824,28 @@ module Stripe
|
|
|
1889
1824
|
@field_remappings = {}
|
|
1890
1825
|
end
|
|
1891
1826
|
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
1827
|
# Attribute for field local_amusement_tax
|
|
1916
1828
|
attr_reader :local_amusement_tax
|
|
1917
1829
|
# Attribute for field local_lease_tax
|
|
1918
1830
|
attr_reader :local_lease_tax
|
|
1919
|
-
# Attribute for field
|
|
1920
|
-
attr_reader :
|
|
1921
|
-
# Attribute for field
|
|
1922
|
-
attr_reader :
|
|
1831
|
+
# Attribute for field mass_transit_parking_tax
|
|
1832
|
+
attr_reader :mass_transit_parking_tax
|
|
1833
|
+
# Attribute for field parking_tax
|
|
1834
|
+
attr_reader :parking_tax
|
|
1923
1835
|
# Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
|
|
1924
1836
|
attr_reader :state
|
|
1925
1837
|
# Attribute for field state_sales_tax
|
|
1926
1838
|
attr_reader :state_sales_tax
|
|
1927
|
-
# Attribute for field tourism_tax
|
|
1928
|
-
attr_reader :tourism_tax
|
|
1929
1839
|
# Type of registration in the US.
|
|
1930
1840
|
attr_reader :type
|
|
1931
1841
|
|
|
1932
1842
|
def self.inner_class_types
|
|
1933
1843
|
@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
1844
|
local_amusement_tax: LocalAmusementTax,
|
|
1940
1845
|
local_lease_tax: LocalLeaseTax,
|
|
1941
|
-
|
|
1942
|
-
|
|
1846
|
+
mass_transit_parking_tax: MassTransitParkingTax,
|
|
1847
|
+
parking_tax: ParkingTax,
|
|
1943
1848
|
state_sales_tax: StateSalesTax,
|
|
1944
|
-
tourism_tax: TourismTax,
|
|
1945
1849
|
}
|
|
1946
1850
|
end
|
|
1947
1851
|
|
|
@@ -37,7 +37,7 @@ module Stripe
|
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
class TaxId < ::Stripe::StripeObject
|
|
40
|
-
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown`
|
|
40
|
+
# The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, `ic_nif`, or `unknown`
|
|
41
41
|
attr_reader :type
|
|
42
42
|
# The value of the tax ID.
|
|
43
43
|
attr_reader :value
|