wallee
Version:
TypeScript/JavaScript client for wallee
36 lines (35 loc) • 1.75 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfExpressCheckoutShippingMethodChangeResponse = instanceOfExpressCheckoutShippingMethodChangeResponse;
exports.ExpressCheckoutShippingMethodChangeResponseFromJSON = ExpressCheckoutShippingMethodChangeResponseFromJSON;
exports.ExpressCheckoutShippingMethodChangeResponseFromJSONTyped = ExpressCheckoutShippingMethodChangeResponseFromJSONTyped;
exports.ExpressCheckoutShippingMethodChangeResponseToJSON = ExpressCheckoutShippingMethodChangeResponseToJSON;
exports.ExpressCheckoutShippingMethodChangeResponseToJSONTyped = ExpressCheckoutShippingMethodChangeResponseToJSONTyped;
const LineItem_1 = require("./LineItem");
/**
* Check if a given object implements the ExpressCheckoutShippingMethodChangeResponse interface.
*/
function instanceOfExpressCheckoutShippingMethodChangeResponse(value) {
return true;
}
function ExpressCheckoutShippingMethodChangeResponseFromJSON(json) {
return ExpressCheckoutShippingMethodChangeResponseFromJSONTyped(json, false);
}
function ExpressCheckoutShippingMethodChangeResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'lineItems': json['lineItems'] == null ? undefined : (json['lineItems'].map(LineItem_1.LineItemFromJSON)),
'orderTotal': json['orderTotal'] == null ? undefined : json['orderTotal'],
};
}
function ExpressCheckoutShippingMethodChangeResponseToJSON(json) {
return ExpressCheckoutShippingMethodChangeResponseToJSONTyped(json, false);
}
function ExpressCheckoutShippingMethodChangeResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}