Merchant API . accounts . developerRegistration

Instance Methods

close()

Close httplib2 connections.

getAccountForGcpRegistration(x__xgafv=None)

Retrieves the merchant account that the calling GCP is registered with.

getDeveloperRegistration(name, x__xgafv=None)

Retrieves a developer registration for a merchant.

registerGcp(name, body=None, x__xgafv=None)

Registers the GCP used for the API call to the shopping account passed in the request. Will create a user with an "API developer" and add the "developer_email" as a contact with "API notifications" email preference on.

unregisterGcp(name, body=None, x__xgafv=None)

Unregister the calling GCP from the calling shopping account. Note that the GCP will still be able to access the API for at most 1 day from the unregister succussful call.

Method Details

close()
Close httplib2 connections.
getAccountForGcpRegistration(x__xgafv=None)
Retrieves the merchant account that the calling GCP is registered with.

Args:
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for the GetAccountForGcpRegistration method.
  "name": "A String", # The name of the merchant account id that the GCP is registered with.
}
getDeveloperRegistration(name, x__xgafv=None)
Retrieves a developer registration for a merchant.

Args:
  name: string, Required. The `name` (ID) of the developer registration. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a developer registration owned by a Merchant account.
  "gcpIds": [ # Output only. The GCP ids attached to this developer registration
    "A String",
  ],
  "name": "A String", # Identifier. The `name` (ID) of the developer registration. Generated upon creation of a new `DeveloperRegistration`. The `account` represents the merchant ID of the merchant that owns the registration.
}
registerGcp(name, body=None, x__xgafv=None)
Registers the GCP used for the API call to the shopping account passed in the request. Will create a user with an "API developer" and add the "developer_email" as a contact with "API notifications" email preference on.

Args:
  name: string, Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: `accounts/{account}/developerRegistration` (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for the RegisterGCP method.
  "developerEmail": "A String", # Immutable. Optional field. Developer role can be also added by using `users.update` method. If the developer email provided is associated with a user in the provided merchant account, the user will be updated to have `API_DEVELOPER` `access_rights` and the email preference corresponding to that user will be updated to have the new API notifications preference. If the developer email provided is not associated with any user, it is added as a contact. The email preference corresponding to that contact will have the new API notifications preference. Make sure the email used is associated with a Google Account and is not a service account as service accounts can't receive emails.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Represents a developer registration owned by a Merchant account.
  "gcpIds": [ # Output only. The GCP ids attached to this developer registration
    "A String",
  ],
  "name": "A String", # Identifier. The `name` (ID) of the developer registration. Generated upon creation of a new `DeveloperRegistration`. The `account` represents the merchant ID of the merchant that owns the registration.
}
unregisterGcp(name, body=None, x__xgafv=None)
Unregister the calling GCP from the calling shopping account. Note that the GCP will still be able to access the API for at most 1 day from the unregister succussful call.

Args:
  name: string, Required. The name of the developer registration to be created for the merchant account that the GCP will be registered with. Format: `accounts/{account}/developerRegistration` (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for the UnregisterGCP method.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
}