Skip to content

Commit

Permalink
feat(api): adds additional fields to TransactionEvents (#609)
Browse files Browse the repository at this point in the history
- adds `original_banknet_reference_number` and `original_switch_serial_number` to `network_info.mastercard`
- adds `original_transaction_id` to `network_info.visa`
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jan 24, 2025
1 parent bb098a5 commit 0404528
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions src/resources/transactions/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,9 @@ export namespace Transaction {
* transaction lifecycle and can be used to locate a particular transaction, such
* as during processing of disputes. Not all fields are available in all events,
* and the presence of these fields is dependent on the card network and the event
* type.
* type. If the field is populated by the network, we will pass it through as is
* unless otherwise specified. Please consult the official network documentation
* for more details about these fields and how to use them.
*/
network_info: Event.NetworkInfo | null;

Expand Down Expand Up @@ -810,7 +812,9 @@ export namespace Transaction {
* transaction lifecycle and can be used to locate a particular transaction, such
* as during processing of disputes. Not all fields are available in all events,
* and the presence of these fields is dependent on the card network and the event
* type.
* type. If the field is populated by the network, we will pass it through as is
* unless otherwise specified. Please consult the official network documentation
* for more details about these fields and how to use them.
*/
export interface NetworkInfo {
acquirer: NetworkInfo.Acquirer | null;
Expand Down Expand Up @@ -848,13 +852,43 @@ export namespace Transaction {
* only.
*/
switch_serial_number: string | null;

/**
* [Available on January 28th] Identifier assigned by Mastercard. Matches the
* `banknet_reference_number` of a prior related event. May be populated in
* authorization reversals, incremental authorizations (authorization requests that
* augment a previously authorized amount), automated fuel dispenser authorization
* advices and clearings, and financial authorizations. If the original banknet
* reference number contains all zeroes, then no actual reference number could be
* found by the network or acquirer. If Mastercard converts a transaction from
* dual-message to single-message, such as for certain ATM transactions, it will
* populate the original banknet reference number in the resulting financial
* authorization with the banknet reference number of the initial authorization,
* which Lithic does not receive.
*/
original_banknet_reference_number?: string | null;

/**
* [Available on January 28th] Identifier assigned by Mastercard. Matches the
* `switch_serial_number` of a prior related event. May be populated in returns and
* return reversals. Applicable to single-message transactions only.
*/
original_switch_serial_number?: string | null;
}

export interface Visa {
/**
* Identifier assigned by Visa.
*/
transaction_id: string | null;

/**
* [Available on January 28th] Identifier assigned by Visa. Matches the
* `transaction_id` of a prior related event. May be populated in incremental
* authorizations (authorization requests that augment a previously authorized
* amount), authorization advices, financial authorizations, and clearings.
*/
original_transaction_id?: string | null;
}
}

Expand Down

0 comments on commit 0404528

Please sign in to comment.