// ----------------------------------------------------------------------------- // Enum Typedefs // ----------------------------------------------------------------------------- /** * @typedef {"ConfirmAction" | "SaveAction" | "TrackAction" | "ViewAction"} ActionTypes */ // ----------------------------------------------------------------------------- // Model Typedefs // ----------------------------------------------------------------------------- /** * @typedef {Object} ActionHandler * @property {string} at_type * @property {string} url */ /** * @typedef {Object} Address * @property {string} addressCountry * @property {string} addressLocality * @property {string} addressRegion * @property {string} postalCode * @property {string} postOfficeBoxNumber * @property {string} streetAddress */ /** * @typedef {Object} Customer * @property {string} name */ /** * @typedef {Object} GotoAction * @property {string} at_context * @property {string} at_type * @property {PotentialAction} potentialAction * @property {string} description */ /** * @typedef {Object} Merchant * @property {string} name */ /** * @typedef {Object} Offer * @property {PaymentMethod} [acceptedPaymentMethod] * @property {Offer} [addOn] * @property {string} [advanceBookingRequirement] * @property {string} [aggregateRating] * @property {string} [availability] * @property {string} [availabilityEnds] * @property {string} [availabilityStarts] * @property {Place} [availableAtOrFrom] * @property {string} [availableDeliveryMethod] * @property {string} [businessFunction] * @property {string} [category] * @property {string} [deliveryLeadTime] * @property {string} [eligibleCustomerType] * @property {string} [eligibleDuration] * @property {string} [eligibleQuantity] * @property {string} [eligibleRegion] * @property {string} [eligibleTransactionVolume] * @property {string} [gtin13] * @property {string} [gtin14] * @property {string} [gtin8] * @property {string} [includesObject] * @property {string} [ineligibleRegion] * @property {string} [inventoryLevel] * @property {string} [itemCondition] * @property {Product} itemOffered * @property {string} [mpn] * @property {string} name * @property {number} price * @property {string} priceCurrency * @property {PriceSpecification} [priceSpecification] * @property {string} [priceValidUntil] * @property {Organization} [seller] * @property {string} [serialNumber] * @property {string} [sku] * @property {string} [validFrom] * @property {string} [validThrough] */ /** * @typedef {Object} OneClickAction * @property {string} at_context * @property {string} at_type * @property {PotentialAction} potentialAction * @property {string} description */ /** * @typedef {Object} Order * @property {Address} [billingAddress] * @property {Customer} customer * @property {number} [discount] * @property {string} [discountCurrency] * @property {boolean} isGift * @property {Merchant} merchant * @property {string} orderNumber * @property {string} priceCurrency * @property {PriceSpecification} [priceSpecification] * @property {number} price * @property {Offer[]} acceptedOffer * @property {string} url * @property {string} orderStatus * @property {PaymentMethod} paymentMethod * @property {string} paymentMethodId * @property {string} orderDate */ /** * @typedef {Object} Organization * @property {Address} address * @property {string} legal_name */ /** * @typedef {Object} PaymentMethod * @property {string} name */ /** * @typedef {Object} Place * @property {Address} address * @property {string} logo * @property {string} map * @property {string} telephone */ /** * @typedef {Object} PotentialAction * @property {ActionTypes} at_type * @property {ActionHandler} [handler] * @property {string} name * @property {string} target */ /** * @typedef {Object} PriceSpecification * @property {string} eligibleQuantity * @property {string} eligibleTransactionVolume * @property {number} maxPrice * @property {number} minPrice * @property {number} price * @property {string} priceCurrency * @property {string} validFrom * @property {string} validThrough * @property {boolean} valueAddedTaxIncluded */ /** * @typedef {Object} Product * @property {string} productID * @property {string} sku * @property {Organization} [brand] * @property {Organization} [manufacturer] * @property {string} [color] */ // ----------------------------------------------------------------------------- // Union Typedefs // -----------------------------------------------------------------------------