Class: Google::Apis::ContentV2_1::OrderLineItemShippingDetails
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrderLineItemShippingDetails
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Instance Attribute Summary collapse
-
#deliver_by_date ⇒ String
Required.
-
#method_prop ⇒ Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod
Required.
-
#pickup_promise_in_minutes ⇒ Fixnum
The promised time in minutes in which the order will be ready for pickup.
-
#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.
6033 6034 6035 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6033 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
6008 6009 6010 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6008 def deliver_by_date @deliver_by_date end |
#method_prop ⇒ Google::Apis::ContentV2_1::OrderLineItemShippingDetailsMethod
Required. Details of the shipping method.
Corresponds to the JSON property method
6013 6014 6015 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6013 def method_prop @method_prop end |
#pickup_promise_in_minutes ⇒ Fixnum
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
6019 6020 6021 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6019 def pickup_promise_in_minutes @pickup_promise_in_minutes end |
#ship_by_date ⇒ String
Required. The ship by date, in ISO 8601 format.
Corresponds to the JSON property shipByDate
6024 6025 6026 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6024 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
6031 6032 6033 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6031 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6038 6039 6040 6041 6042 6043 6044 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 6038 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 |