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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/base_client.rb +7 -1
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +36 -26
  6. data/lib/lithic/internal/type/union.rb +15 -3
  7. data/lib/lithic/models/account_activity_list_response.rb +48 -1141
  8. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +48 -1151
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +3 -0
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +7 -0
  11. data/lib/lithic/models/auth_rules/conditional_attribute.rb +4 -0
  12. data/lib/lithic/models/auth_rules/v2_apply_response.rb +14 -0
  13. data/lib/lithic/models/auth_rules/v2_create_params.rb +7 -0
  14. data/lib/lithic/models/auth_rules/v2_create_response.rb +14 -0
  15. data/lib/lithic/models/auth_rules/v2_draft_params.rb +7 -0
  16. data/lib/lithic/models/auth_rules/v2_draft_response.rb +14 -0
  17. data/lib/lithic/models/auth_rules/v2_list_response.rb +14 -0
  18. data/lib/lithic/models/auth_rules/v2_promote_response.rb +14 -0
  19. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +14 -0
  20. data/lib/lithic/models/auth_rules/v2_update_response.rb +14 -0
  21. data/lib/lithic/models/book_transfer_response.rb +51 -48
  22. data/lib/lithic/models/card_provision_response.rb +25 -3
  23. data/lib/lithic/models/event.rb +0 -1
  24. data/lib/lithic/models/event_list_params.rb +0 -1
  25. data/lib/lithic/models/event_subscription.rb +0 -1
  26. data/lib/lithic/models/events/subscription_create_params.rb +0 -1
  27. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
  28. data/lib/lithic/models/events/subscription_update_params.rb +0 -1
  29. data/lib/lithic/models/external_bank_account_create_params.rb +1 -8
  30. data/lib/lithic/models/external_payment.rb +21 -23
  31. data/lib/lithic/models/financial_account.rb +48 -39
  32. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +32 -23
  33. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
  34. data/lib/lithic/models/financial_transaction.rb +1 -0
  35. data/lib/lithic/models/management_operation_transaction.rb +21 -23
  36. data/lib/lithic/models/payment.rb +269 -140
  37. data/lib/lithic/models/payment_create_response.rb +2 -0
  38. data/lib/lithic/models/payment_retry_response.rb +2 -0
  39. data/lib/lithic/models/provision_response.rb +30 -0
  40. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +32 -1
  41. data/lib/lithic/models/tokenization.rb +1 -0
  42. data/lib/lithic/models/transaction.rb +4 -0
  43. data/lib/lithic/models/transfer.rb +1 -0
  44. data/lib/lithic/models/verification_method.rb +0 -1
  45. data/lib/lithic/models.rb +2 -0
  46. data/lib/lithic/resources/account_activity.rb +2 -2
  47. data/lib/lithic/resources/auth_rules/v2.rb +0 -72
  48. data/lib/lithic/resources/external_bank_accounts.rb +1 -3
  49. data/lib/lithic/version.rb +1 -1
  50. data/lib/lithic.rb +2 -2
  51. data/manifest.yaml +1 -0
  52. data/rbi/lithic/internal/transport/base_client.rbi +5 -0
  53. data/rbi/lithic/internal/transport/pooled_net_requester.rbi +6 -2
  54. data/rbi/lithic/internal/type/base_model.rbi +8 -4
  55. data/rbi/lithic/models/account_activity_list_response.rbi +158 -2629
  56. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +158 -2629
  57. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +6 -0
  58. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +14 -0
  59. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +8 -0
  60. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +28 -0
  61. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +14 -0
  62. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +28 -0
  63. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +14 -0
  64. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +28 -0
  65. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +28 -0
  66. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +28 -0
  67. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +28 -0
  68. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +28 -0
  69. data/rbi/lithic/models/book_transfer_response.rbi +67 -68
  70. data/rbi/lithic/models/card_provision_response.rbi +50 -5
  71. data/rbi/lithic/models/event.rbi +0 -5
  72. data/rbi/lithic/models/event_list_params.rbi +0 -5
  73. data/rbi/lithic/models/event_subscription.rbi +0 -5
  74. data/rbi/lithic/models/events/subscription_create_params.rbi +0 -5
  75. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
  76. data/rbi/lithic/models/events/subscription_update_params.rbi +0 -5
  77. data/rbi/lithic/models/external_bank_account_create_params.rbi +0 -6
  78. data/rbi/lithic/models/external_payment.rbi +34 -39
  79. data/rbi/lithic/models/financial_account.rbi +74 -73
  80. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +46 -33
  81. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
  82. data/rbi/lithic/models/financial_transaction.rbi +5 -0
  83. data/rbi/lithic/models/management_operation_transaction.rbi +49 -60
  84. data/rbi/lithic/models/payment.rbi +425 -182
  85. data/rbi/lithic/models/payment_create_response.rbi +1 -0
  86. data/rbi/lithic/models/payment_retry_response.rbi +1 -0
  87. data/rbi/lithic/models/provision_response.rbi +58 -0
  88. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +83 -0
  89. data/rbi/lithic/models/tokenization.rbi +5 -0
  90. data/rbi/lithic/models/transaction.rbi +20 -0
  91. data/rbi/lithic/models/transfer.rbi +5 -0
  92. data/rbi/lithic/models/verification_method.rbi +0 -1
  93. data/rbi/lithic/models.rbi +2 -0
  94. data/rbi/lithic/resources/auth_rules/v2.rbi +0 -64
  95. data/rbi/lithic/resources/external_bank_accounts.rbi +0 -2
  96. data/sig/lithic/internal/transport/base_client.rbs +2 -0
  97. data/sig/lithic/internal/transport/pooled_net_requester.rbs +4 -1
  98. data/sig/lithic/models/account_activity_list_response.rbs +50 -1036
  99. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +50 -1036
  100. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +2 -0
  101. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +2 -0
  102. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -0
  103. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -0
  104. data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -0
  105. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
  106. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -0
  107. data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -0
  108. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -0
  109. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -0
  110. data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -0
  111. data/sig/lithic/models/book_transfer_response.rbs +26 -19
  112. data/sig/lithic/models/card_provision_response.rbs +22 -5
  113. data/sig/lithic/models/event.rbs +0 -2
  114. data/sig/lithic/models/event_list_params.rbs +0 -2
  115. data/sig/lithic/models/event_subscription.rbs +0 -2
  116. data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
  117. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
  118. data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
  119. data/sig/lithic/models/external_bank_account_create_params.rbs +1 -6
  120. data/sig/lithic/models/external_payment.rbs +19 -26
  121. data/sig/lithic/models/financial_account.rbs +28 -30
  122. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +21 -15
  123. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
  124. data/sig/lithic/models/financial_transaction.rbs +2 -0
  125. data/sig/lithic/models/management_operation_transaction.rbs +19 -26
  126. data/sig/lithic/models/payment.rbs +199 -76
  127. data/sig/lithic/models/provision_response.rbs +36 -0
  128. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +28 -0
  129. data/sig/lithic/models/tokenization.rbs +2 -0
  130. data/sig/lithic/models/transaction.rbs +8 -0
  131. data/sig/lithic/models/transfer.rbs +2 -0
  132. data/sig/lithic/models/verification_method.rbs +1 -7
  133. data/sig/lithic/models.rbs +2 -0
  134. data/sig/lithic/resources/auth_rules/v2.rbs +0 -5
  135. data/sig/lithic/resources/external_bank_accounts.rbs +0 -1
  136. metadata +5 -8
  137. data/lib/lithic/models/auth_rules/v2_report_params.rb +0 -16
  138. data/lib/lithic/models/auth_rules/v2_report_response.rb +0 -18
  139. data/rbi/lithic/models/auth_rules/v2_report_params.rbi +0 -29
  140. data/rbi/lithic/models/auth_rules/v2_report_response.rbi +0 -31
  141. data/sig/lithic/models/auth_rules/v2_report_params.rbs +0 -16
  142. data/sig/lithic/models/auth_rules/v2_report_response.rbs +0 -17
@@ -4,12 +4,12 @@ module Lithic
4
4
  {
5
5
  token: String,
6
6
  created: Time,
7
- family: Lithic::Models::ExternalPayment::family,
8
7
  status: Lithic::Models::ExternalPayment::status,
9
8
  updated: Time,
10
9
  category: Lithic::Models::ExternalPayment::category,
11
10
  currency: String,
12
11
  events: ::Array[Lithic::ExternalPayment::Event],
12
+ family: Lithic::Models::ExternalPayment::family,
13
13
  financial_account_token: String,
14
14
  payment_type: Lithic::Models::ExternalPayment::payment_type,
15
15
  pending_amount: Integer,
@@ -23,8 +23,6 @@ module Lithic
23
23
 
24
24
  attr_accessor created: Time
25
25
 
26
- attr_accessor family: Lithic::Models::ExternalPayment::family
27
-
28
26
  attr_accessor status: Lithic::Models::ExternalPayment::status
29
27
 
30
28
  attr_accessor updated: Time
@@ -45,6 +43,12 @@ module Lithic
45
43
  ::Array[Lithic::ExternalPayment::Event]
46
44
  ) -> ::Array[Lithic::ExternalPayment::Event]
47
45
 
46
+ attr_reader family: Lithic::Models::ExternalPayment::family?
47
+
48
+ def family=: (
49
+ Lithic::Models::ExternalPayment::family
50
+ ) -> Lithic::Models::ExternalPayment::family
51
+
48
52
  attr_reader financial_account_token: String?
49
53
 
50
54
  def financial_account_token=: (String) -> String
@@ -76,12 +80,12 @@ module Lithic
76
80
  def initialize: (
77
81
  token: String,
78
82
  created: Time,
79
- family: Lithic::Models::ExternalPayment::family,
80
83
  status: Lithic::Models::ExternalPayment::status,
81
84
  updated: Time,
82
85
  ?category: Lithic::Models::ExternalPayment::category,
83
86
  ?currency: String,
84
87
  ?events: ::Array[Lithic::ExternalPayment::Event],
88
+ ?family: Lithic::Models::ExternalPayment::family,
85
89
  ?financial_account_token: String,
86
90
  ?payment_type: Lithic::Models::ExternalPayment::payment_type,
87
91
  ?pending_amount: Integer,
@@ -93,12 +97,12 @@ module Lithic
93
97
  def to_hash: -> {
94
98
  token: String,
95
99
  created: Time,
96
- family: Lithic::Models::ExternalPayment::family,
97
100
  status: Lithic::Models::ExternalPayment::status,
98
101
  updated: Time,
99
102
  category: Lithic::Models::ExternalPayment::category,
100
103
  currency: String,
101
104
  events: ::Array[Lithic::ExternalPayment::Event],
105
+ family: Lithic::Models::ExternalPayment::family,
102
106
  financial_account_token: String,
103
107
  payment_type: Lithic::Models::ExternalPayment::payment_type,
104
108
  pending_amount: Integer,
@@ -107,27 +111,6 @@ module Lithic
107
111
  user_defined_id: String
108
112
  }
109
113
 
110
- type family =
111
- :CARD
112
- | :PAYMENT
113
- | :TRANSFER
114
- | :INTERNAL
115
- | :EXTERNAL_PAYMENT
116
- | :MANAGEMENT_OPERATION
117
-
118
- module Family
119
- extend Lithic::Internal::Type::Enum
120
-
121
- CARD: :CARD
122
- PAYMENT: :PAYMENT
123
- TRANSFER: :TRANSFER
124
- INTERNAL: :INTERNAL
125
- EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT
126
- MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION
127
-
128
- def self?.values: -> ::Array[Lithic::Models::ExternalPayment::family]
129
- end
130
-
131
114
  type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
132
115
 
133
116
  module Status
@@ -279,6 +262,16 @@ module Lithic
279
262
  end
280
263
  end
281
264
 
265
+ type family = :EXTERNAL_PAYMENT
266
+
267
+ module Family
268
+ extend Lithic::Internal::Type::Enum
269
+
270
+ EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT
271
+
272
+ def self?.values: -> ::Array[Lithic::Models::ExternalPayment::family]
273
+ end
274
+
282
275
  type payment_type = :DEPOSIT | :WITHDRAWAL
283
276
 
284
277
  module PaymentType
@@ -73,18 +73,18 @@ module Lithic
73
73
 
74
74
  type credit_configuration =
75
75
  {
76
- charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?,
76
+ auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration,
77
77
  credit_limit: Integer?,
78
78
  credit_product_token: String?,
79
79
  external_bank_account_token: String?,
80
- financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?,
81
- is_spend_blocked: bool,
82
80
  tier: String?,
83
- auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
81
+ charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?,
82
+ financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?,
83
+ is_spend_blocked: bool
84
84
  }
85
85
 
86
86
  class CreditConfiguration < Lithic::Internal::Type::BaseModel
87
- attr_accessor charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?
87
+ attr_accessor auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
88
88
 
89
89
  attr_accessor credit_limit: Integer?
90
90
 
@@ -92,40 +92,48 @@ module Lithic
92
92
 
93
93
  attr_accessor external_bank_account_token: String?
94
94
 
95
- attr_accessor financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?
95
+ attr_accessor tier: String?
96
96
 
97
- attr_accessor is_spend_blocked: bool
97
+ attr_accessor charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?
98
98
 
99
- attr_accessor tier: String?
99
+ attr_accessor financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?
100
100
 
101
- attr_reader auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration?
101
+ attr_reader is_spend_blocked: bool?
102
102
 
103
- def auto_collection_configuration=: (
104
- Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
105
- ) -> Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
103
+ def is_spend_blocked=: (bool) -> bool
106
104
 
107
105
  def initialize: (
108
- charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?,
106
+ auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration,
109
107
  credit_limit: Integer?,
110
108
  credit_product_token: String?,
111
109
  external_bank_account_token: String?,
112
- financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?,
113
- is_spend_blocked: bool,
114
110
  tier: String?,
115
- ?auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
111
+ ?charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?,
112
+ ?financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?,
113
+ ?is_spend_blocked: bool
116
114
  ) -> void
117
115
 
118
116
  def to_hash: -> {
119
- charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?,
117
+ auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration,
120
118
  credit_limit: Integer?,
121
119
  credit_product_token: String?,
122
120
  external_bank_account_token: String?,
123
- financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?,
124
- is_spend_blocked: bool,
125
121
  tier: String?,
126
- auto_collection_configuration: Lithic::FinancialAccount::CreditConfiguration::AutoCollectionConfiguration
122
+ charged_off_reason: Lithic::Models::FinancialAccount::CreditConfiguration::charged_off_reason?,
123
+ financial_account_state: Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state?,
124
+ is_spend_blocked: bool
127
125
  }
128
126
 
127
+ type auto_collection_configuration = { auto_collection_enabled: bool }
128
+
129
+ class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
130
+ attr_accessor auto_collection_enabled: bool
131
+
132
+ def initialize: (auto_collection_enabled: bool) -> void
133
+
134
+ def to_hash: -> { auto_collection_enabled: bool }
135
+ end
136
+
129
137
  type charged_off_reason = :DELINQUENT | :FRAUD
130
138
 
131
139
  module ChargedOffReason
@@ -150,16 +158,6 @@ module Lithic
150
158
 
151
159
  def self?.values: -> ::Array[Lithic::Models::FinancialAccount::CreditConfiguration::financial_account_state]
152
160
  end
153
-
154
- type auto_collection_configuration = { auto_collection_enabled: bool }
155
-
156
- class AutoCollectionConfiguration < Lithic::Internal::Type::BaseModel
157
- attr_accessor auto_collection_enabled: bool
158
-
159
- def initialize: (auto_collection_enabled: bool) -> void
160
-
161
- def to_hash: -> { auto_collection_enabled: bool }
162
- end
163
161
  end
164
162
 
165
163
  type status = :OPEN | :CLOSED | :SUSPENDED | :PENDING
@@ -7,13 +7,13 @@ module Lithic
7
7
  {
8
8
  account_token: String,
9
9
  auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration,
10
- charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?,
11
10
  credit_limit: Integer?,
12
11
  credit_product_token: String?,
13
12
  external_bank_account_token: String?,
13
+ tier: String?,
14
+ charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?,
14
15
  financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state,
15
- is_spend_blocked: bool,
16
- tier: String?
16
+ is_spend_blocked: bool
17
17
  }
18
18
 
19
19
  class FinancialAccountCreditConfig < Lithic::Internal::Type::BaseModel
@@ -21,42 +21,48 @@ module Lithic
21
21
 
22
22
  attr_accessor auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration
23
23
 
24
- attr_accessor charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?
25
-
26
24
  attr_accessor credit_limit: Integer?
27
25
 
28
26
  attr_accessor credit_product_token: String?
29
27
 
30
28
  attr_accessor external_bank_account_token: String?
31
29
 
32
- attr_accessor financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state
30
+ attr_accessor tier: String?
33
31
 
34
- attr_accessor is_spend_blocked: bool
32
+ attr_accessor charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?
35
33
 
36
- attr_accessor tier: String?
34
+ attr_reader financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state?
35
+
36
+ def financial_account_state=: (
37
+ Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state
38
+ ) -> Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state
39
+
40
+ attr_reader is_spend_blocked: bool?
41
+
42
+ def is_spend_blocked=: (bool) -> bool
37
43
 
38
44
  def initialize: (
39
45
  account_token: String,
40
46
  auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration,
41
- charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?,
42
47
  credit_limit: Integer?,
43
48
  credit_product_token: String?,
44
49
  external_bank_account_token: String?,
45
- financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state,
46
- is_spend_blocked: bool,
47
- tier: String?
50
+ tier: String?,
51
+ ?charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?,
52
+ ?financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state,
53
+ ?is_spend_blocked: bool
48
54
  ) -> void
49
55
 
50
56
  def to_hash: -> {
51
57
  account_token: String,
52
58
  auto_collection_configuration: Lithic::FinancialAccounts::FinancialAccountCreditConfig::AutoCollectionConfiguration,
53
- charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?,
54
59
  credit_limit: Integer?,
55
60
  credit_product_token: String?,
56
61
  external_bank_account_token: String?,
62
+ tier: String?,
63
+ charged_off_reason: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::charged_off_reason?,
57
64
  financial_account_state: Lithic::Models::FinancialAccounts::FinancialAccountCreditConfig::financial_account_state,
58
- is_spend_blocked: bool,
59
- tier: String?
65
+ is_spend_blocked: bool
60
66
  }
61
67
 
62
68
  type auto_collection_configuration = { auto_collection_enabled: bool }
@@ -154,6 +154,7 @@ module Lithic
154
154
  | :ACH_ORIGINATION_REVIEWED
155
155
  | :ACH_ORIGINATION_SETTLED
156
156
  | :ACH_RECEIPT_PROCESSED
157
+ | :ACH_RECEIPT_RELEASED
157
158
  | :ACH_RECEIPT_SETTLED
158
159
  | :ACH_RETURN_INITIATED
159
160
  | :ACH_RETURN_PROCESSED
@@ -228,6 +229,7 @@ module Lithic
228
229
  ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED
229
230
  ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED
230
231
  ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED
232
+ ACH_RECEIPT_RELEASED: :ACH_RECEIPT_RELEASED
231
233
  ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED
232
234
  ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED
233
235
  ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED
@@ -149,6 +149,7 @@ module Lithic
149
149
  | :ACH_ORIGINATION_REVIEWED
150
150
  | :ACH_ORIGINATION_SETTLED
151
151
  | :ACH_RECEIPT_PROCESSED
152
+ | :ACH_RECEIPT_RELEASED
152
153
  | :ACH_RECEIPT_SETTLED
153
154
  | :ACH_RETURN_INITIATED
154
155
  | :ACH_RETURN_PROCESSED
@@ -223,6 +224,7 @@ module Lithic
223
224
  ACH_ORIGINATION_REVIEWED: :ACH_ORIGINATION_REVIEWED
224
225
  ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED
225
226
  ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED
227
+ ACH_RECEIPT_RELEASED: :ACH_RECEIPT_RELEASED
226
228
  ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED
227
229
  ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED
228
230
  ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED
@@ -4,7 +4,6 @@ module Lithic
4
4
  {
5
5
  token: String,
6
6
  created: Time,
7
- family: Lithic::Models::ManagementOperationTransaction::family,
8
7
  status: Lithic::Models::ManagementOperationTransaction::status,
9
8
  updated: Time,
10
9
  category: Lithic::Models::ManagementOperationTransaction::category,
@@ -12,6 +11,7 @@ module Lithic
12
11
  direction: Lithic::Models::ManagementOperationTransaction::direction,
13
12
  events: ::Array[Lithic::ManagementOperationTransaction::Event],
14
13
  external_resource: Lithic::ExternalResource?,
14
+ family: Lithic::Models::ManagementOperationTransaction::family,
15
15
  financial_account_token: String,
16
16
  pending_amount: Integer,
17
17
  result: Lithic::Models::ManagementOperationTransaction::result,
@@ -25,8 +25,6 @@ module Lithic
25
25
 
26
26
  attr_accessor created: Time
27
27
 
28
- attr_accessor family: Lithic::Models::ManagementOperationTransaction::family
29
-
30
28
  attr_accessor status: Lithic::Models::ManagementOperationTransaction::status
31
29
 
32
30
  attr_accessor updated: Time
@@ -55,6 +53,12 @@ module Lithic
55
53
 
56
54
  attr_accessor external_resource: Lithic::ExternalResource?
57
55
 
56
+ attr_reader family: Lithic::Models::ManagementOperationTransaction::family?
57
+
58
+ def family=: (
59
+ Lithic::Models::ManagementOperationTransaction::family
60
+ ) -> Lithic::Models::ManagementOperationTransaction::family
61
+
58
62
  attr_reader financial_account_token: String?
59
63
 
60
64
  def financial_account_token=: (String) -> String
@@ -82,7 +86,6 @@ module Lithic
82
86
  def initialize: (
83
87
  token: String,
84
88
  created: Time,
85
- family: Lithic::Models::ManagementOperationTransaction::family,
86
89
  status: Lithic::Models::ManagementOperationTransaction::status,
87
90
  updated: Time,
88
91
  ?category: Lithic::Models::ManagementOperationTransaction::category,
@@ -90,6 +93,7 @@ module Lithic
90
93
  ?direction: Lithic::Models::ManagementOperationTransaction::direction,
91
94
  ?events: ::Array[Lithic::ManagementOperationTransaction::Event],
92
95
  ?external_resource: Lithic::ExternalResource?,
96
+ ?family: Lithic::Models::ManagementOperationTransaction::family,
93
97
  ?financial_account_token: String,
94
98
  ?pending_amount: Integer,
95
99
  ?result: Lithic::Models::ManagementOperationTransaction::result,
@@ -101,7 +105,6 @@ module Lithic
101
105
  def to_hash: -> {
102
106
  token: String,
103
107
  created: Time,
104
- family: Lithic::Models::ManagementOperationTransaction::family,
105
108
  status: Lithic::Models::ManagementOperationTransaction::status,
106
109
  updated: Time,
107
110
  category: Lithic::Models::ManagementOperationTransaction::category,
@@ -109,6 +112,7 @@ module Lithic
109
112
  direction: Lithic::Models::ManagementOperationTransaction::direction,
110
113
  events: ::Array[Lithic::ManagementOperationTransaction::Event],
111
114
  external_resource: Lithic::ExternalResource?,
115
+ family: Lithic::Models::ManagementOperationTransaction::family,
112
116
  financial_account_token: String,
113
117
  pending_amount: Integer,
114
118
  result: Lithic::Models::ManagementOperationTransaction::result,
@@ -117,27 +121,6 @@ module Lithic
117
121
  user_defined_id: String
118
122
  }
119
123
 
120
- type family =
121
- :CARD
122
- | :PAYMENT
123
- | :TRANSFER
124
- | :INTERNAL
125
- | :EXTERNAL_PAYMENT
126
- | :MANAGEMENT_OPERATION
127
-
128
- module Family
129
- extend Lithic::Internal::Type::Enum
130
-
131
- CARD: :CARD
132
- PAYMENT: :PAYMENT
133
- TRANSFER: :TRANSFER
134
- INTERNAL: :INTERNAL
135
- EXTERNAL_PAYMENT: :EXTERNAL_PAYMENT
136
- MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION
137
-
138
- def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::family]
139
- end
140
-
141
124
  type status = :PENDING | :SETTLED | :DECLINED | :REVERSED | :CANCELED
142
125
 
143
126
  module Status
@@ -310,6 +293,16 @@ module Lithic
310
293
  end
311
294
  end
312
295
 
296
+ type family = :MANAGEMENT_OPERATION
297
+
298
+ module Family
299
+ extend Lithic::Internal::Type::Enum
300
+
301
+ MANAGEMENT_OPERATION: :MANAGEMENT_OPERATION
302
+
303
+ def self?.values: -> ::Array[Lithic::Models::ManagementOperationTransaction::family]
304
+ end
305
+
313
306
  type result = :APPROVED | :DECLINED
314
307
 
315
308
  module Result