UNPKG

wallee

Version:
41 lines (40 loc) 1.7 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentAppVoidUpdate = instanceOfPaymentAppVoidUpdate; exports.PaymentAppVoidUpdateFromJSON = PaymentAppVoidUpdateFromJSON; exports.PaymentAppVoidUpdateFromJSONTyped = PaymentAppVoidUpdateFromJSONTyped; exports.PaymentAppVoidUpdateToJSON = PaymentAppVoidUpdateToJSON; exports.PaymentAppVoidUpdateToJSONTyped = PaymentAppVoidUpdateToJSONTyped; const PaymentAppVoidTargetState_1 = require("./PaymentAppVoidTargetState"); /** * Check if a given object implements the PaymentAppVoidUpdate interface. */ function instanceOfPaymentAppVoidUpdate(value) { return true; } function PaymentAppVoidUpdateFromJSON(json) { return PaymentAppVoidUpdateFromJSONTyped(json, false); } function PaymentAppVoidUpdateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'reference': json['reference'] == null ? undefined : json['reference'], 'targetState': json['targetState'] == null ? undefined : (0, PaymentAppVoidTargetState_1.PaymentAppVoidTargetStateFromJSON)(json['targetState']), 'failureReason': json['failureReason'] == null ? undefined : json['failureReason'], }; } function PaymentAppVoidUpdateToJSON(json) { return PaymentAppVoidUpdateToJSONTyped(json, false); } function PaymentAppVoidUpdateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'reference': value['reference'], 'targetState': (0, PaymentAppVoidTargetState_1.PaymentAppVoidTargetStateToJSON)(value['targetState']), 'failureReason': value['failureReason'], }; }