Reference documentation and code samples for the Google Shopping Merchant Accounts V1beta Client class CreateAndConfigureAccountRequest.
Request message for the CreateAndConfigureAccount method.
Generated from protobuf message google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
Namespace
Google \ Shopping \ Merchant \ Accounts \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ account |
Google\Shopping\Merchant\Accounts\V1beta\Account
Required. The account to be created. |
↳ users |
array<Google\Shopping\Merchant\Accounts\V1beta\CreateUserRequest>
Optional. Users to be added to the account. |
↳ accept_terms_of_service |
Google\Shopping\Merchant\Accounts\V1beta\CreateAndConfigureAccountRequest\AcceptTermsOfService
Optional. The Terms of Service (ToS) to be accepted immediately upon account creation. |
↳ service |
array<Google\Shopping\Merchant\Accounts\V1beta\CreateAndConfigureAccountRequest\AddAccountService>
Optional. If specified, an account service between the account to be created and the provider account is initialized as part of the creation. |
getAccount
Required. The account to be created.
| Returns | |
|---|---|
| Type | Description |
Google\Shopping\Merchant\Accounts\V1beta\Account|null |
|
hasAccount
clearAccount
setAccount
Required. The account to be created.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Shopping\Merchant\Accounts\V1beta\Account
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUsers
Optional. Users to be added to the account.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setUsers
Optional. Users to be added to the account.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Shopping\Merchant\Accounts\V1beta\CreateUserRequest>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAcceptTermsOfService
Optional. The Terms of Service (ToS) to be accepted immediately upon account creation.
| Returns | |
|---|---|
| Type | Description |
Google\Shopping\Merchant\Accounts\V1beta\CreateAndConfigureAccountRequest\AcceptTermsOfService|null |
|
hasAcceptTermsOfService
clearAcceptTermsOfService
setAcceptTermsOfService
Optional. The Terms of Service (ToS) to be accepted immediately upon account creation.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Shopping\Merchant\Accounts\V1beta\CreateAndConfigureAccountRequest\AcceptTermsOfService
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getService
Optional. If specified, an account service between the account to be created and the provider account is initialized as part of the creation.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setService
Optional. If specified, an account service between the account to be created and the provider account is initialized as part of the creation.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Shopping\Merchant\Accounts\V1beta\CreateAndConfigureAccountRequest\AddAccountService>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|