wallee
Version:
TypeScript/JavaScript client for wallee
34 lines (33 loc) • 1.27 kB
JavaScript
import { PaymentAppVoidTargetStateFromJSON, PaymentAppVoidTargetStateToJSON, } from './PaymentAppVoidTargetState';
/**
* Check if a given object implements the PaymentAppVoidUpdate interface.
*/
export function instanceOfPaymentAppVoidUpdate(value) {
return true;
}
export function PaymentAppVoidUpdateFromJSON(json) {
return PaymentAppVoidUpdateFromJSONTyped(json, false);
}
export function PaymentAppVoidUpdateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'reference': json['reference'] == null ? undefined : json['reference'],
'targetState': json['targetState'] == null ? undefined : PaymentAppVoidTargetStateFromJSON(json['targetState']),
'failureReason': json['failureReason'] == null ? undefined : json['failureReason'],
};
}
export function PaymentAppVoidUpdateToJSON(json) {
return PaymentAppVoidUpdateToJSONTyped(json, false);
}
export function PaymentAppVoidUpdateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'reference': value['reference'],
'targetState': PaymentAppVoidTargetStateToJSON(value['targetState']),
'failureReason': value['failureReason'],
};
}