OrderDetails
@objc(PPCOrderDetails)
@objcMembers
class OrderDetails : OrderActionData
extension OrderDetails : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Equatable, Hashable, NSObjectProtocol
Data vended in response to a successful OrderAction
for getting the current details of an existing order
The Payer
and PurchaseUnits
properties contain most of the information related to a specific order.
-
Creates a new instance by decoding from the given decoder.
This initializer throws an error if reading from the decoder fails, or if the data read is corrupted or otherwise invalid.
Declaration
Swift
required init(from decoder: Decoder) throws
-
An object representing the current Payer of the order
Declaration
Swift
let payer: OrderPayer?
-
Array of
PurchaseUnit
that are part of the order. This also contains other useful details about the order such as payment history containing details about captures.Declaration
Swift
let purchaseUnits: [PurchaseUnit]