Class: Google::Apis::ContentV2_1::SettlementTransactionAmountCommission

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SettlementTransactionAmountCommission

Returns a new instance of SettlementTransactionAmountCommission.



10839
10840
10841
# File 'generated/google/apis/content_v2_1/classes.rb', line 10839

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

Instance Attribute Details

#categoryString

The category of the commission. Acceptable values are:

  • "animalsAndPetSupplies"
  • "dogCatFoodAndCatLitter"
  • "apparelAndAccessories"
  • "shoesHandbagsAndSunglasses"
  • "costumesAndAccessories"
  • "jewelry"
  • "watches"
  • "hobbiesArtsAndCrafts"
  • "homeAndGarden"
  • "entertainmentCollectibles"
  • "collectibleCoins"
  • "sportsCollectibles"
  • "sportingGoods"
  • "toysAndGames"
  • "musicalInstruments"
  • "giftCards"
  • "babyAndToddler"
  • "babyFoodWipesAndDiapers"
  • "businessAndIndustrial"
  • "camerasOpticsAndPhotography"
  • "consumerElectronics"
  • "electronicsAccessories"
  • "personalComputers"
  • "videoGameConsoles"
  • "foodAndGrocery"
  • "beverages"
  • "tobaccoProducts"
  • "furniture"
  • "hardware"
  • "buildingMaterials"
  • "tools"
  • "healthAndPersonalCare"
  • "beauty"
  • "householdSupplies"
  • "kitchenAndDining"
  • "majorAppliances"
  • "luggageAndBags"
  • "media"
  • "officeSupplies"
  • "softwareAndVideoGames"
  • "vehiclePartsAndAccessories"
  • "vehicleTiresAndWheels"
  • "vehicles"
  • "everythingElse" Corresponds to the JSON property category

Returns:

  • (String)


10832
10833
10834
# File 'generated/google/apis/content_v2_1/classes.rb', line 10832

def category
  @category
end

#rateString

Rate of the commission in percentage. Corresponds to the JSON property rate

Returns:

  • (String)


10837
10838
10839
# File 'generated/google/apis/content_v2_1/classes.rb', line 10837

def rate
  @rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10844
10845
10846
10847
# File 'generated/google/apis/content_v2_1/classes.rb', line 10844

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