wallee
Version:
TypeScript/JavaScript client for wallee
41 lines (40 loc) • 1.75 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPaymentAppRefundUpdate = instanceOfPaymentAppRefundUpdate;
exports.PaymentAppRefundUpdateFromJSON = PaymentAppRefundUpdateFromJSON;
exports.PaymentAppRefundUpdateFromJSONTyped = PaymentAppRefundUpdateFromJSONTyped;
exports.PaymentAppRefundUpdateToJSON = PaymentAppRefundUpdateToJSON;
exports.PaymentAppRefundUpdateToJSONTyped = PaymentAppRefundUpdateToJSONTyped;
const PaymentAppRefundTargetState_1 = require("./PaymentAppRefundTargetState");
/**
* Check if a given object implements the PaymentAppRefundUpdate interface.
*/
function instanceOfPaymentAppRefundUpdate(value) {
return true;
}
function PaymentAppRefundUpdateFromJSON(json) {
return PaymentAppRefundUpdateFromJSONTyped(json, false);
}
function PaymentAppRefundUpdateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'reference': json['reference'] == null ? undefined : json['reference'],
'targetState': json['targetState'] == null ? undefined : (0, PaymentAppRefundTargetState_1.PaymentAppRefundTargetStateFromJSON)(json['targetState']),
'failureReason': json['failureReason'] == null ? undefined : json['failureReason'],
};
}
function PaymentAppRefundUpdateToJSON(json) {
return PaymentAppRefundUpdateToJSONTyped(json, false);
}
function PaymentAppRefundUpdateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'reference': value['reference'],
'targetState': (0, PaymentAppRefundTargetState_1.PaymentAppRefundTargetStateToJSON)(value['targetState']),
'failureReason': value['failureReason'],
};
}