class Google::Apis::ContentV2::Order
Attributes
Whether the order was acknowledged. Corresponds to the JSON property `acknowledged` @return [Boolean]
Whether the order was acknowledged. Corresponds to the JSON property `acknowledged` @return [Boolean]
The details of the customer who placed the order. Corresponds to the JSON property `customer` @return [Google::Apis::ContentV2::OrderCustomer]
The details for the delivery. Corresponds to the JSON property `deliveryDetails` @return [Google::Apis::ContentV2::OrderDeliveryDetails]
The REST id of the order. Globally unique. Corresponds to the JSON property `id` @return [String]
Identifies what kind of resource this is. Value: the fixed string “content# order”. Corresponds to the JSON property `kind` @return [String]
Line items that are ordered. Corresponds to the JSON property `lineItems` @return [Array<Google::Apis::ContentV2::OrderLineItem>]
Corresponds to the JSON property `merchantId` @return [String]
Merchant-provided id of the order. Corresponds to the JSON property `merchantOrderId` @return [String]
The net amount for the order. For example, if an order was originally for a grand total of $100 and a refund was issued for $20, the net amount will be $ 80. Corresponds to the JSON property `netAmount` @return [Google::Apis::ContentV2::Price]
The details of the payment method. Corresponds to the JSON property `paymentMethod` @return [Google::Apis::ContentV2::OrderPaymentMethod]
The status of the payment. Corresponds to the JSON property `paymentStatus` @return [String]
The date when the order was placed, in ISO 8601 format. Corresponds to the JSON property `placedDate` @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>]
Refunds for the order. Corresponds to the JSON property `refunds` @return [Array<Google::Apis::ContentV2::OrderRefund>]
Shipments of the order. Corresponds to the JSON property `shipments` @return [Array<Google::Apis::ContentV2::OrderShipment>]
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]
The status of the order. Corresponds to the JSON property `status` @return [String]
Public Class Methods
# File generated/google/apis/content_v2/classes.rb, line 2621 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/content_v2/classes.rb, line 2626 def update!(**args) @acknowledged = args[:acknowledged] if args.key?(:acknowledged) @customer = args[:customer] if args.key?(:customer) @delivery_details = args[:delivery_details] if args.key?(:delivery_details) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @line_items = args[:line_items] if args.key?(:line_items) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) @net_amount = args[:net_amount] if args.key?(:net_amount) @payment_method = args[:payment_method] if args.key?(:payment_method) @payment_status = args[:payment_status] if args.key?(:payment_status) @placed_date = args[:placed_date] if args.key?(:placed_date) @promotions = args[:promotions] if args.key?(:promotions) @refunds = args[:refunds] if args.key?(:refunds) @shipments = args[:shipments] if args.key?(:shipments) @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) @status = args[:status] if args.key?(:status) end