stripe 19.3.0.pre.beta.1 → 19.3.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 +34 -37
- data/lib/stripe/api_version.rb +2 -1
- data/lib/stripe/errors.rb +0 -87
- data/lib/stripe/event_types.rb +0 -228
- data/lib/stripe/events/unknown_event_notification.rb +0 -1
- data/lib/stripe/object_types.rb +0 -61
- data/lib/stripe/params/account_create_params.rb +2 -375
- data/lib/stripe/params/account_session_create_params.rb +1 -226
- data/lib/stripe/params/account_update_params.rb +1 -337
- data/lib/stripe/params/balance_transaction_list_params.rb +1 -1
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -1
- data/lib/stripe/params/billing/credit_grant_create_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 +50 -128
- data/lib/stripe/params/checkout/session_update_params.rb +1 -176
- data/lib/stripe/params/confirmation_token_create_params.rb +1 -79
- data/lib/stripe/params/coupon_create_params.rb +1 -17
- data/lib/stripe/params/credit_note_create_params.rb +1 -1
- data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_lines_list_params.rb +1 -1
- data/lib/stripe/params/credit_note_preview_params.rb +1 -1
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/dispute_update_params.rb +18 -11
- data/lib/stripe/params/financial_connections/session_create_params.rb +2 -64
- data/lib/stripe/params/invoice_add_lines_params.rb +2 -49
- 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 +10 -791
- 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 +2 -49
- data/lib/stripe/params/invoice_update_lines_params.rb +2 -49
- data/lib/stripe/params/invoice_update_params.rb +2 -70
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -1643
- data/lib/stripe/params/payment_intent_confirm_params.rb +116 -3016
- data/lib/stripe/params/payment_intent_create_params.rb +128 -3028
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
- data/lib/stripe/params/payment_intent_search_params.rb +1 -1
- data/lib/stripe/params/payment_intent_update_params.rb +86 -3017
- data/lib/stripe/params/payment_link_create_params.rb +1 -16
- 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 +1 -75
- data/lib/stripe/params/plan_create_params.rb +0 -15
- data/lib/stripe/params/price_create_params.rb +0 -15
- data/lib/stripe/params/price_update_params.rb +0 -19
- data/lib/stripe/params/product_create_params.rb +0 -16
- data/lib/stripe/params/product_update_params.rb +0 -16
- data/lib/stripe/params/quote_create_params.rb +3 -809
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +4 -817
- data/lib/stripe/params/setup_intent_confirm_params.rb +4 -109
- data/lib/stripe/params/setup_intent_create_params.rb +4 -109
- data/lib/stripe/params/setup_intent_update_params.rb +4 -109
- data/lib/stripe/params/subscription_create_params.rb +34 -171
- 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 +5 -167
- data/lib/stripe/params/subscription_schedule_update_params.rb +5 -167
- data/lib/stripe/params/subscription_update_params.rb +34 -155
- data/lib/stripe/params/tax/calculation_create_params.rb +0 -4
- data/lib/stripe/params/tax/registration_create_params.rb +0 -104
- data/lib/stripe/params/terminal/configuration_create_params.rb +0 -13
- data/lib/stripe/params/terminal/configuration_update_params.rb +0 -13
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +1 -79
- 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/topup_create_params.rb +24 -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/core/account_create_params.rb +18 -282
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -13
- data/lib/stripe/params/v2/core/account_update_params.rb +25 -282
- data/lib/stripe/params.rb +0 -426
- data/lib/stripe/resources/account.rb +1 -259
- data/lib/stripe/resources/account_session.rb +0 -81
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_transaction.rb +3 -3
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/card.rb +0 -2
- data/lib/stripe/resources/charge.rb +7 -211
- data/lib/stripe/resources/checkout/session.rb +53 -75
- data/lib/stripe/resources/confirmation_token.rb +9 -131
- data/lib/stripe/resources/coupon.rb +1 -26
- data/lib/stripe/resources/credit_note.rb +2 -0
- data/lib/stripe/resources/credit_note_line_item.rb +0 -18
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/dispute.rb +32 -22
- data/lib/stripe/resources/event.rb +1 -64
- data/lib/stripe/resources/financial_connections/account.rb +8 -33
- data/lib/stripe/resources/financial_connections/session.rb +1 -125
- data/lib/stripe/resources/invoice.rb +1 -117
- data/lib/stripe/resources/invoice_item.rb +0 -2
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/issuing/transaction.rb +0 -2
- 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 +47 -1568
- data/lib/stripe/resources/payment_method.rb +9 -135
- data/lib/stripe/resources/payment_method_configuration.rb +0 -170
- data/lib/stripe/resources/payment_record.rb +3 -179
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/product.rb +0 -18
- data/lib/stripe/resources/quote.rb +2 -569
- data/lib/stripe/resources/refund.rb +0 -18
- data/lib/stripe/resources/reserve/hold.rb +18 -8
- data/lib/stripe/resources/reserve/release.rb +0 -12
- data/lib/stripe/resources/setup_attempt.rb +16 -35
- data/lib/stripe/resources/setup_intent.rb +1 -22
- data/lib/stripe/resources/source.rb +0 -38
- data/lib/stripe/resources/subscription.rb +23 -169
- data/lib/stripe/resources/subscription_item.rb +1 -41
- data/lib/stripe/resources/subscription_schedule.rb +3 -198
- data/lib/stripe/resources/tax/calculation_line_item.rb +0 -2
- data/lib/stripe/resources/tax/registration.rb +0 -128
- data/lib/stripe/resources/tax_code.rb +1 -15
- data/lib/stripe/resources/terminal/configuration.rb +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_payment.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
- data/lib/stripe/resources/treasury/received_credit.rb +0 -30
- data/lib/stripe/resources/treasury/received_debit.rb +0 -32
- data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +2 -0
- data/lib/stripe/resources/v2/core/account.rb +155 -717
- data/lib/stripe/resources/v2/core/event_notification.rb +0 -1
- data/lib/stripe/resources.rb +0 -417
- data/lib/stripe/services/account_service.rb +0 -15
- data/lib/stripe/services/balance_transaction_service.rb +2 -2
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/coupon_service.rb +0 -14
- data/lib/stripe/services/credit_note_service.rb +2 -0
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -3
- data/lib/stripe/services/invoice_service.rb +0 -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/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 +1 -57
- 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/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -54
- data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -3
- data/rbi/stripe/stripe_client.rbi +0 -13
- data/rbi/stripe.rbi +52694 -118800
- metadata +7 -382
- data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -61
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_transaction_created_event.rb +0 -63
- data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +0 -44
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
- data/lib/stripe/params/account_notice_list_params.rb +0 -25
- data/lib/stripe/params/account_notice_retrieve_params.rb +0 -13
- data/lib/stripe/params/account_notice_update_params.rb +0 -36
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +0 -65
- data/lib/stripe/params/capital/financing_offer_list_params.rb +0 -58
- data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +0 -15
- data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +0 -15
- data/lib/stripe/params/capital/financing_transaction_list_params.rb +0 -45
- data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +0 -15
- data/lib/stripe/params/external_account_create_params.rb +0 -134
- data/lib/stripe/params/external_account_delete_params.rb +0 -6
- data/lib/stripe/params/external_account_list_params.rb +0 -25
- data/lib/stripe/params/external_account_retrieve_params.rb +0 -13
- data/lib/stripe/params/external_account_update_params.rb +0 -91
- data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/authorization_retrieve_params.rb +0 -15
- data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
- data/lib/stripe/params/fx_quote_create_params.rb +0 -73
- data/lib/stripe/params/fx_quote_list_params.rb +0 -22
- data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
- data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
- data/lib/stripe/params/mandate_list_params.rb +0 -39
- data/lib/stripe/params/margin_create_params.rb +0 -25
- data/lib/stripe/params/margin_list_params.rb +0 -25
- data/lib/stripe/params/margin_retrieve_params.rb +0 -13
- data/lib/stripe/params/margin_update_params.rb +0 -22
- data/lib/stripe/params/order_create_params.rb +0 -2083
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_retrieve_params.rb +0 -13
- data/lib/stripe/params/order_submit_params.rb +0 -16
- data/lib/stripe/params/order_update_params.rb +0 -2087
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_create_params.rb +0 -67
- data/lib/stripe/params/privacy/redaction_job_list_params.rb +0 -27
- data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_run_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_update_params.rb +0 -18
- data/lib/stripe/params/privacy/redaction_job_validate_params.rb +0 -15
- data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +0 -24
- data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +0 -63
- data/lib/stripe/params/quote_line_list_params.rb +0 -22
- data/lib/stripe/params/quote_list_lines_params.rb +0 -22
- data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +0 -22
- data/lib/stripe/params/quote_mark_draft_params.rb +0 -13
- data/lib/stripe/params/quote_mark_stale_params.rb +0 -16
- data/lib/stripe/params/quote_preview_invoice_list_params.rb +0 -22
- data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +0 -22
- data/lib/stripe/params/quote_reestimate_params.rb +0 -13
- data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/release_list_params.rb +0 -41
- data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -67
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
- data/lib/stripe/params/subscription_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 -58
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -58
- data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +0 -19
- data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +0 -37
- data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +0 -22
- data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +0 -12
- data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +0 -22
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
- data/lib/stripe/params/v2/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 -142
- data/lib/stripe/resources/capital/financing_summary.rb +0 -82
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
- data/lib/stripe/resources/financial_connections/authorization.rb +0 -82
- data/lib/stripe/resources/financial_connections/institution.rb +0 -127
- data/lib/stripe/resources/fx_quote.rb +0 -147
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
- data/lib/stripe/resources/issuing/settlement.rb +0 -61
- data/lib/stripe/resources/margin.rb +0 -64
- data/lib/stripe/resources/order.rb +0 -927
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/product_catalog/trial_offer.rb +0 -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 -1792
- 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 -488
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -136
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -105
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
- data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
- data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -29
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -31
- data/lib/stripe/resources/v2/iam/activity_log.rb +0 -187
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -67
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -140
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -160
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -181
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -219
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -144
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -69
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -196
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -145
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -83
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -230
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -136
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -135
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -105
- data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
- data/lib/stripe/services/billing/analytics_service.rb +0 -15
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -68
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/fx_quote_service.rb +0 -27
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_service.rb +0 -53
- data/lib/stripe/services/privacy/redaction_job_service.rb +0 -104
- data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +0 -19
- data/lib/stripe/services/privacy_service.rb +0 -13
- data/lib/stripe/services/product_catalog/trial_offer_service.rb +0 -19
- data/lib/stripe/services/product_catalog_service.rb +0 -13
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -19
- data/lib/stripe/services/reserve/release_service.rb +0 -30
- data/lib/stripe/services/reserve_service.rb +0 -15
- data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
- data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
- data/lib/stripe/services/shared_payment_service.rb +0 -14
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/tax/location_service.rb +0 -45
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
- data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -85
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -101
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
- data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
- data/lib/stripe/services/v2/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 -582
|
@@ -194,11 +194,11 @@ module Stripe
|
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
class InvoiceSettings < ::Stripe::StripeObject
|
|
197
|
-
class
|
|
198
|
-
# The
|
|
199
|
-
attr_reader :
|
|
200
|
-
#
|
|
201
|
-
attr_reader :
|
|
197
|
+
class CustomField < ::Stripe::StripeObject
|
|
198
|
+
# The name of the custom field.
|
|
199
|
+
attr_reader :name
|
|
200
|
+
# The value of the custom field.
|
|
201
|
+
attr_reader :value
|
|
202
202
|
|
|
203
203
|
def self.inner_class_types
|
|
204
204
|
@inner_class_types = {}
|
|
@@ -208,26 +208,12 @@ module Stripe
|
|
|
208
208
|
@field_remappings = {}
|
|
209
209
|
end
|
|
210
210
|
end
|
|
211
|
-
# The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
212
|
-
attr_reader :account_tax_ids
|
|
213
|
-
# Attribute for field issuer
|
|
214
|
-
attr_reader :issuer
|
|
215
|
-
|
|
216
|
-
def self.inner_class_types
|
|
217
|
-
@inner_class_types = { issuer: Issuer }
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
def self.field_remappings
|
|
221
|
-
@field_remappings = {}
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
211
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
attr_reader :target_price
|
|
212
|
+
class Issuer < ::Stripe::StripeObject
|
|
213
|
+
# The connected account being referenced when `type` is `account`.
|
|
214
|
+
attr_reader :account
|
|
215
|
+
# Type of the account referenced.
|
|
216
|
+
attr_reader :type
|
|
231
217
|
|
|
232
218
|
def self.inner_class_types
|
|
233
219
|
@inner_class_types = {}
|
|
@@ -237,15 +223,19 @@ module Stripe
|
|
|
237
223
|
@field_remappings = {}
|
|
238
224
|
end
|
|
239
225
|
end
|
|
240
|
-
# The
|
|
241
|
-
attr_reader :
|
|
242
|
-
#
|
|
243
|
-
attr_reader :
|
|
244
|
-
#
|
|
245
|
-
attr_reader :
|
|
226
|
+
# The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription.
|
|
227
|
+
attr_reader :account_tax_ids
|
|
228
|
+
# A list of up to 4 custom fields to be displayed on the invoice.
|
|
229
|
+
attr_reader :custom_fields
|
|
230
|
+
# An arbitrary string attached to the object. Often useful for displaying to users.
|
|
231
|
+
attr_reader :description
|
|
232
|
+
# Footer to be displayed on the invoice.
|
|
233
|
+
attr_reader :footer
|
|
234
|
+
# Attribute for field issuer
|
|
235
|
+
attr_reader :issuer
|
|
246
236
|
|
|
247
237
|
def self.inner_class_types
|
|
248
|
-
@inner_class_types = {
|
|
238
|
+
@inner_class_types = { custom_fields: CustomField, issuer: Issuer }
|
|
249
239
|
end
|
|
250
240
|
|
|
251
241
|
def self.field_remappings
|
|
@@ -323,31 +313,6 @@ module Stripe
|
|
|
323
313
|
end
|
|
324
314
|
end
|
|
325
315
|
|
|
326
|
-
class Blik < ::Stripe::StripeObject
|
|
327
|
-
class MandateOptions < ::Stripe::StripeObject
|
|
328
|
-
# Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
329
|
-
attr_reader :expires_after
|
|
330
|
-
|
|
331
|
-
def self.inner_class_types
|
|
332
|
-
@inner_class_types = {}
|
|
333
|
-
end
|
|
334
|
-
|
|
335
|
-
def self.field_remappings
|
|
336
|
-
@field_remappings = {}
|
|
337
|
-
end
|
|
338
|
-
end
|
|
339
|
-
# Attribute for field mandate_options
|
|
340
|
-
attr_reader :mandate_options
|
|
341
|
-
|
|
342
|
-
def self.inner_class_types
|
|
343
|
-
@inner_class_types = { mandate_options: MandateOptions }
|
|
344
|
-
end
|
|
345
|
-
|
|
346
|
-
def self.field_remappings
|
|
347
|
-
@field_remappings = {}
|
|
348
|
-
end
|
|
349
|
-
end
|
|
350
|
-
|
|
351
316
|
class Card < ::Stripe::StripeObject
|
|
352
317
|
class MandateOptions < ::Stripe::StripeObject
|
|
353
318
|
# Amount to be charged for future payments, specified in the presentment currency.
|
|
@@ -422,16 +387,6 @@ module Stripe
|
|
|
422
387
|
end
|
|
423
388
|
end
|
|
424
389
|
|
|
425
|
-
class IdBankTransfer < ::Stripe::StripeObject
|
|
426
|
-
def self.inner_class_types
|
|
427
|
-
@inner_class_types = {}
|
|
428
|
-
end
|
|
429
|
-
|
|
430
|
-
def self.field_remappings
|
|
431
|
-
@field_remappings = {}
|
|
432
|
-
end
|
|
433
|
-
end
|
|
434
|
-
|
|
435
390
|
class Konbini < ::Stripe::StripeObject
|
|
436
391
|
def self.inner_class_types
|
|
437
392
|
@inner_class_types = {}
|
|
@@ -550,8 +505,6 @@ module Stripe
|
|
|
550
505
|
class Filters < ::Stripe::StripeObject
|
|
551
506
|
# The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
552
507
|
attr_reader :account_subcategories
|
|
553
|
-
# The institution to use to filter for possible accounts to link.
|
|
554
|
-
attr_reader :institution
|
|
555
508
|
|
|
556
509
|
def self.inner_class_types
|
|
557
510
|
@inner_class_types = {}
|
|
@@ -593,14 +546,10 @@ module Stripe
|
|
|
593
546
|
attr_reader :acss_debit
|
|
594
547
|
# This sub-hash contains details about the Bancontact payment method options to pass to invoices created by the subscription.
|
|
595
548
|
attr_reader :bancontact
|
|
596
|
-
# This sub-hash contains details about the Blik payment method options to pass to invoices created by the subscription.
|
|
597
|
-
attr_reader :blik
|
|
598
549
|
# This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription.
|
|
599
550
|
attr_reader :card
|
|
600
551
|
# This sub-hash contains details about the Bank transfer payment method options to pass to invoices created by the subscription.
|
|
601
552
|
attr_reader :customer_balance
|
|
602
|
-
# This sub-hash contains details about the Indonesia bank transfer payment method options to pass to invoices created by the subscription.
|
|
603
|
-
attr_reader :id_bank_transfer
|
|
604
553
|
# This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription.
|
|
605
554
|
attr_reader :konbini
|
|
606
555
|
# This sub-hash contains details about the PayTo payment method options to pass to invoices created by the subscription.
|
|
@@ -618,10 +567,8 @@ module Stripe
|
|
|
618
567
|
@inner_class_types = {
|
|
619
568
|
acss_debit: AcssDebit,
|
|
620
569
|
bancontact: Bancontact,
|
|
621
|
-
blik: Blik,
|
|
622
570
|
card: Card,
|
|
623
571
|
customer_balance: CustomerBalance,
|
|
624
|
-
id_bank_transfer: IdBankTransfer,
|
|
625
572
|
konbini: Konbini,
|
|
626
573
|
payto: Payto,
|
|
627
574
|
pix: Pix,
|
|
@@ -677,8 +624,6 @@ module Stripe
|
|
|
677
624
|
attr_reader :expires_at
|
|
678
625
|
# 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.
|
|
679
626
|
attr_reader :metadata
|
|
680
|
-
# The number of iterations of prebilling to apply.
|
|
681
|
-
attr_reader :prebilling_iterations
|
|
682
627
|
# List of subscription items, each with an attached plan, that will be set if the update is applied.
|
|
683
628
|
attr_reader :subscription_items
|
|
684
629
|
# Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied.
|
|
@@ -695,25 +640,6 @@ module Stripe
|
|
|
695
640
|
end
|
|
696
641
|
end
|
|
697
642
|
|
|
698
|
-
class Prebilling < ::Stripe::StripeObject
|
|
699
|
-
# ID of the prebilling invoice.
|
|
700
|
-
attr_reader :invoice
|
|
701
|
-
# The end of the last period for which the invoice pre-bills.
|
|
702
|
-
attr_reader :period_end
|
|
703
|
-
# The start of the first period for which the invoice pre-bills.
|
|
704
|
-
attr_reader :period_start
|
|
705
|
-
# Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
706
|
-
attr_reader :update_behavior
|
|
707
|
-
|
|
708
|
-
def self.inner_class_types
|
|
709
|
-
@inner_class_types = {}
|
|
710
|
-
end
|
|
711
|
-
|
|
712
|
-
def self.field_remappings
|
|
713
|
-
@field_remappings = {}
|
|
714
|
-
end
|
|
715
|
-
end
|
|
716
|
-
|
|
717
643
|
class PresentmentDetails < ::Stripe::StripeObject
|
|
718
644
|
# Currency used for customer payments.
|
|
719
645
|
attr_reader :presentment_currency
|
|
@@ -727,47 +653,6 @@ module Stripe
|
|
|
727
653
|
end
|
|
728
654
|
end
|
|
729
655
|
|
|
730
|
-
class StatusDetails < ::Stripe::StripeObject
|
|
731
|
-
class Paused < ::Stripe::StripeObject
|
|
732
|
-
class Subscription < ::Stripe::StripeObject
|
|
733
|
-
# The reason that the subscription was paused.
|
|
734
|
-
attr_reader :type
|
|
735
|
-
|
|
736
|
-
def self.inner_class_types
|
|
737
|
-
@inner_class_types = {}
|
|
738
|
-
end
|
|
739
|
-
|
|
740
|
-
def self.field_remappings
|
|
741
|
-
@field_remappings = {}
|
|
742
|
-
end
|
|
743
|
-
end
|
|
744
|
-
# Information on the `type=subscription` pause.
|
|
745
|
-
attr_reader :subscription
|
|
746
|
-
# Unix timestamp in seconds of when the subscription status transitioned to `paused`.
|
|
747
|
-
attr_reader :transitioned_at
|
|
748
|
-
# The type of pause.
|
|
749
|
-
attr_reader :type
|
|
750
|
-
|
|
751
|
-
def self.inner_class_types
|
|
752
|
-
@inner_class_types = { subscription: Subscription }
|
|
753
|
-
end
|
|
754
|
-
|
|
755
|
-
def self.field_remappings
|
|
756
|
-
@field_remappings = {}
|
|
757
|
-
end
|
|
758
|
-
end
|
|
759
|
-
# Indicates when and why the subscription transitioned to the paused status.
|
|
760
|
-
attr_reader :paused
|
|
761
|
-
|
|
762
|
-
def self.inner_class_types
|
|
763
|
-
@inner_class_types = { paused: Paused }
|
|
764
|
-
end
|
|
765
|
-
|
|
766
|
-
def self.field_remappings
|
|
767
|
-
@field_remappings = {}
|
|
768
|
-
end
|
|
769
|
-
end
|
|
770
|
-
|
|
771
656
|
class TransferData < ::Stripe::StripeObject
|
|
772
657
|
# A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
|
773
658
|
attr_reader :amount_percent
|
|
@@ -785,8 +670,6 @@ module Stripe
|
|
|
785
670
|
|
|
786
671
|
class TrialSettings < ::Stripe::StripeObject
|
|
787
672
|
class EndBehavior < ::Stripe::StripeObject
|
|
788
|
-
# Indicates how the subscription's billing cycle anchor is reset when a trial ends. If not set, the default is `now`.
|
|
789
|
-
attr_reader :billing_cycle_anchor
|
|
790
673
|
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
791
674
|
attr_reader :missing_payment_method
|
|
792
675
|
|
|
@@ -863,8 +746,6 @@ module Stripe
|
|
|
863
746
|
attr_reader :invoice_settings
|
|
864
747
|
# List of subscription items, each with an attached price.
|
|
865
748
|
attr_reader :items
|
|
866
|
-
# Details of the most recent price migration that failed for the subscription.
|
|
867
|
-
attr_reader :last_price_migration_error
|
|
868
749
|
# The most recent invoice this subscription has generated over its lifecycle (for example, when it cycles or is updated).
|
|
869
750
|
attr_reader :latest_invoice
|
|
870
751
|
# If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
@@ -889,8 +770,6 @@ module Stripe
|
|
|
889
770
|
attr_reader :pending_setup_intent
|
|
890
771
|
# If specified, [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid.
|
|
891
772
|
attr_reader :pending_update
|
|
892
|
-
# Time period and invoice for a Subscription billed in advance.
|
|
893
|
-
attr_reader :prebilling
|
|
894
773
|
# Attribute for field presentment_details
|
|
895
774
|
attr_reader :presentment_details
|
|
896
775
|
# The schedule attached to the subscription
|
|
@@ -909,8 +788,6 @@ module Stripe
|
|
|
909
788
|
#
|
|
910
789
|
# If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
|
|
911
790
|
attr_reader :status
|
|
912
|
-
# Describes changes to the subscription's status.
|
|
913
|
-
attr_reader :status_details
|
|
914
791
|
# ID of the test clock this subscription belongs to.
|
|
915
792
|
attr_reader :test_clock
|
|
916
793
|
# The account (if any) the 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.
|
|
@@ -924,7 +801,7 @@ module Stripe
|
|
|
924
801
|
|
|
925
802
|
# Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details.
|
|
926
803
|
#
|
|
927
|
-
# Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to
|
|
804
|
+
# Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false.
|
|
928
805
|
#
|
|
929
806
|
# By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
|
|
930
807
|
def cancel(params = {}, opts = {})
|
|
@@ -938,7 +815,7 @@ module Stripe
|
|
|
938
815
|
|
|
939
816
|
# Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, the subscription is largely immutable. You can still update its [metadata](https://docs.stripe.com/metadata) and cancellation_details.
|
|
940
817
|
#
|
|
941
|
-
# Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to
|
|
818
|
+
# Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://docs.stripe.com/api/invoiceitems/delete). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed if invoice_now and prorate are both set to false.
|
|
942
819
|
#
|
|
943
820
|
# By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.
|
|
944
821
|
def self.cancel(subscription_exposed_id, params = {}, opts = {})
|
|
@@ -1006,26 +883,6 @@ module Stripe
|
|
|
1006
883
|
)
|
|
1007
884
|
end
|
|
1008
885
|
|
|
1009
|
-
# Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules.
|
|
1010
|
-
def pause(params = {}, opts = {})
|
|
1011
|
-
request_stripe_object(
|
|
1012
|
-
method: :post,
|
|
1013
|
-
path: format("/v1/subscriptions/%<subscription>s/pause", { subscription: CGI.escape(self["id"]) }),
|
|
1014
|
-
params: params,
|
|
1015
|
-
opts: opts
|
|
1016
|
-
)
|
|
1017
|
-
end
|
|
1018
|
-
|
|
1019
|
-
# Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules.
|
|
1020
|
-
def self.pause(subscription, params = {}, opts = {})
|
|
1021
|
-
request_stripe_object(
|
|
1022
|
-
method: :post,
|
|
1023
|
-
path: format("/v1/subscriptions/%<subscription>s/pause", { subscription: CGI.escape(subscription) }),
|
|
1024
|
-
params: params,
|
|
1025
|
-
opts: opts
|
|
1026
|
-
)
|
|
1027
|
-
end
|
|
1028
|
-
|
|
1029
886
|
# Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions).
|
|
1030
887
|
def resume(params = {}, opts = {})
|
|
1031
888
|
request_stripe_object(
|
|
@@ -1100,15 +957,12 @@ module Stripe
|
|
|
1100
957
|
billing_thresholds: BillingThresholds,
|
|
1101
958
|
cancellation_details: CancellationDetails,
|
|
1102
959
|
invoice_settings: InvoiceSettings,
|
|
1103
|
-
last_price_migration_error: LastPriceMigrationError,
|
|
1104
960
|
managed_payments: ManagedPayments,
|
|
1105
961
|
pause_collection: PauseCollection,
|
|
1106
962
|
payment_settings: PaymentSettings,
|
|
1107
963
|
pending_invoice_item_interval: PendingInvoiceItemInterval,
|
|
1108
964
|
pending_update: PendingUpdate,
|
|
1109
|
-
prebilling: Prebilling,
|
|
1110
965
|
presentment_details: PresentmentDetails,
|
|
1111
|
-
status_details: StatusDetails,
|
|
1112
966
|
transfer_data: TransferData,
|
|
1113
967
|
trial_settings: TrialSettings,
|
|
1114
968
|
}
|
|
@@ -27,38 +27,6 @@ module Stripe
|
|
|
27
27
|
@field_remappings = {}
|
|
28
28
|
end
|
|
29
29
|
end
|
|
30
|
-
|
|
31
|
-
class CurrentTrial < ::Stripe::StripeObject
|
|
32
|
-
# Attribute for field end_date
|
|
33
|
-
attr_reader :end_date
|
|
34
|
-
# Attribute for field start_date
|
|
35
|
-
attr_reader :start_date
|
|
36
|
-
# Attribute for field trial_offer
|
|
37
|
-
attr_reader :trial_offer
|
|
38
|
-
|
|
39
|
-
def self.inner_class_types
|
|
40
|
-
@inner_class_types = {}
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
def self.field_remappings
|
|
44
|
-
@field_remappings = {}
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
class Trial < ::Stripe::StripeObject
|
|
49
|
-
# List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
|
50
|
-
attr_reader :converts_to
|
|
51
|
-
# Determines the type of trial for this item.
|
|
52
|
-
attr_reader :type
|
|
53
|
-
|
|
54
|
-
def self.inner_class_types
|
|
55
|
-
@inner_class_types = {}
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
def self.field_remappings
|
|
59
|
-
@field_remappings = {}
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
30
|
# The time period the subscription item has been billed for.
|
|
63
31
|
attr_reader :billed_until
|
|
64
32
|
# Define thresholds at which an invoice will be sent, and the related subscription advanced to a new billing period
|
|
@@ -69,8 +37,6 @@ module Stripe
|
|
|
69
37
|
attr_reader :current_period_end
|
|
70
38
|
# The start time of this subscription item's current billing period.
|
|
71
39
|
attr_reader :current_period_start
|
|
72
|
-
# The current trial that is applied to this subscription item.
|
|
73
|
-
attr_reader :current_trial
|
|
74
40
|
# Always true for a deleted object
|
|
75
41
|
attr_reader :deleted
|
|
76
42
|
# The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount.
|
|
@@ -103,8 +69,6 @@ module Stripe
|
|
|
103
69
|
attr_reader :subscription
|
|
104
70
|
# The tax rates which apply to this `subscription_item`. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
|
|
105
71
|
attr_reader :tax_rates
|
|
106
|
-
# Options that configure the trial on the subscription item.
|
|
107
|
-
attr_reader :trial
|
|
108
72
|
|
|
109
73
|
# Adds a new item to an existing subscription. No existing items will be changed or replaced.
|
|
110
74
|
def self.create(params = {}, opts = {})
|
|
@@ -157,11 +121,7 @@ module Stripe
|
|
|
157
121
|
end
|
|
158
122
|
|
|
159
123
|
def self.inner_class_types
|
|
160
|
-
@inner_class_types = {
|
|
161
|
-
billing_thresholds: BillingThresholds,
|
|
162
|
-
current_trial: CurrentTrial,
|
|
163
|
-
trial: Trial,
|
|
164
|
-
}
|
|
124
|
+
@inner_class_types = { billing_thresholds: BillingThresholds }
|
|
165
125
|
end
|
|
166
126
|
|
|
167
127
|
def self.field_remappings
|