lithic 0.1.0.pre.alpha.25 → 0.1.0.pre.alpha.26
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +1 -1
- data/lib/lithic/client.rb +8 -4
- data/lib/lithic/internal/transport/pooled_net_requester.rb +3 -1
- data/lib/lithic/models/card_web_provision_params.rb +32 -0
- data/lib/lithic/models/card_web_provision_response.rb +83 -0
- data/lib/lithic/models/funding_event_list_params.rb +43 -0
- data/lib/lithic/models/funding_event_list_response.rb +104 -0
- data/lib/lithic/models/funding_event_retrieve_details_params.rb +14 -0
- data/lib/lithic/models/funding_event_retrieve_details_response.rb +33 -0
- data/lib/lithic/models/funding_event_retrieve_params.rb +14 -0
- data/lib/lithic/models/funding_event_retrieve_response.rb +104 -0
- data/lib/lithic/models.rb +8 -0
- data/lib/lithic/resources/cards.rb +29 -0
- data/lib/lithic/resources/funding_events.rb +84 -0
- data/lib/lithic/version.rb +1 -1
- data/lib/lithic.rb +9 -0
- data/rbi/lithic/client.rbi +3 -0
- data/rbi/lithic/internal/transport/pooled_net_requester.rbi +5 -1
- data/rbi/lithic/models/card_web_provision_params.rbi +84 -0
- data/rbi/lithic/models/card_web_provision_response.rbi +169 -0
- data/rbi/lithic/models/funding_event_list_params.rbi +72 -0
- data/rbi/lithic/models/funding_event_list_response.rbi +177 -0
- data/rbi/lithic/models/funding_event_retrieve_details_params.rbi +30 -0
- data/rbi/lithic/models/funding_event_retrieve_details_response.rbi +56 -0
- data/rbi/lithic/models/funding_event_retrieve_params.rbi +27 -0
- data/rbi/lithic/models/funding_event_retrieve_response.rbi +177 -0
- data/rbi/lithic/models.rbi +9 -0
- data/rbi/lithic/resources/cards.rbi +23 -0
- data/rbi/lithic/resources/funding_events.rbi +64 -0
- data/sig/lithic/client.rbs +2 -0
- data/sig/lithic/internal/transport/pooled_net_requester.rbs +2 -0
- data/sig/lithic/models/card_web_provision_params.rbs +33 -0
- data/sig/lithic/models/card_web_provision_response.rbs +68 -0
- data/sig/lithic/models/funding_event_list_params.rbs +31 -0
- data/sig/lithic/models/funding_event_list_response.rbs +65 -0
- data/sig/lithic/models/funding_event_retrieve_details_params.rbs +13 -0
- data/sig/lithic/models/funding_event_retrieve_details_response.rbs +24 -0
- data/sig/lithic/models/funding_event_retrieve_params.rbs +13 -0
- data/sig/lithic/models/funding_event_retrieve_response.rbs +65 -0
- data/sig/lithic/models.rbs +8 -0
- data/sig/lithic/resources/cards.rbs +6 -0
- data/sig/lithic/resources/funding_events.rbs +24 -0
- metadata +29 -2
data/lib/lithic.rb
CHANGED
@@ -140,6 +140,8 @@ require_relative "lithic/models/cards/financial_transaction_retrieve_params"
|
|
140
140
|
require_relative "lithic/models/card_search_by_pan_params"
|
141
141
|
require_relative "lithic/models/card_spend_limits"
|
142
142
|
require_relative "lithic/models/card_update_params"
|
143
|
+
require_relative "lithic/models/card_web_provision_params"
|
144
|
+
require_relative "lithic/models/card_web_provision_response"
|
143
145
|
require_relative "lithic/models/carrier"
|
144
146
|
require_relative "lithic/models/client_api_status_params"
|
145
147
|
require_relative "lithic/models/credit_products/extended_credit"
|
@@ -227,6 +229,12 @@ require_relative "lithic/models/financial_accounts/statements/statement_line_ite
|
|
227
229
|
require_relative "lithic/models/financial_account_update_params"
|
228
230
|
require_relative "lithic/models/financial_account_update_status_params"
|
229
231
|
require_relative "lithic/models/financial_transaction"
|
232
|
+
require_relative "lithic/models/funding_event_list_params"
|
233
|
+
require_relative "lithic/models/funding_event_list_response"
|
234
|
+
require_relative "lithic/models/funding_event_retrieve_details_params"
|
235
|
+
require_relative "lithic/models/funding_event_retrieve_details_response"
|
236
|
+
require_relative "lithic/models/funding_event_retrieve_params"
|
237
|
+
require_relative "lithic/models/funding_event_retrieve_response"
|
230
238
|
require_relative "lithic/models/instance_financial_account_type"
|
231
239
|
require_relative "lithic/models/kyb"
|
232
240
|
require_relative "lithic/models/kyb_business_entity"
|
@@ -355,6 +363,7 @@ require_relative "lithic/resources/financial_accounts/financial_transactions"
|
|
355
363
|
require_relative "lithic/resources/financial_accounts/loan_tapes"
|
356
364
|
require_relative "lithic/resources/financial_accounts/statements"
|
357
365
|
require_relative "lithic/resources/financial_accounts/statements/line_items"
|
366
|
+
require_relative "lithic/resources/funding_events"
|
358
367
|
require_relative "lithic/resources/management_operations"
|
359
368
|
require_relative "lithic/resources/payments"
|
360
369
|
require_relative "lithic/resources/reports"
|
data/rbi/lithic/client.rbi
CHANGED
@@ -97,6 +97,9 @@ module Lithic
|
|
97
97
|
sig { returns(Lithic::Resources::ManagementOperations) }
|
98
98
|
attr_reader :management_operations
|
99
99
|
|
100
|
+
sig { returns(Lithic::Resources::FundingEvents) }
|
101
|
+
attr_reader :funding_events
|
102
|
+
|
100
103
|
# Status of api
|
101
104
|
sig do
|
102
105
|
params(request_options: Lithic::RequestOptions::OrHash).returns(
|
@@ -22,6 +22,8 @@ module Lithic
|
|
22
22
|
# https://github.com/golang/go/blob/c8eced8580028328fde7c03cbfcb720ce15b2358/src/net/http/transport.go#L49
|
23
23
|
KEEP_ALIVE_TIMEOUT = 30
|
24
24
|
|
25
|
+
DEFAULT_MAX_CONNECTIONS = T.let(T.unsafe(nil), Integer)
|
26
|
+
|
25
27
|
class << self
|
26
28
|
# @api private
|
27
29
|
sig { params(url: URI::Generic).returns(Net::HTTP) }
|
@@ -66,7 +68,9 @@ module Lithic
|
|
66
68
|
|
67
69
|
# @api private
|
68
70
|
sig { params(size: Integer).returns(T.attached_class) }
|
69
|
-
def self.new(
|
71
|
+
def self.new(
|
72
|
+
size: Lithic::Internal::Transport::PooledNetRequester::DEFAULT_MAX_CONNECTIONS
|
73
|
+
)
|
70
74
|
end
|
71
75
|
end
|
72
76
|
end
|
@@ -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
|
@@ -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
|