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
@@ -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
|
data/rbi/lithic/models.rbi
CHANGED
@@ -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
|
@@ -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
|
data/sig/lithic/client.rbs
CHANGED
@@ -0,0 +1,33 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type card_web_provision_params =
|
4
|
+
{ digital_wallet: Lithic::Models::CardWebProvisionParams::digital_wallet }
|
5
|
+
& Lithic::Internal::Type::request_parameters
|
6
|
+
|
7
|
+
class CardWebProvisionParams < Lithic::Internal::Type::BaseModel
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
attr_reader digital_wallet: Lithic::Models::CardWebProvisionParams::digital_wallet?
|
12
|
+
|
13
|
+
def digital_wallet=: (
|
14
|
+
Lithic::Models::CardWebProvisionParams::digital_wallet
|
15
|
+
) -> Lithic::Models::CardWebProvisionParams::digital_wallet
|
16
|
+
|
17
|
+
def initialize: (
|
18
|
+
?digital_wallet: Lithic::Models::CardWebProvisionParams::digital_wallet,
|
19
|
+
?request_options: Lithic::request_opts
|
20
|
+
) -> void
|
21
|
+
|
22
|
+
type digital_wallet = :APPLE_PAY
|
23
|
+
|
24
|
+
module DigitalWallet
|
25
|
+
extend Lithic::Internal::Type::Enum
|
26
|
+
|
27
|
+
APPLE_PAY: :APPLE_PAY
|
28
|
+
|
29
|
+
def self?.values: -> ::Array[Lithic::Models::CardWebProvisionParams::digital_wallet]
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type card_web_provision_response =
|
4
|
+
{ jws: Lithic::Models::CardWebProvisionResponse::Jws, state: String }
|
5
|
+
|
6
|
+
class CardWebProvisionResponse < Lithic::Internal::Type::BaseModel
|
7
|
+
attr_reader jws: Lithic::Models::CardWebProvisionResponse::Jws?
|
8
|
+
|
9
|
+
def jws=: (
|
10
|
+
Lithic::Models::CardWebProvisionResponse::Jws
|
11
|
+
) -> Lithic::Models::CardWebProvisionResponse::Jws
|
12
|
+
|
13
|
+
attr_reader state: String?
|
14
|
+
|
15
|
+
def state=: (String) -> String
|
16
|
+
|
17
|
+
def initialize: (
|
18
|
+
?jws: Lithic::Models::CardWebProvisionResponse::Jws,
|
19
|
+
?state: String
|
20
|
+
) -> void
|
21
|
+
|
22
|
+
type jws =
|
23
|
+
{
|
24
|
+
header: Lithic::Models::CardWebProvisionResponse::Jws::Header,
|
25
|
+
payload: String,
|
26
|
+
protected: String,
|
27
|
+
signature: String
|
28
|
+
}
|
29
|
+
|
30
|
+
class Jws < Lithic::Internal::Type::BaseModel
|
31
|
+
attr_reader header: Lithic::Models::CardWebProvisionResponse::Jws::Header?
|
32
|
+
|
33
|
+
def header=: (
|
34
|
+
Lithic::Models::CardWebProvisionResponse::Jws::Header
|
35
|
+
) -> Lithic::Models::CardWebProvisionResponse::Jws::Header
|
36
|
+
|
37
|
+
attr_reader payload: String?
|
38
|
+
|
39
|
+
def payload=: (String) -> String
|
40
|
+
|
41
|
+
attr_reader protected: String?
|
42
|
+
|
43
|
+
def protected=: (String) -> String
|
44
|
+
|
45
|
+
attr_reader signature: String?
|
46
|
+
|
47
|
+
def signature=: (String) -> String
|
48
|
+
|
49
|
+
def initialize: (
|
50
|
+
?header: Lithic::Models::CardWebProvisionResponse::Jws::Header,
|
51
|
+
?payload: String,
|
52
|
+
?protected: String,
|
53
|
+
?signature: String
|
54
|
+
) -> void
|
55
|
+
|
56
|
+
type header = { kid: String }
|
57
|
+
|
58
|
+
class Header < Lithic::Internal::Type::BaseModel
|
59
|
+
attr_reader kid: String?
|
60
|
+
|
61
|
+
def kid=: (String) -> String
|
62
|
+
|
63
|
+
def initialize: (?kid: String) -> void
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type funding_event_list_params =
|
4
|
+
{ ending_before: String, page_size: Integer, starting_after: String }
|
5
|
+
& Lithic::Internal::Type::request_parameters
|
6
|
+
|
7
|
+
class FundingEventListParams < Lithic::Internal::Type::BaseModel
|
8
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
9
|
+
include Lithic::Internal::Type::RequestParameters
|
10
|
+
|
11
|
+
attr_reader ending_before: String?
|
12
|
+
|
13
|
+
def ending_before=: (String) -> String
|
14
|
+
|
15
|
+
attr_reader page_size: Integer?
|
16
|
+
|
17
|
+
def page_size=: (Integer) -> Integer
|
18
|
+
|
19
|
+
attr_reader starting_after: String?
|
20
|
+
|
21
|
+
def starting_after=: (String) -> String
|
22
|
+
|
23
|
+
def initialize: (
|
24
|
+
?ending_before: String,
|
25
|
+
?page_size: Integer,
|
26
|
+
?starting_after: String,
|
27
|
+
?request_options: Lithic::request_opts
|
28
|
+
) -> void
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type funding_event_list_response =
|
4
|
+
{
|
5
|
+
token: String,
|
6
|
+
collection_resource_type: Lithic::Models::FundingEventListResponse::collection_resource_type,
|
7
|
+
collection_tokens: ::Array[String],
|
8
|
+
created: Time,
|
9
|
+
high_watermark: Time,
|
10
|
+
previous_high_watermark: Time,
|
11
|
+
settlement_breakdowns: ::Array[Lithic::Models::FundingEventListResponse::SettlementBreakdown],
|
12
|
+
updated: Time
|
13
|
+
}
|
14
|
+
|
15
|
+
class FundingEventListResponse < Lithic::Internal::Type::BaseModel
|
16
|
+
attr_accessor token: String
|
17
|
+
|
18
|
+
attr_accessor collection_resource_type: Lithic::Models::FundingEventListResponse::collection_resource_type
|
19
|
+
|
20
|
+
attr_accessor collection_tokens: ::Array[String]
|
21
|
+
|
22
|
+
attr_accessor created: Time
|
23
|
+
|
24
|
+
attr_accessor high_watermark: Time
|
25
|
+
|
26
|
+
attr_accessor previous_high_watermark: Time
|
27
|
+
|
28
|
+
attr_accessor settlement_breakdowns: ::Array[Lithic::Models::FundingEventListResponse::SettlementBreakdown]
|
29
|
+
|
30
|
+
attr_accessor updated: Time
|
31
|
+
|
32
|
+
def initialize: (
|
33
|
+
token: String,
|
34
|
+
collection_resource_type: Lithic::Models::FundingEventListResponse::collection_resource_type,
|
35
|
+
collection_tokens: ::Array[String],
|
36
|
+
created: Time,
|
37
|
+
high_watermark: Time,
|
38
|
+
previous_high_watermark: Time,
|
39
|
+
settlement_breakdowns: ::Array[Lithic::Models::FundingEventListResponse::SettlementBreakdown],
|
40
|
+
updated: Time
|
41
|
+
) -> void
|
42
|
+
|
43
|
+
type collection_resource_type = :BOOK_TRANSFER | :PAYMENT
|
44
|
+
|
45
|
+
module CollectionResourceType
|
46
|
+
extend Lithic::Internal::Type::Enum
|
47
|
+
|
48
|
+
BOOK_TRANSFER: :BOOK_TRANSFER
|
49
|
+
PAYMENT: :PAYMENT
|
50
|
+
|
51
|
+
def self?.values: -> ::Array[Lithic::Models::FundingEventListResponse::collection_resource_type]
|
52
|
+
end
|
53
|
+
|
54
|
+
type settlement_breakdown = { amount: Integer, settlement_date: Date }
|
55
|
+
|
56
|
+
class SettlementBreakdown < Lithic::Internal::Type::BaseModel
|
57
|
+
attr_accessor amount: Integer
|
58
|
+
|
59
|
+
attr_accessor settlement_date: Date
|
60
|
+
|
61
|
+
def initialize: (amount: Integer, settlement_date: Date) -> void
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type funding_event_retrieve_details_params =
|
4
|
+
{ } & Lithic::Internal::Type::request_parameters
|
5
|
+
|
6
|
+
class FundingEventRetrieveDetailsParams < Lithic::Internal::Type::BaseModel
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
def initialize: (?request_options: Lithic::request_opts) -> void
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type funding_event_retrieve_details_response =
|
4
|
+
{
|
5
|
+
token: String,
|
6
|
+
settlement_details_url: String,
|
7
|
+
settlement_summary_url: String
|
8
|
+
}
|
9
|
+
|
10
|
+
class FundingEventRetrieveDetailsResponse < Lithic::Internal::Type::BaseModel
|
11
|
+
attr_accessor token: String
|
12
|
+
|
13
|
+
attr_accessor settlement_details_url: String
|
14
|
+
|
15
|
+
attr_accessor settlement_summary_url: String
|
16
|
+
|
17
|
+
def initialize: (
|
18
|
+
token: String,
|
19
|
+
settlement_details_url: String,
|
20
|
+
settlement_summary_url: String
|
21
|
+
) -> void
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type funding_event_retrieve_params =
|
4
|
+
{ } & Lithic::Internal::Type::request_parameters
|
5
|
+
|
6
|
+
class FundingEventRetrieveParams < Lithic::Internal::Type::BaseModel
|
7
|
+
extend Lithic::Internal::Type::RequestParameters::Converter
|
8
|
+
include Lithic::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
def initialize: (?request_options: Lithic::request_opts) -> void
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Models
|
3
|
+
type funding_event_retrieve_response =
|
4
|
+
{
|
5
|
+
token: String,
|
6
|
+
collection_resource_type: Lithic::Models::FundingEventRetrieveResponse::collection_resource_type,
|
7
|
+
collection_tokens: ::Array[String],
|
8
|
+
created: Time,
|
9
|
+
high_watermark: Time,
|
10
|
+
previous_high_watermark: Time,
|
11
|
+
settlement_breakdowns: ::Array[Lithic::Models::FundingEventRetrieveResponse::SettlementBreakdown],
|
12
|
+
updated: Time
|
13
|
+
}
|
14
|
+
|
15
|
+
class FundingEventRetrieveResponse < Lithic::Internal::Type::BaseModel
|
16
|
+
attr_accessor token: String
|
17
|
+
|
18
|
+
attr_accessor collection_resource_type: Lithic::Models::FundingEventRetrieveResponse::collection_resource_type
|
19
|
+
|
20
|
+
attr_accessor collection_tokens: ::Array[String]
|
21
|
+
|
22
|
+
attr_accessor created: Time
|
23
|
+
|
24
|
+
attr_accessor high_watermark: Time
|
25
|
+
|
26
|
+
attr_accessor previous_high_watermark: Time
|
27
|
+
|
28
|
+
attr_accessor settlement_breakdowns: ::Array[Lithic::Models::FundingEventRetrieveResponse::SettlementBreakdown]
|
29
|
+
|
30
|
+
attr_accessor updated: Time
|
31
|
+
|
32
|
+
def initialize: (
|
33
|
+
token: String,
|
34
|
+
collection_resource_type: Lithic::Models::FundingEventRetrieveResponse::collection_resource_type,
|
35
|
+
collection_tokens: ::Array[String],
|
36
|
+
created: Time,
|
37
|
+
high_watermark: Time,
|
38
|
+
previous_high_watermark: Time,
|
39
|
+
settlement_breakdowns: ::Array[Lithic::Models::FundingEventRetrieveResponse::SettlementBreakdown],
|
40
|
+
updated: Time
|
41
|
+
) -> void
|
42
|
+
|
43
|
+
type collection_resource_type = :BOOK_TRANSFER | :PAYMENT
|
44
|
+
|
45
|
+
module CollectionResourceType
|
46
|
+
extend Lithic::Internal::Type::Enum
|
47
|
+
|
48
|
+
BOOK_TRANSFER: :BOOK_TRANSFER
|
49
|
+
PAYMENT: :PAYMENT
|
50
|
+
|
51
|
+
def self?.values: -> ::Array[Lithic::Models::FundingEventRetrieveResponse::collection_resource_type]
|
52
|
+
end
|
53
|
+
|
54
|
+
type settlement_breakdown = { amount: Integer, settlement_date: Date }
|
55
|
+
|
56
|
+
class SettlementBreakdown < Lithic::Internal::Type::BaseModel
|
57
|
+
attr_accessor amount: Integer
|
58
|
+
|
59
|
+
attr_accessor settlement_date: Date
|
60
|
+
|
61
|
+
def initialize: (amount: Integer, settlement_date: Date) -> void
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
data/sig/lithic/models.rbs
CHANGED
@@ -99,6 +99,8 @@ module Lithic
|
|
99
99
|
|
100
100
|
class CardUpdateParams = Lithic::Models::CardUpdateParams
|
101
101
|
|
102
|
+
class CardWebProvisionParams = Lithic::Models::CardWebProvisionParams
|
103
|
+
|
102
104
|
class Carrier = Lithic::Models::Carrier
|
103
105
|
|
104
106
|
class ClientAPIStatusParams = Lithic::Models::ClientAPIStatusParams
|
@@ -197,6 +199,12 @@ module Lithic
|
|
197
199
|
|
198
200
|
class FinancialTransaction = Lithic::Models::FinancialTransaction
|
199
201
|
|
202
|
+
class FundingEventListParams = Lithic::Models::FundingEventListParams
|
203
|
+
|
204
|
+
class FundingEventRetrieveDetailsParams = Lithic::Models::FundingEventRetrieveDetailsParams
|
205
|
+
|
206
|
+
class FundingEventRetrieveParams = Lithic::Models::FundingEventRetrieveParams
|
207
|
+
|
200
208
|
module InstanceFinancialAccountType = Lithic::Models::InstanceFinancialAccountType
|
201
209
|
|
202
210
|
class KYB = Lithic::Models::KYB
|
@@ -113,6 +113,12 @@ module Lithic
|
|
113
113
|
?request_options: Lithic::request_opts
|
114
114
|
) -> Lithic::Card
|
115
115
|
|
116
|
+
def web_provision: (
|
117
|
+
String card_token,
|
118
|
+
?digital_wallet: Lithic::Models::CardWebProvisionParams::digital_wallet,
|
119
|
+
?request_options: Lithic::request_opts
|
120
|
+
) -> Lithic::Models::CardWebProvisionResponse
|
121
|
+
|
116
122
|
def initialize: (client: Lithic::Client) -> void
|
117
123
|
end
|
118
124
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Lithic
|
2
|
+
module Resources
|
3
|
+
class FundingEvents
|
4
|
+
def retrieve: (
|
5
|
+
String funding_event_token,
|
6
|
+
?request_options: Lithic::request_opts
|
7
|
+
) -> Lithic::Models::FundingEventRetrieveResponse
|
8
|
+
|
9
|
+
def list: (
|
10
|
+
?ending_before: String,
|
11
|
+
?page_size: Integer,
|
12
|
+
?starting_after: String,
|
13
|
+
?request_options: Lithic::request_opts
|
14
|
+
) -> Lithic::Internal::CursorPage[Lithic::Models::FundingEventListResponse]
|
15
|
+
|
16
|
+
def retrieve_details: (
|
17
|
+
String funding_event_token,
|
18
|
+
?request_options: Lithic::request_opts
|
19
|
+
) -> Lithic::Models::FundingEventRetrieveDetailsResponse
|
20
|
+
|
21
|
+
def initialize: (client: Lithic::Client) -> void
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|