UNPKG

@getopenpay/client

Version:

OpenPay API TypeScript SDK

53 lines (52 loc) 1.85 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.instanceOfDeletePaymentRouteResponse = instanceOfDeletePaymentRouteResponse; exports.DeletePaymentRouteResponseFromJSON = DeletePaymentRouteResponseFromJSON; exports.DeletePaymentRouteResponseFromJSONTyped = DeletePaymentRouteResponseFromJSONTyped; exports.DeletePaymentRouteResponseToJSON = DeletePaymentRouteResponseToJSON; exports.DeletePaymentRouteResponseToJSONTyped = DeletePaymentRouteResponseToJSONTyped; /** * Check if a given object implements the DeletePaymentRouteResponse interface. */ function instanceOfDeletePaymentRouteResponse(value) { if (!('paymentRouteId' in value) || value['paymentRouteId'] === undefined) return false; return true; } function DeletePaymentRouteResponseFromJSON(json) { return DeletePaymentRouteResponseFromJSONTyped(json, false); } function DeletePaymentRouteResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'message': json['message'] == null ? undefined : json['message'], 'paymentRouteId': json['payment_route_id'], }; } function DeletePaymentRouteResponseToJSON(json) { return DeletePaymentRouteResponseToJSONTyped(json, false); } function DeletePaymentRouteResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'message': value['message'], 'payment_route_id': value['paymentRouteId'], }; }