View Source GoogleApi.Reseller.V1.Api.Subscriptions (google_api_reseller v0.18.0)
API calls for all endpoints tagged Subscriptions
.
Summary
Functions
Activates a subscription previously suspended by the reseller. If you did not suspend the customer subscription and it is suspended for any other reason, such as for abuse or a pending ToS acceptance, this call will not reactivate the customer subscription.
Updates a subscription plan. Use this method to update a plan for a 30-day trial or a flexible plan subscription to an annual commitment plan with monthly or yearly payments. How a plan is updated differs depending on the plan and the products. For more information, see the description in manage subscriptions.
Updates a user license's renewal settings. This is applicable for accounts with annual commitment plans only. For more information, see the description in manage subscriptions.
Updates a subscription's user license settings. For more information about updating an annual commitment plan or a flexible plan subscription’s licenses, see Manage Subscriptions.
Cancels, suspends, or transfers a subscription to direct.
Gets a specific subscription. The subscriptionId
can be found using the Retrieve all reseller subscriptions method. For more information about retrieving a specific subscription, see the information descrived in manage subscriptions.
Creates or transfer a subscription. Create a subscription for a customer's account that you ordered using the Order a new customer account method. For more information about creating a subscription for different payment plans, see manage subscriptions.\ If you did not order the customer's account using the customer insert method, use the customer's customerAuthToken
when creating a subscription for that customer. If transferring a G Suite subscription with an associated Google Drive or Google Vault subscription, use the batch operation to transfer all of these subscriptions. For more information, see how to transfer subscriptions.
Lists of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscriptions. Optionally, this method can filter the response by a customerNamePrefix
. For more information, see manage subscriptions.
Immediately move a 30-day free trial subscription to a paid service subscription. This method is only applicable if a payment plan has already been set up for the 30-day trial subscription. For more information, see manage subscriptions.
Suspends an active subscription. You can use this method to suspend a paid subscription that is currently in the ACTIVE
state. For FLEXIBLE
subscriptions, billing is paused. For ANNUAL_MONTHLY_PAY
or ANNUAL_YEARLY_PAY
subscriptions: Suspending the subscription does not change the renewal date that was originally committed to. A suspended subscription does not renew. If you activate the subscription after the original renewal date, a new annual subscription will be created, starting on the day of activation. We strongly encourage you to suspend subscriptions only for short periods of time as suspensions over 60 days may result in the subscription being cancelled.
Functions
reseller_subscriptions_activate(connection, customer_id, subscription_id, optional_params \\ [], opts \\ [])
View Source@spec reseller_subscriptions_activate( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Reseller.V1.Model.Subscription.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Activates a subscription previously suspended by the reseller. If you did not suspend the customer subscription and it is suspended for any other reason, such as for abuse or a pending ToS acceptance, this call will not reactivate the customer subscription.
Parameters
-
connection
(type:GoogleApi.Reseller.V1.Connection.t
) - Connection to server -
customer_id
(type:String.t
) - This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. -
subscription_id
(type:String.t
) - This is a required property. ThesubscriptionId
is the subscription identifier and is unique for each customer. Since asubscriptionId
changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And thesubscriptionId
can be found using the retrieve all reseller subscriptions method. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.Reseller.V1.Model.Subscription{}}
on success -
{:error, info}
on failure
reseller_subscriptions_change_plan(connection, customer_id, subscription_id, optional_params \\ [], opts \\ [])
View Source@spec reseller_subscriptions_change_plan( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Reseller.V1.Model.Subscription.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Updates a subscription plan. Use this method to update a plan for a 30-day trial or a flexible plan subscription to an annual commitment plan with monthly or yearly payments. How a plan is updated differs depending on the plan and the products. For more information, see the description in manage subscriptions.
Parameters
-
connection
(type:GoogleApi.Reseller.V1.Connection.t
) - Connection to server -
customer_id
(type:String.t
) - This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. -
subscription_id
(type:String.t
) - This is a required property. ThesubscriptionId
is the subscription identifier and is unique for each customer. Since asubscriptionId
changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And thesubscriptionId
can be found using the retrieve all reseller subscriptions method. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.Reseller.V1.Model.ChangePlanRequest.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.Reseller.V1.Model.Subscription{}}
on success -
{:error, info}
on failure
reseller_subscriptions_change_renewal_settings(connection, customer_id, subscription_id, optional_params \\ [], opts \\ [])
View Source@spec reseller_subscriptions_change_renewal_settings( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Reseller.V1.Model.Subscription.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Updates a user license's renewal settings. This is applicable for accounts with annual commitment plans only. For more information, see the description in manage subscriptions.
Parameters
-
connection
(type:GoogleApi.Reseller.V1.Connection.t
) - Connection to server -
customer_id
(type:String.t
) - This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. -
subscription_id
(type:String.t
) - This is a required property. ThesubscriptionId
is the subscription identifier and is unique for each customer. Since asubscriptionId
changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And thesubscriptionId
can be found using the retrieve all reseller subscriptions method. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.Reseller.V1.Model.RenewalSettings.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.Reseller.V1.Model.Subscription{}}
on success -
{:error, info}
on failure
reseller_subscriptions_change_seats(connection, customer_id, subscription_id, optional_params \\ [], opts \\ [])
View Source@spec reseller_subscriptions_change_seats( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Reseller.V1.Model.Subscription.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Updates a subscription's user license settings. For more information about updating an annual commitment plan or a flexible plan subscription’s licenses, see Manage Subscriptions.
Parameters
-
connection
(type:GoogleApi.Reseller.V1.Connection.t
) - Connection to server -
customer_id
(type:String.t
) - This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. -
subscription_id
(type:String.t
) - This is a required property. ThesubscriptionId
is the subscription identifier and is unique for each customer. Since asubscriptionId
changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And thesubscriptionId
can be found using the retrieve all reseller subscriptions method. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:body
(type:GoogleApi.Reseller.V1.Model.Seats.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.Reseller.V1.Model.Subscription{}}
on success -
{:error, info}
on failure
reseller_subscriptions_delete(connection, customer_id, subscription_id, deletion_type, optional_params \\ [], opts \\ [])
View Source@spec reseller_subscriptions_delete( Tesla.Env.client(), String.t(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Cancels, suspends, or transfers a subscription to direct.
Parameters
-
connection
(type:GoogleApi.Reseller.V1.Connection.t
) - Connection to server -
customer_id
(type:String.t
) - This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. -
subscription_id
(type:String.t
) - This is a required property. ThesubscriptionId
is the subscription identifier and is unique for each customer. Since asubscriptionId
changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And thesubscriptionId
can be found using the retrieve all reseller subscriptions method. -
deletion_type
(type:String.t
) - ThedeletionType
query string enables the cancellation, downgrade, or suspension of a subscription. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %{}}
on success -
{:error, info}
on failure
reseller_subscriptions_get(connection, customer_id, subscription_id, optional_params \\ [], opts \\ [])
View Source@spec reseller_subscriptions_get( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Reseller.V1.Model.Subscription.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Gets a specific subscription. The subscriptionId
can be found using the Retrieve all reseller subscriptions method. For more information about retrieving a specific subscription, see the information descrived in manage subscriptions.
Parameters
-
connection
(type:GoogleApi.Reseller.V1.Connection.t
) - Connection to server -
customer_id
(type:String.t
) - This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. -
subscription_id
(type:String.t
) - This is a required property. ThesubscriptionId
is the subscription identifier and is unique for each customer. Since asubscriptionId
changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And thesubscriptionId
can be found using the retrieve all reseller subscriptions method. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.Reseller.V1.Model.Subscription{}}
on success -
{:error, info}
on failure
reseller_subscriptions_insert(connection, customer_id, optional_params \\ [], opts \\ [])
View Source@spec reseller_subscriptions_insert( Tesla.Env.client(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Reseller.V1.Model.Subscription.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Creates or transfer a subscription. Create a subscription for a customer's account that you ordered using the Order a new customer account method. For more information about creating a subscription for different payment plans, see manage subscriptions.\ If you did not order the customer's account using the customer insert method, use the customer's customerAuthToken
when creating a subscription for that customer. If transferring a G Suite subscription with an associated Google Drive or Google Vault subscription, use the batch operation to transfer all of these subscriptions. For more information, see how to transfer subscriptions.
Parameters
-
connection
(type:GoogleApi.Reseller.V1.Connection.t
) - Connection to server -
customer_id
(type:String.t
) - This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:action
(type:String.t
) - The intented insert action. The usage of this field is governed by certain policies which are being developed & tested currently. Hence, these might not work as intended. Once this is fully tested & available to consume, we will share more information about its usage, limitations and policy documentation. -
:customerAuthToken
(type:String.t
) - ThecustomerAuthToken
query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center. -
:sourceSkuId
(type:String.t
) - The sku_id of the existing subscription to be upgraded or downgraded. This is required when action is SWITCH. The usage of this field is governed by certain policies which are being developed & tested currently. Hence, these might not work as intended. Once this is fully tested & available to consume, we will share more information about its usage, limitations and policy documentation. -
:body
(type:GoogleApi.Reseller.V1.Model.Subscription.t
) -
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.Reseller.V1.Model.Subscription{}}
on success -
{:error, info}
on failure
reseller_subscriptions_list(connection, optional_params \\ [], opts \\ [])
View Source@spec reseller_subscriptions_list(Tesla.Env.client(), keyword(), keyword()) :: {:ok, GoogleApi.Reseller.V1.Model.Subscriptions.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Lists of subscriptions managed by the reseller. The list can be all subscriptions, all of a customer's subscriptions, or all of a customer's transferable subscriptions. Optionally, this method can filter the response by a customerNamePrefix
. For more information, see manage subscriptions.
Parameters
-
connection
(type:GoogleApi.Reseller.V1.Connection.t
) - Connection to server -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart"). -
:customerAuthToken
(type:String.t
) - ThecustomerAuthToken
query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center. -
:customerId
(type:String.t
) - This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. -
:customerNamePrefix
(type:String.t
) - When retrieving all of your subscriptions and filtering for specific customers, you can enter a prefix for a customer name. Using an example customer group that includesexam.com
,example20.com
andexample.com
: -exa
-- Returns all customer names that start with 'exa' which could includeexam.com
,example20.com
, andexample.com
. A name prefix is similar to using a regular expression's asterisk, exa*. -example
-- Returnsexample20.com
andexample.com
. -
:maxResults
(type:integer()
) - When retrieving a large list, themaxResults
is the maximum number of results per page. ThenextPageToken
value takes you to the next page. The default is 20. -
:pageToken
(type:String.t
) - Token to specify next page in the list
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.Reseller.V1.Model.Subscriptions{}}
on success -
{:error, info}
on failure
reseller_subscriptions_start_paid_service(connection, customer_id, subscription_id, optional_params \\ [], opts \\ [])
View Source@spec reseller_subscriptions_start_paid_service( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Reseller.V1.Model.Subscription.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Immediately move a 30-day free trial subscription to a paid service subscription. This method is only applicable if a payment plan has already been set up for the 30-day trial subscription. For more information, see manage subscriptions.
Parameters
-
connection
(type:GoogleApi.Reseller.V1.Connection.t
) - Connection to server -
customer_id
(type:String.t
) - This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. -
subscription_id
(type:String.t
) - This is a required property. ThesubscriptionId
is the subscription identifier and is unique for each customer. Since asubscriptionId
changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And thesubscriptionId
can be found using the retrieve all reseller subscriptions method. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.Reseller.V1.Model.Subscription{}}
on success -
{:error, info}
on failure
reseller_subscriptions_suspend(connection, customer_id, subscription_id, optional_params \\ [], opts \\ [])
View Source@spec reseller_subscriptions_suspend( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, GoogleApi.Reseller.V1.Model.Subscription.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()}
Suspends an active subscription. You can use this method to suspend a paid subscription that is currently in the ACTIVE
state. For FLEXIBLE
subscriptions, billing is paused. For ANNUAL_MONTHLY_PAY
or ANNUAL_YEARLY_PAY
subscriptions: Suspending the subscription does not change the renewal date that was originally committed to. A suspended subscription does not renew. If you activate the subscription after the original renewal date, a new annual subscription will be created, starting on the day of activation. We strongly encourage you to suspend subscriptions only for short periods of time as suspensions over 60 days may result in the subscription being cancelled.
Parameters
-
connection
(type:GoogleApi.Reseller.V1.Connection.t
) - Connection to server -
customer_id
(type:String.t
) - This can be either the customer's primary domain name or the customer's unique identifier. If the domain name for a customer changes, the old domain name cannot be used to access the customer, but the customer's unique identifier (as returned by the API) can always be used. We recommend storing the unique identifier in your systems where applicable. -
subscription_id
(type:String.t
) - This is a required property. ThesubscriptionId
is the subscription identifier and is unique for each customer. Since asubscriptionId
changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And thesubscriptionId
can be found using the retrieve all reseller subscriptions method. -
optional_params
(type:keyword()
) - Optional parameters-
:"$.xgafv"
(type:String.t
) - V1 error format. -
:access_token
(type:String.t
) - OAuth access token. -
:alt
(type:String.t
) - Data format for response. -
:callback
(type:String.t
) - JSONP -
:fields
(type:String.t
) - Selector specifying which fields to include in a partial response. -
:key
(type:String.t
) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. -
:oauth_token
(type:String.t
) - OAuth 2.0 token for the current user. -
:prettyPrint
(type:boolean()
) - Returns response with indentations and line breaks. -
:quotaUser
(type:String.t
) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. -
:uploadType
(type:String.t
) - Legacy upload protocol for media (e.g. "media", "multipart"). -
:upload_protocol
(type:String.t
) - Upload protocol for media (e.g. "raw", "multipart").
-
-
opts
(type:keyword()
) - Call options
Returns
-
{:ok, %GoogleApi.Reseller.V1.Model.Subscription{}}
on success -
{:error, info}
on failure