Resource: Account
Represents an account that was established by the customer on the service provider's system.
JSON representation |
---|
{ "name": string, "updateTime": string, "createTime": string, "provider": string, "state": enum ( |
Fields | |
---|---|
name |
Output only. The resource name of the account. Account names have the form |
updateTime |
Output only. The last update timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
createTime |
Output only. The creation timestamp. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
provider |
Output only. The identifier of the service provider that this account was created against. Each service provider is assigned a unique provider value when they onboard with Cloud Commerce platform. |
state |
Output only. The state of the account. This is used to decide whether the customer is in good standing with the provider and is able to make purchases. An account might not be able to make a purchase if the billing account is suspended, for example. |
inputProperties |
Output only. The custom properties that were collected from the user to create this account. |
approvals[] |
Output only. The approvals for this account. These approvals are used to track actions that are permitted or have been completed by a customer within the context of the provider. This might include a sign up flow or a provisioning step, for example, that the provider can admit to having happened. |
AccountState
AccountState indicates the current status of the account.
Enums | |
---|---|
ACCOUNT_STATE_UNSPECIFIED |
Default state of the account. It's only set to this value when the account is first created and has not been initialized. |
ACCOUNT_ACTIVATION_REQUESTED |
The customer has requested the creation of the account resource, and the provider notification message is dispatched. This state has been deprecated, as accounts now immediately transition to |
ACCOUNT_ACTIVE |
The account is active and ready for use. The next possible states are: - Account getting deleted: After the user invokes delete from another API. |
Approval
An approval for some action on an account.
JSON representation |
---|
{
"name": string,
"state": enum ( |
Fields | |
---|---|
name |
Output only. The name of the approval. |
state |
Output only. The state of the approval. |
reason |
Output only. An explanation for the state of the approval. |
updateTime |
Optional. The last update timestamp of the approval. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
State
The current status of an approval.
Enums | |
---|---|
STATE_UNSPECIFIED |
Sentinel value; do not use. |
PENDING |
The approval is pending response from the provider. The approval state can transition to |
APPROVED |
The approval has been granted by the provider. |
REJECTED |
The approval has been rejected by the provider. A provider may choose to approve a previously rejected approval, so is it possible to transition to |
Methods |
|
---|---|
|
Grants an approval on an Account . |
|
Gets a requested Account resource. |
|
Lists Account s that the provider has access to. |
|
Rejects an approval on an Account . |
|
Resets an Account and cancels all associated Entitlement s. |