Class: Google::Apis::ContentV2::OrderLineItemShippingDetails
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::OrderLineItemShippingDetails
- 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
-
#deliver_by_date ⇒ String
Required.
-
#method_prop ⇒ Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod
Required.
-
#ship_by_date ⇒ String
Required.
-
#type ⇒ String
Type of shipment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrderLineItemShippingDetails
constructor
A new instance of OrderLineItemShippingDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrderLineItemShippingDetails
Returns a new instance of OrderLineItemShippingDetails.
5070 5071 5072 |
# File 'lib/google/apis/content_v2/classes.rb', line 5070 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deliver_by_date ⇒ String
Required. The delivery by date, in ISO 8601 format.
Corresponds to the JSON property deliverByDate
5051 5052 5053 |
# File 'lib/google/apis/content_v2/classes.rb', line 5051 def deliver_by_date @deliver_by_date end |
#method_prop ⇒ Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod
Required. Details of the shipping method.
Corresponds to the JSON property method
5056 5057 5058 |
# File 'lib/google/apis/content_v2/classes.rb', line 5056 def method_prop @method_prop end |
#ship_by_date ⇒ String
Required. The ship by date, in ISO 8601 format.
Corresponds to the JSON property shipByDate
5061 5062 5063 |
# File 'lib/google/apis/content_v2/classes.rb', line 5061 def ship_by_date @ship_by_date end |
#type ⇒ String
Type of shipment. Indicates whether deliveryDetails or pickupDetails is
applicable for this shipment. Acceptable values are: - "delivery" - "pickup
"
Corresponds to the JSON property type
5068 5069 5070 |
# File 'lib/google/apis/content_v2/classes.rb', line 5068 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5075 5076 5077 5078 5079 5080 |
# File 'lib/google/apis/content_v2/classes.rb', line 5075 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 |