-
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
currencyISO 4217 currency code
pricePartsA list of objects used to calculate the total price of the product
isTestTrue, if the payment is a test payment
needNameTrue, if the user’s name is needed for payment
needPhoneNumberTrue, if the user’s phone number is needed for payment
needEmailAddressTrue, if the user’s email address is needed for payment
needShippingAddressTrue, if the user’s shipping address is needed for payment
sendPhoneNumberToProviderTrue, if the user’s phone number will be sent to the provider
sendEmailAddressToProviderTrue, if the user’s email address will be sent to the provider
isFlexibleTrue, if the total price depends on the shipping method
View on GitHub
Install in Dash
Invoice Structure Reference