wallee
Version:
TypeScript/JavaScript client for wallee
40 lines (39 loc) • 1.9 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPaymentAppRefundConfigurationCreate = instanceOfPaymentAppRefundConfigurationCreate;
exports.PaymentAppRefundConfigurationCreateFromJSON = PaymentAppRefundConfigurationCreateFromJSON;
exports.PaymentAppRefundConfigurationCreateFromJSONTyped = PaymentAppRefundConfigurationCreateFromJSONTyped;
exports.PaymentAppRefundConfigurationCreateToJSON = PaymentAppRefundConfigurationCreateToJSON;
exports.PaymentAppRefundConfigurationCreateToJSONTyped = PaymentAppRefundConfigurationCreateToJSONTyped;
/**
* Check if a given object implements the PaymentAppRefundConfigurationCreate interface.
*/
function instanceOfPaymentAppRefundConfigurationCreate(value) {
return true;
}
function PaymentAppRefundConfigurationCreateFromJSON(json) {
return PaymentAppRefundConfigurationCreateFromJSONTyped(json, false);
}
function PaymentAppRefundConfigurationCreateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'refundTimeoutInMinutes': json['refundTimeoutInMinutes'] == null ? undefined : json['refundTimeoutInMinutes'],
'multipleRefundsSupported': json['multipleRefundsSupported'] == null ? undefined : json['multipleRefundsSupported'],
'refundEndpoint': json['refundEndpoint'] == null ? undefined : json['refundEndpoint'],
};
}
function PaymentAppRefundConfigurationCreateToJSON(json) {
return PaymentAppRefundConfigurationCreateToJSONTyped(json, false);
}
function PaymentAppRefundConfigurationCreateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'refundTimeoutInMinutes': value['refundTimeoutInMinutes'],
'multipleRefundsSupported': value['multipleRefundsSupported'],
'refundEndpoint': value['refundEndpoint'],
};
}