UNPKG

facebook-nodejs-business-sdk

Version:
46 lines (41 loc) 1.12 kB
/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the * LICENSE file in the root directory of this source tree. * @flow */ import {AbstractCrudObject} from './../abstract-crud-object'; /** * Destination * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class Destination extends AbstractCrudObject { static get Fields (): Object { return Object.freeze({ address: 'address', applinks: 'applinks', category_specific_fields: 'category_specific_fields', currency: 'currency', description: 'description', destination_id: 'destination_id', id: 'id', images: 'images', name: 'name', price: 'price', price_change: 'price_change', sanitized_images: 'sanitized_images', types: 'types', url: 'url', }); } get (fields: Array<string>, params: Object = {}): Destination { // $FlowFixMe : Support Generic Types return this.read( fields, params ); } }