lithic 0.1.0.pre.alpha.25 → 0.1.0.pre.alpha.27

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 (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +29 -0
  3. data/README.md +94 -54
  4. data/lib/lithic/client.rb +8 -4
  5. data/lib/lithic/internal/transport/pooled_net_requester.rb +3 -1
  6. data/lib/lithic/internal/type/array_of.rb +8 -0
  7. data/lib/lithic/internal/type/base_model.rb +15 -0
  8. data/lib/lithic/internal/type/boolean.rb +8 -0
  9. data/lib/lithic/internal/type/enum.rb +12 -0
  10. data/lib/lithic/internal/type/file_input.rb +7 -0
  11. data/lib/lithic/internal/type/hash_of.rb +8 -0
  12. data/lib/lithic/internal/type/union.rb +12 -0
  13. data/lib/lithic/internal/type/unknown.rb +8 -0
  14. data/lib/lithic/internal/util.rb +45 -0
  15. data/lib/lithic/internal.rb +3 -0
  16. data/lib/lithic/models/account_holder_update_response.rb +0 -9
  17. data/lib/lithic/models/auth_rules/auth_rule_condition.rb +0 -4
  18. data/lib/lithic/models/auth_rules/v2_apply_response.rb +0 -20
  19. data/lib/lithic/models/auth_rules/v2_create_params.rb +0 -10
  20. data/lib/lithic/models/auth_rules/v2_create_response.rb +0 -20
  21. data/lib/lithic/models/auth_rules/v2_draft_params.rb +0 -10
  22. data/lib/lithic/models/auth_rules/v2_draft_response.rb +0 -20
  23. data/lib/lithic/models/auth_rules/v2_list_response.rb +0 -20
  24. data/lib/lithic/models/auth_rules/v2_promote_response.rb +0 -20
  25. data/lib/lithic/models/auth_rules/v2_retrieve_response.rb +0 -20
  26. data/lib/lithic/models/auth_rules/v2_update_response.rb +0 -20
  27. data/lib/lithic/models/auth_rules/velocity_limit_params.rb +0 -4
  28. data/lib/lithic/models/card_web_provision_params.rb +32 -0
  29. data/lib/lithic/models/card_web_provision_response.rb +83 -0
  30. data/lib/lithic/models/funding_event_list_params.rb +43 -0
  31. data/lib/lithic/models/funding_event_list_response.rb +104 -0
  32. data/lib/lithic/models/funding_event_retrieve_details_params.rb +14 -0
  33. data/lib/lithic/models/funding_event_retrieve_details_response.rb +33 -0
  34. data/lib/lithic/models/funding_event_retrieve_params.rb +14 -0
  35. data/lib/lithic/models/funding_event_retrieve_response.rb +104 -0
  36. data/lib/lithic/models.rb +38 -19
  37. data/lib/lithic/resources/cards.rb +29 -0
  38. data/lib/lithic/resources/funding_events.rb +84 -0
  39. data/lib/lithic/version.rb +1 -1
  40. data/lib/lithic.rb +9 -0
  41. data/rbi/lithic/client.rbi +3 -0
  42. data/rbi/lithic/internal/transport/pooled_net_requester.rbi +5 -1
  43. data/rbi/lithic/internal/type/array_of.rbi +6 -0
  44. data/rbi/lithic/internal/type/base_model.rbi +5 -0
  45. data/rbi/lithic/internal/type/boolean.rbi +6 -0
  46. data/rbi/lithic/internal/type/enum.rbi +5 -0
  47. data/rbi/lithic/internal/type/file_input.rbi +5 -0
  48. data/rbi/lithic/internal/type/hash_of.rbi +6 -0
  49. data/rbi/lithic/internal/type/union.rbi +5 -0
  50. data/rbi/lithic/internal/type/unknown.rbi +6 -0
  51. data/rbi/lithic/internal/util.rbi +31 -0
  52. data/rbi/lithic/internal.rbi +3 -0
  53. data/rbi/lithic/models/auth_rules/auth_rule_condition.rbi +12 -4
  54. data/rbi/lithic/models/auth_rules/v2_apply_response.rbi +4 -20
  55. data/rbi/lithic/models/auth_rules/v2_create_response.rbi +4 -20
  56. data/rbi/lithic/models/auth_rules/v2_draft_response.rbi +4 -20
  57. data/rbi/lithic/models/auth_rules/v2_list_response.rbi +4 -20
  58. data/rbi/lithic/models/auth_rules/v2_promote_response.rbi +4 -20
  59. data/rbi/lithic/models/auth_rules/v2_retrieve_response.rbi +4 -20
  60. data/rbi/lithic/models/auth_rules/v2_update_response.rbi +4 -20
  61. data/rbi/lithic/models/card_web_provision_params.rbi +84 -0
  62. data/rbi/lithic/models/card_web_provision_response.rbi +169 -0
  63. data/rbi/lithic/models/funding_event_list_params.rbi +72 -0
  64. data/rbi/lithic/models/funding_event_list_response.rbi +177 -0
  65. data/rbi/lithic/models/funding_event_retrieve_details_params.rbi +30 -0
  66. data/rbi/lithic/models/funding_event_retrieve_details_response.rbi +56 -0
  67. data/rbi/lithic/models/funding_event_retrieve_params.rbi +27 -0
  68. data/rbi/lithic/models/funding_event_retrieve_response.rbi +177 -0
  69. data/rbi/lithic/models.rbi +9 -0
  70. data/rbi/lithic/resources/account_holders.rbi +1 -6
  71. data/rbi/lithic/resources/cards.rbi +23 -0
  72. data/rbi/lithic/resources/funding_events.rbi +64 -0
  73. data/sig/lithic/client.rbs +2 -0
  74. data/sig/lithic/internal/transport/pooled_net_requester.rbs +2 -0
  75. data/sig/lithic/internal/type/array_of.rbs +3 -0
  76. data/sig/lithic/internal/type/base_model.rbs +2 -0
  77. data/sig/lithic/internal/type/boolean.rbs +3 -0
  78. data/sig/lithic/internal/type/enum.rbs +2 -0
  79. data/sig/lithic/internal/type/file_input.rbs +2 -0
  80. data/sig/lithic/internal/type/hash_of.rbs +3 -0
  81. data/sig/lithic/internal/type/union.rbs +2 -0
  82. data/sig/lithic/internal/type/unknown.rbs +3 -0
  83. data/sig/lithic/internal/util.rbs +12 -0
  84. data/sig/lithic/internal.rbs +2 -0
  85. data/sig/lithic/models/card_web_provision_params.rbs +33 -0
  86. data/sig/lithic/models/card_web_provision_response.rbs +68 -0
  87. data/sig/lithic/models/funding_event_list_params.rbs +31 -0
  88. data/sig/lithic/models/funding_event_list_response.rbs +65 -0
  89. data/sig/lithic/models/funding_event_retrieve_details_params.rbs +13 -0
  90. data/sig/lithic/models/funding_event_retrieve_details_response.rbs +24 -0
  91. data/sig/lithic/models/funding_event_retrieve_params.rbs +13 -0
  92. data/sig/lithic/models/funding_event_retrieve_response.rbs +65 -0
  93. data/sig/lithic/models.rbs +8 -0
  94. data/sig/lithic/resources/cards.rbs +6 -0
  95. data/sig/lithic/resources/funding_events.rbs +24 -0
  96. metadata +29 -2
@@ -168,11 +168,7 @@ module Lithic
168
168
  # Parameters for the Auth Rule
169
169
  sig do
170
170
  returns(
171
- T.any(
172
- Lithic::AuthRules::ConditionalBlockParameters,
173
- Lithic::AuthRules::VelocityLimitParams,
174
- Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters
175
- )
171
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Variants
176
172
  )
177
173
  end
178
174
  attr_accessor :parameters
@@ -206,11 +202,7 @@ module Lithic
206
202
  override.returns(
207
203
  {
208
204
  parameters:
209
- T.any(
210
- Lithic::AuthRules::ConditionalBlockParameters,
211
- Lithic::AuthRules::VelocityLimitParams,
212
- Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::MerchantLockParameters
213
- ),
205
+ Lithic::Models::AuthRules::V2ListResponse::CurrentVersion::Parameters::Variants,
214
206
  version: Integer
215
207
  }
216
208
  )
@@ -373,11 +365,7 @@ module Lithic
373
365
  # Parameters for the Auth Rule
374
366
  sig do
375
367
  returns(
376
- T.any(
377
- Lithic::AuthRules::ConditionalBlockParameters,
378
- Lithic::AuthRules::VelocityLimitParams,
379
- Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters
380
- )
368
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Variants
381
369
  )
382
370
  end
383
371
  attr_accessor :parameters
@@ -411,11 +399,7 @@ module Lithic
411
399
  override.returns(
412
400
  {
413
401
  parameters:
414
- T.any(
415
- Lithic::AuthRules::ConditionalBlockParameters,
416
- Lithic::AuthRules::VelocityLimitParams,
417
- Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::MerchantLockParameters
418
- ),
402
+ Lithic::Models::AuthRules::V2ListResponse::DraftVersion::Parameters::Variants,
419
403
  version: Integer
420
404
  }
421
405
  )
@@ -175,11 +175,7 @@ module Lithic
175
175
  # Parameters for the Auth Rule
176
176
  sig do
177
177
  returns(
178
- T.any(
179
- Lithic::AuthRules::ConditionalBlockParameters,
180
- Lithic::AuthRules::VelocityLimitParams,
181
- Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::MerchantLockParameters
182
- )
178
+ Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::Variants
183
179
  )
184
180
  end
185
181
  attr_accessor :parameters
@@ -213,11 +209,7 @@ module Lithic
213
209
  override.returns(
214
210
  {
215
211
  parameters:
216
- T.any(
217
- Lithic::AuthRules::ConditionalBlockParameters,
218
- Lithic::AuthRules::VelocityLimitParams,
219
- Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::MerchantLockParameters
220
- ),
212
+ Lithic::Models::AuthRules::V2PromoteResponse::CurrentVersion::Parameters::Variants,
221
213
  version: Integer
222
214
  }
223
215
  )
@@ -380,11 +372,7 @@ module Lithic
380
372
  # Parameters for the Auth Rule
381
373
  sig do
382
374
  returns(
383
- T.any(
384
- Lithic::AuthRules::ConditionalBlockParameters,
385
- Lithic::AuthRules::VelocityLimitParams,
386
- Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::MerchantLockParameters
387
- )
375
+ Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::Variants
388
376
  )
389
377
  end
390
378
  attr_accessor :parameters
@@ -418,11 +406,7 @@ module Lithic
418
406
  override.returns(
419
407
  {
420
408
  parameters:
421
- T.any(
422
- Lithic::AuthRules::ConditionalBlockParameters,
423
- Lithic::AuthRules::VelocityLimitParams,
424
- Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::MerchantLockParameters
425
- ),
409
+ Lithic::Models::AuthRules::V2PromoteResponse::DraftVersion::Parameters::Variants,
426
410
  version: Integer
427
411
  }
428
412
  )
@@ -175,11 +175,7 @@ module Lithic
175
175
  # Parameters for the Auth Rule
176
176
  sig do
177
177
  returns(
178
- T.any(
179
- Lithic::AuthRules::ConditionalBlockParameters,
180
- Lithic::AuthRules::VelocityLimitParams,
181
- Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters
182
- )
178
+ Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Variants
183
179
  )
184
180
  end
185
181
  attr_accessor :parameters
@@ -213,11 +209,7 @@ module Lithic
213
209
  override.returns(
214
210
  {
215
211
  parameters:
216
- T.any(
217
- Lithic::AuthRules::ConditionalBlockParameters,
218
- Lithic::AuthRules::VelocityLimitParams,
219
- Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::MerchantLockParameters
220
- ),
212
+ Lithic::Models::AuthRules::V2RetrieveResponse::CurrentVersion::Parameters::Variants,
221
213
  version: Integer
222
214
  }
223
215
  )
@@ -380,11 +372,7 @@ module Lithic
380
372
  # Parameters for the Auth Rule
381
373
  sig do
382
374
  returns(
383
- T.any(
384
- Lithic::AuthRules::ConditionalBlockParameters,
385
- Lithic::AuthRules::VelocityLimitParams,
386
- Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters
387
- )
375
+ Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Variants
388
376
  )
389
377
  end
390
378
  attr_accessor :parameters
@@ -418,11 +406,7 @@ module Lithic
418
406
  override.returns(
419
407
  {
420
408
  parameters:
421
- T.any(
422
- Lithic::AuthRules::ConditionalBlockParameters,
423
- Lithic::AuthRules::VelocityLimitParams,
424
- Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::MerchantLockParameters
425
- ),
409
+ Lithic::Models::AuthRules::V2RetrieveResponse::DraftVersion::Parameters::Variants,
426
410
  version: Integer
427
411
  }
428
412
  )
@@ -172,11 +172,7 @@ module Lithic
172
172
  # Parameters for the Auth Rule
173
173
  sig do
174
174
  returns(
175
- T.any(
176
- Lithic::AuthRules::ConditionalBlockParameters,
177
- Lithic::AuthRules::VelocityLimitParams,
178
- Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters
179
- )
175
+ Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Variants
180
176
  )
181
177
  end
182
178
  attr_accessor :parameters
@@ -210,11 +206,7 @@ module Lithic
210
206
  override.returns(
211
207
  {
212
208
  parameters:
213
- T.any(
214
- Lithic::AuthRules::ConditionalBlockParameters,
215
- Lithic::AuthRules::VelocityLimitParams,
216
- Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::MerchantLockParameters
217
- ),
209
+ Lithic::Models::AuthRules::V2UpdateResponse::CurrentVersion::Parameters::Variants,
218
210
  version: Integer
219
211
  }
220
212
  )
@@ -377,11 +369,7 @@ module Lithic
377
369
  # Parameters for the Auth Rule
378
370
  sig do
379
371
  returns(
380
- T.any(
381
- Lithic::AuthRules::ConditionalBlockParameters,
382
- Lithic::AuthRules::VelocityLimitParams,
383
- Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters
384
- )
372
+ Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Variants
385
373
  )
386
374
  end
387
375
  attr_accessor :parameters
@@ -415,11 +403,7 @@ module Lithic
415
403
  override.returns(
416
404
  {
417
405
  parameters:
418
- T.any(
419
- Lithic::AuthRules::ConditionalBlockParameters,
420
- Lithic::AuthRules::VelocityLimitParams,
421
- Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::MerchantLockParameters
422
- ),
406
+ Lithic::Models::AuthRules::V2UpdateResponse::DraftVersion::Parameters::Variants,
423
407
  version: Integer
424
408
  }
425
409
  )
@@ -0,0 +1,84 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardWebProvisionParams < 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::CardWebProvisionParams, Lithic::Internal::AnyHash)
12
+ end
13
+
14
+ # Name of digital wallet provider.
15
+ sig do
16
+ returns(
17
+ T.nilable(Lithic::CardWebProvisionParams::DigitalWallet::OrSymbol)
18
+ )
19
+ end
20
+ attr_reader :digital_wallet
21
+
22
+ sig do
23
+ params(
24
+ digital_wallet:
25
+ Lithic::CardWebProvisionParams::DigitalWallet::OrSymbol
26
+ ).void
27
+ end
28
+ attr_writer :digital_wallet
29
+
30
+ sig do
31
+ params(
32
+ digital_wallet:
33
+ Lithic::CardWebProvisionParams::DigitalWallet::OrSymbol,
34
+ request_options: Lithic::RequestOptions::OrHash
35
+ ).returns(T.attached_class)
36
+ end
37
+ def self.new(
38
+ # Name of digital wallet provider.
39
+ digital_wallet: nil,
40
+ request_options: {}
41
+ )
42
+ end
43
+
44
+ sig do
45
+ override.returns(
46
+ {
47
+ digital_wallet:
48
+ Lithic::CardWebProvisionParams::DigitalWallet::OrSymbol,
49
+ request_options: Lithic::RequestOptions
50
+ }
51
+ )
52
+ end
53
+ def to_hash
54
+ end
55
+
56
+ # Name of digital wallet provider.
57
+ module DigitalWallet
58
+ extend Lithic::Internal::Type::Enum
59
+
60
+ TaggedSymbol =
61
+ T.type_alias do
62
+ T.all(Symbol, Lithic::CardWebProvisionParams::DigitalWallet)
63
+ end
64
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
65
+
66
+ APPLE_PAY =
67
+ T.let(
68
+ :APPLE_PAY,
69
+ Lithic::CardWebProvisionParams::DigitalWallet::TaggedSymbol
70
+ )
71
+
72
+ sig do
73
+ override.returns(
74
+ T::Array[
75
+ Lithic::CardWebProvisionParams::DigitalWallet::TaggedSymbol
76
+ ]
77
+ )
78
+ end
79
+ def self.values
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,169 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class CardWebProvisionResponse < Lithic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Lithic::Models::CardWebProvisionResponse,
10
+ Lithic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # JWS object required for handoff to Apple's script.
15
+ sig { returns(T.nilable(Lithic::Models::CardWebProvisionResponse::Jws)) }
16
+ attr_reader :jws
17
+
18
+ sig do
19
+ params(jws: Lithic::Models::CardWebProvisionResponse::Jws::OrHash).void
20
+ end
21
+ attr_writer :jws
22
+
23
+ # A unique identifier for the JWS object.
24
+ sig { returns(T.nilable(String)) }
25
+ attr_reader :state
26
+
27
+ sig { params(state: String).void }
28
+ attr_writer :state
29
+
30
+ sig do
31
+ params(
32
+ jws: Lithic::Models::CardWebProvisionResponse::Jws::OrHash,
33
+ state: String
34
+ ).returns(T.attached_class)
35
+ end
36
+ def self.new(
37
+ # JWS object required for handoff to Apple's script.
38
+ jws: nil,
39
+ # A unique identifier for the JWS object.
40
+ state: nil
41
+ )
42
+ end
43
+
44
+ sig do
45
+ override.returns(
46
+ { jws: Lithic::Models::CardWebProvisionResponse::Jws, state: String }
47
+ )
48
+ end
49
+ def to_hash
50
+ end
51
+
52
+ class Jws < Lithic::Internal::Type::BaseModel
53
+ OrHash =
54
+ T.type_alias do
55
+ T.any(
56
+ Lithic::Models::CardWebProvisionResponse::Jws,
57
+ Lithic::Internal::AnyHash
58
+ )
59
+ end
60
+
61
+ # JWS unprotected headers containing header parameters that aren't
62
+ # integrity-protected by the JWS signature.
63
+ sig do
64
+ returns(
65
+ T.nilable(Lithic::Models::CardWebProvisionResponse::Jws::Header)
66
+ )
67
+ end
68
+ attr_reader :header
69
+
70
+ sig do
71
+ params(
72
+ header:
73
+ Lithic::Models::CardWebProvisionResponse::Jws::Header::OrHash
74
+ ).void
75
+ end
76
+ attr_writer :header
77
+
78
+ # Base64url encoded JSON object containing the provisioning payload.
79
+ sig { returns(T.nilable(String)) }
80
+ attr_reader :payload
81
+
82
+ sig { params(payload: String).void }
83
+ attr_writer :payload
84
+
85
+ # Base64url encoded JWS protected headers containing the header parameters that
86
+ # are integrity-protected by the JWS signature.
87
+ sig { returns(T.nilable(String)) }
88
+ attr_reader :protected
89
+
90
+ sig { params(protected: String).void }
91
+ attr_writer :protected
92
+
93
+ # Base64url encoded signature of the JWS object.
94
+ sig { returns(T.nilable(String)) }
95
+ attr_reader :signature
96
+
97
+ sig { params(signature: String).void }
98
+ attr_writer :signature
99
+
100
+ # JWS object required for handoff to Apple's script.
101
+ sig do
102
+ params(
103
+ header:
104
+ Lithic::Models::CardWebProvisionResponse::Jws::Header::OrHash,
105
+ payload: String,
106
+ protected: String,
107
+ signature: String
108
+ ).returns(T.attached_class)
109
+ end
110
+ def self.new(
111
+ # JWS unprotected headers containing header parameters that aren't
112
+ # integrity-protected by the JWS signature.
113
+ header: nil,
114
+ # Base64url encoded JSON object containing the provisioning payload.
115
+ payload: nil,
116
+ # Base64url encoded JWS protected headers containing the header parameters that
117
+ # are integrity-protected by the JWS signature.
118
+ protected: nil,
119
+ # Base64url encoded signature of the JWS object.
120
+ signature: nil
121
+ )
122
+ end
123
+
124
+ sig do
125
+ override.returns(
126
+ {
127
+ header: Lithic::Models::CardWebProvisionResponse::Jws::Header,
128
+ payload: String,
129
+ protected: String,
130
+ signature: String
131
+ }
132
+ )
133
+ end
134
+ def to_hash
135
+ end
136
+
137
+ class Header < Lithic::Internal::Type::BaseModel
138
+ OrHash =
139
+ T.type_alias do
140
+ T.any(
141
+ Lithic::Models::CardWebProvisionResponse::Jws::Header,
142
+ Lithic::Internal::AnyHash
143
+ )
144
+ end
145
+
146
+ # The ID for the JWS Public Key of the key pair used to generate the signature.
147
+ sig { returns(T.nilable(String)) }
148
+ attr_reader :kid
149
+
150
+ sig { params(kid: String).void }
151
+ attr_writer :kid
152
+
153
+ # JWS unprotected headers containing header parameters that aren't
154
+ # integrity-protected by the JWS signature.
155
+ sig { params(kid: String).returns(T.attached_class) }
156
+ def self.new(
157
+ # The ID for the JWS Public Key of the key pair used to generate the signature.
158
+ kid: nil
159
+ )
160
+ end
161
+
162
+ sig { override.returns({ kid: String }) }
163
+ def to_hash
164
+ end
165
+ end
166
+ end
167
+ end
168
+ end
169
+ end
@@ -0,0 +1,72 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class FundingEventListParams < 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::FundingEventListParams, Lithic::Internal::AnyHash)
12
+ end
13
+
14
+ # A cursor representing an item's token before which a page of results should end.
15
+ # Used to retrieve the previous page of results before this item.
16
+ sig { returns(T.nilable(String)) }
17
+ attr_reader :ending_before
18
+
19
+ sig { params(ending_before: String).void }
20
+ attr_writer :ending_before
21
+
22
+ # Page size (for pagination).
23
+ sig { returns(T.nilable(Integer)) }
24
+ attr_reader :page_size
25
+
26
+ sig { params(page_size: Integer).void }
27
+ attr_writer :page_size
28
+
29
+ # A cursor representing an item's token after which a page of results should
30
+ # begin. Used to retrieve the next page of results after this item.
31
+ sig { returns(T.nilable(String)) }
32
+ attr_reader :starting_after
33
+
34
+ sig { params(starting_after: String).void }
35
+ attr_writer :starting_after
36
+
37
+ sig do
38
+ params(
39
+ ending_before: String,
40
+ page_size: Integer,
41
+ starting_after: String,
42
+ request_options: Lithic::RequestOptions::OrHash
43
+ ).returns(T.attached_class)
44
+ end
45
+ def self.new(
46
+ # A cursor representing an item's token before which a page of results should end.
47
+ # Used to retrieve the previous page of results before this item.
48
+ ending_before: nil,
49
+ # Page size (for pagination).
50
+ page_size: nil,
51
+ # A cursor representing an item's token after which a page of results should
52
+ # begin. Used to retrieve the next page of results after this item.
53
+ starting_after: nil,
54
+ request_options: {}
55
+ )
56
+ end
57
+
58
+ sig do
59
+ override.returns(
60
+ {
61
+ ending_before: String,
62
+ page_size: Integer,
63
+ starting_after: String,
64
+ request_options: Lithic::RequestOptions
65
+ }
66
+ )
67
+ end
68
+ def to_hash
69
+ end
70
+ end
71
+ end
72
+ end