UNPKG

@getopenpay/client

Version:

OpenPay API TypeScript SDK

55 lines (54 loc) 2.16 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.instanceOfDeleteSubscriptionResponse = instanceOfDeleteSubscriptionResponse; exports.DeleteSubscriptionResponseFromJSON = DeleteSubscriptionResponseFromJSON; exports.DeleteSubscriptionResponseFromJSONTyped = DeleteSubscriptionResponseFromJSONTyped; exports.DeleteSubscriptionResponseToJSON = DeleteSubscriptionResponseToJSON; exports.DeleteSubscriptionResponseToJSONTyped = DeleteSubscriptionResponseToJSONTyped; const InvoiceExternal_1 = require("./InvoiceExternal"); const SubscriptionExternal_1 = require("./SubscriptionExternal"); /** * Check if a given object implements the DeleteSubscriptionResponse interface. */ function instanceOfDeleteSubscriptionResponse(value) { if (!('subscription' in value) || value['subscription'] === undefined) return false; return true; } function DeleteSubscriptionResponseFromJSON(json) { return DeleteSubscriptionResponseFromJSONTyped(json, false); } function DeleteSubscriptionResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'invoice': json['invoice'] == null ? undefined : (0, InvoiceExternal_1.InvoiceExternalFromJSON)(json['invoice']), 'subscription': (0, SubscriptionExternal_1.SubscriptionExternalFromJSON)(json['subscription']), }; } function DeleteSubscriptionResponseToJSON(json) { return DeleteSubscriptionResponseToJSONTyped(json, false); } function DeleteSubscriptionResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'invoice': (0, InvoiceExternal_1.InvoiceExternalToJSON)(value['invoice']), 'subscription': (0, SubscriptionExternal_1.SubscriptionExternalToJSON)(value['subscription']), }; }