Category
@objc(PPCPurchaseUnitCategory)
enum Category
extension PurchaseUnit.Category : CaseIterable, Equatable, Hashable, RawRepresentable
The item category type.
-
Goods that are stored, delivered, and used in their electronic format. This value is not currently supported for API callers that leverage the PayPal for Commerce Platform product.
Declaration
Swift
case digitalGoods
-
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw value, this initializer returns
nil
. For example:enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional("PaperSize.Legal")" print(PaperSize(rawValue: "Tabloid")) // Prints "nil"
Declaration
Swift
init?(rawValue: Int)
-
Undocumented
Declaration
Swift
case none
-
A tangible item that can be shipped with proof of delivery.
Declaration
Swift
case physicalGoods