forked from LiveCarta/PayPal-PHP-Server-SDK
* Automated commit message * add changelog --------- Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com> Co-authored-by: Patrick Powers <patickpowers@hey.com>
26 lines
759 B
Markdown
26 lines
759 B
Markdown
|
|
# Universal Product Code
|
|
|
|
The Universal Product Code of the item.
|
|
|
|
## Structure
|
|
|
|
`UniversalProductCode`
|
|
|
|
## Fields
|
|
|
|
| Name | Type | Tags | Description | Getter | Setter |
|
|
| --- | --- | --- | --- | --- | --- |
|
|
| `type` | [`string(UpcType)`](../../doc/models/upc-type.md) | Required | The Universal Product Code type.<br><br>**Constraints**: *Minimum Length*: `1`, *Maximum Length*: `5`, *Pattern*: `^[0-9A-Z_-]+$` | getType(): string | setType(string type): void |
|
|
| `code` | `string` | Required | The UPC product code of the item.<br><br>**Constraints**: *Minimum Length*: `6`, *Maximum Length*: `17`, *Pattern*: `^[0-9]{0,17}$` | getCode(): string | setCode(string code): void |
|
|
|
|
## Example (as JSON)
|
|
|
|
```json
|
|
{
|
|
"type": "UPC-E",
|
|
"code": "code2"
|
|
}
|
|
```
|
|
|