lithic 0.2.0 → 0.4.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 (135) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +78 -0
  3. data/README.md +1 -1
  4. data/lib/lithic/client.rb +5 -10
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +12 -10
  6. data/lib/lithic/internal/util.rb +7 -2
  7. data/lib/lithic/models/auth_rules/conditional_tokenization_action_parameters.rb +5 -0
  8. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +21 -21
  9. data/lib/lithic/models/book_transfer_retry_params.rb +26 -0
  10. data/lib/lithic/models/{asa_request_webhook_event.rb → card_authorization_approval_request_webhook_event.rb} +151 -129
  11. data/lib/lithic/models/card_create_params.rb +12 -5
  12. data/lib/lithic/models/card_updated_webhook_event.rb +40 -0
  13. data/lib/lithic/models/card_web_provision_response.rb +5 -5
  14. data/lib/lithic/models/event.rb +3 -0
  15. data/lib/lithic/models/event_list_params.rb +2 -0
  16. data/lib/lithic/models/event_subscription.rb +2 -0
  17. data/lib/lithic/models/events/subscription_create_params.rb +2 -0
  18. data/lib/lithic/models/events/subscription_send_simulated_example_params.rb +1 -0
  19. data/lib/lithic/models/events/subscription_update_params.rb +2 -0
  20. data/lib/lithic/models/external_payment_create_params.rb +15 -1
  21. data/lib/lithic/models/financial_account.rb +33 -25
  22. data/lib/lithic/models/financial_account_update_status_params.rb +9 -1
  23. data/lib/lithic/models/financial_accounts/loan_tape.rb +52 -3
  24. data/lib/lithic/models/financial_transaction.rb +4 -2
  25. data/lib/lithic/models/management_operation_create_params.rb +6 -1
  26. data/lib/lithic/models/non_pci_card.rb +8 -10
  27. data/lib/lithic/models/parsed_webhook_event.rb +5 -4
  28. data/lib/lithic/models/payment.rb +10 -1
  29. data/lib/lithic/models/payment_create_params.rb +1 -1
  30. data/lib/lithic/models/three_ds_authentication_approval_request_webhook_event.rb +17 -0
  31. data/lib/lithic/models/transaction.rb +12 -1
  32. data/lib/lithic/models/transaction_simulate_authorization_params.rb +25 -1
  33. data/lib/lithic/models/transaction_simulate_credit_authorization_advice_params.rb +25 -1
  34. data/lib/lithic/models/transfer_limit_list_params.rb +22 -0
  35. data/lib/lithic/models/transfer_limits_response.rb +274 -0
  36. data/lib/lithic/models.rb +14 -6
  37. data/lib/lithic/resources/book_transfers.rb +27 -0
  38. data/lib/lithic/resources/cards.rb +33 -27
  39. data/lib/lithic/resources/external_payments.rb +13 -1
  40. data/lib/lithic/resources/financial_accounts.rb +8 -6
  41. data/lib/lithic/resources/management_operations.rb +4 -1
  42. data/lib/lithic/resources/transactions.rb +14 -2
  43. data/lib/lithic/resources/transfer_limits.rb +37 -0
  44. data/lib/lithic/resources/webhooks.rb +3 -2
  45. data/lib/lithic/version.rb +1 -1
  46. data/lib/lithic.rb +7 -7
  47. data/rbi/lithic/client.rbi +3 -3
  48. data/rbi/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbi +11 -0
  49. data/rbi/lithic/models/auth_rules/velocity_limit_params.rbi +47 -45
  50. data/rbi/lithic/models/book_transfer_retry_params.rbi +42 -0
  51. data/rbi/lithic/models/{asa_request_webhook_event.rbi → card_authorization_approval_request_webhook_event.rbi} +394 -256
  52. data/rbi/lithic/models/card_create_params.rbi +15 -6
  53. data/rbi/lithic/models/card_updated_webhook_event.rbi +61 -0
  54. data/rbi/lithic/models/card_web_provision_response.rbi +5 -10
  55. data/rbi/lithic/models/event.rbi +5 -0
  56. data/rbi/lithic/models/event_list_params.rbi +6 -0
  57. data/rbi/lithic/models/event_subscription.rbi +6 -0
  58. data/rbi/lithic/models/events/subscription_create_params.rbi +6 -0
  59. data/rbi/lithic/models/events/subscription_send_simulated_example_params.rbi +5 -0
  60. data/rbi/lithic/models/events/subscription_update_params.rbi +6 -0
  61. data/rbi/lithic/models/external_payment_create_params.rbi +4 -0
  62. data/rbi/lithic/models/financial_account.rbi +62 -54
  63. data/rbi/lithic/models/financial_account_update_status_params.rbi +11 -0
  64. data/rbi/lithic/models/financial_accounts/loan_tape.rbi +93 -4
  65. data/rbi/lithic/models/financial_transaction.rbi +8 -4
  66. data/rbi/lithic/models/management_operation_create_params.rbi +4 -0
  67. data/rbi/lithic/models/non_pci_card.rbi +12 -15
  68. data/rbi/lithic/models/parsed_webhook_event.rbi +3 -2
  69. data/rbi/lithic/models/payment.rbi +16 -3
  70. data/rbi/lithic/models/three_ds_authentication_approval_request_webhook_event.rbi +27 -0
  71. data/rbi/lithic/models/transaction.rbi +20 -0
  72. data/rbi/lithic/models/transaction_simulate_authorization_params.rbi +33 -0
  73. data/rbi/lithic/models/transaction_simulate_credit_authorization_advice_params.rbi +33 -0
  74. data/rbi/lithic/models/transfer_limit_list_params.rbi +43 -0
  75. data/rbi/lithic/models/transfer_limits_response.rbi +604 -0
  76. data/rbi/lithic/models.rbi +14 -6
  77. data/rbi/lithic/resources/book_transfers.rbi +18 -0
  78. data/rbi/lithic/resources/cards.rbi +52 -49
  79. data/rbi/lithic/resources/external_payments.rbi +2 -0
  80. data/rbi/lithic/resources/financial_accounts.rbi +8 -5
  81. data/rbi/lithic/resources/management_operations.rbi +2 -0
  82. data/rbi/lithic/resources/transactions.rbi +18 -0
  83. data/rbi/lithic/resources/transfer_limits.rbi +28 -0
  84. data/rbi/lithic/resources/webhooks.rbi +4 -65
  85. data/sig/lithic/client.rbs +2 -2
  86. data/sig/lithic/models/auth_rules/conditional_tokenization_action_parameters.rbs +2 -0
  87. data/sig/lithic/models/auth_rules/velocity_limit_params.rbs +20 -16
  88. data/sig/lithic/models/book_transfer_retry_params.rbs +23 -0
  89. data/sig/lithic/models/{asa_request_webhook_event.rbs → card_authorization_approval_request_webhook_event.rbs} +161 -156
  90. data/sig/lithic/models/card_create_params.rbs +8 -1
  91. data/sig/lithic/models/card_updated_webhook_event.rbs +35 -0
  92. data/sig/lithic/models/card_web_provision_response.rbs +4 -10
  93. data/sig/lithic/models/event.rbs +2 -0
  94. data/sig/lithic/models/event_list_params.rbs +2 -0
  95. data/sig/lithic/models/event_subscription.rbs +2 -0
  96. data/sig/lithic/models/events/subscription_create_params.rbs +2 -0
  97. data/sig/lithic/models/events/subscription_send_simulated_example_params.rbs +2 -0
  98. data/sig/lithic/models/events/subscription_update_params.rbs +2 -0
  99. data/sig/lithic/models/financial_account.rbs +32 -27
  100. data/sig/lithic/models/financial_account_update_status_params.rbs +8 -1
  101. data/sig/lithic/models/financial_accounts/loan_tape.rbs +46 -4
  102. data/sig/lithic/models/parsed_webhook_event.rbs +3 -2
  103. data/sig/lithic/models/payment.rbs +10 -3
  104. data/sig/lithic/models/three_ds_authentication_approval_request_webhook_event.rbs +22 -0
  105. data/sig/lithic/models/transaction.rbs +9 -0
  106. data/sig/lithic/models/transaction_simulate_authorization_params.rbs +21 -0
  107. data/sig/lithic/models/transaction_simulate_credit_authorization_advice_params.rbs +22 -1
  108. data/sig/lithic/models/transfer_limit_list_params.rbs +22 -0
  109. data/sig/lithic/models/transfer_limits_response.rbs +232 -0
  110. data/sig/lithic/models.rbs +12 -6
  111. data/sig/lithic/resources/book_transfers.rbs +6 -0
  112. data/sig/lithic/resources/cards.rbs +1 -2
  113. data/sig/lithic/resources/financial_accounts.rbs +1 -0
  114. data/sig/lithic/resources/transactions.rbs +6 -0
  115. data/sig/lithic/resources/transfer_limits.rbs +12 -0
  116. data/sig/lithic/resources/webhooks.rbs +4 -61
  117. metadata +37 -23
  118. data/lib/lithic/models/aggregate_balance.rb +0 -113
  119. data/lib/lithic/models/aggregate_balance_list_params.rb +0 -35
  120. data/lib/lithic/models/cards/aggregate_balance_list_params.rb +0 -32
  121. data/lib/lithic/models/cards/aggregate_balance_list_response.rb +0 -92
  122. data/lib/lithic/resources/aggregate_balances.rb +0 -38
  123. data/lib/lithic/resources/cards/aggregate_balances.rb +0 -41
  124. data/rbi/lithic/models/aggregate_balance.rbi +0 -164
  125. data/rbi/lithic/models/aggregate_balance_list_params.rbi +0 -104
  126. data/rbi/lithic/models/cards/aggregate_balance_list_params.rbi +0 -62
  127. data/rbi/lithic/models/cards/aggregate_balance_list_response.rbi +0 -115
  128. data/rbi/lithic/resources/aggregate_balances.rbi +0 -28
  129. data/rbi/lithic/resources/cards/aggregate_balances.rbi +0 -35
  130. data/sig/lithic/models/aggregate_balance.rbs +0 -78
  131. data/sig/lithic/models/aggregate_balance_list_params.rbs +0 -43
  132. data/sig/lithic/models/cards/aggregate_balance_list_params.rbs +0 -34
  133. data/sig/lithic/models/cards/aggregate_balance_list_response.rbs +0 -62
  134. data/sig/lithic/resources/aggregate_balances.rbs +0 -12
  135. data/sig/lithic/resources/cards/aggregate_balances.rbs +0 -15
@@ -38,6 +38,8 @@ module Lithic
38
38
  sig { returns(String) }
39
39
  attr_accessor :financial_account_token
40
40
 
41
+ # Customer-provided token that will serve as an idempotency token. This token will
42
+ # become the transaction token.
41
43
  sig { returns(T.nilable(String)) }
42
44
  attr_reader :token
43
45
 
@@ -106,6 +108,8 @@ module Lithic
106
108
  effective_date:,
107
109
  event_type:,
108
110
  financial_account_token:,
111
+ # Customer-provided token that will serve as an idempotency token. This token will
112
+ # become the transaction token.
109
113
  token: nil,
110
114
  memo: nil,
111
115
  # What to do if the financial account is closed when posting an operation
@@ -81,11 +81,10 @@ module Lithic
81
81
  # wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
82
82
  # offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
83
83
  # functionality. _ `SINGLE_USE` - Card is closed upon first successful
84
- # authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
85
- # merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
86
- # Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
87
- # `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
88
- # VIRTUAL instead.
84
+ # authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
85
+ # successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
86
+ # to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
87
+ # _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
89
88
  sig { returns(Lithic::NonPCICard::Type::TaggedSymbol) }
90
89
  attr_accessor :type
91
90
 
@@ -293,11 +292,10 @@ module Lithic
293
292
  # wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
294
293
  # offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
295
294
  # functionality. _ `SINGLE_USE` - Card is closed upon first successful
296
- # authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
297
- # merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
298
- # Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
299
- # `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
300
- # VIRTUAL instead.
295
+ # authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
296
+ # successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
297
+ # to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
298
+ # _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
301
299
  type:,
302
300
  # List of identifiers for the Auth Rule(s) that are applied on the card. This
303
301
  # field is deprecated and will no longer be populated in the `Card` object. The
@@ -614,11 +612,10 @@ module Lithic
614
612
  # wallet-enabled). _ `PHYSICAL` - Manufactured and sent to the cardholder. We
615
613
  # offer white label branding, credit, ATM, PIN debit, chip/EMV, NFC and magstripe
616
614
  # functionality. _ `SINGLE_USE` - Card is closed upon first successful
617
- # authorization. _ `MERCHANT_LOCKED` - _[Deprecated]_ Card is locked to the first
618
- # merchant that successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_
619
- # Similar behavior to VIRTUAL cards, please use VIRTUAL instead. _
620
- # `DIGITAL_WALLET` - _[Deprecated]_ Similar behavior to VIRTUAL cards, please use
621
- # VIRTUAL instead.
615
+ # authorization. _ `MERCHANT_LOCKED` - Card is locked to the first merchant that
616
+ # successfully authorizes the card. _ `UNLOCKED` - _[Deprecated]_ Similar behavior
617
+ # to VIRTUAL cards, please use VIRTUAL instead. _ `DIGITAL_WALLET` -
618
+ # _[Deprecated]_ Similar behavior to VIRTUAL cards, please use VIRTUAL instead.
622
619
  module Type
623
620
  extend Lithic::Internal::Type::Enum
624
621
 
@@ -15,7 +15,7 @@ module Lithic
15
15
  Lithic::ParsedWebhookEvent::LegacyPayload,
16
16
  Lithic::AccountHolderVerificationWebhookEvent,
17
17
  Lithic::AccountHolderDocumentUpdatedWebhookEvent,
18
- Lithic::AsaRequestWebhookEvent,
18
+ Lithic::CardAuthorizationApprovalRequestWebhookEvent,
19
19
  Lithic::TokenizationDecisioningRequestWebhookEvent,
20
20
  Lithic::AuthRulesBacktestReportCreatedWebhookEvent,
21
21
  Lithic::BalanceUpdatedWebhookEvent,
@@ -26,6 +26,7 @@ module Lithic
26
26
  Lithic::CardRenewedWebhookEvent,
27
27
  Lithic::CardReissuedWebhookEvent,
28
28
  Lithic::CardShippedWebhookEvent,
29
+ Lithic::CardUpdatedWebhookEvent,
29
30
  Lithic::CardTransactionUpdatedWebhookEvent,
30
31
  Lithic::CardTransactionEnhancedDataCreatedWebhookEvent,
31
32
  Lithic::CardTransactionEnhancedDataUpdatedWebhookEvent,
@@ -63,7 +64,7 @@ module Lithic
63
64
  Lithic::TokenizationTwoFactorAuthenticationCodeWebhookEvent,
64
65
  Lithic::TokenizationTwoFactorAuthenticationCodeSentWebhookEvent,
65
66
  Lithic::TokenizationUpdatedWebhookEvent,
66
- Lithic::ThreeDSAuthentication,
67
+ Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent,
67
68
  Lithic::DisputeTransactionCreatedWebhookEvent,
68
69
  Lithic::DisputeTransactionUpdatedWebhookEvent
69
70
  )
@@ -357,6 +357,10 @@ module Lithic
357
357
  end
358
358
  attr_writer :detailed_results
359
359
 
360
+ # Payment event external ID, for example, ACH trace number.
361
+ sig { returns(T.nilable(String)) }
362
+ attr_accessor :external_id
363
+
360
364
  # Payment Event
361
365
  sig do
362
366
  params(
@@ -366,7 +370,8 @@ module Lithic
366
370
  result: Lithic::Payment::Event::Result::OrSymbol,
367
371
  type: Lithic::Payment::Event::Type::OrSymbol,
368
372
  detailed_results:
369
- T::Array[Lithic::Payment::Event::DetailedResult::OrSymbol]
373
+ T::Array[Lithic::Payment::Event::DetailedResult::OrSymbol],
374
+ external_id: T.nilable(String)
370
375
  ).returns(T.attached_class)
371
376
  end
372
377
  def self.new(
@@ -406,7 +411,9 @@ module Lithic
406
411
  # Financial Institution.
407
412
  type:,
408
413
  # More detailed reasons for the event
409
- detailed_results: nil
414
+ detailed_results: nil,
415
+ # Payment event external ID, for example, ACH trace number.
416
+ external_id: nil
410
417
  )
411
418
  end
412
419
 
@@ -419,7 +426,8 @@ module Lithic
419
426
  result: Lithic::Payment::Event::Result::TaggedSymbol,
420
427
  type: Lithic::Payment::Event::Type::TaggedSymbol,
421
428
  detailed_results:
422
- T::Array[Lithic::Payment::Event::DetailedResult::TaggedSymbol]
429
+ T::Array[Lithic::Payment::Event::DetailedResult::TaggedSymbol],
430
+ external_id: T.nilable(String)
423
431
  }
424
432
  )
425
433
  end
@@ -1053,6 +1061,11 @@ module Lithic
1053
1061
  T.let(:WIRE_OUTBOUND_PAYMENT, Lithic::Payment::Type::TaggedSymbol)
1054
1062
  WIRE_OUTBOUND_ADMIN =
1055
1063
  T.let(:WIRE_OUTBOUND_ADMIN, Lithic::Payment::Type::TaggedSymbol)
1064
+ WIRE_INBOUND_DRAWDOWN_REQUEST =
1065
+ T.let(
1066
+ :WIRE_INBOUND_DRAWDOWN_REQUEST,
1067
+ Lithic::Payment::Type::TaggedSymbol
1068
+ )
1056
1069
 
1057
1070
  sig { override.returns(T::Array[Lithic::Payment::Type::TaggedSymbol]) }
1058
1071
  def self.values
@@ -0,0 +1,27 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class ThreeDSAuthenticationApprovalRequestWebhookEvent < Lithic::Models::ThreeDSAuthentication
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Lithic::ThreeDSAuthenticationApprovalRequestWebhookEvent,
10
+ Lithic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ sig { returns(Symbol) }
15
+ attr_accessor :event_type
16
+
17
+ # Represents a 3DS authentication
18
+ sig { params(event_type: Symbol).returns(T.attached_class) }
19
+ def self.new(event_type: :"three_ds_authentication.approval_request")
20
+ end
21
+
22
+ sig { override.returns({ event_type: Symbol }) }
23
+ def to_hash
24
+ end
25
+ end
26
+ end
27
+ end
@@ -124,6 +124,11 @@ module Lithic
124
124
  sig { returns(Lithic::Transaction::Status::TaggedSymbol) }
125
125
  attr_accessor :status
126
126
 
127
+ # Key-value pairs for tagging resources. Tags allow you to associate arbitrary
128
+ # metadata with a resource for your own purposes.
129
+ sig { returns(T::Hash[Symbol, String]) }
130
+ attr_accessor :tags
131
+
127
132
  sig { returns(T.nilable(Lithic::TokenInfo)) }
128
133
  attr_reader :token_info
129
134
 
@@ -166,6 +171,7 @@ module Lithic
166
171
  result: Lithic::Transaction::Result::OrSymbol,
167
172
  settled_amount: Integer,
168
173
  status: Lithic::Transaction::Status::OrSymbol,
174
+ tags: T::Hash[Symbol, String],
169
175
  token_info: T.nilable(Lithic::TokenInfo::OrHash),
170
176
  updated: Time,
171
177
  events: T::Array[Lithic::Transaction::Event::OrHash]
@@ -224,6 +230,9 @@ module Lithic
224
230
  settled_amount:,
225
231
  # Status of the transaction.
226
232
  status:,
233
+ # Key-value pairs for tagging resources. Tags allow you to associate arbitrary
234
+ # metadata with a resource for your own purposes.
235
+ tags:,
227
236
  token_info:,
228
237
  # Date and time when the transaction last updated. UTC time zone.
229
238
  updated:,
@@ -258,6 +267,7 @@ module Lithic
258
267
  result: Lithic::Transaction::Result::TaggedSymbol,
259
268
  settled_amount: Integer,
260
269
  status: Lithic::Transaction::Status::TaggedSymbol,
270
+ tags: T::Hash[Symbol, String],
261
271
  token_info: T.nilable(Lithic::TokenInfo),
262
272
  updated: Time,
263
273
  events: T::Array[Lithic::Transaction::Event]
@@ -1762,6 +1772,11 @@ module Lithic
1762
1772
  :AUTH_RULE_BLOCKED_MCC,
1763
1773
  Lithic::Transaction::Event::DetailedResult::TaggedSymbol
1764
1774
  )
1775
+ AUTH_RULE =
1776
+ T.let(
1777
+ :AUTH_RULE,
1778
+ Lithic::Transaction::Event::DetailedResult::TaggedSymbol
1779
+ )
1765
1780
  CARD_CLOSED =
1766
1781
  T.let(
1767
1782
  :CARD_CLOSED,
@@ -2660,6 +2675,11 @@ module Lithic
2660
2675
  :AUTH_RULE_BLOCKED_MCC,
2661
2676
  Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
2662
2677
  )
2678
+ AUTH_RULE =
2679
+ T.let(
2680
+ :AUTH_RULE,
2681
+ Lithic::Transaction::Event::RuleResult::Result::TaggedSymbol
2682
+ )
2663
2683
  CARD_CLOSED =
2664
2684
  T.let(
2665
2685
  :CARD_CLOSED,
@@ -39,6 +39,20 @@ module Lithic
39
39
  sig { params(mcc: String).void }
40
40
  attr_writer :mcc
41
41
 
42
+ # Merchant acceptor city
43
+ sig { returns(T.nilable(String)) }
44
+ attr_reader :merchant_acceptor_city
45
+
46
+ sig { params(merchant_acceptor_city: String).void }
47
+ attr_writer :merchant_acceptor_city
48
+
49
+ # Merchant acceptor country code (ISO 3166-1 alpha-3)
50
+ sig { returns(T.nilable(String)) }
51
+ attr_reader :merchant_acceptor_country
52
+
53
+ sig { params(merchant_acceptor_country: String).void }
54
+ attr_writer :merchant_acceptor_country
55
+
42
56
  # Unique identifier to identify the payment card acceptor.
43
57
  sig { returns(T.nilable(String)) }
44
58
  attr_reader :merchant_acceptor_id
@@ -46,6 +60,13 @@ module Lithic
46
60
  sig { params(merchant_acceptor_id: String).void }
47
61
  attr_writer :merchant_acceptor_id
48
62
 
63
+ # Merchant acceptor state/province (ISO 3166-2 subdivision code)
64
+ sig { returns(T.nilable(String)) }
65
+ attr_reader :merchant_acceptor_state
66
+
67
+ sig { params(merchant_acceptor_state: String).void }
68
+ attr_writer :merchant_acceptor_state
69
+
49
70
  # Amount of the transaction to be simulated in currency specified in
50
71
  # merchant_currency, including any acquirer fees.
51
72
  sig { returns(T.nilable(Integer)) }
@@ -117,7 +138,10 @@ module Lithic
117
138
  descriptor: String,
118
139
  pan: String,
119
140
  mcc: String,
141
+ merchant_acceptor_city: String,
142
+ merchant_acceptor_country: String,
120
143
  merchant_acceptor_id: String,
144
+ merchant_acceptor_state: String,
121
145
  merchant_amount: Integer,
122
146
  merchant_currency: String,
123
147
  partial_approval_capable: T::Boolean,
@@ -142,8 +166,14 @@ module Lithic
142
166
  # listed in ISO 18245. Supported merchant category codes can be found
143
167
  # [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
144
168
  mcc: nil,
169
+ # Merchant acceptor city
170
+ merchant_acceptor_city: nil,
171
+ # Merchant acceptor country code (ISO 3166-1 alpha-3)
172
+ merchant_acceptor_country: nil,
145
173
  # Unique identifier to identify the payment card acceptor.
146
174
  merchant_acceptor_id: nil,
175
+ # Merchant acceptor state/province (ISO 3166-2 subdivision code)
176
+ merchant_acceptor_state: nil,
147
177
  # Amount of the transaction to be simulated in currency specified in
148
178
  # merchant_currency, including any acquirer fees.
149
179
  merchant_amount: nil,
@@ -184,7 +214,10 @@ module Lithic
184
214
  descriptor: String,
185
215
  pan: String,
186
216
  mcc: String,
217
+ merchant_acceptor_city: String,
218
+ merchant_acceptor_country: String,
187
219
  merchant_acceptor_id: String,
220
+ merchant_acceptor_state: String,
188
221
  merchant_amount: Integer,
189
222
  merchant_currency: String,
190
223
  partial_approval_capable: T::Boolean,
@@ -37,6 +37,20 @@ module Lithic
37
37
  sig { params(mcc: String).void }
38
38
  attr_writer :mcc
39
39
 
40
+ # Merchant acceptor city
41
+ sig { returns(T.nilable(String)) }
42
+ attr_reader :merchant_acceptor_city
43
+
44
+ sig { params(merchant_acceptor_city: String).void }
45
+ attr_writer :merchant_acceptor_city
46
+
47
+ # Merchant acceptor country code (ISO 3166-1 alpha-3)
48
+ sig { returns(T.nilable(String)) }
49
+ attr_reader :merchant_acceptor_country
50
+
51
+ sig { params(merchant_acceptor_country: String).void }
52
+ attr_writer :merchant_acceptor_country
53
+
40
54
  # Unique identifier to identify the payment card acceptor.
41
55
  sig { returns(T.nilable(String)) }
42
56
  attr_reader :merchant_acceptor_id
@@ -44,13 +58,23 @@ module Lithic
44
58
  sig { params(merchant_acceptor_id: String).void }
45
59
  attr_writer :merchant_acceptor_id
46
60
 
61
+ # Merchant acceptor state/province (ISO 3166-2 subdivision code)
62
+ sig { returns(T.nilable(String)) }
63
+ attr_reader :merchant_acceptor_state
64
+
65
+ sig { params(merchant_acceptor_state: String).void }
66
+ attr_writer :merchant_acceptor_state
67
+
47
68
  sig do
48
69
  params(
49
70
  amount: Integer,
50
71
  descriptor: String,
51
72
  pan: String,
52
73
  mcc: String,
74
+ merchant_acceptor_city: String,
75
+ merchant_acceptor_country: String,
53
76
  merchant_acceptor_id: String,
77
+ merchant_acceptor_state: String,
54
78
  request_options: Lithic::RequestOptions::OrHash
55
79
  ).returns(T.attached_class)
56
80
  end
@@ -67,8 +91,14 @@ module Lithic
67
91
  # listed in ISO 18245. Supported merchant category codes can be found
68
92
  # [here](https://docs.lithic.com/docs/transactions#merchant-category-codes-mccs).
69
93
  mcc: nil,
94
+ # Merchant acceptor city
95
+ merchant_acceptor_city: nil,
96
+ # Merchant acceptor country code (ISO 3166-1 alpha-3)
97
+ merchant_acceptor_country: nil,
70
98
  # Unique identifier to identify the payment card acceptor.
71
99
  merchant_acceptor_id: nil,
100
+ # Merchant acceptor state/province (ISO 3166-2 subdivision code)
101
+ merchant_acceptor_state: nil,
72
102
  request_options: {}
73
103
  )
74
104
  end
@@ -80,7 +110,10 @@ module Lithic
80
110
  descriptor: String,
81
111
  pan: String,
82
112
  mcc: String,
113
+ merchant_acceptor_city: String,
114
+ merchant_acceptor_country: String,
83
115
  merchant_acceptor_id: String,
116
+ merchant_acceptor_state: String,
84
117
  request_options: Lithic::RequestOptions
85
118
  }
86
119
  )
@@ -0,0 +1,43 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class TransferLimitListParams < Lithic::Internal::Type::BaseModel
6
+ extend Lithic::Internal::Type::RequestParameters::Converter
7
+ include Lithic::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(Lithic::TransferLimitListParams, Lithic::Internal::AnyHash)
12
+ end
13
+
14
+ # Date for which to retrieve transfer limits (ISO 8601 format)
15
+ sig { returns(T.nilable(Date)) }
16
+ attr_reader :date
17
+
18
+ sig { params(date: Date).void }
19
+ attr_writer :date
20
+
21
+ sig do
22
+ params(
23
+ date: Date,
24
+ request_options: Lithic::RequestOptions::OrHash
25
+ ).returns(T.attached_class)
26
+ end
27
+ def self.new(
28
+ # Date for which to retrieve transfer limits (ISO 8601 format)
29
+ date: nil,
30
+ request_options: {}
31
+ )
32
+ end
33
+
34
+ sig do
35
+ override.returns(
36
+ { date: Date, request_options: Lithic::RequestOptions }
37
+ )
38
+ end
39
+ def to_hash
40
+ end
41
+ end
42
+ end
43
+ end