lithic 0.21.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.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -10
  4. data/lib/lithic/internal/type/union.rb +21 -7
  5. data/lib/lithic/models/account_holder_create_params.rb +4 -2
  6. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
  7. data/lib/lithic/models/account_holder_update_params.rb +6 -3
  8. data/lib/lithic/models/account_holder_update_response.rb +156 -86
  9. data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
  10. data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
  11. data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
  12. data/lib/lithic/models/address.rb +33 -19
  13. data/lib/lithic/models/address_update.rb +27 -11
  14. data/lib/lithic/models/auth_rules/auth_rule.rb +55 -27
  15. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
  16. data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
  17. data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
  18. data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
  19. data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
  20. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
  21. data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
  22. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
  23. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
  24. data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
  25. data/lib/lithic/models/auth_rules/v2_create_params.rb +203 -45
  26. data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
  27. data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
  28. data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
  29. data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
  30. data/lib/lithic/models/card_authorization.rb +11 -1
  31. data/lib/lithic/models/card_create_params.rb +11 -1
  32. data/lib/lithic/models/card_update_params.rb +12 -1
  33. data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +279 -0
  34. data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
  35. data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
  36. data/lib/lithic/models/financial_accounts/loan_tape.rb +62 -1
  37. data/lib/lithic/models/kyb.rb +4 -2
  38. data/lib/lithic/models/kyb_business_entity.rb +35 -19
  39. data/lib/lithic/models/kyc.rb +2 -1
  40. data/lib/lithic/models/non_pci_card.rb +11 -1
  41. data/lib/lithic/models/parsed_webhook_event.rb +120 -66
  42. data/lib/lithic/models/payment.rb +2 -1
  43. data/lib/lithic/models/transaction.rb +2 -1
  44. data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
  45. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
  46. data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
  47. data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
  48. data/lib/lithic/resources/auth_rules/v2.rb +44 -8
  49. data/lib/lithic/resources/cards.rb +6 -2
  50. data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
  51. data/lib/lithic/resources/financial_accounts/installment_plans.rb +4 -0
  52. data/lib/lithic/resources/transactions.rb +17 -4
  53. data/lib/lithic/resources/webhooks.rb +18 -0
  54. data/lib/lithic/version.rb +1 -1
  55. data/lib/lithic.rb +8 -1
  56. data/rbi/lithic/models/account_holder_create_params.rbi +8 -4
  57. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
  58. data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
  59. data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
  60. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
  61. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
  62. data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
  63. data/rbi/lithic/models/address.rbi +57 -29
  64. data/rbi/lithic/models/address_update.rbi +50 -24
  65. data/rbi/lithic/models/auth_rules/auth_rule.rbi +53 -19
  66. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
  67. data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
  68. data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
  69. data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
  70. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
  71. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
  72. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
  73. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
  74. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
  75. data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
  76. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +325 -50
  77. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
  78. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
  79. data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
  80. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
  81. data/rbi/lithic/models/card_authorization.rbi +12 -0
  82. data/rbi/lithic/models/card_create_params.rbi +15 -0
  83. data/rbi/lithic/models/card_update_params.rbi +17 -0
  84. data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +452 -0
  85. data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
  86. data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
  87. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +119 -0
  88. data/rbi/lithic/models/kyb.rbi +8 -4
  89. data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
  90. data/rbi/lithic/models/kyc.rbi +4 -2
  91. data/rbi/lithic/models/non_pci_card.rbi +12 -0
  92. data/rbi/lithic/models/parsed_webhook_event.rbi +195 -90
  93. data/rbi/lithic/models/payment.rbi +4 -2
  94. data/rbi/lithic/models/transaction.rbi +4 -2
  95. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
  96. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
  97. data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
  98. data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
  99. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
  100. data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
  101. data/rbi/lithic/resources/cards.rbi +11 -0
  102. data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
  103. data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +7 -0
  104. data/rbi/lithic/resources/transactions.rbi +31 -2
  105. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +39 -39
  106. data/sig/lithic/models/account_holder_update_response.rbs +52 -52
  107. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
  108. data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
  109. data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
  110. data/sig/lithic/models/address.rbs +13 -13
  111. data/sig/lithic/models/address_update.rbs +8 -12
  112. data/sig/lithic/models/auth_rules/auth_rule.rbs +8 -7
  113. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
  114. data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
  115. data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
  116. data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
  117. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
  118. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
  119. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
  120. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
  121. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
  122. data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
  123. data/sig/lithic/models/auth_rules/v2_create_params.rbs +86 -16
  124. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
  125. data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
  126. data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
  127. data/sig/lithic/models/card_authorization.rbs +5 -0
  128. data/sig/lithic/models/card_create_params.rbs +7 -0
  129. data/sig/lithic/models/card_update_params.rbs +8 -1
  130. data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +191 -0
  131. data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
  132. data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
  133. data/sig/lithic/models/financial_accounts/loan_tape.rbs +47 -0
  134. data/sig/lithic/models/kyb_business_entity.rbs +13 -13
  135. data/sig/lithic/models/non_pci_card.rbs +5 -0
  136. data/sig/lithic/models/parsed_webhook_event.rbs +39 -39
  137. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +14 -0
  138. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
  139. data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
  140. data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
  141. data/sig/lithic/resources/cards.rbs +2 -0
  142. data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
  143. data/sig/lithic/resources/financial_accounts/installment_plans.rbs +2 -0
  144. data/sig/lithic/resources/transactions.rbs +5 -0
  145. metadata +26 -5
  146. data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
  147. data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
  148. data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
@@ -0,0 +1,106 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ module InstallmentPlans
7
+ # @see Lithic::Resources::FinancialAccounts::InstallmentPlans::Statements#list
8
+ class StatementListParams < Lithic::Internal::Type::BaseModel
9
+ extend Lithic::Internal::Type::RequestParameters::Converter
10
+ include Lithic::Internal::Type::RequestParameters
11
+
12
+ # @!attribute financial_account_token
13
+ # Globally unique identifier for financial account.
14
+ #
15
+ # @return [String]
16
+ required :financial_account_token, String
17
+
18
+ # @!attribute installment_plan_token
19
+ # Globally unique identifier for installment plan.
20
+ #
21
+ # @return [String]
22
+ required :installment_plan_token, String
23
+
24
+ # @!attribute begin_
25
+ # Date string in RFC 3339 format. Only entries created after the specified date
26
+ # will be included.
27
+ #
28
+ # @return [Date, nil]
29
+ optional :begin_, Date
30
+
31
+ # @!attribute end_
32
+ # Date string in RFC 3339 format. Only entries created before the specified date
33
+ # will be included.
34
+ #
35
+ # @return [Date, nil]
36
+ optional :end_, Date
37
+
38
+ # @!attribute ending_before
39
+ # A cursor representing an item's token before which a page of results should end.
40
+ # Used to retrieve the previous page of results before this item.
41
+ #
42
+ # @return [String, nil]
43
+ optional :ending_before, String
44
+
45
+ # @!attribute page_size
46
+ # Page size (for pagination).
47
+ #
48
+ # @return [Integer, nil]
49
+ optional :page_size, Integer
50
+
51
+ # @!attribute starting_after
52
+ # A cursor representing an item's token after which a page of results should
53
+ # begin. Used to retrieve the next page of results after this item.
54
+ #
55
+ # @return [String, nil]
56
+ optional :starting_after, String
57
+
58
+ # @!attribute state
59
+ # Only snapshots in which the plan was in this state will be included.
60
+ #
61
+ # @return [Symbol, Lithic::Models::FinancialAccounts::InstallmentPlans::StatementListParams::State, nil]
62
+ optional :state,
63
+ enum: -> { Lithic::FinancialAccounts::InstallmentPlans::StatementListParams::State },
64
+ nil?: true
65
+
66
+ # @!method initialize(financial_account_token:, installment_plan_token:, begin_: nil, end_: nil, ending_before: nil, page_size: nil, starting_after: nil, state: nil, request_options: {})
67
+ # Some parameter documentations has been truncated, see
68
+ # {Lithic::Models::FinancialAccounts::InstallmentPlans::StatementListParams} for
69
+ # more details.
70
+ #
71
+ # @param financial_account_token [String] Globally unique identifier for financial account.
72
+ #
73
+ # @param installment_plan_token [String] Globally unique identifier for installment plan.
74
+ #
75
+ # @param begin_ [Date] Date string in RFC 3339 format. Only entries created after the specified date wi
76
+ #
77
+ # @param end_ [Date] Date string in RFC 3339 format. Only entries created before the specified date w
78
+ #
79
+ # @param ending_before [String] A cursor representing an item's token before which a page of results should end.
80
+ #
81
+ # @param page_size [Integer] Page size (for pagination).
82
+ #
83
+ # @param starting_after [String] A cursor representing an item's token after which a page of results should begin
84
+ #
85
+ # @param state [Symbol, Lithic::Models::FinancialAccounts::InstallmentPlans::StatementListParams::State, nil] Only snapshots in which the plan was in this state will be included.
86
+ #
87
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
88
+
89
+ # Only snapshots in which the plan was in this state will be included.
90
+ module State
91
+ extend Lithic::Internal::Type::Enum
92
+
93
+ PENDING = :PENDING
94
+ ACTIVE = :ACTIVE
95
+ REBUILD_IN_PROGRESS = :REBUILD_IN_PROGRESS
96
+ FULLY_PAID = :FULLY_PAID
97
+ CANCELLED = :CANCELLED
98
+
99
+ # @!method self.values
100
+ # @return [Array<Symbol>]
101
+ end
102
+ end
103
+ end
104
+ end
105
+ end
106
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module FinancialAccounts
6
+ module InstallmentPlans
7
+ # @see Lithic::Resources::FinancialAccounts::InstallmentPlans::Statements#retrieve
8
+ class StatementRetrieveParams < Lithic::Internal::Type::BaseModel
9
+ extend Lithic::Internal::Type::RequestParameters::Converter
10
+ include Lithic::Internal::Type::RequestParameters
11
+
12
+ # @!attribute financial_account_token
13
+ # Globally unique identifier for financial account.
14
+ #
15
+ # @return [String]
16
+ required :financial_account_token, String
17
+
18
+ # @!attribute installment_plan_token
19
+ # Globally unique identifier for installment plan.
20
+ #
21
+ # @return [String]
22
+ required :installment_plan_token, String
23
+
24
+ # @!attribute statement_token
25
+ # Globally unique identifier for statement.
26
+ #
27
+ # @return [String]
28
+ required :statement_token, String
29
+
30
+ # @!method initialize(financial_account_token:, installment_plan_token:, statement_token:, request_options: {})
31
+ # @param financial_account_token [String] Globally unique identifier for financial account.
32
+ #
33
+ # @param installment_plan_token [String] Globally unique identifier for installment plan.
34
+ #
35
+ # @param statement_token [String] Globally unique identifier for statement.
36
+ #
37
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -93,6 +93,14 @@ module Lithic
93
93
  # @return [Lithic::Models::FinancialAccounts::LoanTape::PaymentAllocation]
94
94
  required :payment_allocation, -> { Lithic::FinancialAccounts::LoanTape::PaymentAllocation }
95
95
 
96
+ # @!attribute payment_only_allocation
97
+ # Allocation of payments only, excluding credits
98
+ #
99
+ # @return [Lithic::Models::FinancialAccounts::LoanTape::PaymentOnlyAllocation, nil]
100
+ required :payment_only_allocation,
101
+ -> { Lithic::FinancialAccounts::LoanTape::PaymentOnlyAllocation },
102
+ nil?: true
103
+
96
104
  # @!attribute period_totals
97
105
  #
98
106
  # @return [Lithic::Models::StatementTotals]
@@ -138,7 +146,7 @@ module Lithic
138
146
  # @return [String, nil]
139
147
  optional :tier, String, nil?: true
140
148
 
141
- # @!method initialize(token:, account_standing:, available_credit:, balances:, created:, credit_limit:, credit_product_token:, date:, day_totals:, ending_balance:, excess_credits:, financial_account_token:, interest_details:, minimum_payment_balance:, payment_allocation:, period_totals:, previous_statement_balance:, starting_balance:, updated:, version:, ytd_totals:, day_of_period: nil, tier: nil)
149
+ # @!method initialize(token:, account_standing:, available_credit:, balances:, created:, credit_limit:, credit_product_token:, date:, day_totals:, ending_balance:, excess_credits:, financial_account_token:, interest_details:, minimum_payment_balance:, payment_allocation:, payment_only_allocation:, period_totals:, previous_statement_balance:, starting_balance:, updated:, version:, ytd_totals:, day_of_period: nil, tier: nil)
142
150
  # Some parameter documentations has been truncated, see
143
151
  # {Lithic::Models::FinancialAccounts::LoanTape} for more details.
144
152
  #
@@ -172,6 +180,8 @@ module Lithic
172
180
  #
173
181
  # @param payment_allocation [Lithic::Models::FinancialAccounts::LoanTape::PaymentAllocation]
174
182
  #
183
+ # @param payment_only_allocation [Lithic::Models::FinancialAccounts::LoanTape::PaymentOnlyAllocation, nil] Allocation of payments only, excluding credits
184
+ #
175
185
  # @param period_totals [Lithic::Models::StatementTotals]
176
186
  #
177
187
  # @param previous_statement_balance [Lithic::Models::FinancialAccounts::LoanTape::PreviousStatementBalance]
@@ -494,6 +504,57 @@ module Lithic
494
504
  # @param principal_details [Lithic::Models::CategoryDetails, nil]
495
505
  end
496
506
 
507
+ # @see Lithic::Models::FinancialAccounts::LoanTape#payment_only_allocation
508
+ class PaymentOnlyAllocation < Lithic::Internal::Type::BaseModel
509
+ # @!attribute fee_details
510
+ #
511
+ # @return [Lithic::Models::CategoryDetails, nil]
512
+ required :fee_details, -> { Lithic::CategoryDetails }, nil?: true
513
+
514
+ # @!attribute fees
515
+ # Amount allocated to fees in cents
516
+ #
517
+ # @return [Integer]
518
+ required :fees, Integer
519
+
520
+ # @!attribute interest
521
+ # Amount allocated to interest in cents
522
+ #
523
+ # @return [Integer]
524
+ required :interest, Integer
525
+
526
+ # @!attribute interest_details
527
+ #
528
+ # @return [Lithic::Models::CategoryDetails, nil]
529
+ required :interest_details, -> { Lithic::CategoryDetails }, nil?: true
530
+
531
+ # @!attribute principal
532
+ # Amount allocated to principal in cents
533
+ #
534
+ # @return [Integer]
535
+ required :principal, Integer
536
+
537
+ # @!attribute principal_details
538
+ #
539
+ # @return [Lithic::Models::CategoryDetails, nil]
540
+ required :principal_details, -> { Lithic::CategoryDetails }, nil?: true
541
+
542
+ # @!method initialize(fee_details:, fees:, interest:, interest_details:, principal:, principal_details:)
543
+ # Allocation of payments only, excluding credits
544
+ #
545
+ # @param fee_details [Lithic::Models::CategoryDetails, nil]
546
+ #
547
+ # @param fees [Integer] Amount allocated to fees in cents
548
+ #
549
+ # @param interest [Integer] Amount allocated to interest in cents
550
+ #
551
+ # @param interest_details [Lithic::Models::CategoryDetails, nil]
552
+ #
553
+ # @param principal [Integer] Amount allocated to principal in cents
554
+ #
555
+ # @param principal_details [Lithic::Models::CategoryDetails, nil]
556
+ end
557
+
497
558
  # @see Lithic::Models::FinancialAccounts::LoanTape#previous_statement_balance
498
559
  class PreviousStatementBalance < Lithic::Internal::Type::BaseModel
499
560
  # @!attribute amount
@@ -113,7 +113,8 @@ module Lithic
113
113
  class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel
114
114
  # @!attribute address
115
115
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
116
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
116
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
117
+ # and KYC workflows.
117
118
  #
118
119
  # @return [Lithic::Models::Address]
119
120
  required :address, -> { Lithic::Address }
@@ -246,7 +247,8 @@ module Lithic
246
247
  class ControlPerson < Lithic::Internal::Type::BaseModel
247
248
  # @!attribute address
248
249
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
249
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
250
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
251
+ # and KYC workflows.
250
252
  #
251
253
  # @return [Lithic::Models::Address]
252
254
  required :address, -> { Lithic::Address }
@@ -75,33 +75,49 @@ module Lithic
75
75
  required :city, String
76
76
 
77
77
  # @!attribute country
78
- # Valid country code. Only USA is currently supported, entered in uppercase ISO
79
- # 3166-1 alpha-3 three-character format.
78
+ # Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character
79
+ # format. Supported countries depend on the onboarding workflow used for the
80
+ # account holder.
80
81
  #
81
82
  # @return [String]
82
83
  required :country, String
83
84
 
85
+ # @!attribute address2
86
+ # Unit or apartment number (if applicable).
87
+ #
88
+ # @return [String, nil]
89
+ optional :address2, String
90
+
84
91
  # @!attribute postal_code
85
- # Valid postal code. Only USA ZIP codes are currently supported, entered as a
86
- # five-digit ZIP or nine-digit ZIP+4.
92
+ # Valid postal code. For USA addresses, enter either a five-digit postal code or a
93
+ # nine-digit postal code (ZIP+4) using the format 12345-1234. Required for all
94
+ # countries except the following, which do not use postal codes: ABW, AGO, ARE,
95
+ # ATG, BDI, BEN, BFA, BHS, BLZ, BOL, BWA, CIV, CMR, COD, COG, COK, COM, DJI, DMA,
96
+ # ERI, FJI, GAB, GMB, GNQ, GRD, GUY, HKG, KIR, MAC, MLI, MRT, NIU, NRU, QAT, RWA,
97
+ # SLB, SLE, SSD, SUR, SXM, SYC, TGO, TKL, TLS, TON, TUV, UGA, VUT, YEM, ZWE
87
98
  #
88
- # @return [String]
89
- required :postal_code, String
99
+ # @return [String, nil]
100
+ optional :postal_code, String, nil?: true
90
101
 
91
102
  # @!attribute state
92
- # Valid state code. Only USA state codes are currently supported, entered in
93
- # uppercase ISO 3166-2 two-character format.
103
+ # Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
104
+ # code for the country without the country prefix. For example, `CA` for
105
+ # California. Optional unless the address is in one of the following countries,
106
+ # where it is required:
94
107
  #
95
- # @return [String]
96
- required :state, String
97
-
98
- # @!attribute address2
99
- # Unit or apartment number (if applicable).
108
+ # - `USA`
109
+ # - `CAN`
110
+ # - `AUS`
111
+ # - `CHN`
112
+ # - `KOR`
113
+ # - `MEX`
114
+ # - `MYS`
115
+ # - `NZL`
100
116
  #
101
117
  # @return [String, nil]
102
- optional :address2, String
118
+ optional :state, String, nil?: true
103
119
 
104
- # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
120
+ # @!method initialize(address1:, city:, country:, address2: nil, postal_code: nil, state: nil)
105
121
  # Some parameter documentations has been truncated, see
106
122
  # {Lithic::Models::KYBBusinessEntity::Address} for more details.
107
123
  #
@@ -112,13 +128,13 @@ module Lithic
112
128
  #
113
129
  # @param city [String] Name of city.
114
130
  #
115
- # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
131
+ # @param country [String] Valid country code, entered in uppercase ISO 3166-1 alpha-3 three-character form
116
132
  #
117
- # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
133
+ # @param address2 [String] Unit or apartment number (if applicable).
118
134
  #
119
- # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
135
+ # @param postal_code [String, nil] Valid postal code. For USA addresses, enter either a five-digit postal code or a
120
136
  #
121
- # @param address2 [String] Unit or apartment number (if applicable).
137
+ # @param state [String, nil] Valid state, province, or subdivision code, entered as the uppercase ISO 3166-2
122
138
  end
123
139
  end
124
140
  end
@@ -58,7 +58,8 @@ module Lithic
58
58
  class Individual < Lithic::Internal::Type::BaseModel
59
59
  # @!attribute address
60
60
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
61
- # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
61
+ # acceptable; APO/FPO are acceptable. Only USA addresses are supported for the KYB
62
+ # and KYC workflows.
62
63
  #
63
64
  # @return [Lithic::Models::Address]
64
65
  required :address, -> { Lithic::Address }
@@ -91,6 +91,14 @@ module Lithic
91
91
  # @return [Symbol, Lithic::Models::NonPCICard::State]
92
92
  required :state, enum: -> { Lithic::NonPCICard::State }
93
93
 
94
+ # @!attribute tags
95
+ # Key-value pairs for tagging resources. Tags allow you to associate arbitrary
96
+ # metadata with a resource for your own purposes. A resource can have at most 50
97
+ # tags, with keys up to 40 characters and values up to 500 characters
98
+ #
99
+ # @return [Hash{Symbol=>String}]
100
+ required :tags, Lithic::Internal::Type::HashOf[String]
101
+
94
102
  # @!attribute type
95
103
  # Card types: _ `VIRTUAL` - Card will authorize at any merchant and can be added
96
104
  # to a digital wallet like Apple Pay or Google Pay (if the card program is digital
@@ -223,7 +231,7 @@ module Lithic
223
231
  # @return [Symbol, Lithic::Models::NonPCICard::Substatus, nil]
224
232
  optional :substatus, enum: -> { Lithic::NonPCICard::Substatus }, nil?: true
225
233
 
226
- # @!method initialize(token:, account_token:, card_program_token:, created:, funding:, last_four:, pin_status:, spend_limit:, spend_limit_duration:, state:, type:, auth_rule_tokens: nil, bulk_order_token: nil, cardholder_currency: nil, comment: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, hostname: nil, memo: nil, network_program_token: nil, pending_commands: nil, product_id: nil, replacement_for: nil, substatus: nil)
234
+ # @!method initialize(token:, account_token:, card_program_token:, created:, funding:, last_four:, pin_status:, spend_limit:, spend_limit_duration:, state:, tags:, type:, auth_rule_tokens: nil, bulk_order_token: nil, cardholder_currency: nil, comment: nil, digital_card_art_token: nil, exp_month: nil, exp_year: nil, hostname: nil, memo: nil, network_program_token: nil, pending_commands: nil, product_id: nil, replacement_for: nil, substatus: nil)
227
235
  # Some parameter documentations has been truncated, see
228
236
  # {Lithic::Models::NonPCICard} for more details.
229
237
  #
@@ -250,6 +258,8 @@ module Lithic
250
258
  # @param state [Symbol, Lithic::Models::NonPCICard::State] Card state values: \* `CLOSED` - Card will no longer approve authorizations.
251
259
  # Clos
252
260
  #
261
+ # @param tags [Hash{Symbol=>String}] Key-value pairs for tagging resources. Tags allow you to associate arbitrary met
262
+ #
253
263
  # @param type [Symbol, Lithic::Models::NonPCICard::Type] Card types: \* `VIRTUAL` - Card will authorize at any merchant and can be added
254
264
  # t
255
265
  #