stripe 13.6.0.pre.beta.1 → 14.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/CHANGELOG.md +699 -1457
- data/OPENAPI_VERSION +1 -1
- data/README.md +29 -0
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +2 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +0 -7
- data/lib/stripe/object_types.rb +0 -26
- data/lib/stripe/resources/account.rb +83 -614
- data/lib/stripe/resources/account_session.rb +1 -247
- data/lib/stripe/resources/apple_pay_domain.rb +0 -9
- data/lib/stripe/resources/application_fee.rb +1 -10
- data/lib/stripe/resources/balance.rb +0 -9
- data/lib/stripe/resources/balance_transaction.rb +2 -11
- data/lib/stripe/resources/bank_account.rb +1 -1
- data/lib/stripe/resources/billing/alert.rb +0 -9
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -48
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -9
- data/lib/stripe/resources/billing/credit_grant.rb +4 -13
- data/lib/stripe/resources/billing/meter.rb +1 -10
- data/lib/stripe/resources/billing_portal/configuration.rb +0 -9
- data/lib/stripe/resources/card.rb +2 -4
- data/lib/stripe/resources/charge.rb +35 -1457
- data/lib/stripe/resources/checkout/session.rb +100 -293
- data/lib/stripe/resources/climate/order.rb +0 -9
- data/lib/stripe/resources/climate/product.rb +0 -9
- data/lib/stripe/resources/climate/supplier.rb +0 -9
- data/lib/stripe/resources/confirmation_token.rb +74 -156
- data/lib/stripe/resources/country_spec.rb +0 -9
- data/lib/stripe/resources/coupon.rb +0 -9
- data/lib/stripe/resources/credit_note.rb +14 -35
- data/lib/stripe/resources/credit_note_line_item.rb +14 -12
- data/lib/stripe/resources/customer.rb +12 -28
- data/lib/stripe/resources/customer_balance_transaction.rb +3 -1
- data/lib/stripe/resources/dispute.rb +0 -9
- data/lib/stripe/resources/entitlements/active_entitlement.rb +0 -9
- data/lib/stripe/resources/entitlements/feature.rb +0 -9
- data/lib/stripe/resources/event.rb +0 -40
- data/lib/stripe/resources/exchange_rate.rb +0 -9
- data/lib/stripe/resources/file.rb +0 -9
- data/lib/stripe/resources/file_link.rb +0 -9
- data/lib/stripe/resources/financial_connections/account.rb +0 -23
- data/lib/stripe/resources/financial_connections/session.rb +1 -65
- data/lib/stripe/resources/financial_connections/transaction.rb +0 -9
- data/lib/stripe/resources/forwarding/request.rb +0 -9
- data/lib/stripe/resources/identity/verification_report.rb +0 -9
- data/lib/stripe/resources/identity/verification_session.rb +0 -9
- data/lib/stripe/resources/invoice.rb +225 -5120
- data/lib/stripe/resources/invoice_item.rb +65 -110
- data/lib/stripe/resources/invoice_line_item.rb +106 -89
- data/lib/stripe/resources/invoice_payment.rb +53 -4
- data/lib/stripe/resources/invoice_rendering_template.rb +0 -12
- data/lib/stripe/resources/issuing/authorization.rb +0 -9
- data/lib/stripe/resources/issuing/card.rb +0 -9
- data/lib/stripe/resources/issuing/cardholder.rb +1 -11
- data/lib/stripe/resources/issuing/dispute.rb +0 -9
- data/lib/stripe/resources/issuing/personalization_design.rb +0 -9
- data/lib/stripe/resources/issuing/physical_bundle.rb +0 -9
- data/lib/stripe/resources/issuing/token.rb +0 -9
- data/lib/stripe/resources/issuing/transaction.rb +0 -15
- data/lib/stripe/resources/line_item.rb +0 -28
- data/lib/stripe/resources/mandate.rb +6 -33
- data/lib/stripe/resources/payment_intent.rb +642 -4975
- data/lib/stripe/resources/payment_link.rb +84 -15
- data/lib/stripe/resources/payment_method.rb +74 -187
- data/lib/stripe/resources/payment_method_configuration.rb +87 -214
- data/lib/stripe/resources/payment_method_domain.rb +9 -18
- data/lib/stripe/resources/payout.rb +0 -9
- data/lib/stripe/resources/person.rb +9 -9
- data/lib/stripe/resources/plan.rb +0 -15
- data/lib/stripe/resources/price.rb +2 -47
- data/lib/stripe/resources/product.rb +0 -68
- data/lib/stripe/resources/promotion_code.rb +0 -9
- data/lib/stripe/resources/quote.rb +8 -2037
- data/lib/stripe/resources/radar/early_fraud_warning.rb +0 -9
- data/lib/stripe/resources/radar/value_list.rb +0 -9
- data/lib/stripe/resources/radar/value_list_item.rb +0 -9
- data/lib/stripe/resources/refund.rb +13 -18
- data/lib/stripe/resources/reporting/report_run.rb +0 -9
- data/lib/stripe/resources/reporting/report_type.rb +0 -9
- data/lib/stripe/resources/review.rb +2 -11
- data/lib/stripe/resources/setup_attempt.rb +11 -16
- data/lib/stripe/resources/setup_intent.rb +158 -540
- data/lib/stripe/resources/shipping_rate.rb +0 -9
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +0 -9
- data/lib/stripe/resources/source.rb +0 -41
- data/lib/stripe/resources/subscription.rb +14 -385
- data/lib/stripe/resources/subscription_item.rb +9 -134
- data/lib/stripe/resources/subscription_schedule.rb +14 -1135
- data/lib/stripe/resources/tax/calculation.rb +0 -9
- data/lib/stripe/resources/tax/registration.rb +1 -10
- data/lib/stripe/resources/tax/settings.rb +0 -9
- data/lib/stripe/resources/tax/transaction.rb +0 -9
- data/lib/stripe/resources/tax_code.rb +0 -9
- data/lib/stripe/resources/tax_id.rb +0 -9
- data/lib/stripe/resources/tax_rate.rb +0 -9
- data/lib/stripe/resources/terminal/configuration.rb +214 -14
- data/lib/stripe/resources/terminal/location.rb +0 -9
- data/lib/stripe/resources/terminal/reader.rb +0 -408
- data/lib/stripe/resources/test_helpers/test_clock.rb +0 -9
- data/lib/stripe/resources/token.rb +1 -10
- data/lib/stripe/resources/topup.rb +0 -9
- data/lib/stripe/resources/transfer.rb +0 -9
- data/lib/stripe/resources/treasury/credit_reversal.rb +0 -9
- data/lib/stripe/resources/treasury/debit_reversal.rb +0 -9
- data/lib/stripe/resources/treasury/financial_account.rb +4 -32
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/inbound_transfer.rb +0 -9
- data/lib/stripe/resources/treasury/outbound_payment.rb +0 -9
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -46
- data/lib/stripe/resources/treasury/received_credit.rb +1 -47
- data/lib/stripe/resources/treasury/received_debit.rb +1 -49
- data/lib/stripe/resources/treasury/transaction.rb +0 -9
- data/lib/stripe/resources/treasury/transaction_entry.rb +0 -9
- data/lib/stripe/resources/v2/event.rb +1 -0
- data/lib/stripe/resources/v2/event_destination.rb +1 -0
- data/lib/stripe/resources/webhook_endpoint.rb +0 -9
- data/lib/stripe/resources.rb +0 -25
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_service.rb +68 -509
- data/lib/stripe/services/account_session_service.rb +1 -217
- data/lib/stripe/services/balance_transaction_service.rb +1 -1
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +2 -2
- data/lib/stripe/services/billing/credit_grant_service.rb +2 -2
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +1 -1335
- data/lib/stripe/services/checkout/session_service.rb +60 -168
- data/lib/stripe/services/credit_note_preview_lines_service.rb +0 -4
- data/lib/stripe/services/credit_note_service.rb +0 -8
- data/lib/stripe/services/customer_service.rb +0 -16
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections/session_service.rb +1 -30
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/invoice_item_service.rb +34 -88
- data/lib/stripe/services/invoice_line_item_service.rb +25 -41
- data/lib/stripe/services/invoice_payment_service.rb +33 -5
- data/lib/stripe/services/invoice_service.rb +210 -3147
- data/lib/stripe/services/issuing/cardholder_service.rb +1 -2
- data/lib/stripe/services/issuing/transaction_service.rb +0 -4
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/payment_intent_service.rb +568 -4513
- data/lib/stripe/services/payment_link_service.rb +59 -6
- data/lib/stripe/services/payment_method_configuration_service.rb +62 -146
- data/lib/stripe/services/payment_method_domain_service.rb +6 -6
- data/lib/stripe/services/payment_method_service.rb +49 -119
- data/lib/stripe/services/plan_service.rb +0 -4
- data/lib/stripe/services/price_service.rb +2 -25
- data/lib/stripe/services/product_service.rb +0 -38
- data/lib/stripe/services/quote_service.rb +9 -1716
- data/lib/stripe/services/setup_intent_service.rb +158 -492
- data/lib/stripe/services/subscription_item_service.rb +5 -111
- data/lib/stripe/services/subscription_schedule_service.rb +14 -1005
- data/lib/stripe/services/subscription_service.rb +13 -323
- data/lib/stripe/services/tax/registration_service.rb +1 -1
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/configuration_service.rb +170 -4
- data/lib/stripe/services/terminal/reader_service.rb +0 -177
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +49 -87
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +0 -43
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -25
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -25
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/treasury/financial_account_features_service.rb +1 -4
- data/lib/stripe/services/treasury/financial_account_service.rb +3 -17
- data/lib/stripe/services/treasury/outbound_transfer_service.rb +0 -24
- data/lib/stripe/services/v1_services.rb +2 -8
- data/lib/stripe/services/v2/core/event_destination_service.rb +1 -4
- data/lib/stripe/services/v2/core/event_service.rb +1 -4
- data/lib/stripe/services.rb +0 -27
- data/lib/stripe/stripe_client.rb +1 -0
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -45
- data/rbi/stripe/resources/account.rbi +1131 -1479
- data/rbi/stripe/resources/account_link.rbi +9 -9
- data/rbi/stripe/resources/account_session.rbi +118 -367
- data/rbi/stripe/resources/apple_pay_domain.rbi +8 -15
- data/rbi/stripe/resources/application_fee.rbi +15 -20
- data/rbi/stripe/resources/apps/secret.rbi +20 -20
- data/rbi/stripe/resources/balance.rbi +0 -7
- data/rbi/stripe/resources/balance_transaction.rbi +19 -24
- data/rbi/stripe/resources/bank_account.rbi +1 -1
- data/rbi/stripe/resources/billing/alert.rbi +23 -28
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +0 -53
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +6 -13
- data/rbi/stripe/resources/billing/credit_grant.rbi +30 -37
- data/rbi/stripe/resources/billing/meter.rbi +19 -26
- data/rbi/stripe/resources/billing/meter_event.rbi +4 -4
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +5 -5
- data/rbi/stripe/resources/billing_portal/configuration.rbi +86 -81
- data/rbi/stripe/resources/billing_portal/session.rbi +31 -27
- data/rbi/stripe/resources/card.rbi +2 -5
- data/rbi/stripe/resources/charge.rbi +136 -1576
- data/rbi/stripe/resources/checkout/session.rbi +631 -748
- data/rbi/stripe/resources/climate/order.rbi +20 -25
- data/rbi/stripe/resources/climate/product.rbi +5 -12
- data/rbi/stripe/resources/climate/supplier.rbi +5 -12
- data/rbi/stripe/resources/confirmation_token.rbi +274 -268
- data/rbi/stripe/resources/country_spec.rbi +5 -12
- data/rbi/stripe/resources/coupon.rbi +34 -39
- data/rbi/stripe/resources/credit_note.rbi +134 -146
- data/rbi/stripe/resources/credit_note_line_item.rbi +20 -18
- data/rbi/stripe/resources/customer.rbi +172 -164
- data/rbi/stripe/resources/customer_balance_transaction.rbi +4 -1
- data/rbi/stripe/resources/customer_session.rbi +19 -15
- data/rbi/stripe/resources/dispute.rbi +92 -95
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +5 -12
- data/rbi/stripe/resources/entitlements/feature.rbi +15 -22
- data/rbi/stripe/resources/ephemeral_key.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +16 -60
- data/rbi/stripe/resources/exchange_rate.rbi +5 -12
- data/rbi/stripe/resources/file.rbi +20 -25
- data/rbi/stripe/resources/file_link.rbi +23 -28
- data/rbi/stripe/resources/financial_connections/account.rbi +25 -44
- data/rbi/stripe/resources/financial_connections/session.rbi +12 -75
- data/rbi/stripe/resources/financial_connections/transaction.rbi +16 -19
- data/rbi/stripe/resources/forwarding/request.rbi +21 -24
- data/rbi/stripe/resources/identity/verification_report.rbi +18 -21
- data/rbi/stripe/resources/identity/verification_session.rbi +60 -61
- data/rbi/stripe/resources/invoice.rbi +723 -5918
- data/rbi/stripe/resources/invoice_item.rbi +138 -177
- data/rbi/stripe/resources/invoice_line_item.rbi +199 -264
- data/rbi/stripe/resources/invoice_payment.rbi +51 -7
- data/rbi/stripe/resources/invoice_rendering_template.rbi +10 -20
- data/rbi/stripe/resources/issuing/authorization.rbi +216 -199
- data/rbi/stripe/resources/issuing/card.rbi +104 -101
- data/rbi/stripe/resources/issuing/cardholder.rbi +120 -108
- data/rbi/stripe/resources/issuing/dispute.rbi +164 -151
- data/rbi/stripe/resources/issuing/personalization_design.rbi +61 -56
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +7 -14
- data/rbi/stripe/resources/issuing/token.rbi +16 -21
- data/rbi/stripe/resources/issuing/transaction.rbi +180 -176
- data/rbi/stripe/resources/line_item.rbi +0 -36
- data/rbi/stripe/resources/mandate.rbi +8 -40
- data/rbi/stripe/resources/payment_intent.rbi +2252 -6482
- data/rbi/stripe/resources/payment_link.rbi +346 -211
- data/rbi/stripe/resources/payment_method.rbi +226 -330
- data/rbi/stripe/resources/payment_method_configuration.rbi +602 -685
- data/rbi/stripe/resources/payment_method_domain.rbi +26 -31
- data/rbi/stripe/resources/payout.rbi +43 -42
- data/rbi/stripe/resources/person.rbi +9 -9
- data/rbi/stripe/resources/plan.rbi +51 -63
- data/rbi/stripe/resources/price.rbi +114 -151
- data/rbi/stripe/resources/product.rbi +90 -152
- data/rbi/stripe/resources/promotion_code.rbi +42 -47
- data/rbi/stripe/resources/quote.rbi +168 -2231
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +17 -20
- data/rbi/stripe/resources/radar/value_list.rbi +24 -29
- data/rbi/stripe/resources/radar/value_list_item.rbi +18 -21
- data/rbi/stripe/resources/refund.rbi +52 -51
- data/rbi/stripe/resources/reporting/report_run.rbi +27 -30
- data/rbi/stripe/resources/reporting/report_type.rbi +2 -9
- data/rbi/stripe/resources/review.rbi +17 -22
- data/rbi/stripe/resources/setup_attempt.rbi +25 -32
- data/rbi/stripe/resources/setup_intent.rbi +900 -1102
- data/rbi/stripe/resources/shipping_rate.rbi +41 -46
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +5 -12
- data/rbi/stripe/resources/source.rbi +132 -179
- data/rbi/stripe/resources/subscription.rbi +363 -707
- data/rbi/stripe/resources/subscription_item.rbi +69 -177
- data/rbi/stripe/resources/subscription_schedule.rbi +289 -1447
- data/rbi/stripe/resources/tax/calculation.rbi +43 -48
- data/rbi/stripe/resources/tax/registration.rbi +217 -170
- data/rbi/stripe/resources/tax/settings.rbi +14 -21
- data/rbi/stripe/resources/tax/transaction.rbi +20 -25
- data/rbi/stripe/resources/tax_code.rbi +5 -12
- data/rbi/stripe/resources/tax_id.rbi +15 -22
- data/rbi/stripe/resources/tax_rate.rbi +34 -39
- data/rbi/stripe/resources/terminal/configuration.rbi +457 -212
- data/rbi/stripe/resources/terminal/connection_token.rbi +3 -3
- data/rbi/stripe/resources/terminal/location.rbi +28 -35
- data/rbi/stripe/resources/terminal/reader.rbi +71 -441
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +12 -17
- data/rbi/stripe/resources/token.rbi +288 -263
- data/rbi/stripe/resources/topup.rbi +35 -38
- data/rbi/stripe/resources/transfer.rbi +27 -32
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +10 -17
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +11 -18
- data/rbi/stripe/resources/treasury/financial_account.rbi +125 -130
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +0 -3
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +22 -29
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +82 -79
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +44 -86
- data/rbi/stripe/resources/treasury/received_credit.rbi +18 -64
- data/rbi/stripe/resources/treasury/received_debit.rbi +17 -66
- data/rbi/stripe/resources/treasury/transaction.rbi +27 -28
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +25 -26
- data/rbi/stripe/resources/v2/amount.rbi +1 -1
- data/rbi/stripe/resources/v2/event.rbi +1 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +1 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +18 -25
- data/rbi/stripe/services/account_capability_service.rbi +7 -7
- data/rbi/stripe/services/account_external_account_service.rbi +52 -52
- data/rbi/stripe/services/account_link_service.rbi +9 -9
- data/rbi/stripe/services/account_login_link_service.rbi +2 -2
- data/rbi/stripe/services/account_person_service.rbi +221 -201
- data/rbi/stripe/services/account_service.rbi +1221 -1345
- data/rbi/stripe/services/account_session_service.rbi +115 -346
- data/rbi/stripe/services/apple_pay_domain_service.rbi +10 -10
- data/rbi/stripe/services/application_fee_refund_service.rbi +16 -14
- data/rbi/stripe/services/application_fee_service.rbi +18 -14
- data/rbi/stripe/services/apps/secret_service.rbi +20 -20
- data/rbi/stripe/services/balance_service.rbi +2 -2
- data/rbi/stripe/services/balance_transaction_service.rbi +22 -18
- data/rbi/stripe/services/billing/alert_service.rbi +23 -23
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +10 -10
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +8 -8
- data/rbi/stripe/services/billing/credit_grant_service.rbi +32 -30
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +7 -5
- data/rbi/stripe/services/billing/meter_event_service.rbi +4 -4
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +6 -6
- data/rbi/stripe/services/billing/meter_service.rbi +21 -21
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +90 -76
- data/rbi/stripe/services/billing_portal/session_service.rbi +29 -27
- data/rbi/stripe/services/charge_service.rbi +96 -1464
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +5 -5
- data/rbi/stripe/services/checkout/session_service.rbi +555 -591
- data/rbi/stripe/services/climate/order_service.rbi +22 -20
- data/rbi/stripe/services/climate/product_service.rbi +7 -7
- data/rbi/stripe/services/climate/supplier_service.rbi +7 -7
- data/rbi/stripe/services/confirmation_token_service.rbi +2 -2
- data/rbi/stripe/services/country_spec_service.rbi +7 -7
- data/rbi/stripe/services/coupon_service.rbi +40 -34
- data/rbi/stripe/services/credit_note_line_item_service.rbi +5 -5
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +35 -35
- data/rbi/stripe/services/credit_note_service.rbi +81 -85
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +15 -15
- data/rbi/stripe/services/customer_cash_balance_service.rbi +7 -7
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +7 -7
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +5 -5
- data/rbi/stripe/services/customer_payment_method_service.rbi +9 -9
- data/rbi/stripe/services/customer_payment_source_service.rbi +48 -44
- data/rbi/stripe/services/customer_service.rbi +143 -139
- data/rbi/stripe/services/customer_session_service.rbi +21 -15
- data/rbi/stripe/services/customer_tax_id_service.rbi +9 -9
- data/rbi/stripe/services/dispute_service.rbi +92 -90
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +7 -7
- data/rbi/stripe/services/entitlements/feature_service.rbi +17 -17
- data/rbi/stripe/services/ephemeral_key_service.rbi +8 -8
- data/rbi/stripe/services/event_service.rbi +18 -16
- data/rbi/stripe/services/exchange_rate_service.rbi +7 -7
- data/rbi/stripe/services/file_link_service.rbi +25 -23
- data/rbi/stripe/services/file_service.rbi +22 -20
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +5 -5
- data/rbi/stripe/services/financial_connections/account_service.rbi +22 -21
- data/rbi/stripe/services/financial_connections/session_service.rbi +16 -39
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +16 -14
- data/rbi/stripe/services/financial_connections_service.rbi +0 -1
- data/rbi/stripe/services/forwarding/request_service.rbi +21 -19
- data/rbi/stripe/services/identity/verification_report_service.rbi +18 -16
- data/rbi/stripe/services/identity/verification_session_service.rbi +62 -56
- data/rbi/stripe/services/invoice_item_service.rbi +99 -155
- data/rbi/stripe/services/invoice_line_item_service.rbi +71 -82
- data/rbi/stripe/services/invoice_payment_service.rbi +39 -12
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +13 -13
- data/rbi/stripe/services/invoice_service.rbi +679 -3799
- data/rbi/stripe/services/issuing/authorization_service.rbi +32 -26
- data/rbi/stripe/services/issuing/card_service.rbi +102 -86
- data/rbi/stripe/services/issuing/cardholder_service.rbi +122 -103
- data/rbi/stripe/services/issuing/dispute_service.rbi +152 -146
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +52 -42
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +9 -9
- data/rbi/stripe/services/issuing/token_service.rbi +20 -16
- data/rbi/stripe/services/issuing/transaction_service.rbi +25 -23
- data/rbi/stripe/services/issuing_service.rbi +0 -3
- data/rbi/stripe/services/mandate_service.rbi +2 -2
- data/rbi/stripe/services/payment_intent_service.rbi +2312 -6081
- data/rbi/stripe/services/payment_link_line_item_service.rbi +5 -5
- data/rbi/stripe/services/payment_link_service.rbi +303 -201
- data/rbi/stripe/services/payment_method_configuration_service.rbi +616 -620
- data/rbi/stripe/services/payment_method_domain_service.rbi +25 -23
- data/rbi/stripe/services/payment_method_service.rbi +192 -249
- data/rbi/stripe/services/payout_service.rbi +45 -37
- data/rbi/stripe/services/plan_service.rbi +53 -55
- data/rbi/stripe/services/price_service.rbi +124 -129
- data/rbi/stripe/services/product_feature_service.rbi +9 -9
- data/rbi/stripe/services/product_service.rbi +94 -122
- data/rbi/stripe/services/promotion_code_service.rbi +46 -42
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +5 -5
- data/rbi/stripe/services/quote_line_item_service.rbi +5 -5
- data/rbi/stripe/services/quote_service.rbi +159 -1863
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +17 -15
- data/rbi/stripe/services/radar/value_list_item_service.rbi +20 -16
- data/rbi/stripe/services/radar/value_list_service.rbi +28 -24
- data/rbi/stripe/services/refund_service.rbi +37 -33
- data/rbi/stripe/services/reporting/report_run_service.rbi +29 -25
- data/rbi/stripe/services/reporting/report_type_service.rbi +4 -4
- data/rbi/stripe/services/review_service.rbi +17 -15
- data/rbi/stripe/services/setup_attempt_service.rbi +13 -11
- data/rbi/stripe/services/setup_intent_service.rbi +1028 -1062
- data/rbi/stripe/services/shipping_rate_service.rbi +47 -41
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +7 -7
- data/rbi/stripe/services/source_service.rbi +149 -133
- data/rbi/stripe/services/source_transaction_service.rbi +5 -5
- data/rbi/stripe/services/subscription_item_service.rbi +61 -159
- data/rbi/stripe/services/subscription_schedule_service.rbi +289 -1305
- data/rbi/stripe/services/subscription_service.rbi +366 -640
- data/rbi/stripe/services/tax/calculation_line_item_service.rbi +5 -5
- data/rbi/stripe/services/tax/calculation_service.rbi +40 -38
- data/rbi/stripe/services/tax/registration_service.rbi +337 -165
- data/rbi/stripe/services/tax/settings_service.rbi +16 -16
- data/rbi/stripe/services/tax/transaction_line_item_service.rbi +5 -5
- data/rbi/stripe/services/tax/transaction_service.rbi +19 -15
- data/rbi/stripe/services/tax_code_service.rbi +7 -7
- data/rbi/stripe/services/tax_id_service.rbi +17 -17
- data/rbi/stripe/services/tax_rate_service.rbi +36 -34
- data/rbi/stripe/services/tax_service.rbi +0 -2
- data/rbi/stripe/services/terminal/configuration_service.rbi +464 -204
- data/rbi/stripe/services/terminal/connection_token_service.rbi +3 -3
- data/rbi/stripe/services/terminal/location_service.rbi +30 -30
- data/rbi/stripe/services/terminal/reader_service.rbi +57 -226
- data/rbi/stripe/services/terminal_service.rbi +0 -1
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +157 -198
- data/rbi/stripe/services/test_helpers/customer_service.rbi +3 -3
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +180 -168
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +10 -10
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +11 -9
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +151 -145
- data/rbi/stripe/services/test_helpers/refund_service.rbi +2 -2
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +10 -39
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +14 -12
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +9 -9
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +20 -18
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +20 -18
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +11 -38
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +11 -38
- data/rbi/stripe/services/token_service.rbi +292 -258
- data/rbi/stripe/services/topup_service.rbi +37 -33
- data/rbi/stripe/services/transfer_reversal_service.rbi +18 -16
- data/rbi/stripe/services/transfer_service.rbi +29 -27
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +12 -12
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +13 -13
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +23 -26
- data/rbi/stripe/services/treasury/financial_account_service.rbi +92 -96
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +15 -15
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +60 -56
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +24 -49
- data/rbi/stripe/services/treasury/received_credit_service.rbi +11 -9
- data/rbi/stripe/services/treasury/received_debit_service.rbi +8 -8
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +25 -21
- data/rbi/stripe/services/treasury/transaction_service.rbi +31 -23
- data/rbi/stripe/services/v1_services.rbi +1 -7
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +3 -3
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +3 -3
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +21 -24
- data/rbi/stripe/services/v2/core/event_service.rbi +3 -6
- data/rbi/stripe/services/webhook_endpoint_service.rbi +20 -20
- metadata +4 -109
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -132
- data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
- data/lib/stripe/resources/capital/financing_offer.rb +0 -188
- data/lib/stripe/resources/capital/financing_summary.rb +0 -64
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -123
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -99
- data/lib/stripe/resources/gift_cards/card.rb +0 -217
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -281
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -611
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -84
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -95
- data/lib/stripe/resources/issuing/settlement.rb +0 -49
- data/lib/stripe/resources/margin.rb +0 -124
- data/lib/stripe/resources/order.rb +0 -2868
- data/lib/stripe/resources/payment_attempt_record.rb +0 -184
- data/lib/stripe/resources/payment_record.rb +0 -715
- data/lib/stripe/resources/quote_line.rb +0 -274
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -652
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -362
- data/lib/stripe/resources/tax/association.rb +0 -89
- data/lib/stripe/resources/tax/form.rb +0 -220
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -40
- data/lib/stripe/resources/usage_record.rb +0 -30
- data/lib/stripe/resources/usage_record_summary.rb +0 -33
- data/lib/stripe/services/account_notice_service.rb +0 -101
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -112
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -28
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -79
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -37
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -57
- data/lib/stripe/services/gift_cards/card_service.rb +0 -170
- data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
- data/lib/stripe/services/gift_cards_service.rb +0 -14
- data/lib/stripe/services/invoice_upcoming_lines_service.rb +0 -1881
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -504
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -66
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -83
- data/lib/stripe/services/margin_service.rb +0 -119
- data/lib/stripe/services/order_line_item_service.rb +0 -35
- data/lib/stripe/services/order_service.rb +0 -2268
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -49
- data/lib/stripe/services/payment_record_service.rb +0 -542
- data/lib/stripe/services/quote_line_service.rb +0 -35
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -35
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -35
- data/lib/stripe/services/subscription_item_usage_record_service.rb +0 -41
- data/lib/stripe/services/subscription_item_usage_record_summary_service.rb +0 -37
- data/lib/stripe/services/tax/association_service.rb +0 -31
- data/lib/stripe/services/tax/form_service.rb +0 -100
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -28
- data/rbi/stripe/resources/account_notice.rbi +0 -139
- data/rbi/stripe/resources/billing/meter_error_report.rbi +0 -71
- data/rbi/stripe/resources/capital/financing_offer.rbi +0 -190
- data/rbi/stripe/resources/capital/financing_summary.rbi +0 -74
- data/rbi/stripe/resources/capital/financing_transaction.rbi +0 -130
- data/rbi/stripe/resources/financial_connections/account_inferred_balance.rbi +0 -27
- data/rbi/stripe/resources/financial_connections/institution.rbi +0 -99
- data/rbi/stripe/resources/gift_cards/card.rbi +0 -206
- data/rbi/stripe/resources/gift_cards/transaction.rbi +0 -257
- data/rbi/stripe/resources/issuing/credit_underwriting_record.rbi +0 -622
- data/rbi/stripe/resources/issuing/dispute_settlement_detail.rbi +0 -83
- data/rbi/stripe/resources/issuing/fraud_liability_debit.rbi +0 -90
- data/rbi/stripe/resources/issuing/settlement.rbi +0 -62
- data/rbi/stripe/resources/margin.rbi +0 -127
- data/rbi/stripe/resources/order.rbi +0 -3036
- data/rbi/stripe/resources/payment_attempt_record.rbi +0 -215
- data/rbi/stripe/resources/payment_record.rbi +0 -722
- data/rbi/stripe/resources/quote_line.rbi +0 -350
- data/rbi/stripe/resources/quote_preview_invoice.rbi +0 -850
- data/rbi/stripe/resources/quote_preview_subscription_schedule.rbi +0 -474
- data/rbi/stripe/resources/tax/association.rbi +0 -94
- data/rbi/stripe/resources/tax/form.rbi +0 -224
- data/rbi/stripe/resources/terminal/reader_collected_data.rbi +0 -41
- data/rbi/stripe/resources/usage_record.rbi +0 -32
- data/rbi/stripe/resources/usage_record_summary.rbi +0 -38
- data/rbi/stripe/services/account_notice_service.rbi +0 -90
- data/rbi/stripe/services/capital/financing_offer_service.rbi +0 -95
- data/rbi/stripe/services/capital/financing_summary_service.rbi +0 -22
- data/rbi/stripe/services/capital/financing_transaction_service.rbi +0 -68
- data/rbi/stripe/services/capital_service.rbi +0 -11
- data/rbi/stripe/services/financial_connections/account_inferred_balance_service.rbi +0 -33
- data/rbi/stripe/services/financial_connections/institution_service.rbi +0 -46
- data/rbi/stripe/services/gift_cards/card_service.rbi +0 -142
- data/rbi/stripe/services/gift_cards/transaction_service.rbi +0 -174
- data/rbi/stripe/services/gift_cards_service.rbi +0 -10
- data/rbi/stripe/services/invoice_upcoming_lines_service.rbi +0 -2023
- data/rbi/stripe/services/issuing/credit_underwriting_record_service.rbi +0 -498
- data/rbi/stripe/services/issuing/dispute_settlement_detail_service.rbi +0 -55
- data/rbi/stripe/services/issuing/fraud_liability_debit_service.rbi +0 -73
- data/rbi/stripe/services/margin_service.rbi +0 -104
- data/rbi/stripe/services/order_line_item_service.rbi +0 -31
- data/rbi/stripe/services/order_service.rbi +0 -2320
- data/rbi/stripe/services/payment_attempt_record_service.rbi +0 -36
- data/rbi/stripe/services/payment_record_service.rbi +0 -521
- data/rbi/stripe/services/quote_line_service.rbi +0 -31
- data/rbi/stripe/services/quote_preview_invoice_service.rbi +0 -31
- data/rbi/stripe/services/quote_preview_subscription_schedule_service.rbi +0 -31
- data/rbi/stripe/services/subscription_item_usage_record_service.rbi +0 -37
- data/rbi/stripe/services/subscription_item_usage_record_summary_service.rbi +0 -33
- data/rbi/stripe/services/tax/association_service.rbi +0 -25
- data/rbi/stripe/services/tax/form_service.rbi +0 -85
- data/rbi/stripe/services/terminal/reader_collected_data_service.rbi +0 -22
@@ -9,57 +9,59 @@ module Stripe
|
|
9
9
|
end
|
10
10
|
class RetrieveParams < Stripe::RequestParams
|
11
11
|
# Specifies which fields in the response should be expanded.
|
12
|
-
sig { returns(T::Array[String]) }
|
12
|
+
sig { returns(T.nilable(T::Array[String])) }
|
13
13
|
attr_accessor :expand
|
14
|
-
sig { params(expand: T::Array[String]).void }
|
14
|
+
sig { params(expand: T.nilable(T::Array[String])).void }
|
15
15
|
def initialize(expand: nil); end
|
16
16
|
end
|
17
17
|
class UpdateParams < Stripe::RequestParams
|
18
18
|
class AdditionalTosAcceptances < Stripe::RequestParams
|
19
19
|
class Account < Stripe::RequestParams
|
20
20
|
# The Unix timestamp marking when the account representative accepted the service agreement.
|
21
|
-
sig { returns(Integer) }
|
21
|
+
sig { returns(T.nilable(Integer)) }
|
22
22
|
attr_accessor :date
|
23
23
|
# The IP address from which the account representative accepted the service agreement.
|
24
|
-
sig { returns(String) }
|
24
|
+
sig { returns(T.nilable(String)) }
|
25
25
|
attr_accessor :ip
|
26
26
|
# The user agent of the browser from which the account representative accepted the service agreement.
|
27
|
-
sig { returns(T.nilable(String)) }
|
27
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
28
28
|
attr_accessor :user_agent
|
29
|
-
sig {
|
29
|
+
sig {
|
30
|
+
params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
|
31
|
+
}
|
30
32
|
def initialize(date: nil, ip: nil, user_agent: nil); end
|
31
33
|
end
|
32
34
|
# Details on the legal guardian's acceptance of the main Stripe service agreement.
|
33
35
|
sig {
|
34
|
-
returns(::Stripe::AccountPersonService::UpdateParams::AdditionalTosAcceptances::Account)
|
36
|
+
returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::AdditionalTosAcceptances::Account))
|
35
37
|
}
|
36
38
|
attr_accessor :account
|
37
39
|
sig {
|
38
|
-
params(account: ::Stripe::AccountPersonService::UpdateParams::AdditionalTosAcceptances::Account).void
|
40
|
+
params(account: T.nilable(::Stripe::AccountPersonService::UpdateParams::AdditionalTosAcceptances::Account)).void
|
39
41
|
}
|
40
42
|
def initialize(account: nil); end
|
41
43
|
end
|
42
44
|
class Address < Stripe::RequestParams
|
43
45
|
# City, district, suburb, town, or village.
|
44
|
-
sig { returns(String) }
|
46
|
+
sig { returns(T.nilable(String)) }
|
45
47
|
attr_accessor :city
|
46
48
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
47
|
-
sig { returns(String) }
|
49
|
+
sig { returns(T.nilable(String)) }
|
48
50
|
attr_accessor :country
|
49
51
|
# Address line 1 (e.g., street, PO Box, or company name).
|
50
|
-
sig { returns(String) }
|
52
|
+
sig { returns(T.nilable(String)) }
|
51
53
|
attr_accessor :line1
|
52
54
|
# Address line 2 (e.g., apartment, suite, unit, or building).
|
53
|
-
sig { returns(String) }
|
55
|
+
sig { returns(T.nilable(String)) }
|
54
56
|
attr_accessor :line2
|
55
57
|
# ZIP or postal code.
|
56
|
-
sig { returns(String) }
|
58
|
+
sig { returns(T.nilable(String)) }
|
57
59
|
attr_accessor :postal_code
|
58
60
|
# State, county, province, or region.
|
59
|
-
sig { returns(String) }
|
61
|
+
sig { returns(T.nilable(String)) }
|
60
62
|
attr_accessor :state
|
61
63
|
sig {
|
62
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
64
|
+
params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
|
63
65
|
}
|
64
66
|
def initialize(
|
65
67
|
city: nil,
|
@@ -72,28 +74,28 @@ module Stripe
|
|
72
74
|
end
|
73
75
|
class AddressKana < Stripe::RequestParams
|
74
76
|
# City or ward.
|
75
|
-
sig { returns(String) }
|
77
|
+
sig { returns(T.nilable(String)) }
|
76
78
|
attr_accessor :city
|
77
79
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
78
|
-
sig { returns(String) }
|
80
|
+
sig { returns(T.nilable(String)) }
|
79
81
|
attr_accessor :country
|
80
82
|
# Block or building number.
|
81
|
-
sig { returns(String) }
|
83
|
+
sig { returns(T.nilable(String)) }
|
82
84
|
attr_accessor :line1
|
83
85
|
# Building details.
|
84
|
-
sig { returns(String) }
|
86
|
+
sig { returns(T.nilable(String)) }
|
85
87
|
attr_accessor :line2
|
86
88
|
# Postal code.
|
87
|
-
sig { returns(String) }
|
89
|
+
sig { returns(T.nilable(String)) }
|
88
90
|
attr_accessor :postal_code
|
89
91
|
# Prefecture.
|
90
|
-
sig { returns(String) }
|
92
|
+
sig { returns(T.nilable(String)) }
|
91
93
|
attr_accessor :state
|
92
94
|
# Town or cho-me.
|
93
|
-
sig { returns(String) }
|
95
|
+
sig { returns(T.nilable(String)) }
|
94
96
|
attr_accessor :town
|
95
97
|
sig {
|
96
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String, town: String).void
|
98
|
+
params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void
|
97
99
|
}
|
98
100
|
def initialize(
|
99
101
|
city: nil,
|
@@ -107,28 +109,28 @@ module Stripe
|
|
107
109
|
end
|
108
110
|
class AddressKanji < Stripe::RequestParams
|
109
111
|
# City or ward.
|
110
|
-
sig { returns(String) }
|
112
|
+
sig { returns(T.nilable(String)) }
|
111
113
|
attr_accessor :city
|
112
114
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
113
|
-
sig { returns(String) }
|
115
|
+
sig { returns(T.nilable(String)) }
|
114
116
|
attr_accessor :country
|
115
117
|
# Block or building number.
|
116
|
-
sig { returns(String) }
|
118
|
+
sig { returns(T.nilable(String)) }
|
117
119
|
attr_accessor :line1
|
118
120
|
# Building details.
|
119
|
-
sig { returns(String) }
|
121
|
+
sig { returns(T.nilable(String)) }
|
120
122
|
attr_accessor :line2
|
121
123
|
# Postal code.
|
122
|
-
sig { returns(String) }
|
124
|
+
sig { returns(T.nilable(String)) }
|
123
125
|
attr_accessor :postal_code
|
124
126
|
# Prefecture.
|
125
|
-
sig { returns(String) }
|
127
|
+
sig { returns(T.nilable(String)) }
|
126
128
|
attr_accessor :state
|
127
129
|
# Town or cho-me.
|
128
|
-
sig { returns(String) }
|
130
|
+
sig { returns(T.nilable(String)) }
|
129
131
|
attr_accessor :town
|
130
132
|
sig {
|
131
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String, town: String).void
|
133
|
+
params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void
|
132
134
|
}
|
133
135
|
def initialize(
|
134
136
|
city: nil,
|
@@ -156,62 +158,64 @@ module Stripe
|
|
156
158
|
class Documents < Stripe::RequestParams
|
157
159
|
class CompanyAuthorization < Stripe::RequestParams
|
158
160
|
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
159
|
-
sig { returns(T::Array[String]) }
|
161
|
+
sig { returns(T.nilable(T::Array[String])) }
|
160
162
|
attr_accessor :files
|
161
|
-
sig { params(files: T::Array[String]).void }
|
163
|
+
sig { params(files: T.nilable(T::Array[String])).void }
|
162
164
|
def initialize(files: nil); end
|
163
165
|
end
|
164
166
|
class Passport < Stripe::RequestParams
|
165
167
|
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
166
|
-
sig { returns(T::Array[String]) }
|
168
|
+
sig { returns(T.nilable(T::Array[String])) }
|
167
169
|
attr_accessor :files
|
168
|
-
sig { params(files: T::Array[String]).void }
|
170
|
+
sig { params(files: T.nilable(T::Array[String])).void }
|
169
171
|
def initialize(files: nil); end
|
170
172
|
end
|
171
173
|
class Visa < Stripe::RequestParams
|
172
174
|
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
173
|
-
sig { returns(T::Array[String]) }
|
175
|
+
sig { returns(T.nilable(T::Array[String])) }
|
174
176
|
attr_accessor :files
|
175
|
-
sig { params(files: T::Array[String]).void }
|
177
|
+
sig { params(files: T.nilable(T::Array[String])).void }
|
176
178
|
def initialize(files: nil); end
|
177
179
|
end
|
178
180
|
# One or more documents that demonstrate proof that this person is authorized to represent the company.
|
179
181
|
sig {
|
180
|
-
returns(::Stripe::AccountPersonService::UpdateParams::Documents::CompanyAuthorization)
|
182
|
+
returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::Documents::CompanyAuthorization))
|
181
183
|
}
|
182
184
|
attr_accessor :company_authorization
|
183
185
|
# One or more documents showing the person's passport page with photo and personal data.
|
184
|
-
sig {
|
186
|
+
sig {
|
187
|
+
returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::Documents::Passport))
|
188
|
+
}
|
185
189
|
attr_accessor :passport
|
186
190
|
# One or more documents showing the person's visa required for living in the country where they are residing.
|
187
|
-
sig { returns(::Stripe::AccountPersonService::UpdateParams::Documents::Visa) }
|
191
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::Documents::Visa)) }
|
188
192
|
attr_accessor :visa
|
189
193
|
sig {
|
190
|
-
params(company_authorization: ::Stripe::AccountPersonService::UpdateParams::Documents::CompanyAuthorization, passport: ::Stripe::AccountPersonService::UpdateParams::Documents::Passport, visa: ::Stripe::AccountPersonService::UpdateParams::Documents::Visa).void
|
194
|
+
params(company_authorization: T.nilable(::Stripe::AccountPersonService::UpdateParams::Documents::CompanyAuthorization), passport: T.nilable(::Stripe::AccountPersonService::UpdateParams::Documents::Passport), visa: T.nilable(::Stripe::AccountPersonService::UpdateParams::Documents::Visa)).void
|
191
195
|
}
|
192
196
|
def initialize(company_authorization: nil, passport: nil, visa: nil); end
|
193
197
|
end
|
194
198
|
class RegisteredAddress < Stripe::RequestParams
|
195
199
|
# City, district, suburb, town, or village.
|
196
|
-
sig { returns(String) }
|
200
|
+
sig { returns(T.nilable(String)) }
|
197
201
|
attr_accessor :city
|
198
202
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
199
|
-
sig { returns(String) }
|
203
|
+
sig { returns(T.nilable(String)) }
|
200
204
|
attr_accessor :country
|
201
205
|
# Address line 1 (e.g., street, PO Box, or company name).
|
202
|
-
sig { returns(String) }
|
206
|
+
sig { returns(T.nilable(String)) }
|
203
207
|
attr_accessor :line1
|
204
208
|
# Address line 2 (e.g., apartment, suite, unit, or building).
|
205
|
-
sig { returns(String) }
|
209
|
+
sig { returns(T.nilable(String)) }
|
206
210
|
attr_accessor :line2
|
207
211
|
# ZIP or postal code.
|
208
|
-
sig { returns(String) }
|
212
|
+
sig { returns(T.nilable(String)) }
|
209
213
|
attr_accessor :postal_code
|
210
214
|
# State, county, province, or region.
|
211
|
-
sig { returns(String) }
|
215
|
+
sig { returns(T.nilable(String)) }
|
212
216
|
attr_accessor :state
|
213
217
|
sig {
|
214
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
218
|
+
params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
|
215
219
|
}
|
216
220
|
def initialize(
|
217
221
|
city: nil,
|
@@ -224,31 +228,31 @@ module Stripe
|
|
224
228
|
end
|
225
229
|
class Relationship < Stripe::RequestParams
|
226
230
|
# Whether the person is the authorizer of the account's representative.
|
227
|
-
sig { returns(T::Boolean) }
|
231
|
+
sig { returns(T.nilable(T::Boolean)) }
|
228
232
|
attr_accessor :authorizer
|
229
233
|
# Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
|
230
|
-
sig { returns(T::Boolean) }
|
234
|
+
sig { returns(T.nilable(T::Boolean)) }
|
231
235
|
attr_accessor :director
|
232
236
|
# Whether the person has significant responsibility to control, manage, or direct the organization.
|
233
|
-
sig { returns(T::Boolean) }
|
237
|
+
sig { returns(T.nilable(T::Boolean)) }
|
234
238
|
attr_accessor :executive
|
235
239
|
# Whether the person is the legal guardian of the account's representative.
|
236
|
-
sig { returns(T::Boolean) }
|
240
|
+
sig { returns(T.nilable(T::Boolean)) }
|
237
241
|
attr_accessor :legal_guardian
|
238
242
|
# Whether the person is an owner of the account’s legal entity.
|
239
|
-
sig { returns(T::Boolean) }
|
243
|
+
sig { returns(T.nilable(T::Boolean)) }
|
240
244
|
attr_accessor :owner
|
241
245
|
# The percent owned by the person of the account's legal entity.
|
242
|
-
sig { returns(T.nilable(Float)) }
|
246
|
+
sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
|
243
247
|
attr_accessor :percent_ownership
|
244
248
|
# Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account.
|
245
|
-
sig { returns(T::Boolean) }
|
249
|
+
sig { returns(T.nilable(T::Boolean)) }
|
246
250
|
attr_accessor :representative
|
247
251
|
# The person's title (e.g., CEO, Support Engineer).
|
248
|
-
sig { returns(String) }
|
252
|
+
sig { returns(T.nilable(String)) }
|
249
253
|
attr_accessor :title
|
250
254
|
sig {
|
251
|
-
params(authorizer: T::Boolean, director: T::Boolean, executive: T::Boolean, legal_guardian: T::Boolean, owner: T::Boolean, percent_ownership: T.nilable(Float), representative: T::Boolean, title: String).void
|
255
|
+
params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), representative: T.nilable(T::Boolean), title: T.nilable(String)).void
|
252
256
|
}
|
253
257
|
def initialize(
|
254
258
|
authorizer: nil,
|
@@ -264,123 +268,129 @@ module Stripe
|
|
264
268
|
class Verification < Stripe::RequestParams
|
265
269
|
class AdditionalDocument < Stripe::RequestParams
|
266
270
|
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
|
267
|
-
sig { returns(String) }
|
271
|
+
sig { returns(T.nilable(String)) }
|
268
272
|
attr_accessor :back
|
269
273
|
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
|
270
|
-
sig { returns(String) }
|
274
|
+
sig { returns(T.nilable(String)) }
|
271
275
|
attr_accessor :front
|
272
|
-
sig { params(back: String, front: String).void }
|
276
|
+
sig { params(back: T.nilable(String), front: T.nilable(String)).void }
|
273
277
|
def initialize(back: nil, front: nil); end
|
274
278
|
end
|
275
279
|
class Document < Stripe::RequestParams
|
276
280
|
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
|
277
|
-
sig { returns(String) }
|
281
|
+
sig { returns(T.nilable(String)) }
|
278
282
|
attr_accessor :back
|
279
283
|
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
|
280
|
-
sig { returns(String) }
|
284
|
+
sig { returns(T.nilable(String)) }
|
281
285
|
attr_accessor :front
|
282
|
-
sig { params(back: String, front: String).void }
|
286
|
+
sig { params(back: T.nilable(String), front: T.nilable(String)).void }
|
283
287
|
def initialize(back: nil, front: nil); end
|
284
288
|
end
|
285
289
|
# A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
|
286
290
|
sig {
|
287
|
-
returns(::Stripe::AccountPersonService::UpdateParams::Verification::AdditionalDocument)
|
291
|
+
returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::Verification::AdditionalDocument))
|
288
292
|
}
|
289
293
|
attr_accessor :additional_document
|
290
294
|
# An identifying document, either a passport or local ID card.
|
291
|
-
sig {
|
295
|
+
sig {
|
296
|
+
returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::Verification::Document))
|
297
|
+
}
|
292
298
|
attr_accessor :document
|
293
299
|
sig {
|
294
|
-
params(additional_document: ::Stripe::AccountPersonService::UpdateParams::Verification::AdditionalDocument, document: ::Stripe::AccountPersonService::UpdateParams::Verification::Document).void
|
300
|
+
params(additional_document: T.nilable(::Stripe::AccountPersonService::UpdateParams::Verification::AdditionalDocument), document: T.nilable(::Stripe::AccountPersonService::UpdateParams::Verification::Document)).void
|
295
301
|
}
|
296
302
|
def initialize(additional_document: nil, document: nil); end
|
297
303
|
end
|
298
304
|
# Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
|
299
|
-
sig {
|
305
|
+
sig {
|
306
|
+
returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::AdditionalTosAcceptances))
|
307
|
+
}
|
300
308
|
attr_accessor :additional_tos_acceptances
|
301
309
|
# The person's address.
|
302
|
-
sig { returns(::Stripe::AccountPersonService::UpdateParams::Address) }
|
310
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::Address)) }
|
303
311
|
attr_accessor :address
|
304
312
|
# The Kana variation of the person's address (Japan only).
|
305
|
-
sig { returns(::Stripe::AccountPersonService::UpdateParams::AddressKana) }
|
313
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::AddressKana)) }
|
306
314
|
attr_accessor :address_kana
|
307
315
|
# The Kanji variation of the person's address (Japan only).
|
308
|
-
sig { returns(::Stripe::AccountPersonService::UpdateParams::AddressKanji) }
|
316
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::AddressKanji)) }
|
309
317
|
attr_accessor :address_kanji
|
310
318
|
# The person's date of birth.
|
311
|
-
sig {
|
319
|
+
sig {
|
320
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountPersonService::UpdateParams::Dob))))
|
321
|
+
}
|
312
322
|
attr_accessor :dob
|
313
323
|
# Documents that may be submitted to satisfy various informational requests.
|
314
|
-
sig { returns(::Stripe::AccountPersonService::UpdateParams::Documents) }
|
324
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::Documents)) }
|
315
325
|
attr_accessor :documents
|
316
326
|
# The person's email address.
|
317
|
-
sig { returns(String) }
|
327
|
+
sig { returns(T.nilable(String)) }
|
318
328
|
attr_accessor :email
|
319
329
|
# Specifies which fields in the response should be expanded.
|
320
|
-
sig { returns(T::Array[String]) }
|
330
|
+
sig { returns(T.nilable(T::Array[String])) }
|
321
331
|
attr_accessor :expand
|
322
332
|
# The person's first name.
|
323
|
-
sig { returns(String) }
|
333
|
+
sig { returns(T.nilable(String)) }
|
324
334
|
attr_accessor :first_name
|
325
335
|
# The Kana variation of the person's first name (Japan only).
|
326
|
-
sig { returns(String) }
|
336
|
+
sig { returns(T.nilable(String)) }
|
327
337
|
attr_accessor :first_name_kana
|
328
338
|
# The Kanji variation of the person's first name (Japan only).
|
329
|
-
sig { returns(String) }
|
339
|
+
sig { returns(T.nilable(String)) }
|
330
340
|
attr_accessor :first_name_kanji
|
331
341
|
# A list of alternate names or aliases that the person is known by.
|
332
|
-
sig { returns(T.nilable(T::Array[String])) }
|
342
|
+
sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
|
333
343
|
attr_accessor :full_name_aliases
|
334
344
|
# The person's gender (International regulations require either "male" or "female").
|
335
|
-
sig { returns(String) }
|
345
|
+
sig { returns(T.nilable(String)) }
|
336
346
|
attr_accessor :gender
|
337
347
|
# The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
|
338
|
-
sig { returns(String) }
|
348
|
+
sig { returns(T.nilable(String)) }
|
339
349
|
attr_accessor :id_number
|
340
350
|
# The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
|
341
|
-
sig { returns(String) }
|
351
|
+
sig { returns(T.nilable(String)) }
|
342
352
|
attr_accessor :id_number_secondary
|
343
353
|
# The person's last name.
|
344
|
-
sig { returns(String) }
|
354
|
+
sig { returns(T.nilable(String)) }
|
345
355
|
attr_accessor :last_name
|
346
356
|
# The Kana variation of the person's last name (Japan only).
|
347
|
-
sig { returns(String) }
|
357
|
+
sig { returns(T.nilable(String)) }
|
348
358
|
attr_accessor :last_name_kana
|
349
359
|
# The Kanji variation of the person's last name (Japan only).
|
350
|
-
sig { returns(String) }
|
360
|
+
sig { returns(T.nilable(String)) }
|
351
361
|
attr_accessor :last_name_kanji
|
352
362
|
# The person's maiden name.
|
353
|
-
sig { returns(String) }
|
363
|
+
sig { returns(T.nilable(String)) }
|
354
364
|
attr_accessor :maiden_name
|
355
365
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
356
|
-
sig { returns(T.nilable(T::Hash[String, String])) }
|
366
|
+
sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
|
357
367
|
attr_accessor :metadata
|
358
368
|
# The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
|
359
|
-
sig { returns(String) }
|
369
|
+
sig { returns(T.nilable(String)) }
|
360
370
|
attr_accessor :nationality
|
361
371
|
# A [person token](https://docs.stripe.com/connect/account-tokens), used to securely provide details to the person.
|
362
|
-
sig { returns(String) }
|
372
|
+
sig { returns(T.nilable(String)) }
|
363
373
|
attr_accessor :person_token
|
364
374
|
# The person's phone number.
|
365
|
-
sig { returns(String) }
|
375
|
+
sig { returns(T.nilable(String)) }
|
366
376
|
attr_accessor :phone
|
367
377
|
# Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
|
368
|
-
sig { returns(String) }
|
378
|
+
sig { returns(T.nilable(String)) }
|
369
379
|
attr_accessor :political_exposure
|
370
380
|
# The person's registered address.
|
371
|
-
sig { returns(::Stripe::AccountPersonService::UpdateParams::RegisteredAddress) }
|
381
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::RegisteredAddress)) }
|
372
382
|
attr_accessor :registered_address
|
373
383
|
# The relationship that this person has with the account's legal entity.
|
374
|
-
sig { returns(::Stripe::AccountPersonService::UpdateParams::Relationship) }
|
384
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::Relationship)) }
|
375
385
|
attr_accessor :relationship
|
376
386
|
# The last four digits of the person's Social Security number (U.S. only).
|
377
|
-
sig { returns(String) }
|
387
|
+
sig { returns(T.nilable(String)) }
|
378
388
|
attr_accessor :ssn_last_4
|
379
389
|
# The person's verification status.
|
380
|
-
sig { returns(::Stripe::AccountPersonService::UpdateParams::Verification) }
|
390
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::UpdateParams::Verification)) }
|
381
391
|
attr_accessor :verification
|
382
392
|
sig {
|
383
|
-
params(additional_tos_acceptances: ::Stripe::AccountPersonService::UpdateParams::AdditionalTosAcceptances, address: ::Stripe::AccountPersonService::UpdateParams::Address, address_kana: ::Stripe::AccountPersonService::UpdateParams::AddressKana, address_kanji: ::Stripe::AccountPersonService::UpdateParams::AddressKanji, dob: T.nilable(::Stripe::AccountPersonService::UpdateParams::Dob), documents: ::Stripe::AccountPersonService::UpdateParams::Documents, email: String, expand: T::Array[String], first_name: String, first_name_kana: String, first_name_kanji: String, full_name_aliases: T.nilable(T::Array[String]), gender: String, id_number: String, id_number_secondary: String, last_name: String, last_name_kana: String, last_name_kanji: String, maiden_name: String, metadata: T.nilable(T::Hash[String, String]), nationality: String, person_token: String, phone: String, political_exposure: String, registered_address: ::Stripe::AccountPersonService::UpdateParams::RegisteredAddress, relationship: ::Stripe::AccountPersonService::UpdateParams::Relationship, ssn_last_4: String, verification: ::Stripe::AccountPersonService::UpdateParams::Verification).void
|
393
|
+
params(additional_tos_acceptances: T.nilable(::Stripe::AccountPersonService::UpdateParams::AdditionalTosAcceptances), address: T.nilable(::Stripe::AccountPersonService::UpdateParams::Address), address_kana: T.nilable(::Stripe::AccountPersonService::UpdateParams::AddressKana), address_kanji: T.nilable(::Stripe::AccountPersonService::UpdateParams::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::AccountPersonService::UpdateParams::Dob))), documents: T.nilable(::Stripe::AccountPersonService::UpdateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), nationality: T.nilable(String), person_token: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::AccountPersonService::UpdateParams::RegisteredAddress), relationship: T.nilable(::Stripe::AccountPersonService::UpdateParams::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::AccountPersonService::UpdateParams::Verification)).void
|
384
394
|
}
|
385
395
|
def initialize(
|
386
396
|
additional_tos_acceptances: nil,
|
@@ -416,25 +426,25 @@ module Stripe
|
|
416
426
|
class ListParams < Stripe::RequestParams
|
417
427
|
class Relationship < Stripe::RequestParams
|
418
428
|
# A filter on the list of people returned based on whether these people are authorizers of the account's representative.
|
419
|
-
sig { returns(T::Boolean) }
|
429
|
+
sig { returns(T.nilable(T::Boolean)) }
|
420
430
|
attr_accessor :authorizer
|
421
431
|
# A filter on the list of people returned based on whether these people are directors of the account's company.
|
422
|
-
sig { returns(T::Boolean) }
|
432
|
+
sig { returns(T.nilable(T::Boolean)) }
|
423
433
|
attr_accessor :director
|
424
434
|
# A filter on the list of people returned based on whether these people are executives of the account's company.
|
425
|
-
sig { returns(T::Boolean) }
|
435
|
+
sig { returns(T.nilable(T::Boolean)) }
|
426
436
|
attr_accessor :executive
|
427
437
|
# A filter on the list of people returned based on whether these people are legal guardians of the account's representative.
|
428
|
-
sig { returns(T::Boolean) }
|
438
|
+
sig { returns(T.nilable(T::Boolean)) }
|
429
439
|
attr_accessor :legal_guardian
|
430
440
|
# A filter on the list of people returned based on whether these people are owners of the account's company.
|
431
|
-
sig { returns(T::Boolean) }
|
441
|
+
sig { returns(T.nilable(T::Boolean)) }
|
432
442
|
attr_accessor :owner
|
433
443
|
# A filter on the list of people returned based on whether these people are the representative of the account's company.
|
434
|
-
sig { returns(T::Boolean) }
|
444
|
+
sig { returns(T.nilable(T::Boolean)) }
|
435
445
|
attr_accessor :representative
|
436
446
|
sig {
|
437
|
-
params(authorizer: T::Boolean, director: T::Boolean, executive: T::Boolean, legal_guardian: T::Boolean, owner: T::Boolean, representative: T::Boolean).void
|
447
|
+
params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), representative: T.nilable(T::Boolean)).void
|
438
448
|
}
|
439
449
|
def initialize(
|
440
450
|
authorizer: nil,
|
@@ -446,22 +456,22 @@ module Stripe
|
|
446
456
|
); end
|
447
457
|
end
|
448
458
|
# A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
|
449
|
-
sig { returns(String) }
|
459
|
+
sig { returns(T.nilable(String)) }
|
450
460
|
attr_accessor :ending_before
|
451
461
|
# Specifies which fields in the response should be expanded.
|
452
|
-
sig { returns(T::Array[String]) }
|
462
|
+
sig { returns(T.nilable(T::Array[String])) }
|
453
463
|
attr_accessor :expand
|
454
464
|
# A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
455
|
-
sig { returns(Integer) }
|
465
|
+
sig { returns(T.nilable(Integer)) }
|
456
466
|
attr_accessor :limit
|
457
467
|
# Filters on the list of people returned based on the person's relationship to the account's company.
|
458
|
-
sig { returns(::Stripe::AccountPersonService::ListParams::Relationship) }
|
468
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::ListParams::Relationship)) }
|
459
469
|
attr_accessor :relationship
|
460
470
|
# A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
|
461
|
-
sig { returns(String) }
|
471
|
+
sig { returns(T.nilable(String)) }
|
462
472
|
attr_accessor :starting_after
|
463
473
|
sig {
|
464
|
-
params(ending_before: String, expand: T::Array[String], limit: Integer, relationship: ::Stripe::AccountPersonService::ListParams::Relationship, starting_after: String).void
|
474
|
+
params(ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), relationship: T.nilable(::Stripe::AccountPersonService::ListParams::Relationship), starting_after: T.nilable(String)).void
|
465
475
|
}
|
466
476
|
def initialize(
|
467
477
|
ending_before: nil,
|
@@ -475,48 +485,50 @@ module Stripe
|
|
475
485
|
class AdditionalTosAcceptances < Stripe::RequestParams
|
476
486
|
class Account < Stripe::RequestParams
|
477
487
|
# The Unix timestamp marking when the account representative accepted the service agreement.
|
478
|
-
sig { returns(Integer) }
|
488
|
+
sig { returns(T.nilable(Integer)) }
|
479
489
|
attr_accessor :date
|
480
490
|
# The IP address from which the account representative accepted the service agreement.
|
481
|
-
sig { returns(String) }
|
491
|
+
sig { returns(T.nilable(String)) }
|
482
492
|
attr_accessor :ip
|
483
493
|
# The user agent of the browser from which the account representative accepted the service agreement.
|
484
|
-
sig { returns(T.nilable(String)) }
|
494
|
+
sig { returns(T.nilable(T.nilable(String))) }
|
485
495
|
attr_accessor :user_agent
|
486
|
-
sig {
|
496
|
+
sig {
|
497
|
+
params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(T.nilable(String))).void
|
498
|
+
}
|
487
499
|
def initialize(date: nil, ip: nil, user_agent: nil); end
|
488
500
|
end
|
489
501
|
# Details on the legal guardian's acceptance of the main Stripe service agreement.
|
490
502
|
sig {
|
491
|
-
returns(::Stripe::AccountPersonService::CreateParams::AdditionalTosAcceptances::Account)
|
503
|
+
returns(T.nilable(::Stripe::AccountPersonService::CreateParams::AdditionalTosAcceptances::Account))
|
492
504
|
}
|
493
505
|
attr_accessor :account
|
494
506
|
sig {
|
495
|
-
params(account: ::Stripe::AccountPersonService::CreateParams::AdditionalTosAcceptances::Account).void
|
507
|
+
params(account: T.nilable(::Stripe::AccountPersonService::CreateParams::AdditionalTosAcceptances::Account)).void
|
496
508
|
}
|
497
509
|
def initialize(account: nil); end
|
498
510
|
end
|
499
511
|
class Address < Stripe::RequestParams
|
500
512
|
# City, district, suburb, town, or village.
|
501
|
-
sig { returns(String) }
|
513
|
+
sig { returns(T.nilable(String)) }
|
502
514
|
attr_accessor :city
|
503
515
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
504
|
-
sig { returns(String) }
|
516
|
+
sig { returns(T.nilable(String)) }
|
505
517
|
attr_accessor :country
|
506
518
|
# Address line 1 (e.g., street, PO Box, or company name).
|
507
|
-
sig { returns(String) }
|
519
|
+
sig { returns(T.nilable(String)) }
|
508
520
|
attr_accessor :line1
|
509
521
|
# Address line 2 (e.g., apartment, suite, unit, or building).
|
510
|
-
sig { returns(String) }
|
522
|
+
sig { returns(T.nilable(String)) }
|
511
523
|
attr_accessor :line2
|
512
524
|
# ZIP or postal code.
|
513
|
-
sig { returns(String) }
|
525
|
+
sig { returns(T.nilable(String)) }
|
514
526
|
attr_accessor :postal_code
|
515
527
|
# State, county, province, or region.
|
516
|
-
sig { returns(String) }
|
528
|
+
sig { returns(T.nilable(String)) }
|
517
529
|
attr_accessor :state
|
518
530
|
sig {
|
519
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
531
|
+
params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
|
520
532
|
}
|
521
533
|
def initialize(
|
522
534
|
city: nil,
|
@@ -529,28 +541,28 @@ module Stripe
|
|
529
541
|
end
|
530
542
|
class AddressKana < Stripe::RequestParams
|
531
543
|
# City or ward.
|
532
|
-
sig { returns(String) }
|
544
|
+
sig { returns(T.nilable(String)) }
|
533
545
|
attr_accessor :city
|
534
546
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
535
|
-
sig { returns(String) }
|
547
|
+
sig { returns(T.nilable(String)) }
|
536
548
|
attr_accessor :country
|
537
549
|
# Block or building number.
|
538
|
-
sig { returns(String) }
|
550
|
+
sig { returns(T.nilable(String)) }
|
539
551
|
attr_accessor :line1
|
540
552
|
# Building details.
|
541
|
-
sig { returns(String) }
|
553
|
+
sig { returns(T.nilable(String)) }
|
542
554
|
attr_accessor :line2
|
543
555
|
# Postal code.
|
544
|
-
sig { returns(String) }
|
556
|
+
sig { returns(T.nilable(String)) }
|
545
557
|
attr_accessor :postal_code
|
546
558
|
# Prefecture.
|
547
|
-
sig { returns(String) }
|
559
|
+
sig { returns(T.nilable(String)) }
|
548
560
|
attr_accessor :state
|
549
561
|
# Town or cho-me.
|
550
|
-
sig { returns(String) }
|
562
|
+
sig { returns(T.nilable(String)) }
|
551
563
|
attr_accessor :town
|
552
564
|
sig {
|
553
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String, town: String).void
|
565
|
+
params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void
|
554
566
|
}
|
555
567
|
def initialize(
|
556
568
|
city: nil,
|
@@ -564,28 +576,28 @@ module Stripe
|
|
564
576
|
end
|
565
577
|
class AddressKanji < Stripe::RequestParams
|
566
578
|
# City or ward.
|
567
|
-
sig { returns(String) }
|
579
|
+
sig { returns(T.nilable(String)) }
|
568
580
|
attr_accessor :city
|
569
581
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
570
|
-
sig { returns(String) }
|
582
|
+
sig { returns(T.nilable(String)) }
|
571
583
|
attr_accessor :country
|
572
584
|
# Block or building number.
|
573
|
-
sig { returns(String) }
|
585
|
+
sig { returns(T.nilable(String)) }
|
574
586
|
attr_accessor :line1
|
575
587
|
# Building details.
|
576
|
-
sig { returns(String) }
|
588
|
+
sig { returns(T.nilable(String)) }
|
577
589
|
attr_accessor :line2
|
578
590
|
# Postal code.
|
579
|
-
sig { returns(String) }
|
591
|
+
sig { returns(T.nilable(String)) }
|
580
592
|
attr_accessor :postal_code
|
581
593
|
# Prefecture.
|
582
|
-
sig { returns(String) }
|
594
|
+
sig { returns(T.nilable(String)) }
|
583
595
|
attr_accessor :state
|
584
596
|
# Town or cho-me.
|
585
|
-
sig { returns(String) }
|
597
|
+
sig { returns(T.nilable(String)) }
|
586
598
|
attr_accessor :town
|
587
599
|
sig {
|
588
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String, town: String).void
|
600
|
+
params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String), town: T.nilable(String)).void
|
589
601
|
}
|
590
602
|
def initialize(
|
591
603
|
city: nil,
|
@@ -613,62 +625,64 @@ module Stripe
|
|
613
625
|
class Documents < Stripe::RequestParams
|
614
626
|
class CompanyAuthorization < Stripe::RequestParams
|
615
627
|
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
616
|
-
sig { returns(T::Array[String]) }
|
628
|
+
sig { returns(T.nilable(T::Array[String])) }
|
617
629
|
attr_accessor :files
|
618
|
-
sig { params(files: T::Array[String]).void }
|
630
|
+
sig { params(files: T.nilable(T::Array[String])).void }
|
619
631
|
def initialize(files: nil); end
|
620
632
|
end
|
621
633
|
class Passport < Stripe::RequestParams
|
622
634
|
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
623
|
-
sig { returns(T::Array[String]) }
|
635
|
+
sig { returns(T.nilable(T::Array[String])) }
|
624
636
|
attr_accessor :files
|
625
|
-
sig { params(files: T::Array[String]).void }
|
637
|
+
sig { params(files: T.nilable(T::Array[String])).void }
|
626
638
|
def initialize(files: nil); end
|
627
639
|
end
|
628
640
|
class Visa < Stripe::RequestParams
|
629
641
|
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
630
|
-
sig { returns(T::Array[String]) }
|
642
|
+
sig { returns(T.nilable(T::Array[String])) }
|
631
643
|
attr_accessor :files
|
632
|
-
sig { params(files: T::Array[String]).void }
|
644
|
+
sig { params(files: T.nilable(T::Array[String])).void }
|
633
645
|
def initialize(files: nil); end
|
634
646
|
end
|
635
647
|
# One or more documents that demonstrate proof that this person is authorized to represent the company.
|
636
648
|
sig {
|
637
|
-
returns(::Stripe::AccountPersonService::CreateParams::Documents::CompanyAuthorization)
|
649
|
+
returns(T.nilable(::Stripe::AccountPersonService::CreateParams::Documents::CompanyAuthorization))
|
638
650
|
}
|
639
651
|
attr_accessor :company_authorization
|
640
652
|
# One or more documents showing the person's passport page with photo and personal data.
|
641
|
-
sig {
|
653
|
+
sig {
|
654
|
+
returns(T.nilable(::Stripe::AccountPersonService::CreateParams::Documents::Passport))
|
655
|
+
}
|
642
656
|
attr_accessor :passport
|
643
657
|
# One or more documents showing the person's visa required for living in the country where they are residing.
|
644
|
-
sig { returns(::Stripe::AccountPersonService::CreateParams::Documents::Visa) }
|
658
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::CreateParams::Documents::Visa)) }
|
645
659
|
attr_accessor :visa
|
646
660
|
sig {
|
647
|
-
params(company_authorization: ::Stripe::AccountPersonService::CreateParams::Documents::CompanyAuthorization, passport: ::Stripe::AccountPersonService::CreateParams::Documents::Passport, visa: ::Stripe::AccountPersonService::CreateParams::Documents::Visa).void
|
661
|
+
params(company_authorization: T.nilable(::Stripe::AccountPersonService::CreateParams::Documents::CompanyAuthorization), passport: T.nilable(::Stripe::AccountPersonService::CreateParams::Documents::Passport), visa: T.nilable(::Stripe::AccountPersonService::CreateParams::Documents::Visa)).void
|
648
662
|
}
|
649
663
|
def initialize(company_authorization: nil, passport: nil, visa: nil); end
|
650
664
|
end
|
651
665
|
class RegisteredAddress < Stripe::RequestParams
|
652
666
|
# City, district, suburb, town, or village.
|
653
|
-
sig { returns(String) }
|
667
|
+
sig { returns(T.nilable(String)) }
|
654
668
|
attr_accessor :city
|
655
669
|
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
656
|
-
sig { returns(String) }
|
670
|
+
sig { returns(T.nilable(String)) }
|
657
671
|
attr_accessor :country
|
658
672
|
# Address line 1 (e.g., street, PO Box, or company name).
|
659
|
-
sig { returns(String) }
|
673
|
+
sig { returns(T.nilable(String)) }
|
660
674
|
attr_accessor :line1
|
661
675
|
# Address line 2 (e.g., apartment, suite, unit, or building).
|
662
|
-
sig { returns(String) }
|
676
|
+
sig { returns(T.nilable(String)) }
|
663
677
|
attr_accessor :line2
|
664
678
|
# ZIP or postal code.
|
665
|
-
sig { returns(String) }
|
679
|
+
sig { returns(T.nilable(String)) }
|
666
680
|
attr_accessor :postal_code
|
667
681
|
# State, county, province, or region.
|
668
|
-
sig { returns(String) }
|
682
|
+
sig { returns(T.nilable(String)) }
|
669
683
|
attr_accessor :state
|
670
684
|
sig {
|
671
|
-
params(city: String, country: String, line1: String, line2: String, postal_code: String, state: String).void
|
685
|
+
params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void
|
672
686
|
}
|
673
687
|
def initialize(
|
674
688
|
city: nil,
|
@@ -681,31 +695,31 @@ module Stripe
|
|
681
695
|
end
|
682
696
|
class Relationship < Stripe::RequestParams
|
683
697
|
# Whether the person is the authorizer of the account's representative.
|
684
|
-
sig { returns(T::Boolean) }
|
698
|
+
sig { returns(T.nilable(T::Boolean)) }
|
685
699
|
attr_accessor :authorizer
|
686
700
|
# Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
|
687
|
-
sig { returns(T::Boolean) }
|
701
|
+
sig { returns(T.nilable(T::Boolean)) }
|
688
702
|
attr_accessor :director
|
689
703
|
# Whether the person has significant responsibility to control, manage, or direct the organization.
|
690
|
-
sig { returns(T::Boolean) }
|
704
|
+
sig { returns(T.nilable(T::Boolean)) }
|
691
705
|
attr_accessor :executive
|
692
706
|
# Whether the person is the legal guardian of the account's representative.
|
693
|
-
sig { returns(T::Boolean) }
|
707
|
+
sig { returns(T.nilable(T::Boolean)) }
|
694
708
|
attr_accessor :legal_guardian
|
695
709
|
# Whether the person is an owner of the account’s legal entity.
|
696
|
-
sig { returns(T::Boolean) }
|
710
|
+
sig { returns(T.nilable(T::Boolean)) }
|
697
711
|
attr_accessor :owner
|
698
712
|
# The percent owned by the person of the account's legal entity.
|
699
|
-
sig { returns(T.nilable(Float)) }
|
713
|
+
sig { returns(T.nilable(T.nilable(T.any(String, Float)))) }
|
700
714
|
attr_accessor :percent_ownership
|
701
715
|
# Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account.
|
702
|
-
sig { returns(T::Boolean) }
|
716
|
+
sig { returns(T.nilable(T::Boolean)) }
|
703
717
|
attr_accessor :representative
|
704
718
|
# The person's title (e.g., CEO, Support Engineer).
|
705
|
-
sig { returns(String) }
|
719
|
+
sig { returns(T.nilable(String)) }
|
706
720
|
attr_accessor :title
|
707
721
|
sig {
|
708
|
-
params(authorizer: T::Boolean, director: T::Boolean, executive: T::Boolean, legal_guardian: T::Boolean, owner: T::Boolean, percent_ownership: T.nilable(Float), representative: T::Boolean, title: String).void
|
722
|
+
params(authorizer: T.nilable(T::Boolean), director: T.nilable(T::Boolean), executive: T.nilable(T::Boolean), legal_guardian: T.nilable(T::Boolean), owner: T.nilable(T::Boolean), percent_ownership: T.nilable(T.nilable(T.any(String, Float))), representative: T.nilable(T::Boolean), title: T.nilable(String)).void
|
709
723
|
}
|
710
724
|
def initialize(
|
711
725
|
authorizer: nil,
|
@@ -721,123 +735,129 @@ module Stripe
|
|
721
735
|
class Verification < Stripe::RequestParams
|
722
736
|
class AdditionalDocument < Stripe::RequestParams
|
723
737
|
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
|
724
|
-
sig { returns(String) }
|
738
|
+
sig { returns(T.nilable(String)) }
|
725
739
|
attr_accessor :back
|
726
740
|
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
|
727
|
-
sig { returns(String) }
|
741
|
+
sig { returns(T.nilable(String)) }
|
728
742
|
attr_accessor :front
|
729
|
-
sig { params(back: String, front: String).void }
|
743
|
+
sig { params(back: T.nilable(String), front: T.nilable(String)).void }
|
730
744
|
def initialize(back: nil, front: nil); end
|
731
745
|
end
|
732
746
|
class Document < Stripe::RequestParams
|
733
747
|
# The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
|
734
|
-
sig { returns(String) }
|
748
|
+
sig { returns(T.nilable(String)) }
|
735
749
|
attr_accessor :back
|
736
750
|
# The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `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.
|
737
|
-
sig { returns(String) }
|
751
|
+
sig { returns(T.nilable(String)) }
|
738
752
|
attr_accessor :front
|
739
|
-
sig { params(back: String, front: String).void }
|
753
|
+
sig { params(back: T.nilable(String), front: T.nilable(String)).void }
|
740
754
|
def initialize(back: nil, front: nil); end
|
741
755
|
end
|
742
756
|
# A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
|
743
757
|
sig {
|
744
|
-
returns(::Stripe::AccountPersonService::CreateParams::Verification::AdditionalDocument)
|
758
|
+
returns(T.nilable(::Stripe::AccountPersonService::CreateParams::Verification::AdditionalDocument))
|
745
759
|
}
|
746
760
|
attr_accessor :additional_document
|
747
761
|
# An identifying document, either a passport or local ID card.
|
748
|
-
sig {
|
762
|
+
sig {
|
763
|
+
returns(T.nilable(::Stripe::AccountPersonService::CreateParams::Verification::Document))
|
764
|
+
}
|
749
765
|
attr_accessor :document
|
750
766
|
sig {
|
751
|
-
params(additional_document: ::Stripe::AccountPersonService::CreateParams::Verification::AdditionalDocument, document: ::Stripe::AccountPersonService::CreateParams::Verification::Document).void
|
767
|
+
params(additional_document: T.nilable(::Stripe::AccountPersonService::CreateParams::Verification::AdditionalDocument), document: T.nilable(::Stripe::AccountPersonService::CreateParams::Verification::Document)).void
|
752
768
|
}
|
753
769
|
def initialize(additional_document: nil, document: nil); end
|
754
770
|
end
|
755
771
|
# Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
|
756
|
-
sig {
|
772
|
+
sig {
|
773
|
+
returns(T.nilable(::Stripe::AccountPersonService::CreateParams::AdditionalTosAcceptances))
|
774
|
+
}
|
757
775
|
attr_accessor :additional_tos_acceptances
|
758
776
|
# The person's address.
|
759
|
-
sig { returns(::Stripe::AccountPersonService::CreateParams::Address) }
|
777
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::CreateParams::Address)) }
|
760
778
|
attr_accessor :address
|
761
779
|
# The Kana variation of the person's address (Japan only).
|
762
|
-
sig { returns(::Stripe::AccountPersonService::CreateParams::AddressKana) }
|
780
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::CreateParams::AddressKana)) }
|
763
781
|
attr_accessor :address_kana
|
764
782
|
# The Kanji variation of the person's address (Japan only).
|
765
|
-
sig { returns(::Stripe::AccountPersonService::CreateParams::AddressKanji) }
|
783
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::CreateParams::AddressKanji)) }
|
766
784
|
attr_accessor :address_kanji
|
767
785
|
# The person's date of birth.
|
768
|
-
sig {
|
786
|
+
sig {
|
787
|
+
returns(T.nilable(T.nilable(T.any(String, ::Stripe::AccountPersonService::CreateParams::Dob))))
|
788
|
+
}
|
769
789
|
attr_accessor :dob
|
770
790
|
# Documents that may be submitted to satisfy various informational requests.
|
771
|
-
sig { returns(::Stripe::AccountPersonService::CreateParams::Documents) }
|
791
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::CreateParams::Documents)) }
|
772
792
|
attr_accessor :documents
|
773
793
|
# The person's email address.
|
774
|
-
sig { returns(String) }
|
794
|
+
sig { returns(T.nilable(String)) }
|
775
795
|
attr_accessor :email
|
776
796
|
# Specifies which fields in the response should be expanded.
|
777
|
-
sig { returns(T::Array[String]) }
|
797
|
+
sig { returns(T.nilable(T::Array[String])) }
|
778
798
|
attr_accessor :expand
|
779
799
|
# The person's first name.
|
780
|
-
sig { returns(String) }
|
800
|
+
sig { returns(T.nilable(String)) }
|
781
801
|
attr_accessor :first_name
|
782
802
|
# The Kana variation of the person's first name (Japan only).
|
783
|
-
sig { returns(String) }
|
803
|
+
sig { returns(T.nilable(String)) }
|
784
804
|
attr_accessor :first_name_kana
|
785
805
|
# The Kanji variation of the person's first name (Japan only).
|
786
|
-
sig { returns(String) }
|
806
|
+
sig { returns(T.nilable(String)) }
|
787
807
|
attr_accessor :first_name_kanji
|
788
808
|
# A list of alternate names or aliases that the person is known by.
|
789
|
-
sig { returns(T.nilable(T::Array[String])) }
|
809
|
+
sig { returns(T.nilable(T.nilable(T.any(String, T::Array[String])))) }
|
790
810
|
attr_accessor :full_name_aliases
|
791
811
|
# The person's gender (International regulations require either "male" or "female").
|
792
|
-
sig { returns(String) }
|
812
|
+
sig { returns(T.nilable(String)) }
|
793
813
|
attr_accessor :gender
|
794
814
|
# The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
|
795
|
-
sig { returns(String) }
|
815
|
+
sig { returns(T.nilable(String)) }
|
796
816
|
attr_accessor :id_number
|
797
817
|
# The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://docs.stripe.com/js/tokens/create_token?type=pii).
|
798
|
-
sig { returns(String) }
|
818
|
+
sig { returns(T.nilable(String)) }
|
799
819
|
attr_accessor :id_number_secondary
|
800
820
|
# The person's last name.
|
801
|
-
sig { returns(String) }
|
821
|
+
sig { returns(T.nilable(String)) }
|
802
822
|
attr_accessor :last_name
|
803
823
|
# The Kana variation of the person's last name (Japan only).
|
804
|
-
sig { returns(String) }
|
824
|
+
sig { returns(T.nilable(String)) }
|
805
825
|
attr_accessor :last_name_kana
|
806
826
|
# The Kanji variation of the person's last name (Japan only).
|
807
|
-
sig { returns(String) }
|
827
|
+
sig { returns(T.nilable(String)) }
|
808
828
|
attr_accessor :last_name_kanji
|
809
829
|
# The person's maiden name.
|
810
|
-
sig { returns(String) }
|
830
|
+
sig { returns(T.nilable(String)) }
|
811
831
|
attr_accessor :maiden_name
|
812
832
|
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
813
|
-
sig { returns(T.nilable(T::Hash[String, String])) }
|
833
|
+
sig { returns(T.nilable(T.nilable(T.any(String, T::Hash[String, String])))) }
|
814
834
|
attr_accessor :metadata
|
815
835
|
# The country where the person is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)), or "XX" if unavailable.
|
816
|
-
sig { returns(String) }
|
836
|
+
sig { returns(T.nilable(String)) }
|
817
837
|
attr_accessor :nationality
|
818
838
|
# A [person token](https://docs.stripe.com/connect/account-tokens), used to securely provide details to the person.
|
819
|
-
sig { returns(String) }
|
839
|
+
sig { returns(T.nilable(String)) }
|
820
840
|
attr_accessor :person_token
|
821
841
|
# The person's phone number.
|
822
|
-
sig { returns(String) }
|
842
|
+
sig { returns(T.nilable(String)) }
|
823
843
|
attr_accessor :phone
|
824
844
|
# Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
|
825
|
-
sig { returns(String) }
|
845
|
+
sig { returns(T.nilable(String)) }
|
826
846
|
attr_accessor :political_exposure
|
827
847
|
# The person's registered address.
|
828
|
-
sig { returns(::Stripe::AccountPersonService::CreateParams::RegisteredAddress) }
|
848
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::CreateParams::RegisteredAddress)) }
|
829
849
|
attr_accessor :registered_address
|
830
850
|
# The relationship that this person has with the account's legal entity.
|
831
|
-
sig { returns(::Stripe::AccountPersonService::CreateParams::Relationship) }
|
851
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::CreateParams::Relationship)) }
|
832
852
|
attr_accessor :relationship
|
833
853
|
# The last four digits of the person's Social Security number (U.S. only).
|
834
|
-
sig { returns(String) }
|
854
|
+
sig { returns(T.nilable(String)) }
|
835
855
|
attr_accessor :ssn_last_4
|
836
856
|
# The person's verification status.
|
837
|
-
sig { returns(::Stripe::AccountPersonService::CreateParams::Verification) }
|
857
|
+
sig { returns(T.nilable(::Stripe::AccountPersonService::CreateParams::Verification)) }
|
838
858
|
attr_accessor :verification
|
839
859
|
sig {
|
840
|
-
params(additional_tos_acceptances: ::Stripe::AccountPersonService::CreateParams::AdditionalTosAcceptances, address: ::Stripe::AccountPersonService::CreateParams::Address, address_kana: ::Stripe::AccountPersonService::CreateParams::AddressKana, address_kanji: ::Stripe::AccountPersonService::CreateParams::AddressKanji, dob: T.nilable(::Stripe::AccountPersonService::CreateParams::Dob), documents: ::Stripe::AccountPersonService::CreateParams::Documents, email: String, expand: T::Array[String], first_name: String, first_name_kana: String, first_name_kanji: String, full_name_aliases: T.nilable(T::Array[String]), gender: String, id_number: String, id_number_secondary: String, last_name: String, last_name_kana: String, last_name_kanji: String, maiden_name: String, metadata: T.nilable(T::Hash[String, String]), nationality: String, person_token: String, phone: String, political_exposure: String, registered_address: ::Stripe::AccountPersonService::CreateParams::RegisteredAddress, relationship: ::Stripe::AccountPersonService::CreateParams::Relationship, ssn_last_4: String, verification: ::Stripe::AccountPersonService::CreateParams::Verification).void
|
860
|
+
params(additional_tos_acceptances: T.nilable(::Stripe::AccountPersonService::CreateParams::AdditionalTosAcceptances), address: T.nilable(::Stripe::AccountPersonService::CreateParams::Address), address_kana: T.nilable(::Stripe::AccountPersonService::CreateParams::AddressKana), address_kanji: T.nilable(::Stripe::AccountPersonService::CreateParams::AddressKanji), dob: T.nilable(T.nilable(T.any(String, ::Stripe::AccountPersonService::CreateParams::Dob))), documents: T.nilable(::Stripe::AccountPersonService::CreateParams::Documents), email: T.nilable(String), expand: T.nilable(T::Array[String]), first_name: T.nilable(String), first_name_kana: T.nilable(String), first_name_kanji: T.nilable(String), full_name_aliases: T.nilable(T.nilable(T.any(String, T::Array[String]))), gender: T.nilable(String), id_number: T.nilable(String), id_number_secondary: T.nilable(String), last_name: T.nilable(String), last_name_kana: T.nilable(String), last_name_kanji: T.nilable(String), maiden_name: T.nilable(String), metadata: T.nilable(T.nilable(T.any(String, T::Hash[String, String]))), nationality: T.nilable(String), person_token: T.nilable(String), phone: T.nilable(String), political_exposure: T.nilable(String), registered_address: T.nilable(::Stripe::AccountPersonService::CreateParams::RegisteredAddress), relationship: T.nilable(::Stripe::AccountPersonService::CreateParams::Relationship), ssn_last_4: T.nilable(String), verification: T.nilable(::Stripe::AccountPersonService::CreateParams::Verification)).void
|
841
861
|
}
|
842
862
|
def initialize(
|
843
863
|
additional_tos_acceptances: nil,
|