Class: Google::Apis::ContentV2_1::MerchantOrderReturn

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MerchantOrderReturn

Returns a new instance of MerchantOrderReturn



3318
3319
3320
# File 'generated/google/apis/content_v2_1/classes.rb', line 3318

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

Instance Attribute Details

#creation_dateString

Corresponds to the JSON property creationDate

Returns:

  • (String)


3291
3292
3293
# File 'generated/google/apis/content_v2_1/classes.rb', line 3291

def creation_date
  @creation_date
end

#merchant_order_idString

Corresponds to the JSON property merchantOrderId

Returns:

  • (String)


3296
3297
3298
# File 'generated/google/apis/content_v2_1/classes.rb', line 3296

def merchant_order_id
  @merchant_order_id
end

#order_idString

Corresponds to the JSON property orderId

Returns:

  • (String)


3301
3302
3303
# File 'generated/google/apis/content_v2_1/classes.rb', line 3301

def order_id
  @order_id
end

#order_return_idString

Corresponds to the JSON property orderReturnId

Returns:

  • (String)


3306
3307
3308
# File 'generated/google/apis/content_v2_1/classes.rb', line 3306

def order_return_id
  @order_return_id
end

#return_itemsArray<Google::Apis::ContentV2_1::MerchantOrderReturnItem>

Corresponds to the JSON property returnItems



3311
3312
3313
# File 'generated/google/apis/content_v2_1/classes.rb', line 3311

def return_items
  @return_items
end

#return_shipmentsArray<Google::Apis::ContentV2_1::ReturnShipment>

Corresponds to the JSON property returnShipments



3316
3317
3318
# File 'generated/google/apis/content_v2_1/classes.rb', line 3316

def return_shipments
  @return_shipments
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3323
3324
3325
3326
3327
3328
3329
3330
# File 'generated/google/apis/content_v2_1/classes.rb', line 3323

def update!(**args)
  @creation_date = args[:creation_date] if args.key?(:creation_date)
  @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
  @order_id = args[:order_id] if args.key?(:order_id)
  @order_return_id = args[:order_return_id] if args.key?(:order_return_id)
  @return_items = args[:return_items] if args.key?(:return_items)
  @return_shipments = args[:return_shipments] if args.key?(:return_shipments)
end