wallee
Version:
TypeScript/JavaScript client for wallee
29 lines (28 loc) • 1.11 kB
JavaScript
import { LineItemFromJSON, } from './LineItem';
/**
* Check if a given object implements the ExpressCheckoutShippingMethodChangeResponse interface.
*/
export function instanceOfExpressCheckoutShippingMethodChangeResponse(value) {
return true;
}
export function ExpressCheckoutShippingMethodChangeResponseFromJSON(json) {
return ExpressCheckoutShippingMethodChangeResponseFromJSONTyped(json, false);
}
export function ExpressCheckoutShippingMethodChangeResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'lineItems': json['lineItems'] == null ? undefined : (json['lineItems'].map(LineItemFromJSON)),
'orderTotal': json['orderTotal'] == null ? undefined : json['orderTotal'],
};
}
export function ExpressCheckoutShippingMethodChangeResponseToJSON(json) {
return ExpressCheckoutShippingMethodChangeResponseToJSONTyped(json, false);
}
export function ExpressCheckoutShippingMethodChangeResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}