PurchaseItemExtension

תוכן הפריט בקטגוריית הרכישה.

ייצוג JSON
{
  "status": enum (PurchaseStatus),
  "userVisibleStatusLabel": string,
  "type": enum (PurchaseType),
  "productId": string,
  "quantity": number,
  "unitMeasure": {
    object (MerchantUnitMeasure)
  },
  "returnsInfo": {
    object (PurchaseReturnsInfo)
  },
  "fulfillmentInfo": {
    object (PurchaseFulfillmentInfo)
  },
  "itemOptions": [
    {
      object (ItemOption)
    }
  ],
  "extension": {
    "@type": string,
    field1: ...,
    ...
  },
  "productDetails": {
    object (ProductDetails)
  }
}
שדות
status

enum (PurchaseStatus)

נדרש: סטטוס ברמת הפריט.

userVisibleStatusLabel

string

חובה: תווית/מחרוזת גלויים למשתמש לסטטוס. האורך המקסימלי המותר הוא 50 תווים.

type

enum (PurchaseType)

חובה: סוג הרכישה.

productId
(deprecated)

string

מזהה המוצר או המבצע שמשויך לפריט הזה.

quantity

number

כמות הפריט.

unitMeasure

object (MerchantUnitMeasure)

מידת יחידה. מאפיין זה מציין את גודל הפריט ביחידות שנבחרו. המחיר ליחידה, ביחד עם המחיר הפעיל, משמש לקביעת המחיר.

returnsInfo

object (PurchaseReturnsInfo)

מחזירה מידע על הפריט הזה. אם המדיניות לא מוגדרת, הפריט הזה יורש את רמת ההזמנה ומחזירה מידע.

fulfillmentInfo

object (PurchaseFulfillmentInfo)

פרטי האספקה של הפריט הזה. אם המדיניות לא מוגדרת, הפריט הזה יורש את פרטי האספקה ברמת ההזמנה.

itemOptions[]

object (ItemOption)

תוספים או פריטי משנה נוספים.

extension

object

כל השדות הנוספים שיועברו בין המוכר ל-Google.

אובייקט שמכיל שדות מסוג שרירותי. שדה נוסף "@type" מכיל URI שמזהה את הסוג. דוגמה: { "id": 1234, "@type": "types.example.com/standard/id" }

productDetails

object (ProductDetails)

פרטים על המוצר.

ItemOption

מייצג תוספים או פריטי משנה.

ייצוג JSON
{
  "id": string,
  "name": string,
  "prices": [
    {
      object (PriceAttribute)
    }
  ],
  "note": string,
  "quantity": number,
  "productId": string,
  "subOptions": [
    {
      object (ItemOption)
    }
  ]
}
שדות
id

string

לאפשרויות שהן פריטים, מזהה פריט ייחודי.

name

string

שם האפשרות.

prices[]

object (PriceAttribute)

המחיר הכולל של האופציה.

note

string

הערה שקשורה לאפשרות.

quantity

number

לאפשרויות שהן פריטים, quantity.

productId

string

מזהה המוצר או המבצע שמשויך לאפשרות הזו.

subOptions[]

object (ItemOption)

כדי להגדיר אפשרויות משנה אחרות בתוך רכיב.