lithic 0.1.0.pre.alpha.54 → 0.1.0.pre.alpha.55
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/README.md +1 -1
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +2 -2
- data/lib/lithic/models/account_holder_update_response.rb +4 -4
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +252 -0
- data/lib/lithic/models/auth_rules/v2_create_params.rb +38 -284
- data/lib/lithic/models/auth_rules/v2_create_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +4 -250
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_list_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +4 -11
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +8 -508
- data/lib/lithic/models/auth_rules/v2_update_response.rb +8 -508
- data/lib/lithic/models/auth_rules/velocity_limit_params.rb +4 -7
- data/lib/lithic/models/auth_rules/velocity_limit_period.rb +154 -0
- data/lib/lithic/models/book_transfer_response.rb +5 -5
- data/lib/lithic/models/dispute.rb +510 -242
- data/lib/lithic/models/dispute_create_response.rb +326 -0
- data/lib/lithic/models/dispute_delete_response.rb +326 -0
- data/lib/lithic/models/dispute_list_response.rb +326 -0
- data/lib/lithic/models/dispute_retrieve_response.rb +326 -0
- data/lib/lithic/models/dispute_update_response.rb +326 -0
- data/lib/lithic/models/event.rb +213 -69
- data/lib/lithic/models/event_list_params.rb +112 -6
- data/lib/lithic/models/event_subscription.rb +112 -6
- data/lib/lithic/models/events/subscription_create_params.rb +112 -6
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +12 -6
- data/lib/lithic/models/events/subscription_update_params.rb +112 -6
- data/lib/lithic/models/financial_account.rb +1 -65
- data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -64
- data/lib/lithic/models/financial_accounts/loan_tape.rb +99 -3
- data/lib/lithic/models/financial_accounts/statement.rb +66 -2
- data/lib/lithic/models/payment.rb +9 -9
- data/lib/lithic/models/payment_simulate_action_params.rb +17 -1
- data/lib/lithic/models/tokenization.rb +189 -23
- data/lib/lithic/models/transaction.rb +12 -116
- data/lib/lithic/models/transactions/events/enhanced_data.rb +9 -9
- data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -5
- data/lib/lithic/resources/auth_rules/v2.rb +13 -56
- data/lib/lithic/resources/disputes.rb +10 -10
- data/lib/lithic/resources/payments.rb +5 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +7 -3
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +3 -6
- data/rbi/lithic/models/account_holder_update_response.rbi +6 -12
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +577 -0
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +85 -679
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -575
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +9 -22
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -1146
- data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +17 -29
- data/rbi/lithic/models/auth_rules/velocity_limit_period.rbi +223 -0
- data/rbi/lithic/models/book_transfer_response.rbi +14 -11
- data/rbi/lithic/models/dispute.rbi +942 -395
- data/rbi/lithic/models/dispute_create_response.rbi +599 -0
- data/rbi/lithic/models/dispute_delete_response.rbi +599 -0
- data/rbi/lithic/models/dispute_list_response.rbi +582 -0
- data/rbi/lithic/models/dispute_retrieve_response.rbi +601 -0
- data/rbi/lithic/models/dispute_update_response.rbi +599 -0
- data/rbi/lithic/models/event.rbi +348 -111
- data/rbi/lithic/models/event_list_params.rbi +155 -25
- data/rbi/lithic/models/event_subscription.rbi +155 -25
- data/rbi/lithic/models/events/subscription_create_params.rbi +155 -25
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +55 -25
- data/rbi/lithic/models/events/subscription_update_params.rbi +155 -25
- data/rbi/lithic/models/financial_account.rbi +3 -132
- data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +3 -136
- data/rbi/lithic/models/financial_accounts/loan_tape.rbi +132 -9
- data/rbi/lithic/models/financial_accounts/statement.rbi +88 -6
- data/rbi/lithic/models/payment.rbi +11 -14
- data/rbi/lithic/models/payment_simulate_action_params.rbi +22 -0
- data/rbi/lithic/models/tokenization.rbi +429 -34
- data/rbi/lithic/models/transaction.rbi +22 -246
- data/rbi/lithic/models/transactions/events/enhanced_data.rbi +12 -12
- data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +0 -3
- data/rbi/lithic/resources/auth_rules/v2.rbi +24 -72
- data/rbi/lithic/resources/disputes.rbi +7 -5
- data/rbi/lithic/resources/payments.rbi +6 -0
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -6
- data/sig/lithic/models/account_holder_update_response.rbs +8 -12
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +163 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +22 -188
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -159
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -4
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +2 -318
- data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -4
- data/sig/lithic/models/auth_rules/velocity_limit_period.rbs +91 -0
- data/sig/lithic/models/book_transfer_response.rbs +7 -7
- data/sig/lithic/models/dispute.rbs +417 -157
- data/sig/lithic/models/dispute_create_response.rbs +210 -0
- data/sig/lithic/models/dispute_delete_response.rbs +210 -0
- data/sig/lithic/models/dispute_list_response.rbs +210 -0
- data/sig/lithic/models/dispute_retrieve_response.rbs +210 -0
- data/sig/lithic/models/dispute_update_response.rbs +210 -0
- data/sig/lithic/models/event.rbs +25 -13
- data/sig/lithic/models/event_list_params.rbs +25 -13
- data/sig/lithic/models/event_subscription.rbs +25 -13
- data/sig/lithic/models/events/subscription_create_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +25 -13
- data/sig/lithic/models/events/subscription_update_params.rbs +25 -13
- data/sig/lithic/models/financial_account.rbs +3 -45
- data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +3 -49
- data/sig/lithic/models/financial_accounts/loan_tape.rbs +87 -9
- data/sig/lithic/models/financial_accounts/statement.rbs +58 -6
- data/sig/lithic/models/payment.rbs +8 -10
- data/sig/lithic/models/payment_simulate_action_params.rbs +14 -0
- data/sig/lithic/models/tokenization.rbs +160 -13
- data/sig/lithic/models/transaction.rbs +13 -94
- data/sig/lithic/models/transactions/events/enhanced_data.rbs +15 -15
- data/sig/lithic/resources/auth_rules/v2.rbs +2 -12
- data/sig/lithic/resources/disputes.rbs +5 -5
- data/sig/lithic/resources/payments.rbs +2 -0
- metadata +23 -11
- data/lib/lithic/models/auth_rules/v2_apply_params.rb +0 -56
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -766
- data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +0 -248
- data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +0 -86
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +0 -1638
- data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +0 -557
- data/sig/lithic/models/auth_rules/v2_apply_params.rbs +0 -54
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +0 -509
- data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +0 -223
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Lithic
|
|
4
|
-
module Models
|
|
5
|
-
module AuthRules
|
|
6
|
-
# DEPRECATED: This has been deprecated in favor of the Trailing Window Objects
|
|
7
|
-
#
|
|
8
|
-
# The size of the trailing window to calculate Spend Velocity over in seconds. The
|
|
9
|
-
# minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
|
|
10
|
-
module VelocityLimitParamsPeriodWindow
|
|
11
|
-
extend Lithic::Internal::Type::Union
|
|
12
|
-
|
|
13
|
-
# DEPRECATED: This has been deprecated in favor of the Trailing Window Objects
|
|
14
|
-
#
|
|
15
|
-
# The size of the trailing window to calculate Spend Velocity over in seconds. The minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
|
|
16
|
-
variant Integer
|
|
17
|
-
|
|
18
|
-
# DEPRECATED: This has been deprecated in favor of the other Fixed Window Objects
|
|
19
|
-
#
|
|
20
|
-
# The window of time to calculate Spend Velocity over.
|
|
21
|
-
#
|
|
22
|
-
# * `DAY`: Velocity over the current day since midnight Eastern Time.
|
|
23
|
-
# * `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in Eastern Time.
|
|
24
|
-
# * `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of the month in Eastern Time.
|
|
25
|
-
# * `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in Eastern Time.
|
|
26
|
-
variant enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow }
|
|
27
|
-
|
|
28
|
-
variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject }
|
|
29
|
-
|
|
30
|
-
# Velocity over the current day since 00:00 / 12 AM in Eastern Time
|
|
31
|
-
variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay }
|
|
32
|
-
|
|
33
|
-
# Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified `day_of_week`
|
|
34
|
-
variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek }
|
|
35
|
-
|
|
36
|
-
# Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified `day_of_month`.
|
|
37
|
-
variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth }
|
|
38
|
-
|
|
39
|
-
# Velocity over the current year since 00:00 / 12 AM in Eastern Time on specified `month` and `day_of_month`. This validates the month and day of the year to start from is a real date. In the event that February 29th is selected, in non-leap years, the window will start from February 28th.
|
|
40
|
-
variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear }
|
|
41
|
-
|
|
42
|
-
# @deprecated
|
|
43
|
-
#
|
|
44
|
-
# DEPRECATED: This has been deprecated in favor of the other Fixed Window Objects
|
|
45
|
-
#
|
|
46
|
-
# The window of time to calculate Spend Velocity over.
|
|
47
|
-
#
|
|
48
|
-
# - `DAY`: Velocity over the current day since midnight Eastern Time.
|
|
49
|
-
# - `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in
|
|
50
|
-
# Eastern Time.
|
|
51
|
-
# - `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of
|
|
52
|
-
# the month in Eastern Time.
|
|
53
|
-
# - `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in
|
|
54
|
-
# Eastern Time.
|
|
55
|
-
module FixedWindow
|
|
56
|
-
extend Lithic::Internal::Type::Enum
|
|
57
|
-
|
|
58
|
-
DAY = :DAY
|
|
59
|
-
WEEK = :WEEK
|
|
60
|
-
MONTH = :MONTH
|
|
61
|
-
YEAR = :YEAR
|
|
62
|
-
|
|
63
|
-
# @!method self.values
|
|
64
|
-
# @return [Array<Symbol>]
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
class TrailingWindowObject < Lithic::Internal::Type::BaseModel
|
|
68
|
-
# @!attribute duration
|
|
69
|
-
# The size of the trailing window to calculate Spend Velocity over in seconds. The
|
|
70
|
-
# minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
|
|
71
|
-
#
|
|
72
|
-
# @return [Integer, nil]
|
|
73
|
-
optional :duration, Integer
|
|
74
|
-
|
|
75
|
-
# @!attribute type
|
|
76
|
-
#
|
|
77
|
-
# @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type, nil]
|
|
78
|
-
optional :type,
|
|
79
|
-
enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type }
|
|
80
|
-
|
|
81
|
-
# @!method initialize(duration: nil, type: nil)
|
|
82
|
-
# Some parameter documentations has been truncated, see
|
|
83
|
-
# {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject}
|
|
84
|
-
# for more details.
|
|
85
|
-
#
|
|
86
|
-
# @param duration [Integer] The size of the trailing window to calculate Spend Velocity over in seconds. The
|
|
87
|
-
#
|
|
88
|
-
# @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type]
|
|
89
|
-
|
|
90
|
-
# @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject#type
|
|
91
|
-
module Type
|
|
92
|
-
extend Lithic::Internal::Type::Enum
|
|
93
|
-
|
|
94
|
-
CUSTOM = :CUSTOM
|
|
95
|
-
|
|
96
|
-
# @!method self.values
|
|
97
|
-
# @return [Array<Symbol>]
|
|
98
|
-
end
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
class FixedWindowDay < Lithic::Internal::Type::BaseModel
|
|
102
|
-
# @!attribute type
|
|
103
|
-
#
|
|
104
|
-
# @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type, nil]
|
|
105
|
-
optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type }
|
|
106
|
-
|
|
107
|
-
# @!method initialize(type: nil)
|
|
108
|
-
# Velocity over the current day since 00:00 / 12 AM in Eastern Time
|
|
109
|
-
#
|
|
110
|
-
# @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type]
|
|
111
|
-
|
|
112
|
-
# @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay#type
|
|
113
|
-
module Type
|
|
114
|
-
extend Lithic::Internal::Type::Enum
|
|
115
|
-
|
|
116
|
-
DAY = :DAY
|
|
117
|
-
|
|
118
|
-
# @!method self.values
|
|
119
|
-
# @return [Array<Symbol>]
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
class FixedWindowWeek < Lithic::Internal::Type::BaseModel
|
|
124
|
-
# @!attribute day_of_week
|
|
125
|
-
# The day of the week to start the week from. Following ISO-8601, 1 is Monday and
|
|
126
|
-
# 7 is Sunday. Defaults to Monday if not specified.
|
|
127
|
-
#
|
|
128
|
-
# @return [Integer, nil]
|
|
129
|
-
optional :day_of_week, Integer
|
|
130
|
-
|
|
131
|
-
# @!attribute type
|
|
132
|
-
#
|
|
133
|
-
# @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type, nil]
|
|
134
|
-
optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type }
|
|
135
|
-
|
|
136
|
-
# @!method initialize(day_of_week: nil, type: nil)
|
|
137
|
-
# Some parameter documentations has been truncated, see
|
|
138
|
-
# {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek}
|
|
139
|
-
# for more details.
|
|
140
|
-
#
|
|
141
|
-
# Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified
|
|
142
|
-
# `day_of_week`
|
|
143
|
-
#
|
|
144
|
-
# @param day_of_week [Integer] The day of the week to start the week from. Following ISO-8601, 1 is Monday and
|
|
145
|
-
#
|
|
146
|
-
# @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type]
|
|
147
|
-
|
|
148
|
-
# @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek#type
|
|
149
|
-
module Type
|
|
150
|
-
extend Lithic::Internal::Type::Enum
|
|
151
|
-
|
|
152
|
-
WEEK = :WEEK
|
|
153
|
-
|
|
154
|
-
# @!method self.values
|
|
155
|
-
# @return [Array<Symbol>]
|
|
156
|
-
end
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
class FixedWindowMonth < Lithic::Internal::Type::BaseModel
|
|
160
|
-
# @!attribute day_of_month
|
|
161
|
-
# The day of the month to start from. Accepts values from 1 to 31, and will reset
|
|
162
|
-
# at the end of the month if the day exceeds the number of days in the month.
|
|
163
|
-
# Defaults to the 1st of the month if not specified.
|
|
164
|
-
#
|
|
165
|
-
# @return [Integer, nil]
|
|
166
|
-
optional :day_of_month, Integer
|
|
167
|
-
|
|
168
|
-
# @!attribute type
|
|
169
|
-
#
|
|
170
|
-
# @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type, nil]
|
|
171
|
-
optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type }
|
|
172
|
-
|
|
173
|
-
# @!method initialize(day_of_month: nil, type: nil)
|
|
174
|
-
# Some parameter documentations has been truncated, see
|
|
175
|
-
# {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth}
|
|
176
|
-
# for more details.
|
|
177
|
-
#
|
|
178
|
-
# Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified
|
|
179
|
-
# `day_of_month`.
|
|
180
|
-
#
|
|
181
|
-
# @param day_of_month [Integer] The day of the month to start from. Accepts values from 1 to 31, and will reset
|
|
182
|
-
#
|
|
183
|
-
# @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type]
|
|
184
|
-
|
|
185
|
-
# @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth#type
|
|
186
|
-
module Type
|
|
187
|
-
extend Lithic::Internal::Type::Enum
|
|
188
|
-
|
|
189
|
-
MONTH = :MONTH
|
|
190
|
-
|
|
191
|
-
# @!method self.values
|
|
192
|
-
# @return [Array<Symbol>]
|
|
193
|
-
end
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
class FixedWindowYear < Lithic::Internal::Type::BaseModel
|
|
197
|
-
# @!attribute day_of_month
|
|
198
|
-
# The day of the month to start from. Defaults to the 1st of the month if not
|
|
199
|
-
# specified.
|
|
200
|
-
#
|
|
201
|
-
# @return [Integer, nil]
|
|
202
|
-
optional :day_of_month, Integer
|
|
203
|
-
|
|
204
|
-
# @!attribute month
|
|
205
|
-
# The month to start from. 1 is January and 12 is December. Defaults to January if
|
|
206
|
-
# not specified.
|
|
207
|
-
#
|
|
208
|
-
# @return [Integer, nil]
|
|
209
|
-
optional :month, Integer
|
|
210
|
-
|
|
211
|
-
# @!attribute type
|
|
212
|
-
#
|
|
213
|
-
# @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type, nil]
|
|
214
|
-
optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type }
|
|
215
|
-
|
|
216
|
-
# @!method initialize(day_of_month: nil, month: nil, type: nil)
|
|
217
|
-
# Some parameter documentations has been truncated, see
|
|
218
|
-
# {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear}
|
|
219
|
-
# for more details.
|
|
220
|
-
#
|
|
221
|
-
# Velocity over the current year since 00:00 / 12 AM in Eastern Time on specified
|
|
222
|
-
# `month` and `day_of_month`. This validates the month and day of the year to
|
|
223
|
-
# start from is a real date. In the event that February 29th is selected, in
|
|
224
|
-
# non-leap years, the window will start from February 28th.
|
|
225
|
-
#
|
|
226
|
-
# @param day_of_month [Integer] The day of the month to start from. Defaults to the 1st of the month if not spec
|
|
227
|
-
#
|
|
228
|
-
# @param month [Integer] The month to start from. 1 is January and 12 is December. Defaults to January if
|
|
229
|
-
#
|
|
230
|
-
# @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type]
|
|
231
|
-
|
|
232
|
-
# @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear#type
|
|
233
|
-
module Type
|
|
234
|
-
extend Lithic::Internal::Type::Enum
|
|
235
|
-
|
|
236
|
-
YEAR = :YEAR
|
|
237
|
-
|
|
238
|
-
# @!method self.values
|
|
239
|
-
# @return [Array<Symbol>]
|
|
240
|
-
end
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
# @!method self.variants
|
|
244
|
-
# @return [Array(Integer, Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear)]
|
|
245
|
-
end
|
|
246
|
-
end
|
|
247
|
-
end
|
|
248
|
-
end
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Lithic
|
|
4
|
-
module Models
|
|
5
|
-
module AuthRules
|
|
6
|
-
class V2ApplyParams < Lithic::Internal::Type::BaseModel
|
|
7
|
-
extend Lithic::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Lithic::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
OrHash =
|
|
11
|
-
T.type_alias do
|
|
12
|
-
T.any(Lithic::AuthRules::V2ApplyParams, Lithic::Internal::AnyHash)
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
# Account tokens to which the Auth Rule applies.
|
|
16
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
17
|
-
attr_reader :account_tokens
|
|
18
|
-
|
|
19
|
-
sig { params(account_tokens: T::Array[String]).void }
|
|
20
|
-
attr_writer :account_tokens
|
|
21
|
-
|
|
22
|
-
# Business Account tokens to which the Auth Rule applies.
|
|
23
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
24
|
-
attr_reader :business_account_tokens
|
|
25
|
-
|
|
26
|
-
sig { params(business_account_tokens: T::Array[String]).void }
|
|
27
|
-
attr_writer :business_account_tokens
|
|
28
|
-
|
|
29
|
-
# Card tokens to which the Auth Rule applies.
|
|
30
|
-
sig { returns(T::Array[String]) }
|
|
31
|
-
attr_accessor :card_tokens
|
|
32
|
-
|
|
33
|
-
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
34
|
-
sig { returns(T::Boolean) }
|
|
35
|
-
attr_accessor :program_level
|
|
36
|
-
|
|
37
|
-
# Card tokens to which the Auth Rule does not apply.
|
|
38
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
39
|
-
attr_reader :excluded_card_tokens
|
|
40
|
-
|
|
41
|
-
sig { params(excluded_card_tokens: T::Array[String]).void }
|
|
42
|
-
attr_writer :excluded_card_tokens
|
|
43
|
-
|
|
44
|
-
sig do
|
|
45
|
-
params(
|
|
46
|
-
card_tokens: T::Array[String],
|
|
47
|
-
program_level: T::Boolean,
|
|
48
|
-
account_tokens: T::Array[String],
|
|
49
|
-
business_account_tokens: T::Array[String],
|
|
50
|
-
excluded_card_tokens: T::Array[String],
|
|
51
|
-
request_options: Lithic::RequestOptions::OrHash
|
|
52
|
-
).returns(T.attached_class)
|
|
53
|
-
end
|
|
54
|
-
def self.new(
|
|
55
|
-
# Card tokens to which the Auth Rule applies.
|
|
56
|
-
card_tokens:,
|
|
57
|
-
# Whether the Auth Rule applies to all authorizations on the card program.
|
|
58
|
-
program_level:,
|
|
59
|
-
# Account tokens to which the Auth Rule applies.
|
|
60
|
-
account_tokens: nil,
|
|
61
|
-
# Business Account tokens to which the Auth Rule applies.
|
|
62
|
-
business_account_tokens: nil,
|
|
63
|
-
# Card tokens to which the Auth Rule does not apply.
|
|
64
|
-
excluded_card_tokens: nil,
|
|
65
|
-
request_options: {}
|
|
66
|
-
)
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
sig do
|
|
70
|
-
override.returns(
|
|
71
|
-
{
|
|
72
|
-
account_tokens: T::Array[String],
|
|
73
|
-
business_account_tokens: T::Array[String],
|
|
74
|
-
card_tokens: T::Array[String],
|
|
75
|
-
program_level: T::Boolean,
|
|
76
|
-
excluded_card_tokens: T::Array[String],
|
|
77
|
-
request_options: Lithic::RequestOptions
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
end
|
|
81
|
-
def to_hash
|
|
82
|
-
end
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
end
|
|
86
|
-
end
|