lithic 0.7.0 → 0.8.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 (153) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -0
  3. data/README.md +3 -3
  4. data/lib/lithic/client.rb +11 -0
  5. data/lib/lithic/models/account_activity_list_params.rb +2 -0
  6. data/lib/lithic/models/account_activity_list_response.rb +8 -2
  7. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +8 -2
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +84 -8
  9. data/lib/lithic/models/auth_rules/auth_rule_version.rb +92 -0
  10. data/lib/lithic/models/auth_rules/rule_feature.rb +231 -0
  11. data/lib/lithic/models/auth_rules/typescript_code_parameters.rb +33 -0
  12. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +9 -17
  13. data/lib/lithic/models/auth_rules/v2_create_params.rb +50 -10
  14. data/lib/lithic/models/auth_rules/v2_draft_params.rb +6 -3
  15. data/lib/lithic/models/auth_rules/v2_list_versions_params.rb +22 -0
  16. data/lib/lithic/models/auth_rules/v2_list_versions_response.rb +18 -0
  17. data/lib/lithic/models/auth_rules/v2_retrieve_features_response.rb +3 -83
  18. data/lib/lithic/models/auth_rules/v2_retrieve_report_response.rb +525 -1
  19. data/lib/lithic/models/auth_rules/v2_update_params.rb +17 -1
  20. data/lib/lithic/models/auth_rules/velocity_limit_filters.rb +87 -0
  21. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -84
  22. data/lib/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rb +69 -59
  23. data/lib/lithic/models/dispute_create_params.rb +11 -11
  24. data/lib/lithic/models/dispute_list_params.rb +3 -3
  25. data/lib/lithic/models/dispute_update_params.rb +9 -9
  26. data/lib/lithic/models/event.rb +0 -7
  27. data/lib/lithic/models/event_list_params.rb +0 -4
  28. data/lib/lithic/models/event_subscription.rb +0 -4
  29. data/lib/lithic/models/events/subscription_create_params.rb +0 -4
  30. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
  31. data/lib/lithic/models/events/subscription_update_params.rb +0 -4
  32. data/lib/lithic/models/financial_account.rb +1 -0
  33. data/lib/lithic/models/financial_account_list_params.rb +1 -0
  34. data/lib/lithic/models/financial_accounts/interest_tier_schedule.rb +9 -1
  35. data/lib/lithic/models/financial_accounts/interest_tier_schedule_update_params.rb +9 -1
  36. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +27 -2
  37. data/lib/lithic/models/hold.rb +147 -0
  38. data/lib/lithic/models/hold_create_params.rb +61 -0
  39. data/lib/lithic/models/hold_event.rb +110 -0
  40. data/lib/lithic/models/hold_list_params.rb +89 -0
  41. data/lib/lithic/models/hold_retrieve_params.rb +20 -0
  42. data/lib/lithic/models/hold_void_params.rb +29 -0
  43. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  44. data/lib/lithic/models/parsed_webhook_event.rb +2 -4
  45. data/lib/lithic/models/payment.rb +76 -12
  46. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  47. data/lib/lithic/models.rb +12 -2
  48. data/lib/lithic/resources/account_activity.rb +2 -2
  49. data/lib/lithic/resources/auth_rules/v2.rb +24 -4
  50. data/lib/lithic/resources/disputes.rb +21 -21
  51. data/lib/lithic/resources/financial_accounts/interest_tier_schedule.rb +6 -2
  52. data/lib/lithic/resources/holds.rb +132 -0
  53. data/lib/lithic/resources/webhooks.rb +2 -3
  54. data/lib/lithic/version.rb +1 -1
  55. data/lib/lithic.rb +14 -1
  56. data/rbi/lithic/client.rbi +9 -0
  57. data/rbi/lithic/models/account_activity_list_params.rbi +10 -0
  58. data/rbi/lithic/models/account_activity_list_response.rbi +14 -2
  59. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +14 -2
  60. data/rbi/lithic/models/auth_rules/auth_rule.rbi +128 -4
  61. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +142 -0
  62. data/rbi/lithic/models/auth_rules/rule_feature.rbi +414 -0
  63. data/rbi/lithic/models/auth_rules/typescript_code_parameters.rbi +94 -0
  64. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +12 -35
  65. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +81 -12
  66. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +8 -4
  67. data/rbi/lithic/models/auth_rules/v2_list_versions_params.rbi +40 -0
  68. data/rbi/lithic/models/auth_rules/v2_list_versions_response.rbi +36 -0
  69. data/rbi/lithic/models/auth_rules/v2_retrieve_features_response.rbi +4 -209
  70. data/rbi/lithic/models/auth_rules/v2_retrieve_report_response.rbi +1692 -3
  71. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +24 -0
  72. data/rbi/lithic/models/auth_rules/velocity_limit_filters.rbi +205 -0
  73. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +4 -206
  74. data/rbi/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbi +154 -142
  75. data/rbi/lithic/models/dispute_create_params.rbi +11 -11
  76. data/rbi/lithic/models/dispute_list_params.rbi +3 -3
  77. data/rbi/lithic/models/dispute_update_params.rbi +9 -9
  78. data/rbi/lithic/models/event.rbi +0 -14
  79. data/rbi/lithic/models/event_list_params.rbi +0 -8
  80. data/rbi/lithic/models/event_subscription.rbi +0 -8
  81. data/rbi/lithic/models/events/subscription_create_params.rbi +0 -8
  82. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
  83. data/rbi/lithic/models/events/subscription_update_params.rbi +0 -8
  84. data/rbi/lithic/models/financial_account.rbi +5 -0
  85. data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
  86. data/rbi/lithic/models/financial_accounts/interest_tier_schedule.rbi +11 -0
  87. data/rbi/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbi +11 -0
  88. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +38 -3
  89. data/rbi/lithic/models/hold.rbi +183 -0
  90. data/rbi/lithic/models/hold_create_params.rbi +90 -0
  91. data/rbi/lithic/models/hold_event.rbi +148 -0
  92. data/rbi/lithic/models/hold_list_params.rbi +137 -0
  93. data/rbi/lithic/models/hold_retrieve_params.rbi +35 -0
  94. data/rbi/lithic/models/hold_void_params.rbi +49 -0
  95. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  96. data/rbi/lithic/models/parsed_webhook_event.rbi +0 -1
  97. data/rbi/lithic/models/payment.rbi +139 -13
  98. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  99. data/rbi/lithic/models.rbi +12 -3
  100. data/rbi/lithic/resources/auth_rules/v2.rbi +16 -4
  101. data/rbi/lithic/resources/disputes.rbi +21 -21
  102. data/rbi/lithic/resources/financial_accounts/interest_tier_schedule.rbi +6 -0
  103. data/rbi/lithic/resources/holds.rbi +111 -0
  104. data/rbi/lithic/resources/webhooks.rbi +8 -2
  105. data/sig/lithic/client.rbs +5 -0
  106. data/sig/lithic/models/account_activity_list_params.rbs +4 -0
  107. data/sig/lithic/models/account_activity_list_response.rbs +5 -0
  108. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +5 -0
  109. data/sig/lithic/models/auth_rules/auth_rule.rbs +42 -0
  110. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +67 -0
  111. data/sig/lithic/models/auth_rules/rule_feature.rbs +173 -0
  112. data/sig/lithic/models/auth_rules/typescript_code_parameters.rbs +27 -0
  113. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +5 -18
  114. data/sig/lithic/models/auth_rules/v2_create_params.rbs +25 -0
  115. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +1 -0
  116. data/sig/lithic/models/auth_rules/v2_list_versions_params.rbs +25 -0
  117. data/sig/lithic/models/auth_rules/v2_list_versions_response.rbs +18 -0
  118. data/sig/lithic/models/auth_rules/v2_retrieve_features_response.rbs +4 -80
  119. data/sig/lithic/models/auth_rules/v2_retrieve_report_response.rbs +658 -3
  120. data/sig/lithic/models/auth_rules/v2_update_params.rbs +16 -0
  121. data/sig/lithic/models/auth_rules/velocity_limit_filters.rbs +81 -0
  122. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +6 -82
  123. data/sig/lithic/models/digital_wallet_tokenization_approval_request_webhook_event.rbs +38 -38
  124. data/sig/lithic/models/event.rbs +0 -2
  125. data/sig/lithic/models/event_list_params.rbs +0 -2
  126. data/sig/lithic/models/event_subscription.rbs +0 -2
  127. data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
  128. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
  129. data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
  130. data/sig/lithic/models/financial_account.rbs +2 -0
  131. data/sig/lithic/models/financial_account_list_params.rbs +7 -1
  132. data/sig/lithic/models/financial_accounts/interest_tier_schedule.rbs +7 -0
  133. data/sig/lithic/models/financial_accounts/interest_tier_schedule_update_params.rbs +7 -0
  134. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +17 -3
  135. data/sig/lithic/models/hold.rbs +137 -0
  136. data/sig/lithic/models/hold_create_params.rbs +57 -0
  137. data/sig/lithic/models/hold_event.rbs +91 -0
  138. data/sig/lithic/models/hold_list_params.rbs +83 -0
  139. data/sig/lithic/models/hold_retrieve_params.rbs +23 -0
  140. data/sig/lithic/models/hold_void_params.rbs +28 -0
  141. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  142. data/sig/lithic/models/parsed_webhook_event.rbs +0 -1
  143. data/sig/lithic/models/payment.rbs +23 -8
  144. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  145. data/sig/lithic/models.rbs +12 -2
  146. data/sig/lithic/resources/auth_rules/v2.rbs +5 -0
  147. data/sig/lithic/resources/financial_accounts/interest_tier_schedule.rbs +2 -0
  148. data/sig/lithic/resources/holds.rbs +39 -0
  149. data/sig/lithic/resources/webhooks.rbs +0 -1
  150. metadata +41 -5
  151. data/lib/lithic/models/tokenization_decisioning_request_webhook_event.rb +0 -159
  152. data/rbi/lithic/models/tokenization_decisioning_request_webhook_event.rbi +0 -331
  153. data/sig/lithic/models/tokenization_decisioning_request_webhook_event.rbs +0 -130
@@ -143,6 +143,18 @@ module Lithic
143
143
  end
144
144
 
145
145
  class ProgramLevelRule < Lithic::Internal::Type::BaseModel
146
+ # @!attribute excluded_account_tokens
147
+ # Account tokens to which the Auth Rule does not apply.
148
+ #
149
+ # @return [Array<String>, nil]
150
+ optional :excluded_account_tokens, Lithic::Internal::Type::ArrayOf[String]
151
+
152
+ # @!attribute excluded_business_account_tokens
153
+ # Business account tokens to which the Auth Rule does not apply.
154
+ #
155
+ # @return [Array<String>, nil]
156
+ optional :excluded_business_account_tokens, Lithic::Internal::Type::ArrayOf[String]
157
+
146
158
  # @!attribute excluded_card_tokens
147
159
  # Card tokens to which the Auth Rule does not apply.
148
160
  #
@@ -171,11 +183,15 @@ module Lithic
171
183
  # @return [Symbol, Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State, nil]
172
184
  optional :state, enum: -> { Lithic::AuthRules::V2UpdateParams::Body::ProgramLevelRule::State }
173
185
 
174
- # @!method initialize(excluded_card_tokens: nil, name: nil, program_level: nil, state: nil)
186
+ # @!method initialize(excluded_account_tokens: nil, excluded_business_account_tokens: nil, excluded_card_tokens: nil, name: nil, program_level: nil, state: nil)
175
187
  # Some parameter documentations has been truncated, see
176
188
  # {Lithic::Models::AuthRules::V2UpdateParams::Body::ProgramLevelRule} for more
177
189
  # details.
178
190
  #
191
+ # @param excluded_account_tokens [Array<String>] Account tokens to which the Auth Rule does not apply.
192
+ #
193
+ # @param excluded_business_account_tokens [Array<String>] Business account tokens to which the Auth Rule does not apply.
194
+ #
179
195
  # @param excluded_card_tokens [Array<String>] Card tokens to which the Auth Rule does not apply.
180
196
  #
181
197
  # @param name [String, nil] Auth Rule Name
@@ -0,0 +1,87 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ module AuthRules
6
+ class VelocityLimitFilters < Lithic::Internal::Type::BaseModel
7
+ # @!attribute exclude_countries
8
+ # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
9
+ # Transactions matching any of the provided will be excluded from the calculated
10
+ # velocity.
11
+ #
12
+ # @return [Array<String>, nil]
13
+ optional :exclude_countries, Lithic::Internal::Type::ArrayOf[String], nil?: true
14
+
15
+ # @!attribute exclude_mccs
16
+ # Merchant Category Codes to exclude from the velocity calculation. Transactions
17
+ # matching this MCC will be excluded from the calculated velocity.
18
+ #
19
+ # @return [Array<String>, nil]
20
+ optional :exclude_mccs, Lithic::Internal::Type::ArrayOf[String], nil?: true
21
+
22
+ # @!attribute include_countries
23
+ # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
24
+ # Transactions not matching any of the provided will not be included in the
25
+ # calculated velocity.
26
+ #
27
+ # @return [Array<String>, nil]
28
+ optional :include_countries, Lithic::Internal::Type::ArrayOf[String], nil?: true
29
+
30
+ # @!attribute include_mccs
31
+ # Merchant Category Codes to include in the velocity calculation. Transactions not
32
+ # matching this MCC will not be included in the calculated velocity.
33
+ #
34
+ # @return [Array<String>, nil]
35
+ optional :include_mccs, Lithic::Internal::Type::ArrayOf[String], nil?: true
36
+
37
+ # @!attribute include_pan_entry_modes
38
+ # PAN entry modes to include in the velocity calculation. Transactions not
39
+ # matching any of the provided will not be included in the calculated velocity.
40
+ #
41
+ # @return [Array<Symbol, Lithic::Models::AuthRules::VelocityLimitFilters::IncludePanEntryMode>, nil]
42
+ optional :include_pan_entry_modes,
43
+ -> {
44
+ Lithic::Internal::Type::ArrayOf[enum: Lithic::AuthRules::VelocityLimitFilters::IncludePanEntryMode]
45
+ },
46
+ nil?: true
47
+
48
+ # @!method initialize(exclude_countries: nil, exclude_mccs: nil, include_countries: nil, include_mccs: nil, include_pan_entry_modes: nil)
49
+ # Some parameter documentations has been truncated, see
50
+ # {Lithic::Models::AuthRules::VelocityLimitFilters} for more details.
51
+ #
52
+ # @param exclude_countries [Array<String>, nil] ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation. Trans
53
+ #
54
+ # @param exclude_mccs [Array<String>, nil] Merchant Category Codes to exclude from the velocity calculation. Transactions m
55
+ #
56
+ # @param include_countries [Array<String>, nil] ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation. Transac
57
+ #
58
+ # @param include_mccs [Array<String>, nil] Merchant Category Codes to include in the velocity calculation. Transactions not
59
+ #
60
+ # @param include_pan_entry_modes [Array<Symbol, Lithic::Models::AuthRules::VelocityLimitFilters::IncludePanEntryMode>, nil] PAN entry modes to include in the velocity calculation. Transactions not matchin
61
+
62
+ module IncludePanEntryMode
63
+ extend Lithic::Internal::Type::Enum
64
+
65
+ AUTO_ENTRY = :AUTO_ENTRY
66
+ BAR_CODE = :BAR_CODE
67
+ CONTACTLESS = :CONTACTLESS
68
+ CREDENTIAL_ON_FILE = :CREDENTIAL_ON_FILE
69
+ ECOMMERCE = :ECOMMERCE
70
+ ERROR_KEYED = :ERROR_KEYED
71
+ ERROR_MAGNETIC_STRIPE = :ERROR_MAGNETIC_STRIPE
72
+ ICC = :ICC
73
+ KEY_ENTERED = :KEY_ENTERED
74
+ MAGNETIC_STRIPE = :MAGNETIC_STRIPE
75
+ MANUAL = :MANUAL
76
+ OCR = :OCR
77
+ SECURE_CARDLESS = :SECURE_CARDLESS
78
+ UNSPECIFIED = :UNSPECIFIED
79
+ UNKNOWN = :UNKNOWN
80
+
81
+ # @!method self.values
82
+ # @return [Array<Symbol>]
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
@@ -18,8 +18,8 @@ module Lithic
18
18
 
19
19
  # @!attribute filters
20
20
  #
21
- # @return [Lithic::Models::AuthRules::VelocityLimitParams::Filters, nil]
22
- optional :filters, -> { Lithic::AuthRules::VelocityLimitParams::Filters }
21
+ # @return [Lithic::Models::AuthRules::VelocityLimitFilters, nil]
22
+ optional :filters, -> { Lithic::AuthRules::VelocityLimitFilters }
23
23
 
24
24
  # @!attribute limit_amount
25
25
  # The maximum amount of spend velocity allowed in the period in minor units (the
@@ -47,7 +47,7 @@ module Lithic
47
47
  #
48
48
  # @param scope [Symbol, Lithic::Models::AuthRules::VelocityLimitParams::Scope] The scope the velocity is calculated for
49
49
  #
50
- # @param filters [Lithic::Models::AuthRules::VelocityLimitParams::Filters]
50
+ # @param filters [Lithic::Models::AuthRules::VelocityLimitFilters]
51
51
  #
52
52
  # @param limit_amount [Integer, nil] The maximum amount of spend velocity allowed in the period in minor units (the s
53
53
  #
@@ -65,87 +65,6 @@ module Lithic
65
65
  # @!method self.values
66
66
  # @return [Array<Symbol>]
67
67
  end
68
-
69
- # @see Lithic::Models::AuthRules::VelocityLimitParams#filters
70
- class Filters < Lithic::Internal::Type::BaseModel
71
- # @!attribute exclude_countries
72
- # ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
73
- # Transactions matching any of the provided will be excluded from the calculated
74
- # velocity.
75
- #
76
- # @return [Array<String>, nil]
77
- optional :exclude_countries, Lithic::Internal::Type::ArrayOf[String], nil?: true
78
-
79
- # @!attribute exclude_mccs
80
- # Merchant Category Codes to exclude from the velocity calculation. Transactions
81
- # matching this MCC will be excluded from the calculated velocity.
82
- #
83
- # @return [Array<String>, nil]
84
- optional :exclude_mccs, Lithic::Internal::Type::ArrayOf[String], nil?: true
85
-
86
- # @!attribute include_countries
87
- # ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation.
88
- # Transactions not matching any of the provided will not be included in the
89
- # calculated velocity.
90
- #
91
- # @return [Array<String>, nil]
92
- optional :include_countries, Lithic::Internal::Type::ArrayOf[String], nil?: true
93
-
94
- # @!attribute include_mccs
95
- # Merchant Category Codes to include in the velocity calculation. Transactions not
96
- # matching this MCC will not be included in the calculated velocity.
97
- #
98
- # @return [Array<String>, nil]
99
- optional :include_mccs, Lithic::Internal::Type::ArrayOf[String], nil?: true
100
-
101
- # @!attribute include_pan_entry_modes
102
- # PAN entry modes to include in the velocity calculation. Transactions not
103
- # matching any of the provided will not be included in the calculated velocity.
104
- #
105
- # @return [Array<Symbol, Lithic::Models::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode>, nil]
106
- optional :include_pan_entry_modes,
107
- -> {
108
- Lithic::Internal::Type::ArrayOf[enum: Lithic::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode]
109
- },
110
- nil?: true
111
-
112
- # @!method initialize(exclude_countries: nil, exclude_mccs: nil, include_countries: nil, include_mccs: nil, include_pan_entry_modes: nil)
113
- # Some parameter documentations has been truncated, see
114
- # {Lithic::Models::AuthRules::VelocityLimitParams::Filters} for more details.
115
- #
116
- # @param exclude_countries [Array<String>, nil] ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation. Trans
117
- #
118
- # @param exclude_mccs [Array<String>, nil] Merchant Category Codes to exclude from the velocity calculation. Transactions m
119
- #
120
- # @param include_countries [Array<String>, nil] ISO-3166-1 alpha-3 Country Codes to include in the velocity calculation. Transac
121
- #
122
- # @param include_mccs [Array<String>, nil] Merchant Category Codes to include in the velocity calculation. Transactions not
123
- #
124
- # @param include_pan_entry_modes [Array<Symbol, Lithic::Models::AuthRules::VelocityLimitParams::Filters::IncludePanEntryMode>, nil] PAN entry modes to include in the velocity calculation. Transactions not matchin
125
-
126
- module IncludePanEntryMode
127
- extend Lithic::Internal::Type::Enum
128
-
129
- AUTO_ENTRY = :AUTO_ENTRY
130
- BAR_CODE = :BAR_CODE
131
- CONTACTLESS = :CONTACTLESS
132
- CREDENTIAL_ON_FILE = :CREDENTIAL_ON_FILE
133
- ECOMMERCE = :ECOMMERCE
134
- ERROR_KEYED = :ERROR_KEYED
135
- ERROR_MAGNETIC_STRIPE = :ERROR_MAGNETIC_STRIPE
136
- ICC = :ICC
137
- KEY_ENTERED = :KEY_ENTERED
138
- MAGNETIC_STRIPE = :MAGNETIC_STRIPE
139
- MANUAL = :MANUAL
140
- OCR = :OCR
141
- SECURE_CARDLESS = :SECURE_CARDLESS
142
- UNSPECIFIED = :UNSPECIFIED
143
- UNKNOWN = :UNKNOWN
144
-
145
- # @!method self.values
146
- # @return [Array<Symbol>]
147
- end
148
- end
149
68
  end
150
69
  end
151
70
  end
@@ -21,16 +21,6 @@ module Lithic
21
21
  # @return [Time]
22
22
  required :created, Time
23
23
 
24
- # @!attribute customer_tokenization_decision
25
- # Contains the metadata for the customer tokenization decision.
26
- #
27
- # @return [Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision, nil]
28
- required :customer_tokenization_decision,
29
- -> {
30
- Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision
31
- },
32
- nil?: true
33
-
34
24
  # @!attribute digital_wallet_token_metadata
35
25
  # Contains the metadata for the digital wallet being tokenized.
36
26
  #
@@ -69,19 +59,31 @@ module Lithic
69
59
  # @return [Lithic::Models::WalletDecisioningInfo]
70
60
  required :wallet_decisioning_info, -> { Lithic::WalletDecisioningInfo }
71
61
 
62
+ # @!attribute customer_tokenization_decision
63
+ # Contains the metadata for the customer tokenization decision.
64
+ #
65
+ # @return [Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision, nil]
66
+ optional :customer_tokenization_decision,
67
+ -> {
68
+ Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision
69
+ },
70
+ nil?: true
71
+
72
72
  # @!attribute device
73
73
  #
74
74
  # @return [Lithic::Models::Device, nil]
75
75
  optional :device, -> { Lithic::Device }
76
76
 
77
77
  # @!attribute rule_results
78
- # Results from rules that were evaluated for this tokenization
78
+ # Results from rules that were evaluated for this tokenization. Only populated in
79
+ # webhook events, not in the initial decisioning request
79
80
  #
80
81
  # @return [Array<Lithic::Models::TokenizationRuleResult>, nil]
81
82
  optional :rule_results, -> { Lithic::Internal::Type::ArrayOf[Lithic::TokenizationRuleResult] }
82
83
 
83
84
  # @!attribute tokenization_decline_reasons
84
- # List of reasons why the tokenization was declined
85
+ # List of reasons why the tokenization was declined. Only populated in webhook
86
+ # events, not in the initial decisioning request
85
87
  #
86
88
  # @return [Array<Symbol, Lithic::Models::TokenizationDeclineReason>, nil]
87
89
  optional :tokenization_decline_reasons,
@@ -95,25 +97,31 @@ module Lithic
95
97
  enum: -> { Lithic::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationSource }
96
98
 
97
99
  # @!attribute tokenization_tfa_reasons
98
- # List of reasons why two-factor authentication was required
100
+ # List of reasons why two-factor authentication was required. Only populated in
101
+ # webhook events, not in the initial decisioning request
99
102
  #
100
103
  # @return [Array<Symbol, Lithic::Models::TokenizationTfaReason>, nil]
101
104
  optional :tokenization_tfa_reasons,
102
105
  -> { Lithic::Internal::Type::ArrayOf[enum: Lithic::TokenizationTfaReason] }
103
106
 
104
- # @!method initialize(account_token:, card_token:, created:, customer_tokenization_decision:, digital_wallet_token_metadata:, event_type:, issuer_decision:, tokenization_channel:, tokenization_token:, wallet_decisioning_info:, device: nil, rule_results: nil, tokenization_decline_reasons: nil, tokenization_source: nil, tokenization_tfa_reasons: nil)
107
+ # @!method initialize(account_token:, card_token:, created:, digital_wallet_token_metadata:, event_type:, issuer_decision:, tokenization_channel:, tokenization_token:, wallet_decisioning_info:, customer_tokenization_decision: nil, device: nil, rule_results: nil, tokenization_decline_reasons: nil, tokenization_source: nil, tokenization_tfa_reasons: nil)
105
108
  # Some parameter documentations has been truncated, see
106
109
  # {Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent} for more
107
110
  # details.
108
111
  #
112
+ # Payload for digital wallet tokenization approval requests. Used for both the
113
+ # decisioning responder request (sent to the customer's endpoint for a real-time
114
+ # decision) and the subsequent webhook event (sent after the decision is made).
115
+ # Fields like customer_tokenization_decision, tokenization_decline_reasons,
116
+ # tokenization_tfa_reasons, and rule_results are only populated in the webhook
117
+ # event, not in the initial decisioning request.
118
+ #
109
119
  # @param account_token [String] Unique identifier for the user tokenizing a card
110
120
  #
111
121
  # @param card_token [String] Unique identifier for the card being tokenized
112
122
  #
113
123
  # @param created [Time] Indicate when the request was received from Mastercard or Visa
114
124
  #
115
- # @param customer_tokenization_decision [Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision, nil] Contains the metadata for the customer tokenization decision.
116
- #
117
125
  # @param digital_wallet_token_metadata [Lithic::Models::TokenMetadata] Contains the metadata for the digital wallet being tokenized.
118
126
  #
119
127
  # @param event_type [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::EventType] The name of this event
@@ -126,15 +134,57 @@ module Lithic
126
134
  #
127
135
  # @param wallet_decisioning_info [Lithic::Models::WalletDecisioningInfo]
128
136
  #
137
+ # @param customer_tokenization_decision [Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::CustomerTokenizationDecision, nil] Contains the metadata for the customer tokenization decision.
138
+ #
129
139
  # @param device [Lithic::Models::Device]
130
140
  #
131
- # @param rule_results [Array<Lithic::Models::TokenizationRuleResult>] Results from rules that were evaluated for this tokenization
141
+ # @param rule_results [Array<Lithic::Models::TokenizationRuleResult>] Results from rules that were evaluated for this tokenization. Only populated in
132
142
  #
133
- # @param tokenization_decline_reasons [Array<Symbol, Lithic::Models::TokenizationDeclineReason>] List of reasons why the tokenization was declined
143
+ # @param tokenization_decline_reasons [Array<Symbol, Lithic::Models::TokenizationDeclineReason>] List of reasons why the tokenization was declined. Only populated in webhook eve
134
144
  #
135
145
  # @param tokenization_source [Symbol, Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent::TokenizationSource] The source of the tokenization.
136
146
  #
137
- # @param tokenization_tfa_reasons [Array<Symbol, Lithic::Models::TokenizationTfaReason>] List of reasons why two-factor authentication was required
147
+ # @param tokenization_tfa_reasons [Array<Symbol, Lithic::Models::TokenizationTfaReason>] List of reasons why two-factor authentication was required. Only populated in we
148
+
149
+ # The name of this event
150
+ #
151
+ # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#event_type
152
+ module EventType
153
+ extend Lithic::Internal::Type::Enum
154
+
155
+ DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request"
156
+
157
+ # @!method self.values
158
+ # @return [Array<Symbol>]
159
+ end
160
+
161
+ # Whether Lithic decisioned on the token, and if so, what the decision was.
162
+ # APPROVED/VERIFICATION_REQUIRED/DENIED.
163
+ #
164
+ # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#issuer_decision
165
+ module IssuerDecision
166
+ extend Lithic::Internal::Type::Enum
167
+
168
+ APPROVED = :APPROVED
169
+ DENIED = :DENIED
170
+ VERIFICATION_REQUIRED = :VERIFICATION_REQUIRED
171
+
172
+ # @!method self.values
173
+ # @return [Array<Symbol>]
174
+ end
175
+
176
+ # The channel through which the tokenization was made.
177
+ #
178
+ # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#tokenization_channel
179
+ module TokenizationChannel
180
+ extend Lithic::Internal::Type::Enum
181
+
182
+ DIGITAL_WALLET = :DIGITAL_WALLET
183
+ MERCHANT = :MERCHANT
184
+
185
+ # @!method self.values
186
+ # @return [Array<Symbol>]
187
+ end
138
188
 
139
189
  # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#customer_tokenization_decision
140
190
  class CustomerTokenizationDecision < Lithic::Internal::Type::BaseModel
@@ -192,46 +242,6 @@ module Lithic
192
242
  end
193
243
  end
194
244
 
195
- # The name of this event
196
- #
197
- # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#event_type
198
- module EventType
199
- extend Lithic::Internal::Type::Enum
200
-
201
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request"
202
-
203
- # @!method self.values
204
- # @return [Array<Symbol>]
205
- end
206
-
207
- # Whether Lithic decisioned on the token, and if so, what the decision was.
208
- # APPROVED/VERIFICATION_REQUIRED/DENIED.
209
- #
210
- # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#issuer_decision
211
- module IssuerDecision
212
- extend Lithic::Internal::Type::Enum
213
-
214
- APPROVED = :APPROVED
215
- DENIED = :DENIED
216
- VERIFICATION_REQUIRED = :VERIFICATION_REQUIRED
217
-
218
- # @!method self.values
219
- # @return [Array<Symbol>]
220
- end
221
-
222
- # The channel through which the tokenization was made.
223
- #
224
- # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#tokenization_channel
225
- module TokenizationChannel
226
- extend Lithic::Internal::Type::Enum
227
-
228
- DIGITAL_WALLET = :DIGITAL_WALLET
229
- MERCHANT = :MERCHANT
230
-
231
- # @!method self.values
232
- # @return [Array<Symbol>]
233
- end
234
-
235
245
  # The source of the tokenization.
236
246
  #
237
247
  # @see Lithic::Models::DigitalWalletTokenizationApprovalRequestWebhookEvent#tokenization_source
@@ -8,49 +8,49 @@ module Lithic
8
8
  include Lithic::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute amount
11
- # Amount to dispute
11
+ # Amount for chargeback
12
12
  #
13
13
  # @return [Integer]
14
14
  required :amount, Integer
15
15
 
16
16
  # @!attribute reason
17
- # Reason for dispute
17
+ # Reason for chargeback
18
18
  #
19
19
  # @return [Symbol, Lithic::Models::DisputeCreateParams::Reason]
20
20
  required :reason, enum: -> { Lithic::DisputeCreateParams::Reason }
21
21
 
22
22
  # @!attribute transaction_token
23
- # Transaction to dispute
23
+ # Transaction for chargeback
24
24
  #
25
25
  # @return [String]
26
26
  required :transaction_token, String
27
27
 
28
28
  # @!attribute customer_filed_date
29
- # Date the customer filed the dispute
29
+ # Date the customer filed the chargeback request
30
30
  #
31
31
  # @return [Time, nil]
32
32
  optional :customer_filed_date, Time
33
33
 
34
34
  # @!attribute customer_note
35
- # Customer description of dispute
35
+ # Customer description
36
36
  #
37
37
  # @return [String, nil]
38
38
  optional :customer_note, String
39
39
 
40
40
  # @!method initialize(amount:, reason:, transaction_token:, customer_filed_date: nil, customer_note: nil, request_options: {})
41
- # @param amount [Integer] Amount to dispute
41
+ # @param amount [Integer] Amount for chargeback
42
42
  #
43
- # @param reason [Symbol, Lithic::Models::DisputeCreateParams::Reason] Reason for dispute
43
+ # @param reason [Symbol, Lithic::Models::DisputeCreateParams::Reason] Reason for chargeback
44
44
  #
45
- # @param transaction_token [String] Transaction to dispute
45
+ # @param transaction_token [String] Transaction for chargeback
46
46
  #
47
- # @param customer_filed_date [Time] Date the customer filed the dispute
47
+ # @param customer_filed_date [Time] Date the customer filed the chargeback request
48
48
  #
49
- # @param customer_note [String] Customer description of dispute
49
+ # @param customer_note [String] Customer description
50
50
  #
51
51
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
52
52
 
53
- # Reason for dispute
53
+ # Reason for chargeback
54
54
  module Reason
55
55
  extend Lithic::Internal::Type::Enum
56
56
 
@@ -42,7 +42,7 @@ module Lithic
42
42
  optional :starting_after, String
43
43
 
44
44
  # @!attribute status
45
- # List disputes of a specific status.
45
+ # Filter by status.
46
46
  #
47
47
  # @return [Symbol, Lithic::Models::DisputeListParams::Status, nil]
48
48
  optional :status, enum: -> { Lithic::DisputeListParams::Status }
@@ -67,13 +67,13 @@ module Lithic
67
67
  #
68
68
  # @param starting_after [String] A cursor representing an item's token after which a page of results should begin
69
69
  #
70
- # @param status [Symbol, Lithic::Models::DisputeListParams::Status] List disputes of a specific status.
70
+ # @param status [Symbol, Lithic::Models::DisputeListParams::Status] Filter by status.
71
71
  #
72
72
  # @param transaction_tokens [Array<String>] Transaction tokens to filter by.
73
73
  #
74
74
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
75
75
 
76
- # List disputes of a specific status.
76
+ # Filter by status.
77
77
  module Status
78
78
  extend Lithic::Internal::Type::Enum
79
79
 
@@ -13,25 +13,25 @@ module Lithic
13
13
  required :dispute_token, String
14
14
 
15
15
  # @!attribute amount
16
- # Amount to dispute
16
+ # Amount for chargeback
17
17
  #
18
18
  # @return [Integer, nil]
19
19
  optional :amount, Integer
20
20
 
21
21
  # @!attribute customer_filed_date
22
- # Date the customer filed the dispute
22
+ # Date the customer filed the chargeback request
23
23
  #
24
24
  # @return [Time, nil]
25
25
  optional :customer_filed_date, Time
26
26
 
27
27
  # @!attribute customer_note
28
- # Customer description of dispute
28
+ # Customer description
29
29
  #
30
30
  # @return [String, nil]
31
31
  optional :customer_note, String
32
32
 
33
33
  # @!attribute reason
34
- # Reason for dispute
34
+ # Reason for chargeback
35
35
  #
36
36
  # @return [Symbol, Lithic::Models::DisputeUpdateParams::Reason, nil]
37
37
  optional :reason, enum: -> { Lithic::DisputeUpdateParams::Reason }
@@ -39,17 +39,17 @@ module Lithic
39
39
  # @!method initialize(dispute_token:, amount: nil, customer_filed_date: nil, customer_note: nil, reason: nil, request_options: {})
40
40
  # @param dispute_token [String]
41
41
  #
42
- # @param amount [Integer] Amount to dispute
42
+ # @param amount [Integer] Amount for chargeback
43
43
  #
44
- # @param customer_filed_date [Time] Date the customer filed the dispute
44
+ # @param customer_filed_date [Time] Date the customer filed the chargeback request
45
45
  #
46
- # @param customer_note [String] Customer description of dispute
46
+ # @param customer_note [String] Customer description
47
47
  #
48
- # @param reason [Symbol, Lithic::Models::DisputeUpdateParams::Reason] Reason for dispute
48
+ # @param reason [Symbol, Lithic::Models::DisputeUpdateParams::Reason] Reason for chargeback
49
49
  #
50
50
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
51
51
 
52
- # Reason for dispute
52
+ # Reason for chargeback
53
53
  module Reason
54
54
  extend Lithic::Internal::Type::Enum
55
55
 
@@ -45,9 +45,6 @@ module Lithic
45
45
  # - card.renewed: Occurs when a card is renewed.
46
46
  # - card.shipped: Occurs when a card is shipped.
47
47
  # - card.updated: Occurs when a card is updated.
48
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
49
- # approval request is made. This event will be deprecated in the future. We
50
- # recommend using `tokenization.approval_request` instead.
51
48
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
52
49
  # succeeded or failed.
53
50
  #
@@ -169,9 +166,6 @@ module Lithic
169
166
  # - card.renewed: Occurs when a card is renewed.
170
167
  # - card.shipped: Occurs when a card is shipped.
171
168
  # - card.updated: Occurs when a card is updated.
172
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
173
- # approval request is made. This event will be deprecated in the future. We
174
- # recommend using `tokenization.approval_request` instead.
175
169
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
176
170
  # succeeded or failed.
177
171
  #
@@ -266,7 +260,6 @@ module Lithic
266
260
  CARD_RENEWED = :"card.renewed"
267
261
  CARD_SHIPPED = :"card.shipped"
268
262
  CARD_UPDATED = :"card.updated"
269
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request"
270
263
  DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result"
271
264
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
272
265
  :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -99,9 +99,6 @@ module Lithic
99
99
  # - card.renewed: Occurs when a card is renewed.
100
100
  # - card.shipped: Occurs when a card is shipped.
101
101
  # - card.updated: Occurs when a card is updated.
102
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
103
- # approval request is made. This event will be deprecated in the future. We
104
- # recommend using `tokenization.approval_request` instead.
105
102
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
106
103
  # succeeded or failed.
107
104
  #
@@ -194,7 +191,6 @@ module Lithic
194
191
  CARD_RENEWED = :"card.renewed"
195
192
  CARD_SHIPPED = :"card.shipped"
196
193
  CARD_UPDATED = :"card.updated"
197
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request"
198
194
  DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result"
199
195
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
200
196
  :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -72,9 +72,6 @@ module Lithic
72
72
  # - card.renewed: Occurs when a card is renewed.
73
73
  # - card.shipped: Occurs when a card is shipped.
74
74
  # - card.updated: Occurs when a card is updated.
75
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
76
- # approval request is made. This event will be deprecated in the future. We
77
- # recommend using `tokenization.approval_request` instead.
78
75
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
79
76
  # succeeded or failed.
80
77
  #
@@ -167,7 +164,6 @@ module Lithic
167
164
  CARD_RENEWED = :"card.renewed"
168
165
  CARD_SHIPPED = :"card.shipped"
169
166
  CARD_UPDATED = :"card.updated"
170
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request"
171
167
  DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result"
172
168
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
173
169
  :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -74,9 +74,6 @@ module Lithic
74
74
  # - card.renewed: Occurs when a card is renewed.
75
75
  # - card.shipped: Occurs when a card is shipped.
76
76
  # - card.updated: Occurs when a card is updated.
77
- # - digital_wallet.tokenization_approval_request: Occurs when a tokenization
78
- # approval request is made. This event will be deprecated in the future. We
79
- # recommend using `tokenization.approval_request` instead.
80
77
  # - digital_wallet.tokenization_result: Occurs when a tokenization request
81
78
  # succeeded or failed.
82
79
  #
@@ -169,7 +166,6 @@ module Lithic
169
166
  CARD_RENEWED = :"card.renewed"
170
167
  CARD_SHIPPED = :"card.shipped"
171
168
  CARD_UPDATED = :"card.updated"
172
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request"
173
169
  DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result"
174
170
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
175
171
  :"digital_wallet.tokenization_two_factor_authentication_code"
@@ -47,7 +47,6 @@ module Lithic
47
47
  CARD_RENEWED = :"card.renewed"
48
48
  CARD_SHIPPED = :"card.shipped"
49
49
  CARD_UPDATED = :"card.updated"
50
- DIGITAL_WALLET_TOKENIZATION_APPROVAL_REQUEST = :"digital_wallet.tokenization_approval_request"
51
50
  DIGITAL_WALLET_TOKENIZATION_RESULT = :"digital_wallet.tokenization_result"
52
51
  DIGITAL_WALLET_TOKENIZATION_TWO_FACTOR_AUTHENTICATION_CODE =
53
52
  :"digital_wallet.tokenization_two_factor_authentication_code"