Skip to main content

payment_mean_deferred_payment_accounts

Creates, updates, deletes, gets or lists a payment_mean_deferred_payment_accounts resource.

Overview​

Namepayment_mean_deferred_payment_accounts
TypeResource
Idovh.me.payment_mean_deferred_payment_accounts

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
creation_datestring (date-time)Creation date of this deferred account (wire: creationDate)
default_payment_meanbooleanThis deferred account is the default payment mean? (wire: defaultPaymentMean)
descriptionstringCustom description of this deferred account
iconobjectPayment method type icon
labelstringDeferred account type
statestringDeferred account state (failed, valid)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet this object properties
listselectx_pagination_modeList of payment mean deferred accounts
updateupdateidAlter this object properties
choose_as_default_payment_meanexecidChoose this deferred account as your default payment mean. Will cancel the previous choice.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
idintegerId
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get this object properties

SELECT
id,
creation_date,
default_payment_mean,
description,
icon,
label,
state
FROM ovh.me.payment_mean_deferred_payment_accounts
WHERE id = '{{ id }}' -- required
;

UPDATE examples​

Alter this object properties

UPDATE ovh.me.payment_mean_deferred_payment_accounts
SET
description = '{{ description }}'
WHERE
id = '{{ id }}' --required;

Lifecycle Methods​

EXEC variables use wire (API) names.

Choose this deferred account as your default payment mean. Will cancel the previous choice.

EXEC ovh.me.payment_mean_deferred_payment_accounts.choose_as_default_payment_mean
@id='{{ id }}' --required
;