Class: Google::Apis::MerchantapiProductsV1beta::DestinationStatus
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiProductsV1beta::DestinationStatus
- 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
-
#approved_countries ⇒ Array<String>
List of country codes (ISO 3166-1 alpha-2) where the offer is approved.
-
#disapproved_countries ⇒ Array<String>
List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.
-
#pending_countries ⇒ Array<String>
List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
-
#reporting_context ⇒ String
The name of the reporting context.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DestinationStatus
constructor
A new instance of DestinationStatus.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_countries ⇒ Array<String>
List of country codes (ISO 3166-1 alpha-2) where the offer is approved.
Corresponds to the JSON property approvedCountries
794 795 796 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 794 def approved_countries @approved_countries end |
#disapproved_countries ⇒ Array<String>
List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved.
Corresponds to the JSON property disapprovedCountries
799 800 801 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 799 def disapproved_countries @disapproved_countries end |
#pending_countries ⇒ Array<String>
List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
Corresponds to the JSON property pendingCountries
804 805 806 |
# File 'lib/google/apis/merchantapi_products_v1beta/classes.rb', line 804 def pending_countries @pending_countries end |
#reporting_context ⇒ String
The name of the reporting context.
Corresponds to the JSON property reportingContext
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 |