Class: Peddler::APIs::ShippingV1::CreateShipmentRequest
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ShippingV1::CreateShipmentRequest
- Defined in:
- sig/peddler/apis/shipping_v1.rbs
Instance Attribute Summary collapse
-
#client_reference_id ⇒ String
readonly
Returns the value of attribute client_reference_id.
-
#containers ⇒ Array[Peddler::APIs::ShippingV1::Container]
readonly
Returns the value of attribute containers.
-
#ship_from ⇒ Peddler::APIs::ShippingV1::Address
readonly
Returns the value of attribute ship_from.
-
#ship_to ⇒ Peddler::APIs::ShippingV1::Address
readonly
Returns the value of attribute ship_to.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :client_reference_id, :containers, :ship_from, :ship_to ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::ShippingV1::CreateShipmentRequest
Instance Method Summary collapse
-
#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 }
Instance Attribute Details
#client_reference_id ⇒ String (readonly)
Returns the value of attribute client_reference_id.
156 157 158 |
# File 'sig/peddler/apis/shipping_v1.rbs', line 156 def client_reference_id @client_reference_id end |
#containers ⇒ Array[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_from ⇒ Peddler::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_to ⇒ Peddler::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
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 ]
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
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
|
.parse ⇒ Peddler::APIs::ShippingV1::CreateShipmentRequest
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 ]
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 }
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 }
|