Skip to content

Commit

Permalink
adding models dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ivikramsahu committed Sep 2, 2020
1 parent 9b0950d commit c1389f5
Show file tree
Hide file tree
Showing 10 changed files with 465 additions and 2 deletions.
49 changes: 49 additions & 0 deletions lib/Models/AddemailordomaintoSuppressionlist.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* PepipostLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/

'use strict';

const BaseModel = require('./BaseModel');

/**
* Creates an instance of AddemailordomaintoSuppressionlist
*/
class AddemailordomaintoSuppressionlist extends BaseModel {
/**
* @constructor
* @param {Object} obj The object passed to constructor
*/
constructor(obj) {
super(obj);
if (obj === undefined || obj === null) return;
this.domain = this.constructor.getValue(obj.domain);
this.email = this.constructor.getValue(obj.email);
}

/**
* Function containing information about the fields of this model
* @return {array} Array of objects containing information about the fields
*/
static mappingInfo() {
return super.mappingInfo().concat([
{ name: 'domain', realName: 'domain' },
{ name: 'email', realName: 'email' },
]);
}

/**
* Function containing information about discriminator values
* mapped with their corresponding model class names
*
* @return {object} Object containing Key-Value pairs mapping discriminator
* values with their corresponding model classes
*/
static discriminatorMap() {
return {};
}
}

module.exports = AddemailordomaintoSuppressionlist;
4 changes: 2 additions & 2 deletions lib/Models/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
'use strict';

const BaseModel = require('./BaseModel');
const utf8 = require('utf8');

/**
* Creates an instance of Content
*/
Expand All @@ -20,7 +20,7 @@ class Content extends BaseModel {
super(obj);
if (obj === undefined || obj === null) return;
this.type = this.constructor.getValue(obj.type);
this.value = utf8.encode(this.constructor.getValue(obj.value));
this.value = this.constructor.getValue(obj.value);
}

/**
Expand Down
55 changes: 55 additions & 0 deletions lib/Models/Createsubaccount.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/**
* PepipostLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/

'use strict';

const BaseModel = require('./BaseModel');

/**
* Creates an instance of Createsubaccount
*/
class Createsubaccount extends BaseModel {
/**
* @constructor
* @param {Object} obj The object passed to constructor
*/
constructor(obj) {
super(obj);
if (obj === undefined || obj === null) return;
this.username = this.constructor.getValue(obj.username);
this.email = this.constructor.getValue(obj.email);
this.setpassword = this.constructor.getValue(obj.setpassword);
this.password = this.constructor.getValue(obj.password);
this.creditType = this.constructor.getValue(obj.creditType || obj.credit_type);
}

/**
* Function containing information about the fields of this model
* @return {array} Array of objects containing information about the fields
*/
static mappingInfo() {
return super.mappingInfo().concat([
{ name: 'username', realName: 'username' },
{ name: 'email', realName: 'email' },
{ name: 'setpassword', realName: 'setpassword' },
{ name: 'password', realName: 'password' },
{ name: 'creditType', realName: 'credit_type' },
]);
}

/**
* Function containing information about discriminator values
* mapped with their corresponding model class names
*
* @return {object} Object containing Key-Value pairs mapping discriminator
* values with their corresponding model classes
*/
static discriminatorMap() {
return {};
}
}

module.exports = Createsubaccount;
47 changes: 47 additions & 0 deletions lib/Models/Deletedomain.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/**
* PepipostLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/

'use strict';

const BaseModel = require('./BaseModel');

/**
* Creates an instance of Deletedomain
*/
class Deletedomain extends BaseModel {
/**
* @constructor
* @param {Object} obj The object passed to constructor
*/
constructor(obj) {
super(obj);
if (obj === undefined || obj === null) return;
this.domain = this.constructor.getValue(obj.domain);
}

/**
* Function containing information about the fields of this model
* @return {array} Array of objects containing information about the fields
*/
static mappingInfo() {
return super.mappingInfo().concat([
{ name: 'domain', realName: 'domain' },
]);
}

/**
* Function containing information about discriminator values
* mapped with their corresponding model class names
*
* @return {object} Object containing Key-Value pairs mapping discriminator
* values with their corresponding model classes
*/
static discriminatorMap() {
return {};
}
}

module.exports = Deletedomain;
47 changes: 47 additions & 0 deletions lib/Models/Deletesubacoount.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/**
* PepipostLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/

'use strict';

const BaseModel = require('./BaseModel');

/**
* Creates an instance of Deletesubacoount
*/
class Deletesubacoount extends BaseModel {
/**
* @constructor
* @param {Object} obj The object passed to constructor
*/
constructor(obj) {
super(obj);
if (obj === undefined || obj === null) return;
this.username = this.constructor.getValue(obj.username);
}

/**
* Function containing information about the fields of this model
* @return {array} Array of objects containing information about the fields
*/
static mappingInfo() {
return super.mappingInfo().concat([
{ name: 'username', realName: 'username' },
]);
}

/**
* Function containing information about discriminator values
* mapped with their corresponding model class names
*
* @return {object} Object containing Key-Value pairs mapping discriminator
* values with their corresponding model classes
*/
static discriminatorMap() {
return {};
}
}

module.exports = Deletesubacoount;
49 changes: 49 additions & 0 deletions lib/Models/Enableordisablesubacoount.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* PepipostLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/

'use strict';

const BaseModel = require('./BaseModel');

/**
* Creates an instance of Enableordisablesubacoount
*/
class Enableordisablesubacoount extends BaseModel {
/**
* @constructor
* @param {Object} obj The object passed to constructor
*/
constructor(obj) {
super(obj);
if (obj === undefined || obj === null) return;
this.username = this.constructor.getValue(obj.username);
this.disabled = this.constructor.getValue(obj.disabled);
}

/**
* Function containing information about the fields of this model
* @return {array} Array of objects containing information about the fields
*/
static mappingInfo() {
return super.mappingInfo().concat([
{ name: 'username', realName: 'username' },
{ name: 'disabled', realName: 'disabled' },
]);
}

/**
* Function containing information about discriminator values
* mapped with their corresponding model class names
*
* @return {object} Object containing Key-Value pairs mapping discriminator
* values with their corresponding model classes
*/
static discriminatorMap() {
return {};
}
}

module.exports = Enableordisablesubacoount;
49 changes: 49 additions & 0 deletions lib/Models/RemoveemailordomaintoSuppressionlist.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* PepipostLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/

'use strict';

const BaseModel = require('./BaseModel');

/**
* Creates an instance of RemoveemailordomaintoSuppressionlist
*/
class RemoveemailordomaintoSuppressionlist extends BaseModel {
/**
* @constructor
* @param {Object} obj The object passed to constructor
*/
constructor(obj) {
super(obj);
if (obj === undefined || obj === null) return;
this.domain = this.constructor.getValue(obj.domain);
this.email = this.constructor.getValue(obj.email);
}

/**
* Function containing information about the fields of this model
* @return {array} Array of objects containing information about the fields
*/
static mappingInfo() {
return super.mappingInfo().concat([
{ name: 'domain', realName: 'domain' },
{ name: 'email', realName: 'email' },
]);
}

/**
* Function containing information about discriminator values
* mapped with their corresponding model class names
*
* @return {object} Object containing Key-Value pairs mapping discriminator
* values with their corresponding model classes
*/
static discriminatorMap() {
return {};
}
}

module.exports = RemoveemailordomaintoSuppressionlist;
51 changes: 51 additions & 0 deletions lib/Models/UpdateCredisofsubaccount.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* PepipostLib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/

'use strict';

const BaseModel = require('./BaseModel');

/**
* Creates an instance of UpdateCredisofsubaccount
*/
class UpdateCredisofsubaccount extends BaseModel {
/**
* @constructor
* @param {Object} obj The object passed to constructor
*/
constructor(obj) {
super(obj);
if (obj === undefined || obj === null) return;
this.username = this.constructor.getValue(obj.username);
this.action = this.constructor.getValue(obj.action);
this.amount = this.constructor.getValue(obj.amount);
}

/**
* Function containing information about the fields of this model
* @return {array} Array of objects containing information about the fields
*/
static mappingInfo() {
return super.mappingInfo().concat([
{ name: 'username', realName: 'username' },
{ name: 'action', realName: 'action' },
{ name: 'amount', realName: 'amount' },
]);
}

/**
* Function containing information about discriminator values
* mapped with their corresponding model class names
*
* @return {object} Object containing Key-Value pairs mapping discriminator
* values with their corresponding model classes
*/
static discriminatorMap() {
return {};
}
}

module.exports = UpdateCredisofsubaccount;
Loading

0 comments on commit c1389f5

Please sign in to comment.