lithic 0.7.0 → 0.8.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 (153) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/README.md +3 -3
  4. data/lib/lithic/client.rb +11 -0
  5. data/lib/lithic/models/account_activity_list_params.rb +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +8 -2
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +8 -2
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +84 -8
  9. data/lib/lithic/models/auth_rules/auth_rule_version.rb +92 -0
  10. data/lib/lithic/models/auth_rules/rule_feature.rb +231 -0
  11. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +33 -0
  12. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +9 -17
  13. data/lib/lithic/models/auth_rules/v2_create_params.rb +50 -10
  14. data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -3
  15. data/lib/lithic/models/auth_rules/v2_list_versions_params.rb +22 -0
  16. data/lib/lithic/models/auth_rules/v2_list_versions_response.rb +18 -0
  17. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +3 -83
  18. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +525 -1
  19. data/lib/lithic/models/auth_rules/v2_update_params.rb +17 -1
  20. data/lib/lithic/models/auth_rules/velocity_limit_filters.rb +87 -0
  21. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -84
  22. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +69 -59
  23. data/lib/lithic/models/dispute_create_params.rb +11 -11
  24. data/lib/lithic/models/dispute_list_params.rb +3 -3
  25. data/lib/lithic/models/dispute_update_params.rb +9 -9
  26. data/lib/lithic/models/event.rb +0 -7
  27. data/lib/lithic/models/event_list_params.rb +0 -4
  28. data/lib/lithic/models/event_subscription.rb +0 -4
  29. data/lib/lithic/models/events/subscription_create_params.rb +0 -4
  30. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
  31. data/lib/lithic/models/events/subscription_update_params.rb +0 -4
  32. data/lib/lithic/models/financial_account.rb +1 -0
  33. data/lib/lithic/models/financial_account_list_params.rb +1 -0
  34. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +9 -1
  35. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +9 -1
  36. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +27 -2
  37. data/lib/lithic/models/hold.rb +147 -0
  38. data/lib/lithic/models/hold_create_params.rb +61 -0
  39. data/lib/lithic/models/hold_event.rb +110 -0
  40. data/lib/lithic/models/hold_list_params.rb +89 -0
  41. data/lib/lithic/models/hold_retrieve_params.rb +20 -0
  42. data/lib/lithic/models/hold_void_params.rb +29 -0
  43. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  44. data/lib/lithic/models/parsed_webhook_event.rb +2 -4
  45. data/lib/lithic/models/payment.rb +76 -12
  46. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  47. data/lib/lithic/models.rb +12 -2
  48. data/lib/lithic/resources/account_activity.rb +2 -2
  49. data/lib/lithic/resources/auth_rules/v2.rb +24 -4
  50. data/lib/lithic/resources/disputes.rb +21 -21
  51. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -2
  52. data/lib/lithic/resources/holds.rb +132 -0
  53. data/lib/lithic/resources/webhooks.rb +2 -3
  54. data/lib/lithic/version.rb +1 -1
  55. data/lib/lithic.rb +14 -1
  56. data/rbi/lithic/client.rbi +9 -0
  57. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  58. data/rbi/lithic/models/account_activity_list_response.rbi +14 -2
  59. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +14 -2
  60. data/rbi/lithic/models/auth_rules/auth_rule.rbi +128 -4
  61. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +142 -0
  62. data/rbi/lithic/models/auth_rules/rule_feature.rbi +414 -0
  63. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +94 -0
  64. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +12 -35
  65. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +81 -12
  66. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
  67. data/rbi/lithic/models/auth_rules/v2_list_versions_params.rbi +40 -0
  68. data/rbi/lithic/models/auth_rules/v2_list_versions_response.rbi +36 -0
  69. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +4 -209
  70. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +1692 -3
  71. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +24 -0
  72. data/rbi/lithic/models/auth_rules/velocity_limit_filters.rbi +205 -0
  73. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +4 -206
  74. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +154 -142
  75. data/rbi/lithic/models/dispute_create_params.rbi +11 -11
  76. data/rbi/lithic/models/dispute_list_params.rbi +3 -3
  77. data/rbi/lithic/models/dispute_update_params.rbi +9 -9
  78. data/rbi/lithic/models/event.rbi +0 -14
  79. data/rbi/lithic/models/event_list_params.rbi +0 -8
  80. data/rbi/lithic/models/event_subscription.rbi +0 -8
  81. data/rbi/lithic/models/events/subscription_create_params.rbi +0 -8
  82. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
  83. data/rbi/lithic/models/events/subscription_update_params.rbi +0 -8
  84. data/rbi/lithic/models/financial_account.rbi +5 -0
  85. data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
  86. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +11 -0
  87. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +11 -0
  88. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +38 -3
  89. data/rbi/lithic/models/hold.rbi +183 -0
  90. data/rbi/lithic/models/hold_create_params.rbi +90 -0
  91. data/rbi/lithic/models/hold_event.rbi +148 -0
  92. data/rbi/lithic/models/hold_list_params.rbi +137 -0
  93. data/rbi/lithic/models/hold_retrieve_params.rbi +35 -0
  94. data/rbi/lithic/models/hold_void_params.rbi +49 -0
  95. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  96. data/rbi/lithic/models/parsed_webhook_event.rbi +0 -1
  97. data/rbi/lithic/models/payment.rbi +139 -13
  98. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  99. data/rbi/lithic/models.rbi +12 -3
  100. data/rbi/lithic/resources/auth_rules/v2.rbi +16 -4
  101. data/rbi/lithic/resources/disputes.rbi +21 -21
  102. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -0
  103. data/rbi/lithic/resources/holds.rbi +111 -0
  104. data/rbi/lithic/resources/webhooks.rbi +8 -2
  105. data/sig/lithic/client.rbs +5 -0
  106. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  107. data/sig/lithic/models/account_activity_list_response.rbs +5 -0
  108. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +5 -0
  109. data/sig/lithic/models/auth_rules/auth_rule.rbs +42 -0
  110. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +67 -0
  111. data/sig/lithic/models/auth_rules/rule_feature.rbs +173 -0
  112. data/sig/lithic/models/auth_rules/typescript_code_parameters.rbs +27 -0
  113. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +5 -18
  114. data/sig/lithic/models/auth_rules/v2_create_params.rbs +25 -0
  115. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  116. data/sig/lithic/models/auth_rules/v2_list_versions_params.rbs +25 -0
  117. data/sig/lithic/models/auth_rules/v2_list_versions_response.rbs +18 -0
  118. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -80
  119. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +658 -3
  120. data/sig/lithic/models/auth_rules/v2_update_params.rbs +16 -0
  121. data/sig/lithic/models/auth_rules/velocity_limit_filters.rbs +81 -0
  122. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +6 -82
  123. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +38 -38
  124. data/sig/lithic/models/event.rbs +0 -2
  125. data/sig/lithic/models/event_list_params.rbs +0 -2
  126. data/sig/lithic/models/event_subscription.rbs +0 -2
  127. data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
  128. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
  129. data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
  130. data/sig/lithic/models/financial_account.rbs +2 -0
  131. data/sig/lithic/models/financial_account_list_params.rbs +7 -1
  132. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +7 -0
  133. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +7 -0
  134. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +17 -3
  135. data/sig/lithic/models/hold.rbs +137 -0
  136. data/sig/lithic/models/hold_create_params.rbs +57 -0
  137. data/sig/lithic/models/hold_event.rbs +91 -0
  138. data/sig/lithic/models/hold_list_params.rbs +83 -0
  139. data/sig/lithic/models/hold_retrieve_params.rbs +23 -0
  140. data/sig/lithic/models/hold_void_params.rbs +28 -0
  141. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  142. data/sig/lithic/models/parsed_webhook_event.rbs +0 -1
  143. data/sig/lithic/models/payment.rbs +23 -8
  144. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  145. data/sig/lithic/models.rbs +12 -2
  146. data/sig/lithic/resources/auth_rules/v2.rbs +5 -0
  147. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +2 -0
  148. data/sig/lithic/resources/holds.rbs +39 -0
  149. data/sig/lithic/resources/webhooks.rbs +0 -1
  150. metadata +41 -5
  151. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +0 -159
  152. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +0 -331
  153. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +0 -130
@@ -0,0 +1,137 @@
1
+ module Lithic
2
+ module Models
3
+ type hold =
4
+ {
5
+ token: String,
6
+ created: Time,
7
+ status: Lithic::Models::Hold::status,
8
+ updated: Time,
9
+ currency: String,
10
+ events: ::Array[Lithic::HoldEvent],
11
+ expiration_datetime: Time?,
12
+ family: Lithic::Models::Hold::family,
13
+ financial_account_token: String,
14
+ pending_amount: Integer,
15
+ result: Lithic::Models::Hold::result,
16
+ user_defined_id: String?
17
+ }
18
+
19
+ class Hold < Lithic::Internal::Type::BaseModel
20
+ attr_accessor token: String
21
+
22
+ attr_accessor created: Time
23
+
24
+ attr_accessor status: Lithic::Models::Hold::status
25
+
26
+ attr_accessor updated: Time
27
+
28
+ attr_reader currency: String?
29
+
30
+ def currency=: (String) -> String
31
+
32
+ attr_reader events: ::Array[Lithic::HoldEvent]?
33
+
34
+ def events=: (::Array[Lithic::HoldEvent]) -> ::Array[Lithic::HoldEvent]
35
+
36
+ attr_accessor expiration_datetime: Time?
37
+
38
+ attr_reader family: Lithic::Models::Hold::family?
39
+
40
+ def family=: (
41
+ Lithic::Models::Hold::family
42
+ ) -> Lithic::Models::Hold::family
43
+
44
+ attr_reader financial_account_token: String?
45
+
46
+ def financial_account_token=: (String) -> String
47
+
48
+ attr_reader pending_amount: Integer?
49
+
50
+ def pending_amount=: (Integer) -> Integer
51
+
52
+ attr_reader result: Lithic::Models::Hold::result?
53
+
54
+ def result=: (
55
+ Lithic::Models::Hold::result
56
+ ) -> Lithic::Models::Hold::result
57
+
58
+ attr_accessor user_defined_id: String?
59
+
60
+ def initialize: (
61
+ token: String,
62
+ created: Time,
63
+ status: Lithic::Models::Hold::status,
64
+ updated: Time,
65
+ ?currency: String,
66
+ ?events: ::Array[Lithic::HoldEvent],
67
+ ?expiration_datetime: Time?,
68
+ ?family: Lithic::Models::Hold::family,
69
+ ?financial_account_token: String,
70
+ ?pending_amount: Integer,
71
+ ?result: Lithic::Models::Hold::result,
72
+ ?user_defined_id: String?
73
+ ) -> void
74
+
75
+ def to_hash: -> {
76
+ token: String,
77
+ created: Time,
78
+ status: Lithic::Models::Hold::status,
79
+ updated: Time,
80
+ currency: String,
81
+ events: ::Array[Lithic::HoldEvent],
82
+ expiration_datetime: Time?,
83
+ family: Lithic::Models::Hold::family,
84
+ financial_account_token: String,
85
+ pending_amount: Integer,
86
+ result: Lithic::Models::Hold::result,
87
+ user_defined_id: String?
88
+ }
89
+
90
+ type status =
91
+ :PENDING
92
+ | :SETTLED
93
+ | :EXPIRED
94
+ | :VOIDED
95
+ | :DECLINED
96
+ | :REVERSED
97
+ | :CANCELED
98
+ | :RETURNED
99
+
100
+ module Status
101
+ extend Lithic::Internal::Type::Enum
102
+
103
+ PENDING: :PENDING
104
+ SETTLED: :SETTLED
105
+ EXPIRED: :EXPIRED
106
+ VOIDED: :VOIDED
107
+ DECLINED: :DECLINED
108
+ REVERSED: :REVERSED
109
+ CANCELED: :CANCELED
110
+ RETURNED: :RETURNED
111
+
112
+ def self?.values: -> ::Array[Lithic::Models::Hold::status]
113
+ end
114
+
115
+ type family = :HOLD
116
+
117
+ module Family
118
+ extend Lithic::Internal::Type::Enum
119
+
120
+ HOLD: :HOLD
121
+
122
+ def self?.values: -> ::Array[Lithic::Models::Hold::family]
123
+ end
124
+
125
+ type result = :APPROVED | :DECLINED
126
+
127
+ module Result
128
+ extend Lithic::Internal::Type::Enum
129
+
130
+ APPROVED: :APPROVED
131
+ DECLINED: :DECLINED
132
+
133
+ def self?.values: -> ::Array[Lithic::Models::Hold::result]
134
+ end
135
+ end
136
+ end
137
+ end
@@ -0,0 +1,57 @@
1
+ module Lithic
2
+ module Models
3
+ type hold_create_params =
4
+ {
5
+ financial_account_token: String,
6
+ amount: Integer,
7
+ token: String,
8
+ expiration_datetime: Time,
9
+ memo: String?,
10
+ user_defined_id: String
11
+ }
12
+ & Lithic::Internal::Type::request_parameters
13
+
14
+ class HoldCreateParams < Lithic::Internal::Type::BaseModel
15
+ extend Lithic::Internal::Type::RequestParameters::Converter
16
+ include Lithic::Internal::Type::RequestParameters
17
+
18
+ attr_accessor financial_account_token: String
19
+
20
+ attr_accessor amount: Integer
21
+
22
+ attr_reader token: String?
23
+
24
+ def token=: (String) -> String
25
+
26
+ attr_reader expiration_datetime: Time?
27
+
28
+ def expiration_datetime=: (Time) -> Time
29
+
30
+ attr_accessor memo: String?
31
+
32
+ attr_reader user_defined_id: String?
33
+
34
+ def user_defined_id=: (String) -> String
35
+
36
+ def initialize: (
37
+ financial_account_token: String,
38
+ amount: Integer,
39
+ ?token: String,
40
+ ?expiration_datetime: Time,
41
+ ?memo: String?,
42
+ ?user_defined_id: String,
43
+ ?request_options: Lithic::request_opts
44
+ ) -> void
45
+
46
+ def to_hash: -> {
47
+ financial_account_token: String,
48
+ amount: Integer,
49
+ token: String,
50
+ expiration_datetime: Time,
51
+ memo: String?,
52
+ user_defined_id: String,
53
+ request_options: Lithic::RequestOptions
54
+ }
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,91 @@
1
+ module Lithic
2
+ module Models
3
+ type hold_event =
4
+ {
5
+ token: String,
6
+ amount: Integer,
7
+ created: Time,
8
+ detailed_results: ::Array[Lithic::Models::HoldEvent::detailed_result],
9
+ memo: String?,
10
+ result: Lithic::Models::HoldEvent::result,
11
+ settling_transaction_token: String?,
12
+ type: Lithic::Models::HoldEvent::type_
13
+ }
14
+
15
+ class HoldEvent < Lithic::Internal::Type::BaseModel
16
+ attr_accessor token: String
17
+
18
+ attr_accessor amount: Integer
19
+
20
+ attr_accessor created: Time
21
+
22
+ attr_accessor detailed_results: ::Array[Lithic::Models::HoldEvent::detailed_result]
23
+
24
+ attr_accessor memo: String?
25
+
26
+ attr_accessor result: Lithic::Models::HoldEvent::result
27
+
28
+ attr_accessor settling_transaction_token: String?
29
+
30
+ attr_accessor type: Lithic::Models::HoldEvent::type_
31
+
32
+ def initialize: (
33
+ token: String,
34
+ amount: Integer,
35
+ created: Time,
36
+ detailed_results: ::Array[Lithic::Models::HoldEvent::detailed_result],
37
+ memo: String?,
38
+ result: Lithic::Models::HoldEvent::result,
39
+ settling_transaction_token: String?,
40
+ type: Lithic::Models::HoldEvent::type_
41
+ ) -> void
42
+
43
+ def to_hash: -> {
44
+ token: String,
45
+ amount: Integer,
46
+ created: Time,
47
+ detailed_results: ::Array[Lithic::Models::HoldEvent::detailed_result],
48
+ memo: String?,
49
+ result: Lithic::Models::HoldEvent::result,
50
+ settling_transaction_token: String?,
51
+ type: Lithic::Models::HoldEvent::type_
52
+ }
53
+
54
+ type detailed_result = :APPROVED | :INSUFFICIENT_FUNDS
55
+
56
+ module DetailedResult
57
+ extend Lithic::Internal::Type::Enum
58
+
59
+ APPROVED: :APPROVED
60
+ INSUFFICIENT_FUNDS: :INSUFFICIENT_FUNDS
61
+
62
+ def self?.values: -> ::Array[Lithic::Models::HoldEvent::detailed_result]
63
+ end
64
+
65
+ type result = :APPROVED | :DECLINED
66
+
67
+ module Result
68
+ extend Lithic::Internal::Type::Enum
69
+
70
+ APPROVED: :APPROVED
71
+ DECLINED: :DECLINED
72
+
73
+ def self?.values: -> ::Array[Lithic::Models::HoldEvent::result]
74
+ end
75
+
76
+ type type_ =
77
+ :HOLD_INITIATED | :HOLD_VOIDED | :HOLD_EXPIRED | :HOLD_SETTLED
78
+
79
+ module Type
80
+ extend Lithic::Internal::Type::Enum
81
+
82
+ HOLD_INITIATED: :HOLD_INITIATED
83
+ HOLD_VOIDED: :HOLD_VOIDED
84
+ HOLD_EXPIRED: :HOLD_EXPIRED
85
+ HOLD_SETTLED: :HOLD_SETTLED
86
+
87
+ def self?.values: -> ::Array[Lithic::Models::HoldEvent::type_]
88
+ end
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,83 @@
1
+ module Lithic
2
+ module Models
3
+ type hold_list_params =
4
+ {
5
+ financial_account_token: String,
6
+ begin_: Time,
7
+ end_: Time,
8
+ ending_before: String,
9
+ page_size: Integer,
10
+ starting_after: String,
11
+ status: Lithic::Models::HoldListParams::status
12
+ }
13
+ & Lithic::Internal::Type::request_parameters
14
+
15
+ class HoldListParams < Lithic::Internal::Type::BaseModel
16
+ extend Lithic::Internal::Type::RequestParameters::Converter
17
+ include Lithic::Internal::Type::RequestParameters
18
+
19
+ attr_accessor financial_account_token: String
20
+
21
+ attr_reader begin_: Time?
22
+
23
+ def begin_=: (Time) -> Time
24
+
25
+ attr_reader end_: Time?
26
+
27
+ def end_=: (Time) -> Time
28
+
29
+ attr_reader ending_before: String?
30
+
31
+ def ending_before=: (String) -> String
32
+
33
+ attr_reader page_size: Integer?
34
+
35
+ def page_size=: (Integer) -> Integer
36
+
37
+ attr_reader starting_after: String?
38
+
39
+ def starting_after=: (String) -> String
40
+
41
+ attr_reader status: Lithic::Models::HoldListParams::status?
42
+
43
+ def status=: (
44
+ Lithic::Models::HoldListParams::status
45
+ ) -> Lithic::Models::HoldListParams::status
46
+
47
+ def initialize: (
48
+ financial_account_token: String,
49
+ ?begin_: Time,
50
+ ?end_: Time,
51
+ ?ending_before: String,
52
+ ?page_size: Integer,
53
+ ?starting_after: String,
54
+ ?status: Lithic::Models::HoldListParams::status,
55
+ ?request_options: Lithic::request_opts
56
+ ) -> void
57
+
58
+ def to_hash: -> {
59
+ financial_account_token: String,
60
+ begin_: Time,
61
+ end_: Time,
62
+ ending_before: String,
63
+ page_size: Integer,
64
+ starting_after: String,
65
+ status: Lithic::Models::HoldListParams::status,
66
+ request_options: Lithic::RequestOptions
67
+ }
68
+
69
+ type status = :PENDING | :SETTLED | :EXPIRED | :VOIDED
70
+
71
+ module Status
72
+ extend Lithic::Internal::Type::Enum
73
+
74
+ PENDING: :PENDING
75
+ SETTLED: :SETTLED
76
+ EXPIRED: :EXPIRED
77
+ VOIDED: :VOIDED
78
+
79
+ def self?.values: -> ::Array[Lithic::Models::HoldListParams::status]
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,23 @@
1
+ module Lithic
2
+ module Models
3
+ type hold_retrieve_params =
4
+ { hold_token: String } & Lithic::Internal::Type::request_parameters
5
+
6
+ class HoldRetrieveParams < Lithic::Internal::Type::BaseModel
7
+ extend Lithic::Internal::Type::RequestParameters::Converter
8
+ include Lithic::Internal::Type::RequestParameters
9
+
10
+ attr_accessor hold_token: String
11
+
12
+ def initialize: (
13
+ hold_token: String,
14
+ ?request_options: Lithic::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ hold_token: String,
19
+ request_options: Lithic::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,28 @@
1
+ module Lithic
2
+ module Models
3
+ type hold_void_params =
4
+ { hold_token: String, memo: String? }
5
+ & Lithic::Internal::Type::request_parameters
6
+
7
+ class HoldVoidParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ attr_accessor hold_token: String
12
+
13
+ attr_accessor memo: String?
14
+
15
+ def initialize: (
16
+ hold_token: String,
17
+ ?memo: String?,
18
+ ?request_options: Lithic::request_opts
19
+ ) -> void
20
+
21
+ def to_hash: -> {
22
+ hold_token: String,
23
+ memo: String?,
24
+ request_options: Lithic::RequestOptions
25
+ }
26
+ end
27
+ end
28
+ end
@@ -11,6 +11,7 @@ module Lithic
11
11
  | :PROGRAM_RECEIVABLES
12
12
  | :COLLECTION
13
13
  | :PROGRAM_BANK_ACCOUNTS_PAYABLE
14
+ | :EARLY_DIRECT_DEPOSIT_FLOAT
14
15
 
15
16
  module InstanceFinancialAccountType
16
17
  extend Lithic::Internal::Type::Enum
@@ -25,6 +26,7 @@ module Lithic
25
26
  PROGRAM_RECEIVABLES: :PROGRAM_RECEIVABLES
26
27
  COLLECTION: :COLLECTION
27
28
  PROGRAM_BANK_ACCOUNTS_PAYABLE: :PROGRAM_BANK_ACCOUNTS_PAYABLE
29
+ EARLY_DIRECT_DEPOSIT_FLOAT: :EARLY_DIRECT_DEPOSIT_FLOAT
28
30
 
29
31
  def self?.values: -> ::Array[Lithic::Models::instance_financial_account_type]
30
32
  end
@@ -8,7 +8,6 @@ module Lithic
8
8
  | Lithic::AccountHolderVerificationWebhookEvent
9
9
  | Lithic::AccountHolderDocumentUpdatedWebhookEvent
10
10
  | Lithic::CardAuthorizationApprovalRequestWebhookEvent
11
- | Lithic::TokenizationDecisioningRequestWebhookEvent
12
11
  | Lithic::AuthRulesBacktestReportCreatedWebhookEvent
13
12
  | Lithic::BalanceUpdatedWebhookEvent
14
13
  | Lithic::BookTransferTransactionCreatedWebhookEvent
@@ -129,6 +129,7 @@ module Lithic
129
129
 
130
130
  type category =
131
131
  :ACH
132
+ | :WIRE
132
133
  | :BALANCE_OR_FUNDING
133
134
  | :FEE
134
135
  | :REWARD
@@ -147,12 +148,14 @@ module Lithic
147
148
  | :MANAGEMENT_FEE
148
149
  | :MANAGEMENT_REWARD
149
150
  | :MANAGEMENT_DISBURSEMENT
151
+ | :HOLD
150
152
  | :PROGRAM_FUNDING
151
153
 
152
154
  module Category
153
155
  extend Lithic::Internal::Type::Enum
154
156
 
155
157
  ACH: :ACH
158
+ WIRE: :WIRE
156
159
  BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING
157
160
  FEE: :FEE
158
161
  REWARD: :REWARD
@@ -171,6 +174,7 @@ module Lithic
171
174
  MANAGEMENT_FEE: :MANAGEMENT_FEE
172
175
  MANAGEMENT_REWARD: :MANAGEMENT_REWARD
173
176
  MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT
177
+ HOLD: :HOLD
174
178
  PROGRAM_FUNDING: :PROGRAM_FUNDING
175
179
 
176
180
  def self?.values: -> ::Array[Lithic::Models::Payment::category]
@@ -258,11 +262,19 @@ module Lithic
258
262
  | :ACH_ORIGINATION_SETTLED
259
263
  | :ACH_RECEIPT_PROCESSED
260
264
  | :ACH_RECEIPT_RELEASED
265
+ | :ACH_RECEIPT_RELEASED_EARLY
261
266
  | :ACH_RECEIPT_SETTLED
262
267
  | :ACH_RETURN_INITIATED
263
268
  | :ACH_RETURN_PROCESSED
264
269
  | :ACH_RETURN_REJECTED
265
270
  | :ACH_RETURN_SETTLED
271
+ | :WIRE_TRANSFER_INBOUND_RECEIVED
272
+ | :WIRE_TRANSFER_INBOUND_SETTLED
273
+ | :WIRE_TRANSFER_INBOUND_BLOCKED
274
+ | :WIRE_RETURN_OUTBOUND_INITIATED
275
+ | :WIRE_RETURN_OUTBOUND_SENT
276
+ | :WIRE_RETURN_OUTBOUND_SETTLED
277
+ | :WIRE_RETURN_OUTBOUND_REJECTED
266
278
 
267
279
  module Type
268
280
  extend Lithic::Internal::Type::Enum
@@ -276,11 +288,19 @@ module Lithic
276
288
  ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED
277
289
  ACH_RECEIPT_PROCESSED: :ACH_RECEIPT_PROCESSED
278
290
  ACH_RECEIPT_RELEASED: :ACH_RECEIPT_RELEASED
291
+ ACH_RECEIPT_RELEASED_EARLY: :ACH_RECEIPT_RELEASED_EARLY
279
292
  ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED
280
293
  ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED
281
294
  ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED
282
295
  ACH_RETURN_REJECTED: :ACH_RETURN_REJECTED
283
296
  ACH_RETURN_SETTLED: :ACH_RETURN_SETTLED
297
+ WIRE_TRANSFER_INBOUND_RECEIVED: :WIRE_TRANSFER_INBOUND_RECEIVED
298
+ WIRE_TRANSFER_INBOUND_SETTLED: :WIRE_TRANSFER_INBOUND_SETTLED
299
+ WIRE_TRANSFER_INBOUND_BLOCKED: :WIRE_TRANSFER_INBOUND_BLOCKED
300
+ WIRE_RETURN_OUTBOUND_INITIATED: :WIRE_RETURN_OUTBOUND_INITIATED
301
+ WIRE_RETURN_OUTBOUND_SENT: :WIRE_RETURN_OUTBOUND_SENT
302
+ WIRE_RETURN_OUTBOUND_SETTLED: :WIRE_RETURN_OUTBOUND_SETTLED
303
+ WIRE_RETURN_OUTBOUND_REJECTED: :WIRE_RETURN_OUTBOUND_REJECTED
284
304
 
285
305
  def self?.values: -> ::Array[Lithic::Models::Payment::Event::type_]
286
306
  end
@@ -403,8 +423,7 @@ module Lithic
403
423
  wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network,
404
424
  creditor: Lithic::WirePartyDetails,
405
425
  debtor: Lithic::WirePartyDetails,
406
- message_id: String?,
407
- remittance_information: String?
426
+ message_id: String?
408
427
  }
409
428
 
410
429
  class WireMethodAttributes < Lithic::Internal::Type::BaseModel
@@ -422,15 +441,12 @@ module Lithic
422
441
 
423
442
  attr_accessor message_id: String?
424
443
 
425
- attr_accessor remittance_information: String?
426
-
427
444
  def initialize: (
428
445
  wire_message_type: String?,
429
446
  wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network,
430
447
  ?creditor: Lithic::WirePartyDetails,
431
448
  ?debtor: Lithic::WirePartyDetails,
432
- ?message_id: String?,
433
- ?remittance_information: String?
449
+ ?message_id: String?
434
450
  ) -> void
435
451
 
436
452
  def to_hash: -> {
@@ -438,8 +454,7 @@ module Lithic
438
454
  wire_network: Lithic::Models::Payment::MethodAttributes::WireMethodAttributes::wire_network,
439
455
  creditor: Lithic::WirePartyDetails,
440
456
  debtor: Lithic::WirePartyDetails,
441
- message_id: String?,
442
- remittance_information: String?
457
+ message_id: String?
443
458
  }
444
459
 
445
460
  type wire_network = :FEDWIRE | :SWIFT
@@ -64,6 +64,7 @@ module Lithic
64
64
  | :ACH_ORIGINATION_SETTLED
65
65
  | :ACH_RECEIPT_SETTLED
66
66
  | :ACH_RECEIPT_RELEASED
67
+ | :ACH_RECEIPT_RELEASED_EARLY
67
68
  | :ACH_RETURN_INITIATED
68
69
  | :ACH_RETURN_PROCESSED
69
70
  | :ACH_RETURN_SETTLED
@@ -77,6 +78,7 @@ module Lithic
77
78
  ACH_ORIGINATION_SETTLED: :ACH_ORIGINATION_SETTLED
78
79
  ACH_RECEIPT_SETTLED: :ACH_RECEIPT_SETTLED
79
80
  ACH_RECEIPT_RELEASED: :ACH_RECEIPT_RELEASED
81
+ ACH_RECEIPT_RELEASED_EARLY: :ACH_RECEIPT_RELEASED_EARLY
80
82
  ACH_RETURN_INITIATED: :ACH_RETURN_INITIATED
81
83
  ACH_RETURN_PROCESSED: :ACH_RETURN_PROCESSED
82
84
  ACH_RETURN_SETTLED: :ACH_RETURN_SETTLED
@@ -317,6 +317,18 @@ module Lithic
317
317
 
318
318
  class FundingEventRetrieveParams = Lithic::Models::FundingEventRetrieveParams
319
319
 
320
+ class Hold = Lithic::Models::Hold
321
+
322
+ class HoldCreateParams = Lithic::Models::HoldCreateParams
323
+
324
+ class HoldEvent = Lithic::Models::HoldEvent
325
+
326
+ class HoldListParams = Lithic::Models::HoldListParams
327
+
328
+ class HoldRetrieveParams = Lithic::Models::HoldRetrieveParams
329
+
330
+ class HoldVoidParams = Lithic::Models::HoldVoidParams
331
+
320
332
  module InstanceFinancialAccountType = Lithic::Models::InstanceFinancialAccountType
321
333
 
322
334
  class InternalTransactionAPI = Lithic::Models::InternalTransactionAPI
@@ -449,8 +461,6 @@ module Lithic
449
461
 
450
462
  class TokenizationDeactivateParams = Lithic::Models::TokenizationDeactivateParams
451
463
 
452
- class TokenizationDecisioningRequestWebhookEvent = Lithic::Models::TokenizationDecisioningRequestWebhookEvent
453
-
454
464
  class TokenizationDecisioningRetrieveSecretParams = Lithic::Models::TokenizationDecisioningRetrieveSecretParams
455
465
 
456
466
  class TokenizationDecisioningRotateSecretParams = Lithic::Models::TokenizationDecisioningRotateSecretParams
@@ -56,6 +56,11 @@ module Lithic
56
56
  ?request_options: Lithic::request_opts
57
57
  ) -> Lithic::Internal::CursorPage[Lithic::Models::AuthRules::v2_list_results_response]
58
58
 
59
+ def list_versions: (
60
+ String auth_rule_token,
61
+ ?request_options: Lithic::request_opts
62
+ ) -> Lithic::Models::AuthRules::V2ListVersionsResponse
63
+
59
64
  def promote: (
60
65
  String auth_rule_token,
61
66
  ?request_options: Lithic::request_opts
@@ -6,6 +6,7 @@ module Lithic
6
6
  String financial_account_token,
7
7
  credit_product_token: String,
8
8
  effective_date: Date,
9
+ ?penalty_rates: top,
9
10
  ?tier_name: String,
10
11
  ?tier_rates: top,
11
12
  ?request_options: Lithic::request_opts
@@ -20,6 +21,7 @@ module Lithic
20
21
  def update: (
21
22
  Date effective_date,
22
23
  financial_account_token: String,
24
+ ?penalty_rates: top,
23
25
  ?tier_name: String,
24
26
  ?tier_rates: top,
25
27
  ?request_options: Lithic::request_opts
@@ -0,0 +1,39 @@
1
+ module Lithic
2
+ module Resources
3
+ class Holds
4
+ def create: (
5
+ String financial_account_token,
6
+ amount: Integer,
7
+ ?token: String,
8
+ ?expiration_datetime: Time,
9
+ ?memo: String?,
10
+ ?user_defined_id: String,
11
+ ?request_options: Lithic::request_opts
12
+ ) -> Lithic::Hold
13
+
14
+ def retrieve: (
15
+ String hold_token,
16
+ ?request_options: Lithic::request_opts
17
+ ) -> Lithic::Hold
18
+
19
+ def list: (
20
+ String financial_account_token,
21
+ ?begin_: Time,
22
+ ?end_: Time,
23
+ ?ending_before: String,
24
+ ?page_size: Integer,
25
+ ?starting_after: String,
26
+ ?status: Lithic::Models::HoldListParams::status,
27
+ ?request_options: Lithic::request_opts
28
+ ) -> Lithic::Internal::CursorPage[Lithic::Hold]
29
+
30
+ def `void`: (
31
+ String hold_token,
32
+ ?memo: String?,
33
+ ?request_options: Lithic::request_opts
34
+ ) -> Lithic::Hold
35
+
36
+ def initialize: (client: Lithic::Client) -> void
37
+ end
38
+ end
39
+ end
@@ -12,7 +12,6 @@ module Lithic
12
12
  | Lithic::AccountHolderVerificationWebhookEvent
13
13
  | Lithic::AccountHolderDocumentUpdatedWebhookEvent
14
14
  | Lithic::CardAuthorizationApprovalRequestWebhookEvent
15
- | Lithic::TokenizationDecisioningRequestWebhookEvent
16
15
  | Lithic::AuthRulesBacktestReportCreatedWebhookEvent
17
16
  | Lithic::BalanceUpdatedWebhookEvent
18
17
  | Lithic::BookTransferTransactionCreatedWebhookEvent