Class: Google::Apis::MerchantapiAccountsV1beta::ProductChange
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::ProductChange
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb
Overview
The change that happened to the product including old value, new value, country code as the region code and reporting context.
Instance Attribute Summary collapse
-
#new_value ⇒ String
The new value of the changed resource or attribute.
-
#old_value ⇒ String
The old value of the changed resource or attribute.
-
#region_code ⇒ String
Countries that have the change (if applicable) Corresponds to the JSON property
regionCode
. -
#reporting_context ⇒ String
Reporting contexts that have the change (if applicable) Corresponds to the JSON property
reportingContext
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductChange
constructor
A new instance of ProductChange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductChange
Returns a new instance of ProductChange.
1912 1913 1914 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1912 def initialize(**args) update!(**args) end |
Instance Attribute Details
#new_value ⇒ String
The new value of the changed resource or attribute.
Corresponds to the JSON property newValue
1895 1896 1897 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1895 def new_value @new_value end |
#old_value ⇒ String
The old value of the changed resource or attribute.
Corresponds to the JSON property oldValue
1900 1901 1902 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1900 def old_value @old_value end |
#region_code ⇒ String
Countries that have the change (if applicable)
Corresponds to the JSON property regionCode
1905 1906 1907 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1905 def region_code @region_code end |
#reporting_context ⇒ String
Reporting contexts that have the change (if applicable)
Corresponds to the JSON property reportingContext
1910 1911 1912 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1910 def reporting_context @reporting_context end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1917 1918 1919 1920 1921 1922 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 1917 def update!(**args) @new_value = args[:new_value] if args.key?(:new_value) @old_value = args[:old_value] if args.key?(:old_value) @region_code = args[:region_code] if args.key?(:region_code) @reporting_context = args[:reporting_context] if args.key?(:reporting_context) end |