Class: Google::Shopping::Merchant::Products::V1::ProductSustainabilityIncentive
- Inherits:
-
Object
- Object
- Google::Shopping::Merchant::Products::V1::ProductSustainabilityIncentive
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/shopping/merchant/products/v1/products_common.rb
Overview
Information regarding sustainability-related incentive programs such as rebates or tax relief.
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#amount ⇒ ::Google::Shopping::Type::Price
The fixed amount of the incentive.
-
#percentage ⇒ ::Float
The percentage of the sale price that the incentive is applied to.
-
#type ⇒ ::Google::Shopping::Merchant::Products::V1::ProductSustainabilityIncentive::Type
Sustainability incentive program.
Instance Attribute Details
#amount ⇒ ::Google::Shopping::Type::Price
Returns The fixed amount of the incentive.
Note: The following fields are mutually exclusive: amount, percentage. If a field in that set is populated, all other fields in the set will automatically be cleared.
1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 |
# File 'proto_docs/google/shopping/merchant/products/v1/products_common.rb', line 1228 class ProductSustainabilityIncentive include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of supported sustainability incentive programs. module Type # Unspecified or unknown sustainability incentive type. TYPE_UNSPECIFIED = 0 # Program offering tax liability reductions for electric vehicles and, in # some countries, plug-in hybrids. These reductions can be based on a # specific amount or a percentage of the sale price. EV_TAX_CREDIT = 1 # A subsidy program, often called an environmental bonus, provides a # purchase grant for electric vehicles and, in some countries, plug-in # hybrids. The grant amount may be a fixed sum or a percentage of the sale # price. EV_PRICE_DISCOUNT = 2 end end |
#percentage ⇒ ::Float
Returns The percentage of the sale price that the incentive is applied to.
Note: The following fields are mutually exclusive: percentage, amount. If a field in that set is populated, all other fields in the set will automatically be cleared.
1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 |
# File 'proto_docs/google/shopping/merchant/products/v1/products_common.rb', line 1228 class ProductSustainabilityIncentive include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of supported sustainability incentive programs. module Type # Unspecified or unknown sustainability incentive type. TYPE_UNSPECIFIED = 0 # Program offering tax liability reductions for electric vehicles and, in # some countries, plug-in hybrids. These reductions can be based on a # specific amount or a percentage of the sale price. EV_TAX_CREDIT = 1 # A subsidy program, often called an environmental bonus, provides a # purchase grant for electric vehicles and, in some countries, plug-in # hybrids. The grant amount may be a fixed sum or a percentage of the sale # price. EV_PRICE_DISCOUNT = 2 end end |
#type ⇒ ::Google::Shopping::Merchant::Products::V1::ProductSustainabilityIncentive::Type
Returns Sustainability incentive program.
1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 |
# File 'proto_docs/google/shopping/merchant/products/v1/products_common.rb', line 1228 class ProductSustainabilityIncentive include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Types of supported sustainability incentive programs. module Type # Unspecified or unknown sustainability incentive type. TYPE_UNSPECIFIED = 0 # Program offering tax liability reductions for electric vehicles and, in # some countries, plug-in hybrids. These reductions can be based on a # specific amount or a percentage of the sale price. EV_TAX_CREDIT = 1 # A subsidy program, often called an environmental bonus, provides a # purchase grant for electric vehicles and, in some countries, plug-in # hybrids. The grant amount may be a fixed sum or a percentage of the sale # price. EV_PRICE_DISCOUNT = 2 end end |