Class: Peddler::APIs::ShippingV2::Item
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ShippingV2::Item
- Defined in:
- sig/peddler/apis/shipping_v2.rbs
Instance Attribute Summary collapse
-
#dangerous_goods_details ⇒ Peddler::APIs::ShippingV2::DangerousGoodsDetails?
readonly
Returns the value of attribute dangerous_goods_details.
-
#description ⇒ String?
readonly
Returns the value of attribute description.
-
#direct_fulfillment_item_identifiers ⇒ Peddler::APIs::ShippingV2::DirectFulfillmentItemIdentifiers?
readonly
Returns the value of attribute direct_fulfillment_item_identifiers.
-
#hazmat ⇒ Boolean?
readonly
Returns the value of attribute hazmat.
-
#invoice_details ⇒ Peddler::APIs::ShippingV2::InvoiceDetails?
readonly
Returns the value of attribute invoice_details.
-
#item_identifier ⇒ String?
readonly
Returns the value of attribute item_identifier.
-
#item_value ⇒ Peddler::Money?
readonly
Returns the value of attribute item_value.
-
#liquid_volume ⇒ Peddler::APIs::ShippingV2::LiquidVolume?
readonly
Returns the value of attribute liquid_volume.
-
#product_type ⇒ String?
readonly
Returns the value of attribute product_type.
-
#quantity ⇒ Integer
readonly
Returns the value of attribute quantity.
-
#serial_numbers ⇒ Array[String]?
readonly
Returns the value of attribute serial_numbers.
-
#weight ⇒ Peddler::APIs::ShippingV2::Weight?
readonly
Returns the value of attribute weight.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :quantity, :dangerous_goods_details, :description, :direct_fulfillment_item_identifiers, :invoice_details, :hazmat, :item_identifier, :item_value, :liquid_volume, :product_type, :serial_numbers, :weight ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::ShippingV2::Item
Instance Method Summary collapse
-
#hazmat? ⇒ Boolean
-
#members ⇒ [ :quantity, :dangerous_goods_details, :description, :direct_fulfillment_item_identifiers, :invoice_details, :hazmat, :item_identifier, :item_value, :liquid_volume, :product_type, :serial_numbers, :weight ]
-
#to_h ⇒ { quantity: Integer, dangerous_goods_details: Peddler::APIs::ShippingV2::DangerousGoodsDetails?, description: String?, direct_fulfillment_item_identifiers: Peddler::APIs::ShippingV2::DirectFulfillmentItemIdentifiers?, invoice_details: Peddler::APIs::ShippingV2::InvoiceDetails?, hazmat: bool?, item_identifier: String?, item_value: Peddler::Money?, liquid_volume: Peddler::APIs::ShippingV2::LiquidVolume?, product_type: String?, serial_numbers: Array[String]?, weight: Peddler::APIs::ShippingV2::Weight? }
Instance Attribute Details
#dangerous_goods_details ⇒ Peddler::APIs::ShippingV2::DangerousGoodsDetails? (readonly)
Returns the value of attribute dangerous_goods_details.
1143 1144 1145 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1143 def dangerous_goods_details @dangerous_goods_details end |
#description ⇒ String? (readonly)
Returns the value of attribute description.
1144 1145 1146 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1144 def description @description end |
#direct_fulfillment_item_identifiers ⇒ Peddler::APIs::ShippingV2::DirectFulfillmentItemIdentifiers? (readonly)
Returns the value of attribute direct_fulfillment_item_identifiers.
1145 1146 1147 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1145 def direct_fulfillment_item_identifiers @direct_fulfillment_item_identifiers end |
#hazmat ⇒ Boolean? (readonly)
Returns the value of attribute hazmat.
1146 1147 1148 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1146 def hazmat @hazmat end |
#invoice_details ⇒ Peddler::APIs::ShippingV2::InvoiceDetails? (readonly)
Returns the value of attribute invoice_details.
1147 1148 1149 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1147 def invoice_details @invoice_details end |
#item_identifier ⇒ String? (readonly)
Returns the value of attribute item_identifier.
1148 1149 1150 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1148 def item_identifier @item_identifier end |
#item_value ⇒ Peddler::Money? (readonly)
Returns the value of attribute item_value.
1149 1150 1151 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1149 def item_value @item_value end |
#liquid_volume ⇒ Peddler::APIs::ShippingV2::LiquidVolume? (readonly)
Returns the value of attribute liquid_volume.
1150 1151 1152 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1150 def liquid_volume @liquid_volume end |
#product_type ⇒ String? (readonly)
Returns the value of attribute product_type.
1151 1152 1153 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1151 def product_type @product_type end |
#quantity ⇒ Integer (readonly)
Returns the value of attribute quantity.
1152 1153 1154 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1152 def quantity @quantity end |
#serial_numbers ⇒ Array[String]? (readonly)
Returns the value of attribute serial_numbers.
1153 1154 1155 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1153 def serial_numbers @serial_numbers end |
#weight ⇒ Peddler::APIs::ShippingV2::Weight? (readonly)
Returns the value of attribute weight.
1154 1155 1156 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1154 def weight @weight end |
Class Method Details
.[](quantity:, dangerous_goods_details:, description:, direct_fulfillment_item_identifiers:, invoice_details:, hazmat:, item_identifier:, item_value:, liquid_volume:, product_type:, serial_numbers:, weight:) ⇒ Peddler::APIs::ShippingV2::Item .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) ⇒ Peddler::APIs::ShippingV2::Item
1136 1137 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1136
def self.[]: (quantity: Integer, ?dangerous_goods_details: Peddler::APIs::ShippingV2::DangerousGoodsDetails?, ?description: String?, ?direct_fulfillment_item_identifiers: Peddler::APIs::ShippingV2::DirectFulfillmentItemIdentifiers?, ?invoice_details: Peddler::APIs::ShippingV2::InvoiceDetails?, ?hazmat: bool?, ?item_identifier: String?, ?item_value: Peddler::Money?, ?liquid_volume: Peddler::APIs::ShippingV2::LiquidVolume?, ?product_type: String?, ?serial_numbers: Array[String]?, ?weight: Peddler::APIs::ShippingV2::Weight?) -> Peddler::APIs::ShippingV2::Item
| (Integer, Peddler::APIs::ShippingV2::DangerousGoodsDetails?, String?, Peddler::APIs::ShippingV2::DirectFulfillmentItemIdentifiers?, Peddler::APIs::ShippingV2::InvoiceDetails?, bool?, String?, Peddler::Money?, Peddler::APIs::ShippingV2::LiquidVolume?, String?, Array[String]?, Peddler::APIs::ShippingV2::Weight?) -> Peddler::APIs::ShippingV2::Item
|
.members ⇒ [ :quantity, :dangerous_goods_details, :description, :direct_fulfillment_item_identifiers, :invoice_details, :hazmat, :item_identifier, :item_value, :liquid_volume, :product_type, :serial_numbers, :weight ]
1139 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1139
def self.members: () -> [ :quantity, :dangerous_goods_details, :description, :direct_fulfillment_item_identifiers, :invoice_details, :hazmat, :item_identifier, :item_value, :liquid_volume, :product_type, :serial_numbers, :weight ]
|
.new(quantity:, dangerous_goods_details:, description:, direct_fulfillment_item_identifiers:, invoice_details:, hazmat:, item_identifier:, item_value:, liquid_volume:, product_type:, serial_numbers:, weight:) ⇒ Peddler::APIs::ShippingV2::Item .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11) ⇒ Peddler::APIs::ShippingV2::Item
1134 1135 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1134
def self.new: (quantity: Integer, ?dangerous_goods_details: Peddler::APIs::ShippingV2::DangerousGoodsDetails?, ?description: String?, ?direct_fulfillment_item_identifiers: Peddler::APIs::ShippingV2::DirectFulfillmentItemIdentifiers?, ?invoice_details: Peddler::APIs::ShippingV2::InvoiceDetails?, ?hazmat: bool?, ?item_identifier: String?, ?item_value: Peddler::Money?, ?liquid_volume: Peddler::APIs::ShippingV2::LiquidVolume?, ?product_type: String?, ?serial_numbers: Array[String]?, ?weight: Peddler::APIs::ShippingV2::Weight?) -> Peddler::APIs::ShippingV2::Item
| (Integer, Peddler::APIs::ShippingV2::DangerousGoodsDetails?, String?, Peddler::APIs::ShippingV2::DirectFulfillmentItemIdentifiers?, Peddler::APIs::ShippingV2::InvoiceDetails?, bool?, String?, Peddler::Money?, Peddler::APIs::ShippingV2::LiquidVolume?, String?, Array[String]?, Peddler::APIs::ShippingV2::Weight?) -> Peddler::APIs::ShippingV2::Item
|
.parse ⇒ Peddler::APIs::ShippingV2::Item
1141 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1141
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::ShippingV2::Item
|
Instance Method Details
#hazmat? ⇒ Boolean
1156 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1156
def hazmat?: () -> bool
|
#members ⇒ [ :quantity, :dangerous_goods_details, :description, :direct_fulfillment_item_identifiers, :invoice_details, :hazmat, :item_identifier, :item_value, :liquid_volume, :product_type, :serial_numbers, :weight ]
1157 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1157
def members: () -> [ :quantity, :dangerous_goods_details, :description, :direct_fulfillment_item_identifiers, :invoice_details, :hazmat, :item_identifier, :item_value, :liquid_volume, :product_type, :serial_numbers, :weight ]
|
#to_h ⇒ { quantity: Integer, dangerous_goods_details: Peddler::APIs::ShippingV2::DangerousGoodsDetails?, description: String?, direct_fulfillment_item_identifiers: Peddler::APIs::ShippingV2::DirectFulfillmentItemIdentifiers?, invoice_details: Peddler::APIs::ShippingV2::InvoiceDetails?, hazmat: bool?, item_identifier: String?, item_value: Peddler::Money?, liquid_volume: Peddler::APIs::ShippingV2::LiquidVolume?, product_type: String?, serial_numbers: Array[String]?, weight: Peddler::APIs::ShippingV2::Weight? }
1158 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 1158
def to_h: () -> { quantity: Integer, dangerous_goods_details: Peddler::APIs::ShippingV2::DangerousGoodsDetails?, description: String?, direct_fulfillment_item_identifiers: Peddler::APIs::ShippingV2::DirectFulfillmentItemIdentifiers?, invoice_details: Peddler::APIs::ShippingV2::InvoiceDetails?, hazmat: bool?, item_identifier: String?, item_value: Peddler::Money?, liquid_volume: Peddler::APIs::ShippingV2::LiquidVolume?, product_type: String?, serial_numbers: Array[String]?, weight: Peddler::APIs::ShippingV2::Weight? }
|