Class: Google::Apis::ContentV2_1::OrderLineItemShippingDetails

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderLineItemShippingDetails

Returns a new instance of OrderLineItemShippingDetails.



5183
5184
5185
# File 'generated/google/apis/content_v2_1/classes.rb', line 5183

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)


5158
5159
5160
# File 'generated/google/apis/content_v2_1/classes.rb', line 5158

def deliver_by_date
  @deliver_by_date
end

#method_propGoogle::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod

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



5163
5164
5165
# File 'generated/google/apis/content_v2_1/classes.rb', line 5163

def method_prop
  @method_prop
end

#pickup_promise_in_minutesFixnum

The promised time in minutes in which the order will be ready for pickup. This only applies to buy-online-pickup-in-store same-day order. Corresponds to the JSON property pickupPromiseInMinutes

Returns:

  • (Fixnum)


5169
5170
5171
# File 'generated/google/apis/content_v2_1/classes.rb', line 5169

def pickup_promise_in_minutes
  @pickup_promise_in_minutes
end

#ship_by_dateString

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

Returns:

  • (String)


5174
5175
5176
# File 'generated/google/apis/content_v2_1/classes.rb', line 5174

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)


5181
5182
5183
# File 'generated/google/apis/content_v2_1/classes.rb', line 5181

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5188
5189
5190
5191
5192
5193
5194
# File 'generated/google/apis/content_v2_1/classes.rb', line 5188

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)
  @pickup_promise_in_minutes = args[:pickup_promise_in_minutes] if args.key?(:pickup_promise_in_minutes)
  @ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
  @type = args[:type] if args.key?(:type)
end