lithic 0.1.0.pre.alpha.52 → 0.1.0.pre.alpha.54

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 (142) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/internal/transport/base_client.rb +7 -1
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +36 -26
  6. data/lib/lithic/internal/type/union.rb +15 -3
  7. data/lib/lithic/models/account_activity_list_response.rb +48 -1141
  8. data/lib/lithic/models/account_activity_retrieve_transaction_response.rb +48 -1151
  9. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +3 -0
  10. data/lib/lithic/models/auth_rules/conditional_3ds_action_parameters.rb +7 -0
  11. data/lib/lithic/models/auth_rules/conditional_attribute.rb +4 -0
  12. data/lib/lithic/models/auth_rules/v2_apply_response.rb +14 -0
  13. data/lib/lithic/models/auth_rules/v2_create_params.rb +7 -0
  14. data/lib/lithic/models/auth_rules/v2_create_response.rb +14 -0
  15. data/lib/lithic/models/auth_rules/v2_draft_params.rb +7 -0
  16. data/lib/lithic/models/auth_rules/v2_draft_response.rb +14 -0
  17. data/lib/lithic/models/auth_rules/v2_list_response.rb +14 -0
  18. data/lib/lithic/models/auth_rules/v2_promote_response.rb +14 -0
  19. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +14 -0
  20. data/lib/lithic/models/auth_rules/v2_update_response.rb +14 -0
  21. data/lib/lithic/models/book_transfer_response.rb +51 -48
  22. data/lib/lithic/models/card_provision_response.rb +25 -3
  23. data/lib/lithic/models/event.rb +0 -1
  24. data/lib/lithic/models/event_list_params.rb +0 -1
  25. data/lib/lithic/models/event_subscription.rb +0 -1
  26. data/lib/lithic/models/events/subscription_create_params.rb +0 -1
  27. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +0 -1
  28. data/lib/lithic/models/events/subscription_update_params.rb +0 -1
  29. data/lib/lithic/models/external_bank_account_create_params.rb +1 -8
  30. data/lib/lithic/models/external_payment.rb +21 -23
  31. data/lib/lithic/models/financial_account.rb +48 -39
  32. data/lib/lithic/models/financial_accounts/financial_account_credit_config.rb +32 -23
  33. data/lib/lithic/models/financial_accounts/statements/statement_line_items.rb +1 -0
  34. data/lib/lithic/models/financial_transaction.rb +1 -0
  35. data/lib/lithic/models/management_operation_transaction.rb +21 -23
  36. data/lib/lithic/models/payment.rb +269 -140
  37. data/lib/lithic/models/payment_create_response.rb +2 -0
  38. data/lib/lithic/models/payment_retry_response.rb +2 -0
  39. data/lib/lithic/models/provision_response.rb +30 -0
  40. data/lib/lithic/models/three_ds/authentication_retrieve_response.rb +32 -1
  41. data/lib/lithic/models/tokenization.rb +1 -0
  42. data/lib/lithic/models/transaction.rb +4 -0
  43. data/lib/lithic/models/transfer.rb +1 -0
  44. data/lib/lithic/models/verification_method.rb +0 -1
  45. data/lib/lithic/models.rb +2 -0
  46. data/lib/lithic/resources/account_activity.rb +2 -2
  47. data/lib/lithic/resources/auth_rules/v2.rb +0 -72
  48. data/lib/lithic/resources/external_bank_accounts.rb +1 -3
  49. data/lib/lithic/version.rb +1 -1
  50. data/lib/lithic.rb +2 -2
  51. data/manifest.yaml +1 -0
  52. data/rbi/lithic/internal/transport/base_client.rbi +5 -0
  53. data/rbi/lithic/internal/transport/pooled_net_requester.rbi +6 -2
  54. data/rbi/lithic/internal/type/base_model.rbi +8 -4
  55. data/rbi/lithic/models/account_activity_list_response.rbi +158 -2629
  56. data/rbi/lithic/models/account_activity_retrieve_transaction_response.rbi +158 -2629
  57. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +6 -0
  58. data/rbi/lithic/models/auth_rules/conditional_3ds_action_parameters.rbi +14 -0
  59. data/rbi/lithic/models/auth_rules/conditional_attribute.rbi +8 -0
  60. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +28 -0
  61. data/rbi/lithic/models/auth_rules/v2_create_params.rbi +14 -0
  62. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +28 -0
  63. data/rbi/lithic/models/auth_rules/v2_draft_params.rbi +14 -0
  64. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +28 -0
  65. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +28 -0
  66. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +28 -0
  67. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +28 -0
  68. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +28 -0
  69. data/rbi/lithic/models/book_transfer_response.rbi +67 -68
  70. data/rbi/lithic/models/card_provision_response.rbi +50 -5
  71. data/rbi/lithic/models/event.rbi +0 -5
  72. data/rbi/lithic/models/event_list_params.rbi +0 -5
  73. data/rbi/lithic/models/event_subscription.rbi +0 -5
  74. data/rbi/lithic/models/events/subscription_create_params.rbi +0 -5
  75. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +0 -5
  76. data/rbi/lithic/models/events/subscription_update_params.rbi +0 -5
  77. data/rbi/lithic/models/external_bank_account_create_params.rbi +0 -6
  78. data/rbi/lithic/models/external_payment.rbi +34 -39
  79. data/rbi/lithic/models/financial_account.rbi +74 -73
  80. data/rbi/lithic/models/financial_accounts/financial_account_credit_config.rbi +46 -33
  81. data/rbi/lithic/models/financial_accounts/statements/statement_line_items.rbi +5 -0
  82. data/rbi/lithic/models/financial_transaction.rbi +5 -0
  83. data/rbi/lithic/models/management_operation_transaction.rbi +49 -60
  84. data/rbi/lithic/models/payment.rbi +425 -182
  85. data/rbi/lithic/models/payment_create_response.rbi +1 -0
  86. data/rbi/lithic/models/payment_retry_response.rbi +1 -0
  87. data/rbi/lithic/models/provision_response.rbi +58 -0
  88. data/rbi/lithic/models/three_ds/authentication_retrieve_response.rbi +83 -0
  89. data/rbi/lithic/models/tokenization.rbi +5 -0
  90. data/rbi/lithic/models/transaction.rbi +20 -0
  91. data/rbi/lithic/models/transfer.rbi +5 -0
  92. data/rbi/lithic/models/verification_method.rbi +0 -1
  93. data/rbi/lithic/models.rbi +2 -0
  94. data/rbi/lithic/resources/auth_rules/v2.rbi +0 -64
  95. data/rbi/lithic/resources/external_bank_accounts.rbi +0 -2
  96. data/sig/lithic/internal/transport/base_client.rbs +2 -0
  97. data/sig/lithic/internal/transport/pooled_net_requester.rbs +4 -1
  98. data/sig/lithic/models/account_activity_list_response.rbs +50 -1036
  99. data/sig/lithic/models/account_activity_retrieve_transaction_response.rbs +50 -1036
  100. data/sig/lithic/models/auth_rules/conditional_3ds_action_parameters.rbs +2 -0
  101. data/sig/lithic/models/auth_rules/conditional_attribute.rbs +2 -0
  102. data/sig/lithic/models/auth_rules/v2_apply_response.rbs +4 -0
  103. data/sig/lithic/models/auth_rules/v2_create_params.rbs +2 -0
  104. data/sig/lithic/models/auth_rules/v2_create_response.rbs +4 -0
  105. data/sig/lithic/models/auth_rules/v2_draft_params.rbs +2 -0
  106. data/sig/lithic/models/auth_rules/v2_draft_response.rbs +4 -0
  107. data/sig/lithic/models/auth_rules/v2_list_response.rbs +4 -0
  108. data/sig/lithic/models/auth_rules/v2_promote_response.rbs +4 -0
  109. data/sig/lithic/models/auth_rules/v2_retrieve_response.rbs +4 -0
  110. data/sig/lithic/models/auth_rules/v2_update_response.rbs +4 -0
  111. data/sig/lithic/models/book_transfer_response.rbs +26 -19
  112. data/sig/lithic/models/card_provision_response.rbs +22 -5
  113. data/sig/lithic/models/event.rbs +0 -2
  114. data/sig/lithic/models/event_list_params.rbs +0 -2
  115. data/sig/lithic/models/event_subscription.rbs +0 -2
  116. data/sig/lithic/models/events/subscription_create_params.rbs +0 -2
  117. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +0 -2
  118. data/sig/lithic/models/events/subscription_update_params.rbs +0 -2
  119. data/sig/lithic/models/external_bank_account_create_params.rbs +1 -6
  120. data/sig/lithic/models/external_payment.rbs +19 -26
  121. data/sig/lithic/models/financial_account.rbs +28 -30
  122. data/sig/lithic/models/financial_accounts/financial_account_credit_config.rbs +21 -15
  123. data/sig/lithic/models/financial_accounts/statements/statement_line_items.rbs +2 -0
  124. data/sig/lithic/models/financial_transaction.rbs +2 -0
  125. data/sig/lithic/models/management_operation_transaction.rbs +19 -26
  126. data/sig/lithic/models/payment.rbs +199 -76
  127. data/sig/lithic/models/provision_response.rbs +36 -0
  128. data/sig/lithic/models/three_ds/authentication_retrieve_response.rbs +28 -0
  129. data/sig/lithic/models/tokenization.rbs +2 -0
  130. data/sig/lithic/models/transaction.rbs +8 -0
  131. data/sig/lithic/models/transfer.rbs +2 -0
  132. data/sig/lithic/models/verification_method.rbs +1 -7
  133. data/sig/lithic/models.rbs +2 -0
  134. data/sig/lithic/resources/auth_rules/v2.rbs +0 -5
  135. data/sig/lithic/resources/external_bank_accounts.rbs +0 -1
  136. metadata +5 -8
  137. data/lib/lithic/models/auth_rules/v2_report_params.rb +0 -16
  138. data/lib/lithic/models/auth_rules/v2_report_response.rb +0 -18
  139. data/rbi/lithic/models/auth_rules/v2_report_params.rbi +0 -29
  140. data/rbi/lithic/models/auth_rules/v2_report_response.rbi +0 -31
  141. data/sig/lithic/models/auth_rules/v2_report_params.rbs +0 -16
  142. data/sig/lithic/models/auth_rules/v2_report_response.rbs +0 -17
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lithic
4
+ module Models
5
+ class ProvisionResponse < Lithic::Internal::Type::BaseModel
6
+ # @!attribute activation_data
7
+ #
8
+ # @return [String, nil]
9
+ optional :activation_data, String, api_name: :activationData
10
+
11
+ # @!attribute encrypted_data
12
+ #
13
+ # @return [String, nil]
14
+ optional :encrypted_data, String, api_name: :encryptedData
15
+
16
+ # @!attribute ephemeral_public_key
17
+ #
18
+ # @return [String, nil]
19
+ optional :ephemeral_public_key, String, api_name: :ephemeralPublicKey
20
+
21
+ # @!method initialize(activation_data: nil, encrypted_data: nil, ephemeral_public_key: nil)
22
+ # Object containing the fields required to add a card to Apple Pay. Applies only
23
+ # to Apple Pay wallet.
24
+ #
25
+ # @param activation_data [String]
26
+ # @param encrypted_data [String]
27
+ # @param ephemeral_public_key [String]
28
+ end
29
+ end
30
+ end
@@ -281,6 +281,16 @@ module Lithic
281
281
  # @return [Boolean, nil]
282
282
  optional :address_match, Lithic::Internal::Type::Boolean, nil?: true
283
283
 
284
+ # @!attribute address_on_file_match
285
+ # Lithic's evaluation result comparing the transaction's address data with the
286
+ # cardholder KYC data if it exists. In the event Lithic does not have any
287
+ # Cardholder KYC data, or the transaction does not contain any address data,
288
+ # NOT_PRESENT will be returned
289
+ #
290
+ # @return [Symbol, Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch, nil]
291
+ optional :address_on_file_match,
292
+ enum: -> { Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch }
293
+
284
294
  # @!attribute billing_address
285
295
  # Object containing data on the billing address provided during the transaction.
286
296
  #
@@ -329,7 +339,7 @@ module Lithic
329
339
  optional :shipping_address,
330
340
  -> { Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::ShippingAddress }
331
341
 
332
- # @!method initialize(address_match: nil, billing_address: nil, email: nil, name: nil, phone_number_home: nil, phone_number_mobile: nil, phone_number_work: nil, shipping_address: nil)
342
+ # @!method initialize(address_match: nil, address_on_file_match: nil, billing_address: nil, email: nil, name: nil, phone_number_home: nil, phone_number_mobile: nil, phone_number_work: nil, shipping_address: nil)
333
343
  # Some parameter documentations has been truncated, see
334
344
  # {Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder} for more
335
345
  # details.
@@ -338,6 +348,8 @@ module Lithic
338
348
  #
339
349
  # @param address_match [Boolean, nil] Indicates whether the shipping address and billing address provided by the cardh
340
350
  #
351
+ # @param address_on_file_match [Symbol, Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch] Lithic's evaluation result comparing the transaction's address data with the car
352
+ #
341
353
  # @param billing_address [Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress] Object containing data on the billing address provided during the transaction.
342
354
  #
343
355
  # @param email [String, nil] Email address that is either provided by the cardholder or is on file with the m
@@ -352,6 +364,25 @@ module Lithic
352
364
  #
353
365
  # @param shipping_address [Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::ShippingAddress] Object containing data on the shipping address provided during the transaction.
354
366
 
367
+ # Lithic's evaluation result comparing the transaction's address data with the
368
+ # cardholder KYC data if it exists. In the event Lithic does not have any
369
+ # Cardholder KYC data, or the transaction does not contain any address data,
370
+ # NOT_PRESENT will be returned
371
+ #
372
+ # @see Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder#address_on_file_match
373
+ module AddressOnFileMatch
374
+ extend Lithic::Internal::Type::Enum
375
+
376
+ MATCH = :MATCH
377
+ MATCH_ADDRESS_ONLY = :MATCH_ADDRESS_ONLY
378
+ MATCH_ZIP_ONLY = :MATCH_ZIP_ONLY
379
+ MISMATCH = :MISMATCH
380
+ NOT_PRESENT = :NOT_PRESENT
381
+
382
+ # @!method self.values
383
+ # @return [Array<Symbol>]
384
+ end
385
+
355
386
  # @see Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder#billing_address
356
387
  class BillingAddress < Lithic::Internal::Type::BaseModel
357
388
  # @!attribute address1
@@ -225,6 +225,7 @@ module Lithic
225
225
  TOKEN_ACTIVATED = :TOKEN_ACTIVATED
226
226
  TOKEN_CREATED = :TOKEN_CREATED
227
227
  TOKEN_DEACTIVATED = :TOKEN_DEACTIVATED
228
+ TOKEN_DELETED_FROM_CONSUMER_APP = :TOKEN_DELETED_FROM_CONSUMER_APP
228
229
  TOKEN_INACTIVE = :TOKEN_INACTIVE
229
230
  TOKEN_STATE_UNKNOWN = :TOKEN_STATE_UNKNOWN
230
231
  TOKEN_SUSPENDED = :TOKEN_SUSPENDED
@@ -1308,6 +1308,8 @@ module Lithic
1308
1308
  TRANSACTION_PREVIOUSLY_COMPLETED = :TRANSACTION_PREVIOUSLY_COMPLETED
1309
1309
  UNAUTHORIZED_MERCHANT = :UNAUTHORIZED_MERCHANT
1310
1310
  VEHICLE_NUMBER_INVALID = :VEHICLE_NUMBER_INVALID
1311
+ CARDHOLDER_CHALLENGED = :CARDHOLDER_CHALLENGED
1312
+ CARDHOLDER_CHALLENGE_FAILED = :CARDHOLDER_CHALLENGE_FAILED
1311
1313
 
1312
1314
  # @!method self.values
1313
1315
  # @return [Array<Symbol>]
@@ -1635,6 +1637,8 @@ module Lithic
1635
1637
  TRANSACTION_PREVIOUSLY_COMPLETED = :TRANSACTION_PREVIOUSLY_COMPLETED
1636
1638
  UNAUTHORIZED_MERCHANT = :UNAUTHORIZED_MERCHANT
1637
1639
  VEHICLE_NUMBER_INVALID = :VEHICLE_NUMBER_INVALID
1640
+ CARDHOLDER_CHALLENGED = :CARDHOLDER_CHALLENGED
1641
+ CARDHOLDER_CHALLENGE_FAILED = :CARDHOLDER_CHALLENGE_FAILED
1638
1642
 
1639
1643
  # @!method self.values
1640
1644
  # @return [Array<Symbol>]
@@ -216,6 +216,7 @@ module Lithic
216
216
  ACH_ORIGINATION_REVIEWED = :ACH_ORIGINATION_REVIEWED
217
217
  ACH_ORIGINATION_SETTLED = :ACH_ORIGINATION_SETTLED
218
218
  ACH_RECEIPT_PROCESSED = :ACH_RECEIPT_PROCESSED
219
+ ACH_RECEIPT_RELEASED = :ACH_RECEIPT_RELEASED
219
220
  ACH_RECEIPT_SETTLED = :ACH_RECEIPT_SETTLED
220
221
  ACH_RETURN_INITIATED = :ACH_RETURN_INITIATED
221
222
  ACH_RETURN_PROCESSED = :ACH_RETURN_PROCESSED
@@ -7,7 +7,6 @@ module Lithic
7
7
 
8
8
  MANUAL = :MANUAL
9
9
  MICRO_DEPOSIT = :MICRO_DEPOSIT
10
- PLAID = :PLAID
11
10
  PRENOTE = :PRENOTE
12
11
  EXTERNALLY_VERIFIED = :EXTERNALLY_VERIFIED
13
12
  UNVERIFIED = :UNVERIFIED
data/lib/lithic/models.rb CHANGED
@@ -308,6 +308,8 @@ module Lithic
308
308
 
309
309
  PaymentSimulateReturnParams = Lithic::Models::PaymentSimulateReturnParams
310
310
 
311
+ ProvisionResponse = Lithic::Models::ProvisionResponse
312
+
311
313
  Reports = Lithic::Models::Reports
312
314
 
313
315
  RequiredDocument = Lithic::Models::RequiredDocument
@@ -34,7 +34,7 @@ module Lithic
34
34
  #
35
35
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
36
36
  #
37
- # @return [Lithic::Internal::CursorPage<Lithic::Models::AccountActivityListResponse::FinancialTransaction, Lithic::Models::AccountActivityListResponse::BookTransferTransaction, Lithic::Models::AccountActivityListResponse::CardTransaction, Lithic::Models::AccountActivityListResponse::PaymentTransaction, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction>]
37
+ # @return [Lithic::Internal::CursorPage<Lithic::Models::AccountActivityListResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityListResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction>]
38
38
  #
39
39
  # @see Lithic::Models::AccountActivityListParams
40
40
  def list(params = {})
@@ -57,7 +57,7 @@ module Lithic
57
57
  #
58
58
  # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
59
59
  #
60
- # @return [Lithic::Models::AccountActivityRetrieveTransactionResponse::FinancialTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::BookTransferTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::CardTransaction, Lithic::Models::AccountActivityRetrieveTransactionResponse::PaymentTransaction, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction]
60
+ # @return [Lithic::Models::AccountActivityRetrieveTransactionResponse::Internal, Lithic::Models::BookTransferResponse, Lithic::Models::AccountActivityRetrieveTransactionResponse::Card, Lithic::Models::Payment, Lithic::Models::ExternalPayment, Lithic::Models::ManagementOperationTransaction]
61
61
  #
62
62
  # @see Lithic::Models::AccountActivityRetrieveTransactionParams
63
63
  def retrieve_transaction(transaction_token, params = {})
@@ -256,78 +256,6 @@ module Lithic
256
256
  )
257
257
  end
258
258
 
259
- # @deprecated
260
- #
261
- # This endpoint is deprecated and will be removed in the future. Requests a
262
- # performance report of an Auth rule to be asynchronously generated. Reports can
263
- # only be run on rules in draft or active mode and will included approved and
264
- # declined statistics as well as examples. The generated report will be delivered
265
- # asynchronously through a webhook with `event_type` =
266
- # `auth_rules.performance_report.created`. See the docs on setting up
267
- # [webhook subscriptions](https://docs.lithic.com/docs/events-api).
268
- #
269
- # Reports are generated based on data collected by Lithic's processing system in
270
- # the trailing week. The performance of the auth rule will be assessed on the
271
- # configuration of the auth rule at the time the report is requested. This implies
272
- # that if a performance report is requested, right after updating an auth rule,
273
- # depending on the number of events processed for a card program, it may be the
274
- # case that no data is available for the report. Therefore Lithic recommends to
275
- # decouple making updates to an Auth Rule, and requesting performance reports.
276
- #
277
- # To make this concrete, consider the following example:
278
- #
279
- # 1. At time `t`, a new Auth Rule is created, and applies to all auth events on a
280
- # card program. The Auth Rule has not yet been promoted, causing the draft
281
- # version of the rule to be applied in shadow mode.
282
- # 2. At time `t + 1 hour` a performance report is requested for the Auth Rule.
283
- # This performance report will _only_ contain data for the Auth Rule being
284
- # executed in the window between `t` and `t + 1 hour`. This is because Lithic's
285
- # transaction processing system will only start capturing data for the Auth
286
- # Rule at the time it is created.
287
- # 3. At time `t + 2 hours` the draft version of the Auth Rule is promoted to the
288
- # active version of the Auth Rule by calling the
289
- # `/v2/auth_rules/{auth_rule_token}/promote` endpoint. If a performance report
290
- # is requested at this moment it will still only contain data for this version
291
- # of the rule, but the window of available data will now span from `t` to
292
- # `t + 2 hours`.
293
- # 4. At time `t + 3 hours` a new version of the rule is drafted by calling the
294
- # `/v2/auth_rules/{auth_rule_token}/draft` endpoint. If a performance report is
295
- # requested right at this moment, it will only contain data for events to which
296
- # both the active version and the draft version is applied. Lithic does this to
297
- # ensure that performance reports represent a fair comparison between rules.
298
- # Because there may be no events in this window, and because there may be some
299
- # lag before data is available in a performance report, the requested
300
- # performance report could contain no to little data.
301
- # 5. At time `t + 4 hours` another performance report is requested: this time the
302
- # performance report will contain data from the window between `t + 3 hours`
303
- # and `t + 4 hours`, for any events to which both the current version of the
304
- # Auth rule (in enforcing mode) and the draft version of the Auth rule (in
305
- # shadow mode) applied.
306
- #
307
- # Note that generating a report may take up to 15 minutes and that delivery is not
308
- # guaranteed. Customers are required to have created an event subscription to
309
- # receive the webhook. Additionally, there is a delay of approximately 15 minutes
310
- # between when Lithic's transaction processing systems have processed the
311
- # transaction, and when a transaction will be included in the report.
312
- #
313
- # @overload report(auth_rule_token, request_options: {})
314
- #
315
- # @param auth_rule_token [String] Globally unique identifier for the Auth Rule.
316
- #
317
- # @param request_options [Lithic::RequestOptions, Hash{Symbol=>Object}, nil]
318
- #
319
- # @return [Lithic::Models::AuthRules::V2ReportResponse]
320
- #
321
- # @see Lithic::Models::AuthRules::V2ReportParams
322
- def report(auth_rule_token, params = {})
323
- @client.request(
324
- method: :post,
325
- path: ["v2/auth_rules/%1$s/report", auth_rule_token],
326
- model: Lithic::Models::AuthRules::V2ReportResponse,
327
- options: params[:request_options]
328
- )
329
- end
330
-
331
259
  # Fetches the current calculated Feature values for the given Auth Rule
332
260
  #
333
261
  # This only calculates the features for the active version.
@@ -11,7 +11,7 @@ module Lithic
11
11
  #
12
12
  # Creates an external bank account within a program or Lithic account.
13
13
  #
14
- # @overload create(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, processor_token:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil, request_options: {})
14
+ # @overload create(account_number:, country:, currency:, financial_account_token:, owner:, owner_type:, routing_number:, type:, verification_method:, account_token: nil, address: nil, company_id: nil, dob: nil, doing_business_as: nil, name: nil, user_defined_id: nil, verification_enforcement: nil, request_options: {})
15
15
  #
16
16
  # @param account_number [String] Account Number
17
17
  #
@@ -31,8 +31,6 @@ module Lithic
31
31
  #
32
32
  # @param verification_method [Symbol, Lithic::Models::ExternalBankAccountCreateParams::VerificationMethod] Verification Method
33
33
  #
34
- # @param processor_token [String]
35
- #
36
34
  # @param account_token [String] Indicates which Lithic account the external account is associated with. For exte
37
35
  #
38
36
  # @param address [Lithic::Models::ExternalBankAccountAddress] Address
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lithic
4
- VERSION = "0.1.0.pre.alpha.52"
4
+ VERSION = "0.1.0.pre.alpha.54"
5
5
  end
data/lib/lithic.rb CHANGED
@@ -9,6 +9,7 @@ require "erb"
9
9
  require "etc"
10
10
  require "json"
11
11
  require "net/http"
12
+ require "openssl"
12
13
  require "pathname"
13
14
  require "rbconfig"
14
15
  require "securerandom"
@@ -108,8 +109,6 @@ require_relative "lithic/models/auth_rules/v2_list_params"
108
109
  require_relative "lithic/models/auth_rules/v2_list_response"
109
110
  require_relative "lithic/models/auth_rules/v2_promote_params"
110
111
  require_relative "lithic/models/auth_rules/v2_promote_response"
111
- require_relative "lithic/models/auth_rules/v2_report_params"
112
- require_relative "lithic/models/auth_rules/v2_report_response"
113
112
  require_relative "lithic/models/auth_rules/v2_retrieve_features_params"
114
113
  require_relative "lithic/models/auth_rules/v2_retrieve_features_response"
115
114
  require_relative "lithic/models/auth_rules/v2_retrieve_params"
@@ -285,6 +284,7 @@ require_relative "lithic/models/payment_simulate_release_params"
285
284
  require_relative "lithic/models/payment_simulate_release_response"
286
285
  require_relative "lithic/models/payment_simulate_return_params"
287
286
  require_relative "lithic/models/payment_simulate_return_response"
287
+ require_relative "lithic/models/provision_response"
288
288
  require_relative "lithic/models/reports/settlement/network_total_list_params"
289
289
  require_relative "lithic/models/reports/settlement/network_total_list_response"
290
290
  require_relative "lithic/models/reports/settlement/network_total_retrieve_params"
data/manifest.yaml CHANGED
@@ -6,6 +6,7 @@ dependencies:
6
6
  - etc
7
7
  - json
8
8
  - net/http
9
+ - openssl
9
10
  - pathname
10
11
  - rbconfig
11
12
  - securerandom
@@ -176,6 +176,11 @@ module Lithic
176
176
  private def auth_headers
177
177
  end
178
178
 
179
+ # @api private
180
+ sig { returns(String) }
181
+ private def user_agent
182
+ end
183
+
179
184
  # @api private
180
185
  sig { returns(String) }
181
186
  private def generate_idempotency_key
@@ -26,8 +26,12 @@ module Lithic
26
26
 
27
27
  class << self
28
28
  # @api private
29
- sig { params(url: URI::Generic).returns(Net::HTTP) }
30
- def connect(url)
29
+ sig do
30
+ params(cert_store: OpenSSL::X509::Store, url: URI::Generic).returns(
31
+ Net::HTTP
32
+ )
33
+ end
34
+ def connect(cert_store:, url:)
31
35
  end
32
36
 
33
37
  # @api private
@@ -28,7 +28,7 @@ module Lithic
28
28
  #
29
29
  # Assumes superclass fields are totally defined before fields are accessed /
30
30
  # defined on subclasses.
31
- sig { params(child: T.self_type).void }
31
+ sig { params(child: Lithic::Internal::Type::BaseModel).void }
32
32
  def inherited(child)
33
33
  end
34
34
 
@@ -267,9 +267,13 @@ module Lithic
267
267
 
268
268
  # Create a new instance of a model.
269
269
  sig do
270
- params(data: T.any(T::Hash[Symbol, T.anything], T.self_type)).returns(
271
- T.attached_class
272
- )
270
+ params(
271
+ data:
272
+ T.any(
273
+ T::Hash[Symbol, T.anything],
274
+ Lithic::Internal::Type::BaseModel
275
+ )
276
+ ).returns(T.attached_class)
273
277
  end
274
278
  def self.new(data = {})
275
279
  end