lithic 0.23.0 → 0.24.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 (158) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/models/account_activity_list_params.rb +3 -3
  5. data/lib/lithic/models/account_holder_list_params.rb +3 -3
  6. data/lib/lithic/models/account_list_params.rb +3 -3
  7. data/lib/lithic/models/account_update_params.rb +10 -7
  8. data/lib/lithic/models/auth_rules/auth_rule.rb +6 -10
  9. data/lib/lithic/models/auth_rules/auth_rule_version.rb +3 -5
  10. data/lib/lithic/models/auth_rules/conditional_authorization_action_parameters.rb +91 -8
  11. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +9 -1
  12. data/lib/lithic/models/auth_rules/v2_create_params.rb +12 -20
  13. data/lib/lithic/models/auth_rules/v2_draft_params.rb +3 -5
  14. data/lib/lithic/models/auth_rules/v2_list_results_params.rb +3 -3
  15. data/lib/lithic/models/book_transfer_list_params.rb +3 -3
  16. data/lib/lithic/models/card_bulk_order_list_params.rb +3 -3
  17. data/lib/lithic/models/card_list_params.rb +3 -3
  18. data/lib/lithic/models/cards/financial_transaction_list_params.rb +3 -3
  19. data/lib/lithic/models/dispute_list_evidences_params.rb +3 -3
  20. data/lib/lithic/models/dispute_list_params.rb +3 -3
  21. data/lib/lithic/models/event_list_attempts_params.rb +3 -3
  22. data/lib/lithic/models/event_list_params.rb +3 -3
  23. data/lib/lithic/models/events/subscription_list_attempts_params.rb +3 -3
  24. data/lib/lithic/models/events/subscription_recover_params.rb +3 -3
  25. data/lib/lithic/models/events/subscription_replay_missing_params.rb +3 -3
  26. data/lib/lithic/models/external_payment_list_params.rb +3 -3
  27. data/lib/lithic/models/financial_accounts/financial_transaction_list_params.rb +3 -3
  28. data/lib/lithic/models/financial_accounts/installment_plan.rb +33 -3
  29. data/lib/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rb +95 -15
  30. data/lib/lithic/models/financial_accounts/installment_plans/statement_list_params.rb +3 -3
  31. data/lib/lithic/models/financial_accounts/loan_tape_list_params.rb +3 -3
  32. data/lib/lithic/models/financial_accounts/statement_list_params.rb +3 -3
  33. data/lib/lithic/models/funding_event_list_params.rb +3 -3
  34. data/lib/lithic/models/hold_list_params.rb +3 -3
  35. data/lib/lithic/models/kyb.rb +2 -0
  36. data/lib/lithic/models/management_operation_create_params.rb +7 -19
  37. data/lib/lithic/models/management_operation_list_params.rb +3 -3
  38. data/lib/lithic/models/network_program_list_params.rb +3 -3
  39. data/lib/lithic/models/payment_list_params.rb +3 -3
  40. data/lib/lithic/models/reports/settlement/network_total_list_params.rb +3 -3
  41. data/lib/lithic/models/three_ds_authentication.rb +12 -1
  42. data/lib/lithic/models/three_ds_authentication_challenge_webhook_event.rb +13 -1
  43. data/lib/lithic/models/tokenization.rb +44 -1
  44. data/lib/lithic/models/tokenization_list_params.rb +3 -2
  45. data/lib/lithic/models/transaction_list_params.rb +3 -3
  46. data/lib/lithic/models/transaction_monitoring/case_list_params.rb +3 -3
  47. data/lib/lithic/resources/account_activity.rb +1 -1
  48. data/lib/lithic/resources/account_holders.rb +1 -1
  49. data/lib/lithic/resources/accounts.rb +1 -1
  50. data/lib/lithic/resources/auth_rules/v2.rb +2 -2
  51. data/lib/lithic/resources/book_transfers.rb +1 -1
  52. data/lib/lithic/resources/card_bulk_orders.rb +1 -1
  53. data/lib/lithic/resources/cards/financial_transactions.rb +1 -1
  54. data/lib/lithic/resources/cards.rb +1 -1
  55. data/lib/lithic/resources/disputes.rb +2 -2
  56. data/lib/lithic/resources/events/subscriptions.rb +7 -7
  57. data/lib/lithic/resources/events.rb +2 -2
  58. data/lib/lithic/resources/external_payments.rb +1 -1
  59. data/lib/lithic/resources/financial_accounts/financial_transactions.rb +1 -1
  60. data/lib/lithic/resources/financial_accounts/installment_plans/statements.rb +1 -1
  61. data/lib/lithic/resources/financial_accounts/loan_tapes.rb +1 -1
  62. data/lib/lithic/resources/financial_accounts/statements.rb +1 -1
  63. data/lib/lithic/resources/funding_events.rb +1 -1
  64. data/lib/lithic/resources/holds.rb +1 -1
  65. data/lib/lithic/resources/management_operations.rb +3 -3
  66. data/lib/lithic/resources/network_programs.rb +1 -1
  67. data/lib/lithic/resources/payments.rb +1 -1
  68. data/lib/lithic/resources/reports/settlement/network_totals.rb +1 -1
  69. data/lib/lithic/resources/tokenizations.rb +1 -1
  70. data/lib/lithic/resources/transaction_monitoring/cases.rb +1 -1
  71. data/lib/lithic/resources/transactions.rb +1 -1
  72. data/lib/lithic/version.rb +1 -1
  73. data/lib/lithic.rb +0 -1
  74. data/rbi/lithic/models/account_activity_list_params.rbi +4 -4
  75. data/rbi/lithic/models/account_holder_list_params.rbi +4 -4
  76. data/rbi/lithic/models/account_list_params.rbi +4 -4
  77. data/rbi/lithic/models/account_update_params.rbi +20 -14
  78. data/rbi/lithic/models/auth_rules/auth_rule.rbi +4 -8
  79. data/rbi/lithic/models/auth_rules/auth_rule_version.rbi +2 -4
  80. data/rbi/lithic/models/auth_rules/conditional_authorization_action_parameters.rbi +200 -20
  81. data/rbi/lithic/models/auth_rules/v2/backtest_results.rbi +8 -0
  82. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +16 -32
  83. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +4 -8
  84. data/rbi/lithic/models/auth_rules/v2_list_results_params.rbi +4 -4
  85. data/rbi/lithic/models/book_transfer_list_params.rbi +4 -4
  86. data/rbi/lithic/models/card_bulk_order_list_params.rbi +4 -4
  87. data/rbi/lithic/models/card_list_params.rbi +4 -4
  88. data/rbi/lithic/models/cards/financial_transaction_list_params.rbi +4 -4
  89. data/rbi/lithic/models/dispute_list_evidences_params.rbi +4 -4
  90. data/rbi/lithic/models/dispute_list_params.rbi +4 -4
  91. data/rbi/lithic/models/event_list_attempts_params.rbi +4 -4
  92. data/rbi/lithic/models/event_list_params.rbi +4 -4
  93. data/rbi/lithic/models/events/subscription_list_attempts_params.rbi +4 -4
  94. data/rbi/lithic/models/events/subscription_recover_params.rbi +4 -4
  95. data/rbi/lithic/models/events/subscription_replay_missing_params.rbi +4 -4
  96. data/rbi/lithic/models/external_payment_list_params.rbi +4 -4
  97. data/rbi/lithic/models/financial_accounts/financial_transaction_list_params.rbi +4 -4
  98. data/rbi/lithic/models/financial_accounts/installment_plan.rbi +40 -6
  99. data/rbi/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbi +160 -24
  100. data/rbi/lithic/models/financial_accounts/installment_plans/statement_list_params.rbi +4 -4
  101. data/rbi/lithic/models/financial_accounts/loan_tape_list_params.rbi +4 -4
  102. data/rbi/lithic/models/financial_accounts/statement_list_params.rbi +4 -4
  103. data/rbi/lithic/models/funding_event_list_params.rbi +4 -4
  104. data/rbi/lithic/models/hold_list_params.rbi +4 -4
  105. data/rbi/lithic/models/kyb.rbi +4 -0
  106. data/rbi/lithic/models/management_operation_create_params.rbi +8 -82
  107. data/rbi/lithic/models/management_operation_list_params.rbi +4 -4
  108. data/rbi/lithic/models/network_program_list_params.rbi +4 -4
  109. data/rbi/lithic/models/payment_list_params.rbi +4 -4
  110. data/rbi/lithic/models/reports/settlement/network_total_list_params.rbi +4 -4
  111. data/rbi/lithic/models/three_ds_authentication.rbi +14 -0
  112. data/rbi/lithic/models/three_ds_authentication_challenge_webhook_event.rbi +10 -0
  113. data/rbi/lithic/models/tokenization.rbi +91 -3
  114. data/rbi/lithic/models/tokenization_list_params.rbi +7 -2
  115. data/rbi/lithic/models/transaction_list_params.rbi +4 -4
  116. data/rbi/lithic/models/transaction_monitoring/case_list_params.rbi +4 -4
  117. data/rbi/lithic/resources/account_activity.rbi +2 -2
  118. data/rbi/lithic/resources/account_holders.rbi +2 -2
  119. data/rbi/lithic/resources/accounts.rbi +12 -9
  120. data/rbi/lithic/resources/auth_rules/v2.rbi +3 -4
  121. data/rbi/lithic/resources/book_transfers.rbi +2 -2
  122. data/rbi/lithic/resources/card_bulk_orders.rbi +2 -2
  123. data/rbi/lithic/resources/cards/financial_transactions.rbi +2 -2
  124. data/rbi/lithic/resources/cards.rbi +2 -2
  125. data/rbi/lithic/resources/disputes.rbi +4 -4
  126. data/rbi/lithic/resources/events/subscriptions.rbi +10 -10
  127. data/rbi/lithic/resources/events.rbi +4 -4
  128. data/rbi/lithic/resources/external_payments.rbi +2 -2
  129. data/rbi/lithic/resources/financial_accounts/financial_transactions.rbi +2 -2
  130. data/rbi/lithic/resources/financial_accounts/installment_plans/statements.rbi +2 -2
  131. data/rbi/lithic/resources/financial_accounts/loan_tapes.rbi +2 -2
  132. data/rbi/lithic/resources/financial_accounts/statements.rbi +2 -2
  133. data/rbi/lithic/resources/funding_events.rbi +2 -2
  134. data/rbi/lithic/resources/holds.rbi +2 -2
  135. data/rbi/lithic/resources/management_operations.rbi +5 -3
  136. data/rbi/lithic/resources/network_programs.rbi +2 -2
  137. data/rbi/lithic/resources/payments.rbi +2 -2
  138. data/rbi/lithic/resources/reports/settlement/network_totals.rbi +2 -2
  139. data/rbi/lithic/resources/tokenizations.rbi +1 -1
  140. data/rbi/lithic/resources/transaction_monitoring/cases.rbi +2 -2
  141. data/rbi/lithic/resources/transactions.rbi +2 -2
  142. data/sig/lithic/models/auth_rules/auth_rule.rbs +0 -2
  143. data/sig/lithic/models/auth_rules/auth_rule_version.rbs +0 -1
  144. data/sig/lithic/models/auth_rules/conditional_authorization_action_parameters.rbs +64 -5
  145. data/sig/lithic/models/auth_rules/v2/backtest_results.rbs +5 -0
  146. data/sig/lithic/models/auth_rules/v2_create_params.rbs +0 -4
  147. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +0 -1
  148. data/sig/lithic/models/financial_accounts/installment_plan.rbs +25 -6
  149. data/sig/lithic/models/financial_accounts/installment_plans/installment_plan_statement.rbs +80 -21
  150. data/sig/lithic/models/management_operation_create_params.rbs +1 -33
  151. data/sig/lithic/models/three_ds_authentication.rbs +5 -0
  152. data/sig/lithic/models/three_ds_authentication_challenge_webhook_event.rbs +5 -0
  153. data/sig/lithic/models/tokenization.rbs +47 -4
  154. data/sig/lithic/models/tokenization_list_params.rbs +3 -1
  155. metadata +1 -4
  156. data/lib/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rb +0 -538
  157. data/rbi/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbi +0 -1161
  158. data/sig/lithic/models/auth_rules/conditional_authorization_adjustment_parameters.rbs +0 -278
@@ -44,8 +44,8 @@ module Lithic
44
44
  def list(
45
45
  # Globally unique identifier for financial account.
46
46
  financial_account_token,
47
- # Date string in RFC 3339 format. Only entries created after the specified date
48
- # will be included.
47
+ # Date string in RFC 3339 format. Only entries created on or after the specified
48
+ # date will be included.
49
49
  begin_: nil,
50
50
  # Date string in RFC 3339 format. Only entries created before the specified date
51
51
  # will be included.
@@ -30,8 +30,8 @@ module Lithic
30
30
  ).returns(Lithic::Internal::CursorPage[Lithic::FundingEvent])
31
31
  end
32
32
  def list(
33
- # Date string in RFC 3339 format. Only entries created after the specified time
34
- # will be included. UTC time zone.
33
+ # Date string in RFC 3339 format. Only entries created on or after the specified
34
+ # time will be included. UTC time zone.
35
35
  begin_: nil,
36
36
  # Date string in RFC 3339 format. Only entries created before the specified time
37
37
  # will be included. UTC time zone.
@@ -64,8 +64,8 @@ module Lithic
64
64
  def list(
65
65
  # Globally unique identifier for the financial account.
66
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.
67
+ # Date string in RFC 3339 format. Only entries created on or after the specified
68
+ # time will be included. UTC time zone.
69
69
  begin_: nil,
70
70
  # Date string in RFC 3339 format. Only entries created before the specified time
71
71
  # will be included. UTC time zone.
@@ -28,9 +28,11 @@ module Lithic
28
28
  category:,
29
29
  direction:,
30
30
  effective_date:,
31
+ # Type of management operation to create. To reverse an existing management
32
+ # operation, use the reverse management operation endpoint
31
33
  event_type:,
32
34
  financial_account_token:,
33
- # Customer-provided token that will serve as an idempotency token. This token will
35
+ # Client-provided token that will serve as an idempotency token. This token will
34
36
  # become the transaction token.
35
37
  token: nil,
36
38
  memo: nil,
@@ -74,8 +76,8 @@ module Lithic
74
76
  )
75
77
  end
76
78
  def list(
77
- # Date string in RFC 3339 format. Only entries created after the specified time
78
- # will be included. UTC time zone.
79
+ # Date string in RFC 3339 format. Only entries created on or after the specified
80
+ # time will be included. UTC time zone.
79
81
  begin_: nil,
80
82
  business_account_token: nil,
81
83
  # Management operation category to be returned.
@@ -27,8 +27,8 @@ module Lithic
27
27
  ).returns(Lithic::Internal::SinglePage[Lithic::NetworkProgram])
28
28
  end
29
29
  def list(
30
- # Date string in RFC 3339 format. Only entries created after the specified time
31
- # will be included. UTC time zone.
30
+ # Date string in RFC 3339 format. Only entries created on or after the specified
31
+ # time will be included. UTC time zone.
32
32
  begin_: nil,
33
33
  # Date string in RFC 3339 format. Only entries created before the specified time
34
34
  # will be included. UTC time zone.
@@ -74,8 +74,8 @@ module Lithic
74
74
  end
75
75
  def list(
76
76
  account_token: nil,
77
- # Date string in RFC 3339 format. Only entries created after the specified time
78
- # will be included. UTC time zone.
77
+ # Date string in RFC 3339 format. Only entries created on or after the specified
78
+ # time will be included. UTC time zone.
79
79
  begin_: nil,
80
80
  business_account_token: nil,
81
81
  category: nil,
@@ -38,8 +38,8 @@ module Lithic
38
38
  ).returns(Lithic::Internal::CursorPage[Lithic::NetworkTotal])
39
39
  end
40
40
  def list(
41
- # Datetime in RFC 3339 format. Only entries created after the specified time will
42
- # be included. UTC time zone.
41
+ # Datetime in RFC 3339 format. Only entries created on or after the specified time
42
+ # will be included. UTC time zone.
43
43
  begin_: nil,
44
44
  # Datetime in RFC 3339 format. Only entries created before the specified time will
45
45
  # be included. UTC time zone.
@@ -35,7 +35,7 @@ module Lithic
35
35
  def list(
36
36
  # Filters for tokenizations associated with a specific account.
37
37
  account_token: nil,
38
- # Filter for tokenizations created after this date.
38
+ # Filter for tokenizations created on or after this date.
39
39
  begin_: nil,
40
40
  # Filters for tokenizations associated with a specific card.
41
41
  card_token: nil,
@@ -109,8 +109,8 @@ module Lithic
109
109
  # Only return cases assigned to the provided value. Pass an empty string to return
110
110
  # only unassigned cases.
111
111
  assignee: nil,
112
- # Date string in RFC 3339 format. Only entries created after the specified time
113
- # will be included. UTC time zone.
112
+ # Date string in RFC 3339 format. Only entries created on or after the specified
113
+ # time will be included. UTC time zone.
114
114
  begin_: nil,
115
115
  # Only return cases that include transactions on the provided card.
116
116
  card_token: nil,
@@ -43,8 +43,8 @@ module Lithic
43
43
  def list(
44
44
  # Filters for transactions associated with a specific account.
45
45
  account_token: nil,
46
- # Date string in RFC 3339 format. Only entries created after the specified time
47
- # will be included. UTC time zone.
46
+ # Date string in RFC 3339 format. Only entries created on or after the specified
47
+ # time will be included. UTC time zone.
48
48
  begin_: nil,
49
49
  # Filters for transactions associated with a specific card.
50
50
  card_token: nil,
@@ -133,7 +133,6 @@ module Lithic
133
133
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
134
134
  | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
135
135
  | Lithic::AuthRules::TypescriptCodeParameters
136
- | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
137
136
 
138
137
  module Parameters
139
138
  extend Lithic::Internal::Type::Union
@@ -183,7 +182,6 @@ module Lithic
183
182
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
184
183
  | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
185
184
  | Lithic::AuthRules::TypescriptCodeParameters
186
- | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
187
185
 
188
186
  module Parameters
189
187
  extend Lithic::Internal::Type::Union
@@ -44,7 +44,6 @@ module Lithic
44
44
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
45
45
  | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
46
46
  | Lithic::AuthRules::TypescriptCodeParameters
47
- | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
48
47
 
49
48
  module Parameters
50
49
  extend Lithic::Internal::Type::Union
@@ -22,15 +22,74 @@ module Lithic
22
22
  conditions: ::Array[Lithic::AuthRules::AuthRuleCondition]
23
23
  }
24
24
 
25
- type action = :DECLINE | :CHALLENGE
25
+ type action =
26
+ Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::authorization_action
27
+ | Lithic::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction
26
28
 
27
29
  module Action
28
- extend Lithic::Internal::Type::Enum
30
+ extend Lithic::Internal::Type::Union
29
31
 
30
- DECLINE: :DECLINE
31
- CHALLENGE: :CHALLENGE
32
+ type authorization_action = :DECLINE | :CHALLENGE
32
33
 
33
- def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action]
34
+ module AuthorizationAction
35
+ extend Lithic::Internal::Type::Enum
36
+
37
+ DECLINE: :DECLINE
38
+ CHALLENGE: :CHALLENGE
39
+
40
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::authorization_action]
41
+ end
42
+
43
+ type hold_adjustment_action =
44
+ {
45
+ mode: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::mode,
46
+ type: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::type_,
47
+ value: Integer
48
+ }
49
+
50
+ class HoldAdjustmentAction < Lithic::Internal::Type::BaseModel
51
+ attr_accessor mode: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::mode
52
+
53
+ attr_accessor type: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::type_
54
+
55
+ attr_accessor value: Integer
56
+
57
+ def initialize: (
58
+ mode: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::mode,
59
+ type: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::type_,
60
+ value: Integer
61
+ ) -> void
62
+
63
+ def to_hash: -> {
64
+ mode: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::mode,
65
+ type: Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::type_,
66
+ value: Integer
67
+ }
68
+
69
+ type mode = :REPLACE_WITH_AMOUNT | :ADD_PERCENTAGE | :ADD_AMOUNT
70
+
71
+ module Mode
72
+ extend Lithic::Internal::Type::Enum
73
+
74
+ REPLACE_WITH_AMOUNT: :REPLACE_WITH_AMOUNT
75
+ ADD_PERCENTAGE: :ADD_PERCENTAGE
76
+ ADD_AMOUNT: :ADD_AMOUNT
77
+
78
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::mode]
79
+ end
80
+
81
+ type type_ = :HOLD_ADJUSTMENT
82
+
83
+ module Type
84
+ extend Lithic::Internal::Type::Enum
85
+
86
+ HOLD_ADJUSTMENT: :HOLD_ADJUSTMENT
87
+
88
+ def self?.values: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::Action::HoldAdjustmentAction::type_]
89
+ end
90
+ end
91
+
92
+ def self?.variants: -> ::Array[Lithic::Models::AuthRules::ConditionalAuthorizationActionParameters::action]
34
93
  end
35
94
  end
36
95
  end
@@ -5,6 +5,7 @@ module Lithic
5
5
  type backtest_results =
6
6
  {
7
7
  backtest_token: String,
8
+ created: Time,
8
9
  results: Lithic::AuthRules::V2::BacktestResults::Results,
9
10
  simulation_parameters: Lithic::AuthRules::V2::BacktestResults::SimulationParameters
10
11
  }
@@ -12,18 +13,22 @@ module Lithic
12
13
  class BacktestResults < Lithic::Internal::Type::BaseModel
13
14
  attr_accessor backtest_token: String
14
15
 
16
+ attr_accessor created: Time
17
+
15
18
  attr_accessor results: Lithic::AuthRules::V2::BacktestResults::Results
16
19
 
17
20
  attr_accessor simulation_parameters: Lithic::AuthRules::V2::BacktestResults::SimulationParameters
18
21
 
19
22
  def initialize: (
20
23
  backtest_token: String,
24
+ created: Time,
21
25
  results: Lithic::AuthRules::V2::BacktestResults::Results,
22
26
  simulation_parameters: Lithic::AuthRules::V2::BacktestResults::SimulationParameters
23
27
  ) -> void
24
28
 
25
29
  def to_hash: -> {
26
30
  backtest_token: String,
31
+ created: Time,
27
32
  results: Lithic::AuthRules::V2::BacktestResults::Results,
28
33
  simulation_parameters: Lithic::AuthRules::V2::BacktestResults::SimulationParameters
29
34
  }
@@ -80,7 +80,6 @@ module Lithic
80
80
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
81
81
  | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
82
82
  | Lithic::AuthRules::TypescriptCodeParameters
83
- | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
84
83
 
85
84
  module Parameters
86
85
  extend Lithic::Internal::Type::Union
@@ -167,7 +166,6 @@ module Lithic
167
166
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
168
167
  | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
169
168
  | Lithic::AuthRules::TypescriptCodeParameters
170
- | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
171
169
 
172
170
  module Parameters
173
171
  extend Lithic::Internal::Type::Union
@@ -245,7 +243,6 @@ module Lithic
245
243
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
246
244
  | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
247
245
  | Lithic::AuthRules::TypescriptCodeParameters
248
- | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
249
246
 
250
247
  module Parameters
251
248
  extend Lithic::Internal::Type::Union
@@ -346,7 +343,6 @@ module Lithic
346
343
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
347
344
  | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
348
345
  | Lithic::AuthRules::TypescriptCodeParameters
349
- | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
350
346
 
351
347
  module Parameters
352
348
  extend Lithic::Internal::Type::Union
@@ -38,7 +38,6 @@ module Lithic
38
38
  | Lithic::AuthRules::ConditionalCardTransactionUpdateActionParameters
39
39
  | Lithic::AuthRules::ConditionalACHPaymentUpdateActionParameters
40
40
  | Lithic::AuthRules::TypescriptCodeParameters
41
- | Lithic::AuthRules::ConditionalAuthorizationAdjustmentParameters
42
41
 
43
42
  module Parameters
44
43
  extend Lithic::Internal::Type::Union
@@ -8,6 +8,7 @@ module Lithic
8
8
  created: Time,
9
9
  fee_amount: Integer,
10
10
  financial_account_token: String,
11
+ installment_plan_adjustment: Integer,
11
12
  installment_plan_total: Integer,
12
13
  installments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment],
13
14
  installments_outstanding: Integer,
@@ -34,6 +35,8 @@ module Lithic
34
35
 
35
36
  attr_accessor financial_account_token: String
36
37
 
38
+ attr_accessor installment_plan_adjustment: Integer
39
+
37
40
  attr_accessor installment_plan_total: Integer
38
41
 
39
42
  attr_accessor installments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment]
@@ -66,6 +69,7 @@ module Lithic
66
69
  created: Time,
67
70
  fee_amount: Integer,
68
71
  financial_account_token: String,
72
+ installment_plan_adjustment: Integer,
69
73
  installment_plan_total: Integer,
70
74
  installments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment],
71
75
  installments_outstanding: Integer,
@@ -87,6 +91,7 @@ module Lithic
87
91
  created: Time,
88
92
  fee_amount: Integer,
89
93
  financial_account_token: String,
94
+ installment_plan_adjustment: Integer,
90
95
  installment_plan_total: Integer,
91
96
  installments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment],
92
97
  installments_outstanding: Integer,
@@ -114,7 +119,8 @@ module Lithic
114
119
  due_date: Date,
115
120
  installment_num: Integer,
116
121
  payment_due_date: Date,
117
- payments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment::Payment]
122
+ payments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment::Payment],
123
+ installment_adjustment: Integer
118
124
  }
119
125
 
120
126
  class Installment < Lithic::Internal::Type::BaseModel
@@ -140,6 +146,10 @@ module Lithic
140
146
 
141
147
  attr_accessor payments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment::Payment]
142
148
 
149
+ attr_reader installment_adjustment: Integer?
150
+
151
+ def installment_adjustment=: (Integer) -> Integer
152
+
143
153
  def initialize: (
144
154
  amount_due: Integer,
145
155
  amount_due_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
@@ -151,7 +161,8 @@ module Lithic
151
161
  due_date: Date,
152
162
  installment_num: Integer,
153
163
  payment_due_date: Date,
154
- payments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment::Payment]
164
+ payments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment::Payment],
165
+ ?installment_adjustment: Integer
155
166
  ) -> void
156
167
 
157
168
  def to_hash: -> {
@@ -165,14 +176,16 @@ module Lithic
165
176
  due_date: Date,
166
177
  installment_num: Integer,
167
178
  payment_due_date: Date,
168
- payments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment::Payment]
179
+ payments: ::Array[Lithic::FinancialAccounts::InstallmentPlan::Installment::Payment],
180
+ installment_adjustment: Integer
169
181
  }
170
182
 
171
183
  type payment =
172
184
  {
173
185
  amount: Integer,
174
186
  amount_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
175
- date: Date
187
+ date: Date,
188
+ is_adjustment: bool
176
189
  }
177
190
 
178
191
  class Payment < Lithic::Internal::Type::BaseModel
@@ -182,16 +195,22 @@ module Lithic
182
195
 
183
196
  attr_accessor date: Date
184
197
 
198
+ attr_reader is_adjustment: bool?
199
+
200
+ def is_adjustment=: (bool) -> bool
201
+
185
202
  def initialize: (
186
203
  amount: Integer,
187
204
  amount_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
188
- date: Date
205
+ date: Date,
206
+ ?is_adjustment: bool
189
207
  ) -> void
190
208
 
191
209
  def to_hash: -> {
192
210
  amount: Integer,
193
211
  amount_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
194
- date: Date
212
+ date: Date,
213
+ is_adjustment: bool
195
214
  }
196
215
  end
197
216
  end
@@ -7,7 +7,10 @@ module Lithic
7
7
  type installment_plan_statement =
8
8
  {
9
9
  token: String,
10
+ closed_at: Date?,
11
+ created: Time,
10
12
  fee_amount: Integer,
13
+ installment_plan_adjustment: Integer,
11
14
  installment_plan_token: String,
12
15
  installment_plan_total: Integer,
13
16
  installments: ::Array[Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::Installment],
@@ -15,17 +18,26 @@ module Lithic
15
18
  installments_paid: Integer,
16
19
  num_installments: Integer,
17
20
  principal_amount: Integer,
21
+ source_amounts: Lithic::FinancialAccounts::TransactionCategoryBalances?,
22
+ source_id: String,
18
23
  source_type: Lithic::Models::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::source_type,
19
24
  start_date: Date,
20
25
  state: Lithic::Models::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::state,
21
- total_paid: Integer
26
+ total_paid: Integer,
27
+ updated: Time
22
28
  }
23
29
 
24
30
  class InstallmentPlanStatement < Lithic::Internal::Type::BaseModel
25
31
  attr_accessor token: String
26
32
 
33
+ attr_accessor closed_at: Date?
34
+
35
+ attr_accessor created: Time
36
+
27
37
  attr_accessor fee_amount: Integer
28
38
 
39
+ attr_accessor installment_plan_adjustment: Integer
40
+
29
41
  attr_accessor installment_plan_token: String
30
42
 
31
43
  attr_accessor installment_plan_total: Integer
@@ -40,6 +52,10 @@ module Lithic
40
52
 
41
53
  attr_accessor principal_amount: Integer
42
54
 
55
+ attr_accessor source_amounts: Lithic::FinancialAccounts::TransactionCategoryBalances?
56
+
57
+ attr_accessor source_id: String
58
+
43
59
  attr_accessor source_type: Lithic::Models::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::source_type
44
60
 
45
61
  attr_accessor start_date: Date
@@ -48,9 +64,14 @@ module Lithic
48
64
 
49
65
  attr_accessor total_paid: Integer
50
66
 
67
+ attr_accessor updated: Time
68
+
51
69
  def initialize: (
52
70
  token: String,
71
+ closed_at: Date?,
72
+ created: Time,
53
73
  fee_amount: Integer,
74
+ installment_plan_adjustment: Integer,
54
75
  installment_plan_token: String,
55
76
  installment_plan_total: Integer,
56
77
  installments: ::Array[Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::Installment],
@@ -58,15 +79,21 @@ module Lithic
58
79
  installments_paid: Integer,
59
80
  num_installments: Integer,
60
81
  principal_amount: Integer,
82
+ source_amounts: Lithic::FinancialAccounts::TransactionCategoryBalances?,
83
+ source_id: String,
61
84
  source_type: Lithic::Models::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::source_type,
62
85
  start_date: Date,
63
86
  state: Lithic::Models::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::state,
64
- total_paid: Integer
87
+ total_paid: Integer,
88
+ updated: Time
65
89
  ) -> void
66
90
 
67
91
  def to_hash: -> {
68
92
  token: String,
93
+ closed_at: Date?,
94
+ created: Time,
69
95
  fee_amount: Integer,
96
+ installment_plan_adjustment: Integer,
70
97
  installment_plan_token: String,
71
98
  installment_plan_total: Integer,
72
99
  installments: ::Array[Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::Installment],
@@ -74,39 +101,43 @@ module Lithic
74
101
  installments_paid: Integer,
75
102
  num_installments: Integer,
76
103
  principal_amount: Integer,
104
+ source_amounts: Lithic::FinancialAccounts::TransactionCategoryBalances?,
105
+ source_id: String,
77
106
  source_type: Lithic::Models::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::source_type,
78
107
  start_date: Date,
79
108
  state: Lithic::Models::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::state,
80
- total_paid: Integer
109
+ total_paid: Integer,
110
+ updated: Time
81
111
  }
82
112
 
83
113
  type installment =
84
114
  {
85
115
  amount_due: Integer,
86
- amount_due_details: Lithic::FinancialAccounts::CategoryBalances,
116
+ amount_due_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
87
117
  amount_outstanding: Integer,
88
- amount_outstanding_details: Lithic::FinancialAccounts::CategoryBalances,
118
+ amount_outstanding_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
89
119
  amount_paid: Integer,
90
- amount_paid_details: Lithic::FinancialAccounts::CategoryBalances,
120
+ amount_paid_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
91
121
  date_assessed: Date?,
92
122
  due_date: Date,
93
123
  installment_num: Integer,
94
124
  payment_due_date: Date,
95
- payments: ::Array[Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::Installment::Payment]
125
+ payments: ::Array[Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::Installment::Payment],
126
+ installment_adjustment: Integer
96
127
  }
97
128
 
98
129
  class Installment < Lithic::Internal::Type::BaseModel
99
130
  attr_accessor amount_due: Integer
100
131
 
101
- attr_accessor amount_due_details: Lithic::FinancialAccounts::CategoryBalances
132
+ attr_accessor amount_due_details: Lithic::FinancialAccounts::TransactionCategoryBalances
102
133
 
103
134
  attr_accessor amount_outstanding: Integer
104
135
 
105
- attr_accessor amount_outstanding_details: Lithic::FinancialAccounts::CategoryBalances
136
+ attr_accessor amount_outstanding_details: Lithic::FinancialAccounts::TransactionCategoryBalances
106
137
 
107
138
  attr_accessor amount_paid: Integer
108
139
 
109
- attr_accessor amount_paid_details: Lithic::FinancialAccounts::CategoryBalances
140
+ attr_accessor amount_paid_details: Lithic::FinancialAccounts::TransactionCategoryBalances
110
141
 
111
142
  attr_accessor date_assessed: Date?
112
143
 
@@ -118,44 +149,72 @@ module Lithic
118
149
 
119
150
  attr_accessor payments: ::Array[Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::Installment::Payment]
120
151
 
152
+ attr_reader installment_adjustment: Integer?
153
+
154
+ def installment_adjustment=: (Integer) -> Integer
155
+
121
156
  def initialize: (
122
157
  amount_due: Integer,
123
- amount_due_details: Lithic::FinancialAccounts::CategoryBalances,
158
+ amount_due_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
124
159
  amount_outstanding: Integer,
125
- amount_outstanding_details: Lithic::FinancialAccounts::CategoryBalances,
160
+ amount_outstanding_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
126
161
  amount_paid: Integer,
127
- amount_paid_details: Lithic::FinancialAccounts::CategoryBalances,
162
+ amount_paid_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
128
163
  date_assessed: Date?,
129
164
  due_date: Date,
130
165
  installment_num: Integer,
131
166
  payment_due_date: Date,
132
- payments: ::Array[Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::Installment::Payment]
167
+ payments: ::Array[Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::Installment::Payment],
168
+ ?installment_adjustment: Integer
133
169
  ) -> void
134
170
 
135
171
  def to_hash: -> {
136
172
  amount_due: Integer,
137
- amount_due_details: Lithic::FinancialAccounts::CategoryBalances,
173
+ amount_due_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
138
174
  amount_outstanding: Integer,
139
- amount_outstanding_details: Lithic::FinancialAccounts::CategoryBalances,
175
+ amount_outstanding_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
140
176
  amount_paid: Integer,
141
- amount_paid_details: Lithic::FinancialAccounts::CategoryBalances,
177
+ amount_paid_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
142
178
  date_assessed: Date?,
143
179
  due_date: Date,
144
180
  installment_num: Integer,
145
181
  payment_due_date: Date,
146
- payments: ::Array[Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::Installment::Payment]
182
+ payments: ::Array[Lithic::FinancialAccounts::InstallmentPlans::InstallmentPlanStatement::Installment::Payment],
183
+ installment_adjustment: Integer
147
184
  }
148
185
 
149
- type payment = { amount: Integer, date: Date }
186
+ type payment =
187
+ {
188
+ amount: Integer,
189
+ amount_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
190
+ date: Date,
191
+ is_adjustment: bool
192
+ }
150
193
 
151
194
  class Payment < Lithic::Internal::Type::BaseModel
152
195
  attr_accessor amount: Integer
153
196
 
197
+ attr_accessor amount_details: Lithic::FinancialAccounts::TransactionCategoryBalances
198
+
154
199
  attr_accessor date: Date
155
200
 
156
- def initialize: (amount: Integer, date: Date) -> void
201
+ attr_reader is_adjustment: bool?
202
+
203
+ def is_adjustment=: (bool) -> bool
204
+
205
+ def initialize: (
206
+ amount: Integer,
207
+ amount_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
208
+ date: Date,
209
+ ?is_adjustment: bool
210
+ ) -> void
157
211
 
158
- def to_hash: -> { amount: Integer, date: Date }
212
+ def to_hash: -> {
213
+ amount: Integer,
214
+ amount_details: Lithic::FinancialAccounts::TransactionCategoryBalances,
215
+ date: Date,
216
+ is_adjustment: bool
217
+ }
159
218
  end
160
219
  end
161
220