/**
*
* Copyright (C) 2021 Akorbi Digital RMP
*
* This file is part of RunMyProcess SDK-JS.
*
* RunMyProcess SDK-JS is free software: you can redistribute it and/or modify
* it under the terms of the Apache License Version 2.0 (the "License");
*
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
Create a new instance of Subscription
@constructor
@property {String} title - title of the subscription
@property {String} summary - summary of the subscription
@property {Date} updated - date and time of the last update
@property {Number} price - The Subscription's Price
@property {Number} minimumVolume - minimum volume
@property {Object} frequency - Object containing the folowing values:
@property {Number} frequency.label - quantity of frequency
@property {String} frequency.scheme - unit of measure of frequency
@property {Number} volume - volume
@property {String} paymentRef - payment reference
@property {String} paymentMethod - payment method
@property {Date} startDate - string representing the start date
@property {Date} endDate - string representing the end date
@property {Date} creationDate - string representing the creation date
@property {Date} updateDate - string representing the update date
@see CustomerSubscriptionList
@see Resource
*/
function Subscription(){
this.title;
this.summary;
this.updated = new Date();
this.price;
this.minimumVolume;
this.frequency = {};
this.volume;
this.paymentRef;
this.paymentMethod;
this.startDate = new Date();
this.endDate = new Date();
this.creationDate = new Date();
this.updateDate = new Date();
};
/**
@borrows
Inherits Resource
*/
Subscription.prototype = new Resource();