Class: Google::Apis::CssV1::DestinationStatus

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

Overview

The destination status of the product status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DestinationStatus

Returns a new instance of DestinationStatus.



764
765
766
# File 'lib/google/apis/css_v1/classes.rb', line 764

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

Instance Attribute Details

#approved_countriesArray<String>

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

Returns:

  • (Array<String>)


745
746
747
# File 'lib/google/apis/css_v1/classes.rb', line 745

def approved_countries
  @approved_countries
end

#destinationString

The name of the destination Corresponds to the JSON property destination

Returns:

  • (String)


750
751
752
# File 'lib/google/apis/css_v1/classes.rb', line 750

def destination
  @destination
end

#disapproved_countriesArray<String>

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

Returns:

  • (Array<String>)


756
757
758
# File 'lib/google/apis/css_v1/classes.rb', line 756

def disapproved_countries
  @disapproved_countries
end

#pending_countriesArray<String>

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

Returns:

  • (Array<String>)


762
763
764
# File 'lib/google/apis/css_v1/classes.rb', line 762

def pending_countries
  @pending_countries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



769
770
771
772
773
774
# File 'lib/google/apis/css_v1/classes.rb', line 769

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)
end