OPPBillingAddressBuilder

@objc
public class OPPBillingAddressBuilder : NSObject

Builder class for costructing billing address object.

  • Set billing address country.

    Declaration

    Swift

    @objc
    public func withCountry(_ country: String) -> Self

    Parameters

    country

    The country of the billing address.

    Return Value

    self.

  • Set billing address state.

    Declaration

    Swift

    @objc
    public func withState(_ state: String) -> Self

    Parameters

    state

    The county, state or region of the billing address.

    Return Value

    self.

  • Set billing address city.

    Declaration

    Swift

    @objc
    public func withCity(_ city: String) -> Self

    Parameters

    city

    The town, district or city of the billing address.

    Return Value

    self.

  • Set billing address post code.

    Declaration

    Swift

    @objc
    public func withPostCode(_ postCode: String) -> Self

    Parameters

    postCode

    The postal code or zip code of the billing address.

    Return Value

    self.

  • Set billing address street1.

    Declaration

    Swift

    @objc
    public func withStreet1(_ street1: String) -> Self

    Parameters

    street1

    The door number, floor, building number, building name, and/or street name of the billing

    Return Value

    self.

  • Set billing address street2.

    Declaration

    Swift

    @objc
    public func withStreet2(_ street2: String) -> Self

    Parameters

    street2

    The adjoining road or locality (if required) of the billing address.

    Return Value

    self.

  • Update billing address country required flag. Default is true.

    Declaration

    Swift

    @objc
    public func withCountryRequired(_ countryRequired: Bool) -> Self
  • Update billing address state required flag. Default is true.

    Declaration

    Swift

    @objc
    public func withStateRequired(_ stateRequired: Bool) -> Self
  • Update billing address city required flag. Default is true.

    Declaration

    Swift

    @objc
    public func withCityRequired(_ cityRequired: Bool) -> Self
  • Update billing address post code required flag. Default is true.

    Declaration

    Swift

    @objc
    public func withPostCodeRequired(_ postCodeRequired: Bool) -> Self
  • Update billing address street1 required flag. Default is true.

    Declaration

    Swift

    @objc
    public func withStreet1Required(_ street1Required: Bool) -> Self
  • Update billing address street2 required flag. Default is true.

    Declaration

    Swift

    @objc
    public func withStreet2Required(_ street2Required: Bool) -> Self
  • Creates a new billing address.

    Declaration

    Swift

    @objc
    public func build() -> OPPBillingAddress

    Return Value

    The billing address.