wallee
Version:
TypeScript/JavaScript client for wallee
48 lines (47 loc) • 2.35 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfRefundBankTransaction = instanceOfRefundBankTransaction;
exports.RefundBankTransactionFromJSON = RefundBankTransactionFromJSON;
exports.RefundBankTransactionFromJSONTyped = RefundBankTransactionFromJSONTyped;
exports.RefundBankTransactionToJSON = RefundBankTransactionToJSON;
exports.RefundBankTransactionToJSONTyped = RefundBankTransactionToJSONTyped;
const BankTransaction_1 = require("./BankTransaction");
const Refund_1 = require("./Refund");
/**
* Check if a given object implements the RefundBankTransaction interface.
*/
function instanceOfRefundBankTransaction(value) {
return true;
}
function RefundBankTransactionFromJSON(json) {
return RefundBankTransactionFromJSONTyped(json, false);
}
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 : (0, BankTransaction_1.BankTransactionFromJSON)(json['bankTransaction']),
'version': json['version'] == null ? undefined : json['version'],
'refund': json['refund'] == null ? undefined : (0, Refund_1.RefundFromJSON)(json['refund']),
};
}
function RefundBankTransactionToJSON(json) {
return RefundBankTransactionToJSONTyped(json, false);
}
function RefundBankTransactionToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'bankTransaction': (0, BankTransaction_1.BankTransactionToJSON)(value['bankTransaction']),
'refund': (0, Refund_1.RefundToJSON)(value['refund']),
};
}