Class: Google::Apis::MybusinessplaceactionsV1::FulfillmentOption

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

Overview

The fulfillment option for an order online action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FulfillmentOption

Returns a new instance of FulfillmentOption.



191
192
193
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 191

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

Instance Attribute Details

#available_dayArray<Google::Apis::MybusinessplaceactionsV1::AvailableDay>

A list of days on which there is availability for this fulfillment method ( preferably at least 2). Corresponds to the JSON property availableDay



174
175
176
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 174

def available_day
  @available_day
end

#fee_detailsGoogle::Apis::MybusinessplaceactionsV1::FeeDetails

Fee details for the fulfillment method associated with the action. Corresponds to the JSON property feeDetails



179
180
181
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 179

def fee_details
  @fee_details
end

#fulfillment_typeString

Fulfillment type Corresponds to the JSON property fulfillmentType

Returns:

  • (String)


184
185
186
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 184

def fulfillment_type
  @fulfillment_type
end

#minimum_orderGoogle::Apis::MybusinessplaceactionsV1::Money

Represents an amount of money with its currency type. Corresponds to the JSON property minimumOrder



189
190
191
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 189

def minimum_order
  @minimum_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



196
197
198
199
200
201
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 196

def update!(**args)
  @available_day = args[:available_day] if args.key?(:available_day)
  @fee_details = args[:fee_details] if args.key?(:fee_details)
  @fulfillment_type = args[:fulfillment_type] if args.key?(:fulfillment_type)
  @minimum_order = args[:minimum_order] if args.key?(:minimum_order)
end