lithic 0.20.0 → 0.22.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 +44 -0
- data/README.md +1 -10
- data/lib/lithic/internal/type/union.rb +21 -7
- data/lib/lithic/models/account_activity_list_params.rb +1 -0
- data/lib/lithic/models/account_activity_list_response.rb +1 -0
- data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
- data/lib/lithic/models/account_holder_create_params.rb +4 -2
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
- data/lib/lithic/models/account_holder_update_params.rb +6 -3
- data/lib/lithic/models/account_holder_update_response.rb +156 -86
- data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
- data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
- data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
- data/lib/lithic/models/address.rb +33 -19
- data/lib/lithic/models/address_update.rb +27 -11
- data/lib/lithic/models/auth_rules/auth_rule.rb +60 -27
- data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
- data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
- data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
- data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
- data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
- data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
- data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
- data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +218 -45
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
- data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
- data/lib/lithic/models/auth_rules/v2_list_results_response.rb +1 -0
- data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
- data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
- data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
- data/lib/lithic/models/card_authorization.rb +11 -1
- data/lib/lithic/models/card_create_params.rb +11 -1
- data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
- data/lib/lithic/models/card_update_params.rb +12 -1
- data/lib/lithic/models/event.rb +5 -0
- data/lib/lithic/models/event_list_params.rb +3 -0
- data/lib/lithic/models/event_subscription.rb +3 -0
- data/lib/lithic/models/events/subscription_create_params.rb +3 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +3 -0
- data/lib/lithic/models/external_payment.rb +6 -0
- data/lib/lithic/models/external_payment_create_params.rb +1 -0
- data/lib/lithic/models/external_payment_list_params.rb +1 -0
- data/lib/lithic/models/financial_accounts/installment_plan.rb +311 -0
- data/lib/lithic/models/financial_accounts/installment_plan_list_params.rb +75 -0
- data/lib/lithic/models/financial_accounts/installment_plan_retrieve_params.rb +32 -0
- data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +279 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
- data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
- data/lib/lithic/models/financial_accounts/loan_tape.rb +62 -1
- data/lib/lithic/models/financial_accounts/open_to_buy.rb +36 -0
- data/lib/lithic/models/financial_accounts/open_to_buy_retrieve_params.rb +22 -0
- data/lib/lithic/models/financial_accounts/open_to_buy_summary.rb +46 -0
- data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +10 -0
- data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
- data/lib/lithic/models/financial_event.rb +9 -0
- data/lib/lithic/models/kyb.rb +4 -2
- data/lib/lithic/models/kyb_business_entity.rb +35 -19
- data/lib/lithic/models/kyc.rb +2 -1
- data/lib/lithic/models/management_operation_create_params.rb +4 -0
- data/lib/lithic/models/management_operation_transaction.rb +4 -0
- data/lib/lithic/models/non_pci_card.rb +11 -1
- data/lib/lithic/models/parsed_webhook_event.rb +123 -67
- data/lib/lithic/models/payment.rb +3 -1
- data/lib/lithic/models/payment_create_stablecoin_params.rb +99 -0
- data/lib/lithic/models/payment_create_stablecoin_response.rb +19 -0
- data/lib/lithic/models/payment_list_params.rb +1 -0
- data/lib/lithic/models/payment_retry_params.rb +28 -1
- data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
- data/lib/lithic/models/three_ds_authentication.rb +126 -1
- data/lib/lithic/models/transaction.rb +4 -1
- data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
- data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
- data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
- data/lib/lithic/models.rb +6 -0
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
- data/lib/lithic/resources/auth_rules/v2.rb +44 -8
- data/lib/lithic/resources/blockchain_recipients.rb +23 -0
- data/lib/lithic/resources/cards.rb +10 -4
- data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
- data/lib/lithic/resources/financial_accounts/installment_plans.rb +86 -0
- data/lib/lithic/resources/financial_accounts/open_to_buy.rb +48 -0
- data/lib/lithic/resources/financial_accounts.rb +8 -0
- data/lib/lithic/resources/payments.rb +71 -3
- data/lib/lithic/resources/transactions.rb +17 -4
- data/lib/lithic/resources/webhooks.rb +18 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +21 -1
- data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
- data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
- data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
- data/rbi/lithic/models/account_holder_create_params.rbi +8 -4
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
- data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
- data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
- data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
- data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
- data/rbi/lithic/models/address.rbi +57 -29
- data/rbi/lithic/models/address_update.rbi +50 -24
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +60 -19
- data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
- data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
- data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
- data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
- data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
- data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
- data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +358 -50
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
- data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
- data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +5 -0
- data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
- data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
- data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
- data/rbi/lithic/models/card_authorization.rbi +12 -0
- data/rbi/lithic/models/card_create_params.rbi +15 -0
- data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
- data/rbi/lithic/models/card_update_params.rbi +17 -0
- data/rbi/lithic/models/event.rbi +8 -0
- data/rbi/lithic/models/event_list_params.rbi +7 -0
- data/rbi/lithic/models/event_subscription.rbi +7 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
- data/rbi/lithic/models/external_payment.rbi +30 -0
- data/rbi/lithic/models/external_payment_create_params.rbi +5 -0
- data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
- data/rbi/lithic/models/financial_accounts/installment_plan.rbi +528 -0
- data/rbi/lithic/models/financial_accounts/installment_plan_list_params.rbi +155 -0
- data/rbi/lithic/models/financial_accounts/installment_plan_retrieve_params.rbi +56 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +452 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
- data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +119 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy.rbi +64 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbi +43 -0
- data/rbi/lithic/models/financial_accounts/open_to_buy_summary.rbi +73 -0
- data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +50 -0
- data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
- data/rbi/lithic/models/financial_event.rbi +35 -0
- data/rbi/lithic/models/kyb.rbi +8 -4
- data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
- data/rbi/lithic/models/kyc.rbi +4 -2
- data/rbi/lithic/models/management_operation_create_params.rbi +20 -0
- data/rbi/lithic/models/management_operation_transaction.rbi +20 -0
- data/rbi/lithic/models/non_pci_card.rbi +12 -0
- data/rbi/lithic/models/parsed_webhook_event.rbi +196 -90
- data/rbi/lithic/models/payment.rbi +6 -2
- data/rbi/lithic/models/payment_create_stablecoin_params.rbi +162 -0
- data/rbi/lithic/models/payment_create_stablecoin_response.rbi +34 -0
- data/rbi/lithic/models/payment_list_params.rbi +2 -0
- data/rbi/lithic/models/payment_retry_params.rbi +47 -2
- data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
- data/rbi/lithic/models/three_ds_authentication.rbi +292 -0
- data/rbi/lithic/models/transaction.rbi +14 -2
- data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
- data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
- data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
- data/rbi/lithic/models.rbi +7 -0
- data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
- data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
- data/rbi/lithic/resources/blockchain_recipients.rbi +14 -0
- data/rbi/lithic/resources/cards.rbi +15 -2
- data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
- data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +73 -0
- data/rbi/lithic/resources/financial_accounts/open_to_buy.rbi +40 -0
- data/rbi/lithic/resources/financial_accounts.rbi +6 -0
- data/rbi/lithic/resources/payments.rbi +68 -2
- data/rbi/lithic/resources/transactions.rbi +31 -2
- data/rbi/lithic/resources/webhooks.rbi +1 -0
- data/sig/lithic/models/account_activity_list_params.rbs +2 -0
- data/sig/lithic/models/account_activity_list_response.rbs +2 -0
- data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +39 -39
- data/sig/lithic/models/account_holder_update_response.rbs +52 -52
- data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
- data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
- data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
- data/sig/lithic/models/address.rbs +13 -13
- data/sig/lithic/models/address_update.rbs +8 -12
- data/sig/lithic/models/auth_rules/auth_rule.rbs +10 -7
- data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
- data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
- data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
- data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
- data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
- data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
- data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
- data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +92 -16
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
- data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +2 -0
- data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
- data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
- data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
- data/sig/lithic/models/card_authorization.rbs +5 -0
- data/sig/lithic/models/card_create_params.rbs +7 -0
- data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
- data/sig/lithic/models/card_update_params.rbs +8 -1
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/external_payment.rbs +12 -0
- data/sig/lithic/models/external_payment_create_params.rbs +2 -0
- data/sig/lithic/models/external_payment_list_params.rbs +2 -0
- data/sig/lithic/models/financial_accounts/installment_plan.rbs +227 -0
- data/sig/lithic/models/financial_accounts/installment_plan_list_params.rbs +69 -0
- data/sig/lithic/models/financial_accounts/installment_plan_retrieve_params.rbs +30 -0
- data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +191 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
- data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +47 -0
- data/sig/lithic/models/financial_accounts/open_to_buy.rbs +27 -0
- data/sig/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbs +26 -0
- data/sig/lithic/models/financial_accounts/open_to_buy_summary.rbs +32 -0
- data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +20 -0
- data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
- data/sig/lithic/models/financial_event.rbs +18 -0
- data/sig/lithic/models/kyb_business_entity.rbs +13 -13
- data/sig/lithic/models/management_operation_create_params.rbs +8 -0
- data/sig/lithic/models/management_operation_transaction.rbs +8 -0
- data/sig/lithic/models/non_pci_card.rbs +5 -0
- data/sig/lithic/models/parsed_webhook_event.rbs +40 -39
- data/sig/lithic/models/payment.rbs +2 -0
- data/sig/lithic/models/payment_create_stablecoin_params.rbs +84 -0
- data/sig/lithic/models/payment_create_stablecoin_response.rbs +15 -0
- data/sig/lithic/models/payment_list_params.rbs +2 -1
- data/sig/lithic/models/payment_retry_params.rbs +24 -1
- data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
- data/sig/lithic/models/three_ds_authentication.rbs +77 -0
- data/sig/lithic/models/transaction.rbs +4 -0
- data/sig/lithic/models/transaction_simulate_authorization_params.rbs +14 -0
- data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
- data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
- data/sig/lithic/models.rbs +6 -0
- data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
- data/sig/lithic/resources/blockchain_recipients.rbs +5 -0
- data/sig/lithic/resources/cards.rbs +2 -0
- data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
- data/sig/lithic/resources/financial_accounts/installment_plans.rbs +26 -0
- data/sig/lithic/resources/financial_accounts/open_to_buy.rbs +14 -0
- data/sig/lithic/resources/financial_accounts.rbs +4 -0
- data/sig/lithic/resources/payments.rbs +12 -0
- data/sig/lithic/resources/transactions.rbs +5 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +65 -5
- data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
- data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
- data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
|
@@ -280,7 +280,8 @@ module Lithic
|
|
|
280
280
|
end
|
|
281
281
|
|
|
282
282
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
283
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
283
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
284
|
+
# and KYC workflows.
|
|
284
285
|
sig do
|
|
285
286
|
returns(
|
|
286
287
|
T.nilable(
|
|
@@ -347,7 +348,8 @@ module Lithic
|
|
|
347
348
|
end
|
|
348
349
|
def self.new(
|
|
349
350
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
350
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
351
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
352
|
+
# and KYC workflows.
|
|
351
353
|
address: nil,
|
|
352
354
|
# Individual's date of birth, as an RFC 3339 date.
|
|
353
355
|
dob: nil,
|
|
@@ -397,21 +399,12 @@ module Lithic
|
|
|
397
399
|
sig { returns(String) }
|
|
398
400
|
attr_accessor :city
|
|
399
401
|
|
|
400
|
-
# Valid country code
|
|
401
|
-
#
|
|
402
|
+
# Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
|
|
403
|
+
# format. Supported countries depend on the onboarding workflow used for the
|
|
404
|
+
# account holder.
|
|
402
405
|
sig { returns(String) }
|
|
403
406
|
attr_accessor :country
|
|
404
407
|
|
|
405
|
-
# Valid postal code. Only USA ZIP codes are currently supported, entered as a
|
|
406
|
-
# five-digit ZIP or nine-digit ZIP+4.
|
|
407
|
-
sig { returns(String) }
|
|
408
|
-
attr_accessor :postal_code
|
|
409
|
-
|
|
410
|
-
# Valid state code. Only USA state codes are currently supported, entered in
|
|
411
|
-
# uppercase ISO 3166-2 two-character format.
|
|
412
|
-
sig { returns(String) }
|
|
413
|
-
attr_accessor :state
|
|
414
|
-
|
|
415
408
|
# Unit or apartment number (if applicable).
|
|
416
409
|
sig { returns(T.nilable(String)) }
|
|
417
410
|
attr_reader :address2
|
|
@@ -419,16 +412,42 @@ module Lithic
|
|
|
419
412
|
sig { params(address2: String).void }
|
|
420
413
|
attr_writer :address2
|
|
421
414
|
|
|
415
|
+
# Valid postal code. For USA addresses, enter either a five-digit postal code or a
|
|
416
|
+
# nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
|
|
417
|
+
# countries except the following, which do not use postal codes: ABW, AGO, ARE,
|
|
418
|
+
# ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
|
|
419
|
+
# ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
|
|
420
|
+
# SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
|
|
421
|
+
sig { returns(T.nilable(String)) }
|
|
422
|
+
attr_accessor :postal_code
|
|
423
|
+
|
|
424
|
+
# Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
|
|
425
|
+
# code for the country without the country prefix. For example, `CA` for
|
|
426
|
+
# California. Optional unless the address is in one of the following countries,
|
|
427
|
+
# where it is required:
|
|
428
|
+
#
|
|
429
|
+
# - `USA`
|
|
430
|
+
# - `CAN`
|
|
431
|
+
# - `AUS`
|
|
432
|
+
# - `CHN`
|
|
433
|
+
# - `KOR`
|
|
434
|
+
# - `MEX`
|
|
435
|
+
# - `MYS`
|
|
436
|
+
# - `NZL`
|
|
437
|
+
sig { returns(T.nilable(String)) }
|
|
438
|
+
attr_accessor :state
|
|
439
|
+
|
|
422
440
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
423
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
441
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
442
|
+
# and KYC workflows.
|
|
424
443
|
sig do
|
|
425
444
|
params(
|
|
426
445
|
address1: String,
|
|
427
446
|
city: String,
|
|
428
447
|
country: String,
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
448
|
+
address2: String,
|
|
449
|
+
postal_code: T.nilable(String),
|
|
450
|
+
state: T.nilable(String)
|
|
432
451
|
).returns(T.attached_class)
|
|
433
452
|
end
|
|
434
453
|
def self.new(
|
|
@@ -436,17 +455,33 @@ module Lithic
|
|
|
436
455
|
address1:,
|
|
437
456
|
# Name of city.
|
|
438
457
|
city:,
|
|
439
|
-
# Valid country code
|
|
440
|
-
#
|
|
458
|
+
# Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
|
|
459
|
+
# format. Supported countries depend on the onboarding workflow used for the
|
|
460
|
+
# account holder.
|
|
441
461
|
country:,
|
|
442
|
-
# Valid postal code. Only USA ZIP codes are currently supported, entered as a
|
|
443
|
-
# five-digit ZIP or nine-digit ZIP+4.
|
|
444
|
-
postal_code:,
|
|
445
|
-
# Valid state code. Only USA state codes are currently supported, entered in
|
|
446
|
-
# uppercase ISO 3166-2 two-character format.
|
|
447
|
-
state:,
|
|
448
462
|
# Unit or apartment number (if applicable).
|
|
449
|
-
address2: nil
|
|
463
|
+
address2: nil,
|
|
464
|
+
# Valid postal code. For USA addresses, enter either a five-digit postal code or a
|
|
465
|
+
# nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
|
|
466
|
+
# countries except the following, which do not use postal codes: ABW, AGO, ARE,
|
|
467
|
+
# ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
|
|
468
|
+
# ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
|
|
469
|
+
# SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
|
|
470
|
+
postal_code: nil,
|
|
471
|
+
# Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
|
|
472
|
+
# code for the country without the country prefix. For example, `CA` for
|
|
473
|
+
# California. Optional unless the address is in one of the following countries,
|
|
474
|
+
# where it is required:
|
|
475
|
+
#
|
|
476
|
+
# - `USA`
|
|
477
|
+
# - `CAN`
|
|
478
|
+
# - `AUS`
|
|
479
|
+
# - `CHN`
|
|
480
|
+
# - `KOR`
|
|
481
|
+
# - `MEX`
|
|
482
|
+
# - `MYS`
|
|
483
|
+
# - `NZL`
|
|
484
|
+
state: nil
|
|
450
485
|
)
|
|
451
486
|
end
|
|
452
487
|
|
|
@@ -456,9 +491,9 @@ module Lithic
|
|
|
456
491
|
address1: String,
|
|
457
492
|
city: String,
|
|
458
493
|
country: String,
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
494
|
+
address2: String,
|
|
495
|
+
postal_code: T.nilable(String),
|
|
496
|
+
state: T.nilable(String)
|
|
462
497
|
}
|
|
463
498
|
)
|
|
464
499
|
end
|
|
@@ -477,7 +512,8 @@ module Lithic
|
|
|
477
512
|
end
|
|
478
513
|
|
|
479
514
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
480
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
515
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
516
|
+
# and KYC workflows.
|
|
481
517
|
sig do
|
|
482
518
|
returns(
|
|
483
519
|
T.nilable(
|
|
@@ -552,7 +588,8 @@ module Lithic
|
|
|
552
588
|
end
|
|
553
589
|
def self.new(
|
|
554
590
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
555
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
591
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
592
|
+
# and KYC workflows.
|
|
556
593
|
address: nil,
|
|
557
594
|
# Individual's date of birth, as an RFC 3339 date.
|
|
558
595
|
dob: nil,
|
|
@@ -602,21 +639,12 @@ module Lithic
|
|
|
602
639
|
sig { returns(String) }
|
|
603
640
|
attr_accessor :city
|
|
604
641
|
|
|
605
|
-
# Valid country code
|
|
606
|
-
#
|
|
642
|
+
# Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
|
|
643
|
+
# format. Supported countries depend on the onboarding workflow used for the
|
|
644
|
+
# account holder.
|
|
607
645
|
sig { returns(String) }
|
|
608
646
|
attr_accessor :country
|
|
609
647
|
|
|
610
|
-
# Valid postal code. Only USA ZIP codes are currently supported, entered as a
|
|
611
|
-
# five-digit ZIP or nine-digit ZIP+4.
|
|
612
|
-
sig { returns(String) }
|
|
613
|
-
attr_accessor :postal_code
|
|
614
|
-
|
|
615
|
-
# Valid state code. Only USA state codes are currently supported, entered in
|
|
616
|
-
# uppercase ISO 3166-2 two-character format.
|
|
617
|
-
sig { returns(String) }
|
|
618
|
-
attr_accessor :state
|
|
619
|
-
|
|
620
648
|
# Unit or apartment number (if applicable).
|
|
621
649
|
sig { returns(T.nilable(String)) }
|
|
622
650
|
attr_reader :address2
|
|
@@ -624,16 +652,42 @@ module Lithic
|
|
|
624
652
|
sig { params(address2: String).void }
|
|
625
653
|
attr_writer :address2
|
|
626
654
|
|
|
655
|
+
# Valid postal code. For USA addresses, enter either a five-digit postal code or a
|
|
656
|
+
# nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
|
|
657
|
+
# countries except the following, which do not use postal codes: ABW, AGO, ARE,
|
|
658
|
+
# ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
|
|
659
|
+
# ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
|
|
660
|
+
# SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
|
|
661
|
+
sig { returns(T.nilable(String)) }
|
|
662
|
+
attr_accessor :postal_code
|
|
663
|
+
|
|
664
|
+
# Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
|
|
665
|
+
# code for the country without the country prefix. For example, `CA` for
|
|
666
|
+
# California. Optional unless the address is in one of the following countries,
|
|
667
|
+
# where it is required:
|
|
668
|
+
#
|
|
669
|
+
# - `USA`
|
|
670
|
+
# - `CAN`
|
|
671
|
+
# - `AUS`
|
|
672
|
+
# - `CHN`
|
|
673
|
+
# - `KOR`
|
|
674
|
+
# - `MEX`
|
|
675
|
+
# - `MYS`
|
|
676
|
+
# - `NZL`
|
|
677
|
+
sig { returns(T.nilable(String)) }
|
|
678
|
+
attr_accessor :state
|
|
679
|
+
|
|
627
680
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
628
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
681
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
682
|
+
# and KYC workflows.
|
|
629
683
|
sig do
|
|
630
684
|
params(
|
|
631
685
|
address1: String,
|
|
632
686
|
city: String,
|
|
633
687
|
country: String,
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
688
|
+
address2: String,
|
|
689
|
+
postal_code: T.nilable(String),
|
|
690
|
+
state: T.nilable(String)
|
|
637
691
|
).returns(T.attached_class)
|
|
638
692
|
end
|
|
639
693
|
def self.new(
|
|
@@ -641,17 +695,33 @@ module Lithic
|
|
|
641
695
|
address1:,
|
|
642
696
|
# Name of city.
|
|
643
697
|
city:,
|
|
644
|
-
# Valid country code
|
|
645
|
-
#
|
|
698
|
+
# Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
|
|
699
|
+
# format. Supported countries depend on the onboarding workflow used for the
|
|
700
|
+
# account holder.
|
|
646
701
|
country:,
|
|
647
|
-
# Valid postal code. Only USA ZIP codes are currently supported, entered as a
|
|
648
|
-
# five-digit ZIP or nine-digit ZIP+4.
|
|
649
|
-
postal_code:,
|
|
650
|
-
# Valid state code. Only USA state codes are currently supported, entered in
|
|
651
|
-
# uppercase ISO 3166-2 two-character format.
|
|
652
|
-
state:,
|
|
653
702
|
# Unit or apartment number (if applicable).
|
|
654
|
-
address2: nil
|
|
703
|
+
address2: nil,
|
|
704
|
+
# Valid postal code. For USA addresses, enter either a five-digit postal code or a
|
|
705
|
+
# nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
|
|
706
|
+
# countries except the following, which do not use postal codes: ABW, AGO, ARE,
|
|
707
|
+
# ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
|
|
708
|
+
# ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
|
|
709
|
+
# SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
|
|
710
|
+
postal_code: nil,
|
|
711
|
+
# Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
|
|
712
|
+
# code for the country without the country prefix. For example, `CA` for
|
|
713
|
+
# California. Optional unless the address is in one of the following countries,
|
|
714
|
+
# where it is required:
|
|
715
|
+
#
|
|
716
|
+
# - `USA`
|
|
717
|
+
# - `CAN`
|
|
718
|
+
# - `AUS`
|
|
719
|
+
# - `CHN`
|
|
720
|
+
# - `KOR`
|
|
721
|
+
# - `MEX`
|
|
722
|
+
# - `MYS`
|
|
723
|
+
# - `NZL`
|
|
724
|
+
state: nil
|
|
655
725
|
)
|
|
656
726
|
end
|
|
657
727
|
|
|
@@ -661,9 +731,9 @@ module Lithic
|
|
|
661
731
|
address1: String,
|
|
662
732
|
city: String,
|
|
663
733
|
country: String,
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
734
|
+
address2: String,
|
|
735
|
+
postal_code: T.nilable(String),
|
|
736
|
+
state: T.nilable(String)
|
|
667
737
|
}
|
|
668
738
|
)
|
|
669
739
|
end
|
|
@@ -861,7 +931,8 @@ module Lithic
|
|
|
861
931
|
end
|
|
862
932
|
|
|
863
933
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
864
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
934
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
935
|
+
# and KYC workflows.
|
|
865
936
|
sig do
|
|
866
937
|
returns(
|
|
867
938
|
T.nilable(
|
|
@@ -930,7 +1001,8 @@ module Lithic
|
|
|
930
1001
|
end
|
|
931
1002
|
def self.new(
|
|
932
1003
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
933
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
1004
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
1005
|
+
# and KYC workflows.
|
|
934
1006
|
address: nil,
|
|
935
1007
|
# Individual's date of birth, as an RFC 3339 date.
|
|
936
1008
|
dob: nil,
|
|
@@ -980,21 +1052,12 @@ module Lithic
|
|
|
980
1052
|
sig { returns(String) }
|
|
981
1053
|
attr_accessor :city
|
|
982
1054
|
|
|
983
|
-
# Valid country code
|
|
984
|
-
#
|
|
1055
|
+
# Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
|
|
1056
|
+
# format. Supported countries depend on the onboarding workflow used for the
|
|
1057
|
+
# account holder.
|
|
985
1058
|
sig { returns(String) }
|
|
986
1059
|
attr_accessor :country
|
|
987
1060
|
|
|
988
|
-
# Valid postal code. Only USA ZIP codes are currently supported, entered as a
|
|
989
|
-
# five-digit ZIP or nine-digit ZIP+4.
|
|
990
|
-
sig { returns(String) }
|
|
991
|
-
attr_accessor :postal_code
|
|
992
|
-
|
|
993
|
-
# Valid state code. Only USA state codes are currently supported, entered in
|
|
994
|
-
# uppercase ISO 3166-2 two-character format.
|
|
995
|
-
sig { returns(String) }
|
|
996
|
-
attr_accessor :state
|
|
997
|
-
|
|
998
1061
|
# Unit or apartment number (if applicable).
|
|
999
1062
|
sig { returns(T.nilable(String)) }
|
|
1000
1063
|
attr_reader :address2
|
|
@@ -1002,16 +1065,42 @@ module Lithic
|
|
|
1002
1065
|
sig { params(address2: String).void }
|
|
1003
1066
|
attr_writer :address2
|
|
1004
1067
|
|
|
1068
|
+
# Valid postal code. For USA addresses, enter either a five-digit postal code or a
|
|
1069
|
+
# nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
|
|
1070
|
+
# countries except the following, which do not use postal codes: ABW, AGO, ARE,
|
|
1071
|
+
# ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
|
|
1072
|
+
# ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
|
|
1073
|
+
# SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
|
|
1074
|
+
sig { returns(T.nilable(String)) }
|
|
1075
|
+
attr_accessor :postal_code
|
|
1076
|
+
|
|
1077
|
+
# Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
|
|
1078
|
+
# code for the country without the country prefix. For example, `CA` for
|
|
1079
|
+
# California. Optional unless the address is in one of the following countries,
|
|
1080
|
+
# where it is required:
|
|
1081
|
+
#
|
|
1082
|
+
# - `USA`
|
|
1083
|
+
# - `CAN`
|
|
1084
|
+
# - `AUS`
|
|
1085
|
+
# - `CHN`
|
|
1086
|
+
# - `KOR`
|
|
1087
|
+
# - `MEX`
|
|
1088
|
+
# - `MYS`
|
|
1089
|
+
# - `NZL`
|
|
1090
|
+
sig { returns(T.nilable(String)) }
|
|
1091
|
+
attr_accessor :state
|
|
1092
|
+
|
|
1005
1093
|
# Individual's current address - PO boxes, UPS drops, and FedEx drops are not
|
|
1006
|
-
# acceptable; APO/FPO are acceptable. Only USA addresses are
|
|
1094
|
+
# acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
|
|
1095
|
+
# and KYC workflows.
|
|
1007
1096
|
sig do
|
|
1008
1097
|
params(
|
|
1009
1098
|
address1: String,
|
|
1010
1099
|
city: String,
|
|
1011
1100
|
country: String,
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1101
|
+
address2: String,
|
|
1102
|
+
postal_code: T.nilable(String),
|
|
1103
|
+
state: T.nilable(String)
|
|
1015
1104
|
).returns(T.attached_class)
|
|
1016
1105
|
end
|
|
1017
1106
|
def self.new(
|
|
@@ -1019,17 +1108,33 @@ module Lithic
|
|
|
1019
1108
|
address1:,
|
|
1020
1109
|
# Name of city.
|
|
1021
1110
|
city:,
|
|
1022
|
-
# Valid country code
|
|
1023
|
-
#
|
|
1111
|
+
# Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
|
|
1112
|
+
# format. Supported countries depend on the onboarding workflow used for the
|
|
1113
|
+
# account holder.
|
|
1024
1114
|
country:,
|
|
1025
|
-
# Valid postal code. Only USA ZIP codes are currently supported, entered as a
|
|
1026
|
-
# five-digit ZIP or nine-digit ZIP+4.
|
|
1027
|
-
postal_code:,
|
|
1028
|
-
# Valid state code. Only USA state codes are currently supported, entered in
|
|
1029
|
-
# uppercase ISO 3166-2 two-character format.
|
|
1030
|
-
state:,
|
|
1031
1115
|
# Unit or apartment number (if applicable).
|
|
1032
|
-
address2: nil
|
|
1116
|
+
address2: nil,
|
|
1117
|
+
# Valid postal code. For USA addresses, enter either a five-digit postal code or a
|
|
1118
|
+
# nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
|
|
1119
|
+
# countries except the following, which do not use postal codes: ABW, AGO, ARE,
|
|
1120
|
+
# ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
|
|
1121
|
+
# ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
|
|
1122
|
+
# SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
|
|
1123
|
+
postal_code: nil,
|
|
1124
|
+
# Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
|
|
1125
|
+
# code for the country without the country prefix. For example, `CA` for
|
|
1126
|
+
# California. Optional unless the address is in one of the following countries,
|
|
1127
|
+
# where it is required:
|
|
1128
|
+
#
|
|
1129
|
+
# - `USA`
|
|
1130
|
+
# - `CAN`
|
|
1131
|
+
# - `AUS`
|
|
1132
|
+
# - `CHN`
|
|
1133
|
+
# - `KOR`
|
|
1134
|
+
# - `MEX`
|
|
1135
|
+
# - `MYS`
|
|
1136
|
+
# - `NZL`
|
|
1137
|
+
state: nil
|
|
1033
1138
|
)
|
|
1034
1139
|
end
|
|
1035
1140
|
|
|
@@ -1039,9 +1144,9 @@ module Lithic
|
|
|
1039
1144
|
address1: String,
|
|
1040
1145
|
city: String,
|
|
1041
1146
|
country: String,
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1147
|
+
address2: String,
|
|
1148
|
+
postal_code: T.nilable(String),
|
|
1149
|
+
state: T.nilable(String)
|
|
1045
1150
|
}
|
|
1046
1151
|
)
|
|
1047
1152
|
end
|
|
@@ -144,21 +144,12 @@ module Lithic
|
|
|
144
144
|
sig { returns(String) }
|
|
145
145
|
attr_accessor :city
|
|
146
146
|
|
|
147
|
-
# Valid country code
|
|
148
|
-
#
|
|
147
|
+
# Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
|
|
148
|
+
# format. Supported countries depend on the onboarding workflow used for the
|
|
149
|
+
# account holder.
|
|
149
150
|
sig { returns(String) }
|
|
150
151
|
attr_accessor :country
|
|
151
152
|
|
|
152
|
-
# Valid postal code. Only USA ZIP codes are currently supported, entered as a
|
|
153
|
-
# five-digit ZIP or nine-digit ZIP+4.
|
|
154
|
-
sig { returns(String) }
|
|
155
|
-
attr_accessor :postal_code
|
|
156
|
-
|
|
157
|
-
# Valid state code. Only USA state codes are currently supported, entered in
|
|
158
|
-
# uppercase ISO 3166-2 two-character format.
|
|
159
|
-
sig { returns(String) }
|
|
160
|
-
attr_accessor :state
|
|
161
|
-
|
|
162
153
|
# Unit or apartment number (if applicable).
|
|
163
154
|
sig { returns(T.nilable(String)) }
|
|
164
155
|
attr_reader :address2
|
|
@@ -166,15 +157,40 @@ module Lithic
|
|
|
166
157
|
sig { params(address2: String).void }
|
|
167
158
|
attr_writer :address2
|
|
168
159
|
|
|
160
|
+
# Valid postal code. For USA addresses, enter either a five-digit postal code or a
|
|
161
|
+
# nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
|
|
162
|
+
# countries except the following, which do not use postal codes: ABW, AGO, ARE,
|
|
163
|
+
# ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
|
|
164
|
+
# ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
|
|
165
|
+
# SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
|
|
166
|
+
sig { returns(T.nilable(String)) }
|
|
167
|
+
attr_accessor :postal_code
|
|
168
|
+
|
|
169
|
+
# Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
|
|
170
|
+
# code for the country without the country prefix. For example, `CA` for
|
|
171
|
+
# California. Optional unless the address is in one of the following countries,
|
|
172
|
+
# where it is required:
|
|
173
|
+
#
|
|
174
|
+
# - `USA`
|
|
175
|
+
# - `CAN`
|
|
176
|
+
# - `AUS`
|
|
177
|
+
# - `CHN`
|
|
178
|
+
# - `KOR`
|
|
179
|
+
# - `MEX`
|
|
180
|
+
# - `MYS`
|
|
181
|
+
# - `NZL`
|
|
182
|
+
sig { returns(T.nilable(String)) }
|
|
183
|
+
attr_accessor :state
|
|
184
|
+
|
|
169
185
|
# Individual's current address
|
|
170
186
|
sig do
|
|
171
187
|
params(
|
|
172
188
|
address1: String,
|
|
173
189
|
city: String,
|
|
174
190
|
country: String,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
191
|
+
address2: String,
|
|
192
|
+
postal_code: T.nilable(String),
|
|
193
|
+
state: T.nilable(String)
|
|
178
194
|
).returns(T.attached_class)
|
|
179
195
|
end
|
|
180
196
|
def self.new(
|
|
@@ -182,17 +198,33 @@ module Lithic
|
|
|
182
198
|
address1:,
|
|
183
199
|
# Name of city.
|
|
184
200
|
city:,
|
|
185
|
-
# Valid country code
|
|
186
|
-
#
|
|
201
|
+
# Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
|
|
202
|
+
# format. Supported countries depend on the onboarding workflow used for the
|
|
203
|
+
# account holder.
|
|
187
204
|
country:,
|
|
188
|
-
# Valid postal code. Only USA ZIP codes are currently supported, entered as a
|
|
189
|
-
# five-digit ZIP or nine-digit ZIP+4.
|
|
190
|
-
postal_code:,
|
|
191
|
-
# Valid state code. Only USA state codes are currently supported, entered in
|
|
192
|
-
# uppercase ISO 3166-2 two-character format.
|
|
193
|
-
state:,
|
|
194
205
|
# Unit or apartment number (if applicable).
|
|
195
|
-
address2: nil
|
|
206
|
+
address2: nil,
|
|
207
|
+
# Valid postal code. For USA addresses, enter either a five-digit postal code or a
|
|
208
|
+
# nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
|
|
209
|
+
# countries except the following, which do not use postal codes: ABW, AGO, ARE,
|
|
210
|
+
# ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
|
|
211
|
+
# ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
|
|
212
|
+
# SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
|
|
213
|
+
postal_code: nil,
|
|
214
|
+
# Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
|
|
215
|
+
# code for the country without the country prefix. For example, `CA` for
|
|
216
|
+
# California. Optional unless the address is in one of the following countries,
|
|
217
|
+
# where it is required:
|
|
218
|
+
#
|
|
219
|
+
# - `USA`
|
|
220
|
+
# - `CAN`
|
|
221
|
+
# - `AUS`
|
|
222
|
+
# - `CHN`
|
|
223
|
+
# - `KOR`
|
|
224
|
+
# - `MEX`
|
|
225
|
+
# - `MYS`
|
|
226
|
+
# - `NZL`
|
|
227
|
+
state: nil
|
|
196
228
|
)
|
|
197
229
|
end
|
|
198
230
|
|
|
@@ -202,9 +234,9 @@ module Lithic
|
|
|
202
234
|
address1: String,
|
|
203
235
|
city: String,
|
|
204
236
|
country: String,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
237
|
+
address2: String,
|
|
238
|
+
postal_code: T.nilable(String),
|
|
239
|
+
state: T.nilable(String)
|
|
208
240
|
}
|
|
209
241
|
)
|
|
210
242
|
end
|