Class: Google::Apis::MybusinessplaceactionsV1::FeeDetails

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

Fee details for the fulfillment method associated with the action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FeeDetails

Returns a new instance of FeeDetails.



135
136
137
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 135

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

Instance Attribute Details

#base_feeGoogle::Apis::MybusinessplaceactionsV1::MinimumFee

The minimum fee required for the fulfillment method. Corresponds to the JSON property baseFee



123
124
125
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 123

def base_fee
  @base_fee
end

#fixed_feeGoogle::Apis::MybusinessplaceactionsV1::FixedFee

The fixed fee required for the fulfillment method. Corresponds to the JSON property fixedFee



128
129
130
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 128

def fixed_fee
  @fixed_fee
end

#no_feeGoogle::Apis::MybusinessplaceactionsV1::NoFee

No fee required for the fulfillment method associated with the action. Corresponds to the JSON property noFee



133
134
135
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 133

def no_fee
  @no_fee
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



140
141
142
143
144
# File 'lib/google/apis/mybusinessplaceactions_v1/classes.rb', line 140

def update!(**args)
  @base_fee = args[:base_fee] if args.key?(:base_fee)
  @fixed_fee = args[:fixed_fee] if args.key?(:fixed_fee)
  @no_fee = args[:no_fee] if args.key?(:no_fee)
end