import type * as Square from "../index"; /** * Represents a tender (i.e., a method of payment) used in a Square transaction. */ export interface Tender { /** The tender's unique ID. It is the associated payment ID. */ id?: string; /** The ID of the transaction's associated location. */ locationId?: string | null; /** The ID of the tender's associated transaction. */ transactionId?: string | null; /** The timestamp for when the tender was created, in RFC 3339 format. */ createdAt?: string; /** An optional note associated with the tender at the time of payment. */ note?: string | null; /** * The total amount of the tender, including `tip_money`. If the tender has a `payment_id`, * the `total_money` of the corresponding [Payment](entity:Payment) will be equal to the * `amount_money` of the tender. */ amountMoney?: Square.Money; /** The tip's amount of the tender. */ tipMoney?: Square.Money; /** * The amount of any Square processing fees applied to the tender. * * This field is not immediately populated when a new transaction is created. * It is usually available after about ten seconds. */ processingFeeMoney?: Square.Money; /** * If the tender is associated with a customer or represents a customer's card on file, * this is the ID of the associated customer. */ customerId?: string | null; /** * The type of tender, such as `CARD` or `CASH`. * See [TenderType](#type-tendertype) for possible values */ type: Square.TenderType; /** * The details of the card tender. * * This value is present only if the value of `type` is `CARD`. */ cardDetails?: Square.TenderCardDetails; /** * The details of the cash tender. * * This value is present only if the value of `type` is `CASH`. */ cashDetails?: Square.TenderCashDetails; /** * The details of the bank account tender. * * This value is present only if the value of `type` is `BANK_ACCOUNT`. */ bankAccountDetails?: Square.TenderBankAccountDetails; /** * The details of a Buy Now Pay Later tender. * * This value is present only if the value of `type` is `BUY_NOW_PAY_LATER`. */ buyNowPayLaterDetails?: Square.TenderBuyNowPayLaterDetails; /** * The details of a Square Account tender. * * This value is present only if the value of `type` is `SQUARE_ACCOUNT`. */ squareAccountDetails?: Square.TenderSquareAccountDetails; /** * Additional recipients (other than the merchant) receiving a portion of this tender. * For example, fees assessed on the purchase by a third party integration. */ additionalRecipients?: Square.AdditionalRecipient[] | null; /** * The ID of the [Payment](entity:Payment) that corresponds to this tender. * This value is only present for payments created with the v2 Payments API. */ paymentId?: string | null; }