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
@@ -0,0 +1,177 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class FundingEventListResponse < Lithic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Lithic::Models::FundingEventListResponse,
10
+ Lithic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # Unique token ID
15
+ sig { returns(String) }
16
+ attr_accessor :token
17
+
18
+ # Collection resource type
19
+ sig do
20
+ returns(
21
+ Lithic::Models::FundingEventListResponse::CollectionResourceType::TaggedSymbol
22
+ )
23
+ end
24
+ attr_accessor :collection_resource_type
25
+
26
+ # IDs of collections
27
+ sig { returns(T::Array[String]) }
28
+ attr_accessor :collection_tokens
29
+
30
+ # Time of the creation
31
+ sig { returns(Time) }
32
+ attr_accessor :created
33
+
34
+ # Time of the high watermark
35
+ sig { returns(Time) }
36
+ attr_accessor :high_watermark
37
+
38
+ # Time of the previous high watermark
39
+ sig { returns(Time) }
40
+ attr_accessor :previous_high_watermark
41
+
42
+ # List of settlements
43
+ sig do
44
+ returns(
45
+ T::Array[
46
+ Lithic::Models::FundingEventListResponse::SettlementBreakdown
47
+ ]
48
+ )
49
+ end
50
+ attr_accessor :settlement_breakdowns
51
+
52
+ # Time of the update
53
+ sig { returns(Time) }
54
+ attr_accessor :updated
55
+
56
+ sig do
57
+ params(
58
+ token: String,
59
+ collection_resource_type:
60
+ Lithic::Models::FundingEventListResponse::CollectionResourceType::OrSymbol,
61
+ collection_tokens: T::Array[String],
62
+ created: Time,
63
+ high_watermark: Time,
64
+ previous_high_watermark: Time,
65
+ settlement_breakdowns:
66
+ T::Array[
67
+ Lithic::Models::FundingEventListResponse::SettlementBreakdown::OrHash
68
+ ],
69
+ updated: Time
70
+ ).returns(T.attached_class)
71
+ end
72
+ def self.new(
73
+ # Unique token ID
74
+ token:,
75
+ # Collection resource type
76
+ collection_resource_type:,
77
+ # IDs of collections
78
+ collection_tokens:,
79
+ # Time of the creation
80
+ created:,
81
+ # Time of the high watermark
82
+ high_watermark:,
83
+ # Time of the previous high watermark
84
+ previous_high_watermark:,
85
+ # List of settlements
86
+ settlement_breakdowns:,
87
+ # Time of the update
88
+ updated:
89
+ )
90
+ end
91
+
92
+ sig do
93
+ override.returns(
94
+ {
95
+ token: String,
96
+ collection_resource_type:
97
+ Lithic::Models::FundingEventListResponse::CollectionResourceType::TaggedSymbol,
98
+ collection_tokens: T::Array[String],
99
+ created: Time,
100
+ high_watermark: Time,
101
+ previous_high_watermark: Time,
102
+ settlement_breakdowns:
103
+ T::Array[
104
+ Lithic::Models::FundingEventListResponse::SettlementBreakdown
105
+ ],
106
+ updated: Time
107
+ }
108
+ )
109
+ end
110
+ def to_hash
111
+ end
112
+
113
+ # Collection resource type
114
+ module CollectionResourceType
115
+ extend Lithic::Internal::Type::Enum
116
+
117
+ TaggedSymbol =
118
+ T.type_alias do
119
+ T.all(
120
+ Symbol,
121
+ Lithic::Models::FundingEventListResponse::CollectionResourceType
122
+ )
123
+ end
124
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
125
+
126
+ BOOK_TRANSFER =
127
+ T.let(
128
+ :BOOK_TRANSFER,
129
+ Lithic::Models::FundingEventListResponse::CollectionResourceType::TaggedSymbol
130
+ )
131
+ PAYMENT =
132
+ T.let(
133
+ :PAYMENT,
134
+ Lithic::Models::FundingEventListResponse::CollectionResourceType::TaggedSymbol
135
+ )
136
+
137
+ sig do
138
+ override.returns(
139
+ T::Array[
140
+ Lithic::Models::FundingEventListResponse::CollectionResourceType::TaggedSymbol
141
+ ]
142
+ )
143
+ end
144
+ def self.values
145
+ end
146
+ end
147
+
148
+ class SettlementBreakdown < Lithic::Internal::Type::BaseModel
149
+ OrHash =
150
+ T.type_alias do
151
+ T.any(
152
+ Lithic::Models::FundingEventListResponse::SettlementBreakdown,
153
+ Lithic::Internal::AnyHash
154
+ )
155
+ end
156
+
157
+ sig { returns(Integer) }
158
+ attr_accessor :amount
159
+
160
+ sig { returns(Date) }
161
+ attr_accessor :settlement_date
162
+
163
+ sig do
164
+ params(amount: Integer, settlement_date: Date).returns(
165
+ T.attached_class
166
+ )
167
+ end
168
+ def self.new(amount:, settlement_date:)
169
+ end
170
+
171
+ sig { override.returns({ amount: Integer, settlement_date: Date }) }
172
+ def to_hash
173
+ end
174
+ end
175
+ end
176
+ end
177
+ end
@@ -0,0 +1,30 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class FundingEventRetrieveDetailsParams < 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(
12
+ Lithic::FundingEventRetrieveDetailsParams,
13
+ Lithic::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ sig do
18
+ params(request_options: Lithic::RequestOptions::OrHash).returns(
19
+ T.attached_class
20
+ )
21
+ end
22
+ def self.new(request_options: {})
23
+ end
24
+
25
+ sig { override.returns({ request_options: Lithic::RequestOptions }) }
26
+ def to_hash
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,56 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class FundingEventRetrieveDetailsResponse < Lithic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Lithic::Models::FundingEventRetrieveDetailsResponse,
10
+ Lithic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # Unique token ID
15
+ sig { returns(String) }
16
+ attr_accessor :token
17
+
18
+ # URL of the settlement details
19
+ sig { returns(String) }
20
+ attr_accessor :settlement_details_url
21
+
22
+ # URL of the settlement summary
23
+ sig { returns(String) }
24
+ attr_accessor :settlement_summary_url
25
+
26
+ sig do
27
+ params(
28
+ token: String,
29
+ settlement_details_url: String,
30
+ settlement_summary_url: String
31
+ ).returns(T.attached_class)
32
+ end
33
+ def self.new(
34
+ # Unique token ID
35
+ token:,
36
+ # URL of the settlement details
37
+ settlement_details_url:,
38
+ # URL of the settlement summary
39
+ settlement_summary_url:
40
+ )
41
+ end
42
+
43
+ sig do
44
+ override.returns(
45
+ {
46
+ token: String,
47
+ settlement_details_url: String,
48
+ settlement_summary_url: String
49
+ }
50
+ )
51
+ end
52
+ def to_hash
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,27 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class FundingEventRetrieveParams < 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::FundingEventRetrieveParams, Lithic::Internal::AnyHash)
12
+ end
13
+
14
+ sig do
15
+ params(request_options: Lithic::RequestOptions::OrHash).returns(
16
+ T.attached_class
17
+ )
18
+ end
19
+ def self.new(request_options: {})
20
+ end
21
+
22
+ sig { override.returns({ request_options: Lithic::RequestOptions }) }
23
+ def to_hash
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,177 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Models
5
+ class FundingEventRetrieveResponse < Lithic::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ Lithic::Models::FundingEventRetrieveResponse,
10
+ Lithic::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # Unique token ID
15
+ sig { returns(String) }
16
+ attr_accessor :token
17
+
18
+ # Collection resource type
19
+ sig do
20
+ returns(
21
+ Lithic::Models::FundingEventRetrieveResponse::CollectionResourceType::TaggedSymbol
22
+ )
23
+ end
24
+ attr_accessor :collection_resource_type
25
+
26
+ # IDs of collections
27
+ sig { returns(T::Array[String]) }
28
+ attr_accessor :collection_tokens
29
+
30
+ # Time of the creation
31
+ sig { returns(Time) }
32
+ attr_accessor :created
33
+
34
+ # Time of the high watermark
35
+ sig { returns(Time) }
36
+ attr_accessor :high_watermark
37
+
38
+ # Time of the previous high watermark
39
+ sig { returns(Time) }
40
+ attr_accessor :previous_high_watermark
41
+
42
+ # List of settlements
43
+ sig do
44
+ returns(
45
+ T::Array[
46
+ Lithic::Models::FundingEventRetrieveResponse::SettlementBreakdown
47
+ ]
48
+ )
49
+ end
50
+ attr_accessor :settlement_breakdowns
51
+
52
+ # Time of the update
53
+ sig { returns(Time) }
54
+ attr_accessor :updated
55
+
56
+ sig do
57
+ params(
58
+ token: String,
59
+ collection_resource_type:
60
+ Lithic::Models::FundingEventRetrieveResponse::CollectionResourceType::OrSymbol,
61
+ collection_tokens: T::Array[String],
62
+ created: Time,
63
+ high_watermark: Time,
64
+ previous_high_watermark: Time,
65
+ settlement_breakdowns:
66
+ T::Array[
67
+ Lithic::Models::FundingEventRetrieveResponse::SettlementBreakdown::OrHash
68
+ ],
69
+ updated: Time
70
+ ).returns(T.attached_class)
71
+ end
72
+ def self.new(
73
+ # Unique token ID
74
+ token:,
75
+ # Collection resource type
76
+ collection_resource_type:,
77
+ # IDs of collections
78
+ collection_tokens:,
79
+ # Time of the creation
80
+ created:,
81
+ # Time of the high watermark
82
+ high_watermark:,
83
+ # Time of the previous high watermark
84
+ previous_high_watermark:,
85
+ # List of settlements
86
+ settlement_breakdowns:,
87
+ # Time of the update
88
+ updated:
89
+ )
90
+ end
91
+
92
+ sig do
93
+ override.returns(
94
+ {
95
+ token: String,
96
+ collection_resource_type:
97
+ Lithic::Models::FundingEventRetrieveResponse::CollectionResourceType::TaggedSymbol,
98
+ collection_tokens: T::Array[String],
99
+ created: Time,
100
+ high_watermark: Time,
101
+ previous_high_watermark: Time,
102
+ settlement_breakdowns:
103
+ T::Array[
104
+ Lithic::Models::FundingEventRetrieveResponse::SettlementBreakdown
105
+ ],
106
+ updated: Time
107
+ }
108
+ )
109
+ end
110
+ def to_hash
111
+ end
112
+
113
+ # Collection resource type
114
+ module CollectionResourceType
115
+ extend Lithic::Internal::Type::Enum
116
+
117
+ TaggedSymbol =
118
+ T.type_alias do
119
+ T.all(
120
+ Symbol,
121
+ Lithic::Models::FundingEventRetrieveResponse::CollectionResourceType
122
+ )
123
+ end
124
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
125
+
126
+ BOOK_TRANSFER =
127
+ T.let(
128
+ :BOOK_TRANSFER,
129
+ Lithic::Models::FundingEventRetrieveResponse::CollectionResourceType::TaggedSymbol
130
+ )
131
+ PAYMENT =
132
+ T.let(
133
+ :PAYMENT,
134
+ Lithic::Models::FundingEventRetrieveResponse::CollectionResourceType::TaggedSymbol
135
+ )
136
+
137
+ sig do
138
+ override.returns(
139
+ T::Array[
140
+ Lithic::Models::FundingEventRetrieveResponse::CollectionResourceType::TaggedSymbol
141
+ ]
142
+ )
143
+ end
144
+ def self.values
145
+ end
146
+ end
147
+
148
+ class SettlementBreakdown < Lithic::Internal::Type::BaseModel
149
+ OrHash =
150
+ T.type_alias do
151
+ T.any(
152
+ Lithic::Models::FundingEventRetrieveResponse::SettlementBreakdown,
153
+ Lithic::Internal::AnyHash
154
+ )
155
+ end
156
+
157
+ sig { returns(Integer) }
158
+ attr_accessor :amount
159
+
160
+ sig { returns(Date) }
161
+ attr_accessor :settlement_date
162
+
163
+ sig do
164
+ params(amount: Integer, settlement_date: Date).returns(
165
+ T.attached_class
166
+ )
167
+ end
168
+ def self.new(amount:, settlement_date:)
169
+ end
170
+
171
+ sig { override.returns({ amount: Integer, settlement_date: Date }) }
172
+ def to_hash
173
+ end
174
+ end
175
+ end
176
+ end
177
+ end
@@ -109,6 +109,8 @@ module Lithic
109
109
 
110
110
  CardUpdateParams = Lithic::Models::CardUpdateParams
111
111
 
112
+ CardWebProvisionParams = Lithic::Models::CardWebProvisionParams
113
+
112
114
  Carrier = Lithic::Models::Carrier
113
115
 
114
116
  ClientAPIStatusParams = Lithic::Models::ClientAPIStatusParams
@@ -215,6 +217,13 @@ module Lithic
215
217
 
216
218
  FinancialTransaction = Lithic::Models::FinancialTransaction
217
219
 
220
+ FundingEventListParams = Lithic::Models::FundingEventListParams
221
+
222
+ FundingEventRetrieveDetailsParams =
223
+ Lithic::Models::FundingEventRetrieveDetailsParams
224
+
225
+ FundingEventRetrieveParams = Lithic::Models::FundingEventRetrieveParams
226
+
218
227
  InstanceFinancialAccountType = Lithic::Models::InstanceFinancialAccountType
219
228
 
220
229
  KYB = Lithic::Models::KYB
@@ -166,12 +166,7 @@ module Lithic
166
166
  legal_business_name: String,
167
167
  phone_number: String,
168
168
  request_options: Lithic::RequestOptions::OrHash
169
- ).returns(
170
- T.any(
171
- Lithic::Models::AccountHolderUpdateResponse::KYBKYCPatchResponse,
172
- Lithic::Models::AccountHolderUpdateResponse::PatchResponse
173
- )
174
- )
169
+ ).returns(Lithic::Models::AccountHolderUpdateResponse::Variants)
175
170
  end
176
171
  def update(
177
172
  # Globally unique identifier for the account holder.
@@ -523,6 +523,29 @@ module Lithic
523
523
  )
524
524
  end
525
525
 
526
+ # Allow your cardholders to directly add payment cards to the device's digital
527
+ # wallet from a browser on the web. Currently only suported for Apple Pay.
528
+ #
529
+ # This requires some additional setup and configuration. Please
530
+ # [Contact Us](https://lithic.com/contact) or your Customer Success representative
531
+ # for more information.
532
+ sig do
533
+ params(
534
+ card_token: String,
535
+ digital_wallet:
536
+ Lithic::CardWebProvisionParams::DigitalWallet::OrSymbol,
537
+ request_options: Lithic::RequestOptions::OrHash
538
+ ).returns(Lithic::Models::CardWebProvisionResponse)
539
+ end
540
+ def web_provision(
541
+ # The unique token of the card to add to the device's digital wallet.
542
+ card_token,
543
+ # Name of digital wallet provider.
544
+ digital_wallet: nil,
545
+ request_options: {}
546
+ )
547
+ end
548
+
526
549
  # @api private
527
550
  sig { params(client: Lithic::Client).returns(T.attached_class) }
528
551
  def self.new(client:)
@@ -0,0 +1,64 @@
1
+ # typed: strong
2
+
3
+ module Lithic
4
+ module Resources
5
+ class FundingEvents
6
+ # Get funding event for program by id
7
+ sig do
8
+ params(
9
+ funding_event_token: String,
10
+ request_options: Lithic::RequestOptions::OrHash
11
+ ).returns(Lithic::Models::FundingEventRetrieveResponse)
12
+ end
13
+ def retrieve(
14
+ # Globally unique identifier for funding event.
15
+ funding_event_token,
16
+ request_options: {}
17
+ )
18
+ end
19
+
20
+ # Get all funding events for program
21
+ sig do
22
+ params(
23
+ ending_before: String,
24
+ page_size: Integer,
25
+ starting_after: String,
26
+ request_options: Lithic::RequestOptions::OrHash
27
+ ).returns(
28
+ Lithic::Internal::CursorPage[Lithic::Models::FundingEventListResponse]
29
+ )
30
+ end
31
+ def list(
32
+ # A cursor representing an item's token before which a page of results should end.
33
+ # Used to retrieve the previous page of results before this item.
34
+ ending_before: nil,
35
+ # Page size (for pagination).
36
+ page_size: nil,
37
+ # A cursor representing an item's token after which a page of results should
38
+ # begin. Used to retrieve the next page of results after this item.
39
+ starting_after: nil,
40
+ request_options: {}
41
+ )
42
+ end
43
+
44
+ # Get funding event details by id
45
+ sig do
46
+ params(
47
+ funding_event_token: String,
48
+ request_options: Lithic::RequestOptions::OrHash
49
+ ).returns(Lithic::Models::FundingEventRetrieveDetailsResponse)
50
+ end
51
+ def retrieve_details(
52
+ # Globally unique identifier for funding event.
53
+ funding_event_token,
54
+ request_options: {}
55
+ )
56
+ end
57
+
58
+ # @api private
59
+ sig { params(client: Lithic::Client).returns(T.attached_class) }
60
+ def self.new(client:)
61
+ end
62
+ end
63
+ end
64
+ end
@@ -65,6 +65,8 @@ module Lithic
65
65
 
66
66
  attr_reader management_operations: Lithic::Resources::ManagementOperations
67
67
 
68
+ attr_reader funding_events: Lithic::Resources::FundingEvents
69
+
68
70
  def api_status: (
69
71
  ?request_options: Lithic::request_opts
70
72
  ) -> Lithic::APIStatus
@@ -15,6 +15,8 @@ module Lithic
15
15
 
16
16
  KEEP_ALIVE_TIMEOUT: 30
17
17
 
18
+ DEFAULT_MAX_CONNECTIONS: Integer
19
+
18
20
  def self.connect: (URI::Generic url) -> top
19
21
 
20
22
  def self.calibrate_socket_timeout: (top conn, Float deadline) -> void
@@ -3,6 +3,7 @@ module Lithic
3
3
  module Type
4
4
  class ArrayOf[Elem]
5
5
  include Lithic::Internal::Type::Converter
6
+ include Lithic::Internal::Util::SorbetRuntimeSupport
6
7
 
7
8
  def self.[]: (
8
9
  ::Hash[Symbol, top]
@@ -27,6 +28,8 @@ module Lithic
27
28
  state: Lithic::Internal::Type::Converter::dump_state
28
29
  ) -> (::Array[top] | top)
29
30
 
31
+ def to_sorbet_type: -> top
32
+
30
33
  def item_type: -> Elem
31
34
 
32
35
  def nilable?: -> bool
@@ -68,6 +68,8 @@ module Lithic
68
68
  state: Lithic::Internal::Type::Converter::dump_state
69
69
  ) -> (::Hash[top, top] | top)
70
70
 
71
+ def self.to_sorbet_type: -> top
72
+
71
73
  def self.recursively_to_h: (
72
74
  Lithic::Internal::Type::BaseModel model,
73
75
  convert: bool
@@ -3,6 +3,7 @@ module Lithic
3
3
  module Type
4
4
  class Boolean
5
5
  extend Lithic::Internal::Type::Converter
6
+ extend Lithic::Internal::Util::SorbetRuntimeSupport
6
7
 
7
8
  def self.===: (top other) -> bool
8
9
 
@@ -17,6 +18,8 @@ module Lithic
17
18
  bool | top value,
18
19
  state: Lithic::Internal::Type::Converter::dump_state
19
20
  ) -> (bool | top)
21
+
22
+ def self.to_sorbet_type: -> top
20
23
  end
21
24
  end
22
25
  end
@@ -23,6 +23,8 @@ module Lithic
23
23
  state: Lithic::Internal::Type::Converter::dump_state
24
24
  ) -> (Symbol | top)
25
25
 
26
+ def to_sorbet_type: -> top
27
+
26
28
  def inspect: (?depth: Integer) -> String
27
29
  end
28
30
  end
@@ -17,6 +17,8 @@ module Lithic
17
17
  Pathname | StringIO | IO | String | top value,
18
18
  state: Lithic::Internal::Type::Converter::dump_state
19
19
  ) -> (Pathname | StringIO | IO | String | top)
20
+
21
+ def self.to_sorbet_type: -> top
20
22
  end
21
23
  end
22
24
  end
@@ -3,6 +3,7 @@ module Lithic
3
3
  module Type
4
4
  class HashOf[Elem]
5
5
  include Lithic::Internal::Type::Converter
6
+ include Lithic::Internal::Util::SorbetRuntimeSupport
6
7
 
7
8
  def self.[]: (
8
9
  ::Hash[Symbol, top]
@@ -27,6 +28,8 @@ module Lithic
27
28
  state: Lithic::Internal::Type::Converter::dump_state
28
29
  ) -> (::Hash[Symbol, top] | top)
29
30
 
31
+ def to_sorbet_type: -> top
32
+
30
33
  def item_type: -> Elem
31
34
 
32
35
  def nilable?: -> bool