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
@@ -9,15 +9,12 @@ module Stripe
|
|
9
9
|
attr_accessor :account
|
10
10
|
# The ID of the Stripe customer whose accounts will be retrieved. Should only be present if `type` is `customer`.
|
11
11
|
attr_accessor :customer
|
12
|
-
# The ID of the Stripe customer Account whose accounts will be retrieved. Should only be present if `type` is `customer`.
|
13
|
-
attr_accessor :customer_account
|
14
12
|
# Type of account holder to collect accounts for.
|
15
13
|
attr_accessor :type
|
16
14
|
|
17
|
-
def initialize(account: nil, customer: nil,
|
15
|
+
def initialize(account: nil, customer: nil, type: nil)
|
18
16
|
@account = account
|
19
17
|
@customer = customer
|
20
|
-
@customer_account = customer_account
|
21
18
|
@type = type
|
22
19
|
end
|
23
20
|
end
|
@@ -27,31 +24,10 @@ module Stripe
|
|
27
24
|
attr_accessor :account_subcategories
|
28
25
|
# List of countries from which to collect accounts.
|
29
26
|
attr_accessor :countries
|
30
|
-
# Stripe ID of the institution with which the customer should be directed to log in.
|
31
|
-
attr_accessor :institution
|
32
27
|
|
33
|
-
def initialize(account_subcategories: nil, countries: nil
|
28
|
+
def initialize(account_subcategories: nil, countries: nil)
|
34
29
|
@account_subcategories = account_subcategories
|
35
30
|
@countries = countries
|
36
|
-
@institution = institution
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
class Limits < Stripe::RequestParams
|
41
|
-
# The number of accounts that can be linked in this Session.
|
42
|
-
attr_accessor :accounts
|
43
|
-
|
44
|
-
def initialize(accounts: nil)
|
45
|
-
@accounts = accounts
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
class ManualEntry < Stripe::RequestParams
|
50
|
-
# Whether manual entry will be handled by Stripe during the Session.
|
51
|
-
attr_accessor :mode
|
52
|
-
|
53
|
-
def initialize(mode: nil)
|
54
|
-
@mode = mode
|
55
31
|
end
|
56
32
|
end
|
57
33
|
# The account holder to link accounts for.
|
@@ -60,10 +36,6 @@ module Stripe
|
|
60
36
|
attr_accessor :expand
|
61
37
|
# Filters to restrict the kinds of accounts to collect.
|
62
38
|
attr_accessor :filters
|
63
|
-
# Settings for configuring Session-specific limits.
|
64
|
-
attr_accessor :limits
|
65
|
-
# Customize manual entry behavior
|
66
|
-
attr_accessor :manual_entry
|
67
39
|
# List of data features that you would like to request access to.
|
68
40
|
#
|
69
41
|
# Possible values are `balances`, `transactions`, `ownership`, and `payment_method`.
|
@@ -77,8 +49,6 @@ module Stripe
|
|
77
49
|
account_holder: nil,
|
78
50
|
expand: nil,
|
79
51
|
filters: nil,
|
80
|
-
limits: nil,
|
81
|
-
manual_entry: nil,
|
82
52
|
permissions: nil,
|
83
53
|
prefetch: nil,
|
84
54
|
return_url: nil
|
@@ -86,8 +56,6 @@ module Stripe
|
|
86
56
|
@account_holder = account_holder
|
87
57
|
@expand = expand
|
88
58
|
@filters = filters
|
89
|
-
@limits = limits
|
90
|
-
@manual_entry = manual_entry
|
91
59
|
@permissions = permissions
|
92
60
|
@prefetch = prefetch
|
93
61
|
@return_url = return_url
|
@@ -70,8 +70,6 @@ module Stripe
|
|
70
70
|
attr_accessor :provided_details
|
71
71
|
# Customer ID
|
72
72
|
attr_accessor :related_customer
|
73
|
-
# Token referencing a Customer Account resource.
|
74
|
-
attr_accessor :related_customer_account
|
75
73
|
# Tokens referencing a Person resource and it's associated account.
|
76
74
|
attr_accessor :related_person
|
77
75
|
# The URL that the user will be redirected to upon completing the verification flow.
|
@@ -88,7 +86,6 @@ module Stripe
|
|
88
86
|
options: nil,
|
89
87
|
provided_details: nil,
|
90
88
|
related_customer: nil,
|
91
|
-
related_customer_account: nil,
|
92
89
|
related_person: nil,
|
93
90
|
return_url: nil,
|
94
91
|
type: nil,
|
@@ -100,7 +97,6 @@ module Stripe
|
|
100
97
|
@options = options
|
101
98
|
@provided_details = provided_details
|
102
99
|
@related_customer = related_customer
|
103
|
-
@related_customer_account = related_customer_account
|
104
100
|
@related_person = related_person
|
105
101
|
@return_url = return_url
|
106
102
|
@type = type
|
@@ -33,8 +33,6 @@ module Stripe
|
|
33
33
|
attr_accessor :limit
|
34
34
|
# Attribute for param field related_customer
|
35
35
|
attr_accessor :related_customer
|
36
|
-
# Attribute for param field related_customer_account
|
37
|
-
attr_accessor :related_customer_account
|
38
36
|
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
39
37
|
attr_accessor :starting_after
|
40
38
|
# Only return VerificationSessions with this status. [Learn more about the lifecycle of sessions](https://stripe.com/docs/identity/how-sessions-work).
|
@@ -47,7 +45,6 @@ module Stripe
|
|
47
45
|
expand: nil,
|
48
46
|
limit: nil,
|
49
47
|
related_customer: nil,
|
50
|
-
related_customer_account: nil,
|
51
48
|
starting_after: nil,
|
52
49
|
status: nil
|
53
50
|
)
|
@@ -57,7 +54,6 @@ module Stripe
|
|
57
54
|
@expand = expand
|
58
55
|
@limit = limit
|
59
56
|
@related_customer = related_customer
|
60
|
-
@related_customer_account = related_customer_account
|
61
57
|
@starting_after = starting_after
|
62
58
|
@status = status
|
63
59
|
end
|
@@ -5,44 +5,16 @@ module Stripe
|
|
5
5
|
class InvoiceAddLinesParams < Stripe::RequestParams
|
6
6
|
class Line < Stripe::RequestParams
|
7
7
|
class Discount < Stripe::RequestParams
|
8
|
-
class DiscountEnd < Stripe::RequestParams
|
9
|
-
class Duration < Stripe::RequestParams
|
10
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
11
|
-
attr_accessor :interval
|
12
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
13
|
-
attr_accessor :interval_count
|
14
|
-
|
15
|
-
def initialize(interval: nil, interval_count: nil)
|
16
|
-
@interval = interval
|
17
|
-
@interval_count = interval_count
|
18
|
-
end
|
19
|
-
end
|
20
|
-
# Time span for the redeemed discount.
|
21
|
-
attr_accessor :duration
|
22
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
23
|
-
attr_accessor :timestamp
|
24
|
-
# The type of calculation made to determine when the discount ends.
|
25
|
-
attr_accessor :type
|
26
|
-
|
27
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
28
|
-
@duration = duration
|
29
|
-
@timestamp = timestamp
|
30
|
-
@type = type
|
31
|
-
end
|
32
|
-
end
|
33
8
|
# ID of the coupon to create a new discount for.
|
34
9
|
attr_accessor :coupon
|
35
10
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
36
11
|
attr_accessor :discount
|
37
|
-
# Details to determine how long the discount should be applied for.
|
38
|
-
attr_accessor :discount_end
|
39
12
|
# ID of the promotion code to create a new discount for.
|
40
13
|
attr_accessor :promotion_code
|
41
14
|
|
42
|
-
def initialize(coupon: nil, discount: nil,
|
15
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
43
16
|
@coupon = coupon
|
44
17
|
@discount = discount
|
45
|
-
@discount_end = discount_end
|
46
18
|
@promotion_code = promotion_code
|
47
19
|
end
|
48
20
|
end
|
@@ -200,8 +172,6 @@ module Stripe
|
|
200
172
|
attr_accessor :discounts
|
201
173
|
# ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
|
202
174
|
attr_accessor :invoice_item
|
203
|
-
# The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
204
|
-
attr_accessor :margins
|
205
175
|
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
206
176
|
attr_accessor :metadata
|
207
177
|
# The period associated with this invoice item. When set to different values, the period will be rendered on the invoice. If you have [Stripe Revenue Recognition](https://stripe.com/docs/revenue-recognition) enabled, the period will be used to recognize and defer revenue. See the [Revenue Recognition documentation](https://stripe.com/docs/revenue-recognition/methodology/subscriptions-and-invoicing) for details.
|
@@ -223,7 +193,6 @@ module Stripe
|
|
223
193
|
discountable: nil,
|
224
194
|
discounts: nil,
|
225
195
|
invoice_item: nil,
|
226
|
-
margins: nil,
|
227
196
|
metadata: nil,
|
228
197
|
period: nil,
|
229
198
|
price_data: nil,
|
@@ -237,7 +206,6 @@ module Stripe
|
|
237
206
|
@discountable = discountable
|
238
207
|
@discounts = discounts
|
239
208
|
@invoice_item = invoice_item
|
240
|
-
@margins = margins
|
241
209
|
@metadata = metadata
|
242
210
|
@period = period
|
243
211
|
@price_data = price_data
|
@@ -3,59 +3,14 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class InvoiceAttachPaymentParams < Stripe::RequestParams
|
6
|
-
class PaymentRecordData < Stripe::RequestParams
|
7
|
-
# The amount that was paid out of band.
|
8
|
-
attr_accessor :amount
|
9
|
-
# The currency that was paid out of band.
|
10
|
-
attr_accessor :currency
|
11
|
-
# 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
12
|
-
attr_accessor :metadata
|
13
|
-
# The type of money movement for this out of band payment record.
|
14
|
-
attr_accessor :money_movement_type
|
15
|
-
# The timestamp when this out of band payment was paid.
|
16
|
-
attr_accessor :paid_at
|
17
|
-
# The reference for this out of band payment record.
|
18
|
-
attr_accessor :payment_reference
|
19
|
-
|
20
|
-
def initialize(
|
21
|
-
amount: nil,
|
22
|
-
currency: nil,
|
23
|
-
metadata: nil,
|
24
|
-
money_movement_type: nil,
|
25
|
-
paid_at: nil,
|
26
|
-
payment_reference: nil
|
27
|
-
)
|
28
|
-
@amount = amount
|
29
|
-
@currency = currency
|
30
|
-
@metadata = metadata
|
31
|
-
@money_movement_type = money_movement_type
|
32
|
-
@paid_at = paid_at
|
33
|
-
@payment_reference = payment_reference
|
34
|
-
end
|
35
|
-
end
|
36
|
-
# The portion of the `amount` on the PaymentIntent or out of band payment to apply to this invoice. It defaults to the entire amount.
|
37
|
-
attr_accessor :amount_requested
|
38
6
|
# Specifies which fields in the response should be expanded.
|
39
7
|
attr_accessor :expand
|
40
8
|
# The ID of the PaymentIntent to attach to the invoice.
|
41
9
|
attr_accessor :payment_intent
|
42
|
-
# The ID of the PaymentRecord to attach to the invoice.
|
43
|
-
attr_accessor :payment_record
|
44
|
-
# The PaymentRecord data for attaching an out of band payment to the invoice.
|
45
|
-
attr_accessor :payment_record_data
|
46
10
|
|
47
|
-
def initialize(
|
48
|
-
amount_requested: nil,
|
49
|
-
expand: nil,
|
50
|
-
payment_intent: nil,
|
51
|
-
payment_record: nil,
|
52
|
-
payment_record_data: nil
|
53
|
-
)
|
54
|
-
@amount_requested = amount_requested
|
11
|
+
def initialize(expand: nil, payment_intent: nil)
|
55
12
|
@expand = expand
|
56
13
|
@payment_intent = payment_intent
|
57
|
-
@payment_record = payment_record
|
58
|
-
@payment_record_data = payment_record_data
|
59
14
|
end
|
60
15
|
end
|
61
16
|
end
|
@@ -3,24 +3,6 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
class InvoiceCreateParams < Stripe::RequestParams
|
6
|
-
class AmountsDue < Stripe::RequestParams
|
7
|
-
# The amount in cents (or local equivalent).
|
8
|
-
attr_accessor :amount
|
9
|
-
# Number of days from when invoice is finalized until the payment is due.
|
10
|
-
attr_accessor :days_until_due
|
11
|
-
# An arbitrary string attached to the object. Often useful for displaying to users.
|
12
|
-
attr_accessor :description
|
13
|
-
# Date on which a payment plan’s payment is due.
|
14
|
-
attr_accessor :due_date
|
15
|
-
|
16
|
-
def initialize(amount: nil, days_until_due: nil, description: nil, due_date: nil)
|
17
|
-
@amount = amount
|
18
|
-
@days_until_due = days_until_due
|
19
|
-
@description = description
|
20
|
-
@due_date = due_date
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
6
|
class AutomaticTax < Stripe::RequestParams
|
25
7
|
class Liability < Stripe::RequestParams
|
26
8
|
# The connected account being referenced when `type` is `account`.
|
@@ -57,44 +39,16 @@ module Stripe
|
|
57
39
|
end
|
58
40
|
|
59
41
|
class Discount < Stripe::RequestParams
|
60
|
-
class DiscountEnd < Stripe::RequestParams
|
61
|
-
class Duration < Stripe::RequestParams
|
62
|
-
# Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
63
|
-
attr_accessor :interval
|
64
|
-
# The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
65
|
-
attr_accessor :interval_count
|
66
|
-
|
67
|
-
def initialize(interval: nil, interval_count: nil)
|
68
|
-
@interval = interval
|
69
|
-
@interval_count = interval_count
|
70
|
-
end
|
71
|
-
end
|
72
|
-
# Time span for the redeemed discount.
|
73
|
-
attr_accessor :duration
|
74
|
-
# A precise Unix timestamp for the discount to end. Must be in the future.
|
75
|
-
attr_accessor :timestamp
|
76
|
-
# The type of calculation made to determine when the discount ends.
|
77
|
-
attr_accessor :type
|
78
|
-
|
79
|
-
def initialize(duration: nil, timestamp: nil, type: nil)
|
80
|
-
@duration = duration
|
81
|
-
@timestamp = timestamp
|
82
|
-
@type = type
|
83
|
-
end
|
84
|
-
end
|
85
42
|
# ID of the coupon to create a new discount for.
|
86
43
|
attr_accessor :coupon
|
87
44
|
# ID of an existing discount on the object (or one of its ancestors) to reuse.
|
88
45
|
attr_accessor :discount
|
89
|
-
# Details to determine how long the discount should be applied for.
|
90
|
-
attr_accessor :discount_end
|
91
46
|
# ID of the promotion code to create a new discount for.
|
92
47
|
attr_accessor :promotion_code
|
93
48
|
|
94
|
-
def initialize(coupon: nil, discount: nil,
|
49
|
+
def initialize(coupon: nil, discount: nil, promotion_code: nil)
|
95
50
|
@coupon = coupon
|
96
51
|
@discount = discount
|
97
|
-
@discount_end = discount_end
|
98
52
|
@promotion_code = promotion_code
|
99
53
|
end
|
100
54
|
end
|
@@ -226,57 +180,17 @@ module Stripe
|
|
226
180
|
end
|
227
181
|
end
|
228
182
|
|
229
|
-
class IdBankTransfer < Stripe::RequestParams; end
|
230
183
|
class Konbini < Stripe::RequestParams; end
|
231
|
-
|
232
|
-
class Pix < Stripe::RequestParams
|
233
|
-
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
234
|
-
attr_accessor :amount_includes_iof
|
235
|
-
|
236
|
-
def initialize(amount_includes_iof: nil)
|
237
|
-
@amount_includes_iof = amount_includes_iof
|
238
|
-
end
|
239
|
-
end
|
240
|
-
|
241
184
|
class SepaDebit < Stripe::RequestParams; end
|
242
185
|
|
243
|
-
class Upi < Stripe::RequestParams
|
244
|
-
class MandateOptions < Stripe::RequestParams
|
245
|
-
# Amount to be charged for future payments.
|
246
|
-
attr_accessor :amount
|
247
|
-
# One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
248
|
-
attr_accessor :amount_type
|
249
|
-
# A description of the mandate or subscription that is meant to be displayed to the customer.
|
250
|
-
attr_accessor :description
|
251
|
-
# End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
252
|
-
attr_accessor :end_date
|
253
|
-
|
254
|
-
def initialize(amount: nil, amount_type: nil, description: nil, end_date: nil)
|
255
|
-
@amount = amount
|
256
|
-
@amount_type = amount_type
|
257
|
-
@description = description
|
258
|
-
@end_date = end_date
|
259
|
-
end
|
260
|
-
end
|
261
|
-
# Configuration options for setting up an eMandate
|
262
|
-
attr_accessor :mandate_options
|
263
|
-
|
264
|
-
def initialize(mandate_options: nil)
|
265
|
-
@mandate_options = mandate_options
|
266
|
-
end
|
267
|
-
end
|
268
|
-
|
269
186
|
class UsBankAccount < Stripe::RequestParams
|
270
187
|
class FinancialConnections < Stripe::RequestParams
|
271
188
|
class Filters < Stripe::RequestParams
|
272
189
|
# The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
273
190
|
attr_accessor :account_subcategories
|
274
|
-
# ID of the institution to use to filter for selectable accounts.
|
275
|
-
attr_accessor :institution
|
276
191
|
|
277
|
-
def initialize(account_subcategories: nil
|
192
|
+
def initialize(account_subcategories: nil)
|
278
193
|
@account_subcategories = account_subcategories
|
279
|
-
@institution = institution
|
280
194
|
end
|
281
195
|
end
|
282
196
|
# Provide filters for the linked accounts that the customer can select for the payment method.
|
@@ -310,16 +224,10 @@ module Stripe
|
|
310
224
|
attr_accessor :card
|
311
225
|
# If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
312
226
|
attr_accessor :customer_balance
|
313
|
-
# If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice’s PaymentIntent.
|
314
|
-
attr_accessor :id_bank_transfer
|
315
227
|
# If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice’s PaymentIntent.
|
316
228
|
attr_accessor :konbini
|
317
|
-
# If paying by `pix`, this sub-hash contains details about the Pix payment method options to pass to the invoice’s PaymentIntent.
|
318
|
-
attr_accessor :pix
|
319
229
|
# If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice’s PaymentIntent.
|
320
230
|
attr_accessor :sepa_debit
|
321
|
-
# If paying by `upi`, this sub-hash contains details about the UPI payment method options to pass to the invoice’s PaymentIntent.
|
322
|
-
attr_accessor :upi
|
323
231
|
# If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice’s PaymentIntent.
|
324
232
|
attr_accessor :us_bank_account
|
325
233
|
|
@@ -328,22 +236,16 @@ module Stripe
|
|
328
236
|
bancontact: nil,
|
329
237
|
card: nil,
|
330
238
|
customer_balance: nil,
|
331
|
-
id_bank_transfer: nil,
|
332
239
|
konbini: nil,
|
333
|
-
pix: nil,
|
334
240
|
sepa_debit: nil,
|
335
|
-
upi: nil,
|
336
241
|
us_bank_account: nil
|
337
242
|
)
|
338
243
|
@acss_debit = acss_debit
|
339
244
|
@bancontact = bancontact
|
340
245
|
@card = card
|
341
246
|
@customer_balance = customer_balance
|
342
|
-
@id_bank_transfer = id_bank_transfer
|
343
247
|
@konbini = konbini
|
344
|
-
@pix = pix
|
345
248
|
@sepa_debit = sepa_debit
|
346
|
-
@upi = upi
|
347
249
|
@us_bank_account = us_bank_account
|
348
250
|
end
|
349
251
|
end
|
@@ -553,8 +455,6 @@ module Stripe
|
|
553
455
|
end
|
554
456
|
# The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
555
457
|
attr_accessor :account_tax_ids
|
556
|
-
# List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
557
|
-
attr_accessor :amounts_due
|
558
458
|
# A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/billing/invoices/connect#collecting-fees).
|
559
459
|
attr_accessor :application_fee_amount
|
560
460
|
# Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. Defaults to false.
|
@@ -571,12 +471,8 @@ module Stripe
|
|
571
471
|
attr_accessor :custom_fields
|
572
472
|
# The ID of the customer who will be billed.
|
573
473
|
attr_accessor :customer
|
574
|
-
# The ID of the account who will be billed.
|
575
|
-
attr_accessor :customer_account
|
576
474
|
# The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
|
577
475
|
attr_accessor :days_until_due
|
578
|
-
# The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
579
|
-
attr_accessor :default_margins
|
580
476
|
# ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
581
477
|
attr_accessor :default_payment_method
|
582
478
|
# ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
|
@@ -624,7 +520,6 @@ module Stripe
|
|
624
520
|
|
625
521
|
def initialize(
|
626
522
|
account_tax_ids: nil,
|
627
|
-
amounts_due: nil,
|
628
523
|
application_fee_amount: nil,
|
629
524
|
auto_advance: nil,
|
630
525
|
automatic_tax: nil,
|
@@ -633,9 +528,7 @@ module Stripe
|
|
633
528
|
currency: nil,
|
634
529
|
custom_fields: nil,
|
635
530
|
customer: nil,
|
636
|
-
customer_account: nil,
|
637
531
|
days_until_due: nil,
|
638
|
-
default_margins: nil,
|
639
532
|
default_payment_method: nil,
|
640
533
|
default_source: nil,
|
641
534
|
default_tax_rates: nil,
|
@@ -660,7 +553,6 @@ module Stripe
|
|
660
553
|
transfer_data: nil
|
661
554
|
)
|
662
555
|
@account_tax_ids = account_tax_ids
|
663
|
-
@amounts_due = amounts_due
|
664
556
|
@application_fee_amount = application_fee_amount
|
665
557
|
@auto_advance = auto_advance
|
666
558
|
@automatic_tax = automatic_tax
|
@@ -669,9 +561,7 @@ module Stripe
|
|
669
561
|
@currency = currency
|
670
562
|
@custom_fields = custom_fields
|
671
563
|
@customer = customer
|
672
|
-
@customer_account = customer_account
|
673
564
|
@days_until_due = days_until_due
|
674
|
-
@default_margins = default_margins
|
675
565
|
@default_payment_method = default_payment_method
|
676
566
|
@default_source = default_source
|
677
567
|
@default_tax_rates = default_tax_rates
|