class Google::Apis::ContentV2::Order

Attributes

acknowledged[RW]

Whether the order was acknowledged. Corresponds to the JSON property `acknowledged` @return [Boolean]

acknowledged?[RW]

Whether the order was acknowledged. Corresponds to the JSON property `acknowledged` @return [Boolean]

customer[RW]

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

delivery_details[RW]

The details for the delivery. Corresponds to the JSON property `deliveryDetails` @return [Google::Apis::ContentV2::OrderDeliveryDetails]

id[RW]

The REST id of the order. Globally unique. Corresponds to the JSON property `id` @return [String]

kind[RW]

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

line_items[RW]

Line items that are ordered. Corresponds to the JSON property `lineItems` @return [Array<Google::Apis::ContentV2::OrderLineItem>]

merchant_id[RW]

Corresponds to the JSON property `merchantId` @return [String]

merchant_order_id[RW]

Merchant-provided id of the order. Corresponds to the JSON property `merchantOrderId` @return [String]

net_amount[RW]

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]

payment_method[RW]

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

payment_status[RW]

The status of the payment. Corresponds to the JSON property `paymentStatus` @return [String]

placed_date[RW]

The date when the order was placed, in ISO 8601 format. Corresponds to the JSON property `placedDate` @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>]

refunds[RW]

Refunds for the order. Corresponds to the JSON property `refunds` @return [Array<Google::Apis::ContentV2::OrderRefund>]

shipments[RW]

Shipments of the order. Corresponds to the JSON property `shipments` @return [Array<Google::Apis::ContentV2::OrderShipment>]

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]

status[RW]

The status of the order. Corresponds to the JSON property `status` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/content_v2/classes.rb, line 2621
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 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