Class: Google::Apis::MerchantapiQuotaV1beta::ProductChange

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductChange

Returns a new instance of ProductChange.



115
116
117
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 115

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

Instance Attribute Details

#new_valueString

The new value of the changed resource or attribute. Corresponds to the JSON property newValue

Returns:

  • (String)


98
99
100
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 98

def new_value
  @new_value
end

#old_valueString

The old value of the changed resource or attribute. Corresponds to the JSON property oldValue

Returns:

  • (String)


103
104
105
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 103

def old_value
  @old_value
end

#region_codeString

Countries that have the change (if applicable) Corresponds to the JSON property regionCode

Returns:

  • (String)


108
109
110
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 108

def region_code
  @region_code
end

#reporting_contextString

Reporting contexts that have the change (if applicable) Corresponds to the JSON property reportingContext

Returns:

  • (String)


113
114
115
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 113

def reporting_context
  @reporting_context
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



120
121
122
123
124
125
# File 'lib/google/apis/merchantapi_quota_v1beta/classes.rb', line 120

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