UNPKG

wallee

Version:
36 lines (35 loc) 1.87 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfExpressCheckoutShippingAddressChangeResponse = instanceOfExpressCheckoutShippingAddressChangeResponse; exports.ExpressCheckoutShippingAddressChangeResponseFromJSON = ExpressCheckoutShippingAddressChangeResponseFromJSON; exports.ExpressCheckoutShippingAddressChangeResponseFromJSONTyped = ExpressCheckoutShippingAddressChangeResponseFromJSONTyped; exports.ExpressCheckoutShippingAddressChangeResponseToJSON = ExpressCheckoutShippingAddressChangeResponseToJSON; exports.ExpressCheckoutShippingAddressChangeResponseToJSONTyped = ExpressCheckoutShippingAddressChangeResponseToJSONTyped; const ExpressCheckoutShippingOption_1 = require("./ExpressCheckoutShippingOption"); /** * Check if a given object implements the ExpressCheckoutShippingAddressChangeResponse interface. */ function instanceOfExpressCheckoutShippingAddressChangeResponse(value) { return true; } function ExpressCheckoutShippingAddressChangeResponseFromJSON(json) { return ExpressCheckoutShippingAddressChangeResponseFromJSONTyped(json, false); } function ExpressCheckoutShippingAddressChangeResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'orderTotal': json['orderTotal'] == null ? undefined : json['orderTotal'], 'shippingOptions': json['shippingOptions'] == null ? undefined : (json['shippingOptions'].map(ExpressCheckoutShippingOption_1.ExpressCheckoutShippingOptionFromJSON)), }; } function ExpressCheckoutShippingAddressChangeResponseToJSON(json) { return ExpressCheckoutShippingAddressChangeResponseToJSONTyped(json, false); } function ExpressCheckoutShippingAddressChangeResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }