Customer

@objc(LSCustomer)
final class Customer
extension Customer : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Equatable, Hashable, NSObjectProtocol

LicenseSpring Customer information.

  • Customer email address.

    Declaration

    Swift

    @objc
    var email: String?
  • Customer first name.

    Declaration

    Swift

    @objc
    var firstName: String?
  • Customer last name.

    Declaration

    Swift

    @objc
    var lastName: String?
  • Customer company name.

    Declaration

    Swift

    @objc
    var company: String?
  • Customer phone number.

    Declaration

    Swift

    @objc
    var phone: String?
  • Customer address.

    Declaration

    Swift

    @objc
    var address: String?
  • Customer city.

    Declaration

    Swift

    @objc
    var city: String?
  • Customer state.

    Declaration

    Swift

    @objc
    var state: String?
  • Customer country.

    Declaration

    Swift

    @objc
    var country: String?
  • Customer postcode/zipcoder.

    Declaration

    Swift

    @objc
    var postcode: String?
  • Customer reference.

    Declaration

    Swift

    @objc
    var reference: String?
  • Metadata JSON.

    Declaration

    Swift

    @objc
    var metadata: Data?
  • Creates Customer instance with parameters.

    Declaration

    Swift

    @objc
    init(email: String?, firstName: String? = nil, lastName: String? = nil, company: String? = nil, phone: String? = nil, address: String? = nil, city: String? = nil, state: String? = nil, country: String? = nil, postcode: String? = nil, reference: String? = nil, metadata: Data? = nil)

    Parameters

    email

    Customer email address.

    firstName

    Customer first name.

    lastName

    Customer last name.

    company

    Customer company name.

    phone

    Customer phone number.

    address

    Customer address.

    city

    Customer city.

    state

    Customer state.

    country

    Customer country.

    postcode

    Customer postcode/zipcoder.

    reference

    Customer reference.

    metadata

    Customer metadata JSON.

  • 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: any Decoder) throws