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. Equivalent to StatusPerReportingContext in Reports API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DestinationStatus

Returns a new instance of DestinationStatus.



898
899
900
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 898

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


881
882
883
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 881

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


886
887
888
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 886

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


891
892
893
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 891

def pending_countries
  @pending_countries
end

#reporting_contextString

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

Returns:

  • (String)


896
897
898
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 896

def reporting_context
  @reporting_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



903
904
905
906
907
908
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 903

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