wallee
Version:
TypeScript/JavaScript client for wallee
41 lines (40 loc) • 1.91 kB
JavaScript
import { BankTransactionFromJSON, BankTransactionToJSON, } from './BankTransaction';
import { RefundFromJSON, RefundToJSON, } from './Refund';
/**
* Check if a given object implements the RefundBankTransaction interface.
*/
export function instanceOfRefundBankTransaction(value) {
return true;
}
export function RefundBankTransactionFromJSON(json) {
return RefundBankTransactionFromJSONTyped(json, false);
}
export function RefundBankTransactionFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'],
'refundCurrencyValueAmount': json['refundCurrencyValueAmount'] == null ? undefined : json['refundCurrencyValueAmount'],
'refundCurrencyAmount': json['refundCurrencyAmount'] == null ? undefined : json['refundCurrencyAmount'],
'language': json['language'] == null ? undefined : json['language'],
'id': json['id'] == null ? undefined : json['id'],
'spaceViewId': json['spaceViewId'] == null ? undefined : json['spaceViewId'],
'linkedTransaction': json['linkedTransaction'] == null ? undefined : json['linkedTransaction'],
'bankTransaction': json['bankTransaction'] == null ? undefined : BankTransactionFromJSON(json['bankTransaction']),
'version': json['version'] == null ? undefined : json['version'],
'refund': json['refund'] == null ? undefined : RefundFromJSON(json['refund']),
};
}
export function RefundBankTransactionToJSON(json) {
return RefundBankTransactionToJSONTyped(json, false);
}
export function RefundBankTransactionToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'bankTransaction': BankTransactionToJSON(value['bankTransaction']),
'refund': RefundToJSON(value['refund']),
};
}