Skip to content

Commit b8de03e

Browse files
feat(api): api update
1 parent 72d4aab commit b8de03e

8 files changed

Lines changed: 92 additions & 28 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 165
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-0598a3569ace333f5006a8174ff828a0f1a290f6dc9bbbdb5659d50318c31957.yml
3-
openapi_spec_hash: 09925ebceb9cfe47224f05a2ff9ce14f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1aaf1d9d9aea1bfa14a48559f01d539aa1449d65f252dc9c3b606c7bca300af1.yml
3+
openapi_spec_hash: 3327246caf3bcbd3504ce99c81062075
44
config_hash: a5d12cd64a37624cbe350cd7b2380693

lib/lithic/models/reports/settlement/network_total_list_response.rb

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,16 @@ class NetworkTotalListResponse < Lithic::Internal::Type::BaseModel
3737
# @return [String]
3838
required :institution_id, String
3939

40+
# @!attribute is_complete
41+
# Indicates that all settlement records related to this Network Total are
42+
# available in the details endpoint.
43+
#
44+
# @return [Boolean]
45+
required :is_complete, Lithic::Internal::Type::Boolean
46+
4047
# @!attribute network
41-
# Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or
42-
# INTERLINK.
48+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
49+
# or INTERLINK.
4350
#
4451
# @return [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network]
4552
required :network, enum: -> { Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network }
@@ -76,7 +83,7 @@ class NetworkTotalListResponse < Lithic::Internal::Type::BaseModel
7683
# @return [Integer, nil]
7784
optional :cycle, Integer
7885

79-
# @!method initialize(token:, amounts:, created:, currency:, institution_id:, network:, report_date:, settlement_institution_id:, settlement_service:, updated:, cycle: nil)
86+
# @!method initialize(token:, amounts:, created:, currency:, institution_id:, is_complete:, network:, report_date:, settlement_institution_id:, settlement_service:, updated:, cycle: nil)
8087
# Some parameter documentations has been truncated, see
8188
# {Lithic::Models::Reports::Settlement::NetworkTotalListResponse} for more
8289
# details.
@@ -91,7 +98,9 @@ class NetworkTotalListResponse < Lithic::Internal::Type::BaseModel
9198
#
9299
# @param institution_id [String] The institution that activity occurred on. For Mastercard: ICA (Interbank Card A
93100
#
94-
# @param network [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network] Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or INT
101+
# @param is_complete [Boolean] Indicates that all settlement records related to this Network Total are availabl
102+
#
103+
# @param network [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network] Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
95104
#
96105
# @param report_date [Date] Date that the network total record applies to. YYYY-MM-DD format.
97106
#
@@ -144,13 +153,14 @@ class Amounts < Lithic::Internal::Type::BaseModel
144153
# @param visa_charges [Integer] Charges specific to Visa/Interlink, in currency's smallest unit.
145154
end
146155

147-
# Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or
148-
# INTERLINK.
156+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
157+
# or INTERLINK.
149158
#
150159
# @see Lithic::Models::Reports::Settlement::NetworkTotalListResponse#network
151160
module Network
152161
extend Lithic::Internal::Type::Enum
153162

163+
AMEX = :AMEX
154164
VISA = :VISA
155165
MASTERCARD = :MASTERCARD
156166
MAESTRO = :MAESTRO

lib/lithic/models/reports/settlement/network_total_retrieve_response.rb

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,16 @@ class NetworkTotalRetrieveResponse < Lithic::Internal::Type::BaseModel
3737
# @return [String]
3838
required :institution_id, String
3939

40+
# @!attribute is_complete
41+
# Indicates that all settlement records related to this Network Total are
42+
# available in the details endpoint.
43+
#
44+
# @return [Boolean]
45+
required :is_complete, Lithic::Internal::Type::Boolean
46+
4047
# @!attribute network
41-
# Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or
42-
# INTERLINK.
48+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
49+
# or INTERLINK.
4350
#
4451
# @return [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network]
4552
required :network, enum: -> { Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network }
@@ -76,7 +83,7 @@ class NetworkTotalRetrieveResponse < Lithic::Internal::Type::BaseModel
7683
# @return [Integer, nil]
7784
optional :cycle, Integer
7885

79-
# @!method initialize(token:, amounts:, created:, currency:, institution_id:, network:, report_date:, settlement_institution_id:, settlement_service:, updated:, cycle: nil)
86+
# @!method initialize(token:, amounts:, created:, currency:, institution_id:, is_complete:, network:, report_date:, settlement_institution_id:, settlement_service:, updated:, cycle: nil)
8087
# Some parameter documentations has been truncated, see
8188
# {Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse} for more
8289
# details.
@@ -91,7 +98,9 @@ class NetworkTotalRetrieveResponse < Lithic::Internal::Type::BaseModel
9198
#
9299
# @param institution_id [String] The institution that activity occurred on. For Mastercard: ICA (Interbank Card A
93100
#
94-
# @param network [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network] Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or INT
101+
# @param is_complete [Boolean] Indicates that all settlement records related to this Network Total are availabl
102+
#
103+
# @param network [Symbol, Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network] Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
95104
#
96105
# @param report_date [Date] Date that the network total record applies to. YYYY-MM-DD format.
97106
#
@@ -144,13 +153,14 @@ class Amounts < Lithic::Internal::Type::BaseModel
144153
# @param visa_charges [Integer] Charges specific to Visa/Interlink, in currency's smallest unit.
145154
end
146155

147-
# Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or
148-
# INTERLINK.
156+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
157+
# or INTERLINK.
149158
#
150159
# @see Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse#network
151160
module Network
152161
extend Lithic::Internal::Type::Enum
153162

163+
AMEX = :AMEX
154164
VISA = :VISA
155165
MASTERCARD = :MASTERCARD
156166
MAESTRO = :MAESTRO

rbi/lithic/models/reports/settlement/network_total_list_response.rbi

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,13 @@ module Lithic
4646
sig { returns(String) }
4747
attr_accessor :institution_id
4848

49-
# Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or
50-
# INTERLINK.
49+
# Indicates that all settlement records related to this Network Total are
50+
# available in the details endpoint.
51+
sig { returns(T::Boolean) }
52+
attr_accessor :is_complete
53+
54+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
55+
# or INTERLINK.
5156
sig do
5257
returns(
5358
Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network::TaggedSymbol
@@ -88,6 +93,7 @@ module Lithic
8893
created: Time,
8994
currency: String,
9095
institution_id: String,
96+
is_complete: T::Boolean,
9197
network:
9298
Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network::OrSymbol,
9399
report_date: Date,
@@ -109,8 +115,11 @@ module Lithic
109115
# Association). For Maestro: institution ID. For Visa: lowest level SRE
110116
# (Settlement Reporting Entity).
111117
institution_id:,
112-
# Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or
113-
# INTERLINK.
118+
# Indicates that all settlement records related to this Network Total are
119+
# available in the details endpoint.
120+
is_complete:,
121+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
122+
# or INTERLINK.
114123
network:,
115124
# Date that the network total record applies to. YYYY-MM-DD format.
116125
report_date:,
@@ -136,6 +145,7 @@ module Lithic
136145
created: Time,
137146
currency: String,
138147
institution_id: String,
148+
is_complete: T::Boolean,
139149
network:
140150
Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network::TaggedSymbol,
141151
report_date: Date,
@@ -213,8 +223,8 @@ module Lithic
213223
end
214224
end
215225

216-
# Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or
217-
# INTERLINK.
226+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
227+
# or INTERLINK.
218228
module Network
219229
extend Lithic::Internal::Type::Enum
220230

@@ -227,6 +237,11 @@ module Lithic
227237
end
228238
OrSymbol = T.type_alias { T.any(Symbol, String) }
229239

240+
AMEX =
241+
T.let(
242+
:AMEX,
243+
Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network::TaggedSymbol
244+
)
230245
VISA =
231246
T.let(
232247
:VISA,

rbi/lithic/models/reports/settlement/network_total_retrieve_response.rbi

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,13 @@ module Lithic
4646
sig { returns(String) }
4747
attr_accessor :institution_id
4848

49-
# Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or
50-
# INTERLINK.
49+
# Indicates that all settlement records related to this Network Total are
50+
# available in the details endpoint.
51+
sig { returns(T::Boolean) }
52+
attr_accessor :is_complete
53+
54+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
55+
# or INTERLINK.
5156
sig do
5257
returns(
5358
Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network::TaggedSymbol
@@ -88,6 +93,7 @@ module Lithic
8893
created: Time,
8994
currency: String,
9095
institution_id: String,
96+
is_complete: T::Boolean,
9197
network:
9298
Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network::OrSymbol,
9399
report_date: Date,
@@ -109,8 +115,11 @@ module Lithic
109115
# Association). For Maestro: institution ID. For Visa: lowest level SRE
110116
# (Settlement Reporting Entity).
111117
institution_id:,
112-
# Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or
113-
# INTERLINK.
118+
# Indicates that all settlement records related to this Network Total are
119+
# available in the details endpoint.
120+
is_complete:,
121+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
122+
# or INTERLINK.
114123
network:,
115124
# Date that the network total record applies to. YYYY-MM-DD format.
116125
report_date:,
@@ -136,6 +145,7 @@ module Lithic
136145
created: Time,
137146
currency: String,
138147
institution_id: String,
148+
is_complete: T::Boolean,
139149
network:
140150
Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network::TaggedSymbol,
141151
report_date: Date,
@@ -213,8 +223,8 @@ module Lithic
213223
end
214224
end
215225

216-
# Card network where the transaction took place. VISA, MASTERCARD, MAESTRO, or
217-
# INTERLINK.
226+
# Card network where the transaction took place. AMEX, VISA, MASTERCARD, MAESTRO,
227+
# or INTERLINK.
218228
module Network
219229
extend Lithic::Internal::Type::Enum
220230

@@ -227,6 +237,11 @@ module Lithic
227237
end
228238
OrSymbol = T.type_alias { T.any(Symbol, String) }
229239

240+
AMEX =
241+
T.let(
242+
:AMEX,
243+
Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network::TaggedSymbol
244+
)
230245
VISA =
231246
T.let(
232247
:VISA,

sig/lithic/models/reports/settlement/network_total_list_response.rbs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module Lithic
99
created: Time,
1010
currency: String,
1111
institution_id: String,
12+
is_complete: bool,
1213
network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::network,
1314
report_date: Date,
1415
settlement_institution_id: String,
@@ -28,6 +29,8 @@ module Lithic
2829

2930
attr_accessor institution_id: String
3031

32+
attr_accessor is_complete: bool
33+
3134
attr_accessor network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::network
3235

3336
attr_accessor report_date: Date
@@ -48,6 +51,7 @@ module Lithic
4851
created: Time,
4952
currency: String,
5053
institution_id: String,
54+
is_complete: bool,
5155
network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::network,
5256
report_date: Date,
5357
settlement_institution_id: String,
@@ -62,6 +66,7 @@ module Lithic
6266
created: Time,
6367
currency: String,
6468
institution_id: String,
69+
is_complete: bool,
6570
network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::network,
6671
report_date: Date,
6772
settlement_institution_id: String,
@@ -104,11 +109,12 @@ module Lithic
104109
}
105110
end
106111

107-
type network = :VISA | :MASTERCARD | :MAESTRO | :INTERLINK
112+
type network = :AMEX | :VISA | :MASTERCARD | :MAESTRO | :INTERLINK
108113

109114
module Network
110115
extend Lithic::Internal::Type::Enum
111116

117+
AMEX: :AMEX
112118
VISA: :VISA
113119
MASTERCARD: :MASTERCARD
114120
MAESTRO: :MAESTRO

sig/lithic/models/reports/settlement/network_total_retrieve_response.rbs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module Lithic
99
created: Time,
1010
currency: String,
1111
institution_id: String,
12+
is_complete: bool,
1213
network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::network,
1314
report_date: Date,
1415
settlement_institution_id: String,
@@ -28,6 +29,8 @@ module Lithic
2829

2930
attr_accessor institution_id: String
3031

32+
attr_accessor is_complete: bool
33+
3134
attr_accessor network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::network
3235

3336
attr_accessor report_date: Date
@@ -48,6 +51,7 @@ module Lithic
4851
created: Time,
4952
currency: String,
5053
institution_id: String,
54+
is_complete: bool,
5155
network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::network,
5256
report_date: Date,
5357
settlement_institution_id: String,
@@ -62,6 +66,7 @@ module Lithic
6266
created: Time,
6367
currency: String,
6468
institution_id: String,
69+
is_complete: bool,
6570
network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::network,
6671
report_date: Date,
6772
settlement_institution_id: String,
@@ -104,11 +109,12 @@ module Lithic
104109
}
105110
end
106111

107-
type network = :VISA | :MASTERCARD | :MAESTRO | :INTERLINK
112+
type network = :AMEX | :VISA | :MASTERCARD | :MAESTRO | :INTERLINK
108113

109114
module Network
110115
extend Lithic::Internal::Type::Enum
111116

117+
AMEX: :AMEX
112118
VISA: :VISA
113119
MASTERCARD: :MASTERCARD
114120
MAESTRO: :MAESTRO

test/lithic/resources/reports/settlement/network_totals_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def test_retrieve
1717
created: Time,
1818
currency: String,
1919
institution_id: String,
20+
is_complete: Lithic::Internal::Type::Boolean,
2021
network: Lithic::Models::Reports::Settlement::NetworkTotalRetrieveResponse::Network,
2122
report_date: Date,
2223
settlement_institution_id: String,
@@ -48,6 +49,7 @@ def test_list
4849
created: Time,
4950
currency: String,
5051
institution_id: String,
52+
is_complete: Lithic::Internal::Type::Boolean,
5153
network: Lithic::Models::Reports::Settlement::NetworkTotalListResponse::Network,
5254
report_date: Date,
5355
settlement_institution_id: String,

0 commit comments

Comments
 (0)