lithic 0.4.0 → 0.6.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 (149) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +59 -0
  3. data/README.md +10 -1
  4. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
  5. data/lib/lithic/internal/util.rb +1 -1
  6. data/lib/lithic/models/account_holder.rb +14 -5
  7. data/lib/lithic/models/account_holder_create_params.rb +10 -1
  8. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -0
  9. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +14 -5
  10. data/lib/lithic/models/account_holder_update_params.rb +10 -1
  11. data/lib/lithic/models/account_holder_update_response.rb +14 -5
  12. data/lib/lithic/models/account_holder_updated_webhook_event.rb +10 -1
  13. data/lib/lithic/models/account_holders/account_holder_entity.rb +183 -0
  14. data/lib/lithic/models/account_holders/entity_create_params.rb +159 -0
  15. data/lib/lithic/models/account_holders/entity_create_response.rb +113 -0
  16. data/lib/lithic/models/account_holders/entity_delete_params.rb +22 -0
  17. data/lib/lithic/models/auth_rules/auth_rule.rb +6 -2
  18. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -3
  19. data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +3 -0
  20. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +47 -21
  21. data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -2
  22. data/lib/lithic/models/auth_rules/v2_draft_params.rb +1 -0
  23. data/lib/lithic/models/auth_rules/v2_list_results_params.rb +70 -0
  24. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +740 -0
  25. data/lib/lithic/models/book_transfer_create_params.rb +9 -1
  26. data/lib/lithic/models/card_authorization_approval_request_webhook_event.rb +178 -25
  27. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +9 -9
  28. data/lib/lithic/models/financial_account.rb +1 -0
  29. data/lib/lithic/models/financial_account_update_status_params.rb +1 -0
  30. data/lib/lithic/models/financial_accounts/category_tier.rb +28 -0
  31. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +50 -0
  32. data/lib/lithic/models/financial_accounts/interest_tier_schedule_create_params.rb +16 -0
  33. data/lib/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rb +22 -0
  34. data/lib/lithic/models/financial_accounts/interest_tier_schedule_list_params.rb +40 -0
  35. data/lib/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rb +22 -0
  36. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +44 -0
  37. data/lib/lithic/models/financial_accounts/loan_tape.rb +1 -0
  38. data/lib/lithic/models/financial_accounts/loan_tape_configuration.rb +63 -0
  39. data/lib/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rb +16 -0
  40. data/lib/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rb +36 -0
  41. data/lib/lithic/models/financial_accounts/statement.rb +1 -0
  42. data/lib/lithic/models/kyb.rb +10 -1
  43. data/lib/lithic/models/parsed_webhook_event.rb +10 -1
  44. data/lib/lithic/models/{digital_wallet_token_metadata.rb → token_metadata.rb} +18 -19
  45. data/lib/lithic/models/tokenization_approval_request_webhook_event.rb +9 -9
  46. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +9 -9
  47. data/lib/lithic/models.rb +4 -2
  48. data/lib/lithic/resources/account_holders/entities.rb +89 -0
  49. data/lib/lithic/resources/account_holders.rb +10 -2
  50. data/lib/lithic/resources/auth_rules/v2.rb +42 -0
  51. data/lib/lithic/resources/book_transfers.rb +3 -1
  52. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +205 -0
  53. data/lib/lithic/resources/financial_accounts/loan_tape_configuration.rb +36 -0
  54. data/lib/lithic/resources/financial_accounts.rb +9 -0
  55. data/lib/lithic/version.rb +1 -1
  56. data/lib/lithic.rb +20 -1
  57. data/rbi/lithic/internal/util.rbi +1 -1
  58. data/rbi/lithic/models/account_holder.rbi +19 -6
  59. data/rbi/lithic/models/account_holder_create_params.rbi +13 -0
  60. data/rbi/lithic/models/account_holder_simulate_enrollment_review_params.rbi +5 -0
  61. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +19 -6
  62. data/rbi/lithic/models/account_holder_update_params.rbi +13 -0
  63. data/rbi/lithic/models/account_holder_update_response.rbi +19 -6
  64. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +13 -0
  65. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +296 -0
  66. data/rbi/lithic/models/account_holders/entity_create_params.rbi +242 -0
  67. data/rbi/lithic/models/account_holders/entity_create_response.rbi +292 -0
  68. data/rbi/lithic/models/account_holders/entity_delete_params.rbi +43 -0
  69. data/rbi/lithic/models/auth_rules/auth_rule.rbi +6 -3
  70. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +3 -3
  71. data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +1 -0
  72. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +69 -30
  73. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +6 -3
  74. data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +112 -0
  75. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +1826 -0
  76. data/rbi/lithic/models/book_transfer_create_params.rbi +11 -0
  77. data/rbi/lithic/models/card_authorization_approval_request_webhook_event.rbi +337 -36
  78. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +15 -17
  79. data/rbi/lithic/models/financial_account.rbi +5 -0
  80. data/rbi/lithic/models/financial_account_update_status_params.rbi +5 -0
  81. data/rbi/lithic/models/financial_accounts/category_tier.rbi +45 -0
  82. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +75 -0
  83. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbi +32 -0
  84. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbi +43 -0
  85. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbi +73 -0
  86. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbi +43 -0
  87. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +70 -0
  88. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +5 -0
  89. data/rbi/lithic/models/financial_accounts/loan_tape_configuration.rbi +99 -0
  90. data/rbi/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbi +32 -0
  91. data/rbi/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbi +65 -0
  92. data/rbi/lithic/models/financial_accounts/statement.rbi +5 -0
  93. data/rbi/lithic/models/kyb.rbi +13 -0
  94. data/rbi/lithic/models/parsed_webhook_event.rbi +13 -0
  95. data/rbi/lithic/models/{digital_wallet_token_metadata.rbi → token_metadata.rbi} +34 -41
  96. data/rbi/lithic/models/tokenization_approval_request_webhook_event.rbi +11 -17
  97. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +15 -17
  98. data/rbi/lithic/models.rbi +4 -2
  99. data/rbi/lithic/resources/account_holders/entities.rbi +80 -0
  100. data/rbi/lithic/resources/account_holders.rbi +11 -0
  101. data/rbi/lithic/resources/auth_rules/v2.rbi +44 -1
  102. data/rbi/lithic/resources/book_transfers.rbi +3 -0
  103. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +156 -0
  104. data/rbi/lithic/resources/financial_accounts/loan_tape_configuration.rbi +30 -0
  105. data/rbi/lithic/resources/financial_accounts.rbi +10 -0
  106. data/sig/lithic/models/account_holder.rbs +7 -0
  107. data/sig/lithic/models/account_holder_create_params.rbs +7 -0
  108. data/sig/lithic/models/account_holder_simulate_enrollment_review_params.rbs +2 -1
  109. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +7 -0
  110. data/sig/lithic/models/account_holder_update_params.rbs +7 -0
  111. data/sig/lithic/models/account_holder_update_response.rbs +7 -0
  112. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +7 -0
  113. data/sig/lithic/models/account_holders/account_holder_entity.rbs +137 -0
  114. data/sig/lithic/models/account_holders/entity_create_params.rbs +118 -0
  115. data/sig/lithic/models/account_holders/entity_create_response.rbs +117 -0
  116. data/sig/lithic/models/account_holders/entity_delete_params.rbs +26 -0
  117. data/sig/lithic/models/auth_rules/v2_list_results_params.rbs +65 -0
  118. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +752 -0
  119. data/sig/lithic/models/book_transfer_create_params.rbs +7 -0
  120. data/sig/lithic/models/card_authorization_approval_request_webhook_event.rbs +96 -0
  121. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +5 -9
  122. data/sig/lithic/models/financial_account.rbs +2 -0
  123. data/sig/lithic/models/financial_account_update_status_params.rbs +2 -0
  124. data/sig/lithic/models/financial_accounts/category_tier.rbs +21 -0
  125. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +41 -0
  126. data/sig/lithic/models/financial_accounts/interest_tier_schedule_create_params.rbs +17 -0
  127. data/sig/lithic/models/financial_accounts/interest_tier_schedule_delete_params.rbs +26 -0
  128. data/sig/lithic/models/financial_accounts/interest_tier_schedule_list_params.rbs +40 -0
  129. data/sig/lithic/models/financial_accounts/interest_tier_schedule_retrieve_params.rbs +26 -0
  130. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +38 -0
  131. data/sig/lithic/models/financial_accounts/loan_tape.rbs +2 -0
  132. data/sig/lithic/models/financial_accounts/loan_tape_configuration.rbs +60 -0
  133. data/sig/lithic/models/financial_accounts/loan_tape_configuration_retrieve_params.rbs +17 -0
  134. data/sig/lithic/models/financial_accounts/loan_tape_rebuild_configuration.rbs +32 -0
  135. data/sig/lithic/models/financial_accounts/statement.rbs +2 -0
  136. data/sig/lithic/models/kyb.rbs +7 -0
  137. data/sig/lithic/models/parsed_webhook_event.rbs +7 -0
  138. data/sig/lithic/models/{digital_wallet_token_metadata.rbs → token_metadata.rbs} +19 -17
  139. data/sig/lithic/models/tokenization_approval_request_webhook_event.rbs +5 -9
  140. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +5 -9
  141. data/sig/lithic/models.rbs +4 -2
  142. data/sig/lithic/resources/account_holders/entities.rbs +28 -0
  143. data/sig/lithic/resources/account_holders.rbs +4 -0
  144. data/sig/lithic/resources/auth_rules/v2.rbs +10 -0
  145. data/sig/lithic/resources/book_transfers.rbs +1 -0
  146. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +46 -0
  147. data/sig/lithic/resources/financial_accounts/loan_tape_configuration.rbs +14 -0
  148. data/sig/lithic/resources/financial_accounts.rbs +4 -0
  149. metadata +62 -5
@@ -0,0 +1,159 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AccountHolders
6
+ # @see Lithic::Resources::AccountHolders::Entities#create
7
+ class EntityCreateParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!attribute address
12
+ # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
13
+ # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
14
+ #
15
+ # @return [Lithic::Models::AccountHolders::EntityCreateParams::Address]
16
+ required :address, -> { Lithic::AccountHolders::EntityCreateParams::Address }
17
+
18
+ # @!attribute dob
19
+ # Individual's date of birth, as an RFC 3339 date.
20
+ #
21
+ # @return [String]
22
+ required :dob, String
23
+
24
+ # @!attribute email
25
+ # Individual's email address. If utilizing Lithic for chargeback processing, this
26
+ # customer email address may be used to communicate dispute status and resolution.
27
+ #
28
+ # @return [String]
29
+ required :email, String
30
+
31
+ # @!attribute first_name
32
+ # Individual's first name, as it appears on government-issued identity documents.
33
+ #
34
+ # @return [String]
35
+ required :first_name, String
36
+
37
+ # @!attribute government_id
38
+ # Government-issued identification number (required for identity verification and
39
+ # compliance with banking regulations). Social Security Numbers (SSN) and
40
+ # Individual Taxpayer Identification Numbers (ITIN) are currently supported,
41
+ # entered as full nine-digits, with or without hyphens
42
+ #
43
+ # @return [String]
44
+ required :government_id, String
45
+
46
+ # @!attribute last_name
47
+ # Individual's last name, as it appears on government-issued identity documents.
48
+ #
49
+ # @return [String]
50
+ required :last_name, String
51
+
52
+ # @!attribute phone_number
53
+ # Individual's phone number, entered in E.164 format.
54
+ #
55
+ # @return [String]
56
+ required :phone_number, String
57
+
58
+ # @!attribute type
59
+ # The type of entity to create on the account holder
60
+ #
61
+ # @return [Symbol, Lithic::Models::AccountHolders::EntityCreateParams::Type]
62
+ required :type, enum: -> { Lithic::AccountHolders::EntityCreateParams::Type }
63
+
64
+ # @!method initialize(address:, dob:, email:, first_name:, government_id:, last_name:, phone_number:, type:, request_options: {})
65
+ # Some parameter documentations has been truncated, see
66
+ # {Lithic::Models::AccountHolders::EntityCreateParams} for more details.
67
+ #
68
+ # @param address [Lithic::Models::AccountHolders::EntityCreateParams::Address] Individual's current address - PO boxes, UPS drops, and FedEx drops are not acce
69
+ #
70
+ # @param dob [String] Individual's date of birth, as an RFC 3339 date.
71
+ #
72
+ # @param email [String] Individual's email address. If utilizing Lithic for chargeback processing, this
73
+ #
74
+ # @param first_name [String] Individual's first name, as it appears on government-issued identity documents.
75
+ #
76
+ # @param government_id [String] Government-issued identification number (required for identity verification and
77
+ #
78
+ # @param last_name [String] Individual's last name, as it appears on government-issued identity documents.
79
+ #
80
+ # @param phone_number [String] Individual's phone number, entered in E.164 format.
81
+ #
82
+ # @param type [Symbol, Lithic::Models::AccountHolders::EntityCreateParams::Type] The type of entity to create on the account holder
83
+ #
84
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
85
+
86
+ class Address < Lithic::Internal::Type::BaseModel
87
+ # @!attribute address1
88
+ # Valid deliverable address (no PO boxes).
89
+ #
90
+ # @return [String]
91
+ required :address1, String
92
+
93
+ # @!attribute city
94
+ # Name of city.
95
+ #
96
+ # @return [String]
97
+ required :city, String
98
+
99
+ # @!attribute country
100
+ # Valid country code. Only USA is currently supported, entered in uppercase ISO
101
+ # 3166-1 alpha-3 three-character format.
102
+ #
103
+ # @return [String]
104
+ required :country, String
105
+
106
+ # @!attribute postal_code
107
+ # Valid postal code. Only USA ZIP codes are currently supported, entered as a
108
+ # five-digit ZIP or nine-digit ZIP+4.
109
+ #
110
+ # @return [String]
111
+ required :postal_code, String
112
+
113
+ # @!attribute state
114
+ # Valid state code. Only USA state codes are currently supported, entered in
115
+ # uppercase ISO 3166-2 two-character format.
116
+ #
117
+ # @return [String]
118
+ required :state, String
119
+
120
+ # @!attribute address2
121
+ # Unit or apartment number (if applicable).
122
+ #
123
+ # @return [String, nil]
124
+ optional :address2, String
125
+
126
+ # @!method initialize(address1:, city:, country:, postal_code:, state:, address2: nil)
127
+ # Some parameter documentations has been truncated, see
128
+ # {Lithic::Models::AccountHolders::EntityCreateParams::Address} for more details.
129
+ #
130
+ # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
131
+ # acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
132
+ #
133
+ # @param address1 [String] Valid deliverable address (no PO boxes).
134
+ #
135
+ # @param city [String] Name of city.
136
+ #
137
+ # @param country [String] Valid country code. Only USA is currently supported, entered in uppercase ISO 31
138
+ #
139
+ # @param postal_code [String] Valid postal code. Only USA ZIP codes are currently supported, entered as a five
140
+ #
141
+ # @param state [String] Valid state code. Only USA state codes are currently supported, entered in upper
142
+ #
143
+ # @param address2 [String] Unit or apartment number (if applicable).
144
+ end
145
+
146
+ # The type of entity to create on the account holder
147
+ module Type
148
+ extend Lithic::Internal::Type::Enum
149
+
150
+ BENEFICIAL_OWNER_INDIVIDUAL = :BENEFICIAL_OWNER_INDIVIDUAL
151
+ CONTROL_PERSON = :CONTROL_PERSON
152
+
153
+ # @!method self.values
154
+ # @return [Array<Symbol>]
155
+ end
156
+ end
157
+ end
158
+ end
159
+ end
@@ -0,0 +1,113 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AccountHolders
6
+ # @see Lithic::Resources::AccountHolders::Entities#create
7
+ class EntityCreateResponse < Lithic::Internal::Type::BaseModel
8
+ # @!attribute token
9
+ # Globally unique identifier for the entity
10
+ #
11
+ # @return [String]
12
+ required :token, String
13
+
14
+ # @!attribute account_holder_token
15
+ # Globally unique identifier for the account holder
16
+ #
17
+ # @return [String]
18
+ required :account_holder_token, String
19
+
20
+ # @!attribute created
21
+ # Timestamp of when the entity was created
22
+ #
23
+ # @return [Time]
24
+ required :created, Time
25
+
26
+ # @!attribute required_documents
27
+ # A list of documents required for the entity to be approved
28
+ #
29
+ # @return [Array<Lithic::Models::RequiredDocument>]
30
+ required :required_documents, -> { Lithic::Internal::Type::ArrayOf[Lithic::RequiredDocument] }
31
+
32
+ # @!attribute status
33
+ # Entity verification status
34
+ #
35
+ # @return [Symbol, Lithic::Models::AccountHolders::EntityCreateResponse::Status]
36
+ required :status, enum: -> { Lithic::Models::AccountHolders::EntityCreateResponse::Status }
37
+
38
+ # @!attribute status_reasons
39
+ # Reason for the evaluation status
40
+ #
41
+ # @return [Array<Symbol, Lithic::Models::AccountHolders::EntityCreateResponse::StatusReason>]
42
+ required :status_reasons,
43
+ -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::Models::AccountHolders::EntityCreateResponse::StatusReason] }
44
+
45
+ # @!method initialize(token:, account_holder_token:, created:, required_documents:, status:, status_reasons:)
46
+ # Response body for creating a new beneficial owner or replacing the control
47
+ # person entity on an existing KYB account holder.
48
+ #
49
+ # @param token [String] Globally unique identifier for the entity
50
+ #
51
+ # @param account_holder_token [String] Globally unique identifier for the account holder
52
+ #
53
+ # @param created [Time] Timestamp of when the entity was created
54
+ #
55
+ # @param required_documents [Array<Lithic::Models::RequiredDocument>] A list of documents required for the entity to be approved
56
+ #
57
+ # @param status [Symbol, Lithic::Models::AccountHolders::EntityCreateResponse::Status] Entity verification status
58
+ #
59
+ # @param status_reasons [Array<Symbol, Lithic::Models::AccountHolders::EntityCreateResponse::StatusReason>] Reason for the evaluation status
60
+
61
+ # Entity verification status
62
+ #
63
+ # @see Lithic::Models::AccountHolders::EntityCreateResponse#status
64
+ module Status
65
+ extend Lithic::Internal::Type::Enum
66
+
67
+ ACCEPTED = :ACCEPTED
68
+ INACTIVE = :INACTIVE
69
+ PENDING_REVIEW = :PENDING_REVIEW
70
+ REJECTED = :REJECTED
71
+
72
+ # @!method self.values
73
+ # @return [Array<Symbol>]
74
+ end
75
+
76
+ # Status Reasons for KYC/KYB enrollment states
77
+ module StatusReason
78
+ extend Lithic::Internal::Type::Enum
79
+
80
+ ADDRESS_VERIFICATION_FAILURE = :ADDRESS_VERIFICATION_FAILURE
81
+ AGE_THRESHOLD_FAILURE = :AGE_THRESHOLD_FAILURE
82
+ COMPLETE_VERIFICATION_FAILURE = :COMPLETE_VERIFICATION_FAILURE
83
+ DOB_VERIFICATION_FAILURE = :DOB_VERIFICATION_FAILURE
84
+ ID_VERIFICATION_FAILURE = :ID_VERIFICATION_FAILURE
85
+ MAX_DOCUMENT_ATTEMPTS = :MAX_DOCUMENT_ATTEMPTS
86
+ MAX_RESUBMISSION_ATTEMPTS = :MAX_RESUBMISSION_ATTEMPTS
87
+ NAME_VERIFICATION_FAILURE = :NAME_VERIFICATION_FAILURE
88
+ OTHER_VERIFICATION_FAILURE = :OTHER_VERIFICATION_FAILURE
89
+ RISK_THRESHOLD_FAILURE = :RISK_THRESHOLD_FAILURE
90
+ WATCHLIST_ALERT_FAILURE = :WATCHLIST_ALERT_FAILURE
91
+ PRIMARY_BUSINESS_ENTITY_ID_VERIFICATION_FAILURE = :PRIMARY_BUSINESS_ENTITY_ID_VERIFICATION_FAILURE
92
+ PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE =
93
+ :PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE
94
+ PRIMARY_BUSINESS_ENTITY_NAME_VERIFICATION_FAILURE = :PRIMARY_BUSINESS_ENTITY_NAME_VERIFICATION_FAILURE
95
+ PRIMARY_BUSINESS_ENTITY_BUSINESS_OFFICERS_NOT_MATCHED =
96
+ :PRIMARY_BUSINESS_ENTITY_BUSINESS_OFFICERS_NOT_MATCHED
97
+ PRIMARY_BUSINESS_ENTITY_SOS_FILING_INACTIVE = :PRIMARY_BUSINESS_ENTITY_SOS_FILING_INACTIVE
98
+ PRIMARY_BUSINESS_ENTITY_SOS_NOT_MATCHED = :PRIMARY_BUSINESS_ENTITY_SOS_NOT_MATCHED
99
+ PRIMARY_BUSINESS_ENTITY_CMRA_FAILURE = :PRIMARY_BUSINESS_ENTITY_CMRA_FAILURE
100
+ PRIMARY_BUSINESS_ENTITY_WATCHLIST_FAILURE = :PRIMARY_BUSINESS_ENTITY_WATCHLIST_FAILURE
101
+ PRIMARY_BUSINESS_ENTITY_REGISTERED_AGENT_FAILURE = :PRIMARY_BUSINESS_ENTITY_REGISTERED_AGENT_FAILURE
102
+ CONTROL_PERSON_BLOCKLIST_ALERT_FAILURE = :CONTROL_PERSON_BLOCKLIST_ALERT_FAILURE
103
+ CONTROL_PERSON_ID_VERIFICATION_FAILURE = :CONTROL_PERSON_ID_VERIFICATION_FAILURE
104
+ CONTROL_PERSON_DOB_VERIFICATION_FAILURE = :CONTROL_PERSON_DOB_VERIFICATION_FAILURE
105
+ CONTROL_PERSON_NAME_VERIFICATION_FAILURE = :CONTROL_PERSON_NAME_VERIFICATION_FAILURE
106
+
107
+ # @!method self.values
108
+ # @return [Array<Symbol>]
109
+ end
110
+ end
111
+ end
112
+ end
113
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AccountHolders
6
+ # @see Lithic::Resources::AccountHolders::Entities#delete
7
+ class EntityDeleteParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!attribute account_holder_token
12
+ #
13
+ # @return [String]
14
+ required :account_holder_token, String
15
+
16
+ # @!method initialize(account_holder_token:, request_options: {})
17
+ # @param account_holder_token [String]
18
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
19
+ end
20
+ end
21
+ end
22
+ end
@@ -76,7 +76,8 @@ module Lithic
76
76
  # several event streams, the effective one is defined by the separate
77
77
  # `event_stream` field.
78
78
  #
79
- # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
79
+ # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
80
+ # AUTHORIZATION event stream.
80
81
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
81
82
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
82
83
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -152,6 +153,7 @@ module Lithic
152
153
  module Parameters
153
154
  extend Lithic::Internal::Type::Union
154
155
 
156
+ # Deprecated: Use CONDITIONAL_ACTION instead.
155
157
  variant -> { Lithic::AuthRules::ConditionalBlockParameters }
156
158
 
157
159
  variant -> { Lithic::AuthRules::VelocityLimitParams }
@@ -202,6 +204,7 @@ module Lithic
202
204
  module Parameters
203
205
  extend Lithic::Internal::Type::Union
204
206
 
207
+ # Deprecated: Use CONDITIONAL_ACTION instead.
205
208
  variant -> { Lithic::AuthRules::ConditionalBlockParameters }
206
209
 
207
210
  variant -> { Lithic::AuthRules::VelocityLimitParams }
@@ -239,7 +242,8 @@ module Lithic
239
242
  # several event streams, the effective one is defined by the separate
240
243
  # `event_stream` field.
241
244
  #
242
- # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
245
+ # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
246
+ # AUTHORIZATION event stream.
243
247
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
244
248
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
245
249
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -5,7 +5,7 @@ module Lithic
5
5
  module AuthRules
6
6
  class ConditionalACHActionParameters < Lithic::Internal::Type::BaseModel
7
7
  # @!attribute action
8
- # The action to take if the conditions are met
8
+ # The action to take if the conditions are met.
9
9
  #
10
10
  # @return [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction]
11
11
  required :action, union: -> { Lithic::AuthRules::ConditionalACHActionParameters::Action }
@@ -17,11 +17,11 @@ module Lithic
17
17
  -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalACHActionParameters::Condition] }
18
18
 
19
19
  # @!method initialize(action:, conditions:)
20
- # @param action [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] The action to take if the conditions are met
20
+ # @param action [Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ApproveAction, Lithic::Models::AuthRules::ConditionalACHActionParameters::Action::ReturnAction] The action to take if the conditions are met.
21
21
  #
22
22
  # @param conditions [Array<Lithic::Models::AuthRules::ConditionalACHActionParameters::Condition>]
23
23
 
24
- # The action to take if the conditions are met
24
+ # The action to take if the conditions are met.
25
25
  #
26
26
  # @see Lithic::Models::AuthRules::ConditionalACHActionParameters#action
27
27
  module Action
@@ -3,6 +3,7 @@
3
3
  module Lithic
4
4
  module Models
5
5
  module AuthRules
6
+ # @deprecated
6
7
  class ConditionalBlockParameters < Lithic::Internal::Type::BaseModel
7
8
  # @!attribute conditions
8
9
  #
@@ -10,6 +11,8 @@ module Lithic
10
11
  required :conditions, -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::AuthRuleCondition] }
11
12
 
12
13
  # @!method initialize(conditions:)
14
+ # Deprecated: Use CONDITIONAL_ACTION instead.
15
+ #
13
16
  # @param conditions [Array<Lithic::Models::AuthRules::AuthRuleCondition>]
14
17
  end
15
18
  end
@@ -5,7 +5,7 @@ module Lithic
5
5
  module AuthRules
6
6
  class ConditionalTokenizationActionParameters < Lithic::Internal::Type::BaseModel
7
7
  # @!attribute action
8
- # The action to take if the conditions are met
8
+ # The action to take if the conditions are met.
9
9
  #
10
10
  # @return [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction]
11
11
  required :action, union: -> { Lithic::AuthRules::ConditionalTokenizationActionParameters::Action }
@@ -17,11 +17,11 @@ module Lithic
17
17
  -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::ConditionalTokenizationActionParameters::Condition] }
18
18
 
19
19
  # @!method initialize(action:, conditions:)
20
- # @param action [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction] The action to take if the conditions are met
20
+ # @param action [Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::DeclineAction, Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Action::RequireTfaAction] The action to take if the conditions are met.
21
21
  #
22
22
  # @param conditions [Array<Lithic::Models::AuthRules::ConditionalTokenizationActionParameters::Condition>]
23
23
 
24
- # The action to take if the conditions are met
24
+ # The action to take if the conditions are met.
25
25
  #
26
26
  # @see Lithic::Models::AuthRules::ConditionalTokenizationActionParameters#action
27
27
  module Action
@@ -159,8 +159,10 @@ module Lithic
159
159
  #
160
160
  # - `TIMESTAMP`: The timestamp of the tokenization request in ISO 8601 format.
161
161
  # - `TOKENIZATION_CHANNEL`: The channel through which the tokenization request was
162
- # initiated (e.g., DIGITAL_WALLET, ECOMMERCE).
163
- # - `TOKENIZATION_SOURCE`: The source of the tokenization request.
162
+ # initiated. Valid values are `DIGITAL_WALLET`, `MERCHANT`.
163
+ # - `TOKENIZATION_SOURCE`: The source of the tokenization request. Valid values
164
+ # are `ACCOUNT_ON_FILE`, `MANUAL_PROVISION`, `PUSH_PROVISION`, `CHIP_DIP`,
165
+ # `CONTACTLESS_TAP`, `TOKEN`, `UNKNOWN`.
164
166
  # - `TOKEN_REQUESTOR_NAME`: The name of the entity requesting the token. Valid
165
167
  # values are `ALT_ID`, `AMAZON_ONE`, `AMERICAN_EXPRESS_TOKEN_SERVICE`,
166
168
  # `ANDROID_PAY`, `APPLE_PAY`, `FACEBOOK`, `FITBIT_PAY`, `GARMIN_PAY`,
@@ -176,13 +178,24 @@ module Lithic
176
178
  # provider. Valid values include APPROVE, DECLINE,
177
179
  # REQUIRE_ADDITIONAL_AUTHENTICATION.
178
180
  # - `WALLET_RECOMMENDATION_REASONS`: List of reasons provided by the digital
179
- # wallet provider for the recommended decision. Valid values are
180
- # `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`, `ACCOUNT_TOO_NEW`,
181
- # `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
182
- # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`, `LOW_ACCOUNT_SCORE`,
183
- # `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`, `SUSPICIOUS_ACTIVITY`,
184
- # `TOO_MANY_DIFFERENT_CARDHOLDERS`, `TOO_MANY_RECENT_ATTEMPTS`,
185
- # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`.
181
+ # wallet provider for the recommended decision. Valid values are:
182
+ # - Common: `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`,
183
+ # `ACCOUNT_TOO_NEW`, `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
184
+ # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`,
185
+ # `LOW_ACCOUNT_SCORE`, `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`,
186
+ # `SUSPICIOUS_ACTIVITY`, `TOO_MANY_DIFFERENT_CARDHOLDERS`,
187
+ # `TOO_MANY_RECENT_ATTEMPTS`, `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`
188
+ # - Visa only: `ACCOUNT_DATA_RECENTLY_CHANGED`, `ACCOUNT_PAN_PAIRING_TOO_NEW`,
189
+ # `LOW_TRANSACTION_VOLUME`, `USER_ACCOUNT_DEVICE_TOO_NEW`,
190
+ # `WALLET_ACCOUNT_TOO_NEW`
191
+ # - Amex only: `DEVICE_USING_VPN_PROXY`,
192
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_MODERATE`,
193
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_SEVERE`,
194
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_MODERATE`,
195
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_SEVERE`, `EXCESSIVE_WALLET_RESETS`,
196
+ # `EXCESSIVE_ZIP_ATTEMPTS_MODERATE`, `EXCESSIVE_ZIP_ATTEMPTS_SEVERE`,
197
+ # `USER_ID_CARD_PAIRING_TOO_NEW`, `USER_ID_DEVICE_ID_PAIRING_TOO_NEW`,
198
+ # `USER_ID_OS_ID_PAIRING_TOO_NEW`, `USER_ID_TOO_NEW`
186
199
  # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.
187
200
  # - `WALLET_TOKEN_STATUS`: The current status of the wallet token.
188
201
  # - `CARD_STATE`: The state of the card being tokenized. Valid values are
@@ -221,8 +234,10 @@ module Lithic
221
234
  #
222
235
  # - `TIMESTAMP`: The timestamp of the tokenization request in ISO 8601 format.
223
236
  # - `TOKENIZATION_CHANNEL`: The channel through which the tokenization request was
224
- # initiated (e.g., DIGITAL_WALLET, ECOMMERCE).
225
- # - `TOKENIZATION_SOURCE`: The source of the tokenization request.
237
+ # initiated. Valid values are `DIGITAL_WALLET`, `MERCHANT`.
238
+ # - `TOKENIZATION_SOURCE`: The source of the tokenization request. Valid values
239
+ # are `ACCOUNT_ON_FILE`, `MANUAL_PROVISION`, `PUSH_PROVISION`, `CHIP_DIP`,
240
+ # `CONTACTLESS_TAP`, `TOKEN`, `UNKNOWN`.
226
241
  # - `TOKEN_REQUESTOR_NAME`: The name of the entity requesting the token. Valid
227
242
  # values are `ALT_ID`, `AMAZON_ONE`, `AMERICAN_EXPRESS_TOKEN_SERVICE`,
228
243
  # `ANDROID_PAY`, `APPLE_PAY`, `FACEBOOK`, `FITBIT_PAY`, `GARMIN_PAY`,
@@ -238,13 +253,24 @@ module Lithic
238
253
  # provider. Valid values include APPROVE, DECLINE,
239
254
  # REQUIRE_ADDITIONAL_AUTHENTICATION.
240
255
  # - `WALLET_RECOMMENDATION_REASONS`: List of reasons provided by the digital
241
- # wallet provider for the recommended decision. Valid values are
242
- # `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`, `ACCOUNT_TOO_NEW`,
243
- # `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
244
- # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`, `LOW_ACCOUNT_SCORE`,
245
- # `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`, `SUSPICIOUS_ACTIVITY`,
246
- # `TOO_MANY_DIFFERENT_CARDHOLDERS`, `TOO_MANY_RECENT_ATTEMPTS`,
247
- # `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`.
256
+ # wallet provider for the recommended decision. Valid values are:
257
+ # - Common: `ACCOUNT_CARD_TOO_NEW`, `ACCOUNT_RECENTLY_CHANGED`,
258
+ # `ACCOUNT_TOO_NEW`, `ACCOUNT_TOO_NEW_SINCE_LAUNCH`, `DEVICE_RECENTLY_LOST`,
259
+ # `HAS_SUSPENDED_TOKENS`, `HIGH_RISK`, `INACTIVE_ACCOUNT`,
260
+ # `LOW_ACCOUNT_SCORE`, `LOW_DEVICE_SCORE`, `OUTSIDE_HOME_TERRITORY`,
261
+ # `SUSPICIOUS_ACTIVITY`, `TOO_MANY_DIFFERENT_CARDHOLDERS`,
262
+ # `TOO_MANY_RECENT_ATTEMPTS`, `TOO_MANY_RECENT_TOKENS`, `UNABLE_TO_ASSESS`
263
+ # - Visa only: `ACCOUNT_DATA_RECENTLY_CHANGED`, `ACCOUNT_PAN_PAIRING_TOO_NEW`,
264
+ # `LOW_TRANSACTION_VOLUME`, `USER_ACCOUNT_DEVICE_TOO_NEW`,
265
+ # `WALLET_ACCOUNT_TOO_NEW`
266
+ # - Amex only: `DEVICE_USING_VPN_PROXY`,
267
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_MODERATE`,
268
+ # `EXCESSIVE_BILLING_NAME_ATTEMPTS_SEVERE`,
269
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_MODERATE`,
270
+ # `EXCESSIVE_CARD_PROVISION_ATTEMPTS_SEVERE`, `EXCESSIVE_WALLET_RESETS`,
271
+ # `EXCESSIVE_ZIP_ATTEMPTS_MODERATE`, `EXCESSIVE_ZIP_ATTEMPTS_SEVERE`,
272
+ # `USER_ID_CARD_PAIRING_TOO_NEW`, `USER_ID_DEVICE_ID_PAIRING_TOO_NEW`,
273
+ # `USER_ID_OS_ID_PAIRING_TOO_NEW`, `USER_ID_TOO_NEW`
248
274
  # - `TOKEN_REQUESTOR_ID`: Unique identifier for the entity requesting the token.
249
275
  # - `WALLET_TOKEN_STATUS`: The current status of the wallet token.
250
276
  # - `CARD_STATE`: The state of the card being tokenized. Valid values are
@@ -20,7 +20,8 @@ module Lithic
20
20
  # several event streams, the effective one is defined by the separate
21
21
  # `event_stream` field.
22
22
  #
23
- # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
23
+ # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
24
+ # AUTHORIZATION event stream.
24
25
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
25
26
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
26
27
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -99,6 +100,7 @@ module Lithic
99
100
  module Parameters
100
101
  extend Lithic::Internal::Type::Union
101
102
 
103
+ # Deprecated: Use CONDITIONAL_ACTION instead.
102
104
  variant -> { Lithic::AuthRules::ConditionalBlockParameters }
103
105
 
104
106
  variant -> { Lithic::AuthRules::VelocityLimitParams }
@@ -122,7 +124,8 @@ module Lithic
122
124
  # several event streams, the effective one is defined by the separate
123
125
  # `event_stream` field.
124
126
  #
125
- # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
127
+ # - `CONDITIONAL_BLOCK`: Deprecated. Use `CONDITIONAL_ACTION` instead.
128
+ # AUTHORIZATION event stream.
126
129
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
127
130
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
128
131
  # - `CONDITIONAL_ACTION`: AUTHORIZATION, THREE_DS_AUTHENTICATION, TOKENIZATION,
@@ -23,6 +23,7 @@ module Lithic
23
23
  module Parameters
24
24
  extend Lithic::Internal::Type::Union
25
25
 
26
+ # Deprecated: Use CONDITIONAL_ACTION instead.
26
27
  variant -> { Lithic::AuthRules::ConditionalBlockParameters }
27
28
 
28
29
  variant -> { Lithic::AuthRules::VelocityLimitParams }
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ # @see Lithic::Resources::AuthRules::V2#list_results
7
+ class V2ListResultsParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ # @!attribute auth_rule_token
12
+ # Filter by Auth Rule token
13
+ #
14
+ # @return [String, nil]
15
+ optional :auth_rule_token, String
16
+
17
+ # @!attribute ending_before
18
+ # A cursor representing an item's token before which a page of results should end.
19
+ # Used to retrieve the previous page of results before this item.
20
+ #
21
+ # @return [String, nil]
22
+ optional :ending_before, String
23
+
24
+ # @!attribute event_token
25
+ # Filter by event token
26
+ #
27
+ # @return [String, nil]
28
+ optional :event_token, String
29
+
30
+ # @!attribute has_actions
31
+ # Filter by whether the rule evaluation produced any actions. When not provided,
32
+ # all results are returned.
33
+ #
34
+ # @return [Boolean, nil]
35
+ optional :has_actions, Lithic::Internal::Type::Boolean
36
+
37
+ # @!attribute page_size
38
+ # Page size (for pagination).
39
+ #
40
+ # @return [Integer, nil]
41
+ optional :page_size, Integer
42
+
43
+ # @!attribute starting_after
44
+ # A cursor representing an item's token after which a page of results should
45
+ # begin. Used to retrieve the next page of results after this item.
46
+ #
47
+ # @return [String, nil]
48
+ optional :starting_after, String
49
+
50
+ # @!method initialize(auth_rule_token: nil, ending_before: nil, event_token: nil, has_actions: nil, page_size: nil, starting_after: nil, request_options: {})
51
+ # Some parameter documentations has been truncated, see
52
+ # {Lithic::Models::AuthRules::V2ListResultsParams} for more details.
53
+ #
54
+ # @param auth_rule_token [String] Filter by Auth Rule token
55
+ #
56
+ # @param ending_before [String] A cursor representing an item's token before which a page of results should end.
57
+ #
58
+ # @param event_token [String] Filter by event token
59
+ #
60
+ # @param has_actions [Boolean] Filter by whether the rule evaluation produced any actions. When not provided, a
61
+ #
62
+ # @param page_size [Integer] Page size (for pagination).
63
+ #
64
+ # @param starting_after [String] A cursor representing an item's token after which a page of results should begin
65
+ #
66
+ # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
67
+ end
68
+ end
69
+ end
70
+ end