@getopenpay/client
Version:
OpenPay API TypeScript SDK
56 lines (55 loc) • 2.06 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.instanceOfProcessorProviderPair = instanceOfProcessorProviderPair;
exports.ProcessorProviderPairFromJSON = ProcessorProviderPairFromJSON;
exports.ProcessorProviderPairFromJSONTyped = ProcessorProviderPairFromJSONTyped;
exports.ProcessorProviderPairToJSON = ProcessorProviderPairToJSON;
exports.ProcessorProviderPairToJSONTyped = ProcessorProviderPairToJSONTyped;
const PaymentProviderType_1 = require("./PaymentProviderType");
/**
* Check if a given object implements the ProcessorProviderPair interface.
*/
function instanceOfProcessorProviderPair(value) {
if (!('provider' in value) || value['provider'] === undefined)
return false;
return true;
}
function ProcessorProviderPairFromJSON(json) {
return ProcessorProviderPairFromJSONTyped(json, false);
}
function ProcessorProviderPairFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'processorId': json['processor_id'] == null ? undefined : json['processor_id'],
'processorName': json['processor_name'] == null ? undefined : json['processor_name'],
'provider': (0, PaymentProviderType_1.PaymentProviderTypeFromJSON)(json['provider']),
};
}
function ProcessorProviderPairToJSON(json) {
return ProcessorProviderPairToJSONTyped(json, false);
}
function ProcessorProviderPairToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'processor_id': value['processorId'],
'processor_name': value['processorName'],
'provider': (0, PaymentProviderType_1.PaymentProviderTypeToJSON)(value['provider']),
};
}