forked from LiveCarta/PayPal-PHP-Server-SDK
* Automated commit message * Automated commit message * Automated commit message * Automated commit message --------- Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
2.3 KiB
2.3 KiB
Pay Pal Wallet Customer
The details about a customer in PayPal's system of record.
Structure
PayPalWalletCustomer
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
id |
?string |
Optional | The unique ID for a customer generated by PayPal. Constraints: Minimum Length: 1, Maximum Length: 22, Pattern: ^[0-9a-zA-Z_-]+$ |
getId(): ?string | setId(?string id): void |
emailAddress |
?string |
Optional | The internationalized email address.Note: Up to 64 characters are allowed before and 255 characters are allowed after the Constraints: Minimum Length: 3, Maximum Length: 254, Pattern: (?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]) |
getEmailAddress(): ?string | setEmailAddress(?string emailAddress): void |
phone |
?PhoneWithType |
Optional | The phone information. | getPhone(): ?PhoneWithType | setPhone(?PhoneWithType phone): void |
merchantCustomerId |
?string |
Optional | Merchants and partners may already have a data-store where their customer information is persisted. Use merchant_customer_id to associate the PayPal-generated customer.id to your representation of a customer. Constraints: Minimum Length: 1, Maximum Length: 64, Pattern: ^[0-9a-zA-Z-_.^*$@#]+$ |
getMerchantCustomerId(): ?string | setMerchantCustomerId(?string merchantCustomerId): void |
Example (as JSON)
{
"id": "id8",
"email_address": "email_address4",
"phone": {
"phone_type": "OTHER",
"phone_number": {
"national_number": "national_number6"
}
},
"merchant_customer_id": "merchant_customer_id0"
}