PaymayaShippingAddress class

Example: Extended class of PaymayaBillingAddress.

final shippingAddress = PaymayaShippingAddress(
  phone:'09123456789',
  email:'paymaya@flutter.com',
  shippingType: Shippingtype.st, // Standard
  firstName: 'John'
  middleName: 'Birb',
  lastName: 'Doe',
  line1: '123-4567',
  line2: '456-789',
  city: 'Davao City',
  state: 'Davao del Sur',
  zipCode: 8000,
  countryCode: 'PH', /// Default value is set to 'PH'
);

Constructors

PaymayaShippingAddress({String? phone, required String email, ShippingType shippingType = ShippingType.st, required String firstName, required String lastName, required String middleName, String? line1, String? line2, required String city, required String state, required String zipCode, String countryCode = 'PH'})
Example: Extended class of PaymayaBillingAddress.
const
PaymayaShippingAddress.fromJson(String source)
Example: Extended class of PaymayaBillingAddress.
factory
PaymayaShippingAddress.fromMap(Map<String, dynamic> map)
Example: Extended class of PaymayaBillingAddress.
factory

Properties

city String
Buyer City
final
countryCode String
Buyer countryCode
final
email String
Autovalidated by PayMaya API. Feel free to validate at your own.
final
firstName String
first name of the buyer
final
hashCode int
The hash code for this object.
no setteroverride
lastName String
last name of the buyer
final
line1 String?
optional line1 value.
final
line2 String?
optional line2 value
final
middleName String
middle name of the buyer
final
phone String?
Autovalidated by PayMaya API. Feel free to validate at your own.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shippingType ShippingType
ST - Standard
final
state String
Buyer State
final
zipCode String
Buyer zipCode
final

Methods

copyWith({String? phone, String? email, ShippingType? shippingType, String? firstName, String? lastName, String? middleName, String? line1, String? line2, String? city, String? state, String? zipCode, String? countryCode}) PaymayaShippingAddress
Example: Extended class of PaymayaBillingAddress.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Example: Extended class of PaymayaBillingAddress.
toMap() Map<String, dynamic>
Example: Extended class of PaymayaBillingAddress.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override