Class: Google::Apis::PartnersV2::AvailableOffer

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AvailableOffer

Returns a new instance of AvailableOffer



2207
2208
2209
# File 'generated/google/apis/partners_v2/classes.rb', line 2207

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#availableFixnum

The number of codes for this offer that are available for distribution. Corresponds to the JSON property available

Returns:

  • (Fixnum)


2200
2201
2202
# File 'generated/google/apis/partners_v2/classes.rb', line 2200

def available
  @available
end

#country_offer_infosArray<Google::Apis::PartnersV2::CountryOfferInfo>

Offer info by country. Corresponds to the JSON property countryOfferInfos



2169
2170
2171
# File 'generated/google/apis/partners_v2/classes.rb', line 2169

def country_offer_infos
  @country_offer_infos
end

#descriptionString

Description of the offer. Corresponds to the JSON property description

Returns:

  • (String)


2205
2206
2207
# File 'generated/google/apis/partners_v2/classes.rb', line 2205

def description
  @description
end

#idFixnum

ID of this offer. Corresponds to the JSON property id

Returns:

  • (Fixnum)


2164
2165
2166
# File 'generated/google/apis/partners_v2/classes.rb', line 2164

def id
  @id
end

#max_account_ageFixnum

The maximum age of an account [in days] to be eligible. Corresponds to the JSON property maxAccountAge

Returns:

  • (Fixnum)


2179
2180
2181
# File 'generated/google/apis/partners_v2/classes.rb', line 2179

def 
  @max_account_age
end

#nameString

Name of the offer. Corresponds to the JSON property name

Returns:

  • (String)


2153
2154
2155
# File 'generated/google/apis/partners_v2/classes.rb', line 2153

def name
  @name
end

#offer_levelString

Level of this offer. Corresponds to the JSON property offerLevel

Returns:

  • (String)


2148
2149
2150
# File 'generated/google/apis/partners_v2/classes.rb', line 2148

def offer_level
  @offer_level
end

#offer_typeString

Type of offer. Corresponds to the JSON property offerType

Returns:

  • (String)


2174
2175
2176
# File 'generated/google/apis/partners_v2/classes.rb', line 2174

def offer_type
  @offer_type
end

#qualified_customerArray<Google::Apis::PartnersV2::OfferCustomer>

Customers who qualify for this offer. Corresponds to the JSON property qualifiedCustomer



2184
2185
2186
# File 'generated/google/apis/partners_v2/classes.rb', line 2184

def qualified_customer
  @qualified_customer
end

#qualified_customers_completeBoolean Also known as: qualified_customers_complete?

Whether or not the list of qualified customers is definitely complete. Corresponds to the JSON property qualifiedCustomersComplete

Returns:

  • (Boolean)


2158
2159
2160
# File 'generated/google/apis/partners_v2/classes.rb', line 2158

def qualified_customers_complete
  @qualified_customers_complete
end

#show_special_offer_copyBoolean Also known as: show_special_offer_copy?

Should special text be shown on the offers page. Corresponds to the JSON property showSpecialOfferCopy

Returns:

  • (Boolean)


2194
2195
2196
# File 'generated/google/apis/partners_v2/classes.rb', line 2194

def show_special_offer_copy
  @show_special_offer_copy
end

#termsString

Terms of the offer. Corresponds to the JSON property terms

Returns:

  • (String)


2189
2190
2191
# File 'generated/google/apis/partners_v2/classes.rb', line 2189

def terms
  @terms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
# File 'generated/google/apis/partners_v2/classes.rb', line 2212

def update!(**args)
  @offer_level = args[:offer_level] if args.key?(:offer_level)
  @name = args[:name] if args.key?(:name)
  @qualified_customers_complete = args[:qualified_customers_complete] if args.key?(:qualified_customers_complete)
  @id = args[:id] if args.key?(:id)
  @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)
end