1
0
Files
PayPal-PHP-Server-SDK/doc/models/order-tracker-item.md
Dani Kirby 6b43a4225b Beta Release 0.5.0 (#3)
* Automated commit message

* Automated commit message

* Automated commit message

* Automated commit message

---------

Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
2024-09-09 12:10:34 -05:00

1.8 KiB

Order Tracker Item

The details of the items in the shipment.

Structure

OrderTrackerItem

Fields

Name Type Tags Description Getter Setter
name ?string Optional The item name or title.
Constraints: Minimum Length: 1, Maximum Length: 127
getName(): ?string setName(?string name): void
quantity ?string Optional The item quantity. Must be a whole number.
Constraints: Minimum Length: 1, Maximum Length: 10, Pattern: ^[1-9][0-9]{0,9}$
getQuantity(): ?string setQuantity(?string quantity): void
sku ?string Optional The stock keeping unit (SKU) for the item. This can contain unicode characters.
Constraints: Minimum Length: 1, Maximum Length: 127
getSku(): ?string setSku(?string sku): void
url ?string Optional The URL to the item being purchased. Visible to buyer and used in buyer experiences.
Constraints: Minimum Length: 1, Maximum Length: 2048
getUrl(): ?string setUrl(?string url): void
imageUrl ?string Optional The URL of the item's image. File type and size restrictions apply. An image that violates these restrictions will not be honored.
Constraints: Minimum Length: 1, Maximum Length: 2048, Pattern: ^(https:)([/|.|\w|\s|-])*\.(?:jpg|gif|png|jpeg|JPG|GIF|PNG|JPEG)
getImageUrl(): ?string setImageUrl(?string imageUrl): void
upc ?UniversalProductCode Optional The Universal Product Code of the item. getUpc(): ?UniversalProductCode setUpc(?UniversalProductCode upc): void

Example (as JSON)

{
  "name": "name6",
  "quantity": "quantity2",
  "sku": "sku2",
  "url": "url0",
  "image_url": "image_url2"
}