lithic 0.1.0.pre.alpha.37 → 0.1.0.pre.alpha.39
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 +17 -0
- data/README.md +1 -1
- data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +182 -0
- data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +62 -0
- data/lib/lithic/models/auth_rules/v2_apply_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -245
- data/lib/lithic/models/auth_rules/v2_create_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -245
- data/lib/lithic/models/auth_rules/v2_draft_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_list_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_promote_response.rb +12 -476
- data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +12 -480
- data/lib/lithic/models/auth_rules/v2_update_response.rb +12 -476
- data/lib/lithic/models/event.rb +2 -0
- data/lib/lithic/models/event_list_params.rb +2 -0
- data/lib/lithic/models/event_subscription.rb +2 -0
- data/lib/lithic/models/events/subscription_create_params.rb +2 -0
- data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
- data/lib/lithic/models/events/subscription_update_params.rb +2 -0
- data/lib/lithic/models/reports/settlement/network_total_list_response.rb +16 -6
- data/lib/lithic/models/reports/settlement/network_total_retrieve_response.rb +16 -6
- data/lib/lithic/resources/auth_rules/v2.rb +2 -2
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +2 -0
- data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +412 -0
- data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +119 -0
- data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_create_params.rbi +10 -534
- data/rbi/lithic/models/auth_rules/v2_create_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -532
- data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_list_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +8 -1056
- data/rbi/lithic/models/auth_rules/v2_update_response.rbi +8 -1056
- data/rbi/lithic/models/event.rbi +10 -0
- data/rbi/lithic/models/event_list_params.rbi +10 -0
- data/rbi/lithic/models/event_subscription.rbi +10 -0
- data/rbi/lithic/models/events/subscription_create_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
- data/rbi/lithic/models/events/subscription_update_params.rbi +10 -0
- data/rbi/lithic/models/reports/settlement/network_total_list_response.rbi +21 -6
- data/rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi +21 -6
- data/rbi/lithic/resources/auth_rules/v2.rbi +4 -4
- data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +133 -0
- data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +51 -0
- data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -176
- data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -176
- data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -352
- data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -352
- data/sig/lithic/models/event.rbs +4 -0
- data/sig/lithic/models/event_list_params.rbs +4 -0
- data/sig/lithic/models/event_subscription.rbs +4 -0
- data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
- data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
- data/sig/lithic/models/reports/settlement/network_total_list_response.rbs +7 -1
- data/sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs +7 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24bcc946862d8309f1d3bcd0073c3d54c40f81bae248f0ca22b06acaacde673a
|
4
|
+
data.tar.gz: 6e7fc36ec06802ae0602381e4cc0b37b9b2685183ceed95c1e834e6bc34cbcd7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf1aadf77aa0aa1c0b4f1d8840ef7ca9e83ea44f4aba1a194d9c54d26b3d227f6c4e87769dba814564de27e494167a4db80a47129e351782c20a2a25722e0362
|
7
|
+
data.tar.gz: 77321cee941eb6dac08e8d43a1d74b4f4413ff7ffc44f5126108b930c93e6e71312f3a64416e4551adb29bb1a1e2c2a85f50afce03e7a75e90c9452d40009f64
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.1.0-alpha.39 (2025-07-03)
|
4
|
+
|
5
|
+
Full Changelog: [v0.1.0-alpha.38...v0.1.0-alpha.39](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.38...v0.1.0-alpha.39)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([c096398](https://github.com/lithic-com/lithic-ruby/commit/c0963987f272b3c94603f5072a0e480b06d99a02))
|
10
|
+
* **api:** api update ([d85ee36](https://github.com/lithic-com/lithic-ruby/commit/d85ee366181cd1d8c2530049d4bf13bfd8f22d19))
|
11
|
+
|
12
|
+
## 0.1.0-alpha.38 (2025-07-02)
|
13
|
+
|
14
|
+
Full Changelog: [v0.1.0-alpha.37...v0.1.0-alpha.38](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.37...v0.1.0-alpha.38)
|
15
|
+
|
16
|
+
### Features
|
17
|
+
|
18
|
+
* **api:** add models for merchant_lock_parameters and conditional_3ds_action_parameters ([246c60f](https://github.com/lithic-com/lithic-ruby/commit/246c60f3befd7dfb5a7ee1cf3d048b9a7a0ce843))
|
19
|
+
|
3
20
|
## 0.1.0-alpha.37 (2025-07-02)
|
4
21
|
|
5
22
|
Full Changelog: [v0.1.0-alpha.36...v0.1.0-alpha.37](https://github.com/lithic-com/lithic-ruby/compare/v0.1.0-alpha.36...v0.1.0-alpha.37)
|
data/README.md
CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
|
|
15
15
|
<!-- x-release-please-start-version -->
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
gem "lithic", "~> 0.1.0.pre.alpha.
|
18
|
+
gem "lithic", "~> 0.1.0.pre.alpha.39"
|
19
19
|
```
|
20
20
|
|
21
21
|
<!-- x-release-please-end -->
|
@@ -0,0 +1,182 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
module AuthRules
|
6
|
+
class Conditional3DSActionParameters < Lithic::Internal::Type::BaseModel
|
7
|
+
# @!attribute action
|
8
|
+
# The action to take if the conditions are met.
|
9
|
+
#
|
10
|
+
# @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Action]
|
11
|
+
required :action, enum: -> { Lithic::AuthRules::Conditional3DSActionParameters::Action }
|
12
|
+
|
13
|
+
# @!attribute conditions
|
14
|
+
#
|
15
|
+
# @return [Array<Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition>]
|
16
|
+
required :conditions,
|
17
|
+
-> {
|
18
|
+
Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::Conditional3DSActionParameters::Condition]
|
19
|
+
}
|
20
|
+
|
21
|
+
# @!method initialize(action:, conditions:)
|
22
|
+
# @param action [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Action] The action to take if the conditions are met.
|
23
|
+
#
|
24
|
+
# @param conditions [Array<Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition>]
|
25
|
+
|
26
|
+
# The action to take if the conditions are met.
|
27
|
+
#
|
28
|
+
# @see Lithic::Models::AuthRules::Conditional3DSActionParameters#action
|
29
|
+
module Action
|
30
|
+
extend Lithic::Internal::Type::Enum
|
31
|
+
|
32
|
+
DECLINE = :DECLINE
|
33
|
+
CHALLENGE = :CHALLENGE
|
34
|
+
|
35
|
+
# @!method self.values
|
36
|
+
# @return [Array<Symbol>]
|
37
|
+
end
|
38
|
+
|
39
|
+
class Condition < Lithic::Internal::Type::BaseModel
|
40
|
+
# @!attribute attribute
|
41
|
+
# The attribute to target.
|
42
|
+
#
|
43
|
+
# The following attributes may be targeted:
|
44
|
+
#
|
45
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
46
|
+
# business by the types of goods or services it provides.
|
47
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
48
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
49
|
+
# Netherlands Antilles.
|
50
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
51
|
+
# the transaction.
|
52
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
53
|
+
# (merchant).
|
54
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
55
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
56
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
57
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
58
|
+
# fee on behalf of the cardholder.
|
59
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
60
|
+
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
61
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
62
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
63
|
+
# multiplying the raw score by 10x.
|
64
|
+
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
65
|
+
#
|
66
|
+
# @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute, nil]
|
67
|
+
optional :attribute,
|
68
|
+
enum: -> {
|
69
|
+
Lithic::AuthRules::Conditional3DSActionParameters::Condition::Attribute
|
70
|
+
}
|
71
|
+
|
72
|
+
# @!attribute operation
|
73
|
+
# The operation to apply to the attribute
|
74
|
+
#
|
75
|
+
# @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Operation, nil]
|
76
|
+
optional :operation,
|
77
|
+
enum: -> {
|
78
|
+
Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation
|
79
|
+
}
|
80
|
+
|
81
|
+
# @!attribute value
|
82
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
83
|
+
#
|
84
|
+
# @return [String, Integer, Array<String>, nil]
|
85
|
+
optional :value, union: -> { Lithic::AuthRules::Conditional3DSActionParameters::Condition::Value }
|
86
|
+
|
87
|
+
# @!method initialize(attribute: nil, operation: nil, value: nil)
|
88
|
+
# Some parameter documentations has been truncated, see
|
89
|
+
# {Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition} for more
|
90
|
+
# details.
|
91
|
+
#
|
92
|
+
# @param attribute [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute] The attribute to target.
|
93
|
+
#
|
94
|
+
# @param operation [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Operation] The operation to apply to the attribute
|
95
|
+
#
|
96
|
+
# @param value [String, Integer, Array<String>] A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
97
|
+
|
98
|
+
# The attribute to target.
|
99
|
+
#
|
100
|
+
# The following attributes may be targeted:
|
101
|
+
#
|
102
|
+
# - `MCC`: A four-digit number listed in ISO 18245. An MCC is used to classify a
|
103
|
+
# business by the types of goods or services it provides.
|
104
|
+
# - `COUNTRY`: Country of entity of card acceptor. Possible values are: (1) all
|
105
|
+
# ISO 3166-1 alpha-3 country codes, (2) QZZ for Kosovo, and (3) ANT for
|
106
|
+
# Netherlands Antilles.
|
107
|
+
# - `CURRENCY`: 3-character alphabetic ISO 4217 code for the merchant currency of
|
108
|
+
# the transaction.
|
109
|
+
# - `MERCHANT_ID`: Unique alphanumeric identifier for the payment card acceptor
|
110
|
+
# (merchant).
|
111
|
+
# - `DESCRIPTOR`: Short description of card acceptor.
|
112
|
+
# - `TRANSACTION_AMOUNT`: The base transaction amount (in cents) plus the acquirer
|
113
|
+
# fee field in the settlement/cardholder billing currency. This is the amount
|
114
|
+
# the issuer should authorize against unless the issuer is paying the acquirer
|
115
|
+
# fee on behalf of the cardholder.
|
116
|
+
# - `RISK_SCORE`: Network-provided score assessing risk level associated with a
|
117
|
+
# given authentication. Scores are on a range of 0-999, with 0 representing the
|
118
|
+
# lowest risk and 999 representing the highest risk. For Visa transactions,
|
119
|
+
# where the raw score has a range of 0-99, Lithic will normalize the score by
|
120
|
+
# multiplying the raw score by 10x.
|
121
|
+
# - `MESSAGE_CATEGORY`: The category of the authentication being processed.
|
122
|
+
#
|
123
|
+
# @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#attribute
|
124
|
+
module Attribute
|
125
|
+
extend Lithic::Internal::Type::Enum
|
126
|
+
|
127
|
+
MCC = :MCC
|
128
|
+
COUNTRY = :COUNTRY
|
129
|
+
CURRENCY = :CURRENCY
|
130
|
+
MERCHANT_ID = :MERCHANT_ID
|
131
|
+
DESCRIPTOR = :DESCRIPTOR
|
132
|
+
TRANSACTION_AMOUNT = :TRANSACTION_AMOUNT
|
133
|
+
RISK_SCORE = :RISK_SCORE
|
134
|
+
MESSAGE_CATEGORY = :MESSAGE_CATEGORY
|
135
|
+
|
136
|
+
# @!method self.values
|
137
|
+
# @return [Array<Symbol>]
|
138
|
+
end
|
139
|
+
|
140
|
+
# The operation to apply to the attribute
|
141
|
+
#
|
142
|
+
# @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#operation
|
143
|
+
module Operation
|
144
|
+
extend Lithic::Internal::Type::Enum
|
145
|
+
|
146
|
+
IS_ONE_OF = :IS_ONE_OF
|
147
|
+
IS_NOT_ONE_OF = :IS_NOT_ONE_OF
|
148
|
+
MATCHES = :MATCHES
|
149
|
+
DOES_NOT_MATCH = :DOES_NOT_MATCH
|
150
|
+
IS_GREATER_THAN = :IS_GREATER_THAN
|
151
|
+
IS_LESS_THAN = :IS_LESS_THAN
|
152
|
+
|
153
|
+
# @!method self.values
|
154
|
+
# @return [Array<Symbol>]
|
155
|
+
end
|
156
|
+
|
157
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
158
|
+
#
|
159
|
+
# @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#value
|
160
|
+
module Value
|
161
|
+
extend Lithic::Internal::Type::Union
|
162
|
+
|
163
|
+
# A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
|
164
|
+
variant String
|
165
|
+
|
166
|
+
# A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN`
|
167
|
+
variant Integer
|
168
|
+
|
169
|
+
# An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
|
170
|
+
variant -> { Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Value::StringArray }
|
171
|
+
|
172
|
+
# @!method self.variants
|
173
|
+
# @return [Array(String, Integer, Array<String>)]
|
174
|
+
|
175
|
+
# @type [Lithic::Internal::Type::Converter]
|
176
|
+
StringArray = Lithic::Internal::Type::ArrayOf[String]
|
177
|
+
end
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Lithic
|
4
|
+
module Models
|
5
|
+
module AuthRules
|
6
|
+
class MerchantLockParameters < Lithic::Internal::Type::BaseModel
|
7
|
+
# @!attribute merchants
|
8
|
+
# A list of merchant locks defining specific merchants or groups of merchants
|
9
|
+
# (based on descriptors or IDs) that the lock applies to.
|
10
|
+
#
|
11
|
+
# @return [Array<Lithic::Models::AuthRules::MerchantLockParameters::Merchant>]
|
12
|
+
required :merchants,
|
13
|
+
-> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::MerchantLockParameters::Merchant] }
|
14
|
+
|
15
|
+
# @!method initialize(merchants:)
|
16
|
+
# Some parameter documentations has been truncated, see
|
17
|
+
# {Lithic::Models::AuthRules::MerchantLockParameters} for more details.
|
18
|
+
#
|
19
|
+
# @param merchants [Array<Lithic::Models::AuthRules::MerchantLockParameters::Merchant>] A list of merchant locks defining specific merchants or groups of merchants (bas
|
20
|
+
|
21
|
+
class Merchant < Lithic::Internal::Type::BaseModel
|
22
|
+
# @!attribute comment
|
23
|
+
# A comment or explanation about the merchant, used internally for rule management
|
24
|
+
# purposes.
|
25
|
+
#
|
26
|
+
# @return [String, nil]
|
27
|
+
optional :comment, String
|
28
|
+
|
29
|
+
# @!attribute descriptor
|
30
|
+
# Short description of the merchant, often used to provide more human-readable
|
31
|
+
# context about the transaction merchant. This is typically the name or label
|
32
|
+
# shown on transaction summaries.
|
33
|
+
#
|
34
|
+
# @return [String, nil]
|
35
|
+
optional :descriptor, String
|
36
|
+
|
37
|
+
# @!attribute merchant_id
|
38
|
+
# Unique alphanumeric identifier for the payment card acceptor (merchant). This
|
39
|
+
# attribute specifies the merchant entity that will be locked or referenced for
|
40
|
+
# authorization rules.
|
41
|
+
#
|
42
|
+
# @return [String, nil]
|
43
|
+
optional :merchant_id, String
|
44
|
+
|
45
|
+
# @!method initialize(comment: nil, descriptor: nil, merchant_id: nil)
|
46
|
+
# Some parameter documentations has been truncated, see
|
47
|
+
# {Lithic::Models::AuthRules::MerchantLockParameters::Merchant} for more details.
|
48
|
+
#
|
49
|
+
# Represents a specific merchant lock based on their ID or descriptor. Each
|
50
|
+
# merchant object allows transaction rules to work at a granular level and
|
51
|
+
# requires at least one of merchant_id or descriptor.
|
52
|
+
#
|
53
|
+
# @param comment [String] A comment or explanation about the merchant, used internally for rule management
|
54
|
+
#
|
55
|
+
# @param descriptor [String] Short description of the merchant, often used to provide more human-readable con
|
56
|
+
#
|
57
|
+
# @param merchant_id [String] Unique alphanumeric identifier for the payment card acceptor (merchant). This at
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|