import { FedaPayObject } from './FedaPayObject'; import { Resource } from './Resource'; /** * Class Customer * * @property int $id * @property string $firstname * @property string $lastname * @property string $email * @property string $phone * @property string $created_at * @property string $updated_at */ export class Customer extends Resource { protected static ressourceName = 'customer'; /** * @param {string|number} id The customer id * @param {Object|null} params * @param {Object|null} headers * @returns {Promise} */ static retrieve(id, params = {}, headers = {}): Promise { return > this._retrieve(id, params, headers); } /** * @param {Object|null} params * @param {Object|null} headers * * @returns {Promise} */ static all(params = {}, headers = {}): Promise { return > this._all(params, headers); } /** * @param {Object|null} params * @param {Object|null} headers * * @returns {Promise} */ static create(params = {}, headers = {}): Promise { return > this._create(params, headers); } /** * @param {string|number} id The ID of the customer to update. * @param {Object|null} params * @param {Object|null} headers * * @returns {Promise} */ static update(id, params = {}, headers = {}): Promise { return > this._update(id, params, headers); } /** * @param {Object|null} headers * * @returns {Promise} The saved customer. */ save(headers = {}): Promise { return > this._save(headers); } /** * @param {Object|null} headers * * @returns {Promise} Customer The deleted customer. */ delete(headers = {}): Promise { return > this._delete(headers); } }