wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.88 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPaymentMethodConfigurationSearchResponse = instanceOfPaymentMethodConfigurationSearchResponse;
exports.PaymentMethodConfigurationSearchResponseFromJSON = PaymentMethodConfigurationSearchResponseFromJSON;
exports.PaymentMethodConfigurationSearchResponseFromJSONTyped = PaymentMethodConfigurationSearchResponseFromJSONTyped;
exports.PaymentMethodConfigurationSearchResponseToJSON = PaymentMethodConfigurationSearchResponseToJSON;
exports.PaymentMethodConfigurationSearchResponseToJSONTyped = PaymentMethodConfigurationSearchResponseToJSONTyped;
const PaymentMethodConfiguration_1 = require("./PaymentMethodConfiguration");
/**
* Check if a given object implements the PaymentMethodConfigurationSearchResponse interface.
*/
function instanceOfPaymentMethodConfigurationSearchResponse(value) {
return true;
}
function PaymentMethodConfigurationSearchResponseFromJSON(json) {
return PaymentMethodConfigurationSearchResponseFromJSONTyped(json, false);
}
function PaymentMethodConfigurationSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(PaymentMethodConfiguration_1.PaymentMethodConfigurationFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function PaymentMethodConfigurationSearchResponseToJSON(json) {
return PaymentMethodConfigurationSearchResponseToJSONTyped(json, false);
}
function PaymentMethodConfigurationSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}