lithic 0.1.0.pre.alpha.37 → 0.1.0.pre.alpha.38

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 (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +182 -0
  5. data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +62 -0
  6. data/lib/lithic/models/auth_rules/v2_apply_response.rb +12 -476
  7. data/lib/lithic/models/auth_rules/v2_create_params.rb +5 -245
  8. data/lib/lithic/models/auth_rules/v2_create_response.rb +12 -476
  9. data/lib/lithic/models/auth_rules/v2_draft_params.rb +5 -245
  10. data/lib/lithic/models/auth_rules/v2_draft_response.rb +12 -476
  11. data/lib/lithic/models/auth_rules/v2_list_response.rb +12 -476
  12. data/lib/lithic/models/auth_rules/v2_promote_response.rb +12 -476
  13. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +12 -480
  14. data/lib/lithic/models/auth_rules/v2_update_response.rb +12 -476
  15. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  16. data/lib/lithic/version.rb +1 -1
  17. data/lib/lithic.rb +2 -0
  18. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +412 -0
  19. data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +119 -0
  20. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +8 -1056
  21. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +10 -534
  22. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +8 -1056
  23. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -532
  24. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +8 -1056
  25. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +8 -1056
  26. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +8 -1056
  27. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +8 -1056
  28. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +8 -1056
  29. data/rbi/lithic/resources/auth_rules/v2.rbi +4 -4
  30. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +133 -0
  31. data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +51 -0
  32. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -352
  33. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -176
  34. data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -352
  35. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -176
  36. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -352
  37. data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -352
  38. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -352
  39. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -352
  40. data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -352
  41. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b4a8aa1bcee44fcd985d8a93418bc3533ea5a6148a11de990fcfabf018c9ec4
4
- data.tar.gz: 7aa6f8bbca7ee0ed1768021d863a0c46d56e6baed438ca005e76f80820b9ca03
3
+ metadata.gz: d9b254c2d66ed0128ef685057c469b72d652584661d9db855c59e6da8b838413
4
+ data.tar.gz: 3e0f17ff59e3d3d64568351c9df090916652205beb82300c2358f9c71015acd6
5
5
  SHA512:
6
- metadata.gz: 20a6d92fce5ebf2e08c8c9f21b5383e72859f38762d408177233df51df163ac6ed4b10f9cc096dc5305e09c33844c1f0275cfd6d6335c4d90d9a7926715ee17d
7
- data.tar.gz: 9f5fade7164be49471441e76143513ac363539766fc46ee67fd74864dbfa35956aa2bafb391c083bc9f6f7f2cc53774a190dceb1fc73e28f3fbe65bcf0b15ea6
6
+ metadata.gz: 4284e12dd309e6b281bd2d12229c706eab7802042bd1ec57c3c0cd0f37cb31a724517d14328e3d9d2821efbe0d1b7bcff112f6420bd846cb90fbd5df219824ec
7
+ data.tar.gz: c8771ffdb2defc30bd5f55d6c0819d98d4293e25fae9ce7cf1edc30621c5ef8d331d12257a0fb1936e639642f3f7379b7e2d6e10af0cacc601a640b0c11457a1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.38 (2025-07-02)
4
+
5
+ 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)
6
+
7
+ ### Features
8
+
9
+ * **api:** add models for merchant_lock_parameters and conditional_3ds_action_parameters ([246c60f](https://github.com/lithic-com/lithic-ruby/commit/246c60f3befd7dfb5a7ee1cf3d048b9a7a0ce843))
10
+
3
11
  ## 0.1.0-alpha.37 (2025-07-02)
4
12
 
5
13
  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.37"
18
+ gem "lithic", "~> 0.1.0.pre.alpha.38"
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