lithic 0.1.0.pre.alpha.5 → 0.1.0.pre.alpha.6

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 (116) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +29 -5
  3. data/lib/lithic/internal/cursor_page.rb +5 -1
  4. data/lib/lithic/internal/single_page.rb +5 -1
  5. data/lib/lithic/internal/transport/base_client.rb +2 -2
  6. data/lib/lithic/internal/transport/pooled_net_requester.rb +1 -1
  7. data/lib/lithic/internal/type/array_of.rb +5 -3
  8. data/lib/lithic/internal/type/base_model.rb +12 -6
  9. data/lib/lithic/internal/type/base_page.rb +4 -1
  10. data/lib/lithic/internal/type/{boolean_model.rb → boolean.rb} +2 -2
  11. data/lib/lithic/internal/type/converter.rb +6 -1
  12. data/lib/lithic/internal/type/enum.rb +2 -0
  13. data/lib/lithic/internal/type/hash_of.rb +3 -1
  14. data/lib/lithic/internal/util.rb +28 -45
  15. data/lib/lithic/models/account_holder.rb +1 -2
  16. data/lib/lithic/models/account_holder_create_params.rb +89 -93
  17. data/lib/lithic/models/auth_rules/auth_rule.rb +1 -1
  18. data/lib/lithic/models/auth_rules/v2/backtest_results.rb +2 -2
  19. data/lib/lithic/models/auth_rules/v2_apply_params.rb +1 -1
  20. data/lib/lithic/models/auth_rules/v2_apply_response.rb +1 -1
  21. data/lib/lithic/models/auth_rules/v2_create_params.rb +1 -1
  22. data/lib/lithic/models/auth_rules/v2_create_response.rb +1 -1
  23. data/lib/lithic/models/auth_rules/v2_draft_response.rb +1 -1
  24. data/lib/lithic/models/auth_rules/v2_list_response.rb +1 -1
  25. data/lib/lithic/models/auth_rules/v2_promote_response.rb +1 -1
  26. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +1 -1
  27. data/lib/lithic/models/auth_rules/v2_update_params.rb +1 -1
  28. data/lib/lithic/models/auth_rules/v2_update_response.rb +1 -1
  29. data/lib/lithic/models/card_convert_physical_params.rb +5 -5
  30. data/lib/lithic/models/card_reissue_params.rb +5 -5
  31. data/lib/lithic/models/card_renew_params.rb +5 -5
  32. data/lib/lithic/models/credit_products/prime_rate_retrieve_response.rb +1 -1
  33. data/lib/lithic/models/digital_card_art.rb +2 -2
  34. data/lib/lithic/models/event_list_params.rb +1 -1
  35. data/lib/lithic/models/event_subscription.rb +1 -1
  36. data/lib/lithic/models/events/event_subscription_resend_params.rb +27 -0
  37. data/lib/lithic/models/events/subscription_create_params.rb +1 -1
  38. data/lib/lithic/models/events/subscription_update_params.rb +1 -1
  39. data/lib/lithic/models/external_bank_account_create_params.rb +1 -1
  40. data/lib/lithic/models/financial_account.rb +11 -13
  41. data/lib/lithic/models/financial_account_create_params.rb +1 -1
  42. data/lib/lithic/models/financial_account_update_status_params.rb +9 -9
  43. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +1 -1
  44. data/lib/lithic/models/financial_accounts/loan_tape.rb +11 -11
  45. data/lib/lithic/models/financial_accounts/statement.rb +11 -11
  46. data/lib/lithic/models/financial_accounts/statement_list_params.rb +1 -1
  47. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -1
  48. data/lib/lithic/models/financial_accounts/statements.rb +1 -1
  49. data/lib/lithic/models/kyb.rb +89 -93
  50. data/lib/lithic/models/responder_endpoint_create_response.rb +1 -1
  51. data/lib/lithic/models/responder_endpoint_status.rb +1 -1
  52. data/lib/lithic/models/settlement_report.rb +1 -1
  53. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +3 -3
  54. data/lib/lithic/models/transaction.rb +5 -5
  55. data/lib/lithic/models/transaction_simulate_authorization_params.rb +1 -1
  56. data/lib/lithic/resources/account_holders.rb +3 -3
  57. data/lib/lithic/resources/accounts.rb +1 -1
  58. data/lib/lithic/resources/auth_rules/v2/backtests.rb +1 -1
  59. data/lib/lithic/resources/book_transfers.rb +1 -1
  60. data/lib/lithic/resources/cards/financial_transactions.rb +1 -1
  61. data/lib/lithic/resources/cards.rb +10 -7
  62. data/lib/lithic/resources/disputes.rb +2 -2
  63. data/lib/lithic/resources/events/event_subscriptions.rb +41 -0
  64. data/lib/lithic/resources/events/subscriptions.rb +3 -3
  65. data/lib/lithic/resources/events.rb +6 -2
  66. data/lib/lithic/resources/external_payments.rb +1 -1
  67. data/lib/lithic/resources/financial_accounts/financial_transactions.rb +1 -1
  68. data/lib/lithic/resources/financial_accounts/loan_tapes.rb +1 -1
  69. data/lib/lithic/resources/financial_accounts/statements.rb +1 -1
  70. data/lib/lithic/resources/financial_accounts.rb +5 -5
  71. data/lib/lithic/resources/management_operations.rb +1 -1
  72. data/lib/lithic/resources/payments.rb +2 -2
  73. data/lib/lithic/resources/reports/settlement/network_totals.rb +1 -1
  74. data/lib/lithic/resources/tokenizations.rb +1 -1
  75. data/lib/lithic/resources/transactions.rb +1 -1
  76. data/lib/lithic/version.rb +1 -1
  77. data/lib/lithic.rb +3 -1
  78. data/rbi/lib/lithic/internal/type/array_of.rbi +2 -2
  79. data/rbi/lib/lithic/internal/type/{boolean_model.rbi → boolean.rbi} +1 -1
  80. data/rbi/lib/lithic/internal/util.rbi +7 -5
  81. data/rbi/lib/lithic/models/account_holder.rbi +1 -2
  82. data/rbi/lib/lithic/models/account_holder_create_params.rbi +95 -95
  83. data/rbi/lib/lithic/models/card_convert_physical_params.rbi +5 -5
  84. data/rbi/lib/lithic/models/card_reissue_params.rbi +5 -5
  85. data/rbi/lib/lithic/models/card_renew_params.rbi +5 -5
  86. data/rbi/lib/lithic/models/events/event_subscription_resend_params.rbi +29 -0
  87. data/rbi/lib/lithic/models/financial_account.rbi +17 -19
  88. data/rbi/lib/lithic/models/financial_account_update_status_params.rbi +15 -30
  89. data/rbi/lib/lithic/models/financial_accounts/loan_tape.rbi +18 -18
  90. data/rbi/lib/lithic/models/financial_accounts/statement.rbi +18 -18
  91. data/rbi/lib/lithic/models/kyb.rbi +95 -95
  92. data/rbi/lib/lithic/resources/account_holders.rbi +6 -14
  93. data/rbi/lib/lithic/resources/cards.rbi +15 -12
  94. data/rbi/lib/lithic/resources/events/event_subscriptions.rbi +26 -0
  95. data/rbi/lib/lithic/resources/events.rbi +3 -0
  96. data/rbi/lib/lithic/resources/financial_accounts.rbi +3 -3
  97. data/rbi/lib/lithic/version.rbi +1 -1
  98. data/sig/lithic/internal/type/array_of.rbs +2 -2
  99. data/sig/lithic/internal/type/{boolean_model.rbs → boolean.rbs} +1 -1
  100. data/sig/lithic/internal/util.rbs +5 -5
  101. data/sig/lithic/models/account_holder_create_params.rbs +47 -43
  102. data/sig/lithic/models/card_convert_physical_params.rbs +2 -2
  103. data/sig/lithic/models/card_reissue_params.rbs +2 -2
  104. data/sig/lithic/models/card_renew_params.rbs +2 -2
  105. data/sig/lithic/models/events/event_subscription_resend_params.rbs +22 -0
  106. data/sig/lithic/models/financial_account.rbs +6 -6
  107. data/sig/lithic/models/financial_account_update_status_params.rbs +6 -6
  108. data/sig/lithic/models/financial_accounts/loan_tape.rbs +6 -6
  109. data/sig/lithic/models/financial_accounts/statement.rbs +6 -6
  110. data/sig/lithic/models/kyb.rbs +47 -43
  111. data/sig/lithic/resources/account_holders.rbs +1 -1
  112. data/sig/lithic/resources/events/event_subscriptions.rbs +15 -0
  113. data/sig/lithic/resources/events.rbs +2 -0
  114. data/sig/lithic/resources/financial_accounts.rbs +1 -1
  115. data/sig/lithic/version.rbs +1 -1
  116. metadata +11 -5
@@ -14,20 +14,20 @@ module Lithic
14
14
  # @return [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::Status]
15
15
  required :status, enum: -> { Lithic::Models::FinancialAccountUpdateStatusParams::Status }
16
16
 
17
- # @!attribute status_change_reason
18
- # Reason for the financial account status change
17
+ # @!attribute substatus
18
+ # Substatus for the financial account
19
19
  #
20
- # @return [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::StatusChangeReason, nil]
21
- required :status_change_reason,
22
- enum: -> { Lithic::Models::FinancialAccountUpdateStatusParams::StatusChangeReason },
20
+ # @return [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::Substatus, nil]
21
+ required :substatus,
22
+ enum: -> { Lithic::Models::FinancialAccountUpdateStatusParams::Substatus },
23
23
  nil?: true
24
24
 
25
25
  # @!parse
26
26
  # # @param status [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::Status]
27
- # # @param status_change_reason [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::StatusChangeReason, nil]
27
+ # # @param substatus [Symbol, Lithic::Models::FinancialAccountUpdateStatusParams::Substatus, nil]
28
28
  # # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}]
29
29
  # #
30
- # def initialize(status:, status_change_reason:, request_options: {}, **) = super
30
+ # def initialize(status:, substatus:, request_options: {}, **) = super
31
31
 
32
32
  # def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
33
33
 
@@ -47,8 +47,8 @@ module Lithic
47
47
  # def self.values; end
48
48
  end
49
49
 
50
- # Reason for the financial account status change
51
- module StatusChangeReason
50
+ # Substatus for the financial account
51
+ module Substatus
52
52
  extend Lithic::Internal::Type::Enum
53
53
 
54
54
  CHARGED_OFF_FRAUD = :CHARGED_OFF_FRAUD
@@ -45,7 +45,7 @@ module Lithic
45
45
  # @!attribute is_spend_blocked
46
46
  #
47
47
  # @return [Boolean]
48
- required :is_spend_blocked, Lithic::Internal::Type::BooleanModel
48
+ required :is_spend_blocked, Lithic::Internal::Type::Boolean
49
49
 
50
50
  # @!attribute tier
51
51
  # Tier assigned to the financial account
@@ -231,7 +231,7 @@ module Lithic
231
231
  # Whether the account currently has grace or not
232
232
  #
233
233
  # @return [Boolean]
234
- required :has_grace, Lithic::Internal::Type::BooleanModel
234
+ required :has_grace, Lithic::Internal::Type::Boolean
235
235
 
236
236
  # @!attribute period_number
237
237
  # Current overall period number
@@ -280,21 +280,21 @@ module Lithic
280
280
  required :status,
281
281
  enum: -> { Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Status }
282
282
 
283
- # @!attribute status_change_reason
284
- # Reason for the financial account status change
283
+ # @!attribute substatus
284
+ # Substatus for the financial account
285
285
  #
286
- # @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::StatusChangeReason, nil]
287
- optional :status_change_reason,
288
- enum: -> { Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::StatusChangeReason },
286
+ # @return [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Substatus, nil]
287
+ optional :substatus,
288
+ enum: -> { Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Substatus },
289
289
  nil?: true
290
290
 
291
291
  # @!parse
292
292
  # # Information about the financial account state
293
293
  # #
294
294
  # # @param status [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Status]
295
- # # @param status_change_reason [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::StatusChangeReason, nil]
295
+ # # @param substatus [Symbol, Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState::Substatus, nil]
296
296
  # #
297
- # def initialize(status:, status_change_reason: nil, **) = super
297
+ # def initialize(status:, substatus: nil, **) = super
298
298
 
299
299
  # def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
300
300
 
@@ -316,10 +316,10 @@ module Lithic
316
316
  # def self.values; end
317
317
  end
318
318
 
319
- # Reason for the financial account status change
319
+ # Substatus for the financial account
320
320
  #
321
- # @see Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState#status_change_reason
322
- module StatusChangeReason
321
+ # @see Lithic::Models::FinancialAccounts::LoanTape::AccountStanding::FinancialAccountState#substatus
322
+ module Substatus
323
323
  extend Lithic::Internal::Type::Enum
324
324
 
325
325
  CHARGED_OFF_DELINQUENT = :CHARGED_OFF_DELINQUENT
@@ -225,7 +225,7 @@ module Lithic
225
225
  # Whether the account currently has grace or not
226
226
  #
227
227
  # @return [Boolean]
228
- required :has_grace, Lithic::Internal::Type::BooleanModel
228
+ required :has_grace, Lithic::Internal::Type::Boolean
229
229
 
230
230
  # @!attribute period_number
231
231
  # Current overall period number
@@ -274,21 +274,21 @@ module Lithic
274
274
  required :status,
275
275
  enum: -> { Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Status }
276
276
 
277
- # @!attribute status_change_reason
278
- # Reason for the financial account status change
277
+ # @!attribute substatus
278
+ # Substatus for the financial account
279
279
  #
280
- # @return [Symbol, Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::StatusChangeReason, nil]
281
- optional :status_change_reason,
282
- enum: -> { Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::StatusChangeReason },
280
+ # @return [Symbol, Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Substatus, nil]
281
+ optional :substatus,
282
+ enum: -> { Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Substatus },
283
283
  nil?: true
284
284
 
285
285
  # @!parse
286
286
  # # Information about the financial account state
287
287
  # #
288
288
  # # @param status [Symbol, Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Status]
289
- # # @param status_change_reason [Symbol, Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::StatusChangeReason, nil]
289
+ # # @param substatus [Symbol, Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState::Substatus, nil]
290
290
  # #
291
- # def initialize(status:, status_change_reason: nil, **) = super
291
+ # def initialize(status:, substatus: nil, **) = super
292
292
 
293
293
  # def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
294
294
 
@@ -310,10 +310,10 @@ module Lithic
310
310
  # def self.values; end
311
311
  end
312
312
 
313
- # Reason for the financial account status change
313
+ # Substatus for the financial account
314
314
  #
315
- # @see Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState#status_change_reason
316
- module StatusChangeReason
315
+ # @see Lithic::Models::FinancialAccounts::Statement::AccountStanding::FinancialAccountState#substatus
316
+ module Substatus
317
317
  extend Lithic::Internal::Type::Enum
318
318
 
319
319
  CHARGED_OFF_DELINQUENT = :CHARGED_OFF_DELINQUENT
@@ -46,7 +46,7 @@ module Lithic
46
46
  # Whether to include the initial statement. It is not included by default.
47
47
  #
48
48
  # @return [Boolean, nil]
49
- optional :include_initial_statements, Lithic::Internal::Type::BooleanModel
49
+ optional :include_initial_statements, Lithic::Internal::Type::Boolean
50
50
 
51
51
  # @!parse
52
52
  # # @return [Boolean]
@@ -14,7 +14,7 @@ module Lithic
14
14
  # @!attribute has_more
15
15
  #
16
16
  # @return [Boolean]
17
- required :has_more, Lithic::Internal::Type::BooleanModel
17
+ required :has_more, Lithic::Internal::Type::Boolean
18
18
 
19
19
  # @!parse
20
20
  # # @param data [Array<Lithic::Models::FinancialAccounts::Statements::StatementLineItems::Data>]
@@ -12,7 +12,7 @@ module Lithic
12
12
  # @!attribute has_more
13
13
  #
14
14
  # @return [Boolean]
15
- required :has_more, Lithic::Internal::Type::BooleanModel
15
+ required :has_more, Lithic::Internal::Type::Boolean
16
16
 
17
17
  # @!parse
18
18
  # # @param data [Array<Lithic::Models::FinancialAccounts::Statement>]
@@ -3,27 +3,12 @@
3
3
  module Lithic
4
4
  module Models
5
5
  class KYB < Lithic::Internal::Type::BaseModel
6
- # @!attribute beneficial_owner_entities
7
- # List of all entities with >25% ownership in the company. If no entity or
8
- # individual owns >25% of the company, and the largest shareholder is an entity,
9
- # please identify them in this field. See
10
- # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
11
- # (Section I) for more background. If no business owner is an entity, pass in an
12
- # empty list. However, either this parameter or `beneficial_owner_individuals`
13
- # must be populated. on entities that should be included.
14
- #
15
- # @return [Array<Lithic::Models::KYB::BeneficialOwnerEntity>]
16
- required :beneficial_owner_entities,
17
- -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::KYB::BeneficialOwnerEntity] }
18
-
19
6
  # @!attribute beneficial_owner_individuals
20
7
  # List of all direct and indirect individuals with >25% ownership in the company.
21
- # If no entity or individual owns >25% of the company, and the largest shareholder
22
- # is an individual, please identify them in this field. See
8
+ # If no individual owns >25% of the company, please identify the largest
9
+ # shareholder in this field. See
23
10
  # [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
24
- # (Section I) for more background on individuals that should be included. If no
25
- # individual is an entity, pass in an empty list. However, either this parameter
26
- # or `beneficial_owner_entities` must be populated.
11
+ # (Section I) for more background on individuals that should be included.
27
12
  #
28
13
  # @return [Array<Lithic::Models::KYB::BeneficialOwnerIndividual>]
29
14
  required :beneficial_owner_individuals,
@@ -70,6 +55,17 @@ module Lithic
70
55
  # @return [Symbol, Lithic::Models::KYB::Workflow]
71
56
  required :workflow, enum: -> { Lithic::Models::KYB::Workflow }
72
57
 
58
+ # @!attribute [r] beneficial_owner_entities
59
+ # Deprecated.
60
+ #
61
+ # @return [Array<Lithic::Models::KYB::BeneficialOwnerEntity>, nil]
62
+ optional :beneficial_owner_entities,
63
+ -> { Lithic::Internal::Type::ArrayOf[Lithic::Models::KYB::BeneficialOwnerEntity] }
64
+
65
+ # @!parse
66
+ # # @return [Array<Lithic::Models::KYB::BeneficialOwnerEntity>]
67
+ # attr_writer :beneficial_owner_entities
68
+
73
69
  # @!attribute [r] external_id
74
70
  # A user provided id that can be used to link an account holder with an external
75
71
  # system
@@ -105,25 +101,25 @@ module Lithic
105
101
  # attr_writer :website_url
106
102
 
107
103
  # @!parse
108
- # # @param beneficial_owner_entities [Array<Lithic::Models::KYB::BeneficialOwnerEntity>]
109
104
  # # @param beneficial_owner_individuals [Array<Lithic::Models::KYB::BeneficialOwnerIndividual>]
110
105
  # # @param business_entity [Lithic::Models::KYB::BusinessEntity]
111
106
  # # @param control_person [Lithic::Models::KYB::ControlPerson]
112
107
  # # @param nature_of_business [String]
113
108
  # # @param tos_timestamp [String]
114
109
  # # @param workflow [Symbol, Lithic::Models::KYB::Workflow]
110
+ # # @param beneficial_owner_entities [Array<Lithic::Models::KYB::BeneficialOwnerEntity>]
115
111
  # # @param external_id [String]
116
112
  # # @param kyb_passed_timestamp [String]
117
113
  # # @param website_url [String]
118
114
  # #
119
115
  # def initialize(
120
- # beneficial_owner_entities:,
121
116
  # beneficial_owner_individuals:,
122
117
  # business_entity:,
123
118
  # control_person:,
124
119
  # nature_of_business:,
125
120
  # tos_timestamp:,
126
121
  # workflow:,
122
+ # beneficial_owner_entities: nil,
127
123
  # external_id: nil,
128
124
  # kyb_passed_timestamp: nil,
129
125
  # website_url: nil,
@@ -134,79 +130,6 @@ module Lithic
134
130
 
135
131
  # def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
136
132
 
137
- class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel
138
- # @!attribute address
139
- # Business's physical address - PO boxes, UPS drops, and FedEx drops are not
140
- # acceptable; APO/FPO are acceptable.
141
- #
142
- # @return [Lithic::Models::Address]
143
- required :address, -> { Lithic::Models::Address }
144
-
145
- # @!attribute government_id
146
- # Government-issued identification number. US Federal Employer Identification
147
- # Numbers (EIN) are currently supported, entered as full nine-digits, with or
148
- # without hyphens.
149
- #
150
- # @return [String]
151
- required :government_id, String
152
-
153
- # @!attribute legal_business_name
154
- # Legal (formal) business name.
155
- #
156
- # @return [String]
157
- required :legal_business_name, String
158
-
159
- # @!attribute phone_numbers
160
- # One or more of the business's phone number(s), entered as a list in E.164
161
- # format.
162
- #
163
- # @return [Array<String>]
164
- required :phone_numbers, Lithic::Internal::Type::ArrayOf[String]
165
-
166
- # @!attribute [r] dba_business_name
167
- # Any name that the business operates under that is not its legal business name
168
- # (if applicable).
169
- #
170
- # @return [String, nil]
171
- optional :dba_business_name, String
172
-
173
- # @!parse
174
- # # @return [String]
175
- # attr_writer :dba_business_name
176
-
177
- # @!attribute [r] parent_company
178
- # Parent company name (if applicable).
179
- #
180
- # @return [String, nil]
181
- optional :parent_company, String
182
-
183
- # @!parse
184
- # # @return [String]
185
- # attr_writer :parent_company
186
-
187
- # @!parse
188
- # # @param address [Lithic::Models::Address]
189
- # # @param government_id [String]
190
- # # @param legal_business_name [String]
191
- # # @param phone_numbers [Array<String>]
192
- # # @param dba_business_name [String]
193
- # # @param parent_company [String]
194
- # #
195
- # def initialize(
196
- # address:,
197
- # government_id:,
198
- # legal_business_name:,
199
- # phone_numbers:,
200
- # dba_business_name: nil,
201
- # parent_company: nil,
202
- # **
203
- # )
204
- # super
205
- # end
206
-
207
- # def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
208
- end
209
-
210
133
  class BeneficialOwnerIndividual < Lithic::Internal::Type::BaseModel
211
134
  # @!attribute address
212
135
  # Individual's current address - PO boxes, UPS drops, and FedEx drops are not
@@ -443,6 +366,79 @@ module Lithic
443
366
  # # @return [Array<Symbol>]
444
367
  # def self.values; end
445
368
  end
369
+
370
+ class BeneficialOwnerEntity < Lithic::Internal::Type::BaseModel
371
+ # @!attribute address
372
+ # Business's physical address - PO boxes, UPS drops, and FedEx drops are not
373
+ # acceptable; APO/FPO are acceptable.
374
+ #
375
+ # @return [Lithic::Models::Address]
376
+ required :address, -> { Lithic::Models::Address }
377
+
378
+ # @!attribute government_id
379
+ # Government-issued identification number. US Federal Employer Identification
380
+ # Numbers (EIN) are currently supported, entered as full nine-digits, with or
381
+ # without hyphens.
382
+ #
383
+ # @return [String]
384
+ required :government_id, String
385
+
386
+ # @!attribute legal_business_name
387
+ # Legal (formal) business name.
388
+ #
389
+ # @return [String]
390
+ required :legal_business_name, String
391
+
392
+ # @!attribute phone_numbers
393
+ # One or more of the business's phone number(s), entered as a list in E.164
394
+ # format.
395
+ #
396
+ # @return [Array<String>]
397
+ required :phone_numbers, Lithic::Internal::Type::ArrayOf[String]
398
+
399
+ # @!attribute [r] dba_business_name
400
+ # Any name that the business operates under that is not its legal business name
401
+ # (if applicable).
402
+ #
403
+ # @return [String, nil]
404
+ optional :dba_business_name, String
405
+
406
+ # @!parse
407
+ # # @return [String]
408
+ # attr_writer :dba_business_name
409
+
410
+ # @!attribute [r] parent_company
411
+ # Parent company name (if applicable).
412
+ #
413
+ # @return [String, nil]
414
+ optional :parent_company, String
415
+
416
+ # @!parse
417
+ # # @return [String]
418
+ # attr_writer :parent_company
419
+
420
+ # @!parse
421
+ # # @param address [Lithic::Models::Address]
422
+ # # @param government_id [String]
423
+ # # @param legal_business_name [String]
424
+ # # @param phone_numbers [Array<String>]
425
+ # # @param dba_business_name [String]
426
+ # # @param parent_company [String]
427
+ # #
428
+ # def initialize(
429
+ # address:,
430
+ # government_id:,
431
+ # legal_business_name:,
432
+ # phone_numbers:,
433
+ # dba_business_name: nil,
434
+ # parent_company: nil,
435
+ # **
436
+ # )
437
+ # super
438
+ # end
439
+
440
+ # def initialize: (Hash | Lithic::Internal::Type::BaseModel) -> void
441
+ end
446
442
  end
447
443
  end
448
444
  end
@@ -8,7 +8,7 @@ module Lithic
8
8
  # True if the endpoint was enrolled successfully.
9
9
  #
10
10
  # @return [Boolean, nil]
11
- optional :enrolled, Lithic::Internal::Type::BooleanModel
11
+ optional :enrolled, Lithic::Internal::Type::Boolean
12
12
 
13
13
  # @!parse
14
14
  # # @return [Boolean]
@@ -8,7 +8,7 @@ module Lithic
8
8
  # True if the instance has an endpoint enrolled.
9
9
  #
10
10
  # @return [Boolean, nil]
11
- optional :enrolled, Lithic::Internal::Type::BooleanModel
11
+ optional :enrolled, Lithic::Internal::Type::Boolean
12
12
 
13
13
  # @!parse
14
14
  # # @return [Boolean]
@@ -42,7 +42,7 @@ module Lithic
42
42
  # Indicates that all data expected on the given report date is available.
43
43
  #
44
44
  # @return [Boolean]
45
- required :is_complete, Lithic::Internal::Type::BooleanModel
45
+ required :is_complete, Lithic::Internal::Type::Boolean
46
46
 
47
47
  # @!attribute other_fees_gross_amount
48
48
  # Total amount of gross other fees outside of interchange. (This field is
@@ -292,7 +292,7 @@ module Lithic
292
292
  # Maps to EMV 3DS field addrMatch.
293
293
  #
294
294
  # @return [Boolean, nil]
295
- optional :address_match, Lithic::Internal::Type::BooleanModel, nil?: true
295
+ optional :address_match, Lithic::Internal::Type::Boolean, nil?: true
296
296
 
297
297
  # @!attribute [r] billing_address
298
298
  # Object containing data on the billing address provided during the transaction.
@@ -911,14 +911,14 @@ module Lithic
911
911
  # to EMV 3DS field browserJavaEnabled.
912
912
  #
913
913
  # @return [Boolean, nil]
914
- optional :java_enabled, Lithic::Internal::Type::BooleanModel, nil?: true
914
+ optional :java_enabled, Lithic::Internal::Type::Boolean, nil?: true
915
915
 
916
916
  # @!attribute javascript_enabled
917
917
  # Indicates whether the cardholder's browser has the ability to execute
918
918
  # JavaScript. Maps to EMV 3DS field browserJavascriptEnabled.
919
919
  #
920
920
  # @return [Boolean, nil]
921
- optional :javascript_enabled, Lithic::Internal::Type::BooleanModel, nil?: true
921
+ optional :javascript_enabled, Lithic::Internal::Type::Boolean, nil?: true
922
922
 
923
923
  # @!attribute language
924
924
  # Language of the cardholder's browser as defined in IETF BCP47. Maps to EMV 3DS
@@ -733,7 +733,7 @@ module Lithic
733
733
  # Indicates whether the cardholder entered the PIN. True if the PIN was entered.
734
734
  #
735
735
  # @return [Boolean]
736
- required :pin_entered, Lithic::Internal::Type::BooleanModel
736
+ required :pin_entered, Lithic::Internal::Type::Boolean
737
737
 
738
738
  # @!parse
739
739
  # # @param card [Symbol, Lithic::Models::Transaction::Pos::EntryMode::Card]
@@ -823,19 +823,19 @@ module Lithic
823
823
  # True if a clerk is present at the sale.
824
824
  #
825
825
  # @return [Boolean]
826
- required :attended, Lithic::Internal::Type::BooleanModel
826
+ required :attended, Lithic::Internal::Type::Boolean
827
827
 
828
828
  # @!attribute card_retention_capable
829
829
  # True if the terminal is capable of retaining the card.
830
830
  #
831
831
  # @return [Boolean]
832
- required :card_retention_capable, Lithic::Internal::Type::BooleanModel
832
+ required :card_retention_capable, Lithic::Internal::Type::Boolean
833
833
 
834
834
  # @!attribute on_premise
835
835
  # True if the sale was made at the place of business (vs. mobile).
836
836
  #
837
837
  # @return [Boolean]
838
- required :on_premise, Lithic::Internal::Type::BooleanModel
838
+ required :on_premise, Lithic::Internal::Type::Boolean
839
839
 
840
840
  # @!attribute operator
841
841
  # The person that is designated to swipe the card
@@ -851,7 +851,7 @@ module Lithic
851
851
  # which point the POS will prompt the user for an additional payment of $15.
852
852
  #
853
853
  # @return [Boolean]
854
- required :partial_approval_capable, Lithic::Internal::Type::BooleanModel
854
+ required :partial_approval_capable, Lithic::Internal::Type::Boolean
855
855
 
856
856
  # @!attribute pin_capability
857
857
  # Status of whether the POS is able to accept PINs
@@ -80,7 +80,7 @@ module Lithic
80
80
  # must be used for the remainder.
81
81
  #
82
82
  # @return [Boolean, nil]
83
- optional :partial_approval_capable, Lithic::Internal::Type::BooleanModel
83
+ optional :partial_approval_capable, Lithic::Internal::Type::Boolean
84
84
 
85
85
  # @!parse
86
86
  # # @return [Boolean]
@@ -11,9 +11,8 @@ module Lithic
11
11
  # complete the account enrollment process. This endpoint can only be used on
12
12
  # accounts that are part of the program that the calling API key manages.
13
13
  #
14
- # @overload create(beneficial_owner_entities:, beneficial_owner_individuals:, business_entity:, control_person:, nature_of_business:, tos_timestamp:, workflow:, individual:, address:, email:, first_name:, kyc_exemption_type:, last_name:, phone_number:, external_id: nil, kyb_passed_timestamp: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {})
14
+ # @overload create(beneficial_owner_individuals:, business_entity:, control_person:, nature_of_business:, tos_timestamp:, workflow:, individual:, address:, email:, first_name:, kyc_exemption_type:, last_name:, phone_number:, beneficial_owner_entities: nil, external_id: nil, kyb_passed_timestamp: nil, website_url: nil, kyc_passed_timestamp: nil, business_account_token: nil, request_options: {})
15
15
  #
16
- # @param beneficial_owner_entities [Array<Lithic::Models::AccountHolderCreateParams::BeneficialOwnerEntity>]
17
16
  # @param beneficial_owner_individuals [Array<Lithic::Models::AccountHolderCreateParams::BeneficialOwnerIndividual>]
18
17
  # @param business_entity [Lithic::Models::AccountHolderCreateParams::BusinessEntity]
19
18
  # @param control_person [Lithic::Models::AccountHolderCreateParams::ControlPerson]
@@ -27,6 +26,7 @@ module Lithic
27
26
  # @param kyc_exemption_type [Symbol, Lithic::Models::AccountHolderCreateParams::KYCExemptionType]
28
27
  # @param last_name [String]
29
28
  # @param phone_number [String]
29
+ # @param beneficial_owner_entities [Array<Lithic::Models::AccountHolderCreateParams::BeneficialOwnerEntity>]
30
30
  # @param external_id [String]
31
31
  # @param kyb_passed_timestamp [String]
32
32
  # @param website_url [String]
@@ -138,7 +138,7 @@ module Lithic
138
138
  @client.request(
139
139
  method: :get,
140
140
  path: "v1/account_holders",
141
- query: parsed,
141
+ query: parsed.transform_keys(begin_: :begin, end_: :end),
142
142
  page: Lithic::Internal::SinglePage,
143
143
  model: Lithic::Models::AccountHolder,
144
144
  options: options
@@ -69,7 +69,7 @@ module Lithic
69
69
  @client.request(
70
70
  method: :get,
71
71
  path: "v1/accounts",
72
- query: parsed,
72
+ query: parsed.transform_keys(begin_: :begin, end_: :end),
73
73
  page: Lithic::Internal::CursorPage,
74
74
  model: Lithic::Models::Account,
75
75
  options: options
@@ -46,7 +46,7 @@ module Lithic
46
46
  @client.request(
47
47
  method: :post,
48
48
  path: ["v2/auth_rules/%1$s/backtests", auth_rule_token],
49
- body: parsed,
49
+ body: parsed.transform_keys(end_: :end),
50
50
  model: Lithic::Models::AuthRules::V2::BacktestCreateResponse,
51
51
  options: options
52
52
  )
@@ -76,7 +76,7 @@ module Lithic
76
76
  @client.request(
77
77
  method: :get,
78
78
  path: "v1/book_transfers",
79
- query: parsed,
79
+ query: parsed.transform_keys(begin_: :begin, end_: :end),
80
80
  page: Lithic::Internal::CursorPage,
81
81
  model: Lithic::Models::BookTransferResponse,
82
82
  options: options
@@ -51,7 +51,7 @@ module Lithic
51
51
  @client.request(
52
52
  method: :get,
53
53
  path: ["v1/cards/%1$s/financial_transactions", card_token],
54
- query: parsed,
54
+ query: parsed.transform_keys(begin_: :begin, end_: :end),
55
55
  page: Lithic::Internal::SinglePage,
56
56
  model: Lithic::Models::FinancialTransaction,
57
57
  options: options
@@ -122,7 +122,7 @@ module Lithic
122
122
  @client.request(
123
123
  method: :get,
124
124
  path: "v1/cards",
125
- query: parsed,
125
+ query: parsed.transform_keys(begin_: :begin, end_: :end),
126
126
  page: Lithic::Internal::CursorPage,
127
127
  model: Lithic::Models::Card,
128
128
  options: options
@@ -273,12 +273,15 @@ module Lithic
273
273
  )
274
274
  end
275
275
 
276
- # Creates a new card with the same card token and PAN, but updated expiry and CVC2
277
- # code. The original card will keep working for card-present transactions until
278
- # the new card is activated. For card-not-present transactions, the original card
279
- # details (expiry, CVC2) will also keep working until the new card is activated.
280
- # Applies to card types `PHYSICAL` and `VIRTUAL`. A card can be replaced or
281
- # renewed a total of 8 times.
276
+ # Applies to card types `PHYSICAL` and `VIRTUAL`. For `PHYSICAL`, creates a new
277
+ # card with the same card token and PAN, but updated expiry and CVC2 code. The
278
+ # original card will keep working for card-present transactions until the new card
279
+ # is activated. For card-not-present transactions, the original card details
280
+ # (expiry, CVC2) will also keep working until the new card is activated. A
281
+ # `PHYSICAL` card can be replaced or renewed a total of 8 times. For `VIRTUAL`,
282
+ # the card will retain the same card token and PAN and receive an updated expiry
283
+ # and CVC2 code. `product_id`, `shipping_method`, `shipping_address`, `carrier`
284
+ # are only relevant for renewing `PHYSICAL` cards.
282
285
  #
283
286
  # @overload renew(card_token, shipping_address:, carrier: nil, exp_month: nil, exp_year: nil, product_id: nil, shipping_method: nil, request_options: {})
284
287
  #
@@ -93,7 +93,7 @@ module Lithic
93
93
  @client.request(
94
94
  method: :get,
95
95
  path: "v1/disputes",
96
- query: parsed,
96
+ query: parsed.transform_keys(begin_: :begin, end_: :end),
97
97
  page: Lithic::Internal::CursorPage,
98
98
  model: Lithic::Models::Dispute,
99
99
  options: options
@@ -191,7 +191,7 @@ module Lithic
191
191
  @client.request(
192
192
  method: :get,
193
193
  path: ["v1/disputes/%1$s/evidences", dispute_token],
194
- query: parsed,
194
+ query: parsed.transform_keys(begin_: :begin, end_: :end),
195
195
  page: Lithic::Internal::CursorPage,
196
196
  model: Lithic::Models::DisputeEvidence,
197
197
  options: options