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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrderLineItemShippingDetails

Returns a new instance of OrderLineItemShippingDetails.



4269
4270
4271
# File 'generated/google/apis/content_v2_1/classes.rb', line 4269

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

Instance Attribute Details

#deliver_by_dateString

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

Returns:

  • (String)


4251
4252
4253
# File 'generated/google/apis/content_v2_1/classes.rb', line 4251

def deliver_by_date
  @deliver_by_date
end

#method_propGoogle::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod

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



4256
4257
4258
# File 'generated/google/apis/content_v2_1/classes.rb', line 4256

def method_prop
  @method_prop
end

#ship_by_dateString

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

Returns:

  • (String)


4261
4262
4263
# File 'generated/google/apis/content_v2_1/classes.rb', line 4261

def ship_by_date
  @ship_by_date
end

#typeString

Type of shipment. Indicates whether deliveryDetails or pickupDetails is applicable for this shipment. Corresponds to the JSON property type

Returns:

  • (String)


4267
4268
4269
# File 'generated/google/apis/content_v2_1/classes.rb', line 4267

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4274
4275
4276
4277
4278
4279
# File 'generated/google/apis/content_v2_1/classes.rb', line 4274

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