Reference documentation and code samples for the Google Cloud Commerce Producer V1beta Client class Customer.
Information about the customer.
Generated from protobuf message google.cloud.commerceproducer.v1beta.PrivateOffer.Customer
Namespace
Google \ Cloud \ CommerceProducer \ V1beta \ PrivateOfferMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ entity_title |
string
Optional. A string identifying the customer's entity (for example, the customer's organization or company name). Must be provided when publishing the offer. Maximum length: 256 characters. |
↳ contact |
string
Optional. A string identifying the customer contact. Must be provided when publishing the offer. Maximum length: 256 characters. |
↳ email |
string
Optional. Email of customer contact. If provided, it must be a well-formed email address. |
↳ address |
string
Output only. Legal address of the customer organization. This field can no longer be set, but it is preserved to return the data from existing offers where address is set. |
↳ target_billing_account |
string
Optional. The customer's billing account targeted by the offer. The private offer once published can be accepted by a billing administrator of the target billing account. If the customer accepts the offer and later moves the resulting order to a new billing account, this field will continue to reflect the original billing account to which the private offer was extended. Must be provided when publishing the offer. To publish this private offer: * * The billing account must exist. * * The billing account must not be in a free trial. * * The billing account must comply with Marketplace Reselling Policies. * * Reseller parent billing accounts are prohibited. Reseller subaccounts are prohibited unless the service is enabled for reselling. Format: billingAccounts/012345-567890-ABCDEF |
getEntityTitle
Optional. A string identifying the customer's entity (for example, the customer's organization or company name). Must be provided when publishing the offer. Maximum length: 256 characters.
| Returns | |
|---|---|
| Type | Description |
string |
|
setEntityTitle
Optional. A string identifying the customer's entity (for example, the customer's organization or company name). Must be provided when publishing the offer. Maximum length: 256 characters.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContact
Optional. A string identifying the customer contact.
Must be provided when publishing the offer. Maximum length: 256 characters.
| Returns | |
|---|---|
| Type | Description |
string |
|
setContact
Optional. A string identifying the customer contact.
Must be provided when publishing the offer. Maximum length: 256 characters.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEmail
Optional. Email of customer contact.
If provided, it must be a well-formed email address.
| Returns | |
|---|---|
| Type | Description |
string |
|
setEmail
Optional. Email of customer contact.
If provided, it must be a well-formed email address.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAddress
Output only. Legal address of the customer organization.
This field can no longer be set, but it is preserved to return the data from existing offers where address is set.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAddress
Output only. Legal address of the customer organization.
This field can no longer be set, but it is preserved to return the data from existing offers where address is set.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTargetBillingAccount
Optional. The customer's billing account targeted by the offer.
The private offer once published can be accepted by a billing administrator of the target billing account. If the customer accepts the offer and later moves the resulting order to a new billing account, this field will continue to reflect the original billing account to which the private offer was extended. Must be provided when publishing the offer. To publish this private offer:
- The billing account must exist.
- The billing account must not be in a free trial.
- The billing account must comply with Marketplace Reselling Policies.
- Reseller parent billing accounts are prohibited. Reseller subaccounts are prohibited unless the service is enabled for reselling. Format: billingAccounts/012345-567890-ABCDEF
| Returns | |
|---|---|
| Type | Description |
string |
|
setTargetBillingAccount
Optional. The customer's billing account targeted by the offer.
The private offer once published can be accepted by a billing administrator of the target billing account. If the customer accepts the offer and later moves the resulting order to a new billing account, this field will continue to reflect the original billing account to which the private offer was extended. Must be provided when publishing the offer. To publish this private offer:
- The billing account must exist.
- The billing account must not be in a free trial.
- The billing account must comply with Marketplace Reselling Policies.
- Reseller parent billing accounts are prohibited. Reseller subaccounts are prohibited unless the service is enabled for reselling. Format: billingAccounts/012345-567890-ABCDEF
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|