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
219 220 221 |
# File 'generated/google/apis/partners_v2/classes.rb', line 219 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
160 161 162 |
# File 'generated/google/apis/partners_v2/classes.rb', line 160 def available @available end |
#country_offer_infos ⇒ Array<Google::Apis::PartnersV2::CountryOfferInfo>
Offer info by country.
Corresponds to the JSON property countryOfferInfos
165 166 167 |
# File 'generated/google/apis/partners_v2/classes.rb', line 165 def country_offer_infos @country_offer_infos end |
#description ⇒ String
Description of the offer.
Corresponds to the JSON property description
170 171 172 |
# File 'generated/google/apis/partners_v2/classes.rb', line 170 def description @description end |
#id ⇒ Fixnum
ID of this offer.
Corresponds to the JSON property id
175 176 177 |
# File 'generated/google/apis/partners_v2/classes.rb', line 175 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
180 181 182 |
# File 'generated/google/apis/partners_v2/classes.rb', line 180 def max_account_age @max_account_age end |
#name ⇒ String
Name of the offer.
Corresponds to the JSON property name
185 186 187 |
# File 'generated/google/apis/partners_v2/classes.rb', line 185 def name @name end |
#offer_level ⇒ String
Level of this offer.
Corresponds to the JSON property offerLevel
190 191 192 |
# File 'generated/google/apis/partners_v2/classes.rb', line 190 def offer_level @offer_level end |
#offer_type ⇒ String
Type of offer.
Corresponds to the JSON property offerType
195 196 197 |
# File 'generated/google/apis/partners_v2/classes.rb', line 195 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
200 201 202 |
# File 'generated/google/apis/partners_v2/classes.rb', line 200 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
205 206 207 |
# File 'generated/google/apis/partners_v2/classes.rb', line 205 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
211 212 213 |
# File 'generated/google/apis/partners_v2/classes.rb', line 211 def show_special_offer_copy @show_special_offer_copy end |
#terms ⇒ String
Terms of the offer.
Corresponds to the JSON property terms
217 218 219 |
# File 'generated/google/apis/partners_v2/classes.rb', line 217 def terms @terms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'generated/google/apis/partners_v2/classes.rb', line 224 def update!(**args) @available = args[:available] if args.key?(:available) @country_offer_infos = args[:country_offer_infos] if args.key?(:country_offer_infos) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @max_account_age = args[:max_account_age] if args.key?(:max_account_age) @name = args[:name] if args.key?(:name) @offer_level = args[:offer_level] if args.key?(:offer_level) @offer_type = args[:offer_type] if args.key?(:offer_type) @qualified_customer = args[:qualified_customer] if args.key?(:qualified_customer) @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete) @show_special_offer_copy = args[:show_special_offer_copy] if args.key?(:show_special_offer_copy) @terms = args[:terms] if args.key?(:terms) end |