UNPKG

wallee

Version:
39 lines (38 loc) 1.97 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfExpressCheckoutShippingAddressChangeRequest = instanceOfExpressCheckoutShippingAddressChangeRequest; exports.ExpressCheckoutShippingAddressChangeRequestFromJSON = ExpressCheckoutShippingAddressChangeRequestFromJSON; exports.ExpressCheckoutShippingAddressChangeRequestFromJSONTyped = ExpressCheckoutShippingAddressChangeRequestFromJSONTyped; exports.ExpressCheckoutShippingAddressChangeRequestToJSON = ExpressCheckoutShippingAddressChangeRequestToJSON; exports.ExpressCheckoutShippingAddressChangeRequestToJSONTyped = ExpressCheckoutShippingAddressChangeRequestToJSONTyped; const Address_1 = require("./Address"); /** * Check if a given object implements the ExpressCheckoutShippingAddressChangeRequest interface. */ function instanceOfExpressCheckoutShippingAddressChangeRequest(value) { return true; } function ExpressCheckoutShippingAddressChangeRequestFromJSON(json) { return ExpressCheckoutShippingAddressChangeRequestFromJSONTyped(json, false); } function ExpressCheckoutShippingAddressChangeRequestFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'shippingAddress': json['shippingAddress'] == null ? undefined : (0, Address_1.AddressFromJSON)(json['shippingAddress']), 'billingAddress': json['billingAddress'] == null ? undefined : (0, Address_1.AddressFromJSON)(json['billingAddress']), }; } function ExpressCheckoutShippingAddressChangeRequestToJSON(json) { return ExpressCheckoutShippingAddressChangeRequestToJSONTyped(json, false); } function ExpressCheckoutShippingAddressChangeRequestToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'shippingAddress': (0, Address_1.AddressToJSON)(value['shippingAddress']), 'billingAddress': (0, Address_1.AddressToJSON)(value['billingAddress']), }; }