wallee
Version:
TypeScript/JavaScript client for wallee
43 lines (42 loc) • 1.95 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDebtCollectionReceipt = instanceOfDebtCollectionReceipt;
exports.DebtCollectionReceiptFromJSON = DebtCollectionReceiptFromJSON;
exports.DebtCollectionReceiptFromJSONTyped = DebtCollectionReceiptFromJSONTyped;
exports.DebtCollectionReceiptToJSON = DebtCollectionReceiptToJSON;
exports.DebtCollectionReceiptToJSONTyped = DebtCollectionReceiptToJSONTyped;
/**
* Check if a given object implements the DebtCollectionReceipt interface.
*/
function instanceOfDebtCollectionReceipt(value) {
return true;
}
function DebtCollectionReceiptFromJSON(json) {
return DebtCollectionReceiptFromJSONTyped(json, false);
}
function DebtCollectionReceiptFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'],
'amount': json['amount'] == null ? undefined : json['amount'],
'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])),
'externalId': json['externalId'] == null ? undefined : json['externalId'],
'debtCollectionCase': json['debtCollectionCase'] == null ? undefined : json['debtCollectionCase'],
'id': json['id'] == null ? undefined : json['id'],
'source': json['source'] == null ? undefined : json['source'],
'createdOn': json['createdOn'] == null ? undefined : (new Date(json['createdOn'])),
'version': json['version'] == null ? undefined : json['version'],
};
}
function DebtCollectionReceiptToJSON(json) {
return DebtCollectionReceiptToJSONTyped(json, false);
}
function DebtCollectionReceiptToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}