Class: Peddler::APIs::ShippingV2::Address

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/shipping_v2.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#address_line1String (readonly)

Returns the value of attribute address_line1.

Returns:

  • (String)


97
98
99
# File 'sig/peddler/apis/shipping_v2.rbs', line 97

def address_line1
  @address_line1
end

#address_line2String? (readonly)

Returns the value of attribute address_line2.

Returns:

  • (String, nil)


98
99
100
# File 'sig/peddler/apis/shipping_v2.rbs', line 98

def address_line2
  @address_line2
end

#address_line3String? (readonly)

Returns the value of attribute address_line3.

Returns:

  • (String, nil)


99
100
101
# File 'sig/peddler/apis/shipping_v2.rbs', line 99

def address_line3
  @address_line3
end

#cityString (readonly)

Returns the value of attribute city.

Returns:

  • (String)


100
101
102
# File 'sig/peddler/apis/shipping_v2.rbs', line 100

def city
  @city
end

#company_nameString? (readonly)

Returns the value of attribute company_name.

Returns:

  • (String, nil)


101
102
103
# File 'sig/peddler/apis/shipping_v2.rbs', line 101

def company_name
  @company_name
end

#country_codeString (readonly)

Returns the value of attribute country_code.

Returns:

  • (String)


102
103
104
# File 'sig/peddler/apis/shipping_v2.rbs', line 102

def country_code
  @country_code
end

#emailString? (readonly)

Returns the value of attribute email.

Returns:

  • (String, nil)


103
104
105
# File 'sig/peddler/apis/shipping_v2.rbs', line 103

def email
  @email
end

#geocodePeddler::APIs::ShippingV2::Geocode? (readonly)

Returns the value of attribute geocode.



104
105
106
# File 'sig/peddler/apis/shipping_v2.rbs', line 104

def geocode
  @geocode
end

#nameString (readonly)

Returns the value of attribute name.

Returns:

  • (String)


105
106
107
# File 'sig/peddler/apis/shipping_v2.rbs', line 105

def name
  @name
end

#phone_numberString? (readonly)

Returns the value of attribute phone_number.

Returns:

  • (String, nil)


106
107
108
# File 'sig/peddler/apis/shipping_v2.rbs', line 106

def phone_number
  @phone_number
end

#postal_codeString (readonly)

Returns the value of attribute postal_code.

Returns:

  • (String)


107
108
109
# File 'sig/peddler/apis/shipping_v2.rbs', line 107

def postal_code
  @postal_code
end

#state_or_regionString (readonly)

Returns the value of attribute state_or_region.

Returns:

  • (String)


108
109
110
# File 'sig/peddler/apis/shipping_v2.rbs', line 108

def state_or_region
  @state_or_region
end

Class Method Details

.[](address_line1:, city:, country_code:, name:, postal_code:, state_or_region:, address_line2:, address_line3:, company_name:, email:, geocode:, phone_number:) ⇒ Peddler::APIs::ShippingV2::Address .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) ⇒ Peddler::APIs::ShippingV2::Address

Overloads:



90
91
# File 'sig/peddler/apis/shipping_v2.rbs', line 90

def self.[]: (address_line1: String, city: String, country_code: String, name: String, postal_code: String, state_or_region: String, ?address_line2: String?, ?address_line3: String?, ?company_name: String?, ?email: String?, ?geocode: Peddler::APIs::ShippingV2::Geocode?, ?phone_number: String?) -> Peddler::APIs::ShippingV2::Address
| (String, String, String, String, String, String, String?, String?, String?, String?, Peddler::APIs::ShippingV2::Geocode?, String?) -> Peddler::APIs::ShippingV2::Address

.members[ :address_line1, :city, :country_code, :name, :postal_code, :state_or_region, :address_line2, :address_line3, :company_name, :email, :geocode, :phone_number ]

Returns:

  • ([ :address_line1, :city, :country_code, :name, :postal_code, :state_or_region, :address_line2, :address_line3, :company_name, :email, :geocode, :phone_number ])


93
# File 'sig/peddler/apis/shipping_v2.rbs', line 93

def self.members: () -> [ :address_line1, :city, :country_code, :name, :postal_code, :state_or_region, :address_line2, :address_line3, :company_name, :email, :geocode, :phone_number ]

.new(address_line1:, city:, country_code:, name:, postal_code:, state_or_region:, address_line2:, address_line3:, company_name:, email:, geocode:, phone_number:) ⇒ Peddler::APIs::ShippingV2::Address .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) ⇒ Peddler::APIs::ShippingV2::Address

Overloads:



88
89
# File 'sig/peddler/apis/shipping_v2.rbs', line 88

def self.new: (address_line1: String, city: String, country_code: String, name: String, postal_code: String, state_or_region: String, ?address_line2: String?, ?address_line3: String?, ?company_name: String?, ?email: String?, ?geocode: Peddler::APIs::ShippingV2::Geocode?, ?phone_number: String?) -> Peddler::APIs::ShippingV2::Address
| (String, String, String, String, String, String, String?, String?, String?, String?, Peddler::APIs::ShippingV2::Geocode?, String?) -> Peddler::APIs::ShippingV2::Address

.parsePeddler::APIs::ShippingV2::Address

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



95
# File 'sig/peddler/apis/shipping_v2.rbs', line 95

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::ShippingV2::Address

Instance Method Details

#members[ :address_line1, :city, :country_code, :name, :postal_code, :state_or_region, :address_line2, :address_line3, :company_name, :email, :geocode, :phone_number ]

Returns:

  • ([ :address_line1, :city, :country_code, :name, :postal_code, :state_or_region, :address_line2, :address_line3, :company_name, :email, :geocode, :phone_number ])


110
# File 'sig/peddler/apis/shipping_v2.rbs', line 110

def members: () -> [ :address_line1, :city, :country_code, :name, :postal_code, :state_or_region, :address_line2, :address_line3, :company_name, :email, :geocode, :phone_number ]

#to_h{ address_line1: String, city: String, country_code: String, name: String, postal_code: String, state_or_region: String, address_line2: String?, address_line3: String?, company_name: String?, email: String?, geocode: Peddler::APIs::ShippingV2::Geocode?, phone_number: String? }

Returns:

  • ({ address_line1: String, city: String, country_code: String, name: String, postal_code: String, state_or_region: String, address_line2: String?, address_line3: String?, company_name: String?, email: String?, geocode: Peddler::APIs::ShippingV2::Geocode?, phone_number: String? })


111
# File 'sig/peddler/apis/shipping_v2.rbs', line 111

def to_h: () -> { address_line1: String, city: String, country_code: String, name: String, postal_code: String, state_or_region: String, address_line2: String?, address_line3: String?, company_name: String?, email: String?, geocode: Peddler::APIs::ShippingV2::Geocode?, phone_number: String? }