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

Constructor Details

#initialize(**args) ⇒ SettlementTransactionAmountCommission

Returns a new instance of SettlementTransactionAmountCommission.



12435
12436
12437
# File 'generated/google/apis/content_v2_1/classes.rb', line 12435

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)


12428
12429
12430
# File 'generated/google/apis/content_v2_1/classes.rb', line 12428

def category
  @category
end

#rateString

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

Returns:

  • (String)


12433
12434
12435
# File 'generated/google/apis/content_v2_1/classes.rb', line 12433

def rate
  @rate
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12440
12441
12442
12443
# File 'generated/google/apis/content_v2_1/classes.rb', line 12440

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