lithic 0.1.0.pre.alpha.39 → 0.1.0.pre.alpha.41

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 (207) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +8 -0
  5. data/lib/lithic/internal/transport/base_client.rb +1 -1
  6. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -9
  7. data/lib/lithic/internal/type/array_of.rb +1 -0
  8. data/lib/lithic/internal/type/base_model.rb +3 -1
  9. data/lib/lithic/internal/type/converter.rb +27 -0
  10. data/lib/lithic/internal/type/hash_of.rb +1 -0
  11. data/lib/lithic/internal/type/union.rb +9 -7
  12. data/lib/lithic/internal/util.rb +1 -1
  13. data/lib/lithic/models/account.rb +88 -1
  14. data/lib/lithic/models/account_activity_list_params.rb +156 -0
  15. data/lib/lithic/models/account_activity_list_response.rb +1435 -0
  16. data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +14 -0
  17. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1451 -0
  18. data/lib/lithic/models/account_holder.rb +16 -19
  19. data/lib/lithic/models/account_holder_create_params.rb +41 -47
  20. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -3
  21. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +25 -20
  22. data/lib/lithic/models/account_holder_update_params.rb +2 -6
  23. data/lib/lithic/models/account_holder_update_response.rb +25 -20
  24. data/lib/lithic/models/account_update_params.rb +86 -1
  25. data/lib/lithic/models/aggregate_balance.rb +1 -0
  26. data/lib/lithic/models/aggregate_balance_list_params.rb +1 -0
  27. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
  28. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +12 -22
  29. data/lib/lithic/models/auth_rules/v2_list_params.rb +1 -0
  30. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +3 -25
  31. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +226 -16
  32. data/lib/lithic/models/balance.rb +1 -0
  33. data/lib/lithic/models/balance_list_params.rb +1 -0
  34. data/lib/lithic/models/book_transfer_create_params.rb +34 -6
  35. data/lib/lithic/models/book_transfer_response.rb +124 -28
  36. data/lib/lithic/models/card_create_params.rb +90 -1
  37. data/lib/lithic/models/card_program.rb +10 -1
  38. data/lib/lithic/models/card_update_params.rb +98 -1
  39. data/lib/lithic/models/cards/balance_list_response.rb +1 -0
  40. data/lib/lithic/models/document.rb +1 -3
  41. data/lib/lithic/models/events/subscription_create_params.rb +1 -3
  42. data/lib/lithic/models/events/subscription_update_params.rb +1 -3
  43. data/lib/lithic/models/external_bank_account_list_params.rb +2 -6
  44. data/lib/lithic/models/external_payment.rb +89 -48
  45. data/lib/lithic/models/external_resource.rb +34 -0
  46. data/lib/lithic/models/external_resource_type.rb +18 -0
  47. data/lib/lithic/models/financial_account.rb +1 -0
  48. data/lib/lithic/models/financial_account_list_params.rb +1 -0
  49. data/lib/lithic/models/financial_accounts/balance_list_response.rb +1 -0
  50. data/lib/lithic/models/financial_accounts/loan_tape.rb +5 -18
  51. data/lib/lithic/models/financial_accounts/statement.rb +3 -10
  52. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +2 -7
  53. data/lib/lithic/models/financial_transaction.rb +2 -0
  54. data/lib/lithic/models/instance_financial_account_type.rb +1 -0
  55. data/lib/lithic/models/kyb.rb +2 -2
  56. data/lib/lithic/models/management_operation_create_params.rb +30 -1
  57. data/lib/lithic/models/management_operation_transaction.rb +100 -52
  58. data/lib/lithic/models/network_program.rb +41 -0
  59. data/lib/lithic/models/network_program_list_params.rb +43 -0
  60. data/lib/lithic/models/network_program_retrieve_params.rb +14 -0
  61. data/lib/lithic/models/non_pci_card.rb +88 -1
  62. data/lib/lithic/models/payment.rb +60 -1
  63. data/lib/lithic/models/payment_simulate_action_params.rb +1 -0
  64. data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
  65. data/lib/lithic/models/settlement_detail.rb +1 -0
  66. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +145 -12
  67. data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
  68. data/lib/lithic/models/tokenization.rb +1 -1
  69. data/lib/lithic/models/transaction.rb +31 -20
  70. data/lib/lithic/models/transactions/events/enhanced_data.rb +3 -11
  71. data/lib/lithic/models/transfer.rb +2 -0
  72. data/lib/lithic/models/wire_party_details.rb +40 -0
  73. data/lib/lithic/models.rb +16 -0
  74. data/lib/lithic/resources/account_activity.rb +80 -0
  75. data/lib/lithic/resources/account_holders.rb +9 -9
  76. data/lib/lithic/resources/accounts.rb +5 -1
  77. data/lib/lithic/resources/book_transfers.rb +7 -3
  78. data/lib/lithic/resources/cards.rb +12 -2
  79. data/lib/lithic/resources/management_operations.rb +13 -1
  80. data/lib/lithic/resources/network_programs.rb +64 -0
  81. data/lib/lithic/resources/reports/settlement.rb +1 -1
  82. data/lib/lithic/resources/tokenizations.rb +2 -2
  83. data/lib/lithic/version.rb +1 -1
  84. data/lib/lithic.rb +13 -2
  85. data/rbi/lithic/client.rbi +6 -0
  86. data/rbi/lithic/errors.rbi +2 -2
  87. data/rbi/lithic/internal/transport/base_client.rbi +1 -1
  88. data/rbi/lithic/internal/type/converter.rbi +46 -0
  89. data/rbi/lithic/internal/type/union.rbi +7 -2
  90. data/rbi/lithic/models/account.rbi +131 -0
  91. data/rbi/lithic/models/account_activity_list_params.rbi +359 -0
  92. data/rbi/lithic/models/account_activity_list_response.rbi +3367 -0
  93. data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +30 -0
  94. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +3369 -0
  95. data/rbi/lithic/models/account_holder.rbi +21 -23
  96. data/rbi/lithic/models/account_holder_create_params.rbi +87 -65
  97. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +36 -30
  98. data/rbi/lithic/models/account_holder_update_response.rbi +36 -30
  99. data/rbi/lithic/models/account_update_params.rbi +159 -0
  100. data/rbi/lithic/models/aggregate_balance.rbi +5 -0
  101. data/rbi/lithic/models/aggregate_balance_list_params.rbi +5 -0
  102. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
  103. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +26 -15
  104. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +2 -0
  105. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +18 -25
  106. data/rbi/lithic/models/auth_rules/velocity_limit_params_period_window.rbi +527 -31
  107. data/rbi/lithic/models/balance.rbi +2 -0
  108. data/rbi/lithic/models/balance_list_params.rbi +5 -0
  109. data/rbi/lithic/models/book_transfer_create_params.rbi +75 -5
  110. data/rbi/lithic/models/book_transfer_response.rbi +320 -38
  111. data/rbi/lithic/models/card_create_params.rbi +190 -0
  112. data/rbi/lithic/models/card_program.rbi +13 -0
  113. data/rbi/lithic/models/card_update_params.rbi +168 -0
  114. data/rbi/lithic/models/cards/balance_list_response.rbi +5 -0
  115. data/rbi/lithic/models/external_payment.rbi +147 -60
  116. data/rbi/lithic/models/external_resource.rbi +57 -0
  117. data/rbi/lithic/models/external_resource_type.rbi +26 -0
  118. data/rbi/lithic/models/financial_account.rbi +5 -0
  119. data/rbi/lithic/models/financial_account_list_params.rbi +5 -0
  120. data/rbi/lithic/models/financial_accounts/balance_list_response.rbi +5 -0
  121. data/rbi/lithic/models/financial_transaction.rbi +1 -0
  122. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  123. data/rbi/lithic/models/kyb.rbi +2 -2
  124. data/rbi/lithic/models/management_operation_create_params.rbi +59 -0
  125. data/rbi/lithic/models/management_operation_transaction.rbi +230 -84
  126. data/rbi/lithic/models/network_program.rbi +61 -0
  127. data/rbi/lithic/models/network_program_list_params.rbi +72 -0
  128. data/rbi/lithic/models/network_program_retrieve_params.rbi +27 -0
  129. data/rbi/lithic/models/non_pci_card.rbi +133 -3
  130. data/rbi/lithic/models/payment.rbi +103 -3
  131. data/rbi/lithic/models/payment_simulate_action_params.rbi +5 -0
  132. data/rbi/lithic/models/reports/settlement_list_details_params.rbi +2 -2
  133. data/rbi/lithic/models/settlement_detail.rbi +2 -0
  134. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +222 -19
  135. data/rbi/lithic/models/transaction.rbi +23 -31
  136. data/rbi/lithic/models/transfer.rbi +1 -0
  137. data/rbi/lithic/models/wire_party_details.rbi +61 -0
  138. data/rbi/lithic/models.rbi +17 -0
  139. data/rbi/lithic/resources/account_activity.rbi +80 -0
  140. data/rbi/lithic/resources/account_holders.rbi +28 -29
  141. data/rbi/lithic/resources/accounts.rbi +32 -0
  142. data/rbi/lithic/resources/book_transfers.rbi +9 -2
  143. data/rbi/lithic/resources/cards.rbi +70 -0
  144. data/rbi/lithic/resources/management_operations.rbi +4 -0
  145. data/rbi/lithic/resources/network_programs.rbi +48 -0
  146. data/rbi/lithic/resources/reports/settlement.rbi +1 -1
  147. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  148. data/sig/lithic/client.rbs +4 -0
  149. data/sig/lithic/internal/transport/base_client.rbs +1 -1
  150. data/sig/lithic/internal/type/converter.rbs +17 -0
  151. data/sig/lithic/internal/type/union.rbs +2 -2
  152. data/sig/lithic/models/account.rbs +41 -0
  153. data/sig/lithic/models/account_activity_list_params.rbs +173 -0
  154. data/sig/lithic/models/account_activity_list_response.rbs +1353 -0
  155. data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +15 -0
  156. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +1353 -0
  157. data/sig/lithic/models/account_holder_create_params.rbs +33 -19
  158. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +10 -3
  159. data/sig/lithic/models/account_holder_update_response.rbs +10 -3
  160. data/sig/lithic/models/account_update_params.rbs +41 -0
  161. data/sig/lithic/models/aggregate_balance.rbs +2 -1
  162. data/sig/lithic/models/aggregate_balance_list_params.rbs +2 -1
  163. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +8 -0
  164. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +8 -0
  165. data/sig/lithic/models/auth_rules/v2_list_params.rbs +2 -1
  166. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +4 -14
  167. data/sig/lithic/models/auth_rules/velocity_limit_params_period_window.rbs +212 -7
  168. data/sig/lithic/models/balance.rbs +2 -1
  169. data/sig/lithic/models/balance_list_params.rbs +2 -1
  170. data/sig/lithic/models/book_transfer_create_params.rbs +30 -1
  171. data/sig/lithic/models/book_transfer_response.rbs +134 -15
  172. data/sig/lithic/models/card_create_params.rbs +47 -0
  173. data/sig/lithic/models/card_program.rbs +7 -0
  174. data/sig/lithic/models/card_update_params.rbs +55 -1
  175. data/sig/lithic/models/cards/balance_list_response.rbs +2 -1
  176. data/sig/lithic/models/external_payment.rbs +91 -40
  177. data/sig/lithic/models/external_resource.rbs +32 -0
  178. data/sig/lithic/models/external_resource_type.rbs +16 -0
  179. data/sig/lithic/models/financial_account.rbs +2 -0
  180. data/sig/lithic/models/financial_account_list_params.rbs +2 -1
  181. data/sig/lithic/models/financial_accounts/balance_list_response.rbs +2 -1
  182. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  183. data/sig/lithic/models/management_operation_create_params.rbs +20 -0
  184. data/sig/lithic/models/management_operation_transaction.rbs +98 -42
  185. data/sig/lithic/models/network_program.rbs +35 -0
  186. data/sig/lithic/models/network_program_list_params.rbs +38 -0
  187. data/sig/lithic/models/network_program_retrieve_params.rbs +15 -0
  188. data/sig/lithic/models/non_pci_card.rbs +55 -3
  189. data/sig/lithic/models/payment.rbs +61 -3
  190. data/sig/lithic/models/payment_simulate_action_params.rbs +2 -0
  191. data/sig/lithic/models/settlement_detail.rbs +2 -0
  192. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +90 -3
  193. data/sig/lithic/models/transaction.rbs +2 -6
  194. data/sig/lithic/models/wire_party_details.rbs +35 -0
  195. data/sig/lithic/models.rbs +16 -0
  196. data/sig/lithic/resources/account_activity.rbs +27 -0
  197. data/sig/lithic/resources/account_holders.rbs +3 -3
  198. data/sig/lithic/resources/accounts.rbs +2 -0
  199. data/sig/lithic/resources/book_transfers.rbs +2 -0
  200. data/sig/lithic/resources/cards.rbs +5 -0
  201. data/sig/lithic/resources/management_operations.rbs +1 -0
  202. data/sig/lithic/resources/network_programs.rbs +19 -0
  203. data/sig/lithic/resources/tokenizations.rbs +1 -1
  204. metadata +38 -5
  205. data/lib/lithic/models/tokenization_retrieve_response.rb +0 -16
  206. data/rbi/lithic/models/tokenization_retrieve_response.rbi +0 -31
  207. data/sig/lithic/models/tokenization_retrieve_response.rbs +0 -15
@@ -103,6 +103,7 @@ module Lithic
103
103
  ISSUING = :ISSUING
104
104
  OPERATING = :OPERATING
105
105
  RESERVE = :RESERVE
106
+ SECURITY = :SECURITY
106
107
 
107
108
  # @!method self.values
108
109
  # @return [Array<Symbol>]
@@ -25,6 +25,7 @@ module Lithic
25
25
  ISSUING = :ISSUING
26
26
  OPERATING = :OPERATING
27
27
  RESERVE = :RESERVE
28
+ SECURITY = :SECURITY
28
29
 
29
30
  # @!method self.values
30
31
  # @return [Array<Symbol>]
@@ -88,8 +88,12 @@ module Lithic
88
88
  IS_NOT_ONE_OF = :IS_NOT_ONE_OF
89
89
  MATCHES = :MATCHES
90
90
  DOES_NOT_MATCH = :DOES_NOT_MATCH
91
+ IS_EQUAL_TO = :IS_EQUAL_TO
92
+ IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
91
93
  IS_GREATER_THAN = :IS_GREATER_THAN
94
+ IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
92
95
  IS_LESS_THAN = :IS_LESS_THAN
96
+ IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
93
97
 
94
98
  # @!method self.values
95
99
  # @return [Array<Symbol>]
@@ -104,7 +108,7 @@ module Lithic
104
108
  # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
105
109
  variant String
106
110
 
107
- # A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN`
111
+ # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
108
112
  variant Integer
109
113
 
110
114
  # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
@@ -14,9 +14,7 @@ module Lithic
14
14
  #
15
15
  # @return [Array<Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition>]
16
16
  required :conditions,
17
- -> {
18
- Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::Conditional3DSActionParameters::Condition]
19
- }
17
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::AuthRules::Conditional3DSActionParameters::Condition] }
20
18
 
21
19
  # @!method initialize(action:, conditions:)
22
20
  # @param action [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Action] The action to take if the conditions are met.
@@ -56,27 +54,18 @@ module Lithic
56
54
  # fee field in the settlement/cardholder billing currency. This is the amount
57
55
  # the issuer should authorize against unless the issuer is paying the acquirer
58
56
  # 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.
57
+ # - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
58
+ # risk level, with a higher value indicating a higher amount of risk.
64
59
  # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
65
60
  #
66
61
  # @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Attribute, nil]
67
- optional :attribute,
68
- enum: -> {
69
- Lithic::AuthRules::Conditional3DSActionParameters::Condition::Attribute
70
- }
62
+ optional :attribute, enum: -> { Lithic::AuthRules::Conditional3DSActionParameters::Condition::Attribute }
71
63
 
72
64
  # @!attribute operation
73
65
  # The operation to apply to the attribute
74
66
  #
75
67
  # @return [Symbol, Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition::Operation, nil]
76
- optional :operation,
77
- enum: -> {
78
- Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation
79
- }
68
+ optional :operation, enum: -> { Lithic::AuthRules::Conditional3DSActionParameters::Condition::Operation }
80
69
 
81
70
  # @!attribute value
82
71
  # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
@@ -113,11 +102,8 @@ module Lithic
113
102
  # fee field in the settlement/cardholder billing currency. This is the amount
114
103
  # the issuer should authorize against unless the issuer is paying the acquirer
115
104
  # 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.
105
+ # - `RISK_SCORE`: Mastercard only: Assessment by the network of the authentication
106
+ # risk level, with a higher value indicating a higher amount of risk.
121
107
  # - `MESSAGE_CATEGORY`: The category of the authentication being processed.
122
108
  #
123
109
  # @see Lithic::Models::AuthRules::Conditional3DSActionParameters::Condition#attribute
@@ -147,8 +133,12 @@ module Lithic
147
133
  IS_NOT_ONE_OF = :IS_NOT_ONE_OF
148
134
  MATCHES = :MATCHES
149
135
  DOES_NOT_MATCH = :DOES_NOT_MATCH
136
+ IS_EQUAL_TO = :IS_EQUAL_TO
137
+ IS_NOT_EQUAL_TO = :IS_NOT_EQUAL_TO
150
138
  IS_GREATER_THAN = :IS_GREATER_THAN
139
+ IS_GREATER_THAN_OR_EQUAL_TO = :IS_GREATER_THAN_OR_EQUAL_TO
151
140
  IS_LESS_THAN = :IS_LESS_THAN
141
+ IS_LESS_THAN_OR_EQUAL_TO = :IS_LESS_THAN_OR_EQUAL_TO
152
142
 
153
143
  # @!method self.values
154
144
  # @return [Array<Symbol>]
@@ -163,7 +153,7 @@ module Lithic
163
153
  # A regex string, to be used with `MATCHES` or `DOES_NOT_MATCH`
164
154
  variant String
165
155
 
166
- # A number, to be used with `IS_GREATER_THAN` or `IS_LESS_THAN`
156
+ # A number, to be used with `IS_GREATER_THAN`, `IS_GREATER_THAN_OR_EQUAL_TO`, `IS_LESS_THAN`, `IS_LESS_THAN_OR_EQUAL_TO`, `IS_EQUAL_TO`, or `IS_NOT_EQUAL_TO`
167
157
  variant Integer
168
158
 
169
159
  # An array of strings, to be used with `IS_ONE_OF` or `IS_NOT_ONE_OF`
@@ -90,6 +90,7 @@ module Lithic
90
90
  PROGRAM = :PROGRAM
91
91
  ACCOUNT = :ACCOUNT
92
92
  CARD = :CARD
93
+ ANY = :ANY
93
94
 
94
95
  # @!method self.values
95
96
  # @return [Array<Symbol>]
@@ -13,8 +13,8 @@ module Lithic
13
13
  # The size of the trailing window to calculate Spend Velocity over in seconds. The
14
14
  # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
15
15
  #
16
- # @return [Integer, Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow]
17
- required :period, union: -> { Lithic::AuthRules::VelocityLimitParams::Period }
16
+ # @return [Integer, Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear]
17
+ required :period, union: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow }
18
18
 
19
19
  # @!attribute scope
20
20
  #
@@ -45,7 +45,7 @@ module Lithic
45
45
  #
46
46
  # @param filters [Lithic::Models::AuthRules::VelocityLimitParams::Filters]
47
47
  #
48
- # @param period [Integer, Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow] The size of the trailing window to calculate Spend Velocity over in seconds. The
48
+ # @param period [Integer, Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear] The size of the trailing window to calculate Spend Velocity over in seconds. The
49
49
  #
50
50
  # @param scope [Symbol, Lithic::Models::AuthRules::VelocityLimitParams::Scope]
51
51
  #
@@ -98,28 +98,6 @@ module Lithic
98
98
  # @param include_mccs [Array<String>, nil] Merchant Category Codes to include in the velocity calculation. Transactions not
99
99
  end
100
100
 
101
- # The size of the trailing window to calculate Spend Velocity over in seconds. The
102
- # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
103
- #
104
- # @see Lithic::Models::AuthRules::VelocityLimitParams#period
105
- module Period
106
- extend Lithic::Internal::Type::Union
107
-
108
- # The size of the trailing window to calculate Spend Velocity over in seconds. The minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
109
- variant Integer
110
-
111
- # The window of time to calculate Spend Velocity over.
112
- #
113
- # * `DAY`: Velocity over the current day since midnight Eastern Time.
114
- # * `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in Eastern Time.
115
- # * `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of the month in Eastern Time.
116
- # * `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in Eastern Time.
117
- variant enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow }
118
-
119
- # @!method self.variants
120
- # @return [Array(Integer, Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow)]
121
- end
122
-
123
101
  # @see Lithic::Models::AuthRules::VelocityLimitParams#scope
124
102
  module Scope
125
103
  extend Lithic::Internal::Type::Enum
@@ -3,25 +3,235 @@
3
3
  module Lithic
4
4
  module Models
5
5
  module AuthRules
6
- # The window of time to calculate Spend Velocity over.
7
- #
8
- # - `DAY`: Velocity over the current day since midnight Eastern Time.
9
- # - `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in
10
- # Eastern Time.
11
- # - `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of
12
- # the month in Eastern Time.
13
- # - `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in
14
- # Eastern Time.
6
+ # The size of the trailing window to calculate Spend Velocity over in seconds. The
7
+ # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
15
8
  module VelocityLimitParamsPeriodWindow
16
- extend Lithic::Internal::Type::Enum
9
+ extend Lithic::Internal::Type::Union
17
10
 
18
- DAY = :DAY
19
- WEEK = :WEEK
20
- MONTH = :MONTH
21
- YEAR = :YEAR
11
+ # The size of the trailing window to calculate Spend Velocity over in seconds. The minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
12
+ variant Integer
22
13
 
23
- # @!method self.values
24
- # @return [Array<Symbol>]
14
+ # The window of time to calculate Spend Velocity over.
15
+ #
16
+ # * `DAY`: Velocity over the current day since midnight Eastern Time.
17
+ # * `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in Eastern Time.
18
+ # * `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of the month in Eastern Time.
19
+ # * `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in Eastern Time.
20
+ variant enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow }
21
+
22
+ variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject }
23
+
24
+ # Velocity over the current day since 00:00 / 12 AM in Eastern Time
25
+ variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay }
26
+
27
+ # Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified `day_of_week`
28
+ variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek }
29
+
30
+ # Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified `day_of_month`.
31
+ variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth }
32
+
33
+ # Velocity over the current year since 00:00 / 12 AM in Eastern Time on specified `month` and `day_of_month`. This validates the month and day of the year to start from is a real date. In the event that February 29th is selected, in non-leap years, the window will start from February 28th.
34
+ variant -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear }
35
+
36
+ # The window of time to calculate Spend Velocity over.
37
+ #
38
+ # - `DAY`: Velocity over the current day since midnight Eastern Time.
39
+ # - `WEEK`: Velocity over the current week since 00:00 / 12 AM on Monday in
40
+ # Eastern Time.
41
+ # - `MONTH`: Velocity over the current month since 00:00 / 12 AM on the first of
42
+ # the month in Eastern Time.
43
+ # - `YEAR`: Velocity over the current year since 00:00 / 12 AM on January 1st in
44
+ # Eastern Time.
45
+ module FixedWindow
46
+ extend Lithic::Internal::Type::Enum
47
+
48
+ DAY = :DAY
49
+ WEEK = :WEEK
50
+ MONTH = :MONTH
51
+ YEAR = :YEAR
52
+
53
+ # @!method self.values
54
+ # @return [Array<Symbol>]
55
+ end
56
+
57
+ class TrailingWindowObject < Lithic::Internal::Type::BaseModel
58
+ # @!attribute duration
59
+ # The size of the trailing window to calculate Spend Velocity over in seconds. The
60
+ # minimum value is 10 seconds, and the maximum value is 2678400 seconds (31 days).
61
+ #
62
+ # @return [Integer, nil]
63
+ optional :duration, Integer
64
+
65
+ # @!attribute type
66
+ #
67
+ # @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type, nil]
68
+ optional :type,
69
+ enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type }
70
+
71
+ # @!method initialize(duration: nil, type: nil)
72
+ # Some parameter documentations has been truncated, see
73
+ # {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject}
74
+ # for more details.
75
+ #
76
+ # @param duration [Integer] The size of the trailing window to calculate Spend Velocity over in seconds. The
77
+ #
78
+ # @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject::Type]
79
+
80
+ # @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject#type
81
+ module Type
82
+ extend Lithic::Internal::Type::Enum
83
+
84
+ CUSTOM = :CUSTOM
85
+
86
+ # @!method self.values
87
+ # @return [Array<Symbol>]
88
+ end
89
+ end
90
+
91
+ class FixedWindowDay < Lithic::Internal::Type::BaseModel
92
+ # @!attribute type
93
+ #
94
+ # @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type, nil]
95
+ optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type }
96
+
97
+ # @!method initialize(type: nil)
98
+ # Velocity over the current day since 00:00 / 12 AM in Eastern Time
99
+ #
100
+ # @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay::Type]
101
+
102
+ # @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay#type
103
+ module Type
104
+ extend Lithic::Internal::Type::Enum
105
+
106
+ DAY = :DAY
107
+
108
+ # @!method self.values
109
+ # @return [Array<Symbol>]
110
+ end
111
+ end
112
+
113
+ class FixedWindowWeek < Lithic::Internal::Type::BaseModel
114
+ # @!attribute day_of_week
115
+ # The day of the week to start the week from. Following ISO-8601, 1 is Monday and
116
+ # 7 is Sunday. Defaults to Monday if not specified.
117
+ #
118
+ # @return [Integer, nil]
119
+ optional :day_of_week, Integer
120
+
121
+ # @!attribute type
122
+ #
123
+ # @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type, nil]
124
+ optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type }
125
+
126
+ # @!method initialize(day_of_week: nil, type: nil)
127
+ # Some parameter documentations has been truncated, see
128
+ # {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek}
129
+ # for more details.
130
+ #
131
+ # Velocity over the current week since 00:00 / 12 AM in Eastern Time on specified
132
+ # `day_of_week`
133
+ #
134
+ # @param day_of_week [Integer] The day of the week to start the week from. Following ISO-8601, 1 is Monday and
135
+ #
136
+ # @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek::Type]
137
+
138
+ # @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek#type
139
+ module Type
140
+ extend Lithic::Internal::Type::Enum
141
+
142
+ WEEK = :WEEK
143
+
144
+ # @!method self.values
145
+ # @return [Array<Symbol>]
146
+ end
147
+ end
148
+
149
+ class FixedWindowMonth < Lithic::Internal::Type::BaseModel
150
+ # @!attribute day_of_month
151
+ # The day of the month to start from. Accepts values from 1 to 31, and will reset
152
+ # at the end of the month if the day exceeds the number of days in the month.
153
+ # Defaults to the 1st of the month if not specified.
154
+ #
155
+ # @return [Integer, nil]
156
+ optional :day_of_month, Integer
157
+
158
+ # @!attribute type
159
+ #
160
+ # @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type, nil]
161
+ optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type }
162
+
163
+ # @!method initialize(day_of_month: nil, type: nil)
164
+ # Some parameter documentations has been truncated, see
165
+ # {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth}
166
+ # for more details.
167
+ #
168
+ # Velocity over the current month since 00:00 / 12 AM in Eastern Time on specified
169
+ # `day_of_month`.
170
+ #
171
+ # @param day_of_month [Integer] The day of the month to start from. Accepts values from 1 to 31, and will reset
172
+ #
173
+ # @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth::Type]
174
+
175
+ # @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth#type
176
+ module Type
177
+ extend Lithic::Internal::Type::Enum
178
+
179
+ MONTH = :MONTH
180
+
181
+ # @!method self.values
182
+ # @return [Array<Symbol>]
183
+ end
184
+ end
185
+
186
+ class FixedWindowYear < Lithic::Internal::Type::BaseModel
187
+ # @!attribute day_of_month
188
+ # The day of the month to start from. Defaults to the 1st of the month if not
189
+ # specified.
190
+ #
191
+ # @return [Integer, nil]
192
+ optional :day_of_month, Integer
193
+
194
+ # @!attribute month
195
+ # The month to start from. 1 is January and 12 is December. Defaults to January if
196
+ # not specified.
197
+ #
198
+ # @return [Integer, nil]
199
+ optional :month, Integer
200
+
201
+ # @!attribute type
202
+ #
203
+ # @return [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type, nil]
204
+ optional :type, enum: -> { Lithic::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type }
205
+
206
+ # @!method initialize(day_of_month: nil, month: nil, type: nil)
207
+ # Some parameter documentations has been truncated, see
208
+ # {Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear}
209
+ # for more details.
210
+ #
211
+ # Velocity over the current year since 00:00 / 12 AM in Eastern Time on specified
212
+ # `month` and `day_of_month`. This validates the month and day of the year to
213
+ # start from is a real date. In the event that February 29th is selected, in
214
+ # non-leap years, the window will start from February 28th.
215
+ #
216
+ # @param day_of_month [Integer] The day of the month to start from. Defaults to the 1st of the month if not spec
217
+ #
218
+ # @param month [Integer] The month to start from. 1 is January and 12 is December. Defaults to January if
219
+ #
220
+ # @param type [Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear::Type]
221
+
222
+ # @see Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear#type
223
+ module Type
224
+ extend Lithic::Internal::Type::Enum
225
+
226
+ YEAR = :YEAR
227
+
228
+ # @!method self.values
229
+ # @return [Array<Symbol>]
230
+ end
231
+ end
232
+
233
+ # @!method self.variants
234
+ # @return [Array(Integer, Symbol, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindow, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::TrailingWindowObject, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowDay, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowWeek, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowMonth, Lithic::Models::AuthRules::VelocityLimitParamsPeriodWindow::FixedWindowYear)]
25
235
  end
26
236
  end
27
237
  end
@@ -103,6 +103,7 @@ module Lithic
103
103
  ISSUING = :ISSUING
104
104
  OPERATING = :OPERATING
105
105
  RESERVE = :RESERVE
106
+ SECURITY = :SECURITY
106
107
 
107
108
  # @!method self.values
108
109
  # @return [Array<Symbol>]
@@ -53,6 +53,7 @@ module Lithic
53
53
  ISSUING = :ISSUING
54
54
  OPERATING = :OPERATING
55
55
  RESERVE = :RESERVE
56
+ SECURITY = :SECURITY
56
57
 
57
58
  # @!method self.values
58
59
  # @return [Array<Symbol>]
@@ -8,7 +8,7 @@ module Lithic
8
8
  include Lithic::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute amount
11
- # Amount to be transferred in the currencys smallest unit (e.g., cents for USD).
11
+ # Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
12
12
  # This should always be a positive value.
13
13
  #
14
14
  # @return [Integer]
@@ -41,7 +41,7 @@ module Lithic
41
41
  required :to_financial_account_token, String
42
42
 
43
43
  # @!attribute type
44
- # Type of book_transfer
44
+ # Type of the book transfer
45
45
  #
46
46
  # @return [Symbol, Lithic::Models::BookTransferCreateParams::Type]
47
47
  required :type, enum: -> { Lithic::BookTransferCreateParams::Type }
@@ -53,17 +53,29 @@ module Lithic
53
53
  # @return [String, nil]
54
54
  optional :token, String
55
55
 
56
+ # @!attribute external_id
57
+ # External ID defined by the customer
58
+ #
59
+ # @return [String, nil]
60
+ optional :external_id, String
61
+
56
62
  # @!attribute memo
57
63
  # Optional descriptor for the transfer.
58
64
  #
59
65
  # @return [String, nil]
60
66
  optional :memo, String
61
67
 
62
- # @!method initialize(amount:, category:, from_financial_account_token:, subtype:, to_financial_account_token:, type:, token: nil, memo: nil, request_options: {})
68
+ # @!attribute on_closed_account
69
+ # What to do if the financial account is closed when posting an operation
70
+ #
71
+ # @return [Symbol, Lithic::Models::BookTransferCreateParams::OnClosedAccount, nil]
72
+ optional :on_closed_account, enum: -> { Lithic::BookTransferCreateParams::OnClosedAccount }
73
+
74
+ # @!method initialize(amount:, category:, from_financial_account_token:, subtype:, to_financial_account_token:, type:, token: nil, external_id: nil, memo: nil, on_closed_account: nil, request_options: {})
63
75
  # Some parameter documentations has been truncated, see
64
76
  # {Lithic::Models::BookTransferCreateParams} for more details.
65
77
  #
66
- # @param amount [Integer] Amount to be transferred in the currencys smallest unit (e.g., cents for USD).
78
+ # @param amount [Integer] Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
67
79
  #
68
80
  # @param category [Symbol, Lithic::Models::BookTransferCreateParams::Category] Category of the book transfer
69
81
  #
@@ -73,12 +85,16 @@ module Lithic
73
85
  #
74
86
  # @param to_financial_account_token [String] Globally unique identifier for the financial account or card that will receive t
75
87
  #
76
- # @param type [Symbol, Lithic::Models::BookTransferCreateParams::Type] Type of book_transfer
88
+ # @param type [Symbol, Lithic::Models::BookTransferCreateParams::Type] Type of the book transfer
77
89
  #
78
90
  # @param token [String] Customer-provided token that will serve as an idempotency token. This token will
79
91
  #
92
+ # @param external_id [String] External ID defined by the customer
93
+ #
80
94
  # @param memo [String] Optional descriptor for the transfer.
81
95
  #
96
+ # @param on_closed_account [Symbol, Lithic::Models::BookTransferCreateParams::OnClosedAccount] What to do if the financial account is closed when posting an operation
97
+ #
82
98
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
83
99
 
84
100
  # Category of the book transfer
@@ -97,7 +113,7 @@ module Lithic
97
113
  # @return [Array<Symbol>]
98
114
  end
99
115
 
100
- # Type of book_transfer
116
+ # Type of the book transfer
101
117
  module Type
102
118
  extend Lithic::Internal::Type::Enum
103
119
 
@@ -134,6 +150,18 @@ module Lithic
134
150
  DISPUTE_WON = :DISPUTE_WON
135
151
  SERVICE = :SERVICE
136
152
  TRANSFER = :TRANSFER
153
+ COLLECTION = :COLLECTION
154
+
155
+ # @!method self.values
156
+ # @return [Array<Symbol>]
157
+ end
158
+
159
+ # What to do if the financial account is closed when posting an operation
160
+ module OnClosedAccount
161
+ extend Lithic::Internal::Type::Enum
162
+
163
+ FAIL = :FAIL
164
+ USE_SUSPENSE = :USE_SUSPENSE
137
165
 
138
166
  # @!method self.values
139
167
  # @return [Array<Symbol>]