Represents a supplier to a seller.
Vendor
Name | Type | Tags | Description | Getter | Setter |
---|---|---|---|---|---|
id |
?string |
Optional | A unique Square-generated ID for the Vendor. This field is required when attempting to update a Vendor. Constraints: Maximum Length: 100 |
getId(): ?string | setId(?string id): void |
createdAt |
?string |
Optional | An RFC 3339-formatted timestamp that indicates when the Vendor was created. Constraints: Maximum Length: 34 |
getCreatedAt(): ?string | setCreatedAt(?string createdAt): void |
updatedAt |
?string |
Optional | An RFC 3339-formatted timestamp that indicates when the Vendor was last updated. Constraints: Maximum Length: 34 |
getUpdatedAt(): ?string | setUpdatedAt(?string updatedAt): void |
name |
?string |
Optional | The name of the Vendor. This field is required when attempting to create or update a Vendor. Constraints: Maximum Length: 100 |
getName(): ?string | setName(?string name): void |
address |
?Address |
Optional | Represents a postal address in a country. For more information, see Working with Addresses. |
getAddress(): ?Address | setAddress(?Address address): void |
contacts |
?(VendorContact[]) |
Optional | The contacts of the Vendor. | getContacts(): ?array | setContacts(?array contacts): void |
accountNumber |
?string |
Optional | The account number of the Vendor. Constraints: Maximum Length: 100 |
getAccountNumber(): ?string | setAccountNumber(?string accountNumber): void |
note |
?string |
Optional | A note detailing information about the Vendor. Constraints: Maximum Length: 4096 |
getNote(): ?string | setNote(?string note): void |
version |
?int |
Optional | The version of the Vendor. | getVersion(): ?int | setVersion(?int version): void |
status |
?string(VendorStatus) |
Optional | The status of the Vendor, whether a Vendor is active or inactive. |
getStatus(): ?string | setStatus(?string status): void |
{
"id": "id8",
"created_at": "created_at6",
"updated_at": "updated_at4",
"name": "name8",
"address": {
"address_line_1": "address_line_16",
"address_line_2": "address_line_26",
"address_line_3": "address_line_32",
"locality": "locality6",
"sublocality": "sublocality6"
}
}