Class: Google::Apis::MerchantapiProductsV1beta::DestinationStatus

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/merchantapi_products_v1beta/classes.rb,
lib/google/apis/merchantapi_products_v1beta/representations.rb,
lib/google/apis/merchantapi_products_v1beta/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.



811
812
813
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 811

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


794
795
796
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 794

def approved_countries
  @approved_countries
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>)


799
800
801
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 799

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


804
805
806
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 804

def pending_countries
  @pending_countries
end

#reporting_contextString

The name of the reporting context. Corresponds to the JSON property reportingContext

Returns:

  • (String)


809
810
811
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 809

def reporting_context
  @reporting_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



816
817
818
819
820
821
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 816

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