@getopenpay/client
Version:
OpenPay API TypeScript SDK
53 lines (52 loc) • 1.71 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.instanceOfRollbackBatchRequest = instanceOfRollbackBatchRequest;
exports.RollbackBatchRequestFromJSON = RollbackBatchRequestFromJSON;
exports.RollbackBatchRequestFromJSONTyped = RollbackBatchRequestFromJSONTyped;
exports.RollbackBatchRequestToJSON = RollbackBatchRequestToJSON;
exports.RollbackBatchRequestToJSONTyped = RollbackBatchRequestToJSONTyped;
/**
* Check if a given object implements the RollbackBatchRequest interface.
*/
function instanceOfRollbackBatchRequest(value) {
if (!('confirm' in value) || value['confirm'] === undefined)
return false;
return true;
}
function RollbackBatchRequestFromJSON(json) {
return RollbackBatchRequestFromJSONTyped(json, false);
}
function RollbackBatchRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'batchName': json['batch_name'] == null ? undefined : json['batch_name'],
'confirm': json['confirm'],
};
}
function RollbackBatchRequestToJSON(json) {
return RollbackBatchRequestToJSONTyped(json, false);
}
function RollbackBatchRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'batch_name': value['batchName'],
'confirm': value['confirm'],
};
}