class Google::Apis::ContentV2::TestOrder

Attributes

customer[RW]

The details of the customer who placed the order. Corresponds to the JSON property `customer` @return [Google::Apis::ContentV2::TestOrderCustomer]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “content# testOrder”. Corresponds to the JSON property `kind` @return [String]

line_items[RW]

Line items that are ordered. At least one line item must be provided. Corresponds to the JSON property `lineItems` @return [Array<Google::Apis::ContentV2::TestOrderLineItem>]

payment_method[RW]

The details of the payment method. Corresponds to the JSON property `paymentMethod` @return [Google::Apis::ContentV2::TestOrderPaymentMethod]

predefined_delivery_address[RW]

Identifier of one of the predefined delivery addresses for the delivery. Corresponds to the JSON property `predefinedDeliveryAddress` @return [String]

promotions[RW]

The details of the merchant provided promotions applied to the order. More details about the program are here. Corresponds to the JSON property `promotions` @return [Array<Google::Apis::ContentV2::OrderPromotion>]

shipping_cost[RW]

The total cost of shipping for all items. Corresponds to the JSON property `shippingCost` @return [Google::Apis::ContentV2::Price]

shipping_cost_tax[RW]

The tax for the total shipping cost. Corresponds to the JSON property `shippingCostTax` @return [Google::Apis::ContentV2::Price]

shipping_option[RW]

The requested shipping option. Corresponds to the JSON property `shippingOption` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 5862
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/content_v2/classes.rb, line 5867
def update!(**args)
  @customer = args[:customer] if args.key?(:customer)
  @kind = args[:kind] if args.key?(:kind)
  @line_items = args[:line_items] if args.key?(:line_items)
  @payment_method = args[:payment_method] if args.key?(:payment_method)
  @predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address)
  @promotions = args[:promotions] if args.key?(:promotions)
  @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
  @shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
  @shipping_option = args[:shipping_option] if args.key?(:shipping_option)
end