Class: Peddler::APIs::ShippingV2::Item

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

#dangerous_goods_detailsPeddler::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

#descriptionString? (readonly)

Returns the value of attribute description.

Returns:

  • (String, nil)


1144
1145
1146
# File 'sig/peddler/apis/shipping_v2.rbs', line 1144

def description
  @description
end

#direct_fulfillment_item_identifiersPeddler::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

#hazmatBoolean? (readonly)

Returns the value of attribute hazmat.

Returns:

  • (Boolean, nil)


1146
1147
1148
# File 'sig/peddler/apis/shipping_v2.rbs', line 1146

def hazmat
  @hazmat
end

#invoice_detailsPeddler::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_identifierString? (readonly)

Returns the value of attribute item_identifier.

Returns:

  • (String, nil)


1148
1149
1150
# File 'sig/peddler/apis/shipping_v2.rbs', line 1148

def item_identifier
  @item_identifier
end

#item_valuePeddler::Money? (readonly)

Returns the value of attribute item_value.

Returns:



1149
1150
1151
# File 'sig/peddler/apis/shipping_v2.rbs', line 1149

def item_value
  @item_value
end

#liquid_volumePeddler::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_typeString? (readonly)

Returns the value of attribute product_type.

Returns:

  • (String, nil)


1151
1152
1153
# File 'sig/peddler/apis/shipping_v2.rbs', line 1151

def product_type
  @product_type
end

#quantityInteger (readonly)

Returns the value of attribute quantity.

Returns:

  • (Integer)


1152
1153
1154
# File 'sig/peddler/apis/shipping_v2.rbs', line 1152

def quantity
  @quantity
end

#serial_numbersArray[String]? (readonly)

Returns the value of attribute serial_numbers.

Returns:

  • (Array[String], nil)


1153
1154
1155
# File 'sig/peddler/apis/shipping_v2.rbs', line 1153

def serial_numbers
  @serial_numbers
end

#weightPeddler::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

Overloads:



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 ]

Returns:

  • ([ :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

Overloads:



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

.parsePeddler::APIs::ShippingV2::Item

Parameters:

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

Returns:



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

Returns:

  • (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 ]

Returns:

  • ([ :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? }

Returns:



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? }