lithic 0.1.0.pre.alpha.40 → 0.1.0.pre.alpha.42

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 (184) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +4 -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_activity_list_params.rb +158 -0
  14. data/lib/lithic/models/account_activity_list_response.rb +1435 -0
  15. data/lib/lithic/models/account_activity_retrieve_transaction_params.rb +14 -0
  16. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +1451 -0
  17. data/lib/lithic/models/account_holder.rb +16 -19
  18. data/lib/lithic/models/account_holder_create_params.rb +41 -47
  19. data/lib/lithic/models/account_holder_simulate_enrollment_review_params.rb +1 -3
  20. data/lib/lithic/models/account_holder_simulate_enrollment_review_response.rb +25 -20
  21. data/lib/lithic/models/account_holder_update_params.rb +2 -6
  22. data/lib/lithic/models/account_holder_update_response.rb +25 -20
  23. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +5 -1
  24. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +8 -12
  25. data/lib/lithic/models/auth_rules/v2_apply_params.rb +13 -5
  26. data/lib/lithic/models/auth_rules/v2_apply_response.rb +510 -18
  27. data/lib/lithic/models/auth_rules/v2_create_params.rb +283 -16
  28. data/lib/lithic/models/auth_rules/v2_create_response.rb +510 -18
  29. data/lib/lithic/models/auth_rules/v2_draft_params.rb +239 -3
  30. data/lib/lithic/models/auth_rules/v2_draft_response.rb +510 -18
  31. data/lib/lithic/models/auth_rules/v2_list_params.rb +11 -1
  32. data/lib/lithic/models/auth_rules/v2_list_response.rb +510 -18
  33. data/lib/lithic/models/auth_rules/v2_promote_response.rb +510 -18
  34. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +510 -18
  35. data/lib/lithic/models/auth_rules/v2_update_params.rb +1 -9
  36. data/lib/lithic/models/auth_rules/v2_update_response.rb +510 -18
  37. data/lib/lithic/models/auth_rules/velocity_limit_params_period_window.rb +4 -16
  38. data/lib/lithic/models/book_transfer_create_params.rb +34 -6
  39. data/lib/lithic/models/book_transfer_response.rb +124 -28
  40. data/lib/lithic/models/document.rb +1 -3
  41. data/lib/lithic/models/event.rb +6 -0
  42. data/lib/lithic/models/event_list_params.rb +2 -0
  43. data/lib/lithic/models/event_subscription.rb +2 -0
  44. data/lib/lithic/models/events/subscription_create_params.rb +3 -3
  45. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +2 -0
  46. data/lib/lithic/models/events/subscription_update_params.rb +3 -3
  47. data/lib/lithic/models/external_bank_account_list_params.rb +2 -6
  48. data/lib/lithic/models/external_payment.rb +89 -48
  49. data/lib/lithic/models/financial_account.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_transaction.rb +90 -63
  57. data/lib/lithic/models/payment.rb +60 -1
  58. data/lib/lithic/models/reports/settlement_list_details_params.rb +2 -2
  59. data/lib/lithic/models/settlement_detail.rb +1 -0
  60. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +173 -38
  61. data/lib/lithic/models/three_ds/authentication_simulate_params.rb +1 -4
  62. data/lib/lithic/models/tokenization.rb +1 -1
  63. data/lib/lithic/models/transaction.rb +4 -0
  64. data/lib/lithic/models/transactions/events/enhanced_data.rb +3 -11
  65. data/lib/lithic/models/transfer.rb +2 -0
  66. data/lib/lithic/models/wire_party_details.rb +40 -0
  67. data/lib/lithic/models.rb +6 -0
  68. data/lib/lithic/resources/account_activity.rb +80 -0
  69. data/lib/lithic/resources/account_holders.rb +9 -9
  70. data/lib/lithic/resources/auth_rules/v2/backtests.rb +3 -3
  71. data/lib/lithic/resources/auth_rules/v2.rb +19 -13
  72. data/lib/lithic/resources/book_transfers.rb +7 -3
  73. data/lib/lithic/resources/reports/settlement.rb +1 -1
  74. data/lib/lithic/resources/tokenizations.rb +2 -2
  75. data/lib/lithic/version.rb +1 -1
  76. data/lib/lithic.rb +7 -2
  77. data/rbi/lithic/client.rbi +3 -0
  78. data/rbi/lithic/errors.rbi +2 -2
  79. data/rbi/lithic/internal/transport/base_client.rbi +1 -1
  80. data/rbi/lithic/internal/type/converter.rbi +46 -0
  81. data/rbi/lithic/internal/type/union.rbi +7 -2
  82. data/rbi/lithic/models/account_activity_list_params.rbi +347 -0
  83. data/rbi/lithic/models/account_activity_list_response.rbi +3367 -0
  84. data/rbi/lithic/models/account_activity_retrieve_transaction_params.rbi +30 -0
  85. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +3369 -0
  86. data/rbi/lithic/models/account_holder.rbi +21 -23
  87. data/rbi/lithic/models/account_holder_create_params.rbi +87 -65
  88. data/rbi/lithic/models/account_holder_simulate_enrollment_review_response.rbi +36 -30
  89. data/rbi/lithic/models/account_holder_update_response.rbi +36 -30
  90. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +20 -0
  91. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +20 -0
  92. data/rbi/lithic/models/auth_rules/v2_apply_params.rbi +19 -5
  93. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +1128 -18
  94. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +646 -21
  95. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +1128 -18
  96. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +554 -4
  97. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +1128 -18
  98. data/rbi/lithic/models/auth_rules/v2_list_params.rbi +18 -0
  99. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +1128 -18
  100. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +1128 -18
  101. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +1128 -18
  102. data/rbi/lithic/models/auth_rules/v2_update_params.rbi +0 -11
  103. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +1128 -18
  104. data/rbi/lithic/models/book_transfer_create_params.rbi +75 -5
  105. data/rbi/lithic/models/book_transfer_response.rbi +320 -38
  106. data/rbi/lithic/models/event.rbi +16 -0
  107. data/rbi/lithic/models/event_list_params.rbi +10 -0
  108. data/rbi/lithic/models/event_subscription.rbi +10 -0
  109. data/rbi/lithic/models/events/subscription_create_params.rbi +10 -0
  110. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +10 -0
  111. data/rbi/lithic/models/events/subscription_update_params.rbi +10 -0
  112. data/rbi/lithic/models/external_payment.rbi +147 -60
  113. data/rbi/lithic/models/financial_account.rbi +5 -0
  114. data/rbi/lithic/models/financial_transaction.rbi +1 -0
  115. data/rbi/lithic/models/instance_financial_account_type.rbi +5 -0
  116. data/rbi/lithic/models/kyb.rbi +2 -2
  117. data/rbi/lithic/models/management_operation_transaction.rbi +226 -95
  118. data/rbi/lithic/models/payment.rbi +103 -3
  119. data/rbi/lithic/models/reports/settlement_list_details_params.rbi +2 -2
  120. data/rbi/lithic/models/settlement_detail.rbi +2 -0
  121. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +267 -60
  122. data/rbi/lithic/models/transaction.rbi +17 -0
  123. data/rbi/lithic/models/transfer.rbi +1 -0
  124. data/rbi/lithic/models/wire_party_details.rbi +61 -0
  125. data/rbi/lithic/models.rbi +7 -0
  126. data/rbi/lithic/resources/account_activity.rbi +80 -0
  127. data/rbi/lithic/resources/account_holders.rbi +28 -29
  128. data/rbi/lithic/resources/auth_rules/v2/backtests.rbi +3 -3
  129. data/rbi/lithic/resources/auth_rules/v2.rbi +28 -14
  130. data/rbi/lithic/resources/book_transfers.rbi +9 -2
  131. data/rbi/lithic/resources/reports/settlement.rbi +1 -1
  132. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  133. data/sig/lithic/client.rbs +2 -0
  134. data/sig/lithic/internal/transport/base_client.rbs +1 -1
  135. data/sig/lithic/internal/type/converter.rbs +17 -0
  136. data/sig/lithic/internal/type/union.rbs +2 -2
  137. data/sig/lithic/models/account_activity_list_params.rbs +173 -0
  138. data/sig/lithic/models/account_activity_list_response.rbs +1353 -0
  139. data/sig/lithic/models/account_activity_retrieve_transaction_params.rbs +15 -0
  140. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +1353 -0
  141. data/sig/lithic/models/account_holder_create_params.rbs +33 -19
  142. data/sig/lithic/models/account_holder_simulate_enrollment_review_response.rbs +10 -3
  143. data/sig/lithic/models/account_holder_update_response.rbs +10 -3
  144. data/sig/lithic/models/auth_rules/auth_rule_condition.rbs +8 -0
  145. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +8 -0
  146. data/sig/lithic/models/auth_rules/v2_apply_params.rbs +11 -2
  147. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +317 -2
  148. data/sig/lithic/models/auth_rules/v2_create_params.rbs +188 -4
  149. data/sig/lithic/models/auth_rules/v2_create_response.rbs +317 -2
  150. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +155 -0
  151. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +317 -2
  152. data/sig/lithic/models/auth_rules/v2_list_params.rbs +10 -1
  153. data/sig/lithic/models/auth_rules/v2_list_response.rbs +317 -2
  154. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +317 -2
  155. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +317 -2
  156. data/sig/lithic/models/auth_rules/v2_update_params.rbs +0 -7
  157. data/sig/lithic/models/auth_rules/v2_update_response.rbs +317 -2
  158. data/sig/lithic/models/book_transfer_create_params.rbs +30 -1
  159. data/sig/lithic/models/book_transfer_response.rbs +134 -15
  160. data/sig/lithic/models/event.rbs +4 -0
  161. data/sig/lithic/models/event_list_params.rbs +4 -0
  162. data/sig/lithic/models/event_subscription.rbs +4 -0
  163. data/sig/lithic/models/events/subscription_create_params.rbs +4 -0
  164. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +4 -0
  165. data/sig/lithic/models/events/subscription_update_params.rbs +4 -0
  166. data/sig/lithic/models/external_payment.rbs +91 -40
  167. data/sig/lithic/models/financial_account.rbs +2 -0
  168. data/sig/lithic/models/instance_financial_account_type.rbs +2 -0
  169. data/sig/lithic/models/management_operation_transaction.rbs +95 -44
  170. data/sig/lithic/models/payment.rbs +61 -3
  171. data/sig/lithic/models/settlement_detail.rbs +2 -0
  172. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +110 -23
  173. data/sig/lithic/models/transaction.rbs +10 -2
  174. data/sig/lithic/models/wire_party_details.rbs +35 -0
  175. data/sig/lithic/models.rbs +6 -0
  176. data/sig/lithic/resources/account_activity.rbs +27 -0
  177. data/sig/lithic/resources/account_holders.rbs +3 -3
  178. data/sig/lithic/resources/auth_rules/v2.rbs +6 -3
  179. data/sig/lithic/resources/book_transfers.rbs +2 -0
  180. data/sig/lithic/resources/tokenizations.rbs +1 -1
  181. metadata +20 -5
  182. data/lib/lithic/models/tokenization_retrieve_response.rb +0 -16
  183. data/rbi/lithic/models/tokenization_retrieve_response.rbi +0 -31
  184. data/sig/lithic/models/tokenization_retrieve_response.rbs +0 -15
@@ -13,15 +13,8 @@ module Lithic
13
13
  # that the calling API key manages.
14
14
  sig do
15
15
  params(
16
- beneficial_owner_individuals:
17
- T::Array[
18
- Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual::OrHash
19
- ],
20
16
  business_entity:
21
17
  Lithic::AccountHolderCreateParams::BusinessEntity::OrHash,
22
- control_person:
23
- Lithic::AccountHolderCreateParams::ControlPerson::OrHash,
24
- nature_of_business: String,
25
18
  tos_timestamp: String,
26
19
  workflow: Lithic::AccountHolderCreateParams::Workflow::OrSymbol,
27
20
  individual: Lithic::AccountHolderCreateParams::Individual::OrHash,
@@ -32,6 +25,13 @@ module Lithic
32
25
  Lithic::AccountHolderCreateParams::KYCExemptionType::OrSymbol,
33
26
  last_name: String,
34
27
  phone_number: String,
28
+ beneficial_owner_individuals:
29
+ T::Array[
30
+ Lithic::AccountHolderCreateParams::BeneficialOwnerIndividual::OrHash
31
+ ],
32
+ control_person:
33
+ Lithic::AccountHolderCreateParams::ControlPerson::OrHash,
34
+ nature_of_business: String,
35
35
  beneficial_owner_entities:
36
36
  T::Array[
37
37
  Lithic::AccountHolderCreateParams::BeneficialOwnerEntity::OrHash
@@ -45,28 +45,8 @@ module Lithic
45
45
  ).returns(Lithic::Models::AccountHolderCreateResponse)
46
46
  end
47
47
  def create(
48
- # You must submit a list of all direct and indirect individuals with 25% or more
49
- # ownership in the company. A maximum of 4 beneficial owners can be submitted. If
50
- # no individual owns 25% of the company you do not need to send beneficial owner
51
- # information. See
52
- # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
53
- # (Section I) for more background on individuals that should be included.
54
- beneficial_owner_individuals:,
55
- # Information for business for which the account is being opened and KYB is being
56
- # run.
48
+ # Information for business for which the account is being opened.
57
49
  business_entity:,
58
- # An individual with significant responsibility for managing the legal entity
59
- # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating
60
- # Officer, Managing Member, General Partner, President, Vice President, or
61
- # Treasurer). This can be an executive, or someone who will have program-wide
62
- # access to the cards that Lithic will provide. In some cases, this individual
63
- # could also be a beneficial owner listed above. See
64
- # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
65
- # (Section II) for more background.
66
- control_person:,
67
- # Short description of the company's line of business (i.e., what does the company
68
- # do?).
69
- nature_of_business:,
70
50
  # An RFC 3339 timestamp indicating when the account holder accepted the applicable
71
51
  # legal agreements (e.g., cardholder terms) as agreed upon during API customer's
72
52
  # implementation with Lithic.
@@ -89,12 +69,31 @@ module Lithic
89
69
  last_name:,
90
70
  # The KYC Exempt user's phone number, entered in E.164 format.
91
71
  phone_number:,
72
+ # You can submit a list of all direct and indirect individuals with 25% or more
73
+ # ownership in the company. A maximum of 4 beneficial owners can be submitted. If
74
+ # no individual owns 25% of the company you do not need to send beneficial owner
75
+ # information. See
76
+ # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
77
+ # (Section I) for more background on individuals that should be included.
78
+ beneficial_owner_individuals: nil,
79
+ # An individual with significant responsibility for managing the legal entity
80
+ # (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating
81
+ # Officer, Managing Member, General Partner, President, Vice President, or
82
+ # Treasurer). This can be an executive, or someone who will have program-wide
83
+ # access to the cards that Lithic will provide. In some cases, this individual
84
+ # could also be a beneficial owner listed above. See
85
+ # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
86
+ # (Section II) for more background.
87
+ control_person: nil,
88
+ # Short description of the company's line of business (i.e., what does the company
89
+ # do?).
90
+ nature_of_business: nil,
92
91
  # Deprecated.
93
92
  beneficial_owner_entities: nil,
94
93
  # A user provided id that can be used to link an account holder with an external
95
94
  # system
96
95
  external_id: nil,
97
- # An RFC 3339 timestamp indicating when precomputed KYC was completed on the
96
+ # An RFC 3339 timestamp indicating when precomputed KYB was completed on the
98
97
  # business with a pass result.
99
98
  #
100
99
  # This field is required only if workflow type is `KYB_BYO`.
@@ -23,9 +23,9 @@ module Lithic
23
23
  # endpoint.
24
24
  #
25
25
  # Lithic currently supports backtesting for `CONDITIONAL_BLOCK` /
26
- # `CONDITIONAL_3DS_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is
27
- # generally not supported. In specific cases (i.e. where Lithic has pre-calculated
28
- # the requested velocity metrics for historical transactions), a backtest may be
26
+ # `CONDITIONAL_ACTION` rules. Backtesting for `VELOCITY_LIMIT` rules is generally
27
+ # not supported. In specific cases (i.e. where Lithic has pre-calculated the
28
+ # requested velocity metrics for historical transactions), a backtest may be
29
29
  # feasible. However, such cases are uncommon and customers should not anticipate
30
30
  # support for velocity backtests under most configurations. If a historical
31
31
  # transaction does not feature the required inputs to evaluate the rule, then it
@@ -10,16 +10,20 @@ module Lithic
10
10
  # Creates a new V2 Auth rule in draft mode
11
11
  sig do
12
12
  params(
13
- account_tokens: T::Array[String],
14
13
  card_tokens: T::Array[String],
15
14
  program_level: T::Boolean,
15
+ account_tokens: T::Array[String],
16
+ business_account_tokens: T::Array[String],
17
+ event_stream:
18
+ Lithic::AuthRules::V2CreateParams::EventStream::OrSymbol,
16
19
  name: T.nilable(String),
17
20
  parameters:
18
21
  T.any(
19
22
  Lithic::AuthRules::ConditionalBlockParameters::OrHash,
20
23
  Lithic::AuthRules::VelocityLimitParams::OrHash,
21
24
  Lithic::AuthRules::MerchantLockParameters::OrHash,
22
- Lithic::AuthRules::Conditional3DSActionParameters::OrHash
25
+ Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
26
+ Lithic::AuthRules::V2CreateParams::Parameters::ConditionalAuthorizationActionParameters::OrHash
23
27
  ),
24
28
  type: Lithic::AuthRules::V2CreateParams::Type::OrSymbol,
25
29
  excluded_card_tokens: T::Array[String],
@@ -27,23 +31,29 @@ module Lithic
27
31
  ).returns(Lithic::Models::AuthRules::V2CreateResponse)
28
32
  end
29
33
  def create(
30
- # Account tokens to which the Auth Rule applies.
31
- account_tokens:,
32
34
  # Card tokens to which the Auth Rule applies.
33
35
  card_tokens:,
34
36
  # Whether the Auth Rule applies to all authorizations on the card program.
35
37
  program_level:,
38
+ # Account tokens to which the Auth Rule applies.
39
+ account_tokens: nil,
40
+ # Business Account tokens to which the Auth Rule applies.
41
+ business_account_tokens: nil,
42
+ # The event stream during which the rule will be evaluated.
43
+ event_stream: nil,
36
44
  # Auth Rule Name
37
45
  name: nil,
38
46
  # Parameters for the Auth Rule
39
47
  parameters: nil,
40
- # The type of Auth Rule. Effectively determines the event stream during which it
41
- # will be evaluated.
48
+ # The type of Auth Rule. For certain rule types, this determines the event stream
49
+ # during which it will be evaluated. For rules that can be applied to one of
50
+ # several event streams, the effective one is defined by the separate
51
+ # `event_stream` field.
42
52
  #
43
53
  # - `CONDITIONAL_BLOCK`: AUTHORIZATION event stream.
44
54
  # - `VELOCITY_LIMIT`: AUTHORIZATION event stream.
45
55
  # - `MERCHANT_LOCK`: AUTHORIZATION event stream.
46
- # - `CONDITIONAL_3DS_ACTION`: THREE_DS_AUTHENTICATION event stream.
56
+ # - `CONDITIONAL_ACTION`: AUTHORIZATION or THREE_DS_AUTHENTICATION event stream.
47
57
  type: nil,
48
58
  # Card tokens to which the Auth Rule does not apply.
49
59
  excluded_card_tokens: nil,
@@ -73,7 +83,6 @@ module Lithic
73
83
  sig do
74
84
  params(
75
85
  auth_rule_token: String,
76
- account_tokens: T::Array[String],
77
86
  name: T.nilable(String),
78
87
  state: Lithic::AuthRules::V2UpdateParams::State::OrSymbol,
79
88
  card_tokens: T::Array[String],
@@ -85,8 +94,6 @@ module Lithic
85
94
  def update(
86
95
  # Globally unique identifier for the Auth Rule.
87
96
  auth_rule_token,
88
- # Account tokens to which the Auth Rule applies.
89
- account_tokens: nil,
90
97
  # Auth Rule Name
91
98
  name: nil,
92
99
  # The desired state of the Auth Rule.
@@ -109,6 +116,7 @@ module Lithic
109
116
  sig do
110
117
  params(
111
118
  account_token: String,
119
+ business_account_token: String,
112
120
  card_token: String,
113
121
  ending_before: String,
114
122
  event_stream:
@@ -126,6 +134,8 @@ module Lithic
126
134
  def list(
127
135
  # Only return Auth Rules that are bound to the provided account token.
128
136
  account_token: nil,
137
+ # Only return Auth Rules that are bound to the provided business account token.
138
+ business_account_token: nil,
129
139
  # Only return Auth Rules that are bound to the provided card token.
130
140
  card_token: nil,
131
141
  # A cursor representing an item's token before which a page of results should end.
@@ -165,9 +175,10 @@ module Lithic
165
175
  sig do
166
176
  params(
167
177
  auth_rule_token: String,
168
- account_tokens: T::Array[String],
169
178
  card_tokens: T::Array[String],
170
179
  program_level: T::Boolean,
180
+ account_tokens: T::Array[String],
181
+ business_account_tokens: T::Array[String],
171
182
  excluded_card_tokens: T::Array[String],
172
183
  request_options: Lithic::RequestOptions::OrHash
173
184
  ).returns(Lithic::Models::AuthRules::V2ApplyResponse)
@@ -175,12 +186,14 @@ module Lithic
175
186
  def apply(
176
187
  # Globally unique identifier for the Auth Rule.
177
188
  auth_rule_token,
178
- # Account tokens to which the Auth Rule applies.
179
- account_tokens:,
180
189
  # Card tokens to which the Auth Rule applies.
181
190
  card_tokens:,
182
191
  # Whether the Auth Rule applies to all authorizations on the card program.
183
192
  program_level:,
193
+ # Account tokens to which the Auth Rule applies.
194
+ account_tokens: nil,
195
+ # Business Account tokens to which the Auth Rule applies.
196
+ business_account_tokens: nil,
184
197
  # Card tokens to which the Auth Rule does not apply.
185
198
  excluded_card_tokens: nil,
186
199
  request_options: {}
@@ -200,7 +213,8 @@ module Lithic
200
213
  Lithic::AuthRules::ConditionalBlockParameters::OrHash,
201
214
  Lithic::AuthRules::VelocityLimitParams::OrHash,
202
215
  Lithic::AuthRules::MerchantLockParameters::OrHash,
203
- Lithic::AuthRules::Conditional3DSActionParameters::OrHash
216
+ Lithic::AuthRules::Conditional3DSActionParameters::OrHash,
217
+ Lithic::AuthRules::V2DraftParams::Parameters::ConditionalAuthorizationActionParameters::OrHash
204
218
  )
205
219
  ),
206
220
  request_options: Lithic::RequestOptions::OrHash
@@ -14,12 +14,15 @@ module Lithic
14
14
  to_financial_account_token: String,
15
15
  type: Lithic::BookTransferCreateParams::Type::OrSymbol,
16
16
  token: String,
17
+ external_id: String,
17
18
  memo: String,
19
+ on_closed_account:
20
+ Lithic::BookTransferCreateParams::OnClosedAccount::OrSymbol,
18
21
  request_options: Lithic::RequestOptions::OrHash
19
22
  ).returns(Lithic::BookTransferResponse)
20
23
  end
21
24
  def create(
22
- # Amount to be transferred in the currencys smallest unit (e.g., cents for USD).
25
+ # Amount to be transferred in the currency's smallest unit (e.g., cents for USD).
23
26
  # This should always be a positive value.
24
27
  amount:,
25
28
  # Category of the book transfer
@@ -32,13 +35,17 @@ module Lithic
32
35
  # Globally unique identifier for the financial account or card that will receive
33
36
  # the funds. Accepted type dependent on the program's use case.
34
37
  to_financial_account_token:,
35
- # Type of book_transfer
38
+ # Type of the book transfer
36
39
  type:,
37
40
  # Customer-provided token that will serve as an idempotency token. This token will
38
41
  # become the transaction token.
39
42
  token: nil,
43
+ # External ID defined by the customer
44
+ external_id: nil,
40
45
  # Optional descriptor for the transfer.
41
46
  memo: nil,
47
+ # What to do if the financial account is closed when posting an operation
48
+ on_closed_account: nil,
42
49
  request_options: {}
43
50
  )
44
51
  end
@@ -23,7 +23,7 @@ module Lithic
23
23
  # A cursor representing an item's token before which a page of results should end.
24
24
  # Used to retrieve the previous page of results before this item.
25
25
  ending_before: nil,
26
- # Page size (for pagination).
26
+ # Number of records per page.
27
27
  page_size: nil,
28
28
  # A cursor representing an item's token after which a page of results should
29
29
  # begin. Used to retrieve the next page of results after this item.
@@ -8,7 +8,7 @@ module Lithic
8
8
  params(
9
9
  tokenization_token: String,
10
10
  request_options: Lithic::RequestOptions::OrHash
11
- ).returns(Lithic::Models::TokenizationRetrieveResponse)
11
+ ).returns(Lithic::Tokenization)
12
12
  end
13
13
  def retrieve(
14
14
  # Tokenization token
@@ -71,6 +71,8 @@ module Lithic
71
71
 
72
72
  attr_reader network_programs: Lithic::Resources::NetworkPrograms
73
73
 
74
+ attr_reader account_activity: Lithic::Resources::AccountActivity
75
+
74
76
  def api_status: (
75
77
  ?request_options: Lithic::request_opts
76
78
  ) -> Lithic::APIStatus
@@ -99,7 +99,7 @@ module Lithic
99
99
  retry_count: Integer
100
100
  ) -> Float
101
101
 
102
- private def send_request: (
102
+ def send_request: (
103
103
  Lithic::Internal::Transport::BaseClient::request_input request,
104
104
  redirect_count: Integer,
105
105
  retry_count: Integer,
@@ -39,6 +39,23 @@ module Lithic
39
39
  | Lithic::Internal::Type::Converter::input spec
40
40
  ) -> (^-> top)
41
41
 
42
+ def self.meta_info: (
43
+ {
44
+ const: (nil | bool | Integer | Float | Symbol)?,
45
+ enum: ^-> Lithic::Internal::Type::Converter::input?,
46
+ union: ^-> Lithic::Internal::Type::Converter::input?
47
+ }
48
+ | ^-> Lithic::Internal::Type::Converter::input
49
+ | Lithic::Internal::Type::Converter::input type_info,
50
+ {
51
+ const: (nil | bool | Integer | Float | Symbol)?,
52
+ enum: ^-> Lithic::Internal::Type::Converter::input?,
53
+ union: ^-> Lithic::Internal::Type::Converter::input?
54
+ }
55
+ | ^-> Lithic::Internal::Type::Converter::input
56
+ | Lithic::Internal::Type::Converter::input spec
57
+ ) -> ::Hash[Symbol, top]
58
+
42
59
  def self.new_coerce_state: (
43
60
  ?translate_names: bool
44
61
  ) -> Lithic::Internal::Type::Converter::coerce_state
@@ -5,9 +5,9 @@ module Lithic
5
5
  include Lithic::Internal::Type::Converter
6
6
  include Lithic::Internal::Util::SorbetRuntimeSupport
7
7
 
8
- private def self.known_variants: -> ::Array[[Symbol?, (^-> Lithic::Internal::Type::Converter::input)]]
8
+ private def self.known_variants: -> ::Array[[Symbol?, (^-> Lithic::Internal::Type::Converter::input), ::Hash[Symbol, top]]]
9
9
 
10
- def self.derefed_variants: -> ::Array[[Symbol?, top]]
10
+ def self.derefed_variants: -> ::Array[[Symbol?, top, ::Hash[Symbol, top]]]
11
11
 
12
12
  def self.variants: -> ::Array[top]
13
13
 
@@ -0,0 +1,173 @@
1
+ module Lithic
2
+ module Models
3
+ type account_activity_list_params =
4
+ {
5
+ account_token: String,
6
+ begin_: Time,
7
+ business_account_token: String,
8
+ category: Lithic::Models::AccountActivityListParams::category,
9
+ end_: Time,
10
+ ending_before: String,
11
+ financial_account_token: String,
12
+ page_size: Integer,
13
+ result: Lithic::Models::AccountActivityListParams::result,
14
+ starting_after: String,
15
+ status: Lithic::Models::AccountActivityListParams::status
16
+ }
17
+ & Lithic::Internal::Type::request_parameters
18
+
19
+ class AccountActivityListParams < Lithic::Internal::Type::BaseModel
20
+ extend Lithic::Internal::Type::RequestParameters::Converter
21
+ include Lithic::Internal::Type::RequestParameters
22
+
23
+ attr_reader account_token: String?
24
+
25
+ def account_token=: (String) -> String
26
+
27
+ attr_reader begin_: Time?
28
+
29
+ def begin_=: (Time) -> Time
30
+
31
+ attr_reader business_account_token: String?
32
+
33
+ def business_account_token=: (String) -> String
34
+
35
+ attr_reader category: Lithic::Models::AccountActivityListParams::category?
36
+
37
+ def category=: (
38
+ Lithic::Models::AccountActivityListParams::category
39
+ ) -> Lithic::Models::AccountActivityListParams::category
40
+
41
+ attr_reader end_: Time?
42
+
43
+ def end_=: (Time) -> Time
44
+
45
+ attr_reader ending_before: String?
46
+
47
+ def ending_before=: (String) -> String
48
+
49
+ attr_reader financial_account_token: String?
50
+
51
+ def financial_account_token=: (String) -> String
52
+
53
+ attr_reader page_size: Integer?
54
+
55
+ def page_size=: (Integer) -> Integer
56
+
57
+ attr_reader result: Lithic::Models::AccountActivityListParams::result?
58
+
59
+ def result=: (
60
+ Lithic::Models::AccountActivityListParams::result
61
+ ) -> Lithic::Models::AccountActivityListParams::result
62
+
63
+ attr_reader starting_after: String?
64
+
65
+ def starting_after=: (String) -> String
66
+
67
+ attr_reader status: Lithic::Models::AccountActivityListParams::status?
68
+
69
+ def status=: (
70
+ Lithic::Models::AccountActivityListParams::status
71
+ ) -> Lithic::Models::AccountActivityListParams::status
72
+
73
+ def initialize: (
74
+ ?account_token: String,
75
+ ?begin_: Time,
76
+ ?business_account_token: String,
77
+ ?category: Lithic::Models::AccountActivityListParams::category,
78
+ ?end_: Time,
79
+ ?ending_before: String,
80
+ ?financial_account_token: String,
81
+ ?page_size: Integer,
82
+ ?result: Lithic::Models::AccountActivityListParams::result,
83
+ ?starting_after: String,
84
+ ?status: Lithic::Models::AccountActivityListParams::status,
85
+ ?request_options: Lithic::request_opts
86
+ ) -> void
87
+
88
+ def to_hash: -> {
89
+ account_token: String,
90
+ begin_: Time,
91
+ business_account_token: String,
92
+ category: Lithic::Models::AccountActivityListParams::category,
93
+ end_: Time,
94
+ ending_before: String,
95
+ financial_account_token: String,
96
+ page_size: Integer,
97
+ result: Lithic::Models::AccountActivityListParams::result,
98
+ starting_after: String,
99
+ status: Lithic::Models::AccountActivityListParams::status,
100
+ request_options: Lithic::RequestOptions
101
+ }
102
+
103
+ type category =
104
+ :ACH
105
+ | :BALANCE_OR_FUNDING
106
+ | :CARD
107
+ | :EXTERNAL_ACH
108
+ | :EXTERNAL_CHECK
109
+ | :EXTERNAL_TRANSFER
110
+ | :EXTERNAL_WIRE
111
+ | :MANAGEMENT_ADJUSTMENT
112
+ | :MANAGEMENT_DISPUTE
113
+ | :MANAGEMENT_FEE
114
+ | :MANAGEMENT_REWARD
115
+ | :MANAGEMENT_DISBURSEMENT
116
+ | :PROGRAM_FUNDING
117
+
118
+ module Category
119
+ extend Lithic::Internal::Type::Enum
120
+
121
+ ACH: :ACH
122
+ BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING
123
+ CARD: :CARD
124
+ EXTERNAL_ACH: :EXTERNAL_ACH
125
+ EXTERNAL_CHECK: :EXTERNAL_CHECK
126
+ EXTERNAL_TRANSFER: :EXTERNAL_TRANSFER
127
+ EXTERNAL_WIRE: :EXTERNAL_WIRE
128
+ MANAGEMENT_ADJUSTMENT: :MANAGEMENT_ADJUSTMENT
129
+ MANAGEMENT_DISPUTE: :MANAGEMENT_DISPUTE
130
+ MANAGEMENT_FEE: :MANAGEMENT_FEE
131
+ MANAGEMENT_REWARD: :MANAGEMENT_REWARD
132
+ MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT
133
+ PROGRAM_FUNDING: :PROGRAM_FUNDING
134
+
135
+ def self?.values: -> ::Array[Lithic::Models::AccountActivityListParams::category]
136
+ end
137
+
138
+ type result = :APPROVED | :DECLINED
139
+
140
+ module Result
141
+ extend Lithic::Internal::Type::Enum
142
+
143
+ APPROVED: :APPROVED
144
+ DECLINED: :DECLINED
145
+
146
+ def self?.values: -> ::Array[Lithic::Models::AccountActivityListParams::result]
147
+ end
148
+
149
+ type status =
150
+ :DECLINED
151
+ | :EXPIRED
152
+ | :PENDING
153
+ | :RETURNED
154
+ | :REVERSED
155
+ | :SETTLED
156
+ | :VOIDED
157
+
158
+ module Status
159
+ extend Lithic::Internal::Type::Enum
160
+
161
+ DECLINED: :DECLINED
162
+ EXPIRED: :EXPIRED
163
+ PENDING: :PENDING
164
+ RETURNED: :RETURNED
165
+ REVERSED: :REVERSED
166
+ SETTLED: :SETTLED
167
+ VOIDED: :VOIDED
168
+
169
+ def self?.values: -> ::Array[Lithic::Models::AccountActivityListParams::status]
170
+ end
171
+ end
172
+ end
173
+ end