Google Shopping Merchant Accounts V1beta Client - Class CreateAndConfigureAccountRequest (0.3.1)

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 \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ account Account

Required. The account to be created.

↳ users array<CreateUserRequest>

Optional. Users to be added to the account.

↳ accept_terms_of_service CreateAndConfigureAccountRequest\AcceptTermsOfService

Optional. The Terms of Service (ToS) to be accepted immediately upon account creation.

↳ service array<CreateAndConfigureAccountRequest\AddAccountService>

Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently exactly one of these needs to be account_aggregation, which means you can only create sub accounts, not standalone account through this method. Additional account_management or product_management services may be provided.

getAccount

Required. The account to be created.

Returns
Type Description
Account|null

hasAccount

clearAccount

setAccount

Required. The account to be created.

Parameter
Name Description
var 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<CreateUserRequest>
Returns
Type Description
$this

getAcceptTermsOfService

Optional. The Terms of Service (ToS) to be accepted immediately upon account creation.

Returns
Type Description
CreateAndConfigureAccountRequest\AcceptTermsOfService|null

hasAcceptTermsOfService

clearAcceptTermsOfService

setAcceptTermsOfService

Optional. The Terms of Service (ToS) to be accepted immediately upon account creation.

Parameter
Name Description
var CreateAndConfigureAccountRequest\AcceptTermsOfService
Returns
Type Description
$this

getService

Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently exactly one of these needs to be account_aggregation, which means you can only create sub accounts, not standalone account through this method. Additional account_management or product_management services may be provided.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setService

Required. An account service between the account to be created and the provider account is initialized as part of the creation. At least one such service needs to be provided. Currently exactly one of these needs to be account_aggregation, which means you can only create sub accounts, not standalone account through this method. Additional account_management or product_management services may be provided.

Parameter
Name Description
var array<CreateAndConfigureAccountRequest\AddAccountService>
Returns
Type Description
$this