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
@@ -18,6 +18,7 @@ module Lithic
18
18
  sig { params(balance: Lithic::Balance::OrHash).void }
19
19
  attr_writer :balance
20
20
 
21
+ # Payment transaction
21
22
  sig { params(balance: Lithic::Balance::OrHash).returns(T.attached_class) }
22
23
  def self.new(
23
24
  # Balance
@@ -15,6 +15,7 @@ module Lithic
15
15
  sig { params(balance: Lithic::Balance::OrHash).void }
16
16
  attr_writer :balance
17
17
 
18
+ # Payment transaction
18
19
  sig { params(balance: Lithic::Balance::OrHash).returns(T.attached_class) }
19
20
  def self.new(
20
21
  # Balance
@@ -0,0 +1,58 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class ProvisionResponse < Lithic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Lithic::ProvisionResponse, Lithic::Internal::AnyHash)
9
+ end
10
+
11
+ sig { returns(T.nilable(String)) }
12
+ attr_reader :activation_data
13
+
14
+ sig { params(activation_data: String).void }
15
+ attr_writer :activation_data
16
+
17
+ sig { returns(T.nilable(String)) }
18
+ attr_reader :encrypted_data
19
+
20
+ sig { params(encrypted_data: String).void }
21
+ attr_writer :encrypted_data
22
+
23
+ sig { returns(T.nilable(String)) }
24
+ attr_reader :ephemeral_public_key
25
+
26
+ sig { params(ephemeral_public_key: String).void }
27
+ attr_writer :ephemeral_public_key
28
+
29
+ # Object containing the fields required to add a card to Apple Pay. Applies only
30
+ # to Apple Pay wallet.
31
+ sig do
32
+ params(
33
+ activation_data: String,
34
+ encrypted_data: String,
35
+ ephemeral_public_key: String
36
+ ).returns(T.attached_class)
37
+ end
38
+ def self.new(
39
+ activation_data: nil,
40
+ encrypted_data: nil,
41
+ ephemeral_public_key: nil
42
+ )
43
+ end
44
+
45
+ sig do
46
+ override.returns(
47
+ {
48
+ activation_data: String,
49
+ encrypted_data: String,
50
+ ephemeral_public_key: String
51
+ }
52
+ )
53
+ end
54
+ def to_hash
55
+ end
56
+ end
57
+ end
58
+ end
@@ -629,6 +629,27 @@ module Lithic
629
629
  sig { returns(T.nilable(T::Boolean)) }
630
630
  attr_accessor :address_match
631
631
 
632
+ # Lithic's evaluation result comparing the transaction's address data with the
633
+ # cardholder KYC data if it exists. In the event Lithic does not have any
634
+ # Cardholder KYC data, or the transaction does not contain any address data,
635
+ # NOT_PRESENT will be returned
636
+ sig do
637
+ returns(
638
+ T.nilable(
639
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol
640
+ )
641
+ )
642
+ end
643
+ attr_reader :address_on_file_match
644
+
645
+ sig do
646
+ params(
647
+ address_on_file_match:
648
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::OrSymbol
649
+ ).void
650
+ end
651
+ attr_writer :address_on_file_match
652
+
632
653
  # Object containing data on the billing address provided during the transaction.
633
654
  sig do
634
655
  returns(
@@ -693,6 +714,8 @@ module Lithic
693
714
  sig do
694
715
  params(
695
716
  address_match: T.nilable(T::Boolean),
717
+ address_on_file_match:
718
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::OrSymbol,
696
719
  billing_address:
697
720
  Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress::OrHash,
698
721
  email: T.nilable(String),
@@ -710,6 +733,11 @@ module Lithic
710
733
  # match - is provided directly in the 3DS request and is not determined by Lithic.
711
734
  # Maps to EMV 3DS field `addrMatch`.
712
735
  address_match: nil,
736
+ # Lithic's evaluation result comparing the transaction's address data with the
737
+ # cardholder KYC data if it exists. In the event Lithic does not have any
738
+ # Cardholder KYC data, or the transaction does not contain any address data,
739
+ # NOT_PRESENT will be returned
740
+ address_on_file_match: nil,
713
741
  # Object containing data on the billing address provided during the transaction.
714
742
  billing_address: nil,
715
743
  # Email address that is either provided by the cardholder or is on file with the
@@ -735,6 +763,8 @@ module Lithic
735
763
  override.returns(
736
764
  {
737
765
  address_match: T.nilable(T::Boolean),
766
+ address_on_file_match:
767
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol,
738
768
  billing_address:
739
769
  Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::BillingAddress,
740
770
  email: T.nilable(String),
@@ -750,6 +780,59 @@ module Lithic
750
780
  def to_hash
751
781
  end
752
782
 
783
+ # Lithic's evaluation result comparing the transaction's address data with the
784
+ # cardholder KYC data if it exists. In the event Lithic does not have any
785
+ # Cardholder KYC data, or the transaction does not contain any address data,
786
+ # NOT_PRESENT will be returned
787
+ module AddressOnFileMatch
788
+ extend Lithic::Internal::Type::Enum
789
+
790
+ TaggedSymbol =
791
+ T.type_alias do
792
+ T.all(
793
+ Symbol,
794
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch
795
+ )
796
+ end
797
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
798
+
799
+ MATCH =
800
+ T.let(
801
+ :MATCH,
802
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol
803
+ )
804
+ MATCH_ADDRESS_ONLY =
805
+ T.let(
806
+ :MATCH_ADDRESS_ONLY,
807
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol
808
+ )
809
+ MATCH_ZIP_ONLY =
810
+ T.let(
811
+ :MATCH_ZIP_ONLY,
812
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol
813
+ )
814
+ MISMATCH =
815
+ T.let(
816
+ :MISMATCH,
817
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol
818
+ )
819
+ NOT_PRESENT =
820
+ T.let(
821
+ :NOT_PRESENT,
822
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol
823
+ )
824
+
825
+ sig do
826
+ override.returns(
827
+ T::Array[
828
+ Lithic::Models::ThreeDS::AuthenticationRetrieveResponse::Cardholder::AddressOnFileMatch::TaggedSymbol
829
+ ]
830
+ )
831
+ end
832
+ def self.values
833
+ end
834
+ end
835
+
753
836
  class BillingAddress < Lithic::Internal::Type::BaseModel
754
837
  OrHash =
755
838
  T.type_alias do
@@ -395,6 +395,11 @@ module Lithic
395
395
  :TOKEN_DEACTIVATED,
396
396
  Lithic::Tokenization::Event::Result::TaggedSymbol
397
397
  )
398
+ TOKEN_DELETED_FROM_CONSUMER_APP =
399
+ T.let(
400
+ :TOKEN_DELETED_FROM_CONSUMER_APP,
401
+ Lithic::Tokenization::Event::Result::TaggedSymbol
402
+ )
398
403
  TOKEN_INACTIVE =
399
404
  T.let(
400
405
  :TOKEN_INACTIVE,
@@ -2679,6 +2679,16 @@ module Lithic
2679
2679
  :VEHICLE_NUMBER_INVALID,
2680
2680
  Lithic::Transaction::Event::DetailedResult::TaggedSymbol
2681
2681
  )
2682
+ CARDHOLDER_CHALLENGED =
2683
+ T.let(
2684
+ :CARDHOLDER_CHALLENGED,
2685
+ Lithic::Transaction::Event::DetailedResult::TaggedSymbol
2686
+ )
2687
+ CARDHOLDER_CHALLENGE_FAILED =
2688
+ T.let(
2689
+ :CARDHOLDER_CHALLENGE_FAILED,
2690
+ Lithic::Transaction::Event::DetailedResult::TaggedSymbol
2691
+ )
2682
2692
 
2683
2693
  sig do
2684
2694
  override.returns(
@@ -3567,6 +3577,16 @@ module Lithic
3567
3577
  :VEHICLE_NUMBER_INVALID,
3568
3578
  Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
3569
3579
  )
3580
+ CARDHOLDER_CHALLENGED =
3581
+ T.let(
3582
+ :CARDHOLDER_CHALLENGED,
3583
+ Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
3584
+ )
3585
+ CARDHOLDER_CHALLENGE_FAILED =
3586
+ T.let(
3587
+ :CARDHOLDER_CHALLENGE_FAILED,
3588
+ Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
3589
+ )
3570
3590
 
3571
3591
  sig do
3572
3592
  override.returns(
@@ -369,6 +369,11 @@ module Lithic
369
369
  :ACH_RECEIPT_PROCESSED,
370
370
  Lithic::Transfer::Event::Type::TaggedSymbol
371
371
  )
372
+ ACH_RECEIPT_RELEASED =
373
+ T.let(
374
+ :ACH_RECEIPT_RELEASED,
375
+ Lithic::Transfer::Event::Type::TaggedSymbol
376
+ )
372
377
  ACH_RECEIPT_SETTLED =
373
378
  T.let(
374
379
  :ACH_RECEIPT_SETTLED,
@@ -11,7 +11,6 @@ module Lithic
11
11
  MANUAL = T.let(:MANUAL, Lithic::VerificationMethod::TaggedSymbol)
12
12
  MICRO_DEPOSIT =
13
13
  T.let(:MICRO_DEPOSIT, Lithic::VerificationMethod::TaggedSymbol)
14
- PLAID = T.let(:PLAID, Lithic::VerificationMethod::TaggedSymbol)
15
14
  PRENOTE = T.let(:PRENOTE, Lithic::VerificationMethod::TaggedSymbol)
16
15
  EXTERNALLY_VERIFIED =
17
16
  T.let(:EXTERNALLY_VERIFIED, Lithic::VerificationMethod::TaggedSymbol)
@@ -292,6 +292,8 @@ module Lithic
292
292
 
293
293
  PaymentSimulateReturnParams = Lithic::Models::PaymentSimulateReturnParams
294
294
 
295
+ ProvisionResponse = Lithic::Models::ProvisionResponse
296
+
295
297
  Reports = Lithic::Models::Reports
296
298
 
297
299
  RequiredDocument = Lithic::Models::RequiredDocument
@@ -250,70 +250,6 @@ module Lithic
250
250
  )
251
251
  end
252
252
 
253
- # This endpoint is deprecated and will be removed in the future. Requests a
254
- # performance report of an Auth rule to be asynchronously generated. Reports can
255
- # only be run on rules in draft or active mode and will included approved and
256
- # declined statistics as well as examples. The generated report will be delivered
257
- # asynchronously through a webhook with `event_type` =
258
- # `auth_rules.performance_report.created`. See the docs on setting up
259
- # [webhook subscriptions](https://docs.lithic.com/docs/events-api).
260
- #
261
- # Reports are generated based on data collected by Lithic's processing system in
262
- # the trailing week. The performance of the auth rule will be assessed on the
263
- # configuration of the auth rule at the time the report is requested. This implies
264
- # that if a performance report is requested, right after updating an auth rule,
265
- # depending on the number of events processed for a card program, it may be the
266
- # case that no data is available for the report. Therefore Lithic recommends to
267
- # decouple making updates to an Auth Rule, and requesting performance reports.
268
- #
269
- # To make this concrete, consider the following example:
270
- #
271
- # 1. At time `t`, a new Auth Rule is created, and applies to all auth events on a
272
- # card program. The Auth Rule has not yet been promoted, causing the draft
273
- # version of the rule to be applied in shadow mode.
274
- # 2. At time `t + 1 hour` a performance report is requested for the Auth Rule.
275
- # This performance report will _only_ contain data for the Auth Rule being
276
- # executed in the window between `t` and `t + 1 hour`. This is because Lithic's
277
- # transaction processing system will only start capturing data for the Auth
278
- # Rule at the time it is created.
279
- # 3. At time `t + 2 hours` the draft version of the Auth Rule is promoted to the
280
- # active version of the Auth Rule by calling the
281
- # `/v2/auth_rules/{auth_rule_token}/promote` endpoint. If a performance report
282
- # is requested at this moment it will still only contain data for this version
283
- # of the rule, but the window of available data will now span from `t` to
284
- # `t + 2 hours`.
285
- # 4. At time `t + 3 hours` a new version of the rule is drafted by calling the
286
- # `/v2/auth_rules/{auth_rule_token}/draft` endpoint. If a performance report is
287
- # requested right at this moment, it will only contain data for events to which
288
- # both the active version and the draft version is applied. Lithic does this to
289
- # ensure that performance reports represent a fair comparison between rules.
290
- # Because there may be no events in this window, and because there may be some
291
- # lag before data is available in a performance report, the requested
292
- # performance report could contain no to little data.
293
- # 5. At time `t + 4 hours` another performance report is requested: this time the
294
- # performance report will contain data from the window between `t + 3 hours`
295
- # and `t + 4 hours`, for any events to which both the current version of the
296
- # Auth rule (in enforcing mode) and the draft version of the Auth rule (in
297
- # shadow mode) applied.
298
- #
299
- # Note that generating a report may take up to 15 minutes and that delivery is not
300
- # guaranteed. Customers are required to have created an event subscription to
301
- # receive the webhook. Additionally, there is a delay of approximately 15 minutes
302
- # between when Lithic's transaction processing systems have processed the
303
- # transaction, and when a transaction will be included in the report.
304
- sig do
305
- params(
306
- auth_rule_token: String,
307
- request_options: Lithic::RequestOptions::OrHash
308
- ).returns(Lithic::Models::AuthRules::V2ReportResponse)
309
- end
310
- def report(
311
- # Globally unique identifier for the Auth Rule.
312
- auth_rule_token,
313
- request_options: {}
314
- )
315
- end
316
-
317
253
  # Fetches the current calculated Feature values for the given Auth Rule
318
254
  #
319
255
  # This only calculates the features for the active version.
@@ -19,7 +19,6 @@ module Lithic
19
19
  type: Lithic::ExternalBankAccountCreateParams::Type::OrSymbol,
20
20
  verification_method:
21
21
  Lithic::ExternalBankAccountCreateParams::VerificationMethod::OrSymbol,
22
- processor_token: String,
23
22
  account_token: String,
24
23
  address: Lithic::ExternalBankAccountAddress::OrHash,
25
24
  company_id: String,
@@ -52,7 +51,6 @@ module Lithic
52
51
  type:,
53
52
  # Verification Method
54
53
  verification_method:,
55
- processor_token:,
56
54
  # Indicates which Lithic account the external account is associated with. For
57
55
  # external accounts that are associated with the program, account_token field
58
56
  # returned will be null
@@ -87,6 +87,8 @@ module Lithic
87
87
 
88
88
  private def auth_headers: -> ::Hash[String, String]
89
89
 
90
+ private def user_agent: -> String
91
+
90
92
  private def generate_idempotency_key: -> String
91
93
 
92
94
  private def build_request: (
@@ -17,7 +17,10 @@ module Lithic
17
17
 
18
18
  DEFAULT_MAX_CONNECTIONS: Integer
19
19
 
20
- def self.connect: (URI::Generic url) -> top
20
+ def self.connect: (
21
+ cert_store: OpenSSL::X509::Store,
22
+ url: URI::Generic
23
+ ) -> top
21
24
 
22
25
  def self.calibrate_socket_timeout: (top conn, Float deadline) -> void
23
26