Class: Google::Apis::MerchantapiAccountsV1beta::RestockingFee

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

Overview

The restocking fee. This can be a flat fee or a micro percent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RestockingFee

Returns a new instance of RestockingFee.



2236
2237
2238
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2236

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

Instance Attribute Details

#fixed_feeGoogle::Apis::MerchantapiAccountsV1beta::Price

The price represented as a number and currency. Corresponds to the JSON property fixedFee



2228
2229
2230
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2228

def fixed_fee
  @fixed_fee
end

#micro_percentFixnum

Percent of total price in micros. 15,000,000 means 15% of the total price would be charged. Corresponds to the JSON property microPercent

Returns:

  • (Fixnum)


2234
2235
2236
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2234

def micro_percent
  @micro_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2241
2242
2243
2244
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 2241

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