-
ISO 4217 currency code
Declaration
Swift
public let currency: String
-
A list of objects used to calculate the total price of the product
Declaration
Swift
public let priceParts: [LabeledPricePart]
-
True, if the payment is a test payment
Declaration
Swift
public let isTest: Bool
-
True, if the user’s name is needed for payment
Declaration
Swift
public let needName: Bool
-
True, if the user’s phone number is needed for payment
Declaration
Swift
public let needPhoneNumber: Bool
-
True, if the user’s email address is needed for payment
Declaration
Swift
public let needEmailAddress: Bool
-
True, if the user’s shipping address is needed for payment
Declaration
Swift
public let needShippingAddress: Bool
-
True, if the user’s phone number will be sent to the provider
Declaration
Swift
public let sendPhoneNumberToProvider: Bool
-
True, if the user’s email address will be sent to the provider
Declaration
Swift
public let sendEmailAddressToProvider: Bool
-
True, if the total price depends on the shipping method
Declaration
Swift
public let isFlexible: Bool
-
init(currency:priceParts:isTest:needName:needPhoneNumber:needEmailAddress:needShippingAddress:sendPhoneNumberToProvider:sendEmailAddressToProvider:isFlexible:)
Product invoice
Declaration
Swift
public init(currency: String, priceParts: [LabeledPricePart], isTest: Bool, needName: Bool, needPhoneNumber: Bool, needEmailAddress: Bool, needShippingAddress: Bool, sendPhoneNumberToProvider: Bool, sendEmailAddressToProvider: Bool, isFlexible: Bool)
Parameters
currency
ISO 4217 currency code
priceParts
A list of objects used to calculate the total price of the product
isTest
True, if the payment is a test payment
needName
True, if the user’s name is needed for payment
needPhoneNumber
True, if the user’s phone number is needed for payment
needEmailAddress
True, if the user’s email address is needed for payment
needShippingAddress
True, if the user’s shipping address is needed for payment
sendPhoneNumberToProvider
True, if the user’s phone number will be sent to the provider
sendEmailAddressToProvider
True, if the user’s email address will be sent to the provider
isFlexible
True, if the total price depends on the shipping method