diff --git a/Class.js b/Class.js new file mode 100644 index 00000000..190b00f3 --- /dev/null +++ b/Class.js @@ -0,0 +1,120 @@ +// Extracted from Prototype.js's Class implementation +// See: https://github.com/Rixius/prototype.node.js +var Class; + +function extend(destination, source) { + for (var property in source) + destination[property] = source[property]; + return destination; +} + +function isFunction(object) { + return Object.prototype.toString.call(object) === '[object Function]'; +} + +function wrapFunction(fn, wrapper) { + var __method = fn; + return function() { + var a = update([__method.bind(this)], arguments); + return wrapper.apply(this, a); + } +} + +function updateArguments(array, args) { + var arrayLength = array.length, length = args.length; + while (length--) array[arrayLength + length] = args[length]; + return array; +} + +function wrap(method, wrapper) { + return function() { + var a = updateArguments([method.bind(this)], arguments); + return wrapper.apply(this, a); + } +} + +function emptyFunction() {} + +function argumentNames(fn) { + var names = fn.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1] + .replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g, '') + .replace(/\s+/g, '').split(','); + return names.length == 1 && !names[0] ? [] : names; +} + +var IS_DONTENUM_BUGGY = (function(){ + for (var p in { toString: 1 }) { + if (p === 'toString') return false; + } + return true; +})(); + +function subclass() {}; + +function create() { + var parent = null, properties = [].slice.call(arguments); + if (isFunction(properties[0])) + parent = properties.shift(); + + function klass() { + this.initialize.apply(this, arguments); + } + + extend(klass, Class.Methods); + klass.superclass = parent; + klass.subclasses = []; + + if (parent) { + subclass.prototype = parent.prototype; + klass.prototype = new subclass; + parent.subclasses.push(klass); + } + + for (var i = 0, length = properties.length; i < length; i++) + klass.addMethods(properties[i]); + + if (!klass.prototype.initialize) + klass.prototype.initialize = emptyFunction; + + klass.prototype.constructor = klass; + return klass; +} + +function addMethods(source) { + var ancestor = this.superclass && this.superclass.prototype, + properties = Object.keys(source); + + if (IS_DONTENUM_BUGGY) { + if (source.toString != Object.prototype.toString) + properties.push("toString"); + if (source.valueOf != Object.prototype.valueOf) + properties.push("valueOf"); + } + + for (var i = 0, length = properties.length; i < length; i++) { + var property = properties[i], value = source[property]; + if (ancestor && isFunction(value) && + argumentNames(value)[0] == "$super") { + var method = value; + value = wrap( + (function(m) { + return function() { return ancestor[m].apply(this, arguments); }; + })(property), + method + ); + + value.valueOf = method.valueOf.bind(method); + value.toString = method.toString.bind(method); + } + this.prototype[property] = value; + } + + return this; +} + +module.exports = Class = { + create: create, + Methods: { + addMethods: addMethods + } +}; diff --git a/CloverConnectorFactory.js b/CloverConnectorFactory.js index 0c8909e0..71055749 100644 --- a/CloverConnectorFactory.js +++ b/CloverConnectorFactory.js @@ -1,4 +1,4 @@ -require("prototype"); +var Class = require("./Class.js"); var CloverConnectorImpl = require("./CloverConnectorImpl.js"); diff --git a/CloverConnectorImpl.js b/CloverConnectorImpl.js index a2851d01..25916bd0 100644 --- a/CloverConnectorImpl.js +++ b/CloverConnectorImpl.js @@ -1,4 +1,4 @@ -require("prototype"); +var Class = require("./Class.js"); var log = require('./Logger.js').create(); @@ -1831,4 +1831,3 @@ if ('undefined' !== typeof module) { * @property {string} host * @property {string} token */ - diff --git a/CloverOAuth2.js b/CloverOAuth2.js index 8fdbed91..de6d1c0a 100644 --- a/CloverOAuth2.js +++ b/CloverOAuth2.js @@ -15,7 +15,7 @@ * } */ -require("prototype"); +var Class = require("./Class.js"); var EndPointConfig = require("./EndpointConfig.js"); /** @@ -205,4 +205,4 @@ CloverOAuth2.accessTokenKey = '#' + CloverOAuth2._accessTokenKey; // if ('undefined' !== typeof module) { module.exports = CloverOAuth2; -} \ No newline at end of file +} diff --git a/DebugCloverConnectorListener.js b/DebugCloverConnectorListener.js index 10f62108..aa3e4842 100644 --- a/DebugCloverConnectorListener.js +++ b/DebugCloverConnectorListener.js @@ -1,4 +1,4 @@ -require("prototype"); +var Class = require("./Class.js"); var log = require('./Logger.js').create(); var ICloverConnectorListener = require("./remotepay/ICloverConnectorListener.js"); @@ -183,4 +183,3 @@ DebugCloverConnectorListener = Class.create(ICloverConnectorListener, { if ('undefined' !== typeof module) { module.exports = DebugCloverConnectorListener; } - diff --git a/DelegateCloverConnectorListener.js b/DelegateCloverConnectorListener.js index 7b43ca84..d7268564 100644 --- a/DelegateCloverConnectorListener.js +++ b/DelegateCloverConnectorListener.js @@ -1,4 +1,4 @@ -require("prototype"); +var Class = require("./Class.js"); var log = require('./Logger.js').create(); var ICloverConnectorListener = require("./remotepay/ICloverConnectorListener.js"); @@ -331,7 +331,7 @@ DelegateCloverConnectorListener = Class.create(ICloverConnectorListener, { }, /** - * + * * @param functionName * @param listener * @param error @@ -355,4 +355,3 @@ DelegateCloverConnectorListener = Class.create(ICloverConnectorListener, { if ('undefined' !== typeof module) { module.exports = DelegateCloverConnectorListener; } - diff --git a/DeviceContactInfo.js b/DeviceContactInfo.js index a145ada0..5aa06c48 100644 --- a/DeviceContactInfo.js +++ b/DeviceContactInfo.js @@ -1,4 +1,4 @@ -require("prototype"); +var Class = require("./Class.js"); /** * @constructor @@ -19,4 +19,4 @@ DeviceContactInfo = Class.create( { // if ('undefined' !== typeof module) { module.exports = DeviceContactInfo; -} \ No newline at end of file +} diff --git a/EndpointConfig.js b/EndpointConfig.js index 98415b69..a8efe61b 100644 --- a/EndpointConfig.js +++ b/EndpointConfig.js @@ -1,4 +1,4 @@ -require("prototype"); +var Class = require("./Class.js"); /** * @constructor @@ -28,4 +28,4 @@ EndPointConfig = Class.create( { // if ('undefined' !== typeof module) { module.exports = EndPointConfig; -} \ No newline at end of file +} diff --git a/JSONToCustomObject.js b/JSONToCustomObject.js index a49e64b1..462fee19 100644 --- a/JSONToCustomObject.js +++ b/JSONToCustomObject.js @@ -1,4 +1,4 @@ -require("prototype"); +var Class = require("./Class.js"); var log = require('./Logger.js').create(); JSONToCustomObject = Class.create({ diff --git a/MethodToMessage.js b/MethodToMessage.js index 38e8513d..8d4b2a51 100644 --- a/MethodToMessage.js +++ b/MethodToMessage.js @@ -1,4 +1,3 @@ -// Prototype.js required var remotemessage = require("./remotemessage"); MethodToMessage = {}; diff --git a/README.md b/README.md index fda9d377..df028f0d 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,9 @@ Please report back to us any questions/comments/concerns, by emailing semi-integ A deprecated beta version of the Connector (Clover.js) is included in this version with `require` directive syntax, but will removed in the future. -### Version [BETA](https://github.com/clover/remote-pay-cloud-BETA/tree/BETA_Final) +### Version [BETA](https://github.com/clover/remote-pay-cloud-BETA/tree/BETA_Final) -The beta version includes the earliest library as well as a server with examples of the functions. +The beta version includes the earliest library as well as a server with examples of the functions. --- @@ -61,8 +61,7 @@ Clover's cloud connector API. Published as an NPM package. Intended for use in ## At a Glance ### Make a sale. -``` -require("prototype"); +```javascript var $ = require('jQuery'); var clover = require("remote-pay-cloud"); @@ -77,7 +76,7 @@ var connector = new clover.CloverConnectorFactory().createICloverConnector({ "domain": "https://dev1.dev.clover.com/" }); -var ExampleCloverConnectorListener = Class.create( clover.remotepay.ICloverConnectorListener, { +var ExampleCloverConnectorListener = clover.Class.create( clover.remotepay.ICloverConnectorListener, { initialize: function (cloverConnector) { this.cloverConnector = cloverConnector; }, @@ -116,14 +115,13 @@ $(window).on('beforeunload ', function () { ``` ### To make a payment using the High Level Cloud API -#### Import the libraries needed to create the clover object. -``` -require("prototype"); +#### Import the Clover library. +```javascript var clover = require("remote-pay-cloud"); ``` #### Create the Clover Connector object. This will require gathering the configuration information to create the connector. In this example, the configuration is hard coded. The creation of the connector is done using the connector factory. -``` +```javascript var connector = new clover.CloverConnectorFactory().createICloverConnector({ "merchantId": "BBFF8NBCXEMDT", "clientId": "3RPTN642FHXTC", @@ -138,7 +136,7 @@ There are several ways the Clover Connector object can be configured. Examples of configurations that can be used when creating the Clover Connector object: 1. With a clientID, domain, merchantId, deviceSerialId -``` +```javascript { "clientId" : "3BZPZ6A6FQ8ZM", "remoteApplicationId": "com.yourname.yourapplication:1.0.0-beta1", @@ -148,7 +146,7 @@ Examples of configurations that can be used when creating the Clover Connector o } ``` 1. With a oauthToken, domain, merchantId, clientId, deviceSerialId -``` +```javascript { "oauthToken" : "6e6313e8-fe33-8662-7ff2-3a6690e0ff14", "domain" : "https://sandbox.dev.clover.com/", @@ -160,11 +158,11 @@ Examples of configurations that can be used when creating the Clover Connector o ``` #### Define a listener that will listen for events produced byt the Clover Connector. -The functions implemented will be called as the connector encounters the events. These functions can be found in the clover.remotepay.ICloverConnectorListener. -``` -var ExampleCloverConnectorListener = Class.create( clover.remotepay.ICloverConnectorListener, { - // This function overrides the basic prototype.js initialization function. This example - // expects that a coler connector implementation instance is passed to the created listener. +The functions implemented will be called as the connector encounters the events. These functions can be found in the clover.remotepay.ICloverConnectorListener. +```javascript +var ExampleCloverConnectorListener = clover.Class.create( clover.remotepay.ICloverConnectorListener, { + // This function overrides the basic class initialization method. This example + // expects that a Clover connector implementation instance is passed to the created listener. initialize: function (cloverConnector) { this.cloverConnector = cloverConnector; }, @@ -184,7 +182,7 @@ var ExampleCloverConnectorListener = Class.create( clover.remotepay.ICloverConne this.cloverConnector.acceptSignature(request); }, // The ICloverConnectorListener function that is called when a sale request is completed. - // This example logs the response, and disposes of the connector. If the response is not an expected + // This example logs the response, and disposes of the connector. If the response is not an expected // type, it will log an error. onSaleResponse: function (response) { log.info(response); @@ -198,7 +196,7 @@ var ExampleCloverConnectorListener = Class.create( clover.remotepay.ICloverConne ``` #### Add the listener instance to the connector, and initialize the connection to the device. -``` +```javascript var connectorListener = new ExampleCloverConnectorListener(connector); connector.addCloverConnectorListener(connectorListener); connector.initializeConnection(); @@ -206,7 +204,7 @@ connector.initializeConnection(); #### Clean up the connection on exit of the window. This should be done with all connectors. This example uses jQuery to add a hook for the window `beforeunload` event that ensures that the connector is displosed of. -``` +```javascript $(window).on('beforeunload ', function () { try { connector.dispose(); @@ -217,5 +215,5 @@ $(window).on('beforeunload ', function () { ``` ## Generate Documentation -API documentation is generated when `npm install` is run. +API documentation is generated when `npm install` is run. [Online Docs](http://clover.github.io/remote-pay-cloud/1.1.0-rc4.0/) diff --git a/RemoteMessageParser.js b/RemoteMessageParser.js index 2d642b88..55d50bf8 100644 --- a/RemoteMessageParser.js +++ b/RemoteMessageParser.js @@ -1,4 +1,4 @@ -require("prototype"); +var Class = require("./Class.js"); var remotemessage = require("./remotemessage"); @@ -46,4 +46,3 @@ RemoteMessageParser.KEY_Package = "code_package"; if ('undefined' !== typeof module) { module.exports = RemoteMessageParser; } - diff --git a/apps/AppTracking.js b/apps/AppTracking.js index ee8773e2..10135083 100644 --- a/apps/AppTracking.js +++ b/apps/AppTracking.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** Used to track the origin of a distributed call. */ /** diff --git a/base/Address.js b/base/Address.js index 394d747b..16349ae9 100644 --- a/base/Address.js +++ b/base/Address.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/base/CardData.js b/base/CardData.js index c7ae3e82..1e12e288 100644 --- a/base/CardData.js +++ b/base/CardData.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/base/Challenge.js b/base/Challenge.js index e183409e..57c595f6 100644 --- a/base/Challenge.js +++ b/base/Challenge.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var order_VoidReason = require("../order/VoidReason"); var base_ChallengeType = require("../base/ChallengeType"); diff --git a/base/ChallengeTypeEnum.js b/base/ChallengeTypeEnum.js index d6029677..36403093 100644 --- a/base/ChallengeTypeEnum.js +++ b/base/ChallengeTypeEnum.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_ChallengeType = require("../base/ChallengeType"); /** diff --git a/base/CountryInfo.js b/base/CountryInfo.js index 650cc75d..81a268da 100644 --- a/base/CountryInfo.js +++ b/base/CountryInfo.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/base/PendingPaymentEntry.js b/base/PendingPaymentEntry.js index 7c78a0fe..60213689 100644 --- a/base/PendingPaymentEntry.js +++ b/base/PendingPaymentEntry.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/base/Point.js b/base/Point.js index 9a1bde31..fe60ed62 100644 --- a/base/Point.js +++ b/base/Point.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/base/Points.js b/base/Points.js index ebd30ccf..92e68194 100644 --- a/base/Points.js +++ b/base/Points.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Point = require("../base/Point"); /** diff --git a/base/Reference.js b/base/Reference.js index 601973c9..e1e4b439 100644 --- a/base/Reference.js +++ b/base/Reference.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/base/ServiceCharge.js b/base/ServiceCharge.js index 74c3dd98..e1229cb2 100644 --- a/base/ServiceCharge.js +++ b/base/ServiceCharge.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/base/Signature.js b/base/Signature.js index e83008cd..9d160d83 100644 --- a/base/Signature.js +++ b/base/Signature.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Points = require("../base/Points"); /** diff --git a/base/Tender.js b/base/Tender.js index 75739067..bbdb85f4 100644 --- a/base/Tender.js +++ b/base/Tender.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/customers/Address.js b/customers/Address.js index db374459..f792bb52 100644 --- a/customers/Address.js +++ b/customers/Address.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/customers/Card.js b/customers/Card.js index bf5bc427..c4a3d617 100644 --- a/customers/Card.js +++ b/customers/Card.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/customers/Customer.js b/customers/Customer.js index f15eda97..e7f6bcf3 100644 --- a/customers/Customer.js +++ b/customers/Customer.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var customers_EmailAddress = require("../customers/EmailAddress"); var customers_PhoneNumber = require("../customers/PhoneNumber"); var base_Reference = require("../base/Reference"); diff --git a/customers/EmailAddress.js b/customers/EmailAddress.js index d5ad3cf7..872cce29 100644 --- a/customers/EmailAddress.js +++ b/customers/EmailAddress.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/customers/PhoneNumber.js b/customers/PhoneNumber.js index 14de9739..33e66f56 100644 --- a/customers/PhoneNumber.js +++ b/customers/PhoneNumber.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/device/Device.js b/device/Device.js index cd36259a..547d6e5a 100644 --- a/device/Device.js +++ b/device/Device.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var device_BuildType = require("../device/BuildType"); var base_Reference = require("../base/Reference"); diff --git a/device/DeviceProvision.js b/device/DeviceProvision.js index c9c57d8d..742eacff 100644 --- a/device/DeviceProvision.js +++ b/device/DeviceProvision.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var device_DeviceProvisionState = require("../device/DeviceProvisionState"); var base_Reference = require("../base/Reference"); diff --git a/device/Rom.js b/device/Rom.js index de51b887..932d94e5 100644 --- a/device/Rom.js +++ b/device/Rom.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var device_RomBuildType = require("../device/RomBuildType"); /** diff --git a/device/SwapRequestEvent.js b/device/SwapRequestEvent.js index 974db7ba..7d5133fd 100644 --- a/device/SwapRequestEvent.js +++ b/device/SwapRequestEvent.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/employees/Employee.js b/employees/Employee.js index 1f62cabe..1e0d470c 100644 --- a/employees/Employee.js +++ b/employees/Employee.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var employees_AccountRole = require("../employees/AccountRole"); var base_Reference = require("../base/Reference"); diff --git a/employees/PermissionSet.js b/employees/PermissionSet.js index e074b965..07947348 100644 --- a/employees/PermissionSet.js +++ b/employees/PermissionSet.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); var employees_Permissions = require("../employees/Permissions"); diff --git a/employees/PermissionSetRole.js b/employees/PermissionSetRole.js index 435adff0..87a2c714 100644 --- a/employees/PermissionSetRole.js +++ b/employees/PermissionSetRole.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/employees/Permissions.js b/employees/Permissions.js index d7ed34d0..a8042cb1 100644 --- a/employees/Permissions.js +++ b/employees/Permissions.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var employees_Permission = require("../employees/Permission"); /** diff --git a/employees/Role.js b/employees/Role.js index f2a1f672..af4c4dd7 100644 --- a/employees/Role.js +++ b/employees/Role.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var employees_AccountRole = require("../employees/AccountRole"); var base_Reference = require("../base/Reference"); diff --git a/employees/Shift.js b/employees/Shift.js index 9d2977ff..81a60eee 100644 --- a/employees/Shift.js +++ b/employees/Shift.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var employees_Employee = require("../employees/Employee"); /** diff --git a/hours/HourRange.js b/hours/HourRange.js index 1c7f9658..afd37950 100644 --- a/hours/HourRange.js +++ b/hours/HourRange.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/hours/HoursSet.js b/hours/HoursSet.js index 252c804d..cb24981d 100644 --- a/hours/HoursSet.js +++ b/hours/HoursSet.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var hours_HourRange = require("../hours/HourRange"); var hours_Reference = require("../hours/Reference"); diff --git a/hours/Reference.js b/hours/Reference.js index 13db789a..b0ad4491 100644 --- a/hours/Reference.js +++ b/hours/Reference.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var hours_ReferenceType = require("../hours/ReferenceType"); /** diff --git a/index.js b/index.js index a1636a61..10c48d67 100644 --- a/index.js +++ b/index.js @@ -36,6 +36,7 @@ CloverLib.CloverConnectorFactory = require("./CloverConnectorFactory.js") CloverLib.DelegateCloverConnectorListener = require("./DelegateCloverConnectorListener.js") CloverLib.DebugCloverConnectorListener = require("./DebugCloverConnectorListener.js") +CloverLib.Class = require('./Class.js'); CloverLib.Logger = require('./Logger.js'); diff --git a/inventory/Attribute.js b/inventory/Attribute.js index 368dde33..4bddebd4 100644 --- a/inventory/Attribute.js +++ b/inventory/Attribute.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); var inventory_Option = require("../inventory/Option"); diff --git a/inventory/Category.js b/inventory/Category.js index 0cd90e64..630aa8b4 100644 --- a/inventory/Category.js +++ b/inventory/Category.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/inventory/CategoryItem.js b/inventory/CategoryItem.js index ff101154..5c26a484 100644 --- a/inventory/CategoryItem.js +++ b/inventory/CategoryItem.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var inventory_Item = require("../inventory/Item"); var inventory_Category = require("../inventory/Category"); diff --git a/inventory/Discount.js b/inventory/Discount.js index 72cd10db..9022393a 100644 --- a/inventory/Discount.js +++ b/inventory/Discount.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/inventory/Item.js b/inventory/Item.js index ba34563c..7ffe54bd 100644 --- a/inventory/Item.js +++ b/inventory/Item.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var inventory_ItemStock = require("../inventory/ItemStock"); var inventory_TaxRate = require("../inventory/TaxRate"); var inventory_ModifierGroup = require("../inventory/ModifierGroup"); diff --git a/inventory/ItemGroup.js b/inventory/ItemGroup.js index 91efa191..b0a5d068 100644 --- a/inventory/ItemGroup.js +++ b/inventory/ItemGroup.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/inventory/ItemModifierGroup.js b/inventory/ItemModifierGroup.js index 6c8f51f4..27caf1a3 100644 --- a/inventory/ItemModifierGroup.js +++ b/inventory/ItemModifierGroup.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var inventory_ModifierGroup = require("../inventory/ModifierGroup"); var inventory_Item = require("../inventory/Item"); diff --git a/inventory/ItemStock.js b/inventory/ItemStock.js index d5b57ce3..31903e9c 100644 --- a/inventory/ItemStock.js +++ b/inventory/ItemStock.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** The class is used to update the item stock. */ diff --git a/inventory/Modifier.js b/inventory/Modifier.js index 8eb1534e..adb421d9 100644 --- a/inventory/Modifier.js +++ b/inventory/Modifier.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/inventory/ModifierGroup.js b/inventory/ModifierGroup.js index 4a3906a5..08981b39 100644 --- a/inventory/ModifierGroup.js +++ b/inventory/ModifierGroup.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); var inventory_Modifier = require("../inventory/Modifier"); diff --git a/inventory/Option.js b/inventory/Option.js index df0d19cf..b6742839 100644 --- a/inventory/Option.js +++ b/inventory/Option.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/inventory/OptionItem.js b/inventory/OptionItem.js index a317df81..7606038c 100644 --- a/inventory/OptionItem.js +++ b/inventory/OptionItem.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** This class represents the association between an item and an option */ diff --git a/inventory/Tag.js b/inventory/Tag.js index a14c61c2..43e4fea4 100644 --- a/inventory/Tag.js +++ b/inventory/Tag.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/inventory/TagItem.js b/inventory/TagItem.js index f549e25d..cca9042a 100644 --- a/inventory/TagItem.js +++ b/inventory/TagItem.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var inventory_Item = require("../inventory/Item"); var inventory_Tag = require("../inventory/Tag"); diff --git a/inventory/TagPrinter.js b/inventory/TagPrinter.js index c401044b..77f446e0 100644 --- a/inventory/TagPrinter.js +++ b/inventory/TagPrinter.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var printer_Printer = require("../printer/Printer"); var inventory_Tag = require("../inventory/Tag"); diff --git a/inventory/TaxRate.js b/inventory/TaxRate.js index f7a253c8..8c021bc8 100644 --- a/inventory/TaxRate.js +++ b/inventory/TaxRate.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/inventory/TaxRateItem.js b/inventory/TaxRateItem.js index 5deb61a3..318f4f1f 100644 --- a/inventory/TaxRateItem.js +++ b/inventory/TaxRateItem.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var inventory_TaxRate = require("../inventory/TaxRate"); var inventory_Item = require("../inventory/Item"); diff --git a/order/Discount.js b/order/Discount.js index d05d5174..57f3273a 100644 --- a/order/Discount.js +++ b/order/Discount.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/order/DisplayDiscount.js b/order/DisplayDiscount.js index edfb30db..96ac9027 100644 --- a/order/DisplayDiscount.js +++ b/order/DisplayDiscount.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/order/DisplayLineItem.js b/order/DisplayLineItem.js index 9621b33c..9b3423af 100644 --- a/order/DisplayLineItem.js +++ b/order/DisplayLineItem.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var order_DisplayDiscount = require("../order/DisplayDiscount"); var order_DisplayModification = require("../order/DisplayModification"); diff --git a/order/DisplayModification.js b/order/DisplayModification.js index 60c2469c..4bb4687b 100644 --- a/order/DisplayModification.js +++ b/order/DisplayModification.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** Snapshot of a line item modifier at the time that the order was placed. */ /** diff --git a/order/DisplayOrder.js b/order/DisplayOrder.js index 63ddb038..75156cff 100644 --- a/order/DisplayOrder.js +++ b/order/DisplayOrder.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var order_DisplayPayment = require("../order/DisplayPayment"); var order_DisplayDiscount = require("../order/DisplayDiscount"); var order_DisplayLineItem = require("../order/DisplayLineItem"); diff --git a/order/DisplayPayment.js b/order/DisplayPayment.js index ee0ae72e..9e2f2673 100644 --- a/order/DisplayPayment.js +++ b/order/DisplayPayment.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/order/FireOrder.js b/order/FireOrder.js index 21d0e47a..d6190c4f 100644 --- a/order/FireOrder.js +++ b/order/FireOrder.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/order/LineItem.js b/order/LineItem.js index 67a2438b..971091b4 100644 --- a/order/LineItem.js +++ b/order/LineItem.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var order_Modification = require("../order/Modification"); var inventory_TaxRate = require("../inventory/TaxRate"); var payments_LineItemPayment = require("../payments/LineItemPayment"); diff --git a/order/Modification.js b/order/Modification.js index 11af1170..e74a4de2 100644 --- a/order/Modification.js +++ b/order/Modification.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); var inventory_Modifier = require("../inventory/Modifier"); diff --git a/order/Order.js b/order/Order.js index 965e69a6..eaddfd28 100644 --- a/order/Order.js +++ b/order/Order.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var customers_Customer = require("../customers/Customer"); var payments_Authorization = require("../payments/Authorization"); var order_Discount = require("../order/Discount"); diff --git a/order/OrderTaxRate.js b/order/OrderTaxRate.js index a3db52f4..a3e40031 100644 --- a/order/OrderTaxRate.js +++ b/order/OrderTaxRate.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/order/OrderType.js b/order/OrderType.js index 2b51202d..dc325470 100644 --- a/order/OrderType.js +++ b/order/OrderType.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var order_HoursAvailable = require("../order/HoursAvailable"); var hours_HoursSet = require("../hours/HoursSet"); var base_Reference = require("../base/Reference"); diff --git a/order/OrderTypeCategory.js b/order/OrderTypeCategory.js index a21df53c..7d561da0 100644 --- a/order/OrderTypeCategory.js +++ b/order/OrderTypeCategory.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var order_OrderType = require("../order/OrderType"); var inventory_Category = require("../inventory/Category"); diff --git a/order/SystemOrderType.js b/order/SystemOrderType.js index 8589478f..2ec39cf2 100644 --- a/order/SystemOrderType.js +++ b/order/SystemOrderType.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/order/VoidedLineItem.js b/order/VoidedLineItem.js index f74640b3..ea5ca02f 100644 --- a/order/VoidedLineItem.js +++ b/order/VoidedLineItem.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var employees_Employee = require("../employees/Employee"); var order_LineItem = require("../order/LineItem"); diff --git a/order/operation/DiscountsAddedOperation.js b/order/operation/DiscountsAddedOperation.js index 63928985..e1d5dece 100644 --- a/order/operation/DiscountsAddedOperation.js +++ b/order/operation/DiscountsAddedOperation.js @@ -1,11 +1,10 @@ /** * Autogenerated by Avro - * + * * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../../Class.js"); /** * @constructor @@ -26,7 +25,7 @@ require("prototype"); /** * Set the field value * @memberof order.operation.DiscountsAddedOperation - * @param {Array.} ids An array of + * @param {Array.} ids An array of */ setIds: function(ids) { this.ids = ids; @@ -35,7 +34,7 @@ require("prototype"); /** * Get the field value * @memberof order.operation.DiscountsAddedOperation - * @return {Array.} An array of + * @return {Array.} An array of */ getIds: function() { return this.ids; @@ -44,7 +43,7 @@ require("prototype"); /** * Set the field value * @memberof order.operation.DiscountsAddedOperation - * @param {String} orderId + * @param {String} orderId */ setOrderId: function(orderId) { this.orderId = orderId; @@ -53,7 +52,7 @@ require("prototype"); /** * Get the field value * @memberof order.operation.DiscountsAddedOperation - * @return {String} + * @return {String} */ getOrderId: function() { return this.orderId; @@ -93,4 +92,3 @@ DiscountsAddedOperation._meta_.fields["orderId"].type = String; if ('undefined' !== typeof module) { module.exports = DiscountsAddedOperation; } - diff --git a/order/operation/DiscountsDeletedOperation.js b/order/operation/DiscountsDeletedOperation.js index 2f6300be..4427e82c 100644 --- a/order/operation/DiscountsDeletedOperation.js +++ b/order/operation/DiscountsDeletedOperation.js @@ -1,11 +1,10 @@ /** * Autogenerated by Avro - * + * * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../../Class.js"); /** * @constructor @@ -26,7 +25,7 @@ require("prototype"); /** * Set the field value * @memberof order.operation.DiscountsDeletedOperation - * @param {Array.} ids An array of + * @param {Array.} ids An array of */ setIds: function(ids) { this.ids = ids; @@ -35,7 +34,7 @@ require("prototype"); /** * Get the field value * @memberof order.operation.DiscountsDeletedOperation - * @return {Array.} An array of + * @return {Array.} An array of */ getIds: function() { return this.ids; @@ -44,7 +43,7 @@ require("prototype"); /** * Set the field value * @memberof order.operation.DiscountsDeletedOperation - * @param {String} orderId + * @param {String} orderId */ setOrderId: function(orderId) { this.orderId = orderId; @@ -53,7 +52,7 @@ require("prototype"); /** * Get the field value * @memberof order.operation.DiscountsDeletedOperation - * @return {String} + * @return {String} */ getOrderId: function() { return this.orderId; @@ -93,4 +92,3 @@ DiscountsDeletedOperation._meta_.fields["orderId"].type = String; if ('undefined' !== typeof module) { module.exports = DiscountsDeletedOperation; } - diff --git a/order/operation/LineItemsAddedOperation.js b/order/operation/LineItemsAddedOperation.js index 1d723dae..9ccfec92 100644 --- a/order/operation/LineItemsAddedOperation.js +++ b/order/operation/LineItemsAddedOperation.js @@ -1,11 +1,10 @@ /** * Autogenerated by Avro - * + * * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../../Class.js"); /** * @constructor @@ -26,7 +25,7 @@ require("prototype"); /** * Set the field value * @memberof order.operation.LineItemsAddedOperation - * @param {Array.} ids An array of + * @param {Array.} ids An array of */ setIds: function(ids) { this.ids = ids; @@ -35,7 +34,7 @@ require("prototype"); /** * Get the field value * @memberof order.operation.LineItemsAddedOperation - * @return {Array.} An array of + * @return {Array.} An array of */ getIds: function() { return this.ids; @@ -44,7 +43,7 @@ require("prototype"); /** * Set the field value * @memberof order.operation.LineItemsAddedOperation - * @param {String} orderId + * @param {String} orderId */ setOrderId: function(orderId) { this.orderId = orderId; @@ -53,7 +52,7 @@ require("prototype"); /** * Get the field value * @memberof order.operation.LineItemsAddedOperation - * @return {String} + * @return {String} */ getOrderId: function() { return this.orderId; @@ -93,4 +92,3 @@ LineItemsAddedOperation._meta_.fields["orderId"].type = String; if ('undefined' !== typeof module) { module.exports = LineItemsAddedOperation; } - diff --git a/order/operation/LineItemsDeletedOperation.js b/order/operation/LineItemsDeletedOperation.js index c23270a1..d6bc3205 100644 --- a/order/operation/LineItemsDeletedOperation.js +++ b/order/operation/LineItemsDeletedOperation.js @@ -1,11 +1,10 @@ /** * Autogenerated by Avro - * + * * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../../Class.js"); /** * @constructor @@ -26,7 +25,7 @@ require("prototype"); /** * Set the field value * @memberof order.operation.LineItemsDeletedOperation - * @param {Array.} ids An array of + * @param {Array.} ids An array of */ setIds: function(ids) { this.ids = ids; @@ -35,7 +34,7 @@ require("prototype"); /** * Get the field value * @memberof order.operation.LineItemsDeletedOperation - * @return {Array.} An array of + * @return {Array.} An array of */ getIds: function() { return this.ids; @@ -44,7 +43,7 @@ require("prototype"); /** * Set the field value * @memberof order.operation.LineItemsDeletedOperation - * @param {String} orderId + * @param {String} orderId */ setOrderId: function(orderId) { this.orderId = orderId; @@ -53,7 +52,7 @@ require("prototype"); /** * Get the field value * @memberof order.operation.LineItemsDeletedOperation - * @return {String} + * @return {String} */ getOrderId: function() { return this.orderId; @@ -93,4 +92,3 @@ LineItemsDeletedOperation._meta_.fields["orderId"].type = String; if ('undefined' !== typeof module) { module.exports = LineItemsDeletedOperation; } - diff --git a/order/operation/OrderDeletedOperation.js b/order/operation/OrderDeletedOperation.js index 05e1486b..1db3a4ad 100644 --- a/order/operation/OrderDeletedOperation.js +++ b/order/operation/OrderDeletedOperation.js @@ -1,11 +1,10 @@ /** * Autogenerated by Avro - * + * * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../../Class.js"); /** * @constructor @@ -25,7 +24,7 @@ require("prototype"); /** * Set the field value * @memberof order.operation.OrderDeletedOperation - * @param {String} id + * @param {String} id */ setId: function(id) { this.id = id; @@ -34,7 +33,7 @@ require("prototype"); /** * Get the field value * @memberof order.operation.OrderDeletedOperation - * @return {String} + * @return {String} */ getId: function() { return this.id; @@ -72,4 +71,3 @@ OrderDeletedOperation._meta_.fields["id"].type = String; if ('undefined' !== typeof module) { module.exports = OrderDeletedOperation; } - diff --git a/package.json b/package.json index 5ddb90b1..d2371e84 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "preinstall": "scripts/generateDocs.sh" }, "dependencies": { - "prototype": "*", "eventemitter3": "~1.1.1", "jsdoc": "*" }, diff --git a/payments/Authorization.js b/payments/Authorization.js index 9fc0315d..1de9a513 100644 --- a/payments/Authorization.js +++ b/payments/Authorization.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_CardType = require("../payments/CardType"); var payments_Payment = require("../payments/Payment"); var payments_Type = require("../payments/Type"); diff --git a/payments/Batch.js b/payments/Batch.js index 96e09505..b2201ff8 100644 --- a/payments/Batch.js +++ b/payments/Batch.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_BatchType = require("../payments/BatchType"); var payments_BatchDetail = require("../payments/BatchDetail"); var payments_BatchState = require("../payments/BatchState"); diff --git a/payments/BatchCardTotal.js b/payments/BatchCardTotal.js index 373db98f..6ff6160d 100644 --- a/payments/BatchCardTotal.js +++ b/payments/BatchCardTotal.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_CardType = require("../payments/CardType"); /** diff --git a/payments/BatchDetail.js b/payments/BatchDetail.js index 0200916d..274a276c 100644 --- a/payments/BatchDetail.js +++ b/payments/BatchDetail.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_BatchCardTotal = require("../payments/BatchCardTotal"); var payments_BatchTotalStats = require("../payments/BatchTotalStats"); var payments_ServerTotalStats = require("../payments/ServerTotalStats"); diff --git a/payments/BatchRequest.js b/payments/BatchRequest.js index b3e32c83..7762201e 100644 --- a/payments/BatchRequest.js +++ b/payments/BatchRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/payments/BatchTotalStats.js b/payments/BatchTotalStats.js index c2fd9682..e7090ac1 100644 --- a/payments/BatchTotalStats.js +++ b/payments/BatchTotalStats.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_BatchTotalType = require("../payments/BatchTotalType"); /** diff --git a/payments/BatchTotalType.js b/payments/BatchTotalType.js index f85285bc..4afa8b5c 100644 --- a/payments/BatchTotalType.js +++ b/payments/BatchTotalType.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/payments/CardTransaction.js b/payments/CardTransaction.js index 04ff1e09..83e030e8 100644 --- a/payments/CardTransaction.js +++ b/payments/CardTransaction.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_CardType = require("../payments/CardType"); var payments_CardTransactionState = require("../payments/CardTransactionState"); var base_Reference = require("../base/Reference"); diff --git a/payments/Credit.js b/payments/Credit.js index 3c54a389..6b0f9509 100644 --- a/payments/Credit.js +++ b/payments/Credit.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var customers_Customer = require("../customers/Customer"); var payments_CardTransaction = require("../payments/CardTransaction"); var payments_TaxableAmountRate = require("../payments/TaxableAmountRate"); diff --git a/payments/DCCInfo.js b/payments/DCCInfo.js index e98272fa..f59ef7e2 100644 --- a/payments/DCCInfo.js +++ b/payments/DCCInfo.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/payments/GatewayTxs.js b/payments/GatewayTxs.js index 29d3cb12..a544742f 100644 --- a/payments/GatewayTxs.js +++ b/payments/GatewayTxs.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_Currency = require("../payments/Currency"); var payments_CardType = require("../payments/CardType"); var payments_CardEntryType = require("../payments/CardEntryType"); diff --git a/payments/GiftCard.js b/payments/GiftCard.js index 08dcb235..d791146f 100644 --- a/payments/GiftCard.js +++ b/payments/GiftCard.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/payments/GiftCardResponse.js b/payments/GiftCardResponse.js index c55cd6e0..419ab836 100644 --- a/payments/GiftCardResponse.js +++ b/payments/GiftCardResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_GiftCardState = require("../payments/GiftCardState"); var payments_Payment = require("../payments/Payment"); var payments_TxType = require("../payments/TxType"); diff --git a/payments/GiftCardTransaction.js b/payments/GiftCardTransaction.js index 79306222..6cb9f911 100644 --- a/payments/GiftCardTransaction.js +++ b/payments/GiftCardTransaction.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_LineItemPayment = require("../payments/LineItemPayment"); var payments_TaxableAmountRate = require("../payments/TaxableAmountRate"); var payments_ServiceChargeAmount = require("../payments/ServiceChargeAmount"); diff --git a/payments/LineItemPayment.js b/payments/LineItemPayment.js index a4f8a441..2eaaac4b 100644 --- a/payments/LineItemPayment.js +++ b/payments/LineItemPayment.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/payments/Payment.js b/payments/Payment.js index 2065cfd0..319fe394 100644 --- a/payments/Payment.js +++ b/payments/Payment.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_CardTransaction = require("../payments/CardTransaction"); var payments_LineItemPayment = require("../payments/LineItemPayment"); var order_VoidReason = require("../order/VoidReason"); diff --git a/payments/PaymentResponse.js b/payments/PaymentResponse.js index d6c8b2fd..096e4fec 100644 --- a/payments/PaymentResponse.js +++ b/payments/PaymentResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_Payment = require("../payments/Payment"); /** diff --git a/payments/PaymentTaxRate.js b/payments/PaymentTaxRate.js index dfe49301..f6c5a92a 100644 --- a/payments/PaymentTaxRate.js +++ b/payments/PaymentTaxRate.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/payments/Refund.js b/payments/Refund.js index 41d74083..88c75d82 100644 --- a/payments/Refund.js +++ b/payments/Refund.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_TaxableAmountRate = require("../payments/TaxableAmountRate"); var payments_ServiceChargeAmount = require("../payments/ServiceChargeAmount"); var base_Reference = require("../base/Reference"); diff --git a/payments/ServerTotalStats.js b/payments/ServerTotalStats.js index 2ea234b8..e1e645a7 100644 --- a/payments/ServerTotalStats.js +++ b/payments/ServerTotalStats.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_BatchTotalType = require("../payments/BatchTotalType"); /** diff --git a/payments/ServiceChargeAmount.js b/payments/ServiceChargeAmount.js index 2ac651a4..85c949a3 100644 --- a/payments/ServiceChargeAmount.js +++ b/payments/ServiceChargeAmount.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_Reference = require("../base/Reference"); /** diff --git a/payments/Tag.js b/payments/Tag.js index eee48073..fa679b89 100644 --- a/payments/Tag.js +++ b/payments/Tag.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/payments/TaxableAmountRate.js b/payments/TaxableAmountRate.js index b5f8b98f..a9e64ae1 100644 --- a/payments/TaxableAmountRate.js +++ b/payments/TaxableAmountRate.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/payments/TerminalParameter.js b/payments/TerminalParameter.js index c72f3335..e31e0e02 100644 --- a/payments/TerminalParameter.js +++ b/payments/TerminalParameter.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_Tag = require("../payments/Tag"); var payments_ParamType = require("../payments/ParamType"); var payments_OverrideType = require("../payments/OverrideType"); diff --git a/payments/Transaction.js b/payments/Transaction.js index b917be07..d8b905b0 100644 --- a/payments/Transaction.js +++ b/payments/Transaction.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_Payment = require("../payments/Payment"); var payments_Refund = require("../payments/Refund"); var payments_Credit = require("../payments/Credit"); diff --git a/payments/VaultedCard.js b/payments/VaultedCard.js index 6b7ac6ae..9ab5275b 100644 --- a/payments/VaultedCard.js +++ b/payments/VaultedCard.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/printer/Printer.js b/printer/Printer.js index 0a6dd707..05462b04 100644 --- a/printer/Printer.js +++ b/printer/Printer.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var printer_PrinterType = require("../printer/PrinterType"); /** diff --git a/remotemessage/AcknowledgementMessage.js b/remotemessage/AcknowledgementMessage.js index 1a8fe912..763f29c2 100644 --- a/remotemessage/AcknowledgementMessage.js +++ b/remotemessage/AcknowledgementMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/AddDiscountAction.js b/remotemessage/AddDiscountAction.js index ce74dfcf..7f7b982e 100644 --- a/remotemessage/AddDiscountAction.js +++ b/remotemessage/AddDiscountAction.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var order_DisplayDiscount = require("../order/DisplayDiscount"); /** diff --git a/remotemessage/AddLineItemAction.js b/remotemessage/AddLineItemAction.js index 78b0ea28..ca006324 100644 --- a/remotemessage/AddLineItemAction.js +++ b/remotemessage/AddLineItemAction.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var order_DisplayLineItem = require("../order/DisplayLineItem"); /** diff --git a/remotemessage/BreakMessage.js b/remotemessage/BreakMessage.js index d7cc1e63..285fcc08 100644 --- a/remotemessage/BreakMessage.js +++ b/remotemessage/BreakMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/CapturePreAuthMessage.js b/remotemessage/CapturePreAuthMessage.js index 5562a21b..ede621e2 100644 --- a/remotemessage/CapturePreAuthMessage.js +++ b/remotemessage/CapturePreAuthMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/CapturePreAuthResponseMessage.js b/remotemessage/CapturePreAuthResponseMessage.js index 7f712bce..d2a7f75f 100644 --- a/remotemessage/CapturePreAuthResponseMessage.js +++ b/remotemessage/CapturePreAuthResponseMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_ResultStatus = require("../remotemessage/ResultStatus"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/CardDataRequestMessage.js b/remotemessage/CardDataRequestMessage.js index 68ebe695..ee0e059d 100644 --- a/remotemessage/CardDataRequestMessage.js +++ b/remotemessage/CardDataRequestMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_PayIntent = require("../remotemessage/PayIntent"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/CardDataResponseMessage.js b/remotemessage/CardDataResponseMessage.js index e4472db0..11411ffc 100644 --- a/remotemessage/CardDataResponseMessage.js +++ b/remotemessage/CardDataResponseMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_ResultStatus = require("../remotemessage/ResultStatus"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/CashbackSelectedMessage.js b/remotemessage/CashbackSelectedMessage.js index c46d6577..bed61208 100644 --- a/remotemessage/CashbackSelectedMessage.js +++ b/remotemessage/CashbackSelectedMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/CloseoutRequestMessage.js b/remotemessage/CloseoutRequestMessage.js index 52f9a178..a8bceb93 100644 --- a/remotemessage/CloseoutRequestMessage.js +++ b/remotemessage/CloseoutRequestMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/CloseoutResponseMessage.js b/remotemessage/CloseoutResponseMessage.js index 86e82f47..fb77244d 100644 --- a/remotemessage/CloseoutResponseMessage.js +++ b/remotemessage/CloseoutResponseMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_ResultStatus = require("../remotemessage/ResultStatus"); var payments_Batch = require("../payments/Batch"); diff --git a/remotemessage/ConfirmPaymentMessage.js b/remotemessage/ConfirmPaymentMessage.js index aaa0b5a5..dd9d2fd5 100644 --- a/remotemessage/ConfirmPaymentMessage.js +++ b/remotemessage/ConfirmPaymentMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var base_Challenge = require("../base/Challenge"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/DiscoveryRequestMessage.js b/remotemessage/DiscoveryRequestMessage.js index 8157f5a8..3fa68273 100644 --- a/remotemessage/DiscoveryRequestMessage.js +++ b/remotemessage/DiscoveryRequestMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/DiscoveryResponseMessage.js b/remotemessage/DiscoveryResponseMessage.js index 6b2bcabc..ef2c1ae8 100644 --- a/remotemessage/DiscoveryResponseMessage.js +++ b/remotemessage/DiscoveryResponseMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/ErrorCodeEnum.js b/remotemessage/ErrorCodeEnum.js index 4c909fe5..06f2cbda 100644 --- a/remotemessage/ErrorCodeEnum.js +++ b/remotemessage/ErrorCodeEnum.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_ErrorCode = require("../remotemessage/ErrorCode"); /** diff --git a/remotemessage/FinishCancelMessage.js b/remotemessage/FinishCancelMessage.js index f388cbd3..3f1f587b 100644 --- a/remotemessage/FinishCancelMessage.js +++ b/remotemessage/FinishCancelMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/FinishOkMessage.js b/remotemessage/FinishOkMessage.js index 741751b6..00a82bdd 100644 --- a/remotemessage/FinishOkMessage.js +++ b/remotemessage/FinishOkMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); var payments_Payment = require("../payments/Payment"); diff --git a/remotemessage/ImagePrintMessage.js b/remotemessage/ImagePrintMessage.js index 87b0a99d..d9d8d882 100644 --- a/remotemessage/ImagePrintMessage.js +++ b/remotemessage/ImagePrintMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/InputOption.js b/remotemessage/InputOption.js index 3e14bb47..c1b27a67 100644 --- a/remotemessage/InputOption.js +++ b/remotemessage/InputOption.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_KeyPress = require("../remotemessage/KeyPress"); /** diff --git a/remotemessage/KeyPressEnum.js b/remotemessage/KeyPressEnum.js index 670d95e3..2a513b7b 100644 --- a/remotemessage/KeyPressEnum.js +++ b/remotemessage/KeyPressEnum.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_KeyPress = require("../remotemessage/KeyPress"); /** diff --git a/remotemessage/KeyPressMessage.js b/remotemessage/KeyPressMessage.js index 74147336..a8ea9532 100644 --- a/remotemessage/KeyPressMessage.js +++ b/remotemessage/KeyPressMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_KeyPress = require("../remotemessage/KeyPress"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/LastMessageRequestMessage.js b/remotemessage/LastMessageRequestMessage.js index 51deb86c..86869995 100644 --- a/remotemessage/LastMessageRequestMessage.js +++ b/remotemessage/LastMessageRequestMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/LastMessageResponseMessage.js b/remotemessage/LastMessageResponseMessage.js index 6f3c7454..dfe0c425 100644 --- a/remotemessage/LastMessageResponseMessage.js +++ b/remotemessage/LastMessageResponseMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/LogMessage.js b/remotemessage/LogMessage.js index b44cf123..bd9966f2 100644 --- a/remotemessage/LogMessage.js +++ b/remotemessage/LogMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); var remotemessage_LogLevelEnum = require("../remotemessage/LogLevelEnum"); diff --git a/remotemessage/Message.js b/remotemessage/Message.js index 649bb5b0..846472fa 100644 --- a/remotemessage/Message.js +++ b/remotemessage/Message.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); /** diff --git a/remotemessage/OpenCashDrawerMessage.js b/remotemessage/OpenCashDrawerMessage.js index 854239a9..469c8868 100644 --- a/remotemessage/OpenCashDrawerMessage.js +++ b/remotemessage/OpenCashDrawerMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/OrderActionAddDiscountMessage.js b/remotemessage/OrderActionAddDiscountMessage.js index 2acd32da..13eb7dd9 100644 --- a/remotemessage/OrderActionAddDiscountMessage.js +++ b/remotemessage/OrderActionAddDiscountMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); var remotemessage_AddDiscountAction = require("../remotemessage/AddDiscountAction"); diff --git a/remotemessage/OrderActionAddLineItemMessage.js b/remotemessage/OrderActionAddLineItemMessage.js index a1e118fb..d7b33b27 100644 --- a/remotemessage/OrderActionAddLineItemMessage.js +++ b/remotemessage/OrderActionAddLineItemMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); var remotemessage_AddLineItemAction = require("../remotemessage/AddLineItemAction"); diff --git a/remotemessage/OrderActionRemoveDiscountMessage.js b/remotemessage/OrderActionRemoveDiscountMessage.js index 70f85df2..c7af77d4 100644 --- a/remotemessage/OrderActionRemoveDiscountMessage.js +++ b/remotemessage/OrderActionRemoveDiscountMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); var remotemessage_RemoveDiscountAction = require("../remotemessage/RemoveDiscountAction"); diff --git a/remotemessage/OrderActionRemoveLineItemMessage.js b/remotemessage/OrderActionRemoveLineItemMessage.js index d27b07e1..61e4e566 100644 --- a/remotemessage/OrderActionRemoveLineItemMessage.js +++ b/remotemessage/OrderActionRemoveLineItemMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); var remotemessage_RemoveLineItemAction = require("../remotemessage/RemoveLineItemAction"); diff --git a/remotemessage/OrderActionResponse.js b/remotemessage/OrderActionResponse.js index 3b6ddf8d..f1046ec3 100644 --- a/remotemessage/OrderActionResponse.js +++ b/remotemessage/OrderActionResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/remotemessage/OrderActionResponseMessage.js b/remotemessage/OrderActionResponseMessage.js index bc7640bf..2fd8215d 100644 --- a/remotemessage/OrderActionResponseMessage.js +++ b/remotemessage/OrderActionResponseMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); var remotemessage_OrderActionResponse = require("../remotemessage/OrderActionResponse"); diff --git a/remotemessage/OrderUpdateMessage.js b/remotemessage/OrderUpdateMessage.js index d3af9843..e17fd1a0 100644 --- a/remotemessage/OrderUpdateMessage.js +++ b/remotemessage/OrderUpdateMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var order_operation_DiscountsAddedOperation = require("../order/operation/DiscountsAddedOperation"); var order_operation_OrderDeletedOperation = require("../order/operation/OrderDeletedOperation"); diff --git a/remotemessage/PartialAuthMessage.js b/remotemessage/PartialAuthMessage.js index 06a5be11..03496277 100644 --- a/remotemessage/PartialAuthMessage.js +++ b/remotemessage/PartialAuthMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/PayIntent.js b/remotemessage/PayIntent.js index 4dd84686..9d6dda04 100644 --- a/remotemessage/PayIntent.js +++ b/remotemessage/PayIntent.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_TransactionType = require("../remotemessage/TransactionType"); var payments_TaxableAmountRate = require("../payments/TaxableAmountRate"); var payments_ServiceChargeAmount = require("../payments/ServiceChargeAmount"); diff --git a/remotemessage/PaymentConfirmedMessage.js b/remotemessage/PaymentConfirmedMessage.js index 3abde847..ac0b17cf 100644 --- a/remotemessage/PaymentConfirmedMessage.js +++ b/remotemessage/PaymentConfirmedMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); var payments_Payment = require("../payments/Payment"); diff --git a/remotemessage/PaymentRejectedMessage.js b/remotemessage/PaymentRejectedMessage.js index eccad6c3..1328c73f 100644 --- a/remotemessage/PaymentRejectedMessage.js +++ b/remotemessage/PaymentRejectedMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var order_VoidReason = require("../order/VoidReason"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/PaymentVoidedMessage.js b/remotemessage/PaymentVoidedMessage.js index b2b8d1a4..7091555e 100644 --- a/remotemessage/PaymentVoidedMessage.js +++ b/remotemessage/PaymentVoidedMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var order_VoidReason = require("../order/VoidReason"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/RefundRequestMessage.js b/remotemessage/RefundRequestMessage.js index 30948759..4b6040e3 100644 --- a/remotemessage/RefundRequestMessage.js +++ b/remotemessage/RefundRequestMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/RefundResponseMessage.js b/remotemessage/RefundResponseMessage.js index f1e75409..fc421038 100644 --- a/remotemessage/RefundResponseMessage.js +++ b/remotemessage/RefundResponseMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_TxState = require("../remotemessage/TxState"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/RemoteMessage.js b/remotemessage/RemoteMessage.js index 760a0a22..a898792a 100644 --- a/remotemessage/RemoteMessage.js +++ b/remotemessage/RemoteMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_RemoteMessageType = require("../remotemessage/RemoteMessageType"); diff --git a/remotemessage/RemoveDiscountAction.js b/remotemessage/RemoveDiscountAction.js index 12a5f21a..376ae026 100644 --- a/remotemessage/RemoveDiscountAction.js +++ b/remotemessage/RemoveDiscountAction.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/remotemessage/RemoveLineItemAction.js b/remotemessage/RemoveLineItemAction.js index 1929e950..1012c370 100644 --- a/remotemessage/RemoveLineItemAction.js +++ b/remotemessage/RemoveLineItemAction.js @@ -1,11 +1,10 @@ /** * Autogenerated by Avro - * + * * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor @@ -25,7 +24,7 @@ require("prototype"); /** * Set the field value * @memberof remotemessage.RemoveLineItemAction - * @param {String} lineItemId + * @param {String} lineItemId */ setLineItemId: function(lineItemId) { this.lineItemId = lineItemId; @@ -34,7 +33,7 @@ require("prototype"); /** * Get the field value * @memberof remotemessage.RemoveLineItemAction - * @return {String} + * @return {String} */ getLineItemId: function() { return this.lineItemId; @@ -72,4 +71,3 @@ RemoveLineItemAction._meta_.fields["lineItemId"].type = String; if ('undefined' !== typeof module) { module.exports = RemoveLineItemAction; } - diff --git a/remotemessage/ResultStatusEnum.js b/remotemessage/ResultStatusEnum.js index 2999137c..86ce0fdc 100644 --- a/remotemessage/ResultStatusEnum.js +++ b/remotemessage/ResultStatusEnum.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_ResultStatus = require("../remotemessage/ResultStatus"); /** diff --git a/remotemessage/RetrievePendingPaymentsMessage.js b/remotemessage/RetrievePendingPaymentsMessage.js index c5212f77..549bfb54 100644 --- a/remotemessage/RetrievePendingPaymentsMessage.js +++ b/remotemessage/RetrievePendingPaymentsMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/RetrievePendingPaymentsResponseMessage.js b/remotemessage/RetrievePendingPaymentsResponseMessage.js index 83334348..85110991 100644 --- a/remotemessage/RetrievePendingPaymentsResponseMessage.js +++ b/remotemessage/RetrievePendingPaymentsResponseMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_ResultStatus = require("../remotemessage/ResultStatus"); var base_PendingPaymentEntry = require("../base/PendingPaymentEntry"); diff --git a/remotemessage/ShowPaymentReceiptOptionsMessage.js b/remotemessage/ShowPaymentReceiptOptionsMessage.js index bb5a9de2..d98a35a5 100644 --- a/remotemessage/ShowPaymentReceiptOptionsMessage.js +++ b/remotemessage/ShowPaymentReceiptOptionsMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/SignatureVerifiedMessage.js b/remotemessage/SignatureVerifiedMessage.js index 08586eb1..140736f9 100644 --- a/remotemessage/SignatureVerifiedMessage.js +++ b/remotemessage/SignatureVerifiedMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); var payments_Payment = require("../payments/Payment"); diff --git a/remotemessage/TerminalMessage.js b/remotemessage/TerminalMessage.js index 2f75e38c..8359e031 100644 --- a/remotemessage/TerminalMessage.js +++ b/remotemessage/TerminalMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/TextPrintMessage.js b/remotemessage/TextPrintMessage.js index 3812f92a..121466ea 100644 --- a/remotemessage/TextPrintMessage.js +++ b/remotemessage/TextPrintMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/ThankYouMessage.js b/remotemessage/ThankYouMessage.js index ed221144..4283b499 100644 --- a/remotemessage/ThankYouMessage.js +++ b/remotemessage/ThankYouMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/TipAddedMessage.js b/remotemessage/TipAddedMessage.js index 6bcf9049..45e697f1 100644 --- a/remotemessage/TipAddedMessage.js +++ b/remotemessage/TipAddedMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/TipAdjustMessage.js b/remotemessage/TipAdjustMessage.js index eff18e88..3bb2e7fc 100644 --- a/remotemessage/TipAdjustMessage.js +++ b/remotemessage/TipAdjustMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/TipAdjustResponseMessage.js b/remotemessage/TipAdjustResponseMessage.js index e9f40e66..0df57070 100644 --- a/remotemessage/TipAdjustResponseMessage.js +++ b/remotemessage/TipAdjustResponseMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/TxStartRequestMessage.js b/remotemessage/TxStartRequestMessage.js index f84a45f5..e1e2d50e 100644 --- a/remotemessage/TxStartRequestMessage.js +++ b/remotemessage/TxStartRequestMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_PayIntent = require("../remotemessage/PayIntent"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/TxStartResponseMessage.js b/remotemessage/TxStartResponseMessage.js index 7d3117ca..a17c2332 100644 --- a/remotemessage/TxStartResponseMessage.js +++ b/remotemessage/TxStartResponseMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); var remotemessage_TxStartResponseResult = require("../remotemessage/TxStartResponseResult"); diff --git a/remotemessage/TxStateEnum.js b/remotemessage/TxStateEnum.js index 91108c8c..c6282b06 100644 --- a/remotemessage/TxStateEnum.js +++ b/remotemessage/TxStateEnum.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_TxState = require("../remotemessage/TxState"); /** diff --git a/remotemessage/TxStateMessage.js b/remotemessage/TxStateMessage.js index c2721fac..2d807ce5 100644 --- a/remotemessage/TxStateMessage.js +++ b/remotemessage/TxStateMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_TxState = require("../remotemessage/TxState"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/UiStateMessage.js b/remotemessage/UiStateMessage.js index edf335cd..e4f10466 100644 --- a/remotemessage/UiStateMessage.js +++ b/remotemessage/UiStateMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_UiDirection = require("../remotemessage/UiDirection"); var remotemessage_InputOption = require("../remotemessage/InputOption"); diff --git a/remotemessage/VaultCardMessage.js b/remotemessage/VaultCardMessage.js index a30d3cfa..8a21a4ab 100644 --- a/remotemessage/VaultCardMessage.js +++ b/remotemessage/VaultCardMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/VaultCardResponseMessage.js b/remotemessage/VaultCardResponseMessage.js index 11b48b47..dc94dbba 100644 --- a/remotemessage/VaultCardResponseMessage.js +++ b/remotemessage/VaultCardResponseMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_ResultStatus = require("../remotemessage/ResultStatus"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/VerifySignatureMessage.js b/remotemessage/VerifySignatureMessage.js index 44ea190e..158d4923 100644 --- a/remotemessage/VerifySignatureMessage.js +++ b/remotemessage/VerifySignatureMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); var payments_Payment = require("../payments/Payment"); diff --git a/remotemessage/VoidPaymentMessage.js b/remotemessage/VoidPaymentMessage.js index 9cbad88f..14c09192 100644 --- a/remotemessage/VoidPaymentMessage.js +++ b/remotemessage/VoidPaymentMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var order_VoidReason = require("../order/VoidReason"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotemessage/WelcomeMessage.js b/remotemessage/WelcomeMessage.js index 60c62c58..6464003c 100644 --- a/remotemessage/WelcomeMessage.js +++ b/remotemessage/WelcomeMessage.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotemessage_Method = require("../remotemessage/Method"); var remotemessage_Message = require("../remotemessage/Message"); diff --git a/remotepay/AuthRequest.js b/remotepay/AuthRequest.js index 4045303d..5ac84ed1 100644 --- a/remotepay/AuthRequest.js +++ b/remotepay/AuthRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_TransactionType = require("../remotepay/TransactionType"); var remotepay_TransactionRequest = require("../remotepay/TransactionRequest"); diff --git a/remotepay/AuthResponse.js b/remotepay/AuthResponse.js index 0625d1f4..a2952f21 100644 --- a/remotepay/AuthResponse.js +++ b/remotepay/AuthResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_PaymentResponse = require("../remotepay/PaymentResponse"); /** The response to an authorization request */ diff --git a/remotepay/BaseRequest.js b/remotepay/BaseRequest.js index fdcb9d9f..f3497dec 100644 --- a/remotepay/BaseRequest.js +++ b/remotepay/BaseRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** The base for requests */ /** diff --git a/remotepay/BaseResponse.js b/remotepay/BaseResponse.js index 6903e84d..79951145 100644 --- a/remotepay/BaseResponse.js +++ b/remotepay/BaseResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_ResponseCode = require("../remotepay/ResponseCode"); /** The base for responses */ diff --git a/remotepay/CapturePreAuthRequest.js b/remotepay/CapturePreAuthRequest.js index 2171bda3..5cf4ffbf 100644 --- a/remotepay/CapturePreAuthRequest.js +++ b/remotepay/CapturePreAuthRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseRequest = require("../remotepay/BaseRequest"); /** Captures a previously made pre auth */ diff --git a/remotepay/CapturePreAuthResponse.js b/remotepay/CapturePreAuthResponse.js index ee6e3f38..82ebd077 100644 --- a/remotepay/CapturePreAuthResponse.js +++ b/remotepay/CapturePreAuthResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); /** The result of an attempt to capture a previously made pre auth */ diff --git a/remotepay/CardInfoRequest.js b/remotepay/CardInfoRequest.js index 6d99109f..249eadee 100644 --- a/remotepay/CardInfoRequest.js +++ b/remotepay/CardInfoRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseRequest = require("../remotepay/BaseRequest"); /** diff --git a/remotepay/CardInfoResponse.js b/remotepay/CardInfoResponse.js index 45f1059b..8b170257 100644 --- a/remotepay/CardInfoResponse.js +++ b/remotepay/CardInfoResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); var payments_VaultedCard = require("../payments/VaultedCard"); diff --git a/remotepay/CloseoutRequest.js b/remotepay/CloseoutRequest.js index 1cc6cb2a..ea26c404 100644 --- a/remotepay/CloseoutRequest.js +++ b/remotepay/CloseoutRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseRequest = require("../remotepay/BaseRequest"); /** Send a request for a closeout */ diff --git a/remotepay/CloseoutResponse.js b/remotepay/CloseoutResponse.js index b05ae4af..82907155 100644 --- a/remotepay/CloseoutResponse.js +++ b/remotepay/CloseoutResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_Batch = require("../payments/Batch"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); diff --git a/remotepay/CloverDeviceErrorEvent.js b/remotepay/CloverDeviceErrorEvent.js index 965876de..e2c89eb0 100644 --- a/remotepay/CloverDeviceErrorEvent.js +++ b/remotepay/CloverDeviceErrorEvent.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_DeviceErrorEventCode = require("../remotepay/DeviceErrorEventCode"); var remotepay_ErrorType = require("../remotepay/ErrorType"); diff --git a/remotepay/CloverDeviceEvent.js b/remotepay/CloverDeviceEvent.js index 7abf1617..0cad9722 100644 --- a/remotepay/CloverDeviceEvent.js +++ b/remotepay/CloverDeviceEvent.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_DeviceEventState = require("../remotepay/DeviceEventState"); var remotepay_InputOption = require("../remotepay/InputOption"); diff --git a/remotepay/ConfirmPaymentRequest.js b/remotepay/ConfirmPaymentRequest.js index 5ae3f292..8b64d7a8 100644 --- a/remotepay/ConfirmPaymentRequest.js +++ b/remotepay/ConfirmPaymentRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseRequest = require("../remotepay/BaseRequest"); var base_Challenge = require("../base/Challenge"); var payments_Payment = require("../payments/Payment"); diff --git a/remotepay/DeviceEventEnum.js b/remotepay/DeviceEventEnum.js index 4369940a..fea63be8 100644 --- a/remotepay/DeviceEventEnum.js +++ b/remotepay/DeviceEventEnum.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_DeviceErrorEventCode = require("../remotepay/DeviceErrorEventCode"); var remotepay_DeviceEventState = require("../remotepay/DeviceEventState"); diff --git a/remotepay/DeviceInfo.js b/remotepay/DeviceInfo.js index 3676919f..3d79fa11 100644 --- a/remotepay/DeviceInfo.js +++ b/remotepay/DeviceInfo.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/remotepay/DisplayReceiptOptionsRequest.js b/remotepay/DisplayReceiptOptionsRequest.js index c5cc7c81..6764e6be 100644 --- a/remotepay/DisplayReceiptOptionsRequest.js +++ b/remotepay/DisplayReceiptOptionsRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/remotepay/ICloverConnector.js b/remotepay/ICloverConnector.js index c467e006..449ef84c 100644 --- a/remotepay/ICloverConnector.js +++ b/remotepay/ICloverConnector.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** diff --git a/remotepay/ICloverConnectorListener.js b/remotepay/ICloverConnectorListener.js index 9e7830ac..29950359 100644 --- a/remotepay/ICloverConnectorListener.js +++ b/remotepay/ICloverConnectorListener.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** diff --git a/remotepay/Img.js b/remotepay/Img.js index 56a9d982..191b100f 100644 --- a/remotepay/Img.js +++ b/remotepay/Img.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/remotepay/InputOption.js b/remotepay/InputOption.js index 99397527..db8c9b23 100644 --- a/remotepay/InputOption.js +++ b/remotepay/InputOption.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_KeyPress = require("../remotepay/KeyPress"); /** diff --git a/remotepay/KeyPressEnum.js b/remotepay/KeyPressEnum.js index a71fbbff..2aff9ac2 100644 --- a/remotepay/KeyPressEnum.js +++ b/remotepay/KeyPressEnum.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_KeyPress = require("../remotepay/KeyPress"); /** diff --git a/remotepay/ManualRefundRequest.js b/remotepay/ManualRefundRequest.js index c1429b80..bb2c5b27 100644 --- a/remotepay/ManualRefundRequest.js +++ b/remotepay/ManualRefundRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_TransactionType = require("../remotepay/TransactionType"); var remotepay_TransactionRequest = require("../remotepay/TransactionRequest"); diff --git a/remotepay/ManualRefundResponse.js b/remotepay/ManualRefundResponse.js index 14a00eb1..47ccacee 100644 --- a/remotepay/ManualRefundResponse.js +++ b/remotepay/ManualRefundResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); var payments_Credit = require("../payments/Credit"); diff --git a/remotepay/MerchantInfo.js b/remotepay/MerchantInfo.js index d9befc27..50020f5e 100644 --- a/remotepay/MerchantInfo.js +++ b/remotepay/MerchantInfo.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_DeviceInfo = require("../remotepay/DeviceInfo"); /** diff --git a/remotepay/PaymentResponse.js b/remotepay/PaymentResponse.js index 35a79625..26ef3cb1 100644 --- a/remotepay/PaymentResponse.js +++ b/remotepay/PaymentResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var payments_Payment = require("../payments/Payment"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); var base_Signature = require("../base/Signature"); diff --git a/remotepay/PreAuthRequest.js b/remotepay/PreAuthRequest.js index 55a45bb1..c350f66b 100644 --- a/remotepay/PreAuthRequest.js +++ b/remotepay/PreAuthRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_TransactionType = require("../remotepay/TransactionType"); var remotepay_TransactionRequest = require("../remotepay/TransactionRequest"); diff --git a/remotepay/PreAuthResponse.js b/remotepay/PreAuthResponse.js index a08a0bb5..e865dc94 100644 --- a/remotepay/PreAuthResponse.js +++ b/remotepay/PreAuthResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_PaymentResponse = require("../remotepay/PaymentResponse"); /** diff --git a/remotepay/ReadCardDataRequest.js b/remotepay/ReadCardDataRequest.js index c2204cb5..fa44a5da 100644 --- a/remotepay/ReadCardDataRequest.js +++ b/remotepay/ReadCardDataRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseRequest = require("../remotepay/BaseRequest"); /** diff --git a/remotepay/ReadCardDataResponse.js b/remotepay/ReadCardDataResponse.js index 3677e970..2603a246 100644 --- a/remotepay/ReadCardDataResponse.js +++ b/remotepay/ReadCardDataResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_CardData = require("../base/CardData"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); diff --git a/remotepay/RefundPaymentRequest.js b/remotepay/RefundPaymentRequest.js index 019124ba..ef87f370 100644 --- a/remotepay/RefundPaymentRequest.js +++ b/remotepay/RefundPaymentRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseRequest = require("../remotepay/BaseRequest"); /** diff --git a/remotepay/RefundPaymentResponse.js b/remotepay/RefundPaymentResponse.js index 05d57598..08a762a4 100644 --- a/remotepay/RefundPaymentResponse.js +++ b/remotepay/RefundPaymentResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); var payments_Refund = require("../payments/Refund"); diff --git a/remotepay/ResponseCodeEnum.js b/remotepay/ResponseCodeEnum.js index 7690d296..896a97e8 100644 --- a/remotepay/ResponseCodeEnum.js +++ b/remotepay/ResponseCodeEnum.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_ResponseCode = require("../remotepay/ResponseCode"); /** diff --git a/remotepay/ResultStatusEnum.js b/remotepay/ResultStatusEnum.js index d6421bc7..7aca0761 100644 --- a/remotepay/ResultStatusEnum.js +++ b/remotepay/ResultStatusEnum.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_ResultStatus = require("../remotepay/ResultStatus"); /** diff --git a/remotepay/RetrievePendingPaymentsResponse.js b/remotepay/RetrievePendingPaymentsResponse.js index afbd559c..113a3f06 100644 --- a/remotepay/RetrievePendingPaymentsResponse.js +++ b/remotepay/RetrievePendingPaymentsResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var base_PendingPaymentEntry = require("../base/PendingPaymentEntry"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); diff --git a/remotepay/SaleRequest.js b/remotepay/SaleRequest.js index be649e9f..d02a559e 100644 --- a/remotepay/SaleRequest.js +++ b/remotepay/SaleRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_TransactionType = require("../remotepay/TransactionType"); var remotepay_TransactionRequest = require("../remotepay/TransactionRequest"); diff --git a/remotepay/SaleResponse.js b/remotepay/SaleResponse.js index 99a4899d..266114e5 100644 --- a/remotepay/SaleResponse.js +++ b/remotepay/SaleResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_PaymentResponse = require("../remotepay/PaymentResponse"); /** diff --git a/remotepay/TipAdded.js b/remotepay/TipAdded.js index 8f2e2258..9f7e67fc 100644 --- a/remotepay/TipAdded.js +++ b/remotepay/TipAdded.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); /** diff --git a/remotepay/TipAdjustAuthRequest.js b/remotepay/TipAdjustAuthRequest.js index 5b460920..5126689b 100644 --- a/remotepay/TipAdjustAuthRequest.js +++ b/remotepay/TipAdjustAuthRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseRequest = require("../remotepay/BaseRequest"); /** diff --git a/remotepay/TipAdjustAuthResponse.js b/remotepay/TipAdjustAuthResponse.js index 992624d0..1f30f390 100644 --- a/remotepay/TipAdjustAuthResponse.js +++ b/remotepay/TipAdjustAuthResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); /** diff --git a/remotepay/TransactionRequest.js b/remotepay/TransactionRequest.js index 49a75d3b..d6e975ed 100644 --- a/remotepay/TransactionRequest.js +++ b/remotepay/TransactionRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseRequest = require("../remotepay/BaseRequest"); var remotepay_TransactionType = require("../remotepay/TransactionType"); var payments_VaultedCard = require("../payments/VaultedCard"); diff --git a/remotepay/TransactionTypeEnum.js b/remotepay/TransactionTypeEnum.js index 5ac54461..9dec44b8 100644 --- a/remotepay/TransactionTypeEnum.js +++ b/remotepay/TransactionTypeEnum.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_TransactionType = require("../remotepay/TransactionType"); /** diff --git a/remotepay/VaultCardRequest.js b/remotepay/VaultCardRequest.js index 46e8e4f2..c1bc416c 100644 --- a/remotepay/VaultCardRequest.js +++ b/remotepay/VaultCardRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseRequest = require("../remotepay/BaseRequest"); /** diff --git a/remotepay/VaultCardResponse.js b/remotepay/VaultCardResponse.js index 802acc5a..09a35f41 100644 --- a/remotepay/VaultCardResponse.js +++ b/remotepay/VaultCardResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); var payments_VaultedCard = require("../payments/VaultedCard"); diff --git a/remotepay/VerifySignatureRequest.js b/remotepay/VerifySignatureRequest.js index 1a44a40d..970d79c7 100644 --- a/remotepay/VerifySignatureRequest.js +++ b/remotepay/VerifySignatureRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseRequest = require("../remotepay/BaseRequest"); var payments_Payment = require("../payments/Payment"); var base_Signature = require("../base/Signature"); diff --git a/remotepay/VoidCreditRequest.js b/remotepay/VoidCreditRequest.js index 2d01dc70..046fbfd2 100644 --- a/remotepay/VoidCreditRequest.js +++ b/remotepay/VoidCreditRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); /** * @constructor diff --git a/remotepay/VoidCreditResponse.js b/remotepay/VoidCreditResponse.js index fd9fa8ed..4230d1d9 100644 --- a/remotepay/VoidCreditResponse.js +++ b/remotepay/VoidCreditResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_ResultStatus = require("../remotepay/ResultStatus"); var payments_Credit = require("../payments/Credit"); diff --git a/remotepay/VoidPaymentRequest.js b/remotepay/VoidPaymentRequest.js index 134ea6f6..a90cf0c4 100644 --- a/remotepay/VoidPaymentRequest.js +++ b/remotepay/VoidPaymentRequest.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseRequest = require("../remotepay/BaseRequest"); /** diff --git a/remotepay/VoidPaymentResponse.js b/remotepay/VoidPaymentResponse.js index 4691271b..c48a3ac1 100644 --- a/remotepay/VoidPaymentResponse.js +++ b/remotepay/VoidPaymentResponse.js @@ -4,8 +4,7 @@ * DO NOT EDIT DIRECTLY */ -// Prototype.js required -require("prototype"); +var Class = require("../Class.js"); var remotepay_BaseResponse = require("../remotepay/BaseResponse"); /**