lithic 0.7.0 → 0.9.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 (158) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +59 -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/account_holder_create_params.rb +52 -51
  9. data/lib/lithic/models/auth_rules/auth_rule.rb +84 -8
  10. data/lib/lithic/models/auth_rules/auth_rule_version.rb +92 -0
  11. data/lib/lithic/models/auth_rules/rule_feature.rb +231 -0
  12. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +33 -0
  13. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +9 -17
  14. data/lib/lithic/models/auth_rules/v2_create_params.rb +50 -10
  15. data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -3
  16. data/lib/lithic/models/auth_rules/v2_list_versions_params.rb +22 -0
  17. data/lib/lithic/models/auth_rules/v2_list_versions_response.rb +18 -0
  18. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +3 -83
  19. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +525 -1
  20. data/lib/lithic/models/auth_rules/v2_update_params.rb +17 -1
  21. data/lib/lithic/models/auth_rules/velocity_limit_filters.rb +87 -0
  22. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -84
  23. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +69 -59
  24. data/lib/lithic/models/dispute_create_params.rb +11 -11
  25. data/lib/lithic/models/dispute_list_params.rb +3 -3
  26. data/lib/lithic/models/dispute_update_params.rb +9 -9
  27. data/lib/lithic/models/event.rb +0 -7
  28. data/lib/lithic/models/event_list_params.rb +0 -4
  29. data/lib/lithic/models/event_subscription.rb +0 -4
  30. data/lib/lithic/models/events/subscription_create_params.rb +0 -4
  31. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
  32. data/lib/lithic/models/events/subscription_update_params.rb +0 -4
  33. data/lib/lithic/models/financial_account.rb +1 -0
  34. data/lib/lithic/models/financial_account_list_params.rb +1 -0
  35. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +9 -1
  36. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +9 -1
  37. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +27 -2
  38. data/lib/lithic/models/hold.rb +147 -0
  39. data/lib/lithic/models/hold_create_params.rb +61 -0
  40. data/lib/lithic/models/hold_event.rb +110 -0
  41. data/lib/lithic/models/hold_list_params.rb +89 -0
  42. data/lib/lithic/models/hold_retrieve_params.rb +20 -0
  43. data/lib/lithic/models/hold_void_params.rb +29 -0
  44. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  45. data/lib/lithic/models/parsed_webhook_event.rb +2 -4
  46. data/lib/lithic/models/payment.rb +75 -3
  47. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  48. data/lib/lithic/models.rb +12 -2
  49. data/lib/lithic/resources/account_activity.rb +2 -2
  50. data/lib/lithic/resources/account_holders.rb +2 -2
  51. data/lib/lithic/resources/auth_rules/v2.rb +24 -4
  52. data/lib/lithic/resources/disputes.rb +21 -21
  53. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -2
  54. data/lib/lithic/resources/holds.rb +132 -0
  55. data/lib/lithic/resources/webhooks.rb +2 -3
  56. data/lib/lithic/version.rb +1 -1
  57. data/lib/lithic.rb +14 -1
  58. data/rbi/lithic/client.rbi +9 -0
  59. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  60. data/rbi/lithic/models/account_activity_list_response.rbi +14 -2
  61. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +14 -2
  62. data/rbi/lithic/models/account_holder_create_params.rbi +70 -51
  63. data/rbi/lithic/models/auth_rules/auth_rule.rbi +128 -4
  64. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +142 -0
  65. data/rbi/lithic/models/auth_rules/rule_feature.rbi +414 -0
  66. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +94 -0
  67. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +12 -35
  68. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +81 -12
  69. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
  70. data/rbi/lithic/models/auth_rules/v2_list_versions_params.rbi +40 -0
  71. data/rbi/lithic/models/auth_rules/v2_list_versions_response.rbi +36 -0
  72. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +4 -209
  73. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +1692 -3
  74. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +24 -0
  75. data/rbi/lithic/models/auth_rules/velocity_limit_filters.rbi +205 -0
  76. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +4 -206
  77. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +154 -142
  78. data/rbi/lithic/models/dispute_create_params.rbi +11 -11
  79. data/rbi/lithic/models/dispute_list_params.rbi +3 -3
  80. data/rbi/lithic/models/dispute_update_params.rbi +9 -9
  81. data/rbi/lithic/models/event.rbi +0 -14
  82. data/rbi/lithic/models/event_list_params.rbi +0 -8
  83. data/rbi/lithic/models/event_subscription.rbi +0 -8
  84. data/rbi/lithic/models/events/subscription_create_params.rbi +0 -8
  85. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
  86. data/rbi/lithic/models/events/subscription_update_params.rbi +0 -8
  87. data/rbi/lithic/models/financial_account.rbi +5 -0
  88. data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
  89. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +11 -0
  90. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +11 -0
  91. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +38 -3
  92. data/rbi/lithic/models/hold.rbi +183 -0
  93. data/rbi/lithic/models/hold_create_params.rbi +90 -0
  94. data/rbi/lithic/models/hold_event.rbi +148 -0
  95. data/rbi/lithic/models/hold_list_params.rbi +137 -0
  96. data/rbi/lithic/models/hold_retrieve_params.rbi +35 -0
  97. data/rbi/lithic/models/hold_void_params.rbi +49 -0
  98. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  99. data/rbi/lithic/models/parsed_webhook_event.rbi +0 -1
  100. data/rbi/lithic/models/payment.rbi +136 -2
  101. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  102. data/rbi/lithic/models.rbi +12 -3
  103. data/rbi/lithic/resources/account_holders.rbi +2 -2
  104. data/rbi/lithic/resources/auth_rules/v2.rbi +16 -4
  105. data/rbi/lithic/resources/disputes.rbi +21 -21
  106. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -0
  107. data/rbi/lithic/resources/holds.rbi +111 -0
  108. data/rbi/lithic/resources/webhooks.rbi +8 -2
  109. data/sig/lithic/client.rbs +5 -0
  110. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  111. data/sig/lithic/models/account_activity_list_response.rbs +5 -0
  112. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +5 -0
  113. data/sig/lithic/models/account_holder_create_params.rbs +44 -28
  114. data/sig/lithic/models/auth_rules/auth_rule.rbs +42 -0
  115. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +67 -0
  116. data/sig/lithic/models/auth_rules/rule_feature.rbs +173 -0
  117. data/sig/lithic/models/auth_rules/typescript_code_parameters.rbs +27 -0
  118. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +5 -18
  119. data/sig/lithic/models/auth_rules/v2_create_params.rbs +25 -0
  120. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  121. data/sig/lithic/models/auth_rules/v2_list_versions_params.rbs +25 -0
  122. data/sig/lithic/models/auth_rules/v2_list_versions_response.rbs +18 -0
  123. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -80
  124. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +658 -3
  125. data/sig/lithic/models/auth_rules/v2_update_params.rbs +16 -0
  126. data/sig/lithic/models/auth_rules/velocity_limit_filters.rbs +81 -0
  127. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +6 -82
  128. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +38 -38
  129. data/sig/lithic/models/event.rbs +0 -2
  130. data/sig/lithic/models/event_list_params.rbs +0 -2
  131. data/sig/lithic/models/event_subscription.rbs +0 -2
  132. data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
  133. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
  134. data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
  135. data/sig/lithic/models/financial_account.rbs +2 -0
  136. data/sig/lithic/models/financial_account_list_params.rbs +7 -1
  137. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +7 -0
  138. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +7 -0
  139. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +17 -3
  140. data/sig/lithic/models/hold.rbs +137 -0
  141. data/sig/lithic/models/hold_create_params.rbs +57 -0
  142. data/sig/lithic/models/hold_event.rbs +91 -0
  143. data/sig/lithic/models/hold_list_params.rbs +83 -0
  144. data/sig/lithic/models/hold_retrieve_params.rbs +23 -0
  145. data/sig/lithic/models/hold_void_params.rbs +28 -0
  146. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  147. data/sig/lithic/models/parsed_webhook_event.rbs +0 -1
  148. data/sig/lithic/models/payment.rbs +20 -0
  149. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  150. data/sig/lithic/models.rbs +12 -2
  151. data/sig/lithic/resources/auth_rules/v2.rbs +5 -0
  152. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +2 -0
  153. data/sig/lithic/resources/holds.rbs +39 -0
  154. data/sig/lithic/resources/webhooks.rbs +0 -1
  155. metadata +41 -5
  156. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +0 -159
  157. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +0 -331
  158. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +0 -130
@@ -0,0 +1,67 @@
1
+ module Lithic
2
+ module Models
3
+ class AuthRuleVersion = AuthRules::AuthRuleVersion
4
+
5
+ module AuthRules
6
+ type auth_rule_version =
7
+ {
8
+ created: Time,
9
+ parameters: Lithic::Models::AuthRules::AuthRuleVersion::parameters,
10
+ state: Lithic::Models::AuthRules::AuthRuleVersion::state,
11
+ version: Integer
12
+ }
13
+
14
+ class AuthRuleVersion < Lithic::Internal::Type::BaseModel
15
+ attr_accessor created: Time
16
+
17
+ attr_accessor parameters: Lithic::Models::AuthRules::AuthRuleVersion::parameters
18
+
19
+ attr_accessor state: Lithic::Models::AuthRules::AuthRuleVersion::state
20
+
21
+ attr_accessor version: Integer
22
+
23
+ def initialize: (
24
+ created: Time,
25
+ parameters: Lithic::Models::AuthRules::AuthRuleVersion::parameters,
26
+ state: Lithic::Models::AuthRules::AuthRuleVersion::state,
27
+ version: Integer
28
+ ) -> void
29
+
30
+ def to_hash: -> {
31
+ created: Time,
32
+ parameters: Lithic::Models::AuthRules::AuthRuleVersion::parameters,
33
+ state: Lithic::Models::AuthRules::AuthRuleVersion::state,
34
+ version: Integer
35
+ }
36
+
37
+ type parameters =
38
+ Lithic::AuthRules::ConditionalBlockParameters
39
+ | Lithic::AuthRules::VelocityLimitParams
40
+ | Lithic::AuthRules::MerchantLockParameters
41
+ | Lithic::AuthRules::Conditional3DSActionParameters
42
+ | Lithic::AuthRules::ConditionalAuthorizationActionParameters
43
+ | Lithic::AuthRules::ConditionalACHActionParameters
44
+ | Lithic::AuthRules::ConditionalTokenizationActionParameters
45
+ | Lithic::AuthRules::TypescriptCodeParameters
46
+
47
+ module Parameters
48
+ extend Lithic::Internal::Type::Union
49
+
50
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::AuthRuleVersion::parameters]
51
+ end
52
+
53
+ type state = :ACTIVE | :SHADOW | :INACTIVE
54
+
55
+ module State
56
+ extend Lithic::Internal::Type::Enum
57
+
58
+ ACTIVE: :ACTIVE
59
+ SHADOW: :SHADOW
60
+ INACTIVE: :INACTIVE
61
+
62
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::AuthRuleVersion::state]
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,173 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type rule_feature =
5
+ Lithic::AuthRules::RuleFeature::AuthorizationFeature
6
+ | Lithic::AuthRules::RuleFeature::AuthenticationFeature
7
+ | Lithic::AuthRules::RuleFeature::TokenizationFeature
8
+ | Lithic::AuthRules::RuleFeature::ACHReceiptFeature
9
+ | Lithic::AuthRules::RuleFeature::CardFeature
10
+ | Lithic::AuthRules::RuleFeature::AccountHolderFeature
11
+ | Lithic::AuthRules::RuleFeature::IPMetadataFeature
12
+ | Lithic::AuthRules::RuleFeature::SpendVelocityFeature
13
+
14
+ module RuleFeature
15
+ extend Lithic::Internal::Type::Union
16
+
17
+ type authorization_feature = { type: :AUTHORIZATION, name: String }
18
+
19
+ class AuthorizationFeature < Lithic::Internal::Type::BaseModel
20
+ attr_accessor type: :AUTHORIZATION
21
+
22
+ attr_reader name: String?
23
+
24
+ def name=: (String) -> String
25
+
26
+ def initialize: (?name: String, ?type: :AUTHORIZATION) -> void
27
+
28
+ def to_hash: -> { type: :AUTHORIZATION, name: String }
29
+ end
30
+
31
+ type authentication_feature = { type: :AUTHENTICATION, name: String }
32
+
33
+ class AuthenticationFeature < Lithic::Internal::Type::BaseModel
34
+ attr_accessor type: :AUTHENTICATION
35
+
36
+ attr_reader name: String?
37
+
38
+ def name=: (String) -> String
39
+
40
+ def initialize: (?name: String, ?type: :AUTHENTICATION) -> void
41
+
42
+ def to_hash: -> { type: :AUTHENTICATION, name: String }
43
+ end
44
+
45
+ type tokenization_feature = { type: :TOKENIZATION, name: String }
46
+
47
+ class TokenizationFeature < Lithic::Internal::Type::BaseModel
48
+ attr_accessor type: :TOKENIZATION
49
+
50
+ attr_reader name: String?
51
+
52
+ def name=: (String) -> String
53
+
54
+ def initialize: (?name: String, ?type: :TOKENIZATION) -> void
55
+
56
+ def to_hash: -> { type: :TOKENIZATION, name: String }
57
+ end
58
+
59
+ type ach_receipt_feature = { type: :ACH_RECEIPT, name: String }
60
+
61
+ class ACHReceiptFeature < Lithic::Internal::Type::BaseModel
62
+ attr_accessor type: :ACH_RECEIPT
63
+
64
+ attr_reader name: String?
65
+
66
+ def name=: (String) -> String
67
+
68
+ def initialize: (?name: String, ?type: :ACH_RECEIPT) -> void
69
+
70
+ def to_hash: -> { type: :ACH_RECEIPT, name: String }
71
+ end
72
+
73
+ type card_feature = { type: :CARD, name: String }
74
+
75
+ class CardFeature < Lithic::Internal::Type::BaseModel
76
+ attr_accessor type: :CARD
77
+
78
+ attr_reader name: String?
79
+
80
+ def name=: (String) -> String
81
+
82
+ def initialize: (?name: String, ?type: :CARD) -> void
83
+
84
+ def to_hash: -> { type: :CARD, name: String }
85
+ end
86
+
87
+ type account_holder_feature = { type: :ACCOUNT_HOLDER, name: String }
88
+
89
+ class AccountHolderFeature < Lithic::Internal::Type::BaseModel
90
+ attr_accessor type: :ACCOUNT_HOLDER
91
+
92
+ attr_reader name: String?
93
+
94
+ def name=: (String) -> String
95
+
96
+ def initialize: (?name: String, ?type: :ACCOUNT_HOLDER) -> void
97
+
98
+ def to_hash: -> { type: :ACCOUNT_HOLDER, name: String }
99
+ end
100
+
101
+ type ip_metadata_feature = { type: :IP_METADATA, name: String }
102
+
103
+ class IPMetadataFeature < Lithic::Internal::Type::BaseModel
104
+ attr_accessor type: :IP_METADATA
105
+
106
+ attr_reader name: String?
107
+
108
+ def name=: (String) -> String
109
+
110
+ def initialize: (?name: String, ?type: :IP_METADATA) -> void
111
+
112
+ def to_hash: -> { type: :IP_METADATA, name: String }
113
+ end
114
+
115
+ type spend_velocity_feature =
116
+ {
117
+ period: Lithic::Models::AuthRules::velocity_limit_period,
118
+ scope: Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature::scope,
119
+ type: :SPEND_VELOCITY,
120
+ filters: Lithic::AuthRules::VelocityLimitFilters,
121
+ name: String
122
+ }
123
+
124
+ class SpendVelocityFeature < Lithic::Internal::Type::BaseModel
125
+ attr_accessor period: Lithic::Models::AuthRules::velocity_limit_period
126
+
127
+ attr_accessor scope: Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature::scope
128
+
129
+ attr_accessor type: :SPEND_VELOCITY
130
+
131
+ attr_reader filters: Lithic::AuthRules::VelocityLimitFilters?
132
+
133
+ def filters=: (
134
+ Lithic::AuthRules::VelocityLimitFilters
135
+ ) -> Lithic::AuthRules::VelocityLimitFilters
136
+
137
+ attr_reader name: String?
138
+
139
+ def name=: (String) -> String
140
+
141
+ def initialize: (
142
+ period: Lithic::Models::AuthRules::velocity_limit_period,
143
+ scope: Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature::scope,
144
+ ?filters: Lithic::AuthRules::VelocityLimitFilters,
145
+ ?name: String,
146
+ ?type: :SPEND_VELOCITY
147
+ ) -> void
148
+
149
+ def to_hash: -> {
150
+ period: Lithic::Models::AuthRules::velocity_limit_period,
151
+ scope: Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature::scope,
152
+ type: :SPEND_VELOCITY,
153
+ filters: Lithic::AuthRules::VelocityLimitFilters,
154
+ name: String
155
+ }
156
+
157
+ type scope = :CARD | :ACCOUNT
158
+
159
+ module Scope
160
+ extend Lithic::Internal::Type::Enum
161
+
162
+ CARD: :CARD
163
+ ACCOUNT: :ACCOUNT
164
+
165
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::SpendVelocityFeature::scope]
166
+ end
167
+ end
168
+
169
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::rule_feature]
170
+ end
171
+ end
172
+ end
173
+ end
@@ -0,0 +1,27 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type typescript_code_parameters =
5
+ {
6
+ code: String,
7
+ features: ::Array[Lithic::Models::AuthRules::rule_feature]
8
+ }
9
+
10
+ class TypescriptCodeParameters < Lithic::Internal::Type::BaseModel
11
+ attr_accessor code: String
12
+
13
+ attr_accessor features: ::Array[Lithic::Models::AuthRules::rule_feature]
14
+
15
+ def initialize: (
16
+ code: String,
17
+ features: ::Array[Lithic::Models::AuthRules::rule_feature]
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ code: String,
22
+ features: ::Array[Lithic::Models::AuthRules::rule_feature]
23
+ }
24
+ end
25
+ end
26
+ end
27
+ end
@@ -50,29 +50,16 @@ module Lithic
50
50
  }
51
51
  end
52
52
 
53
- type simulation_parameters =
54
- { auth_rule_token: String, end_: Time, start: Time }
53
+ type simulation_parameters = { end_: Time, start: Time }
55
54
 
56
55
  class SimulationParameters < Lithic::Internal::Type::BaseModel
57
- attr_reader auth_rule_token: String?
56
+ attr_accessor end_: Time
58
57
 
59
- def auth_rule_token=: (String) -> String
58
+ attr_accessor start: Time
60
59
 
61
- attr_reader end_: Time?
60
+ def initialize: (end_: Time, start: Time) -> void
62
61
 
63
- def end_=: (Time) -> Time
64
-
65
- attr_reader start: Time?
66
-
67
- def start=: (Time) -> Time
68
-
69
- def initialize: (
70
- ?auth_rule_token: String,
71
- ?end_: Time,
72
- ?start: Time
73
- ) -> void
74
-
75
- def to_hash: -> { auth_rule_token: String, end_: Time, start: Time }
62
+ def to_hash: -> { end_: Time, start: Time }
76
63
  end
77
64
  end
78
65
  end
@@ -86,6 +86,7 @@ module Lithic
86
86
  | Lithic::AuthRules::ConditionalAuthorizationActionParameters
87
87
  | Lithic::AuthRules::ConditionalACHActionParameters
88
88
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
89
+ | Lithic::AuthRules::TypescriptCodeParameters
89
90
 
90
91
  module Parameters
91
92
  extend Lithic::Internal::Type::Union
@@ -98,6 +99,7 @@ module Lithic
98
99
  | :VELOCITY_LIMIT
99
100
  | :MERCHANT_LOCK
100
101
  | :CONDITIONAL_ACTION
102
+ | :TYPESCRIPT_CODE
101
103
 
102
104
  module Type
103
105
  extend Lithic::Internal::Type::Enum
@@ -106,6 +108,7 @@ module Lithic
106
108
  VELOCITY_LIMIT: :VELOCITY_LIMIT
107
109
  MERCHANT_LOCK: :MERCHANT_LOCK
108
110
  CONDITIONAL_ACTION: :CONDITIONAL_ACTION
111
+ TYPESCRIPT_CODE: :TYPESCRIPT_CODE
109
112
 
110
113
  def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::AccountLevelRule::type_]
111
114
  end
@@ -159,6 +162,7 @@ module Lithic
159
162
  | Lithic::AuthRules::ConditionalAuthorizationActionParameters
160
163
  | Lithic::AuthRules::ConditionalACHActionParameters
161
164
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
165
+ | Lithic::AuthRules::TypescriptCodeParameters
162
166
 
163
167
  module Parameters
164
168
  extend Lithic::Internal::Type::Union
@@ -171,6 +175,7 @@ module Lithic
171
175
  | :VELOCITY_LIMIT
172
176
  | :MERCHANT_LOCK
173
177
  | :CONDITIONAL_ACTION
178
+ | :TYPESCRIPT_CODE
174
179
 
175
180
  module Type
176
181
  extend Lithic::Internal::Type::Enum
@@ -179,6 +184,7 @@ module Lithic
179
184
  VELOCITY_LIMIT: :VELOCITY_LIMIT
180
185
  MERCHANT_LOCK: :MERCHANT_LOCK
181
186
  CONDITIONAL_ACTION: :CONDITIONAL_ACTION
187
+ TYPESCRIPT_CODE: :TYPESCRIPT_CODE
182
188
 
183
189
  def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::CardLevelRule::type_]
184
190
  end
@@ -190,6 +196,8 @@ module Lithic
190
196
  program_level: bool,
191
197
  type: Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_,
192
198
  event_stream: Lithic::Models::AuthRules::event_stream,
199
+ excluded_account_tokens: ::Array[String],
200
+ excluded_business_account_tokens: ::Array[String],
193
201
  excluded_card_tokens: ::Array[String],
194
202
  name: String?
195
203
  }
@@ -207,6 +215,16 @@ module Lithic
207
215
  Lithic::Models::AuthRules::event_stream
208
216
  ) -> Lithic::Models::AuthRules::event_stream
209
217
 
218
+ attr_reader excluded_account_tokens: ::Array[String]?
219
+
220
+ def excluded_account_tokens=: (::Array[String]) -> ::Array[String]
221
+
222
+ attr_reader excluded_business_account_tokens: ::Array[String]?
223
+
224
+ def excluded_business_account_tokens=: (
225
+ ::Array[String]
226
+ ) -> ::Array[String]
227
+
210
228
  attr_reader excluded_card_tokens: ::Array[String]?
211
229
 
212
230
  def excluded_card_tokens=: (::Array[String]) -> ::Array[String]
@@ -218,6 +236,8 @@ module Lithic
218
236
  program_level: bool,
219
237
  type: Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_,
220
238
  ?event_stream: Lithic::Models::AuthRules::event_stream,
239
+ ?excluded_account_tokens: ::Array[String],
240
+ ?excluded_business_account_tokens: ::Array[String],
221
241
  ?excluded_card_tokens: ::Array[String],
222
242
  ?name: String?
223
243
  ) -> void
@@ -227,6 +247,8 @@ module Lithic
227
247
  program_level: bool,
228
248
  type: Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_,
229
249
  event_stream: Lithic::Models::AuthRules::event_stream,
250
+ excluded_account_tokens: ::Array[String],
251
+ excluded_business_account_tokens: ::Array[String],
230
252
  excluded_card_tokens: ::Array[String],
231
253
  name: String?
232
254
  }
@@ -239,6 +261,7 @@ module Lithic
239
261
  | Lithic::AuthRules::ConditionalAuthorizationActionParameters
240
262
  | Lithic::AuthRules::ConditionalACHActionParameters
241
263
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
264
+ | Lithic::AuthRules::TypescriptCodeParameters
242
265
 
243
266
  module Parameters
244
267
  extend Lithic::Internal::Type::Union
@@ -251,6 +274,7 @@ module Lithic
251
274
  | :VELOCITY_LIMIT
252
275
  | :MERCHANT_LOCK
253
276
  | :CONDITIONAL_ACTION
277
+ | :TYPESCRIPT_CODE
254
278
 
255
279
  module Type
256
280
  extend Lithic::Internal::Type::Enum
@@ -259,6 +283,7 @@ module Lithic
259
283
  VELOCITY_LIMIT: :VELOCITY_LIMIT
260
284
  MERCHANT_LOCK: :MERCHANT_LOCK
261
285
  CONDITIONAL_ACTION: :CONDITIONAL_ACTION
286
+ TYPESCRIPT_CODE: :TYPESCRIPT_CODE
262
287
 
263
288
  def self?.values: -> ::Array[Lithic::Models::AuthRules::V2CreateParams::Body::ProgramLevelRule::type_]
264
289
  end
@@ -36,6 +36,7 @@ module Lithic
36
36
  | Lithic::AuthRules::ConditionalAuthorizationActionParameters
37
37
  | Lithic::AuthRules::ConditionalACHActionParameters
38
38
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
39
+ | Lithic::AuthRules::TypescriptCodeParameters
39
40
 
40
41
  module Parameters
41
42
  extend Lithic::Internal::Type::Union
@@ -0,0 +1,25 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type v2_list_versions_params =
5
+ { auth_rule_token: String } & Lithic::Internal::Type::request_parameters
6
+
7
+ class V2ListVersionsParams < Lithic::Internal::Type::BaseModel
8
+ extend Lithic::Internal::Type::RequestParameters::Converter
9
+ include Lithic::Internal::Type::RequestParameters
10
+
11
+ attr_accessor auth_rule_token: String
12
+
13
+ def initialize: (
14
+ auth_rule_token: String,
15
+ ?request_options: Lithic::request_opts
16
+ ) -> void
17
+
18
+ def to_hash: -> {
19
+ auth_rule_token: String,
20
+ request_options: Lithic::RequestOptions
21
+ }
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,18 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRules
4
+ type v2_list_versions_response =
5
+ { data: ::Array[Lithic::AuthRules::AuthRuleVersion] }
6
+
7
+ class V2ListVersionsResponse < Lithic::Internal::Type::BaseModel
8
+ attr_accessor data: ::Array[Lithic::AuthRules::AuthRuleVersion]
9
+
10
+ def initialize: (
11
+ data: ::Array[Lithic::AuthRules::AuthRuleVersion]
12
+ ) -> void
13
+
14
+ def to_hash: -> { data: ::Array[Lithic::AuthRules::AuthRuleVersion] }
15
+ end
16
+ end
17
+ end
18
+ end
@@ -24,14 +24,14 @@ module Lithic
24
24
 
25
25
  type feature =
26
26
  {
27
- filters: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters,
27
+ filters: Lithic::AuthRules::VelocityLimitFilters,
28
28
  period: Lithic::Models::AuthRules::velocity_limit_period,
29
29
  scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::scope,
30
30
  value: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value
31
31
  }
32
32
 
33
33
  class Feature < Lithic::Internal::Type::BaseModel
34
- attr_accessor filters: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters
34
+ attr_accessor filters: Lithic::AuthRules::VelocityLimitFilters
35
35
 
36
36
  attr_accessor period: Lithic::Models::AuthRules::velocity_limit_period
37
37
 
@@ -40,95 +40,19 @@ module Lithic
40
40
  attr_accessor value: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value
41
41
 
42
42
  def initialize: (
43
- filters: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters,
43
+ filters: Lithic::AuthRules::VelocityLimitFilters,
44
44
  period: Lithic::Models::AuthRules::velocity_limit_period,
45
45
  scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::scope,
46
46
  value: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value
47
47
  ) -> void
48
48
 
49
49
  def to_hash: -> {
50
- filters: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters,
50
+ filters: Lithic::AuthRules::VelocityLimitFilters,
51
51
  period: Lithic::Models::AuthRules::velocity_limit_period,
52
52
  scope: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::scope,
53
53
  value: Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Value
54
54
  }
55
55
 
56
- type filters =
57
- {
58
- exclude_countries: ::Array[String]?,
59
- exclude_mccs: ::Array[String]?,
60
- include_countries: ::Array[String]?,
61
- include_mccs: ::Array[String]?,
62
- include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::include_pan_entry_mode]?
63
- }
64
-
65
- class Filters < Lithic::Internal::Type::BaseModel
66
- attr_accessor exclude_countries: ::Array[String]?
67
-
68
- attr_accessor exclude_mccs: ::Array[String]?
69
-
70
- attr_accessor include_countries: ::Array[String]?
71
-
72
- attr_accessor include_mccs: ::Array[String]?
73
-
74
- attr_accessor include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::include_pan_entry_mode]?
75
-
76
- def initialize: (
77
- ?exclude_countries: ::Array[String]?,
78
- ?exclude_mccs: ::Array[String]?,
79
- ?include_countries: ::Array[String]?,
80
- ?include_mccs: ::Array[String]?,
81
- ?include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::include_pan_entry_mode]?
82
- ) -> void
83
-
84
- def to_hash: -> {
85
- exclude_countries: ::Array[String]?,
86
- exclude_mccs: ::Array[String]?,
87
- include_countries: ::Array[String]?,
88
- include_mccs: ::Array[String]?,
89
- include_pan_entry_modes: ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::include_pan_entry_mode]?
90
- }
91
-
92
- type include_pan_entry_mode =
93
- :AUTO_ENTRY
94
- | :BAR_CODE
95
- | :CONTACTLESS
96
- | :CREDENTIAL_ON_FILE
97
- | :ECOMMERCE
98
- | :ERROR_KEYED
99
- | :ERROR_MAGNETIC_STRIPE
100
- | :ICC
101
- | :KEY_ENTERED
102
- | :MAGNETIC_STRIPE
103
- | :MANUAL
104
- | :OCR
105
- | :SECURE_CARDLESS
106
- | :UNSPECIFIED
107
- | :UNKNOWN
108
-
109
- module IncludePanEntryMode
110
- extend Lithic::Internal::Type::Enum
111
-
112
- AUTO_ENTRY: :AUTO_ENTRY
113
- BAR_CODE: :BAR_CODE
114
- CONTACTLESS: :CONTACTLESS
115
- CREDENTIAL_ON_FILE: :CREDENTIAL_ON_FILE
116
- ECOMMERCE: :ECOMMERCE
117
- ERROR_KEYED: :ERROR_KEYED
118
- ERROR_MAGNETIC_STRIPE: :ERROR_MAGNETIC_STRIPE
119
- ICC: :ICC
120
- KEY_ENTERED: :KEY_ENTERED
121
- MAGNETIC_STRIPE: :MAGNETIC_STRIPE
122
- MANUAL: :MANUAL
123
- OCR: :OCR
124
- SECURE_CARDLESS: :SECURE_CARDLESS
125
- UNSPECIFIED: :UNSPECIFIED
126
- UNKNOWN: :UNKNOWN
127
-
128
- def self?.values: -> ::Array[Lithic::Models::AuthRules::V2RetrieveFeaturesResponse::Feature::Filters::include_pan_entry_mode]
129
- end
130
- end
131
-
132
56
  type scope = :CARD | :ACCOUNT
133
57
 
134
58
  module Scope