Class: Peddler::APIs::ShippingV1::Address

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/shipping_v1.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)


49
50
51
# File 'sig/peddler/apis/shipping_v1.rbs', line 49

def address_line1
  @address_line1
end

#address_line2String? (readonly)

Returns the value of attribute address_line2.

Returns:

  • (String, nil)


50
51
52
# File 'sig/peddler/apis/shipping_v1.rbs', line 50

def address_line2
  @address_line2
end

#address_line3String? (readonly)

Returns the value of attribute address_line3.

Returns:

  • (String, nil)


51
52
53
# File 'sig/peddler/apis/shipping_v1.rbs', line 51

def address_line3
  @address_line3
end

#cityString (readonly)

Returns the value of attribute city.

Returns:

  • (String)


52
53
54
# File 'sig/peddler/apis/shipping_v1.rbs', line 52

def city
  @city
end

#copy_emailsArray[String]? (readonly)

Returns the value of attribute copy_emails.

Returns:

  • (Array[String], nil)


53
54
55
# File 'sig/peddler/apis/shipping_v1.rbs', line 53

def copy_emails
  @copy_emails
end

#country_codeString (readonly)

Returns the value of attribute country_code.

Returns:

  • (String)


54
55
56
# File 'sig/peddler/apis/shipping_v1.rbs', line 54

def country_code
  @country_code
end

#emailString? (readonly)

Returns the value of attribute email.

Returns:

  • (String, nil)


55
56
57
# File 'sig/peddler/apis/shipping_v1.rbs', line 55

def email
  @email
end

#nameString (readonly)

Returns the value of attribute name.

Returns:

  • (String)


56
57
58
# File 'sig/peddler/apis/shipping_v1.rbs', line 56

def name
  @name
end

#phone_numberString? (readonly)

Returns the value of attribute phone_number.

Returns:

  • (String, nil)


57
58
59
# File 'sig/peddler/apis/shipping_v1.rbs', line 57

def phone_number
  @phone_number
end

#postal_codeString (readonly)

Returns the value of attribute postal_code.

Returns:

  • (String)


58
59
60
# File 'sig/peddler/apis/shipping_v1.rbs', line 58

def postal_code
  @postal_code
end

#state_or_regionString (readonly)

Returns the value of attribute state_or_region.

Returns:

  • (String)


59
60
61
# File 'sig/peddler/apis/shipping_v1.rbs', line 59

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:, copy_emails:, email:, phone_number:) ⇒ Peddler::APIs::ShippingV1::Address .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) ⇒ Peddler::APIs::ShippingV1::Address

Overloads:

  • .[](address_line1:, city:, country_code:, name:, postal_code:, state_or_region:, address_line2:, address_line3:, copy_emails:, email:, phone_number:) ⇒ Peddler::APIs::ShippingV1::Address

    Parameters:

    • address_line1: (String)
    • city: (String)
    • country_code: (String)
    • name: (String)
    • postal_code: (String)
    • state_or_region: (String)
    • address_line2: (String, nil)
    • address_line3: (String, nil)
    • copy_emails: (Array[String], nil)
    • email: (String, nil)
    • phone_number: (String, nil)

    Returns:

  • .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) ⇒ Peddler::APIs::ShippingV1::Address

    Parameters:

    • arg0 (String)
    • arg1 (String)
    • arg2 (String)
    • arg3 (String)
    • arg4 (String)
    • arg5 (String)
    • arg6 (String, nil)
    • arg7 (String, nil)
    • arg8 (Array[String], nil)
    • arg9 (String, nil)
    • arg10 (String, nil)

    Returns:



42
43
# File 'sig/peddler/apis/shipping_v1.rbs', line 42

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?, ?copy_emails: Array[String]?, ?email: String?, ?phone_number: String?) -> Peddler::APIs::ShippingV1::Address
| (String, String, String, String, String, String, String?, String?, Array[String]?, String?, String?) -> Peddler::APIs::ShippingV1::Address

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

Returns:

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


45
# File 'sig/peddler/apis/shipping_v1.rbs', line 45

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

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

Overloads:

  • .new(address_line1:, city:, country_code:, name:, postal_code:, state_or_region:, address_line2:, address_line3:, copy_emails:, email:, phone_number:) ⇒ Peddler::APIs::ShippingV1::Address

    Parameters:

    • address_line1: (String)
    • city: (String)
    • country_code: (String)
    • name: (String)
    • postal_code: (String)
    • state_or_region: (String)
    • address_line2: (String, nil)
    • address_line3: (String, nil)
    • copy_emails: (Array[String], nil)
    • email: (String, nil)
    • phone_number: (String, nil)

    Returns:

  • .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10) ⇒ Peddler::APIs::ShippingV1::Address

    Parameters:

    • arg0 (String)
    • arg1 (String)
    • arg2 (String)
    • arg3 (String)
    • arg4 (String)
    • arg5 (String)
    • arg6 (String, nil)
    • arg7 (String, nil)
    • arg8 (Array[String], nil)
    • arg9 (String, nil)
    • arg10 (String, nil)

    Returns:



40
41
# File 'sig/peddler/apis/shipping_v1.rbs', line 40

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?, ?copy_emails: Array[String]?, ?email: String?, ?phone_number: String?) -> Peddler::APIs::ShippingV1::Address
| (String, String, String, String, String, String, String?, String?, Array[String]?, String?, String?) -> Peddler::APIs::ShippingV1::Address

.parsePeddler::APIs::ShippingV1::Address

Parameters:

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

Returns:



47
# File 'sig/peddler/apis/shipping_v1.rbs', line 47

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

Instance Method Details

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

Returns:

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


61
# File 'sig/peddler/apis/shipping_v1.rbs', line 61

def members: () -> [ :address_line1, :city, :country_code, :name, :postal_code, :state_or_region, :address_line2, :address_line3, :copy_emails, :email, :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?, copy_emails: Array[String]?, email: String?, 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?, copy_emails: Array[String]?, email: String?, phone_number: String? })


62
# File 'sig/peddler/apis/shipping_v1.rbs', line 62

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?, copy_emails: Array[String]?, email: String?, phone_number: String? }