Class: Google::Shopping::Merchant::Products::V1beta::ProductSustainabilityIncentive
- Inherits:
-
Object
- Object
- Google::Shopping::Merchant::Products::V1beta::ProductSustainabilityIncentive
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/shopping/merchant/products/v1beta/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::V1beta::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.
971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 |
# File 'proto_docs/google/shopping/merchant/products/v1beta/products_common.rb', line 971 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.
971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 |
# File 'proto_docs/google/shopping/merchant/products/v1beta/products_common.rb', line 971 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::V1beta::ProductSustainabilityIncentive::Type
Returns Sustainability incentive program.
971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 |
# File 'proto_docs/google/shopping/merchant/products/v1beta/products_common.rb', line 971 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 |