lithic 0.18.1 → 0.20.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 (174) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +66 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -0
  5. data/lib/lithic/models/account_activity_list_params.rb +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +2 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +2 -0
  8. data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +1 -0
  9. data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +1 -0
  10. data/lib/lithic/models/auth_rules/conditional_ach_action_parameters.rb +3 -0
  11. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +2 -0
  12. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +24 -1
  13. data/lib/lithic/models/auth_rules/velocity_limit_period.rb +1 -1
  14. data/lib/lithic/models/blockchain_recipient.rb +148 -0
  15. data/lib/lithic/models/blockchain_recipient_create_params.rb +74 -0
  16. data/lib/lithic/models/book_transfer_create_params.rb +4 -0
  17. data/lib/lithic/models/book_transfer_list_params.rb +1 -0
  18. data/lib/lithic/models/book_transfer_response.rb +4 -0
  19. data/lib/lithic/models/card.rb +2 -2
  20. data/lib/lithic/models/card_provision_params.rb +10 -8
  21. data/lib/lithic/models/card_reassign_account_params.rb +29 -0
  22. data/lib/lithic/models/dispute_v2.rb +178 -130
  23. data/lib/lithic/models/disputes_v2_list_params.rb +10 -1
  24. data/lib/lithic/models/embed_session_generated_webhook_event.rb +83 -0
  25. data/lib/lithic/models/embed_viewed_webhook_event.rb +85 -0
  26. data/lib/lithic/models/event.rb +44 -12
  27. data/lib/lithic/models/event_list_params.rb +23 -6
  28. data/lib/lithic/models/event_subscription.rb +23 -6
  29. data/lib/lithic/models/events/subscription_create_params.rb +23 -6
  30. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
  31. data/lib/lithic/models/events/subscription_update_params.rb +23 -6
  32. data/lib/lithic/models/external_payment_list_params.rb +3 -3
  33. data/lib/lithic/models/financial_account.rb +14 -1
  34. data/lib/lithic/models/financial_accounts/balance_list_params.rb +4 -3
  35. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +10 -0
  36. data/lib/lithic/models/financial_event.rb +8 -0
  37. data/lib/lithic/models/fraud/transaction_report_response.rb +8 -8
  38. data/lib/lithic/models/fraud/transaction_retrieve_response.rb +10 -8
  39. data/lib/lithic/models/parsed_webhook_event.rb +5 -1
  40. data/lib/lithic/models/payment.rb +91 -6
  41. data/lib/lithic/models/payment_list_params.rb +1 -0
  42. data/lib/lithic/models/tokenization_simulate_params.rb +2 -2
  43. data/lib/lithic/models/transaction_monitoring/case_entity.rb +13 -4
  44. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +4 -2
  45. data/lib/lithic/models/transaction_monitoring/case_update_params.rb +5 -11
  46. data/lib/lithic/models/transaction_monitoring/monitoring_case.rb +5 -11
  47. data/lib/lithic/models/transaction_monitoring/queue.rb +10 -1
  48. data/lib/lithic/models/transaction_monitoring/queue_create_params.rb +14 -1
  49. data/lib/lithic/models/transaction_monitoring/queue_update_params.rb +15 -1
  50. data/lib/lithic/models/transaction_simulate_clearing_params.rb +4 -3
  51. data/lib/lithic/models.rb +10 -0
  52. data/lib/lithic/resources/blockchain_recipients.rb +57 -0
  53. data/lib/lithic/resources/card_authorizations.rb +1 -1
  54. data/lib/lithic/resources/cards.rb +34 -2
  55. data/lib/lithic/resources/disputes_v2.rb +3 -1
  56. data/lib/lithic/resources/external_payments.rb +1 -1
  57. data/lib/lithic/resources/three_ds/decisioning.rb +1 -1
  58. data/lib/lithic/resources/tokenizations.rb +1 -1
  59. data/lib/lithic/resources/transaction_monitoring/cases.rb +2 -2
  60. data/lib/lithic/resources/transaction_monitoring/queues.rb +12 -2
  61. data/lib/lithic/resources/transactions.rb +4 -3
  62. data/lib/lithic/resources/webhooks.rb +1 -1
  63. data/lib/lithic/version.rb +1 -1
  64. data/lib/lithic.rb +6 -1
  65. data/rbi/lithic/client.rbi +3 -0
  66. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  67. data/rbi/lithic/models/account_activity_list_response.rbi +10 -0
  68. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +10 -0
  69. data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +5 -0
  70. data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +5 -0
  71. data/rbi/lithic/models/auth_rules/conditional_ach_action_parameters.rbi +8 -0
  72. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +10 -0
  73. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +30 -0
  74. data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +2 -2
  75. data/rbi/lithic/models/blockchain_recipient.rbi +209 -0
  76. data/rbi/lithic/models/blockchain_recipient_create_params.rbi +102 -0
  77. data/rbi/lithic/models/book_transfer_create_params.rbi +20 -0
  78. data/rbi/lithic/models/book_transfer_list_params.rbi +5 -0
  79. data/rbi/lithic/models/book_transfer_response.rbi +20 -0
  80. data/rbi/lithic/models/card.rbi +2 -2
  81. data/rbi/lithic/models/card_provision_params.rbi +16 -12
  82. data/rbi/lithic/models/card_reassign_account_params.rbi +49 -0
  83. data/rbi/lithic/models/dispute_v2.rbi +285 -181
  84. data/rbi/lithic/models/disputes_v2_list_params.rbi +13 -0
  85. data/rbi/lithic/models/embed_session_generated_webhook_event.rbi +157 -0
  86. data/rbi/lithic/models/embed_viewed_webhook_event.rbi +146 -0
  87. data/rbi/lithic/models/event.rbi +70 -18
  88. data/rbi/lithic/models/event_list_params.rbi +31 -6
  89. data/rbi/lithic/models/event_subscription.rbi +31 -6
  90. data/rbi/lithic/models/events/subscription_create_params.rbi +31 -6
  91. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
  92. data/rbi/lithic/models/events/subscription_update_params.rbi +31 -6
  93. data/rbi/lithic/models/external_payment_list_params.rbi +3 -3
  94. data/rbi/lithic/models/financial_account.rbi +12 -0
  95. data/rbi/lithic/models/financial_accounts/balance_list_params.rbi +8 -6
  96. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +50 -0
  97. data/rbi/lithic/models/financial_event.rbi +34 -0
  98. data/rbi/lithic/models/fraud/transaction_report_response.rbi +16 -29
  99. data/rbi/lithic/models/fraud/transaction_retrieve_response.rbi +16 -29
  100. data/rbi/lithic/models/parsed_webhook_event.rbi +2 -0
  101. data/rbi/lithic/models/payment.rbi +147 -4
  102. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  103. data/rbi/lithic/models/tokenization_simulate_params.rbi +2 -2
  104. data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +27 -5
  105. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +6 -2
  106. data/rbi/lithic/models/transaction_monitoring/case_update_params.rbi +8 -33
  107. data/rbi/lithic/models/transaction_monitoring/monitoring_case.rbi +7 -31
  108. data/rbi/lithic/models/transaction_monitoring/queue.rbi +10 -0
  109. data/rbi/lithic/models/transaction_monitoring/queue_create_params.rbi +12 -0
  110. data/rbi/lithic/models/transaction_monitoring/queue_update_params.rbi +14 -0
  111. data/rbi/lithic/models/transaction_simulate_clearing_params.rbi +8 -6
  112. data/rbi/lithic/models.rbi +12 -0
  113. data/rbi/lithic/resources/blockchain_recipients.rbi +51 -0
  114. data/rbi/lithic/resources/card_authorizations.rbi +1 -1
  115. data/rbi/lithic/resources/cards.rbi +30 -6
  116. data/rbi/lithic/resources/disputes_v2.rbi +4 -0
  117. data/rbi/lithic/resources/external_payments.rbi +1 -1
  118. data/rbi/lithic/resources/financial_accounts/balances.rbi +4 -3
  119. data/rbi/lithic/resources/three_ds/decisioning.rbi +1 -1
  120. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  121. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +6 -11
  122. data/rbi/lithic/resources/transaction_monitoring/queues.rbi +11 -0
  123. data/rbi/lithic/resources/transactions.rbi +8 -6
  124. data/rbi/lithic/resources/webhooks.rbi +2 -0
  125. data/sig/lithic/client.rbs +2 -0
  126. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  127. data/sig/lithic/models/account_activity_list_response.rbs +4 -0
  128. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +4 -0
  129. data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +2 -1
  130. data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +2 -1
  131. data/sig/lithic/models/auth_rules/conditional_ach_action_parameters.rbs +2 -0
  132. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +4 -2
  133. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +10 -0
  134. data/sig/lithic/models/blockchain_recipient.rbs +106 -0
  135. data/sig/lithic/models/blockchain_recipient_create_params.rbs +60 -0
  136. data/sig/lithic/models/book_transfer_create_params.rbs +8 -0
  137. data/sig/lithic/models/book_transfer_list_params.rbs +2 -0
  138. data/sig/lithic/models/book_transfer_response.rbs +8 -0
  139. data/sig/lithic/models/card_reassign_account_params.rbs +28 -0
  140. data/sig/lithic/models/dispute_v2.rbs +145 -101
  141. data/sig/lithic/models/disputes_v2_list_params.rbs +7 -0
  142. data/sig/lithic/models/embed_session_generated_webhook_event.rbs +66 -0
  143. data/sig/lithic/models/embed_viewed_webhook_event.rbs +68 -0
  144. data/sig/lithic/models/event.rbs +4 -0
  145. data/sig/lithic/models/event_list_params.rbs +4 -0
  146. data/sig/lithic/models/event_subscription.rbs +4 -0
  147. data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
  148. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
  149. data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
  150. data/sig/lithic/models/financial_account.rbs +5 -0
  151. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +20 -0
  152. data/sig/lithic/models/financial_event.rbs +16 -0
  153. data/sig/lithic/models/fraud/transaction_report_response.rbs +16 -26
  154. data/sig/lithic/models/fraud/transaction_retrieve_response.rbs +16 -26
  155. data/sig/lithic/models/parsed_webhook_event.rbs +2 -0
  156. data/sig/lithic/models/payment.rbs +46 -1
  157. data/sig/lithic/models/payment_list_params.rbs +2 -1
  158. data/sig/lithic/models/transaction_monitoring/case_entity.rbs +7 -5
  159. data/sig/lithic/models/transaction_monitoring/case_update_params.rbs +5 -7
  160. data/sig/lithic/models/transaction_monitoring/monitoring_case.rbs +4 -4
  161. data/sig/lithic/models/transaction_monitoring/queue.rbs +5 -0
  162. data/sig/lithic/models/transaction_monitoring/queue_create_params.rbs +9 -1
  163. data/sig/lithic/models/transaction_monitoring/queue_update_params.rbs +10 -1
  164. data/sig/lithic/models.rbs +10 -0
  165. data/sig/lithic/resources/blockchain_recipients.rbs +18 -0
  166. data/sig/lithic/resources/cards.rbs +6 -0
  167. data/sig/lithic/resources/disputes_v2.rbs +1 -0
  168. data/sig/lithic/resources/transaction_monitoring/cases.rbs +1 -1
  169. data/sig/lithic/resources/transaction_monitoring/queues.rbs +2 -0
  170. data/sig/lithic/resources/webhooks.rbs +2 -0
  171. metadata +20 -5
  172. data/lib/lithic/models/transaction_monitoring/resolution_outcome.rb +0 -28
  173. data/rbi/lithic/models/transaction_monitoring/resolution_outcome.rbi +0 -61
  174. data/sig/lithic/models/transaction_monitoring/resolution_outcome.rbs +0 -24
@@ -0,0 +1,209 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class BlockchainRecipient < Lithic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Lithic::BlockchainRecipient, Lithic::Internal::AnyHash)
9
+ end
10
+
11
+ # A globally unique identifier for this blockchain recipient
12
+ sig { returns(String) }
13
+ attr_accessor :token
14
+
15
+ # The financial account the blockchain recipient belongs to, or null when the
16
+ # recipient is registered against the program rather than a financial account
17
+ sig { returns(T.nilable(String)) }
18
+ attr_accessor :account_token
19
+
20
+ # An optional tag or memo used by some chains to identify the destination of a
21
+ # transfer within a shared address
22
+ sig { returns(T.nilable(String)) }
23
+ attr_accessor :address_tag
24
+
25
+ # The blockchain network that the address belongs to
26
+ sig { returns(String) }
27
+ attr_accessor :chain
28
+
29
+ # An ISO 8601 string representing when this blockchain recipient was created
30
+ sig { returns(Time) }
31
+ attr_accessor :created
32
+
33
+ # The identifier the recipient is registered under with the payment provider
34
+ sig { returns(T.nilable(String)) }
35
+ attr_accessor :external_id
36
+
37
+ # The nickname for this blockchain recipient
38
+ sig { returns(T.nilable(String)) }
39
+ attr_accessor :name
40
+
41
+ # Legal name of the business or individual who owns the blockchain address
42
+ sig { returns(String) }
43
+ attr_accessor :owner
44
+
45
+ # Owner Type
46
+ sig { returns(Lithic::OwnerType::TaggedSymbol) }
47
+ attr_accessor :owner_type
48
+
49
+ # Globally unique identifier for the program the blockchain recipient is
50
+ # associated with
51
+ sig { returns(String) }
52
+ attr_accessor :program_id
53
+
54
+ # Account State
55
+ sig { returns(Lithic::BlockchainRecipient::State::TaggedSymbol) }
56
+ attr_accessor :state
57
+
58
+ # An ISO 8601 string representing when this blockchain recipient was last updated
59
+ sig { returns(Time) }
60
+ attr_accessor :updated
61
+
62
+ # Verification State
63
+ sig do
64
+ returns(Lithic::BlockchainRecipient::VerificationState::TaggedSymbol)
65
+ end
66
+ attr_accessor :verification_state
67
+
68
+ sig do
69
+ params(
70
+ token: String,
71
+ account_token: T.nilable(String),
72
+ address_tag: T.nilable(String),
73
+ chain: String,
74
+ created: Time,
75
+ external_id: T.nilable(String),
76
+ name: T.nilable(String),
77
+ owner: String,
78
+ owner_type: Lithic::OwnerType::OrSymbol,
79
+ program_id: String,
80
+ state: Lithic::BlockchainRecipient::State::OrSymbol,
81
+ updated: Time,
82
+ verification_state:
83
+ Lithic::BlockchainRecipient::VerificationState::OrSymbol
84
+ ).returns(T.attached_class)
85
+ end
86
+ def self.new(
87
+ # A globally unique identifier for this blockchain recipient
88
+ token:,
89
+ # The financial account the blockchain recipient belongs to, or null when the
90
+ # recipient is registered against the program rather than a financial account
91
+ account_token:,
92
+ # An optional tag or memo used by some chains to identify the destination of a
93
+ # transfer within a shared address
94
+ address_tag:,
95
+ # The blockchain network that the address belongs to
96
+ chain:,
97
+ # An ISO 8601 string representing when this blockchain recipient was created
98
+ created:,
99
+ # The identifier the recipient is registered under with the payment provider
100
+ external_id:,
101
+ # The nickname for this blockchain recipient
102
+ name:,
103
+ # Legal name of the business or individual who owns the blockchain address
104
+ owner:,
105
+ # Owner Type
106
+ owner_type:,
107
+ # Globally unique identifier for the program the blockchain recipient is
108
+ # associated with
109
+ program_id:,
110
+ # Account State
111
+ state:,
112
+ # An ISO 8601 string representing when this blockchain recipient was last updated
113
+ updated:,
114
+ # Verification State
115
+ verification_state:
116
+ )
117
+ end
118
+
119
+ sig do
120
+ override.returns(
121
+ {
122
+ token: String,
123
+ account_token: T.nilable(String),
124
+ address_tag: T.nilable(String),
125
+ chain: String,
126
+ created: Time,
127
+ external_id: T.nilable(String),
128
+ name: T.nilable(String),
129
+ owner: String,
130
+ owner_type: Lithic::OwnerType::TaggedSymbol,
131
+ program_id: String,
132
+ state: Lithic::BlockchainRecipient::State::TaggedSymbol,
133
+ updated: Time,
134
+ verification_state:
135
+ Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
136
+ }
137
+ )
138
+ end
139
+ def to_hash
140
+ end
141
+
142
+ # Account State
143
+ module State
144
+ extend Lithic::Internal::Type::Enum
145
+
146
+ TaggedSymbol =
147
+ T.type_alias { T.all(Symbol, Lithic::BlockchainRecipient::State) }
148
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
149
+
150
+ ENABLED =
151
+ T.let(:ENABLED, Lithic::BlockchainRecipient::State::TaggedSymbol)
152
+ CLOSED =
153
+ T.let(:CLOSED, Lithic::BlockchainRecipient::State::TaggedSymbol)
154
+ PAUSED =
155
+ T.let(:PAUSED, Lithic::BlockchainRecipient::State::TaggedSymbol)
156
+
157
+ sig do
158
+ override.returns(
159
+ T::Array[Lithic::BlockchainRecipient::State::TaggedSymbol]
160
+ )
161
+ end
162
+ def self.values
163
+ end
164
+ end
165
+
166
+ # Verification State
167
+ module VerificationState
168
+ extend Lithic::Internal::Type::Enum
169
+
170
+ TaggedSymbol =
171
+ T.type_alias do
172
+ T.all(Symbol, Lithic::BlockchainRecipient::VerificationState)
173
+ end
174
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
175
+
176
+ PENDING =
177
+ T.let(
178
+ :PENDING,
179
+ Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
180
+ )
181
+ ENABLED =
182
+ T.let(
183
+ :ENABLED,
184
+ Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
185
+ )
186
+ FAILED_VERIFICATION =
187
+ T.let(
188
+ :FAILED_VERIFICATION,
189
+ Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
190
+ )
191
+ INSUFFICIENT_FUNDS =
192
+ T.let(
193
+ :INSUFFICIENT_FUNDS,
194
+ Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
195
+ )
196
+
197
+ sig do
198
+ override.returns(
199
+ T::Array[
200
+ Lithic::BlockchainRecipient::VerificationState::TaggedSymbol
201
+ ]
202
+ )
203
+ end
204
+ def self.values
205
+ end
206
+ end
207
+ end
208
+ end
209
+ end
@@ -0,0 +1,102 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class BlockchainRecipientCreateParams < Lithic::Internal::Type::BaseModel
6
+ extend Lithic::Internal::Type::RequestParameters::Converter
7
+ include Lithic::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Lithic::BlockchainRecipientCreateParams,
13
+ Lithic::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The financial account the blockchain recipient belongs to
18
+ sig { returns(String) }
19
+ attr_accessor :account_token
20
+
21
+ # The blockchain address funds will be withdrawn to
22
+ sig { returns(String) }
23
+ attr_accessor :address
24
+
25
+ # The blockchain network that the address belongs to
26
+ sig { returns(String) }
27
+ attr_accessor :chain
28
+
29
+ # Legal name of the business or individual who owns the blockchain address
30
+ sig { returns(String) }
31
+ attr_accessor :owner
32
+
33
+ # Owner Type
34
+ sig { returns(Lithic::OwnerType::OrSymbol) }
35
+ attr_accessor :owner_type
36
+
37
+ # An optional tag or memo used by some chains to identify the destination of a
38
+ # transfer within a shared address
39
+ sig { returns(T.nilable(String)) }
40
+ attr_reader :address_tag
41
+
42
+ sig { params(address_tag: String).void }
43
+ attr_writer :address_tag
44
+
45
+ # The nickname for this blockchain recipient
46
+ sig { returns(T.nilable(String)) }
47
+ attr_reader :name
48
+
49
+ sig { params(name: String).void }
50
+ attr_writer :name
51
+
52
+ sig do
53
+ params(
54
+ account_token: String,
55
+ address: String,
56
+ chain: String,
57
+ owner: String,
58
+ owner_type: Lithic::OwnerType::OrSymbol,
59
+ address_tag: String,
60
+ name: String,
61
+ request_options: Lithic::RequestOptions::OrHash
62
+ ).returns(T.attached_class)
63
+ end
64
+ def self.new(
65
+ # The financial account the blockchain recipient belongs to
66
+ account_token:,
67
+ # The blockchain address funds will be withdrawn to
68
+ address:,
69
+ # The blockchain network that the address belongs to
70
+ chain:,
71
+ # Legal name of the business or individual who owns the blockchain address
72
+ owner:,
73
+ # Owner Type
74
+ owner_type:,
75
+ # An optional tag or memo used by some chains to identify the destination of a
76
+ # transfer within a shared address
77
+ address_tag: nil,
78
+ # The nickname for this blockchain recipient
79
+ name: nil,
80
+ request_options: {}
81
+ )
82
+ end
83
+
84
+ sig do
85
+ override.returns(
86
+ {
87
+ account_token: String,
88
+ address: String,
89
+ chain: String,
90
+ owner: String,
91
+ owner_type: Lithic::OwnerType::OrSymbol,
92
+ address_tag: String,
93
+ name: String,
94
+ request_options: Lithic::RequestOptions
95
+ }
96
+ )
97
+ end
98
+ def to_hash
99
+ end
100
+ end
101
+ end
102
+ end
@@ -197,6 +197,11 @@ module Lithic
197
197
  :PROGRAM_FUNDING,
198
198
  Lithic::BookTransferCreateParams::Category::TaggedSymbol
199
199
  )
200
+ PROGRAM_TRANSFER =
201
+ T.let(
202
+ :PROGRAM_TRANSFER,
203
+ Lithic::BookTransferCreateParams::Category::TaggedSymbol
204
+ )
200
205
  TRANSFER =
201
206
  T.let(
202
207
  :TRANSFER,
@@ -311,6 +316,11 @@ module Lithic
311
316
  :BILL_PAYMENT,
312
317
  Lithic::BookTransferCreateParams::Type::TaggedSymbol
313
318
  )
319
+ PAYMENT_FEE =
320
+ T.let(
321
+ :PAYMENT_FEE,
322
+ Lithic::BookTransferCreateParams::Type::TaggedSymbol
323
+ )
314
324
  CASH_BACK =
315
325
  T.let(
316
326
  :CASH_BACK,
@@ -377,6 +387,16 @@ module Lithic
377
387
  :COLLECTION,
378
388
  Lithic::BookTransferCreateParams::Type::TaggedSymbol
379
389
  )
390
+ LITHIC_PROGRAM_TRANSFER =
391
+ T.let(
392
+ :LITHIC_PROGRAM_TRANSFER,
393
+ Lithic::BookTransferCreateParams::Type::TaggedSymbol
394
+ )
395
+ BANK_PROGRAM_TRANSFER =
396
+ T.let(
397
+ :BANK_PROGRAM_TRANSFER,
398
+ Lithic::BookTransferCreateParams::Type::TaggedSymbol
399
+ )
380
400
 
381
401
  sig do
382
402
  override.returns(
@@ -216,6 +216,11 @@ module Lithic
216
216
  :PROGRAM_FUNDING,
217
217
  Lithic::BookTransferListParams::Category::TaggedSymbol
218
218
  )
219
+ PROGRAM_TRANSFER =
220
+ T.let(
221
+ :PROGRAM_TRANSFER,
222
+ Lithic::BookTransferListParams::Category::TaggedSymbol
223
+ )
219
224
  TRANSFER =
220
225
  T.let(
221
226
  :TRANSFER,
@@ -219,6 +219,11 @@ module Lithic
219
219
  :PROGRAM_FUNDING,
220
220
  Lithic::BookTransferResponse::Category::TaggedSymbol
221
221
  )
222
+ PROGRAM_TRANSFER =
223
+ T.let(
224
+ :PROGRAM_TRANSFER,
225
+ Lithic::BookTransferResponse::Category::TaggedSymbol
226
+ )
222
227
  TRANSFER =
223
228
  T.let(:TRANSFER, Lithic::BookTransferResponse::Category::TaggedSymbol)
224
229
 
@@ -512,6 +517,11 @@ module Lithic
512
517
  :BILL_PAYMENT,
513
518
  Lithic::BookTransferResponse::Event::Type::TaggedSymbol
514
519
  )
520
+ PAYMENT_FEE =
521
+ T.let(
522
+ :PAYMENT_FEE,
523
+ Lithic::BookTransferResponse::Event::Type::TaggedSymbol
524
+ )
515
525
  CASH_BACK =
516
526
  T.let(
517
527
  :CASH_BACK,
@@ -587,6 +597,16 @@ module Lithic
587
597
  :COLLECTION,
588
598
  Lithic::BookTransferResponse::Event::Type::TaggedSymbol
589
599
  )
600
+ LITHIC_PROGRAM_TRANSFER =
601
+ T.let(
602
+ :LITHIC_PROGRAM_TRANSFER,
603
+ Lithic::BookTransferResponse::Event::Type::TaggedSymbol
604
+ )
605
+ BANK_PROGRAM_TRANSFER =
606
+ T.let(
607
+ :BANK_PROGRAM_TRANSFER,
608
+ Lithic::BookTransferResponse::Event::Type::TaggedSymbol
609
+ )
590
610
 
591
611
  sig do
592
612
  override.returns(
@@ -5,7 +5,7 @@ module Lithic
5
5
  class Card < Lithic::Models::NonPCICard
6
6
  OrHash = T.type_alias { T.any(Lithic::Card, Lithic::Internal::AnyHash) }
7
7
 
8
- # Three digit cvv printed on the back of the card.
8
+ # Three or four digit CVV printed on the card. Amex cards use four digit CVVs
9
9
  sig { returns(T.nilable(String)) }
10
10
  attr_reader :cvv
11
11
 
@@ -24,7 +24,7 @@ module Lithic
24
24
  # Card details with potentially PCI sensitive information for Enterprise customers
25
25
  sig { params(cvv: String, pan: String).returns(T.attached_class) }
26
26
  def self.new(
27
- # Three digit cvv printed on the back of the card.
27
+ # Three or four digit CVV printed on the card. Amex cards use four digit CVVs
28
28
  cvv: nil,
29
29
  # Primary Account Number (PAN) (i.e. the card number). Customers must be PCI
30
30
  # compliant to have PAN returned as a field in production. Please contact
@@ -24,18 +24,20 @@ module Lithic
24
24
  sig { params(certificate: String).void }
25
25
  attr_writer :certificate
26
26
 
27
- # Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY` and the
28
- # card is on the Visa network. Stable device identification set by the wallet
29
- # provider.
27
+ # Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Stable
28
+ # device identification set by the wallet provider. Required for both wallets
29
+ # regardless of network, though the value is only used for cards on the Visa
30
+ # network and is ignored on Amex and Mastercard.
30
31
  sig { returns(T.nilable(String)) }
31
32
  attr_reader :client_device_id
32
33
 
33
34
  sig { params(client_device_id: String).void }
34
35
  attr_writer :client_device_id
35
36
 
36
- # Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY` and the
37
- # card is on the Visa network. Consumer ID that identifies the wallet account
38
- # holder entity.
37
+ # Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Consumer
38
+ # ID that identifies the wallet account holder entity. Required for both wallets
39
+ # regardless of network, though the value is only used for cards on the Visa
40
+ # network and is ignored on Amex and Mastercard.
39
41
  sig { returns(T.nilable(String)) }
40
42
  attr_reader :client_wallet_account_id
41
43
 
@@ -92,13 +94,15 @@ module Lithic
92
94
  # encoded in PEM format with headers `(-----BEGIN CERTIFICATE-----)` and trailers
93
95
  # omitted. Provided by the device's wallet.
94
96
  certificate: nil,
95
- # Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY` and the
96
- # card is on the Visa network. Stable device identification set by the wallet
97
- # provider.
97
+ # Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Stable
98
+ # device identification set by the wallet provider. Required for both wallets
99
+ # regardless of network, though the value is only used for cards on the Visa
100
+ # network and is ignored on Amex and Mastercard.
98
101
  client_device_id: nil,
99
- # Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY` and the
100
- # card is on the Visa network. Consumer ID that identifies the wallet account
101
- # holder entity.
102
+ # Only applicable if `digital_wallet` is `GOOGLE_PAY` or `SAMSUNG_PAY`. Consumer
103
+ # ID that identifies the wallet account holder entity. Required for both wallets
104
+ # regardless of network, though the value is only used for cards on the Visa
105
+ # network and is ignored on Amex and Mastercard.
102
106
  client_wallet_account_id: nil,
103
107
  # Name of digital wallet provider.
104
108
  digital_wallet: nil,
@@ -0,0 +1,49 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardReassignAccountParams < Lithic::Internal::Type::BaseModel
6
+ extend Lithic::Internal::Type::RequestParameters::Converter
7
+ include Lithic::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Lithic::CardReassignAccountParams, Lithic::Internal::AnyHash)
12
+ end
13
+
14
+ sig { returns(String) }
15
+ attr_accessor :card_token
16
+
17
+ # Globally unique identifier for the account to associate with the card
18
+ sig { returns(String) }
19
+ attr_accessor :new_account_token
20
+
21
+ sig do
22
+ params(
23
+ card_token: String,
24
+ new_account_token: String,
25
+ request_options: Lithic::RequestOptions::OrHash
26
+ ).returns(T.attached_class)
27
+ end
28
+ def self.new(
29
+ card_token:,
30
+ # Globally unique identifier for the account to associate with the card
31
+ new_account_token:,
32
+ request_options: {}
33
+ )
34
+ end
35
+
36
+ sig do
37
+ override.returns(
38
+ {
39
+ card_token: String,
40
+ new_account_token: String,
41
+ request_options: Lithic::RequestOptions
42
+ }
43
+ )
44
+ end
45
+ def to_hash
46
+ end
47
+ end
48
+ end
49
+ end