UNPKG

wallee

Version:
53 lines (52 loc) 2.87 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfAbstractSubscriberUpdate = instanceOfAbstractSubscriberUpdate; exports.AbstractSubscriberUpdateFromJSON = AbstractSubscriberUpdateFromJSON; exports.AbstractSubscriberUpdateFromJSONTyped = AbstractSubscriberUpdateFromJSONTyped; exports.AbstractSubscriberUpdateToJSON = AbstractSubscriberUpdateToJSON; exports.AbstractSubscriberUpdateToJSONTyped = AbstractSubscriberUpdateToJSONTyped; const AddressCreate_1 = require("./AddressCreate"); /** * Check if a given object implements the AbstractSubscriberUpdate interface. */ function instanceOfAbstractSubscriberUpdate(value) { return true; } function AbstractSubscriberUpdateFromJSON(json) { return AbstractSubscriberUpdateFromJSONTyped(json, false); } function AbstractSubscriberUpdateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'reference': json['reference'] == null ? undefined : json['reference'], 'additionalAllowedPaymentMethodConfigurations': json['additionalAllowedPaymentMethodConfigurations'] == null ? undefined : json['additionalAllowedPaymentMethodConfigurations'], 'metaData': json['metaData'] == null ? undefined : json['metaData'], 'emailAddress': json['emailAddress'] == null ? undefined : json['emailAddress'], 'disallowedPaymentMethodConfigurations': json['disallowedPaymentMethodConfigurations'] == null ? undefined : json['disallowedPaymentMethodConfigurations'], 'description': json['description'] == null ? undefined : json['description'], 'shippingAddress': json['shippingAddress'] == null ? undefined : (0, AddressCreate_1.AddressCreateFromJSON)(json['shippingAddress']), 'language': json['language'] == null ? undefined : json['language'], 'billingAddress': json['billingAddress'] == null ? undefined : (0, AddressCreate_1.AddressCreateFromJSON)(json['billingAddress']), }; } function AbstractSubscriberUpdateToJSON(json) { return AbstractSubscriberUpdateToJSONTyped(json, false); } function AbstractSubscriberUpdateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'reference': value['reference'], 'additionalAllowedPaymentMethodConfigurations': value['additionalAllowedPaymentMethodConfigurations'], 'metaData': value['metaData'], 'emailAddress': value['emailAddress'], 'disallowedPaymentMethodConfigurations': value['disallowedPaymentMethodConfigurations'], 'description': value['description'], 'shippingAddress': (0, AddressCreate_1.AddressCreateToJSON)(value['shippingAddress']), 'language': value['language'], 'billingAddress': (0, AddressCreate_1.AddressCreateToJSON)(value['billingAddress']), }; }