forked from LiveCarta/PayPal-PHP-Server-SDK
1.3 KiB
1.3 KiB
Vault Response
The details about a saved payment source.
Structure
VaultResponse
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
id |
?string |
Optional | The PayPal-generated ID for the saved payment source. Constraints: Minimum Length: 1, Maximum Length: 255 |
getId(): ?string | setId(?string id): void |
status |
?string(VaultStatus) |
Optional | The vault status. Constraints: Minimum Length: 1, Maximum Length: 255, Pattern: ^[0-9A-Z_]+$ |
getStatus(): ?string | setStatus(?string status): void |
customer |
?VaultCustomer |
Optional | The details about a customer in PayPal's system of record. | getCustomer(): ?VaultCustomer | setCustomer(?VaultCustomer customer): void |
links |
?(LinkDescription[]) |
Optional | An array of request-related HATEOAS links. Constraints: Minimum Items: 1, Maximum Items: 10 |
getLinks(): ?array | setLinks(?array links): void |
Example (as JSON)
{
"id": "id2",
"status": "CREATED",
"customer": {
"id": "id0"
},
"links": [
{
"href": "href6",
"rel": "rel0",
"method": "HEAD"
}
]
}