lithic 0.2.0 → 0.4.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 (135) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +78 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +5 -10
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +12 -10
  6. data/lib/lithic/internal/util.rb +7 -2
  7. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +5 -0
  8. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +21 -21
  9. data/lib/lithic/models/book_transfer_retry_params.rb +26 -0
  10. data/lib/lithic/models/{asa_request_webhook_event.rb → card_authorization_approval_request_webhook_event.rb} +151 -129
  11. data/lib/lithic/models/card_create_params.rb +12 -5
  12. data/lib/lithic/models/card_updated_webhook_event.rb +40 -0
  13. data/lib/lithic/models/card_web_provision_response.rb +5 -5
  14. data/lib/lithic/models/event.rb +3 -0
  15. data/lib/lithic/models/event_list_params.rb +2 -0
  16. data/lib/lithic/models/event_subscription.rb +2 -0
  17. data/lib/lithic/models/events/subscription_create_params.rb +2 -0
  18. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  19. data/lib/lithic/models/events/subscription_update_params.rb +2 -0
  20. data/lib/lithic/models/external_payment_create_params.rb +15 -1
  21. data/lib/lithic/models/financial_account.rb +33 -25
  22. data/lib/lithic/models/financial_account_update_status_params.rb +9 -1
  23. data/lib/lithic/models/financial_accounts/loan_tape.rb +52 -3
  24. data/lib/lithic/models/financial_transaction.rb +4 -2
  25. data/lib/lithic/models/management_operation_create_params.rb +6 -1
  26. data/lib/lithic/models/non_pci_card.rb +8 -10
  27. data/lib/lithic/models/parsed_webhook_event.rb +5 -4
  28. data/lib/lithic/models/payment.rb +10 -1
  29. data/lib/lithic/models/payment_create_params.rb +1 -1
  30. data/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb +17 -0
  31. data/lib/lithic/models/transaction.rb +12 -1
  32. data/lib/lithic/models/transaction_simulate_authorization_params.rb +25 -1
  33. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +25 -1
  34. data/lib/lithic/models/transfer_limit_list_params.rb +22 -0
  35. data/lib/lithic/models/transfer_limits_response.rb +274 -0
  36. data/lib/lithic/models.rb +14 -6
  37. data/lib/lithic/resources/book_transfers.rb +27 -0
  38. data/lib/lithic/resources/cards.rb +33 -27
  39. data/lib/lithic/resources/external_payments.rb +13 -1
  40. data/lib/lithic/resources/financial_accounts.rb +8 -6
  41. data/lib/lithic/resources/management_operations.rb +4 -1
  42. data/lib/lithic/resources/transactions.rb +14 -2
  43. data/lib/lithic/resources/transfer_limits.rb +37 -0
  44. data/lib/lithic/resources/webhooks.rb +3 -2
  45. data/lib/lithic/version.rb +1 -1
  46. data/lib/lithic.rb +7 -7
  47. data/rbi/lithic/client.rbi +3 -3
  48. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +11 -0
  49. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +47 -45
  50. data/rbi/lithic/models/book_transfer_retry_params.rbi +42 -0
  51. data/rbi/lithic/models/{asa_request_webhook_event.rbi → card_authorization_approval_request_webhook_event.rbi} +394 -256
  52. data/rbi/lithic/models/card_create_params.rbi +15 -6
  53. data/rbi/lithic/models/card_updated_webhook_event.rbi +61 -0
  54. data/rbi/lithic/models/card_web_provision_response.rbi +5 -10
  55. data/rbi/lithic/models/event.rbi +5 -0
  56. data/rbi/lithic/models/event_list_params.rbi +6 -0
  57. data/rbi/lithic/models/event_subscription.rbi +6 -0
  58. data/rbi/lithic/models/events/subscription_create_params.rbi +6 -0
  59. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  60. data/rbi/lithic/models/events/subscription_update_params.rbi +6 -0
  61. data/rbi/lithic/models/external_payment_create_params.rbi +4 -0
  62. data/rbi/lithic/models/financial_account.rbi +62 -54
  63. data/rbi/lithic/models/financial_account_update_status_params.rbi +11 -0
  64. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +93 -4
  65. data/rbi/lithic/models/financial_transaction.rbi +8 -4
  66. data/rbi/lithic/models/management_operation_create_params.rbi +4 -0
  67. data/rbi/lithic/models/non_pci_card.rbi +12 -15
  68. data/rbi/lithic/models/parsed_webhook_event.rbi +3 -2
  69. data/rbi/lithic/models/payment.rbi +16 -3
  70. data/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi +27 -0
  71. data/rbi/lithic/models/transaction.rbi +20 -0
  72. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +33 -0
  73. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +33 -0
  74. data/rbi/lithic/models/transfer_limit_list_params.rbi +43 -0
  75. data/rbi/lithic/models/transfer_limits_response.rbi +604 -0
  76. data/rbi/lithic/models.rbi +14 -6
  77. data/rbi/lithic/resources/book_transfers.rbi +18 -0
  78. data/rbi/lithic/resources/cards.rbi +52 -49
  79. data/rbi/lithic/resources/external_payments.rbi +2 -0
  80. data/rbi/lithic/resources/financial_accounts.rbi +8 -5
  81. data/rbi/lithic/resources/management_operations.rbi +2 -0
  82. data/rbi/lithic/resources/transactions.rbi +18 -0
  83. data/rbi/lithic/resources/transfer_limits.rbi +28 -0
  84. data/rbi/lithic/resources/webhooks.rbi +4 -65
  85. data/sig/lithic/client.rbs +2 -2
  86. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
  87. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +20 -16
  88. data/sig/lithic/models/book_transfer_retry_params.rbs +23 -0
  89. data/sig/lithic/models/{asa_request_webhook_event.rbs → card_authorization_approval_request_webhook_event.rbs} +161 -156
  90. data/sig/lithic/models/card_create_params.rbs +8 -1
  91. data/sig/lithic/models/card_updated_webhook_event.rbs +35 -0
  92. data/sig/lithic/models/card_web_provision_response.rbs +4 -10
  93. data/sig/lithic/models/event.rbs +2 -0
  94. data/sig/lithic/models/event_list_params.rbs +2 -0
  95. data/sig/lithic/models/event_subscription.rbs +2 -0
  96. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  97. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  98. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  99. data/sig/lithic/models/financial_account.rbs +32 -27
  100. data/sig/lithic/models/financial_account_update_status_params.rbs +8 -1
  101. data/sig/lithic/models/financial_accounts/loan_tape.rbs +46 -4
  102. data/sig/lithic/models/parsed_webhook_event.rbs +3 -2
  103. data/sig/lithic/models/payment.rbs +10 -3
  104. data/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs +22 -0
  105. data/sig/lithic/models/transaction.rbs +9 -0
  106. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +21 -0
  107. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +22 -1
  108. data/sig/lithic/models/transfer_limit_list_params.rbs +22 -0
  109. data/sig/lithic/models/transfer_limits_response.rbs +232 -0
  110. data/sig/lithic/models.rbs +12 -6
  111. data/sig/lithic/resources/book_transfers.rbs +6 -0
  112. data/sig/lithic/resources/cards.rbs +1 -2
  113. data/sig/lithic/resources/financial_accounts.rbs +1 -0
  114. data/sig/lithic/resources/transactions.rbs +6 -0
  115. data/sig/lithic/resources/transfer_limits.rbs +12 -0
  116. data/sig/lithic/resources/webhooks.rbs +4 -61
  117. metadata +37 -23
  118. data/lib/lithic/models/aggregate_balance.rb +0 -113
  119. data/lib/lithic/models/aggregate_balance_list_params.rb +0 -35
  120. data/lib/lithic/models/cards/aggregate_balance_list_params.rb +0 -32
  121. data/lib/lithic/models/cards/aggregate_balance_list_response.rb +0 -92
  122. data/lib/lithic/resources/aggregate_balances.rb +0 -38
  123. data/lib/lithic/resources/cards/aggregate_balances.rb +0 -41
  124. data/rbi/lithic/models/aggregate_balance.rbi +0 -164
  125. data/rbi/lithic/models/aggregate_balance_list_params.rbi +0 -104
  126. data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +0 -62
  127. data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +0 -115
  128. data/rbi/lithic/resources/aggregate_balances.rbi +0 -28
  129. data/rbi/lithic/resources/cards/aggregate_balances.rbi +0 -35
  130. data/sig/lithic/models/aggregate_balance.rbs +0 -78
  131. data/sig/lithic/models/aggregate_balance_list_params.rbs +0 -43
  132. data/sig/lithic/models/cards/aggregate_balance_list_params.rbs +0 -34
  133. data/sig/lithic/models/cards/aggregate_balance_list_response.rbs +0 -62
  134. data/sig/lithic/resources/aggregate_balances.rbs +0 -12
  135. data/sig/lithic/resources/cards/aggregate_balances.rbs +0 -15
@@ -21,7 +21,8 @@ module Lithic
21
21
  shipping_method: Lithic::Models::CardCreateParams::shipping_method,
22
22
  spend_limit: Integer,
23
23
  spend_limit_duration: Lithic::Models::spend_limit_duration,
24
- state: Lithic::Models::CardCreateParams::state
24
+ state: Lithic::Models::CardCreateParams::state,
25
+ idempotency_key: String
25
26
  }
26
27
  & Lithic::Internal::Type::request_parameters
27
28
 
@@ -117,6 +118,10 @@ module Lithic
117
118
  Lithic::Models::CardCreateParams::state
118
119
  ) -> Lithic::Models::CardCreateParams::state
119
120
 
121
+ attr_reader idempotency_key: String?
122
+
123
+ def idempotency_key=: (String) -> String
124
+
120
125
  def initialize: (
121
126
  type: Lithic::Models::CardCreateParams::type_,
122
127
  ?account_token: String,
@@ -138,6 +143,7 @@ module Lithic
138
143
  ?spend_limit: Integer,
139
144
  ?spend_limit_duration: Lithic::Models::spend_limit_duration,
140
145
  ?state: Lithic::Models::CardCreateParams::state,
146
+ ?idempotency_key: String,
141
147
  ?request_options: Lithic::request_opts
142
148
  ) -> void
143
149
 
@@ -162,6 +168,7 @@ module Lithic
162
168
  spend_limit: Integer,
163
169
  spend_limit_duration: Lithic::Models::spend_limit_duration,
164
170
  state: Lithic::Models::CardCreateParams::state,
171
+ idempotency_key: String,
165
172
  request_options: Lithic::RequestOptions
166
173
  }
167
174
 
@@ -0,0 +1,35 @@
1
+ module Lithic
2
+ module Models
3
+ type card_updated_webhook_event =
4
+ {
5
+ card_token: String,
6
+ event_type: :"card.updated",
7
+ previous_fields: top,
8
+ state: String
9
+ }
10
+
11
+ class CardUpdatedWebhookEvent < Lithic::Internal::Type::BaseModel
12
+ attr_accessor card_token: String
13
+
14
+ attr_accessor event_type: :"card.updated"
15
+
16
+ attr_accessor previous_fields: top
17
+
18
+ attr_accessor state: String
19
+
20
+ def initialize: (
21
+ card_token: String,
22
+ previous_fields: top,
23
+ state: String,
24
+ ?event_type: :"card.updated"
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ card_token: String,
29
+ event_type: :"card.updated",
30
+ previous_fields: top,
31
+ state: String
32
+ }
33
+ end
34
+ end
35
+ end
@@ -14,19 +14,13 @@ module Lithic
14
14
  }
15
15
 
16
16
  class AppleWebPushProvisioningResponse < Lithic::Internal::Type::BaseModel
17
- attr_reader jws: Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws?
17
+ attr_accessor jws: Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
18
18
 
19
- def jws=: (
20
- Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
21
- ) -> Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws
22
-
23
- attr_reader state: String?
24
-
25
- def state=: (String) -> String
19
+ attr_accessor state: String
26
20
 
27
21
  def initialize: (
28
- ?jws: Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws,
29
- ?state: String
22
+ jws: Lithic::Models::CardWebProvisionResponse::AppleWebPushProvisioningResponse::Jws,
23
+ state: String
30
24
  ) -> void
31
25
 
32
26
  def to_hash: -> {
@@ -48,6 +48,7 @@ module Lithic
48
48
  | :"card.reissued"
49
49
  | :"card.renewed"
50
50
  | :"card.shipped"
51
+ | :"card.updated"
51
52
  | :"digital_wallet.tokenization_approval_request"
52
53
  | :"digital_wallet.tokenization_result"
53
54
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -104,6 +105,7 @@ module Lithic
104
105
  CARD_REISSUED: :"card.reissued"
105
106
  CARD_RENEWED: :"card.renewed"
106
107
  CARD_SHIPPED: :"card.shipped"
108
+ CARD_UPDATED: :"card.updated"
107
109
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
108
110
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
109
111
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -85,6 +85,7 @@ module Lithic
85
85
  | :"card.reissued"
86
86
  | :"card.renewed"
87
87
  | :"card.shipped"
88
+ | :"card.updated"
88
89
  | :"digital_wallet.tokenization_approval_request"
89
90
  | :"digital_wallet.tokenization_result"
90
91
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -141,6 +142,7 @@ module Lithic
141
142
  CARD_REISSUED: :"card.reissued"
142
143
  CARD_RENEWED: :"card.renewed"
143
144
  CARD_SHIPPED: :"card.shipped"
145
+ CARD_UPDATED: :"card.updated"
144
146
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
145
147
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
146
148
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -53,6 +53,7 @@ module Lithic
53
53
  | :"card.reissued"
54
54
  | :"card.renewed"
55
55
  | :"card.shipped"
56
+ | :"card.updated"
56
57
  | :"digital_wallet.tokenization_approval_request"
57
58
  | :"digital_wallet.tokenization_result"
58
59
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -109,6 +110,7 @@ module Lithic
109
110
  CARD_REISSUED: :"card.reissued"
110
111
  CARD_RENEWED: :"card.renewed"
111
112
  CARD_SHIPPED: :"card.shipped"
113
+ CARD_UPDATED: :"card.updated"
112
114
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
113
115
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
114
116
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -63,6 +63,7 @@ module Lithic
63
63
  | :"card.reissued"
64
64
  | :"card.renewed"
65
65
  | :"card.shipped"
66
+ | :"card.updated"
66
67
  | :"digital_wallet.tokenization_approval_request"
67
68
  | :"digital_wallet.tokenization_result"
68
69
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -119,6 +120,7 @@ module Lithic
119
120
  CARD_REISSUED: :"card.reissued"
120
121
  CARD_RENEWED: :"card.renewed"
121
122
  CARD_SHIPPED: :"card.shipped"
123
+ CARD_UPDATED: :"card.updated"
122
124
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
123
125
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
124
126
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -44,6 +44,7 @@ module Lithic
44
44
  | :"card.reissued"
45
45
  | :"card.renewed"
46
46
  | :"card.shipped"
47
+ | :"card.updated"
47
48
  | :"digital_wallet.tokenization_approval_request"
48
49
  | :"digital_wallet.tokenization_result"
49
50
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -100,6 +101,7 @@ module Lithic
100
101
  CARD_REISSUED: :"card.reissued"
101
102
  CARD_RENEWED: :"card.renewed"
102
103
  CARD_SHIPPED: :"card.shipped"
104
+ CARD_UPDATED: :"card.updated"
103
105
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
104
106
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
105
107
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -63,6 +63,7 @@ module Lithic
63
63
  | :"card.reissued"
64
64
  | :"card.renewed"
65
65
  | :"card.shipped"
66
+ | :"card.updated"
66
67
  | :"digital_wallet.tokenization_approval_request"
67
68
  | :"digital_wallet.tokenization_result"
68
69
  | :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -119,6 +120,7 @@ module Lithic
119
120
  CARD_REISSUED: :"card.reissued"
120
121
  CARD_RENEWED: :"card.renewed"
121
122
  CARD_SHIPPED: :"card.shipped"
123
+ CARD_UPDATED: :"card.updated"
122
124
  DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST: :"digital_wallet.tokenization_approval_request"
123
125
  DIGITAL_WALLET_TOKENIZATION_RESULT: :"digital_wallet.tokenization_result"
124
126
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE: :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -9,11 +9,12 @@ module Lithic
9
9
  is_for_benefit_of: bool,
10
10
  nickname: String?,
11
11
  status: Lithic::Models::FinancialAccount::status,
12
+ substatus: Lithic::Models::FinancialAccount::substatus?,
12
13
  type: Lithic::Models::FinancialAccount::type_,
13
14
  updated: Time,
15
+ user_defined_status: String?,
14
16
  account_number: String?,
15
- routing_number: String?,
16
- substatus: Lithic::Models::FinancialAccount::substatus?
17
+ routing_number: String?
17
18
  }
18
19
 
19
20
  class FinancialAccount < Lithic::Internal::Type::BaseModel
@@ -31,16 +32,18 @@ module Lithic
31
32
 
32
33
  attr_accessor status: Lithic::Models::FinancialAccount::status
33
34
 
35
+ attr_accessor substatus: Lithic::Models::FinancialAccount::substatus?
36
+
34
37
  attr_accessor type: Lithic::Models::FinancialAccount::type_
35
38
 
36
39
  attr_accessor updated: Time
37
40
 
41
+ attr_accessor user_defined_status: String?
42
+
38
43
  attr_accessor account_number: String?
39
44
 
40
45
  attr_accessor routing_number: String?
41
46
 
42
- attr_accessor substatus: Lithic::Models::FinancialAccount::substatus?
43
-
44
47
  def initialize: (
45
48
  token: String,
46
49
  account_token: String?,
@@ -49,11 +52,12 @@ module Lithic
49
52
  is_for_benefit_of: bool,
50
53
  nickname: String?,
51
54
  status: Lithic::Models::FinancialAccount::status,
55
+ substatus: Lithic::Models::FinancialAccount::substatus?,
52
56
  type: Lithic::Models::FinancialAccount::type_,
53
57
  updated: Time,
58
+ user_defined_status: String?,
54
59
  ?account_number: String?,
55
- ?routing_number: String?,
56
- ?substatus: Lithic::Models::FinancialAccount::substatus?
60
+ ?routing_number: String?
57
61
  ) -> void
58
62
 
59
63
  def to_hash: -> {
@@ -64,11 +68,12 @@ module Lithic
64
68
  is_for_benefit_of: bool,
65
69
  nickname: String?,
66
70
  status: Lithic::Models::FinancialAccount::status,
71
+ substatus: Lithic::Models::FinancialAccount::substatus?,
67
72
  type: Lithic::Models::FinancialAccount::type_,
68
73
  updated: Time,
74
+ user_defined_status: String?,
69
75
  account_number: String?,
70
- routing_number: String?,
71
- substatus: Lithic::Models::FinancialAccount::substatus?
76
+ routing_number: String?
72
77
  }
73
78
 
74
79
  type credit_configuration =
@@ -131,6 +136,25 @@ module Lithic
131
136
  def self?.values: -> ::Array[Lithic::Models::FinancialAccount::status]
132
137
  end
133
138
 
139
+ type substatus =
140
+ :CHARGED_OFF_DELINQUENT
141
+ | :CHARGED_OFF_FRAUD
142
+ | :END_USER_REQUEST
143
+ | :BANK_REQUEST
144
+ | :DELINQUENT
145
+
146
+ module Substatus
147
+ extend Lithic::Internal::Type::Enum
148
+
149
+ CHARGED_OFF_DELINQUENT: :CHARGED_OFF_DELINQUENT
150
+ CHARGED_OFF_FRAUD: :CHARGED_OFF_FRAUD
151
+ END_USER_REQUEST: :END_USER_REQUEST
152
+ BANK_REQUEST: :BANK_REQUEST
153
+ DELINQUENT: :DELINQUENT
154
+
155
+ def self?.values: -> ::Array[Lithic::Models::FinancialAccount::substatus]
156
+ end
157
+
134
158
  type type_ =
135
159
  :ISSUING
136
160
  | :RESERVE
@@ -159,25 +183,6 @@ module Lithic
159
183
 
160
184
  def self?.values: -> ::Array[Lithic::Models::FinancialAccount::type_]
161
185
  end
162
-
163
- type substatus =
164
- :CHARGED_OFF_DELINQUENT
165
- | :CHARGED_OFF_FRAUD
166
- | :END_USER_REQUEST
167
- | :BANK_REQUEST
168
- | :DELINQUENT
169
-
170
- module Substatus
171
- extend Lithic::Internal::Type::Enum
172
-
173
- CHARGED_OFF_DELINQUENT: :CHARGED_OFF_DELINQUENT
174
- CHARGED_OFF_FRAUD: :CHARGED_OFF_FRAUD
175
- END_USER_REQUEST: :END_USER_REQUEST
176
- BANK_REQUEST: :BANK_REQUEST
177
- DELINQUENT: :DELINQUENT
178
-
179
- def self?.values: -> ::Array[Lithic::Models::FinancialAccount::substatus]
180
- end
181
186
  end
182
187
  end
183
188
  end
@@ -3,7 +3,8 @@ module Lithic
3
3
  type financial_account_update_status_params =
4
4
  {
5
5
  status: Lithic::Models::FinancialAccountUpdateStatusParams::status,
6
- substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?
6
+ substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?,
7
+ user_defined_status: String
7
8
  }
8
9
  & Lithic::Internal::Type::request_parameters
9
10
 
@@ -15,15 +16,21 @@ module Lithic
15
16
 
16
17
  attr_accessor substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?
17
18
 
19
+ attr_reader user_defined_status: String?
20
+
21
+ def user_defined_status=: (String) -> String
22
+
18
23
  def initialize: (
19
24
  status: Lithic::Models::FinancialAccountUpdateStatusParams::status,
20
25
  substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?,
26
+ ?user_defined_status: String,
21
27
  ?request_options: Lithic::request_opts
22
28
  ) -> void
23
29
 
24
30
  def to_hash: -> {
25
31
  status: Lithic::Models::FinancialAccountUpdateStatusParams::status,
26
32
  substatus: Lithic::Models::FinancialAccountUpdateStatusParams::substatus?,
33
+ user_defined_status: String,
27
34
  request_options: Lithic::RequestOptions
28
35
  }
29
36
 
@@ -17,7 +17,7 @@ module Lithic
17
17
  financial_account_token: String,
18
18
  interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?,
19
19
  minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
20
- payment_allocation: Lithic::FinancialAccounts::CategoryBalances,
20
+ payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
21
21
  period_totals: Lithic::StatementTotals,
22
22
  previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
23
23
  starting_balance: Integer,
@@ -56,7 +56,7 @@ module Lithic
56
56
 
57
57
  attr_accessor minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance
58
58
 
59
- attr_accessor payment_allocation: Lithic::FinancialAccounts::CategoryBalances
59
+ attr_accessor payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation
60
60
 
61
61
  attr_accessor period_totals: Lithic::StatementTotals
62
62
 
@@ -87,7 +87,7 @@ module Lithic
87
87
  financial_account_token: String,
88
88
  interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?,
89
89
  minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
90
- payment_allocation: Lithic::FinancialAccounts::CategoryBalances,
90
+ payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
91
91
  period_totals: Lithic::StatementTotals,
92
92
  previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
93
93
  starting_balance: Integer,
@@ -112,7 +112,7 @@ module Lithic
112
112
  financial_account_token: String,
113
113
  interest_details: Lithic::FinancialAccounts::LoanTape::InterestDetails?,
114
114
  minimum_payment_balance: Lithic::FinancialAccounts::LoanTape::MinimumPaymentBalance,
115
- payment_allocation: Lithic::FinancialAccounts::CategoryBalances,
115
+ payment_allocation: Lithic::FinancialAccounts::LoanTape::PaymentAllocation,
116
116
  period_totals: Lithic::StatementTotals,
117
117
  previous_statement_balance: Lithic::FinancialAccounts::LoanTape::PreviousStatementBalance,
118
118
  starting_balance: Integer,
@@ -342,6 +342,48 @@ module Lithic
342
342
  def to_hash: -> { amount: Integer, remaining: Integer }
343
343
  end
344
344
 
345
+ type payment_allocation =
346
+ {
347
+ fee_details: Lithic::CategoryDetails?,
348
+ fees: Integer,
349
+ interest: Integer,
350
+ interest_details: Lithic::CategoryDetails?,
351
+ principal: Integer,
352
+ principal_details: Lithic::CategoryDetails?
353
+ }
354
+
355
+ class PaymentAllocation < Lithic::Internal::Type::BaseModel
356
+ attr_accessor fee_details: Lithic::CategoryDetails?
357
+
358
+ attr_accessor fees: Integer
359
+
360
+ attr_accessor interest: Integer
361
+
362
+ attr_accessor interest_details: Lithic::CategoryDetails?
363
+
364
+ attr_accessor principal: Integer
365
+
366
+ attr_accessor principal_details: Lithic::CategoryDetails?
367
+
368
+ def initialize: (
369
+ fee_details: Lithic::CategoryDetails?,
370
+ fees: Integer,
371
+ interest: Integer,
372
+ interest_details: Lithic::CategoryDetails?,
373
+ principal: Integer,
374
+ principal_details: Lithic::CategoryDetails?
375
+ ) -> void
376
+
377
+ def to_hash: -> {
378
+ fee_details: Lithic::CategoryDetails?,
379
+ fees: Integer,
380
+ interest: Integer,
381
+ interest_details: Lithic::CategoryDetails?,
382
+ principal: Integer,
383
+ principal_details: Lithic::CategoryDetails?
384
+ }
385
+ end
386
+
345
387
  type previous_statement_balance =
346
388
  { amount: Integer, remaining: Integer }
347
389
 
@@ -7,7 +7,7 @@ module Lithic
7
7
  | Lithic::ParsedWebhookEvent::LegacyPayload
8
8
  | Lithic::AccountHolderVerificationWebhookEvent
9
9
  | Lithic::AccountHolderDocumentUpdatedWebhookEvent
10
- | Lithic::AsaRequestWebhookEvent
10
+ | Lithic::CardAuthorizationApprovalRequestWebhookEvent
11
11
  | Lithic::TokenizationDecisioningRequestWebhookEvent
12
12
  | Lithic::AuthRulesBacktestReportCreatedWebhookEvent
13
13
  | Lithic::BalanceUpdatedWebhookEvent
@@ -18,6 +18,7 @@ module Lithic
18
18
  | Lithic::CardRenewedWebhookEvent
19
19
  | Lithic::CardReissuedWebhookEvent
20
20
  | Lithic::CardShippedWebhookEvent
21
+ | Lithic::CardUpdatedWebhookEvent
21
22
  | Lithic::CardTransactionUpdatedWebhookEvent
22
23
  | Lithic::CardTransactionEnhancedDataCreatedWebhookEvent
23
24
  | Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent
@@ -55,7 +56,7 @@ module Lithic
55
56
  | Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent
56
57
  | Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent
57
58
  | Lithic::TokenizationUpdatedWebhookEvent
58
- | Lithic::ThreeDSAuthentication
59
+ | Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent
59
60
  | Lithic::DisputeTransactionCreatedWebhookEvent
60
61
  | Lithic::DisputeTransactionUpdatedWebhookEvent
61
62
 
@@ -194,7 +194,8 @@ module Lithic
194
194
  created: Time,
195
195
  result: Lithic::Models::Payment::Event::result,
196
196
  type: Lithic::Models::Payment::Event::type_,
197
- detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result]
197
+ detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result],
198
+ external_id: String?
198
199
  }
199
200
 
200
201
  class Event < Lithic::Internal::Type::BaseModel
@@ -214,13 +215,16 @@ module Lithic
214
215
  ::Array[Lithic::Models::Payment::Event::detailed_result]
215
216
  ) -> ::Array[Lithic::Models::Payment::Event::detailed_result]
216
217
 
218
+ attr_accessor external_id: String?
219
+
217
220
  def initialize: (
218
221
  token: String,
219
222
  amount: Integer,
220
223
  created: Time,
221
224
  result: Lithic::Models::Payment::Event::result,
222
225
  type: Lithic::Models::Payment::Event::type_,
223
- ?detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result]
226
+ ?detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result],
227
+ ?external_id: String?
224
228
  ) -> void
225
229
 
226
230
  def to_hash: -> {
@@ -229,7 +233,8 @@ module Lithic
229
233
  created: Time,
230
234
  result: Lithic::Models::Payment::Event::result,
231
235
  type: Lithic::Models::Payment::Event::type_,
232
- detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result]
236
+ detailed_results: ::Array[Lithic::Models::Payment::Event::detailed_result],
237
+ external_id: String?
233
238
  }
234
239
 
235
240
  type result = :APPROVED | :DECLINED
@@ -519,6 +524,7 @@ module Lithic
519
524
  | :WIRE_INBOUND_ADMIN
520
525
  | :WIRE_OUTBOUND_PAYMENT
521
526
  | :WIRE_OUTBOUND_ADMIN
527
+ | :WIRE_INBOUND_DRAWDOWN_REQUEST
522
528
 
523
529
  module Type
524
530
  extend Lithic::Internal::Type::Enum
@@ -531,6 +537,7 @@ module Lithic
531
537
  WIRE_INBOUND_ADMIN: :WIRE_INBOUND_ADMIN
532
538
  WIRE_OUTBOUND_PAYMENT: :WIRE_OUTBOUND_PAYMENT
533
539
  WIRE_OUTBOUND_ADMIN: :WIRE_OUTBOUND_ADMIN
540
+ WIRE_INBOUND_DRAWDOWN_REQUEST: :WIRE_INBOUND_DRAWDOWN_REQUEST
534
541
 
535
542
  def self?.values: -> ::Array[Lithic::Models::Payment::type_]
536
543
  end
@@ -0,0 +1,22 @@
1
+ module Lithic
2
+ module Models
3
+ type three_ds_authentication_approval_request_webhook_event =
4
+ { event_type: :"three_ds_authentication.approval_request" }
5
+
6
+ class ThreeDSAuthenticationApprovalRequestWebhookEvent < Lithic::Models::ThreeDSAuthentication
7
+ def event_type: -> :"three_ds_authentication.approval_request"
8
+
9
+ def event_type=: (
10
+ :"three_ds_authentication.approval_request" _
11
+ ) -> :"three_ds_authentication.approval_request"
12
+
13
+ def initialize: (
14
+ ?event_type: :"three_ds_authentication.approval_request"
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ event_type: :"three_ds_authentication.approval_request"
19
+ }
20
+ end
21
+ end
22
+ end
@@ -25,6 +25,7 @@ module Lithic
25
25
  result: Lithic::Models::Transaction::result,
26
26
  settled_amount: Integer,
27
27
  status: Lithic::Models::Transaction::status,
28
+ tags: ::Hash[Symbol, String],
28
29
  token_info: Lithic::TokenInfo?,
29
30
  updated: Time,
30
31
  events: ::Array[Lithic::Transaction::Event]
@@ -77,6 +78,8 @@ module Lithic
77
78
 
78
79
  attr_accessor status: Lithic::Models::Transaction::status
79
80
 
81
+ attr_accessor tags: ::Hash[Symbol, String]
82
+
80
83
  attr_accessor token_info: Lithic::TokenInfo?
81
84
 
82
85
  attr_accessor updated: Time
@@ -111,6 +114,7 @@ module Lithic
111
114
  result: Lithic::Models::Transaction::result,
112
115
  settled_amount: Integer,
113
116
  status: Lithic::Models::Transaction::status,
117
+ tags: ::Hash[Symbol, String],
114
118
  token_info: Lithic::TokenInfo?,
115
119
  updated: Time,
116
120
  ?events: ::Array[Lithic::Transaction::Event]
@@ -140,6 +144,7 @@ module Lithic
140
144
  result: Lithic::Models::Transaction::result,
141
145
  settled_amount: Integer,
142
146
  status: Lithic::Models::Transaction::status,
147
+ tags: ::Hash[Symbol, String],
143
148
  token_info: Lithic::TokenInfo?,
144
149
  updated: Time,
145
150
  events: ::Array[Lithic::Transaction::Event]
@@ -787,6 +792,7 @@ module Lithic
787
792
  | :AUTH_RULE_ALLOWED_MCC
788
793
  | :AUTH_RULE_BLOCKED_COUNTRY
789
794
  | :AUTH_RULE_BLOCKED_MCC
795
+ | :AUTH_RULE
790
796
  | :CARD_CLOSED
791
797
  | :CARD_CRYPTOGRAM_VALIDATION_FAILURE
792
798
  | :CARD_EXPIRED
@@ -847,6 +853,7 @@ module Lithic
847
853
  AUTH_RULE_ALLOWED_MCC: :AUTH_RULE_ALLOWED_MCC
848
854
  AUTH_RULE_BLOCKED_COUNTRY: :AUTH_RULE_BLOCKED_COUNTRY
849
855
  AUTH_RULE_BLOCKED_MCC: :AUTH_RULE_BLOCKED_MCC
856
+ AUTH_RULE: :AUTH_RULE
850
857
  CARD_CLOSED: :CARD_CLOSED
851
858
  CARD_CRYPTOGRAM_VALIDATION_FAILURE: :CARD_CRYPTOGRAM_VALIDATION_FAILURE
852
859
  CARD_EXPIRED: :CARD_EXPIRED
@@ -1133,6 +1140,7 @@ module Lithic
1133
1140
  | :AUTH_RULE_ALLOWED_MCC
1134
1141
  | :AUTH_RULE_BLOCKED_COUNTRY
1135
1142
  | :AUTH_RULE_BLOCKED_MCC
1143
+ | :AUTH_RULE
1136
1144
  | :CARD_CLOSED
1137
1145
  | :CARD_CRYPTOGRAM_VALIDATION_FAILURE
1138
1146
  | :CARD_EXPIRED
@@ -1193,6 +1201,7 @@ module Lithic
1193
1201
  AUTH_RULE_ALLOWED_MCC: :AUTH_RULE_ALLOWED_MCC
1194
1202
  AUTH_RULE_BLOCKED_COUNTRY: :AUTH_RULE_BLOCKED_COUNTRY
1195
1203
  AUTH_RULE_BLOCKED_MCC: :AUTH_RULE_BLOCKED_MCC
1204
+ AUTH_RULE: :AUTH_RULE
1196
1205
  CARD_CLOSED: :CARD_CLOSED
1197
1206
  CARD_CRYPTOGRAM_VALIDATION_FAILURE: :CARD_CRYPTOGRAM_VALIDATION_FAILURE
1198
1207
  CARD_EXPIRED: :CARD_EXPIRED
@@ -6,7 +6,10 @@ module Lithic
6
6
  descriptor: String,
7
7
  pan: String,
8
8
  mcc: String,
9
+ merchant_acceptor_city: String,
10
+ merchant_acceptor_country: String,
9
11
  merchant_acceptor_id: String,
12
+ merchant_acceptor_state: String,
10
13
  merchant_amount: Integer,
11
14
  merchant_currency: String,
12
15
  partial_approval_capable: bool,
@@ -29,10 +32,22 @@ module Lithic
29
32
 
30
33
  def mcc=: (String) -> String
31
34
 
35
+ attr_reader merchant_acceptor_city: String?
36
+
37
+ def merchant_acceptor_city=: (String) -> String
38
+
39
+ attr_reader merchant_acceptor_country: String?
40
+
41
+ def merchant_acceptor_country=: (String) -> String
42
+
32
43
  attr_reader merchant_acceptor_id: String?
33
44
 
34
45
  def merchant_acceptor_id=: (String) -> String
35
46
 
47
+ attr_reader merchant_acceptor_state: String?
48
+
49
+ def merchant_acceptor_state=: (String) -> String
50
+
36
51
  attr_reader merchant_amount: Integer?
37
52
 
38
53
  def merchant_amount=: (Integer) -> Integer
@@ -60,7 +75,10 @@ module Lithic
60
75
  descriptor: String,
61
76
  pan: String,
62
77
  ?mcc: String,
78
+ ?merchant_acceptor_city: String,
79
+ ?merchant_acceptor_country: String,
63
80
  ?merchant_acceptor_id: String,
81
+ ?merchant_acceptor_state: String,
64
82
  ?merchant_amount: Integer,
65
83
  ?merchant_currency: String,
66
84
  ?partial_approval_capable: bool,
@@ -74,7 +92,10 @@ module Lithic
74
92
  descriptor: String,
75
93
  pan: String,
76
94
  mcc: String,
95
+ merchant_acceptor_city: String,
96
+ merchant_acceptor_country: String,
77
97
  merchant_acceptor_id: String,
98
+ merchant_acceptor_state: String,
78
99
  merchant_amount: Integer,
79
100
  merchant_currency: String,
80
101
  partial_approval_capable: bool,