# Customer

    @objc(LSCustomer)
    final class Customer

    extension Customer : CVarArg, CustomDebugStringConvertible, CustomStringConvertible, Decodable, Equatable, Hashable, NSObjectProtocol

LicenseSpring Customer information.

- `email`

  Customer email address.

  #### Declaration

  Swift

      @objc
      var email: String?

- `firstName`

  Customer first name.

  #### Declaration

  Swift

      @objc
      var firstName: String?

- `lastName`

  Customer last name.

  #### Declaration

  Swift

      @objc
      var lastName: String?

- `company`

  Customer company name.

  #### Declaration

  Swift

      @objc
      var company: String?

- `phone`

  Customer phone number.

  #### Declaration

  Swift

      @objc
      var phone: String?

- `address`

  Customer address.

  #### Declaration

  Swift

      @objc
      var address: String?

- `city`

  Customer city.

  #### Declaration

  Swift

      @objc
      var city: String?

- `state`

  Customer state.

  #### Declaration

  Swift

      @objc
      var state: String?

- `country`

  Customer country.

  #### Declaration

  Swift

      @objc
      var country: String?

- `postcode`

  Customer postcode/zipcoder.

  #### Declaration

  Swift

      @objc
      var postcode: String?

- `reference`

  Customer reference.

  #### Declaration

  Swift

      @objc
      var reference: String?

- `metadata`

  Metadata JSON.

  #### Declaration

  Swift

      @objc
      var metadata: Data?

- `init(email:firstName:lastName:company:phone:address:city:state:country:postcode:reference:metadata:)`

  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.

- `init(from:)`

  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

© 2026 LicenseSpring. All rights reserved. (Last updated: 2026-02-19)

Generated by jazzy ♪♫ v0.15.3, a Realm project.