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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SettlementTransactionAmountCommission

Returns a new instance of SettlementTransactionAmountCommission.



13740
13741
13742
# File 'lib/google/apis/content_v2_1/classes.rb', line 13740

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)


13733
13734
13735
# File 'lib/google/apis/content_v2_1/classes.rb', line 13733

def category
  @category
end

#rateString

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

Returns:

  • (String)


13738
13739
13740
# File 'lib/google/apis/content_v2_1/classes.rb', line 13738

def rate
  @rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13745
13746
13747
13748
# File 'lib/google/apis/content_v2_1/classes.rb', line 13745

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