wallee
Version:
TypeScript/JavaScript client for wallee
34 lines (33 loc) • 1.47 kB
JavaScript
/**
* Check if a given object implements the PaymentTerminalDccTransactionSum interface.
*/
export function instanceOfPaymentTerminalDccTransactionSum(value) {
return true;
}
export function PaymentTerminalDccTransactionSumFromJSON(json) {
return PaymentTerminalDccTransactionSumFromJSONTyped(json, false);
}
export function PaymentTerminalDccTransactionSumFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'transactionCurrency': json['transactionCurrency'] == null ? undefined : json['transactionCurrency'],
'transactionAmount': json['transactionAmount'] == null ? undefined : json['transactionAmount'],
'dccAmount': json['dccAmount'] == null ? undefined : json['dccAmount'],
'id': json['id'] == null ? undefined : json['id'],
'transactionCount': json['transactionCount'] == null ? undefined : json['transactionCount'],
'dccCurrency': json['dccCurrency'] == null ? undefined : json['dccCurrency'],
'brand': json['brand'] == null ? undefined : json['brand'],
'version': json['version'] == null ? undefined : json['version'],
};
}
export function PaymentTerminalDccTransactionSumToJSON(json) {
return PaymentTerminalDccTransactionSumToJSONTyped(json, false);
}
export function PaymentTerminalDccTransactionSumToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}