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, nullable) 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 *_Nonnull)addressLine1 addressLine2:(NSString *_Nonnull)addressLine2 addressLine3:(NSString *_Nonnull)addressLine3 city:(NSString *_Nonnull)city postalCode:(NSString *_Nonnull)postalCode countrySubdivision:(NSString *_Nonnull)countrySubdivision country:(NSString *_Nonnull)country;
Swift
convenience init?(addressLine1: String, addressLine2: String, addressLine3: String, city: String, postalCode: String, countrySubdivision: String, country: String)
Parameters
addressLine1
Address line 1.
addressLine2
Address line 2.
addressLine3
Address line 3.
city
City.
postalCode
Postal code.
countrySubdivision
Country subdivision.
country
Country.
-
Creates billing address with dictionary.
Declaration
Objective-C
+ (instancetype _Nullable)billingAddressWithDictionary: (NSDictionary *_Nonnull)dictionary;
Swift
convenience init?(dictionary: [AnyHashable : Any])
Parameters
dictionary
Dictionary.
-
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() -> Bool
Return Value
true
if billing address is valid.