Class: Peddler::APIs::Orders20260101::OrderItem

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/orders_2026_01_01.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cancellationPeddler::APIs::Orders20260101::ItemCancellation? (readonly)

Returns the value of attribute cancellation.



725
726
727
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 725

def cancellation
  @cancellation
end

#expensePeddler::APIs::Orders20260101::ItemExpense? (readonly)

Returns the value of attribute expense.



726
727
728
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 726

def expense
  @expense
end

#fulfillmentPeddler::APIs::Orders20260101::ItemFulfillment? (readonly)

Returns the value of attribute fulfillment.



727
728
729
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 727

def fulfillment
  @fulfillment
end

#measurementPeddler::APIs::Orders20260101::Measurement? (readonly)

Returns the value of attribute measurement.



728
729
730
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 728

def measurement
  @measurement
end

#order_item_idString (readonly)

Returns the value of attribute order_item_id.

Returns:

  • (String)


729
730
731
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 729

def order_item_id
  @order_item_id
end

#proceedsPeddler::APIs::Orders20260101::ItemProceeds? (readonly)

Returns the value of attribute proceeds.



730
731
732
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 730

def proceeds
  @proceeds
end

#productPeddler::APIs::Orders20260101::ItemProduct (readonly)

Returns the value of attribute product.



731
732
733
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 731

def product
  @product
end

#programsArray[String]? (readonly)

Returns the value of attribute programs.

Returns:

  • (Array[String], nil)


732
733
734
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 732

def programs
  @programs
end

#promotionPeddler::APIs::Orders20260101::ItemPromotion? (readonly)

Returns the value of attribute promotion.



733
734
735
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 733

def promotion
  @promotion
end

#quantity_orderedInteger (readonly)

Returns the value of attribute quantity_ordered.

Returns:

  • (Integer)


734
735
736
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 734

def quantity_ordered
  @quantity_ordered
end

Class Method Details

.[](order_item_id:, product:, quantity_ordered:, cancellation:, expense:, fulfillment:, measurement:, proceeds:, programs:, promotion:) ⇒ Peddler::APIs::Orders20260101::OrderItem .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) ⇒ Peddler::APIs::Orders20260101::OrderItem

Overloads:



718
719
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 718

def self.[]: (order_item_id: String, product: Peddler::APIs::Orders20260101::ItemProduct, quantity_ordered: Integer, ?cancellation: Peddler::APIs::Orders20260101::ItemCancellation?, ?expense: Peddler::APIs::Orders20260101::ItemExpense?, ?fulfillment: Peddler::APIs::Orders20260101::ItemFulfillment?, ?measurement: Peddler::APIs::Orders20260101::Measurement?, ?proceeds: Peddler::APIs::Orders20260101::ItemProceeds?, ?programs: Array[String]?, ?promotion: Peddler::APIs::Orders20260101::ItemPromotion?) -> Peddler::APIs::Orders20260101::OrderItem
| (String, Peddler::APIs::Orders20260101::ItemProduct, Integer, Peddler::APIs::Orders20260101::ItemCancellation?, Peddler::APIs::Orders20260101::ItemExpense?, Peddler::APIs::Orders20260101::ItemFulfillment?, Peddler::APIs::Orders20260101::Measurement?, Peddler::APIs::Orders20260101::ItemProceeds?, Array[String]?, Peddler::APIs::Orders20260101::ItemPromotion?) -> Peddler::APIs::Orders20260101::OrderItem

.members[ :order_item_id, :product, :quantity_ordered, :cancellation, :expense, :fulfillment, :measurement, :proceeds, :programs, :promotion ]

Returns:

  • ([ :order_item_id, :product, :quantity_ordered, :cancellation, :expense, :fulfillment, :measurement, :proceeds, :programs, :promotion ])


721
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 721

def self.members: () -> [ :order_item_id, :product, :quantity_ordered, :cancellation, :expense, :fulfillment, :measurement, :proceeds, :programs, :promotion ]

.new(order_item_id:, product:, quantity_ordered:, cancellation:, expense:, fulfillment:, measurement:, proceeds:, programs:, promotion:) ⇒ Peddler::APIs::Orders20260101::OrderItem .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) ⇒ Peddler::APIs::Orders20260101::OrderItem

Overloads:



716
717
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 716

def self.new: (order_item_id: String, product: Peddler::APIs::Orders20260101::ItemProduct, quantity_ordered: Integer, ?cancellation: Peddler::APIs::Orders20260101::ItemCancellation?, ?expense: Peddler::APIs::Orders20260101::ItemExpense?, ?fulfillment: Peddler::APIs::Orders20260101::ItemFulfillment?, ?measurement: Peddler::APIs::Orders20260101::Measurement?, ?proceeds: Peddler::APIs::Orders20260101::ItemProceeds?, ?programs: Array[String]?, ?promotion: Peddler::APIs::Orders20260101::ItemPromotion?) -> Peddler::APIs::Orders20260101::OrderItem
| (String, Peddler::APIs::Orders20260101::ItemProduct, Integer, Peddler::APIs::Orders20260101::ItemCancellation?, Peddler::APIs::Orders20260101::ItemExpense?, Peddler::APIs::Orders20260101::ItemFulfillment?, Peddler::APIs::Orders20260101::Measurement?, Peddler::APIs::Orders20260101::ItemProceeds?, Array[String]?, Peddler::APIs::Orders20260101::ItemPromotion?) -> Peddler::APIs::Orders20260101::OrderItem

.parsePeddler::APIs::Orders20260101::OrderItem

Parameters:

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

Returns:



723
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 723

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

Instance Method Details

#members[ :order_item_id, :product, :quantity_ordered, :cancellation, :expense, :fulfillment, :measurement, :proceeds, :programs, :promotion ]

Returns:

  • ([ :order_item_id, :product, :quantity_ordered, :cancellation, :expense, :fulfillment, :measurement, :proceeds, :programs, :promotion ])


736
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 736

def members: () -> [ :order_item_id, :product, :quantity_ordered, :cancellation, :expense, :fulfillment, :measurement, :proceeds, :programs, :promotion ]

#to_h{ order_item_id: String, product: Peddler::APIs::Orders20260101::ItemProduct, quantity_ordered: Integer, cancellation: Peddler::APIs::Orders20260101::ItemCancellation?, expense: Peddler::APIs::Orders20260101::ItemExpense?, fulfillment: Peddler::APIs::Orders20260101::ItemFulfillment?, measurement: Peddler::APIs::Orders20260101::Measurement?, proceeds: Peddler::APIs::Orders20260101::ItemProceeds?, programs: Array[String]?, promotion: Peddler::APIs::Orders20260101::ItemPromotion? }



737
# File 'sig/peddler/apis/orders_2026_01_01.rbs', line 737

def to_h: () -> { order_item_id: String, product: Peddler::APIs::Orders20260101::ItemProduct, quantity_ordered: Integer, cancellation: Peddler::APIs::Orders20260101::ItemCancellation?, expense: Peddler::APIs::Orders20260101::ItemExpense?, fulfillment: Peddler::APIs::Orders20260101::ItemFulfillment?, measurement: Peddler::APIs::Orders20260101::Measurement?, proceeds: Peddler::APIs::Orders20260101::ItemProceeds?, programs: Array[String]?, promotion: Peddler::APIs::Orders20260101::ItemPromotion? }