View Source GoogleApi.Content.V21.Model.ShipmentInvoiceLineItemInvoice (google_api_content v0.66.0)

Attributes

  • lineItemId (type: String.t, default: nil) - ID of the line item. Either lineItemId or productId must be set.
  • productId (type: String.t, default: nil) - ID of the product. This is the REST ID used in the products service. Either lineItemId or productId must be set.
  • shipmentUnitIds (type: list(String.t), default: nil) - [required] The shipment unit ID is assigned by the merchant and defines individual quantities within a line item. The same ID can be assigned to units that are the same while units that differ must be assigned a different ID (for example: free or promotional units).
  • unitInvoice (type: GoogleApi.Content.V21.Model.UnitInvoice.t, default: nil) - [required] Invoice details for a single unit.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Content.V21.Model.ShipmentInvoiceLineItemInvoice{
  lineItemId: String.t() | nil,
  productId: String.t() | nil,
  shipmentUnitIds: [String.t()] | nil,
  unitInvoice: GoogleApi.Content.V21.Model.UnitInvoice.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.