MppBillingAddress
Objective-C
@interface MppBillingAddress : NSObject
Swift
class MppBillingAddress : NSObject
Billing address used for Click To Pay push provisioning.
-
Address line 1.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *addressLine1;Swift
var addressLine1: String? { get } -
Address line 2.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *addressLine2;Swift
var addressLine2: String? { get } -
Address line 3.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *addressLine3;Swift
var addressLine3: String? { get } -
City.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *city;Swift
var city: String? { get } -
Postal code.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *postalCode;Swift
var postalCode: String? { get } -
Country subdivision.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *countrySubdivision;Swift
var countrySubdivision: String? { get } -
Country.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *country;Swift
var country: String { get }
-
+billingAddressWithAddressLine1:addressLine2: addressLine3: city: postalCode: countrySubdivision: country: Creates billing address object.
Declaration
Objective-C
+ (instancetype _Nullable) billingAddressWithAddressLine1:(NSString *_Nullable)addressLine1 addressLine2:(NSString *_Nullable)addressLine2 addressLine3:(NSString *_Nullable)addressLine3 city:(NSString *_Nullable)city postalCode:(NSString *_Nullable)postalCode countrySubdivision:(NSString *_Nullable)countrySubdivision country:(NSString *_Nonnull)country;Swift
convenience init?(addressLine1: String?, addressLine2: String?, addressLine3: String?, city: String?, postalCode: String?, countrySubdivision: String?, country: String)Parameters
addressLine1Address line 1.
addressLine2Address line 2.
addressLine3Address line 3.
cityCity.
postalCodePostal code.
countrySubdivisionCountry subdivision.
countryCountry.
-
Creates billing address with dictionary.
Declaration
Objective-C
+ (instancetype _Nullable)billingAddressWithDictionary: (NSDictionary *_Nonnull)dictionary;Swift
convenience init?(dictionary: [AnyHashable : Any])Parameters
dictionaryDictionary.
-
Dictionary representing billing address.
Declaration
Objective-C
- (NSDictionary *_Nonnull)toDictionary;Swift
func toDictionary() -> [AnyHashable : Any]Return Value
Dictionary representing billing address.
-
Verify if billing address is valid.
Declaration
Objective-C
- (BOOL)isValid;Swift
func isValid() -> BoolReturn Value
trueif billing address is valid. -
Verify if billing address is valid.
Declaration
Objective-C
- (NSError *_Nullable)validate;Swift
func validate() -> (any Error)?Return Value
error if billing address is invalid,
nilotherwise.
MppBillingAddress Class Reference