fidelity_account_movements
Creates, updates, deletes, gets or lists a fidelity_account_movements resource.
Overview​
| Name | fidelity_account_movements |
| Type | Resource |
| Id | ovh.me.fidelity_account_movements |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
movement_id | integer | (wire: movementId) |
amount | integer | |
balance | integer | |
date | string (date-time) | |
description | string | |
operation | string | Operations a fidelity account movement can represent (bonus, cancel-bonus, cancel-credit, cancel-debit, cancel-pre-debit, credit, debit, pre-credit, pre-debit) |
order | integer | |
previous_balance | integer | (wire: previousBalance) |
Details about a fidelity account
| Name | Datatype | Description |
|---|---|---|
movement_id | integer | (wire: movementId) |
amount | integer | |
balance | integer | |
date | string (date-time) | |
description | string | |
operation | string | Operations a fidelity account movement can represent (bonus, cancel-bonus, cancel-credit, cancel-debit, cancel-pre-debit, credit, debit, pre-credit, pre-debit) |
order | integer | |
previous_balance | integer | (wire: previousBalance) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | movement_id | Get this object properties | |
list | select | date.from, date.to, x_pagination_mode | List of entries of the fidelity account |
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.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The 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"}}) |
movement_id | integer | (wire: movementId) |
date.from | string (date-time) | Filter the value of date property (>=) |
date.to | string (date-time) | Filter the value of date property (<=) |
x_pagination_mode | string | Sent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode) |
SELECT examples​
- get
- list
Get this object properties
SELECT
movement_id,
amount,
balance,
date,
description,
operation,
order,
previous_balance
FROM ovh.me.fidelity_account_movements
WHERE movement_id = '{{ movement_id }}' -- required
;
List of entries of the fidelity account
SELECT
movement_id,
amount,
balance,
date,
description,
operation,
order,
previous_balance
FROM ovh.me.fidelity_account_movements
WHERE date.from = '{{ date.from }}'
AND date.to = '{{ date.to }}'
AND x_pagination_mode = '{{ x_pagination_mode }}'
;