class Google::Apis::ContentV2::TestOrder
Attributes
The details of the customer who placed the order. Corresponds to the JSON property `customer` @return [Google::Apis::ContentV2::TestOrderCustomer]
Identifies what kind of resource this is. Value: the fixed string “content# testOrder”. Corresponds to the JSON property `kind` @return [String]
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>]
The details of the payment method. Corresponds to the JSON property `paymentMethod` @return [Google::Apis::ContentV2::TestOrderPaymentMethod]
Identifier of one of the predefined delivery addresses for the delivery. Corresponds to the JSON property `predefinedDeliveryAddress` @return [String]
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>]
The total cost of shipping for all items. Corresponds to the JSON property `shippingCost` @return [Google::Apis::ContentV2::Price]
The tax for the total shipping cost. Corresponds to the JSON property `shippingCostTax` @return [Google::Apis::ContentV2::Price]
The requested shipping option. Corresponds to the JSON property `shippingOption` @return [String]
Public Class Methods
# File generated/google/apis/content_v2/classes.rb, line 5862 def initialize(**args) update!(**args) end
Public Instance Methods
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