wallee
Version:
TypeScript/JavaScript client for wallee
44 lines (43 loc) • 1.92 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfCustomerAddressCreate = instanceOfCustomerAddressCreate;
exports.CustomerAddressCreateFromJSON = CustomerAddressCreateFromJSON;
exports.CustomerAddressCreateFromJSONTyped = CustomerAddressCreateFromJSONTyped;
exports.CustomerAddressCreateToJSON = CustomerAddressCreateToJSON;
exports.CustomerAddressCreateToJSONTyped = CustomerAddressCreateToJSONTyped;
const CustomerAddressType_1 = require("./CustomerAddressType");
const CustomerPostalAddressCreate_1 = require("./CustomerPostalAddressCreate");
/**
* Check if a given object implements the CustomerAddressCreate interface.
*/
function instanceOfCustomerAddressCreate(value) {
if (!('customer' in value) || value['customer'] === undefined)
return false;
return true;
}
function CustomerAddressCreateFromJSON(json) {
return CustomerAddressCreateFromJSONTyped(json, false);
}
function CustomerAddressCreateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'address': json['address'] == null ? undefined : (0, CustomerPostalAddressCreate_1.CustomerPostalAddressCreateFromJSON)(json['address']),
'addressType': json['addressType'] == null ? undefined : (0, CustomerAddressType_1.CustomerAddressTypeFromJSON)(json['addressType']),
'customer': json['customer'],
};
}
function CustomerAddressCreateToJSON(json) {
return CustomerAddressCreateToJSONTyped(json, false);
}
function CustomerAddressCreateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'address': (0, CustomerPostalAddressCreate_1.CustomerPostalAddressCreateToJSON)(value['address']),
'addressType': (0, CustomerAddressType_1.CustomerAddressTypeToJSON)(value['addressType']),
'customer': value['customer'],
};
}