Class: Peddler::APIs::ShippingV1::PurchaseShipmentRequest

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)


520
521
522
# File 'sig/peddler/apis/shipping_v1.rbs', line 520

def client_reference_id
  @client_reference_id
end

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

Returns the value of attribute containers.



521
522
523
# File 'sig/peddler/apis/shipping_v1.rbs', line 521

def containers
  @containers
end

#label_specificationPeddler::APIs::ShippingV1::LabelSpecification (readonly)

Returns the value of attribute label_specification.



522
523
524
# File 'sig/peddler/apis/shipping_v1.rbs', line 522

def label_specification
  @label_specification
end

#service_typeString (readonly)

Returns the value of attribute service_type.

Returns:

  • (String)


523
524
525
# File 'sig/peddler/apis/shipping_v1.rbs', line 523

def service_type
  @service_type
end

#ship_dateTime? (readonly)

Returns the value of attribute ship_date.

Returns:

  • (Time, nil)


524
525
526
# File 'sig/peddler/apis/shipping_v1.rbs', line 524

def ship_date
  @ship_date
end

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

Returns the value of attribute ship_from.



525
526
527
# File 'sig/peddler/apis/shipping_v1.rbs', line 525

def ship_from
  @ship_from
end

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

Returns the value of attribute ship_to.



526
527
528
# File 'sig/peddler/apis/shipping_v1.rbs', line 526

def ship_to
  @ship_to
end

Class Method Details

.[](client_reference_id:, containers:, label_specification:, service_type:, ship_from:, ship_to:, ship_date:) ⇒ Peddler::APIs::ShippingV1::PurchaseShipmentRequest .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6) ⇒ Peddler::APIs::ShippingV1::PurchaseShipmentRequest

Overloads:



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

def self.[]: (client_reference_id: String, containers: Array[Peddler::APIs::ShippingV1::Container], label_specification: Peddler::APIs::ShippingV1::LabelSpecification, service_type: String, ship_from: Peddler::APIs::ShippingV1::Address, ship_to: Peddler::APIs::ShippingV1::Address, ?ship_date: Time?) -> Peddler::APIs::ShippingV1::PurchaseShipmentRequest
| (String, Array[Peddler::APIs::ShippingV1::Container], Peddler::APIs::ShippingV1::LabelSpecification, String, Peddler::APIs::ShippingV1::Address, Peddler::APIs::ShippingV1::Address, Time?) -> Peddler::APIs::ShippingV1::PurchaseShipmentRequest

.members[ :client_reference_id, :containers, :label_specification, :service_type, :ship_from, :ship_to, :ship_date ]

Returns:

  • ([ :client_reference_id, :containers, :label_specification, :service_type, :ship_from, :ship_to, :ship_date ])


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

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

.new(client_reference_id:, containers:, label_specification:, service_type:, ship_from:, ship_to:, ship_date:) ⇒ Peddler::APIs::ShippingV1::PurchaseShipmentRequest .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6) ⇒ Peddler::APIs::ShippingV1::PurchaseShipmentRequest

Overloads:



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

def self.new: (client_reference_id: String, containers: Array[Peddler::APIs::ShippingV1::Container], label_specification: Peddler::APIs::ShippingV1::LabelSpecification, service_type: String, ship_from: Peddler::APIs::ShippingV1::Address, ship_to: Peddler::APIs::ShippingV1::Address, ?ship_date: Time?) -> Peddler::APIs::ShippingV1::PurchaseShipmentRequest
| (String, Array[Peddler::APIs::ShippingV1::Container], Peddler::APIs::ShippingV1::LabelSpecification, String, Peddler::APIs::ShippingV1::Address, Peddler::APIs::ShippingV1::Address, Time?) -> Peddler::APIs::ShippingV1::PurchaseShipmentRequest

.parsePeddler::APIs::ShippingV1::PurchaseShipmentRequest

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :client_reference_id, :containers, :label_specification, :service_type, :ship_from, :ship_to, :ship_date ]

Returns:

  • ([ :client_reference_id, :containers, :label_specification, :service_type, :ship_from, :ship_to, :ship_date ])


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

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

#to_h{ client_reference_id: String, containers: Array[Peddler::APIs::ShippingV1::Container], label_specification: Peddler::APIs::ShippingV1::LabelSpecification, service_type: String, ship_from: Peddler::APIs::ShippingV1::Address, ship_to: Peddler::APIs::ShippingV1::Address, ship_date: Time? }

Returns:



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

def to_h: () -> { client_reference_id: String, containers: Array[Peddler::APIs::ShippingV1::Container], label_specification: Peddler::APIs::ShippingV1::LabelSpecification, service_type: String, ship_from: Peddler::APIs::ShippingV1::Address, ship_to: Peddler::APIs::ShippingV1::Address, ship_date: Time? }