stripe 16.1.0.pre.beta.1 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_requestor.rb +3 -35
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/errors.rb +0 -63
- data/lib/stripe/event_types.rb +0 -236
- data/lib/stripe/object_types.rb +0 -58
- data/lib/stripe/params/account_create_params.rb +1 -300
- data/lib/stripe/params/account_session_create_params.rb +1 -226
- data/lib/stripe/params/account_update_params.rb +0 -262
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -4
- data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +0 -4
- data/lib/stripe/params/billing/credit_grant_create_params.rb +0 -4
- data/lib/stripe/params/billing/credit_grant_list_params.rb +0 -4
- data/lib/stripe/params/billing_portal/session_create_params.rb +0 -4
- data/lib/stripe/params/charge_capture_params.rb +0 -709
- data/lib/stripe/params/charge_update_params.rb +0 -709
- data/lib/stripe/params/checkout/session_create_params.rb +3 -193
- data/lib/stripe/params/checkout/session_list_params.rb +0 -4
- data/lib/stripe/params/checkout/session_update_params.rb +1 -288
- data/lib/stripe/params/confirmation_token_create_params.rb +0 -97
- data/lib/stripe/params/coupon_create_params.rb +1 -17
- data/lib/stripe/params/credit_note_list_params.rb +0 -4
- data/lib/stripe/params/customer_session_create_params.rb +1 -4
- data/lib/stripe/params/dispute_update_params.rb +1 -10
- data/lib/stripe/params/financial_connections/account_list_params.rb +1 -4
- data/lib/stripe/params/financial_connections/session_create_params.rb +2 -34
- data/lib/stripe/params/identity/verification_session_create_params.rb +0 -4
- data/lib/stripe/params/identity/verification_session_list_params.rb +0 -4
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -46
- data/lib/stripe/params/invoice_create_params.rb +2 -112
- data/lib/stripe/params/invoice_create_preview_params.rb +9 -826
- data/lib/stripe/params/invoice_item_create_params.rb +1 -37
- data/lib/stripe/params/invoice_item_list_params.rb +0 -4
- data/lib/stripe/params/invoice_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_list_params.rb +0 -4
- data/lib/stripe/params/invoice_payment_list_params.rb +1 -4
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_update_params.rb +2 -108
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +0 -895
- data/lib/stripe/params/payment_intent_confirm_params.rb +18 -1384
- data/lib/stripe/params/payment_intent_create_params.rb +16 -1390
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -223
- data/lib/stripe/params/payment_intent_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_update_params.rb +4 -1409
- data/lib/stripe/params/payment_method_attach_params.rb +1 -4
- data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -126
- data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -126
- data/lib/stripe/params/payment_method_create_params.rb +0 -97
- data/lib/stripe/params/payment_method_update_params.rb +0 -19
- data/lib/stripe/params/price_update_params.rb +0 -19
- data/lib/stripe/params/promotion_code_create_params.rb +0 -4
- data/lib/stripe/params/promotion_code_list_params.rb +0 -4
- data/lib/stripe/params/quote_create_params.rb +3 -805
- data/lib/stripe/params/quote_list_params.rb +0 -8
- data/lib/stripe/params/quote_update_params.rb +4 -813
- data/lib/stripe/params/setup_intent_confirm_params.rb +3 -225
- data/lib/stripe/params/setup_intent_create_params.rb +3 -231
- data/lib/stripe/params/setup_intent_list_params.rb +0 -4
- data/lib/stripe/params/setup_intent_update_params.rb +3 -231
- data/lib/stripe/params/subscription_create_params.rb +5 -259
- data/lib/stripe/params/subscription_item_create_params.rb +2 -46
- data/lib/stripe/params/subscription_item_update_params.rb +1 -29
- data/lib/stripe/params/subscription_list_params.rb +0 -4
- data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
- data/lib/stripe/params/subscription_schedule_list_params.rb +0 -4
- data/lib/stripe/params/subscription_schedule_update_params.rb +5 -163
- data/lib/stripe/params/subscription_update_params.rb +4 -238
- data/lib/stripe/params/tax_id_create_params.rb +1 -4
- data/lib/stripe/params/tax_id_list_params.rb +1 -4
- 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 -97
- data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/transfer_create_params.rb +0 -4
- data/lib/stripe/params/treasury/financial_account_create_params.rb +1 -8
- data/lib/stripe/params/treasury/financial_account_features_update_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_features_params.rb +1 -4
- data/lib/stripe/params/treasury/financial_account_update_params.rb +1 -8
- data/lib/stripe/params/treasury/outbound_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.rb +0 -169
- data/lib/stripe/request_options.rb +1 -3
- data/lib/stripe/resources/account.rb +1 -166
- data/lib/stripe/resources/account_session.rb +0 -81
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -2
- data/lib/stripe/resources/billing/credit_grant.rb +0 -2
- data/lib/stripe/resources/billing_portal/session.rb +0 -2
- data/lib/stripe/resources/card.rb +0 -2
- data/lib/stripe/resources/cash_balance.rb +0 -2
- data/lib/stripe/resources/charge.rb +1 -234
- data/lib/stripe/resources/checkout/session.rb +4 -154
- data/lib/stripe/resources/confirmation_token.rb +0 -155
- data/lib/stripe/resources/coupon.rb +1 -26
- data/lib/stripe/resources/credit_note.rb +0 -2
- data/lib/stripe/resources/credit_note_line_item.rb +0 -18
- data/lib/stripe/resources/customer.rb +0 -2
- data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
- data/lib/stripe/resources/customer_session.rb +0 -2
- data/lib/stripe/resources/discount.rb +0 -2
- data/lib/stripe/resources/dispute.rb +0 -22
- data/lib/stripe/resources/event.rb +1 -64
- data/lib/stripe/resources/financial_connections/account.rb +0 -27
- data/lib/stripe/resources/financial_connections/session.rb +1 -67
- data/lib/stripe/resources/identity/verification_session.rb +0 -2
- data/lib/stripe/resources/invoice.rb +1 -152
- data/lib/stripe/resources/invoice_item.rb +0 -4
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/invoice_payment.rb +0 -2
- data/lib/stripe/resources/issuing/transaction.rb +0 -2
- data/lib/stripe/resources/line_item.rb +1 -68
- data/lib/stripe/resources/mandate.rb +0 -71
- data/lib/stripe/resources/payment_intent.rb +4 -848
- data/lib/stripe/resources/payment_method.rb +0 -157
- data/lib/stripe/resources/payment_method_configuration.rb +0 -204
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/promotion_code.rb +0 -2
- data/lib/stripe/resources/quote.rb +2 -571
- data/lib/stripe/resources/refund.rb +0 -18
- data/lib/stripe/resources/setup_attempt.rb +0 -63
- data/lib/stripe/resources/setup_intent.rb +1 -132
- data/lib/stripe/resources/source.rb +0 -38
- data/lib/stripe/resources/subscription.rb +0 -232
- data/lib/stripe/resources/subscription_item.rb +1 -20
- data/lib/stripe/resources/subscription_schedule.rb +3 -198
- data/lib/stripe/resources/tax_id.rb +0 -4
- data/lib/stripe/resources/terminal/configuration.rb +0 -16
- data/lib/stripe/resources/terminal/reader.rb +0 -8
- data/lib/stripe/resources/transfer.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_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.rb +0 -116
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- 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 -44
- 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 -11
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal_service.rb +1 -3
- data/lib/stripe/services/v1_services.rb +1 -10
- data/lib/stripe/services/v2/billing_service.rb +1 -5
- data/lib/stripe/services/v2/core_service.rb +1 -4
- data/lib/stripe/services/v2_services.rb +1 -4
- data/lib/stripe/services.rb +0 -61
- data/lib/stripe/stripe_client.rb +1 -1
- data/lib/stripe/stripe_configuration.rb +2 -9
- data/lib/stripe/stripe_object.rb +15 -9
- data/lib/stripe/util.rb +3 -9
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -53
- data/rbi/stripe.rbi +98094 -162674
- metadata +5 -351
- data/lib/stripe/events/v2_billing_bill_setting_updated_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_closed_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_account_link_returned_event.rb +0 -42
- data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_payout_method_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 -44
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +0 -46
- data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_requires_capture_event.rb +0 -44
- data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +0 -44
- data/lib/stripe/params/account_notice_list_params.rb +0 -25
- data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
- data/lib/stripe/params/account_notice_update_params.rb +0 -36
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
- data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
- data/lib/stripe/params/external_account_create_params.rb +0 -134
- data/lib/stripe/params/external_account_delete_params.rb +0 -6
- data/lib/stripe/params/external_account_list_params.rb +0 -25
- data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
- data/lib/stripe/params/external_account_update_params.rb +0 -91
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/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/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_cancel_params.rb +0 -13
- data/lib/stripe/params/order_create_params.rb +0 -1124
- data/lib/stripe/params/order_line_item_list_params.rb +0 -22
- data/lib/stripe/params/order_list_line_items_params.rb +0 -22
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_reopen_params.rb +0 -13
- 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 -1128
- data/lib/stripe/params/payment_attempt_record_list_params.rb +0 -19
- data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +0 -13
- data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +0 -22
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -73
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +0 -19
- data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +0 -19
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +0 -19
- data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +0 -93
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +0 -186
- data/lib/stripe/params/payment_record_report_payment_params.rb +0 -252
- data/lib/stripe/params/payment_record_retrieve_params.rb +0 -13
- 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/quote_line_list_params.rb +0 -22
- data/lib/stripe/params/quote_list_lines_params.rb +0 -22
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
- data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
- data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
- data/lib/stripe/params/quote_reestimate_params.rb +0 -13
- data/lib/stripe/params/subscription_attach_cadence_params.rb +0 -16
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -570
- data/lib/stripe/params/tax/association_find_params.rb +0 -18
- 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/terminal/onboarding_link_create_params.rb +0 -43
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
- 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 -223
- 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 -229
- 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/account_close_params.rb +0 -17
- data/lib/stripe/params/v2/core/account_create_params.rb +0 -2217
- data/lib/stripe/params/v2/core/account_link_create_params.rb +0 -101
- data/lib/stripe/params/v2/core/account_list_params.rb +0 -20
- data/lib/stripe/params/v2/core/account_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/core/account_update_params.rb +0 -2245
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +0 -493
- data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +0 -12
- data/lib/stripe/params/v2/core/accounts/person_list_params.rb +0 -19
- data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +0 -493
- 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 -50
- 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_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_create_params.rb +0 -33
- 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_update_params.rb +0 -22
- 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_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 -98
- 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 -85
- 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 -80
- 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/payments/off_session_payment_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/payments/off_session_payment_capture_params.rb +0 -61
- data/lib/stripe/params/v2/payments/off_session_payment_create_params.rb +0 -237
- data/lib/stripe/params/v2/payments/off_session_payment_list_params.rb +0 -17
- data/lib/stripe/params/v2/payments/off_session_payment_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +0 -23
- data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +0 -10
- data/lib/stripe/resources/account_notice.rb +0 -94
- data/lib/stripe/resources/billing/analytics/meter_usage.rb +0 -33
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -38
- data/lib/stripe/resources/capital/financing_offer.rb +0 -142
- data/lib/stripe/resources/capital/financing_summary.rb +0 -79
- 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 -987
- data/lib/stripe/resources/payment_attempt_record.rb +0 -2102
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +0 -128
- data/lib/stripe/resources/payment_record.rb +0 -2208
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -187
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/quote_line.rb +0 -521
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1150
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -732
- data/lib/stripe/resources/tax/association.rb +0 -86
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/terminal/onboarding_link.rb +0 -71
- 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 -90
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -609
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -274
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -262
- data/lib/stripe/resources/v2/billing/profile.rb +0 -46
- data/lib/stripe/resources/v2/core/account.rb +0 -3851
- data/lib/stripe/resources/v2/core/account_link.rb +0 -123
- data/lib/stripe/resources/v2/core/account_person.rb +0 -477
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -114
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -47
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -28
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -30
- 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 -132
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -148
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -217
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -109
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -81
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -228
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -116
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -242
- 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/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_line_item_service.rb +0 -17
- data/lib/stripe/services/order_service.rb +0 -78
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
- data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +0 -17
- data/lib/stripe/services/payment_record_service.rb +0 -89
- 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/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/tax/association_service.rb +0 -19
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/onboarding_link_service.rb +0 -19
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- 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 -61
- 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/account_link_service.rb +0 -21
- data/lib/stripe/services/v2/core/account_service.rb +0 -76
- data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -67
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -74
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -68
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -59
- 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 -73
- 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 -63
- 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/payment_service.rb +0 -15
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +0 -65
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -36
@@ -186,65 +186,18 @@ module Stripe
|
|
186
186
|
end
|
187
187
|
end
|
188
188
|
|
189
|
-
class LastPriceMigrationError < Stripe::StripeObject
|
190
|
-
class FailedTransition < Stripe::StripeObject
|
191
|
-
# The original price to be migrated.
|
192
|
-
attr_reader :source_price
|
193
|
-
# The intended resulting price of the migration.
|
194
|
-
attr_reader :target_price
|
195
|
-
|
196
|
-
def self.inner_class_types
|
197
|
-
@inner_class_types = {}
|
198
|
-
end
|
199
|
-
|
200
|
-
def self.field_remappings
|
201
|
-
@field_remappings = {}
|
202
|
-
end
|
203
|
-
end
|
204
|
-
# The time at which the price migration encountered an error.
|
205
|
-
attr_reader :errored_at
|
206
|
-
# The involved price pairs in each failed transition.
|
207
|
-
attr_reader :failed_transitions
|
208
|
-
# The type of error encountered by the price migration.
|
209
|
-
attr_reader :type
|
210
|
-
|
211
|
-
def self.inner_class_types
|
212
|
-
@inner_class_types = { failed_transitions: FailedTransition }
|
213
|
-
end
|
214
|
-
|
215
|
-
def self.field_remappings
|
216
|
-
@field_remappings = {}
|
217
|
-
end
|
218
|
-
end
|
219
|
-
|
220
189
|
class Phase < Stripe::StripeObject
|
221
190
|
class AddInvoiceItem < Stripe::StripeObject
|
222
191
|
class Discount < Stripe::StripeObject
|
223
|
-
class DiscountEnd < Stripe::StripeObject
|
224
|
-
# The discount end timestamp.
|
225
|
-
attr_reader :timestamp
|
226
|
-
# The discount end type.
|
227
|
-
attr_reader :type
|
228
|
-
|
229
|
-
def self.inner_class_types
|
230
|
-
@inner_class_types = {}
|
231
|
-
end
|
232
|
-
|
233
|
-
def self.field_remappings
|
234
|
-
@field_remappings = {}
|
235
|
-
end
|
236
|
-
end
|
237
192
|
# ID of the coupon to create a new discount for.
|
238
193
|
attr_reader :coupon
|
239
194
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
240
195
|
attr_reader :discount
|
241
|
-
# Details to determine how long the discount should be applied for.
|
242
|
-
attr_reader :discount_end
|
243
196
|
# ID of the promotion code to create a new discount for.
|
244
197
|
attr_reader :promotion_code
|
245
198
|
|
246
199
|
def self.inner_class_types
|
247
|
-
@inner_class_types = {
|
200
|
+
@inner_class_types = {}
|
248
201
|
end
|
249
202
|
|
250
203
|
def self.field_remappings
|
@@ -364,31 +317,15 @@ module Stripe
|
|
364
317
|
end
|
365
318
|
|
366
319
|
class Discount < Stripe::StripeObject
|
367
|
-
class DiscountEnd < Stripe::StripeObject
|
368
|
-
# The discount end timestamp.
|
369
|
-
attr_reader :timestamp
|
370
|
-
# The discount end type.
|
371
|
-
attr_reader :type
|
372
|
-
|
373
|
-
def self.inner_class_types
|
374
|
-
@inner_class_types = {}
|
375
|
-
end
|
376
|
-
|
377
|
-
def self.field_remappings
|
378
|
-
@field_remappings = {}
|
379
|
-
end
|
380
|
-
end
|
381
320
|
# ID of the coupon to create a new discount for.
|
382
321
|
attr_reader :coupon
|
383
322
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
384
323
|
attr_reader :discount
|
385
|
-
# Details to determine how long the discount should be applied for.
|
386
|
-
attr_reader :discount_end
|
387
324
|
# ID of the promotion code to create a new discount for.
|
388
325
|
attr_reader :promotion_code
|
389
326
|
|
390
327
|
def self.inner_class_types
|
391
|
-
@inner_class_types = {
|
328
|
+
@inner_class_types = {}
|
392
329
|
end
|
393
330
|
|
394
331
|
def self.field_remappings
|
@@ -442,44 +379,13 @@ module Stripe
|
|
442
379
|
end
|
443
380
|
|
444
381
|
class Discount < Stripe::StripeObject
|
445
|
-
class DiscountEnd < Stripe::StripeObject
|
446
|
-
# The discount end timestamp.
|
447
|
-
attr_reader :timestamp
|
448
|
-
# The discount end type.
|
449
|
-
attr_reader :type
|
450
|
-
|
451
|
-
def self.inner_class_types
|
452
|
-
@inner_class_types = {}
|
453
|
-
end
|
454
|
-
|
455
|
-
def self.field_remappings
|
456
|
-
@field_remappings = {}
|
457
|
-
end
|
458
|
-
end
|
459
382
|
# ID of the coupon to create a new discount for.
|
460
383
|
attr_reader :coupon
|
461
384
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
462
385
|
attr_reader :discount
|
463
|
-
# Details to determine how long the discount should be applied for.
|
464
|
-
attr_reader :discount_end
|
465
386
|
# ID of the promotion code to create a new discount for.
|
466
387
|
attr_reader :promotion_code
|
467
388
|
|
468
|
-
def self.inner_class_types
|
469
|
-
@inner_class_types = { discount_end: DiscountEnd }
|
470
|
-
end
|
471
|
-
|
472
|
-
def self.field_remappings
|
473
|
-
@field_remappings = {}
|
474
|
-
end
|
475
|
-
end
|
476
|
-
|
477
|
-
class Trial < Stripe::StripeObject
|
478
|
-
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
479
|
-
attr_reader :converts_to
|
480
|
-
# Determines the type of trial for this item.
|
481
|
-
attr_reader :type
|
482
|
-
|
483
389
|
def self.inner_class_types
|
484
390
|
@inner_class_types = {}
|
485
391
|
end
|
@@ -502,28 +408,9 @@ module Stripe
|
|
502
408
|
attr_reader :quantity
|
503
409
|
# The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
|
504
410
|
attr_reader :tax_rates
|
505
|
-
# Options that configure the trial on the subscription item.
|
506
|
-
attr_reader :trial
|
507
411
|
|
508
412
|
def self.inner_class_types
|
509
|
-
@inner_class_types = {
|
510
|
-
billing_thresholds: BillingThresholds,
|
511
|
-
discounts: Discount,
|
512
|
-
trial: Trial,
|
513
|
-
}
|
514
|
-
end
|
515
|
-
|
516
|
-
def self.field_remappings
|
517
|
-
@field_remappings = {}
|
518
|
-
end
|
519
|
-
end
|
520
|
-
|
521
|
-
class PauseCollection < Stripe::StripeObject
|
522
|
-
# The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
|
523
|
-
attr_reader :behavior
|
524
|
-
|
525
|
-
def self.inner_class_types
|
526
|
-
@inner_class_types = {}
|
413
|
+
@inner_class_types = { billing_thresholds: BillingThresholds, discounts: Discount }
|
527
414
|
end
|
528
415
|
|
529
416
|
def self.field_remappings
|
@@ -545,31 +432,6 @@ module Stripe
|
|
545
432
|
@field_remappings = {}
|
546
433
|
end
|
547
434
|
end
|
548
|
-
|
549
|
-
class TrialSettings < Stripe::StripeObject
|
550
|
-
class EndBehavior < Stripe::StripeObject
|
551
|
-
# Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
552
|
-
attr_reader :prorate_up_front
|
553
|
-
|
554
|
-
def self.inner_class_types
|
555
|
-
@inner_class_types = {}
|
556
|
-
end
|
557
|
-
|
558
|
-
def self.field_remappings
|
559
|
-
@field_remappings = {}
|
560
|
-
end
|
561
|
-
end
|
562
|
-
# Defines how the subscription should behave when a trial ends.
|
563
|
-
attr_reader :end_behavior
|
564
|
-
|
565
|
-
def self.inner_class_types
|
566
|
-
@inner_class_types = { end_behavior: EndBehavior }
|
567
|
-
end
|
568
|
-
|
569
|
-
def self.field_remappings
|
570
|
-
@field_remappings = {}
|
571
|
-
end
|
572
|
-
end
|
573
435
|
# A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
|
574
436
|
attr_reader :add_invoice_items
|
575
437
|
# 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.
|
@@ -602,20 +464,14 @@ module Stripe
|
|
602
464
|
attr_reader :metadata
|
603
465
|
# 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.
|
604
466
|
attr_reader :on_behalf_of
|
605
|
-
# 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://stripe.com/docs/billing/subscriptions/pause-payment).
|
606
|
-
attr_reader :pause_collection
|
607
467
|
# When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
|
608
468
|
attr_reader :proration_behavior
|
609
469
|
# The start of this phase of the subscription schedule.
|
610
470
|
attr_reader :start_date
|
611
471
|
# 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.
|
612
472
|
attr_reader :transfer_data
|
613
|
-
# Specify behavior of the trial when crossing schedule phase boundaries
|
614
|
-
attr_reader :trial_continuation
|
615
473
|
# When the trial ends within the phase.
|
616
474
|
attr_reader :trial_end
|
617
|
-
# Settings related to any trials on the subscription during this phase.
|
618
|
-
attr_reader :trial_settings
|
619
475
|
|
620
476
|
def self.inner_class_types
|
621
477
|
@inner_class_types = {
|
@@ -625,9 +481,7 @@ module Stripe
|
|
625
481
|
discounts: Discount,
|
626
482
|
invoice_settings: InvoiceSettings,
|
627
483
|
items: Item,
|
628
|
-
pause_collection: PauseCollection,
|
629
484
|
transfer_data: TransferData,
|
630
|
-
trial_settings: TrialSettings,
|
631
485
|
}
|
632
486
|
end
|
633
487
|
|
@@ -635,29 +489,8 @@ module Stripe
|
|
635
489
|
@field_remappings = {}
|
636
490
|
end
|
637
491
|
end
|
638
|
-
|
639
|
-
class Prebilling < Stripe::StripeObject
|
640
|
-
# ID of the prebilling invoice.
|
641
|
-
attr_reader :invoice
|
642
|
-
# The end of the last period for which the invoice pre-bills.
|
643
|
-
attr_reader :period_end
|
644
|
-
# The start of the first period for which the invoice pre-bills.
|
645
|
-
attr_reader :period_start
|
646
|
-
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
647
|
-
attr_reader :update_behavior
|
648
|
-
|
649
|
-
def self.inner_class_types
|
650
|
-
@inner_class_types = {}
|
651
|
-
end
|
652
|
-
|
653
|
-
def self.field_remappings
|
654
|
-
@field_remappings = {}
|
655
|
-
end
|
656
|
-
end
|
657
492
|
# ID of the Connect Application that created the schedule.
|
658
493
|
attr_reader :application
|
659
|
-
# 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.
|
660
|
-
attr_reader :billing_behavior
|
661
494
|
# The billing mode of the subscription.
|
662
495
|
attr_reader :billing_mode
|
663
496
|
# Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.
|
@@ -670,16 +503,12 @@ module Stripe
|
|
670
503
|
attr_reader :current_phase
|
671
504
|
# ID of the customer who owns the subscription schedule.
|
672
505
|
attr_reader :customer
|
673
|
-
# ID of the account who owns the subscription schedule.
|
674
|
-
attr_reader :customer_account
|
675
506
|
# Attribute for field default_settings
|
676
507
|
attr_reader :default_settings
|
677
508
|
# Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
678
509
|
attr_reader :end_behavior
|
679
510
|
# Unique identifier for the object.
|
680
511
|
attr_reader :id
|
681
|
-
# Details of the most recent price migration that failed for the subscription schedule.
|
682
|
-
attr_reader :last_price_migration_error
|
683
512
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
684
513
|
attr_reader :livemode
|
685
514
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
@@ -688,8 +517,6 @@ module Stripe
|
|
688
517
|
attr_reader :object
|
689
518
|
# Configuration for the subscription schedule's phases.
|
690
519
|
attr_reader :phases
|
691
|
-
# Time period and invoice for a Subscription billed in advance.
|
692
|
-
attr_reader :prebilling
|
693
520
|
# Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
694
521
|
attr_reader :released_at
|
695
522
|
# ID of the subscription once managed by the subscription schedule (if it is released).
|
@@ -701,26 +528,6 @@ module Stripe
|
|
701
528
|
# ID of the test clock this subscription schedule belongs to.
|
702
529
|
attr_reader :test_clock
|
703
530
|
|
704
|
-
# Amends an existing subscription schedule.
|
705
|
-
def amend(params = {}, opts = {})
|
706
|
-
request_stripe_object(
|
707
|
-
method: :post,
|
708
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
|
709
|
-
params: params,
|
710
|
-
opts: opts
|
711
|
-
)
|
712
|
-
end
|
713
|
-
|
714
|
-
# Amends an existing subscription schedule.
|
715
|
-
def self.amend(schedule, params = {}, opts = {})
|
716
|
-
request_stripe_object(
|
717
|
-
method: :post,
|
718
|
-
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
|
719
|
-
params: params,
|
720
|
-
opts: opts
|
721
|
-
)
|
722
|
-
end
|
723
|
-
|
724
531
|
# 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.
|
725
532
|
def cancel(params = {}, opts = {})
|
726
533
|
request_stripe_object(
|
@@ -796,9 +603,7 @@ module Stripe
|
|
796
603
|
billing_mode: BillingMode,
|
797
604
|
current_phase: CurrentPhase,
|
798
605
|
default_settings: DefaultSettings,
|
799
|
-
last_price_migration_error: LastPriceMigrationError,
|
800
606
|
phases: Phase,
|
801
|
-
prebilling: Prebilling,
|
802
607
|
}
|
803
608
|
end
|
804
609
|
|
@@ -23,8 +23,6 @@ module Stripe
|
|
23
23
|
attr_reader :application
|
24
24
|
# The customer being referenced when `type` is `customer`.
|
25
25
|
attr_reader :customer
|
26
|
-
# The account being referenced when `type` is `customer`.
|
27
|
-
attr_reader :customer_account
|
28
26
|
# Type of owner referenced.
|
29
27
|
attr_reader :type
|
30
28
|
|
@@ -59,8 +57,6 @@ module Stripe
|
|
59
57
|
attr_reader :created
|
60
58
|
# ID of the customer.
|
61
59
|
attr_reader :customer
|
62
|
-
# ID of the account.
|
63
|
-
attr_reader :customer_account
|
64
60
|
# Unique identifier for the object.
|
65
61
|
attr_reader :id
|
66
62
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
@@ -55,19 +55,6 @@ module Stripe
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
class ReaderSecurity < Stripe::StripeObject
|
59
|
-
# Passcode used to access a reader's admin menu.
|
60
|
-
attr_reader :admin_menu_passcode
|
61
|
-
|
62
|
-
def self.inner_class_types
|
63
|
-
@inner_class_types = {}
|
64
|
-
end
|
65
|
-
|
66
|
-
def self.field_remappings
|
67
|
-
@field_remappings = {}
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
58
|
class RebootWindow < Stripe::StripeObject
|
72
59
|
# Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
|
73
60
|
attr_reader :end_hour
|
@@ -632,8 +619,6 @@ module Stripe
|
|
632
619
|
attr_reader :object
|
633
620
|
# Attribute for field offline
|
634
621
|
attr_reader :offline
|
635
|
-
# Attribute for field reader_security
|
636
|
-
attr_reader :reader_security
|
637
622
|
# Attribute for field reboot_window
|
638
623
|
attr_reader :reboot_window
|
639
624
|
# Attribute for field stripe_s700
|
@@ -702,7 +687,6 @@ module Stripe
|
|
702
687
|
bbpos_wisepad3: BbposWisepad3,
|
703
688
|
bbpos_wisepos_e: BbposWiseposE,
|
704
689
|
offline: Offline,
|
705
|
-
reader_security: ReaderSecurity,
|
706
690
|
reboot_window: RebootWindow,
|
707
691
|
stripe_s700: StripeS700,
|
708
692
|
tipping: Tipping,
|
@@ -238,8 +238,6 @@ module Stripe
|
|
238
238
|
@field_remappings = {}
|
239
239
|
end
|
240
240
|
end
|
241
|
-
# Account the payment intent belongs to.
|
242
|
-
attr_reader :account
|
243
241
|
# Represents a per-transaction override of a reader configuration
|
244
242
|
attr_reader :collect_config
|
245
243
|
# Most recent PaymentIntent processed by the reader.
|
@@ -273,8 +271,6 @@ module Stripe
|
|
273
271
|
@field_remappings = {}
|
274
272
|
end
|
275
273
|
end
|
276
|
-
# Account the payment intent belongs to.
|
277
|
-
attr_reader :account
|
278
274
|
# Represents a per-transaction override of a reader configuration
|
279
275
|
attr_reader :confirm_config
|
280
276
|
# Most recent PaymentIntent processed by the reader.
|
@@ -320,8 +316,6 @@ module Stripe
|
|
320
316
|
@field_remappings = {}
|
321
317
|
end
|
322
318
|
end
|
323
|
-
# Account the payment intent belongs to.
|
324
|
-
attr_reader :account
|
325
319
|
# Most recent PaymentIntent processed by the reader.
|
326
320
|
attr_reader :payment_intent
|
327
321
|
# Represents a per-transaction override of a reader configuration
|
@@ -378,8 +372,6 @@ module Stripe
|
|
378
372
|
@field_remappings = {}
|
379
373
|
end
|
380
374
|
end
|
381
|
-
# Account the payment intent belongs to.
|
382
|
-
attr_reader :account
|
383
375
|
# The amount being refunded.
|
384
376
|
attr_reader :amount
|
385
377
|
# Charge that is being refunded.
|
@@ -41,8 +41,6 @@ module Stripe
|
|
41
41
|
attr_reader :destination
|
42
42
|
# If the destination is a Stripe account, this will be the ID of the payment that the destination account received for the transfer.
|
43
43
|
attr_reader :destination_payment
|
44
|
-
# The FX Quote used for the transfer.
|
45
|
-
attr_reader :fx_quote
|
46
44
|
# Unique identifier for the object.
|
47
45
|
attr_reader :id
|
48
46
|
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
@@ -116,8 +116,6 @@ module Stripe
|
|
116
116
|
attr_reader :country
|
117
117
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
118
118
|
attr_reader :created
|
119
|
-
# The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
|
120
|
-
attr_reader :display_name
|
121
119
|
# Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`.
|
122
120
|
# Stripe or the platform can control Features via the requested field.
|
123
121
|
attr_reader :features
|
@@ -120,33 +120,6 @@ module Stripe
|
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
123
|
-
class NetworkDetails < Stripe::StripeObject
|
124
|
-
class Ach < Stripe::StripeObject
|
125
|
-
# ACH Addenda record
|
126
|
-
attr_reader :addenda
|
127
|
-
|
128
|
-
def self.inner_class_types
|
129
|
-
@inner_class_types = {}
|
130
|
-
end
|
131
|
-
|
132
|
-
def self.field_remappings
|
133
|
-
@field_remappings = {}
|
134
|
-
end
|
135
|
-
end
|
136
|
-
# Details about an ACH transaction.
|
137
|
-
attr_reader :ach
|
138
|
-
# The type of flow that originated the OutboundTransfer.
|
139
|
-
attr_reader :type
|
140
|
-
|
141
|
-
def self.inner_class_types
|
142
|
-
@inner_class_types = { ach: Ach }
|
143
|
-
end
|
144
|
-
|
145
|
-
def self.field_remappings
|
146
|
-
@field_remappings = {}
|
147
|
-
end
|
148
|
-
end
|
149
|
-
|
150
123
|
class ReturnedDetails < Stripe::StripeObject
|
151
124
|
# Reason for the return.
|
152
125
|
attr_reader :code
|
@@ -252,8 +225,6 @@ module Stripe
|
|
252
225
|
attr_reader :livemode
|
253
226
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
254
227
|
attr_reader :metadata
|
255
|
-
# Details about the network used for the OutboundTransfer.
|
256
|
-
attr_reader :network_details
|
257
228
|
# String representing the object's type. Objects of the same type share the same value.
|
258
229
|
attr_reader :object
|
259
230
|
# Details about a returned OutboundTransfer. Only set when the status is `returned`.
|
@@ -403,7 +374,6 @@ module Stripe
|
|
403
374
|
def self.inner_class_types
|
404
375
|
@inner_class_types = {
|
405
376
|
destination_payment_method_details: DestinationPaymentMethodDetails,
|
406
|
-
network_details: NetworkDetails,
|
407
377
|
returned_details: ReturnedDetails,
|
408
378
|
status_transitions: StatusTransitions,
|
409
379
|
tracking_details: TrackingDetails,
|
@@ -167,33 +167,6 @@ module Stripe
|
|
167
167
|
end
|
168
168
|
end
|
169
169
|
|
170
|
-
class NetworkDetails < Stripe::StripeObject
|
171
|
-
class Ach < Stripe::StripeObject
|
172
|
-
# ACH Addenda record
|
173
|
-
attr_reader :addenda
|
174
|
-
|
175
|
-
def self.inner_class_types
|
176
|
-
@inner_class_types = {}
|
177
|
-
end
|
178
|
-
|
179
|
-
def self.field_remappings
|
180
|
-
@field_remappings = {}
|
181
|
-
end
|
182
|
-
end
|
183
|
-
# Details about an ACH transaction.
|
184
|
-
attr_reader :ach
|
185
|
-
# The type of flow that originated the ReceivedCredit.
|
186
|
-
attr_reader :type
|
187
|
-
|
188
|
-
def self.inner_class_types
|
189
|
-
@inner_class_types = { ach: Ach }
|
190
|
-
end
|
191
|
-
|
192
|
-
def self.field_remappings
|
193
|
-
@field_remappings = {}
|
194
|
-
end
|
195
|
-
end
|
196
|
-
|
197
170
|
class ReversalDetails < Stripe::StripeObject
|
198
171
|
# Time before which a ReceivedCredit can be reversed.
|
199
172
|
attr_reader :deadline
|
@@ -232,8 +205,6 @@ module Stripe
|
|
232
205
|
attr_reader :livemode
|
233
206
|
# The rails used to send the funds.
|
234
207
|
attr_reader :network
|
235
|
-
# Details specific to the money movement rails.
|
236
|
-
attr_reader :network_details
|
237
208
|
# String representing the object's type. Objects of the same type share the same value.
|
238
209
|
attr_reader :object
|
239
210
|
# Details describing when a ReceivedCredit may be reversed.
|
@@ -278,7 +249,6 @@ module Stripe
|
|
278
249
|
@inner_class_types = {
|
279
250
|
initiating_payment_method_details: InitiatingPaymentMethodDetails,
|
280
251
|
linked_flows: LinkedFlows,
|
281
|
-
network_details: NetworkDetails,
|
282
252
|
reversal_details: ReversalDetails,
|
283
253
|
}
|
284
254
|
end
|
@@ -120,8 +120,6 @@ module Stripe
|
|
120
120
|
attr_reader :issuing_transaction
|
121
121
|
# Set if the ReceivedDebit was created due to a [Payout](https://stripe.com/docs/api#payouts) object.
|
122
122
|
attr_reader :payout
|
123
|
-
# The ReceivedCredit that Capital withheld from
|
124
|
-
attr_reader :received_credit_capital_withholding
|
125
123
|
|
126
124
|
def self.inner_class_types
|
127
125
|
@inner_class_types = {}
|
@@ -132,33 +130,6 @@ module Stripe
|
|
132
130
|
end
|
133
131
|
end
|
134
132
|
|
135
|
-
class NetworkDetails < Stripe::StripeObject
|
136
|
-
class Ach < Stripe::StripeObject
|
137
|
-
# ACH Addenda record
|
138
|
-
attr_reader :addenda
|
139
|
-
|
140
|
-
def self.inner_class_types
|
141
|
-
@inner_class_types = {}
|
142
|
-
end
|
143
|
-
|
144
|
-
def self.field_remappings
|
145
|
-
@field_remappings = {}
|
146
|
-
end
|
147
|
-
end
|
148
|
-
# Details about an ACH transaction.
|
149
|
-
attr_reader :ach
|
150
|
-
# The type of flow that originated the ReceivedDebit.
|
151
|
-
attr_reader :type
|
152
|
-
|
153
|
-
def self.inner_class_types
|
154
|
-
@inner_class_types = { ach: Ach }
|
155
|
-
end
|
156
|
-
|
157
|
-
def self.field_remappings
|
158
|
-
@field_remappings = {}
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
133
|
class ReversalDetails < Stripe::StripeObject
|
163
134
|
# Time before which a ReceivedDebit can be reversed.
|
164
135
|
attr_reader :deadline
|
@@ -197,8 +168,6 @@ module Stripe
|
|
197
168
|
attr_reader :livemode
|
198
169
|
# The network used for the ReceivedDebit.
|
199
170
|
attr_reader :network
|
200
|
-
# Details specific to the money movement rails.
|
201
|
-
attr_reader :network_details
|
202
171
|
# String representing the object's type. Objects of the same type share the same value.
|
203
172
|
attr_reader :object
|
204
173
|
# Details describing when a ReceivedDebit might be reversed.
|
@@ -243,7 +212,6 @@ module Stripe
|
|
243
212
|
@inner_class_types = {
|
244
213
|
initiating_payment_method_details: InitiatingPaymentMethodDetails,
|
245
214
|
linked_flows: LinkedFlows,
|
246
|
-
network_details: NetworkDetails,
|
247
215
|
reversal_details: ReversalDetails,
|
248
216
|
}
|
249
217
|
end
|