@getopenpay/client
Version:
OpenPay API TypeScript SDK
56 lines (55 loc) • 1.97 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* OpenPay API
* super charge your subscription management.
*
* The version of the OpenAPI document: 1.2.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfSimpleProcessorFilter = instanceOfSimpleProcessorFilter;
exports.SimpleProcessorFilterFromJSON = SimpleProcessorFilterFromJSON;
exports.SimpleProcessorFilterFromJSONTyped = SimpleProcessorFilterFromJSONTyped;
exports.SimpleProcessorFilterToJSON = SimpleProcessorFilterToJSON;
exports.SimpleProcessorFilterToJSONTyped = SimpleProcessorFilterToJSONTyped;
const SimpleFilterType_1 = require("./SimpleFilterType");
/**
* Check if a given object implements the SimpleProcessorFilter interface.
*/
function instanceOfSimpleProcessorFilter(value) {
if (!('filterType' in value) || value['filterType'] === undefined)
return false;
if (!('processorIds' in value) || value['processorIds'] === undefined)
return false;
return true;
}
function SimpleProcessorFilterFromJSON(json) {
return SimpleProcessorFilterFromJSONTyped(json, false);
}
function SimpleProcessorFilterFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'filterType': (0, SimpleFilterType_1.SimpleFilterTypeFromJSON)(json['filter_type']),
'processorIds': json['processor_ids'],
};
}
function SimpleProcessorFilterToJSON(json) {
return SimpleProcessorFilterToJSONTyped(json, false);
}
function SimpleProcessorFilterToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'filter_type': (0, SimpleFilterType_1.SimpleFilterTypeToJSON)(value['filterType']),
'processor_ids': value['processorIds'],
};
}