- JSON representation
- TestOrderLineItem
- TestOrderLineItemProduct
- TestOrderPickupDetails
- TestOrderPickupDetailsPickupPerson
- TestOrderAddress
- TestOrderDeliveryDetails
JSON representation |
---|
{ "kind": string, "lineItems": [ { object ( |
Fields | |
---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string " |
lineItems[] |
Required. Line items that are ordered. At least one line item must be provided. |
shippingOption |
Required. The requested shipping option. Acceptable values are:
|
predefinedDeliveryAddress |
Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are:
|
shippingCost |
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. |
notificationMode |
Restricted. Do not use. |
enableOrderinvoices |
Whether the orderinvoices service should support this order. |
predefinedBillingAddress |
Required. The billing address. Acceptable values are:
|
promotions[] |
Promotions associated with the order. |
predefinedEmail |
Required. Email address of the customer. Acceptable values are:
|
predefinedPickupDetails |
Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type Acceptable values are:
|
pickupDetails |
Overrides the predefined pickup details if provided. |
deliveryDetails |
Overrides the predefined delivery details if provided. |
TestOrderLineItem
JSON representation |
---|
{ "product": { object ( |
Fields | |
---|---|
product |
Required. Product data from the time of the order placement. |
quantityOrdered |
Required. Number of items ordered. |
shippingDetails |
Required. Details of the requested shipping for the line item. |
returnInfo |
Required. Details of the return policy for the line item. |
TestOrderLineItemProduct
JSON representation |
---|
{ "offerId": string, "targetCountry": string, "contentLanguage": string, "title": string, "price": { object ( |
Fields | |
---|---|
offerId |
Required. An identifier of the item. |
targetCountry |
Required. The CLDR territory code of the target country of the product. |
contentLanguage |
Required. The two-letter ISO 639-1 language code for the item. Acceptable values are:
|
title |
Required. The title of the product. |
price |
Required. The price for the product. Tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied. |
condition |
Required. Condition or state of the item. Acceptable values are:
|
gtin |
Global Trade Item Number (GTIN) of the item. Optional. |
brand |
Required. Brand of the item. |
mpn |
Manufacturer Part Number (MPN) of the item. Optional. |
variantAttributes[] |
Variant attributes for the item. Optional. |
itemGroupId |
Shared identifier for all variants of the same product. Optional. |
imageLink |
Required. URL of an image of the item. |
fees[] |
Fees for the item. Optional. |
TestOrderPickupDetails
JSON representation |
---|
{ "pickupPersons": [ { object ( |
Fields | |
---|---|
pickupPersons[] |
Required. all pickup persons set by users. |
locationCode |
Required. Code of the location defined by provider or merchant. |
pickupLocationAddress |
Required. Pickup location address. |
pickupLocationType |
Pickup location type. Acceptable values are:
|
TestOrderPickupDetailsPickupPerson
JSON representation |
---|
{ "name": string, "phoneNumber": string } |
Fields | |
---|---|
name |
Required. Full name of the pickup person. |
phoneNumber |
Required. The phone number of the person picking up the items. |
TestOrderAddress
JSON representation |
---|
{ "recipientName": string, "streetAddress": [ string ], "locality": string, "region": string, "country": string, "postalCode": string, "isPostOfficeBox": boolean, "fullAddress": [ string ] } |
Fields | |
---|---|
recipientName |
Name of the recipient. |
streetAddress[] |
Street-level part of the address. Use |
locality |
City, town or commune. May also include dependent localities or sublocalities (for example, neighborhoods or suburbs). |
region |
Top-level administrative subdivision of the country. For example, a state like California ("CA") or a province like Quebec ("QC"). |
country |
CLDR country code (for example, "US"). |
postalCode |
Postal Code or ZIP (for example, "94043"). |
isPostOfficeBox |
Whether the address is a post office box. |
fullAddress[] |
Strings representing the lines of the printed label for mailing the order, for example: John Smith |
TestOrderDeliveryDetails
JSON representation |
---|
{
"address": {
object ( |
Fields | |
---|---|
address |
The delivery address |
phoneNumber |
The phone number of the person receiving the delivery. |
isScheduledDelivery |
Whether the order is scheduled delivery order. |