Class: Google::Apis::PartnersV2::AvailableOffer
- Inherits:
-
Object
- Object
- Google::Apis::PartnersV2::AvailableOffer
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/partners_v2/classes.rb,
generated/google/apis/partners_v2/representations.rb,
generated/google/apis/partners_v2/representations.rb
Overview
Available Offers to be distributed.
Instance Attribute Summary collapse
-
#available ⇒ Fixnum
The number of codes for this offer that are available for distribution.
-
#country_offer_infos ⇒ Array<Google::Apis::PartnersV2::CountryOfferInfo>
Offer info by country.
-
#description ⇒ String
Description of the offer.
-
#id ⇒ Fixnum
ID of this offer.
-
#max_account_age ⇒ Fixnum
The maximum age of an account [in days] to be eligible.
-
#name ⇒ String
Name of the offer.
-
#offer_level ⇒ String
Level of this offer.
-
#offer_type ⇒ String
Type of offer.
-
#qualified_customer ⇒ Array<Google::Apis::PartnersV2::OfferCustomer>
Customers who qualify for this offer.
-
#qualified_customers_complete ⇒ Boolean
(also: #qualified_customers_complete?)
Whether or not the list of qualified customers is definitely complete.
-
#show_special_offer_copy ⇒ Boolean
(also: #show_special_offer_copy?)
Should special text be shown on the offers page.
-
#terms ⇒ String
Terms of the offer.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AvailableOffer
constructor
A new instance of AvailableOffer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AvailableOffer
Returns a new instance of AvailableOffer
2176 2177 2178 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2176 def initialize(**args) update!(**args) end |
Instance Attribute Details
#available ⇒ Fixnum
The number of codes for this offer that are available for distribution.
Corresponds to the JSON property available
2148 2149 2150 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2148 def available @available end |
#country_offer_infos ⇒ Array<Google::Apis::PartnersV2::CountryOfferInfo>
Offer info by country.
Corresponds to the JSON property countryOfferInfos
2117 2118 2119 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2117 def country_offer_infos @country_offer_infos end |
#description ⇒ String
Description of the offer.
Corresponds to the JSON property description
2153 2154 2155 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2153 def description @description end |
#id ⇒ Fixnum
ID of this offer.
Corresponds to the JSON property id
2168 2169 2170 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2168 def id @id end |
#max_account_age ⇒ Fixnum
The maximum age of an account [in days] to be eligible.
Corresponds to the JSON property maxAccountAge
2127 2128 2129 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2127 def max_account_age @max_account_age end |
#name ⇒ String
Name of the offer.
Corresponds to the JSON property name
2163 2164 2165 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2163 def name @name end |
#offer_level ⇒ String
Level of this offer.
Corresponds to the JSON property offerLevel
2158 2159 2160 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2158 def offer_level @offer_level end |
#offer_type ⇒ String
Type of offer.
Corresponds to the JSON property offerType
2122 2123 2124 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2122 def offer_type @offer_type end |
#qualified_customer ⇒ Array<Google::Apis::PartnersV2::OfferCustomer>
Customers who qualify for this offer.
Corresponds to the JSON property qualifiedCustomer
2132 2133 2134 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2132 def qualified_customer @qualified_customer end |
#qualified_customers_complete ⇒ Boolean Also known as: qualified_customers_complete?
Whether or not the list of qualified customers is definitely complete.
Corresponds to the JSON property qualifiedCustomersComplete
2173 2174 2175 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2173 def qualified_customers_complete @qualified_customers_complete end |
#show_special_offer_copy ⇒ Boolean Also known as: show_special_offer_copy?
Should special text be shown on the offers page.
Corresponds to the JSON property showSpecialOfferCopy
2142 2143 2144 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2142 def show_special_offer_copy @show_special_offer_copy end |
#terms ⇒ String
Terms of the offer.
Corresponds to the JSON property terms
2137 2138 2139 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2137 def terms @terms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 |
# File 'generated/google/apis/partners_v2/classes.rb', line 2181 def update!(**args) @country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos) @offer_type = args[:offer_type] if args.key?(:offer_type) @max_account_age = args[:max_account_age] if args.key?(:max_account_age) @qualified_customer = args[:qualified_customer] if args.key?(:qualified_customer) @terms = args[:terms] if args.key?(:terms) @show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy) @available = args[:available] if args.key?(:available) @description = args[:description] if args.key?(:description) @offer_level = args[:offer_level] if args.key?(:offer_level) @name = args[:name] if args.key?(:name) @id = args[:id] if args.key?(:id) @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete) end |