wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.78 kB
JavaScript
/**
* Check if a given object implements the PaymentTerminalTransactionSum interface.
*/
export function instanceOfPaymentTerminalTransactionSum(value) {
return true;
}
export function PaymentTerminalTransactionSumFromJSON(json) {
return PaymentTerminalTransactionSumFromJSONTyped(json, false);
}
export function PaymentTerminalTransactionSumFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'transactionTipAmount': json['transactionTipAmount'] == null ? undefined : json['transactionTipAmount'],
'product': json['product'] == null ? undefined : json['product'],
'transactionCurrency': json['transactionCurrency'] == null ? undefined : json['transactionCurrency'],
'transactionAmount': json['transactionAmount'] == null ? undefined : json['transactionAmount'],
'dccTipAmount': json['dccTipAmount'] == null ? undefined : json['dccTipAmount'],
'id': json['id'] == null ? undefined : json['id'],
'transactionCount': json['transactionCount'] == null ? undefined : json['transactionCount'],
'brand': json['brand'] == null ? undefined : json['brand'],
'dccTransactionCount': json['dccTransactionCount'] == null ? undefined : json['dccTransactionCount'],
'version': json['version'] == null ? undefined : json['version'],
'dccTransactionAmount': json['dccTransactionAmount'] == null ? undefined : json['dccTransactionAmount'],
};
}
export function PaymentTerminalTransactionSumToJSON(json) {
return PaymentTerminalTransactionSumToJSONTyped(json, false);
}
export function PaymentTerminalTransactionSumToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}