stripe 15.1.0.pre.beta.1 → 15.1.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 +697 -1533
- data/Gemfile +1 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +6 -0
- data/VERSION +1 -1
- data/lib/stripe/api_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_requestor.rb +1 -29
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/errors.rb +0 -54
- data/lib/stripe/event_types.rb +1 -75
- data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +1 -1
- data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +1 -1
- data/lib/stripe/events/{v2_core_account_including_identity_updated_event.rb → v2_core_event_destination_ping_event.rb} +3 -3
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/object_types.rb +0 -51
- data/lib/stripe/resources/account.rb +54 -657
- data/lib/stripe/resources/account_session.rb +1 -299
- data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -2
- data/lib/stripe/resources/billing/credit_balance_transaction.rb +0 -4
- data/lib/stripe/resources/billing/credit_grant.rb +0 -10
- data/lib/stripe/resources/billing_portal/session.rb +0 -6
- data/lib/stripe/resources/card.rb +0 -2
- data/lib/stripe/resources/cash_balance.rb +0 -2
- data/lib/stripe/resources/charge.rb +2 -1454
- data/lib/stripe/resources/checkout/session.rb +5 -258
- data/lib/stripe/resources/confirmation_token.rb +9 -178
- data/lib/stripe/resources/credit_note.rb +0 -10
- data/lib/stripe/resources/credit_note_line_item.rb +0 -9
- data/lib/stripe/resources/customer.rb +2 -4
- data/lib/stripe/resources/customer_balance_transaction.rb +0 -2
- data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -2
- data/lib/stripe/resources/customer_session.rb +1 -6
- data/lib/stripe/resources/discount.rb +0 -2
- data/lib/stripe/resources/event.rb +0 -31
- data/lib/stripe/resources/financial_connections/account.rb +1 -20
- data/lib/stripe/resources/financial_connections/session.rb +2 -62
- data/lib/stripe/resources/funding_instructions.rb +1 -1
- data/lib/stripe/resources/identity/verification_session.rb +0 -10
- data/lib/stripe/resources/invoice.rb +17 -1175
- data/lib/stripe/resources/invoice_item.rb +2 -78
- data/lib/stripe/resources/invoice_line_item.rb +1 -55
- data/lib/stripe/resources/invoice_payment.rb +53 -2
- data/lib/stripe/resources/issuing/cardholder.rb +1 -2
- data/lib/stripe/resources/issuing/transaction.rb +0 -6
- data/lib/stripe/resources/line_item.rb +0 -37
- data/lib/stripe/resources/mandate.rb +0 -24
- data/lib/stripe/resources/payment_intent.rb +333 -5071
- data/lib/stripe/resources/payment_method.rb +11 -198
- data/lib/stripe/resources/payment_method_configuration.rb +13 -249
- data/lib/stripe/resources/payout.rb +0 -6
- data/lib/stripe/resources/person.rb +25 -1
- data/lib/stripe/resources/price.rb +0 -30
- data/lib/stripe/resources/product.rb +0 -59
- data/lib/stripe/resources/promotion_code.rb +0 -10
- data/lib/stripe/resources/quote.rb +6 -2040
- data/lib/stripe/resources/refund.rb +2 -9
- data/lib/stripe/resources/setup_attempt.rb +0 -21
- data/lib/stripe/resources/setup_intent.rb +21 -599
- data/lib/stripe/resources/source.rb +1 -30
- data/lib/stripe/resources/subscription.rb +11 -294
- data/lib/stripe/resources/subscription_item.rb +3 -84
- data/lib/stripe/resources/subscription_schedule.rb +10 -1007
- data/lib/stripe/resources/tax/calculation.rb +2 -2
- data/lib/stripe/resources/tax/registration.rb +220 -0
- data/lib/stripe/resources/tax/transaction.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +4 -14
- data/lib/stripe/resources/terminal/reader.rb +0 -406
- data/lib/stripe/resources/token.rb +61 -0
- data/lib/stripe/resources/treasury/financial_account.rb +3 -22
- data/lib/stripe/resources/treasury/financial_account_features.rb +0 -2
- data/lib/stripe/resources/treasury/outbound_transfer.rb +0 -37
- data/lib/stripe/resources/treasury/received_credit.rb +1 -38
- data/lib/stripe/resources/treasury/received_debit.rb +1 -40
- data/lib/stripe/resources/v2/billing/meter_event.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +2 -2
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +2 -2
- data/lib/stripe/resources/v2/event.rb +2 -2
- data/lib/stripe/resources/v2/event_destination.rb +2 -2
- data/lib/stripe/resources.rb +1 -88
- data/lib/stripe/services/account_external_account_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +84 -0
- data/lib/stripe/services/account_service.rb +42 -565
- data/lib/stripe/services/account_session_service.rb +1 -269
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -4
- data/lib/stripe/services/billing/credit_balance_transaction_service.rb +0 -4
- data/lib/stripe/services/billing/credit_grant_service.rb +0 -8
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/session_service.rb +0 -4
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +0 -1334
- data/lib/stripe/services/checkout/session_service.rb +5 -175
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/credit_note_service.rb +1 -5
- data/lib/stripe/services/customer_payment_method_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +2 -2
- data/lib/stripe/services/customer_session_service.rb +1 -4
- data/lib/stripe/services/customer_tax_id_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +3 -8
- data/lib/stripe/services/financial_connections/session_service.rb +2 -34
- data/lib/stripe/services/financial_connections_service.rb +2 -3
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +0 -8
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_item_service.rb +2 -74
- data/lib/stripe/services/invoice_line_item_service.rb +1 -33
- data/lib/stripe/services/invoice_payment_service.rb +33 -5
- data/lib/stripe/services/invoice_service.rb +18 -1089
- 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 +2 -6
- data/lib/stripe/services/payment_intent_service.rb +290 -4603
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_configuration_service.rb +10 -178
- data/lib/stripe/services/payment_method_service.rb +9 -128
- data/lib/stripe/services/payout_service.rb +0 -4
- data/lib/stripe/services/price_service.rb +0 -19
- data/lib/stripe/services/product_service.rb +1 -39
- data/lib/stripe/services/promotion_code_service.rb +0 -8
- data/lib/stripe/services/quote_service.rb +8 -1727
- data/lib/stripe/services/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +21 -559
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +1 -1
- data/lib/stripe/services/subscription_item_service.rb +3 -75
- data/lib/stripe/services/subscription_schedule_service.rb +10 -911
- data/lib/stripe/services/subscription_service.rb +10 -254
- data/lib/stripe/services/tax/calculation_service.rb +2 -2
- data/lib/stripe/services/tax/registration_service.rb +143 -0
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +3 -9
- data/lib/stripe/services/tax_service.rb +2 -4
- data/lib/stripe/services/terminal/reader_service.rb +0 -180
- data/lib/stripe/services/terminal_service.rb +2 -3
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +7 -107
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +0 -43
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- 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/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +61 -0
- data/lib/stripe/services/transfer_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/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +3 -12
- data/lib/stripe/services/v2/billing_service.rb +1 -1
- data/lib/stripe/services/v2/core_service.rb +2 -5
- data/lib/stripe/services/v2_services.rb +3 -5
- data/lib/stripe/services.rb +0 -52
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/stripe_object.rb +1 -1
- data/lib/stripe/util.rb +1 -7
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -55
- data/rbi/stripe/resources/account.rbi +4903 -0
- data/rbi/stripe/resources/account_link.rbi +74 -0
- data/rbi/stripe/resources/account_session.rbi +894 -0
- data/rbi/stripe/resources/apple_pay_domain.rbi +90 -0
- data/rbi/stripe/resources/application.rbi +20 -0
- data/rbi/stripe/resources/application_fee.rbi +118 -0
- data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
- data/rbi/stripe/resources/apps/secret.rbi +195 -0
- data/rbi/stripe/resources/balance.rbi +180 -0
- data/rbi/stripe/resources/balance_transaction.rbi +144 -0
- data/rbi/stripe/resources/bank_account.rbi +127 -0
- data/rbi/stripe/resources/billing/alert.rbi +201 -0
- data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
- data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
- data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
- data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
- data/rbi/stripe/resources/billing/meter.rbi +226 -0
- data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
- data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
- data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
- data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
- data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
- data/rbi/stripe/resources/capability.rbi +125 -0
- data/rbi/stripe/resources/card.rbi +125 -0
- data/rbi/stripe/resources/cash_balance.rbi +32 -0
- data/rbi/stripe/resources/charge.rbi +2057 -0
- data/rbi/stripe/resources/checkout/session.rbi +3988 -0
- data/rbi/stripe/resources/climate/order.rbi +245 -0
- data/rbi/stripe/resources/climate/product.rbi +75 -0
- data/rbi/stripe/resources/climate/supplier.rbi +72 -0
- data/rbi/stripe/resources/confirmation_token.rbi +1873 -0
- data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
- data/rbi/stripe/resources/country_spec.rbi +85 -0
- data/rbi/stripe/resources/coupon.rbi +252 -0
- data/rbi/stripe/resources/credit_note.rbi +747 -0
- data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
- data/rbi/stripe/resources/customer.rbi +1009 -0
- data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
- data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
- data/rbi/stripe/resources/customer_session.rbi +200 -0
- data/rbi/stripe/resources/discount.rbi +53 -0
- data/rbi/stripe/resources/dispute.rbi +761 -0
- data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
- data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
- data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
- data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
- data/rbi/stripe/resources/event.rbi +149 -0
- data/rbi/stripe/resources/exchange_rate.rbi +66 -0
- data/rbi/stripe/resources/file.rbi +143 -0
- data/rbi/stripe/resources/file_link.rbi +141 -0
- data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
- data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
- data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
- data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
- data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
- data/rbi/stripe/resources/forwarding/request.rbi +216 -0
- data/rbi/stripe/resources/funding_instructions.rbi +437 -0
- data/rbi/stripe/resources/identity/verification_report.rbi +351 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +517 -0
- data/rbi/stripe/resources/invoice.rbi +3736 -0
- data/rbi/stripe/resources/invoice_item.rbi +475 -0
- data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
- data/rbi/stripe/resources/invoice_payment.rbi +114 -0
- data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
- data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
- data/rbi/stripe/resources/issuing/card.rbi +741 -0
- data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
- data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
- data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
- data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
- data/rbi/stripe/resources/issuing/token.rbi +226 -0
- data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
- data/rbi/stripe/resources/line_item.rbi +72 -0
- data/rbi/stripe/resources/login_link.rbi +19 -0
- data/rbi/stripe/resources/mandate.rbi +187 -0
- data/rbi/stripe/resources/payment_intent.rbi +9795 -0
- data/rbi/stripe/resources/payment_link.rbi +1801 -0
- data/rbi/stripe/resources/payment_method.rbi +1831 -0
- data/rbi/stripe/resources/payment_method_configuration.rbi +3220 -0
- data/rbi/stripe/resources/payment_method_domain.rbi +228 -0
- data/rbi/stripe/resources/payout.rbi +300 -0
- data/rbi/stripe/resources/person.rbi +401 -0
- data/rbi/stripe/resources/plan.rbi +373 -0
- data/rbi/stripe/resources/price.rbi +694 -0
- data/rbi/stripe/resources/product.rbi +557 -0
- data/rbi/stripe/resources/product_feature.rbi +26 -0
- data/rbi/stripe/resources/promotion_code.rbi +261 -0
- data/rbi/stripe/resources/quote.rbi +1126 -0
- data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
- data/rbi/stripe/resources/radar/value_list.rbi +170 -0
- data/rbi/stripe/resources/radar/value_list_item.rbi +131 -0
- data/rbi/stripe/resources/refund.rbi +519 -0
- data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
- data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
- data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
- data/rbi/stripe/resources/reversal.rbi +51 -0
- data/rbi/stripe/resources/review.rbi +154 -0
- data/rbi/stripe/resources/setup_attempt.rbi +477 -0
- data/rbi/stripe/resources/setup_intent.rbi +3869 -0
- data/rbi/stripe/resources/shipping_rate.rbi +305 -0
- data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
- data/rbi/stripe/resources/source.rbi +1496 -0
- data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
- data/rbi/stripe/resources/source_transaction.rbi +127 -0
- data/rbi/stripe/resources/subscription.rbi +1964 -0
- data/rbi/stripe/resources/subscription_item.rbi +370 -0
- data/rbi/stripe/resources/subscription_schedule.rbi +1495 -0
- data/rbi/stripe/resources/tax/calculation.rbi +474 -0
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +88 -0
- data/rbi/stripe/resources/tax/registration.rbi +2713 -0
- data/rbi/stripe/resources/tax/settings.rbi +141 -0
- data/rbi/stripe/resources/tax/transaction.rbi +351 -0
- data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
- data/rbi/stripe/resources/tax_code.rbi +44 -0
- data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
- data/rbi/stripe/resources/tax_id.rbi +167 -0
- data/rbi/stripe/resources/tax_rate.rbi +239 -0
- data/rbi/stripe/resources/terminal/configuration.rbi +1388 -0
- data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
- data/rbi/stripe/resources/terminal/location.rbi +224 -0
- data/rbi/stripe/resources/terminal/reader.rbi +587 -0
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +134 -0
- data/rbi/stripe/resources/token.rbi +1283 -0
- data/rbi/stripe/resources/topup.rbi +222 -0
- data/rbi/stripe/resources/transfer.rbi +199 -0
- data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
- data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
- data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
- data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
- data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
- data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
- data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
- data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
- data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
- data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
- data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
- data/rbi/stripe/resources/v2/amount.rbi +14 -0
- data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
- data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
- data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
- data/rbi/stripe/resources/v2/event.rbi +48 -0
- data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
- data/rbi/stripe/resources/webhook_endpoint.rbi +170 -0
- data/rbi/stripe/services/account_capability_service.rbi +51 -0
- data/{lib/stripe/services/external_account_service.rb → rbi/stripe/services/account_external_account_service.rbi} +124 -136
- data/rbi/stripe/services/account_link_service.rbi +58 -0
- data/rbi/stripe/services/account_login_link_service.rbi +22 -0
- data/rbi/stripe/services/account_person_service.rbi +1013 -0
- data/rbi/stripe/services/account_service.rbi +4189 -0
- data/rbi/stripe/services/account_session_service.rbi +572 -0
- data/rbi/stripe/services/apple_pay_domain_service.rbi +78 -0
- data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
- data/rbi/stripe/services/application_fee_service.rbi +78 -0
- data/rbi/stripe/services/apps/secret_service.rbi +151 -0
- data/rbi/stripe/services/apps_service.rbi +9 -0
- data/rbi/stripe/services/balance_service.rbi +21 -0
- data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
- data/rbi/stripe/services/billing/alert_service.rbi +152 -0
- data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
- data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
- data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
- data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
- data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
- data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
- data/rbi/stripe/services/billing/meter_service.rbi +163 -0
- data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
- data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
- data/rbi/stripe/services/billing_portal_service.rbi +10 -0
- data/rbi/stripe/services/billing_service.rbi +15 -0
- data/rbi/stripe/services/charge_service.rbi +448 -0
- data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
- data/rbi/stripe/services/checkout/session_service.rbi +2607 -0
- data/rbi/stripe/services/checkout_service.rbi +9 -0
- data/rbi/stripe/services/climate/order_service.rbi +142 -0
- data/{lib/stripe/services/privacy/redaction_job_validation_error_service.rb → rbi/stripe/services/climate/product_service.rbi} +25 -36
- data/{lib/stripe/services/financial_connections/institution_service.rb → rbi/stripe/services/climate/supplier_service.rbi} +25 -36
- data/rbi/stripe/services/climate_service.rbi +11 -0
- data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
- data/rbi/stripe/services/country_spec_service.rbi +44 -0
- data/rbi/stripe/services/coupon_service.rbi +196 -0
- data/{lib/stripe/services/quote_preview_subscription_schedule_service.rb → rbi/stripe/services/credit_note_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
- data/rbi/stripe/services/credit_note_service.rbi +416 -0
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
- data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
- data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
- data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
- data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
- data/rbi/stripe/services/customer_service.rbi +651 -0
- data/rbi/stripe/services/customer_session_service.rbi +116 -0
- data/rbi/stripe/services/customer_tax_id_service.rbi +72 -0
- data/rbi/stripe/services/dispute_service.rbi +424 -0
- data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
- data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
- data/rbi/stripe/services/entitlements_service.rbi +10 -0
- data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
- data/rbi/stripe/services/event_service.rbi +83 -0
- data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
- data/rbi/stripe/services/file_link_service.rbi +124 -0
- data/rbi/stripe/services/file_service.rbi +116 -0
- data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
- data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
- data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
- data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
- data/rbi/stripe/services/financial_connections_service.rbi +11 -0
- data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
- data/rbi/stripe/services/forwarding_service.rbi +9 -0
- data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
- data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
- data/rbi/stripe/services/identity_service.rbi +10 -0
- data/rbi/stripe/services/invoice_item_service.rbi +368 -0
- data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
- data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
- data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
- data/rbi/stripe/services/invoice_service.rbi +2920 -0
- data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
- data/rbi/stripe/services/issuing/card_service.rbi +495 -0
- data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
- data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
- data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
- data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
- data/rbi/stripe/services/issuing/token_service.rbi +99 -0
- data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
- data/rbi/stripe/services/issuing_service.rbi +16 -0
- data/rbi/stripe/services/mandate_service.rbi +20 -0
- data/rbi/stripe/services/payment_intent_service.rbi +7819 -0
- data/{lib/stripe/services/quote_line_service.rb → rbi/stripe/services/payment_link_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/payment_link_service.rbi +1352 -0
- data/rbi/stripe/services/payment_method_configuration_service.rbi +2255 -0
- data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
- data/rbi/stripe/services/payment_method_service.rbi +846 -0
- data/rbi/stripe/services/payout_service.rbi +205 -0
- data/rbi/stripe/services/plan_service.rbi +284 -0
- data/rbi/stripe/services/price_service.rbi +546 -0
- data/rbi/stripe/services/product_feature_service.rbi +69 -0
- data/rbi/stripe/services/product_service.rbi +479 -0
- data/rbi/stripe/services/promotion_code_service.rbi +214 -0
- data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
- data/{lib/stripe/services/order_line_item_service.rb → rbi/stripe/services/quote_line_item_service.rbi} +16 -20
- data/rbi/stripe/services/quote_service.rbi +686 -0
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
- data/rbi/stripe/services/radar/value_list_item_service.rbi +111 -0
- data/rbi/stripe/services/radar/value_list_service.rbi +143 -0
- data/rbi/stripe/services/radar_service.rbi +11 -0
- data/rbi/stripe/services/refund_service.rbi +185 -0
- data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
- data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
- data/rbi/stripe/services/reporting_service.rbi +10 -0
- data/rbi/stripe/services/review_service.rbi +84 -0
- data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
- data/rbi/stripe/services/setup_intent_service.rbi +3605 -0
- data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
- data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
- data/rbi/stripe/services/sigma_service.rbi +9 -0
- data/rbi/stripe/services/source_service.rbi +663 -0
- data/{lib/stripe/services/quote_preview_invoice_service.rb → rbi/stripe/services/source_transaction_service.rbi} +16 -20
- data/rbi/stripe/services/subscription_item_service.rbi +324 -0
- data/rbi/stripe/services/subscription_schedule_service.rbi +1192 -0
- data/rbi/stripe/services/subscription_service.rbi +1596 -0
- data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
- data/rbi/stripe/services/tax/calculation_service.rbi +230 -0
- data/rbi/stripe/services/tax/registration_service.rbi +1845 -0
- data/rbi/stripe/services/tax/settings_service.rbi +93 -0
- data/{lib/stripe/services/financial_connections/account_inferred_balance_service.rb → rbi/stripe/services/tax/transaction_line_item_service.rbi} +17 -21
- data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
- data/rbi/stripe/services/tax_code_service.rbi +44 -0
- data/rbi/stripe/services/tax_id_service.rbi +112 -0
- data/rbi/stripe/services/tax_rate_service.rbi +185 -0
- data/rbi/stripe/services/tax_service.rbi +12 -0
- data/rbi/stripe/services/terminal/configuration_service.rbi +1120 -0
- data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
- data/rbi/stripe/services/terminal/location_service.rbi +184 -0
- data/rbi/stripe/services/terminal/reader_service.rbi +344 -0
- data/rbi/stripe/services/terminal_service.rbi +12 -0
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +805 -0
- data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
- data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
- data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
- data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
- data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
- data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
- data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +62 -0
- data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +92 -0
- data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
- data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
- data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
- data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
- data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
- data/rbi/stripe/services/test_helpers_service.rbi +15 -0
- data/rbi/stripe/services/token_service.rbi +1257 -0
- data/rbi/stripe/services/topup_service.rbi +176 -0
- data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
- data/rbi/stripe/services/transfer_service.rbi +152 -0
- data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
- data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
- data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
- data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
- data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
- data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
- data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
- data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
- data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
- data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
- data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
- data/rbi/stripe/services/treasury_service.rbi +18 -0
- data/rbi/stripe/services/v1_services.rbi +77 -0
- data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
- data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +20 -0
- data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
- data/rbi/stripe/services/v2/billing_service.rbi +14 -0
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +200 -0
- data/rbi/stripe/services/v2/core/event_service.rbi +38 -0
- data/rbi/stripe/services/v2/core_service.rbi +12 -0
- data/rbi/stripe/services/v2_services.rbi +10 -0
- data/rbi/stripe/services/webhook_endpoint_service.rbi +131 -0
- data/stripe.gemspec +1 -4
- metadata +325 -146
- data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +0 -21
- data/lib/stripe/events/v2_core_account_link_completed_event.rb +0 -13
- data/lib/stripe/events/v2_core_account_person_created_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_deleted_event.rb +0 -23
- data/lib/stripe/events/v2_core_account_person_updated_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +0 -23
- data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +0 -21
- data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +0 -21
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -123
- data/lib/stripe/resources/balance_settings.rb +0 -101
- data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
- data/lib/stripe/resources/capital/financing_offer.rb +0 -179
- data/lib/stripe/resources/capital/financing_summary.rb +0 -55
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -114
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
- data/lib/stripe/resources/financial_connections/institution.rb +0 -90
- data/lib/stripe/resources/gift_cards/card.rb +0 -208
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -272
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -602
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -82
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -86
- data/lib/stripe/resources/issuing/settlement.rb +0 -53
- data/lib/stripe/resources/margin.rb +0 -115
- data/lib/stripe/resources/order.rb +0 -2859
- data/lib/stripe/resources/payment_attempt_record.rb +0 -1078
- data/lib/stripe/resources/payment_record.rb +0 -1607
- data/lib/stripe/resources/privacy/redaction_job.rb +0 -251
- data/lib/stripe/resources/privacy/redaction_job_root_objects.rb +0 -35
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -54
- data/lib/stripe/resources/quote_line.rb +0 -274
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -663
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -337
- data/lib/stripe/resources/tax/association.rb +0 -89
- data/lib/stripe/resources/tax/form.rb +0 -211
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -31
- data/lib/stripe/resources/v2/core/account.rb +0 -1715
- data/lib/stripe/resources/v2/core/account_link.rb +0 -54
- data/lib/stripe/resources/v2/core/person.rb +0 -272
- data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +0 -72
- data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +0 -37
- data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +0 -18
- data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +0 -20
- data/lib/stripe/resources/v2/money_management/adjustment.rb +0 -49
- data/lib/stripe/resources/v2/money_management/financial_account.rb +0 -56
- data/lib/stripe/resources/v2/money_management/financial_address.rb +0 -66
- data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +0 -92
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +0 -127
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +0 -74
- data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +0 -43
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +0 -115
- data/lib/stripe/resources/v2/money_management/payout_method.rb +0 -73
- data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +0 -47
- data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -134
- data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -106
- data/lib/stripe/resources/v2/money_management/transaction.rb +0 -76
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +0 -66
- data/lib/stripe/services/account_notice_service.rb +0 -101
- data/lib/stripe/services/balance_settings_service.rb +0 -96
- 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/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/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_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/privacy/redaction_job_service.rb +0 -231
- data/lib/stripe/services/privacy_service.rb +0 -13
- 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/lib/stripe/services/v2/core/account_link_service.rb +0 -76
- data/lib/stripe/services/v2/core/account_service.rb +0 -4130
- data/lib/stripe/services/v2/core/accounts/person_service.rb +0 -1040
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +0 -135
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +0 -109
- data/lib/stripe/services/v2/core/vault_service.rb +0 -18
- data/lib/stripe/services/v2/money_management/adjustment_service.rb +0 -75
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +0 -44
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +0 -81
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +0 -126
- data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +0 -80
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +0 -202
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +0 -237
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +0 -174
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +0 -95
- data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +0 -32
- data/lib/stripe/services/v2/money_management/received_credit_service.rb +0 -71
- data/lib/stripe/services/v2/money_management/received_debit_service.rb +0 -44
- data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +0 -70
- data/lib/stripe/services/v2/money_management/transaction_service.rb +0 -74
- data/lib/stripe/services/v2/money_management_service.rb +0 -31
- data/lib/stripe/services/v2/test_helper_service.rb +0 -15
- data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +0 -50
- data/rbi/stripe.rbi +0 -190156
@@ -105,12 +105,15 @@ module Stripe
|
|
105
105
|
attr_accessor :name
|
106
106
|
# Billing phone number (including extension).
|
107
107
|
attr_accessor :phone
|
108
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
109
|
+
attr_accessor :tax_id
|
108
110
|
|
109
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
111
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
110
112
|
@address = address
|
111
113
|
@email = email
|
112
114
|
@name = name
|
113
115
|
@phone = phone
|
116
|
+
@tax_id = tax_id
|
114
117
|
end
|
115
118
|
end
|
116
119
|
|
@@ -156,21 +159,9 @@ module Stripe
|
|
156
159
|
class Giropay < Stripe::RequestParams
|
157
160
|
end
|
158
161
|
|
159
|
-
class Gopay < Stripe::RequestParams
|
160
|
-
end
|
161
|
-
|
162
162
|
class Grabpay < Stripe::RequestParams
|
163
163
|
end
|
164
164
|
|
165
|
-
class IdBankTransfer < Stripe::RequestParams
|
166
|
-
# Bank where the account is held.
|
167
|
-
attr_accessor :bank
|
168
|
-
|
169
|
-
def initialize(bank: nil)
|
170
|
-
@bank = bank
|
171
|
-
end
|
172
|
-
end
|
173
|
-
|
174
165
|
class Ideal < Stripe::RequestParams
|
175
166
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
176
167
|
attr_accessor :bank
|
@@ -218,9 +209,6 @@ module Stripe
|
|
218
209
|
class Link < Stripe::RequestParams
|
219
210
|
end
|
220
211
|
|
221
|
-
class MbWay < Stripe::RequestParams
|
222
|
-
end
|
223
|
-
|
224
212
|
class Mobilepay < Stripe::RequestParams
|
225
213
|
end
|
226
214
|
|
@@ -291,30 +279,12 @@ module Stripe
|
|
291
279
|
class Paypal < Stripe::RequestParams
|
292
280
|
end
|
293
281
|
|
294
|
-
class Payto < Stripe::RequestParams
|
295
|
-
# The account number for the bank account.
|
296
|
-
attr_accessor :account_number
|
297
|
-
# Bank-State-Branch number of the bank account.
|
298
|
-
attr_accessor :bsb_number
|
299
|
-
# The PayID alias for the bank account.
|
300
|
-
attr_accessor :pay_id
|
301
|
-
|
302
|
-
def initialize(account_number: nil, bsb_number: nil, pay_id: nil)
|
303
|
-
@account_number = account_number
|
304
|
-
@bsb_number = bsb_number
|
305
|
-
@pay_id = pay_id
|
306
|
-
end
|
307
|
-
end
|
308
|
-
|
309
282
|
class Pix < Stripe::RequestParams
|
310
283
|
end
|
311
284
|
|
312
285
|
class Promptpay < Stripe::RequestParams
|
313
286
|
end
|
314
287
|
|
315
|
-
class Qris < Stripe::RequestParams
|
316
|
-
end
|
317
|
-
|
318
288
|
class RadarOptions < Stripe::RequestParams
|
319
289
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
320
290
|
attr_accessor :session
|
@@ -324,29 +294,6 @@ module Stripe
|
|
324
294
|
end
|
325
295
|
end
|
326
296
|
|
327
|
-
class Rechnung < Stripe::RequestParams
|
328
|
-
class Dob < Stripe::RequestParams
|
329
|
-
# The day of birth, between 1 and 31.
|
330
|
-
attr_accessor :day
|
331
|
-
# The month of birth, between 1 and 12.
|
332
|
-
attr_accessor :month
|
333
|
-
# The four-digit year of birth.
|
334
|
-
attr_accessor :year
|
335
|
-
|
336
|
-
def initialize(day: nil, month: nil, year: nil)
|
337
|
-
@day = day
|
338
|
-
@month = month
|
339
|
-
@year = year
|
340
|
-
end
|
341
|
-
end
|
342
|
-
# Customer's date of birth
|
343
|
-
attr_accessor :dob
|
344
|
-
|
345
|
-
def initialize(dob: nil)
|
346
|
-
@dob = dob
|
347
|
-
end
|
348
|
-
end
|
349
|
-
|
350
297
|
class RevolutPay < Stripe::RequestParams
|
351
298
|
end
|
352
299
|
|
@@ -365,9 +312,6 @@ module Stripe
|
|
365
312
|
end
|
366
313
|
end
|
367
314
|
|
368
|
-
class Shopeepay < Stripe::RequestParams
|
369
|
-
end
|
370
|
-
|
371
315
|
class Sofort < Stripe::RequestParams
|
372
316
|
# Two-letter ISO code representing the country the bank account is located in.
|
373
317
|
attr_accessor :country
|
@@ -377,18 +321,6 @@ module Stripe
|
|
377
321
|
end
|
378
322
|
end
|
379
323
|
|
380
|
-
class StripeBalance < Stripe::RequestParams
|
381
|
-
# The connected account ID whose Stripe balance to use as the source of payment
|
382
|
-
attr_accessor :account
|
383
|
-
# The [source_type](https://docs.stripe.com/api/balance/balance_object#balance_object-available-source_types) of the balance
|
384
|
-
attr_accessor :source_type
|
385
|
-
|
386
|
-
def initialize(account: nil, source_type: nil)
|
387
|
-
@account = account
|
388
|
-
@source_type = source_type
|
389
|
-
end
|
390
|
-
end
|
391
|
-
|
392
324
|
class Swish < Stripe::RequestParams
|
393
325
|
end
|
394
326
|
|
@@ -465,12 +397,8 @@ module Stripe
|
|
465
397
|
attr_accessor :fpx
|
466
398
|
# If this is a `giropay` PaymentMethod, this hash contains details about the Giropay payment method.
|
467
399
|
attr_accessor :giropay
|
468
|
-
# If this is a Gopay PaymentMethod, this hash contains details about the Gopay payment method.
|
469
|
-
attr_accessor :gopay
|
470
400
|
# If this is a `grabpay` PaymentMethod, this hash contains details about the GrabPay payment method.
|
471
401
|
attr_accessor :grabpay
|
472
|
-
# If this is an `IdBankTransfer` PaymentMethod, this hash contains details about the IdBankTransfer payment method.
|
473
|
-
attr_accessor :id_bank_transfer
|
474
402
|
# If this is an `ideal` PaymentMethod, this hash contains details about the iDEAL payment method.
|
475
403
|
attr_accessor :ideal
|
476
404
|
# If this is an `interac_present` PaymentMethod, this hash contains details about the Interac Present payment method.
|
@@ -485,8 +413,6 @@ module Stripe
|
|
485
413
|
attr_accessor :kr_card
|
486
414
|
# If this is an `Link` PaymentMethod, this hash contains details about the Link payment method.
|
487
415
|
attr_accessor :link
|
488
|
-
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
489
|
-
attr_accessor :mb_way
|
490
416
|
# 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`.
|
491
417
|
attr_accessor :metadata
|
492
418
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
@@ -509,18 +435,12 @@ module Stripe
|
|
509
435
|
attr_accessor :paynow
|
510
436
|
# If this is a `paypal` PaymentMethod, this hash contains details about the PayPal payment method.
|
511
437
|
attr_accessor :paypal
|
512
|
-
# If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
|
513
|
-
attr_accessor :payto
|
514
438
|
# If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
|
515
439
|
attr_accessor :pix
|
516
440
|
# If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method.
|
517
441
|
attr_accessor :promptpay
|
518
|
-
# If this is a `qris` PaymentMethod, this hash contains details about the QRIS payment method.
|
519
|
-
attr_accessor :qris
|
520
442
|
# Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
521
443
|
attr_accessor :radar_options
|
522
|
-
# If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
|
523
|
-
attr_accessor :rechnung
|
524
444
|
# If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
|
525
445
|
attr_accessor :revolut_pay
|
526
446
|
# If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
|
@@ -529,12 +449,8 @@ module Stripe
|
|
529
449
|
attr_accessor :satispay
|
530
450
|
# If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
|
531
451
|
attr_accessor :sepa_debit
|
532
|
-
# If this is a Shopeepay PaymentMethod, this hash contains details about the Shopeepay payment method.
|
533
|
-
attr_accessor :shopeepay
|
534
452
|
# If this is a `sofort` PaymentMethod, this hash contains details about the SOFORT payment method.
|
535
453
|
attr_accessor :sofort
|
536
|
-
# This hash contains details about the Stripe balance payment method.
|
537
|
-
attr_accessor :stripe_balance
|
538
454
|
# If this is a `swish` PaymentMethod, this hash contains details about the Swish payment method.
|
539
455
|
attr_accessor :swish
|
540
456
|
# If this is a TWINT PaymentMethod, this hash contains details about the TWINT payment method.
|
@@ -568,9 +484,7 @@ module Stripe
|
|
568
484
|
eps: nil,
|
569
485
|
fpx: nil,
|
570
486
|
giropay: nil,
|
571
|
-
gopay: nil,
|
572
487
|
grabpay: nil,
|
573
|
-
id_bank_transfer: nil,
|
574
488
|
ideal: nil,
|
575
489
|
interac_present: nil,
|
576
490
|
kakao_pay: nil,
|
@@ -578,7 +492,6 @@ module Stripe
|
|
578
492
|
konbini: nil,
|
579
493
|
kr_card: nil,
|
580
494
|
link: nil,
|
581
|
-
mb_way: nil,
|
582
495
|
metadata: nil,
|
583
496
|
mobilepay: nil,
|
584
497
|
multibanco: nil,
|
@@ -590,19 +503,14 @@ module Stripe
|
|
590
503
|
payco: nil,
|
591
504
|
paynow: nil,
|
592
505
|
paypal: nil,
|
593
|
-
payto: nil,
|
594
506
|
pix: nil,
|
595
507
|
promptpay: nil,
|
596
|
-
qris: nil,
|
597
508
|
radar_options: nil,
|
598
|
-
rechnung: nil,
|
599
509
|
revolut_pay: nil,
|
600
510
|
samsung_pay: nil,
|
601
511
|
satispay: nil,
|
602
512
|
sepa_debit: nil,
|
603
|
-
shopeepay: nil,
|
604
513
|
sofort: nil,
|
605
|
-
stripe_balance: nil,
|
606
514
|
swish: nil,
|
607
515
|
twint: nil,
|
608
516
|
type: nil,
|
@@ -629,9 +537,7 @@ module Stripe
|
|
629
537
|
@eps = eps
|
630
538
|
@fpx = fpx
|
631
539
|
@giropay = giropay
|
632
|
-
@gopay = gopay
|
633
540
|
@grabpay = grabpay
|
634
|
-
@id_bank_transfer = id_bank_transfer
|
635
541
|
@ideal = ideal
|
636
542
|
@interac_present = interac_present
|
637
543
|
@kakao_pay = kakao_pay
|
@@ -639,7 +545,6 @@ module Stripe
|
|
639
545
|
@konbini = konbini
|
640
546
|
@kr_card = kr_card
|
641
547
|
@link = link
|
642
|
-
@mb_way = mb_way
|
643
548
|
@metadata = metadata
|
644
549
|
@mobilepay = mobilepay
|
645
550
|
@multibanco = multibanco
|
@@ -651,19 +556,14 @@ module Stripe
|
|
651
556
|
@payco = payco
|
652
557
|
@paynow = paynow
|
653
558
|
@paypal = paypal
|
654
|
-
@payto = payto
|
655
559
|
@pix = pix
|
656
560
|
@promptpay = promptpay
|
657
|
-
@qris = qris
|
658
561
|
@radar_options = radar_options
|
659
|
-
@rechnung = rechnung
|
660
562
|
@revolut_pay = revolut_pay
|
661
563
|
@samsung_pay = samsung_pay
|
662
564
|
@satispay = satispay
|
663
565
|
@sepa_debit = sepa_debit
|
664
|
-
@shopeepay = shopeepay
|
665
566
|
@sofort = sofort
|
666
|
-
@stripe_balance = stripe_balance
|
667
567
|
@swish = swish
|
668
568
|
@twint = twint
|
669
569
|
@type = type
|
@@ -699,14 +599,14 @@ module Stripe
|
|
699
599
|
@plan = plan
|
700
600
|
end
|
701
601
|
end
|
702
|
-
# Installment configuration for payments
|
602
|
+
# Installment configuration for payments confirmed using this ConfirmationToken.
|
703
603
|
attr_accessor :installments
|
704
604
|
|
705
605
|
def initialize(installments: nil)
|
706
606
|
@installments = installments
|
707
607
|
end
|
708
608
|
end
|
709
|
-
#
|
609
|
+
# Configuration for any card payments confirmed using this ConfirmationToken.
|
710
610
|
attr_accessor :card
|
711
611
|
|
712
612
|
def initialize(card: nil)
|
@@ -764,7 +664,7 @@ module Stripe
|
|
764
664
|
attr_accessor :payment_method
|
765
665
|
# If provided, this hash will be used to create a PaymentMethod.
|
766
666
|
attr_accessor :payment_method_data
|
767
|
-
#
|
667
|
+
# Payment-method-specific configuration for this ConfirmationToken.
|
768
668
|
attr_accessor :payment_method_options
|
769
669
|
# Return URL used to confirm the Intent.
|
770
670
|
attr_accessor :return_url
|
@@ -7,7 +7,7 @@ module Stripe
|
|
7
7
|
attr_reader :authorizations, :cards, :personalization_designs, :transactions
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
|
-
super
|
10
|
+
super
|
11
11
|
@authorizations = Stripe::TestHelpers::Issuing::AuthorizationService.new(@requestor)
|
12
12
|
@cards = Stripe::TestHelpers::Issuing::CardService.new(@requestor)
|
13
13
|
@personalization_designs = Stripe::TestHelpers::Issuing::PersonalizationDesignService
|
@@ -49,27 +49,6 @@ module Stripe
|
|
49
49
|
end
|
50
50
|
end
|
51
51
|
|
52
|
-
class SucceedInputCollectionParams < Stripe::RequestParams
|
53
|
-
# Specifies which fields in the response should be expanded.
|
54
|
-
attr_accessor :expand
|
55
|
-
# This parameter defines the skip behavior for input collection.
|
56
|
-
attr_accessor :skip_non_required_inputs
|
57
|
-
|
58
|
-
def initialize(expand: nil, skip_non_required_inputs: nil)
|
59
|
-
@expand = expand
|
60
|
-
@skip_non_required_inputs = skip_non_required_inputs
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
class TimeoutInputCollectionParams < Stripe::RequestParams
|
65
|
-
# Specifies which fields in the response should be expanded.
|
66
|
-
attr_accessor :expand
|
67
|
-
|
68
|
-
def initialize(expand: nil)
|
69
|
-
@expand = expand
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
52
|
# Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.
|
74
53
|
def present_payment_method(reader, params = {}, opts = {})
|
75
54
|
request(
|
@@ -80,28 +59,6 @@ module Stripe
|
|
80
59
|
base_address: :api
|
81
60
|
)
|
82
61
|
end
|
83
|
-
|
84
|
-
# Use this endpoint to trigger a successful input collection on a simulated reader.
|
85
|
-
def succeed_input_collection(reader, params = {}, opts = {})
|
86
|
-
request(
|
87
|
-
method: :post,
|
88
|
-
path: format("/v1/test_helpers/terminal/readers/%<reader>s/succeed_input_collection", { reader: CGI.escape(reader) }),
|
89
|
-
params: params,
|
90
|
-
opts: opts,
|
91
|
-
base_address: :api
|
92
|
-
)
|
93
|
-
end
|
94
|
-
|
95
|
-
# Use this endpoint to complete an input collection with a timeout error on a simulated reader.
|
96
|
-
def timeout_input_collection(reader, params = {}, opts = {})
|
97
|
-
request(
|
98
|
-
method: :post,
|
99
|
-
path: format("/v1/test_helpers/terminal/readers/%<reader>s/timeout_input_collection", { reader: CGI.escape(reader) }),
|
100
|
-
params: params,
|
101
|
-
opts: opts,
|
102
|
-
base_address: :api
|
103
|
-
)
|
104
|
-
end
|
105
62
|
end
|
106
63
|
end
|
107
64
|
end
|
@@ -31,26 +31,6 @@ module Stripe
|
|
31
31
|
@us_bank_account = us_bank_account
|
32
32
|
end
|
33
33
|
end
|
34
|
-
|
35
|
-
class NetworkDetails < Stripe::RequestParams
|
36
|
-
class Ach < Stripe::RequestParams
|
37
|
-
# ACH Addenda record
|
38
|
-
attr_accessor :addenda
|
39
|
-
|
40
|
-
def initialize(addenda: nil)
|
41
|
-
@addenda = addenda
|
42
|
-
end
|
43
|
-
end
|
44
|
-
# Optional fields for `ach`.
|
45
|
-
attr_accessor :ach
|
46
|
-
# The type of flow that originated the ReceivedCredit.
|
47
|
-
attr_accessor :type
|
48
|
-
|
49
|
-
def initialize(ach: nil, type: nil)
|
50
|
-
@ach = ach
|
51
|
-
@type = type
|
52
|
-
end
|
53
|
-
end
|
54
34
|
# Amount (in cents) to be transferred.
|
55
35
|
attr_accessor :amount
|
56
36
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
@@ -65,8 +45,6 @@ module Stripe
|
|
65
45
|
attr_accessor :initiating_payment_method_details
|
66
46
|
# Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
|
67
47
|
attr_accessor :network
|
68
|
-
# Details about the network used for the ReceivedCredit.
|
69
|
-
attr_accessor :network_details
|
70
48
|
|
71
49
|
def initialize(
|
72
50
|
amount: nil,
|
@@ -75,8 +53,7 @@ module Stripe
|
|
75
53
|
expand: nil,
|
76
54
|
financial_account: nil,
|
77
55
|
initiating_payment_method_details: nil,
|
78
|
-
network: nil
|
79
|
-
network_details: nil
|
56
|
+
network: nil
|
80
57
|
)
|
81
58
|
@amount = amount
|
82
59
|
@currency = currency
|
@@ -85,7 +62,6 @@ module Stripe
|
|
85
62
|
@financial_account = financial_account
|
86
63
|
@initiating_payment_method_details = initiating_payment_method_details
|
87
64
|
@network = network
|
88
|
-
@network_details = network_details
|
89
65
|
end
|
90
66
|
end
|
91
67
|
|
@@ -31,26 +31,6 @@ module Stripe
|
|
31
31
|
@us_bank_account = us_bank_account
|
32
32
|
end
|
33
33
|
end
|
34
|
-
|
35
|
-
class NetworkDetails < Stripe::RequestParams
|
36
|
-
class Ach < Stripe::RequestParams
|
37
|
-
# Addenda record data associated with this ReceivedDebit.
|
38
|
-
attr_accessor :addenda
|
39
|
-
|
40
|
-
def initialize(addenda: nil)
|
41
|
-
@addenda = addenda
|
42
|
-
end
|
43
|
-
end
|
44
|
-
# Optional fields for `ach`.
|
45
|
-
attr_accessor :ach
|
46
|
-
# The type of flow that originated the ReceivedDebit.
|
47
|
-
attr_accessor :type
|
48
|
-
|
49
|
-
def initialize(ach: nil, type: nil)
|
50
|
-
@ach = ach
|
51
|
-
@type = type
|
52
|
-
end
|
53
|
-
end
|
54
34
|
# Amount (in cents) to be transferred.
|
55
35
|
attr_accessor :amount
|
56
36
|
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
@@ -65,8 +45,6 @@ module Stripe
|
|
65
45
|
attr_accessor :initiating_payment_method_details
|
66
46
|
# Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type.
|
67
47
|
attr_accessor :network
|
68
|
-
# Details about the network used for the ReceivedDebit.
|
69
|
-
attr_accessor :network_details
|
70
48
|
|
71
49
|
def initialize(
|
72
50
|
amount: nil,
|
@@ -75,8 +53,7 @@ module Stripe
|
|
75
53
|
expand: nil,
|
76
54
|
financial_account: nil,
|
77
55
|
initiating_payment_method_details: nil,
|
78
|
-
network: nil
|
79
|
-
network_details: nil
|
56
|
+
network: nil
|
80
57
|
)
|
81
58
|
@amount = amount
|
82
59
|
@currency = currency
|
@@ -85,7 +62,6 @@ module Stripe
|
|
85
62
|
@financial_account = financial_account
|
86
63
|
@initiating_payment_method_details = initiating_payment_method_details
|
87
64
|
@network = network
|
88
|
-
@network_details = network_details
|
89
65
|
end
|
90
66
|
end
|
91
67
|
|
@@ -7,7 +7,7 @@ module Stripe
|
|
7
7
|
attr_reader :inbound_transfers, :outbound_payments, :outbound_transfers, :received_credits, :received_debits
|
8
8
|
|
9
9
|
def initialize(requestor)
|
10
|
-
super
|
10
|
+
super
|
11
11
|
@inbound_transfers = Stripe::TestHelpers::Treasury::InboundTransferService.new(@requestor)
|
12
12
|
@outbound_payments = Stripe::TestHelpers::Treasury::OutboundPaymentService.new(@requestor)
|
13
13
|
@outbound_transfers = Stripe::TestHelpers::Treasury::OutboundTransferService.new(@requestor)
|
@@ -6,7 +6,7 @@ module Stripe
|
|
6
6
|
attr_reader :confirmation_tokens, :customers, :issuing, :refunds, :terminal, :test_clocks, :treasury
|
7
7
|
|
8
8
|
def initialize(requestor)
|
9
|
-
super
|
9
|
+
super
|
10
10
|
@confirmation_tokens = Stripe::TestHelpers::ConfirmationTokenService.new(@requestor)
|
11
11
|
@customers = Stripe::TestHelpers::CustomerService.new(@requestor)
|
12
12
|
@issuing = Stripe::TestHelpers::IssuingService.new(@requestor)
|
@@ -146,6 +146,21 @@ module Stripe
|
|
146
146
|
end
|
147
147
|
end
|
148
148
|
|
149
|
+
class RegistrationDate < Stripe::RequestParams
|
150
|
+
# The day of registration, between 1 and 31.
|
151
|
+
attr_accessor :day
|
152
|
+
# The month of registration, between 1 and 12.
|
153
|
+
attr_accessor :month
|
154
|
+
# The four-digit year of registration.
|
155
|
+
attr_accessor :year
|
156
|
+
|
157
|
+
def initialize(day: nil, month: nil, year: nil)
|
158
|
+
@day = day
|
159
|
+
@month = month
|
160
|
+
@year = year
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
149
164
|
class Verification < Stripe::RequestParams
|
150
165
|
class Document < Stripe::RequestParams
|
151
166
|
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. 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.
|
@@ -197,6 +212,8 @@ module Stripe
|
|
197
212
|
attr_accessor :ownership_exemption_reason
|
198
213
|
# The company's phone number (used for verification).
|
199
214
|
attr_accessor :phone
|
215
|
+
# Attribute for param field registration_date
|
216
|
+
attr_accessor :registration_date
|
200
217
|
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
|
201
218
|
attr_accessor :registration_number
|
202
219
|
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
|
@@ -227,6 +244,7 @@ module Stripe
|
|
227
244
|
ownership_declaration_shown_and_signed: nil,
|
228
245
|
ownership_exemption_reason: nil,
|
229
246
|
phone: nil,
|
247
|
+
registration_date: nil,
|
230
248
|
registration_number: nil,
|
231
249
|
structure: nil,
|
232
250
|
tax_id: nil,
|
@@ -250,6 +268,7 @@ module Stripe
|
|
250
268
|
@ownership_declaration_shown_and_signed = ownership_declaration_shown_and_signed
|
251
269
|
@ownership_exemption_reason = ownership_exemption_reason
|
252
270
|
@phone = phone
|
271
|
+
@registration_date = registration_date
|
253
272
|
@registration_number = registration_number
|
254
273
|
@structure = structure
|
255
274
|
@tax_id = tax_id
|
@@ -953,6 +972,44 @@ module Stripe
|
|
953
972
|
end
|
954
973
|
end
|
955
974
|
|
975
|
+
class UsCfpbData < Stripe::RequestParams
|
976
|
+
class EthnicityDetails < Stripe::RequestParams
|
977
|
+
# The persons ethnicity
|
978
|
+
attr_accessor :ethnicity
|
979
|
+
# Please specify your origin, when other is selected.
|
980
|
+
attr_accessor :ethnicity_other
|
981
|
+
|
982
|
+
def initialize(ethnicity: nil, ethnicity_other: nil)
|
983
|
+
@ethnicity = ethnicity
|
984
|
+
@ethnicity_other = ethnicity_other
|
985
|
+
end
|
986
|
+
end
|
987
|
+
|
988
|
+
class RaceDetails < Stripe::RequestParams
|
989
|
+
# The persons race.
|
990
|
+
attr_accessor :race
|
991
|
+
# Please specify your race, when other is selected.
|
992
|
+
attr_accessor :race_other
|
993
|
+
|
994
|
+
def initialize(race: nil, race_other: nil)
|
995
|
+
@race = race
|
996
|
+
@race_other = race_other
|
997
|
+
end
|
998
|
+
end
|
999
|
+
# The persons ethnicity details
|
1000
|
+
attr_accessor :ethnicity_details
|
1001
|
+
# The persons race details
|
1002
|
+
attr_accessor :race_details
|
1003
|
+
# The persons self-identified gender
|
1004
|
+
attr_accessor :self_identified_gender
|
1005
|
+
|
1006
|
+
def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil)
|
1007
|
+
@ethnicity_details = ethnicity_details
|
1008
|
+
@race_details = race_details
|
1009
|
+
@self_identified_gender = self_identified_gender
|
1010
|
+
end
|
1011
|
+
end
|
1012
|
+
|
956
1013
|
class Verification < Stripe::RequestParams
|
957
1014
|
class AdditionalDocument < Stripe::RequestParams
|
958
1015
|
# 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.
|
@@ -1037,6 +1094,8 @@ module Stripe
|
|
1037
1094
|
attr_accessor :relationship
|
1038
1095
|
# The last four digits of the person's Social Security number (U.S. only).
|
1039
1096
|
attr_accessor :ssn_last_4
|
1097
|
+
# Demographic data related to the person.
|
1098
|
+
attr_accessor :us_cfpb_data
|
1040
1099
|
# The person's verification status.
|
1041
1100
|
attr_accessor :verification
|
1042
1101
|
|
@@ -1066,6 +1125,7 @@ module Stripe
|
|
1066
1125
|
registered_address: nil,
|
1067
1126
|
relationship: nil,
|
1068
1127
|
ssn_last_4: nil,
|
1128
|
+
us_cfpb_data: nil,
|
1069
1129
|
verification: nil
|
1070
1130
|
)
|
1071
1131
|
@additional_tos_acceptances = additional_tos_acceptances
|
@@ -1093,6 +1153,7 @@ module Stripe
|
|
1093
1153
|
@registered_address = registered_address
|
1094
1154
|
@relationship = relationship
|
1095
1155
|
@ssn_last_4 = ssn_last_4
|
1156
|
+
@us_cfpb_data = us_cfpb_data
|
1096
1157
|
@verification = verification
|
1097
1158
|
end
|
1098
1159
|
end
|
@@ -25,13 +25,10 @@ module Stripe
|
|
25
25
|
|
26
26
|
class FinancialAddresses < Stripe::RequestParams
|
27
27
|
class Aba < Stripe::RequestParams
|
28
|
-
# Requested bank partner
|
29
|
-
attr_accessor :bank
|
30
28
|
# Whether the FinancialAccount should have the Feature.
|
31
29
|
attr_accessor :requested
|
32
30
|
|
33
|
-
def initialize(
|
34
|
-
@bank = bank
|
31
|
+
def initialize(requested: nil)
|
35
32
|
@requested = requested
|
36
33
|
end
|
37
34
|
end
|