import type * as Square from "../index"; /** * V1Order */ export interface V1Order { /** Any errors that occurred during the request. */ errors?: Square.Error_[] | null; /** The order's unique identifier. */ id?: string; /** The email address of the order's buyer. */ buyerEmail?: string | null; /** The name of the order's buyer. */ recipientName?: string | null; /** The phone number to use for the order's delivery. */ recipientPhoneNumber?: string | null; /** * Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. * See [V1OrderState](#type-v1orderstate) for possible values */ state?: Square.V1OrderState; /** The address to ship the order to. */ shippingAddress?: Square.Address; /** The amount of all items purchased in the order, before taxes and shipping. */ subtotalMoney?: Square.V1Money; /** The shipping cost for the order. */ totalShippingMoney?: Square.V1Money; /** The total of all taxes applied to the order. */ totalTaxMoney?: Square.V1Money; /** The total cost of the order. */ totalPriceMoney?: Square.V1Money; /** The total of all discounts applied to the order. */ totalDiscountMoney?: Square.V1Money; /** The time when the order was created, in ISO 8601 format. */ createdAt?: string; /** The time when the order was last modified, in ISO 8601 format. */ updatedAt?: string; /** The time when the order expires if no action is taken, in ISO 8601 format. */ expiresAt?: string | null; /** The unique identifier of the payment associated with the order. */ paymentId?: string | null; /** A note provided by the buyer when the order was created, if any. */ buyerNote?: string | null; /** A note provided by the merchant when the order's state was set to COMPLETED, if any */ completedNote?: string | null; /** A note provided by the merchant when the order's state was set to REFUNDED, if any. */ refundedNote?: string | null; /** A note provided by the merchant when the order's state was set to CANCELED, if any. */ canceledNote?: string | null; /** The tender used to pay for the order. */ tender?: Square.V1Tender; /** The history of actions associated with the order. */ orderHistory?: Square.V1OrderHistoryEntry[] | null; /** The promo code provided by the buyer, if any. */ promoCode?: string | null; /** For Bitcoin transactions, the address that the buyer sent Bitcoin to. */ btcReceiveAddress?: string | null; /** For Bitcoin transactions, the price of the buyer's order in satoshi (100 million satoshi equals 1 BTC). */ btcPriceSatoshi?: number | null; }