Class: Peddler::APIs::ShippingV2::DirectPurchaseRequest

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

#channel_detailsPeddler::APIs::ShippingV2::ChannelDetails (readonly)

Returns the value of attribute channel_details.



534
535
536
# File 'sig/peddler/apis/shipping_v2.rbs', line 534

def channel_details
  @channel_details
end

#label_specificationsPeddler::APIs::ShippingV2::RequestedDocumentSpecification? (readonly)

Returns the value of attribute label_specifications.



535
536
537
# File 'sig/peddler/apis/shipping_v2.rbs', line 535

def label_specifications
  @label_specifications
end

#packagesArray[Peddler::APIs::ShippingV2::Package]? (readonly)

Returns the value of attribute packages.

Returns:



536
537
538
# File 'sig/peddler/apis/shipping_v2.rbs', line 536

def packages
  @packages
end

#return_toPeddler::APIs::ShippingV2::Address? (readonly)

Returns the value of attribute return_to.



537
538
539
# File 'sig/peddler/apis/shipping_v2.rbs', line 537

def return_to
  @return_to
end

#ship_fromPeddler::APIs::ShippingV2::Address? (readonly)

Returns the value of attribute ship_from.



538
539
540
# File 'sig/peddler/apis/shipping_v2.rbs', line 538

def ship_from
  @ship_from
end

#ship_toPeddler::APIs::ShippingV2::Address? (readonly)

Returns the value of attribute ship_to.



539
540
541
# File 'sig/peddler/apis/shipping_v2.rbs', line 539

def ship_to
  @ship_to
end

Class Method Details

.[](channel_details:, label_specifications:, packages:, return_to:, ship_from:, ship_to:) ⇒ Peddler::APIs::ShippingV2::DirectPurchaseRequest .[](arg0, arg1, arg2, arg3, arg4, arg5) ⇒ Peddler::APIs::ShippingV2::DirectPurchaseRequest



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

def self.[]: (channel_details: Peddler::APIs::ShippingV2::ChannelDetails, ?label_specifications: Peddler::APIs::ShippingV2::RequestedDocumentSpecification?, ?packages: Array[Peddler::APIs::ShippingV2::Package]?, ?return_to: Peddler::APIs::ShippingV2::Address?, ?ship_from: Peddler::APIs::ShippingV2::Address?, ?ship_to: Peddler::APIs::ShippingV2::Address?) -> Peddler::APIs::ShippingV2::DirectPurchaseRequest
| (Peddler::APIs::ShippingV2::ChannelDetails, Peddler::APIs::ShippingV2::RequestedDocumentSpecification?, Array[Peddler::APIs::ShippingV2::Package]?, Peddler::APIs::ShippingV2::Address?, Peddler::APIs::ShippingV2::Address?, Peddler::APIs::ShippingV2::Address?) -> Peddler::APIs::ShippingV2::DirectPurchaseRequest

.members[ :channel_details, :label_specifications, :packages, :return_to, :ship_from, :ship_to ]

Returns:

  • ([ :channel_details, :label_specifications, :packages, :return_to, :ship_from, :ship_to ])


530
# File 'sig/peddler/apis/shipping_v2.rbs', line 530

def self.members: () -> [ :channel_details, :label_specifications, :packages, :return_to, :ship_from, :ship_to ]

.new(channel_details:, label_specifications:, packages:, return_to:, ship_from:, ship_to:) ⇒ Peddler::APIs::ShippingV2::DirectPurchaseRequest .new(arg0, arg1, arg2, arg3, arg4, arg5) ⇒ Peddler::APIs::ShippingV2::DirectPurchaseRequest



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

def self.new: (channel_details: Peddler::APIs::ShippingV2::ChannelDetails, ?label_specifications: Peddler::APIs::ShippingV2::RequestedDocumentSpecification?, ?packages: Array[Peddler::APIs::ShippingV2::Package]?, ?return_to: Peddler::APIs::ShippingV2::Address?, ?ship_from: Peddler::APIs::ShippingV2::Address?, ?ship_to: Peddler::APIs::ShippingV2::Address?) -> Peddler::APIs::ShippingV2::DirectPurchaseRequest
| (Peddler::APIs::ShippingV2::ChannelDetails, Peddler::APIs::ShippingV2::RequestedDocumentSpecification?, Array[Peddler::APIs::ShippingV2::Package]?, Peddler::APIs::ShippingV2::Address?, Peddler::APIs::ShippingV2::Address?, Peddler::APIs::ShippingV2::Address?) -> Peddler::APIs::ShippingV2::DirectPurchaseRequest

.parsePeddler::APIs::ShippingV2::DirectPurchaseRequest

Parameters:

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

Returns:



532
# File 'sig/peddler/apis/shipping_v2.rbs', line 532

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

Instance Method Details

#members[ :channel_details, :label_specifications, :packages, :return_to, :ship_from, :ship_to ]

Returns:

  • ([ :channel_details, :label_specifications, :packages, :return_to, :ship_from, :ship_to ])


541
# File 'sig/peddler/apis/shipping_v2.rbs', line 541

def members: () -> [ :channel_details, :label_specifications, :packages, :return_to, :ship_from, :ship_to ]

#to_h{ channel_details: Peddler::APIs::ShippingV2::ChannelDetails, label_specifications: Peddler::APIs::ShippingV2::RequestedDocumentSpecification?, packages: Array[Peddler::APIs::ShippingV2::Package]?, return_to: Peddler::APIs::ShippingV2::Address?, ship_from: Peddler::APIs::ShippingV2::Address?, ship_to: Peddler::APIs::ShippingV2::Address? }



542
# File 'sig/peddler/apis/shipping_v2.rbs', line 542

def to_h: () -> { channel_details: Peddler::APIs::ShippingV2::ChannelDetails, label_specifications: Peddler::APIs::ShippingV2::RequestedDocumentSpecification?, packages: Array[Peddler::APIs::ShippingV2::Package]?, return_to: Peddler::APIs::ShippingV2::Address?, ship_from: Peddler::APIs::ShippingV2::Address?, ship_to: Peddler::APIs::ShippingV2::Address? }