Class: Google::Apis::ContentV2::OrderLineItemShippingDetails

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderLineItemShippingDetails

Returns a new instance of OrderLineItemShippingDetails.



4657
4658
4659
# File 'lib/google/apis/content_v2/classes.rb', line 4657

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#deliver_by_dateString

Required. The delivery by date, in ISO 8601 format. Corresponds to the JSON property deliverByDate

Returns:

  • (String)


4638
4639
4640
# File 'lib/google/apis/content_v2/classes.rb', line 4638

def deliver_by_date
  @deliver_by_date
end

#method_propGoogle::Apis::ContentV2::OrderLineItemShippingDetailsMethod

Required. Details of the shipping method. Corresponds to the JSON property method



4643
4644
4645
# File 'lib/google/apis/content_v2/classes.rb', line 4643

def method_prop
  @method_prop
end

#ship_by_dateString

Required. The ship by date, in ISO 8601 format. Corresponds to the JSON property shipByDate

Returns:

  • (String)


4648
4649
4650
# File 'lib/google/apis/content_v2/classes.rb', line 4648

def ship_by_date
  @ship_by_date
end

#typeString

Type of shipment. Indicates whether deliveryDetails or pickupDetails is applicable for this shipment. Acceptable values are: - "delivery" - "pickup " Corresponds to the JSON property type

Returns:

  • (String)


4655
4656
4657
# File 'lib/google/apis/content_v2/classes.rb', line 4655

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4662
4663
4664
4665
4666
4667
# File 'lib/google/apis/content_v2/classes.rb', line 4662

def update!(**args)
  @deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
  @method_prop = args[:method_prop] if args.key?(:method_prop)
  @ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
  @type = args[:type] if args.key?(:type)
end