PlatformFees
@objc(PPCPurchaseUnitPlatformFees)
@objcMembers
class PlatformFees
extension PurchaseUnit.PlatformFees : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Encodable, Equatable, Hashable, NSObjectProtocol
An array of various fees, commissions, tips, or donations.
-
The fee for this transaction
Declaration
Swift
let amount: PurchaseUnit.Amount
-
Undocumented
Declaration
Swift
init(amount: PurchaseUnit.Amount, payee: PurchaseUnit.Payee? = nil)
-
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
init(from decoder: Decoder) throws
-
The recipient of the fee for this transaction. If you omit this value, the default is the API caller.
Declaration
Swift
let payee: PurchaseUnit.Payee?