wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.55 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPaymentProcessorListResponse = instanceOfPaymentProcessorListResponse;
exports.PaymentProcessorListResponseFromJSON = PaymentProcessorListResponseFromJSON;
exports.PaymentProcessorListResponseFromJSONTyped = PaymentProcessorListResponseFromJSONTyped;
exports.PaymentProcessorListResponseToJSON = PaymentProcessorListResponseToJSON;
exports.PaymentProcessorListResponseToJSONTyped = PaymentProcessorListResponseToJSONTyped;
const PaymentProcessor_1 = require("./PaymentProcessor");
/**
* Check if a given object implements the PaymentProcessorListResponse interface.
*/
function instanceOfPaymentProcessorListResponse(value) {
return true;
}
function PaymentProcessorListResponseFromJSON(json) {
return PaymentProcessorListResponseFromJSONTyped(json, false);
}
function PaymentProcessorListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(PaymentProcessor_1.PaymentProcessorFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function PaymentProcessorListResponseToJSON(json) {
return PaymentProcessorListResponseToJSONTyped(json, false);
}
function PaymentProcessorListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}