wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfInvoiceSearchResponse = instanceOfInvoiceSearchResponse;
exports.InvoiceSearchResponseFromJSON = InvoiceSearchResponseFromJSON;
exports.InvoiceSearchResponseFromJSONTyped = InvoiceSearchResponseFromJSONTyped;
exports.InvoiceSearchResponseToJSON = InvoiceSearchResponseToJSON;
exports.InvoiceSearchResponseToJSONTyped = InvoiceSearchResponseToJSONTyped;
const TransactionInvoice_1 = require("./TransactionInvoice");
/**
* Check if a given object implements the InvoiceSearchResponse interface.
*/
function instanceOfInvoiceSearchResponse(value) {
return true;
}
function InvoiceSearchResponseFromJSON(json) {
return InvoiceSearchResponseFromJSONTyped(json, false);
}
function InvoiceSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(TransactionInvoice_1.TransactionInvoiceFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function InvoiceSearchResponseToJSON(json) {
return InvoiceSearchResponseToJSONTyped(json, false);
}
function InvoiceSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}