Skip to content

Commit 45a3647

Browse files
docs(types): clarify event_tokens and transaction_token fields in SettlementDetail
1 parent 4c31af3 commit 45a3647

3 files changed

Lines changed: 28 additions & 10 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: 191
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-0572da655d188e23459f2115b03b27040b4c4d3b47e4a86510803892d0d1b0aa.yml
3-
openapi_spec_hash: b615a0eb16502b4de874f9ae28491894
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-a46ebb10f6bb217a591206f0574450c324f108dbd32a2d62727cd8186d85e94f.yml
3+
openapi_spec_hash: f320c173152f74b0799166b6ef5b82cd
44
config_hash: ac8326134e692f3f3bdec82396bbec80

lib/lithic/models/settlement_detail.rb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ class SettlementDetail < Lithic::Internal::Type::BaseModel
4949
required :disputes_gross_amount, Integer
5050

5151
# @!attribute event_tokens
52-
# Globally unique identifiers denoting the Events associated with this settlement.
52+
# Array of globally unique identifiers for the financial events that comprise this
53+
# settlement. Use these tokens to access detailed event-level information.
5354
#
5455
# @return [Array<String>]
5556
required :event_tokens, Lithic::Internal::Type::ArrayOf[String]
@@ -106,7 +107,12 @@ class SettlementDetail < Lithic::Internal::Type::BaseModel
106107
required :settlement_date, String
107108

108109
# @!attribute transaction_token
109-
# Globally unique identifier denoting the associated Transaction object.
110+
# Globally unique identifier denoting the associated transaction. For settlement
111+
# records with type `CLEARING`, `FINANCIAL`, or `NON-FINANCIAL`, this references a
112+
# card transaction token. For settlement records with type `CHARGEBACK`,
113+
# `REPRESENTMENT`, `PREARBITRATION`, `ARBITRATION`, or `COLLABORATION`, this
114+
# references the dispute transaction token. May be null for certain settlement
115+
# types.
110116
#
111117
# @return [String]
112118
required :transaction_token, String
@@ -154,7 +160,7 @@ class SettlementDetail < Lithic::Internal::Type::BaseModel
154160
#
155161
# @param disputes_gross_amount [Integer] The total gross amount of disputes settlements.
156162
#
157-
# @param event_tokens [Array<String>] Globally unique identifiers denoting the Events associated with this settlement.
163+
# @param event_tokens [Array<String>] Array of globally unique identifiers for the financial events that comprise this
158164
#
159165
# @param institution [String] The most granular ID the network settles with (e.g., ICA for Mastercard, FTSRE f
160166
#
@@ -172,7 +178,7 @@ class SettlementDetail < Lithic::Internal::Type::BaseModel
172178
#
173179
# @param settlement_date [String] Date of when money movement is triggered for the transaction. One exception appl
174180
#
175-
# @param transaction_token [String] Globally unique identifier denoting the associated Transaction object.
181+
# @param transaction_token [String] Globally unique identifier denoting the associated transaction. For settlement r
176182
#
177183
# @param transactions_gross_amount [Integer] The total amount of settlement impacting transactions (excluding interchange, fe
178184
#

rbi/lithic/models/settlement_detail.rbi

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ module Lithic
3939
sig { returns(Integer) }
4040
attr_accessor :disputes_gross_amount
4141

42-
# Globally unique identifiers denoting the Events associated with this settlement.
42+
# Array of globally unique identifiers for the financial events that comprise this
43+
# settlement. Use these tokens to access detailed event-level information.
4344
sig { returns(T::Array[String]) }
4445
attr_accessor :event_tokens
4546

@@ -85,7 +86,12 @@ module Lithic
8586
sig { returns(String) }
8687
attr_accessor :settlement_date
8788

88-
# Globally unique identifier denoting the associated Transaction object.
89+
# Globally unique identifier denoting the associated transaction. For settlement
90+
# records with type `CLEARING`, `FINANCIAL`, or `NON-FINANCIAL`, this references a
91+
# card transaction token. For settlement records with type `CHARGEBACK`,
92+
# `REPRESENTMENT`, `PREARBITRATION`, `ARBITRATION`, or `COLLABORATION`, this
93+
# references the dispute transaction token. May be null for certain settlement
94+
# types.
8995
sig { returns(String) }
9096
attr_accessor :transaction_token
9197

@@ -153,7 +159,8 @@ module Lithic
153159
currency:,
154160
# The total gross amount of disputes settlements.
155161
disputes_gross_amount:,
156-
# Globally unique identifiers denoting the Events associated with this settlement.
162+
# Array of globally unique identifiers for the financial events that comprise this
163+
# settlement. Use these tokens to access detailed event-level information.
157164
event_tokens:,
158165
# The most granular ID the network settles with (e.g., ICA for Mastercard, FTSRE
159166
# for Visa).
@@ -174,7 +181,12 @@ module Lithic
174181
# applies - for Mastercard dual message settlement, this is the settlement
175182
# advisement date, which is distinct from the date of money movement.
176183
settlement_date:,
177-
# Globally unique identifier denoting the associated Transaction object.
184+
# Globally unique identifier denoting the associated transaction. For settlement
185+
# records with type `CLEARING`, `FINANCIAL`, or `NON-FINANCIAL`, this references a
186+
# card transaction token. For settlement records with type `CHARGEBACK`,
187+
# `REPRESENTMENT`, `PREARBITRATION`, `ARBITRATION`, or `COLLABORATION`, this
188+
# references the dispute transaction token. May be null for certain settlement
189+
# types.
178190
transaction_token:,
179191
# The total amount of settlement impacting transactions (excluding interchange,
180192
# fees, and disputes).

0 commit comments

Comments
 (0)