SQRDTender
@interface SQRDTender : NSObject <NSCopying>
Represents a tender used during the checkout flow.
-
A unique ID for the tender issued by Square’s servers.
Tender IDs can be used to issue refunds with the Connect v2 Transactions API. Currently, the tender ID is only present if the
type
is.card
.Declaration
Objective-C
@property (readonly, nonatomic, nullable) NSString *tenderID;
Swift
var tenderID: String? { get }
-
The date and time when the tender was created, as determined by the client device.
Declaration
Objective-C
@property (readonly, nonatomic, nonnull) NSDate *createdAt;
Swift
var createdAt: Date { get }
-
The type of tender.
Declaration
Objective-C
@property (readonly, nonatomic) SQRDTenderType type;
Swift
var type: SQRDTenderType { get }
-
The monetary amount added to this tender as a tip.
Included in the total indicated by
totalMoney
. -
Details related to a card payment.
This value is only present if
type
is.card
.Declaration
Objective-C
@property (readonly, nonatomic, nullable) SQRDTenderCardDetails *cardDetails;
Swift
var cardDetails: SQRDTenderCardDetails? { get }
-
Details related to a cash payment.
This value is only present if
type
is.cash
.Declaration
Objective-C
@property (readonly, nonatomic, nullable) SQRDTenderCashDetails *cashDetails;
Swift
var cashDetails: SQRDTenderCashDetails? { get }