@getopenpay/client
Version:
OpenPay API TypeScript SDK
56 lines (55 loc) • 2.02 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.instanceOfCreateProductBundleRequest = instanceOfCreateProductBundleRequest;
exports.CreateProductBundleRequestFromJSON = CreateProductBundleRequestFromJSON;
exports.CreateProductBundleRequestFromJSONTyped = CreateProductBundleRequestFromJSONTyped;
exports.CreateProductBundleRequestToJSON = CreateProductBundleRequestToJSON;
exports.CreateProductBundleRequestToJSONTyped = CreateProductBundleRequestToJSONTyped;
const CreateBundleItem_1 = require("./CreateBundleItem");
/**
* Check if a given object implements the CreateProductBundleRequest interface.
*/
function instanceOfCreateProductBundleRequest(value) {
if (!('bundleItems' in value) || value['bundleItems'] === undefined)
return false;
if (!('name' in value) || value['name'] === undefined)
return false;
return true;
}
function CreateProductBundleRequestFromJSON(json) {
return CreateProductBundleRequestFromJSONTyped(json, false);
}
function CreateProductBundleRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'bundleItems': (json['bundle_items'].map(CreateBundleItem_1.CreateBundleItemFromJSON)),
'name': json['name'],
};
}
function CreateProductBundleRequestToJSON(json) {
return CreateProductBundleRequestToJSONTyped(json, false);
}
function CreateProductBundleRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'bundle_items': (value['bundleItems'].map(CreateBundleItem_1.CreateBundleItemToJSON)),
'name': value['name'],
};
}