wallee
Version:
TypeScript/JavaScript client for wallee
36 lines (35 loc) • 1.35 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfLineItemReduction = instanceOfLineItemReduction;
exports.LineItemReductionFromJSON = LineItemReductionFromJSON;
exports.LineItemReductionFromJSONTyped = LineItemReductionFromJSONTyped;
exports.LineItemReductionToJSON = LineItemReductionToJSON;
exports.LineItemReductionToJSONTyped = LineItemReductionToJSONTyped;
/**
* Check if a given object implements the LineItemReduction interface.
*/
function instanceOfLineItemReduction(value) {
return true;
}
function LineItemReductionFromJSON(json) {
return LineItemReductionFromJSONTyped(json, false);
}
function LineItemReductionFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'quantityReduction': json['quantityReduction'] == null ? undefined : json['quantityReduction'],
'unitPriceReduction': json['unitPriceReduction'] == null ? undefined : json['unitPriceReduction'],
'lineItemUniqueId': json['lineItemUniqueId'] == null ? undefined : json['lineItemUniqueId'],
};
}
function LineItemReductionToJSON(json) {
return LineItemReductionToJSONTyped(json, false);
}
function LineItemReductionToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}