class Google::Apis::ContentV2_1::TestOrder
Attributes
Overrides the predefined delivery details if provided. Corresponds to the JSON property `deliveryDetails` @return [Google::Apis::ContentV2_1::TestOrderDeliveryDetails]
Whether the orderinvoices service should support this order. Corresponds to the JSON property `enableOrderinvoices` @return [Boolean]
Whether the orderinvoices service should support this order. Corresponds to the JSON property `enableOrderinvoices` @return [Boolean]
Identifies what kind of resource this is. Value: the fixed string “`content# testOrder`” Corresponds to the JSON property `kind` @return [String]
Required. Line items that are ordered. At least one line item must be provided. Corresponds to the JSON property `lineItems` @return [Array<Google::Apis::ContentV2_1::TestOrderLineItem>]
Restricted. Do not use. Corresponds to the JSON property `notificationMode` @return [String]
Overrides the predefined pickup details if provided. Corresponds to the JSON property `pickupDetails` @return [Google::Apis::ContentV2_1::TestOrderPickupDetails]
Required. The billing address. Acceptable values are: - “`dwight`” - “`jim`” - “`pam`” Corresponds to the JSON property `predefinedBillingAddress` @return [String]
Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are: - “`dwight`” - “`jim`” - “`pam`” Corresponds to the JSON property `predefinedDeliveryAddress` @return [String]
Required. Email address of the customer. Acceptable values are: - “`pog.dwight. schrute@gmail.com`” - “`pog.jim.halpert@gmail.com`” - “`penpog.pam.beesly@ gmail.comding`” Corresponds to the JSON property `predefinedEmail` @return [String]
Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type `pickup`. Acceptable values are: - “` dwight`” - “`jim`” - “`pam`” Corresponds to the JSON property `predefinedPickupDetails` @return [String]
Promotions associated with the order. Corresponds to the JSON property `promotions` @return [Array<Google::Apis::ContentV2_1::OrderPromotion>]
Required. The price of shipping for all items. Shipping tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied. Note that shipping is not taxed in certain states. Corresponds to the JSON property `shippingCost` @return [Google::Apis::ContentV2_1::Price]
Required. The requested shipping option. Acceptable values are: - “`economy`” - “`expedited`” - “`oneDay`” - “`sameDay`” - “`standard`” - “`twoDay`” Corresponds to the JSON property `shippingOption` @return [String]
Public Class Methods
# File lib/google/apis/content_v2_1/classes.rb, line 15075 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/content_v2_1/classes.rb, line 15080 def update!(**args) @delivery_details = args[:delivery_details] if args.key?(:delivery_details) @enable_orderinvoices = args[:enable_orderinvoices] if args.key?(:enable_orderinvoices) @kind = args[:kind] if args.key?(:kind) @line_items = args[:line_items] if args.key?(:line_items) @notification_mode = args[:notification_mode] if args.key?(:notification_mode) @pickup_details = args[:pickup_details] if args.key?(:pickup_details) @predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address) @predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address) @predefined_email = args[:predefined_email] if args.key?(:predefined_email) @predefined_pickup_details = args[:predefined_pickup_details] if args.key?(:predefined_pickup_details) @promotions = args[:promotions] if args.key?(:promotions) @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) @shipping_option = args[:shipping_option] if args.key?(:shipping_option) end