lithic 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -10
  4. data/lib/lithic/internal/type/union.rb +21 -7
  5. data/lib/lithic/models/account_holder_create_params.rb +4 -2
  6. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +120 -66
  7. data/lib/lithic/models/account_holder_update_params.rb +6 -3
  8. data/lib/lithic/models/account_holder_update_response.rb +156 -86
  9. data/lib/lithic/models/account_holder_updated_webhook_event.rb +120 -66
  10. data/lib/lithic/models/account_holders/account_holder_entity.rb +35 -19
  11. data/lib/lithic/models/account_holders/entity_create_params.rb +39 -21
  12. data/lib/lithic/models/address.rb +33 -19
  13. data/lib/lithic/models/address_update.rb +27 -11
  14. data/lib/lithic/models/auth_rules/auth_rule.rb +55 -27
  15. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +189 -6
  16. data/lib/lithic/models/auth_rules/auth_rule_entities.rb +47 -0
  17. data/lib/lithic/models/auth_rules/auth_rule_entities_response.rb +31 -0
  18. data/lib/lithic/models/auth_rules/auth_rule_entity.rb +150 -0
  19. data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -6
  20. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +33 -6
  21. data/lib/lithic/models/auth_rules/conditional_attribute.rb +101 -5
  22. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +3 -439
  23. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +7 -0
  24. data/lib/lithic/models/auth_rules/merchant_lock_parameters.rb +11 -1
  25. data/lib/lithic/models/auth_rules/v2_create_params.rb +203 -45
  26. data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -6
  27. data/lib/lithic/models/auth_rules/v2_list_params.rb +5 -3
  28. data/lib/lithic/models/auth_rules/v2_update_entities_params.rb +39 -0
  29. data/lib/lithic/models/auth_rules/v2_update_params.rb +133 -12
  30. data/lib/lithic/models/card_authorization.rb +11 -1
  31. data/lib/lithic/models/card_create_params.rb +11 -1
  32. data/lib/lithic/models/card_update_params.rb +12 -1
  33. data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +279 -0
  34. data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +106 -0
  35. data/lib/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rb +42 -0
  36. data/lib/lithic/models/financial_accounts/loan_tape.rb +62 -1
  37. data/lib/lithic/models/kyb.rb +4 -2
  38. data/lib/lithic/models/kyb_business_entity.rb +35 -19
  39. data/lib/lithic/models/kyc.rb +2 -1
  40. data/lib/lithic/models/non_pci_card.rb +11 -1
  41. data/lib/lithic/models/parsed_webhook_event.rb +120 -66
  42. data/lib/lithic/models/payment.rb +2 -1
  43. data/lib/lithic/models/transaction.rb +2 -1
  44. data/lib/lithic/models/transaction_simulate_authorization_params.rb +28 -4
  45. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +11 -1
  46. data/lib/lithic/models/transaction_simulate_return_params.rb +24 -1
  47. data/lib/lithic/resources/auth_rules/v2/backtests.rb +8 -8
  48. data/lib/lithic/resources/auth_rules/v2.rb +44 -8
  49. data/lib/lithic/resources/cards.rb +6 -2
  50. data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +107 -0
  51. data/lib/lithic/resources/financial_accounts/installment_plans.rb +4 -0
  52. data/lib/lithic/resources/transactions.rb +17 -4
  53. data/lib/lithic/resources/webhooks.rb +18 -0
  54. data/lib/lithic/version.rb +1 -1
  55. data/lib/lithic.rb +8 -1
  56. data/rbi/lithic/models/account_holder_create_params.rbi +8 -4
  57. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +195 -90
  58. data/rbi/lithic/models/account_holder_update_params.rbi +12 -6
  59. data/rbi/lithic/models/account_holder_update_response.rbi +254 -117
  60. data/rbi/lithic/models/account_holder_updated_webhook_event.rbi +195 -90
  61. data/rbi/lithic/models/account_holders/account_holder_entity.rbi +59 -27
  62. data/rbi/lithic/models/account_holders/entity_create_params.rbi +65 -30
  63. data/rbi/lithic/models/address.rbi +57 -29
  64. data/rbi/lithic/models/address_update.rbi +50 -24
  65. data/rbi/lithic/models/auth_rules/auth_rule.rbi +53 -19
  66. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +442 -13
  67. data/rbi/lithic/models/auth_rules/auth_rule_entities.rbi +163 -0
  68. data/rbi/lithic/models/auth_rules/auth_rule_entities_response.rbi +72 -0
  69. data/rbi/lithic/models/auth_rules/auth_rule_entity.rbi +199 -0
  70. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +0 -2
  71. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +67 -9
  72. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +193 -5
  73. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +3 -939
  74. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +14 -0
  75. data/rbi/lithic/models/auth_rules/merchant_lock_parameters.rbi +14 -3
  76. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +325 -50
  77. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +0 -4
  78. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +6 -3
  79. data/rbi/lithic/models/auth_rules/v2_update_entities_params.rbi +68 -0
  80. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +198 -5
  81. data/rbi/lithic/models/card_authorization.rbi +12 -0
  82. data/rbi/lithic/models/card_create_params.rbi +15 -0
  83. data/rbi/lithic/models/card_update_params.rbi +17 -0
  84. data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +452 -0
  85. data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +191 -0
  86. data/rbi/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbi +66 -0
  87. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +119 -0
  88. data/rbi/lithic/models/kyb.rbi +8 -4
  89. data/rbi/lithic/models/kyb_business_entity.rbi +59 -27
  90. data/rbi/lithic/models/kyc.rbi +4 -2
  91. data/rbi/lithic/models/non_pci_card.rbi +12 -0
  92. data/rbi/lithic/models/parsed_webhook_event.rbi +195 -90
  93. data/rbi/lithic/models/payment.rbi +4 -2
  94. data/rbi/lithic/models/transaction.rbi +4 -2
  95. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +42 -4
  96. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +15 -0
  97. data/rbi/lithic/models/transaction_simulate_return_params.rbi +30 -0
  98. data/rbi/lithic/resources/account_holders/entities.rbi +2 -1
  99. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +8 -8
  100. data/rbi/lithic/resources/auth_rules/v2.rbi +43 -8
  101. data/rbi/lithic/resources/cards.rbi +11 -0
  102. data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +86 -0
  103. data/rbi/lithic/resources/financial_accounts/installment_plans.rbi +7 -0
  104. data/rbi/lithic/resources/transactions.rbi +31 -2
  105. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +39 -39
  106. data/sig/lithic/models/account_holder_update_response.rbs +52 -52
  107. data/sig/lithic/models/account_holder_updated_webhook_event.rbs +39 -39
  108. data/sig/lithic/models/account_holders/account_holder_entity.rbs +13 -13
  109. data/sig/lithic/models/account_holders/entity_create_params.rbs +13 -13
  110. data/sig/lithic/models/address.rbs +13 -13
  111. data/sig/lithic/models/address_update.rbs +8 -12
  112. data/sig/lithic/models/auth_rules/auth_rule.rbs +8 -7
  113. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +89 -3
  114. data/sig/lithic/models/auth_rules/auth_rule_entities.rbs +37 -0
  115. data/sig/lithic/models/auth_rules/auth_rule_entities_response.rbs +29 -0
  116. data/sig/lithic/models/auth_rules/auth_rule_entity.rbs +80 -0
  117. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +1 -2
  118. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +10 -0
  119. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +46 -0
  120. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +4 -204
  121. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +2 -0
  122. data/sig/lithic/models/auth_rules/merchant_lock_parameters.rbs +10 -3
  123. data/sig/lithic/models/auth_rules/v2_create_params.rbs +86 -16
  124. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -2
  125. data/sig/lithic/models/auth_rules/v2_update_entities_params.rbs +46 -0
  126. data/sig/lithic/models/auth_rules/v2_update_params.rbs +47 -1
  127. data/sig/lithic/models/card_authorization.rbs +5 -0
  128. data/sig/lithic/models/card_create_params.rbs +7 -0
  129. data/sig/lithic/models/card_update_params.rbs +8 -1
  130. data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +191 -0
  131. data/sig/lithic/models/financial_accounts/installment_plans/statement_list_params.rbs +90 -0
  132. data/sig/lithic/models/financial_accounts/installment_plans/statement_retrieve_params.rbs +40 -0
  133. data/sig/lithic/models/financial_accounts/loan_tape.rbs +47 -0
  134. data/sig/lithic/models/kyb_business_entity.rbs +13 -13
  135. data/sig/lithic/models/non_pci_card.rbs +5 -0
  136. data/sig/lithic/models/parsed_webhook_event.rbs +39 -39
  137. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +14 -0
  138. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +7 -0
  139. data/sig/lithic/models/transaction_simulate_return_params.rbs +19 -1
  140. data/sig/lithic/resources/auth_rules/v2.rbs +7 -0
  141. data/sig/lithic/resources/cards.rbs +2 -0
  142. data/sig/lithic/resources/financial_accounts/installment_plans/statements.rbs +30 -0
  143. data/sig/lithic/resources/financial_accounts/installment_plans.rbs +2 -0
  144. data/sig/lithic/resources/transactions.rbs +5 -0
  145. metadata +26 -5
  146. data/lib/lithic/models/auth_rules/conditional_block_parameters.rb +0 -20
  147. data/rbi/lithic/models/auth_rules/conditional_block_parameters.rbi +0 -37
  148. data/sig/lithic/models/auth_rules/conditional_block_parameters.rbs +0 -20
@@ -7,7 +7,8 @@ module Lithic
7
7
  {
8
8
  attribute: Lithic::Models::AuthRules::conditional_attribute,
9
9
  operation: Lithic::Models::AuthRules::conditional_operation,
10
- value: Lithic::Models::AuthRules::conditional_value
10
+ value: Lithic::Models::AuthRules::conditional_value,
11
+ parameters: Lithic::AuthRules::AuthRuleCondition::Parameters
11
12
  }
12
13
 
13
14
  class AuthRuleCondition < Lithic::Internal::Type::BaseModel
@@ -17,17 +18,102 @@ module Lithic
17
18
 
18
19
  attr_accessor value: Lithic::Models::AuthRules::conditional_value
19
20
 
21
+ attr_reader parameters: Lithic::AuthRules::AuthRuleCondition::Parameters?
22
+
23
+ def parameters=: (
24
+ Lithic::AuthRules::AuthRuleCondition::Parameters
25
+ ) -> Lithic::AuthRules::AuthRuleCondition::Parameters
26
+
20
27
  def initialize: (
21
28
  attribute: Lithic::Models::AuthRules::conditional_attribute,
22
29
  operation: Lithic::Models::AuthRules::conditional_operation,
23
- value: Lithic::Models::AuthRules::conditional_value
30
+ value: Lithic::Models::AuthRules::conditional_value,
31
+ ?parameters: Lithic::AuthRules::AuthRuleCondition::Parameters
24
32
  ) -> void
25
33
 
26
34
  def to_hash: -> {
27
35
  attribute: Lithic::Models::AuthRules::conditional_attribute,
28
36
  operation: Lithic::Models::AuthRules::conditional_operation,
29
- value: Lithic::Models::AuthRules::conditional_value
37
+ value: Lithic::Models::AuthRules::conditional_value,
38
+ parameters: Lithic::AuthRules::AuthRuleCondition::Parameters
30
39
  }
40
+
41
+ type parameters =
42
+ {
43
+ interval: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::interval,
44
+ scope: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::scope,
45
+ unit: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::unit
46
+ }
47
+
48
+ class Parameters < Lithic::Internal::Type::BaseModel
49
+ attr_reader interval: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::interval?
50
+
51
+ def interval=: (
52
+ Lithic::Models::AuthRules::AuthRuleCondition::Parameters::interval
53
+ ) -> Lithic::Models::AuthRules::AuthRuleCondition::Parameters::interval
54
+
55
+ attr_reader scope: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::scope?
56
+
57
+ def scope=: (
58
+ Lithic::Models::AuthRules::AuthRuleCondition::Parameters::scope
59
+ ) -> Lithic::Models::AuthRules::AuthRuleCondition::Parameters::scope
60
+
61
+ attr_reader unit: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::unit?
62
+
63
+ def unit=: (
64
+ Lithic::Models::AuthRules::AuthRuleCondition::Parameters::unit
65
+ ) -> Lithic::Models::AuthRules::AuthRuleCondition::Parameters::unit
66
+
67
+ def initialize: (
68
+ ?interval: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::interval,
69
+ ?scope: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::scope,
70
+ ?unit: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::unit
71
+ ) -> void
72
+
73
+ def to_hash: -> {
74
+ interval: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::interval,
75
+ scope: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::scope,
76
+ unit: Lithic::Models::AuthRules::AuthRuleCondition::Parameters::unit
77
+ }
78
+
79
+ type interval = :LIFETIME | :"7D" | :"30D" | :"90D"
80
+
81
+ module Interval
82
+ extend Lithic::Internal::Type::Enum
83
+
84
+ LIFETIME: :LIFETIME
85
+ INTERVAL_7_D: :"7D"
86
+ INTERVAL_30_D: :"30D"
87
+ INTERVAL_90_D: :"90D"
88
+
89
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::AuthRuleCondition::Parameters::interval]
90
+ end
91
+
92
+ type scope = :CARD | :ACCOUNT | :BUSINESS_ACCOUNT
93
+
94
+ module Scope
95
+ extend Lithic::Internal::Type::Enum
96
+
97
+ CARD: :CARD
98
+ ACCOUNT: :ACCOUNT
99
+ BUSINESS_ACCOUNT: :BUSINESS_ACCOUNT
100
+
101
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::AuthRuleCondition::Parameters::scope]
102
+ end
103
+
104
+ type unit = :MPH | :KPH | :MILES | :KILOMETERS
105
+
106
+ module Unit
107
+ extend Lithic::Internal::Type::Enum
108
+
109
+ MPH: :MPH
110
+ KPH: :KPH
111
+ MILES: :MILES
112
+ KILOMETERS: :KILOMETERS
113
+
114
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::AuthRuleCondition::Parameters::unit]
115
+ end
116
+ end
31
117
  end
32
118
  end
33
119
  end
@@ -0,0 +1,37 @@
1
+ module Lithic
2
+ module Models
3
+ class AuthRuleEntities = AuthRules::AuthRuleEntities
4
+
5
+ module AuthRules
6
+ type auth_rule_entities =
7
+ {
8
+ exclude: ::Array[Lithic::Models::AuthRules::auth_rule_entity],
9
+ include: ::Array[Lithic::Models::AuthRules::auth_rule_entity]
10
+ }
11
+
12
+ class AuthRuleEntities < Lithic::Internal::Type::BaseModel
13
+ attr_reader exclude: ::Array[Lithic::Models::AuthRules::auth_rule_entity]?
14
+
15
+ def exclude=: (
16
+ ::Array[Lithic::Models::AuthRules::auth_rule_entity]
17
+ ) -> ::Array[Lithic::Models::AuthRules::auth_rule_entity]
18
+
19
+ attr_reader include: ::Array[Lithic::Models::AuthRules::auth_rule_entity]?
20
+
21
+ def include=: (
22
+ ::Array[Lithic::Models::AuthRules::auth_rule_entity]
23
+ ) -> ::Array[Lithic::Models::AuthRules::auth_rule_entity]
24
+
25
+ def initialize: (
26
+ ?exclude: ::Array[Lithic::Models::AuthRules::auth_rule_entity],
27
+ ?include: ::Array[Lithic::Models::AuthRules::auth_rule_entity]
28
+ ) -> void
29
+
30
+ def to_hash: -> {
31
+ exclude: ::Array[Lithic::Models::AuthRules::auth_rule_entity],
32
+ include: ::Array[Lithic::Models::AuthRules::auth_rule_entity]
33
+ }
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,29 @@
1
+ module Lithic
2
+ module Models
3
+ class AuthRuleEntitiesResponse = AuthRules::AuthRuleEntitiesResponse
4
+
5
+ module AuthRules
6
+ type auth_rule_entities_response =
7
+ {
8
+ exclude: ::Array[Lithic::Models::AuthRules::auth_rule_entity],
9
+ include: ::Array[Lithic::Models::AuthRules::auth_rule_entity]
10
+ }
11
+
12
+ class AuthRuleEntitiesResponse < Lithic::Internal::Type::BaseModel
13
+ attr_accessor exclude: ::Array[Lithic::Models::AuthRules::auth_rule_entity]
14
+
15
+ attr_accessor include: ::Array[Lithic::Models::AuthRules::auth_rule_entity]
16
+
17
+ def initialize: (
18
+ exclude: ::Array[Lithic::Models::AuthRules::auth_rule_entity],
19
+ include: ::Array[Lithic::Models::AuthRules::auth_rule_entity]
20
+ ) -> void
21
+
22
+ def to_hash: -> {
23
+ exclude: ::Array[Lithic::Models::AuthRules::auth_rule_entity],
24
+ include: ::Array[Lithic::Models::AuthRules::auth_rule_entity]
25
+ }
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,80 @@
1
+ module Lithic
2
+ module Models
3
+ module AuthRuleEntity = AuthRules::AuthRuleEntity
4
+
5
+ module AuthRules
6
+ type auth_rule_entity =
7
+ Lithic::AuthRules::AuthRuleEntity::Program
8
+ | Lithic::AuthRules::AuthRuleEntity::Card
9
+ | Lithic::AuthRules::AuthRuleEntity::Account
10
+ | Lithic::AuthRules::AuthRuleEntity::BusinessAccount
11
+ | Lithic::AuthRules::AuthRuleEntity::CardTag
12
+
13
+ module AuthRuleEntity
14
+ extend Lithic::Internal::Type::Union
15
+
16
+ type program = { type: :PROGRAM }
17
+
18
+ class Program < Lithic::Internal::Type::BaseModel
19
+ attr_accessor type: :PROGRAM
20
+
21
+ def initialize: (?type: :PROGRAM) -> void
22
+
23
+ def to_hash: -> { type: :PROGRAM }
24
+ end
25
+
26
+ type card = { token: String, type: :CARD }
27
+
28
+ class Card < Lithic::Internal::Type::BaseModel
29
+ attr_accessor token: String
30
+
31
+ attr_accessor type: :CARD
32
+
33
+ def initialize: (token: String, ?type: :CARD) -> void
34
+
35
+ def to_hash: -> { token: String, type: :CARD }
36
+ end
37
+
38
+ type account = { token: String, type: :ACCOUNT }
39
+
40
+ class Account < Lithic::Internal::Type::BaseModel
41
+ attr_accessor token: String
42
+
43
+ attr_accessor type: :ACCOUNT
44
+
45
+ def initialize: (token: String, ?type: :ACCOUNT) -> void
46
+
47
+ def to_hash: -> { token: String, type: :ACCOUNT }
48
+ end
49
+
50
+ type business_account = { token: String, type: :BUSINESS_ACCOUNT }
51
+
52
+ class BusinessAccount < Lithic::Internal::Type::BaseModel
53
+ attr_accessor token: String
54
+
55
+ attr_accessor type: :BUSINESS_ACCOUNT
56
+
57
+ def initialize: (token: String, ?type: :BUSINESS_ACCOUNT) -> void
58
+
59
+ def to_hash: -> { token: String, type: :BUSINESS_ACCOUNT }
60
+ end
61
+
62
+ type card_tag = { key: String, type: :CARD_TAG, value: String }
63
+
64
+ class CardTag < Lithic::Internal::Type::BaseModel
65
+ attr_accessor key: String
66
+
67
+ attr_accessor type: :CARD_TAG
68
+
69
+ attr_accessor value: String
70
+
71
+ def initialize: (key: String, value: String, ?type: :CARD_TAG) -> void
72
+
73
+ def to_hash: -> { key: String, type: :CARD_TAG, value: String }
74
+ end
75
+
76
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::auth_rule_entity]
77
+ end
78
+ end
79
+ end
80
+ end
@@ -35,8 +35,7 @@ module Lithic
35
35
  }
36
36
 
37
37
  type parameters =
38
- Lithic::AuthRules::ConditionalBlockParameters
39
- | Lithic::AuthRules::VelocityLimitParams
38
+ Lithic::AuthRules::VelocityLimitParams
40
39
  | Lithic::AuthRules::MerchantLockParameters
41
40
  | Lithic::AuthRules::Conditional3DSActionParameters
42
41
  | Lithic::AuthRules::ConditionalAuthorizationActionParameters
@@ -69,6 +69,11 @@ module Lithic
69
69
  | :RISK_SCORE
70
70
  | :MESSAGE_CATEGORY
71
71
  | :ADDRESS_MATCH
72
+ | :CARD_STATE
73
+ | :CARD_TYPE
74
+ | :CARD_PROGRAM_FAMILY
75
+ | :PIN_STATUS
76
+ | :CARD_AGE
72
77
 
73
78
  module Attribute
74
79
  extend Lithic::Internal::Type::Enum
@@ -82,6 +87,11 @@ module Lithic
82
87
  RISK_SCORE: :RISK_SCORE
83
88
  MESSAGE_CATEGORY: :MESSAGE_CATEGORY
84
89
  ADDRESS_MATCH: :ADDRESS_MATCH
90
+ CARD_STATE: :CARD_STATE
91
+ CARD_TYPE: :CARD_TYPE
92
+ CARD_PROGRAM_FAMILY: :CARD_PROGRAM_FAMILY
93
+ PIN_STATUS: :PIN_STATUS
94
+ CARD_AGE: :CARD_AGE
85
95
 
86
96
  def self?.values: -> ::Array[Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::attribute]
87
97
  end
@@ -10,15 +10,38 @@ module Lithic
10
10
  | :LIABILITY_SHIFT
11
11
  | :PAN_ENTRY_MODE
12
12
  | :TRANSACTION_AMOUNT
13
+ | :CASH_AMOUNT
13
14
  | :RISK_SCORE
14
15
  | :CARD_TRANSACTION_COUNT_15M
15
16
  | :CARD_TRANSACTION_COUNT_1H
16
17
  | :CARD_TRANSACTION_COUNT_24H
18
+ | :CARD_DECLINE_COUNT_15M
19
+ | :CARD_DECLINE_COUNT_1H
20
+ | :CARD_DECLINE_COUNT_24H
17
21
  | :CARD_STATE
18
22
  | :PIN_ENTERED
19
23
  | :PIN_STATUS
20
24
  | :WALLET_TYPE
25
+ | :TRANSACTION_INITIATOR
21
26
  | :ADDRESS_MATCH
27
+ | :SERVICE_LOCATION_STATE
28
+ | :SERVICE_LOCATION_POSTAL_CODE
29
+ | :CARD_AGE
30
+ | :IS_DOMESTIC
31
+ | :ACCOUNT_AGE
32
+ | :AMOUNT_Z_SCORE
33
+ | :AVG_TRANSACTION_AMOUNT
34
+ | :STDEV_TRANSACTION_AMOUNT
35
+ | :IS_NEW_COUNTRY
36
+ | :IS_NEW_MCC
37
+ | :IS_FIRST_TRANSACTION
38
+ | :CONSECUTIVE_DECLINES
39
+ | :TIME_SINCE_LAST_TRANSACTION
40
+ | :DISTINCT_COUNTRY_COUNT
41
+ | :IS_NEW_MERCHANT
42
+ | :THREE_DS_SUCCESS_RATE
43
+ | :TRAVEL_SPEED
44
+ | :DISTANCE_FROM_LAST_TRANSACTION
22
45
 
23
46
  module ConditionalAttribute
24
47
  extend Lithic::Internal::Type::Enum
@@ -31,15 +54,38 @@ module Lithic
31
54
  LIABILITY_SHIFT: :LIABILITY_SHIFT
32
55
  PAN_ENTRY_MODE: :PAN_ENTRY_MODE
33
56
  TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
57
+ CASH_AMOUNT: :CASH_AMOUNT
34
58
  RISK_SCORE: :RISK_SCORE
35
59
  CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
36
60
  CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
37
61
  CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H
62
+ CARD_DECLINE_COUNT_15_M: :CARD_DECLINE_COUNT_15M
63
+ CARD_DECLINE_COUNT_1_H: :CARD_DECLINE_COUNT_1H
64
+ CARD_DECLINE_COUNT_24_H: :CARD_DECLINE_COUNT_24H
38
65
  CARD_STATE: :CARD_STATE
39
66
  PIN_ENTERED: :PIN_ENTERED
40
67
  PIN_STATUS: :PIN_STATUS
41
68
  WALLET_TYPE: :WALLET_TYPE
69
+ TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR
42
70
  ADDRESS_MATCH: :ADDRESS_MATCH
71
+ SERVICE_LOCATION_STATE: :SERVICE_LOCATION_STATE
72
+ SERVICE_LOCATION_POSTAL_CODE: :SERVICE_LOCATION_POSTAL_CODE
73
+ CARD_AGE: :CARD_AGE
74
+ IS_DOMESTIC: :IS_DOMESTIC
75
+ ACCOUNT_AGE: :ACCOUNT_AGE
76
+ AMOUNT_Z_SCORE: :AMOUNT_Z_SCORE
77
+ AVG_TRANSACTION_AMOUNT: :AVG_TRANSACTION_AMOUNT
78
+ STDEV_TRANSACTION_AMOUNT: :STDEV_TRANSACTION_AMOUNT
79
+ IS_NEW_COUNTRY: :IS_NEW_COUNTRY
80
+ IS_NEW_MCC: :IS_NEW_MCC
81
+ IS_FIRST_TRANSACTION: :IS_FIRST_TRANSACTION
82
+ CONSECUTIVE_DECLINES: :CONSECUTIVE_DECLINES
83
+ TIME_SINCE_LAST_TRANSACTION: :TIME_SINCE_LAST_TRANSACTION
84
+ DISTINCT_COUNTRY_COUNT: :DISTINCT_COUNTRY_COUNT
85
+ IS_NEW_MERCHANT: :IS_NEW_MERCHANT
86
+ THREE_DS_SUCCESS_RATE: :THREE_DS_SUCCESS_RATE
87
+ TRAVEL_SPEED: :TRAVEL_SPEED
88
+ DISTANCE_FROM_LAST_TRANSACTION: :DISTANCE_FROM_LAST_TRANSACTION
43
89
 
44
90
  def self?.values: -> ::Array[Lithic::Models::AuthRules::conditional_attribute]
45
91
  end
@@ -4,22 +4,22 @@ module Lithic
4
4
  type conditional_authorization_action_parameters =
5
5
  {
6
6
  action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action,
7
- conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition]
7
+ conditions: ::Array[Lithic::AuthRules::AuthRuleCondition]
8
8
  }
9
9
 
10
10
  class ConditionalAuthorizationActionParameters < Lithic::Internal::Type::BaseModel
11
11
  attr_accessor action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action
12
12
 
13
- attr_accessor conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition]
13
+ attr_accessor conditions: ::Array[Lithic::AuthRules::AuthRuleCondition]
14
14
 
15
15
  def initialize: (
16
16
  action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action,
17
- conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition]
17
+ conditions: ::Array[Lithic::AuthRules::AuthRuleCondition]
18
18
  ) -> void
19
19
 
20
20
  def to_hash: -> {
21
21
  action: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action,
22
- conditions: ::Array[Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition]
22
+ conditions: ::Array[Lithic::AuthRules::AuthRuleCondition]
23
23
  }
24
24
 
25
25
  type action = :DECLINE | :CHALLENGE
@@ -32,206 +32,6 @@ module Lithic
32
32
 
33
33
  def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action]
34
34
  end
35
-
36
- type condition =
37
- {
38
- attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
39
- operation: Lithic::Models::AuthRules::conditional_operation,
40
- value: Lithic::Models::AuthRules::conditional_value,
41
- parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
42
- }
43
-
44
- class Condition < Lithic::Internal::Type::BaseModel
45
- attr_accessor attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute
46
-
47
- attr_accessor operation: Lithic::Models::AuthRules::conditional_operation
48
-
49
- attr_accessor value: Lithic::Models::AuthRules::conditional_value
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
-
57
- def initialize: (
58
- attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
59
- operation: Lithic::Models::AuthRules::conditional_operation,
60
- value: Lithic::Models::AuthRules::conditional_value,
61
- ?parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
62
- ) -> void
63
-
64
- def to_hash: -> {
65
- attribute: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute,
66
- operation: Lithic::Models::AuthRules::conditional_operation,
67
- value: Lithic::Models::AuthRules::conditional_value,
68
- parameters: Lithic::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters
69
- }
70
-
71
- type attribute =
72
- :MCC
73
- | :COUNTRY
74
- | :CURRENCY
75
- | :MERCHANT_ID
76
- | :DESCRIPTOR
77
- | :LIABILITY_SHIFT
78
- | :PAN_ENTRY_MODE
79
- | :TRANSACTION_AMOUNT
80
- | :CASH_AMOUNT
81
- | :RISK_SCORE
82
- | :CARD_TRANSACTION_COUNT_15M
83
- | :CARD_TRANSACTION_COUNT_1H
84
- | :CARD_TRANSACTION_COUNT_24H
85
- | :CARD_DECLINE_COUNT_15M
86
- | :CARD_DECLINE_COUNT_1H
87
- | :CARD_DECLINE_COUNT_24H
88
- | :CARD_STATE
89
- | :PIN_ENTERED
90
- | :PIN_STATUS
91
- | :WALLET_TYPE
92
- | :TRANSACTION_INITIATOR
93
- | :ADDRESS_MATCH
94
- | :SERVICE_LOCATION_STATE
95
- | :SERVICE_LOCATION_POSTAL_CODE
96
- | :CARD_AGE
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
109
- | :TRAVEL_SPEED
110
- | :DISTANCE_FROM_LAST_TRANSACTION
111
-
112
- module Attribute
113
- extend Lithic::Internal::Type::Enum
114
-
115
- MCC: :MCC
116
- COUNTRY: :COUNTRY
117
- CURRENCY: :CURRENCY
118
- MERCHANT_ID: :MERCHANT_ID
119
- DESCRIPTOR: :DESCRIPTOR
120
- LIABILITY_SHIFT: :LIABILITY_SHIFT
121
- PAN_ENTRY_MODE: :PAN_ENTRY_MODE
122
- TRANSACTION_AMOUNT: :TRANSACTION_AMOUNT
123
- CASH_AMOUNT: :CASH_AMOUNT
124
- RISK_SCORE: :RISK_SCORE
125
- CARD_TRANSACTION_COUNT_15_M: :CARD_TRANSACTION_COUNT_15M
126
- CARD_TRANSACTION_COUNT_1_H: :CARD_TRANSACTION_COUNT_1H
127
- CARD_TRANSACTION_COUNT_24_H: :CARD_TRANSACTION_COUNT_24H
128
- CARD_DECLINE_COUNT_15_M: :CARD_DECLINE_COUNT_15M
129
- CARD_DECLINE_COUNT_1_H: :CARD_DECLINE_COUNT_1H
130
- CARD_DECLINE_COUNT_24_H: :CARD_DECLINE_COUNT_24H
131
- CARD_STATE: :CARD_STATE
132
- PIN_ENTERED: :PIN_ENTERED
133
- PIN_STATUS: :PIN_STATUS
134
- WALLET_TYPE: :WALLET_TYPE
135
- TRANSACTION_INITIATOR: :TRANSACTION_INITIATOR
136
- ADDRESS_MATCH: :ADDRESS_MATCH
137
- SERVICE_LOCATION_STATE: :SERVICE_LOCATION_STATE
138
- SERVICE_LOCATION_POSTAL_CODE: :SERVICE_LOCATION_POSTAL_CODE
139
- CARD_AGE: :CARD_AGE
140
- ACCOUNT_AGE: :ACCOUNT_AGE
141
- AMOUNT_Z_SCORE: :AMOUNT_Z_SCORE
142
- AVG_TRANSACTION_AMOUNT: :AVG_TRANSACTION_AMOUNT
143
- STDEV_TRANSACTION_AMOUNT: :STDEV_TRANSACTION_AMOUNT
144
- IS_NEW_COUNTRY: :IS_NEW_COUNTRY
145
- IS_NEW_MCC: :IS_NEW_MCC
146
- IS_FIRST_TRANSACTION: :IS_FIRST_TRANSACTION
147
- CONSECUTIVE_DECLINES: :CONSECUTIVE_DECLINES
148
- TIME_SINCE_LAST_TRANSACTION: :TIME_SINCE_LAST_TRANSACTION
149
- DISTINCT_COUNTRY_COUNT: :DISTINCT_COUNTRY_COUNT
150
- IS_NEW_MERCHANT: :IS_NEW_MERCHANT
151
- THREE_DS_SUCCESS_RATE: :THREE_DS_SUCCESS_RATE
152
- TRAVEL_SPEED: :TRAVEL_SPEED
153
- DISTANCE_FROM_LAST_TRANSACTION: :DISTANCE_FROM_LAST_TRANSACTION
154
-
155
- def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::attribute]
156
- end
157
-
158
- type parameters =
159
- {
160
- interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
161
- scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope,
162
- unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
163
- }
164
-
165
- class Parameters < Lithic::Internal::Type::BaseModel
166
- attr_reader interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval?
167
-
168
- def interval=: (
169
- Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval
170
- ) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval
171
-
172
- attr_reader scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope?
173
-
174
- def scope=: (
175
- Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
176
- ) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope
177
-
178
- attr_reader unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit?
179
-
180
- def unit=: (
181
- Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
182
- ) -> Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
183
-
184
- def initialize: (
185
- ?interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
186
- ?scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope,
187
- ?unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
188
- ) -> void
189
-
190
- def to_hash: -> {
191
- interval: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval,
192
- scope: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope,
193
- unit: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit
194
- }
195
-
196
- type interval = :LIFETIME | :"7D" | :"30D" | :"90D"
197
-
198
- module Interval
199
- extend Lithic::Internal::Type::Enum
200
-
201
- LIFETIME: :LIFETIME
202
- INTERVAL_7_D: :"7D"
203
- INTERVAL_30_D: :"30D"
204
- INTERVAL_90_D: :"90D"
205
-
206
- def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::interval]
207
- end
208
-
209
- type scope = :CARD | :ACCOUNT | :BUSINESS_ACCOUNT
210
-
211
- module Scope
212
- extend Lithic::Internal::Type::Enum
213
-
214
- CARD: :CARD
215
- ACCOUNT: :ACCOUNT
216
- BUSINESS_ACCOUNT: :BUSINESS_ACCOUNT
217
-
218
- def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::scope]
219
- end
220
-
221
- type unit = :MPH | :KPH | :MILES | :KILOMETERS
222
-
223
- module Unit
224
- extend Lithic::Internal::Type::Enum
225
-
226
- MPH: :MPH
227
- KPH: :KPH
228
- MILES: :MILES
229
- KILOMETERS: :KILOMETERS
230
-
231
- def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Condition::Parameters::unit]
232
- end
233
- end
234
- end
235
35
  end
236
36
  end
237
37
  end
@@ -132,6 +132,7 @@ module Lithic
132
132
  | :SERVICE_LOCATION_STATE
133
133
  | :SERVICE_LOCATION_POSTAL_CODE
134
134
  | :CARD_AGE
135
+ | :IS_DOMESTIC
135
136
  | :ACCOUNT_AGE
136
137
  | :AMOUNT_Z_SCORE
137
138
  | :AVG_TRANSACTION_AMOUNT
@@ -175,6 +176,7 @@ module Lithic
175
176
  SERVICE_LOCATION_STATE: :SERVICE_LOCATION_STATE
176
177
  SERVICE_LOCATION_POSTAL_CODE: :SERVICE_LOCATION_POSTAL_CODE
177
178
  CARD_AGE: :CARD_AGE
179
+ IS_DOMESTIC: :IS_DOMESTIC
178
180
  ACCOUNT_AGE: :ACCOUNT_AGE
179
181
  AMOUNT_Z_SCORE: :AMOUNT_Z_SCORE
180
182
  AVG_TRANSACTION_AMOUNT: :AVG_TRANSACTION_AMOUNT
@@ -3,18 +3,25 @@ module Lithic
3
3
  module AuthRules
4
4
  type merchant_lock_parameters =
5
5
  {
6
- merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
6
+ merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant],
7
+ locked_at: Time
7
8
  }
8
9
 
9
10
  class MerchantLockParameters < Lithic::Internal::Type::BaseModel
10
11
  attr_accessor merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
11
12
 
13
+ attr_reader locked_at: Time?
14
+
15
+ def locked_at=: (Time) -> Time
16
+
12
17
  def initialize: (
13
- merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
18
+ merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant],
19
+ ?locked_at: Time
14
20
  ) -> void
15
21
 
16
22
  def to_hash: -> {
17
- merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant]
23
+ merchants: ::Array[Lithic::AuthRules::MerchantLockParameters::Merchant],
24
+ locked_at: Time
18
25
  }
19
26
 
20
27
  type merchant =