Shopify SDK for Unity
Public Member Functions | List of all members
Shopify.Unity.MailingAddress Class Reference

Represents a mailing address for customers and shipping. More...

Inheritance diagram for Shopify.Unity.MailingAddress:
Shopify.Unity.SDK.AbstractResponse Shopify.Unity.Node

Public Member Functions

 MailingAddress (Dictionary< string, object > dataJSON)
 Accepts deserialized json data. Will further parse passed in data. More...
 
string address1 ()
 The first line of the address. Typically the street address or PO Box number. More...
 
string address2 ()
 The second line of the address. Typically the number of the apartment, suite, or unit. More...
 
string city ()
 The name of the city, district, village, or town. More...
 
string company ()
 The name of the customer's company or organization. More...
 
string country ()
 The name of the country. More...
 
string countryCode ()
 The two-letter code for the country of the address. More...
 
CountryCodecountryCodeV2 ()
 The two-letter code for the country of the address. More...
 
string firstName ()
 The first name of the customer. More...
 
List< string > formatted (string alias=null)
 A formatted version of the address, customized by the provided arguments. More...
 
string formattedArea ()
 A comma-separated list of the values for city, province, and country. More...
 
string id ()
 Globally unique identifier. More...
 
string lastName ()
 The last name of the customer. More...
 
double? latitude ()
 The latitude coordinate of the customer address. More...
 
double? longitude ()
 The longitude coordinate of the customer address. More...
 
string name ()
 The full name of the customer, based on firstName and lastName. More...
 
string phone ()
 A unique phone number for the customer. More...
 
string province ()
 The region of the address, such as the province, state, or district. More...
 
string provinceCode ()
 The two-letter code for the region. More...
 
string zip ()
 The zip or postal code of the address. More...
 
object Clone ()
 

Additional Inherited Members

- Protected Member Functions inherited from Shopify.Unity.SDK.AbstractResponse
Get< T > (string field, string alias=null)
 
- Protected Attributes inherited from Shopify.Unity.SDK.AbstractResponse
Dictionary< string, object > Data
 
- Properties inherited from Shopify.Unity.SDK.AbstractResponse
Dictionary< string, object > DataJSON [get, protected set]
 

Detailed Description

Represents a mailing address for customers and shipping.

Constructor & Destructor Documentation

◆ MailingAddress()

Shopify.Unity.MailingAddress.MailingAddress ( Dictionary< string, object >  dataJSON)
inline

Accepts deserialized json data. Will further parse passed in data.

Parameters
dataJSONDeserialized JSON data for MailingAddress

Member Function Documentation

◆ address1()

string Shopify.Unity.MailingAddress.address1 ( )
inline

The first line of the address. Typically the street address or PO Box number.

◆ address2()

string Shopify.Unity.MailingAddress.address2 ( )
inline

The second line of the address. Typically the number of the apartment, suite, or unit.

◆ city()

string Shopify.Unity.MailingAddress.city ( )
inline

The name of the city, district, village, or town.

◆ company()

string Shopify.Unity.MailingAddress.company ( )
inline

The name of the customer's company or organization.

◆ country()

string Shopify.Unity.MailingAddress.country ( )
inline

The name of the country.

◆ countryCode()

string Shopify.Unity.MailingAddress.countryCode ( )
inline

The two-letter code for the country of the address.

Deprecated:
Use countryCodeV2 instead

For example, US.

◆ countryCodeV2()

CountryCode? Shopify.Unity.MailingAddress.countryCodeV2 ( )
inline

The two-letter code for the country of the address.

For example, US.

◆ firstName()

string Shopify.Unity.MailingAddress.firstName ( )
inline

The first name of the customer.

◆ formatted()

List<string> Shopify.Unity.MailingAddress.formatted ( string  alias = null)
inline

A formatted version of the address, customized by the provided arguments.

Parameters
aliasIf the original field queried was queried using an alias, then pass the matching string.

◆ formattedArea()

string Shopify.Unity.MailingAddress.formattedArea ( )
inline

A comma-separated list of the values for city, province, and country.

◆ id()

string Shopify.Unity.MailingAddress.id ( )
inline

Globally unique identifier.

Implements Shopify.Unity.Node.

◆ lastName()

string Shopify.Unity.MailingAddress.lastName ( )
inline

The last name of the customer.

◆ latitude()

double? Shopify.Unity.MailingAddress.latitude ( )
inline

The latitude coordinate of the customer address.

◆ longitude()

double? Shopify.Unity.MailingAddress.longitude ( )
inline

The longitude coordinate of the customer address.

◆ name()

string Shopify.Unity.MailingAddress.name ( )
inline

The full name of the customer, based on firstName and lastName.

◆ phone()

string Shopify.Unity.MailingAddress.phone ( )
inline

A unique phone number for the customer.

Formatted using E.164 standard. For example, +16135551111.

◆ province()

string Shopify.Unity.MailingAddress.province ( )
inline

The region of the address, such as the province, state, or district.

◆ provinceCode()

string Shopify.Unity.MailingAddress.provinceCode ( )
inline

The two-letter code for the region.

For example, ON.

◆ zip()

string Shopify.Unity.MailingAddress.zip ( )
inline

The zip or postal code of the address.


The documentation for this class was generated from the following file: