lithic 0.19.0 → 0.21.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 (191) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +61 -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 +1 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +1 -0
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1 -0
  8. data/lib/lithic/models/auth_rules/ach_payment_update_action.rb +1 -0
  9. data/lib/lithic/models/auth_rules/auth_rule.rb +5 -0
  10. data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +1 -0
  11. data/lib/lithic/models/auth_rules/report_stats.rb +1 -0
  12. data/lib/lithic/models/auth_rules/v2_create_params.rb +15 -0
  13. data/lib/lithic/models/auth_rules/v2_list_results_response.rb +3 -0
  14. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +24 -1
  15. data/lib/lithic/models/blockchain_recipient.rb +148 -0
  16. data/lib/lithic/models/blockchain_recipient_create_params.rb +74 -0
  17. data/lib/lithic/models/blockchain_recipient_retrieve_params.rb +20 -0
  18. data/lib/lithic/models/card.rb +2 -2
  19. data/lib/lithic/models/card_pin_updated_webhook_event.rb +87 -0
  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/event.rb +5 -0
  25. data/lib/lithic/models/event_list_params.rb +3 -0
  26. data/lib/lithic/models/event_subscription.rb +3 -0
  27. data/lib/lithic/models/events/subscription_create_params.rb +3 -0
  28. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  29. data/lib/lithic/models/events/subscription_update_params.rb +3 -0
  30. data/lib/lithic/models/external_payment.rb +6 -0
  31. data/lib/lithic/models/external_payment_create_params.rb +1 -0
  32. data/lib/lithic/models/external_payment_list_params.rb +1 -0
  33. data/lib/lithic/models/financial_account.rb +14 -1
  34. data/lib/lithic/models/financial_accounts/installment_plan.rb +311 -0
  35. data/lib/lithic/models/financial_accounts/installment_plan_list_params.rb +75 -0
  36. data/lib/lithic/models/financial_accounts/installment_plan_retrieve_params.rb +32 -0
  37. data/lib/lithic/models/financial_accounts/open_to_buy.rb +36 -0
  38. data/lib/lithic/models/financial_accounts/open_to_buy_retrieve_params.rb +22 -0
  39. data/lib/lithic/models/financial_accounts/open_to_buy_summary.rb +46 -0
  40. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +13 -0
  41. data/lib/lithic/models/financial_accounts/transaction_category_balances.rb +34 -0
  42. data/lib/lithic/models/financial_event.rb +12 -0
  43. data/lib/lithic/models/management_operation_create_params.rb +4 -0
  44. data/lib/lithic/models/management_operation_transaction.rb +4 -0
  45. data/lib/lithic/models/parsed_webhook_event.rb +3 -1
  46. data/lib/lithic/models/payment.rb +68 -9
  47. data/lib/lithic/models/payment_create_stablecoin_params.rb +99 -0
  48. data/lib/lithic/models/payment_create_stablecoin_response.rb +19 -0
  49. data/lib/lithic/models/payment_list_params.rb +1 -0
  50. data/lib/lithic/models/payment_retry_params.rb +28 -1
  51. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  52. data/lib/lithic/models/three_ds_authentication.rb +126 -1
  53. data/lib/lithic/models/tokenization_simulate_params.rb +2 -2
  54. data/lib/lithic/models/transaction.rb +2 -0
  55. data/lib/lithic/models/transaction_monitoring/case_entity.rb +13 -4
  56. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +4 -2
  57. data/lib/lithic/models.rb +12 -0
  58. data/lib/lithic/resources/blockchain_recipients.rb +80 -0
  59. data/lib/lithic/resources/cards.rb +33 -4
  60. data/lib/lithic/resources/disputes_v2.rb +3 -1
  61. data/lib/lithic/resources/financial_accounts/installment_plans.rb +82 -0
  62. data/lib/lithic/resources/financial_accounts/open_to_buy.rb +48 -0
  63. data/lib/lithic/resources/financial_accounts.rb +8 -0
  64. data/lib/lithic/resources/payments.rb +71 -3
  65. data/lib/lithic/resources/tokenizations.rb +1 -1
  66. data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
  67. data/lib/lithic/version.rb +1 -1
  68. data/lib/lithic.rb +17 -0
  69. data/rbi/lithic/client.rbi +3 -0
  70. data/rbi/lithic/models/account_activity_list_params.rbi +5 -0
  71. data/rbi/lithic/models/account_activity_list_response.rbi +5 -0
  72. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +5 -0
  73. data/rbi/lithic/models/auth_rules/ach_payment_update_action.rbi +5 -0
  74. data/rbi/lithic/models/auth_rules/auth_rule.rbi +7 -0
  75. data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +5 -0
  76. data/rbi/lithic/models/auth_rules/report_stats.rbi +5 -0
  77. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +33 -0
  78. data/rbi/lithic/models/auth_rules/v2_list_results_response.rbi +15 -0
  79. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +30 -0
  80. data/rbi/lithic/models/blockchain_recipient.rbi +209 -0
  81. data/rbi/lithic/models/blockchain_recipient_create_params.rbi +102 -0
  82. data/rbi/lithic/models/blockchain_recipient_retrieve_params.rbi +41 -0
  83. data/rbi/lithic/models/card.rbi +2 -2
  84. data/rbi/lithic/models/card_pin_updated_webhook_event.rbi +166 -0
  85. data/rbi/lithic/models/card_provision_params.rbi +16 -12
  86. data/rbi/lithic/models/card_reassign_account_params.rbi +49 -0
  87. data/rbi/lithic/models/dispute_v2.rbi +285 -181
  88. data/rbi/lithic/models/disputes_v2_list_params.rbi +13 -0
  89. data/rbi/lithic/models/event.rbi +8 -0
  90. data/rbi/lithic/models/event_list_params.rbi +7 -0
  91. data/rbi/lithic/models/event_subscription.rbi +7 -0
  92. data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
  93. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  94. data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
  95. data/rbi/lithic/models/external_payment.rbi +30 -0
  96. data/rbi/lithic/models/external_payment_create_params.rbi +5 -0
  97. data/rbi/lithic/models/external_payment_list_params.rbi +5 -0
  98. data/rbi/lithic/models/financial_account.rbi +12 -0
  99. data/rbi/lithic/models/financial_accounts/installment_plan.rbi +528 -0
  100. data/rbi/lithic/models/financial_accounts/installment_plan_list_params.rbi +155 -0
  101. data/rbi/lithic/models/financial_accounts/installment_plan_retrieve_params.rbi +56 -0
  102. data/rbi/lithic/models/financial_accounts/open_to_buy.rbi +64 -0
  103. data/rbi/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbi +43 -0
  104. data/rbi/lithic/models/financial_accounts/open_to_buy_summary.rbi +73 -0
  105. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +65 -0
  106. data/rbi/lithic/models/financial_accounts/transaction_category_balances.rbi +81 -0
  107. data/rbi/lithic/models/financial_event.rbi +47 -0
  108. data/rbi/lithic/models/management_operation_create_params.rbi +20 -0
  109. data/rbi/lithic/models/management_operation_transaction.rbi +20 -0
  110. data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
  111. data/rbi/lithic/models/payment.rbi +108 -10
  112. data/rbi/lithic/models/payment_create_stablecoin_params.rbi +162 -0
  113. data/rbi/lithic/models/payment_create_stablecoin_response.rbi +34 -0
  114. data/rbi/lithic/models/payment_list_params.rbi +2 -0
  115. data/rbi/lithic/models/payment_retry_params.rbi +47 -2
  116. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  117. data/rbi/lithic/models/three_ds_authentication.rbi +292 -0
  118. data/rbi/lithic/models/tokenization_simulate_params.rbi +2 -2
  119. data/rbi/lithic/models/transaction.rbi +10 -0
  120. data/rbi/lithic/models/transaction_monitoring/case_entity.rbi +27 -5
  121. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +6 -2
  122. data/rbi/lithic/models.rbi +14 -0
  123. data/rbi/lithic/resources/blockchain_recipients.rbi +65 -0
  124. data/rbi/lithic/resources/cards.rbi +31 -8
  125. data/rbi/lithic/resources/disputes_v2.rbi +4 -0
  126. data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +66 -0
  127. data/rbi/lithic/resources/financial_accounts/open_to_buy.rbi +40 -0
  128. data/rbi/lithic/resources/financial_accounts.rbi +6 -0
  129. data/rbi/lithic/resources/payments.rbi +68 -2
  130. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  131. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +3 -1
  132. data/rbi/lithic/resources/webhooks.rbi +1 -0
  133. data/sig/lithic/client.rbs +2 -0
  134. data/sig/lithic/models/account_activity_list_params.rbs +2 -0
  135. data/sig/lithic/models/account_activity_list_response.rbs +2 -0
  136. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +2 -0
  137. data/sig/lithic/models/auth_rules/ach_payment_update_action.rbs +2 -1
  138. data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
  139. data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +2 -1
  140. data/sig/lithic/models/auth_rules/report_stats.rbs +2 -0
  141. data/sig/lithic/models/auth_rules/v2_create_params.rbs +6 -0
  142. data/sig/lithic/models/auth_rules/v2_list_results_response.rbs +6 -2
  143. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +10 -0
  144. data/sig/lithic/models/blockchain_recipient.rbs +106 -0
  145. data/sig/lithic/models/blockchain_recipient_create_params.rbs +60 -0
  146. data/sig/lithic/models/blockchain_recipient_retrieve_params.rbs +24 -0
  147. data/sig/lithic/models/card_pin_updated_webhook_event.rbs +60 -0
  148. data/sig/lithic/models/card_reassign_account_params.rbs +28 -0
  149. data/sig/lithic/models/dispute_v2.rbs +145 -101
  150. data/sig/lithic/models/disputes_v2_list_params.rbs +7 -0
  151. data/sig/lithic/models/event.rbs +2 -0
  152. data/sig/lithic/models/event_list_params.rbs +2 -0
  153. data/sig/lithic/models/event_subscription.rbs +2 -0
  154. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  155. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  156. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  157. data/sig/lithic/models/external_payment.rbs +12 -0
  158. data/sig/lithic/models/external_payment_create_params.rbs +2 -0
  159. data/sig/lithic/models/external_payment_list_params.rbs +2 -0
  160. data/sig/lithic/models/financial_account.rbs +5 -0
  161. data/sig/lithic/models/financial_accounts/installment_plan.rbs +227 -0
  162. data/sig/lithic/models/financial_accounts/installment_plan_list_params.rbs +69 -0
  163. data/sig/lithic/models/financial_accounts/installment_plan_retrieve_params.rbs +30 -0
  164. data/sig/lithic/models/financial_accounts/open_to_buy.rbs +27 -0
  165. data/sig/lithic/models/financial_accounts/open_to_buy_retrieve_params.rbs +26 -0
  166. data/sig/lithic/models/financial_accounts/open_to_buy_summary.rbs +32 -0
  167. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +26 -0
  168. data/sig/lithic/models/financial_accounts/transaction_category_balances.rbs +32 -0
  169. data/sig/lithic/models/financial_event.rbs +24 -0
  170. data/sig/lithic/models/management_operation_create_params.rbs +8 -0
  171. data/sig/lithic/models/management_operation_transaction.rbs +8 -0
  172. data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
  173. data/sig/lithic/models/payment.rbs +33 -1
  174. data/sig/lithic/models/payment_create_stablecoin_params.rbs +84 -0
  175. data/sig/lithic/models/payment_create_stablecoin_response.rbs +15 -0
  176. data/sig/lithic/models/payment_list_params.rbs +2 -1
  177. data/sig/lithic/models/payment_retry_params.rbs +24 -1
  178. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  179. data/sig/lithic/models/three_ds_authentication.rbs +77 -0
  180. data/sig/lithic/models/transaction.rbs +4 -0
  181. data/sig/lithic/models/transaction_monitoring/case_entity.rbs +7 -5
  182. data/sig/lithic/models.rbs +12 -0
  183. data/sig/lithic/resources/blockchain_recipients.rbs +23 -0
  184. data/sig/lithic/resources/cards.rbs +6 -0
  185. data/sig/lithic/resources/disputes_v2.rbs +1 -0
  186. data/sig/lithic/resources/financial_accounts/installment_plans.rbs +24 -0
  187. data/sig/lithic/resources/financial_accounts/open_to_buy.rbs +14 -0
  188. data/sig/lithic/resources/financial_accounts.rbs +4 -0
  189. data/sig/lithic/resources/payments.rbs +12 -0
  190. data/sig/lithic/resources/webhooks.rbs +1 -0
  191. metadata +53 -2
@@ -0,0 +1,24 @@
1
+ module Lithic
2
+ module Models
3
+ type blockchain_recipient_retrieve_params =
4
+ { blockchain_recipient_token: String }
5
+ & Lithic::Internal::Type::request_parameters
6
+
7
+ class BlockchainRecipientRetrieveParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ attr_accessor blockchain_recipient_token: String
12
+
13
+ def initialize: (
14
+ blockchain_recipient_token: String,
15
+ ?request_options: Lithic::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ blockchain_recipient_token: String,
20
+ request_options: Lithic::RequestOptions
21
+ }
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,60 @@
1
+ module Lithic
2
+ module Models
3
+ type card_pin_updated_webhook_event =
4
+ {
5
+ card_token: String,
6
+ event_type: :"card.pin_updated",
7
+ pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status,
8
+ status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason
9
+ }
10
+
11
+ class CardPinUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
12
+ attr_accessor card_token: String
13
+
14
+ attr_accessor event_type: :"card.pin_updated"
15
+
16
+ attr_accessor pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status
17
+
18
+ attr_accessor status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason
19
+
20
+ def initialize: (
21
+ card_token: String,
22
+ pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status,
23
+ status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason,
24
+ ?event_type: :"card.pin_updated"
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ card_token: String,
29
+ event_type: :"card.pin_updated",
30
+ pin_status: Lithic::Models::CardPinUpdatedWebhookEvent::pin_status,
31
+ status_reason: Lithic::Models::CardPinUpdatedWebhookEvent::status_reason
32
+ }
33
+
34
+ type pin_status = :OK | :BLOCKED
35
+
36
+ module PinStatus
37
+ extend Lithic::Internal::Type::Enum
38
+
39
+ OK: :OK
40
+ BLOCKED: :BLOCKED
41
+
42
+ def self?.values: -> ::Array[Lithic::Models::CardPinUpdatedWebhookEvent::pin_status]
43
+ end
44
+
45
+ type status_reason =
46
+ :PIN_SET | :PIN_CHANGED | :PIN_UNBLOCKED | :EXCESSIVE_PIN_ATTEMPTS
47
+
48
+ module StatusReason
49
+ extend Lithic::Internal::Type::Enum
50
+
51
+ PIN_SET: :PIN_SET
52
+ PIN_CHANGED: :PIN_CHANGED
53
+ PIN_UNBLOCKED: :PIN_UNBLOCKED
54
+ EXCESSIVE_PIN_ATTEMPTS: :EXCESSIVE_PIN_ATTEMPTS
55
+
56
+ def self?.values: -> ::Array[Lithic::Models::CardPinUpdatedWebhookEvent::status_reason]
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,28 @@
1
+ module Lithic
2
+ module Models
3
+ type card_reassign_account_params =
4
+ { card_token: String, new_account_token: String }
5
+ & Lithic::Internal::Type::request_parameters
6
+
7
+ class CardReassignAccountParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ attr_accessor card_token: String
12
+
13
+ attr_accessor new_account_token: String
14
+
15
+ def initialize: (
16
+ card_token: String,
17
+ new_account_token: String,
18
+ ?request_options: Lithic::request_opts
19
+ ) -> void
20
+
21
+ def to_hash: -> {
22
+ card_token: String,
23
+ new_account_token: String,
24
+ request_options: Lithic::RequestOptions
25
+ }
26
+ end
27
+ end
28
+ end
@@ -6,10 +6,11 @@ module Lithic
6
6
  account_token: String,
7
7
  card_token: String,
8
8
  case_id: String?,
9
+ claim_token: String?,
9
10
  created: Time,
10
11
  currency: String,
11
12
  disposition: Lithic::Models::DisputeV2::disposition?,
12
- events: ::Array[Lithic::DisputeV2::Event],
13
+ events: ::Array[Lithic::Models::DisputeV2::event],
13
14
  liability_allocation: Lithic::DisputeV2::LiabilityAllocation,
14
15
  merchant: Lithic::Merchant,
15
16
  network: Lithic::Models::DisputeV2::network,
@@ -27,13 +28,15 @@ module Lithic
27
28
 
28
29
  attr_accessor case_id: String?
29
30
 
31
+ attr_accessor claim_token: String?
32
+
30
33
  attr_accessor created: Time
31
34
 
32
35
  attr_accessor currency: String
33
36
 
34
37
  attr_accessor disposition: Lithic::Models::DisputeV2::disposition?
35
38
 
36
- attr_accessor events: ::Array[Lithic::DisputeV2::Event]
39
+ attr_accessor events: ::Array[Lithic::Models::DisputeV2::event]
37
40
 
38
41
  attr_accessor liability_allocation: Lithic::DisputeV2::LiabilityAllocation
39
42
 
@@ -52,10 +55,11 @@ module Lithic
52
55
  account_token: String,
53
56
  card_token: String,
54
57
  case_id: String?,
58
+ claim_token: String?,
55
59
  created: Time,
56
60
  currency: String,
57
61
  disposition: Lithic::Models::DisputeV2::disposition?,
58
- events: ::Array[Lithic::DisputeV2::Event],
62
+ events: ::Array[Lithic::Models::DisputeV2::event],
59
63
  liability_allocation: Lithic::DisputeV2::LiabilityAllocation,
60
64
  merchant: Lithic::Merchant,
61
65
  network: Lithic::Models::DisputeV2::network,
@@ -69,10 +73,11 @@ module Lithic
69
73
  account_token: String,
70
74
  card_token: String,
71
75
  case_id: String?,
76
+ claim_token: String?,
72
77
  created: Time,
73
78
  currency: String,
74
79
  disposition: Lithic::Models::DisputeV2::disposition?,
75
- events: ::Array[Lithic::DisputeV2::Event],
80
+ events: ::Array[Lithic::Models::DisputeV2::event],
76
81
  liability_allocation: Lithic::DisputeV2::LiabilityAllocation,
77
82
  merchant: Lithic::Merchant,
78
83
  network: Lithic::Models::DisputeV2::network,
@@ -96,83 +101,78 @@ module Lithic
96
101
  end
97
102
 
98
103
  type event =
99
- {
100
- token: String,
101
- created: Time,
102
- data: Lithic::Models::DisputeV2::Event::data,
103
- type: Lithic::Models::DisputeV2::Event::type_
104
- }
104
+ Lithic::DisputeV2::Event::Workflow
105
+ | Lithic::DisputeV2::Event::Financial
106
+ | Lithic::DisputeV2::Event::CardholderLiability
105
107
 
106
- class Event < Lithic::Internal::Type::BaseModel
107
- attr_accessor token: String
108
+ module Event
109
+ extend Lithic::Internal::Type::Union
108
110
 
109
- attr_accessor created: Time
111
+ type workflow =
112
+ {
113
+ token: String,
114
+ created: Time,
115
+ data: Lithic::DisputeV2::Event::Workflow::Data,
116
+ type: :WORKFLOW
117
+ }
110
118
 
111
- attr_accessor data: Lithic::Models::DisputeV2::Event::data
119
+ class Workflow < Lithic::Internal::Type::BaseModel
120
+ attr_accessor token: String
112
121
 
113
- attr_accessor type: Lithic::Models::DisputeV2::Event::type_
122
+ attr_accessor created: Time
114
123
 
115
- def initialize: (
116
- token: String,
117
- created: Time,
118
- data: Lithic::Models::DisputeV2::Event::data,
119
- type: Lithic::Models::DisputeV2::Event::type_
120
- ) -> void
124
+ attr_accessor data: Lithic::DisputeV2::Event::Workflow::Data
121
125
 
122
- def to_hash: -> {
123
- token: String,
124
- created: Time,
125
- data: Lithic::Models::DisputeV2::Event::data,
126
- type: Lithic::Models::DisputeV2::Event::type_
127
- }
126
+ attr_accessor type: :WORKFLOW
128
127
 
129
- type data =
130
- Lithic::DisputeV2::Event::Data::Workflow
131
- | Lithic::DisputeV2::Event::Data::Financial
132
- | Lithic::DisputeV2::Event::Data::CardholderLiability
128
+ def initialize: (
129
+ token: String,
130
+ created: Time,
131
+ data: Lithic::DisputeV2::Event::Workflow::Data,
132
+ ?type: :WORKFLOW
133
+ ) -> void
133
134
 
134
- module Data
135
- extend Lithic::Internal::Type::Union
135
+ def to_hash: -> {
136
+ token: String,
137
+ created: Time,
138
+ data: Lithic::DisputeV2::Event::Workflow::Data,
139
+ type: :WORKFLOW
140
+ }
136
141
 
137
- type workflow =
142
+ type data =
138
143
  {
139
- action: Lithic::Models::DisputeV2::Event::Data::Workflow::action,
144
+ action: Lithic::Models::DisputeV2::Event::Workflow::Data::action,
140
145
  amount: Integer?,
141
- disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?,
146
+ disposition: Lithic::Models::DisputeV2::Event::Workflow::Data::disposition?,
142
147
  reason: String?,
143
- stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage,
144
- type: :WORKFLOW
148
+ stage: Lithic::Models::DisputeV2::Event::Workflow::Data::stage
145
149
  }
146
150
 
147
- class Workflow < Lithic::Internal::Type::BaseModel
148
- attr_accessor action: Lithic::Models::DisputeV2::Event::Data::Workflow::action
151
+ class Data < Lithic::Internal::Type::BaseModel
152
+ attr_accessor action: Lithic::Models::DisputeV2::Event::Workflow::Data::action
149
153
 
150
154
  attr_accessor amount: Integer?
151
155
 
152
- attr_accessor disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?
156
+ attr_accessor disposition: Lithic::Models::DisputeV2::Event::Workflow::Data::disposition?
153
157
 
154
158
  attr_accessor reason: String?
155
159
 
156
- attr_accessor stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage
157
-
158
- attr_accessor type: :WORKFLOW
160
+ attr_accessor stage: Lithic::Models::DisputeV2::Event::Workflow::Data::stage
159
161
 
160
162
  def initialize: (
161
- action: Lithic::Models::DisputeV2::Event::Data::Workflow::action,
163
+ action: Lithic::Models::DisputeV2::Event::Workflow::Data::action,
162
164
  amount: Integer?,
163
- disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?,
165
+ disposition: Lithic::Models::DisputeV2::Event::Workflow::Data::disposition?,
164
166
  reason: String?,
165
- stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage,
166
- ?type: :WORKFLOW
167
+ stage: Lithic::Models::DisputeV2::Event::Workflow::Data::stage
167
168
  ) -> void
168
169
 
169
170
  def to_hash: -> {
170
- action: Lithic::Models::DisputeV2::Event::Data::Workflow::action,
171
+ action: Lithic::Models::DisputeV2::Event::Workflow::Data::action,
171
172
  amount: Integer?,
172
- disposition: Lithic::Models::DisputeV2::Event::Data::Workflow::disposition?,
173
+ disposition: Lithic::Models::DisputeV2::Event::Workflow::Data::disposition?,
173
174
  reason: String?,
174
- stage: Lithic::Models::DisputeV2::Event::Data::Workflow::stage,
175
- type: :WORKFLOW
175
+ stage: Lithic::Models::DisputeV2::Event::Workflow::Data::stage
176
176
  }
177
177
 
178
178
  type action = :OPENED | :CLOSED | :REOPENED
@@ -184,7 +184,7 @@ module Lithic
184
184
  CLOSED: :CLOSED
185
185
  REOPENED: :REOPENED
186
186
 
187
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Workflow::action]
187
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Workflow::Data::action]
188
188
  end
189
189
 
190
190
  type disposition =
@@ -199,7 +199,7 @@ module Lithic
199
199
  WITHDRAWN: :WITHDRAWN
200
200
  DENIED: :DENIED
201
201
 
202
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Workflow::disposition]
202
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Workflow::Data::disposition]
203
203
  end
204
204
 
205
205
  type stage = :CLAIM
@@ -209,39 +209,66 @@ module Lithic
209
209
 
210
210
  CLAIM: :CLAIM
211
211
 
212
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Workflow::stage]
212
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Workflow::Data::stage]
213
213
  end
214
214
  end
215
+ end
215
216
 
216
- type financial =
217
+ type financial =
218
+ {
219
+ token: String,
220
+ created: Time,
221
+ data: Lithic::DisputeV2::Event::Financial::Data,
222
+ type: :FINANCIAL
223
+ }
224
+
225
+ class Financial < Lithic::Internal::Type::BaseModel
226
+ attr_accessor token: String
227
+
228
+ attr_accessor created: Time
229
+
230
+ attr_accessor data: Lithic::DisputeV2::Event::Financial::Data
231
+
232
+ attr_accessor type: :FINANCIAL
233
+
234
+ def initialize: (
235
+ token: String,
236
+ created: Time,
237
+ data: Lithic::DisputeV2::Event::Financial::Data,
238
+ ?type: :FINANCIAL
239
+ ) -> void
240
+
241
+ def to_hash: -> {
242
+ token: String,
243
+ created: Time,
244
+ data: Lithic::DisputeV2::Event::Financial::Data,
245
+ type: :FINANCIAL
246
+ }
247
+
248
+ type data =
217
249
  {
218
250
  amount: Integer,
219
- polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity,
220
- stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage,
221
- type: :FINANCIAL
251
+ polarity: Lithic::Models::DisputeV2::Event::Financial::Data::polarity,
252
+ stage: Lithic::Models::DisputeV2::Event::Financial::Data::stage
222
253
  }
223
254
 
224
- class Financial < Lithic::Internal::Type::BaseModel
255
+ class Data < Lithic::Internal::Type::BaseModel
225
256
  attr_accessor amount: Integer
226
257
 
227
- attr_accessor polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity
228
-
229
- attr_accessor stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage
258
+ attr_accessor polarity: Lithic::Models::DisputeV2::Event::Financial::Data::polarity
230
259
 
231
- attr_accessor type: :FINANCIAL
260
+ attr_accessor stage: Lithic::Models::DisputeV2::Event::Financial::Data::stage
232
261
 
233
262
  def initialize: (
234
263
  amount: Integer,
235
- polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity,
236
- stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage,
237
- ?type: :FINANCIAL
264
+ polarity: Lithic::Models::DisputeV2::Event::Financial::Data::polarity,
265
+ stage: Lithic::Models::DisputeV2::Event::Financial::Data::stage
238
266
  ) -> void
239
267
 
240
268
  def to_hash: -> {
241
269
  amount: Integer,
242
- polarity: Lithic::Models::DisputeV2::Event::Data::Financial::polarity,
243
- stage: Lithic::Models::DisputeV2::Event::Data::Financial::stage,
244
- type: :FINANCIAL
270
+ polarity: Lithic::Models::DisputeV2::Event::Financial::Data::polarity,
271
+ stage: Lithic::Models::DisputeV2::Event::Financial::Data::stage
245
272
  }
246
273
 
247
274
  type polarity = :CREDIT | :DEBIT
@@ -252,7 +279,7 @@ module Lithic
252
279
  CREDIT: :CREDIT
253
280
  DEBIT: :DEBIT
254
281
 
255
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Financial::polarity]
282
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Financial::Data::polarity]
256
283
  end
257
284
 
258
285
  type stage =
@@ -271,45 +298,73 @@ module Lithic
271
298
  ARBITRATION: :ARBITRATION
272
299
  COLLABORATION: :COLLABORATION
273
300
 
274
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::Financial::stage]
301
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Financial::Data::stage]
275
302
  end
276
303
  end
304
+ end
305
+
306
+ type cardholder_liability =
307
+ {
308
+ token: String,
309
+ created: Time,
310
+ data: Lithic::DisputeV2::Event::CardholderLiability::Data,
311
+ type: :CARDHOLDER_LIABILITY
312
+ }
313
+
314
+ class CardholderLiability < Lithic::Internal::Type::BaseModel
315
+ attr_accessor token: String
316
+
317
+ attr_accessor created: Time
318
+
319
+ attr_accessor data: Lithic::DisputeV2::Event::CardholderLiability::Data
277
320
 
278
- type cardholder_liability =
321
+ attr_accessor type: :CARDHOLDER_LIABILITY
322
+
323
+ def initialize: (
324
+ token: String,
325
+ created: Time,
326
+ data: Lithic::DisputeV2::Event::CardholderLiability::Data,
327
+ ?type: :CARDHOLDER_LIABILITY
328
+ ) -> void
329
+
330
+ def to_hash: -> {
331
+ token: String,
332
+ created: Time,
333
+ data: Lithic::DisputeV2::Event::CardholderLiability::Data,
334
+ type: :CARDHOLDER_LIABILITY
335
+ }
336
+
337
+ type data =
279
338
  {
280
- action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action,
339
+ action: Lithic::Models::DisputeV2::Event::CardholderLiability::Data::action,
281
340
  amount: Integer,
282
- reason: String,
283
- type: :CARDHOLDER_LIABILITY
341
+ reason: String?
284
342
  }
285
343
 
286
- class CardholderLiability < Lithic::Internal::Type::BaseModel
287
- attr_accessor action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action
344
+ class Data < Lithic::Internal::Type::BaseModel
345
+ attr_accessor action: Lithic::Models::DisputeV2::Event::CardholderLiability::Data::action
288
346
 
289
347
  attr_accessor amount: Integer
290
348
 
291
- attr_accessor reason: String
292
-
293
- attr_accessor type: :CARDHOLDER_LIABILITY
349
+ attr_accessor reason: String?
294
350
 
295
351
  def initialize: (
296
- action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action,
352
+ action: Lithic::Models::DisputeV2::Event::CardholderLiability::Data::action,
297
353
  amount: Integer,
298
- reason: String,
299
- ?type: :CARDHOLDER_LIABILITY
354
+ reason: String?
300
355
  ) -> void
301
356
 
302
357
  def to_hash: -> {
303
- action: Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action,
358
+ action: Lithic::Models::DisputeV2::Event::CardholderLiability::Data::action,
304
359
  amount: Integer,
305
- reason: String,
306
- type: :CARDHOLDER_LIABILITY
360
+ reason: String?
307
361
  }
308
362
 
309
363
  type action =
310
364
  :PROVISIONAL_CREDIT_GRANTED
311
365
  | :PROVISIONAL_CREDIT_REVERSED
312
366
  | :WRITTEN_OFF
367
+ | :WRITE_OFF_REVERSED
313
368
 
314
369
  module Action
315
370
  extend Lithic::Internal::Type::Enum
@@ -317,25 +372,14 @@ module Lithic
317
372
  PROVISIONAL_CREDIT_GRANTED: :PROVISIONAL_CREDIT_GRANTED
318
373
  PROVISIONAL_CREDIT_REVERSED: :PROVISIONAL_CREDIT_REVERSED
319
374
  WRITTEN_OFF: :WRITTEN_OFF
375
+ WRITE_OFF_REVERSED: :WRITE_OFF_REVERSED
320
376
 
321
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::Data::CardholderLiability::action]
377
+ def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::CardholderLiability::Data::action]
322
378
  end
323
379
  end
324
-
325
- def self?.variants: -> ::Array[Lithic::Models::DisputeV2::Event::data]
326
380
  end
327
381
 
328
- type type_ = :WORKFLOW | :FINANCIAL | :CARDHOLDER_LIABILITY
329
-
330
- module Type
331
- extend Lithic::Internal::Type::Enum
332
-
333
- WORKFLOW: :WORKFLOW
334
- FINANCIAL: :FINANCIAL
335
- CARDHOLDER_LIABILITY: :CARDHOLDER_LIABILITY
336
-
337
- def self?.values: -> ::Array[Lithic::Models::DisputeV2::Event::type_]
338
- end
382
+ def self?.variants: -> ::Array[Lithic::Models::DisputeV2::event]
339
383
  end
340
384
 
341
385
  type liability_allocation =
@@ -5,6 +5,7 @@ module Lithic
5
5
  account_token: String,
6
6
  begin_: Time,
7
7
  card_token: String,
8
+ claim_token: String,
8
9
  disputed_transaction_token: String,
9
10
  end_: Time,
10
11
  ending_before: String,
@@ -29,6 +30,10 @@ module Lithic
29
30
 
30
31
  def card_token=: (String) -> String
31
32
 
33
+ attr_reader claim_token: String?
34
+
35
+ def claim_token=: (String) -> String
36
+
32
37
  attr_reader disputed_transaction_token: String?
33
38
 
34
39
  def disputed_transaction_token=: (String) -> String
@@ -53,6 +58,7 @@ module Lithic
53
58
  ?account_token: String,
54
59
  ?begin_: Time,
55
60
  ?card_token: String,
61
+ ?claim_token: String,
56
62
  ?disputed_transaction_token: String,
57
63
  ?end_: Time,
58
64
  ?ending_before: String,
@@ -65,6 +71,7 @@ module Lithic
65
71
  account_token: String,
66
72
  begin_: Time,
67
73
  card_token: String,
74
+ claim_token: String,
68
75
  disputed_transaction_token: String,
69
76
  end_: Time,
70
77
  ending_before: String,
@@ -47,6 +47,7 @@ module Lithic
47
47
  | :"card_transaction.updated"
48
48
  | :"card.converted"
49
49
  | :"card.created"
50
+ | :"card.pin_updated"
50
51
  | :"card.reissued"
51
52
  | :"card.renewed"
52
53
  | :"card.shipped"
@@ -112,6 +113,7 @@ module Lithic
112
113
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
113
114
  CARD_CONVERTED: :"card.converted"
114
115
  CARD_CREATED: :"card.created"
116
+ CARD_PIN_UPDATED: :"card.pin_updated"
115
117
  CARD_REISSUED: :"card.reissued"
116
118
  CARD_RENEWED: :"card.renewed"
117
119
  CARD_SHIPPED: :"card.shipped"
@@ -84,6 +84,7 @@ module Lithic
84
84
  | :"card_transaction.updated"
85
85
  | :"card.converted"
86
86
  | :"card.created"
87
+ | :"card.pin_updated"
87
88
  | :"card.reissued"
88
89
  | :"card.renewed"
89
90
  | :"card.shipped"
@@ -149,6 +150,7 @@ module Lithic
149
150
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
150
151
  CARD_CONVERTED: :"card.converted"
151
152
  CARD_CREATED: :"card.created"
153
+ CARD_PIN_UPDATED: :"card.pin_updated"
152
154
  CARD_REISSUED: :"card.reissued"
153
155
  CARD_RENEWED: :"card.renewed"
154
156
  CARD_SHIPPED: :"card.shipped"
@@ -52,6 +52,7 @@ module Lithic
52
52
  | :"card_transaction.updated"
53
53
  | :"card.converted"
54
54
  | :"card.created"
55
+ | :"card.pin_updated"
55
56
  | :"card.reissued"
56
57
  | :"card.renewed"
57
58
  | :"card.shipped"
@@ -117,6 +118,7 @@ module Lithic
117
118
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
118
119
  CARD_CONVERTED: :"card.converted"
119
120
  CARD_CREATED: :"card.created"
121
+ CARD_PIN_UPDATED: :"card.pin_updated"
120
122
  CARD_REISSUED: :"card.reissued"
121
123
  CARD_RENEWED: :"card.renewed"
122
124
  CARD_SHIPPED: :"card.shipped"
@@ -62,6 +62,7 @@ module Lithic
62
62
  | :"card_transaction.updated"
63
63
  | :"card.converted"
64
64
  | :"card.created"
65
+ | :"card.pin_updated"
65
66
  | :"card.reissued"
66
67
  | :"card.renewed"
67
68
  | :"card.shipped"
@@ -127,6 +128,7 @@ module Lithic
127
128
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
128
129
  CARD_CONVERTED: :"card.converted"
129
130
  CARD_CREATED: :"card.created"
131
+ CARD_PIN_UPDATED: :"card.pin_updated"
130
132
  CARD_REISSUED: :"card.reissued"
131
133
  CARD_RENEWED: :"card.renewed"
132
134
  CARD_SHIPPED: :"card.shipped"
@@ -48,6 +48,7 @@ module Lithic
48
48
  | :"card_transaction.updated"
49
49
  | :"card.converted"
50
50
  | :"card.created"
51
+ | :"card.pin_updated"
51
52
  | :"card.reissued"
52
53
  | :"card.renewed"
53
54
  | :"card.shipped"
@@ -113,6 +114,7 @@ module Lithic
113
114
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
114
115
  CARD_CONVERTED: :"card.converted"
115
116
  CARD_CREATED: :"card.created"
117
+ CARD_PIN_UPDATED: :"card.pin_updated"
116
118
  CARD_REISSUED: :"card.reissued"
117
119
  CARD_RENEWED: :"card.renewed"
118
120
  CARD_SHIPPED: :"card.shipped"
@@ -67,6 +67,7 @@ module Lithic
67
67
  | :"card_transaction.updated"
68
68
  | :"card.converted"
69
69
  | :"card.created"
70
+ | :"card.pin_updated"
70
71
  | :"card.reissued"
71
72
  | :"card.renewed"
72
73
  | :"card.shipped"
@@ -132,6 +133,7 @@ module Lithic
132
133
  CARD_TRANSACTION_UPDATED: :"card_transaction.updated"
133
134
  CARD_CONVERTED: :"card.converted"
134
135
  CARD_CREATED: :"card.created"
136
+ CARD_PIN_UPDATED: :"card.pin_updated"
135
137
  CARD_REISSUED: :"card.reissued"
136
138
  CARD_RENEWED: :"card.renewed"
137
139
  CARD_SHIPPED: :"card.shipped"