lithic 0.11.0 → 0.13.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +38 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +15 -1
- data/lib/lithic/models/account.rb +2 -2
- data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +5 -4
- data/lib/lithic/models/account_holder_update_response.rb +3 -3
- data/lib/lithic/models/account_update_params.rb +2 -2
- data/lib/lithic/models/auth_rules/auth_rule.rb +14 -8
- data/lib/lithic/models/auth_rules/auth_rule_version.rb +5 -3
- data/lib/lithic/models/auth_rules/card_transaction_update_action.rb +109 -0
- data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +152 -1
- data/lib/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rb +244 -0
- data/lib/lithic/models/auth_rules/event_stream.rb +1 -0
- data/lib/lithic/models/auth_rules/rule_feature.rb +47 -1
- data/lib/lithic/models/auth_rules/spend_velocity_filters.rb +33 -0
- data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +2 -2
- data/lib/lithic/models/auth_rules/v2_create_params.rb +27 -15
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -3
- data/lib/lithic/models/card_authorization_challenge_response_webhook_event.rb +103 -0
- data/lib/lithic/models/card_create_params.rb +4 -2
- data/lib/lithic/models/card_renew_params.rb +4 -2
- data/lib/lithic/models/event.rb +5 -0
- data/lib/lithic/models/event_list_params.rb +3 -0
- data/lib/lithic/models/event_subscription.rb +3 -0
- data/lib/lithic/models/events/subscription_create_params.rb +3 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
- data/lib/lithic/models/events/subscription_update_params.rb +3 -0
- data/lib/lithic/models/external_bank_account_set_verification_method_params.rb +55 -0
- data/lib/lithic/models/non_pci_card.rb +13 -13
- data/lib/lithic/models/parsed_webhook_event.rb +3 -1
- data/lib/lithic/models/reports/settlement/network_total_list_params.rb +1 -0
- data/lib/lithic/models/settlement_detail.rb +11 -4
- data/lib/lithic/models/settlement_summary_details.rb +1 -0
- data/lib/lithic/models.rb +6 -0
- data/lib/lithic/resources/accounts.rb +1 -1
- data/lib/lithic/resources/auth_rules/v2.rb +1 -1
- data/lib/lithic/resources/external_bank_accounts.rb +31 -0
- data/lib/lithic/resources/webhooks.rb +1 -1
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +6 -1
- data/rbi/lithic/models/account.rbi +3 -6
- data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +10 -14
- data/rbi/lithic/models/account_holder_update_response.rbi +3 -3
- data/rbi/lithic/models/account_update_params.rbi +5 -8
- data/rbi/lithic/models/auth_rules/auth_rule.rbi +10 -3
- data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -0
- data/rbi/lithic/models/auth_rules/card_transaction_update_action.rbi +242 -0
- data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +354 -3
- data/rbi/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbi +573 -0
- data/rbi/lithic/models/auth_rules/event_stream.rbi +5 -0
- data/rbi/lithic/models/auth_rules/rule_feature.rbi +104 -1
- data/rbi/lithic/models/auth_rules/spend_velocity_filters.rbi +58 -0
- data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +6 -3
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +30 -9
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -0
- data/rbi/lithic/models/card_authorization_challenge_response_webhook_event.rbi +175 -0
- data/rbi/lithic/models/card_create_params.rbi +8 -4
- data/rbi/lithic/models/card_renew_params.rbi +8 -4
- data/rbi/lithic/models/event.rbi +11 -0
- data/rbi/lithic/models/event_list_params.rbi +7 -0
- data/rbi/lithic/models/event_subscription.rbi +7 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +7 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +7 -0
- data/rbi/lithic/models/external_bank_account_set_verification_method_params.rbi +111 -0
- data/rbi/lithic/models/non_pci_card.rbi +21 -31
- data/rbi/lithic/models/parsed_webhook_event.rbi +1 -0
- data/rbi/lithic/models/reports/settlement/network_total_list_params.rbi +5 -0
- data/rbi/lithic/models/settlement_detail.rbi +17 -4
- data/rbi/lithic/models/settlement_summary_details.rbi +2 -0
- data/rbi/lithic/models.rbi +6 -0
- data/rbi/lithic/resources/accounts.rbi +2 -1
- data/rbi/lithic/resources/auth_rules/v2.rbi +1 -0
- data/rbi/lithic/resources/cards.rbi +8 -4
- data/rbi/lithic/resources/external_bank_accounts.rbi +22 -0
- data/rbi/lithic/resources/webhooks.rbi +1 -0
- data/sig/lithic/models/account.rbs +4 -8
- data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +4 -8
- data/sig/lithic/models/account_update_params.rbs +4 -8
- data/sig/lithic/models/auth_rules/auth_rule.rbs +2 -0
- data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -0
- data/sig/lithic/models/auth_rules/card_transaction_update_action.rbs +100 -0
- data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +89 -3
- data/sig/lithic/models/auth_rules/conditional_card_transaction_update_action_parameters.rbs +155 -0
- data/sig/lithic/models/auth_rules/event_stream.rbs +2 -0
- data/sig/lithic/models/auth_rules/rule_feature.rbs +42 -0
- data/sig/lithic/models/auth_rules/spend_velocity_filters.rbs +35 -0
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +3 -0
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
- data/sig/lithic/models/card_authorization_challenge_response_webhook_event.rbs +76 -0
- data/sig/lithic/models/event.rbs +2 -0
- data/sig/lithic/models/event_list_params.rbs +2 -0
- data/sig/lithic/models/event_subscription.rbs +2 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
- data/sig/lithic/models/external_bank_account_set_verification_method_params.rbs +51 -0
- data/sig/lithic/models/non_pci_card.rbs +20 -30
- data/sig/lithic/models/parsed_webhook_event.rbs +1 -0
- data/sig/lithic/models/reports/settlement/network_total_list_params.rbs +2 -1
- data/sig/lithic/models/settlement_detail.rbs +3 -1
- data/sig/lithic/models/settlement_summary_details.rbs +3 -1
- data/sig/lithic/models.rbs +4 -0
- data/sig/lithic/resources/accounts.rbs +1 -1
- data/sig/lithic/resources/external_bank_accounts.rbs +7 -0
- data/sig/lithic/resources/webhooks.rbs +1 -0
- metadata +17 -2
|
@@ -10,7 +10,7 @@ module Lithic
|
|
|
10
10
|
control_person: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson,
|
|
11
11
|
created: Time,
|
|
12
12
|
email: String,
|
|
13
|
-
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type
|
|
13
|
+
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?,
|
|
14
14
|
external_id: String,
|
|
15
15
|
individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
16
16
|
naics_code: String,
|
|
@@ -61,11 +61,7 @@ module Lithic
|
|
|
61
61
|
|
|
62
62
|
def email=: (String) -> String
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
def exemption_type=: (
|
|
67
|
-
Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type
|
|
68
|
-
) -> Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type
|
|
64
|
+
attr_accessor exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?
|
|
69
65
|
|
|
70
66
|
attr_reader external_id: String?
|
|
71
67
|
|
|
@@ -132,7 +128,7 @@ module Lithic
|
|
|
132
128
|
?control_person: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson,
|
|
133
129
|
?created: Time,
|
|
134
130
|
?email: String,
|
|
135
|
-
?exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type
|
|
131
|
+
?exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?,
|
|
136
132
|
?external_id: String,
|
|
137
133
|
?individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
138
134
|
?naics_code: String,
|
|
@@ -155,7 +151,7 @@ module Lithic
|
|
|
155
151
|
control_person: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::ControlPerson,
|
|
156
152
|
created: Time,
|
|
157
153
|
email: String,
|
|
158
|
-
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type
|
|
154
|
+
exemption_type: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::exemption_type?,
|
|
159
155
|
external_id: String,
|
|
160
156
|
individual: Lithic::Models::AccountHolderSimulateEnrollmentReviewResponse::Individual,
|
|
161
157
|
naics_code: String,
|
|
@@ -8,7 +8,7 @@ module Lithic
|
|
|
8
8
|
lifetime_spend_limit: Integer,
|
|
9
9
|
monthly_spend_limit: Integer,
|
|
10
10
|
state: Lithic::Models::AccountUpdateParams::state,
|
|
11
|
-
substatus: Lithic::Models::AccountUpdateParams::substatus
|
|
11
|
+
substatus: Lithic::Models::AccountUpdateParams::substatus?,
|
|
12
12
|
verification_address: Lithic::AccountUpdateParams::VerificationAddress
|
|
13
13
|
}
|
|
14
14
|
& Lithic::Internal::Type::request_parameters
|
|
@@ -41,11 +41,7 @@ module Lithic
|
|
|
41
41
|
Lithic::Models::AccountUpdateParams::state
|
|
42
42
|
) -> Lithic::Models::AccountUpdateParams::state
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
def substatus=: (
|
|
47
|
-
Lithic::Models::AccountUpdateParams::substatus
|
|
48
|
-
) -> Lithic::Models::AccountUpdateParams::substatus
|
|
44
|
+
attr_accessor substatus: Lithic::Models::AccountUpdateParams::substatus?
|
|
49
45
|
|
|
50
46
|
attr_reader verification_address: Lithic::AccountUpdateParams::VerificationAddress?
|
|
51
47
|
|
|
@@ -60,7 +56,7 @@ module Lithic
|
|
|
60
56
|
?lifetime_spend_limit: Integer,
|
|
61
57
|
?monthly_spend_limit: Integer,
|
|
62
58
|
?state: Lithic::Models::AccountUpdateParams::state,
|
|
63
|
-
?substatus: Lithic::Models::AccountUpdateParams::substatus
|
|
59
|
+
?substatus: Lithic::Models::AccountUpdateParams::substatus?,
|
|
64
60
|
?verification_address: Lithic::AccountUpdateParams::VerificationAddress,
|
|
65
61
|
?request_options: Lithic::request_opts
|
|
66
62
|
) -> void
|
|
@@ -72,7 +68,7 @@ module Lithic
|
|
|
72
68
|
lifetime_spend_limit: Integer,
|
|
73
69
|
monthly_spend_limit: Integer,
|
|
74
70
|
state: Lithic::Models::AccountUpdateParams::state,
|
|
75
|
-
substatus: Lithic::Models::AccountUpdateParams::substatus
|
|
71
|
+
substatus: Lithic::Models::AccountUpdateParams::substatus?,
|
|
76
72
|
verification_address: Lithic::AccountUpdateParams::VerificationAddress,
|
|
77
73
|
request_options: Lithic::RequestOptions
|
|
78
74
|
}
|
|
@@ -126,6 +126,7 @@ module Lithic
|
|
|
126
126
|
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
127
127
|
| Lithic::AuthRules::ConditionalACHActionParameters
|
|
128
128
|
| Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
129
|
+
| Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
|
|
129
130
|
| Lithic::AuthRules::TypescriptCodeParameters
|
|
130
131
|
|
|
131
132
|
module Parameters
|
|
@@ -174,6 +175,7 @@ module Lithic
|
|
|
174
175
|
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
175
176
|
| Lithic::AuthRules::ConditionalACHActionParameters
|
|
176
177
|
| Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
178
|
+
| Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
|
|
177
179
|
| Lithic::AuthRules::TypescriptCodeParameters
|
|
178
180
|
|
|
179
181
|
module Parameters
|
|
@@ -42,6 +42,7 @@ module Lithic
|
|
|
42
42
|
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
43
43
|
| Lithic::AuthRules::ConditionalACHActionParameters
|
|
44
44
|
| Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
45
|
+
| Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
|
|
45
46
|
| Lithic::AuthRules::TypescriptCodeParameters
|
|
46
47
|
|
|
47
48
|
module Parameters
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
module AuthRules
|
|
4
|
+
type card_transaction_update_action =
|
|
5
|
+
Lithic::AuthRules::CardTransactionUpdateAction::TagAction
|
|
6
|
+
| Lithic::AuthRules::CardTransactionUpdateAction::CreateCaseAction
|
|
7
|
+
|
|
8
|
+
module CardTransactionUpdateAction
|
|
9
|
+
extend Lithic::Internal::Type::Union
|
|
10
|
+
|
|
11
|
+
type tag_action =
|
|
12
|
+
{
|
|
13
|
+
key: String,
|
|
14
|
+
type: Lithic::Models::AuthRules::CardTransactionUpdateAction::TagAction::type_,
|
|
15
|
+
value: String
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class TagAction < Lithic::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor key: String
|
|
20
|
+
|
|
21
|
+
attr_accessor type: Lithic::Models::AuthRules::CardTransactionUpdateAction::TagAction::type_
|
|
22
|
+
|
|
23
|
+
attr_accessor value: String
|
|
24
|
+
|
|
25
|
+
def initialize: (
|
|
26
|
+
key: String,
|
|
27
|
+
type: Lithic::Models::AuthRules::CardTransactionUpdateAction::TagAction::type_,
|
|
28
|
+
value: String
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
key: String,
|
|
33
|
+
type: Lithic::Models::AuthRules::CardTransactionUpdateAction::TagAction::type_,
|
|
34
|
+
value: String
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type type_ = :TAG
|
|
38
|
+
|
|
39
|
+
module Type
|
|
40
|
+
extend Lithic::Internal::Type::Enum
|
|
41
|
+
|
|
42
|
+
TAG: :TAG
|
|
43
|
+
|
|
44
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::CardTransactionUpdateAction::TagAction::type_]
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
type create_case_action =
|
|
49
|
+
{
|
|
50
|
+
queue_token: String,
|
|
51
|
+
scope: Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::scope,
|
|
52
|
+
type: Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::type_
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
class CreateCaseAction < Lithic::Internal::Type::BaseModel
|
|
56
|
+
attr_accessor queue_token: String
|
|
57
|
+
|
|
58
|
+
attr_accessor scope: Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::scope
|
|
59
|
+
|
|
60
|
+
attr_accessor type: Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::type_
|
|
61
|
+
|
|
62
|
+
def initialize: (
|
|
63
|
+
queue_token: String,
|
|
64
|
+
scope: Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::scope,
|
|
65
|
+
type: Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::type_
|
|
66
|
+
) -> void
|
|
67
|
+
|
|
68
|
+
def to_hash: -> {
|
|
69
|
+
queue_token: String,
|
|
70
|
+
scope: Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::scope,
|
|
71
|
+
type: Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::type_
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
type scope = :CARD | :ACCOUNT
|
|
75
|
+
|
|
76
|
+
module Scope
|
|
77
|
+
extend Lithic::Internal::Type::Enum
|
|
78
|
+
|
|
79
|
+
CARD: :CARD
|
|
80
|
+
ACCOUNT: :ACCOUNT
|
|
81
|
+
|
|
82
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::scope]
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
type type_ = :CREATE_CASE
|
|
86
|
+
|
|
87
|
+
module Type
|
|
88
|
+
extend Lithic::Internal::Type::Enum
|
|
89
|
+
|
|
90
|
+
CREATE_CASE: :CREATE_CASE
|
|
91
|
+
|
|
92
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::CardTransactionUpdateAction::CreateCaseAction::type_]
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def self?.variants: -> ::Array[Lithic::Models::AuthRules::card_transaction_update_action]
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
@@ -37,7 +37,8 @@ module Lithic
|
|
|
37
37
|
{
|
|
38
38
|
attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
39
39
|
operation: Lithic::Models::AuthRules::conditional_operation,
|
|
40
|
-
value: Lithic::Models::AuthRules::conditional_value
|
|
40
|
+
value: Lithic::Models::AuthRules::conditional_value,
|
|
41
|
+
parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
class Condition < Lithic::Internal::Type::BaseModel
|
|
@@ -47,16 +48,24 @@ module Lithic
|
|
|
47
48
|
|
|
48
49
|
attr_accessor value: Lithic::Models::AuthRules::conditional_value
|
|
49
50
|
|
|
51
|
+
attr_reader parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters?
|
|
52
|
+
|
|
53
|
+
def parameters=: (
|
|
54
|
+
Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
55
|
+
) -> Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
56
|
+
|
|
50
57
|
def initialize: (
|
|
51
58
|
attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
52
59
|
operation: Lithic::Models::AuthRules::conditional_operation,
|
|
53
|
-
value: Lithic::Models::AuthRules::conditional_value
|
|
60
|
+
value: Lithic::Models::AuthRules::conditional_value,
|
|
61
|
+
?parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
54
62
|
) -> void
|
|
55
63
|
|
|
56
64
|
def to_hash: -> {
|
|
57
65
|
attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
|
|
58
66
|
operation: Lithic::Models::AuthRules::conditional_operation,
|
|
59
|
-
value: Lithic::Models::AuthRules::conditional_value
|
|
67
|
+
value: Lithic::Models::AuthRules::conditional_value,
|
|
68
|
+
parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
|
|
60
69
|
}
|
|
61
70
|
|
|
62
71
|
type attribute =
|
|
@@ -86,6 +95,17 @@ module Lithic
|
|
|
86
95
|
| :SERVICE_LOCATION_POSTAL_CODE
|
|
87
96
|
| :CARD_AGE
|
|
88
97
|
| :ACCOUNT_AGE
|
|
98
|
+
| :AMOUNT_Z_SCORE
|
|
99
|
+
| :AVG_TRANSACTION_AMOUNT
|
|
100
|
+
| :STDEV_TRANSACTION_AMOUNT
|
|
101
|
+
| :IS_NEW_COUNTRY
|
|
102
|
+
| :IS_NEW_MCC
|
|
103
|
+
| :IS_FIRST_TRANSACTION
|
|
104
|
+
| :CONSECUTIVE_DECLINES
|
|
105
|
+
| :TIME_SINCE_LAST_TRANSACTION
|
|
106
|
+
| :DISTINCT_COUNTRY_COUNT
|
|
107
|
+
| :IS_NEW_MERCHANT
|
|
108
|
+
| :THREE_DS_SUCCESS_RATE
|
|
89
109
|
|
|
90
110
|
module Attribute
|
|
91
111
|
extend Lithic::Internal::Type::Enum
|
|
@@ -116,9 +136,75 @@ module Lithic
|
|
|
116
136
|
SERVICE_LOCATION_POSTAL_CODE: :SERVICE_LOCATION_POSTAL_CODE
|
|
117
137
|
CARD_AGE: :CARD_AGE
|
|
118
138
|
ACCOUNT_AGE: :ACCOUNT_AGE
|
|
139
|
+
AMOUNT_Z_SCORE: :AMOUNT_Z_SCORE
|
|
140
|
+
AVG_TRANSACTION_AMOUNT: :AVG_TRANSACTION_AMOUNT
|
|
141
|
+
STDEV_TRANSACTION_AMOUNT: :STDEV_TRANSACTION_AMOUNT
|
|
142
|
+
IS_NEW_COUNTRY: :IS_NEW_COUNTRY
|
|
143
|
+
IS_NEW_MCC: :IS_NEW_MCC
|
|
144
|
+
IS_FIRST_TRANSACTION: :IS_FIRST_TRANSACTION
|
|
145
|
+
CONSECUTIVE_DECLINES: :CONSECUTIVE_DECLINES
|
|
146
|
+
TIME_SINCE_LAST_TRANSACTION: :TIME_SINCE_LAST_TRANSACTION
|
|
147
|
+
DISTINCT_COUNTRY_COUNT: :DISTINCT_COUNTRY_COUNT
|
|
148
|
+
IS_NEW_MERCHANT: :IS_NEW_MERCHANT
|
|
149
|
+
THREE_DS_SUCCESS_RATE: :THREE_DS_SUCCESS_RATE
|
|
119
150
|
|
|
120
151
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute]
|
|
121
152
|
end
|
|
153
|
+
|
|
154
|
+
type parameters =
|
|
155
|
+
{
|
|
156
|
+
interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
|
|
157
|
+
scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
class Parameters < Lithic::Internal::Type::BaseModel
|
|
161
|
+
attr_reader interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval?
|
|
162
|
+
|
|
163
|
+
def interval=: (
|
|
164
|
+
Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval
|
|
165
|
+
) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval
|
|
166
|
+
|
|
167
|
+
attr_reader scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope?
|
|
168
|
+
|
|
169
|
+
def scope=: (
|
|
170
|
+
Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
171
|
+
) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
172
|
+
|
|
173
|
+
def initialize: (
|
|
174
|
+
?interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
|
|
175
|
+
?scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
176
|
+
) -> void
|
|
177
|
+
|
|
178
|
+
def to_hash: -> {
|
|
179
|
+
interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
|
|
180
|
+
scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
type interval = :LIFETIME | :"7D" | :"30D" | :"90D"
|
|
184
|
+
|
|
185
|
+
module Interval
|
|
186
|
+
extend Lithic::Internal::Type::Enum
|
|
187
|
+
|
|
188
|
+
LIFETIME: :LIFETIME
|
|
189
|
+
INTERVAL_7_D: :"7D"
|
|
190
|
+
INTERVAL_30_D: :"30D"
|
|
191
|
+
INTERVAL_90_D: :"90D"
|
|
192
|
+
|
|
193
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval]
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
type scope = :CARD | :ACCOUNT | :BUSINESS_ACCOUNT
|
|
197
|
+
|
|
198
|
+
module Scope
|
|
199
|
+
extend Lithic::Internal::Type::Enum
|
|
200
|
+
|
|
201
|
+
CARD: :CARD
|
|
202
|
+
ACCOUNT: :ACCOUNT
|
|
203
|
+
BUSINESS_ACCOUNT: :BUSINESS_ACCOUNT
|
|
204
|
+
|
|
205
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope]
|
|
206
|
+
end
|
|
207
|
+
end
|
|
122
208
|
end
|
|
123
209
|
end
|
|
124
210
|
end
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
module AuthRules
|
|
4
|
+
type conditional_card_transaction_update_action_parameters =
|
|
5
|
+
{
|
|
6
|
+
action: Lithic::Models::AuthRules::card_transaction_update_action,
|
|
7
|
+
conditions: ::Array[Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition]
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class ConditionalCardTransactionUpdateActionParameters < Lithic::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor action: Lithic::Models::AuthRules::card_transaction_update_action
|
|
12
|
+
|
|
13
|
+
attr_accessor conditions: ::Array[Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition]
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
action: Lithic::Models::AuthRules::card_transaction_update_action,
|
|
17
|
+
conditions: ::Array[Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition]
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
action: Lithic::Models::AuthRules::card_transaction_update_action,
|
|
22
|
+
conditions: ::Array[Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
type condition =
|
|
26
|
+
{
|
|
27
|
+
attribute: Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::attribute,
|
|
28
|
+
operation: Lithic::Models::AuthRules::conditional_operation,
|
|
29
|
+
value: Lithic::Models::AuthRules::conditional_value,
|
|
30
|
+
parameters: Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
|
34
|
+
attr_accessor attribute: Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::attribute
|
|
35
|
+
|
|
36
|
+
attr_accessor operation: Lithic::Models::AuthRules::conditional_operation
|
|
37
|
+
|
|
38
|
+
attr_accessor value: Lithic::Models::AuthRules::conditional_value
|
|
39
|
+
|
|
40
|
+
attr_reader parameters: Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters?
|
|
41
|
+
|
|
42
|
+
def parameters=: (
|
|
43
|
+
Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters
|
|
44
|
+
) -> Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters
|
|
45
|
+
|
|
46
|
+
def initialize: (
|
|
47
|
+
attribute: Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::attribute,
|
|
48
|
+
operation: Lithic::Models::AuthRules::conditional_operation,
|
|
49
|
+
value: Lithic::Models::AuthRules::conditional_value,
|
|
50
|
+
?parameters: Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters
|
|
51
|
+
) -> void
|
|
52
|
+
|
|
53
|
+
def to_hash: -> {
|
|
54
|
+
attribute: Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::attribute,
|
|
55
|
+
operation: Lithic::Models::AuthRules::conditional_operation,
|
|
56
|
+
value: Lithic::Models::AuthRules::conditional_value,
|
|
57
|
+
parameters: Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
type attribute =
|
|
61
|
+
:MCC
|
|
62
|
+
| :COUNTRY
|
|
63
|
+
| :CURRENCY
|
|
64
|
+
| :MERCHANT_ID
|
|
65
|
+
| :DESCRIPTOR
|
|
66
|
+
| :TRANSACTION_AMOUNT
|
|
67
|
+
| :RISK_SCORE
|
|
68
|
+
| :TRANSACTION_STATUS
|
|
69
|
+
| :LAST_EVENT_TYPE
|
|
70
|
+
| :LIABILITY_SHIFT
|
|
71
|
+
| :PAN_ENTRY_MODE
|
|
72
|
+
| :WALLET_TYPE
|
|
73
|
+
| :CARD_AGE
|
|
74
|
+
| :ACCOUNT_AGE
|
|
75
|
+
| :SPEND_VELOCITY_COUNT
|
|
76
|
+
| :SPEND_VELOCITY_AMOUNT
|
|
77
|
+
|
|
78
|
+
module Attribute
|
|
79
|
+
extend Lithic::Internal::Type::Enum
|
|
80
|
+
|
|
81
|
+
MCC: :MCC
|
|
82
|
+
COUNTRY: :COUNTRY
|
|
83
|
+
CURRENCY: :CURRENCY
|
|
84
|
+
MERCHANT_ID: :MERCHANT_ID
|
|
85
|
+
DESCRIPTOR: :DESCRIPTOR
|
|
86
|
+
TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
|
|
87
|
+
RISK_SCORE: :RISK_SCORE
|
|
88
|
+
TRANSACTION_STATUS: :TRANSACTION_STATUS
|
|
89
|
+
LAST_EVENT_TYPE: :LAST_EVENT_TYPE
|
|
90
|
+
LIABILITY_SHIFT: :LIABILITY_SHIFT
|
|
91
|
+
PAN_ENTRY_MODE: :PAN_ENTRY_MODE
|
|
92
|
+
WALLET_TYPE: :WALLET_TYPE
|
|
93
|
+
CARD_AGE: :CARD_AGE
|
|
94
|
+
ACCOUNT_AGE: :ACCOUNT_AGE
|
|
95
|
+
SPEND_VELOCITY_COUNT: :SPEND_VELOCITY_COUNT
|
|
96
|
+
SPEND_VELOCITY_AMOUNT: :SPEND_VELOCITY_AMOUNT
|
|
97
|
+
|
|
98
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::attribute]
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
type parameters =
|
|
102
|
+
{
|
|
103
|
+
filters: Lithic::AuthRules::SpendVelocityFilters,
|
|
104
|
+
period: Lithic::Models::AuthRules::velocity_limit_period,
|
|
105
|
+
scope: Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::scope
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
class Parameters < Lithic::Internal::Type::BaseModel
|
|
109
|
+
attr_reader filters: Lithic::AuthRules::SpendVelocityFilters?
|
|
110
|
+
|
|
111
|
+
def filters=: (
|
|
112
|
+
Lithic::AuthRules::SpendVelocityFilters
|
|
113
|
+
) -> Lithic::AuthRules::SpendVelocityFilters
|
|
114
|
+
|
|
115
|
+
attr_reader period: Lithic::Models::AuthRules::velocity_limit_period?
|
|
116
|
+
|
|
117
|
+
def period=: (
|
|
118
|
+
Lithic::Models::AuthRules::velocity_limit_period
|
|
119
|
+
) -> Lithic::Models::AuthRules::velocity_limit_period
|
|
120
|
+
|
|
121
|
+
attr_reader scope: Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::scope?
|
|
122
|
+
|
|
123
|
+
def scope=: (
|
|
124
|
+
Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::scope
|
|
125
|
+
) -> Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::scope
|
|
126
|
+
|
|
127
|
+
def initialize: (
|
|
128
|
+
?filters: Lithic::AuthRules::SpendVelocityFilters,
|
|
129
|
+
?period: Lithic::Models::AuthRules::velocity_limit_period,
|
|
130
|
+
?scope: Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::scope
|
|
131
|
+
) -> void
|
|
132
|
+
|
|
133
|
+
def to_hash: -> {
|
|
134
|
+
filters: Lithic::AuthRules::SpendVelocityFilters,
|
|
135
|
+
period: Lithic::Models::AuthRules::velocity_limit_period,
|
|
136
|
+
scope: Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::scope
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
type scope = :CARD | :ACCOUNT | :GLOBAL
|
|
140
|
+
|
|
141
|
+
module Scope
|
|
142
|
+
extend Lithic::Internal::Type::Enum
|
|
143
|
+
|
|
144
|
+
CARD: :CARD
|
|
145
|
+
ACCOUNT: :ACCOUNT
|
|
146
|
+
GLOBAL: :GLOBAL
|
|
147
|
+
|
|
148
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalCardTransactionUpdateActionParameters::Condition::Parameters::scope]
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
@@ -7,6 +7,7 @@ module Lithic
|
|
|
7
7
|
| :TOKENIZATION
|
|
8
8
|
| :ACH_CREDIT_RECEIPT
|
|
9
9
|
| :ACH_DEBIT_RECEIPT
|
|
10
|
+
| :CARD_TRANSACTION_UPDATE
|
|
10
11
|
|
|
11
12
|
module EventStream
|
|
12
13
|
extend Lithic::Internal::Type::Enum
|
|
@@ -16,6 +17,7 @@ module Lithic
|
|
|
16
17
|
TOKENIZATION: :TOKENIZATION
|
|
17
18
|
ACH_CREDIT_RECEIPT: :ACH_CREDIT_RECEIPT
|
|
18
19
|
ACH_DEBIT_RECEIPT: :ACH_DEBIT_RECEIPT
|
|
20
|
+
CARD_TRANSACTION_UPDATE: :CARD_TRANSACTION_UPDATE
|
|
19
21
|
|
|
20
22
|
def self?.values: -> ::Array[Lithic::Models::AuthRules::event_stream]
|
|
21
23
|
end
|
|
@@ -10,6 +10,7 @@ module Lithic
|
|
|
10
10
|
| Lithic::AuthRules::RuleFeature::AccountHolderFeature
|
|
11
11
|
| Lithic::AuthRules::RuleFeature::IPMetadataFeature
|
|
12
12
|
| Lithic::AuthRules::RuleFeature::SpendVelocityFeature
|
|
13
|
+
| Lithic::AuthRules::RuleFeature::TransactionHistorySignalsFeature
|
|
13
14
|
|
|
14
15
|
module RuleFeature
|
|
15
16
|
extend Lithic::Internal::Type::Union
|
|
@@ -166,6 +167,47 @@ module Lithic
|
|
|
166
167
|
end
|
|
167
168
|
end
|
|
168
169
|
|
|
170
|
+
type transaction_history_signals_feature =
|
|
171
|
+
{
|
|
172
|
+
scope: Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope,
|
|
173
|
+
type: :TRANSACTION_HISTORY_SIGNALS,
|
|
174
|
+
name: String
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
class TransactionHistorySignalsFeature < Lithic::Internal::Type::BaseModel
|
|
178
|
+
attr_accessor scope: Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope
|
|
179
|
+
|
|
180
|
+
attr_accessor type: :TRANSACTION_HISTORY_SIGNALS
|
|
181
|
+
|
|
182
|
+
attr_reader name: String?
|
|
183
|
+
|
|
184
|
+
def name=: (String) -> String
|
|
185
|
+
|
|
186
|
+
def initialize: (
|
|
187
|
+
scope: Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope,
|
|
188
|
+
?name: String,
|
|
189
|
+
?type: :TRANSACTION_HISTORY_SIGNALS
|
|
190
|
+
) -> void
|
|
191
|
+
|
|
192
|
+
def to_hash: -> {
|
|
193
|
+
scope: Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope,
|
|
194
|
+
type: :TRANSACTION_HISTORY_SIGNALS,
|
|
195
|
+
name: String
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
type scope = :CARD | :ACCOUNT | :BUSINESS_ACCOUNT
|
|
199
|
+
|
|
200
|
+
module Scope
|
|
201
|
+
extend Lithic::Internal::Type::Enum
|
|
202
|
+
|
|
203
|
+
CARD: :CARD
|
|
204
|
+
ACCOUNT: :ACCOUNT
|
|
205
|
+
BUSINESS_ACCOUNT: :BUSINESS_ACCOUNT
|
|
206
|
+
|
|
207
|
+
def self?.values: -> ::Array[Lithic::Models::AuthRules::RuleFeature::TransactionHistorySignalsFeature::scope]
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
|
|
169
211
|
def self?.variants: -> ::Array[Lithic::Models::AuthRules::rule_feature]
|
|
170
212
|
end
|
|
171
213
|
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Lithic
|
|
2
|
+
module Models
|
|
3
|
+
module AuthRules
|
|
4
|
+
type spend_velocity_filters =
|
|
5
|
+
{
|
|
6
|
+
exclude_tags: ::Hash[Symbol, String]?,
|
|
7
|
+
include_tags: ::Hash[Symbol, String]?
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class SpendVelocityFilters < Lithic::Models::AuthRules::VelocityLimitFilters
|
|
11
|
+
def exclude_tags: -> ::Hash[Symbol, String]?
|
|
12
|
+
|
|
13
|
+
def exclude_tags=: (
|
|
14
|
+
::Hash[Symbol, String]? _
|
|
15
|
+
) -> ::Hash[Symbol, String]?
|
|
16
|
+
|
|
17
|
+
def include_tags: -> ::Hash[Symbol, String]?
|
|
18
|
+
|
|
19
|
+
def include_tags=: (
|
|
20
|
+
::Hash[Symbol, String]? _
|
|
21
|
+
) -> ::Hash[Symbol, String]?
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
?exclude_tags: ::Hash[Symbol, String]?,
|
|
25
|
+
?include_tags: ::Hash[Symbol, String]?
|
|
26
|
+
) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> {
|
|
29
|
+
exclude_tags: ::Hash[Symbol, String]?,
|
|
30
|
+
include_tags: ::Hash[Symbol, String]?
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
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::ConditionalCardTransactionUpdateActionParameters
|
|
89
90
|
| Lithic::AuthRules::TypescriptCodeParameters
|
|
90
91
|
|
|
91
92
|
module Parameters
|
|
@@ -162,6 +163,7 @@ module Lithic
|
|
|
162
163
|
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
163
164
|
| Lithic::AuthRules::ConditionalACHActionParameters
|
|
164
165
|
| Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
166
|
+
| Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
|
|
165
167
|
| Lithic::AuthRules::TypescriptCodeParameters
|
|
166
168
|
|
|
167
169
|
module Parameters
|
|
@@ -261,6 +263,7 @@ module Lithic
|
|
|
261
263
|
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
262
264
|
| Lithic::AuthRules::ConditionalACHActionParameters
|
|
263
265
|
| Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
266
|
+
| Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
|
|
264
267
|
| Lithic::AuthRules::TypescriptCodeParameters
|
|
265
268
|
|
|
266
269
|
module Parameters
|
|
@@ -36,6 +36,7 @@ module Lithic
|
|
|
36
36
|
| Lithic::AuthRules::ConditionalAuthorizationActionParameters
|
|
37
37
|
| Lithic::AuthRules::ConditionalACHActionParameters
|
|
38
38
|
| Lithic::AuthRules::ConditionalTokenizationActionParameters
|
|
39
|
+
| Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
|
|
39
40
|
| Lithic::AuthRules::TypescriptCodeParameters
|
|
40
41
|
|
|
41
42
|
module Parameters
|