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
@@ -3,7 +3,7 @@
3
3
  module Lithic
4
4
  module Resources
5
5
  class Disputes
6
- # Initiate a dispute.
6
+ # Request a chargeback.
7
7
  sig do
8
8
  params(
9
9
  amount: Integer,
@@ -15,21 +15,21 @@ module Lithic
15
15
  ).returns(Lithic::Dispute)
16
16
  end
17
17
  def create(
18
- # Amount to dispute
18
+ # Amount for chargeback
19
19
  amount:,
20
- # Reason for dispute
20
+ # Reason for chargeback
21
21
  reason:,
22
- # Transaction to dispute
22
+ # Transaction for chargeback
23
23
  transaction_token:,
24
- # Date the customer filed the dispute
24
+ # Date the customer filed the chargeback request
25
25
  customer_filed_date: nil,
26
- # Customer description of dispute
26
+ # Customer description
27
27
  customer_note: nil,
28
28
  request_options: {}
29
29
  )
30
30
  end
31
31
 
32
- # Get dispute.
32
+ # Get chargeback request.
33
33
  sig do
34
34
  params(
35
35
  dispute_token: String,
@@ -39,7 +39,7 @@ module Lithic
39
39
  def retrieve(dispute_token, request_options: {})
40
40
  end
41
41
 
42
- # Update dispute. Can only be modified if status is `NEW`.
42
+ # Update chargeback request. Can only be modified if status is `NEW`.
43
43
  sig do
44
44
  params(
45
45
  dispute_token: String,
@@ -52,19 +52,19 @@ module Lithic
52
52
  end
53
53
  def update(
54
54
  dispute_token,
55
- # Amount to dispute
55
+ # Amount for chargeback
56
56
  amount: nil,
57
- # Date the customer filed the dispute
57
+ # Date the customer filed the chargeback request
58
58
  customer_filed_date: nil,
59
- # Customer description of dispute
59
+ # Customer description
60
60
  customer_note: nil,
61
- # Reason for dispute
61
+ # Reason for chargeback
62
62
  reason: nil,
63
63
  request_options: {}
64
64
  )
65
65
  end
66
66
 
67
- # List disputes.
67
+ # List chargeback requests.
68
68
  sig do
69
69
  params(
70
70
  begin_: Time,
@@ -92,7 +92,7 @@ module Lithic
92
92
  # A cursor representing an item's token after which a page of results should
93
93
  # begin. Used to retrieve the next page of results after this item.
94
94
  starting_after: nil,
95
- # List disputes of a specific status.
95
+ # Filter by status.
96
96
  status: nil,
97
97
  # Transaction tokens to filter by.
98
98
  transaction_tokens: nil,
@@ -100,7 +100,7 @@ module Lithic
100
100
  )
101
101
  end
102
102
 
103
- # Withdraw dispute.
103
+ # Withdraw chargeback request.
104
104
  sig do
105
105
  params(
106
106
  dispute_token: String,
@@ -110,8 +110,8 @@ module Lithic
110
110
  def delete(dispute_token, request_options: {})
111
111
  end
112
112
 
113
- # Soft delete evidence for a dispute. Evidence will not be reviewed or submitted
114
- # by Lithic after it is withdrawn.
113
+ # Soft delete evidence for a chargeback request. Evidence will not be reviewed or
114
+ # submitted by Lithic after it is withdrawn.
115
115
  sig do
116
116
  params(
117
117
  evidence_token: String,
@@ -122,8 +122,8 @@ module Lithic
122
122
  def delete_evidence(evidence_token, dispute_token:, request_options: {})
123
123
  end
124
124
 
125
- # Use this endpoint to upload evidences for the dispute. It will return a URL to
126
- # upload your documents to. The URL will expire in 30 minutes.
125
+ # Use this endpoint to upload evidence for a chargeback request. It will return a
126
+ # URL to upload your documents to. The URL will expire in 30 minutes.
127
127
  #
128
128
  # Uploaded documents must either be a `jpg`, `png` or `pdf` file, and each must be
129
129
  # less than 5 GiB.
@@ -142,7 +142,7 @@ module Lithic
142
142
  )
143
143
  end
144
144
 
145
- # List evidence metadata for a dispute.
145
+ # List evidence for a chargeback request.
146
146
  sig do
147
147
  params(
148
148
  dispute_token: String,
@@ -174,7 +174,7 @@ module Lithic
174
174
  )
175
175
  end
176
176
 
177
- # Get a dispute's evidence metadata.
177
+ # Get evidence for a chargeback request.
178
178
  sig do
179
179
  params(
180
180
  evidence_token: String,
@@ -10,6 +10,7 @@ module Lithic
10
10
  financial_account_token: String,
11
11
  credit_product_token: String,
12
12
  effective_date: Date,
13
+ penalty_rates: T.anything,
13
14
  tier_name: String,
14
15
  tier_rates: T.anything,
15
16
  request_options: Lithic::RequestOptions::OrHash
@@ -24,6 +25,8 @@ module Lithic
24
25
  credit_product_token:,
25
26
  # Date the tier should be effective in YYYY-MM-DD format
26
27
  effective_date:,
28
+ # Custom rates per category for penalties
29
+ penalty_rates: nil,
27
30
  # Name of a tier contained in the credit product. Mutually exclusive with
28
31
  # tier_rates
29
32
  tier_name: nil,
@@ -57,6 +60,7 @@ module Lithic
57
60
  params(
58
61
  effective_date: Date,
59
62
  financial_account_token: String,
63
+ penalty_rates: T.anything,
60
64
  tier_name: String,
61
65
  tier_rates: T.anything,
62
66
  request_options: Lithic::RequestOptions::OrHash
@@ -69,6 +73,8 @@ module Lithic
69
73
  effective_date,
70
74
  # Path param: Globally unique identifier for financial account
71
75
  financial_account_token:,
76
+ # Body param: Custom rates per category for penalties
77
+ penalty_rates: nil,
72
78
  # Body param: Name of a tier contained in the credit product. Mutually exclusive
73
79
  # with tier_rates
74
80
  tier_name: nil,
@@ -0,0 +1,111 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Resources
5
+ class Holds
6
+ # Create a hold on a financial account. Holds reserve funds by moving them from
7
+ # available to pending balance. They can be resolved via settlement (linked to a
8
+ # payment or book transfer), voiding, or expiration.
9
+ sig do
10
+ params(
11
+ financial_account_token: String,
12
+ amount: Integer,
13
+ token: String,
14
+ expiration_datetime: Time,
15
+ memo: T.nilable(String),
16
+ user_defined_id: String,
17
+ request_options: Lithic::RequestOptions::OrHash
18
+ ).returns(Lithic::Hold)
19
+ end
20
+ def create(
21
+ # Globally unique identifier for the financial account.
22
+ financial_account_token,
23
+ # Amount to hold in cents
24
+ amount:,
25
+ # Customer-provided token for idempotency. Becomes the hold token.
26
+ token: nil,
27
+ # When the hold should auto-expire
28
+ expiration_datetime: nil,
29
+ # Reason for the hold
30
+ memo: nil,
31
+ # User-provided identifier for the hold
32
+ user_defined_id: nil,
33
+ request_options: {}
34
+ )
35
+ end
36
+
37
+ # Get hold by token.
38
+ sig do
39
+ params(
40
+ hold_token: String,
41
+ request_options: Lithic::RequestOptions::OrHash
42
+ ).returns(Lithic::Hold)
43
+ end
44
+ def retrieve(
45
+ # Globally unique identifier for the hold.
46
+ hold_token,
47
+ request_options: {}
48
+ )
49
+ end
50
+
51
+ # List holds for a financial account.
52
+ sig do
53
+ params(
54
+ financial_account_token: String,
55
+ begin_: Time,
56
+ end_: Time,
57
+ ending_before: String,
58
+ page_size: Integer,
59
+ starting_after: String,
60
+ status: Lithic::HoldListParams::Status::OrSymbol,
61
+ request_options: Lithic::RequestOptions::OrHash
62
+ ).returns(Lithic::Internal::CursorPage[Lithic::Hold])
63
+ end
64
+ def list(
65
+ # Globally unique identifier for the financial account.
66
+ financial_account_token,
67
+ # Date string in RFC 3339 format. Only entries created after the specified time
68
+ # will be included. UTC time zone.
69
+ begin_: nil,
70
+ # Date string in RFC 3339 format. Only entries created before the specified time
71
+ # will be included. UTC time zone.
72
+ end_: nil,
73
+ # A cursor representing an item's token before which a page of results should end.
74
+ # Used to retrieve the previous page of results before this item.
75
+ ending_before: nil,
76
+ # Page size (for pagination).
77
+ page_size: nil,
78
+ # A cursor representing an item's token after which a page of results should
79
+ # begin. Used to retrieve the next page of results after this item.
80
+ starting_after: nil,
81
+ # Hold status to filter by.
82
+ status: nil,
83
+ request_options: {}
84
+ )
85
+ end
86
+
87
+ # Void an active hold. This returns the held funds from pending back to available
88
+ # balance. Only holds in PENDING status can be voided.
89
+ sig do
90
+ params(
91
+ hold_token: String,
92
+ memo: T.nilable(String),
93
+ request_options: Lithic::RequestOptions::OrHash
94
+ ).returns(Lithic::Hold)
95
+ end
96
+ def void(
97
+ # Globally unique identifier for the hold.
98
+ hold_token,
99
+ # Reason for voiding the hold
100
+ memo: nil,
101
+ request_options: {}
102
+ )
103
+ end
104
+
105
+ # @api private
106
+ sig { params(client: Lithic::Client).returns(T.attached_class) }
107
+ def self.new(client:)
108
+ end
109
+ end
110
+ end
111
+ end
@@ -17,7 +17,6 @@ module Lithic
17
17
  Lithic::AccountHolderVerificationWebhookEvent,
18
18
  Lithic::AccountHolderDocumentUpdatedWebhookEvent,
19
19
  Lithic::CardAuthorizationApprovalRequestWebhookEvent,
20
- Lithic::TokenizationDecisioningRequestWebhookEvent,
21
20
  Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
22
21
  Lithic::BalanceUpdatedWebhookEvent,
23
22
  Lithic::BookTransferTransactionCreatedWebhookEvent,
@@ -71,7 +70,14 @@ module Lithic
71
70
  )
72
71
  )
73
72
  end
74
- def parse(payload, headers:, secret: nil)
73
+ def parse(
74
+ # The raw webhook payload as a string
75
+ payload,
76
+ # The raw HTTP headers that came with the payload
77
+ headers:,
78
+ # The webhook signing secret
79
+ secret: nil
80
+ )
75
81
  end
76
82
 
77
83
  sig { params(payload: String).returns(Lithic::ParsedWebhookEvent::Variants) }
@@ -15,6 +15,8 @@ module Lithic
15
15
 
16
16
  attr_reader api_key: String
17
17
 
18
+ attr_reader webhook_secret: String?
19
+
18
20
  attr_reader accounts: Lithic::Resources::Accounts
19
21
 
20
22
  attr_reader account_holders: Lithic::Resources::AccountHolders
@@ -75,6 +77,8 @@ module Lithic
75
77
 
76
78
  attr_reader network_programs: Lithic::Resources::NetworkPrograms
77
79
 
80
+ attr_reader holds: Lithic::Resources::Holds
81
+
78
82
  attr_reader account_activity: Lithic::Resources::AccountActivity
79
83
 
80
84
  attr_reader transfer_limits: Lithic::Resources::TransferLimits
@@ -89,6 +93,7 @@ module Lithic
89
93
 
90
94
  def initialize: (
91
95
  ?api_key: String?,
96
+ ?webhook_secret: String?,
92
97
  ?environment: :production | :sandbox | nil,
93
98
  ?base_url: String?,
94
99
  ?max_retries: Integer,
@@ -102,6 +102,7 @@ module Lithic
102
102
 
103
103
  type category =
104
104
  :ACH
105
+ | :WIRE
105
106
  | :BALANCE_OR_FUNDING
106
107
  | :FEE
107
108
  | :REWARD
@@ -120,12 +121,14 @@ module Lithic
120
121
  | :MANAGEMENT_FEE
121
122
  | :MANAGEMENT_REWARD
122
123
  | :MANAGEMENT_DISBURSEMENT
124
+ | :HOLD
123
125
  | :PROGRAM_FUNDING
124
126
 
125
127
  module Category
126
128
  extend Lithic::Internal::Type::Enum
127
129
 
128
130
  ACH: :ACH
131
+ WIRE: :WIRE
129
132
  BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING
130
133
  FEE: :FEE
131
134
  REWARD: :REWARD
@@ -144,6 +147,7 @@ module Lithic
144
147
  MANAGEMENT_FEE: :MANAGEMENT_FEE
145
148
  MANAGEMENT_REWARD: :MANAGEMENT_REWARD
146
149
  MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT
150
+ HOLD: :HOLD
147
151
  PROGRAM_FUNDING: :PROGRAM_FUNDING
148
152
 
149
153
  def self?.values: -> ::Array[Lithic::Models::AccountActivityListParams::category]
@@ -7,6 +7,7 @@ module Lithic
7
7
  | Lithic::Payment
8
8
  | Lithic::ExternalPayment
9
9
  | Lithic::ManagementOperationTransaction
10
+ | Lithic::Hold
10
11
 
11
12
  module AccountActivityListResponse
12
13
  extend Lithic::Internal::Type::Union
@@ -89,6 +90,7 @@ module Lithic
89
90
 
90
91
  type category =
91
92
  :ACH
93
+ | :WIRE
92
94
  | :BALANCE_OR_FUNDING
93
95
  | :FEE
94
96
  | :REWARD
@@ -107,12 +109,14 @@ module Lithic
107
109
  | :MANAGEMENT_FEE
108
110
  | :MANAGEMENT_REWARD
109
111
  | :MANAGEMENT_DISBURSEMENT
112
+ | :HOLD
110
113
  | :PROGRAM_FUNDING
111
114
 
112
115
  module Category
113
116
  extend Lithic::Internal::Type::Enum
114
117
 
115
118
  ACH: :ACH
119
+ WIRE: :WIRE
116
120
  BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING
117
121
  FEE: :FEE
118
122
  REWARD: :REWARD
@@ -131,6 +135,7 @@ module Lithic
131
135
  MANAGEMENT_FEE: :MANAGEMENT_FEE
132
136
  MANAGEMENT_REWARD: :MANAGEMENT_REWARD
133
137
  MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT
138
+ HOLD: :HOLD
134
139
  PROGRAM_FUNDING: :PROGRAM_FUNDING
135
140
 
136
141
  def self?.values: -> ::Array[Lithic::Models::AccountActivityListResponse::Internal::category]
@@ -7,6 +7,7 @@ module Lithic
7
7
  | Lithic::Payment
8
8
  | Lithic::ExternalPayment
9
9
  | Lithic::ManagementOperationTransaction
10
+ | Lithic::Hold
10
11
 
11
12
  module AccountActivityRetrieveTransactionResponse
12
13
  extend Lithic::Internal::Type::Union
@@ -89,6 +90,7 @@ module Lithic
89
90
 
90
91
  type category =
91
92
  :ACH
93
+ | :WIRE
92
94
  | :BALANCE_OR_FUNDING
93
95
  | :FEE
94
96
  | :REWARD
@@ -107,12 +109,14 @@ module Lithic
107
109
  | :MANAGEMENT_FEE
108
110
  | :MANAGEMENT_REWARD
109
111
  | :MANAGEMENT_DISBURSEMENT
112
+ | :HOLD
110
113
  | :PROGRAM_FUNDING
111
114
 
112
115
  module Category
113
116
  extend Lithic::Internal::Type::Enum
114
117
 
115
118
  ACH: :ACH
119
+ WIRE: :WIRE
116
120
  BALANCE_OR_FUNDING: :BALANCE_OR_FUNDING
117
121
  FEE: :FEE
118
122
  REWARD: :REWARD
@@ -131,6 +135,7 @@ module Lithic
131
135
  MANAGEMENT_FEE: :MANAGEMENT_FEE
132
136
  MANAGEMENT_REWARD: :MANAGEMENT_REWARD
133
137
  MANAGEMENT_DISBURSEMENT: :MANAGEMENT_DISBURSEMENT
138
+ HOLD: :HOLD
134
139
  PROGRAM_FUNDING: :PROGRAM_FUNDING
135
140
 
136
141
  def self?.values: -> ::Array[Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal::category]
@@ -17,6 +17,8 @@ module Lithic
17
17
  program_level: bool,
18
18
  state: Lithic::Models::AuthRules::AuthRule::state,
19
19
  type: Lithic::Models::AuthRules::AuthRule::type_,
20
+ excluded_account_tokens: ::Array[String],
21
+ excluded_business_account_tokens: ::Array[String],
20
22
  excluded_card_tokens: ::Array[String]
21
23
  }
22
24
 
@@ -45,6 +47,16 @@ module Lithic
45
47
 
46
48
  attr_accessor type: Lithic::Models::AuthRules::AuthRule::type_
47
49
 
50
+ attr_reader excluded_account_tokens: ::Array[String]?
51
+
52
+ def excluded_account_tokens=: (::Array[String]) -> ::Array[String]
53
+
54
+ attr_reader excluded_business_account_tokens: ::Array[String]?
55
+
56
+ def excluded_business_account_tokens=: (
57
+ ::Array[String]
58
+ ) -> ::Array[String]
59
+
48
60
  attr_reader excluded_card_tokens: ::Array[String]?
49
61
 
50
62
  def excluded_card_tokens=: (::Array[String]) -> ::Array[String]
@@ -62,6 +74,8 @@ module Lithic
62
74
  program_level: bool,
63
75
  state: Lithic::Models::AuthRules::AuthRule::state,
64
76
  type: Lithic::Models::AuthRules::AuthRule::type_,
77
+ ?excluded_account_tokens: ::Array[String],
78
+ ?excluded_business_account_tokens: ::Array[String],
65
79
  ?excluded_card_tokens: ::Array[String]
66
80
  ) -> void
67
81
 
@@ -78,6 +92,8 @@ module Lithic
78
92
  program_level: bool,
79
93
  state: Lithic::Models::AuthRules::AuthRule::state,
80
94
  type: Lithic::Models::AuthRules::AuthRule::type_,
95
+ excluded_account_tokens: ::Array[String],
96
+ excluded_business_account_tokens: ::Array[String],
81
97
  excluded_card_tokens: ::Array[String]
82
98
  }
83
99
 
@@ -110,6 +126,7 @@ module Lithic
110
126
  | Lithic::AuthRules::ConditionalAuthorizationActionParameters
111
127
  | Lithic::AuthRules::ConditionalACHActionParameters
112
128
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
129
+ | Lithic::AuthRules::TypescriptCodeParameters
113
130
 
114
131
  module Parameters
115
132
  extend Lithic::Internal::Type::Union
@@ -120,22 +137,32 @@ module Lithic
120
137
 
121
138
  type draft_version =
122
139
  {
140
+ error: String?,
123
141
  parameters: Lithic::Models::AuthRules::AuthRule::DraftVersion::parameters,
142
+ state: Lithic::Models::AuthRules::AuthRule::DraftVersion::state,
124
143
  version: Integer
125
144
  }
126
145
 
127
146
  class DraftVersion < Lithic::Internal::Type::BaseModel
147
+ attr_accessor error: String?
148
+
128
149
  attr_accessor parameters: Lithic::Models::AuthRules::AuthRule::DraftVersion::parameters
129
150
 
151
+ attr_accessor state: Lithic::Models::AuthRules::AuthRule::DraftVersion::state
152
+
130
153
  attr_accessor version: Integer
131
154
 
132
155
  def initialize: (
156
+ error: String?,
133
157
  parameters: Lithic::Models::AuthRules::AuthRule::DraftVersion::parameters,
158
+ state: Lithic::Models::AuthRules::AuthRule::DraftVersion::state,
134
159
  version: Integer
135
160
  ) -> void
136
161
 
137
162
  def to_hash: -> {
163
+ error: String?,
138
164
  parameters: Lithic::Models::AuthRules::AuthRule::DraftVersion::parameters,
165
+ state: Lithic::Models::AuthRules::AuthRule::DraftVersion::state,
139
166
  version: Integer
140
167
  }
141
168
 
@@ -147,12 +174,25 @@ module Lithic
147
174
  | Lithic::AuthRules::ConditionalAuthorizationActionParameters
148
175
  | Lithic::AuthRules::ConditionalACHActionParameters
149
176
  | Lithic::AuthRules::ConditionalTokenizationActionParameters
177
+ | Lithic::AuthRules::TypescriptCodeParameters
150
178
 
151
179
  module Parameters
152
180
  extend Lithic::Internal::Type::Union
153
181
 
154
182
  def self?.variants: -> ::Array[Lithic::Models::AuthRules::AuthRule::DraftVersion::parameters]
155
183
  end
184
+
185
+ type state = :PENDING | :SHADOWING | :ERROR
186
+
187
+ module State
188
+ extend Lithic::Internal::Type::Enum
189
+
190
+ PENDING: :PENDING
191
+ SHADOWING: :SHADOWING
192
+ ERROR: :ERROR
193
+
194
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::AuthRule::DraftVersion::state]
195
+ end
156
196
  end
157
197
 
158
198
  type state = :ACTIVE | :INACTIVE
@@ -171,6 +211,7 @@ module Lithic
171
211
  | :VELOCITY_LIMIT
172
212
  | :MERCHANT_LOCK
173
213
  | :CONDITIONAL_ACTION
214
+ | :TYPESCRIPT_CODE
174
215
 
175
216
  module Type
176
217
  extend Lithic::Internal::Type::Enum
@@ -179,6 +220,7 @@ module Lithic
179
220
  VELOCITY_LIMIT: :VELOCITY_LIMIT
180
221
  MERCHANT_LOCK: :MERCHANT_LOCK
181
222
  CONDITIONAL_ACTION: :CONDITIONAL_ACTION
223
+ TYPESCRIPT_CODE: :TYPESCRIPT_CODE
182
224
 
183
225
  def self?.values: -> ::Array[Lithic::Models::AuthRules::AuthRule::type_]
184
226
  end
@@ -0,0 +1,67 @@
1
+ module Lithic
2
+ module Models
3
+ class AuthRuleVersion = AuthRules::AuthRuleVersion
4
+
5
+ module AuthRules
6
+ type auth_rule_version =
7
+ {
8
+ created: Time,
9
+ parameters: Lithic::Models::AuthRules::AuthRuleVersion::parameters,
10
+ state: Lithic::Models::AuthRules::AuthRuleVersion::state,
11
+ version: Integer
12
+ }
13
+
14
+ class AuthRuleVersion < Lithic::Internal::Type::BaseModel
15
+ attr_accessor created: Time
16
+
17
+ attr_accessor parameters: Lithic::Models::AuthRules::AuthRuleVersion::parameters
18
+
19
+ attr_accessor state: Lithic::Models::AuthRules::AuthRuleVersion::state
20
+
21
+ attr_accessor version: Integer
22
+
23
+ def initialize: (
24
+ created: Time,
25
+ parameters: Lithic::Models::AuthRules::AuthRuleVersion::parameters,
26
+ state: Lithic::Models::AuthRules::AuthRuleVersion::state,
27
+ version: Integer
28
+ ) -> void
29
+
30
+ def to_hash: -> {
31
+ created: Time,
32
+ parameters: Lithic::Models::AuthRules::AuthRuleVersion::parameters,
33
+ state: Lithic::Models::AuthRules::AuthRuleVersion::state,
34
+ version: Integer
35
+ }
36
+
37
+ type parameters =
38
+ Lithic::AuthRules::ConditionalBlockParameters
39
+ | Lithic::AuthRules::VelocityLimitParams
40
+ | Lithic::AuthRules::MerchantLockParameters
41
+ | Lithic::AuthRules::Conditional3DSActionParameters
42
+ | Lithic::AuthRules::ConditionalAuthorizationActionParameters
43
+ | Lithic::AuthRules::ConditionalACHActionParameters
44
+ | Lithic::AuthRules::ConditionalTokenizationActionParameters
45
+ | Lithic::AuthRules::TypescriptCodeParameters
46
+
47
+ module Parameters
48
+ extend Lithic::Internal::Type::Union
49
+
50
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::AuthRuleVersion::parameters]
51
+ end
52
+
53
+ type state = :ACTIVE | :SHADOW | :INACTIVE
54
+
55
+ module State
56
+ extend Lithic::Internal::Type::Enum
57
+
58
+ ACTIVE: :ACTIVE
59
+ SHADOW: :SHADOW
60
+ INACTIVE: :INACTIVE
61
+
62
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::AuthRuleVersion::state]
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end