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.



3761
3762
3763
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3761

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



3753
3754
3755
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3753

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)


3759
3760
3761
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3759

def micro_percent
  @micro_percent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3766
3767
3768
3769
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 3766

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