@asposecloud/aspose-email-cloud
Version:
Aspose.Email Cloud Node.js SDK
190 lines (186 loc) • 5.95 kB
JavaScript
"use strict";
/*
* MIT License
* Copyright (c) 2018-2020 Aspose Pty Ltd
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.MapiContactPhysicalAddressDtoBuilder = exports.MapiContactPhysicalAddressDto = void 0;
/**
* Refers to the group of properties that define physical address for a contact.
*/
class MapiContactPhysicalAddressDto {
/**
* Refers to the group of properties that define physical address for a contact.
* @param isMailingAddress Gets or sets a value indicating whether this address is mailing address
* @param street Specifies the street portion of the contact's address
* @param city Specifies the city or locality portion of the contact's address
* @param stateOrProvince Specifies the state or province portion of the contact's address
* @param postalCode Specifies the postal code (ZIP code) portion of the contact's address
* @param country Specifies the country or region portion of the contact's address
* @param countryCode Specifies the country code portion of the contact's address
* @param address Specifies the complete address of the contact's address
* @param postOfficeBox Gets or sets the post office box
*/
constructor(isMailingAddress, street, city, stateOrProvince, postalCode, country, countryCode, address, postOfficeBox) {
this.isMailingAddress = isMailingAddress;
this.street = street;
this.city = city;
this.stateOrProvince = stateOrProvince;
this.postalCode = postalCode;
this.country = country;
this.countryCode = countryCode;
this.address = address;
this.postOfficeBox = postOfficeBox;
}
/**
* Returns attribute type map
*/
static getAttributeTypeMap() {
return MapiContactPhysicalAddressDto.attributeTypeMap;
}
}
exports.MapiContactPhysicalAddressDto = MapiContactPhysicalAddressDto;
/**
* Attribute type map
*/
MapiContactPhysicalAddressDto.attributeTypeMap = [
{
name: "isMailingAddress",
baseName: "isMailingAddress",
type: "boolean",
},
{
name: "street",
baseName: "street",
type: "string",
},
{
name: "city",
baseName: "city",
type: "string",
},
{
name: "stateOrProvince",
baseName: "stateOrProvince",
type: "string",
},
{
name: "postalCode",
baseName: "postalCode",
type: "string",
},
{
name: "country",
baseName: "country",
type: "string",
},
{
name: "countryCode",
baseName: "countryCode",
type: "string",
},
{
name: "address",
baseName: "address",
type: "string",
},
{
name: "postOfficeBox",
baseName: "postOfficeBox",
type: "string",
}
];
/**
* MapiContactPhysicalAddressDto model builder
*/
class MapiContactPhysicalAddressDtoBuilder {
constructor(model) {
this.model = model;
}
/**
* Build model.
*/
build() {
return this.model;
}
/**
* Gets or sets a value indicating whether this address is mailing address
*/
isMailingAddress(isMailingAddress) {
this.model.isMailingAddress = isMailingAddress;
return this;
}
/**
* Specifies the street portion of the contact's address
*/
street(street) {
this.model.street = street;
return this;
}
/**
* Specifies the city or locality portion of the contact's address
*/
city(city) {
this.model.city = city;
return this;
}
/**
* Specifies the state or province portion of the contact's address
*/
stateOrProvince(stateOrProvince) {
this.model.stateOrProvince = stateOrProvince;
return this;
}
/**
* Specifies the postal code (ZIP code) portion of the contact's address
*/
postalCode(postalCode) {
this.model.postalCode = postalCode;
return this;
}
/**
* Specifies the country or region portion of the contact's address
*/
country(country) {
this.model.country = country;
return this;
}
/**
* Specifies the country code portion of the contact's address
*/
countryCode(countryCode) {
this.model.countryCode = countryCode;
return this;
}
/**
* Specifies the complete address of the contact's address
*/
address(address) {
this.model.address = address;
return this;
}
/**
* Gets or sets the post office box
*/
postOfficeBox(postOfficeBox) {
this.model.postOfficeBox = postOfficeBox;
return this;
}
}
exports.MapiContactPhysicalAddressDtoBuilder = MapiContactPhysicalAddressDtoBuilder;
//# sourceMappingURL=mapi-contact-physical-address-dto.js.map