stripe 20.2.0.pre.beta.1 → 21.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_operations/request.rb +2 -0
- data/lib/stripe/api_requestor.rb +1 -4
- data/lib/stripe/api_version.rb +2 -2
- data/lib/stripe/errors.rb +0 -6
- data/lib/stripe/event_types.rb +0 -193
- data/lib/stripe/events/unknown_event_notification.rb +0 -1
- data/lib/stripe/object_types.rb +0 -53
- data/lib/stripe/params/account_create_params.rb +1 -299
- data/lib/stripe/params/account_session_create_params.rb +0 -191
- data/lib/stripe/params/account_update_params.rb +0 -261
- data/lib/stripe/params/balance_settings_update_params.rb +1 -9
- data/lib/stripe/params/charge_capture_params.rb +0 -1646
- data/lib/stripe/params/charge_update_params.rb +0 -1646
- data/lib/stripe/params/checkout/session_create_params.rb +3 -87
- data/lib/stripe/params/checkout/session_update_params.rb +1 -161
- data/lib/stripe/params/confirmation_token_create_params.rb +0 -92
- data/lib/stripe/params/coupon_create_params.rb +1 -17
- data/lib/stripe/params/customer_session_create_params.rb +1 -32
- data/lib/stripe/params/financial_connections/session_create_params.rb +1 -38
- data/lib/stripe/params/invoice_add_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_attach_payment_params.rb +1 -43
- data/lib/stripe/params/invoice_create_params.rb +2 -64
- data/lib/stripe/params/invoice_create_preview_params.rb +9 -772
- data/lib/stripe/params/invoice_item_create_params.rb +1 -33
- data/lib/stripe/params/invoice_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_line_item_update_params.rb +1 -33
- data/lib/stripe/params/invoice_update_lines_params.rb +1 -33
- data/lib/stripe/params/invoice_update_params.rb +2 -64
- data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -2
- data/lib/stripe/params/issuing/cardholder_update_params.rb +0 -4
- data/lib/stripe/params/issuing/transaction_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_capture_params.rb +1 -1643
- data/lib/stripe/params/payment_intent_confirm_params.rb +109 -3062
- data/lib/stripe/params/payment_intent_create_params.rb +122 -3075
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +0 -37
- data/lib/stripe/params/payment_intent_update_params.rb +76 -3060
- data/lib/stripe/params/payment_method_configuration_create_params.rb +0 -105
- data/lib/stripe/params/payment_method_configuration_update_params.rb +0 -105
- data/lib/stripe/params/payment_method_create_params.rb +0 -88
- data/lib/stripe/params/price_update_params.rb +0 -19
- data/lib/stripe/params/quote_create_params.rb +3 -809
- data/lib/stripe/params/quote_list_params.rb +0 -4
- data/lib/stripe/params/quote_update_params.rb +4 -817
- data/lib/stripe/params/setup_intent_confirm_params.rb +3 -122
- data/lib/stripe/params/setup_intent_create_params.rb +3 -122
- data/lib/stripe/params/setup_intent_update_params.rb +3 -122
- data/lib/stripe/params/subscription_create_params.rb +6 -133
- data/lib/stripe/params/subscription_item_create_params.rb +3 -50
- data/lib/stripe/params/subscription_item_update_params.rb +2 -33
- data/lib/stripe/params/subscription_schedule_create_params.rb +5 -167
- data/lib/stripe/params/subscription_schedule_update_params.rb +5 -167
- data/lib/stripe/params/subscription_update_params.rb +5 -116
- data/lib/stripe/params/tax/registration_create_params.rb +1 -13
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +0 -92
- 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_payment_create_params.rb +0 -19
- data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +0 -24
- data/lib/stripe/params/treasury/received_credit_create_params.rb +1 -25
- data/lib/stripe/params/treasury/received_debit_create_params.rb +1 -25
- data/lib/stripe/params/v2/core/account_create_params.rb +5 -392
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1 -29
- data/lib/stripe/params/v2/core/account_update_params.rb +4 -376
- data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +0 -21
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -21
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -40
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +1 -22
- data/lib/stripe/params.rb +0 -364
- data/lib/stripe/request_options.rb +18 -0
- data/lib/stripe/resources/account.rb +1 -176
- data/lib/stripe/resources/account_session.rb +0 -81
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/balance_settings.rb +0 -4
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -4
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +1 -227
- data/lib/stripe/resources/checkout/session.rb +3 -91
- data/lib/stripe/resources/confirmation_token.rb +0 -131
- data/lib/stripe/resources/coupon.rb +1 -26
- data/lib/stripe/resources/credit_note_line_item.rb +0 -18
- data/lib/stripe/resources/customer.rb +0 -16
- data/lib/stripe/resources/customer_session.rb +0 -36
- data/lib/stripe/resources/dispute.rb +0 -18
- data/lib/stripe/resources/event.rb +1 -64
- data/lib/stripe/resources/financial_connections/account.rb +1 -45
- data/lib/stripe/resources/financial_connections/authorization.rb +1 -24
- data/lib/stripe/resources/financial_connections/session.rb +0 -92
- data/lib/stripe/resources/invoice.rb +1 -106
- data/lib/stripe/resources/invoice_item.rb +0 -2
- data/lib/stripe/resources/invoice_line_item.rb +0 -40
- data/lib/stripe/resources/issuing/authorization.rb +0 -16
- data/lib/stripe/resources/issuing/card.rb +0 -16
- data/lib/stripe/resources/issuing/cardholder.rb +0 -16
- data/lib/stripe/resources/issuing/dispute.rb +1 -16
- data/lib/stripe/resources/issuing/transaction.rb +0 -18
- data/lib/stripe/resources/line_item.rb +0 -42
- data/lib/stripe/resources/mandate.rb +0 -12
- data/lib/stripe/resources/payment_attempt_record.rb +1 -177
- data/lib/stripe/resources/payment_intent.rb +24 -1602
- data/lib/stripe/resources/payment_method.rb +0 -151
- data/lib/stripe/resources/payment_method_configuration.rb +0 -170
- data/lib/stripe/resources/payment_record.rb +1 -177
- data/lib/stripe/resources/price.rb +0 -20
- data/lib/stripe/resources/quote.rb +2 -569
- data/lib/stripe/resources/radar/value_list_item.rb +1 -15
- data/lib/stripe/resources/refund.rb +0 -18
- data/lib/stripe/resources/reserve/hold.rb +0 -7
- data/lib/stripe/resources/reserve/plan.rb +0 -7
- data/lib/stripe/resources/reserve/release.rb +0 -12
- data/lib/stripe/resources/setup_attempt.rb +0 -35
- data/lib/stripe/resources/setup_intent.rb +1 -38
- data/lib/stripe/resources/source.rb +0 -54
- data/lib/stripe/resources/subscription.rb +0 -73
- data/lib/stripe/resources/subscription_item.rb +1 -22
- data/lib/stripe/resources/subscription_schedule.rb +3 -198
- data/lib/stripe/resources/tax/registration.rb +1 -16
- data/lib/stripe/resources/terminal/reader.rb +0 -8
- data/lib/stripe/resources/token.rb +1 -15
- data/lib/stripe/resources/transfer.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account.rb +0 -2
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_payment.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -30
- data/lib/stripe/resources/treasury/received_credit.rb +0 -30
- data/lib/stripe/resources/treasury/received_debit.rb +0 -32
- data/lib/stripe/resources/v2/core/account.rb +2 -802
- data/lib/stripe/resources/v2/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +36 -0
- data/lib/stripe/resources/v2/core/event_notification.rb +0 -1
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +1 -91
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +1 -26
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -4
- data/lib/stripe/resources/v2/money_management/financial_account.rb +1 -50
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -63
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +1 -31
- data/lib/stripe/resources/v2/money_management/payout_method.rb +1 -50
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -2
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -2
- data/lib/stripe/resources.rb +2 -341
- data/lib/stripe/services/account_service.rb +0 -15
- data/lib/stripe/services/billing_service.rb +1 -2
- data/lib/stripe/services/coupon_service.rb +0 -14
- data/lib/stripe/services/customer_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -3
- data/lib/stripe/services/invoice_service.rb +0 -11
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/mandate_service.rb +0 -5
- data/lib/stripe/services/payment_intent_service.rb +0 -37
- data/lib/stripe/services/promotion_code_service.rb +0 -29
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/radar_service.rb +1 -2
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/subscription_service.rb +0 -45
- data/lib/stripe/services/tax_service.rb +1 -2
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -11
- data/lib/stripe/services/v2/billing_service.rb +1 -5
- data/lib/stripe/services/v2/core_service.rb +1 -3
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -27
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/test_helpers/financial_address_service.rb +0 -13
- data/lib/stripe/services/v2/money_management_service.rb +1 -5
- data/lib/stripe/services/v2_services.rb +1 -7
- data/lib/stripe/services.rb +0 -181
- data/lib/stripe/stripe_client.rb +1 -4
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_event_notification_handler.rb +0 -216
- data/lib/stripe/stripe_object.rb +60 -1
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +68 -3
- data/lib/stripe.rb +0 -53
- data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
- data/rbi/stripe/resources/v2/core/event_notification.rbi +0 -2
- data/rbi/stripe.rbi +33552 -100276
- metadata +6 -332
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_money_manager_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_approved_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_expired_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_rejected_event.rb +0 -44
- data/lib/stripe/events/v2_core_approval_request_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_batch_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_completed_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_ready_for_upload_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_upload_timeout_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validating_event.rb +0 -44
- data/lib/stripe/events/v2_core_batch_job_validation_failed_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +0 -78
- data/lib/stripe/events/v2_data_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_report_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_data_reporting_query_run_updated_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_failed_event.rb +0 -75
- data/lib/stripe/events/v2_extend_workflow_run_started_event.rb +0 -44
- data/lib/stripe/events/v2_extend_workflow_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_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_under_review_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_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_orchestrated_commerce_agreement_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_created_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_partially_confirmed_event.rb +0 -97
- data/lib/stripe/events/v2_orchestrated_commerce_agreement_terminated_event.rb +0 -97
- data/lib/stripe/events/v2_signals_account_evaluation_complete_event.rb +0 -44
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_merchant_ready_event.rb +0 -44
- data/lib/stripe/events/v2_signals_account_signal_fraudulent_website_ready_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/authorization_retrieve_params.rb +0 -15
- data/lib/stripe/params/financial_connections/institution_list_params.rb +0 -24
- data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +0 -15
- data/lib/stripe/params/fx_quote_create_params.rb +0 -73
- data/lib/stripe/params/fx_quote_list_params.rb +0 -22
- data/lib/stripe/params/fx_quote_retrieve_params.rb +0 -13
- data/lib/stripe/params/invoice_detach_payment_params.rb +0 -16
- data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +0 -163
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +0 -50
- data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +0 -128
- data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +0 -24
- data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +0 -86
- data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +0 -33
- data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +0 -44
- data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +0 -15
- data/lib/stripe/params/mandate_list_params.rb +0 -39
- data/lib/stripe/params/margin_create_params.rb +0 -25
- data/lib/stripe/params/margin_list_params.rb +0 -25
- data/lib/stripe/params/margin_retrieve_params.rb +0 -13
- data/lib/stripe/params/margin_update_params.rb +0 -22
- data/lib/stripe/params/order_create_params.rb +0 -2083
- data/lib/stripe/params/order_list_params.rb +0 -25
- data/lib/stripe/params/order_retrieve_params.rb +0 -13
- data/lib/stripe/params/order_submit_params.rb +0 -16
- data/lib/stripe/params/order_update_params.rb +0 -2087
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +0 -297
- data/lib/stripe/params/payment_intent_trigger_action_params.rb +0 -27
- data/lib/stripe/params/payment_plan_create_params.rb +0 -128
- data/lib/stripe/params/payment_plan_list_params.rb +0 -25
- data/lib/stripe/params/payment_plan_retrieve_params.rb +0 -13
- data/lib/stripe/params/payment_plan_update_params.rb +0 -105
- 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/radar/billing_evaluation_create_params.rb +0 -231
- data/lib/stripe/params/reserve/hold_list_params.rb +0 -53
- data/lib/stripe/params/reserve/hold_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/plan_list_params.rb +0 -37
- data/lib/stripe/params/reserve/plan_retrieve_params.rb +0 -15
- data/lib/stripe/params/reserve/release_list_params.rb +0 -41
- data/lib/stripe/params/reserve/release_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_create_params.rb +0 -47
- data/lib/stripe/params/shared_payment/granted_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/granted_token_revoke_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +0 -71
- data/lib/stripe/params/shared_payment/issued_token_retrieve_params.rb +0 -15
- data/lib/stripe/params/shared_payment/issued_token_revoke_params.rb +0 -15
- data/lib/stripe/params/subscription_schedule_amend_params.rb +0 -578
- data/lib/stripe/params/tax/form_list_params.rb +0 -51
- data/lib/stripe/params/tax/form_pdf_params.rb +0 -15
- data/lib/stripe/params/tax/form_retrieve_params.rb +0 -15
- data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +0 -15
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_create_params.rb +0 -49
- data/lib/stripe/params/test_helpers/shared_payment/granted_token_revoke_params.rb +0 -17
- data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +0 -74
- data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +0 -80
- data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -253
- data/lib/stripe/params/v2/billing/cadence_list_params.rb +0 -43
- data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +0 -75
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +0 -257
- data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +0 -263
- data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/profile_create_params.rb +0 -37
- data/lib/stripe/params/v2/billing/profile_list_params.rb +0 -40
- data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/profile_update_params.rb +0 -35
- data/lib/stripe/params/v2/core/approval_request_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_list_params.rb +0 -47
- data/lib/stripe/params/v2/core/approval_request_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/core/approval_request_update_params.rb +0 -17
- data/lib/stripe/params/v2/core/batch_job_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/core/batch_job_create_params.rb +0 -53
- data/lib/stripe/params/v2/core/batch_job_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/data/query_run_create_params.rb +0 -50
- data/lib/stripe/params/v2/data/query_run_retrieve_params.rb +0 -23
- data/lib/stripe/params/v2/data/report_list_params.rb +0 -23
- data/lib/stripe/params/v2/data/report_retrieve_params.rb +0 -17
- data/lib/stripe/params/v2/data/report_run_create_params.rb +0 -48
- data/lib/stripe/params/v2/data/report_run_retrieve_params.rb +0 -23
- data/lib/stripe/params/v2/data/reporting/query_run_create_params.rb +0 -31
- data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/data/schema_list_params.rb +0 -26
- data/lib/stripe/params/v2/data/schema_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_invoke_params.rb +0 -17
- data/lib/stripe/params/v2/extend/workflow_list_params.rb +0 -21
- data/lib/stripe/params/v2/extend/workflow_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/extend/workflow_run_list_params.rb +0 -23
- data/lib/stripe/params/v2/extend/workflow_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/iam/activity_log_list_params.rb +0 -23
- data/lib/stripe/params/v2/iam/activity_log_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +0 -30
- data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +0 -35
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +0 -113
- data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +0 -10
- 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 -112
- 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_disable_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/test_helpers/financial_address_generate_microdeposits_params.rb +0 -12
- data/lib/stripe/params/v2/network/business_profile_me_params.rb +0 -10
- data/lib/stripe/params/v2/network/business_profile_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_confirm_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_create_params.rb +0 -17
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_list_params.rb +0 -20
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/orchestrated_commerce/agreement_terminate_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_activity_create_params.rb +0 -200
- data/lib/stripe/params/v2/signals/account_activity_delete_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_activity_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_evaluation_create_params.rb +0 -192
- data/lib/stripe/params/v2/signals/account_evaluation_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/signals/account_signal_list_params.rb +0 -35
- data/lib/stripe/params/v2/signals/account_signal_retrieve_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 -144
- data/lib/stripe/resources/capital/financing_summary.rb +0 -82
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -99
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -35
- data/lib/stripe/resources/financial_connections/institution.rb +0 -127
- data/lib/stripe/resources/fx_quote.rb +0 -149
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -263
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -71
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -51
- data/lib/stripe/resources/issuing/settlement.rb +0 -61
- data/lib/stripe/resources/margin.rb +0 -64
- data/lib/stripe/resources/order.rb +0 -927
- data/lib/stripe/resources/payment_plan.rb +0 -213
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -189
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -49
- data/lib/stripe/resources/quote_line.rb +0 -525
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -1241
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -968
- data/lib/stripe/resources/radar/billing_evaluation.rb +0 -281
- data/lib/stripe/resources/shared_payment/granted_token.rb +0 -681
- data/lib/stripe/resources/shared_payment/issued_token.rb +0 -310
- data/lib/stripe/resources/tax/form.rb +0 -264
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -47
- data/lib/stripe/resources/v2/billing/bill_setting.rb +0 -102
- data/lib/stripe/resources/v2/billing/bill_setting_version.rb +0 -91
- data/lib/stripe/resources/v2/billing/cadence.rb +0 -710
- data/lib/stripe/resources/v2/billing/collection_setting.rb +0 -327
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +0 -316
- data/lib/stripe/resources/v2/billing/profile.rb +0 -47
- data/lib/stripe/resources/v2/core/approval_request.rb +0 -395
- data/lib/stripe/resources/v2/core/batch_job.rb +0 -536
- data/lib/stripe/resources/v2/data/query_run.rb +0 -255
- data/lib/stripe/resources/v2/data/report.rb +0 -104
- data/lib/stripe/resources/v2/data/report_run.rb +0 -246
- data/lib/stripe/resources/v2/data/reporting/query_run.rb +0 -142
- data/lib/stripe/resources/v2/data/schema.rb +0 -121
- data/lib/stripe/resources/v2/extend/workflow.rb +0 -80
- data/lib/stripe/resources/v2/extend/workflow_run.rb +0 -158
- data/lib/stripe/resources/v2/iam/activity_log.rb +0 -368
- data/lib/stripe/resources/v2/money_management/financial_address_generated_microdeposits.rb +0 -33
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -255
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -260
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -137
- data/lib/stripe/resources/v2/network/business_profile.rb +0 -84
- data/lib/stripe/resources/v2/orchestrated_commerce/agreement.rb +0 -93
- data/lib/stripe/resources/v2/signals/account_activity.rb +0 -252
- data/lib/stripe/resources/v2/signals/account_evaluation.rb +0 -249
- data/lib/stripe/resources/v2/signals/account_signal.rb +0 -184
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/billing/analytics/meter_usage_service.rb +0 -21
- data/lib/stripe/services/billing/analytics_service.rb +0 -15
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/external_account_service.rb +0 -68
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/authorization_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/fx_quote_service.rb +0 -27
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_service.rb +0 -53
- data/lib/stripe/services/payment_plan_service.rb +0 -50
- 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/radar/billing_evaluation_service.rb +0 -19
- data/lib/stripe/services/reserve/hold_service.rb +0 -30
- data/lib/stripe/services/reserve/plan_service.rb +0 -30
- data/lib/stripe/services/reserve/release_service.rb +0 -30
- data/lib/stripe/services/reserve_service.rb +0 -15
- data/lib/stripe/services/shared_payment/granted_token_service.rb +0 -19
- data/lib/stripe/services/shared_payment/issued_token_service.rb +0 -41
- data/lib/stripe/services/shared_payment_service.rb +0 -14
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
- data/lib/stripe/services/test_helpers/shared_payment/granted_token_service.rb +0 -32
- data/lib/stripe/services/test_helpers/shared_payment_service.rb +0 -15
- data/lib/stripe/services/v2/billing/bill_setting_service.rb +0 -61
- data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/cadence_service.rb +0 -65
- data/lib/stripe/services/v2/billing/collection_setting_service.rb +0 -69
- data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/profile_service.rb +0 -54
- data/lib/stripe/services/v2/core/approval_request_service.rb +0 -58
- data/lib/stripe/services/v2/core/batch_job_service.rb +0 -43
- data/lib/stripe/services/v2/data/query_run_service.rb +0 -34
- data/lib/stripe/services/v2/data/report_run_service.rb +0 -36
- data/lib/stripe/services/v2/data/report_service.rb +0 -34
- data/lib/stripe/services/v2/data/reporting/query_run_service.rb +0 -35
- data/lib/stripe/services/v2/data/reporting_service.rb +0 -17
- data/lib/stripe/services/v2/data/schema_service.rb +0 -32
- data/lib/stripe/services/v2/data_service.rb +0 -19
- data/lib/stripe/services/v2/extend/workflow_run_service.rb +0 -32
- data/lib/stripe/services/v2/extend/workflow_service.rb +0 -45
- data/lib/stripe/services/v2/extend_service.rb +0 -16
- data/lib/stripe/services/v2/iam/activity_log_service.rb +0 -32
- data/lib/stripe/services/v2/iam_service.rb +0 -15
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -35
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -61
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -32
- data/lib/stripe/services/v2/network/business_profile_service.rb +0 -32
- data/lib/stripe/services/v2/network_service.rb +0 -15
- data/lib/stripe/services/v2/orchestrated_commerce/agreement_service.rb +0 -65
- data/lib/stripe/services/v2/orchestrated_commerce_service.rb +0 -15
- data/lib/stripe/services/v2/signals/account_activity_service.rb +0 -43
- data/lib/stripe/services/v2/signals/account_evaluation_service.rb +0 -32
- data/lib/stripe/services/v2/signals/account_signal_service.rb +0 -32
- data/lib/stripe/services/v2/signals_service.rb +0 -17
|
@@ -12,20 +12,12 @@ module Stripe
|
|
|
12
12
|
attr_accessor :exempt
|
|
13
13
|
# A recent IP address of the customer used for tax reporting and tax location inference.
|
|
14
14
|
attr_accessor :ip_address
|
|
15
|
-
# Data source used to identify the customer account's tax location. Defaults to `identity_address`. Used for automatic indirect tax calculation.
|
|
16
|
-
attr_accessor :location_source
|
|
17
15
|
# A per-request flag that indicates when Stripe should validate the customer tax location - defaults to `auto`.
|
|
18
16
|
attr_accessor :validate_location
|
|
19
17
|
|
|
20
|
-
def initialize(
|
|
21
|
-
exempt: nil,
|
|
22
|
-
ip_address: nil,
|
|
23
|
-
location_source: nil,
|
|
24
|
-
validate_location: nil
|
|
25
|
-
)
|
|
18
|
+
def initialize(exempt: nil, ip_address: nil, validate_location: nil)
|
|
26
19
|
@exempt = exempt
|
|
27
20
|
@ip_address = ip_address
|
|
28
|
-
@location_source = location_source
|
|
29
21
|
@validate_location = validate_location
|
|
30
22
|
end
|
|
31
23
|
end
|
|
@@ -938,23 +930,6 @@ module Stripe
|
|
|
938
930
|
end
|
|
939
931
|
end
|
|
940
932
|
|
|
941
|
-
class SmartDisputes < ::Stripe::RequestParams
|
|
942
|
-
class AutoRespond < ::Stripe::RequestParams
|
|
943
|
-
# The preference for automatic dispute responses.
|
|
944
|
-
attr_accessor :preference
|
|
945
|
-
|
|
946
|
-
def initialize(preference: nil)
|
|
947
|
-
@preference = preference
|
|
948
|
-
end
|
|
949
|
-
end
|
|
950
|
-
# Settings for Smart Disputes auto_respond.
|
|
951
|
-
attr_accessor :auto_respond
|
|
952
|
-
|
|
953
|
-
def initialize(auto_respond: nil)
|
|
954
|
-
@auto_respond = auto_respond
|
|
955
|
-
end
|
|
956
|
-
end
|
|
957
|
-
|
|
958
933
|
class StatementDescriptor < ::Stripe::RequestParams
|
|
959
934
|
# The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
|
|
960
935
|
attr_accessor :descriptor
|
|
@@ -1036,8 +1011,6 @@ module Stripe
|
|
|
1036
1011
|
attr_accessor :script_statement_descriptor
|
|
1037
1012
|
# Settings for SEPA Direct Debit payments.
|
|
1038
1013
|
attr_accessor :sepa_debit_payments
|
|
1039
|
-
# Settings for Smart Disputes automatic response feature.
|
|
1040
|
-
attr_accessor :smart_disputes
|
|
1041
1014
|
# Settings for the default statement descriptor text.
|
|
1042
1015
|
attr_accessor :statement_descriptor
|
|
1043
1016
|
# Publicly available contact information for sending support issues to.
|
|
@@ -1053,7 +1026,6 @@ module Stripe
|
|
|
1053
1026
|
mcc: nil,
|
|
1054
1027
|
script_statement_descriptor: nil,
|
|
1055
1028
|
sepa_debit_payments: nil,
|
|
1056
|
-
smart_disputes: nil,
|
|
1057
1029
|
statement_descriptor: nil,
|
|
1058
1030
|
support: nil
|
|
1059
1031
|
)
|
|
@@ -1066,315 +1038,11 @@ module Stripe
|
|
|
1066
1038
|
@mcc = mcc
|
|
1067
1039
|
@script_statement_descriptor = script_statement_descriptor
|
|
1068
1040
|
@sepa_debit_payments = sepa_debit_payments
|
|
1069
|
-
@smart_disputes = smart_disputes
|
|
1070
1041
|
@statement_descriptor = statement_descriptor
|
|
1071
1042
|
@support = support
|
|
1072
1043
|
end
|
|
1073
1044
|
end
|
|
1074
1045
|
|
|
1075
|
-
class MoneyManager < ::Stripe::RequestParams
|
|
1076
|
-
class Capabilities < ::Stripe::RequestParams
|
|
1077
|
-
class BusinessStorage < ::Stripe::RequestParams
|
|
1078
|
-
class Inbound < ::Stripe::RequestParams
|
|
1079
|
-
class Aud < ::Stripe::RequestParams
|
|
1080
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1081
|
-
attr_accessor :requested
|
|
1082
|
-
|
|
1083
|
-
def initialize(requested: nil)
|
|
1084
|
-
@requested = requested
|
|
1085
|
-
end
|
|
1086
|
-
end
|
|
1087
|
-
|
|
1088
|
-
class Cad < ::Stripe::RequestParams
|
|
1089
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1090
|
-
attr_accessor :requested
|
|
1091
|
-
|
|
1092
|
-
def initialize(requested: nil)
|
|
1093
|
-
@requested = requested
|
|
1094
|
-
end
|
|
1095
|
-
end
|
|
1096
|
-
|
|
1097
|
-
class Eur < ::Stripe::RequestParams
|
|
1098
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1099
|
-
attr_accessor :requested
|
|
1100
|
-
|
|
1101
|
-
def initialize(requested: nil)
|
|
1102
|
-
@requested = requested
|
|
1103
|
-
end
|
|
1104
|
-
end
|
|
1105
|
-
|
|
1106
|
-
class Gbp < ::Stripe::RequestParams
|
|
1107
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1108
|
-
attr_accessor :requested
|
|
1109
|
-
|
|
1110
|
-
def initialize(requested: nil)
|
|
1111
|
-
@requested = requested
|
|
1112
|
-
end
|
|
1113
|
-
end
|
|
1114
|
-
|
|
1115
|
-
class Usd < ::Stripe::RequestParams
|
|
1116
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1117
|
-
attr_accessor :requested
|
|
1118
|
-
|
|
1119
|
-
def initialize(requested: nil)
|
|
1120
|
-
@requested = requested
|
|
1121
|
-
end
|
|
1122
|
-
end
|
|
1123
|
-
# Can receive business storage-type funds on Stripe in AUD.
|
|
1124
|
-
attr_accessor :aud
|
|
1125
|
-
# Can receive business storage-type funds on Stripe in CAD.
|
|
1126
|
-
attr_accessor :cad
|
|
1127
|
-
# Can receive business storage-type funds on Stripe in EUR.
|
|
1128
|
-
attr_accessor :eur
|
|
1129
|
-
# Can receive business storage-type funds on Stripe in GBP.
|
|
1130
|
-
attr_accessor :gbp
|
|
1131
|
-
# Can receive business storage-type funds on Stripe in USD.
|
|
1132
|
-
attr_accessor :usd
|
|
1133
|
-
|
|
1134
|
-
def initialize(aud: nil, cad: nil, eur: nil, gbp: nil, usd: nil)
|
|
1135
|
-
@aud = aud
|
|
1136
|
-
@cad = cad
|
|
1137
|
-
@eur = eur
|
|
1138
|
-
@gbp = gbp
|
|
1139
|
-
@usd = usd
|
|
1140
|
-
end
|
|
1141
|
-
end
|
|
1142
|
-
|
|
1143
|
-
class Outbound < ::Stripe::RequestParams
|
|
1144
|
-
class Aud < ::Stripe::RequestParams
|
|
1145
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1146
|
-
attr_accessor :requested
|
|
1147
|
-
|
|
1148
|
-
def initialize(requested: nil)
|
|
1149
|
-
@requested = requested
|
|
1150
|
-
end
|
|
1151
|
-
end
|
|
1152
|
-
|
|
1153
|
-
class Cad < ::Stripe::RequestParams
|
|
1154
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1155
|
-
attr_accessor :requested
|
|
1156
|
-
|
|
1157
|
-
def initialize(requested: nil)
|
|
1158
|
-
@requested = requested
|
|
1159
|
-
end
|
|
1160
|
-
end
|
|
1161
|
-
|
|
1162
|
-
class Eur < ::Stripe::RequestParams
|
|
1163
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1164
|
-
attr_accessor :requested
|
|
1165
|
-
|
|
1166
|
-
def initialize(requested: nil)
|
|
1167
|
-
@requested = requested
|
|
1168
|
-
end
|
|
1169
|
-
end
|
|
1170
|
-
|
|
1171
|
-
class Gbp < ::Stripe::RequestParams
|
|
1172
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1173
|
-
attr_accessor :requested
|
|
1174
|
-
|
|
1175
|
-
def initialize(requested: nil)
|
|
1176
|
-
@requested = requested
|
|
1177
|
-
end
|
|
1178
|
-
end
|
|
1179
|
-
|
|
1180
|
-
class Usd < ::Stripe::RequestParams
|
|
1181
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1182
|
-
attr_accessor :requested
|
|
1183
|
-
|
|
1184
|
-
def initialize(requested: nil)
|
|
1185
|
-
@requested = requested
|
|
1186
|
-
end
|
|
1187
|
-
end
|
|
1188
|
-
# Can send business storage-type funds on Stripe in AUD.
|
|
1189
|
-
attr_accessor :aud
|
|
1190
|
-
# Can send business storage-type funds on Stripe in CAD.
|
|
1191
|
-
attr_accessor :cad
|
|
1192
|
-
# Can send business storage-type funds on Stripe in EUR.
|
|
1193
|
-
attr_accessor :eur
|
|
1194
|
-
# Can send business storage-type funds on Stripe in GBP.
|
|
1195
|
-
attr_accessor :gbp
|
|
1196
|
-
# Can send business storage-type funds on Stripe in USD.
|
|
1197
|
-
attr_accessor :usd
|
|
1198
|
-
|
|
1199
|
-
def initialize(aud: nil, cad: nil, eur: nil, gbp: nil, usd: nil)
|
|
1200
|
-
@aud = aud
|
|
1201
|
-
@cad = cad
|
|
1202
|
-
@eur = eur
|
|
1203
|
-
@gbp = gbp
|
|
1204
|
-
@usd = usd
|
|
1205
|
-
end
|
|
1206
|
-
end
|
|
1207
|
-
# Can receive business storage-type funds on Stripe.
|
|
1208
|
-
attr_accessor :inbound
|
|
1209
|
-
# Can send business storage-type funds on Stripe.
|
|
1210
|
-
attr_accessor :outbound
|
|
1211
|
-
|
|
1212
|
-
def initialize(inbound: nil, outbound: nil)
|
|
1213
|
-
@inbound = inbound
|
|
1214
|
-
@outbound = outbound
|
|
1215
|
-
end
|
|
1216
|
-
end
|
|
1217
|
-
|
|
1218
|
-
class InboundTransfers < ::Stripe::RequestParams
|
|
1219
|
-
class BankAccounts < ::Stripe::RequestParams
|
|
1220
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1221
|
-
attr_accessor :requested
|
|
1222
|
-
|
|
1223
|
-
def initialize(requested: nil)
|
|
1224
|
-
@requested = requested
|
|
1225
|
-
end
|
|
1226
|
-
end
|
|
1227
|
-
# Can pull funds from an external bank account owned by yourself to a FinancialAccount.
|
|
1228
|
-
attr_accessor :bank_accounts
|
|
1229
|
-
|
|
1230
|
-
def initialize(bank_accounts: nil)
|
|
1231
|
-
@bank_accounts = bank_accounts
|
|
1232
|
-
end
|
|
1233
|
-
end
|
|
1234
|
-
|
|
1235
|
-
class OutboundPayments < ::Stripe::RequestParams
|
|
1236
|
-
class BankAccounts < ::Stripe::RequestParams
|
|
1237
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1238
|
-
attr_accessor :requested
|
|
1239
|
-
|
|
1240
|
-
def initialize(requested: nil)
|
|
1241
|
-
@requested = requested
|
|
1242
|
-
end
|
|
1243
|
-
end
|
|
1244
|
-
|
|
1245
|
-
class Cards < ::Stripe::RequestParams
|
|
1246
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1247
|
-
attr_accessor :requested
|
|
1248
|
-
|
|
1249
|
-
def initialize(requested: nil)
|
|
1250
|
-
@requested = requested
|
|
1251
|
-
end
|
|
1252
|
-
end
|
|
1253
|
-
|
|
1254
|
-
class FinancialAccounts < ::Stripe::RequestParams
|
|
1255
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1256
|
-
attr_accessor :requested
|
|
1257
|
-
|
|
1258
|
-
def initialize(requested: nil)
|
|
1259
|
-
@requested = requested
|
|
1260
|
-
end
|
|
1261
|
-
end
|
|
1262
|
-
# Can send funds from a FinancialAccount to a bank account owned by someone else.
|
|
1263
|
-
attr_accessor :bank_accounts
|
|
1264
|
-
# Can send funds from a FinancialAccount to a debit card owned by someone else.
|
|
1265
|
-
attr_accessor :cards
|
|
1266
|
-
# Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
|
|
1267
|
-
attr_accessor :financial_accounts
|
|
1268
|
-
|
|
1269
|
-
def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
|
|
1270
|
-
@bank_accounts = bank_accounts
|
|
1271
|
-
@cards = cards
|
|
1272
|
-
@financial_accounts = financial_accounts
|
|
1273
|
-
end
|
|
1274
|
-
end
|
|
1275
|
-
|
|
1276
|
-
class OutboundTransfers < ::Stripe::RequestParams
|
|
1277
|
-
class BankAccounts < ::Stripe::RequestParams
|
|
1278
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1279
|
-
attr_accessor :requested
|
|
1280
|
-
|
|
1281
|
-
def initialize(requested: nil)
|
|
1282
|
-
@requested = requested
|
|
1283
|
-
end
|
|
1284
|
-
end
|
|
1285
|
-
|
|
1286
|
-
class FinancialAccounts < ::Stripe::RequestParams
|
|
1287
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1288
|
-
attr_accessor :requested
|
|
1289
|
-
|
|
1290
|
-
def initialize(requested: nil)
|
|
1291
|
-
@requested = requested
|
|
1292
|
-
end
|
|
1293
|
-
end
|
|
1294
|
-
# Can send funds from a FinancialAccount to a bank account owned by yourself.
|
|
1295
|
-
attr_accessor :bank_accounts
|
|
1296
|
-
# Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
|
|
1297
|
-
attr_accessor :financial_accounts
|
|
1298
|
-
|
|
1299
|
-
def initialize(bank_accounts: nil, financial_accounts: nil)
|
|
1300
|
-
@bank_accounts = bank_accounts
|
|
1301
|
-
@financial_accounts = financial_accounts
|
|
1302
|
-
end
|
|
1303
|
-
end
|
|
1304
|
-
|
|
1305
|
-
class ReceivedCredits < ::Stripe::RequestParams
|
|
1306
|
-
class BankAccounts < ::Stripe::RequestParams
|
|
1307
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1308
|
-
attr_accessor :requested
|
|
1309
|
-
|
|
1310
|
-
def initialize(requested: nil)
|
|
1311
|
-
@requested = requested
|
|
1312
|
-
end
|
|
1313
|
-
end
|
|
1314
|
-
# Can receive funds on a bank-account-like financial address (VBAN) to credit a FinancialAccount.
|
|
1315
|
-
attr_accessor :bank_accounts
|
|
1316
|
-
|
|
1317
|
-
def initialize(bank_accounts: nil)
|
|
1318
|
-
@bank_accounts = bank_accounts
|
|
1319
|
-
end
|
|
1320
|
-
end
|
|
1321
|
-
|
|
1322
|
-
class ReceivedDebits < ::Stripe::RequestParams
|
|
1323
|
-
class BankAccounts < ::Stripe::RequestParams
|
|
1324
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1325
|
-
attr_accessor :requested
|
|
1326
|
-
|
|
1327
|
-
def initialize(requested: nil)
|
|
1328
|
-
@requested = requested
|
|
1329
|
-
end
|
|
1330
|
-
end
|
|
1331
|
-
# Can receive debits to a FinancialAccount from a bank account.
|
|
1332
|
-
attr_accessor :bank_accounts
|
|
1333
|
-
|
|
1334
|
-
def initialize(bank_accounts: nil)
|
|
1335
|
-
@bank_accounts = bank_accounts
|
|
1336
|
-
end
|
|
1337
|
-
end
|
|
1338
|
-
# Can send or receive business storage-type funds on Stripe.
|
|
1339
|
-
attr_accessor :business_storage
|
|
1340
|
-
# Can pull funds from an external source, owned by yourself, to a FinancialAccount.
|
|
1341
|
-
attr_accessor :inbound_transfers
|
|
1342
|
-
# Can send funds from a FinancialAccount to a destination owned by someone else.
|
|
1343
|
-
attr_accessor :outbound_payments
|
|
1344
|
-
# Can send funds from a FinancialAccount to a destination owned by yourself.
|
|
1345
|
-
attr_accessor :outbound_transfers
|
|
1346
|
-
# Can receive funds on a financial address to credit a FinancialAccount.
|
|
1347
|
-
attr_accessor :received_credits
|
|
1348
|
-
# Can receive debits to a FinancialAccount.
|
|
1349
|
-
attr_accessor :received_debits
|
|
1350
|
-
|
|
1351
|
-
def initialize(
|
|
1352
|
-
business_storage: nil,
|
|
1353
|
-
inbound_transfers: nil,
|
|
1354
|
-
outbound_payments: nil,
|
|
1355
|
-
outbound_transfers: nil,
|
|
1356
|
-
received_credits: nil,
|
|
1357
|
-
received_debits: nil
|
|
1358
|
-
)
|
|
1359
|
-
@business_storage = business_storage
|
|
1360
|
-
@inbound_transfers = inbound_transfers
|
|
1361
|
-
@outbound_payments = outbound_payments
|
|
1362
|
-
@outbound_transfers = outbound_transfers
|
|
1363
|
-
@received_credits = received_credits
|
|
1364
|
-
@received_debits = received_debits
|
|
1365
|
-
end
|
|
1366
|
-
end
|
|
1367
|
-
# Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
|
|
1368
|
-
attr_accessor :applied
|
|
1369
|
-
# Capabilities to request on the Money Manager Configuration.
|
|
1370
|
-
attr_accessor :capabilities
|
|
1371
|
-
|
|
1372
|
-
def initialize(applied: nil, capabilities: nil)
|
|
1373
|
-
@applied = applied
|
|
1374
|
-
@capabilities = capabilities
|
|
1375
|
-
end
|
|
1376
|
-
end
|
|
1377
|
-
|
|
1378
1046
|
class Recipient < ::Stripe::RequestParams
|
|
1379
1047
|
class Capabilities < ::Stripe::RequestParams
|
|
1380
1048
|
class BankAccounts < ::Stripe::RequestParams
|
|
@@ -1483,15 +1151,6 @@ module Stripe
|
|
|
1483
1151
|
end
|
|
1484
1152
|
end
|
|
1485
1153
|
|
|
1486
|
-
class CryptoWallets < ::Stripe::RequestParams
|
|
1487
|
-
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
1488
|
-
attr_accessor :requested
|
|
1489
|
-
|
|
1490
|
-
def initialize(requested: nil)
|
|
1491
|
-
@requested = requested
|
|
1492
|
-
end
|
|
1493
|
-
end
|
|
1494
|
-
|
|
1495
1154
|
class StripeBalance < ::Stripe::RequestParams
|
|
1496
1155
|
class StripeTransfers < ::Stripe::RequestParams
|
|
1497
1156
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
@@ -1512,20 +1171,12 @@ module Stripe
|
|
|
1512
1171
|
attr_accessor :bank_accounts
|
|
1513
1172
|
# Capability that enable OutboundPayments to a debit card linked to this Account.
|
|
1514
1173
|
attr_accessor :cards
|
|
1515
|
-
# Capabilities that enable OutboundPayments to a crypto wallet linked to this Account.
|
|
1516
|
-
attr_accessor :crypto_wallets
|
|
1517
1174
|
# Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
|
|
1518
1175
|
attr_accessor :stripe_balance
|
|
1519
1176
|
|
|
1520
|
-
def initialize(
|
|
1521
|
-
bank_accounts: nil,
|
|
1522
|
-
cards: nil,
|
|
1523
|
-
crypto_wallets: nil,
|
|
1524
|
-
stripe_balance: nil
|
|
1525
|
-
)
|
|
1177
|
+
def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
|
|
1526
1178
|
@bank_accounts = bank_accounts
|
|
1527
1179
|
@cards = cards
|
|
1528
|
-
@crypto_wallets = crypto_wallets
|
|
1529
1180
|
@stripe_balance = stripe_balance
|
|
1530
1181
|
end
|
|
1531
1182
|
end
|
|
@@ -1543,15 +1194,12 @@ module Stripe
|
|
|
1543
1194
|
attr_accessor :customer
|
|
1544
1195
|
# Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set.
|
|
1545
1196
|
attr_accessor :merchant
|
|
1546
|
-
# The Money Manager Configuration allows the Account to store and move funds using FinancialAccounts.
|
|
1547
|
-
attr_accessor :money_manager
|
|
1548
1197
|
# The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
|
|
1549
1198
|
attr_accessor :recipient
|
|
1550
1199
|
|
|
1551
|
-
def initialize(customer: nil, merchant: nil,
|
|
1200
|
+
def initialize(customer: nil, merchant: nil, recipient: nil)
|
|
1552
1201
|
@customer = customer
|
|
1553
1202
|
@merchant = merchant
|
|
1554
|
-
@money_manager = money_manager
|
|
1555
1203
|
@recipient = recipient
|
|
1556
1204
|
end
|
|
1557
1205
|
end
|
|
@@ -1593,23 +1241,19 @@ module Stripe
|
|
|
1593
1241
|
attr_accessor :profile
|
|
1594
1242
|
# Default responsibilities held by either Stripe or the platform.
|
|
1595
1243
|
attr_accessor :responsibilities
|
|
1596
|
-
# The Account's local timezone. A list of possible time zone values is maintained at the [IANA Time Zone Database](https://www.iana.org/time-zones).
|
|
1597
|
-
attr_accessor :timezone
|
|
1598
1244
|
|
|
1599
1245
|
def initialize(
|
|
1600
1246
|
currency: nil,
|
|
1601
1247
|
locales: nil,
|
|
1602
1248
|
payout_methods: nil,
|
|
1603
1249
|
profile: nil,
|
|
1604
|
-
responsibilities: nil
|
|
1605
|
-
timezone: nil
|
|
1250
|
+
responsibilities: nil
|
|
1606
1251
|
)
|
|
1607
1252
|
@currency = currency
|
|
1608
1253
|
@locales = locales
|
|
1609
1254
|
@payout_methods = payout_methods
|
|
1610
1255
|
@profile = profile
|
|
1611
1256
|
@responsibilities = responsibilities
|
|
1612
|
-
@timezone = timezone
|
|
1613
1257
|
end
|
|
1614
1258
|
end
|
|
1615
1259
|
|
|
@@ -1962,18 +1606,6 @@ module Stripe
|
|
|
1962
1606
|
end
|
|
1963
1607
|
end
|
|
1964
1608
|
|
|
1965
|
-
class ProofOfBusinessPresence < ::Stripe::RequestParams
|
|
1966
|
-
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/files/create) with a purpose value of `account_requirement`.
|
|
1967
|
-
attr_accessor :files
|
|
1968
|
-
# The format of the document. Currently supports `files` only.
|
|
1969
|
-
attr_accessor :type
|
|
1970
|
-
|
|
1971
|
-
def initialize(files: nil, type: nil)
|
|
1972
|
-
@files = files
|
|
1973
|
-
@type = type
|
|
1974
|
-
end
|
|
1975
|
-
end
|
|
1976
|
-
|
|
1977
1609
|
class ProofOfRegistration < ::Stripe::RequestParams
|
|
1978
1610
|
class Signer < ::Stripe::RequestParams
|
|
1979
1611
|
# Person signing the document.
|
|
@@ -2035,8 +1667,6 @@ module Stripe
|
|
|
2035
1667
|
attr_accessor :primary_verification
|
|
2036
1668
|
# One or more documents that demonstrate proof of address.
|
|
2037
1669
|
attr_accessor :proof_of_address
|
|
2038
|
-
# One or more documents that demonstrate proof of business presence.
|
|
2039
|
-
attr_accessor :proof_of_business_presence
|
|
2040
1670
|
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
|
2041
1671
|
attr_accessor :proof_of_registration
|
|
2042
1672
|
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
|
@@ -2051,7 +1681,6 @@ module Stripe
|
|
|
2051
1681
|
company_tax_id_verification: nil,
|
|
2052
1682
|
primary_verification: nil,
|
|
2053
1683
|
proof_of_address: nil,
|
|
2054
|
-
proof_of_business_presence: nil,
|
|
2055
1684
|
proof_of_registration: nil,
|
|
2056
1685
|
proof_of_ultimate_beneficial_ownership: nil
|
|
2057
1686
|
)
|
|
@@ -2063,7 +1692,6 @@ module Stripe
|
|
|
2063
1692
|
@company_tax_id_verification = company_tax_id_verification
|
|
2064
1693
|
@primary_verification = primary_verification
|
|
2065
1694
|
@proof_of_address = proof_of_address
|
|
2066
|
-
@proof_of_business_presence = proof_of_business_presence
|
|
2067
1695
|
@proof_of_registration = proof_of_registration
|
|
2068
1696
|
@proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
|
|
2069
1697
|
end
|
|
@@ -6,29 +6,10 @@ module Stripe
|
|
|
6
6
|
module Core
|
|
7
7
|
module Vault
|
|
8
8
|
class GbBankAccountCreateParams < ::Stripe::RequestParams
|
|
9
|
-
class ConfirmationOfPayee < ::Stripe::RequestParams
|
|
10
|
-
# The business type to be checked against. Legal entity information will be used if unspecified.
|
|
11
|
-
# Closed enum.
|
|
12
|
-
attr_accessor :business_type
|
|
13
|
-
# User specifies whether Confirmation of Payee is automatically initiated when creating the bank account.
|
|
14
|
-
attr_accessor :initiate
|
|
15
|
-
# The name to be checked against. Legal entity information will be used if unspecified.
|
|
16
|
-
attr_accessor :name
|
|
17
|
-
|
|
18
|
-
def initialize(business_type: nil, initiate: nil, name: nil)
|
|
19
|
-
@business_type = business_type
|
|
20
|
-
@initiate = initiate
|
|
21
|
-
@name = name
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
9
|
# The Account Number of the bank account.
|
|
25
10
|
attr_accessor :account_number
|
|
26
11
|
# Closed Enum. The type of the bank account (checking or savings).
|
|
27
12
|
attr_accessor :bank_account_type
|
|
28
|
-
# Whether or not to automatically perform Confirmation of Payee to verify the users information
|
|
29
|
-
# against what was provided by the bank. Doing so is required for all bank accounts not owned
|
|
30
|
-
# by you before making domestic UK OutboundPayments.
|
|
31
|
-
attr_accessor :confirmation_of_payee
|
|
32
13
|
# The currency of the bank account.
|
|
33
14
|
attr_accessor :currency
|
|
34
15
|
# The IBAN of the bank account.
|
|
@@ -39,14 +20,12 @@ module Stripe
|
|
|
39
20
|
def initialize(
|
|
40
21
|
account_number: nil,
|
|
41
22
|
bank_account_type: nil,
|
|
42
|
-
confirmation_of_payee: nil,
|
|
43
23
|
currency: nil,
|
|
44
24
|
iban: nil,
|
|
45
25
|
sort_code: nil
|
|
46
26
|
)
|
|
47
27
|
@account_number = account_number
|
|
48
28
|
@bank_account_type = bank_account_type
|
|
49
|
-
@confirmation_of_payee = confirmation_of_payee
|
|
50
29
|
@currency = currency
|
|
51
30
|
@iban = iban
|
|
52
31
|
@sort_code = sort_code
|
|
@@ -5,15 +5,6 @@ module Stripe
|
|
|
5
5
|
module V2
|
|
6
6
|
module MoneyManagement
|
|
7
7
|
class OutboundPaymentCreateParams < ::Stripe::RequestParams
|
|
8
|
-
class DeliveryOptions < ::Stripe::RequestParams
|
|
9
|
-
# Open Enum. Method for bank account.
|
|
10
|
-
attr_accessor :bank_account
|
|
11
|
-
|
|
12
|
-
def initialize(bank_account: nil)
|
|
13
|
-
@bank_account = bank_account
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
|
|
17
8
|
class From < ::Stripe::RequestParams
|
|
18
9
|
# Describes the FinancialAmount's currency drawn from.
|
|
19
10
|
attr_accessor :currency
|
|
@@ -104,18 +95,12 @@ module Stripe
|
|
|
104
95
|
end
|
|
105
96
|
# The requested amount and currency for the OutboundPayment.
|
|
106
97
|
attr_accessor :amount
|
|
107
|
-
# Delivery options to be used to send the OutboundPayment.
|
|
108
|
-
attr_accessor :delivery_options
|
|
109
98
|
# An arbitrary string attached to the OutboundPayment. Often useful for displaying to users.
|
|
110
99
|
attr_accessor :description
|
|
111
100
|
# From which FinancialAccount and BalanceType to pull funds from.
|
|
112
101
|
attr_accessor :from
|
|
113
102
|
# Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
114
103
|
attr_accessor :metadata
|
|
115
|
-
# The quote for this OutboundPayment. Only required for countries with regulatory mandates to display fee estimates before OutboundPayment creation.
|
|
116
|
-
attr_accessor :outbound_payment_quote
|
|
117
|
-
# The purpose of the OutboundPayment.
|
|
118
|
-
attr_accessor :purpose
|
|
119
104
|
# Details about the notification settings for the OutboundPayment recipient.
|
|
120
105
|
attr_accessor :recipient_notification
|
|
121
106
|
# The ID of the RecipientVerification for this OutboundPayment. Required where recipient-name verification is mandated before creating an OutboundPayment.
|
|
@@ -127,24 +112,18 @@ module Stripe
|
|
|
127
112
|
|
|
128
113
|
def initialize(
|
|
129
114
|
amount: nil,
|
|
130
|
-
delivery_options: nil,
|
|
131
115
|
description: nil,
|
|
132
116
|
from: nil,
|
|
133
117
|
metadata: nil,
|
|
134
|
-
outbound_payment_quote: nil,
|
|
135
|
-
purpose: nil,
|
|
136
118
|
recipient_notification: nil,
|
|
137
119
|
recipient_verification: nil,
|
|
138
120
|
statement_descriptor: nil,
|
|
139
121
|
to: nil
|
|
140
122
|
)
|
|
141
123
|
@amount = amount
|
|
142
|
-
@delivery_options = delivery_options
|
|
143
124
|
@description = description
|
|
144
125
|
@from = from
|
|
145
126
|
@metadata = metadata
|
|
146
|
-
@outbound_payment_quote = outbound_payment_quote
|
|
147
|
-
@purpose = purpose
|
|
148
127
|
@recipient_notification = recipient_notification
|
|
149
128
|
@recipient_verification = recipient_verification
|
|
150
129
|
@statement_descriptor = statement_descriptor
|
|
@@ -40,52 +40,13 @@ module Stripe
|
|
|
40
40
|
@swift_code = swift_code
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
|
-
|
|
44
|
-
class Card < ::Stripe::RequestParams
|
|
45
|
-
# The currency of the card.
|
|
46
|
-
attr_accessor :currency
|
|
47
|
-
# The expiration month of the card.
|
|
48
|
-
attr_accessor :exp_month
|
|
49
|
-
# The expiration year of the card.
|
|
50
|
-
attr_accessor :exp_year
|
|
51
|
-
# The card number.
|
|
52
|
-
attr_accessor :number
|
|
53
|
-
|
|
54
|
-
def initialize(currency: nil, exp_month: nil, exp_year: nil, number: nil)
|
|
55
|
-
@currency = currency
|
|
56
|
-
@exp_month = exp_month
|
|
57
|
-
@exp_year = exp_year
|
|
58
|
-
@number = number
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
class CryptoWallet < ::Stripe::RequestParams
|
|
63
|
-
# Crypto wallet address.
|
|
64
|
-
attr_accessor :address
|
|
65
|
-
# Optional field, required if network supports memos (only "stellar" currently).
|
|
66
|
-
attr_accessor :memo
|
|
67
|
-
# Which rail we should use to make an Outbound money movement to this wallet.
|
|
68
|
-
attr_accessor :network
|
|
69
|
-
|
|
70
|
-
def initialize(address: nil, memo: nil, network: nil)
|
|
71
|
-
@address = address
|
|
72
|
-
@memo = memo
|
|
73
|
-
@network = network
|
|
74
|
-
end
|
|
75
|
-
end
|
|
76
43
|
# The type specific details of the bank account payout method.
|
|
77
44
|
attr_accessor :bank_account
|
|
78
|
-
# The type specific details of the card payout method.
|
|
79
|
-
attr_accessor :card
|
|
80
|
-
# The type specific details of the crypto wallet payout method.
|
|
81
|
-
attr_accessor :crypto_wallet
|
|
82
45
|
# Open Enum. The type of payout method to be created.
|
|
83
46
|
attr_accessor :type
|
|
84
47
|
|
|
85
|
-
def initialize(bank_account: nil,
|
|
48
|
+
def initialize(bank_account: nil, type: nil)
|
|
86
49
|
@bank_account = bank_account
|
|
87
|
-
@card = card
|
|
88
|
-
@crypto_wallet = crypto_wallet
|
|
89
50
|
@type = type
|
|
90
51
|
end
|
|
91
52
|
end
|