UNPKG

facebook-nodejs-business-sdk

Version:

SDK for the Facebook Marketing API in Javascript and Node.js

51 lines (45 loc) 1.31 kB
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * 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'; /** * CPASCollaborationRequest * @extends AbstractCrudObject * @see {@link https://developers.facebook.com/docs/marketing-api/} */ export default class CPASCollaborationRequest extends AbstractCrudObject { static get Fields (): Object { return Object.freeze({ brands: 'brands', contact_email: 'contact_email', contact_first_name: 'contact_first_name', contact_last_name: 'contact_last_name', id: 'id', phone_number: 'phone_number', receiver_business: 'receiver_business', requester_agency_or_brand: 'requester_agency_or_brand', sender_client_business: 'sender_client_business', status: 'status', }); } static get RequesterAgencyOrBrand (): Object { return Object.freeze({ agency: 'AGENCY', brand: 'BRAND', merchant: 'MERCHANT', }); } get (fields: Array<string>, params: Object = {}): CPASCollaborationRequest { // $FlowFixMe : Support Generic Types return this.read( fields, params ); } }