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
@@ -1,44 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Events
|
6
|
-
# Sent immediately following a user's call to the Off-Session Payments cancel endpoint.
|
7
|
-
class V2PaymentsOffSessionPaymentCanceledEvent < Stripe::V2::Core::Event
|
8
|
-
def self.lookup_type
|
9
|
-
"v2.payments.off_session_payment.canceled"
|
10
|
-
end
|
11
|
-
|
12
|
-
# Retrieves the related object from the API. Makes an API request on every call.
|
13
|
-
def fetch_related_object
|
14
|
-
_request(
|
15
|
-
method: :get,
|
16
|
-
path: related_object.url,
|
17
|
-
base_address: :api,
|
18
|
-
opts: { stripe_context: context }
|
19
|
-
)
|
20
|
-
end
|
21
|
-
attr_reader :related_object
|
22
|
-
end
|
23
|
-
|
24
|
-
# Sent immediately following a user's call to the Off-Session Payments cancel endpoint.
|
25
|
-
class V2PaymentsOffSessionPaymentCanceledEventNotification < Stripe::V2::Core::EventNotification
|
26
|
-
def self.lookup_type
|
27
|
-
"v2.payments.off_session_payment.canceled"
|
28
|
-
end
|
29
|
-
|
30
|
-
attr_reader :related_object
|
31
|
-
|
32
|
-
# Retrieves the OffSessionPayment related to this EventNotification from the Stripe API. Makes an API request on every call.
|
33
|
-
def fetch_related_object
|
34
|
-
resp = @client.raw_request(
|
35
|
-
:get,
|
36
|
-
related_object.url,
|
37
|
-
opts: { stripe_context: context },
|
38
|
-
usage: ["fetch_related_object"]
|
39
|
-
)
|
40
|
-
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Events
|
6
|
-
# Sent immediately following a user's call to the Off-Session Payments create endpoint.
|
7
|
-
class V2PaymentsOffSessionPaymentCreatedEvent < Stripe::V2::Core::Event
|
8
|
-
def self.lookup_type
|
9
|
-
"v2.payments.off_session_payment.created"
|
10
|
-
end
|
11
|
-
|
12
|
-
# Retrieves the related object from the API. Makes an API request on every call.
|
13
|
-
def fetch_related_object
|
14
|
-
_request(
|
15
|
-
method: :get,
|
16
|
-
path: related_object.url,
|
17
|
-
base_address: :api,
|
18
|
-
opts: { stripe_context: context }
|
19
|
-
)
|
20
|
-
end
|
21
|
-
attr_reader :related_object
|
22
|
-
end
|
23
|
-
|
24
|
-
# Sent immediately following a user's call to the Off-Session Payments create endpoint.
|
25
|
-
class V2PaymentsOffSessionPaymentCreatedEventNotification < Stripe::V2::Core::EventNotification
|
26
|
-
def self.lookup_type
|
27
|
-
"v2.payments.off_session_payment.created"
|
28
|
-
end
|
29
|
-
|
30
|
-
attr_reader :related_object
|
31
|
-
|
32
|
-
# Retrieves the OffSessionPayment related to this EventNotification from the Stripe API. Makes an API request on every call.
|
33
|
-
def fetch_related_object
|
34
|
-
resp = @client.raw_request(
|
35
|
-
:get,
|
36
|
-
related_object.url,
|
37
|
-
opts: { stripe_context: context },
|
38
|
-
usage: ["fetch_related_object"]
|
39
|
-
)
|
40
|
-
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Events
|
6
|
-
# Sent after a failed authorization if there are no retries remaining, or if the failure is unretryable.
|
7
|
-
class V2PaymentsOffSessionPaymentFailedEvent < Stripe::V2::Core::Event
|
8
|
-
def self.lookup_type
|
9
|
-
"v2.payments.off_session_payment.failed"
|
10
|
-
end
|
11
|
-
|
12
|
-
# Retrieves the related object from the API. Makes an API request on every call.
|
13
|
-
def fetch_related_object
|
14
|
-
_request(
|
15
|
-
method: :get,
|
16
|
-
path: related_object.url,
|
17
|
-
base_address: :api,
|
18
|
-
opts: { stripe_context: context }
|
19
|
-
)
|
20
|
-
end
|
21
|
-
attr_reader :related_object
|
22
|
-
end
|
23
|
-
|
24
|
-
# Sent after a failed authorization if there are no retries remaining, or if the failure is unretryable.
|
25
|
-
class V2PaymentsOffSessionPaymentFailedEventNotification < Stripe::V2::Core::EventNotification
|
26
|
-
def self.lookup_type
|
27
|
-
"v2.payments.off_session_payment.failed"
|
28
|
-
end
|
29
|
-
|
30
|
-
attr_reader :related_object
|
31
|
-
|
32
|
-
# Retrieves the OffSessionPayment related to this EventNotification from the Stripe API. Makes an API request on every call.
|
33
|
-
def fetch_related_object
|
34
|
-
resp = @client.raw_request(
|
35
|
-
:get,
|
36
|
-
related_object.url,
|
37
|
-
opts: { stripe_context: context },
|
38
|
-
usage: ["fetch_related_object"]
|
39
|
-
)
|
40
|
-
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Events
|
6
|
-
# Off-Session payment requires capture event definition.
|
7
|
-
class V2PaymentsOffSessionPaymentRequiresCaptureEvent < Stripe::V2::Core::Event
|
8
|
-
def self.lookup_type
|
9
|
-
"v2.payments.off_session_payment.requires_capture"
|
10
|
-
end
|
11
|
-
|
12
|
-
# Retrieves the related object from the API. Makes an API request on every call.
|
13
|
-
def fetch_related_object
|
14
|
-
_request(
|
15
|
-
method: :get,
|
16
|
-
path: related_object.url,
|
17
|
-
base_address: :api,
|
18
|
-
opts: { stripe_context: context }
|
19
|
-
)
|
20
|
-
end
|
21
|
-
attr_reader :related_object
|
22
|
-
end
|
23
|
-
|
24
|
-
# Off-Session payment requires capture event definition.
|
25
|
-
class V2PaymentsOffSessionPaymentRequiresCaptureEventNotification < Stripe::V2::Core::EventNotification
|
26
|
-
def self.lookup_type
|
27
|
-
"v2.payments.off_session_payment.requires_capture"
|
28
|
-
end
|
29
|
-
|
30
|
-
attr_reader :related_object
|
31
|
-
|
32
|
-
# Retrieves the OffSessionPayment related to this EventNotification from the Stripe API. Makes an API request on every call.
|
33
|
-
def fetch_related_object
|
34
|
-
resp = @client.raw_request(
|
35
|
-
:get,
|
36
|
-
related_object.url,
|
37
|
-
opts: { stripe_context: context },
|
38
|
-
usage: ["fetch_related_object"]
|
39
|
-
)
|
40
|
-
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,44 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Events
|
6
|
-
# Sent immediately after a successful authorization.
|
7
|
-
class V2PaymentsOffSessionPaymentSucceededEvent < Stripe::V2::Core::Event
|
8
|
-
def self.lookup_type
|
9
|
-
"v2.payments.off_session_payment.succeeded"
|
10
|
-
end
|
11
|
-
|
12
|
-
# Retrieves the related object from the API. Makes an API request on every call.
|
13
|
-
def fetch_related_object
|
14
|
-
_request(
|
15
|
-
method: :get,
|
16
|
-
path: related_object.url,
|
17
|
-
base_address: :api,
|
18
|
-
opts: { stripe_context: context }
|
19
|
-
)
|
20
|
-
end
|
21
|
-
attr_reader :related_object
|
22
|
-
end
|
23
|
-
|
24
|
-
# Sent immediately after a successful authorization.
|
25
|
-
class V2PaymentsOffSessionPaymentSucceededEventNotification < Stripe::V2::Core::EventNotification
|
26
|
-
def self.lookup_type
|
27
|
-
"v2.payments.off_session_payment.succeeded"
|
28
|
-
end
|
29
|
-
|
30
|
-
attr_reader :related_object
|
31
|
-
|
32
|
-
# Retrieves the OffSessionPayment related to this EventNotification from the Stripe API. Makes an API request on every call.
|
33
|
-
def fetch_related_object
|
34
|
-
resp = @client.raw_request(
|
35
|
-
:get,
|
36
|
-
related_object.url,
|
37
|
-
opts: { stripe_context: context },
|
38
|
-
usage: ["fetch_related_object"]
|
39
|
-
)
|
40
|
-
@client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
|
41
|
-
end
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class AccountNoticeListParams < Stripe::RequestParams
|
6
|
-
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
7
|
-
attr_accessor :ending_before
|
8
|
-
# Specifies which fields in the response should be expanded.
|
9
|
-
attr_accessor :expand
|
10
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
11
|
-
attr_accessor :limit
|
12
|
-
# Set to false to only return unsent AccountNotices.
|
13
|
-
attr_accessor :sent
|
14
|
-
# 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.
|
15
|
-
attr_accessor :starting_after
|
16
|
-
|
17
|
-
def initialize(ending_before: nil, expand: nil, limit: nil, sent: nil, starting_after: nil)
|
18
|
-
@ending_before = ending_before
|
19
|
-
@expand = expand
|
20
|
-
@limit = limit
|
21
|
-
@sent = sent
|
22
|
-
@starting_after = starting_after
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class AccountNoticeRetrieveParams < Stripe::RequestParams
|
6
|
-
# Specifies which fields in the response should be expanded.
|
7
|
-
attr_accessor :expand
|
8
|
-
|
9
|
-
def initialize(expand: nil)
|
10
|
-
@expand = expand
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class AccountNoticeUpdateParams < Stripe::RequestParams
|
6
|
-
class Email < Stripe::RequestParams
|
7
|
-
# Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
|
8
|
-
attr_accessor :plain_text
|
9
|
-
# Email address of the recipient.
|
10
|
-
attr_accessor :recipient
|
11
|
-
# Subject of the email.
|
12
|
-
attr_accessor :subject
|
13
|
-
|
14
|
-
def initialize(plain_text: nil, recipient: nil, subject: nil)
|
15
|
-
@plain_text = plain_text
|
16
|
-
@recipient = recipient
|
17
|
-
@subject = subject
|
18
|
-
end
|
19
|
-
end
|
20
|
-
# Information about the email you sent.
|
21
|
-
attr_accessor :email
|
22
|
-
# Specifies which fields in the response should be expanded.
|
23
|
-
attr_accessor :expand
|
24
|
-
# 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`.
|
25
|
-
attr_accessor :metadata
|
26
|
-
# Date when you sent the notice.
|
27
|
-
attr_accessor :sent_at
|
28
|
-
|
29
|
-
def initialize(email: nil, expand: nil, metadata: nil, sent_at: nil)
|
30
|
-
@email = email
|
31
|
-
@expand = expand
|
32
|
-
@metadata = metadata
|
33
|
-
@sent_at = sent_at
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
@@ -1,65 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Billing
|
6
|
-
module Analytics
|
7
|
-
class MeterUsageRetrieveParams < Stripe::RequestParams
|
8
|
-
class Meter < Stripe::RequestParams
|
9
|
-
# Key-value pairs used to filter usage events by meter dimension values. If specified, usage will be filtered for matching usage events.
|
10
|
-
attr_accessor :dimension_filters
|
11
|
-
# List of meter dimension keys to group by. If specified, usage events will be grouped by the given meter dimension key's values.
|
12
|
-
attr_accessor :dimension_group_by_keys
|
13
|
-
# Meter id to query usage for.
|
14
|
-
attr_accessor :meter
|
15
|
-
# Key-value pairs used to filter usage events by high cardinality tenant dimension values. If specified, usage will be filtered for matching usage events.
|
16
|
-
attr_accessor :tenant_filters
|
17
|
-
|
18
|
-
def initialize(
|
19
|
-
dimension_filters: nil,
|
20
|
-
dimension_group_by_keys: nil,
|
21
|
-
meter: nil,
|
22
|
-
tenant_filters: nil
|
23
|
-
)
|
24
|
-
@dimension_filters = dimension_filters
|
25
|
-
@dimension_group_by_keys = dimension_group_by_keys
|
26
|
-
@meter = meter
|
27
|
-
@tenant_filters = tenant_filters
|
28
|
-
end
|
29
|
-
end
|
30
|
-
# The customer id to fetch meter usage data for.
|
31
|
-
attr_accessor :customer
|
32
|
-
# The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries.
|
33
|
-
attr_accessor :ends_at
|
34
|
-
# Specifies which fields in the response should be expanded.
|
35
|
-
attr_accessor :expand
|
36
|
-
# An array of meter parameters to specify which meters to include in the usage data. If not specified, usage across all meters for the customer is included.
|
37
|
-
attr_accessor :meters
|
38
|
-
# The timestamp from when to start aggregating meter events (inclusive). Must be aligned with minute boundaries.
|
39
|
-
attr_accessor :starts_at
|
40
|
-
# The timezone to use for the start and end times. Defaults to UTC if not specified.
|
41
|
-
attr_accessor :timezone
|
42
|
-
# Specifies what granularity to use when aggregating meter usage events. If not specified, a single event would be returned for the specified time range.
|
43
|
-
attr_accessor :value_grouping_window
|
44
|
-
|
45
|
-
def initialize(
|
46
|
-
customer: nil,
|
47
|
-
ends_at: nil,
|
48
|
-
expand: nil,
|
49
|
-
meters: nil,
|
50
|
-
starts_at: nil,
|
51
|
-
timezone: nil,
|
52
|
-
value_grouping_window: nil
|
53
|
-
)
|
54
|
-
@customer = customer
|
55
|
-
@ends_at = ends_at
|
56
|
-
@expand = expand
|
57
|
-
@meters = meters
|
58
|
-
@starts_at = starts_at
|
59
|
-
@timezone = timezone
|
60
|
-
@value_grouping_window = value_grouping_window
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
class FinancingOfferListParams < Stripe::RequestParams
|
7
|
-
class Created < Stripe::RequestParams
|
8
|
-
# Minimum value to filter by (exclusive)
|
9
|
-
attr_accessor :gt
|
10
|
-
# Minimum value to filter by (inclusive)
|
11
|
-
attr_accessor :gte
|
12
|
-
# Maximum value to filter by (exclusive)
|
13
|
-
attr_accessor :lt
|
14
|
-
# Maximum value to filter by (inclusive)
|
15
|
-
attr_accessor :lte
|
16
|
-
|
17
|
-
def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
|
18
|
-
@gt = gt
|
19
|
-
@gte = gte
|
20
|
-
@lt = lt
|
21
|
-
@lte = lte
|
22
|
-
end
|
23
|
-
end
|
24
|
-
# limit list to offers belonging to given connected account
|
25
|
-
attr_accessor :connected_account
|
26
|
-
# Only return offers that were created during the given date interval.
|
27
|
-
attr_accessor :created
|
28
|
-
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
29
|
-
attr_accessor :ending_before
|
30
|
-
# Specifies which fields in the response should be expanded.
|
31
|
-
attr_accessor :expand
|
32
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
33
|
-
attr_accessor :limit
|
34
|
-
# 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.
|
35
|
-
attr_accessor :starting_after
|
36
|
-
# limit list to offers with given status
|
37
|
-
attr_accessor :status
|
38
|
-
|
39
|
-
def initialize(
|
40
|
-
connected_account: nil,
|
41
|
-
created: nil,
|
42
|
-
ending_before: nil,
|
43
|
-
expand: nil,
|
44
|
-
limit: nil,
|
45
|
-
starting_after: nil,
|
46
|
-
status: nil
|
47
|
-
)
|
48
|
-
@connected_account = connected_account
|
49
|
-
@created = created
|
50
|
-
@ending_before = ending_before
|
51
|
-
@expand = expand
|
52
|
-
@limit = limit
|
53
|
-
@starting_after = starting_after
|
54
|
-
@status = status
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
class FinancingOfferMarkDeliveredParams < Stripe::RequestParams
|
7
|
-
# Specifies which fields in the response should be expanded.
|
8
|
-
attr_accessor :expand
|
9
|
-
|
10
|
-
def initialize(expand: nil)
|
11
|
-
@expand = expand
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
class FinancingOfferRetrieveParams < Stripe::RequestParams
|
7
|
-
# Specifies which fields in the response should be expanded.
|
8
|
-
attr_accessor :expand
|
9
|
-
|
10
|
-
def initialize(expand: nil)
|
11
|
-
@expand = expand
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
class FinancingSummaryRetrieveParams < Stripe::RequestParams
|
7
|
-
# Specifies which fields in the response should be expanded.
|
8
|
-
attr_accessor :expand
|
9
|
-
|
10
|
-
def initialize(expand: nil)
|
11
|
-
@expand = expand
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,45 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
class FinancingTransactionListParams < Stripe::RequestParams
|
7
|
-
# For transactions of type `paydown` and reason `automatic_withholding` only, only returns transactions that were created as a result of this charge.
|
8
|
-
attr_accessor :charge
|
9
|
-
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
10
|
-
attr_accessor :ending_before
|
11
|
-
# Specifies which fields in the response should be expanded.
|
12
|
-
attr_accessor :expand
|
13
|
-
# Returns transactions that were created that apply to this financing offer ID.
|
14
|
-
attr_accessor :financing_offer
|
15
|
-
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
16
|
-
attr_accessor :limit
|
17
|
-
# Only returns transactions that are responsible for reversing this financing transaction ID.
|
18
|
-
attr_accessor :reversed_transaction
|
19
|
-
# 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.
|
20
|
-
attr_accessor :starting_after
|
21
|
-
# For transactions of type `paydown` and reason `automatic_withholding` only, only returns transactions that were created as a result of this Treasury Transaction.
|
22
|
-
attr_accessor :treasury_transaction
|
23
|
-
|
24
|
-
def initialize(
|
25
|
-
charge: nil,
|
26
|
-
ending_before: nil,
|
27
|
-
expand: nil,
|
28
|
-
financing_offer: nil,
|
29
|
-
limit: nil,
|
30
|
-
reversed_transaction: nil,
|
31
|
-
starting_after: nil,
|
32
|
-
treasury_transaction: nil
|
33
|
-
)
|
34
|
-
@charge = charge
|
35
|
-
@ending_before = ending_before
|
36
|
-
@expand = expand
|
37
|
-
@financing_offer = financing_offer
|
38
|
-
@limit = limit
|
39
|
-
@reversed_transaction = reversed_transaction
|
40
|
-
@starting_after = starting_after
|
41
|
-
@treasury_transaction = treasury_transaction
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
class FinancingTransactionRetrieveParams < Stripe::RequestParams
|
7
|
-
# Specifies which fields in the response should be expanded.
|
8
|
-
attr_accessor :expand
|
9
|
-
|
10
|
-
def initialize(expand: nil)
|
11
|
-
@expand = expand
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,134 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class ExternalAccountCreateParams < Stripe::RequestParams
|
6
|
-
class BankAccount < Stripe::RequestParams
|
7
|
-
# Attribute for param field object
|
8
|
-
attr_accessor :object
|
9
|
-
# The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object.
|
10
|
-
attr_accessor :account_holder_name
|
11
|
-
# The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object.
|
12
|
-
attr_accessor :account_holder_type
|
13
|
-
# The account number for the bank account, in string form. Must be a checking account.
|
14
|
-
attr_accessor :account_number
|
15
|
-
# The country in which the bank account is located.
|
16
|
-
attr_accessor :country
|
17
|
-
# The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts)
|
18
|
-
attr_accessor :currency
|
19
|
-
# The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required.
|
20
|
-
attr_accessor :routing_number
|
21
|
-
|
22
|
-
def initialize(
|
23
|
-
object: nil,
|
24
|
-
account_holder_name: nil,
|
25
|
-
account_holder_type: nil,
|
26
|
-
account_number: nil,
|
27
|
-
country: nil,
|
28
|
-
currency: nil,
|
29
|
-
routing_number: nil
|
30
|
-
)
|
31
|
-
@object = object
|
32
|
-
@account_holder_name = account_holder_name
|
33
|
-
@account_holder_type = account_holder_type
|
34
|
-
@account_number = account_number
|
35
|
-
@country = country
|
36
|
-
@currency = currency
|
37
|
-
@routing_number = routing_number
|
38
|
-
end
|
39
|
-
end
|
40
|
-
|
41
|
-
class Card < Stripe::RequestParams
|
42
|
-
# Attribute for param field object
|
43
|
-
attr_accessor :object
|
44
|
-
# Attribute for param field address_city
|
45
|
-
attr_accessor :address_city
|
46
|
-
# Attribute for param field address_country
|
47
|
-
attr_accessor :address_country
|
48
|
-
# Attribute for param field address_line1
|
49
|
-
attr_accessor :address_line1
|
50
|
-
# Attribute for param field address_line2
|
51
|
-
attr_accessor :address_line2
|
52
|
-
# Attribute for param field address_state
|
53
|
-
attr_accessor :address_state
|
54
|
-
# Attribute for param field address_zip
|
55
|
-
attr_accessor :address_zip
|
56
|
-
# Attribute for param field currency
|
57
|
-
attr_accessor :currency
|
58
|
-
# Attribute for param field cvc
|
59
|
-
attr_accessor :cvc
|
60
|
-
# Attribute for param field exp_month
|
61
|
-
attr_accessor :exp_month
|
62
|
-
# Attribute for param field exp_year
|
63
|
-
attr_accessor :exp_year
|
64
|
-
# Attribute for param field name
|
65
|
-
attr_accessor :name
|
66
|
-
# Attribute for param field number
|
67
|
-
attr_accessor :number
|
68
|
-
# 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.
|
69
|
-
attr_accessor :metadata
|
70
|
-
|
71
|
-
def initialize(
|
72
|
-
object: nil,
|
73
|
-
address_city: nil,
|
74
|
-
address_country: nil,
|
75
|
-
address_line1: nil,
|
76
|
-
address_line2: nil,
|
77
|
-
address_state: nil,
|
78
|
-
address_zip: nil,
|
79
|
-
currency: nil,
|
80
|
-
cvc: nil,
|
81
|
-
exp_month: nil,
|
82
|
-
exp_year: nil,
|
83
|
-
name: nil,
|
84
|
-
number: nil,
|
85
|
-
metadata: nil
|
86
|
-
)
|
87
|
-
@object = object
|
88
|
-
@address_city = address_city
|
89
|
-
@address_country = address_country
|
90
|
-
@address_line1 = address_line1
|
91
|
-
@address_line2 = address_line2
|
92
|
-
@address_state = address_state
|
93
|
-
@address_zip = address_zip
|
94
|
-
@currency = currency
|
95
|
-
@cvc = cvc
|
96
|
-
@exp_month = exp_month
|
97
|
-
@exp_year = exp_year
|
98
|
-
@name = name
|
99
|
-
@number = number
|
100
|
-
@metadata = metadata
|
101
|
-
end
|
102
|
-
end
|
103
|
-
|
104
|
-
class CardToken < Stripe::RequestParams
|
105
|
-
# Attribute for param field object
|
106
|
-
attr_accessor :object
|
107
|
-
# Attribute for param field currency
|
108
|
-
attr_accessor :currency
|
109
|
-
# Attribute for param field token
|
110
|
-
attr_accessor :token
|
111
|
-
|
112
|
-
def initialize(object: nil, currency: nil, token: nil)
|
113
|
-
@object = object
|
114
|
-
@currency = currency
|
115
|
-
@token = token
|
116
|
-
end
|
117
|
-
end
|
118
|
-
# When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency.
|
119
|
-
attr_accessor :default_for_currency
|
120
|
-
# Specifies which fields in the response should be expanded.
|
121
|
-
attr_accessor :expand
|
122
|
-
# Either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary containing a user’s external account details (with the options shown below).
|
123
|
-
attr_accessor :external_account
|
124
|
-
# 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`.
|
125
|
-
attr_accessor :metadata
|
126
|
-
|
127
|
-
def initialize(default_for_currency: nil, expand: nil, external_account: nil, metadata: nil)
|
128
|
-
@default_for_currency = default_for_currency
|
129
|
-
@expand = expand
|
130
|
-
@external_account = external_account
|
131
|
-
@metadata = metadata
|
132
|
-
end
|
133
|
-
end
|
134
|
-
end
|