stripe 18.1.0.pre.alpha.1 → 18.1.0.pre.beta.1
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/event_types.rb +0 -841
- data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +21 -9
- data/lib/stripe/object_types.rb +2 -32
- data/lib/stripe/params/account_create_params.rb +0 -32
- data/lib/stripe/params/account_person_create_params.rb +0 -32
- data/lib/stripe/params/account_person_update_params.rb +0 -32
- data/lib/stripe/params/account_update_params.rb +0 -32
- data/lib/stripe/params/billing/alert_create_params.rb +1 -121
- data/lib/stripe/params/billing/alert_list_params.rb +0 -4
- data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +1 -5
- data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +1 -13
- data/lib/stripe/params/billing/credit_grant_create_params.rb +2 -29
- data/lib/stripe/params/billing/meter_create_params.rb +0 -4
- data/lib/stripe/params/billing/meter_event_summary_list_params.rb +0 -8
- data/lib/stripe/params/checkout/session_create_params.rb +1 -80
- data/lib/stripe/params/identity/verification_report_list_params.rb +0 -4
- data/lib/stripe/params/invoice_create_preview_params.rb +2 -85
- data/lib/stripe/params/invoice_list_params.rb +0 -4
- data/lib/stripe/params/payment_intent_confirm_params.rb +0 -34
- data/lib/stripe/params/payment_intent_create_params.rb +0 -34
- data/lib/stripe/params/payment_intent_update_params.rb +0 -34
- data/lib/stripe/params/quote_create_params.rb +0 -208
- data/lib/stripe/params/quote_update_params.rb +0 -208
- data/lib/stripe/params/setup_intent_confirm_params.rb +0 -29
- data/lib/stripe/params/setup_intent_create_params.rb +0 -29
- data/lib/stripe/params/setup_intent_update_params.rb +1 -30
- data/lib/stripe/params/subscription_schedule_amend_params.rb +1 -28
- data/lib/stripe/params/subscription_schedule_create_params.rb +2 -62
- data/lib/stripe/params/subscription_schedule_update_params.rb +2 -62
- data/lib/stripe/params/token_create_params.rb +0 -64
- data/lib/stripe/params/transfer_create_params.rb +0 -4
- data/lib/stripe/params/v2/billing/cadence_cancel_params.rb +1 -8
- data/lib/stripe/params/v2/billing/cadence_create_params.rb +0 -4
- data/lib/stripe/params/v2/billing/cadence_update_params.rb +1 -4
- data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +2 -2
- data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +2 -2
- data/lib/stripe/params/v2/core/account_create_params.rb +97 -699
- data/lib/stripe/params/v2/core/account_token_create_params.rb +1001 -0
- data/lib/stripe/params/v2/core/{claimable_sandbox_retrieve_params.rb → account_token_retrieve_params.rb} +1 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +98 -686
- data/lib/stripe/params/v2/core/accounts/person_create_params.rb +4 -0
- data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
- data/lib/stripe/params/v2/{billing/rate_cards/version_retrieve_params.rb → core/accounts/person_token_retrieve_params.rb} +3 -3
- data/lib/stripe/params/v2/core/accounts/person_update_params.rb +4 -0
- data/lib/stripe/params/v2/core/event_list_params.rb +21 -21
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +1 -12
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +0 -4
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +1 -19
- data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +0 -4
- data/lib/stripe/params.rb +4 -97
- data/lib/stripe/resources/application_fee.rb +0 -2
- data/lib/stripe/resources/balance.rb +0 -83
- data/lib/stripe/resources/billing/alert.rb +1 -105
- data/lib/stripe/resources/billing/alert_triggered.rb +0 -6
- data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +0 -2
- data/lib/stripe/resources/billing/credit_balance_summary.rb +2 -84
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -84
- data/lib/stripe/resources/billing/credit_grant.rb +2 -58
- data/lib/stripe/resources/billing/meter.rb +0 -2
- data/lib/stripe/resources/billing/meter_event_summary.rb +0 -2
- data/lib/stripe/resources/capital/financing_offer.rb +0 -41
- data/lib/stripe/resources/card.rb +1 -18
- data/lib/stripe/resources/charge.rb +0 -18
- data/lib/stripe/resources/checkout/session.rb +0 -92
- data/lib/stripe/resources/confirmation_token.rb +0 -18
- data/lib/stripe/resources/discount.rb +0 -2
- data/lib/stripe/resources/identity/verification_report.rb +0 -4
- data/lib/stripe/resources/invoice.rb +0 -16
- data/lib/stripe/resources/invoice_item.rb +2 -106
- data/lib/stripe/resources/invoice_line_item.rb +1 -107
- data/lib/stripe/resources/payment_intent.rb +0 -44
- data/lib/stripe/resources/payment_method.rb +0 -38
- data/lib/stripe/resources/person.rb +0 -36
- data/lib/stripe/resources/quote.rb +1 -348
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -16
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -174
- data/lib/stripe/resources/setup_intent.rb +0 -40
- data/lib/stripe/resources/subscription.rb +2 -105
- data/lib/stripe/resources/subscription_schedule.rb +0 -174
- data/lib/stripe/resources/transfer.rb +0 -4
- data/lib/stripe/resources/v2/billing/cadence.rb +2 -48
- data/lib/stripe/resources/v2/billing/collection_setting.rb +2 -2
- data/lib/stripe/resources/v2/billing/collection_setting_version.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -1
- data/lib/stripe/resources/v2/core/account.rb +295 -1053
- data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
- data/lib/stripe/resources/v2/core/account_token.rb +37 -0
- data/lib/stripe/resources/v2/core/event.rb +0 -2
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -2
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -2
- data/lib/stripe/resources/v2/money_management/payout_method.rb +1 -29
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -2
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -4
- data/lib/stripe/resources.rb +2 -290
- data/lib/stripe/services/identity_service.rb +1 -2
- data/lib/stripe/services/issuing_service.rb +1 -2
- data/lib/stripe/services/payment_method_service.rb +0 -11
- data/lib/stripe/services/radar_service.rb +1 -2
- data/lib/stripe/services/test_helpers_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -3
- data/lib/stripe/services/v2/billing_service.rb +1 -14
- data/lib/stripe/services/v2/core/account_service.rb +2 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
- data/lib/stripe/services/v2/core_service.rb +2 -2
- data/lib/stripe/services/v2/money_management_service.rb +1 -3
- data/lib/stripe/services/v2/test_helper_service.rb +1 -2
- data/lib/stripe/services/v2_services.rb +1 -3
- data/lib/stripe/services.rb +2 -34
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +3568 -16938
- metadata +9 -422
- data/lib/stripe/events/v1_account_updated_event.rb +0 -44
- data/lib/stripe/events/v1_application_fee_created_event.rb +0 -44
- data/lib/stripe/events/v1_application_fee_refunded_event.rb +0 -44
- data/lib/stripe/events/v1_billing_portal_configuration_created_event.rb +0 -44
- data/lib/stripe/events/v1_billing_portal_configuration_updated_event.rb +0 -44
- data/lib/stripe/events/v1_capability_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_captured_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_closed_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_created_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_funds_reinstated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_funds_withdrawn_event.rb +0 -44
- data/lib/stripe/events/v1_charge_dispute_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_expired_event.rb +0 -44
- data/lib/stripe/events/v1_charge_failed_event.rb +0 -44
- data/lib/stripe/events/v1_charge_pending_event.rb +0 -44
- data/lib/stripe/events/v1_charge_refund_updated_event.rb +0 -44
- data/lib/stripe/events/v1_charge_refunded_event.rb +0 -44
- data/lib/stripe/events/v1_charge_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_charge_updated_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_async_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_async_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_completed_event.rb +0 -44
- data/lib/stripe/events/v1_checkout_session_expired_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_created_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_delayed_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_delivered_event.rb +0 -44
- data/lib/stripe/events/v1_climate_order_product_substituted_event.rb +0 -44
- data/lib/stripe/events/v1_climate_product_created_event.rb +0 -44
- data/lib/stripe/events/v1_climate_product_pricing_updated_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_created_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_coupon_updated_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_created_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_updated_event.rb +0 -44
- data/lib/stripe/events/v1_credit_note_voided_event.rb +0 -44
- data/lib/stripe/events/v1_customer_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_paused_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_pending_update_applied_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_pending_update_expired_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_resumed_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_trial_will_end_event.rb +0 -44
- data/lib/stripe/events/v1_customer_subscription_updated_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_created_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_customer_tax_id_updated_event.rb +0 -44
- data/lib/stripe/events/v1_customer_updated_event.rb +0 -44
- data/lib/stripe/events/v1_file_created_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_created_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_deactivated_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_disconnected_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_reactivated_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_balance_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_ownership_event.rb +0 -44
- data/lib/stripe/events/v1_financial_connections_account_refreshed_transactions_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_created_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_processing_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_redacted_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_requires_input_event.rb +0 -44
- data/lib/stripe/events/v1_identity_verification_session_verified_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_created_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_finalization_failed_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_finalized_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_marked_uncollectible_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_overdue_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_overpaid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_paid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_action_required_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_paid_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_payment_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_sent_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_upcoming_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_updated_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_voided_event.rb +0 -44
- data/lib/stripe/events/v1_invoice_will_be_due_event.rb +0 -44
- data/lib/stripe/events/v1_invoiceitem_created_event.rb +0 -44
- data/lib/stripe/events/v1_invoiceitem_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_request_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_authorization_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_card_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_card_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_cardholder_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_cardholder_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_closed_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_funds_reinstated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_funds_rescinded_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_submitted_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_dispute_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_activated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_deactivated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_rejected_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_personalization_design_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_token_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_token_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_created_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_purchase_details_receipt_updated_event.rb +0 -44
- data/lib/stripe/events/v1_issuing_transaction_updated_event.rb +0 -44
- data/lib/stripe/events/v1_mandate_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_amount_capturable_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_created_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_partially_funded_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_payment_failed_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_processing_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_requires_action_event.rb +0 -44
- data/lib/stripe/events/v1_payment_intent_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_payment_link_created_event.rb +0 -44
- data/lib/stripe/events/v1_payment_link_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_attached_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_automatically_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_detached_event.rb +0 -44
- data/lib/stripe/events/v1_payment_method_updated_event.rb +0 -44
- data/lib/stripe/events/v1_payout_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_payout_created_event.rb +0 -44
- data/lib/stripe/events/v1_payout_failed_event.rb +0 -44
- data/lib/stripe/events/v1_payout_paid_event.rb +0 -44
- data/lib/stripe/events/v1_payout_reconciliation_completed_event.rb +0 -44
- data/lib/stripe/events/v1_payout_updated_event.rb +0 -44
- data/lib/stripe/events/v1_person_created_event.rb +0 -44
- data/lib/stripe/events/v1_person_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_person_updated_event.rb +0 -44
- data/lib/stripe/events/v1_plan_created_event.rb +0 -44
- data/lib/stripe/events/v1_plan_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_plan_updated_event.rb +0 -44
- data/lib/stripe/events/v1_price_created_event.rb +0 -44
- data/lib/stripe/events/v1_price_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_price_updated_event.rb +0 -44
- data/lib/stripe/events/v1_product_created_event.rb +0 -44
- data/lib/stripe/events/v1_product_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_product_updated_event.rb +0 -44
- data/lib/stripe/events/v1_promotion_code_created_event.rb +0 -44
- data/lib/stripe/events/v1_promotion_code_updated_event.rb +0 -44
- data/lib/stripe/events/v1_quote_accepted_event.rb +0 -44
- data/lib/stripe/events/v1_quote_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_quote_created_event.rb +0 -44
- data/lib/stripe/events/v1_quote_finalized_event.rb +0 -44
- data/lib/stripe/events/v1_radar_early_fraud_warning_created_event.rb +0 -44
- data/lib/stripe/events/v1_radar_early_fraud_warning_updated_event.rb +0 -44
- data/lib/stripe/events/v1_refund_created_event.rb +0 -44
- data/lib/stripe/events/v1_refund_failed_event.rb +0 -44
- data/lib/stripe/events/v1_refund_updated_event.rb +0 -44
- data/lib/stripe/events/v1_review_closed_event.rb +0 -44
- data/lib/stripe/events/v1_review_opened_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_created_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_requires_action_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_setup_failed_event.rb +0 -44
- data/lib/stripe/events/v1_setup_intent_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_sigma_scheduled_query_run_created_event.rb +0 -44
- data/lib/stripe/events/v1_source_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_source_chargeable_event.rb +0 -44
- data/lib/stripe/events/v1_source_failed_event.rb +0 -44
- data/lib/stripe/events/v1_source_refund_attributes_required_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_aborted_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_completed_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_created_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_expiring_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_released_event.rb +0 -44
- data/lib/stripe/events/v1_subscription_schedule_updated_event.rb +0 -44
- data/lib/stripe/events/v1_tax_rate_created_event.rb +0 -44
- data/lib/stripe/events/v1_tax_rate_updated_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_failed_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_terminal_reader_action_updated_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_advancing_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_created_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_deleted_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_internal_failure_event.rb +0 -44
- data/lib/stripe/events/v1_test_helpers_test_clock_ready_event.rb +0 -44
- data/lib/stripe/events/v1_topup_canceled_event.rb +0 -44
- data/lib/stripe/events/v1_topup_created_event.rb +0 -44
- data/lib/stripe/events/v1_topup_failed_event.rb +0 -44
- data/lib/stripe/events/v1_topup_reversed_event.rb +0 -44
- data/lib/stripe/events/v1_topup_succeeded_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_created_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_reversed_event.rb +0 -44
- data/lib/stripe/events/v1_transfer_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_cadence_billed_event.rb +0 -61
- data/lib/stripe/events/v2_billing_cadence_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_cadence_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_license_fee_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_license_fee_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_license_fee_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_licensed_item_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_licensed_item_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_metered_item_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_metered_item_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_component_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_pricing_plan_component_updated_event.rb +0 -61
- data/lib/stripe/events/v2_billing_pricing_plan_created_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_awaiting_customer_action_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_current_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_past_due_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_collection_unpaid_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_subscription_servicing_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_pricing_plan_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_rate_card_created_event.rb +0 -61
- data/lib/stripe/events/v2_billing_rate_card_rate_created_event.rb +0 -67
- data/lib/stripe/events/v2_billing_rate_card_subscription_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_awaiting_customer_action_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_current_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_past_due_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_collection_unpaid_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_activated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_canceled_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_subscription_servicing_paused_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_updated_event.rb +0 -44
- data/lib/stripe/events/v2_billing_rate_card_version_created_event.rb +0 -61
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_capability_status_updated_event.rb +0 -63
- data/lib/stripe/events/v2_core_account_including_configuration_card_creator_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +0 -44
- data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +0 -44
- data/lib/stripe/events/v2_core_health_api_error_firing_event.rb +0 -66
- data/lib/stripe/events/v2_core_health_api_error_resolved_event.rb +0 -66
- data/lib/stripe/events/v2_core_health_api_latency_firing_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_api_latency_resolved_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_firing_event.rb +0 -80
- data/lib/stripe/events/v2_core_health_authorization_rate_drop_resolved_event.rb +0 -80
- data/lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_firing_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_errors_resolved_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_firing_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_issuing_authorization_request_timeout_resolved_event.rb +0 -64
- data/lib/stripe/events/v2_core_health_payment_method_error_firing_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_payment_method_error_resolved_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_firing_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_traffic_volume_drop_resolved_event.rb +0 -62
- data/lib/stripe/events/v2_core_health_webhook_latency_firing_event.rb +0 -58
- data/lib/stripe/events/v2_core_health_webhook_latency_resolved_event.rb +0 -58
- data/lib/stripe/events/v2_money_management_recipient_verification_created_event.rb +0 -44
- data/lib/stripe/events/v2_money_management_recipient_verification_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/events/v2_reporting_report_run_created_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_failed_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_succeeded_event.rb +0 -44
- data/lib/stripe/events/v2_reporting_report_run_updated_event.rb +0 -44
- data/lib/stripe/params/balance_transfer_create_params.rb +0 -66
- data/lib/stripe/params/capital/financing_offer_create_params.rb +0 -37
- data/lib/stripe/params/capital/financing_offer_refill_params.rb +0 -37
- data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +0 -55
- data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +0 -205
- data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +0 -15
- data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +0 -15
- data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +0 -209
- data/lib/stripe/params/identity/blocklist_entry_create_params.rb +0 -29
- data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +0 -15
- data/lib/stripe/params/identity/blocklist_entry_list_params.rb +0 -62
- data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/program_create_params.rb +0 -21
- data/lib/stripe/params/issuing/program_list_params.rb +0 -24
- data/lib/stripe/params/issuing/program_retrieve_params.rb +0 -15
- data/lib/stripe/params/issuing/program_update_params.rb +0 -21
- data/lib/stripe/params/payment_method_check_balance_params.rb +0 -13
- data/lib/stripe/params/radar/account_evaluation_create_params.rb +0 -81
- data/lib/stripe/params/radar/account_evaluation_retrieve_params.rb +0 -15
- data/lib/stripe/params/radar/account_evaluation_update_params.rb +0 -18
- data/lib/stripe/params/test_helpers/capital/financing_offer_create_params.rb +0 -39
- data/lib/stripe/params/test_helpers/capital/financing_offer_refill_params.rb +0 -39
- data/lib/stripe/params/v2/billing/custom_pricing_unit_create_params.rb +0 -26
- data/lib/stripe/params/v2/billing/custom_pricing_unit_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/custom_pricing_unit_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/custom_pricing_unit_update_params.rb +0 -26
- data/lib/stripe/params/v2/billing/intent_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_commit_params.rb +0 -17
- data/lib/stripe/params/v2/billing/intent_create_params.rb +0 -355
- data/lib/stripe/params/v2/billing/intent_list_params.rb +0 -17
- data/lib/stripe/params/v2/billing/intent_release_reservation_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_reserve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intent_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/intents/action_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/intents/action_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/license_fee_create_params.rb +0 -103
- data/lib/stripe/params/v2/billing/license_fee_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/license_fee_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/license_fee_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/license_fee_update_params.rb +0 -84
- data/lib/stripe/params/v2/billing/license_fees/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/license_fees/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/licensed_item_create_params.rb +0 -48
- data/lib/stripe/params/v2/billing/licensed_item_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/licensed_item_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/licensed_item_update_params.rb +0 -48
- data/lib/stripe/params/v2/billing/metered_item_create_params.rb +0 -73
- data/lib/stripe/params/v2/billing/metered_item_list_params.rb +0 -21
- data/lib/stripe/params/v2/billing/metered_item_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/metered_item_update_params.rb +0 -50
- data/lib/stripe/params/v2/billing/pricing_plan_create_params.rb +0 -39
- data/lib/stripe/params/v2/billing/pricing_plan_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/pricing_plan_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_list_params.rb +0 -50
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/pricing_plan_subscription_update_params.rb +0 -20
- data/lib/stripe/params/v2/billing/pricing_plan_subscriptions/component_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plan_update_params.rb +0 -39
- data/lib/stripe/params/v2/billing/pricing_plans/component_create_params.rb +0 -73
- data/lib/stripe/params/v2/billing/pricing_plans/component_delete_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plans/component_list_params.rb +0 -27
- data/lib/stripe/params/v2/billing/pricing_plans/component_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/pricing_plans/component_update_params.rb +0 -22
- data/lib/stripe/params/v2/billing/pricing_plans/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/pricing_plans/version_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_card_create_params.rb +0 -49
- data/lib/stripe/params/v2/billing/rate_card_list_params.rb +0 -24
- data/lib/stripe/params/v2/billing/rate_card_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_cancel_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_create_params.rb +0 -26
- data/lib/stripe/params/v2/billing/rate_card_subscription_list_params.rb +0 -51
- data/lib/stripe/params/v2/billing/rate_card_subscription_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/rate_card_subscription_update_params.rb +0 -17
- data/lib/stripe/params/v2/billing/rate_card_update_params.rb +0 -38
- data/lib/stripe/params/v2/billing/rate_cards/rate_create_params.rb +0 -91
- data/lib/stripe/params/v2/billing/rate_cards/rate_delete_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_cards/rate_list_params.rb +0 -25
- data/lib/stripe/params/v2/billing/rate_cards/rate_retrieve_params.rb +0 -12
- data/lib/stripe/params/v2/billing/rate_cards/version_list_params.rb +0 -19
- data/lib/stripe/params/v2/billing/service_action_create_params.rb +0 -254
- data/lib/stripe/params/v2/billing/service_action_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/billing/service_action_update_params.rb +0 -40
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +0 -36
- data/lib/stripe/params/v2/money_management/recipient_verification_acknowledge_params.rb +0 -10
- data/lib/stripe/params/v2/money_management/recipient_verification_create_params.rb +0 -20
- data/lib/stripe/params/v2/money_management/recipient_verification_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/reporting/report_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/reporting/report_run_create_params.rb +0 -33
- data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +0 -10
- data/lib/stripe/params/v2/test_helpers/money_management_recipient_verifications_params.rb +0 -24
- data/lib/stripe/resources/balance_transfer.rb +0 -139
- data/lib/stripe/resources/delegated_checkout/requested_session.rb +0 -420
- data/lib/stripe/resources/identity/blocklist_entry.rb +0 -116
- data/lib/stripe/resources/issuing/program.rb +0 -69
- data/lib/stripe/resources/payment_method_balance.rb +0 -68
- data/lib/stripe/resources/radar/account_evaluation.rb +0 -116
- data/lib/stripe/resources/transit_balance.rb +0 -45
- data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +0 -43
- data/lib/stripe/resources/v2/billing/intent.rb +0 -86
- data/lib/stripe/resources/v2/billing/intent_action.rb +0 -395
- data/lib/stripe/resources/v2/billing/license_fee.rb +0 -104
- data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +0 -44
- data/lib/stripe/resources/v2/billing/license_fee_version.rb +0 -80
- data/lib/stripe/resources/v2/billing/licensed_item.rb +0 -60
- data/lib/stripe/resources/v2/billing/metered_item.rb +0 -85
- data/lib/stripe/resources/v2/billing/pricing_plan.rb +0 -51
- data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +0 -94
- data/lib/stripe/resources/v2/billing/pricing_plan_subscription_components.rb +0 -49
- data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +0 -38
- data/lib/stripe/resources/v2/billing/rate_card.rb +0 -61
- data/lib/stripe/resources/v2/billing/rate_card_rate.rb +0 -110
- data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +0 -94
- data/lib/stripe/resources/v2/billing/rate_card_version.rb +0 -34
- data/lib/stripe/resources/v2/billing/service_action.rb +0 -244
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +0 -105
- data/lib/stripe/resources/v2/money_management/recipient_verification.rb +0 -83
- data/lib/stripe/resources/v2/payments/off_session_payment.rb +0 -242
- data/lib/stripe/resources/v2/reporting/report.rb +0 -116
- data/lib/stripe/resources/v2/reporting/report_run.rb +0 -128
- data/lib/stripe/services/balance_transfer_service.rb +0 -17
- data/lib/stripe/services/delegated_checkout/requested_session_service.rb +0 -63
- data/lib/stripe/services/delegated_checkout_service.rb +0 -13
- data/lib/stripe/services/identity/blocklist_entry_service.rb +0 -71
- data/lib/stripe/services/issuing/program_service.rb +0 -52
- data/lib/stripe/services/radar/account_evaluation_service.rb +0 -41
- data/lib/stripe/services/test_helpers/capital/financing_offer_service.rb +0 -32
- data/lib/stripe/services/test_helpers/capital_service.rb +0 -15
- data/lib/stripe/services/v2/billing/custom_pricing_unit_service.rb +0 -54
- data/lib/stripe/services/v2/billing/intent_service.rb +0 -94
- data/lib/stripe/services/v2/billing/intents/action_service.rb +0 -34
- data/lib/stripe/services/v2/billing/license_fee_service.rb +0 -61
- data/lib/stripe/services/v2/billing/license_fee_subscription_service.rb +0 -21
- data/lib/stripe/services/v2/billing/license_fees/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/licensed_item_service.rb +0 -54
- data/lib/stripe/services/v2/billing/metered_item_service.rb +0 -54
- data/lib/stripe/services/v2/billing/pricing_plan_service.rb +0 -62
- data/lib/stripe/services/v2/billing/pricing_plan_subscription_service.rb +0 -51
- data/lib/stripe/services/v2/billing/pricing_plan_subscriptions/component_service.rb +0 -23
- data/lib/stripe/services/v2/billing/pricing_plans/component_service.rb +0 -67
- data/lib/stripe/services/v2/billing/pricing_plans/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/rate_card_service.rb +0 -62
- data/lib/stripe/services/v2/billing/rate_card_subscription_service.rb +0 -65
- data/lib/stripe/services/v2/billing/rate_cards/rate_service.rb +0 -57
- data/lib/stripe/services/v2/billing/rate_cards/version_service.rb +0 -34
- data/lib/stripe/services/v2/billing/service_action_service.rb +0 -43
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +0 -35
- data/lib/stripe/services/v2/money_management/recipient_verification_service.rb +0 -43
- 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/reporting/report_run_service.rb +0 -38
- data/lib/stripe/services/v2/reporting/report_service.rb +0 -23
- data/lib/stripe/services/v2/reporting_service.rb +0 -16
- data/lib/stripe/services/v2/test_helpers/money_management_service.rb +0 -21
|
@@ -0,0 +1,1001 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Core
|
|
7
|
+
class AccountTokenCreateParams < ::Stripe::RequestParams
|
|
8
|
+
class Identity < ::Stripe::RequestParams
|
|
9
|
+
class Attestations < ::Stripe::RequestParams
|
|
10
|
+
class DirectorshipDeclaration < ::Stripe::RequestParams
|
|
11
|
+
# A boolean indicating if the directors information has been attested.
|
|
12
|
+
attr_accessor :attested
|
|
13
|
+
|
|
14
|
+
def initialize(attested: nil)
|
|
15
|
+
@attested = attested
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
class OwnershipDeclaration < ::Stripe::RequestParams
|
|
20
|
+
# A boolean indicating if the beneficial owner information has been attested.
|
|
21
|
+
attr_accessor :attested
|
|
22
|
+
|
|
23
|
+
def initialize(attested: nil)
|
|
24
|
+
@attested = attested
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
class PersonsProvided < ::Stripe::RequestParams
|
|
29
|
+
# Whether the company’s directors have been provided. Set this Boolean to true after creating all the company’s directors with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
|
|
30
|
+
attr_accessor :directors
|
|
31
|
+
# Whether the company’s executives have been provided. Set this Boolean to true after creating all the company’s executives with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
|
|
32
|
+
attr_accessor :executives
|
|
33
|
+
# Whether the company’s owners have been provided. Set this Boolean to true after creating all the company’s owners with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
|
|
34
|
+
attr_accessor :owners
|
|
35
|
+
# Reason for why the company is exempt from providing ownership information.
|
|
36
|
+
attr_accessor :ownership_exemption_reason
|
|
37
|
+
|
|
38
|
+
def initialize(
|
|
39
|
+
directors: nil,
|
|
40
|
+
executives: nil,
|
|
41
|
+
owners: nil,
|
|
42
|
+
ownership_exemption_reason: nil
|
|
43
|
+
)
|
|
44
|
+
@directors = directors
|
|
45
|
+
@executives = executives
|
|
46
|
+
@owners = owners
|
|
47
|
+
@ownership_exemption_reason = ownership_exemption_reason
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
class RepresentativeDeclaration < ::Stripe::RequestParams
|
|
52
|
+
# A boolean indicating if the representative is authorized to act as the representative of their legal entity.
|
|
53
|
+
attr_accessor :attested
|
|
54
|
+
|
|
55
|
+
def initialize(attested: nil)
|
|
56
|
+
@attested = attested
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
class TermsOfService < ::Stripe::RequestParams
|
|
61
|
+
class Account < ::Stripe::RequestParams
|
|
62
|
+
# The boolean value indicating if the terms of service have been accepted.
|
|
63
|
+
attr_accessor :shown_and_accepted
|
|
64
|
+
|
|
65
|
+
def initialize(shown_and_accepted: nil)
|
|
66
|
+
@shown_and_accepted = shown_and_accepted
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
class Storer < ::Stripe::RequestParams
|
|
71
|
+
# The boolean value indicating if the terms of service have been accepted.
|
|
72
|
+
attr_accessor :shown_and_accepted
|
|
73
|
+
|
|
74
|
+
def initialize(shown_and_accepted: nil)
|
|
75
|
+
@shown_and_accepted = shown_and_accepted
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
# Details on the Account's acceptance of the [Stripe Services Agreement]; IP, date, and User Agent are expanded by Stripe.
|
|
79
|
+
attr_accessor :account
|
|
80
|
+
# Details on the Account's acceptance of Treasury-specific terms of service; IP, date, and User Agent are expanded by Stripe.
|
|
81
|
+
attr_accessor :storer
|
|
82
|
+
|
|
83
|
+
def initialize(account: nil, storer: nil)
|
|
84
|
+
@account = account
|
|
85
|
+
@storer = storer
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
# This hash is used to attest that the directors information provided to Stripe is both current and correct; IP, date, and User Agent are expanded by Stripe.
|
|
89
|
+
attr_accessor :directorship_declaration
|
|
90
|
+
# This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct; IP, date, and User Agent are expanded by Stripe.
|
|
91
|
+
attr_accessor :ownership_declaration
|
|
92
|
+
# Attestation that all Persons with a specific Relationship value have been provided.
|
|
93
|
+
attr_accessor :persons_provided
|
|
94
|
+
# This hash is used to attest that the representative is authorized to act as the representative of their legal entity; IP, date, and User Agent are expanded by Stripe.
|
|
95
|
+
attr_accessor :representative_declaration
|
|
96
|
+
# Attestations of accepted terms of service agreements.
|
|
97
|
+
attr_accessor :terms_of_service
|
|
98
|
+
|
|
99
|
+
def initialize(
|
|
100
|
+
directorship_declaration: nil,
|
|
101
|
+
ownership_declaration: nil,
|
|
102
|
+
persons_provided: nil,
|
|
103
|
+
representative_declaration: nil,
|
|
104
|
+
terms_of_service: nil
|
|
105
|
+
)
|
|
106
|
+
@directorship_declaration = directorship_declaration
|
|
107
|
+
@ownership_declaration = ownership_declaration
|
|
108
|
+
@persons_provided = persons_provided
|
|
109
|
+
@representative_declaration = representative_declaration
|
|
110
|
+
@terms_of_service = terms_of_service
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
class BusinessDetails < ::Stripe::RequestParams
|
|
115
|
+
class Address < ::Stripe::RequestParams
|
|
116
|
+
# City, district, suburb, town, or village.
|
|
117
|
+
attr_accessor :city
|
|
118
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
119
|
+
attr_accessor :country
|
|
120
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
|
121
|
+
attr_accessor :line1
|
|
122
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
|
123
|
+
attr_accessor :line2
|
|
124
|
+
# ZIP or postal code.
|
|
125
|
+
attr_accessor :postal_code
|
|
126
|
+
# State, county, province, or region.
|
|
127
|
+
attr_accessor :state
|
|
128
|
+
# Town or cho-me.
|
|
129
|
+
attr_accessor :town
|
|
130
|
+
|
|
131
|
+
def initialize(
|
|
132
|
+
city: nil,
|
|
133
|
+
country: nil,
|
|
134
|
+
line1: nil,
|
|
135
|
+
line2: nil,
|
|
136
|
+
postal_code: nil,
|
|
137
|
+
state: nil,
|
|
138
|
+
town: nil
|
|
139
|
+
)
|
|
140
|
+
@city = city
|
|
141
|
+
@country = country
|
|
142
|
+
@line1 = line1
|
|
143
|
+
@line2 = line2
|
|
144
|
+
@postal_code = postal_code
|
|
145
|
+
@state = state
|
|
146
|
+
@town = town
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
class AnnualRevenue < ::Stripe::RequestParams
|
|
151
|
+
# A non-negative integer representing the amount in the smallest currency unit.
|
|
152
|
+
attr_accessor :amount
|
|
153
|
+
# The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
|
|
154
|
+
attr_accessor :fiscal_year_end
|
|
155
|
+
|
|
156
|
+
def initialize(amount: nil, fiscal_year_end: nil)
|
|
157
|
+
@amount = amount
|
|
158
|
+
@fiscal_year_end = fiscal_year_end
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
class Documents < ::Stripe::RequestParams
|
|
163
|
+
class BankAccountOwnershipVerification < ::Stripe::RequestParams
|
|
164
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
165
|
+
attr_accessor :files
|
|
166
|
+
# The format of the document. Currently supports `files` only.
|
|
167
|
+
attr_accessor :type
|
|
168
|
+
|
|
169
|
+
def initialize(files: nil, type: nil)
|
|
170
|
+
@files = files
|
|
171
|
+
@type = type
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
class CompanyLicense < ::Stripe::RequestParams
|
|
176
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
177
|
+
attr_accessor :files
|
|
178
|
+
# The format of the document. Currently supports `files` only.
|
|
179
|
+
attr_accessor :type
|
|
180
|
+
|
|
181
|
+
def initialize(files: nil, type: nil)
|
|
182
|
+
@files = files
|
|
183
|
+
@type = type
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
class CompanyMemorandumOfAssociation < ::Stripe::RequestParams
|
|
188
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
189
|
+
attr_accessor :files
|
|
190
|
+
# The format of the document. Currently supports `files` only.
|
|
191
|
+
attr_accessor :type
|
|
192
|
+
|
|
193
|
+
def initialize(files: nil, type: nil)
|
|
194
|
+
@files = files
|
|
195
|
+
@type = type
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
class CompanyMinisterialDecree < ::Stripe::RequestParams
|
|
200
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
201
|
+
attr_accessor :files
|
|
202
|
+
# The format of the document. Currently supports `files` only.
|
|
203
|
+
attr_accessor :type
|
|
204
|
+
|
|
205
|
+
def initialize(files: nil, type: nil)
|
|
206
|
+
@files = files
|
|
207
|
+
@type = type
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
class CompanyRegistrationVerification < ::Stripe::RequestParams
|
|
212
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
213
|
+
attr_accessor :files
|
|
214
|
+
# The format of the document. Currently supports `files` only.
|
|
215
|
+
attr_accessor :type
|
|
216
|
+
|
|
217
|
+
def initialize(files: nil, type: nil)
|
|
218
|
+
@files = files
|
|
219
|
+
@type = type
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
class CompanyTaxIdVerification < ::Stripe::RequestParams
|
|
224
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
225
|
+
attr_accessor :files
|
|
226
|
+
# The format of the document. Currently supports `files` only.
|
|
227
|
+
attr_accessor :type
|
|
228
|
+
|
|
229
|
+
def initialize(files: nil, type: nil)
|
|
230
|
+
@files = files
|
|
231
|
+
@type = type
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
class PrimaryVerification < ::Stripe::RequestParams
|
|
236
|
+
class FrontBack < ::Stripe::RequestParams
|
|
237
|
+
# A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
238
|
+
attr_accessor :back
|
|
239
|
+
# A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
240
|
+
attr_accessor :front
|
|
241
|
+
|
|
242
|
+
def initialize(back: nil, front: nil)
|
|
243
|
+
@back = back
|
|
244
|
+
@front = front
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
# The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
|
|
248
|
+
attr_accessor :front_back
|
|
249
|
+
# The format of the verification document. Currently supports `front_back` only.
|
|
250
|
+
attr_accessor :type
|
|
251
|
+
|
|
252
|
+
def initialize(front_back: nil, type: nil)
|
|
253
|
+
@front_back = front_back
|
|
254
|
+
@type = type
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
class ProofOfAddress < ::Stripe::RequestParams
|
|
259
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
260
|
+
attr_accessor :files
|
|
261
|
+
# The format of the document. Currently supports `files` only.
|
|
262
|
+
attr_accessor :type
|
|
263
|
+
|
|
264
|
+
def initialize(files: nil, type: nil)
|
|
265
|
+
@files = files
|
|
266
|
+
@type = type
|
|
267
|
+
end
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
class ProofOfRegistration < ::Stripe::RequestParams
|
|
271
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
272
|
+
attr_accessor :files
|
|
273
|
+
# The format of the document. Currently supports `files` only.
|
|
274
|
+
attr_accessor :type
|
|
275
|
+
|
|
276
|
+
def initialize(files: nil, type: nil)
|
|
277
|
+
@files = files
|
|
278
|
+
@type = type
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
|
|
283
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
284
|
+
attr_accessor :files
|
|
285
|
+
# The format of the document. Currently supports `files` only.
|
|
286
|
+
attr_accessor :type
|
|
287
|
+
|
|
288
|
+
def initialize(files: nil, type: nil)
|
|
289
|
+
@files = files
|
|
290
|
+
@type = type
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
# One or more documents that support the bank account ownership verification requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
|
|
294
|
+
attr_accessor :bank_account_ownership_verification
|
|
295
|
+
# One or more documents that demonstrate proof of a company’s license to operate.
|
|
296
|
+
attr_accessor :company_license
|
|
297
|
+
# One or more documents showing the company’s Memorandum of Association.
|
|
298
|
+
attr_accessor :company_memorandum_of_association
|
|
299
|
+
# Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
|
|
300
|
+
attr_accessor :company_ministerial_decree
|
|
301
|
+
# One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
|
|
302
|
+
attr_accessor :company_registration_verification
|
|
303
|
+
# One or more documents that demonstrate proof of a company’s tax ID.
|
|
304
|
+
attr_accessor :company_tax_id_verification
|
|
305
|
+
# A document verifying the business.
|
|
306
|
+
attr_accessor :primary_verification
|
|
307
|
+
# One or more documents that demonstrate proof of address.
|
|
308
|
+
attr_accessor :proof_of_address
|
|
309
|
+
# One or more documents showing the company’s proof of registration with the national business registry.
|
|
310
|
+
attr_accessor :proof_of_registration
|
|
311
|
+
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
|
312
|
+
attr_accessor :proof_of_ultimate_beneficial_ownership
|
|
313
|
+
|
|
314
|
+
def initialize(
|
|
315
|
+
bank_account_ownership_verification: nil,
|
|
316
|
+
company_license: nil,
|
|
317
|
+
company_memorandum_of_association: nil,
|
|
318
|
+
company_ministerial_decree: nil,
|
|
319
|
+
company_registration_verification: nil,
|
|
320
|
+
company_tax_id_verification: nil,
|
|
321
|
+
primary_verification: nil,
|
|
322
|
+
proof_of_address: nil,
|
|
323
|
+
proof_of_registration: nil,
|
|
324
|
+
proof_of_ultimate_beneficial_ownership: nil
|
|
325
|
+
)
|
|
326
|
+
@bank_account_ownership_verification = bank_account_ownership_verification
|
|
327
|
+
@company_license = company_license
|
|
328
|
+
@company_memorandum_of_association = company_memorandum_of_association
|
|
329
|
+
@company_ministerial_decree = company_ministerial_decree
|
|
330
|
+
@company_registration_verification = company_registration_verification
|
|
331
|
+
@company_tax_id_verification = company_tax_id_verification
|
|
332
|
+
@primary_verification = primary_verification
|
|
333
|
+
@proof_of_address = proof_of_address
|
|
334
|
+
@proof_of_registration = proof_of_registration
|
|
335
|
+
@proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
|
|
336
|
+
end
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
class IdNumber < ::Stripe::RequestParams
|
|
340
|
+
# The registrar of the ID number (Only valid for DE ID number types).
|
|
341
|
+
attr_accessor :registrar
|
|
342
|
+
# Open Enum. The ID number type of a business entity.
|
|
343
|
+
attr_accessor :type
|
|
344
|
+
# The value of the ID number.
|
|
345
|
+
attr_accessor :value
|
|
346
|
+
|
|
347
|
+
def initialize(registrar: nil, type: nil, value: nil)
|
|
348
|
+
@registrar = registrar
|
|
349
|
+
@type = type
|
|
350
|
+
@value = value
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
class MonthlyEstimatedRevenue < ::Stripe::RequestParams
|
|
355
|
+
# A non-negative integer representing the amount in the smallest currency unit.
|
|
356
|
+
attr_accessor :amount
|
|
357
|
+
|
|
358
|
+
def initialize(amount: nil)
|
|
359
|
+
@amount = amount
|
|
360
|
+
end
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
class ScriptAddresses < ::Stripe::RequestParams
|
|
364
|
+
class Kana < ::Stripe::RequestParams
|
|
365
|
+
# City, district, suburb, town, or village.
|
|
366
|
+
attr_accessor :city
|
|
367
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
368
|
+
attr_accessor :country
|
|
369
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
|
370
|
+
attr_accessor :line1
|
|
371
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
|
372
|
+
attr_accessor :line2
|
|
373
|
+
# ZIP or postal code.
|
|
374
|
+
attr_accessor :postal_code
|
|
375
|
+
# State, county, province, or region.
|
|
376
|
+
attr_accessor :state
|
|
377
|
+
# Town or cho-me.
|
|
378
|
+
attr_accessor :town
|
|
379
|
+
|
|
380
|
+
def initialize(
|
|
381
|
+
city: nil,
|
|
382
|
+
country: nil,
|
|
383
|
+
line1: nil,
|
|
384
|
+
line2: nil,
|
|
385
|
+
postal_code: nil,
|
|
386
|
+
state: nil,
|
|
387
|
+
town: nil
|
|
388
|
+
)
|
|
389
|
+
@city = city
|
|
390
|
+
@country = country
|
|
391
|
+
@line1 = line1
|
|
392
|
+
@line2 = line2
|
|
393
|
+
@postal_code = postal_code
|
|
394
|
+
@state = state
|
|
395
|
+
@town = town
|
|
396
|
+
end
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
class Kanji < ::Stripe::RequestParams
|
|
400
|
+
# City, district, suburb, town, or village.
|
|
401
|
+
attr_accessor :city
|
|
402
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
403
|
+
attr_accessor :country
|
|
404
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
|
405
|
+
attr_accessor :line1
|
|
406
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
|
407
|
+
attr_accessor :line2
|
|
408
|
+
# ZIP or postal code.
|
|
409
|
+
attr_accessor :postal_code
|
|
410
|
+
# State, county, province, or region.
|
|
411
|
+
attr_accessor :state
|
|
412
|
+
# Town or cho-me.
|
|
413
|
+
attr_accessor :town
|
|
414
|
+
|
|
415
|
+
def initialize(
|
|
416
|
+
city: nil,
|
|
417
|
+
country: nil,
|
|
418
|
+
line1: nil,
|
|
419
|
+
line2: nil,
|
|
420
|
+
postal_code: nil,
|
|
421
|
+
state: nil,
|
|
422
|
+
town: nil
|
|
423
|
+
)
|
|
424
|
+
@city = city
|
|
425
|
+
@country = country
|
|
426
|
+
@line1 = line1
|
|
427
|
+
@line2 = line2
|
|
428
|
+
@postal_code = postal_code
|
|
429
|
+
@state = state
|
|
430
|
+
@town = town
|
|
431
|
+
end
|
|
432
|
+
end
|
|
433
|
+
# Kana Address.
|
|
434
|
+
attr_accessor :kana
|
|
435
|
+
# Kanji Address.
|
|
436
|
+
attr_accessor :kanji
|
|
437
|
+
|
|
438
|
+
def initialize(kana: nil, kanji: nil)
|
|
439
|
+
@kana = kana
|
|
440
|
+
@kanji = kanji
|
|
441
|
+
end
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
class ScriptNames < ::Stripe::RequestParams
|
|
445
|
+
class Kana < ::Stripe::RequestParams
|
|
446
|
+
# Registered name of the business.
|
|
447
|
+
attr_accessor :registered_name
|
|
448
|
+
|
|
449
|
+
def initialize(registered_name: nil)
|
|
450
|
+
@registered_name = registered_name
|
|
451
|
+
end
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
class Kanji < ::Stripe::RequestParams
|
|
455
|
+
# Registered name of the business.
|
|
456
|
+
attr_accessor :registered_name
|
|
457
|
+
|
|
458
|
+
def initialize(registered_name: nil)
|
|
459
|
+
@registered_name = registered_name
|
|
460
|
+
end
|
|
461
|
+
end
|
|
462
|
+
# Kana name.
|
|
463
|
+
attr_accessor :kana
|
|
464
|
+
# Kanji name.
|
|
465
|
+
attr_accessor :kanji
|
|
466
|
+
|
|
467
|
+
def initialize(kana: nil, kanji: nil)
|
|
468
|
+
@kana = kana
|
|
469
|
+
@kanji = kanji
|
|
470
|
+
end
|
|
471
|
+
end
|
|
472
|
+
# The business registration address of the business entity.
|
|
473
|
+
attr_accessor :address
|
|
474
|
+
# The business gross annual revenue for its preceding fiscal year.
|
|
475
|
+
attr_accessor :annual_revenue
|
|
476
|
+
# A document verifying the business.
|
|
477
|
+
attr_accessor :documents
|
|
478
|
+
# An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.
|
|
479
|
+
attr_accessor :estimated_worker_count
|
|
480
|
+
# The ID numbers of a business entity.
|
|
481
|
+
attr_accessor :id_numbers
|
|
482
|
+
# An estimate of the monthly revenue of the business.
|
|
483
|
+
attr_accessor :monthly_estimated_revenue
|
|
484
|
+
# The phone number of the Business Entity.
|
|
485
|
+
attr_accessor :phone
|
|
486
|
+
# The business legal name.
|
|
487
|
+
attr_accessor :registered_name
|
|
488
|
+
# The business registration address of the business entity in non latin script.
|
|
489
|
+
attr_accessor :script_addresses
|
|
490
|
+
# The business legal name in non latin script.
|
|
491
|
+
attr_accessor :script_names
|
|
492
|
+
# The category identifying the legal structure of the business.
|
|
493
|
+
attr_accessor :structure
|
|
494
|
+
|
|
495
|
+
def initialize(
|
|
496
|
+
address: nil,
|
|
497
|
+
annual_revenue: nil,
|
|
498
|
+
documents: nil,
|
|
499
|
+
estimated_worker_count: nil,
|
|
500
|
+
id_numbers: nil,
|
|
501
|
+
monthly_estimated_revenue: nil,
|
|
502
|
+
phone: nil,
|
|
503
|
+
registered_name: nil,
|
|
504
|
+
script_addresses: nil,
|
|
505
|
+
script_names: nil,
|
|
506
|
+
structure: nil
|
|
507
|
+
)
|
|
508
|
+
@address = address
|
|
509
|
+
@annual_revenue = annual_revenue
|
|
510
|
+
@documents = documents
|
|
511
|
+
@estimated_worker_count = estimated_worker_count
|
|
512
|
+
@id_numbers = id_numbers
|
|
513
|
+
@monthly_estimated_revenue = monthly_estimated_revenue
|
|
514
|
+
@phone = phone
|
|
515
|
+
@registered_name = registered_name
|
|
516
|
+
@script_addresses = script_addresses
|
|
517
|
+
@script_names = script_names
|
|
518
|
+
@structure = structure
|
|
519
|
+
end
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
class Individual < ::Stripe::RequestParams
|
|
523
|
+
class AdditionalAddress < ::Stripe::RequestParams
|
|
524
|
+
# City, district, suburb, town, or village.
|
|
525
|
+
attr_accessor :city
|
|
526
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
527
|
+
attr_accessor :country
|
|
528
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
|
529
|
+
attr_accessor :line1
|
|
530
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
|
531
|
+
attr_accessor :line2
|
|
532
|
+
# ZIP or postal code.
|
|
533
|
+
attr_accessor :postal_code
|
|
534
|
+
# Purpose of additional address.
|
|
535
|
+
attr_accessor :purpose
|
|
536
|
+
# State, county, province, or region.
|
|
537
|
+
attr_accessor :state
|
|
538
|
+
# Town or cho-me.
|
|
539
|
+
attr_accessor :town
|
|
540
|
+
|
|
541
|
+
def initialize(
|
|
542
|
+
city: nil,
|
|
543
|
+
country: nil,
|
|
544
|
+
line1: nil,
|
|
545
|
+
line2: nil,
|
|
546
|
+
postal_code: nil,
|
|
547
|
+
purpose: nil,
|
|
548
|
+
state: nil,
|
|
549
|
+
town: nil
|
|
550
|
+
)
|
|
551
|
+
@city = city
|
|
552
|
+
@country = country
|
|
553
|
+
@line1 = line1
|
|
554
|
+
@line2 = line2
|
|
555
|
+
@postal_code = postal_code
|
|
556
|
+
@purpose = purpose
|
|
557
|
+
@state = state
|
|
558
|
+
@town = town
|
|
559
|
+
end
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
class AdditionalName < ::Stripe::RequestParams
|
|
563
|
+
# The person's full name.
|
|
564
|
+
attr_accessor :full_name
|
|
565
|
+
# The person's first or given name.
|
|
566
|
+
attr_accessor :given_name
|
|
567
|
+
# The purpose or type of the additional name.
|
|
568
|
+
attr_accessor :purpose
|
|
569
|
+
# The person's last or family name.
|
|
570
|
+
attr_accessor :surname
|
|
571
|
+
|
|
572
|
+
def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
|
|
573
|
+
@full_name = full_name
|
|
574
|
+
@given_name = given_name
|
|
575
|
+
@purpose = purpose
|
|
576
|
+
@surname = surname
|
|
577
|
+
end
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
class Address < ::Stripe::RequestParams
|
|
581
|
+
# City, district, suburb, town, or village.
|
|
582
|
+
attr_accessor :city
|
|
583
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
584
|
+
attr_accessor :country
|
|
585
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
|
586
|
+
attr_accessor :line1
|
|
587
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
|
588
|
+
attr_accessor :line2
|
|
589
|
+
# ZIP or postal code.
|
|
590
|
+
attr_accessor :postal_code
|
|
591
|
+
# State, county, province, or region.
|
|
592
|
+
attr_accessor :state
|
|
593
|
+
# Town or cho-me.
|
|
594
|
+
attr_accessor :town
|
|
595
|
+
|
|
596
|
+
def initialize(
|
|
597
|
+
city: nil,
|
|
598
|
+
country: nil,
|
|
599
|
+
line1: nil,
|
|
600
|
+
line2: nil,
|
|
601
|
+
postal_code: nil,
|
|
602
|
+
state: nil,
|
|
603
|
+
town: nil
|
|
604
|
+
)
|
|
605
|
+
@city = city
|
|
606
|
+
@country = country
|
|
607
|
+
@line1 = line1
|
|
608
|
+
@line2 = line2
|
|
609
|
+
@postal_code = postal_code
|
|
610
|
+
@state = state
|
|
611
|
+
@town = town
|
|
612
|
+
end
|
|
613
|
+
end
|
|
614
|
+
|
|
615
|
+
class DateOfBirth < ::Stripe::RequestParams
|
|
616
|
+
# The day of the birth.
|
|
617
|
+
attr_accessor :day
|
|
618
|
+
# The month of birth.
|
|
619
|
+
attr_accessor :month
|
|
620
|
+
# The year of birth.
|
|
621
|
+
attr_accessor :year
|
|
622
|
+
|
|
623
|
+
def initialize(day: nil, month: nil, year: nil)
|
|
624
|
+
@day = day
|
|
625
|
+
@month = month
|
|
626
|
+
@year = year
|
|
627
|
+
end
|
|
628
|
+
end
|
|
629
|
+
|
|
630
|
+
class Documents < ::Stripe::RequestParams
|
|
631
|
+
class CompanyAuthorization < ::Stripe::RequestParams
|
|
632
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
633
|
+
attr_accessor :files
|
|
634
|
+
# The format of the document. Currently supports `files` only.
|
|
635
|
+
attr_accessor :type
|
|
636
|
+
|
|
637
|
+
def initialize(files: nil, type: nil)
|
|
638
|
+
@files = files
|
|
639
|
+
@type = type
|
|
640
|
+
end
|
|
641
|
+
end
|
|
642
|
+
|
|
643
|
+
class Passport < ::Stripe::RequestParams
|
|
644
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
645
|
+
attr_accessor :files
|
|
646
|
+
# The format of the document. Currently supports `files` only.
|
|
647
|
+
attr_accessor :type
|
|
648
|
+
|
|
649
|
+
def initialize(files: nil, type: nil)
|
|
650
|
+
@files = files
|
|
651
|
+
@type = type
|
|
652
|
+
end
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
class PrimaryVerification < ::Stripe::RequestParams
|
|
656
|
+
class FrontBack < ::Stripe::RequestParams
|
|
657
|
+
# A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
658
|
+
attr_accessor :back
|
|
659
|
+
# A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
660
|
+
attr_accessor :front
|
|
661
|
+
|
|
662
|
+
def initialize(back: nil, front: nil)
|
|
663
|
+
@back = back
|
|
664
|
+
@front = front
|
|
665
|
+
end
|
|
666
|
+
end
|
|
667
|
+
# The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
|
|
668
|
+
attr_accessor :front_back
|
|
669
|
+
# The format of the verification document. Currently supports `front_back` only.
|
|
670
|
+
attr_accessor :type
|
|
671
|
+
|
|
672
|
+
def initialize(front_back: nil, type: nil)
|
|
673
|
+
@front_back = front_back
|
|
674
|
+
@type = type
|
|
675
|
+
end
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
class SecondaryVerification < ::Stripe::RequestParams
|
|
679
|
+
class FrontBack < ::Stripe::RequestParams
|
|
680
|
+
# A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
681
|
+
attr_accessor :back
|
|
682
|
+
# A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
|
683
|
+
attr_accessor :front
|
|
684
|
+
|
|
685
|
+
def initialize(back: nil, front: nil)
|
|
686
|
+
@back = back
|
|
687
|
+
@front = front
|
|
688
|
+
end
|
|
689
|
+
end
|
|
690
|
+
# The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
|
|
691
|
+
attr_accessor :front_back
|
|
692
|
+
# The format of the verification document. Currently supports `front_back` only.
|
|
693
|
+
attr_accessor :type
|
|
694
|
+
|
|
695
|
+
def initialize(front_back: nil, type: nil)
|
|
696
|
+
@front_back = front_back
|
|
697
|
+
@type = type
|
|
698
|
+
end
|
|
699
|
+
end
|
|
700
|
+
|
|
701
|
+
class Visa < ::Stripe::RequestParams
|
|
702
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
|
703
|
+
attr_accessor :files
|
|
704
|
+
# The format of the document. Currently supports `files` only.
|
|
705
|
+
attr_accessor :type
|
|
706
|
+
|
|
707
|
+
def initialize(files: nil, type: nil)
|
|
708
|
+
@files = files
|
|
709
|
+
@type = type
|
|
710
|
+
end
|
|
711
|
+
end
|
|
712
|
+
# One or more documents that demonstrate proof that this person is authorized to represent the company.
|
|
713
|
+
attr_accessor :company_authorization
|
|
714
|
+
# One or more documents showing the person’s passport page with photo and personal data.
|
|
715
|
+
attr_accessor :passport
|
|
716
|
+
# An identifying document showing the person's name, either a passport or local ID card.
|
|
717
|
+
attr_accessor :primary_verification
|
|
718
|
+
# A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
|
|
719
|
+
attr_accessor :secondary_verification
|
|
720
|
+
# One or more documents showing the person’s visa required for living in the country where they are residing.
|
|
721
|
+
attr_accessor :visa
|
|
722
|
+
|
|
723
|
+
def initialize(
|
|
724
|
+
company_authorization: nil,
|
|
725
|
+
passport: nil,
|
|
726
|
+
primary_verification: nil,
|
|
727
|
+
secondary_verification: nil,
|
|
728
|
+
visa: nil
|
|
729
|
+
)
|
|
730
|
+
@company_authorization = company_authorization
|
|
731
|
+
@passport = passport
|
|
732
|
+
@primary_verification = primary_verification
|
|
733
|
+
@secondary_verification = secondary_verification
|
|
734
|
+
@visa = visa
|
|
735
|
+
end
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
class IdNumber < ::Stripe::RequestParams
|
|
739
|
+
# The ID number type of an individual.
|
|
740
|
+
attr_accessor :type
|
|
741
|
+
# The value of the ID number.
|
|
742
|
+
attr_accessor :value
|
|
743
|
+
|
|
744
|
+
def initialize(type: nil, value: nil)
|
|
745
|
+
@type = type
|
|
746
|
+
@value = value
|
|
747
|
+
end
|
|
748
|
+
end
|
|
749
|
+
|
|
750
|
+
class Relationship < ::Stripe::RequestParams
|
|
751
|
+
# Whether the person is a director of the account's identity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
|
|
752
|
+
attr_accessor :director
|
|
753
|
+
# Whether the person has significant responsibility to control, manage, or direct the organization.
|
|
754
|
+
attr_accessor :executive
|
|
755
|
+
# Whether the person is an owner of the account’s identity.
|
|
756
|
+
attr_accessor :owner
|
|
757
|
+
# The percent owned by the person of the account's legal entity.
|
|
758
|
+
attr_accessor :percent_ownership
|
|
759
|
+
# The person's title (e.g., CEO, Support Engineer).
|
|
760
|
+
attr_accessor :title
|
|
761
|
+
|
|
762
|
+
def initialize(
|
|
763
|
+
director: nil,
|
|
764
|
+
executive: nil,
|
|
765
|
+
owner: nil,
|
|
766
|
+
percent_ownership: nil,
|
|
767
|
+
title: nil
|
|
768
|
+
)
|
|
769
|
+
@director = director
|
|
770
|
+
@executive = executive
|
|
771
|
+
@owner = owner
|
|
772
|
+
@percent_ownership = percent_ownership
|
|
773
|
+
@title = title
|
|
774
|
+
end
|
|
775
|
+
end
|
|
776
|
+
|
|
777
|
+
class ScriptAddresses < ::Stripe::RequestParams
|
|
778
|
+
class Kana < ::Stripe::RequestParams
|
|
779
|
+
# City, district, suburb, town, or village.
|
|
780
|
+
attr_accessor :city
|
|
781
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
782
|
+
attr_accessor :country
|
|
783
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
|
784
|
+
attr_accessor :line1
|
|
785
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
|
786
|
+
attr_accessor :line2
|
|
787
|
+
# ZIP or postal code.
|
|
788
|
+
attr_accessor :postal_code
|
|
789
|
+
# State, county, province, or region.
|
|
790
|
+
attr_accessor :state
|
|
791
|
+
# Town or cho-me.
|
|
792
|
+
attr_accessor :town
|
|
793
|
+
|
|
794
|
+
def initialize(
|
|
795
|
+
city: nil,
|
|
796
|
+
country: nil,
|
|
797
|
+
line1: nil,
|
|
798
|
+
line2: nil,
|
|
799
|
+
postal_code: nil,
|
|
800
|
+
state: nil,
|
|
801
|
+
town: nil
|
|
802
|
+
)
|
|
803
|
+
@city = city
|
|
804
|
+
@country = country
|
|
805
|
+
@line1 = line1
|
|
806
|
+
@line2 = line2
|
|
807
|
+
@postal_code = postal_code
|
|
808
|
+
@state = state
|
|
809
|
+
@town = town
|
|
810
|
+
end
|
|
811
|
+
end
|
|
812
|
+
|
|
813
|
+
class Kanji < ::Stripe::RequestParams
|
|
814
|
+
# City, district, suburb, town, or village.
|
|
815
|
+
attr_accessor :city
|
|
816
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
817
|
+
attr_accessor :country
|
|
818
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
|
819
|
+
attr_accessor :line1
|
|
820
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
|
821
|
+
attr_accessor :line2
|
|
822
|
+
# ZIP or postal code.
|
|
823
|
+
attr_accessor :postal_code
|
|
824
|
+
# State, county, province, or region.
|
|
825
|
+
attr_accessor :state
|
|
826
|
+
# Town or cho-me.
|
|
827
|
+
attr_accessor :town
|
|
828
|
+
|
|
829
|
+
def initialize(
|
|
830
|
+
city: nil,
|
|
831
|
+
country: nil,
|
|
832
|
+
line1: nil,
|
|
833
|
+
line2: nil,
|
|
834
|
+
postal_code: nil,
|
|
835
|
+
state: nil,
|
|
836
|
+
town: nil
|
|
837
|
+
)
|
|
838
|
+
@city = city
|
|
839
|
+
@country = country
|
|
840
|
+
@line1 = line1
|
|
841
|
+
@line2 = line2
|
|
842
|
+
@postal_code = postal_code
|
|
843
|
+
@state = state
|
|
844
|
+
@town = town
|
|
845
|
+
end
|
|
846
|
+
end
|
|
847
|
+
# Kana Address.
|
|
848
|
+
attr_accessor :kana
|
|
849
|
+
# Kanji Address.
|
|
850
|
+
attr_accessor :kanji
|
|
851
|
+
|
|
852
|
+
def initialize(kana: nil, kanji: nil)
|
|
853
|
+
@kana = kana
|
|
854
|
+
@kanji = kanji
|
|
855
|
+
end
|
|
856
|
+
end
|
|
857
|
+
|
|
858
|
+
class ScriptNames < ::Stripe::RequestParams
|
|
859
|
+
class Kana < ::Stripe::RequestParams
|
|
860
|
+
# The person's first or given name.
|
|
861
|
+
attr_accessor :given_name
|
|
862
|
+
# The person's last or family name.
|
|
863
|
+
attr_accessor :surname
|
|
864
|
+
|
|
865
|
+
def initialize(given_name: nil, surname: nil)
|
|
866
|
+
@given_name = given_name
|
|
867
|
+
@surname = surname
|
|
868
|
+
end
|
|
869
|
+
end
|
|
870
|
+
|
|
871
|
+
class Kanji < ::Stripe::RequestParams
|
|
872
|
+
# The person's first or given name.
|
|
873
|
+
attr_accessor :given_name
|
|
874
|
+
# The person's last or family name.
|
|
875
|
+
attr_accessor :surname
|
|
876
|
+
|
|
877
|
+
def initialize(given_name: nil, surname: nil)
|
|
878
|
+
@given_name = given_name
|
|
879
|
+
@surname = surname
|
|
880
|
+
end
|
|
881
|
+
end
|
|
882
|
+
# Persons name in kana script.
|
|
883
|
+
attr_accessor :kana
|
|
884
|
+
# Persons name in kanji script.
|
|
885
|
+
attr_accessor :kanji
|
|
886
|
+
|
|
887
|
+
def initialize(kana: nil, kanji: nil)
|
|
888
|
+
@kana = kana
|
|
889
|
+
@kanji = kanji
|
|
890
|
+
end
|
|
891
|
+
end
|
|
892
|
+
# Additional addresses associated with the individual.
|
|
893
|
+
attr_accessor :additional_addresses
|
|
894
|
+
# Additional names (e.g. aliases) associated with the individual.
|
|
895
|
+
attr_accessor :additional_names
|
|
896
|
+
# The individual's residential address.
|
|
897
|
+
attr_accessor :address
|
|
898
|
+
# The individual's date of birth.
|
|
899
|
+
attr_accessor :date_of_birth
|
|
900
|
+
# Documents that may be submitted to satisfy various informational requests.
|
|
901
|
+
attr_accessor :documents
|
|
902
|
+
# The individual's email address.
|
|
903
|
+
attr_accessor :email
|
|
904
|
+
# The individual's first name.
|
|
905
|
+
attr_accessor :given_name
|
|
906
|
+
# The identification numbers (e.g., SSN) associated with the individual.
|
|
907
|
+
attr_accessor :id_numbers
|
|
908
|
+
# The individual's gender (International regulations require either "male" or "female").
|
|
909
|
+
attr_accessor :legal_gender
|
|
910
|
+
# 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.
|
|
911
|
+
attr_accessor :metadata
|
|
912
|
+
# The countries where the individual is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
913
|
+
attr_accessor :nationalities
|
|
914
|
+
# The individual's phone number.
|
|
915
|
+
attr_accessor :phone
|
|
916
|
+
# The individual's political exposure.
|
|
917
|
+
attr_accessor :political_exposure
|
|
918
|
+
# The relationship that this individual has with the account's identity.
|
|
919
|
+
attr_accessor :relationship
|
|
920
|
+
# The script addresses (e.g., non-Latin characters) associated with the individual.
|
|
921
|
+
attr_accessor :script_addresses
|
|
922
|
+
# The individuals primary name in non latin script.
|
|
923
|
+
attr_accessor :script_names
|
|
924
|
+
# The individual's last name.
|
|
925
|
+
attr_accessor :surname
|
|
926
|
+
|
|
927
|
+
def initialize(
|
|
928
|
+
additional_addresses: nil,
|
|
929
|
+
additional_names: nil,
|
|
930
|
+
address: nil,
|
|
931
|
+
date_of_birth: nil,
|
|
932
|
+
documents: nil,
|
|
933
|
+
email: nil,
|
|
934
|
+
given_name: nil,
|
|
935
|
+
id_numbers: nil,
|
|
936
|
+
legal_gender: nil,
|
|
937
|
+
metadata: nil,
|
|
938
|
+
nationalities: nil,
|
|
939
|
+
phone: nil,
|
|
940
|
+
political_exposure: nil,
|
|
941
|
+
relationship: nil,
|
|
942
|
+
script_addresses: nil,
|
|
943
|
+
script_names: nil,
|
|
944
|
+
surname: nil
|
|
945
|
+
)
|
|
946
|
+
@additional_addresses = additional_addresses
|
|
947
|
+
@additional_names = additional_names
|
|
948
|
+
@address = address
|
|
949
|
+
@date_of_birth = date_of_birth
|
|
950
|
+
@documents = documents
|
|
951
|
+
@email = email
|
|
952
|
+
@given_name = given_name
|
|
953
|
+
@id_numbers = id_numbers
|
|
954
|
+
@legal_gender = legal_gender
|
|
955
|
+
@metadata = metadata
|
|
956
|
+
@nationalities = nationalities
|
|
957
|
+
@phone = phone
|
|
958
|
+
@political_exposure = political_exposure
|
|
959
|
+
@relationship = relationship
|
|
960
|
+
@script_addresses = script_addresses
|
|
961
|
+
@script_names = script_names
|
|
962
|
+
@surname = surname
|
|
963
|
+
end
|
|
964
|
+
end
|
|
965
|
+
# Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
|
|
966
|
+
attr_accessor :attestations
|
|
967
|
+
# Information about the company or business.
|
|
968
|
+
attr_accessor :business_details
|
|
969
|
+
# The entity type.
|
|
970
|
+
attr_accessor :entity_type
|
|
971
|
+
# Information about the person represented by the account.
|
|
972
|
+
attr_accessor :individual
|
|
973
|
+
|
|
974
|
+
def initialize(
|
|
975
|
+
attestations: nil,
|
|
976
|
+
business_details: nil,
|
|
977
|
+
entity_type: nil,
|
|
978
|
+
individual: nil
|
|
979
|
+
)
|
|
980
|
+
@attestations = attestations
|
|
981
|
+
@business_details = business_details
|
|
982
|
+
@entity_type = entity_type
|
|
983
|
+
@individual = individual
|
|
984
|
+
end
|
|
985
|
+
end
|
|
986
|
+
# The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
|
|
987
|
+
attr_accessor :contact_email
|
|
988
|
+
# A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
|
|
989
|
+
attr_accessor :display_name
|
|
990
|
+
# Information about the company, individual, and business represented by the Account.
|
|
991
|
+
attr_accessor :identity
|
|
992
|
+
|
|
993
|
+
def initialize(contact_email: nil, display_name: nil, identity: nil)
|
|
994
|
+
@contact_email = contact_email
|
|
995
|
+
@display_name = display_name
|
|
996
|
+
@identity = identity
|
|
997
|
+
end
|
|
998
|
+
end
|
|
999
|
+
end
|
|
1000
|
+
end
|
|
1001
|
+
end
|