GoogleApi.Content.V21.Model.TestOrder (google_api_content v0.58.0) View Source

Attributes

  • deliveryDetails (type: GoogleApi.Content.V21.Model.TestOrderDeliveryDetails.t, default: nil) - Overrides the predefined delivery details if provided.
  • enableOrderinvoices (type: boolean(), default: nil) - Whether the orderinvoices service should support this order.
  • kind (type: String.t, default: nil) - Identifies what kind of resource this is. Value: the fixed string "content#testOrder"
  • lineItems (type: list(GoogleApi.Content.V21.Model.TestOrderLineItem.t), default: nil) - Required. Line items that are ordered. At least one line item must be provided.
  • notificationMode (type: String.t, default: nil) - Restricted. Do not use.
  • pickupDetails (type: GoogleApi.Content.V21.Model.TestOrderPickupDetails.t, default: nil) - Overrides the predefined pickup details if provided.
  • predefinedBillingAddress (type: String.t, default: nil) - Required. The billing address. Acceptable values are: - "dwight" - "jim" - "pam"
  • predefinedDeliveryAddress (type: String.t, default: nil) - Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are: - "dwight" - "jim" - "pam"
  • predefinedEmail (type: String.t, default: nil) - Required. Email address of the customer. Acceptable values are: - "pog.dwight.schrute@gmail.com" - "pog.jim.halpert@gmail.com" - "penpog.pam.beesly@gmail.comding"
  • predefinedPickupDetails (type: String.t, default: nil) - Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type pickup. Acceptable values are: - "dwight" - "jim" - "pam"
  • promotions (type: list(GoogleApi.Content.V21.Model.OrderPromotion.t), default: nil) - Promotions associated with the order.
  • shippingCost (type: GoogleApi.Content.V21.Model.Price.t, default: nil) - 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.
  • shippingOption (type: String.t, default: nil) - Required. The requested shipping option. Acceptable values are: - "economy" - "expedited" - "oneDay" - "sameDay" - "standard" - "twoDay"

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Content.V21.Model.TestOrder{
  deliveryDetails:
    GoogleApi.Content.V21.Model.TestOrderDeliveryDetails.t() | nil,
  enableOrderinvoices: boolean() | nil,
  kind: String.t() | nil,
  lineItems: [GoogleApi.Content.V21.Model.TestOrderLineItem.t()] | nil,
  notificationMode: String.t() | nil,
  pickupDetails: GoogleApi.Content.V21.Model.TestOrderPickupDetails.t() | nil,
  predefinedBillingAddress: String.t() | nil,
  predefinedDeliveryAddress: String.t() | nil,
  predefinedEmail: String.t() | nil,
  predefinedPickupDetails: String.t() | nil,
  promotions: [GoogleApi.Content.V21.Model.OrderPromotion.t()] | nil,
  shippingCost: GoogleApi.Content.V21.Model.Price.t() | nil,
  shippingOption: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.