Class: Google::Apis::ContentV2_1::ProductStatusDestinationStatus

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductStatusDestinationStatus

Returns a new instance of ProductStatusDestinationStatus.



10090
10091
10092
# File 'lib/google/apis/content_v2_1/classes.rb', line 10090

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

Instance Attribute Details

#approved_countriesArray<String>

List of country codes (ISO 3166-1 alpha-2) where the offer is approved. Corresponds to the JSON property approvedCountries

Returns:

  • (Array<String>)


10068
10069
10070
# File 'lib/google/apis/content_v2_1/classes.rb', line 10068

def approved_countries
  @approved_countries
end

#destinationString

The name of the destination Corresponds to the JSON property destination

Returns:

  • (String)


10073
10074
10075
# File 'lib/google/apis/content_v2_1/classes.rb', line 10073

def destination
  @destination
end

#disapproved_countriesArray<String>

List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved. Corresponds to the JSON property disapprovedCountries

Returns:

  • (Array<String>)


10078
10079
10080
# File 'lib/google/apis/content_v2_1/classes.rb', line 10078

def disapproved_countries
  @disapproved_countries
end

#pending_countriesArray<String>

List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval. Corresponds to the JSON property pendingCountries

Returns:

  • (Array<String>)


10083
10084
10085
# File 'lib/google/apis/content_v2_1/classes.rb', line 10083

def pending_countries
  @pending_countries
end

#statusString

Deprecated. Destination approval status in targetCountry of the offer. Corresponds to the JSON property status

Returns:

  • (String)


10088
10089
10090
# File 'lib/google/apis/content_v2_1/classes.rb', line 10088

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10095
10096
10097
10098
10099
10100
10101
# File 'lib/google/apis/content_v2_1/classes.rb', line 10095

def update!(**args)
  @approved_countries = args[:approved_countries] if args.key?(:approved_countries)
  @destination = args[:destination] if args.key?(:destination)
  @disapproved_countries = args[:disapproved_countries] if args.key?(:disapproved_countries)
  @pending_countries = args[:pending_countries] if args.key?(:pending_countries)
  @status = args[:status] if args.key?(:status)
end