UNPKG

@getopenpay/client

Version:

OpenPay API TypeScript SDK

51 lines (50 loc) 1.68 kB
"use strict"; /* 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.instanceOfProcessBatchRequest = instanceOfProcessBatchRequest; exports.ProcessBatchRequestFromJSON = ProcessBatchRequestFromJSON; exports.ProcessBatchRequestFromJSONTyped = ProcessBatchRequestFromJSONTyped; exports.ProcessBatchRequestToJSON = ProcessBatchRequestToJSON; exports.ProcessBatchRequestToJSONTyped = ProcessBatchRequestToJSONTyped; /** * Check if a given object implements the ProcessBatchRequest interface. */ function instanceOfProcessBatchRequest(value) { return true; } function ProcessBatchRequestFromJSON(json) { return ProcessBatchRequestFromJSONTyped(json, false); } function ProcessBatchRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'dryRun': json['dry_run'] == null ? undefined : json['dry_run'], 'finalizeInvoices': json['finalize_invoices'] == null ? undefined : json['finalize_invoices'], }; } function ProcessBatchRequestToJSON(json) { return ProcessBatchRequestToJSONTyped(json, false); } function ProcessBatchRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'dry_run': value['dryRun'], 'finalize_invoices': value['finalizeInvoices'], }; }