@getopenpay/client
Version:
OpenPay API TypeScript SDK
49 lines (48 loc) • 1.6 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.instanceOfUpdatePaymentLinkRequest = instanceOfUpdatePaymentLinkRequest;
exports.UpdatePaymentLinkRequestFromJSON = UpdatePaymentLinkRequestFromJSON;
exports.UpdatePaymentLinkRequestFromJSONTyped = UpdatePaymentLinkRequestFromJSONTyped;
exports.UpdatePaymentLinkRequestToJSON = UpdatePaymentLinkRequestToJSON;
exports.UpdatePaymentLinkRequestToJSONTyped = UpdatePaymentLinkRequestToJSONTyped;
/**
* Check if a given object implements the UpdatePaymentLinkRequest interface.
*/
function instanceOfUpdatePaymentLinkRequest(value) {
return true;
}
function UpdatePaymentLinkRequestFromJSON(json) {
return UpdatePaymentLinkRequestFromJSONTyped(json, false);
}
function UpdatePaymentLinkRequestFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'pinned': json['pinned'] == null ? undefined : json['pinned'],
};
}
function UpdatePaymentLinkRequestToJSON(json) {
return UpdatePaymentLinkRequestToJSONTyped(json, false);
}
function UpdatePaymentLinkRequestToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'pinned': value['pinned'],
};
}