/*** * * SaaSquatch Type Definitions * * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. * * Generated on 2026-03-20T21:11:42.771Z * ***/ /*** * RefundEventFields.schema.json * Generated on 2026-03-20T21:11:43.370Z * This file was automatically generated. DO NOT edit it by hand, instead edit the related JSON Schema file. ***/ /** * The order or transaction ID associated with the refunded purchase */ export type RefundedOrderID = string /** * Store or affiliation from which this transaction occurred (e.g. Google Store) */ export type Affiliation = string /** * Revenue with discounts and coupons added in */ export type RefundedTotal = number /** * Revenue associated with the transaction (excluding shipping and tax). This is the field we use to calculate a customer's LTV. */ export type RefundedRevenue = number /** * Shipping cost associated with the transaction */ export type RefundedShipping = number /** * Total tax associated with the transaction */ export type RefundedTax = number /** * The ISO currency code used in this purchase */ export type RefundedCurrency = string /** * Database id of the product being viewed */ export type ProductID = string /** * Sku of the product being viewed */ export type StockKeepingUnit = string /** * Product category being viewed */ export type ProductCategory = string /** * Name of the product being viewed */ export type ProductName = string /** * Brand associated with the product */ export type Brand = string /** * Variant of the product (e.g. Black) */ export type ProductVariant = string /** * Price of the product being viewed */ export type Price = number /** * Quantity of a product */ export type Quantity = number /** * Coupon code associated with a product (e.g MAY_DEALS_3) */ export type Coupon = string /** * Position in the product list (ex. 3) */ export type ProductPosition = number /** * URL of the product page */ export type ProductURL = string /** * Image url of the product */ export type ImageURL = string /** * @maxItems 200 */ export type RefundedProducts = { product_id: ProductID sku?: StockKeepingUnit category?: ProductCategory name?: ProductName brand?: Brand variant?: ProductVariant price?: Price quantity?: Quantity coupon?: Coupon position?: ProductPosition url?: ProductURL image_url?: ImageURL }[] /** * Defines the event fields our system recognizes as a refund event */ export interface RefundEventFieldsSchema { order_id?: RefundedOrderID affiliation?: Affiliation total?: RefundedTotal revenue?: RefundedRevenue shipping?: RefundedShipping tax?: RefundedTax currency?: RefundedCurrency products?: RefundedProducts }