wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.21 kB
JavaScript
/**
* Check if a given object implements the PaymentTerminalTransactionSummaryReference interface.
*/
export function instanceOfPaymentTerminalTransactionSummaryReference(value) {
return true;
}
export function PaymentTerminalTransactionSummaryReferenceFromJSON(json) {
return PaymentTerminalTransactionSummaryReferenceFromJSONTyped(json, false);
}
export function PaymentTerminalTransactionSummaryReferenceFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'],
'id': json['id'] == null ? undefined : json['id'],
'terminalId': json['terminalId'] == null ? undefined : json['terminalId'],
'terminalIdentifier': json['terminalIdentifier'] == null ? undefined : json['terminalIdentifier'],
};
}
export function PaymentTerminalTransactionSummaryReferenceToJSON(json) {
return PaymentTerminalTransactionSummaryReferenceToJSONTyped(json, false);
}
export function PaymentTerminalTransactionSummaryReferenceToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}