UNPKG

wallee

Version:
29 lines (28 loc) 1.2 kB
import { ExpressCheckoutShippingOptionFromJSON, } from './ExpressCheckoutShippingOption'; /** * Check if a given object implements the ExpressCheckoutShippingAddressChangeResponse interface. */ export function instanceOfExpressCheckoutShippingAddressChangeResponse(value) { return true; } export function ExpressCheckoutShippingAddressChangeResponseFromJSON(json) { return ExpressCheckoutShippingAddressChangeResponseFromJSONTyped(json, false); } export 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(ExpressCheckoutShippingOptionFromJSON)), }; } export function ExpressCheckoutShippingAddressChangeResponseToJSON(json) { return ExpressCheckoutShippingAddressChangeResponseToJSONTyped(json, false); } export function ExpressCheckoutShippingAddressChangeResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }