lithic 0.1.0.pre.alpha.52 → 0.1.0.pre.alpha.54

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 (142) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/base_client.rb +7 -1
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +36 -26
  6. data/lib/lithic/internal/type/union.rb +15 -3
  7. data/lib/lithic/models/account_activity_list_response.rb +48 -1141
  8. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +48 -1151
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +3 -0
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +7 -0
  11. data/lib/lithic/models/auth_rules/conditional_attribute.rb +4 -0
  12. data/lib/lithic/models/auth_rules/v2_apply_response.rb +14 -0
  13. data/lib/lithic/models/auth_rules/v2_create_params.rb +7 -0
  14. data/lib/lithic/models/auth_rules/v2_create_response.rb +14 -0
  15. data/lib/lithic/models/auth_rules/v2_draft_params.rb +7 -0
  16. data/lib/lithic/models/auth_rules/v2_draft_response.rb +14 -0
  17. data/lib/lithic/models/auth_rules/v2_list_response.rb +14 -0
  18. data/lib/lithic/models/auth_rules/v2_promote_response.rb +14 -0
  19. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +14 -0
  20. data/lib/lithic/models/auth_rules/v2_update_response.rb +14 -0
  21. data/lib/lithic/models/book_transfer_response.rb +51 -48
  22. data/lib/lithic/models/card_provision_response.rb +25 -3
  23. data/lib/lithic/models/event.rb +0 -1
  24. data/lib/lithic/models/event_list_params.rb +0 -1
  25. data/lib/lithic/models/event_subscription.rb +0 -1
  26. data/lib/lithic/models/events/subscription_create_params.rb +0 -1
  27. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
  28. data/lib/lithic/models/events/subscription_update_params.rb +0 -1
  29. data/lib/lithic/models/external_bank_account_create_params.rb +1 -8
  30. data/lib/lithic/models/external_payment.rb +21 -23
  31. data/lib/lithic/models/financial_account.rb +48 -39
  32. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +32 -23
  33. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
  34. data/lib/lithic/models/financial_transaction.rb +1 -0
  35. data/lib/lithic/models/management_operation_transaction.rb +21 -23
  36. data/lib/lithic/models/payment.rb +269 -140
  37. data/lib/lithic/models/payment_create_response.rb +2 -0
  38. data/lib/lithic/models/payment_retry_response.rb +2 -0
  39. data/lib/lithic/models/provision_response.rb +30 -0
  40. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +32 -1
  41. data/lib/lithic/models/tokenization.rb +1 -0
  42. data/lib/lithic/models/transaction.rb +4 -0
  43. data/lib/lithic/models/transfer.rb +1 -0
  44. data/lib/lithic/models/verification_method.rb +0 -1
  45. data/lib/lithic/models.rb +2 -0
  46. data/lib/lithic/resources/account_activity.rb +2 -2
  47. data/lib/lithic/resources/auth_rules/v2.rb +0 -72
  48. data/lib/lithic/resources/external_bank_accounts.rb +1 -3
  49. data/lib/lithic/version.rb +1 -1
  50. data/lib/lithic.rb +2 -2
  51. data/manifest.yaml +1 -0
  52. data/rbi/lithic/internal/transport/base_client.rbi +5 -0
  53. data/rbi/lithic/internal/transport/pooled_net_requester.rbi +6 -2
  54. data/rbi/lithic/internal/type/base_model.rbi +8 -4
  55. data/rbi/lithic/models/account_activity_list_response.rbi +158 -2629
  56. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +158 -2629
  57. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +6 -0
  58. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +14 -0
  59. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +8 -0
  60. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +28 -0
  61. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +14 -0
  62. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +28 -0
  63. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +14 -0
  64. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +28 -0
  65. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +28 -0
  66. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +28 -0
  67. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +28 -0
  68. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +28 -0
  69. data/rbi/lithic/models/book_transfer_response.rbi +67 -68
  70. data/rbi/lithic/models/card_provision_response.rbi +50 -5
  71. data/rbi/lithic/models/event.rbi +0 -5
  72. data/rbi/lithic/models/event_list_params.rbi +0 -5
  73. data/rbi/lithic/models/event_subscription.rbi +0 -5
  74. data/rbi/lithic/models/events/subscription_create_params.rbi +0 -5
  75. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
  76. data/rbi/lithic/models/events/subscription_update_params.rbi +0 -5
  77. data/rbi/lithic/models/external_bank_account_create_params.rbi +0 -6
  78. data/rbi/lithic/models/external_payment.rbi +34 -39
  79. data/rbi/lithic/models/financial_account.rbi +74 -73
  80. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +46 -33
  81. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
  82. data/rbi/lithic/models/financial_transaction.rbi +5 -0
  83. data/rbi/lithic/models/management_operation_transaction.rbi +49 -60
  84. data/rbi/lithic/models/payment.rbi +425 -182
  85. data/rbi/lithic/models/payment_create_response.rbi +1 -0
  86. data/rbi/lithic/models/payment_retry_response.rbi +1 -0
  87. data/rbi/lithic/models/provision_response.rbi +58 -0
  88. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +83 -0
  89. data/rbi/lithic/models/tokenization.rbi +5 -0
  90. data/rbi/lithic/models/transaction.rbi +20 -0
  91. data/rbi/lithic/models/transfer.rbi +5 -0
  92. data/rbi/lithic/models/verification_method.rbi +0 -1
  93. data/rbi/lithic/models.rbi +2 -0
  94. data/rbi/lithic/resources/auth_rules/v2.rbi +0 -64
  95. data/rbi/lithic/resources/external_bank_accounts.rbi +0 -2
  96. data/sig/lithic/internal/transport/base_client.rbs +2 -0
  97. data/sig/lithic/internal/transport/pooled_net_requester.rbs +4 -1
  98. data/sig/lithic/models/account_activity_list_response.rbs +50 -1036
  99. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +50 -1036
  100. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +2 -0
  101. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +2 -0
  102. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -0
  103. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -0
  104. data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -0
  105. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
  106. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -0
  107. data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -0
  108. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -0
  109. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -0
  110. data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -0
  111. data/sig/lithic/models/book_transfer_response.rbs +26 -19
  112. data/sig/lithic/models/card_provision_response.rbs +22 -5
  113. data/sig/lithic/models/event.rbs +0 -2
  114. data/sig/lithic/models/event_list_params.rbs +0 -2
  115. data/sig/lithic/models/event_subscription.rbs +0 -2
  116. data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
  117. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
  118. data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
  119. data/sig/lithic/models/external_bank_account_create_params.rbs +1 -6
  120. data/sig/lithic/models/external_payment.rbs +19 -26
  121. data/sig/lithic/models/financial_account.rbs +28 -30
  122. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +21 -15
  123. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
  124. data/sig/lithic/models/financial_transaction.rbs +2 -0
  125. data/sig/lithic/models/management_operation_transaction.rbs +19 -26
  126. data/sig/lithic/models/payment.rbs +199 -76
  127. data/sig/lithic/models/provision_response.rbs +36 -0
  128. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +28 -0
  129. data/sig/lithic/models/tokenization.rbs +2 -0
  130. data/sig/lithic/models/transaction.rbs +8 -0
  131. data/sig/lithic/models/transfer.rbs +2 -0
  132. data/sig/lithic/models/verification_method.rbs +1 -7
  133. data/sig/lithic/models.rbs +2 -0
  134. data/sig/lithic/resources/auth_rules/v2.rbs +0 -5
  135. data/sig/lithic/resources/external_bank_accounts.rbs +0 -1
  136. metadata +5 -8
  137. data/lib/lithic/models/auth_rules/v2_report_params.rb +0 -16
  138. data/lib/lithic/models/auth_rules/v2_report_response.rb +0 -18
  139. data/rbi/lithic/models/auth_rules/v2_report_params.rbi +0 -29
  140. data/rbi/lithic/models/auth_rules/v2_report_response.rbi +0 -31
  141. data/sig/lithic/models/auth_rules/v2_report_params.rbs +0 -16
  142. data/sig/lithic/models/auth_rules/v2_report_response.rbs +0 -17
@@ -5,14 +5,13 @@ module Lithic
5
5
  token: String,
6
6
  category: Lithic::Models::Payment::category,
7
7
  created: Time,
8
- currency: String,
9
8
  descriptor: String,
10
9
  direction: Lithic::Models::Payment::direction,
11
10
  events: ::Array[Lithic::Payment::Event],
12
- external_bank_account_token: String?,
11
+ family: :PAYMENT,
13
12
  financial_account_token: String,
14
13
  method_: Lithic::Models::Payment::method_,
15
- method_attributes: Lithic::Payment::MethodAttributes,
14
+ method_attributes: Lithic::Models::Payment::method_attributes,
16
15
  pending_amount: Integer,
17
16
  related_account_tokens: Lithic::Payment::RelatedAccountTokens,
18
17
  result: Lithic::Models::Payment::result,
@@ -20,9 +19,11 @@ module Lithic
20
19
  source: Lithic::Models::Payment::source,
21
20
  status: Lithic::Models::Payment::status,
22
21
  updated: Time,
23
- user_defined_id: String?,
24
- expected_release_date: Date,
25
- type: Lithic::Models::Payment::type_
22
+ currency: String,
23
+ expected_release_date: Date?,
24
+ external_bank_account_token: String?,
25
+ type: Lithic::Models::Payment::type_,
26
+ user_defined_id: String?
26
27
  }
27
28
 
28
29
  class Payment < Lithic::Internal::Type::BaseModel
@@ -32,21 +33,19 @@ module Lithic
32
33
 
33
34
  attr_accessor created: Time
34
35
 
35
- attr_accessor currency: String
36
-
37
36
  attr_accessor descriptor: String
38
37
 
39
38
  attr_accessor direction: Lithic::Models::Payment::direction
40
39
 
41
40
  attr_accessor events: ::Array[Lithic::Payment::Event]
42
41
 
43
- attr_accessor external_bank_account_token: String?
42
+ attr_accessor family: :PAYMENT
44
43
 
45
44
  attr_accessor financial_account_token: String
46
45
 
47
46
  attr_accessor method_: Lithic::Models::Payment::method_
48
47
 
49
- attr_accessor method_attributes: Lithic::Payment::MethodAttributes
48
+ attr_accessor method_attributes: Lithic::Models::Payment::method_attributes
50
49
 
51
50
  attr_accessor pending_amount: Integer
52
51
 
@@ -62,11 +61,13 @@ module Lithic
62
61
 
63
62
  attr_accessor updated: Time
64
63
 
65
- attr_accessor user_defined_id: String?
64
+ attr_reader currency: String?
66
65
 
67
- attr_reader expected_release_date: Date?
66
+ def currency=: (String) -> String
68
67
 
69
- def expected_release_date=: (Date) -> Date
68
+ attr_accessor expected_release_date: Date?
69
+
70
+ attr_accessor external_bank_account_token: String?
70
71
 
71
72
  attr_reader type: Lithic::Models::Payment::type_?
72
73
 
@@ -74,18 +75,18 @@ module Lithic
74
75
  Lithic::Models::Payment::type_
75
76
  ) -> Lithic::Models::Payment::type_
76
77
 
78
+ attr_accessor user_defined_id: String?
79
+
77
80
  def initialize: (
78
81
  token: String,
79
82
  category: Lithic::Models::Payment::category,
80
83
  created: Time,
81
- currency: String,
82
84
  descriptor: String,
83
85
  direction: Lithic::Models::Payment::direction,
84
86
  events: ::Array[Lithic::Payment::Event],
85
- external_bank_account_token: String?,
86
87
  financial_account_token: String,
87
88
  method_: Lithic::Models::Payment::method_,
88
- method_attributes: Lithic::Payment::MethodAttributes,
89
+ method_attributes: Lithic::Models::Payment::method_attributes,
89
90
  pending_amount: Integer,
90
91
  related_account_tokens: Lithic::Payment::RelatedAccountTokens,
91
92
  result: Lithic::Models::Payment::result,
@@ -93,23 +94,25 @@ module Lithic
93
94
  source: Lithic::Models::Payment::source,
94
95
  status: Lithic::Models::Payment::status,
95
96
  updated: Time,
96
- user_defined_id: String?,
97
- ?expected_release_date: Date,
98
- ?type: Lithic::Models::Payment::type_
97
+ ?currency: String,
98
+ ?expected_release_date: Date?,
99
+ ?external_bank_account_token: String?,
100
+ ?type: Lithic::Models::Payment::type_,
101
+ ?user_defined_id: String?,
102
+ ?family: :PAYMENT
99
103
  ) -> void
100
104
 
101
105
  def to_hash: -> {
102
106
  token: String,
103
107
  category: Lithic::Models::Payment::category,
104
108
  created: Time,
105
- currency: String,
106
109
  descriptor: String,
107
110
  direction: Lithic::Models::Payment::direction,
108
111
  events: ::Array[Lithic::Payment::Event],
109
- external_bank_account_token: String?,
112
+ family: :PAYMENT,
110
113
  financial_account_token: String,
111
114
  method_: Lithic::Models::Payment::method_,
112
- method_attributes: Lithic::Payment::MethodAttributes,
115
+ method_attributes: Lithic::Models::Payment::method_attributes,
113
116
  pending_amount: Integer,
114
117
  related_account_tokens: Lithic::Payment::RelatedAccountTokens,
115
118
  result: Lithic::Models::Payment::result,
@@ -117,17 +120,54 @@ module Lithic
117
120
  source: Lithic::Models::Payment::source,
118
121
  status: Lithic::Models::Payment::status,
119
122
  updated: Time,
120
- user_defined_id: String?,
121
- expected_release_date: Date,
122
- type: Lithic::Models::Payment::type_
123
+ currency: String,
124
+ expected_release_date: Date?,
125
+ external_bank_account_token: String?,
126
+ type: Lithic::Models::Payment::type_,
127
+ user_defined_id: String?
123
128
  }
124
129
 
125
- type category = :ACH
130
+ type category =
131
+ :ACH
132
+ | :BALANCE_OR_FUNDING
133
+ | :FEE
134
+ | :REWARD
135
+ | :ADJUSTMENT
136
+ | :DERECOGNITION
137
+ | :DISPUTE
138
+ | :CARD
139
+ | :EXTERNAL_ACH
140
+ | :EXTERNAL_CHECK
141
+ | :EXTERNAL_TRANSFER
142
+ | :EXTERNAL_WIRE
143
+ | :MANAGEMENT_ADJUSTMENT
144
+ | :MANAGEMENT_DISPUTE
145
+ | :MANAGEMENT_FEE
146
+ | :MANAGEMENT_REWARD
147
+ | :MANAGEMENT_DISBURSEMENT
148
+ | :PROGRAM_FUNDING
126
149
 
127
150
  module Category
128
151
  extend Lithic::Internal::Type::Enum
129
152
 
130
153
  ACH: :ACH
154
+ BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING
155
+ FEE: :FEE
156
+ REWARD: :REWARD
157
+ ADJUSTMENT: :ADJUSTMENT
158
+ DERECOGNITION: :DERECOGNITION
159
+ DISPUTE: :DISPUTE
160
+ CARD: :CARD
161
+ EXTERNAL_ACH: :EXTERNAL_ACH
162
+ EXTERNAL_CHECK: :EXTERNAL_CHECK
163
+ EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER
164
+ EXTERNAL_WIRE: :EXTERNAL_WIRE
165
+ MANAGEMENT_ADJUSTMENT: :MANAGEMENT_ADJUSTMENT
166
+ MANAGEMENT_DISPUTE: :MANAGEMENT_DISPUTE
167
+ MANAGEMENT_FEE: :MANAGEMENT_FEE
168
+ MANAGEMENT_REWARD: :MANAGEMENT_REWARD
169
+ MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT
170
+ PROGRAM_FUNDING: :PROGRAM_FUNDING
131
171
 
132
172
  def self?.values: -> ::Array[Lithic::Models::Payment::category]
133
173
  end
@@ -203,13 +243,16 @@ module Lithic
203
243
  :ACH_ORIGINATION_CANCELLED
204
244
  | :ACH_ORIGINATION_INITIATED
205
245
  | :ACH_ORIGINATION_PROCESSED
206
- | :ACH_ORIGINATION_SETTLED
246
+ | :ACH_ORIGINATION_REJECTED
207
247
  | :ACH_ORIGINATION_RELEASED
208
248
  | :ACH_ORIGINATION_REVIEWED
249
+ | :ACH_ORIGINATION_SETTLED
209
250
  | :ACH_RECEIPT_PROCESSED
251
+ | :ACH_RECEIPT_RELEASED
210
252
  | :ACH_RECEIPT_SETTLED
211
253
  | :ACH_RETURN_INITIATED
212
254
  | :ACH_RETURN_PROCESSED
255
+ | :ACH_RETURN_REJECTED
213
256
  | :ACH_RETURN_SETTLED
214
257
 
215
258
  module Type
@@ -218,13 +261,16 @@ module Lithic
218
261
  ACH_ORIGINATION_CANCELLED: :ACH_ORIGINATION_CANCELLED
219
262
  ACH_ORIGINATION_INITIATED: :ACH_ORIGINATION_INITIATED
220
263
  ACH_ORIGINATION_PROCESSED: :ACH_ORIGINATION_PROCESSED
221
- ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED
264
+ ACH_ORIGINATION_REJECTED: :ACH_ORIGINATION_REJECTED
222
265
  ACH_ORIGINATION_RELEASED: :ACH_ORIGINATION_RELEASED
223
266
  ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED
267
+ ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED
224
268
  ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED
269
+ ACH_RECEIPT_RELEASED: :ACH_RECEIPT_RELEASED
225
270
  ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED
226
271
  ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED
227
272
  ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED
273
+ ACH_RETURN_REJECTED: :ACH_RETURN_REJECTED
228
274
  ACH_RETURN_SETTLED: :ACH_RETURN_SETTLED
229
275
 
230
276
  def self?.values: -> ::Array[Lithic::Models::Payment::Event::type_]
@@ -252,74 +298,149 @@ module Lithic
252
298
  end
253
299
  end
254
300
 
255
- type method_ = :ACH_NEXT_DAY | :ACH_SAME_DAY
301
+ type method_ = :ACH_NEXT_DAY | :ACH_SAME_DAY | :WIRE
256
302
 
257
303
  module Method
258
304
  extend Lithic::Internal::Type::Enum
259
305
 
260
306
  ACH_NEXT_DAY: :ACH_NEXT_DAY
261
307
  ACH_SAME_DAY: :ACH_SAME_DAY
308
+ WIRE: :WIRE
262
309
 
263
310
  def self?.values: -> ::Array[Lithic::Models::Payment::method_]
264
311
  end
265
312
 
266
313
  type method_attributes =
267
- {
268
- company_id: String?,
269
- receipt_routing_number: String?,
270
- retries: Integer?,
271
- return_reason_code: String?,
272
- sec_code: Lithic::Models::Payment::MethodAttributes::sec_code,
273
- trace_numbers: ::Array[String?],
274
- addenda: String?
275
- }
314
+ Lithic::Payment::MethodAttributes::ACHMethodAttributes
315
+ | Lithic::Payment::MethodAttributes::WireMethodAttributes
316
+
317
+ module MethodAttributes
318
+ extend Lithic::Internal::Type::Union
319
+
320
+ type ach_method_attributes =
321
+ {
322
+ sec_code: Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::sec_code,
323
+ addenda: String?,
324
+ company_id: String?,
325
+ receipt_routing_number: String?,
326
+ retries: Integer?,
327
+ return_reason_code: String?,
328
+ trace_numbers: ::Array[String]
329
+ }
330
+
331
+ class ACHMethodAttributes < Lithic::Internal::Type::BaseModel
332
+ attr_accessor sec_code: Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::sec_code
333
+
334
+ attr_accessor addenda: String?
335
+
336
+ attr_accessor company_id: String?
337
+
338
+ attr_accessor receipt_routing_number: String?
339
+
340
+ attr_accessor retries: Integer?
341
+
342
+ attr_accessor return_reason_code: String?
343
+
344
+ attr_reader trace_numbers: ::Array[String]?
345
+
346
+ def trace_numbers=: (::Array[String]) -> ::Array[String]
347
+
348
+ def initialize: (
349
+ sec_code: Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::sec_code,
350
+ ?addenda: String?,
351
+ ?company_id: String?,
352
+ ?receipt_routing_number: String?,
353
+ ?retries: Integer?,
354
+ ?return_reason_code: String?,
355
+ ?trace_numbers: ::Array[String]
356
+ ) -> void
357
+
358
+ def to_hash: -> {
359
+ sec_code: Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::sec_code,
360
+ addenda: String?,
361
+ company_id: String?,
362
+ receipt_routing_number: String?,
363
+ retries: Integer?,
364
+ return_reason_code: String?,
365
+ trace_numbers: ::Array[String]
366
+ }
367
+
368
+ type sec_code = :CCD | :PPD | :WEB | :TEL | :CIE | :CTX
369
+
370
+ module SecCode
371
+ extend Lithic::Internal::Type::Enum
372
+
373
+ CCD: :CCD
374
+ PPD: :PPD
375
+ WEB: :WEB
376
+ TEL: :TEL
377
+ CIE: :CIE
378
+ CTX: :CTX
379
+
380
+ def self?.values: -> ::Array[Lithic::Models::Payment::MethodAttributes::ACHMethodAttributes::sec_code]
381
+ end
382
+ end
276
383
 
277
- class MethodAttributes < Lithic::Internal::Type::BaseModel
278
- attr_accessor company_id: String?
384
+ type wire_method_attributes =
385
+ {
386
+ wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network,
387
+ creditor: Lithic::WirePartyDetails,
388
+ debtor: Lithic::WirePartyDetails,
389
+ message_id: String?,
390
+ remittance_information: String?,
391
+ wire_message_type: String
392
+ }
279
393
 
280
- attr_accessor receipt_routing_number: String?
394
+ class WireMethodAttributes < Lithic::Internal::Type::BaseModel
395
+ attr_accessor wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network
281
396
 
282
- attr_accessor retries: Integer?
397
+ attr_reader creditor: Lithic::WirePartyDetails?
283
398
 
284
- attr_accessor return_reason_code: String?
399
+ def creditor=: (Lithic::WirePartyDetails) -> Lithic::WirePartyDetails
285
400
 
286
- attr_accessor sec_code: Lithic::Models::Payment::MethodAttributes::sec_code
401
+ attr_reader debtor: Lithic::WirePartyDetails?
287
402
 
288
- attr_accessor trace_numbers: ::Array[String?]
403
+ def debtor=: (Lithic::WirePartyDetails) -> Lithic::WirePartyDetails
289
404
 
290
- attr_accessor addenda: String?
405
+ attr_accessor message_id: String?
291
406
 
292
- def initialize: (
293
- company_id: String?,
294
- receipt_routing_number: String?,
295
- retries: Integer?,
296
- return_reason_code: String?,
297
- sec_code: Lithic::Models::Payment::MethodAttributes::sec_code,
298
- trace_numbers: ::Array[String?],
299
- ?addenda: String?
300
- ) -> void
407
+ attr_accessor remittance_information: String?
301
408
 
302
- def to_hash: -> {
303
- company_id: String?,
304
- receipt_routing_number: String?,
305
- retries: Integer?,
306
- return_reason_code: String?,
307
- sec_code: Lithic::Models::Payment::MethodAttributes::sec_code,
308
- trace_numbers: ::Array[String?],
309
- addenda: String?
310
- }
409
+ attr_reader wire_message_type: String?
311
410
 
312
- type sec_code = :CCD | :PPD | :WEB
411
+ def wire_message_type=: (String) -> String
313
412
 
314
- module SecCode
315
- extend Lithic::Internal::Type::Enum
413
+ def initialize: (
414
+ wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network,
415
+ ?creditor: Lithic::WirePartyDetails,
416
+ ?debtor: Lithic::WirePartyDetails,
417
+ ?message_id: String?,
418
+ ?remittance_information: String?,
419
+ ?wire_message_type: String
420
+ ) -> void
421
+
422
+ def to_hash: -> {
423
+ wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network,
424
+ creditor: Lithic::WirePartyDetails,
425
+ debtor: Lithic::WirePartyDetails,
426
+ message_id: String?,
427
+ remittance_information: String?,
428
+ wire_message_type: String
429
+ }
430
+
431
+ type wire_network = :FEDWIRE | :SWIFT
316
432
 
317
- CCD: :CCD
318
- PPD: :PPD
319
- WEB: :WEB
433
+ module WireNetwork
434
+ extend Lithic::Internal::Type::Enum
320
435
 
321
- def self?.values: -> ::Array[Lithic::Models::Payment::MethodAttributes::sec_code]
436
+ FEDWIRE: :FEDWIRE
437
+ SWIFT: :SWIFT
438
+
439
+ def self?.values: -> ::Array[Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network]
440
+ end
322
441
  end
442
+
443
+ def self?.variants: -> ::Array[Lithic::Models::Payment::method_attributes]
323
444
  end
324
445
 
325
446
  type related_account_tokens =
@@ -352,26 +473,28 @@ module Lithic
352
473
  def self?.values: -> ::Array[Lithic::Models::Payment::result]
353
474
  end
354
475
 
355
- type source = :CUSTOMER | :LITHIC
476
+ type source = :LITHIC | :EXTERNAL | :CUSTOMER
356
477
 
357
478
  module Source
358
479
  extend Lithic::Internal::Type::Enum
359
480
 
360
- CUSTOMER: :CUSTOMER
361
481
  LITHIC: :LITHIC
482
+ EXTERNAL: :EXTERNAL
483
+ CUSTOMER: :CUSTOMER
362
484
 
363
485
  def self?.values: -> ::Array[Lithic::Models::Payment::source]
364
486
  end
365
487
 
366
- type status = :DECLINED | :PENDING | :RETURNED | :SETTLED
488
+ type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
367
489
 
368
490
  module Status
369
491
  extend Lithic::Internal::Type::Enum
370
492
 
371
- DECLINED: :DECLINED
372
493
  PENDING: :PENDING
373
- RETURNED: :RETURNED
374
494
  SETTLED: :SETTLED
495
+ DECLINED: :DECLINED
496
+ REVERSED: :REVERSED
497
+ CANCELED: :CANCELED
375
498
 
376
499
  def self?.values: -> ::Array[Lithic::Models::Payment::status]
377
500
  end
@@ -0,0 +1,36 @@
1
+ module Lithic
2
+ module Models
3
+ type provision_response =
4
+ {
5
+ activation_data: String,
6
+ encrypted_data: String,
7
+ ephemeral_public_key: String
8
+ }
9
+
10
+ class ProvisionResponse < Lithic::Internal::Type::BaseModel
11
+ attr_reader activation_data: String?
12
+
13
+ def activation_data=: (String) -> String
14
+
15
+ attr_reader encrypted_data: String?
16
+
17
+ def encrypted_data=: (String) -> String
18
+
19
+ attr_reader ephemeral_public_key: String?
20
+
21
+ def ephemeral_public_key=: (String) -> String
22
+
23
+ def initialize: (
24
+ ?activation_data: String,
25
+ ?encrypted_data: String,
26
+ ?ephemeral_public_key: String
27
+ ) -> void
28
+
29
+ def to_hash: -> {
30
+ activation_data: String,
31
+ encrypted_data: String,
32
+ ephemeral_public_key: String
33
+ }
34
+ end
35
+ end
36
+ end
@@ -153,6 +153,7 @@ module Lithic
153
153
  type cardholder =
154
154
  {
155
155
  address_match: bool?,
156
+ address_on_file_match: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match,
156
157
  billing_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress,
157
158
  email: String?,
158
159
  name: String?,
@@ -165,6 +166,12 @@ module Lithic
165
166
  class Cardholder < Lithic::Internal::Type::BaseModel
166
167
  attr_accessor address_match: bool?
167
168
 
169
+ attr_reader address_on_file_match: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match?
170
+
171
+ def address_on_file_match=: (
172
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match
173
+ ) -> Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match
174
+
168
175
  attr_reader billing_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress?
169
176
 
170
177
  def billing_address=: (
@@ -189,6 +196,7 @@ module Lithic
189
196
 
190
197
  def initialize: (
191
198
  ?address_match: bool?,
199
+ ?address_on_file_match: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match,
192
200
  ?billing_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress,
193
201
  ?email: String?,
194
202
  ?name: String?,
@@ -200,6 +208,7 @@ module Lithic
200
208
 
201
209
  def to_hash: -> {
202
210
  address_match: bool?,
211
+ address_on_file_match: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match,
203
212
  billing_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress,
204
213
  email: String?,
205
214
  name: String?,
@@ -209,6 +218,25 @@ module Lithic
209
218
  shipping_address: Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::ShippingAddress
210
219
  }
211
220
 
221
+ type address_on_file_match =
222
+ :MATCH
223
+ | :MATCH_ADDRESS_ONLY
224
+ | :MATCH_ZIP_ONLY
225
+ | :MISMATCH
226
+ | :NOT_PRESENT
227
+
228
+ module AddressOnFileMatch
229
+ extend Lithic::Internal::Type::Enum
230
+
231
+ MATCH: :MATCH
232
+ MATCH_ADDRESS_ONLY: :MATCH_ADDRESS_ONLY
233
+ MATCH_ZIP_ONLY: :MATCH_ZIP_ONLY
234
+ MISMATCH: :MISMATCH
235
+ NOT_PRESENT: :NOT_PRESENT
236
+
237
+ def self?.values: -> ::Array[Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::address_on_file_match]
238
+ end
239
+
212
240
  type billing_address =
213
241
  {
214
242
  :address1 => String?,
@@ -203,6 +203,7 @@ module Lithic
203
203
  | :TOKEN_ACTIVATED
204
204
  | :TOKEN_CREATED
205
205
  | :TOKEN_DEACTIVATED
206
+ | :TOKEN_DELETED_FROM_CONSUMER_APP
206
207
  | :TOKEN_INACTIVE
207
208
  | :TOKEN_STATE_UNKNOWN
208
209
  | :TOKEN_SUSPENDED
@@ -218,6 +219,7 @@ module Lithic
218
219
  TOKEN_ACTIVATED: :TOKEN_ACTIVATED
219
220
  TOKEN_CREATED: :TOKEN_CREATED
220
221
  TOKEN_DEACTIVATED: :TOKEN_DEACTIVATED
222
+ TOKEN_DELETED_FROM_CONSUMER_APP: :TOKEN_DELETED_FROM_CONSUMER_APP
221
223
  TOKEN_INACTIVE: :TOKEN_INACTIVE
222
224
  TOKEN_STATE_UNKNOWN: :TOKEN_STATE_UNKNOWN
223
225
  TOKEN_SUSPENDED: :TOKEN_SUSPENDED
@@ -1088,6 +1088,8 @@ module Lithic
1088
1088
  | :TRANSACTION_PREVIOUSLY_COMPLETED
1089
1089
  | :UNAUTHORIZED_MERCHANT
1090
1090
  | :VEHICLE_NUMBER_INVALID
1091
+ | :CARDHOLDER_CHALLENGED
1092
+ | :CARDHOLDER_CHALLENGE_FAILED
1091
1093
 
1092
1094
  module DetailedResult
1093
1095
  extend Lithic::Internal::Type::Enum
@@ -1146,6 +1148,8 @@ module Lithic
1146
1148
  TRANSACTION_PREVIOUSLY_COMPLETED: :TRANSACTION_PREVIOUSLY_COMPLETED
1147
1149
  UNAUTHORIZED_MERCHANT: :UNAUTHORIZED_MERCHANT
1148
1150
  VEHICLE_NUMBER_INVALID: :VEHICLE_NUMBER_INVALID
1151
+ CARDHOLDER_CHALLENGED: :CARDHOLDER_CHALLENGED
1152
+ CARDHOLDER_CHALLENGE_FAILED: :CARDHOLDER_CHALLENGE_FAILED
1149
1153
 
1150
1154
  def self?.values: -> ::Array[Lithic::Models::Transaction::Event::detailed_result]
1151
1155
  end
@@ -1430,6 +1434,8 @@ module Lithic
1430
1434
  | :TRANSACTION_PREVIOUSLY_COMPLETED
1431
1435
  | :UNAUTHORIZED_MERCHANT
1432
1436
  | :VEHICLE_NUMBER_INVALID
1437
+ | :CARDHOLDER_CHALLENGED
1438
+ | :CARDHOLDER_CHALLENGE_FAILED
1433
1439
 
1434
1440
  module Result
1435
1441
  extend Lithic::Internal::Type::Enum
@@ -1488,6 +1494,8 @@ module Lithic
1488
1494
  TRANSACTION_PREVIOUSLY_COMPLETED: :TRANSACTION_PREVIOUSLY_COMPLETED
1489
1495
  UNAUTHORIZED_MERCHANT: :UNAUTHORIZED_MERCHANT
1490
1496
  VEHICLE_NUMBER_INVALID: :VEHICLE_NUMBER_INVALID
1497
+ CARDHOLDER_CHALLENGED: :CARDHOLDER_CHALLENGED
1498
+ CARDHOLDER_CHALLENGE_FAILED: :CARDHOLDER_CHALLENGE_FAILED
1491
1499
 
1492
1500
  def self?.values: -> ::Array[Lithic::Models::Transaction::Event::RuleResult::result]
1493
1501
  end
@@ -190,6 +190,7 @@ module Lithic
190
190
  | :ACH_ORIGINATION_REVIEWED
191
191
  | :ACH_ORIGINATION_SETTLED
192
192
  | :ACH_RECEIPT_PROCESSED
193
+ | :ACH_RECEIPT_RELEASED
193
194
  | :ACH_RECEIPT_SETTLED
194
195
  | :ACH_RETURN_INITIATED
195
196
  | :ACH_RETURN_PROCESSED
@@ -264,6 +265,7 @@ module Lithic
264
265
  ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED
265
266
  ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED
266
267
  ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED
268
+ ACH_RECEIPT_RELEASED: :ACH_RECEIPT_RELEASED
267
269
  ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED
268
270
  ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED
269
271
  ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED
@@ -1,19 +1,13 @@
1
1
  module Lithic
2
2
  module Models
3
3
  type verification_method =
4
- :MANUAL
5
- | :MICRO_DEPOSIT
6
- | :PLAID
7
- | :PRENOTE
8
- | :EXTERNALLY_VERIFIED
9
- | :UNVERIFIED
4
+ :MANUAL | :MICRO_DEPOSIT | :PRENOTE | :EXTERNALLY_VERIFIED | :UNVERIFIED
10
5
 
11
6
  module VerificationMethod
12
7
  extend Lithic::Internal::Type::Enum
13
8
 
14
9
  MANUAL: :MANUAL
15
10
  MICRO_DEPOSIT: :MICRO_DEPOSIT
16
- PLAID: :PLAID
17
11
  PRENOTE: :PRENOTE
18
12
  EXTERNALLY_VERIFIED: :EXTERNALLY_VERIFIED
19
13
  UNVERIFIED: :UNVERIFIED
@@ -267,6 +267,8 @@ module Lithic
267
267
 
268
268
  class PaymentSimulateReturnParams = Lithic::Models::PaymentSimulateReturnParams
269
269
 
270
+ class ProvisionResponse = Lithic::Models::ProvisionResponse
271
+
270
272
  module Reports = Lithic::Models::Reports
271
273
 
272
274
  class RequiredDocument = Lithic::Models::RequiredDocument
@@ -72,11 +72,6 @@ module Lithic
72
72
  ?request_options: Lithic::request_opts
73
73
  ) -> Lithic::Models::AuthRules::V2PromoteResponse
74
74
 
75
- def report: (
76
- String auth_rule_token,
77
- ?request_options: Lithic::request_opts
78
- ) -> Lithic::Models::AuthRules::V2ReportResponse
79
-
80
75
  def retrieve_features: (
81
76
  String auth_rule_token,
82
77
  ?account_token: String,
@@ -13,7 +13,6 @@ module Lithic
13
13
  routing_number: String,
14
14
  type: Lithic::Models::ExternalBankAccountCreateParams::type_,
15
15
  verification_method: Lithic::Models::ExternalBankAccountCreateParams::verification_method,
16
- processor_token: String,
17
16
  ?account_token: String,
18
17
  ?address: Lithic::ExternalBankAccountAddress,
19
18
  ?company_id: String,