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) -> SelfParameters
countryThe country of the billing address.
Return Value
self.
-
Set billing address state.
Declaration
Swift
@objc public func withState(_ state: String) -> SelfParameters
stateThe county, state or region of the billing address.
Return Value
self.
-
Set billing address city.
Declaration
Swift
@objc public func withCity(_ city: String) -> SelfParameters
cityThe town, district or city of the billing address.
Return Value
self.
-
Set billing address post code.
Declaration
Swift
@objc public func withPostCode(_ postCode: String) -> SelfParameters
postCodeThe postal code or zip code of the billing address.
Return Value
self.
-
Set billing address street1.
Declaration
Swift
@objc public func withStreet1(_ street1: String) -> SelfParameters
street1The 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) -> SelfParameters
street2The 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() -> OPPBillingAddressReturn Value
The billing address.
OPPBillingAddressBuilder Class Reference