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,237 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Payments
|
7
|
-
class OffSessionPaymentCreateParams < Stripe::RequestParams
|
8
|
-
class AmountDetails < Stripe::RequestParams
|
9
|
-
class LineItem < Stripe::RequestParams
|
10
|
-
class Tax < Stripe::RequestParams
|
11
|
-
# Total portion of the amount that is for tax.
|
12
|
-
attr_accessor :total_tax_amount
|
13
|
-
|
14
|
-
def initialize(total_tax_amount: nil)
|
15
|
-
@total_tax_amount = total_tax_amount
|
16
|
-
end
|
17
|
-
end
|
18
|
-
# The amount an item was discounted for. Positive integer.
|
19
|
-
attr_accessor :discount_amount
|
20
|
-
# Unique identifier of the product. At most 12 characters long.
|
21
|
-
attr_accessor :product_code
|
22
|
-
# Name of the product. At most 100 characters long.
|
23
|
-
attr_accessor :product_name
|
24
|
-
# Number of items of the product. Positive integer.
|
25
|
-
attr_accessor :quantity
|
26
|
-
# Contains information about the tax on the item.
|
27
|
-
attr_accessor :tax
|
28
|
-
# Cost of the product. Non-negative integer.
|
29
|
-
attr_accessor :unit_cost
|
30
|
-
|
31
|
-
def initialize(
|
32
|
-
discount_amount: nil,
|
33
|
-
product_code: nil,
|
34
|
-
product_name: nil,
|
35
|
-
quantity: nil,
|
36
|
-
tax: nil,
|
37
|
-
unit_cost: nil
|
38
|
-
)
|
39
|
-
@discount_amount = discount_amount
|
40
|
-
@product_code = product_code
|
41
|
-
@product_name = product_name
|
42
|
-
@quantity = quantity
|
43
|
-
@tax = tax
|
44
|
-
@unit_cost = unit_cost
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
class Shipping < Stripe::RequestParams
|
49
|
-
# Portion of the amount that is for shipping.
|
50
|
-
attr_accessor :amount
|
51
|
-
# The postal code that represents the shipping source.
|
52
|
-
attr_accessor :from_postal_code
|
53
|
-
# The postal code that represents the shipping destination.
|
54
|
-
attr_accessor :to_postal_code
|
55
|
-
|
56
|
-
def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil)
|
57
|
-
@amount = amount
|
58
|
-
@from_postal_code = from_postal_code
|
59
|
-
@to_postal_code = to_postal_code
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
class Tax < Stripe::RequestParams
|
64
|
-
# Total portion of the amount that is for tax.
|
65
|
-
attr_accessor :total_tax_amount
|
66
|
-
|
67
|
-
def initialize(total_tax_amount: nil)
|
68
|
-
@total_tax_amount = total_tax_amount
|
69
|
-
end
|
70
|
-
end
|
71
|
-
# The amount the total transaction was discounted for.
|
72
|
-
attr_accessor :discount_amount
|
73
|
-
# A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items.
|
74
|
-
attr_accessor :line_items
|
75
|
-
# Contains information about the shipping portion of the amount.
|
76
|
-
attr_accessor :shipping
|
77
|
-
# Contains information about the tax portion of the amount.
|
78
|
-
attr_accessor :tax
|
79
|
-
|
80
|
-
def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil)
|
81
|
-
@discount_amount = discount_amount
|
82
|
-
@line_items = line_items
|
83
|
-
@shipping = shipping
|
84
|
-
@tax = tax
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
class Capture < Stripe::RequestParams
|
89
|
-
# The method to use to capture the payment.
|
90
|
-
attr_accessor :capture_method
|
91
|
-
|
92
|
-
def initialize(capture_method: nil)
|
93
|
-
@capture_method = capture_method
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
class PaymentMethodOptions < Stripe::RequestParams
|
98
|
-
class Card < Stripe::RequestParams
|
99
|
-
# If you are making a Credential On File transaction with a previously saved card, you should pass the Network Transaction ID
|
100
|
-
# from a prior initial authorization on Stripe (from a successful SetupIntent or a PaymentIntent with `setup_future_usage` set),
|
101
|
-
# or one that you have obtained from another payment processor. This is a token from the network which uniquely identifies the transaction.
|
102
|
-
# Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data.
|
103
|
-
# Note that you should pass in a Network Transaction ID if you have one, regardless of whether this is a
|
104
|
-
# Customer-Initiated Transaction (CIT) or a Merchant-Initiated Transaction (MIT).
|
105
|
-
attr_accessor :network_transaction_id
|
106
|
-
|
107
|
-
def initialize(network_transaction_id: nil)
|
108
|
-
@network_transaction_id = network_transaction_id
|
109
|
-
end
|
110
|
-
end
|
111
|
-
# Payment method options for the card payment type.
|
112
|
-
attr_accessor :card
|
113
|
-
|
114
|
-
def initialize(card: nil)
|
115
|
-
@card = card
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
|
-
class PaymentsOrchestration < Stripe::RequestParams
|
120
|
-
# True when you want to enable payments orchestration for this off-session payment. False otherwise.
|
121
|
-
attr_accessor :enabled
|
122
|
-
|
123
|
-
def initialize(enabled: nil)
|
124
|
-
@enabled = enabled
|
125
|
-
end
|
126
|
-
end
|
127
|
-
|
128
|
-
class RetryDetails < Stripe::RequestParams
|
129
|
-
# The pre-configured retry policy to use for the payment.
|
130
|
-
attr_accessor :retry_policy
|
131
|
-
# Indicates the strategy for how you want Stripe to retry the payment.
|
132
|
-
attr_accessor :retry_strategy
|
133
|
-
|
134
|
-
def initialize(retry_policy: nil, retry_strategy: nil)
|
135
|
-
@retry_policy = retry_policy
|
136
|
-
@retry_strategy = retry_strategy
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
class TransferData < Stripe::RequestParams
|
141
|
-
# The amount transferred to the destination account. This transfer will occur
|
142
|
-
# automatically after the payment succeeds. If no amount is specified, by default
|
143
|
-
# the entire payment amount is transferred to the destination account. The amount
|
144
|
-
# must be less than or equal to the
|
145
|
-
# [amount_requested](https://docs.corp.stripe.com/api/v2/off-session-payments/object?api-version=2025-05-28.preview#v2_off_session_payment_object-amount_requested),
|
146
|
-
# and must be a positive integer representing how much to transfer in the smallest
|
147
|
-
# currency unit (e.g., 100 cents to charge $1.00).
|
148
|
-
attr_accessor :amount
|
149
|
-
# The account (if any) that the payment is attributed to for tax reporting, and
|
150
|
-
# where funds from the payment are transferred to after payment success.
|
151
|
-
attr_accessor :destination
|
152
|
-
|
153
|
-
def initialize(amount: nil, destination: nil)
|
154
|
-
@amount = amount
|
155
|
-
@destination = destination
|
156
|
-
end
|
157
|
-
end
|
158
|
-
# The “presentment amount” to be collected from the customer.
|
159
|
-
attr_accessor :amount
|
160
|
-
# Provides industry-specific information about the amount.
|
161
|
-
attr_accessor :amount_details
|
162
|
-
# The frequency of the underlying payment.
|
163
|
-
attr_accessor :cadence
|
164
|
-
# Details about the capture configuration for the OffSessionPayment.
|
165
|
-
attr_accessor :capture
|
166
|
-
# Whether the OffSessionPayment should be captured automatically or manually.
|
167
|
-
attr_accessor :capture_method
|
168
|
-
# ID of the Customer to which this OffSessionPayment belongs.
|
169
|
-
attr_accessor :customer
|
170
|
-
# Set of [key-value pairs](https://docs.corp.stripe.com/api/metadata) that you can
|
171
|
-
# attach to an object. This can be useful for storing additional information about
|
172
|
-
# the object in a structured format. Learn more about
|
173
|
-
# [storing information in metadata](https://docs.corp.stripe.com/payments/payment-intents#storing-information-in-metadata).
|
174
|
-
attr_accessor :metadata
|
175
|
-
# The account (if any) for which the funds of the OffSessionPayment are intended.
|
176
|
-
attr_accessor :on_behalf_of
|
177
|
-
# ID of the payment method used in this OffSessionPayment.
|
178
|
-
attr_accessor :payment_method
|
179
|
-
# Payment method options for the off-session payment.
|
180
|
-
attr_accessor :payment_method_options
|
181
|
-
# Details about the payments orchestration configuration.
|
182
|
-
attr_accessor :payments_orchestration
|
183
|
-
# Details about the OffSessionPayment retries.
|
184
|
-
attr_accessor :retry_details
|
185
|
-
# Text that appears on the customer’s statement as the statement descriptor for a
|
186
|
-
# non-card charge. This value overrides the account’s default statement descriptor.
|
187
|
-
# For information about requirements, including the 22-character limit, see the
|
188
|
-
# [Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
|
189
|
-
attr_accessor :statement_descriptor
|
190
|
-
# Provides information about a card charge. Concatenated to the account’s
|
191
|
-
# [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static)
|
192
|
-
# to form the complete statement descriptor that appears on the customer’s statement.
|
193
|
-
attr_accessor :statement_descriptor_suffix
|
194
|
-
# Test clock that can be used to advance the retry attempts in a sandbox.
|
195
|
-
attr_accessor :test_clock
|
196
|
-
# The data that automatically creates a Transfer after the payment finalizes. Learn more about the use case for [connected accounts](https://docs.corp.stripe.com/payments/connected-accounts).
|
197
|
-
attr_accessor :transfer_data
|
198
|
-
|
199
|
-
def initialize(
|
200
|
-
amount: nil,
|
201
|
-
amount_details: nil,
|
202
|
-
cadence: nil,
|
203
|
-
capture: nil,
|
204
|
-
capture_method: nil,
|
205
|
-
customer: nil,
|
206
|
-
metadata: nil,
|
207
|
-
on_behalf_of: nil,
|
208
|
-
payment_method: nil,
|
209
|
-
payment_method_options: nil,
|
210
|
-
payments_orchestration: nil,
|
211
|
-
retry_details: nil,
|
212
|
-
statement_descriptor: nil,
|
213
|
-
statement_descriptor_suffix: nil,
|
214
|
-
test_clock: nil,
|
215
|
-
transfer_data: nil
|
216
|
-
)
|
217
|
-
@amount = amount
|
218
|
-
@amount_details = amount_details
|
219
|
-
@cadence = cadence
|
220
|
-
@capture = capture
|
221
|
-
@capture_method = capture_method
|
222
|
-
@customer = customer
|
223
|
-
@metadata = metadata
|
224
|
-
@on_behalf_of = on_behalf_of
|
225
|
-
@payment_method = payment_method
|
226
|
-
@payment_method_options = payment_method_options
|
227
|
-
@payments_orchestration = payments_orchestration
|
228
|
-
@retry_details = retry_details
|
229
|
-
@statement_descriptor = statement_descriptor
|
230
|
-
@statement_descriptor_suffix = statement_descriptor_suffix
|
231
|
-
@test_clock = test_clock
|
232
|
-
@transfer_data = transfer_data
|
233
|
-
end
|
234
|
-
end
|
235
|
-
end
|
236
|
-
end
|
237
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module Payments
|
7
|
-
class OffSessionPaymentListParams < Stripe::RequestParams
|
8
|
-
# The page size limit. If not provided, the default is 20.
|
9
|
-
attr_accessor :limit
|
10
|
-
|
11
|
-
def initialize(limit: nil)
|
12
|
-
@limit = limit
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module V2
|
6
|
-
module TestHelpers
|
7
|
-
class FinancialAddressCreditParams < Stripe::RequestParams
|
8
|
-
# Object containing the amount value and currency to credit.
|
9
|
-
attr_accessor :amount
|
10
|
-
# Open Enum. The network to use in simulating the funds flow. This will be the reflected in the resulting ReceivedCredit.
|
11
|
-
attr_accessor :network
|
12
|
-
# String explaining funds flow. Use this field to populate the statement descriptor of the ReceivedCredit created as an eventual result of this simulation.
|
13
|
-
attr_accessor :statement_descriptor
|
14
|
-
|
15
|
-
def initialize(amount: nil, network: nil, statement_descriptor: nil)
|
16
|
-
@amount = amount
|
17
|
-
@network = network
|
18
|
-
@statement_descriptor = statement_descriptor
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
@@ -1,94 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
# A notice to a Connected account. Notice can be sent by Stripe on your behalf or you can opt to send the notices yourself.
|
6
|
-
#
|
7
|
-
# See the [guide to send notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) to your connected accounts.
|
8
|
-
class AccountNotice < APIResource
|
9
|
-
extend Stripe::APIOperations::List
|
10
|
-
include Stripe::APIOperations::Save
|
11
|
-
|
12
|
-
OBJECT_NAME = "account_notice"
|
13
|
-
def self.object_name
|
14
|
-
"account_notice"
|
15
|
-
end
|
16
|
-
|
17
|
-
class Email < Stripe::StripeObject
|
18
|
-
# Content of the email in plain text. The copy must match exactly the language that Stripe Compliance has approved for use.
|
19
|
-
attr_reader :plain_text
|
20
|
-
# Email address of the recipient.
|
21
|
-
attr_reader :recipient
|
22
|
-
# Subject of the email.
|
23
|
-
attr_reader :subject
|
24
|
-
|
25
|
-
def self.inner_class_types
|
26
|
-
@inner_class_types = {}
|
27
|
-
end
|
28
|
-
|
29
|
-
def self.field_remappings
|
30
|
-
@field_remappings = {}
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
class LinkedObjects < Stripe::StripeObject
|
35
|
-
# Associated [Capability](https://stripe.com/docs/api/capabilities)
|
36
|
-
attr_reader :capability
|
37
|
-
# Associated [Credit Underwriting Record](https://stripe.com/docs/api/issuing/credit_underwriting_record)
|
38
|
-
attr_reader :issuing_credit_underwriting_record
|
39
|
-
# Associated [Issuing Dispute](https://stripe.com/docs/api/issuing/disputes)
|
40
|
-
attr_reader :issuing_dispute
|
41
|
-
|
42
|
-
def self.inner_class_types
|
43
|
-
@inner_class_types = {}
|
44
|
-
end
|
45
|
-
|
46
|
-
def self.field_remappings
|
47
|
-
@field_remappings = {}
|
48
|
-
end
|
49
|
-
end
|
50
|
-
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
51
|
-
attr_reader :created
|
52
|
-
# When present, the deadline for sending the notice to meet the relevant regulations.
|
53
|
-
attr_reader :deadline
|
54
|
-
# Information about the email when sent.
|
55
|
-
attr_reader :email
|
56
|
-
# Unique identifier for the object.
|
57
|
-
attr_reader :id
|
58
|
-
# Information about objects related to the notice.
|
59
|
-
attr_reader :linked_objects
|
60
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
61
|
-
attr_reader :livemode
|
62
|
-
# 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.
|
63
|
-
attr_reader :metadata
|
64
|
-
# String representing the object's type. Objects of the same type share the same value.
|
65
|
-
attr_reader :object
|
66
|
-
# Reason the notice is being sent. The reason determines what copy the notice must contain. See the [regulated customer notices](https://stripe.com/docs/issuing/compliance-us/issuing-regulated-customer-notices) guide. All reasons might not apply to your integration, and Stripe might add new reasons in the future, so we recommend an internal warning when you receive an unknown reason.
|
67
|
-
attr_reader :reason
|
68
|
-
# Date when the notice was sent. When absent, you must send the notice, update the content of the email and date when it was sent.
|
69
|
-
attr_reader :sent_at
|
70
|
-
|
71
|
-
# Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
|
72
|
-
def self.list(params = {}, opts = {})
|
73
|
-
request_stripe_object(method: :get, path: "/v1/account_notices", params: params, opts: opts)
|
74
|
-
end
|
75
|
-
|
76
|
-
# Updates an AccountNotice object.
|
77
|
-
def self.update(account_notice, params = {}, opts = {})
|
78
|
-
request_stripe_object(
|
79
|
-
method: :post,
|
80
|
-
path: format("/v1/account_notices/%<account_notice>s", { account_notice: CGI.escape(account_notice) }),
|
81
|
-
params: params,
|
82
|
-
opts: opts
|
83
|
-
)
|
84
|
-
end
|
85
|
-
|
86
|
-
def self.inner_class_types
|
87
|
-
@inner_class_types = { email: Email, linked_objects: LinkedObjects }
|
88
|
-
end
|
89
|
-
|
90
|
-
def self.field_remappings
|
91
|
-
@field_remappings = {}
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
@@ -1,33 +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
|
-
# A billing meter usage event represents an aggregated view of a customer's billing meter events within a specified timeframe.
|
8
|
-
class MeterUsage < SingletonAPIResource
|
9
|
-
OBJECT_NAME = "billing.analytics.meter_usage"
|
10
|
-
def self.object_name
|
11
|
-
"billing.analytics.meter_usage"
|
12
|
-
end
|
13
|
-
|
14
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
15
|
-
attr_reader :livemode
|
16
|
-
# String representing the object's type. Objects of the same type share the same value.
|
17
|
-
attr_reader :object
|
18
|
-
# The timestamp to indicate data freshness, measured in seconds since the Unix epoch.
|
19
|
-
attr_reader :refreshed_at
|
20
|
-
# Attribute for field rows
|
21
|
-
attr_reader :rows
|
22
|
-
|
23
|
-
def self.inner_class_types
|
24
|
-
@inner_class_types = {}
|
25
|
-
end
|
26
|
-
|
27
|
-
def self.field_remappings
|
28
|
-
@field_remappings = {}
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
@@ -1,38 +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 MeterUsageRow < APIResource
|
8
|
-
OBJECT_NAME = "billing.analytics.meter_usage_row"
|
9
|
-
def self.object_name
|
10
|
-
"billing.analytics.meter_usage_row"
|
11
|
-
end
|
12
|
-
|
13
|
-
# A set of key-value pairs representing the dimensions of the meter usage.
|
14
|
-
attr_reader :dimensions
|
15
|
-
# Timestamp indicating the end of the bucket. Measured in seconds since the Unix epoch.
|
16
|
-
attr_reader :ends_at
|
17
|
-
# Unique identifier for the object.
|
18
|
-
attr_reader :id
|
19
|
-
# The unique identifier for the meter. Null if no meters were provided and usage was aggregated across all meters.
|
20
|
-
attr_reader :meter
|
21
|
-
# String representing the object's type. Objects of the same type share the same value.
|
22
|
-
attr_reader :object
|
23
|
-
# Timestamp indicating the start of the bucket. Measured in seconds since the Unix epoch.
|
24
|
-
attr_reader :starts_at
|
25
|
-
# The aggregated meter usage value for the specified bucket.
|
26
|
-
attr_reader :value
|
27
|
-
|
28
|
-
def self.inner_class_types
|
29
|
-
@inner_class_types = {}
|
30
|
-
end
|
31
|
-
|
32
|
-
def self.field_remappings
|
33
|
-
@field_remappings = {}
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,142 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Capital
|
6
|
-
# This is an object representing an offer of financing from
|
7
|
-
# Stripe Capital to a Connect subaccount.
|
8
|
-
class FinancingOffer < APIResource
|
9
|
-
extend Stripe::APIOperations::List
|
10
|
-
|
11
|
-
OBJECT_NAME = "capital.financing_offer"
|
12
|
-
def self.object_name
|
13
|
-
"capital.financing_offer"
|
14
|
-
end
|
15
|
-
|
16
|
-
class AcceptedTerms < Stripe::StripeObject
|
17
|
-
# Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
18
|
-
attr_reader :advance_amount
|
19
|
-
# Currency that the financing offer is transacted in. For example, `usd`.
|
20
|
-
attr_reader :currency
|
21
|
-
# Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
|
22
|
-
attr_reader :fee_amount
|
23
|
-
# Populated when the `product_type` of the `financingoffer` is `refill`.
|
24
|
-
# Represents the discount amount on remaining premium for the existing loan at payout time.
|
25
|
-
attr_reader :previous_financing_fee_discount_amount
|
26
|
-
# Per-transaction rate at which Stripe will withhold funds to repay the financing.
|
27
|
-
attr_reader :withhold_rate
|
28
|
-
|
29
|
-
def self.inner_class_types
|
30
|
-
@inner_class_types = {}
|
31
|
-
end
|
32
|
-
|
33
|
-
def self.field_remappings
|
34
|
-
@field_remappings = {}
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
class OfferedTerms < Stripe::StripeObject
|
39
|
-
# Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
40
|
-
attr_reader :advance_amount
|
41
|
-
# Describes the type of user the offer is being extended to.
|
42
|
-
attr_reader :campaign_type
|
43
|
-
# Currency that the financing offer is transacted in. For example, `usd`.
|
44
|
-
attr_reader :currency
|
45
|
-
# Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
|
46
|
-
attr_reader :fee_amount
|
47
|
-
# Populated when the `product_type` of the `financingoffer` is `refill`.
|
48
|
-
# Represents the discount rate percentage on remaining fee on the existing loan. When the `financing_offer`
|
49
|
-
# is paid out, the `previous_financing_fee_discount_amount` will be computed as the multiple of this rate
|
50
|
-
# and the remaining fee.
|
51
|
-
attr_reader :previous_financing_fee_discount_rate
|
52
|
-
# Per-transaction rate at which Stripe will withhold funds to repay the financing.
|
53
|
-
attr_reader :withhold_rate
|
54
|
-
|
55
|
-
def self.inner_class_types
|
56
|
-
@inner_class_types = {}
|
57
|
-
end
|
58
|
-
|
59
|
-
def self.field_remappings
|
60
|
-
@field_remappings = {}
|
61
|
-
end
|
62
|
-
end
|
63
|
-
# This is an object representing the terms of an offer of financing from
|
64
|
-
# Stripe Capital to a Connected account. This resource represents
|
65
|
-
# the terms accepted by the Connected account, which may differ from those
|
66
|
-
# offered.
|
67
|
-
attr_reader :accepted_terms
|
68
|
-
# The ID of the merchant associated with this financing object.
|
69
|
-
attr_reader :account
|
70
|
-
# The time at which this financing offer was charged off, if applicable. Given in seconds since unix epoch.
|
71
|
-
attr_reader :charged_off_at
|
72
|
-
# Time at which the offer was created. Given in seconds since unix epoch.
|
73
|
-
attr_reader :created
|
74
|
-
# Time at which the offer expires. Given in seconds since unix epoch.
|
75
|
-
attr_reader :expires_after
|
76
|
-
# The type of financing being offered.
|
77
|
-
attr_reader :financing_type
|
78
|
-
# A unique identifier for the financing object.
|
79
|
-
attr_reader :id
|
80
|
-
# Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
81
|
-
attr_reader :livemode
|
82
|
-
# 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.
|
83
|
-
attr_reader :metadata
|
84
|
-
# The object type: financing_offer.
|
85
|
-
attr_reader :object
|
86
|
-
# This is an object representing the terms of an offer of financing from
|
87
|
-
# Stripe Capital to a Connected account. This resource represents
|
88
|
-
# both the terms offered to the Connected account.
|
89
|
-
attr_reader :offered_terms
|
90
|
-
# Financing product identifier.
|
91
|
-
attr_reader :product_type
|
92
|
-
# The ID of the financing offer that replaced this offer.
|
93
|
-
attr_reader :replacement
|
94
|
-
# The ID of the financing offer that this offer is a replacement for.
|
95
|
-
attr_reader :replacement_for
|
96
|
-
# The current status of the offer.
|
97
|
-
attr_reader :status
|
98
|
-
# See [financing_type](https://stripe.com/docs/api/capital/connect_financing_object#financing_offer_object-financing_type).
|
99
|
-
attr_reader :type
|
100
|
-
|
101
|
-
# Retrieves the financing offers available for Connected accounts that belong to your platform.
|
102
|
-
def self.list(params = {}, opts = {})
|
103
|
-
request_stripe_object(
|
104
|
-
method: :get,
|
105
|
-
path: "/v1/capital/financing_offers",
|
106
|
-
params: params,
|
107
|
-
opts: opts
|
108
|
-
)
|
109
|
-
end
|
110
|
-
|
111
|
-
# Acknowledges that platform has received and delivered the financing_offer to
|
112
|
-
# the intended merchant recipient.
|
113
|
-
def mark_delivered(params = {}, opts = {})
|
114
|
-
request_stripe_object(
|
115
|
-
method: :post,
|
116
|
-
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(self["id"]) }),
|
117
|
-
params: params,
|
118
|
-
opts: opts
|
119
|
-
)
|
120
|
-
end
|
121
|
-
|
122
|
-
# Acknowledges that platform has received and delivered the financing_offer to
|
123
|
-
# the intended merchant recipient.
|
124
|
-
def self.mark_delivered(financing_offer, params = {}, opts = {})
|
125
|
-
request_stripe_object(
|
126
|
-
method: :post,
|
127
|
-
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
|
128
|
-
params: params,
|
129
|
-
opts: opts
|
130
|
-
)
|
131
|
-
end
|
132
|
-
|
133
|
-
def self.inner_class_types
|
134
|
-
@inner_class_types = { accepted_terms: AcceptedTerms, offered_terms: OfferedTerms }
|
135
|
-
end
|
136
|
-
|
137
|
-
def self.field_remappings
|
138
|
-
@field_remappings = {}
|
139
|
-
end
|
140
|
-
end
|
141
|
-
end
|
142
|
-
end
|