Class: Peddler::APIs::ShippingV1::CreateShipmentRequest

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

#client_reference_idString (readonly)

Returns the value of attribute client_reference_id.

Returns:

  • (String)


156
157
158
# File 'sig/peddler/apis/shipping_v1.rbs', line 156

def client_reference_id
  @client_reference_id
end

#containersArray[Peddler::APIs::ShippingV1::Container] (readonly)

Returns the value of attribute containers.



157
158
159
# File 'sig/peddler/apis/shipping_v1.rbs', line 157

def containers
  @containers
end

#ship_fromPeddler::APIs::ShippingV1::Address (readonly)

Returns the value of attribute ship_from.



158
159
160
# File 'sig/peddler/apis/shipping_v1.rbs', line 158

def ship_from
  @ship_from
end

#ship_toPeddler::APIs::ShippingV1::Address (readonly)

Returns the value of attribute ship_to.



159
160
161
# File 'sig/peddler/apis/shipping_v1.rbs', line 159

def ship_to
  @ship_to
end

Class Method Details

.[](client_reference_id:, containers:, ship_from:, ship_to:) ⇒ Peddler::APIs::ShippingV1::CreateShipmentRequest .[](arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::ShippingV1::CreateShipmentRequest

Overloads:



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

def self.[]: (client_reference_id: String, containers: Array[Peddler::APIs::ShippingV1::Container], ship_from: Peddler::APIs::ShippingV1::Address, ship_to: Peddler::APIs::ShippingV1::Address) -> Peddler::APIs::ShippingV1::CreateShipmentRequest
| (String, Array[Peddler::APIs::ShippingV1::Container], Peddler::APIs::ShippingV1::Address, Peddler::APIs::ShippingV1::Address) -> Peddler::APIs::ShippingV1::CreateShipmentRequest

.members[ :client_reference_id, :containers, :ship_from, :ship_to ]

Returns:

  • ([ :client_reference_id, :containers, :ship_from, :ship_to ])


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

def self.members: () -> [ :client_reference_id, :containers, :ship_from, :ship_to ]

.new(client_reference_id:, containers:, ship_from:, ship_to:) ⇒ Peddler::APIs::ShippingV1::CreateShipmentRequest .new(arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::ShippingV1::CreateShipmentRequest

Overloads:



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

def self.new: (client_reference_id: String, containers: Array[Peddler::APIs::ShippingV1::Container], ship_from: Peddler::APIs::ShippingV1::Address, ship_to: Peddler::APIs::ShippingV1::Address) -> Peddler::APIs::ShippingV1::CreateShipmentRequest
| (String, Array[Peddler::APIs::ShippingV1::Container], Peddler::APIs::ShippingV1::Address, Peddler::APIs::ShippingV1::Address) -> Peddler::APIs::ShippingV1::CreateShipmentRequest

.parsePeddler::APIs::ShippingV1::CreateShipmentRequest

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :client_reference_id, :containers, :ship_from, :ship_to ]

Returns:

  • ([ :client_reference_id, :containers, :ship_from, :ship_to ])


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

def members: () -> [ :client_reference_id, :containers, :ship_from, :ship_to ]

#to_h{ client_reference_id: String, containers: Array[Peddler::APIs::ShippingV1::Container], ship_from: Peddler::APIs::ShippingV1::Address, ship_to: Peddler::APIs::ShippingV1::Address }

Returns:



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

def to_h: () -> { client_reference_id: String, containers: Array[Peddler::APIs::ShippingV1::Container], ship_from: Peddler::APIs::ShippingV1::Address, ship_to: Peddler::APIs::ShippingV1::Address }