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
|
@@ -7,7 +7,6 @@ module Stripe
|
|
|
7
7
|
class Quote < APIResource
|
|
8
8
|
extend Stripe::APIOperations::Create
|
|
9
9
|
extend Stripe::APIOperations::List
|
|
10
|
-
extend Stripe::APIOperations::NestedResource
|
|
11
10
|
include Stripe::APIOperations::Save
|
|
12
11
|
|
|
13
12
|
OBJECT_NAME = "quote"
|
|
@@ -15,9 +14,6 @@ module Stripe
|
|
|
15
14
|
"quote"
|
|
16
15
|
end
|
|
17
16
|
|
|
18
|
-
nested_resource_class_methods :preview_invoice, operations: %i[list]
|
|
19
|
-
nested_resource_class_methods :preview_subscription_schedule, operations: %i[list]
|
|
20
|
-
|
|
21
17
|
class AutomaticTax < ::Stripe::StripeObject
|
|
22
18
|
class Liability < ::Stripe::StripeObject
|
|
23
19
|
# The connected account being referenced when `type` is `account`.
|
|
@@ -52,37 +48,6 @@ module Stripe
|
|
|
52
48
|
end
|
|
53
49
|
|
|
54
50
|
class Computed < ::Stripe::StripeObject
|
|
55
|
-
class LastReestimationDetails < ::Stripe::StripeObject
|
|
56
|
-
class Failed < ::Stripe::StripeObject
|
|
57
|
-
# The failure `code` is more granular than the `reason` provided and may correspond to a Stripe error code. For automation errors, this field is one of: `reverse_api_failure`, `reverse_api_deadline_exceeeded`, or `reverse_api_response_validation_error`, which are Stripe error codes and map to the error `message` field.
|
|
58
|
-
attr_reader :failure_code
|
|
59
|
-
# Information derived from the `failure_code` or a freeform message that explains the error as a human-readable English string. For example, "margin ID is not a valid ID".
|
|
60
|
-
attr_reader :message
|
|
61
|
-
# The reason the reestimation failed.
|
|
62
|
-
attr_reader :reason
|
|
63
|
-
|
|
64
|
-
def self.inner_class_types
|
|
65
|
-
@inner_class_types = {}
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
def self.field_remappings
|
|
69
|
-
@field_remappings = {}
|
|
70
|
-
end
|
|
71
|
-
end
|
|
72
|
-
# When `status` is `failed`, provides details about the quote reestimation failure.
|
|
73
|
-
attr_reader :failed
|
|
74
|
-
# Latest status of the reestimation.
|
|
75
|
-
attr_reader :status
|
|
76
|
-
|
|
77
|
-
def self.inner_class_types
|
|
78
|
-
@inner_class_types = { failed: Failed }
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
def self.field_remappings
|
|
82
|
-
@field_remappings = {}
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
|
|
86
51
|
class Recurring < ::Stripe::StripeObject
|
|
87
52
|
class TotalDetails < ::Stripe::StripeObject
|
|
88
53
|
class Breakdown < ::Stripe::StripeObject
|
|
@@ -262,21 +227,13 @@ module Stripe
|
|
|
262
227
|
@field_remappings = {}
|
|
263
228
|
end
|
|
264
229
|
end
|
|
265
|
-
# Details of the most recent reestimate of the quote's preview schedules and upcoming invoices, including the status of Stripe's calculation.
|
|
266
|
-
attr_reader :last_reestimation_details
|
|
267
230
|
# The definitive totals and line items the customer will be charged on a recurring basis. Takes into account the line items with recurring prices and discounts with `duration=forever` coupons only. Defaults to `null` if no inputted line items with recurring prices.
|
|
268
231
|
attr_reader :recurring
|
|
269
|
-
# The time at which the quote's estimated schedules and upcoming invoices were generated.
|
|
270
|
-
attr_reader :updated_at
|
|
271
232
|
# Attribute for field upfront
|
|
272
233
|
attr_reader :upfront
|
|
273
234
|
|
|
274
235
|
def self.inner_class_types
|
|
275
|
-
@inner_class_types = {
|
|
276
|
-
last_reestimation_details: LastReestimationDetails,
|
|
277
|
-
recurring: Recurring,
|
|
278
|
-
upfront: Upfront,
|
|
279
|
-
}
|
|
236
|
+
@inner_class_types = { recurring: Recurring, upfront: Upfront }
|
|
280
237
|
end
|
|
281
238
|
|
|
282
239
|
def self.field_remappings
|
|
@@ -300,11 +257,11 @@ module Stripe
|
|
|
300
257
|
end
|
|
301
258
|
|
|
302
259
|
class InvoiceSettings < ::Stripe::StripeObject
|
|
303
|
-
class
|
|
304
|
-
# The
|
|
305
|
-
attr_reader :
|
|
306
|
-
#
|
|
307
|
-
attr_reader :
|
|
260
|
+
class CustomField < ::Stripe::StripeObject
|
|
261
|
+
# The name of the custom field.
|
|
262
|
+
attr_reader :name
|
|
263
|
+
# The value of the custom field.
|
|
264
|
+
attr_reader :value
|
|
308
265
|
|
|
309
266
|
def self.inner_class_types
|
|
310
267
|
@inner_class_types = {}
|
|
@@ -314,26 +271,12 @@ module Stripe
|
|
|
314
271
|
@field_remappings = {}
|
|
315
272
|
end
|
|
316
273
|
end
|
|
317
|
-
# Number of days within which a customer must pay invoices generated by this quote. This value will be `null` for quotes where `collection_method=charge_automatically`.
|
|
318
|
-
attr_reader :days_until_due
|
|
319
|
-
# Attribute for field issuer
|
|
320
|
-
attr_reader :issuer
|
|
321
274
|
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
@field_remappings = {}
|
|
328
|
-
end
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
class StatusDetails < ::Stripe::StripeObject
|
|
332
|
-
class Canceled < ::Stripe::StripeObject
|
|
333
|
-
# The reason this quote was marked as canceled.
|
|
334
|
-
attr_reader :reason
|
|
335
|
-
# Time at which the quote was marked as canceled. Measured in seconds since the Unix epoch.
|
|
336
|
-
attr_reader :transitioned_at
|
|
275
|
+
class Issuer < ::Stripe::StripeObject
|
|
276
|
+
# The connected account being referenced when `type` is `account`.
|
|
277
|
+
attr_reader :account
|
|
278
|
+
# Type of the account referenced.
|
|
279
|
+
attr_reader :type
|
|
337
280
|
|
|
338
281
|
def self.inner_class_types
|
|
339
282
|
@inner_class_types = {}
|
|
@@ -343,106 +286,19 @@ module Stripe
|
|
|
343
286
|
@field_remappings = {}
|
|
344
287
|
end
|
|
345
288
|
end
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
@inner_class_types = {}
|
|
357
|
-
end
|
|
358
|
-
|
|
359
|
-
def self.field_remappings
|
|
360
|
-
@field_remappings = {}
|
|
361
|
-
end
|
|
362
|
-
end
|
|
363
|
-
|
|
364
|
-
class SubscriptionChanged < ::Stripe::StripeObject
|
|
365
|
-
# The subscription's state before the quote was marked as stale.
|
|
366
|
-
attr_reader :previous_subscription
|
|
367
|
-
|
|
368
|
-
def self.inner_class_types
|
|
369
|
-
@inner_class_types = {}
|
|
370
|
-
end
|
|
371
|
-
|
|
372
|
-
def self.field_remappings
|
|
373
|
-
@field_remappings = {}
|
|
374
|
-
end
|
|
375
|
-
end
|
|
376
|
-
|
|
377
|
-
class SubscriptionScheduleChanged < ::Stripe::StripeObject
|
|
378
|
-
# The subscription schedule's state before the quote was marked as stale.
|
|
379
|
-
attr_reader :previous_subscription_schedule
|
|
380
|
-
|
|
381
|
-
def self.inner_class_types
|
|
382
|
-
@inner_class_types = {}
|
|
383
|
-
end
|
|
384
|
-
|
|
385
|
-
def self.field_remappings
|
|
386
|
-
@field_remappings = {}
|
|
387
|
-
end
|
|
388
|
-
end
|
|
389
|
-
# The ID of the line that is invalid if the stale reason type is `line_invalid`.
|
|
390
|
-
attr_reader :line_invalid
|
|
391
|
-
# The IDs of the lines that are invalid if the stale reason type is `lines_invalid`.
|
|
392
|
-
attr_reader :lines_invalid
|
|
393
|
-
# The user supplied mark stale reason.
|
|
394
|
-
attr_reader :marked_stale
|
|
395
|
-
# The ID of the subscription that was canceled.
|
|
396
|
-
attr_reader :subscription_canceled
|
|
397
|
-
# Attribute for field subscription_changed
|
|
398
|
-
attr_reader :subscription_changed
|
|
399
|
-
# The ID of the subscription that was expired.
|
|
400
|
-
attr_reader :subscription_expired
|
|
401
|
-
# The ID of the subscription schedule that was canceled.
|
|
402
|
-
attr_reader :subscription_schedule_canceled
|
|
403
|
-
# Attribute for field subscription_schedule_changed
|
|
404
|
-
attr_reader :subscription_schedule_changed
|
|
405
|
-
# The ID of the subscription schedule that was released.
|
|
406
|
-
attr_reader :subscription_schedule_released
|
|
407
|
-
# The reason the quote was marked as stale.
|
|
408
|
-
attr_reader :type
|
|
409
|
-
|
|
410
|
-
def self.inner_class_types
|
|
411
|
-
@inner_class_types = {
|
|
412
|
-
lines_invalid: LinesInvalid,
|
|
413
|
-
subscription_changed: SubscriptionChanged,
|
|
414
|
-
subscription_schedule_changed: SubscriptionScheduleChanged,
|
|
415
|
-
}
|
|
416
|
-
end
|
|
417
|
-
|
|
418
|
-
def self.field_remappings
|
|
419
|
-
@field_remappings = {}
|
|
420
|
-
end
|
|
421
|
-
end
|
|
422
|
-
# Time at which the quote expires. Measured in seconds since the Unix epoch.
|
|
423
|
-
attr_reader :expires_at
|
|
424
|
-
# The most recent reason this quote was marked as stale.
|
|
425
|
-
attr_reader :last_reason
|
|
426
|
-
# Time at which the stale reason was updated. Measured in seconds since the Unix epoch.
|
|
427
|
-
attr_reader :last_updated_at
|
|
428
|
-
# Time at which the quote was marked as stale. Measured in seconds since the Unix epoch.
|
|
429
|
-
attr_reader :transitioned_at
|
|
430
|
-
|
|
431
|
-
def self.inner_class_types
|
|
432
|
-
@inner_class_types = { last_reason: LastReason }
|
|
433
|
-
end
|
|
434
|
-
|
|
435
|
-
def self.field_remappings
|
|
436
|
-
@field_remappings = {}
|
|
437
|
-
end
|
|
438
|
-
end
|
|
439
|
-
# Attribute for field canceled
|
|
440
|
-
attr_reader :canceled
|
|
441
|
-
# Attribute for field stale
|
|
442
|
-
attr_reader :stale
|
|
289
|
+
# A list of up to 4 custom fields to be displayed on the invoice.
|
|
290
|
+
attr_reader :custom_fields
|
|
291
|
+
# Number of days within which a customer must pay invoices generated by this quote. This value will be `null` for quotes where `collection_method=charge_automatically`.
|
|
292
|
+
attr_reader :days_until_due
|
|
293
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
294
|
+
attr_reader :description
|
|
295
|
+
# Footer to be displayed on the invoice.
|
|
296
|
+
attr_reader :footer
|
|
297
|
+
# Attribute for field issuer
|
|
298
|
+
attr_reader :issuer
|
|
443
299
|
|
|
444
300
|
def self.inner_class_types
|
|
445
|
-
@inner_class_types = {
|
|
301
|
+
@inner_class_types = { custom_fields: CustomField, issuer: Issuer }
|
|
446
302
|
end
|
|
447
303
|
|
|
448
304
|
def self.field_remappings
|
|
@@ -468,99 +324,6 @@ module Stripe
|
|
|
468
324
|
end
|
|
469
325
|
|
|
470
326
|
class SubscriptionData < ::Stripe::StripeObject
|
|
471
|
-
class BillOnAcceptance < ::Stripe::StripeObject
|
|
472
|
-
class BillFrom < ::Stripe::StripeObject
|
|
473
|
-
class LineStartsAt < ::Stripe::StripeObject
|
|
474
|
-
# Unique identifier for the object.
|
|
475
|
-
attr_reader :id
|
|
476
|
-
|
|
477
|
-
def self.inner_class_types
|
|
478
|
-
@inner_class_types = {}
|
|
479
|
-
end
|
|
480
|
-
|
|
481
|
-
def self.field_remappings
|
|
482
|
-
@field_remappings = {}
|
|
483
|
-
end
|
|
484
|
-
end
|
|
485
|
-
# The materialized time.
|
|
486
|
-
attr_reader :computed
|
|
487
|
-
# The timestamp the given line starts at.
|
|
488
|
-
attr_reader :line_starts_at
|
|
489
|
-
# A precise Unix timestamp.
|
|
490
|
-
attr_reader :timestamp
|
|
491
|
-
# The type of method to specify the `bill_from` time.
|
|
492
|
-
attr_reader :type
|
|
493
|
-
|
|
494
|
-
def self.inner_class_types
|
|
495
|
-
@inner_class_types = { line_starts_at: LineStartsAt }
|
|
496
|
-
end
|
|
497
|
-
|
|
498
|
-
def self.field_remappings
|
|
499
|
-
@field_remappings = {}
|
|
500
|
-
end
|
|
501
|
-
end
|
|
502
|
-
|
|
503
|
-
class BillUntil < ::Stripe::StripeObject
|
|
504
|
-
class Duration < ::Stripe::StripeObject
|
|
505
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
506
|
-
attr_reader :interval
|
|
507
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
508
|
-
attr_reader :interval_count
|
|
509
|
-
|
|
510
|
-
def self.inner_class_types
|
|
511
|
-
@inner_class_types = {}
|
|
512
|
-
end
|
|
513
|
-
|
|
514
|
-
def self.field_remappings
|
|
515
|
-
@field_remappings = {}
|
|
516
|
-
end
|
|
517
|
-
end
|
|
518
|
-
|
|
519
|
-
class LineEndsAt < ::Stripe::StripeObject
|
|
520
|
-
# Unique identifier for the object.
|
|
521
|
-
attr_reader :id
|
|
522
|
-
|
|
523
|
-
def self.inner_class_types
|
|
524
|
-
@inner_class_types = {}
|
|
525
|
-
end
|
|
526
|
-
|
|
527
|
-
def self.field_remappings
|
|
528
|
-
@field_remappings = {}
|
|
529
|
-
end
|
|
530
|
-
end
|
|
531
|
-
# The materialized time.
|
|
532
|
-
attr_reader :computed
|
|
533
|
-
# Time span for the quote line starting from the `starts_at` date.
|
|
534
|
-
attr_reader :duration
|
|
535
|
-
# The timestamp the given line ends at.
|
|
536
|
-
attr_reader :line_ends_at
|
|
537
|
-
# A precise Unix timestamp.
|
|
538
|
-
attr_reader :timestamp
|
|
539
|
-
# The type of method to specify the `bill_until` time.
|
|
540
|
-
attr_reader :type
|
|
541
|
-
|
|
542
|
-
def self.inner_class_types
|
|
543
|
-
@inner_class_types = { duration: Duration, line_ends_at: LineEndsAt }
|
|
544
|
-
end
|
|
545
|
-
|
|
546
|
-
def self.field_remappings
|
|
547
|
-
@field_remappings = {}
|
|
548
|
-
end
|
|
549
|
-
end
|
|
550
|
-
# The start of the period to bill from when the Quote is accepted.
|
|
551
|
-
attr_reader :bill_from
|
|
552
|
-
# The end of the period to bill until when the Quote is accepted.
|
|
553
|
-
attr_reader :bill_until
|
|
554
|
-
|
|
555
|
-
def self.inner_class_types
|
|
556
|
-
@inner_class_types = { bill_from: BillFrom, bill_until: BillUntil }
|
|
557
|
-
end
|
|
558
|
-
|
|
559
|
-
def self.field_remappings
|
|
560
|
-
@field_remappings = {}
|
|
561
|
-
end
|
|
562
|
-
end
|
|
563
|
-
|
|
564
327
|
class BillingMode < ::Stripe::StripeObject
|
|
565
328
|
class Flexible < ::Stripe::StripeObject
|
|
566
329
|
# Controls how invoices and invoice items display proration amounts and discount amounts.
|
|
@@ -587,215 +350,19 @@ module Stripe
|
|
|
587
350
|
@field_remappings = {}
|
|
588
351
|
end
|
|
589
352
|
end
|
|
590
|
-
|
|
591
|
-
class Prebilling < ::Stripe::StripeObject
|
|
592
|
-
# Attribute for field iterations
|
|
593
|
-
attr_reader :iterations
|
|
594
|
-
|
|
595
|
-
def self.inner_class_types
|
|
596
|
-
@inner_class_types = {}
|
|
597
|
-
end
|
|
598
|
-
|
|
599
|
-
def self.field_remappings
|
|
600
|
-
@field_remappings = {}
|
|
601
|
-
end
|
|
602
|
-
end
|
|
603
|
-
# Describes the period to bill for upon accepting the quote.
|
|
604
|
-
attr_reader :bill_on_acceptance
|
|
605
|
-
# 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.
|
|
606
|
-
attr_reader :billing_behavior
|
|
607
|
-
# Whether the subscription will always start a new billing period when the quote is accepted.
|
|
608
|
-
attr_reader :billing_cycle_anchor
|
|
609
353
|
# The billing mode of the quote.
|
|
610
354
|
attr_reader :billing_mode
|
|
611
355
|
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
612
356
|
attr_reader :description
|
|
613
357
|
# When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. This date is ignored if it is in the past when the quote is accepted. Measured in seconds since the Unix epoch.
|
|
614
358
|
attr_reader :effective_date
|
|
615
|
-
# Behavior of the subscription schedule and underlying subscription when it ends.
|
|
616
|
-
attr_reader :end_behavior
|
|
617
|
-
# The id of the subscription that will be updated when the quote is accepted.
|
|
618
|
-
attr_reader :from_subscription
|
|
619
359
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
|
|
620
360
|
attr_reader :metadata
|
|
621
|
-
# If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
|
|
622
|
-
attr_reader :prebilling
|
|
623
|
-
# Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations) when the quote is accepted.
|
|
624
|
-
attr_reader :proration_behavior
|
|
625
361
|
# Integer representing the number of trial period days before the customer is charged for the first time.
|
|
626
362
|
attr_reader :trial_period_days
|
|
627
363
|
|
|
628
364
|
def self.inner_class_types
|
|
629
|
-
@inner_class_types = {
|
|
630
|
-
bill_on_acceptance: BillOnAcceptance,
|
|
631
|
-
billing_mode: BillingMode,
|
|
632
|
-
prebilling: Prebilling,
|
|
633
|
-
}
|
|
634
|
-
end
|
|
635
|
-
|
|
636
|
-
def self.field_remappings
|
|
637
|
-
@field_remappings = {}
|
|
638
|
-
end
|
|
639
|
-
end
|
|
640
|
-
|
|
641
|
-
class SubscriptionDataOverride < ::Stripe::StripeObject
|
|
642
|
-
class AppliesTo < ::Stripe::StripeObject
|
|
643
|
-
# A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
|
|
644
|
-
attr_reader :new_reference
|
|
645
|
-
# The ID of the schedule the line applies to.
|
|
646
|
-
attr_reader :subscription_schedule
|
|
647
|
-
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
|
648
|
-
attr_reader :type
|
|
649
|
-
|
|
650
|
-
def self.inner_class_types
|
|
651
|
-
@inner_class_types = {}
|
|
652
|
-
end
|
|
653
|
-
|
|
654
|
-
def self.field_remappings
|
|
655
|
-
@field_remappings = {}
|
|
656
|
-
end
|
|
657
|
-
end
|
|
658
|
-
|
|
659
|
-
class BillOnAcceptance < ::Stripe::StripeObject
|
|
660
|
-
class BillFrom < ::Stripe::StripeObject
|
|
661
|
-
class LineStartsAt < ::Stripe::StripeObject
|
|
662
|
-
# Unique identifier for the object.
|
|
663
|
-
attr_reader :id
|
|
664
|
-
|
|
665
|
-
def self.inner_class_types
|
|
666
|
-
@inner_class_types = {}
|
|
667
|
-
end
|
|
668
|
-
|
|
669
|
-
def self.field_remappings
|
|
670
|
-
@field_remappings = {}
|
|
671
|
-
end
|
|
672
|
-
end
|
|
673
|
-
# The materialized time.
|
|
674
|
-
attr_reader :computed
|
|
675
|
-
# The timestamp the given line starts at.
|
|
676
|
-
attr_reader :line_starts_at
|
|
677
|
-
# A precise Unix timestamp.
|
|
678
|
-
attr_reader :timestamp
|
|
679
|
-
# The type of method to specify the `bill_from` time.
|
|
680
|
-
attr_reader :type
|
|
681
|
-
|
|
682
|
-
def self.inner_class_types
|
|
683
|
-
@inner_class_types = { line_starts_at: LineStartsAt }
|
|
684
|
-
end
|
|
685
|
-
|
|
686
|
-
def self.field_remappings
|
|
687
|
-
@field_remappings = {}
|
|
688
|
-
end
|
|
689
|
-
end
|
|
690
|
-
|
|
691
|
-
class BillUntil < ::Stripe::StripeObject
|
|
692
|
-
class Duration < ::Stripe::StripeObject
|
|
693
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
694
|
-
attr_reader :interval
|
|
695
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
696
|
-
attr_reader :interval_count
|
|
697
|
-
|
|
698
|
-
def self.inner_class_types
|
|
699
|
-
@inner_class_types = {}
|
|
700
|
-
end
|
|
701
|
-
|
|
702
|
-
def self.field_remappings
|
|
703
|
-
@field_remappings = {}
|
|
704
|
-
end
|
|
705
|
-
end
|
|
706
|
-
|
|
707
|
-
class LineEndsAt < ::Stripe::StripeObject
|
|
708
|
-
# Unique identifier for the object.
|
|
709
|
-
attr_reader :id
|
|
710
|
-
|
|
711
|
-
def self.inner_class_types
|
|
712
|
-
@inner_class_types = {}
|
|
713
|
-
end
|
|
714
|
-
|
|
715
|
-
def self.field_remappings
|
|
716
|
-
@field_remappings = {}
|
|
717
|
-
end
|
|
718
|
-
end
|
|
719
|
-
# The materialized time.
|
|
720
|
-
attr_reader :computed
|
|
721
|
-
# Time span for the quote line starting from the `starts_at` date.
|
|
722
|
-
attr_reader :duration
|
|
723
|
-
# The timestamp the given line ends at.
|
|
724
|
-
attr_reader :line_ends_at
|
|
725
|
-
# A precise Unix timestamp.
|
|
726
|
-
attr_reader :timestamp
|
|
727
|
-
# The type of method to specify the `bill_until` time.
|
|
728
|
-
attr_reader :type
|
|
729
|
-
|
|
730
|
-
def self.inner_class_types
|
|
731
|
-
@inner_class_types = { duration: Duration, line_ends_at: LineEndsAt }
|
|
732
|
-
end
|
|
733
|
-
|
|
734
|
-
def self.field_remappings
|
|
735
|
-
@field_remappings = {}
|
|
736
|
-
end
|
|
737
|
-
end
|
|
738
|
-
# The start of the period to bill from when the Quote is accepted.
|
|
739
|
-
attr_reader :bill_from
|
|
740
|
-
# The end of the period to bill until when the Quote is accepted.
|
|
741
|
-
attr_reader :bill_until
|
|
742
|
-
|
|
743
|
-
def self.inner_class_types
|
|
744
|
-
@inner_class_types = { bill_from: BillFrom, bill_until: BillUntil }
|
|
745
|
-
end
|
|
746
|
-
|
|
747
|
-
def self.field_remappings
|
|
748
|
-
@field_remappings = {}
|
|
749
|
-
end
|
|
750
|
-
end
|
|
751
|
-
# Attribute for field applies_to
|
|
752
|
-
attr_reader :applies_to
|
|
753
|
-
# Describes the period to bill for upon accepting the quote.
|
|
754
|
-
attr_reader :bill_on_acceptance
|
|
755
|
-
# 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.
|
|
756
|
-
attr_reader :billing_behavior
|
|
757
|
-
# The customer who received this quote. A customer is required to finalize the quote. Once specified, you can't change it.
|
|
758
|
-
attr_reader :customer
|
|
759
|
-
# The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
|
|
760
|
-
attr_reader :description
|
|
761
|
-
# Behavior of the subscription schedule and underlying subscription when it ends.
|
|
762
|
-
attr_reader :end_behavior
|
|
763
|
-
# Determines how to handle [prorations](https://docs.stripe.com/subscriptions/billing-cycle#prorations) when the quote is accepted.
|
|
764
|
-
attr_reader :proration_behavior
|
|
765
|
-
|
|
766
|
-
def self.inner_class_types
|
|
767
|
-
@inner_class_types = { applies_to: AppliesTo, bill_on_acceptance: BillOnAcceptance }
|
|
768
|
-
end
|
|
769
|
-
|
|
770
|
-
def self.field_remappings
|
|
771
|
-
@field_remappings = {}
|
|
772
|
-
end
|
|
773
|
-
end
|
|
774
|
-
|
|
775
|
-
class SubscriptionSchedule < ::Stripe::StripeObject
|
|
776
|
-
class AppliesTo < ::Stripe::StripeObject
|
|
777
|
-
# A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
|
|
778
|
-
attr_reader :new_reference
|
|
779
|
-
# The ID of the schedule the line applies to.
|
|
780
|
-
attr_reader :subscription_schedule
|
|
781
|
-
# Describes whether the quote line is affecting a new schedule or an existing schedule.
|
|
782
|
-
attr_reader :type
|
|
783
|
-
|
|
784
|
-
def self.inner_class_types
|
|
785
|
-
@inner_class_types = {}
|
|
786
|
-
end
|
|
787
|
-
|
|
788
|
-
def self.field_remappings
|
|
789
|
-
@field_remappings = {}
|
|
790
|
-
end
|
|
791
|
-
end
|
|
792
|
-
# Attribute for field applies_to
|
|
793
|
-
attr_reader :applies_to
|
|
794
|
-
# The subscription schedule that was created or updated from this quote.
|
|
795
|
-
attr_reader :subscription_schedule
|
|
796
|
-
|
|
797
|
-
def self.inner_class_types
|
|
798
|
-
@inner_class_types = { applies_to: AppliesTo }
|
|
365
|
+
@inner_class_types = { billing_mode: BillingMode }
|
|
799
366
|
end
|
|
800
367
|
|
|
801
368
|
def self.field_remappings
|
|
@@ -890,8 +457,6 @@ module Stripe
|
|
|
890
457
|
@field_remappings = {}
|
|
891
458
|
end
|
|
892
459
|
end
|
|
893
|
-
# Allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
|
|
894
|
-
attr_reader :allow_backdated_lines
|
|
895
460
|
# Total before any discounts or taxes are applied.
|
|
896
461
|
attr_reader :amount_subtotal
|
|
897
462
|
# Total after discounts and taxes are applied.
|
|
@@ -938,8 +503,6 @@ module Stripe
|
|
|
938
503
|
attr_reader :invoice_settings
|
|
939
504
|
# A list of items the customer is being quoted for.
|
|
940
505
|
attr_reader :line_items
|
|
941
|
-
# A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
|
|
942
|
-
attr_reader :lines
|
|
943
506
|
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
944
507
|
attr_reader :livemode
|
|
945
508
|
# 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.
|
|
@@ -952,20 +515,14 @@ module Stripe
|
|
|
952
515
|
attr_reader :on_behalf_of
|
|
953
516
|
# The status of the quote.
|
|
954
517
|
attr_reader :status
|
|
955
|
-
# Details on when and why a quote has been marked as stale or canceled.
|
|
956
|
-
attr_reader :status_details
|
|
957
518
|
# Attribute for field status_transitions
|
|
958
519
|
attr_reader :status_transitions
|
|
959
520
|
# The subscription that was created or updated from this quote.
|
|
960
521
|
attr_reader :subscription
|
|
961
522
|
# Attribute for field subscription_data
|
|
962
523
|
attr_reader :subscription_data
|
|
963
|
-
# List representing overrides for `subscription_data` configurations for specific subscription schedules.
|
|
964
|
-
attr_reader :subscription_data_overrides
|
|
965
524
|
# The subscription schedule that was created or updated from this quote.
|
|
966
525
|
attr_reader :subscription_schedule
|
|
967
|
-
# The subscription schedules that were created or updated from this quote.
|
|
968
|
-
attr_reader :subscription_schedules
|
|
969
526
|
# ID of the test clock this quote belongs to.
|
|
970
527
|
attr_reader :test_clock
|
|
971
528
|
# Attribute for field total_details
|
|
@@ -1083,86 +640,6 @@ module Stripe
|
|
|
1083
640
|
)
|
|
1084
641
|
end
|
|
1085
642
|
|
|
1086
|
-
# Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
|
|
1087
|
-
def list_lines(params = {}, opts = {})
|
|
1088
|
-
request_stripe_object(
|
|
1089
|
-
method: :get,
|
|
1090
|
-
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(self["id"]) }),
|
|
1091
|
-
params: params,
|
|
1092
|
-
opts: opts
|
|
1093
|
-
)
|
|
1094
|
-
end
|
|
1095
|
-
|
|
1096
|
-
# Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
|
|
1097
|
-
def self.list_lines(quote, params = {}, opts = {})
|
|
1098
|
-
request_stripe_object(
|
|
1099
|
-
method: :get,
|
|
1100
|
-
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(quote) }),
|
|
1101
|
-
params: params,
|
|
1102
|
-
opts: opts
|
|
1103
|
-
)
|
|
1104
|
-
end
|
|
1105
|
-
|
|
1106
|
-
# Preview the invoice line items that would be generated by accepting the quote.
|
|
1107
|
-
def list_preview_invoice_lines(preview_invoice, params = {}, opts = {})
|
|
1108
|
-
request_stripe_object(
|
|
1109
|
-
method: :get,
|
|
1110
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
|
|
1111
|
-
params: params,
|
|
1112
|
-
opts: opts
|
|
1113
|
-
)
|
|
1114
|
-
end
|
|
1115
|
-
|
|
1116
|
-
# Preview the invoice line items that would be generated by accepting the quote.
|
|
1117
|
-
def self.list_preview_invoice_lines(quote, preview_invoice, params = {}, opts = {})
|
|
1118
|
-
request_stripe_object(
|
|
1119
|
-
method: :get,
|
|
1120
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
|
|
1121
|
-
params: params,
|
|
1122
|
-
opts: opts
|
|
1123
|
-
)
|
|
1124
|
-
end
|
|
1125
|
-
|
|
1126
|
-
# Converts a stale quote to draft.
|
|
1127
|
-
def mark_draft(params = {}, opts = {})
|
|
1128
|
-
request_stripe_object(
|
|
1129
|
-
method: :post,
|
|
1130
|
-
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(self["id"]) }),
|
|
1131
|
-
params: params,
|
|
1132
|
-
opts: opts
|
|
1133
|
-
)
|
|
1134
|
-
end
|
|
1135
|
-
|
|
1136
|
-
# Converts a stale quote to draft.
|
|
1137
|
-
def self.mark_draft(quote, params = {}, opts = {})
|
|
1138
|
-
request_stripe_object(
|
|
1139
|
-
method: :post,
|
|
1140
|
-
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
|
|
1141
|
-
params: params,
|
|
1142
|
-
opts: opts
|
|
1143
|
-
)
|
|
1144
|
-
end
|
|
1145
|
-
|
|
1146
|
-
# Converts a draft or open quote to stale.
|
|
1147
|
-
def mark_stale(params = {}, opts = {})
|
|
1148
|
-
request_stripe_object(
|
|
1149
|
-
method: :post,
|
|
1150
|
-
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(self["id"]) }),
|
|
1151
|
-
params: params,
|
|
1152
|
-
opts: opts
|
|
1153
|
-
)
|
|
1154
|
-
end
|
|
1155
|
-
|
|
1156
|
-
# Converts a draft or open quote to stale.
|
|
1157
|
-
def self.mark_stale(quote, params = {}, opts = {})
|
|
1158
|
-
request_stripe_object(
|
|
1159
|
-
method: :post,
|
|
1160
|
-
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(quote) }),
|
|
1161
|
-
params: params,
|
|
1162
|
-
opts: opts
|
|
1163
|
-
)
|
|
1164
|
-
end
|
|
1165
|
-
|
|
1166
643
|
# Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
|
|
1167
644
|
def pdf(params = {}, opts = {}, &read_body_chunk_block)
|
|
1168
645
|
opts = { api_base: APIRequestor.active_requestor.config.uploads_base }.merge(opts)
|
|
@@ -1189,26 +666,6 @@ module Stripe
|
|
|
1189
666
|
)
|
|
1190
667
|
end
|
|
1191
668
|
|
|
1192
|
-
# Recompute the upcoming invoice estimate for the quote.
|
|
1193
|
-
def reestimate(params = {}, opts = {})
|
|
1194
|
-
request_stripe_object(
|
|
1195
|
-
method: :post,
|
|
1196
|
-
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(self["id"]) }),
|
|
1197
|
-
params: params,
|
|
1198
|
-
opts: opts
|
|
1199
|
-
)
|
|
1200
|
-
end
|
|
1201
|
-
|
|
1202
|
-
# Recompute the upcoming invoice estimate for the quote.
|
|
1203
|
-
def self.reestimate(quote, params = {}, opts = {})
|
|
1204
|
-
request_stripe_object(
|
|
1205
|
-
method: :post,
|
|
1206
|
-
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
|
|
1207
|
-
params: params,
|
|
1208
|
-
opts: opts
|
|
1209
|
-
)
|
|
1210
|
-
end
|
|
1211
|
-
|
|
1212
669
|
# A quote models prices and services for a customer.
|
|
1213
670
|
def self.update(quote, params = {}, opts = {})
|
|
1214
671
|
request_stripe_object(
|
|
@@ -1225,11 +682,8 @@ module Stripe
|
|
|
1225
682
|
computed: Computed,
|
|
1226
683
|
from_quote: FromQuote,
|
|
1227
684
|
invoice_settings: InvoiceSettings,
|
|
1228
|
-
status_details: StatusDetails,
|
|
1229
685
|
status_transitions: StatusTransitions,
|
|
1230
686
|
subscription_data: SubscriptionData,
|
|
1231
|
-
subscription_data_overrides: SubscriptionDataOverride,
|
|
1232
|
-
subscription_schedules: SubscriptionSchedule,
|
|
1233
687
|
total_details: TotalDetails,
|
|
1234
688
|
transfer_data: TransferData,
|
|
1235
689
|
}
|