diff --git a/.github/workflows/nodejs-workflow.yml b/.github/workflows/nodejs-workflow.yml new file mode 100644 index 0000000..1a12fd2 --- /dev/null +++ b/.github/workflows/nodejs-workflow.yml @@ -0,0 +1,67 @@ +name: Authorize.net Node.js CI +on: + push: + pull_request: + workflow_dispatch: +env: + sdk_node: 'sdk-node' + sample_code_node: 'sample-code-node' + local_npm_folder: 'local-npm-folder' +jobs: + workflow-job: + defaults: + run: + shell: bash + strategy: + fail-fast: false + matrix: + operating-system: [ubuntu-latest, macos-latest, windows-latest] + node-ver: [14.x, 16.x, 17.x, 18.x, 19.x, 20.x, 21.x, 22.x] + exclude: + - operating-system: macos-latest + node-ver: 14.x + include: + - operating-system: macos-13 + node-ver: 14.x + runs-on: ${{matrix.operating-system}} + steps: + - name: Creating separate folders for SDK and Sample Codes + run: | + rm -rf $sdk_node + rm -rf $sample_code_node + mkdir $sdk_node $sample_code_node + + - name: Checkout authorizenet/sdk-node + uses: actions/checkout@v4 + with: + path: ${{env.sdk_node}} + + - name: Checkout authorizenet/sample-code-node + uses: actions/checkout@v4 + with: + repository: 'authorizenet/sample-code-node' + ref: 'master' + path: ${{env.sample_code_node}} + + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version: ${{matrix.node-ver}} + + - name: Install and Test + run: | + cd $sdk_node + npm install + npm test + + npm pack + PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | head -n 1) + cd ../$sample_code_node + npm install + npm install file:../$sdk_node/authorizenet-$PACKAGE_VERSION.tgz + if [[ ${{matrix.node-ver}} = 14* ]]; then + npm install ajv@5.5.2 + fi + npm list + node test-runner.js + diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..94822e3 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "sample-code-node"] + path = sample-code-node + url = https://github.com/AuthorizeNet/sample-code-node.git diff --git a/.travis.yml b/.travis.yml index 1812c4b..1c046fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,11 +1,34 @@ language: node_js node_js: - - "4.1.2" - - "6.0.0" + - "4" + - "6" + - "8" + - "10" + - "12" + +matrix: + allow_failures: + - node_js: "4" + - node_js: "6" + - node_js: "8" + +before_install: + # execute all of the commands which need to be executed + # before installing dependencies install: - - npm install + # install all of the dependencies we need here + - npm install + +before_script: + # execute all of the commands which need to be executed + # before running actual tests + - git submodule update --remote --recursive script: - - mocha + # execute all of the tests or other commands to determine + # whether the build will pass or fail + - mocha + +after_script: \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..ba6841a --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,7 @@ ++ Thanks for contributing to the Authorize.Net Node SDK. + ++ Before you submit a pull request, we ask that you consider the following: + + - Submit an issue to state the problem your pull request solves or the funtionality that it adds. We can then advise on the feasability of the pull request, and let you know if there are other possible solutions. + - Part of the SDK is auto-generated based on the XML schema. Due to this auto-generation, we cannot merge contributions for request or response classes. You are welcome to open an issue to report problems or suggest improvements. Auto-generated classes are inside [sdk-node/lib/apicontracts.js](https://github.com/AuthorizeNet/sdk-node/tree/master/lib) and [sdk-node/lib/apicontrollers.js](https://github.com/AuthorizeNet/sdk-node/tree/master/lib) folders, except [sdk-node/lib/apicontrollersbase.js](https://github.com/AuthorizeNet/sdk-node/tree/master/lib). + \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index d504017..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Authorize.Net - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..bc704a1 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,41 @@ +SDK LICENSE AGREEMENT +This Software Development Kit (“SDK”) License Agreement (“Agreement”) is between you (both the individual downloading the SDK and any legal entity on behalf of which such individual is acting) (“You” or “Your”) and Authorize.Net LLC (“Authorize.Net’). +IT IS IMPORTANT THAT YOU READ CAREFULLY AND UNDERSTAND THIS AGREEMENT. BY CLICKING THE “I ACCEPT” BUTTON OR AN EQUIVALENT INDICATOR OR BY DOWNLOADING, INSTALLING OR USING THE SDK OR THE DOCUMENTATION, YOU AGREE TO BE BOUND BY THIS AGREEMENT. + +1. DEFINITIONS + 1.1 “Application(s)” means software programs that You develop to operate with the Gateway using components of the Software. + 1.2 “Documentation” means the materials made available to You in connection with the Software by or on behalf of Authorize.Net pursuant to this Agreement. + 1.3 “Gateway” means any electronic payment platform maintained and operated by Authorize.Net and any of its affiliates. + 1.4 “Software” means all of the software included in the software development kit made available to You by or on behalf of Authorize.Net pursuant to this Agreement, including but not limited to sample source code, code snippets, software tools, code libraries, sample applications, Documentation and any upgrades, modified versions, updates, and/or additions thereto, if any, made available to You by or on behalf of Authorize.Net pursuant to this Agreement. +2. GRANT OF LICENSE; RESTRICTIONS + 2.1 Limited License. Subject to and conditioned upon Your compliance with the terms of this Agreement, Authorize.Net hereby grants to You a limited, revocable, non-exclusive, non-transferable, royalty-free license during the term of this Agreement to: (a) in any country worldwide, use, reproduce, modify, and create derivative works of the components of the Software solely for the purpose of developing, testing and manufacturing Applications; (b) distribute, sell or otherwise provide Your Applications that include components of the Software to Your end users; and (c) use the Documentation in connection with the foregoing activities. The license to distribute Applications that include components of the Software as set forth in subsection (b) above includes the right to grant sublicenses to Your end users to use such components of the Software as incorporated into such Applications, subject to the limitations and restrictions set forth in this Agreement. + 2.2 Restrictions. You shall not (and shall have no right to): (a) make or distribute copies of the Software or the Documentation, in whole or in part, except as expressly permitted pursuant to Section 2.1; (b) alter or remove any copyright, trademark, trade name or other proprietary notices, legends, symbols or labels appearing on or in the Software or Documentation; (c) sublicense (or purport to sublicense) the Software or the Documentation, in whole or in part, to any third party except as expressly permitted pursuant to Section 2.1; (d) engage in any activity with the Software, including the development or distribution of an Application, that interferes with, disrupts, damages, or accesses in an unauthorized manner the Gateway or platform, servers, or systems of Authorize.Net, any of its affiliates, or any third party; (e) make any statements that Your Application is “certified” or otherwise endorsed, or that its performance is guaranteed, by Authorize.Net or any of its affiliates; or (f) otherwise use or exploit the Software or the Documentation for any purpose other than to develop and distribute Applications as expressly permitted by this Agreement. + 2.3 Ownership. You shall retain ownership of Your Applications developed in accordance with this Agreement, subject to Authorize.Net’s ownership of the Software and Documentation (including Authorize.Net’s ownership of any portion of the Software or Documentation incorporated in Your Applications). You acknowledge and agree that all right, title and interest in and to the Software and Documentation shall, at all times, be and remain the exclusive property of Authorize.Net and that You do not have or acquire any rights, express or implied, in the Software or Documentation except those rights expressly granted under this Agreement. + 2.4 No Support. Authorize.Net has no obligation to provide support, maintenance, upgrades, modifications or new releases of the Software. + 2.5 Open Source Software. You hereby acknowledge that the Software may contain software that is distributed under “open source” license terms (“Open Source Software”). You shall review the Documentation in order to determine which portions of the Software are Open Source Software and are licensed under such Open Source Software license terms. To the extent any such license requires that Authorize.Net provide You any rights with respect to such Open Source Software that are inconsistent with the limited rights granted to You in this Agreement, then such rights in the applicable Open Source Software license shall take precedence over the rights and restrictions granted in this Agreement, but solely with respect to such Open Source Software. You acknowledge that the Open Source Software license is solely between You and the applicable licensor of the Open Source Software and that Your use, reproduction and distribution of Open Source Software shall be in compliance with applicable Open Source Software license. You understand and agree that Authorize.Net is not liable for any loss or damage that You may experience as a result of Your use of Open Source Software and that You will look solely to the licensor of the Open Source Software in the event of any such loss or damage. + 2.6 License to Authorize.Net. In the event You choose to submit any suggestions, feedback or other information or materials related to the Software or Documentation or Your use thereof (collectively, “Feedback”) to Authorize.Net, You hereby grant to Authorize.Net a worldwide, non-exclusive, royalty-free, transferable, sublicensable, perpetual and irrevocable license to use and otherwise exploit such Feedback in connection with the Software, Documentation, and other products and services. + 2.7 Use. + (a) You represent, warrant and agree to use the Software and write Applications only for purposes permitted by (i) this Agreement; (ii) applicable law and regulation, including, without limitation, the Payment Card Industry Data Security Standard (PCI DSS); and (iii) generally accepted practices or guidelines in the relevant jurisdictions. You represent, warrant and agree that if You use the Software to develop Applications for general public end users, that You will protect the privacy and legal rights of those users. If the Application receives or stores personal or sensitive information provided by end users, it must do so securely and in compliance with all applicable laws and regulations, including card association regulations. If the Application receives Authorize.Net account information, the Application may only use that information to access the end user's Authorize.Net account. You represent, warrant and agree that You are solely responsible for (and that neither Authorize.Net nor its affiliates have any responsibility to You or to any third party for): (i) any data, content, or resources that You obtain, transmit or display through the Application; and (ii) any breach of Your obligations under this Agreement, any applicable third party license, or any applicable law or regulation, and for the consequences of any such breach. + 3. WARRANTY DISCLAIMER; LIMITATION OF LIABILITY + 3.1 Disclaimer. THE SOFTWARE AND THE DOCUMENTATION ARE PROVIDED ON AN “AS IS” AND “AS AVAILABLE” BASIS WITH NO WARRANTY. YOU AGREE THAT YOUR USE OF THE SOFTWARE AND THE DOCUMENTATION IS AT YOUR SOLE RISK AND YOU ARE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR OTHER DEVICE OR LOSS OF DATA THAT RESULTS FROM SUCH USE. TO THE FULLEST EXTENT PERMISSIBLE UNDER APPLICABLE LAW, AUTHORIZE.NET AND ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, WITH RESPECT TO THE SOFTWARE AND THE DOCUMENTATION, INCLUDING ALL WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, SATISFACTORY QUALITY, ACCURACY, TITLE AND NON-INFRINGEMENT, AND ANY WARRANTIES THAT MAY ARISE OUT OF COURSE OF PERFORMANCE, COURSE OF DEALING OR USAGE OF TRADE. NEITHER AUTHORIZE.NET NOR ITS AFFILIATES WARRANT THAT THE FUNCTIONS OR INFORMATION CONTAINED IN THE SOFTWARE OR THE DOCUMENTATION WILL MEET ANY REQUIREMENTS OR NEEDS YOU MAY HAVE, OR THAT THE SOFTWARE OR DOCUMENTATION WILL OPERATE ERROR FREE, OR THAT THE SOFTWARE OR DOCUMENTATION IS COMPATIBLE WITH ANY PARTICULAR OPERATING SYSTEM.  + 3.2 Limitation of Liability. IN NO EVENT SHALL AUTHORIZE.NET AND ITS AFFILIATES BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL OR PUNITIVE DAMAGES, OR DAMAGES FOR LOSS OF PROFITS, REVENUE, BUSINESS, SAVINGS, DATA, USE OR COST OF SUBSTITUTE PROCUREMENT, INCURRED BY YOU OR ANY THIRD PARTY, WHETHER IN AN ACTION IN CONTRACT OR TORT, EVEN IF AUTHORIZE.NET HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES OR IF SUCH DAMAGES ARE FORESEEABLE. IN NO EVENT SHALL THE ENTIRE LIABILITY OF AUTHORIZE.NET AND AFFILIATES ARISING FROM OR RELATING TO THIS AGREEMENT OR THE SUBJECT MATTER HEREOF EXCEED ONE HUNDRED U.S. DOLLARS ($100). THE PARTIES ACKNOWLEDGE THAT THE LIMITATIONS OF LIABILITY IN THIS SECTION 3.2 AND IN THE OTHER PROVISIONS OF THIS AGREEMENT AND THE ALLOCATION OF RISK HEREIN ARE AN ESSENTIAL ELEMENT OF THE BARGAIN BETWEEN THE PARTIES, WITHOUT WHICH AUTHORIZE.NET WOULD NOT HAVE ENTERED INTO THIS AGREEMENT. + 4. INDEMNIFICATION. You shall indemnify, hold harmless and, at Authorize.Net’s request, defend Authorize.Net and its affiliates and their officers, directors, employees, and agents from and against any claim, suit or proceeding, and any associated liabilities, costs, damages and expenses, including reasonable attorneys’ fees, that arise out of relate to: (i) Your Applications or the use or distribution thereof and Your use or distribution of the Software or the Documentation (or any portion thereof including Open Source Software), including, but not limited to, any allegation that any such Application or any such use or distribution infringes, misappropriates or otherwise violates any intellectual property (including, without limitation, copyright, patent, and trademark), privacy, publicity or other rights of any third party, or has caused the death or injury of any person or damage to any property; (ii) Your alleged or actual breach of this Agreement; (iii) the alleged or actual breach of this Agreement by any party to whom you have provided Your Applications, the Software or the Documentation or (iii) Your alleged or actual violation of or non-compliance with any applicable laws, legislation, policies, rules, regulations or governmental requirements (including, without limitation, any laws, legislation, policies, rules, regulations or governmental requirements related to privacy and data collection). + 5. TERMINATION. This Agreement and the licenses granted to you herein are effective until terminated. Authorize.Net may terminate this Agreement and the licenses granted to You at any time. Upon termination of this Agreement, You shall cease all use of the Software and the Documentation, return to Authorize.Net or destroy all copies of the Software and Documentation and related materials in Your possession, and so certify to Authorize.Net. Except for the license to You granted herein, the terms of this Agreement shall survive termination. + 6. CONFIDENTIAL INFORMATION + a. You hereby agree (i) to hold Authorize.Net’s Confidential Information in strict confidence and to take reasonable precautions to protect such Confidential Information (including, without limitation, all precautions You employ with respect to Your own confidential materials), (ii) not to divulge any such Confidential Information to any third person; (iii) not to make any use whatsoever at any time of such Confidential Information except as strictly licensed hereunder, (iv) not to remove or export from the United States or re-export any such Confidential Information or any direct product thereof, except in compliance with, and with all licenses and approvals required under applicable U.S. and foreign export laws and regulations, including, without limitation, those of the U.S. Department of Commerce. + b. “Confidential Information” shall mean any data or information, oral or written, treated as confidential that relates to Authorize.Net’s past, present, or future research, development or business activities, including without limitation any unannounced products and services, any information relating to services, developments, inventions, processes, plans, financial information, customer data, revenue, transaction volume, forecasts, projections, application programming interfaces, Software and Documentation. + 7. General Terms + 7.1 Law. This Agreement and all matters arising out of or relating to this Agreement shall be governed by the internal laws of the State of California without giving effect to any choice of law rule. This Agreement shall not be governed by the United Nations Convention on Contracts for the International Sales of Goods, the application of which is expressly excluded. In the event of any controversy, claim or dispute between the parties arising out of or relating to this Agreement, such controversy, claim or dispute shall be resolved in the state or federal courts in Santa Clara County, California, and the parties hereby irrevocably consent to the jurisdiction and venue of such courts. + 7.2 Logo License. Authorize.Net hereby grants to You the right to use, reproduce, publish, perform and display Authorize.Net logo solely in accordance with the current Authorize.Net brand guidelines. + 7.3 Severability and Waiver. If any provision of this Agreement is held to be illegal, invalid or otherwise unenforceable, such provision shall be enforced to the extent possible consistent with the stated intention of the parties, or, if incapable of such enforcement, shall be deemed to be severed and deleted from this Agreement, while the remainder of this Agreement shall continue in full force and effect. The waiver by either party of any default or breach of this Agreement shall not constitute a waiver of any other or subsequent default or breach. + 7.4 No Assignment. You may not assign, sell, transfer, delegate or otherwise dispose of, whether voluntarily or involuntarily, by operation of law or otherwise, this Agreement or any rights or obligations under this Agreement without the prior written consent of Authorize.Net, which may be withheld in Authorize.Net’s sole discretion. Any purported assignment, transfer or delegation by You shall be null and void. Subject to the foregoing, this Agreement shall be binding upon and shall inure to the benefit of the parties and their respective successors and assigns. + 7.5 Government Rights. If You (or any person or entity to whom you provide the Software or Documentation) are an agency or instrumentality of the United States Government, the Software and Documentation are “commercial computer software” and “commercial computer software documentation,” and pursuant to FAR 12.212 or DFARS 227.7202, and their successors, as applicable, use, reproduction and disclosure of the Software and Documentation are governed by the terms of this Agreement. + 7.6 Export Administration. You shall comply fully with all relevant export laws and regulations of the United States, including, without limitation, the U.S. Export Administration Regulations (collectively “Export Controls”). Without limiting the generality of the foregoing, You shall not, and You shall require Your representatives not to, export, direct or transfer the Software or the Documentation, or any direct product thereof, to any destination, person or entity restricted or prohibited by the Export Controls. + 7.7 Privacy. In order to continually innovate and improve the Software, Licensee understands and agrees that Authorize.Net may collect certain usage statistics including but not limited to a unique identifier, associated IP address, version number of software, and information on which tools and/or services in the Software are being used and how they are being used. + 7.8 Entire Agreement; Amendments. This Agreement constitutes the entire agreement between the parties and supersedes all prior or contemporaneous agreements or representations, written or oral, concerning the subject matter of this Agreement. Authorize.Net may make changes to this Agreement, Software or Documentation in its sole discretion. When these changes are made, Authorize.Net will make a new version of the Agreement, Software or Documentation available on the website where the Software is available. This Agreement may not be modified or amended by You except in a writing signed by a duly authorized representative of each party. You acknowledge and agree that +Authorize.Net has not made any representations, warranties or agreements of any kind, except as expressly set forth herein. + + +Authorize.Net Software Development Kit (SDK) License Agreement +v. February 1, 2017 +1 diff --git a/README.md b/README.md index f236ac4..2fc566e 100644 --- a/README.md +++ b/README.md @@ -1,128 +1,144 @@ -[![Travis](https://img.shields.io/travis/AuthorizeNet/sdk-node/master.svg)](https://travis-ci.org/AuthorizeNet/sdk-node) +# Authorize.Net Node.js SDK + +[![Authorize.net Node.js CI](https://github.com/AuthorizeNet/sdk-node/actions/workflows/nodejs-workflow.yml/badge.svg?branch=master)](https://github.com/AuthorizeNet/sdk-node/actions/workflows/nodejs-workflow.yml) [![NPM version](https://badge.fury.io/js/authorizenet.png)](http://badge.fury.io/js/authorizenet) -# Authorize.Net Node.js SDK +## Requirements + +* Node.js version 14.x.x or higher +* An Authorize.Net account (see _Registration & Configuration_ section below) + +### Contribution -## Prerequisites + - If you need information or clarification about Authorize.Net features, create an issue with your question. You can also search the [Authorize.Net developer community](https://community.developer.authorize.net/) for discussions related to your question. -Node.js version 4.1.2 or higher + - Before creating pull requests, please read [the contributors guide](CONTRIBUTING.md). +### TLS 1.2 + +The Authorize.Net APIs only support connections using the TLS 1.2 security protocol. Make sure to upgrade all required components to support TLS 1.2. Keep these components up to date to mitigate the risk of new security flaws. ## Installation -To install AuthorizeNet + +To install AuthorizeNet `npm install authorizenet` ## Registration & Configuration -Get a sandbox account at https://developer.authorize.net/sandbox -Set your API credentials: +Use of this SDK and the Authorize.Net APIs requires having an account on the Authorize.Net system. You can find these details in the Settings section. + +If you don't currently have a production Authorize.Net account, [sign up for a sandbox account](https://developer.authorize.net/sandbox/). + +### Authentication + +To authenticate with the Authorize.Net API, use your account's API Login ID and Transaction Key. If you don't have these credentials, you can obtain them from our Merchant Interface site. For production accounts, the Merchant Interface is located at (https://account.authorize.net/); and for sandbox accounts, at (https://sandbox.authorize.net). -````node +Once you have your keys simply load them into the appropriate variables in your code, as per the below sample code dealing with the authentication part of the API request. + +#### To set your API credentials for an API request: + +```javascript var merchantAuthenticationType = new ApiContracts.MerchantAuthenticationType(); merchantAuthenticationType.setName('YOUR_API_LOGIN_ID'); merchantAuthenticationType.setTransactionKey('YOUR_TRANSACTION_KEY'); -```` +``` -## Run AuthenticateTestRequest Sample +An authentication test sample is provided and can be run with the following command: `node sample/test.js` +Never include your Login ID and Transaction Key directly in a file that's in a publicly accessible portion of your website. As a best practice, define the API Login ID and Transaction Key in a constants file, and reference those constants in the appropriate place in your code. +### Switching between the sandbox environment and the production environment -## Usage -See our sample code repository at https://github.com/AuthorizeNet/sample-code-node +Authorize.Net maintains a complete sandbox environment for testing and development purposes. The sandbox environment is an exact replica of our production environment, with simulated transaction authorization and settlement. By default, this SDK is configured to use with the sandbox environment. To switch to the production environment, call `setEnvironment` on the controller variable before execute. -For the simplest "Hello World" example, charging a credit card, paste this into a file called charge-credit-card.js and run: +For example: -````node -'use strict'; +```javascript + // For PRODUCTION use + ctrl.setEnvironment(SDKConstants.endpoint.production); +``` -var ApiContracts = require('authorizenet').APIContracts; -var ApiControllers = require('authorizenet').APIControllers; -var utils = require('../utils.js'); -var constants = require('../constants.js'); +API credentials are different for each environment, so be sure to switch to the appropriate credentials when switching environments. -function chargeCreditCard(callback) { - var merchantAuthenticationType = new ApiContracts.MerchantAuthenticationType(); - merchantAuthenticationType.setName(constants.apiLoginKey); - merchantAuthenticationType.setTransactionKey(constants.transactionKey); - - var creditCard = new ApiContracts.CreditCardType(); - creditCard.setCardNumber('4242424242424242'); - creditCard.setExpirationDate('0822'); - creditCard.setCardCode('999'); - - var paymentType = new ApiContracts.PaymentType(); - paymentType.setCreditCard(creditCard); - - var transactionRequestType = new ApiContracts.TransactionRequestType(); - transactionRequestType.setTransactionType(ApiContracts.TransactionTypeEnum.AUTHCAPTURETRANSACTION); - transactionRequestType.setPayment(paymentType); - transactionRequestType.setAmount(2.99); - - var createRequest = new ApiContracts.CreateTransactionRequest(); - createRequest.setMerchantAuthentication(merchantAuthenticationType); - createRequest.setTransactionRequest(transactionRequestType); - - //pretty print request - console.log(JSON.stringify(createRequest.getJSON(), null, 2)); - - var ctrl = new ApiControllers.CreateTransactionController(createRequest.getJSON()); - - ctrl.execute(function(){ - - var apiResponse = ctrl.getResponse(); - - var response = new ApiContracts.CreateTransactionResponse(apiResponse); - - //pretty print response - console.log(JSON.stringify(response, null, 2)); - - if(response != null){ - if(response.getMessages().getResultCode() == ApiContracts.MessageTypeEnum.OK && - response.getTransactionResponse().getResponseCode() == '1'){ - console.log('Transaction ID: ' + response.getTransactionResponse().getTransId()); - } - else{ - console.log('Result Code: ' + response.getMessages().getResultCode()); - console.log('Error Code: ' + response.getMessages().getMessage()[0].getCode()); - console.log('Error message: ' + response.getMessages().getMessage()[0].getText()); - } - } - else{ - console.log('Null Response.'); - } - - callback(response); - }); -} - -if (require.main === module) { - chargeCreditCard(function(){ - console.log('chargeCreditCard call complete.'); - }); -} - -module.exports.chargeCreditCard = chargeCreditCard; -```` - -### Setting Production or Sandbox Environments -To set the environment, call setEnvironment on controller variable before execute. Environment defaults to sandbox. -````node -// For PRODUCTION use -ctrl.setEnvironment(SDKConstants.endpoint.production); -```` - -## Building and Testing Source Code - -### Run All Tests + +## SDK Usage Examples and Sample Code + +When using this SDK, downloading the Authorize.Net sample code repository is recommended. + +* [Authorize.Net Node.js Sample Code Repository (on GitHub)](https://github.com/AuthorizeNet/sample-code-node) + +The repository contains comprehensive sample code for all common uses of the Authorize.Net API: + +The API Reference contains details and examples of the structure and formatting of the Authorize.Net API. + +* [Developer Center API Reference](http://developer.authorize.net/api/reference/index.html) + +Use the examples in the API Reference to determine which methods and information to include in an API request using this SDK. + +## Create a Chase Pay Transaction + +Use this method to authorize and capture a payment using a tokenized credit card number issued by Chase Pay. Chase Pay transactions are only available to merchants using the Paymentech processor. + +The following information is required in the request: + +- **payment token** +- **expiration date** +- **cryptogram** received from the token provider +- **tokenRequestorName** +- **tokenRequestorId** +- **tokenRequestorEci** + +When using the SDK to submit Chase Pay transactions, consider the following points: + +- `tokenRequesterName` must be populated with **`”CHASE_PAY”`** +- `tokenRequestorId` must be populated with the **`Token Requestor ID`** provided by Chase Pay services for each transaction during consumer checkout +- `tokenRequesterEci` must be populated with the **`ECI Indicator`** provided by Chase Pay services for each transaction during consumer checkout + + +## Building & Testing the SDK + +### Running the SDK Tests `mocha` -## Run Particular Tests +### Run Particular Tests `mocha test/` + +### For using behind proxy + +1. Create a `config` object as follows: + ```javascript + config = { + 'proxy': { + 'setProxy': true, + 'proxyUrl': 'http://:@:' + } + } + ``` + +2. Pass this `config` object to the controller constructor. + + For example, + + ```javascript + var ctrl = new ApiControllers.CreateTransactionController(createRequest.getJSON(), config); + ``` + +### Testing Guide + +For additional help in testing your own code, Authorize.Net maintains a [comprehensive testing guide](http://developer.authorize.net/hello_world/testing_guide/) that includes test credit card numbers to use and special triggers to generate certain responses from the sandbox environment. + +### Transaction Hash Upgrade + +Authorize.Net is phasing out the MD5 based `transHash` element in favor of the SHA-512 based `transHashSHA2`. The setting in the Merchant Interface which controlled the MD5 Hash option is no longer available, and the `transHash` element will stop returning values at a later date to be determined. For information on how to use `transHashSHA2`, see the [Transaction Hash Upgrade Guide] (https://developer.authorize.net/support/hash_upgrade/). + +## License + +This repository is distributed under a proprietary license. See the provided [`LICENSE.txt`](/LICENSE.txt) file. diff --git a/lib/apicontracts.js b/lib/apicontracts.js index d12d6b8..e7778e2 100644 --- a/lib/apicontracts.js +++ b/lib/apicontracts.js @@ -2,10 +2,11 @@ var utils = require('./utils.js'); -var logger = require('./logger.js').logger; +const Logger = require('./logger.js'); class ANetApiRequest { constructor(obj) { + var logger = Logger.getLogger('ANetApiRequest'); logger.debug('Enter ANetApiRequest constructor'); if(arguments.length == 1) { if(('merchantAuthentication' in obj) && (obj.merchantAuthentication != null)) { this.setMerchantAuthentication(new MerchantAuthenticationType(obj.merchantAuthentication)); } @@ -32,6 +33,7 @@ module.exports.ANetApiRequest = ANetApiRequest; class ANetApiResponse { getJSON() { + var logger = Logger.getLogger('ANetApiResponse'); logger.debug('Enter ANetApiResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'ErrorResponse' : this }; @@ -40,6 +42,7 @@ class ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('ANetApiResponse'); logger.debug('Enter ANetApiResponse constructor'); if(arguments.length == 1) { if(('refId' in obj) && (obj.refId != null)) { this.setRefId(obj.refId); } @@ -66,6 +69,7 @@ module.exports.ANetApiResponse = ANetApiResponse; class ARBGetSubscriptionListSorting { constructor(obj) { + var logger = Logger.getLogger('ARBGetSubscriptionListSorting'); logger.debug('Enter ARBGetSubscriptionListSorting constructor'); if(arguments.length == 1) { if(('orderBy' in obj) && (obj.orderBy != null)) { this.setOrderBy(obj.orderBy); } @@ -88,6 +92,7 @@ module.exports.ARBGetSubscriptionListSorting = ARBGetSubscriptionListSorting; class ARBSubscriptionMaskedType { constructor(obj) { + var logger = Logger.getLogger('ARBSubscriptionMaskedType'); logger.debug('Enter ARBSubscriptionMaskedType constructor'); if(arguments.length == 1) { if(('name' in obj) && (obj.name != null)) { this.setName(obj.name); } @@ -97,6 +102,7 @@ class ARBSubscriptionMaskedType { if(('status' in obj) && (obj.status != null)) { this.setStatus(obj.status); } if(('profile' in obj) && (obj.profile != null)) { this.setProfile(new SubscriptionCustomerProfileType(obj.profile)); } if(('order' in obj) && (obj.order != null)) { this.setOrder(new OrderType(obj.order)); } + if(('arbTransactions' in obj) && (obj.arbTransactions != null)) { this.setArbTransactions(new ARBTransactionList(obj.arbTransactions)); } } else { this.setName(null); @@ -106,6 +112,7 @@ class ARBSubscriptionMaskedType { this.setStatus(null); this.setProfile(null); this.setOrder(null); + this.setArbTransactions(null); } logger.debug('Exit ARBSubscriptionMaskedType constructor'); } @@ -124,12 +131,15 @@ class ARBSubscriptionMaskedType { getProfile() { if('profile' in this) {return this.profile;} } setOrder(p_order) { this.order = p_order; } getOrder() { if('order' in this) {return this.order;} } + setArbTransactions(p_arbTransactions) { this.arbTransactions = p_arbTransactions; } + getArbTransactions() { if('arbTransactions' in this) {return this.arbTransactions;} } } module.exports.ARBSubscriptionMaskedType = ARBSubscriptionMaskedType; class ARBSubscriptionType { constructor(obj) { + var logger = Logger.getLogger('ARBSubscriptionType'); logger.debug('Enter ARBSubscriptionType constructor'); if(arguments.length == 1) { if(('name' in obj) && (obj.name != null)) { this.setName(obj.name); } @@ -182,8 +192,67 @@ class ARBSubscriptionType { module.exports.ARBSubscriptionType = ARBSubscriptionType; +class ARBTransactionList { + constructor(obj) { + var logger = Logger.getLogger('ARBTransactionList'); + logger.debug('Enter ARBTransactionList constructor'); + if(arguments.length == 1) { + if((obj != undefined) && (obj != null)) { + var arbTransactionList = []; + obj.forEach(function(item) {arbTransactionList.push(new ArbTransaction(item));}); + this.setArbTransaction(arbTransactionList); + } + } + else { + this.setArbTransaction(null); + } + logger.debug('Exit ARBTransactionList constructor'); + } + + setArbTransaction(p_arbTransaction) { this.arbTransaction = p_arbTransaction; } + getArbTransaction() { if('arbTransaction' in this) {return this.arbTransaction;} } +} + +module.exports.ARBTransactionList = ARBTransactionList; + +class ArbTransaction { + constructor(obj) { + var logger = Logger.getLogger('ArbTransaction'); + logger.debug('Enter ArbTransaction constructor'); + if(arguments.length == 1) { + if(('transId' in obj) && (obj.transId != null)) { this.setTransId(obj.transId); } + if(('response' in obj) && (obj.response != null)) { this.setResponse(obj.response); } + if(('submitTimeUTC' in obj) && (obj.submitTimeUTC != null)) { this.setSubmitTimeUTC(obj.submitTimeUTC); } + if(('payNum' in obj) && (obj.payNum != null)) { this.setPayNum(obj.payNum); } + if(('attemptNum' in obj) && (obj.attemptNum != null)) { this.setAttemptNum(obj.attemptNum); } + } + else { + this.setTransId(null); + this.setResponse(null); + this.setSubmitTimeUTC(null); + this.setPayNum(null); + this.setAttemptNum(null); + } + logger.debug('Exit ArbTransaction constructor'); + } + + setTransId(p_transId) { this.transId = p_transId; } + getTransId() { if('transId' in this) {return this.transId;} } + setResponse(p_response) { this.response = p_response; } + getResponse() { if('response' in this) {return this.response;} } + setSubmitTimeUTC(p_submitTimeUTC) { this.submitTimeUTC = p_submitTimeUTC; } + getSubmitTimeUTC() { if('submitTimeUTC' in this) {return this.submitTimeUTC;} } + setPayNum(p_payNum) { this.payNum = p_payNum; } + getPayNum() { if('payNum' in this) {return this.payNum;} } + setAttemptNum(p_attemptNum) { this.attemptNum = p_attemptNum; } + getAttemptNum() { if('attemptNum' in this) {return this.attemptNum;} } +} + +module.exports.ArbTransaction = ArbTransaction; + class ArrayOfAUResponseType { constructor(obj) { + var logger = Logger.getLogger('ArrayOfAUResponseType'); logger.debug('Enter ArrayOfAUResponseType constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -206,6 +275,7 @@ module.exports.ArrayOfAUResponseType = ArrayOfAUResponseType; class ArrayOfBatchDetailsType { constructor(obj) { + var logger = Logger.getLogger('ArrayOfBatchDetailsType'); logger.debug('Enter ArrayOfBatchDetailsType constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -228,6 +298,7 @@ module.exports.ArrayOfBatchDetailsType = ArrayOfBatchDetailsType; class ArrayOfBatchStatisticType { constructor(obj) { + var logger = Logger.getLogger('ArrayOfBatchStatisticType'); logger.debug('Enter ArrayOfBatchStatisticType constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -248,8 +319,55 @@ class ArrayOfBatchStatisticType { module.exports.ArrayOfBatchStatisticType = ArrayOfBatchStatisticType; +class ArrayOfCardType { + constructor(obj) { + var logger = Logger.getLogger('ArrayOfCardType'); + logger.debug('Enter ArrayOfCardType constructor'); + if(arguments.length == 1) { + if((obj != undefined) && (obj != null)) { + var cardTypeList = []; + obj.forEach(function(item) {cardTypeList.push(new String(item));}); + this.setCardType(cardTypeList); + } + } + else { + this.setCardType(null); + } + logger.debug('Exit ArrayOfCardType constructor'); + } + + setCardType(p_cardType) { this.cardType = p_cardType; } + getCardType() { if('cardType' in this) {return this.cardType;} } +} + +module.exports.ArrayOfCardType = ArrayOfCardType; + +class ArrayOfContactDetail { + constructor(obj) { + var logger = Logger.getLogger('ArrayOfContactDetail'); + logger.debug('Enter ArrayOfContactDetail constructor'); + if(arguments.length == 1) { + if((obj != undefined) && (obj != null)) { + var contactDetailList = []; + obj.forEach(function(item) {contactDetailList.push(new ContactDetailType(item));}); + this.setContactDetail(contactDetailList); + } + } + else { + this.setContactDetail(null); + } + logger.debug('Exit ArrayOfContactDetail constructor'); + } + + setContactDetail(p_contactDetail) { this.contactDetail = p_contactDetail; } + getContactDetail() { if('contactDetail' in this) {return this.contactDetail;} } +} + +module.exports.ArrayOfContactDetail = ArrayOfContactDetail; + class ArrayOfCurrencyCode { constructor(obj) { + var logger = Logger.getLogger('ArrayOfCurrencyCode'); logger.debug('Enter ArrayOfCurrencyCode constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -272,6 +390,7 @@ module.exports.ArrayOfCurrencyCode = ArrayOfCurrencyCode; class ArrayOfCustomerPaymentProfileListItemType { constructor(obj) { + var logger = Logger.getLogger('ArrayOfCustomerPaymentProfileListItemType'); logger.debug('Enter ArrayOfCustomerPaymentProfileListItemType constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -294,6 +413,7 @@ module.exports.ArrayOfCustomerPaymentProfileListItemType = ArrayOfCustomerPaymen class ArrayOfFDSFilter { constructor(obj) { + var logger = Logger.getLogger('ArrayOfFDSFilter'); logger.debug('Enter ArrayOfFDSFilter constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -316,6 +436,7 @@ module.exports.ArrayOfFDSFilter = ArrayOfFDSFilter; class ArrayOfFraudFilterType { constructor(obj) { + var logger = Logger.getLogger('ArrayOfFraudFilterType'); logger.debug('Enter ArrayOfFraudFilterType constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -338,6 +459,7 @@ module.exports.ArrayOfFraudFilterType = ArrayOfFraudFilterType; class ArrayOfLineItem { constructor(obj) { + var logger = Logger.getLogger('ArrayOfLineItem'); logger.debug('Enter ArrayOfLineItem constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -360,6 +482,7 @@ module.exports.ArrayOfLineItem = ArrayOfLineItem; class ArrayOfLong { constructor(obj) { + var logger = Logger.getLogger('ArrayOfLong'); logger.debug('Enter ArrayOfLong constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -382,6 +505,7 @@ module.exports.ArrayOfLong = ArrayOfLong; class ArrayOfMarketType { constructor(obj) { + var logger = Logger.getLogger('ArrayOfMarketType'); logger.debug('Enter ArrayOfMarketType constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -404,6 +528,7 @@ module.exports.ArrayOfMarketType = ArrayOfMarketType; class ArrayOfNumericString { constructor(obj) { + var logger = Logger.getLogger('ArrayOfNumericString'); logger.debug('Enter ArrayOfNumericString constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -426,6 +551,7 @@ module.exports.ArrayOfNumericString = ArrayOfNumericString; class ArrayOfPaymentMethod { constructor(obj) { + var logger = Logger.getLogger('ArrayOfPaymentMethod'); logger.debug('Enter ArrayOfPaymentMethod constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -448,6 +574,7 @@ module.exports.ArrayOfPaymentMethod = ArrayOfPaymentMethod; class ArrayOfPermissionType { constructor(obj) { + var logger = Logger.getLogger('ArrayOfPermissionType'); logger.debug('Enter ArrayOfPermissionType constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -470,6 +597,7 @@ module.exports.ArrayOfPermissionType = ArrayOfPermissionType; class ArrayOfProcessorType { constructor(obj) { + var logger = Logger.getLogger('ArrayOfProcessorType'); logger.debug('Enter ArrayOfProcessorType constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -492,6 +620,7 @@ module.exports.ArrayOfProcessorType = ArrayOfProcessorType; class ArrayOfProductCode { constructor(obj) { + var logger = Logger.getLogger('ArrayOfProductCode'); logger.debug('Enter ArrayOfProductCode constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -514,6 +643,7 @@ module.exports.ArrayOfProductCode = ArrayOfProductCode; class ArrayOfReturnedItem { constructor(obj) { + var logger = Logger.getLogger('ArrayOfReturnedItem'); logger.debug('Enter ArrayOfReturnedItem constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -536,6 +666,7 @@ module.exports.ArrayOfReturnedItem = ArrayOfReturnedItem; class ArrayOfSetting { constructor(obj) { + var logger = Logger.getLogger('ArrayOfSetting'); logger.debug('Enter ArrayOfSetting constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -558,6 +689,7 @@ module.exports.ArrayOfSetting = ArrayOfSetting; class ArrayOfString { constructor(obj) { + var logger = Logger.getLogger('ArrayOfString'); logger.debug('Enter ArrayOfString constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -580,6 +712,7 @@ module.exports.ArrayOfString = ArrayOfString; class ArrayOfSubscription { constructor(obj) { + var logger = Logger.getLogger('ArrayOfSubscription'); logger.debug('Enter ArrayOfSubscription constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -602,6 +735,7 @@ module.exports.ArrayOfSubscription = ArrayOfSubscription; class ArrayOfTransactionSummaryType { constructor(obj) { + var logger = Logger.getLogger('ArrayOfTransactionSummaryType'); logger.debug('Enter ArrayOfTransactionSummaryType constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -624,6 +758,7 @@ module.exports.ArrayOfTransactionSummaryType = ArrayOfTransactionSummaryType; class AuDetailsType { constructor(obj) { + var logger = Logger.getLogger('AuDetailsType'); logger.debug('Enter AuDetailsType constructor'); if(arguments.length == 1) { if(('customerProfileID' in obj) && (obj.customerProfileID != null)) { this.setCustomerProfileID(obj.customerProfileID); } @@ -666,6 +801,7 @@ module.exports.AuDetailsType = AuDetailsType; class AuResponseType { constructor(obj) { + var logger = Logger.getLogger('AuResponseType'); logger.debug('Enter AuResponseType constructor'); if(arguments.length == 1) { if(('auReasonCode' in obj) && (obj.auReasonCode != null)) { this.setAuReasonCode(obj.auReasonCode); } @@ -690,8 +826,28 @@ class AuResponseType { module.exports.AuResponseType = AuResponseType; +class AuthorizationIndicatorType { + constructor(obj) { + var logger = Logger.getLogger('AuthorizationIndicatorType'); + logger.debug('Enter AuthorizationIndicatorType constructor'); + if(arguments.length == 1) { + if(('authorizationIndicator' in obj) && (obj.authorizationIndicator != null)) { this.setAuthorizationIndicator(obj.authorizationIndicator); } + } + else { + this.setAuthorizationIndicator(null); + } + logger.debug('Exit AuthorizationIndicatorType constructor'); + } + + setAuthorizationIndicator(p_authorizationIndicator) { this.authorizationIndicator = p_authorizationIndicator; } + getAuthorizationIndicator() { if('authorizationIndicator' in this) {return this.authorizationIndicator;} } +} + +module.exports.AuthorizationIndicatorType = AuthorizationIndicatorType; + class BankAccountMaskedType { constructor(obj) { + var logger = Logger.getLogger('BankAccountMaskedType'); logger.debug('Enter BankAccountMaskedType constructor'); if(arguments.length == 1) { if(('accountType' in obj) && (obj.accountType != null)) { this.setAccountType(obj.accountType); } @@ -730,6 +886,7 @@ module.exports.BankAccountMaskedType = BankAccountMaskedType; class BankAccountType { constructor(obj) { + var logger = Logger.getLogger('BankAccountType'); logger.debug('Enter BankAccountType constructor'); if(arguments.length == 1) { if(('accountType' in obj) && (obj.accountType != null)) { this.setAccountType(obj.accountType); } @@ -772,6 +929,7 @@ module.exports.BankAccountType = BankAccountType; class BatchDetailsType { constructor(obj) { + var logger = Logger.getLogger('BatchDetailsType'); logger.debug('Enter BatchDetailsType constructor'); if(arguments.length == 1) { if(('batchId' in obj) && (obj.batchId != null)) { this.setBatchId(obj.batchId); } @@ -818,6 +976,7 @@ module.exports.BatchDetailsType = BatchDetailsType; class BatchStatisticType { constructor(obj) { + var logger = Logger.getLogger('BatchStatisticType'); logger.debug('Enter BatchStatisticType constructor'); if(arguments.length == 1) { if(('accountType' in obj) && (obj.accountType != null)) { this.setAccountType(obj.accountType); } @@ -916,6 +1075,7 @@ module.exports.BatchStatisticType = BatchStatisticType; class CardArt { constructor(obj) { + var logger = Logger.getLogger('CardArt'); logger.debug('Enter CardArt constructor'); if(arguments.length == 1) { if(('cardBrand' in obj) && (obj.cardBrand != null)) { this.setCardBrand(obj.cardBrand); } @@ -950,6 +1110,7 @@ module.exports.CardArt = CardArt; class CcAuthenticationType { constructor(obj) { + var logger = Logger.getLogger('CcAuthenticationType'); logger.debug('Enter CcAuthenticationType constructor'); if(arguments.length == 1) { if(('authenticationIndicator' in obj) && (obj.authenticationIndicator != null)) { this.setAuthenticationIndicator(obj.authenticationIndicator); } @@ -970,8 +1131,36 @@ class CcAuthenticationType { module.exports.CcAuthenticationType = CcAuthenticationType; +class ContactDetailType { + constructor(obj) { + var logger = Logger.getLogger('ContactDetailType'); + logger.debug('Enter ContactDetailType constructor'); + if(arguments.length == 1) { + if(('email' in obj) && (obj.email != null)) { this.setEmail(obj.email); } + if(('firstName' in obj) && (obj.firstName != null)) { this.setFirstName(obj.firstName); } + if(('lastName' in obj) && (obj.lastName != null)) { this.setLastName(obj.lastName); } + } + else { + this.setEmail(null); + this.setFirstName(null); + this.setLastName(null); + } + logger.debug('Exit ContactDetailType constructor'); + } + + setEmail(p_email) { this.email = p_email; } + getEmail() { if('email' in this) {return this.email;} } + setFirstName(p_firstName) { this.firstName = p_firstName; } + getFirstName() { if('firstName' in this) {return this.firstName;} } + setLastName(p_lastName) { this.lastName = p_lastName; } + getLastName() { if('lastName' in this) {return this.lastName;} } +} + +module.exports.ContactDetailType = ContactDetailType; + class CreateProfileResponse { constructor(obj) { + var logger = Logger.getLogger('CreateProfileResponse'); logger.debug('Enter CreateProfileResponse constructor'); if(arguments.length == 1) { if(('messages' in obj) && (obj.messages != null)) { this.setMessages(new MessagesType(obj.messages)); } @@ -1002,18 +1191,23 @@ module.exports.CreateProfileResponse = CreateProfileResponse; class CreditCardMaskedType { constructor(obj) { + var logger = Logger.getLogger('CreditCardMaskedType'); logger.debug('Enter CreditCardMaskedType constructor'); if(arguments.length == 1) { if(('cardNumber' in obj) && (obj.cardNumber != null)) { this.setCardNumber(obj.cardNumber); } if(('expirationDate' in obj) && (obj.expirationDate != null)) { this.setExpirationDate(obj.expirationDate); } if(('cardType' in obj) && (obj.cardType != null)) { this.setCardType(obj.cardType); } if(('cardArt' in obj) && (obj.cardArt != null)) { this.setCardArt(new CardArt(obj.cardArt)); } + if(('issuerNumber' in obj) && (obj.issuerNumber != null)) { this.setIssuerNumber(obj.issuerNumber); } + if(('isPaymentToken' in obj) && (obj.isPaymentToken != null)) { this.setIsPaymentToken(obj.isPaymentToken); } } else { this.setCardNumber(null); this.setExpirationDate(null); this.setCardType(null); this.setCardArt(null); + this.setIssuerNumber(null); + this.setIsPaymentToken(null); } logger.debug('Exit CreditCardMaskedType constructor'); } @@ -1026,12 +1220,17 @@ class CreditCardMaskedType { getCardType() { if('cardType' in this) {return this.cardType;} } setCardArt(p_cardArt) { this.cardArt = p_cardArt; } getCardArt() { if('cardArt' in this) {return this.cardArt;} } + setIssuerNumber(p_issuerNumber) { this.issuerNumber = p_issuerNumber; } + getIssuerNumber() { if('issuerNumber' in this) {return this.issuerNumber;} } + setIsPaymentToken(p_isPaymentToken) { this.isPaymentToken = p_isPaymentToken; } + getIsPaymentToken() { if('isPaymentToken' in this) {return this.isPaymentToken;} } } module.exports.CreditCardMaskedType = CreditCardMaskedType; class CreditCardSimpleType { constructor(obj) { + var logger = Logger.getLogger('CreditCardSimpleType'); logger.debug('Enter CreditCardSimpleType constructor'); if(arguments.length == 1) { if(('cardNumber' in obj) && (obj.cardNumber != null)) { this.setCardNumber(obj.cardNumber); } @@ -1054,6 +1253,7 @@ module.exports.CreditCardSimpleType = CreditCardSimpleType; class CreditCardTrackType { constructor(obj) { + var logger = Logger.getLogger('CreditCardTrackType'); logger.debug('Enter CreditCardTrackType constructor'); if(arguments.length == 1) { if(('track1' in obj) && (obj.track1 != null)) { this.setTrack1(obj.track1); } @@ -1076,6 +1276,7 @@ module.exports.CreditCardTrackType = CreditCardTrackType; class CustomerDataType { constructor(obj) { + var logger = Logger.getLogger('CustomerDataType'); logger.debug('Enter CustomerDataType constructor'); if(arguments.length == 1) { if(('type' in obj) && (obj.type != null)) { this.setType(obj.type); } @@ -1110,6 +1311,7 @@ module.exports.CustomerDataType = CustomerDataType; class CustomerPaymentProfileBaseType { constructor(obj) { + var logger = Logger.getLogger('CustomerPaymentProfileBaseType'); logger.debug('Enter CustomerPaymentProfileBaseType constructor'); if(arguments.length == 1) { if(('customerType' in obj) && (obj.customerType != null)) { this.setCustomerType(obj.customerType); } @@ -1132,6 +1334,7 @@ module.exports.CustomerPaymentProfileBaseType = CustomerPaymentProfileBaseType; class CustomerPaymentProfileListItemType { constructor(obj) { + var logger = Logger.getLogger('CustomerPaymentProfileListItemType'); logger.debug('Enter CustomerPaymentProfileListItemType constructor'); if(arguments.length == 1) { if(('defaultPaymentProfile' in obj) && (obj.defaultPaymentProfile != null)) { this.setDefaultPaymentProfile(obj.defaultPaymentProfile); } @@ -1139,6 +1342,9 @@ class CustomerPaymentProfileListItemType { if(('customerProfileId' in obj) && (obj.customerProfileId != null)) { this.setCustomerProfileId(obj.customerProfileId); } if(('billTo' in obj) && (obj.billTo != null)) { this.setBillTo(new CustomerAddressType(obj.billTo)); } if(('payment' in obj) && (obj.payment != null)) { this.setPayment(new PaymentMaskedType(obj.payment)); } + if(('originalNetworkTransId' in obj) && (obj.originalNetworkTransId != null)) { this.setOriginalNetworkTransId(obj.originalNetworkTransId); } + if(('originalAuthAmount' in obj) && (obj.originalAuthAmount != null)) { this.setOriginalAuthAmount(obj.originalAuthAmount); } + if(('excludeFromAccountUpdater' in obj) && (obj.excludeFromAccountUpdater != null)) { this.setExcludeFromAccountUpdater(obj.excludeFromAccountUpdater); } } else { this.setDefaultPaymentProfile(null); @@ -1146,6 +1352,9 @@ class CustomerPaymentProfileListItemType { this.setCustomerProfileId(null); this.setBillTo(null); this.setPayment(null); + this.setOriginalNetworkTransId(null); + this.setOriginalAuthAmount(null); + this.setExcludeFromAccountUpdater(null); } logger.debug('Exit CustomerPaymentProfileListItemType constructor'); } @@ -1160,12 +1369,19 @@ class CustomerPaymentProfileListItemType { getBillTo() { if('billTo' in this) {return this.billTo;} } setPayment(p_payment) { this.payment = p_payment; } getPayment() { if('payment' in this) {return this.payment;} } + setOriginalNetworkTransId(p_originalNetworkTransId) { this.originalNetworkTransId = p_originalNetworkTransId; } + getOriginalNetworkTransId() { if('originalNetworkTransId' in this) {return this.originalNetworkTransId;} } + setOriginalAuthAmount(p_originalAuthAmount) { this.originalAuthAmount = p_originalAuthAmount; } + getOriginalAuthAmount() { if('originalAuthAmount' in this) {return this.originalAuthAmount;} } + setExcludeFromAccountUpdater(p_excludeFromAccountUpdater) { this.excludeFromAccountUpdater = p_excludeFromAccountUpdater; } + getExcludeFromAccountUpdater() { if('excludeFromAccountUpdater' in this) {return this.excludeFromAccountUpdater;} } } module.exports.CustomerPaymentProfileListItemType = CustomerPaymentProfileListItemType; class CustomerPaymentProfileSorting { constructor(obj) { + var logger = Logger.getLogger('CustomerPaymentProfileSorting'); logger.debug('Enter CustomerPaymentProfileSorting constructor'); if(arguments.length == 1) { if(('orderBy' in obj) && (obj.orderBy != null)) { this.setOrderBy(obj.orderBy); } @@ -1188,6 +1404,7 @@ module.exports.CustomerPaymentProfileSorting = CustomerPaymentProfileSorting; class CustomerProfileBaseType { constructor(obj) { + var logger = Logger.getLogger('CustomerProfileBaseType'); logger.debug('Enter CustomerProfileBaseType constructor'); if(arguments.length == 1) { if(('merchantCustomerId' in obj) && (obj.merchantCustomerId != null)) { this.setMerchantCustomerId(obj.merchantCustomerId); } @@ -1214,6 +1431,7 @@ module.exports.CustomerProfileBaseType = CustomerProfileBaseType; class CustomerProfileIdType { constructor(obj) { + var logger = Logger.getLogger('CustomerProfileIdType'); logger.debug('Enter CustomerProfileIdType constructor'); if(arguments.length == 1) { if(('customerProfileId' in obj) && (obj.customerProfileId != null)) { this.setCustomerProfileId(obj.customerProfileId); } @@ -1240,6 +1458,7 @@ module.exports.CustomerProfileIdType = CustomerProfileIdType; class CustomerProfilePaymentType { constructor(obj) { + var logger = Logger.getLogger('CustomerProfilePaymentType'); logger.debug('Enter CustomerProfilePaymentType constructor'); if(arguments.length == 1) { if(('createProfile' in obj) && (obj.createProfile != null)) { this.setCreateProfile(obj.createProfile); } @@ -1270,6 +1489,7 @@ module.exports.CustomerProfilePaymentType = CustomerProfilePaymentType; class CustomerProfileSummaryType { constructor(obj) { + var logger = Logger.getLogger('CustomerProfileSummaryType'); logger.debug('Enter CustomerProfileSummaryType constructor'); if(arguments.length == 1) { if(('customerProfileId' in obj) && (obj.customerProfileId != null)) { this.setCustomerProfileId(obj.customerProfileId); } @@ -1304,6 +1524,7 @@ module.exports.CustomerProfileSummaryType = CustomerProfileSummaryType; class CustomerType { constructor(obj) { + var logger = Logger.getLogger('CustomerType'); logger.debug('Enter CustomerType constructor'); if(arguments.length == 1) { if(('type' in obj) && (obj.type != null)) { this.setType(obj.type); } @@ -1346,6 +1567,7 @@ module.exports.CustomerType = CustomerType; class DriversLicenseMaskedType { constructor(obj) { + var logger = Logger.getLogger('DriversLicenseMaskedType'); logger.debug('Enter DriversLicenseMaskedType constructor'); if(arguments.length == 1) { if(('number' in obj) && (obj.number != null)) { this.setNumber(obj.number); } @@ -1372,6 +1594,7 @@ module.exports.DriversLicenseMaskedType = DriversLicenseMaskedType; class DriversLicenseType { constructor(obj) { + var logger = Logger.getLogger('DriversLicenseType'); logger.debug('Enter DriversLicenseType constructor'); if(arguments.length == 1) { if(('number' in obj) && (obj.number != null)) { this.setNumber(obj.number); } @@ -1398,6 +1621,7 @@ module.exports.DriversLicenseType = DriversLicenseType; class EmvTag { constructor(obj) { + var logger = Logger.getLogger('EmvTag'); logger.debug('Enter EmvTag constructor'); if(arguments.length == 1) { if(('name' in obj) && (obj.name != null)) { this.setName(obj.name); } @@ -1424,6 +1648,7 @@ module.exports.EmvTag = EmvTag; class EncryptedTrackDataType { constructor(obj) { + var logger = Logger.getLogger('EncryptedTrackDataType'); logger.debug('Enter EncryptedTrackDataType constructor'); if(arguments.length == 1) { if(('FormOfPayment' in obj) && (obj.FormOfPayment != null)) { this.setFormOfPayment(new KeyBlock(obj.FormOfPayment)); } @@ -1442,6 +1667,7 @@ module.exports.EncryptedTrackDataType = EncryptedTrackDataType; class EnumCollection { constructor(obj) { + var logger = Logger.getLogger('EnumCollection'); logger.debug('Enter EnumCollection constructor'); if(arguments.length == 1) { if(('customerProfileSummaryType' in obj) && (obj.customerProfileSummaryType != null)) { this.setCustomerProfileSummaryType(new CustomerProfileSummaryType(obj.customerProfileSummaryType)); } @@ -1496,6 +1722,7 @@ module.exports.EnumCollection = EnumCollection; class ExtendedAmountType { constructor(obj) { + var logger = Logger.getLogger('ExtendedAmountType'); logger.debug('Enter ExtendedAmountType constructor'); if(arguments.length == 1) { if(('amount' in obj) && (obj.amount != null)) { this.setAmount(obj.amount); } @@ -1522,6 +1749,7 @@ module.exports.ExtendedAmountType = ExtendedAmountType; class FDSFilterType { constructor(obj) { + var logger = Logger.getLogger('FDSFilterType'); logger.debug('Enter FDSFilterType constructor'); if(arguments.length == 1) { if(('name' in obj) && (obj.name != null)) { this.setName(obj.name); } @@ -1544,6 +1772,7 @@ module.exports.FDSFilterType = FDSFilterType; class FingerPrintType { constructor(obj) { + var logger = Logger.getLogger('FingerPrintType'); logger.debug('Enter FingerPrintType constructor'); if(arguments.length == 1) { if(('hashValue' in obj) && (obj.hashValue != null)) { this.setHashValue(obj.hashValue); } @@ -1578,6 +1807,7 @@ module.exports.FingerPrintType = FingerPrintType; class FraudInformationType { constructor(obj) { + var logger = Logger.getLogger('FraudInformationType'); logger.debug('Enter FraudInformationType constructor'); if(arguments.length == 1) { if(('fraudFilterList' in obj) && (obj.fraudFilterList != null)) { this.setFraudFilterList(new ArrayOfFraudFilterType(obj.fraudFilterList)); } @@ -1600,6 +1830,7 @@ module.exports.FraudInformationType = FraudInformationType; class HeldTransactionRequestType { constructor(obj) { + var logger = Logger.getLogger('HeldTransactionRequestType'); logger.debug('Enter HeldTransactionRequestType constructor'); if(arguments.length == 1) { if(('action' in obj) && (obj.action != null)) { this.setAction(obj.action); } @@ -1622,6 +1853,7 @@ module.exports.HeldTransactionRequestType = HeldTransactionRequestType; class ImpersonationAuthenticationType { constructor(obj) { + var logger = Logger.getLogger('ImpersonationAuthenticationType'); logger.debug('Enter ImpersonationAuthenticationType constructor'); if(arguments.length == 1) { if(('partnerLoginId' in obj) && (obj.partnerLoginId != null)) { this.setPartnerLoginId(obj.partnerLoginId); } @@ -1644,6 +1876,7 @@ module.exports.ImpersonationAuthenticationType = ImpersonationAuthenticationType class IsAliveRequest { getJSON() { + var logger = Logger.getLogger('IsAliveRequest'); logger.debug('Enter IsAliveRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'isAliveRequest' : this }; @@ -1652,6 +1885,7 @@ class IsAliveRequest { } constructor(obj) { + var logger = Logger.getLogger('IsAliveRequest'); logger.debug('Enter IsAliveRequest constructor'); if(arguments.length == 1) { if(('refId' in obj) && (obj.refId != null)) { this.setRefId(obj.refId); } @@ -1670,6 +1904,7 @@ module.exports.IsAliveRequest = IsAliveRequest; class KeyBlock { constructor(obj) { + var logger = Logger.getLogger('KeyBlock'); logger.debug('Enter KeyBlock constructor'); if(arguments.length == 1) { if(('Value' in obj) && (obj.Value != null)) { this.setValue(new KeyValue(obj.Value)); } @@ -1688,6 +1923,7 @@ module.exports.KeyBlock = KeyBlock; class KeyManagementScheme { constructor(obj) { + var logger = Logger.getLogger('KeyManagementScheme'); logger.debug('Enter KeyManagementScheme constructor'); if(arguments.length == 1) { if(('DUKPT' in obj) && (obj.DUKPT != null)) { this.setDUKPT(new KeyManagementScheme.DUKPT(obj.DUKPT)); } @@ -1706,6 +1942,7 @@ module.exports.KeyManagementScheme = KeyManagementScheme; class KeyValue { constructor(obj) { + var logger = Logger.getLogger('KeyValue'); logger.debug('Enter KeyValue constructor'); if(arguments.length == 1) { if(('Encoding' in obj) && (obj.Encoding != null)) { this.setEncoding(obj.Encoding); } @@ -1732,6 +1969,7 @@ module.exports.KeyValue = KeyValue; class LineItemType { constructor(obj) { + var logger = Logger.getLogger('LineItemType'); logger.debug('Enter LineItemType constructor'); if(arguments.length == 1) { if(('itemId' in obj) && (obj.itemId != null)) { this.setItemId(obj.itemId); } @@ -1740,6 +1978,26 @@ class LineItemType { if(('quantity' in obj) && (obj.quantity != null)) { this.setQuantity(obj.quantity); } if(('unitPrice' in obj) && (obj.unitPrice != null)) { this.setUnitPrice(obj.unitPrice); } if(('taxable' in obj) && (obj.taxable != null)) { this.setTaxable(obj.taxable); } + if(('unitOfMeasure' in obj) && (obj.unitOfMeasure != null)) { this.setUnitOfMeasure(obj.unitOfMeasure); } + if(('typeOfSupply' in obj) && (obj.typeOfSupply != null)) { this.setTypeOfSupply(obj.typeOfSupply); } + if(('taxRate' in obj) && (obj.taxRate != null)) { this.setTaxRate(obj.taxRate); } + if(('taxAmount' in obj) && (obj.taxAmount != null)) { this.setTaxAmount(obj.taxAmount); } + if(('nationalTax' in obj) && (obj.nationalTax != null)) { this.setNationalTax(obj.nationalTax); } + if(('localTax' in obj) && (obj.localTax != null)) { this.setLocalTax(obj.localTax); } + if(('vatRate' in obj) && (obj.vatRate != null)) { this.setVatRate(obj.vatRate); } + if(('alternateTaxId' in obj) && (obj.alternateTaxId != null)) { this.setAlternateTaxId(obj.alternateTaxId); } + if(('alternateTaxType' in obj) && (obj.alternateTaxType != null)) { this.setAlternateTaxType(obj.alternateTaxType); } + if(('alternateTaxTypeApplied' in obj) && (obj.alternateTaxTypeApplied != null)) { this.setAlternateTaxTypeApplied(obj.alternateTaxTypeApplied); } + if(('alternateTaxRate' in obj) && (obj.alternateTaxRate != null)) { this.setAlternateTaxRate(obj.alternateTaxRate); } + if(('alternateTaxAmount' in obj) && (obj.alternateTaxAmount != null)) { this.setAlternateTaxAmount(obj.alternateTaxAmount); } + if(('totalAmount' in obj) && (obj.totalAmount != null)) { this.setTotalAmount(obj.totalAmount); } + if(('commodityCode' in obj) && (obj.commodityCode != null)) { this.setCommodityCode(obj.commodityCode); } + if(('productCode' in obj) && (obj.productCode != null)) { this.setProductCode(obj.productCode); } + if(('productSKU' in obj) && (obj.productSKU != null)) { this.setProductSKU(obj.productSKU); } + if(('discountRate' in obj) && (obj.discountRate != null)) { this.setDiscountRate(obj.discountRate); } + if(('discountAmount' in obj) && (obj.discountAmount != null)) { this.setDiscountAmount(obj.discountAmount); } + if(('taxIncludedInTotal' in obj) && (obj.taxIncludedInTotal != null)) { this.setTaxIncludedInTotal(obj.taxIncludedInTotal); } + if(('taxIsAfterDiscount' in obj) && (obj.taxIsAfterDiscount != null)) { this.setTaxIsAfterDiscount(obj.taxIsAfterDiscount); } } else { this.setItemId(null); @@ -1748,6 +2006,26 @@ class LineItemType { this.setQuantity(null); this.setUnitPrice(null); this.setTaxable(null); + this.setUnitOfMeasure(null); + this.setTypeOfSupply(null); + this.setTaxRate(null); + this.setTaxAmount(null); + this.setNationalTax(null); + this.setLocalTax(null); + this.setVatRate(null); + this.setAlternateTaxId(null); + this.setAlternateTaxType(null); + this.setAlternateTaxTypeApplied(null); + this.setAlternateTaxRate(null); + this.setAlternateTaxAmount(null); + this.setTotalAmount(null); + this.setCommodityCode(null); + this.setProductCode(null); + this.setProductSKU(null); + this.setDiscountRate(null); + this.setDiscountAmount(null); + this.setTaxIncludedInTotal(null); + this.setTaxIsAfterDiscount(null); } logger.debug('Exit LineItemType constructor'); } @@ -1764,12 +2042,53 @@ class LineItemType { getUnitPrice() { if('unitPrice' in this) {return this.unitPrice;} } setTaxable(p_taxable) { this.taxable = p_taxable; } getTaxable() { if('taxable' in this) {return this.taxable;} } + setUnitOfMeasure(p_unitOfMeasure) { this.unitOfMeasure = p_unitOfMeasure; } + getUnitOfMeasure() { if('unitOfMeasure' in this) {return this.unitOfMeasure;} } + setTypeOfSupply(p_typeOfSupply) { this.typeOfSupply = p_typeOfSupply; } + getTypeOfSupply() { if('typeOfSupply' in this) {return this.typeOfSupply;} } + setTaxRate(p_taxRate) { this.taxRate = p_taxRate; } + getTaxRate() { if('taxRate' in this) {return this.taxRate;} } + setTaxAmount(p_taxAmount) { this.taxAmount = p_taxAmount; } + getTaxAmount() { if('taxAmount' in this) {return this.taxAmount;} } + setNationalTax(p_nationalTax) { this.nationalTax = p_nationalTax; } + getNationalTax() { if('nationalTax' in this) {return this.nationalTax;} } + setLocalTax(p_localTax) { this.localTax = p_localTax; } + getLocalTax() { if('localTax' in this) {return this.localTax;} } + setVatRate(p_vatRate) { this.vatRate = p_vatRate; } + getVatRate() { if('vatRate' in this) {return this.vatRate;} } + setAlternateTaxId(p_alternateTaxId) { this.alternateTaxId = p_alternateTaxId; } + getAlternateTaxId() { if('alternateTaxId' in this) {return this.alternateTaxId;} } + setAlternateTaxType(p_alternateTaxType) { this.alternateTaxType = p_alternateTaxType; } + getAlternateTaxType() { if('alternateTaxType' in this) {return this.alternateTaxType;} } + setAlternateTaxTypeApplied(p_alternateTaxTypeApplied) { this.alternateTaxTypeApplied = p_alternateTaxTypeApplied; } + getAlternateTaxTypeApplied() { if('alternateTaxTypeApplied' in this) {return this.alternateTaxTypeApplied;} } + setAlternateTaxRate(p_alternateTaxRate) { this.alternateTaxRate = p_alternateTaxRate; } + getAlternateTaxRate() { if('alternateTaxRate' in this) {return this.alternateTaxRate;} } + setAlternateTaxAmount(p_alternateTaxAmount) { this.alternateTaxAmount = p_alternateTaxAmount; } + getAlternateTaxAmount() { if('alternateTaxAmount' in this) {return this.alternateTaxAmount;} } + setTotalAmount(p_totalAmount) { this.totalAmount = p_totalAmount; } + getTotalAmount() { if('totalAmount' in this) {return this.totalAmount;} } + setCommodityCode(p_commodityCode) { this.commodityCode = p_commodityCode; } + getCommodityCode() { if('commodityCode' in this) {return this.commodityCode;} } + setProductCode(p_productCode) { this.productCode = p_productCode; } + getProductCode() { if('productCode' in this) {return this.productCode;} } + setProductSKU(p_productSKU) { this.productSKU = p_productSKU; } + getProductSKU() { if('productSKU' in this) {return this.productSKU;} } + setDiscountRate(p_discountRate) { this.discountRate = p_discountRate; } + getDiscountRate() { if('discountRate' in this) {return this.discountRate;} } + setDiscountAmount(p_discountAmount) { this.discountAmount = p_discountAmount; } + getDiscountAmount() { if('discountAmount' in this) {return this.discountAmount;} } + setTaxIncludedInTotal(p_taxIncludedInTotal) { this.taxIncludedInTotal = p_taxIncludedInTotal; } + getTaxIncludedInTotal() { if('taxIncludedInTotal' in this) {return this.taxIncludedInTotal;} } + setTaxIsAfterDiscount(p_taxIsAfterDiscount) { this.taxIsAfterDiscount = p_taxIsAfterDiscount; } + getTaxIsAfterDiscount() { if('taxIsAfterDiscount' in this) {return this.taxIsAfterDiscount;} } } module.exports.LineItemType = LineItemType; class ListOfAUDetailsType { constructor(obj) { + var logger = Logger.getLogger('ListOfAUDetailsType'); logger.debug('Enter ListOfAUDetailsType constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -1792,6 +2111,7 @@ module.exports.ListOfAUDetailsType = ListOfAUDetailsType; class MerchantAuthenticationType { constructor(obj) { + var logger = Logger.getLogger('MerchantAuthenticationType'); logger.debug('Enter MerchantAuthenticationType constructor'); if(arguments.length == 1) { if(('name' in obj) && (obj.name != null)) { this.setName(obj.name); } @@ -1801,6 +2121,7 @@ class MerchantAuthenticationType { if(('impersonationAuthentication' in obj) && (obj.impersonationAuthentication != null)) { this.setImpersonationAuthentication(new ImpersonationAuthenticationType(obj.impersonationAuthentication)); } if(('fingerPrint' in obj) && (obj.fingerPrint != null)) { this.setFingerPrint(new FingerPrintType(obj.fingerPrint)); } if(('clientKey' in obj) && (obj.clientKey != null)) { this.setClientKey(obj.clientKey); } + if(('accessToken' in obj) && (obj.accessToken != null)) { this.setAccessToken(obj.accessToken); } if(('mobileDeviceId' in obj) && (obj.mobileDeviceId != null)) { this.setMobileDeviceId(obj.mobileDeviceId); } } else { @@ -1811,6 +2132,7 @@ class MerchantAuthenticationType { this.setImpersonationAuthentication(null); this.setFingerPrint(null); this.setClientKey(null); + this.setAccessToken(null); this.setMobileDeviceId(null); } logger.debug('Exit MerchantAuthenticationType constructor'); @@ -1830,6 +2152,8 @@ class MerchantAuthenticationType { getFingerPrint() { if('fingerPrint' in this) {return this.fingerPrint;} } setClientKey(p_clientKey) { this.clientKey = p_clientKey; } getClientKey() { if('clientKey' in this) {return this.clientKey;} } + setAccessToken(p_accessToken) { this.accessToken = p_accessToken; } + getAccessToken() { if('accessToken' in this) {return this.accessToken;} } setMobileDeviceId(p_mobileDeviceId) { this.mobileDeviceId = p_mobileDeviceId; } getMobileDeviceId() { if('mobileDeviceId' in this) {return this.mobileDeviceId;} } } @@ -1838,6 +2162,7 @@ module.exports.MerchantAuthenticationType = MerchantAuthenticationType; class MerchantContactType { constructor(obj) { + var logger = Logger.getLogger('MerchantContactType'); logger.debug('Enter MerchantContactType constructor'); if(arguments.length == 1) { if(('merchantName' in obj) && (obj.merchantName != null)) { this.setMerchantName(obj.merchantName); } @@ -1876,6 +2201,7 @@ module.exports.MerchantContactType = MerchantContactType; class MessagesType { constructor(obj) { + var logger = Logger.getLogger('MessagesType'); logger.debug('Enter MessagesType constructor'); if(arguments.length == 1) { if(('resultCode' in obj) && (obj.resultCode != null)) { this.setResultCode(obj.resultCode); } @@ -1902,6 +2228,7 @@ module.exports.MessagesType = MessagesType; class MobileDeviceType { constructor(obj) { + var logger = Logger.getLogger('MobileDeviceType'); logger.debug('Enter MobileDeviceType constructor'); if(arguments.length == 1) { if(('mobileDeviceId' in obj) && (obj.mobileDeviceId != null)) { this.setMobileDeviceId(obj.mobileDeviceId); } @@ -1936,6 +2263,7 @@ module.exports.MobileDeviceType = MobileDeviceType; class NameAndAddressType { constructor(obj) { + var logger = Logger.getLogger('NameAndAddressType'); logger.debug('Enter NameAndAddressType constructor'); if(arguments.length == 1) { if(('firstName' in obj) && (obj.firstName != null)) { this.setFirstName(obj.firstName); } @@ -1982,16 +2310,19 @@ module.exports.NameAndAddressType = NameAndAddressType; class OpaqueDataType { constructor(obj) { + var logger = Logger.getLogger('OpaqueDataType'); logger.debug('Enter OpaqueDataType constructor'); if(arguments.length == 1) { if(('dataDescriptor' in obj) && (obj.dataDescriptor != null)) { this.setDataDescriptor(obj.dataDescriptor); } if(('dataValue' in obj) && (obj.dataValue != null)) { this.setDataValue(obj.dataValue); } if(('dataKey' in obj) && (obj.dataKey != null)) { this.setDataKey(obj.dataKey); } + if(('expirationTimeStamp' in obj) && (obj.expirationTimeStamp != null)) { this.setExpirationTimeStamp(obj.expirationTimeStamp); } } else { this.setDataDescriptor(null); this.setDataValue(null); this.setDataKey(null); + this.setExpirationTimeStamp(null); } logger.debug('Exit OpaqueDataType constructor'); } @@ -2002,20 +2333,55 @@ class OpaqueDataType { getDataValue() { if('dataValue' in this) {return this.dataValue;} } setDataKey(p_dataKey) { this.dataKey = p_dataKey; } getDataKey() { if('dataKey' in this) {return this.dataKey;} } + setExpirationTimeStamp(p_expirationTimeStamp) { this.expirationTimeStamp = p_expirationTimeStamp; } + getExpirationTimeStamp() { if('expirationTimeStamp' in this) {return this.expirationTimeStamp;} } } module.exports.OpaqueDataType = OpaqueDataType; class OrderType { constructor(obj) { + var logger = Logger.getLogger('OrderType'); logger.debug('Enter OrderType constructor'); if(arguments.length == 1) { if(('invoiceNumber' in obj) && (obj.invoiceNumber != null)) { this.setInvoiceNumber(obj.invoiceNumber); } if(('description' in obj) && (obj.description != null)) { this.setDescription(obj.description); } + if(('discountAmount' in obj) && (obj.discountAmount != null)) { this.setDiscountAmount(obj.discountAmount); } + if(('taxIsAfterDiscount' in obj) && (obj.taxIsAfterDiscount != null)) { this.setTaxIsAfterDiscount(obj.taxIsAfterDiscount); } + if(('totalTaxTypeCode' in obj) && (obj.totalTaxTypeCode != null)) { this.setTotalTaxTypeCode(obj.totalTaxTypeCode); } + if(('purchaserVATRegistrationNumber' in obj) && (obj.purchaserVATRegistrationNumber != null)) { this.setPurchaserVATRegistrationNumber(obj.purchaserVATRegistrationNumber); } + if(('merchantVATRegistrationNumber' in obj) && (obj.merchantVATRegistrationNumber != null)) { this.setMerchantVATRegistrationNumber(obj.merchantVATRegistrationNumber); } + if(('vatInvoiceReferenceNumber' in obj) && (obj.vatInvoiceReferenceNumber != null)) { this.setVatInvoiceReferenceNumber(obj.vatInvoiceReferenceNumber); } + if(('purchaserCode' in obj) && (obj.purchaserCode != null)) { this.setPurchaserCode(obj.purchaserCode); } + if(('summaryCommodityCode' in obj) && (obj.summaryCommodityCode != null)) { this.setSummaryCommodityCode(obj.summaryCommodityCode); } + if(('purchaseOrderDateUTC' in obj) && (obj.purchaseOrderDateUTC != null)) { this.setPurchaseOrderDateUTC(obj.purchaseOrderDateUTC); } + if(('supplierOrderReference' in obj) && (obj.supplierOrderReference != null)) { this.setSupplierOrderReference(obj.supplierOrderReference); } + if(('authorizedContactName' in obj) && (obj.authorizedContactName != null)) { this.setAuthorizedContactName(obj.authorizedContactName); } + if(('cardAcceptorRefNumber' in obj) && (obj.cardAcceptorRefNumber != null)) { this.setCardAcceptorRefNumber(obj.cardAcceptorRefNumber); } + if(('amexDataTAA1' in obj) && (obj.amexDataTAA1 != null)) { this.setAmexDataTAA1(obj.amexDataTAA1); } + if(('amexDataTAA2' in obj) && (obj.amexDataTAA2 != null)) { this.setAmexDataTAA2(obj.amexDataTAA2); } + if(('amexDataTAA3' in obj) && (obj.amexDataTAA3 != null)) { this.setAmexDataTAA3(obj.amexDataTAA3); } + if(('amexDataTAA4' in obj) && (obj.amexDataTAA4 != null)) { this.setAmexDataTAA4(obj.amexDataTAA4); } } else { this.setInvoiceNumber(null); this.setDescription(null); + this.setDiscountAmount(null); + this.setTaxIsAfterDiscount(null); + this.setTotalTaxTypeCode(null); + this.setPurchaserVATRegistrationNumber(null); + this.setMerchantVATRegistrationNumber(null); + this.setVatInvoiceReferenceNumber(null); + this.setPurchaserCode(null); + this.setSummaryCommodityCode(null); + this.setPurchaseOrderDateUTC(null); + this.setSupplierOrderReference(null); + this.setAuthorizedContactName(null); + this.setCardAcceptorRefNumber(null); + this.setAmexDataTAA1(null); + this.setAmexDataTAA2(null); + this.setAmexDataTAA3(null); + this.setAmexDataTAA4(null); } logger.debug('Exit OrderType constructor'); } @@ -2024,12 +2390,84 @@ class OrderType { getInvoiceNumber() { if('invoiceNumber' in this) {return this.invoiceNumber;} } setDescription(p_description) { this.description = p_description; } getDescription() { if('description' in this) {return this.description;} } + setDiscountAmount(p_discountAmount) { this.discountAmount = p_discountAmount; } + getDiscountAmount() { if('discountAmount' in this) {return this.discountAmount;} } + setTaxIsAfterDiscount(p_taxIsAfterDiscount) { this.taxIsAfterDiscount = p_taxIsAfterDiscount; } + getTaxIsAfterDiscount() { if('taxIsAfterDiscount' in this) {return this.taxIsAfterDiscount;} } + setTotalTaxTypeCode(p_totalTaxTypeCode) { this.totalTaxTypeCode = p_totalTaxTypeCode; } + getTotalTaxTypeCode() { if('totalTaxTypeCode' in this) {return this.totalTaxTypeCode;} } + setPurchaserVATRegistrationNumber(p_purchaserVATRegistrationNumber) { this.purchaserVATRegistrationNumber = p_purchaserVATRegistrationNumber; } + getPurchaserVATRegistrationNumber() { if('purchaserVATRegistrationNumber' in this) {return this.purchaserVATRegistrationNumber;} } + setMerchantVATRegistrationNumber(p_merchantVATRegistrationNumber) { this.merchantVATRegistrationNumber = p_merchantVATRegistrationNumber; } + getMerchantVATRegistrationNumber() { if('merchantVATRegistrationNumber' in this) {return this.merchantVATRegistrationNumber;} } + setVatInvoiceReferenceNumber(p_vatInvoiceReferenceNumber) { this.vatInvoiceReferenceNumber = p_vatInvoiceReferenceNumber; } + getVatInvoiceReferenceNumber() { if('vatInvoiceReferenceNumber' in this) {return this.vatInvoiceReferenceNumber;} } + setPurchaserCode(p_purchaserCode) { this.purchaserCode = p_purchaserCode; } + getPurchaserCode() { if('purchaserCode' in this) {return this.purchaserCode;} } + setSummaryCommodityCode(p_summaryCommodityCode) { this.summaryCommodityCode = p_summaryCommodityCode; } + getSummaryCommodityCode() { if('summaryCommodityCode' in this) {return this.summaryCommodityCode;} } + setPurchaseOrderDateUTC(p_purchaseOrderDateUTC) { this.purchaseOrderDateUTC = p_purchaseOrderDateUTC; } + getPurchaseOrderDateUTC() { if('purchaseOrderDateUTC' in this) {return this.purchaseOrderDateUTC;} } + setSupplierOrderReference(p_supplierOrderReference) { this.supplierOrderReference = p_supplierOrderReference; } + getSupplierOrderReference() { if('supplierOrderReference' in this) {return this.supplierOrderReference;} } + setAuthorizedContactName(p_authorizedContactName) { this.authorizedContactName = p_authorizedContactName; } + getAuthorizedContactName() { if('authorizedContactName' in this) {return this.authorizedContactName;} } + setCardAcceptorRefNumber(p_cardAcceptorRefNumber) { this.cardAcceptorRefNumber = p_cardAcceptorRefNumber; } + getCardAcceptorRefNumber() { if('cardAcceptorRefNumber' in this) {return this.cardAcceptorRefNumber;} } + setAmexDataTAA1(p_amexDataTAA1) { this.amexDataTAA1 = p_amexDataTAA1; } + getAmexDataTAA1() { if('amexDataTAA1' in this) {return this.amexDataTAA1;} } + setAmexDataTAA2(p_amexDataTAA2) { this.amexDataTAA2 = p_amexDataTAA2; } + getAmexDataTAA2() { if('amexDataTAA2' in this) {return this.amexDataTAA2;} } + setAmexDataTAA3(p_amexDataTAA3) { this.amexDataTAA3 = p_amexDataTAA3; } + getAmexDataTAA3() { if('amexDataTAA3' in this) {return this.amexDataTAA3;} } + setAmexDataTAA4(p_amexDataTAA4) { this.amexDataTAA4 = p_amexDataTAA4; } + getAmexDataTAA4() { if('amexDataTAA4' in this) {return this.amexDataTAA4;} } } module.exports.OrderType = OrderType; +class OtherTaxType { + constructor(obj) { + var logger = Logger.getLogger('OtherTaxType'); + logger.debug('Enter OtherTaxType constructor'); + if(arguments.length == 1) { + if(('nationalTaxAmount' in obj) && (obj.nationalTaxAmount != null)) { this.setNationalTaxAmount(obj.nationalTaxAmount); } + if(('localTaxAmount' in obj) && (obj.localTaxAmount != null)) { this.setLocalTaxAmount(obj.localTaxAmount); } + if(('alternateTaxAmount' in obj) && (obj.alternateTaxAmount != null)) { this.setAlternateTaxAmount(obj.alternateTaxAmount); } + if(('alternateTaxId' in obj) && (obj.alternateTaxId != null)) { this.setAlternateTaxId(obj.alternateTaxId); } + if(('vatTaxRate' in obj) && (obj.vatTaxRate != null)) { this.setVatTaxRate(obj.vatTaxRate); } + if(('vatTaxAmount' in obj) && (obj.vatTaxAmount != null)) { this.setVatTaxAmount(obj.vatTaxAmount); } + } + else { + this.setNationalTaxAmount(null); + this.setLocalTaxAmount(null); + this.setAlternateTaxAmount(null); + this.setAlternateTaxId(null); + this.setVatTaxRate(null); + this.setVatTaxAmount(null); + } + logger.debug('Exit OtherTaxType constructor'); + } + + setNationalTaxAmount(p_nationalTaxAmount) { this.nationalTaxAmount = p_nationalTaxAmount; } + getNationalTaxAmount() { if('nationalTaxAmount' in this) {return this.nationalTaxAmount;} } + setLocalTaxAmount(p_localTaxAmount) { this.localTaxAmount = p_localTaxAmount; } + getLocalTaxAmount() { if('localTaxAmount' in this) {return this.localTaxAmount;} } + setAlternateTaxAmount(p_alternateTaxAmount) { this.alternateTaxAmount = p_alternateTaxAmount; } + getAlternateTaxAmount() { if('alternateTaxAmount' in this) {return this.alternateTaxAmount;} } + setAlternateTaxId(p_alternateTaxId) { this.alternateTaxId = p_alternateTaxId; } + getAlternateTaxId() { if('alternateTaxId' in this) {return this.alternateTaxId;} } + setVatTaxRate(p_vatTaxRate) { this.vatTaxRate = p_vatTaxRate; } + getVatTaxRate() { if('vatTaxRate' in this) {return this.vatTaxRate;} } + setVatTaxAmount(p_vatTaxAmount) { this.vatTaxAmount = p_vatTaxAmount; } + getVatTaxAmount() { if('vatTaxAmount' in this) {return this.vatTaxAmount;} } +} + +module.exports.OtherTaxType = OtherTaxType; + class Paging { constructor(obj) { + var logger = Logger.getLogger('Paging'); logger.debug('Enter Paging constructor'); if(arguments.length == 1) { if(('limit' in obj) && (obj.limit != null)) { this.setLimit(obj.limit); } @@ -2052,6 +2490,7 @@ module.exports.Paging = Paging; class PayPalType { constructor(obj) { + var logger = Logger.getLogger('PayPalType'); logger.debug('Enter PayPalType constructor'); if(arguments.length == 1) { if(('successUrl' in obj) && (obj.successUrl != null)) { this.setSuccessUrl(obj.successUrl); } @@ -2090,6 +2529,7 @@ module.exports.PayPalType = PayPalType; class PaymentDetails { constructor(obj) { + var logger = Logger.getLogger('PaymentDetails'); logger.debug('Enter PaymentDetails constructor'); if(arguments.length == 1) { if(('currency' in obj) && (obj.currency != null)) { this.setCurrency(obj.currency); } @@ -2144,6 +2584,7 @@ module.exports.PaymentDetails = PaymentDetails; class PaymentEmvType { constructor(obj) { + var logger = Logger.getLogger('PaymentEmvType'); logger.debug('Enter PaymentEmvType constructor'); if(arguments.length == 1) { if(('emvData' in obj) && (obj.emvData != null)) { this.setEmvData(obj.emvData); } @@ -2170,6 +2611,7 @@ module.exports.PaymentEmvType = PaymentEmvType; class PaymentMaskedType { constructor(obj) { + var logger = Logger.getLogger('PaymentMaskedType'); logger.debug('Enter PaymentMaskedType constructor'); if(arguments.length == 1) { if(('creditCard' in obj) && (obj.creditCard != null)) { this.setCreditCard(new CreditCardMaskedType(obj.creditCard)); } @@ -2196,6 +2638,7 @@ module.exports.PaymentMaskedType = PaymentMaskedType; class PaymentProfile { constructor(obj) { + var logger = Logger.getLogger('PaymentProfile'); logger.debug('Enter PaymentProfile constructor'); if(arguments.length == 1) { if(('paymentProfileId' in obj) && (obj.paymentProfileId != null)) { this.setPaymentProfileId(obj.paymentProfileId); } @@ -2218,6 +2661,7 @@ module.exports.PaymentProfile = PaymentProfile; class PaymentScheduleType { constructor(obj) { + var logger = Logger.getLogger('PaymentScheduleType'); logger.debug('Enter PaymentScheduleType constructor'); if(arguments.length == 1) { if(('interval' in obj) && (obj.interval != null)) { this.setInterval(new PaymentScheduleType.Interval(obj.interval)); } @@ -2248,6 +2692,7 @@ module.exports.PaymentScheduleType = PaymentScheduleType; class PaymentSimpleType { constructor(obj) { + var logger = Logger.getLogger('PaymentSimpleType'); logger.debug('Enter PaymentSimpleType constructor'); if(arguments.length == 1) { if(('creditCard' in obj) && (obj.creditCard != null)) { this.setCreditCard(new CreditCardSimpleType(obj.creditCard)); } @@ -2270,6 +2715,7 @@ module.exports.PaymentSimpleType = PaymentSimpleType; class PaymentType { constructor(obj) { + var logger = Logger.getLogger('PaymentType'); logger.debug('Enter PaymentType constructor'); if(arguments.length == 1) { if(('creditCard' in obj) && (obj.creditCard != null)) { this.setCreditCard(new CreditCardType(obj.creditCard)); } @@ -2279,6 +2725,7 @@ class PaymentType { if(('payPal' in obj) && (obj.payPal != null)) { this.setPayPal(new PayPalType(obj.payPal)); } if(('opaqueData' in obj) && (obj.opaqueData != null)) { this.setOpaqueData(new OpaqueDataType(obj.opaqueData)); } if(('emv' in obj) && (obj.emv != null)) { this.setEmv(new PaymentEmvType(obj.emv)); } + if(('dataSource' in obj) && (obj.dataSource != null)) { this.setDataSource(obj.dataSource); } } else { this.setCreditCard(null); @@ -2288,6 +2735,7 @@ class PaymentType { this.setPayPal(null); this.setOpaqueData(null); this.setEmv(null); + this.setDataSource(null); } logger.debug('Exit PaymentType constructor'); } @@ -2306,12 +2754,15 @@ class PaymentType { getOpaqueData() { if('opaqueData' in this) {return this.opaqueData;} } setEmv(p_emv) { this.emv = p_emv; } getEmv() { if('emv' in this) {return this.emv;} } + setDataSource(p_dataSource) { this.dataSource = p_dataSource; } + getDataSource() { if('dataSource' in this) {return this.dataSource;} } } module.exports.PaymentType = PaymentType; class PermissionType { constructor(obj) { + var logger = Logger.getLogger('PermissionType'); logger.debug('Enter PermissionType constructor'); if(arguments.length == 1) { if(('permissionName' in obj) && (obj.permissionName != null)) { this.setPermissionName(obj.permissionName); } @@ -2328,26 +2779,67 @@ class PermissionType { module.exports.PermissionType = PermissionType; +class ProcessingOptions { + constructor(obj) { + var logger = Logger.getLogger('ProcessingOptions'); + logger.debug('Enter ProcessingOptions constructor'); + if(arguments.length == 1) { + if(('isFirstRecurringPayment' in obj) && (obj.isFirstRecurringPayment != null)) { this.setIsFirstRecurringPayment(obj.isFirstRecurringPayment); } + if(('isFirstSubsequentAuth' in obj) && (obj.isFirstSubsequentAuth != null)) { this.setIsFirstSubsequentAuth(obj.isFirstSubsequentAuth); } + if(('isSubsequentAuth' in obj) && (obj.isSubsequentAuth != null)) { this.setIsSubsequentAuth(obj.isSubsequentAuth); } + if(('isStoredCredentials' in obj) && (obj.isStoredCredentials != null)) { this.setIsStoredCredentials(obj.isStoredCredentials); } + } + else { + this.setIsFirstRecurringPayment(null); + this.setIsFirstSubsequentAuth(null); + this.setIsSubsequentAuth(null); + this.setIsStoredCredentials(null); + } + logger.debug('Exit ProcessingOptions constructor'); + } + + setIsFirstRecurringPayment(p_isFirstRecurringPayment) { this.isFirstRecurringPayment = p_isFirstRecurringPayment; } + getIsFirstRecurringPayment() { if('isFirstRecurringPayment' in this) {return this.isFirstRecurringPayment;} } + setIsFirstSubsequentAuth(p_isFirstSubsequentAuth) { this.isFirstSubsequentAuth = p_isFirstSubsequentAuth; } + getIsFirstSubsequentAuth() { if('isFirstSubsequentAuth' in this) {return this.isFirstSubsequentAuth;} } + setIsSubsequentAuth(p_isSubsequentAuth) { this.isSubsequentAuth = p_isSubsequentAuth; } + getIsSubsequentAuth() { if('isSubsequentAuth' in this) {return this.isSubsequentAuth;} } + setIsStoredCredentials(p_isStoredCredentials) { this.isStoredCredentials = p_isStoredCredentials; } + getIsStoredCredentials() { if('isStoredCredentials' in this) {return this.isStoredCredentials;} } +} + +module.exports.ProcessingOptions = ProcessingOptions; + class ProcessorType { constructor(obj) { + var logger = Logger.getLogger('ProcessorType'); logger.debug('Enter ProcessorType constructor'); if(arguments.length == 1) { if(('name' in obj) && (obj.name != null)) { this.setName(obj.name); } + if(('id' in obj) && (obj.id != null)) { this.setId(obj.id); } + if(('cardTypes' in obj) && (obj.cardTypes != null)) { this.setCardTypes(new ArrayOfCardType(obj.cardTypes)); } } else { this.setName(null); + this.setId(null); + this.setCardTypes(null); } logger.debug('Exit ProcessorType constructor'); } setName(p_name) { this.name = p_name; } getName() { if('name' in this) {return this.name;} } + setId(p_id) { this.id = p_id; } + getId() { if('id' in this) {return this.id;} } + setCardTypes(p_cardTypes) { this.cardTypes = p_cardTypes; } + getCardTypes() { if('cardTypes' in this) {return this.cardTypes;} } } module.exports.ProcessorType = ProcessorType; class ProfileTransAmountType { constructor(obj) { + var logger = Logger.getLogger('ProfileTransAmountType'); logger.debug('Enter ProfileTransAmountType constructor'); if(arguments.length == 1) { if(('amount' in obj) && (obj.amount != null)) { this.setAmount(obj.amount); } @@ -2386,6 +2878,7 @@ module.exports.ProfileTransAmountType = ProfileTransAmountType; class ProfileTransVoidType { constructor(obj) { + var logger = Logger.getLogger('ProfileTransVoidType'); logger.debug('Enter ProfileTransVoidType constructor'); if(arguments.length == 1) { if(('customerProfileId' in obj) && (obj.customerProfileId != null)) { this.setCustomerProfileId(obj.customerProfileId); } @@ -2416,6 +2909,7 @@ module.exports.ProfileTransVoidType = ProfileTransVoidType; class ProfileTransactionType { constructor(obj) { + var logger = Logger.getLogger('ProfileTransactionType'); logger.debug('Enter ProfileTransactionType constructor'); if(arguments.length == 1) { if(('profileTransAuthCapture' in obj) && (obj.profileTransAuthCapture != null)) { this.setProfileTransAuthCapture(new ProfileTransAuthCaptureType(obj.profileTransAuthCapture)); } @@ -2454,6 +2948,7 @@ module.exports.ProfileTransactionType = ProfileTransactionType; class ReturnedItemType { constructor(obj) { + var logger = Logger.getLogger('ReturnedItemType'); logger.debug('Enter ReturnedItemType constructor'); if(arguments.length == 1) { if(('id' in obj) && (obj.id != null)) { this.setId(obj.id); } @@ -2488,6 +2983,7 @@ module.exports.ReturnedItemType = ReturnedItemType; class SecurePaymentContainerErrorType { constructor(obj) { + var logger = Logger.getLogger('SecurePaymentContainerErrorType'); logger.debug('Enter SecurePaymentContainerErrorType constructor'); if(arguments.length == 1) { if(('code' in obj) && (obj.code != null)) { this.setCode(obj.code); } @@ -2510,6 +3006,7 @@ module.exports.SecurePaymentContainerErrorType = SecurePaymentContainerErrorType class SettingType { constructor(obj) { + var logger = Logger.getLogger('SettingType'); logger.debug('Enter SettingType constructor'); if(arguments.length == 1) { if(('settingName' in obj) && (obj.settingName != null)) { this.setSettingName(obj.settingName); } @@ -2532,6 +3029,7 @@ module.exports.SettingType = SettingType; class SolutionType { constructor(obj) { + var logger = Logger.getLogger('SolutionType'); logger.debug('Enter SolutionType constructor'); if(arguments.length == 1) { if(('id' in obj) && (obj.id != null)) { this.setId(obj.id); } @@ -2556,8 +3054,68 @@ class SolutionType { module.exports.SolutionType = SolutionType; +class SubMerchantType { + constructor(obj) { + var logger = Logger.getLogger('SubMerchantType'); + logger.debug('Enter SubMerchantType constructor'); + if(arguments.length == 1) { + if(('identifier' in obj) && (obj.identifier != null)) { this.setIdentifier(obj.identifier); } + if(('doingBusinessAs' in obj) && (obj.doingBusinessAs != null)) { this.setDoingBusinessAs(obj.doingBusinessAs); } + if(('paymentServiceProviderName' in obj) && (obj.paymentServiceProviderName != null)) { this.setPaymentServiceProviderName(obj.paymentServiceProviderName); } + if(('paymentServiceFacilitator' in obj) && (obj.paymentServiceFacilitator != null)) { this.setPaymentServiceFacilitator(obj.paymentServiceFacilitator); } + if(('streetAddress' in obj) && (obj.streetAddress != null)) { this.setStreetAddress(obj.streetAddress); } + if(('phone' in obj) && (obj.phone != null)) { this.setPhone(obj.phone); } + if(('email' in obj) && (obj.email != null)) { this.setEmail(obj.email); } + if(('postalCode' in obj) && (obj.postalCode != null)) { this.setPostalCode(obj.postalCode); } + if(('city' in obj) && (obj.city != null)) { this.setCity(obj.city); } + if(('regionCode' in obj) && (obj.regionCode != null)) { this.setRegionCode(obj.regionCode); } + if(('countryCode' in obj) && (obj.countryCode != null)) { this.setCountryCode(obj.countryCode); } + } + else { + this.setIdentifier(null); + this.setDoingBusinessAs(null); + this.setPaymentServiceProviderName(null); + this.setPaymentServiceFacilitator(null); + this.setStreetAddress(null); + this.setPhone(null); + this.setEmail(null); + this.setPostalCode(null); + this.setCity(null); + this.setRegionCode(null); + this.setCountryCode(null); + } + logger.debug('Exit SubMerchantType constructor'); + } + + setIdentifier(p_identifier) { this.identifier = p_identifier; } + getIdentifier() { if('identifier' in this) {return this.identifier;} } + setDoingBusinessAs(p_doingBusinessAs) { this.doingBusinessAs = p_doingBusinessAs; } + getDoingBusinessAs() { if('doingBusinessAs' in this) {return this.doingBusinessAs;} } + setPaymentServiceProviderName(p_paymentServiceProviderName) { this.paymentServiceProviderName = p_paymentServiceProviderName; } + getPaymentServiceProviderName() { if('paymentServiceProviderName' in this) {return this.paymentServiceProviderName;} } + setPaymentServiceFacilitator(p_paymentServiceFacilitator) { this.paymentServiceFacilitator = p_paymentServiceFacilitator; } + getPaymentServiceFacilitator() { if('paymentServiceFacilitator' in this) {return this.paymentServiceFacilitator;} } + setStreetAddress(p_streetAddress) { this.streetAddress = p_streetAddress; } + getStreetAddress() { if('streetAddress' in this) {return this.streetAddress;} } + setPhone(p_phone) { this.phone = p_phone; } + getPhone() { if('phone' in this) {return this.phone;} } + setEmail(p_email) { this.email = p_email; } + getEmail() { if('email' in this) {return this.email;} } + setPostalCode(p_postalCode) { this.postalCode = p_postalCode; } + getPostalCode() { if('postalCode' in this) {return this.postalCode;} } + setCity(p_city) { this.city = p_city; } + getCity() { if('city' in this) {return this.city;} } + setRegionCode(p_regionCode) { this.regionCode = p_regionCode; } + getRegionCode() { if('regionCode' in this) {return this.regionCode;} } + setCountryCode(p_countryCode) { this.countryCode = p_countryCode; } + getCountryCode() { if('countryCode' in this) {return this.countryCode;} } +} + +module.exports.SubMerchantType = SubMerchantType; + class SubscriptionDetail { constructor(obj) { + var logger = Logger.getLogger('SubscriptionDetail'); logger.debug('Enter SubscriptionDetail constructor'); if(arguments.length == 1) { if(('id' in obj) && (obj.id != null)) { this.setId(obj.id); } @@ -2636,6 +3194,7 @@ module.exports.SubscriptionDetail = SubscriptionDetail; class SubscriptionIdList { constructor(obj) { + var logger = Logger.getLogger('SubscriptionIdList'); logger.debug('Enter SubscriptionIdList constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -2658,6 +3217,7 @@ module.exports.SubscriptionIdList = SubscriptionIdList; class SubscriptionPaymentType { constructor(obj) { + var logger = Logger.getLogger('SubscriptionPaymentType'); logger.debug('Enter SubscriptionPaymentType constructor'); if(arguments.length == 1) { if(('id' in obj) && (obj.id != null)) { this.setId(obj.id); } @@ -2678,18 +3238,48 @@ class SubscriptionPaymentType { module.exports.SubscriptionPaymentType = SubscriptionPaymentType; +class SubsequentAuthInformation { + constructor(obj) { + var logger = Logger.getLogger('SubsequentAuthInformation'); + logger.debug('Enter SubsequentAuthInformation constructor'); + if(arguments.length == 1) { + if(('originalNetworkTransId' in obj) && (obj.originalNetworkTransId != null)) { this.setOriginalNetworkTransId(obj.originalNetworkTransId); } + if(('originalAuthAmount' in obj) && (obj.originalAuthAmount != null)) { this.setOriginalAuthAmount(obj.originalAuthAmount); } + if(('reason' in obj) && (obj.reason != null)) { this.setReason(obj.reason); } + } + else { + this.setOriginalNetworkTransId(null); + this.setOriginalAuthAmount(null); + this.setReason(null); + } + logger.debug('Exit SubsequentAuthInformation constructor'); + } + + setOriginalNetworkTransId(p_originalNetworkTransId) { this.originalNetworkTransId = p_originalNetworkTransId; } + getOriginalNetworkTransId() { if('originalNetworkTransId' in this) {return this.originalNetworkTransId;} } + setOriginalAuthAmount(p_originalAuthAmount) { this.originalAuthAmount = p_originalAuthAmount; } + getOriginalAuthAmount() { if('originalAuthAmount' in this) {return this.originalAuthAmount;} } + setReason(p_reason) { this.reason = p_reason; } + getReason() { if('reason' in this) {return this.reason;} } +} + +module.exports.SubsequentAuthInformation = SubsequentAuthInformation; + class TokenMaskedType { constructor(obj) { + var logger = Logger.getLogger('TokenMaskedType'); logger.debug('Enter TokenMaskedType constructor'); if(arguments.length == 1) { if(('tokenSource' in obj) && (obj.tokenSource != null)) { this.setTokenSource(obj.tokenSource); } if(('tokenNumber' in obj) && (obj.tokenNumber != null)) { this.setTokenNumber(obj.tokenNumber); } if(('expirationDate' in obj) && (obj.expirationDate != null)) { this.setExpirationDate(obj.expirationDate); } + if(('tokenRequestorId' in obj) && (obj.tokenRequestorId != null)) { this.setTokenRequestorId(obj.tokenRequestorId); } } else { this.setTokenSource(null); this.setTokenNumber(null); this.setExpirationDate(null); + this.setTokenRequestorId(null); } logger.debug('Exit TokenMaskedType constructor'); } @@ -2700,22 +3290,27 @@ class TokenMaskedType { getTokenNumber() { if('tokenNumber' in this) {return this.tokenNumber;} } setExpirationDate(p_expirationDate) { this.expirationDate = p_expirationDate; } getExpirationDate() { if('expirationDate' in this) {return this.expirationDate;} } + setTokenRequestorId(p_tokenRequestorId) { this.tokenRequestorId = p_tokenRequestorId; } + getTokenRequestorId() { if('tokenRequestorId' in this) {return this.tokenRequestorId;} } } module.exports.TokenMaskedType = TokenMaskedType; class TransRetailInfoType { constructor(obj) { + var logger = Logger.getLogger('TransRetailInfoType'); logger.debug('Enter TransRetailInfoType constructor'); if(arguments.length == 1) { if(('marketType' in obj) && (obj.marketType != null)) { this.setMarketType(obj.marketType); } if(('deviceType' in obj) && (obj.deviceType != null)) { this.setDeviceType(obj.deviceType); } if(('customerSignature' in obj) && (obj.customerSignature != null)) { this.setCustomerSignature(obj.customerSignature); } + if(('terminalNumber' in obj) && (obj.terminalNumber != null)) { this.setTerminalNumber(obj.terminalNumber); } } else { this.setMarketType(null); this.setDeviceType(null); this.setCustomerSignature(null); + this.setTerminalNumber(null); } logger.debug('Exit TransRetailInfoType constructor'); } @@ -2726,12 +3321,15 @@ class TransRetailInfoType { getDeviceType() { if('deviceType' in this) {return this.deviceType;} } setCustomerSignature(p_customerSignature) { this.customerSignature = p_customerSignature; } getCustomerSignature() { if('customerSignature' in this) {return this.customerSignature;} } + setTerminalNumber(p_terminalNumber) { this.terminalNumber = p_terminalNumber; } + getTerminalNumber() { if('terminalNumber' in this) {return this.terminalNumber;} } } module.exports.TransRetailInfoType = TransRetailInfoType; class TransactionDetailsType { constructor(obj) { + var logger = Logger.getLogger('TransactionDetailsType'); logger.debug('Enter TransactionDetailsType constructor'); if(arguments.length == 1) { if(('transId' in obj) && (obj.transId != null)) { this.setTransId(obj.transId); } @@ -2776,6 +3374,16 @@ class TransactionDetailsType { if(('returnedItems' in obj) && (obj.returnedItems != null)) { this.setReturnedItems(new ArrayOfReturnedItem(obj.returnedItems)); } if(('solution' in obj) && (obj.solution != null)) { this.setSolution(new SolutionType(obj.solution)); } if(('emvDetails' in obj) && (obj.emvDetails != null)) { this.setEmvDetails(new TransactionDetailsType.EmvDetails(obj.emvDetails)); } + if(('profile' in obj) && (obj.profile != null)) { this.setProfile(new CustomerProfileIdType(obj.profile)); } + if(('surcharge' in obj) && (obj.surcharge != null)) { this.setSurcharge(new ExtendedAmountType(obj.surcharge)); } + if(('employeeId' in obj) && (obj.employeeId != null)) { this.setEmployeeId(obj.employeeId); } + if(('tip' in obj) && (obj.tip != null)) { this.setTip(new ExtendedAmountType(obj.tip)); } + if(('otherTax' in obj) && (obj.otherTax != null)) { this.setOtherTax(new OtherTaxType(obj.otherTax)); } + if(('shipFrom' in obj) && (obj.shipFrom != null)) { this.setShipFrom(new NameAndAddressType(obj.shipFrom)); } + if(('networkTransId' in obj) && (obj.networkTransId != null)) { this.setNetworkTransId(obj.networkTransId); } + if(('originalNetworkTransId' in obj) && (obj.originalNetworkTransId != null)) { this.setOriginalNetworkTransId(obj.originalNetworkTransId); } + if(('originalAuthAmount' in obj) && (obj.originalAuthAmount != null)) { this.setOriginalAuthAmount(obj.originalAuthAmount); } + if(('authorizationIndicator' in obj) && (obj.authorizationIndicator != null)) { this.setAuthorizationIndicator(obj.authorizationIndicator); } } else { this.setTransId(null); @@ -2820,6 +3428,16 @@ class TransactionDetailsType { this.setReturnedItems(null); this.setSolution(null); this.setEmvDetails(null); + this.setProfile(null); + this.setSurcharge(null); + this.setEmployeeId(null); + this.setTip(null); + this.setOtherTax(null); + this.setShipFrom(null); + this.setNetworkTransId(null); + this.setOriginalNetworkTransId(null); + this.setOriginalAuthAmount(null); + this.setAuthorizationIndicator(null); } logger.debug('Exit TransactionDetailsType constructor'); } @@ -2908,12 +3526,33 @@ class TransactionDetailsType { getSolution() { if('solution' in this) {return this.solution;} } setEmvDetails(p_emvDetails) { this.emvDetails = p_emvDetails; } getEmvDetails() { if('emvDetails' in this) {return this.emvDetails;} } + setProfile(p_profile) { this.profile = p_profile; } + getProfile() { if('profile' in this) {return this.profile;} } + setSurcharge(p_surcharge) { this.surcharge = p_surcharge; } + getSurcharge() { if('surcharge' in this) {return this.surcharge;} } + setEmployeeId(p_employeeId) { this.employeeId = p_employeeId; } + getEmployeeId() { if('employeeId' in this) {return this.employeeId;} } + setTip(p_tip) { this.tip = p_tip; } + getTip() { if('tip' in this) {return this.tip;} } + setOtherTax(p_otherTax) { this.otherTax = p_otherTax; } + getOtherTax() { if('otherTax' in this) {return this.otherTax;} } + setShipFrom(p_shipFrom) { this.shipFrom = p_shipFrom; } + getShipFrom() { if('shipFrom' in this) {return this.shipFrom;} } + setNetworkTransId(p_networkTransId) { this.networkTransId = p_networkTransId; } + getNetworkTransId() { if('networkTransId' in this) {return this.networkTransId;} } + setOriginalNetworkTransId(p_originalNetworkTransId) { this.originalNetworkTransId = p_originalNetworkTransId; } + getOriginalNetworkTransId() { if('originalNetworkTransId' in this) {return this.originalNetworkTransId;} } + setOriginalAuthAmount(p_originalAuthAmount) { this.originalAuthAmount = p_originalAuthAmount; } + getOriginalAuthAmount() { if('originalAuthAmount' in this) {return this.originalAuthAmount;} } + setAuthorizationIndicator(p_authorizationIndicator) { this.authorizationIndicator = p_authorizationIndicator; } + getAuthorizationIndicator() { if('authorizationIndicator' in this) {return this.authorizationIndicator;} } } module.exports.TransactionDetailsType = TransactionDetailsType; class TransactionListSorting { constructor(obj) { + var logger = Logger.getLogger('TransactionListSorting'); logger.debug('Enter TransactionListSorting constructor'); if(arguments.length == 1) { if(('orderBy' in obj) && (obj.orderBy != null)) { this.setOrderBy(obj.orderBy); } @@ -2936,6 +3575,7 @@ module.exports.TransactionListSorting = TransactionListSorting; class TransactionRequestType { constructor(obj) { + var logger = Logger.getLogger('TransactionRequestType'); logger.debug('Enter TransactionRequestType constructor'); if(arguments.length == 1) { if(('transactionType' in obj) && (obj.transactionType != null)) { this.setTransactionType(obj.transactionType); } @@ -2965,6 +3605,15 @@ class TransactionRequestType { if(('employeeId' in obj) && (obj.employeeId != null)) { this.setEmployeeId(obj.employeeId); } if(('transactionSettings' in obj) && (obj.transactionSettings != null)) { this.setTransactionSettings(new ArrayOfSetting(obj.transactionSettings)); } if(('userFields' in obj) && (obj.userFields != null)) { this.setUserFields(new TransactionRequestType.UserFields(obj.userFields)); } + if(('surcharge' in obj) && (obj.surcharge != null)) { this.setSurcharge(new ExtendedAmountType(obj.surcharge)); } + if(('merchantDescriptor' in obj) && (obj.merchantDescriptor != null)) { this.setMerchantDescriptor(obj.merchantDescriptor); } + if(('subMerchant' in obj) && (obj.subMerchant != null)) { this.setSubMerchant(new SubMerchantType(obj.subMerchant)); } + if(('tip' in obj) && (obj.tip != null)) { this.setTip(new ExtendedAmountType(obj.tip)); } + if(('processingOptions' in obj) && (obj.processingOptions != null)) { this.setProcessingOptions(new ProcessingOptions(obj.processingOptions)); } + if(('subsequentAuthInformation' in obj) && (obj.subsequentAuthInformation != null)) { this.setSubsequentAuthInformation(new SubsequentAuthInformation(obj.subsequentAuthInformation)); } + if(('otherTax' in obj) && (obj.otherTax != null)) { this.setOtherTax(new OtherTaxType(obj.otherTax)); } + if(('shipFrom' in obj) && (obj.shipFrom != null)) { this.setShipFrom(new NameAndAddressType(obj.shipFrom)); } + if(('authorizationIndicatorType' in obj) && (obj.authorizationIndicatorType != null)) { this.setAuthorizationIndicatorType(new AuthorizationIndicatorType(obj.authorizationIndicatorType)); } } else { this.setTransactionType(null); @@ -2994,6 +3643,15 @@ class TransactionRequestType { this.setEmployeeId(null); this.setTransactionSettings(null); this.setUserFields(null); + this.setSurcharge(null); + this.setMerchantDescriptor(null); + this.setSubMerchant(null); + this.setTip(null); + this.setProcessingOptions(null); + this.setSubsequentAuthInformation(null); + this.setOtherTax(null); + this.setShipFrom(null); + this.setAuthorizationIndicatorType(null); } logger.debug('Exit TransactionRequestType constructor'); } @@ -3052,12 +3710,31 @@ class TransactionRequestType { getTransactionSettings() { if('transactionSettings' in this) {return this.transactionSettings;} } setUserFields(p_userFields) { this.userFields = p_userFields; } getUserFields() { if('userFields' in this) {return this.userFields;} } + setSurcharge(p_surcharge) { this.surcharge = p_surcharge; } + getSurcharge() { if('surcharge' in this) {return this.surcharge;} } + setMerchantDescriptor(p_merchantDescriptor) { this.merchantDescriptor = p_merchantDescriptor; } + getMerchantDescriptor() { if('merchantDescriptor' in this) {return this.merchantDescriptor;} } + setSubMerchant(p_subMerchant) { this.subMerchant = p_subMerchant; } + getSubMerchant() { if('subMerchant' in this) {return this.subMerchant;} } + setTip(p_tip) { this.tip = p_tip; } + getTip() { if('tip' in this) {return this.tip;} } + setProcessingOptions(p_processingOptions) { this.processingOptions = p_processingOptions; } + getProcessingOptions() { if('processingOptions' in this) {return this.processingOptions;} } + setSubsequentAuthInformation(p_subsequentAuthInformation) { this.subsequentAuthInformation = p_subsequentAuthInformation; } + getSubsequentAuthInformation() { if('subsequentAuthInformation' in this) {return this.subsequentAuthInformation;} } + setOtherTax(p_otherTax) { this.otherTax = p_otherTax; } + getOtherTax() { if('otherTax' in this) {return this.otherTax;} } + setShipFrom(p_shipFrom) { this.shipFrom = p_shipFrom; } + getShipFrom() { if('shipFrom' in this) {return this.shipFrom;} } + setAuthorizationIndicatorType(p_authorizationIndicatorType) { this.authorizationIndicatorType = p_authorizationIndicatorType; } + getAuthorizationIndicatorType() { if('authorizationIndicatorType' in this) {return this.authorizationIndicatorType;} } } module.exports.TransactionRequestType = TransactionRequestType; class TransactionResponse { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse'); logger.debug('Enter TransactionResponse constructor'); if(arguments.length == 1) { if(('responseCode' in obj) && (obj.responseCode != null)) { this.setResponseCode(obj.responseCode); } @@ -3083,6 +3760,8 @@ class TransactionResponse { if(('secureAcceptance' in obj) && (obj.secureAcceptance != null)) { this.setSecureAcceptance(new TransactionResponse.SecureAcceptance(obj.secureAcceptance)); } if(('emvResponse' in obj) && (obj.emvResponse != null)) { this.setEmvResponse(new TransactionResponse.EmvResponse(obj.emvResponse)); } if(('transHashSha2' in obj) && (obj.transHashSha2 != null)) { this.setTransHashSha2(obj.transHashSha2); } + if(('profile' in obj) && (obj.profile != null)) { this.setProfile(new CustomerProfileIdType(obj.profile)); } + if(('networkTransId' in obj) && (obj.networkTransId != null)) { this.setNetworkTransId(obj.networkTransId); } } else { this.setResponseCode(null); @@ -3108,6 +3787,8 @@ class TransactionResponse { this.setSecureAcceptance(null); this.setEmvResponse(null); this.setTransHashSha2(null); + this.setProfile(null); + this.setNetworkTransId(null); } logger.debug('Exit TransactionResponse constructor'); } @@ -3158,12 +3839,17 @@ class TransactionResponse { getEmvResponse() { if('emvResponse' in this) {return this.emvResponse;} } setTransHashSha2(p_transHashSha2) { this.transHashSha2 = p_transHashSha2; } getTransHashSha2() { if('transHashSha2' in this) {return this.transHashSha2;} } + setProfile(p_profile) { this.profile = p_profile; } + getProfile() { if('profile' in this) {return this.profile;} } + setNetworkTransId(p_networkTransId) { this.networkTransId = p_networkTransId; } + getNetworkTransId() { if('networkTransId' in this) {return this.networkTransId;} } } module.exports.TransactionResponse = TransactionResponse; class TransactionSummaryType { constructor(obj) { + var logger = Logger.getLogger('TransactionSummaryType'); logger.debug('Enter TransactionSummaryType constructor'); if(arguments.length == 1) { if(('transId' in obj) && (obj.transId != null)) { this.setTransId(obj.transId); } @@ -3182,6 +3868,7 @@ class TransactionSummaryType { if(('subscription' in obj) && (obj.subscription != null)) { this.setSubscription(new SubscriptionPaymentType(obj.subscription)); } if(('hasReturnedItems' in obj) && (obj.hasReturnedItems != null)) { this.setHasReturnedItems(obj.hasReturnedItems); } if(('fraudInformation' in obj) && (obj.fraudInformation != null)) { this.setFraudInformation(new FraudInformationType(obj.fraudInformation)); } + if(('profile' in obj) && (obj.profile != null)) { this.setProfile(new CustomerProfileIdType(obj.profile)); } } else { this.setTransId(null); @@ -3200,6 +3887,7 @@ class TransactionSummaryType { this.setSubscription(null); this.setHasReturnedItems(null); this.setFraudInformation(null); + this.setProfile(null); } logger.debug('Exit TransactionSummaryType constructor'); } @@ -3236,12 +3924,15 @@ class TransactionSummaryType { getHasReturnedItems() { if('hasReturnedItems' in this) {return this.hasReturnedItems;} } setFraudInformation(p_fraudInformation) { this.fraudInformation = p_fraudInformation; } getFraudInformation() { if('fraudInformation' in this) {return this.fraudInformation;} } + setProfile(p_profile) { this.profile = p_profile; } + getProfile() { if('profile' in this) {return this.profile;} } } module.exports.TransactionSummaryType = TransactionSummaryType; class UserField { constructor(obj) { + var logger = Logger.getLogger('UserField'); logger.debug('Enter UserField constructor'); if(arguments.length == 1) { if(('name' in obj) && (obj.name != null)) { this.setName(obj.name); } @@ -3264,16 +3955,19 @@ module.exports.UserField = UserField; class WebCheckOutDataType { constructor(obj) { + var logger = Logger.getLogger('WebCheckOutDataType'); logger.debug('Enter WebCheckOutDataType constructor'); if(arguments.length == 1) { if(('type' in obj) && (obj.type != null)) { this.setType(obj.type); } if(('id' in obj) && (obj.id != null)) { this.setId(obj.id); } - if(('token' in obj) && (obj.token != null)) { this.setToken(new WebCheckOutDataType.Token(obj.token)); } + if(('token' in obj) && (obj.token != null)) { this.setToken(new WebCheckOutDataTypeToken(obj.token)); } + if(('bankToken' in obj) && (obj.bankToken != null)) { this.setBankToken(new BankAccountType(obj.bankToken)); } } else { this.setType(null); this.setId(null); this.setToken(null); + this.setBankToken(null); } logger.debug('Exit WebCheckOutDataType constructor'); } @@ -3284,12 +3978,50 @@ class WebCheckOutDataType { getId() { if('id' in this) {return this.id;} } setToken(p_token) { this.token = p_token; } getToken() { if('token' in this) {return this.token;} } + setBankToken(p_bankToken) { this.bankToken = p_bankToken; } + getBankToken() { if('bankToken' in this) {return this.bankToken;} } } module.exports.WebCheckOutDataType = WebCheckOutDataType; +class WebCheckOutDataTypeToken { + constructor(obj) { + var logger = Logger.getLogger('WebCheckOutDataTypeToken'); + logger.debug('Enter WebCheckOutDataTypeToken constructor'); + if(arguments.length == 1) { + if(('cardNumber' in obj) && (obj.cardNumber != null)) { this.setCardNumber(obj.cardNumber); } + if(('expirationDate' in obj) && (obj.expirationDate != null)) { this.setExpirationDate(obj.expirationDate); } + if(('cardCode' in obj) && (obj.cardCode != null)) { this.setCardCode(obj.cardCode); } + if(('zip' in obj) && (obj.zip != null)) { this.setZip(obj.zip); } + if(('fullName' in obj) && (obj.fullName != null)) { this.setFullName(obj.fullName); } + } + else { + this.setCardNumber(null); + this.setExpirationDate(null); + this.setCardCode(null); + this.setZip(null); + this.setFullName(null); + } + logger.debug('Exit WebCheckOutDataTypeToken constructor'); + } + + setCardNumber(p_cardNumber) { this.cardNumber = p_cardNumber; } + getCardNumber() { if('cardNumber' in this) {return this.cardNumber;} } + setExpirationDate(p_expirationDate) { this.expirationDate = p_expirationDate; } + getExpirationDate() { if('expirationDate' in this) {return this.expirationDate;} } + setCardCode(p_cardCode) { this.cardCode = p_cardCode; } + getCardCode() { if('cardCode' in this) {return this.cardCode;} } + setZip(p_zip) { this.zip = p_zip; } + getZip() { if('zip' in this) {return this.zip;} } + setFullName(p_fullName) { this.fullName = p_fullName; } + getFullName() { if('fullName' in this) {return this.fullName;} } +} + +module.exports.WebCheckOutDataTypeToken = WebCheckOutDataTypeToken; + KeyManagementScheme.DUKPT = class { constructor(obj) { + var logger = Logger.getLogger('KeyManagementScheme.DUKPT'); logger.debug('Enter KeyManagementScheme.DUKPT constructor'); if(arguments.length == 1) { if(('Operation' in obj) && (obj.Operation != null)) { this.setOperation(obj.Operation); } @@ -3320,6 +4052,7 @@ module.exports.KeyManagementScheme.DUKPT = KeyManagementScheme.DUKPT; MessagesType.Message = class { constructor(obj) { + var logger = Logger.getLogger('MessagesType.Message'); logger.debug('Enter MessagesType.Message constructor'); if(arguments.length == 1) { if(('code' in obj) && (obj.code != null)) { this.setCode(obj.code); } @@ -3342,6 +4075,7 @@ module.exports.MessagesType.Message = MessagesType.Message; PaymentScheduleType.Interval = class { constructor(obj) { + var logger = Logger.getLogger('PaymentScheduleType.Interval'); logger.debug('Enter PaymentScheduleType.Interval constructor'); if(arguments.length == 1) { if(('length' in obj) && (obj.length != null)) { this.setLength(obj.length); } @@ -3364,6 +4098,7 @@ module.exports.PaymentScheduleType.Interval = PaymentScheduleType.Interval; TransactionDetailsType.EmvDetails = class { constructor(obj) { + var logger = Logger.getLogger('TransactionDetailsType.EmvDetails'); logger.debug('Enter TransactionDetailsType.EmvDetails constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -3386,6 +4121,7 @@ module.exports.TransactionDetailsType.EmvDetails = TransactionDetailsType.EmvDet TransactionRequestType.UserFields = class { constructor(obj) { + var logger = Logger.getLogger('TransactionRequestType.UserFields'); logger.debug('Enter TransactionRequestType.UserFields constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -3408,6 +4144,7 @@ module.exports.TransactionRequestType.UserFields = TransactionRequestType.UserFi TransactionResponse.EmvResponse = class { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse.EmvResponse'); logger.debug('Enter TransactionResponse.EmvResponse constructor'); if(arguments.length == 1) { if(('tlvData' in obj) && (obj.tlvData != null)) { this.setTlvData(obj.tlvData); } @@ -3430,6 +4167,7 @@ module.exports.TransactionResponse.EmvResponse = TransactionResponse.EmvResponse TransactionResponse.Errors = class { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse.Errors'); logger.debug('Enter TransactionResponse.Errors constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -3452,6 +4190,7 @@ module.exports.TransactionResponse.Errors = TransactionResponse.Errors; TransactionResponse.Messages = class { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse.Messages'); logger.debug('Enter TransactionResponse.Messages constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -3474,6 +4213,7 @@ module.exports.TransactionResponse.Messages = TransactionResponse.Messages; TransactionResponse.PrePaidCard = class { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse.PrePaidCard'); logger.debug('Enter TransactionResponse.PrePaidCard constructor'); if(arguments.length == 1) { if(('requestedAmount' in obj) && (obj.requestedAmount != null)) { this.setRequestedAmount(obj.requestedAmount); } @@ -3500,6 +4240,7 @@ module.exports.TransactionResponse.PrePaidCard = TransactionResponse.PrePaidCard TransactionResponse.SecureAcceptance = class { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse.SecureAcceptance'); logger.debug('Enter TransactionResponse.SecureAcceptance constructor'); if(arguments.length == 1) { if(('SecureAcceptanceUrl' in obj) && (obj.SecureAcceptanceUrl != null)) { this.setSecureAcceptanceUrl(obj.SecureAcceptanceUrl); } @@ -3526,6 +4267,7 @@ module.exports.TransactionResponse.SecureAcceptance = TransactionResponse.Secure TransactionResponse.SplitTenderPayments = class { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse.SplitTenderPayments'); logger.debug('Enter TransactionResponse.SplitTenderPayments constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -3548,6 +4290,7 @@ module.exports.TransactionResponse.SplitTenderPayments = TransactionResponse.Spl TransactionResponse.UserFields = class { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse.UserFields'); logger.debug('Enter TransactionResponse.UserFields constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -3568,42 +4311,9 @@ TransactionResponse.UserFields = class { module.exports.TransactionResponse.UserFields = TransactionResponse.UserFields; -WebCheckOutDataType.Token = class { - constructor(obj) { - logger.debug('Enter WebCheckOutDataType.Token constructor'); - if(arguments.length == 1) { - if(('cardNumber' in obj) && (obj.cardNumber != null)) { this.setCardNumber(obj.cardNumber); } - if(('expirationDate' in obj) && (obj.expirationDate != null)) { this.setExpirationDate(obj.expirationDate); } - if(('cardCode' in obj) && (obj.cardCode != null)) { this.setCardCode(obj.cardCode); } - if(('zip' in obj) && (obj.zip != null)) { this.setZip(obj.zip); } - if(('fullName' in obj) && (obj.fullName != null)) { this.setFullName(obj.fullName); } - } - else { - this.setCardNumber(null); - this.setExpirationDate(null); - this.setCardCode(null); - this.setZip(null); - this.setFullName(null); - } - logger.debug('Exit WebCheckOutDataType.Token constructor'); - } - - setCardNumber(p_cardNumber) { this.cardNumber = p_cardNumber; } - getCardNumber() { if('cardNumber' in this) {return this.cardNumber;} } - setExpirationDate(p_expirationDate) { this.expirationDate = p_expirationDate; } - getExpirationDate() { if('expirationDate' in this) {return this.expirationDate;} } - setCardCode(p_cardCode) { this.cardCode = p_cardCode; } - getCardCode() { if('cardCode' in this) {return this.cardCode;} } - setZip(p_zip) { this.zip = p_zip; } - getZip() { if('zip' in this) {return this.zip;} } - setFullName(p_fullName) { this.fullName = p_fullName; } - getFullName() { if('fullName' in this) {return this.fullName;} } -}; - -module.exports.WebCheckOutDataType.Token = WebCheckOutDataType.Token; - KeyManagementScheme.DUKPT.DeviceInfo = class { constructor(obj) { + var logger = Logger.getLogger('KeyManagementScheme.DUKPT.DeviceInfo'); logger.debug('Enter KeyManagementScheme.DUKPT.DeviceInfo constructor'); if(arguments.length == 1) { if(('Description' in obj) && (obj.Description != null)) { this.setDescription(obj.Description); } @@ -3622,6 +4332,7 @@ module.exports.KeyManagementScheme.DUKPT.DeviceInfo = KeyManagementScheme.DUKPT. KeyManagementScheme.DUKPT.EncryptedData = class { constructor(obj) { + var logger = Logger.getLogger('KeyManagementScheme.DUKPT.EncryptedData'); logger.debug('Enter KeyManagementScheme.DUKPT.EncryptedData constructor'); if(arguments.length == 1) { if(('Value' in obj) && (obj.Value != null)) { this.setValue(obj.Value); } @@ -3640,6 +4351,7 @@ module.exports.KeyManagementScheme.DUKPT.EncryptedData = KeyManagementScheme.DUK KeyManagementScheme.DUKPT.Mode = class { constructor(obj) { + var logger = Logger.getLogger('KeyManagementScheme.DUKPT.Mode'); logger.debug('Enter KeyManagementScheme.DUKPT.Mode constructor'); if(arguments.length == 1) { if(('PIN' in obj) && (obj.PIN != null)) { this.setPIN(obj.PIN); } @@ -3662,6 +4374,7 @@ module.exports.KeyManagementScheme.DUKPT.Mode = KeyManagementScheme.DUKPT.Mode; TransactionDetailsType.EmvDetails.Tag = class { constructor(obj) { + var logger = Logger.getLogger('TransactionDetailsType.EmvDetails.Tag'); logger.debug('Enter TransactionDetailsType.EmvDetails.Tag constructor'); if(arguments.length == 1) { if(('tagId' in obj) && (obj.tagId != null)) { this.setTagId(obj.tagId); } @@ -3684,6 +4397,7 @@ module.exports.TransactionDetailsType.EmvDetails.Tag = TransactionDetailsType.Em TransactionResponse.EmvResponse.Tags = class { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse.EmvResponse.Tags'); logger.debug('Enter TransactionResponse.EmvResponse.Tags constructor'); if(arguments.length == 1) { if((obj != undefined) && (obj != null)) { @@ -3706,6 +4420,7 @@ module.exports.TransactionResponse.EmvResponse.Tags = TransactionResponse.EmvRes TransactionResponse.Errors.Error = class { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse.Errors.Error'); logger.debug('Enter TransactionResponse.Errors.Error constructor'); if(arguments.length == 1) { if(('errorCode' in obj) && (obj.errorCode != null)) { this.setErrorCode(obj.errorCode); } @@ -3728,6 +4443,7 @@ module.exports.TransactionResponse.Errors.Error = TransactionResponse.Errors.Err TransactionResponse.Messages.Message = class { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse.Messages.Message'); logger.debug('Enter TransactionResponse.Messages.Message constructor'); if(arguments.length == 1) { if(('code' in obj) && (obj.code != null)) { this.setCode(obj.code); } @@ -3750,6 +4466,7 @@ module.exports.TransactionResponse.Messages.Message = TransactionResponse.Messag TransactionResponse.SplitTenderPayments.SplitTenderPayment = class { constructor(obj) { + var logger = Logger.getLogger('TransactionResponse.SplitTenderPayments.SplitTenderPayment'); logger.debug('Enter TransactionResponse.SplitTenderPayments.SplitTenderPayment constructor'); if(arguments.length == 1) { if(('transId' in obj) && (obj.transId != null)) { this.setTransId(obj.transId); } @@ -3800,6 +4517,7 @@ module.exports.TransactionResponse.SplitTenderPayments.SplitTenderPayment = Tran class ARBCancelSubscriptionRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('ARBCancelSubscriptionRequest'); logger.debug('Enter ARBCancelSubscriptionRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBCancelSubscriptionRequest' : this }; @@ -3808,6 +4526,7 @@ class ARBCancelSubscriptionRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('ARBCancelSubscriptionRequest'); logger.debug('Enter ARBCancelSubscriptionRequest constructor'); if(arguments.length == 1) { super(obj); @@ -3828,6 +4547,7 @@ module.exports.ARBCancelSubscriptionRequest = ARBCancelSubscriptionRequest; class ARBCancelSubscriptionResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('ARBCancelSubscriptionResponse'); logger.debug('Enter ARBCancelSubscriptionResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBCancelSubscriptionResponse' : this }; @@ -3843,6 +4563,7 @@ module.exports.ARBCancelSubscriptionResponse = ARBCancelSubscriptionResponse; class ARBCreateSubscriptionRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('ARBCreateSubscriptionRequest'); logger.debug('Enter ARBCreateSubscriptionRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBCreateSubscriptionRequest' : this }; @@ -3851,6 +4572,7 @@ class ARBCreateSubscriptionRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('ARBCreateSubscriptionRequest'); logger.debug('Enter ARBCreateSubscriptionRequest constructor'); if(arguments.length == 1) { super(obj); @@ -3871,6 +4593,7 @@ module.exports.ARBCreateSubscriptionRequest = ARBCreateSubscriptionRequest; class ARBCreateSubscriptionResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('ARBCreateSubscriptionResponse'); logger.debug('Enter ARBCreateSubscriptionResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBCreateSubscriptionResponse' : this }; @@ -3879,6 +4602,7 @@ class ARBCreateSubscriptionResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('ARBCreateSubscriptionResponse'); logger.debug('Enter ARBCreateSubscriptionResponse constructor'); if(arguments.length == 1) { super(obj); @@ -3903,6 +4627,7 @@ module.exports.ARBCreateSubscriptionResponse = ARBCreateSubscriptionResponse; class ARBGetSubscriptionListRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('ARBGetSubscriptionListRequest'); logger.debug('Enter ARBGetSubscriptionListRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBGetSubscriptionListRequest' : this }; @@ -3911,6 +4636,7 @@ class ARBGetSubscriptionListRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('ARBGetSubscriptionListRequest'); logger.debug('Enter ARBGetSubscriptionListRequest constructor'); if(arguments.length == 1) { super(obj); @@ -3939,6 +4665,7 @@ module.exports.ARBGetSubscriptionListRequest = ARBGetSubscriptionListRequest; class ARBGetSubscriptionListResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('ARBGetSubscriptionListResponse'); logger.debug('Enter ARBGetSubscriptionListResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBGetSubscriptionListResponse' : this }; @@ -3947,6 +4674,7 @@ class ARBGetSubscriptionListResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('ARBGetSubscriptionListResponse'); logger.debug('Enter ARBGetSubscriptionListResponse constructor'); if(arguments.length == 1) { super(obj); @@ -3971,6 +4699,7 @@ module.exports.ARBGetSubscriptionListResponse = ARBGetSubscriptionListResponse; class ARBGetSubscriptionRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('ARBGetSubscriptionRequest'); logger.debug('Enter ARBGetSubscriptionRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBGetSubscriptionRequest' : this }; @@ -3979,26 +4708,32 @@ class ARBGetSubscriptionRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('ARBGetSubscriptionRequest'); logger.debug('Enter ARBGetSubscriptionRequest constructor'); if(arguments.length == 1) { super(obj); if(('subscriptionId' in obj) && (obj.subscriptionId != null)) { this.setSubscriptionId(obj.subscriptionId); } + if(('includeTransactions' in obj) && (obj.includeTransactions != null)) { this.setIncludeTransactions(obj.includeTransactions); } } else { super(); this.setSubscriptionId(null); + this.setIncludeTransactions(null); } logger.debug('Exit ARBGetSubscriptionRequest constructor'); } setSubscriptionId(p_subscriptionId) { this.subscriptionId = p_subscriptionId; } getSubscriptionId() { if('subscriptionId' in this) {return this.subscriptionId;} } + setIncludeTransactions(p_includeTransactions) { this.includeTransactions = p_includeTransactions; } + getIncludeTransactions() { if('includeTransactions' in this) {return this.includeTransactions;} } } module.exports.ARBGetSubscriptionRequest = ARBGetSubscriptionRequest; class ARBGetSubscriptionResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('ARBGetSubscriptionResponse'); logger.debug('Enter ARBGetSubscriptionResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBGetSubscriptionResponse' : this }; @@ -4007,6 +4742,7 @@ class ARBGetSubscriptionResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('ARBGetSubscriptionResponse'); logger.debug('Enter ARBGetSubscriptionResponse constructor'); if(arguments.length == 1) { super(obj); @@ -4027,6 +4763,7 @@ module.exports.ARBGetSubscriptionResponse = ARBGetSubscriptionResponse; class ARBGetSubscriptionStatusRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('ARBGetSubscriptionStatusRequest'); logger.debug('Enter ARBGetSubscriptionStatusRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBGetSubscriptionStatusRequest' : this }; @@ -4035,6 +4772,7 @@ class ARBGetSubscriptionStatusRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('ARBGetSubscriptionStatusRequest'); logger.debug('Enter ARBGetSubscriptionStatusRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4055,6 +4793,7 @@ module.exports.ARBGetSubscriptionStatusRequest = ARBGetSubscriptionStatusRequest class ARBGetSubscriptionStatusResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('ARBGetSubscriptionStatusResponse'); logger.debug('Enter ARBGetSubscriptionStatusResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBGetSubscriptionStatusResponse' : this }; @@ -4063,6 +4802,7 @@ class ARBGetSubscriptionStatusResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('ARBGetSubscriptionStatusResponse'); logger.debug('Enter ARBGetSubscriptionStatusResponse constructor'); if(arguments.length == 1) { super(obj); @@ -4083,6 +4823,7 @@ module.exports.ARBGetSubscriptionStatusResponse = ARBGetSubscriptionStatusRespon class ARBUpdateSubscriptionRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('ARBUpdateSubscriptionRequest'); logger.debug('Enter ARBUpdateSubscriptionRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBUpdateSubscriptionRequest' : this }; @@ -4091,6 +4832,7 @@ class ARBUpdateSubscriptionRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('ARBUpdateSubscriptionRequest'); logger.debug('Enter ARBUpdateSubscriptionRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4115,6 +4857,7 @@ module.exports.ARBUpdateSubscriptionRequest = ARBUpdateSubscriptionRequest; class ARBUpdateSubscriptionResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('ARBUpdateSubscriptionResponse'); logger.debug('Enter ARBUpdateSubscriptionResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'ARBUpdateSubscriptionResponse' : this }; @@ -4123,6 +4866,7 @@ class ARBUpdateSubscriptionResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('ARBUpdateSubscriptionResponse'); logger.debug('Enter ARBUpdateSubscriptionResponse constructor'); if(arguments.length == 1) { super(obj); @@ -4143,6 +4887,7 @@ module.exports.ARBUpdateSubscriptionResponse = ARBUpdateSubscriptionResponse; class AuDeleteType extends AuDetailsType { constructor(obj) { + var logger = Logger.getLogger('AuDeleteType'); logger.debug('Enter AuDeleteType constructor'); if(arguments.length == 1) { super(obj); @@ -4163,6 +4908,7 @@ module.exports.AuDeleteType = AuDeleteType; class AuUpdateType extends AuDetailsType { constructor(obj) { + var logger = Logger.getLogger('AuUpdateType'); logger.debug('Enter AuUpdateType constructor'); if(arguments.length == 1) { super(obj); @@ -4187,6 +4933,7 @@ module.exports.AuUpdateType = AuUpdateType; class AuthenticateTestRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('AuthenticateTestRequest'); logger.debug('Enter AuthenticateTestRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'authenticateTestRequest' : this }; @@ -4202,6 +4949,7 @@ module.exports.AuthenticateTestRequest = AuthenticateTestRequest; class AuthenticateTestResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('AuthenticateTestResponse'); logger.debug('Enter AuthenticateTestResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'authenticateTestResponse' : this }; @@ -4217,6 +4965,7 @@ module.exports.AuthenticateTestResponse = AuthenticateTestResponse; class CreateCustomerPaymentProfileRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('CreateCustomerPaymentProfileRequest'); logger.debug('Enter CreateCustomerPaymentProfileRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'createCustomerPaymentProfileRequest' : this }; @@ -4225,6 +4974,7 @@ class CreateCustomerPaymentProfileRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('CreateCustomerPaymentProfileRequest'); logger.debug('Enter CreateCustomerPaymentProfileRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4253,6 +5003,7 @@ module.exports.CreateCustomerPaymentProfileRequest = CreateCustomerPaymentProfil class CreateCustomerPaymentProfileResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('CreateCustomerPaymentProfileResponse'); logger.debug('Enter CreateCustomerPaymentProfileResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'createCustomerPaymentProfileResponse' : this }; @@ -4261,6 +5012,7 @@ class CreateCustomerPaymentProfileResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('CreateCustomerPaymentProfileResponse'); logger.debug('Enter CreateCustomerPaymentProfileResponse constructor'); if(arguments.length == 1) { super(obj); @@ -4289,6 +5041,7 @@ module.exports.CreateCustomerPaymentProfileResponse = CreateCustomerPaymentProfi class CreateCustomerProfileFromTransactionRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('CreateCustomerProfileFromTransactionRequest'); logger.debug('Enter CreateCustomerProfileFromTransactionRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'createCustomerProfileFromTransactionRequest' : this }; @@ -4297,6 +5050,7 @@ class CreateCustomerProfileFromTransactionRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('CreateCustomerProfileFromTransactionRequest'); logger.debug('Enter CreateCustomerProfileFromTransactionRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4305,6 +5059,7 @@ class CreateCustomerProfileFromTransactionRequest extends ANetApiRequest { if(('customerProfileId' in obj) && (obj.customerProfileId != null)) { this.setCustomerProfileId(obj.customerProfileId); } if(('defaultPaymentProfile' in obj) && (obj.defaultPaymentProfile != null)) { this.setDefaultPaymentProfile(obj.defaultPaymentProfile); } if(('defaultShippingAddress' in obj) && (obj.defaultShippingAddress != null)) { this.setDefaultShippingAddress(obj.defaultShippingAddress); } + if(('profileType' in obj) && (obj.profileType != null)) { this.setProfileType(obj.profileType); } } else { super(); @@ -4313,6 +5068,7 @@ class CreateCustomerProfileFromTransactionRequest extends ANetApiRequest { this.setCustomerProfileId(null); this.setDefaultPaymentProfile(null); this.setDefaultShippingAddress(null); + this.setProfileType(null); } logger.debug('Exit CreateCustomerProfileFromTransactionRequest constructor'); } @@ -4327,12 +5083,15 @@ class CreateCustomerProfileFromTransactionRequest extends ANetApiRequest { getDefaultPaymentProfile() { if('defaultPaymentProfile' in this) {return this.defaultPaymentProfile;} } setDefaultShippingAddress(p_defaultShippingAddress) { this.defaultShippingAddress = p_defaultShippingAddress; } getDefaultShippingAddress() { if('defaultShippingAddress' in this) {return this.defaultShippingAddress;} } + setProfileType(p_profileType) { this.profileType = p_profileType; } + getProfileType() { if('profileType' in this) {return this.profileType;} } } module.exports.CreateCustomerProfileFromTransactionRequest = CreateCustomerProfileFromTransactionRequest; class CreateCustomerProfileRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('CreateCustomerProfileRequest'); logger.debug('Enter CreateCustomerProfileRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'createCustomerProfileRequest' : this }; @@ -4341,6 +5100,7 @@ class CreateCustomerProfileRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('CreateCustomerProfileRequest'); logger.debug('Enter CreateCustomerProfileRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4365,6 +5125,7 @@ module.exports.CreateCustomerProfileRequest = CreateCustomerProfileRequest; class CreateCustomerProfileResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('CreateCustomerProfileResponse'); logger.debug('Enter CreateCustomerProfileResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'createCustomerProfileResponse' : this }; @@ -4373,6 +5134,7 @@ class CreateCustomerProfileResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('CreateCustomerProfileResponse'); logger.debug('Enter CreateCustomerProfileResponse constructor'); if(arguments.length == 1) { super(obj); @@ -4405,6 +5167,7 @@ module.exports.CreateCustomerProfileResponse = CreateCustomerProfileResponse; class CreateCustomerProfileTransactionRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('CreateCustomerProfileTransactionRequest'); logger.debug('Enter CreateCustomerProfileTransactionRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'createCustomerProfileTransactionRequest' : this }; @@ -4413,6 +5176,7 @@ class CreateCustomerProfileTransactionRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('CreateCustomerProfileTransactionRequest'); logger.debug('Enter CreateCustomerProfileTransactionRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4437,6 +5201,7 @@ module.exports.CreateCustomerProfileTransactionRequest = CreateCustomerProfileTr class CreateCustomerProfileTransactionResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('CreateCustomerProfileTransactionResponse'); logger.debug('Enter CreateCustomerProfileTransactionResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'createCustomerProfileTransactionResponse' : this }; @@ -4445,6 +5210,7 @@ class CreateCustomerProfileTransactionResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('CreateCustomerProfileTransactionResponse'); logger.debug('Enter CreateCustomerProfileTransactionResponse constructor'); if(arguments.length == 1) { super(obj); @@ -4469,6 +5235,7 @@ module.exports.CreateCustomerProfileTransactionResponse = CreateCustomerProfileT class CreateCustomerShippingAddressRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('CreateCustomerShippingAddressRequest'); logger.debug('Enter CreateCustomerShippingAddressRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'createCustomerShippingAddressRequest' : this }; @@ -4477,6 +5244,7 @@ class CreateCustomerShippingAddressRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('CreateCustomerShippingAddressRequest'); logger.debug('Enter CreateCustomerShippingAddressRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4505,6 +5273,7 @@ module.exports.CreateCustomerShippingAddressRequest = CreateCustomerShippingAddr class CreateCustomerShippingAddressResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('CreateCustomerShippingAddressResponse'); logger.debug('Enter CreateCustomerShippingAddressResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'createCustomerShippingAddressResponse' : this }; @@ -4513,6 +5282,7 @@ class CreateCustomerShippingAddressResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('CreateCustomerShippingAddressResponse'); logger.debug('Enter CreateCustomerShippingAddressResponse constructor'); if(arguments.length == 1) { super(obj); @@ -4537,6 +5307,7 @@ module.exports.CreateCustomerShippingAddressResponse = CreateCustomerShippingAdd class CreateTransactionRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('CreateTransactionRequest'); logger.debug('Enter CreateTransactionRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'createTransactionRequest' : this }; @@ -4545,6 +5316,7 @@ class CreateTransactionRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('CreateTransactionRequest'); logger.debug('Enter CreateTransactionRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4565,6 +5337,7 @@ module.exports.CreateTransactionRequest = CreateTransactionRequest; class CreateTransactionResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('CreateTransactionResponse'); logger.debug('Enter CreateTransactionResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'createTransactionResponse' : this }; @@ -4573,6 +5346,7 @@ class CreateTransactionResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('CreateTransactionResponse'); logger.debug('Enter CreateTransactionResponse constructor'); if(arguments.length == 1) { super(obj); @@ -4597,18 +5371,25 @@ module.exports.CreateTransactionResponse = CreateTransactionResponse; class CreditCardType extends CreditCardSimpleType { constructor(obj) { + var logger = Logger.getLogger('CreditCardType'); logger.debug('Enter CreditCardType constructor'); if(arguments.length == 1) { super(obj); if(('cardCode' in obj) && (obj.cardCode != null)) { this.setCardCode(obj.cardCode); } if(('isPaymentToken' in obj) && (obj.isPaymentToken != null)) { this.setIsPaymentToken(obj.isPaymentToken); } if(('cryptogram' in obj) && (obj.cryptogram != null)) { this.setCryptogram(obj.cryptogram); } + if(('tokenRequestorName' in obj) && (obj.tokenRequestorName != null)) { this.setTokenRequestorName(obj.tokenRequestorName); } + if(('tokenRequestorId' in obj) && (obj.tokenRequestorId != null)) { this.setTokenRequestorId(obj.tokenRequestorId); } + if(('tokenRequestorEci' in obj) && (obj.tokenRequestorEci != null)) { this.setTokenRequestorEci(obj.tokenRequestorEci); } } else { super(); this.setCardCode(null); this.setIsPaymentToken(null); this.setCryptogram(null); + this.setTokenRequestorName(null); + this.setTokenRequestorId(null); + this.setTokenRequestorEci(null); } logger.debug('Exit CreditCardType constructor'); } @@ -4619,12 +5400,19 @@ class CreditCardType extends CreditCardSimpleType { getIsPaymentToken() { if('isPaymentToken' in this) {return this.isPaymentToken;} } setCryptogram(p_cryptogram) { this.cryptogram = p_cryptogram; } getCryptogram() { if('cryptogram' in this) {return this.cryptogram;} } + setTokenRequestorName(p_tokenRequestorName) { this.tokenRequestorName = p_tokenRequestorName; } + getTokenRequestorName() { if('tokenRequestorName' in this) {return this.tokenRequestorName;} } + setTokenRequestorId(p_tokenRequestorId) { this.tokenRequestorId = p_tokenRequestorId; } + getTokenRequestorId() { if('tokenRequestorId' in this) {return this.tokenRequestorId;} } + setTokenRequestorEci(p_tokenRequestorEci) { this.tokenRequestorEci = p_tokenRequestorEci; } + getTokenRequestorEci() { if('tokenRequestorEci' in this) {return this.tokenRequestorEci;} } } module.exports.CreditCardType = CreditCardType; class CustomerAddressType extends NameAndAddressType { constructor(obj) { + var logger = Logger.getLogger('CustomerAddressType'); logger.debug('Enter CustomerAddressType constructor'); if(arguments.length == 1) { super(obj); @@ -4653,6 +5441,7 @@ module.exports.CustomerAddressType = CustomerAddressType; class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType { constructor(obj) { + var logger = Logger.getLogger('CustomerPaymentProfileMaskedType'); logger.debug('Enter CustomerPaymentProfileMaskedType constructor'); if(arguments.length == 1) { super(obj); @@ -4663,6 +5452,9 @@ class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType { if(('driversLicense' in obj) && (obj.driversLicense != null)) { this.setDriversLicense(new DriversLicenseMaskedType(obj.driversLicense)); } if(('taxId' in obj) && (obj.taxId != null)) { this.setTaxId(obj.taxId); } if(('subscriptionIds' in obj) && (obj.subscriptionIds != null)) { this.setSubscriptionIds(new SubscriptionIdList(obj.subscriptionIds)); } + if(('originalNetworkTransId' in obj) && (obj.originalNetworkTransId != null)) { this.setOriginalNetworkTransId(obj.originalNetworkTransId); } + if(('originalAuthAmount' in obj) && (obj.originalAuthAmount != null)) { this.setOriginalAuthAmount(obj.originalAuthAmount); } + if(('excludeFromAccountUpdater' in obj) && (obj.excludeFromAccountUpdater != null)) { this.setExcludeFromAccountUpdater(obj.excludeFromAccountUpdater); } } else { super(); @@ -4673,6 +5465,9 @@ class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType { this.setDriversLicense(null); this.setTaxId(null); this.setSubscriptionIds(null); + this.setOriginalNetworkTransId(null); + this.setOriginalAuthAmount(null); + this.setExcludeFromAccountUpdater(null); } logger.debug('Exit CustomerPaymentProfileMaskedType constructor'); } @@ -4691,12 +5486,19 @@ class CustomerPaymentProfileMaskedType extends CustomerPaymentProfileBaseType { getTaxId() { if('taxId' in this) {return this.taxId;} } setSubscriptionIds(p_subscriptionIds) { this.subscriptionIds = p_subscriptionIds; } getSubscriptionIds() { if('subscriptionIds' in this) {return this.subscriptionIds;} } + setOriginalNetworkTransId(p_originalNetworkTransId) { this.originalNetworkTransId = p_originalNetworkTransId; } + getOriginalNetworkTransId() { if('originalNetworkTransId' in this) {return this.originalNetworkTransId;} } + setOriginalAuthAmount(p_originalAuthAmount) { this.originalAuthAmount = p_originalAuthAmount; } + getOriginalAuthAmount() { if('originalAuthAmount' in this) {return this.originalAuthAmount;} } + setExcludeFromAccountUpdater(p_excludeFromAccountUpdater) { this.excludeFromAccountUpdater = p_excludeFromAccountUpdater; } + getExcludeFromAccountUpdater() { if('excludeFromAccountUpdater' in this) {return this.excludeFromAccountUpdater;} } } module.exports.CustomerPaymentProfileMaskedType = CustomerPaymentProfileMaskedType; class CustomerPaymentProfileType extends CustomerPaymentProfileBaseType { constructor(obj) { + var logger = Logger.getLogger('CustomerPaymentProfileType'); logger.debug('Enter CustomerPaymentProfileType constructor'); if(arguments.length == 1) { super(obj); @@ -4704,6 +5506,8 @@ class CustomerPaymentProfileType extends CustomerPaymentProfileBaseType { if(('driversLicense' in obj) && (obj.driversLicense != null)) { this.setDriversLicense(new DriversLicenseType(obj.driversLicense)); } if(('taxId' in obj) && (obj.taxId != null)) { this.setTaxId(obj.taxId); } if(('defaultPaymentProfile' in obj) && (obj.defaultPaymentProfile != null)) { this.setDefaultPaymentProfile(obj.defaultPaymentProfile); } + if(('subsequentAuthInformation' in obj) && (obj.subsequentAuthInformation != null)) { this.setSubsequentAuthInformation(new SubsequentAuthInformation(obj.subsequentAuthInformation)); } + if(('excludeFromAccountUpdater' in obj) && (obj.excludeFromAccountUpdater != null)) { this.setExcludeFromAccountUpdater(obj.excludeFromAccountUpdater); } } else { super(); @@ -4711,6 +5515,8 @@ class CustomerPaymentProfileType extends CustomerPaymentProfileBaseType { this.setDriversLicense(null); this.setTaxId(null); this.setDefaultPaymentProfile(null); + this.setSubsequentAuthInformation(null); + this.setExcludeFromAccountUpdater(null); } logger.debug('Exit CustomerPaymentProfileType constructor'); } @@ -4723,12 +5529,17 @@ class CustomerPaymentProfileType extends CustomerPaymentProfileBaseType { getTaxId() { if('taxId' in this) {return this.taxId;} } setDefaultPaymentProfile(p_defaultPaymentProfile) { this.defaultPaymentProfile = p_defaultPaymentProfile; } getDefaultPaymentProfile() { if('defaultPaymentProfile' in this) {return this.defaultPaymentProfile;} } + setSubsequentAuthInformation(p_subsequentAuthInformation) { this.subsequentAuthInformation = p_subsequentAuthInformation; } + getSubsequentAuthInformation() { if('subsequentAuthInformation' in this) {return this.subsequentAuthInformation;} } + setExcludeFromAccountUpdater(p_excludeFromAccountUpdater) { this.excludeFromAccountUpdater = p_excludeFromAccountUpdater; } + getExcludeFromAccountUpdater() { if('excludeFromAccountUpdater' in this) {return this.excludeFromAccountUpdater;} } } module.exports.CustomerPaymentProfileType = CustomerPaymentProfileType; class CustomerProfileExType extends CustomerProfileBaseType { constructor(obj) { + var logger = Logger.getLogger('CustomerProfileExType'); logger.debug('Enter CustomerProfileExType constructor'); if(arguments.length == 1) { super(obj); @@ -4749,6 +5560,7 @@ module.exports.CustomerProfileExType = CustomerProfileExType; class CustomerProfileType extends CustomerProfileBaseType { constructor(obj) { + var logger = Logger.getLogger('CustomerProfileType'); logger.debug('Enter CustomerProfileType constructor'); if(arguments.length == 1) { super(obj); @@ -4762,11 +5574,13 @@ class CustomerProfileType extends CustomerProfileBaseType { obj.shipToList.forEach(function(item) {shipToListList.push(new CustomerAddressType(item));}); this.setShipToList(shipToListList); } + if(('profileType' in obj) && (obj.profileType != null)) { this.setProfileType(obj.profileType); } } else { super(); this.setPaymentProfiles(null); this.setShipToList(null); + this.setProfileType(null); } logger.debug('Exit CustomerProfileType constructor'); } @@ -4775,12 +5589,15 @@ class CustomerProfileType extends CustomerProfileBaseType { getPaymentProfiles() { if('paymentProfiles' in this) {return this.paymentProfiles;} } setShipToList(p_shipToList) { this.shipToList = p_shipToList; } getShipToList() { if('shipToList' in this) {return this.shipToList;} } + setProfileType(p_profileType) { this.profileType = p_profileType; } + getProfileType() { if('profileType' in this) {return this.profileType;} } } module.exports.CustomerProfileType = CustomerProfileType; class DecryptPaymentDataRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('DecryptPaymentDataRequest'); logger.debug('Enter DecryptPaymentDataRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'decryptPaymentDataRequest' : this }; @@ -4789,6 +5606,7 @@ class DecryptPaymentDataRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('DecryptPaymentDataRequest'); logger.debug('Enter DecryptPaymentDataRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4813,6 +5631,7 @@ module.exports.DecryptPaymentDataRequest = DecryptPaymentDataRequest; class DecryptPaymentDataResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('DecryptPaymentDataResponse'); logger.debug('Enter DecryptPaymentDataResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'decryptPaymentDataResponse' : this }; @@ -4821,6 +5640,7 @@ class DecryptPaymentDataResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('DecryptPaymentDataResponse'); logger.debug('Enter DecryptPaymentDataResponse constructor'); if(arguments.length == 1) { super(obj); @@ -4853,6 +5673,7 @@ module.exports.DecryptPaymentDataResponse = DecryptPaymentDataResponse; class DeleteCustomerPaymentProfileRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('DeleteCustomerPaymentProfileRequest'); logger.debug('Enter DeleteCustomerPaymentProfileRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'deleteCustomerPaymentProfileRequest' : this }; @@ -4861,6 +5682,7 @@ class DeleteCustomerPaymentProfileRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('DeleteCustomerPaymentProfileRequest'); logger.debug('Enter DeleteCustomerPaymentProfileRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4885,6 +5707,7 @@ module.exports.DeleteCustomerPaymentProfileRequest = DeleteCustomerPaymentProfil class DeleteCustomerPaymentProfileResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('DeleteCustomerPaymentProfileResponse'); logger.debug('Enter DeleteCustomerPaymentProfileResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'deleteCustomerPaymentProfileResponse' : this }; @@ -4900,6 +5723,7 @@ module.exports.DeleteCustomerPaymentProfileResponse = DeleteCustomerPaymentProfi class DeleteCustomerProfileRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('DeleteCustomerProfileRequest'); logger.debug('Enter DeleteCustomerProfileRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'deleteCustomerProfileRequest' : this }; @@ -4908,6 +5732,7 @@ class DeleteCustomerProfileRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('DeleteCustomerProfileRequest'); logger.debug('Enter DeleteCustomerProfileRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4928,6 +5753,7 @@ module.exports.DeleteCustomerProfileRequest = DeleteCustomerProfileRequest; class DeleteCustomerProfileResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('DeleteCustomerProfileResponse'); logger.debug('Enter DeleteCustomerProfileResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'deleteCustomerProfileResponse' : this }; @@ -4943,6 +5769,7 @@ module.exports.DeleteCustomerProfileResponse = DeleteCustomerProfileResponse; class DeleteCustomerShippingAddressRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('DeleteCustomerShippingAddressRequest'); logger.debug('Enter DeleteCustomerShippingAddressRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'deleteCustomerShippingAddressRequest' : this }; @@ -4951,6 +5778,7 @@ class DeleteCustomerShippingAddressRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('DeleteCustomerShippingAddressRequest'); logger.debug('Enter DeleteCustomerShippingAddressRequest constructor'); if(arguments.length == 1) { super(obj); @@ -4975,6 +5803,7 @@ module.exports.DeleteCustomerShippingAddressRequest = DeleteCustomerShippingAddr class DeleteCustomerShippingAddressResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('DeleteCustomerShippingAddressResponse'); logger.debug('Enter DeleteCustomerShippingAddressResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'deleteCustomerShippingAddressResponse' : this }; @@ -4990,6 +5819,7 @@ module.exports.DeleteCustomerShippingAddressResponse = DeleteCustomerShippingAdd class EmailSettingsType extends ArrayOfSetting { constructor(obj) { + var logger = Logger.getLogger('EmailSettingsType'); logger.debug('Enter EmailSettingsType constructor'); if(arguments.length == 1) { super(obj); @@ -5010,6 +5840,7 @@ module.exports.EmailSettingsType = EmailSettingsType; class GetAUJobDetailsRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetAUJobDetailsRequest'); logger.debug('Enter GetAUJobDetailsRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getAUJobDetailsRequest' : this }; @@ -5018,6 +5849,7 @@ class GetAUJobDetailsRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetAUJobDetailsRequest'); logger.debug('Enter GetAUJobDetailsRequest constructor'); if(arguments.length == 1) { super(obj); @@ -5046,6 +5878,7 @@ module.exports.GetAUJobDetailsRequest = GetAUJobDetailsRequest; class GetAUJobDetailsResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetAUJobDetailsResponse'); logger.debug('Enter GetAUJobDetailsResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getAUJobDetailsResponse' : this }; @@ -5054,6 +5887,7 @@ class GetAUJobDetailsResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetAUJobDetailsResponse'); logger.debug('Enter GetAUJobDetailsResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5078,6 +5912,7 @@ module.exports.GetAUJobDetailsResponse = GetAUJobDetailsResponse; class GetAUJobSummaryRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetAUJobSummaryRequest'); logger.debug('Enter GetAUJobSummaryRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getAUJobSummaryRequest' : this }; @@ -5086,6 +5921,7 @@ class GetAUJobSummaryRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetAUJobSummaryRequest'); logger.debug('Enter GetAUJobSummaryRequest constructor'); if(arguments.length == 1) { super(obj); @@ -5106,6 +5942,7 @@ module.exports.GetAUJobSummaryRequest = GetAUJobSummaryRequest; class GetAUJobSummaryResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetAUJobSummaryResponse'); logger.debug('Enter GetAUJobSummaryResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getAUJobSummaryResponse' : this }; @@ -5114,6 +5951,7 @@ class GetAUJobSummaryResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetAUJobSummaryResponse'); logger.debug('Enter GetAUJobSummaryResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5134,6 +5972,7 @@ module.exports.GetAUJobSummaryResponse = GetAUJobSummaryResponse; class GetBatchStatisticsRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetBatchStatisticsRequest'); logger.debug('Enter GetBatchStatisticsRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getBatchStatisticsRequest' : this }; @@ -5142,6 +5981,7 @@ class GetBatchStatisticsRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetBatchStatisticsRequest'); logger.debug('Enter GetBatchStatisticsRequest constructor'); if(arguments.length == 1) { super(obj); @@ -5162,6 +6002,7 @@ module.exports.GetBatchStatisticsRequest = GetBatchStatisticsRequest; class GetBatchStatisticsResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetBatchStatisticsResponse'); logger.debug('Enter GetBatchStatisticsResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getBatchStatisticsResponse' : this }; @@ -5170,6 +6011,7 @@ class GetBatchStatisticsResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetBatchStatisticsResponse'); logger.debug('Enter GetBatchStatisticsResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5190,6 +6032,7 @@ module.exports.GetBatchStatisticsResponse = GetBatchStatisticsResponse; class GetCustomerPaymentProfileListRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetCustomerPaymentProfileListRequest'); logger.debug('Enter GetCustomerPaymentProfileListRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getCustomerPaymentProfileListRequest' : this }; @@ -5198,6 +6041,7 @@ class GetCustomerPaymentProfileListRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetCustomerPaymentProfileListRequest'); logger.debug('Enter GetCustomerPaymentProfileListRequest constructor'); if(arguments.length == 1) { super(obj); @@ -5230,6 +6074,7 @@ module.exports.GetCustomerPaymentProfileListRequest = GetCustomerPaymentProfileL class GetCustomerPaymentProfileListResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetCustomerPaymentProfileListResponse'); logger.debug('Enter GetCustomerPaymentProfileListResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getCustomerPaymentProfileListResponse' : this }; @@ -5238,6 +6083,7 @@ class GetCustomerPaymentProfileListResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetCustomerPaymentProfileListResponse'); logger.debug('Enter GetCustomerPaymentProfileListResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5260,8 +6106,77 @@ class GetCustomerPaymentProfileListResponse extends ANetApiResponse { module.exports.GetCustomerPaymentProfileListResponse = GetCustomerPaymentProfileListResponse; +class GetCustomerPaymentProfileNonceRequest extends ANetApiRequest { + getJSON() { + var logger = Logger.getLogger('GetCustomerPaymentProfileNonceRequest'); + logger.debug('Enter GetCustomerPaymentProfileNonceRequest getJSON'); + utils.delete_null_properties(this, true); + var obj = { 'getCustomerPaymentProfileNonceRequest' : this }; + logger.debug('Exit GetCustomerPaymentProfileNonceRequest getJSON'); + return obj; + } + + constructor(obj) { + var logger = Logger.getLogger('GetCustomerPaymentProfileNonceRequest'); + logger.debug('Enter GetCustomerPaymentProfileNonceRequest constructor'); + if(arguments.length == 1) { + super(obj); + if(('connectedAccessToken' in obj) && (obj.connectedAccessToken != null)) { this.setConnectedAccessToken(obj.connectedAccessToken); } + if(('customerProfileId' in obj) && (obj.customerProfileId != null)) { this.setCustomerProfileId(obj.customerProfileId); } + if(('customerPaymentProfileId' in obj) && (obj.customerPaymentProfileId != null)) { this.setCustomerPaymentProfileId(obj.customerPaymentProfileId); } + } + else { + super(); + this.setConnectedAccessToken(null); + this.setCustomerProfileId(null); + this.setCustomerPaymentProfileId(null); + } + logger.debug('Exit GetCustomerPaymentProfileNonceRequest constructor'); + } + + setConnectedAccessToken(p_connectedAccessToken) { this.connectedAccessToken = p_connectedAccessToken; } + getConnectedAccessToken() { if('connectedAccessToken' in this) {return this.connectedAccessToken;} } + setCustomerProfileId(p_customerProfileId) { this.customerProfileId = p_customerProfileId; } + getCustomerProfileId() { if('customerProfileId' in this) {return this.customerProfileId;} } + setCustomerPaymentProfileId(p_customerPaymentProfileId) { this.customerPaymentProfileId = p_customerPaymentProfileId; } + getCustomerPaymentProfileId() { if('customerPaymentProfileId' in this) {return this.customerPaymentProfileId;} } +} + +module.exports.GetCustomerPaymentProfileNonceRequest = GetCustomerPaymentProfileNonceRequest; + +class GetCustomerPaymentProfileNonceResponse extends ANetApiResponse { + getJSON() { + var logger = Logger.getLogger('GetCustomerPaymentProfileNonceResponse'); + logger.debug('Enter GetCustomerPaymentProfileNonceResponse getJSON'); + utils.delete_null_properties(this, true); + var obj = { 'getCustomerPaymentProfileNonceResponse' : this }; + logger.debug('Exit GetCustomerPaymentProfileNonceResponse getJSON'); + return obj; + } + + constructor(obj) { + var logger = Logger.getLogger('GetCustomerPaymentProfileNonceResponse'); + logger.debug('Enter GetCustomerPaymentProfileNonceResponse constructor'); + if(arguments.length == 1) { + super(obj); + if(('opaqueData' in obj) && (obj.opaqueData != null)) { this.setOpaqueData(new OpaqueDataType(obj.opaqueData)); } + } + else { + super(); + this.setOpaqueData(null); + } + logger.debug('Exit GetCustomerPaymentProfileNonceResponse constructor'); + } + + setOpaqueData(p_opaqueData) { this.opaqueData = p_opaqueData; } + getOpaqueData() { if('opaqueData' in this) {return this.opaqueData;} } +} + +module.exports.GetCustomerPaymentProfileNonceResponse = GetCustomerPaymentProfileNonceResponse; + class GetCustomerPaymentProfileRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetCustomerPaymentProfileRequest'); logger.debug('Enter GetCustomerPaymentProfileRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getCustomerPaymentProfileRequest' : this }; @@ -5270,18 +6185,21 @@ class GetCustomerPaymentProfileRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetCustomerPaymentProfileRequest'); logger.debug('Enter GetCustomerPaymentProfileRequest constructor'); if(arguments.length == 1) { super(obj); if(('customerProfileId' in obj) && (obj.customerProfileId != null)) { this.setCustomerProfileId(obj.customerProfileId); } if(('customerPaymentProfileId' in obj) && (obj.customerPaymentProfileId != null)) { this.setCustomerPaymentProfileId(obj.customerPaymentProfileId); } if(('unmaskExpirationDate' in obj) && (obj.unmaskExpirationDate != null)) { this.setUnmaskExpirationDate(obj.unmaskExpirationDate); } + if(('includeIssuerInfo' in obj) && (obj.includeIssuerInfo != null)) { this.setIncludeIssuerInfo(obj.includeIssuerInfo); } } else { super(); this.setCustomerProfileId(null); this.setCustomerPaymentProfileId(null); this.setUnmaskExpirationDate(null); + this.setIncludeIssuerInfo(null); } logger.debug('Exit GetCustomerPaymentProfileRequest constructor'); } @@ -5292,12 +6210,15 @@ class GetCustomerPaymentProfileRequest extends ANetApiRequest { getCustomerPaymentProfileId() { if('customerPaymentProfileId' in this) {return this.customerPaymentProfileId;} } setUnmaskExpirationDate(p_unmaskExpirationDate) { this.unmaskExpirationDate = p_unmaskExpirationDate; } getUnmaskExpirationDate() { if('unmaskExpirationDate' in this) {return this.unmaskExpirationDate;} } + setIncludeIssuerInfo(p_includeIssuerInfo) { this.includeIssuerInfo = p_includeIssuerInfo; } + getIncludeIssuerInfo() { if('includeIssuerInfo' in this) {return this.includeIssuerInfo;} } } module.exports.GetCustomerPaymentProfileRequest = GetCustomerPaymentProfileRequest; class GetCustomerPaymentProfileResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetCustomerPaymentProfileResponse'); logger.debug('Enter GetCustomerPaymentProfileResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getCustomerPaymentProfileResponse' : this }; @@ -5306,6 +6227,7 @@ class GetCustomerPaymentProfileResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetCustomerPaymentProfileResponse'); logger.debug('Enter GetCustomerPaymentProfileResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5326,6 +6248,7 @@ module.exports.GetCustomerPaymentProfileResponse = GetCustomerPaymentProfileResp class GetCustomerProfileIdsRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetCustomerProfileIdsRequest'); logger.debug('Enter GetCustomerProfileIdsRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getCustomerProfileIdsRequest' : this }; @@ -5341,6 +6264,7 @@ module.exports.GetCustomerProfileIdsRequest = GetCustomerProfileIdsRequest; class GetCustomerProfileIdsResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetCustomerProfileIdsResponse'); logger.debug('Enter GetCustomerProfileIdsResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getCustomerProfileIdsResponse' : this }; @@ -5349,6 +6273,7 @@ class GetCustomerProfileIdsResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetCustomerProfileIdsResponse'); logger.debug('Enter GetCustomerProfileIdsResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5369,6 +6294,7 @@ module.exports.GetCustomerProfileIdsResponse = GetCustomerProfileIdsResponse; class GetCustomerProfileRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetCustomerProfileRequest'); logger.debug('Enter GetCustomerProfileRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getCustomerProfileRequest' : this }; @@ -5377,30 +6303,44 @@ class GetCustomerProfileRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetCustomerProfileRequest'); logger.debug('Enter GetCustomerProfileRequest constructor'); if(arguments.length == 1) { super(obj); if(('customerProfileId' in obj) && (obj.customerProfileId != null)) { this.setCustomerProfileId(obj.customerProfileId); } + if(('merchantCustomerId' in obj) && (obj.merchantCustomerId != null)) { this.setMerchantCustomerId(obj.merchantCustomerId); } + if(('email' in obj) && (obj.email != null)) { this.setEmail(obj.email); } if(('unmaskExpirationDate' in obj) && (obj.unmaskExpirationDate != null)) { this.setUnmaskExpirationDate(obj.unmaskExpirationDate); } + if(('includeIssuerInfo' in obj) && (obj.includeIssuerInfo != null)) { this.setIncludeIssuerInfo(obj.includeIssuerInfo); } } else { super(); this.setCustomerProfileId(null); + this.setMerchantCustomerId(null); + this.setEmail(null); this.setUnmaskExpirationDate(null); + this.setIncludeIssuerInfo(null); } logger.debug('Exit GetCustomerProfileRequest constructor'); } setCustomerProfileId(p_customerProfileId) { this.customerProfileId = p_customerProfileId; } getCustomerProfileId() { if('customerProfileId' in this) {return this.customerProfileId;} } + setMerchantCustomerId(p_merchantCustomerId) { this.merchantCustomerId = p_merchantCustomerId; } + getMerchantCustomerId() { if('merchantCustomerId' in this) {return this.merchantCustomerId;} } + setEmail(p_email) { this.email = p_email; } + getEmail() { if('email' in this) {return this.email;} } setUnmaskExpirationDate(p_unmaskExpirationDate) { this.unmaskExpirationDate = p_unmaskExpirationDate; } getUnmaskExpirationDate() { if('unmaskExpirationDate' in this) {return this.unmaskExpirationDate;} } + setIncludeIssuerInfo(p_includeIssuerInfo) { this.includeIssuerInfo = p_includeIssuerInfo; } + getIncludeIssuerInfo() { if('includeIssuerInfo' in this) {return this.includeIssuerInfo;} } } module.exports.GetCustomerProfileRequest = GetCustomerProfileRequest; class GetCustomerProfileResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetCustomerProfileResponse'); logger.debug('Enter GetCustomerProfileResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getCustomerProfileResponse' : this }; @@ -5409,6 +6349,7 @@ class GetCustomerProfileResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetCustomerProfileResponse'); logger.debug('Enter GetCustomerProfileResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5433,6 +6374,7 @@ module.exports.GetCustomerProfileResponse = GetCustomerProfileResponse; class GetCustomerShippingAddressRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetCustomerShippingAddressRequest'); logger.debug('Enter GetCustomerShippingAddressRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getCustomerShippingAddressRequest' : this }; @@ -5441,6 +6383,7 @@ class GetCustomerShippingAddressRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetCustomerShippingAddressRequest'); logger.debug('Enter GetCustomerShippingAddressRequest constructor'); if(arguments.length == 1) { super(obj); @@ -5465,6 +6408,7 @@ module.exports.GetCustomerShippingAddressRequest = GetCustomerShippingAddressReq class GetCustomerShippingAddressResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetCustomerShippingAddressResponse'); logger.debug('Enter GetCustomerShippingAddressResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getCustomerShippingAddressResponse' : this }; @@ -5473,6 +6417,7 @@ class GetCustomerShippingAddressResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetCustomerShippingAddressResponse'); logger.debug('Enter GetCustomerShippingAddressResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5501,6 +6446,7 @@ module.exports.GetCustomerShippingAddressResponse = GetCustomerShippingAddressRe class GetHostedPaymentPageRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetHostedPaymentPageRequest'); logger.debug('Enter GetHostedPaymentPageRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getHostedPaymentPageRequest' : this }; @@ -5509,6 +6455,7 @@ class GetHostedPaymentPageRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetHostedPaymentPageRequest'); logger.debug('Enter GetHostedPaymentPageRequest constructor'); if(arguments.length == 1) { super(obj); @@ -5533,6 +6480,7 @@ module.exports.GetHostedPaymentPageRequest = GetHostedPaymentPageRequest; class GetHostedPaymentPageResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetHostedPaymentPageResponse'); logger.debug('Enter GetHostedPaymentPageResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getHostedPaymentPageResponse' : this }; @@ -5541,6 +6489,7 @@ class GetHostedPaymentPageResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetHostedPaymentPageResponse'); logger.debug('Enter GetHostedPaymentPageResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5561,6 +6510,7 @@ module.exports.GetHostedPaymentPageResponse = GetHostedPaymentPageResponse; class GetHostedProfilePageRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetHostedProfilePageRequest'); logger.debug('Enter GetHostedProfilePageRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getHostedProfilePageRequest' : this }; @@ -5569,6 +6519,7 @@ class GetHostedProfilePageRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetHostedProfilePageRequest'); logger.debug('Enter GetHostedProfilePageRequest constructor'); if(arguments.length == 1) { super(obj); @@ -5593,6 +6544,7 @@ module.exports.GetHostedProfilePageRequest = GetHostedProfilePageRequest; class GetHostedProfilePageResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetHostedProfilePageResponse'); logger.debug('Enter GetHostedProfilePageResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getHostedProfilePageResponse' : this }; @@ -5601,6 +6553,7 @@ class GetHostedProfilePageResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetHostedProfilePageResponse'); logger.debug('Enter GetHostedProfilePageResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5621,6 +6574,7 @@ module.exports.GetHostedProfilePageResponse = GetHostedProfilePageResponse; class GetMerchantDetailsRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetMerchantDetailsRequest'); logger.debug('Enter GetMerchantDetailsRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getMerchantDetailsRequest' : this }; @@ -5636,6 +6590,7 @@ module.exports.GetMerchantDetailsRequest = GetMerchantDetailsRequest; class GetMerchantDetailsResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetMerchantDetailsResponse'); logger.debug('Enter GetMerchantDetailsResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getMerchantDetailsResponse' : this }; @@ -5644,6 +6599,7 @@ class GetMerchantDetailsResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetMerchantDetailsResponse'); logger.debug('Enter GetMerchantDetailsResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5655,6 +6611,10 @@ class GetMerchantDetailsResponse extends ANetApiResponse { if(('productCodes' in obj) && (obj.productCodes != null)) { this.setProductCodes(new ArrayOfProductCode(obj.productCodes)); } if(('paymentMethods' in obj) && (obj.paymentMethods != null)) { this.setPaymentMethods(new ArrayOfPaymentMethod(obj.paymentMethods)); } if(('currencies' in obj) && (obj.currencies != null)) { this.setCurrencies(new ArrayOfCurrencyCode(obj.currencies)); } + if(('publicClientKey' in obj) && (obj.publicClientKey != null)) { this.setPublicClientKey(obj.publicClientKey); } + if(('businessInformation' in obj) && (obj.businessInformation != null)) { this.setBusinessInformation(new CustomerAddressType(obj.businessInformation)); } + if(('merchantTimeZone' in obj) && (obj.merchantTimeZone != null)) { this.setMerchantTimeZone(obj.merchantTimeZone); } + if(('contactDetails' in obj) && (obj.contactDetails != null)) { this.setContactDetails(new ArrayOfContactDetail(obj.contactDetails)); } } else { super(); @@ -5666,6 +6626,10 @@ class GetMerchantDetailsResponse extends ANetApiResponse { this.setProductCodes(null); this.setPaymentMethods(null); this.setCurrencies(null); + this.setPublicClientKey(null); + this.setBusinessInformation(null); + this.setMerchantTimeZone(null); + this.setContactDetails(null); } logger.debug('Exit GetMerchantDetailsResponse constructor'); } @@ -5686,12 +6650,21 @@ class GetMerchantDetailsResponse extends ANetApiResponse { getPaymentMethods() { if('paymentMethods' in this) {return this.paymentMethods;} } setCurrencies(p_currencies) { this.currencies = p_currencies; } getCurrencies() { if('currencies' in this) {return this.currencies;} } + setPublicClientKey(p_publicClientKey) { this.publicClientKey = p_publicClientKey; } + getPublicClientKey() { if('publicClientKey' in this) {return this.publicClientKey;} } + setBusinessInformation(p_businessInformation) { this.businessInformation = p_businessInformation; } + getBusinessInformation() { if('businessInformation' in this) {return this.businessInformation;} } + setMerchantTimeZone(p_merchantTimeZone) { this.merchantTimeZone = p_merchantTimeZone; } + getMerchantTimeZone() { if('merchantTimeZone' in this) {return this.merchantTimeZone;} } + setContactDetails(p_contactDetails) { this.contactDetails = p_contactDetails; } + getContactDetails() { if('contactDetails' in this) {return this.contactDetails;} } } module.exports.GetMerchantDetailsResponse = GetMerchantDetailsResponse; class GetSettledBatchListRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetSettledBatchListRequest'); logger.debug('Enter GetSettledBatchListRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getSettledBatchListRequest' : this }; @@ -5700,6 +6673,7 @@ class GetSettledBatchListRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetSettledBatchListRequest'); logger.debug('Enter GetSettledBatchListRequest constructor'); if(arguments.length == 1) { super(obj); @@ -5728,6 +6702,7 @@ module.exports.GetSettledBatchListRequest = GetSettledBatchListRequest; class GetSettledBatchListResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetSettledBatchListResponse'); logger.debug('Enter GetSettledBatchListResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getSettledBatchListResponse' : this }; @@ -5736,6 +6711,7 @@ class GetSettledBatchListResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetSettledBatchListResponse'); logger.debug('Enter GetSettledBatchListResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5756,6 +6732,7 @@ module.exports.GetSettledBatchListResponse = GetSettledBatchListResponse; class GetTransactionDetailsRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetTransactionDetailsRequest'); logger.debug('Enter GetTransactionDetailsRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getTransactionDetailsRequest' : this }; @@ -5764,6 +6741,7 @@ class GetTransactionDetailsRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetTransactionDetailsRequest'); logger.debug('Enter GetTransactionDetailsRequest constructor'); if(arguments.length == 1) { super(obj); @@ -5784,6 +6762,7 @@ module.exports.GetTransactionDetailsRequest = GetTransactionDetailsRequest; class GetTransactionDetailsResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetTransactionDetailsResponse'); logger.debug('Enter GetTransactionDetailsResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getTransactionDetailsResponse' : this }; @@ -5792,26 +6771,78 @@ class GetTransactionDetailsResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetTransactionDetailsResponse'); logger.debug('Enter GetTransactionDetailsResponse constructor'); if(arguments.length == 1) { super(obj); if(('transaction' in obj) && (obj.transaction != null)) { this.setTransaction(new TransactionDetailsType(obj.transaction)); } + if(('clientId' in obj) && (obj.clientId != null)) { this.setClientId(obj.clientId); } + if(('transrefId' in obj) && (obj.transrefId != null)) { this.setTransrefId(obj.transrefId); } } else { super(); this.setTransaction(null); + this.setClientId(null); + this.setTransrefId(null); } logger.debug('Exit GetTransactionDetailsResponse constructor'); } setTransaction(p_transaction) { this.transaction = p_transaction; } getTransaction() { if('transaction' in this) {return this.transaction;} } + setClientId(p_clientId) { this.clientId = p_clientId; } + getClientId() { if('clientId' in this) {return this.clientId;} } + setTransrefId(p_transrefId) { this.transrefId = p_transrefId; } + getTransrefId() { if('transrefId' in this) {return this.transrefId;} } } module.exports.GetTransactionDetailsResponse = GetTransactionDetailsResponse; +class GetTransactionListForCustomerRequest extends ANetApiRequest { + getJSON() { + var logger = Logger.getLogger('GetTransactionListForCustomerRequest'); + logger.debug('Enter GetTransactionListForCustomerRequest getJSON'); + utils.delete_null_properties(this, true); + var obj = { 'getTransactionListForCustomerRequest' : this }; + logger.debug('Exit GetTransactionListForCustomerRequest getJSON'); + return obj; + } + + constructor(obj) { + var logger = Logger.getLogger('GetTransactionListForCustomerRequest'); + logger.debug('Enter GetTransactionListForCustomerRequest constructor'); + if(arguments.length == 1) { + super(obj); + if(('customerProfileId' in obj) && (obj.customerProfileId != null)) { this.setCustomerProfileId(obj.customerProfileId); } + if(('customerPaymentProfileId' in obj) && (obj.customerPaymentProfileId != null)) { this.setCustomerPaymentProfileId(obj.customerPaymentProfileId); } + if(('sorting' in obj) && (obj.sorting != null)) { this.setSorting(new TransactionListSorting(obj.sorting)); } + if(('paging' in obj) && (obj.paging != null)) { this.setPaging(new Paging(obj.paging)); } + } + else { + super(); + this.setCustomerProfileId(null); + this.setCustomerPaymentProfileId(null); + this.setSorting(null); + this.setPaging(null); + } + logger.debug('Exit GetTransactionListForCustomerRequest constructor'); + } + + setCustomerProfileId(p_customerProfileId) { this.customerProfileId = p_customerProfileId; } + getCustomerProfileId() { if('customerProfileId' in this) {return this.customerProfileId;} } + setCustomerPaymentProfileId(p_customerPaymentProfileId) { this.customerPaymentProfileId = p_customerPaymentProfileId; } + getCustomerPaymentProfileId() { if('customerPaymentProfileId' in this) {return this.customerPaymentProfileId;} } + setSorting(p_sorting) { this.sorting = p_sorting; } + getSorting() { if('sorting' in this) {return this.sorting;} } + setPaging(p_paging) { this.paging = p_paging; } + getPaging() { if('paging' in this) {return this.paging;} } +} + +module.exports.GetTransactionListForCustomerRequest = GetTransactionListForCustomerRequest; + class GetTransactionListRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetTransactionListRequest'); logger.debug('Enter GetTransactionListRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getTransactionListRequest' : this }; @@ -5820,6 +6851,7 @@ class GetTransactionListRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetTransactionListRequest'); logger.debug('Enter GetTransactionListRequest constructor'); if(arguments.length == 1) { super(obj); @@ -5848,6 +6880,7 @@ module.exports.GetTransactionListRequest = GetTransactionListRequest; class GetTransactionListResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetTransactionListResponse'); logger.debug('Enter GetTransactionListResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getTransactionListResponse' : this }; @@ -5856,6 +6889,7 @@ class GetTransactionListResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetTransactionListResponse'); logger.debug('Enter GetTransactionListResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5880,6 +6914,7 @@ module.exports.GetTransactionListResponse = GetTransactionListResponse; class GetUnsettledTransactionListRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('GetUnsettledTransactionListRequest'); logger.debug('Enter GetUnsettledTransactionListRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'getUnsettledTransactionListRequest' : this }; @@ -5888,6 +6923,7 @@ class GetUnsettledTransactionListRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('GetUnsettledTransactionListRequest'); logger.debug('Enter GetUnsettledTransactionListRequest constructor'); if(arguments.length == 1) { super(obj); @@ -5916,6 +6952,7 @@ module.exports.GetUnsettledTransactionListRequest = GetUnsettledTransactionListR class GetUnsettledTransactionListResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('GetUnsettledTransactionListResponse'); logger.debug('Enter GetUnsettledTransactionListResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'getUnsettledTransactionListResponse' : this }; @@ -5924,6 +6961,7 @@ class GetUnsettledTransactionListResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('GetUnsettledTransactionListResponse'); logger.debug('Enter GetUnsettledTransactionListResponse constructor'); if(arguments.length == 1) { super(obj); @@ -5948,6 +6986,7 @@ module.exports.GetUnsettledTransactionListResponse = GetUnsettledTransactionList class IsAliveResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('IsAliveResponse'); logger.debug('Enter IsAliveResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'isAliveResponse' : this }; @@ -5963,6 +7002,7 @@ module.exports.IsAliveResponse = IsAliveResponse; class LogoutRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('LogoutRequest'); logger.debug('Enter LogoutRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'logoutRequest' : this }; @@ -5978,6 +7018,7 @@ module.exports.LogoutRequest = LogoutRequest; class LogoutResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('LogoutResponse'); logger.debug('Enter LogoutResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'logoutResponse' : this }; @@ -5993,6 +7034,7 @@ module.exports.LogoutResponse = LogoutResponse; class MobileDeviceLoginRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('MobileDeviceLoginRequest'); logger.debug('Enter MobileDeviceLoginRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'mobileDeviceLoginRequest' : this }; @@ -6008,6 +7050,7 @@ module.exports.MobileDeviceLoginRequest = MobileDeviceLoginRequest; class MobileDeviceLoginResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('MobileDeviceLoginResponse'); logger.debug('Enter MobileDeviceLoginResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'mobileDeviceLoginResponse' : this }; @@ -6016,6 +7059,7 @@ class MobileDeviceLoginResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('MobileDeviceLoginResponse'); logger.debug('Enter MobileDeviceLoginResponse constructor'); if(arguments.length == 1) { super(obj); @@ -6044,6 +7088,7 @@ module.exports.MobileDeviceLoginResponse = MobileDeviceLoginResponse; class MobileDeviceRegistrationRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('MobileDeviceRegistrationRequest'); logger.debug('Enter MobileDeviceRegistrationRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'mobileDeviceRegistrationRequest' : this }; @@ -6052,6 +7097,7 @@ class MobileDeviceRegistrationRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('MobileDeviceRegistrationRequest'); logger.debug('Enter MobileDeviceRegistrationRequest constructor'); if(arguments.length == 1) { super(obj); @@ -6072,6 +7118,7 @@ module.exports.MobileDeviceRegistrationRequest = MobileDeviceRegistrationRequest class MobileDeviceRegistrationResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('MobileDeviceRegistrationResponse'); logger.debug('Enter MobileDeviceRegistrationResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'mobileDeviceRegistrationResponse' : this }; @@ -6087,6 +7134,7 @@ module.exports.MobileDeviceRegistrationResponse = MobileDeviceRegistrationRespon class OrderExType extends OrderType { constructor(obj) { + var logger = Logger.getLogger('OrderExType'); logger.debug('Enter OrderExType constructor'); if(arguments.length == 1) { super(obj); @@ -6107,6 +7155,7 @@ module.exports.OrderExType = OrderExType; class ProfileTransOrderType extends ProfileTransAmountType { constructor(obj) { + var logger = Logger.getLogger('ProfileTransOrderType'); logger.debug('Enter ProfileTransOrderType constructor'); if(arguments.length == 1) { super(obj); @@ -6118,6 +7167,9 @@ class ProfileTransOrderType extends ProfileTransAmountType { if(('recurringBilling' in obj) && (obj.recurringBilling != null)) { this.setRecurringBilling(obj.recurringBilling); } if(('cardCode' in obj) && (obj.cardCode != null)) { this.setCardCode(obj.cardCode); } if(('splitTenderId' in obj) && (obj.splitTenderId != null)) { this.setSplitTenderId(obj.splitTenderId); } + if(('processingOptions' in obj) && (obj.processingOptions != null)) { this.setProcessingOptions(new ProcessingOptions(obj.processingOptions)); } + if(('subsequentAuthInformation' in obj) && (obj.subsequentAuthInformation != null)) { this.setSubsequentAuthInformation(new SubsequentAuthInformation(obj.subsequentAuthInformation)); } + if(('authorizationIndicatorType' in obj) && (obj.authorizationIndicatorType != null)) { this.setAuthorizationIndicatorType(new AuthorizationIndicatorType(obj.authorizationIndicatorType)); } } else { super(); @@ -6129,6 +7181,9 @@ class ProfileTransOrderType extends ProfileTransAmountType { this.setRecurringBilling(null); this.setCardCode(null); this.setSplitTenderId(null); + this.setProcessingOptions(null); + this.setSubsequentAuthInformation(null); + this.setAuthorizationIndicatorType(null); } logger.debug('Exit ProfileTransOrderType constructor'); } @@ -6149,12 +7204,19 @@ class ProfileTransOrderType extends ProfileTransAmountType { getCardCode() { if('cardCode' in this) {return this.cardCode;} } setSplitTenderId(p_splitTenderId) { this.splitTenderId = p_splitTenderId; } getSplitTenderId() { if('splitTenderId' in this) {return this.splitTenderId;} } + setProcessingOptions(p_processingOptions) { this.processingOptions = p_processingOptions; } + getProcessingOptions() { if('processingOptions' in this) {return this.processingOptions;} } + setSubsequentAuthInformation(p_subsequentAuthInformation) { this.subsequentAuthInformation = p_subsequentAuthInformation; } + getSubsequentAuthInformation() { if('subsequentAuthInformation' in this) {return this.subsequentAuthInformation;} } + setAuthorizationIndicatorType(p_authorizationIndicatorType) { this.authorizationIndicatorType = p_authorizationIndicatorType; } + getAuthorizationIndicatorType() { if('authorizationIndicatorType' in this) {return this.authorizationIndicatorType;} } } module.exports.ProfileTransOrderType = ProfileTransOrderType; class ProfileTransPriorAuthCaptureType extends ProfileTransAmountType { constructor(obj) { + var logger = Logger.getLogger('ProfileTransPriorAuthCaptureType'); logger.debug('Enter ProfileTransPriorAuthCaptureType constructor'); if(arguments.length == 1) { super(obj); @@ -6187,6 +7249,7 @@ module.exports.ProfileTransPriorAuthCaptureType = ProfileTransPriorAuthCaptureTy class ProfileTransRefundType extends ProfileTransAmountType { constructor(obj) { + var logger = Logger.getLogger('ProfileTransRefundType'); logger.debug('Enter ProfileTransRefundType constructor'); if(arguments.length == 1) { super(obj); @@ -6235,6 +7298,7 @@ module.exports.ProfileTransRefundType = ProfileTransRefundType; class SecurePaymentContainerRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('SecurePaymentContainerRequest'); logger.debug('Enter SecurePaymentContainerRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'securePaymentContainerRequest' : this }; @@ -6243,6 +7307,7 @@ class SecurePaymentContainerRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('SecurePaymentContainerRequest'); logger.debug('Enter SecurePaymentContainerRequest constructor'); if(arguments.length == 1) { super(obj); @@ -6263,6 +7328,7 @@ module.exports.SecurePaymentContainerRequest = SecurePaymentContainerRequest; class SecurePaymentContainerResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('SecurePaymentContainerResponse'); logger.debug('Enter SecurePaymentContainerResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'securePaymentContainerResponse' : this }; @@ -6271,6 +7337,7 @@ class SecurePaymentContainerResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('SecurePaymentContainerResponse'); logger.debug('Enter SecurePaymentContainerResponse constructor'); if(arguments.length == 1) { super(obj); @@ -6291,6 +7358,7 @@ module.exports.SecurePaymentContainerResponse = SecurePaymentContainerResponse; class SendCustomerTransactionReceiptRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('SendCustomerTransactionReceiptRequest'); logger.debug('Enter SendCustomerTransactionReceiptRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'sendCustomerTransactionReceiptRequest' : this }; @@ -6299,6 +7367,7 @@ class SendCustomerTransactionReceiptRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('SendCustomerTransactionReceiptRequest'); logger.debug('Enter SendCustomerTransactionReceiptRequest constructor'); if(arguments.length == 1) { super(obj); @@ -6327,6 +7396,7 @@ module.exports.SendCustomerTransactionReceiptRequest = SendCustomerTransactionRe class SendCustomerTransactionReceiptResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('SendCustomerTransactionReceiptResponse'); logger.debug('Enter SendCustomerTransactionReceiptResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'sendCustomerTransactionReceiptResponse' : this }; @@ -6342,6 +7412,7 @@ module.exports.SendCustomerTransactionReceiptResponse = SendCustomerTransactionR class UpdateCustomerPaymentProfileRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('UpdateCustomerPaymentProfileRequest'); logger.debug('Enter UpdateCustomerPaymentProfileRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'updateCustomerPaymentProfileRequest' : this }; @@ -6350,6 +7421,7 @@ class UpdateCustomerPaymentProfileRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('UpdateCustomerPaymentProfileRequest'); logger.debug('Enter UpdateCustomerPaymentProfileRequest constructor'); if(arguments.length == 1) { super(obj); @@ -6378,6 +7450,7 @@ module.exports.UpdateCustomerPaymentProfileRequest = UpdateCustomerPaymentProfil class UpdateCustomerPaymentProfileResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('UpdateCustomerPaymentProfileResponse'); logger.debug('Enter UpdateCustomerPaymentProfileResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'updateCustomerPaymentProfileResponse' : this }; @@ -6386,6 +7459,7 @@ class UpdateCustomerPaymentProfileResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('UpdateCustomerPaymentProfileResponse'); logger.debug('Enter UpdateCustomerPaymentProfileResponse constructor'); if(arguments.length == 1) { super(obj); @@ -6406,6 +7480,7 @@ module.exports.UpdateCustomerPaymentProfileResponse = UpdateCustomerPaymentProfi class UpdateCustomerProfileRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('UpdateCustomerProfileRequest'); logger.debug('Enter UpdateCustomerProfileRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'updateCustomerProfileRequest' : this }; @@ -6414,10 +7489,11 @@ class UpdateCustomerProfileRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('UpdateCustomerProfileRequest'); logger.debug('Enter UpdateCustomerProfileRequest constructor'); if(arguments.length == 1) { super(obj); - if(('profile' in obj) && (obj.profile != null)) { this.setProfile(new CustomerProfileExType(obj.profile)); } + if(('profile' in obj) && (obj.profile != null)) { this.setProfile(new CustomerProfileInfoExType(obj.profile)); } } else { super(); @@ -6434,6 +7510,7 @@ module.exports.UpdateCustomerProfileRequest = UpdateCustomerProfileRequest; class UpdateCustomerProfileResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('UpdateCustomerProfileResponse'); logger.debug('Enter UpdateCustomerProfileResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'updateCustomerProfileResponse' : this }; @@ -6449,6 +7526,7 @@ module.exports.UpdateCustomerProfileResponse = UpdateCustomerProfileResponse; class UpdateCustomerShippingAddressRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('UpdateCustomerShippingAddressRequest'); logger.debug('Enter UpdateCustomerShippingAddressRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'updateCustomerShippingAddressRequest' : this }; @@ -6457,6 +7535,7 @@ class UpdateCustomerShippingAddressRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('UpdateCustomerShippingAddressRequest'); logger.debug('Enter UpdateCustomerShippingAddressRequest constructor'); if(arguments.length == 1) { super(obj); @@ -6485,6 +7564,7 @@ module.exports.UpdateCustomerShippingAddressRequest = UpdateCustomerShippingAddr class UpdateCustomerShippingAddressResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('UpdateCustomerShippingAddressResponse'); logger.debug('Enter UpdateCustomerShippingAddressResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'updateCustomerShippingAddressResponse' : this }; @@ -6500,6 +7580,7 @@ module.exports.UpdateCustomerShippingAddressResponse = UpdateCustomerShippingAdd class UpdateHeldTransactionRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('UpdateHeldTransactionRequest'); logger.debug('Enter UpdateHeldTransactionRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'updateHeldTransactionRequest' : this }; @@ -6508,6 +7589,7 @@ class UpdateHeldTransactionRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('UpdateHeldTransactionRequest'); logger.debug('Enter UpdateHeldTransactionRequest constructor'); if(arguments.length == 1) { super(obj); @@ -6528,6 +7610,7 @@ module.exports.UpdateHeldTransactionRequest = UpdateHeldTransactionRequest; class UpdateHeldTransactionResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('UpdateHeldTransactionResponse'); logger.debug('Enter UpdateHeldTransactionResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'updateHeldTransactionResponse' : this }; @@ -6536,6 +7619,7 @@ class UpdateHeldTransactionResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('UpdateHeldTransactionResponse'); logger.debug('Enter UpdateHeldTransactionResponse constructor'); if(arguments.length == 1) { super(obj); @@ -6554,8 +7638,55 @@ class UpdateHeldTransactionResponse extends ANetApiResponse { module.exports.UpdateHeldTransactionResponse = UpdateHeldTransactionResponse; +class UpdateMerchantDetailsRequest extends ANetApiRequest { + getJSON() { + var logger = Logger.getLogger('UpdateMerchantDetailsRequest'); + logger.debug('Enter UpdateMerchantDetailsRequest getJSON'); + utils.delete_null_properties(this, true); + var obj = { 'updateMerchantDetailsRequest' : this }; + logger.debug('Exit UpdateMerchantDetailsRequest getJSON'); + return obj; + } + + constructor(obj) { + var logger = Logger.getLogger('UpdateMerchantDetailsRequest'); + logger.debug('Enter UpdateMerchantDetailsRequest constructor'); + if(arguments.length == 1) { + super(obj); + if(('isTestMode' in obj) && (obj.isTestMode != null)) { this.setIsTestMode(obj.isTestMode); } + } + else { + super(); + this.setIsTestMode(null); + } + logger.debug('Exit UpdateMerchantDetailsRequest constructor'); + } + + setIsTestMode(p_isTestMode) { this.isTestMode = p_isTestMode; } + getIsTestMode() { if('isTestMode' in this) {return this.isTestMode;} } +} + +module.exports.UpdateMerchantDetailsRequest = UpdateMerchantDetailsRequest; + +class UpdateMerchantDetailsResponse extends ANetApiResponse { + getJSON() { + var logger = Logger.getLogger('UpdateMerchantDetailsResponse'); + logger.debug('Enter UpdateMerchantDetailsResponse getJSON'); + utils.delete_null_properties(this, true); + var obj = { 'updateMerchantDetailsResponse' : this }; + logger.debug('Exit UpdateMerchantDetailsResponse getJSON'); + return obj; + } + + constructor(obj) { if(arguments.length == 1) {super(obj);} else {super();} } + +} + +module.exports.UpdateMerchantDetailsResponse = UpdateMerchantDetailsResponse; + class UpdateSplitTenderGroupRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('UpdateSplitTenderGroupRequest'); logger.debug('Enter UpdateSplitTenderGroupRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'updateSplitTenderGroupRequest' : this }; @@ -6564,6 +7695,7 @@ class UpdateSplitTenderGroupRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('UpdateSplitTenderGroupRequest'); logger.debug('Enter UpdateSplitTenderGroupRequest constructor'); if(arguments.length == 1) { super(obj); @@ -6588,6 +7720,7 @@ module.exports.UpdateSplitTenderGroupRequest = UpdateSplitTenderGroupRequest; class UpdateSplitTenderGroupResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('UpdateSplitTenderGroupResponse'); logger.debug('Enter UpdateSplitTenderGroupResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'updateSplitTenderGroupResponse' : this }; @@ -6603,6 +7736,7 @@ module.exports.UpdateSplitTenderGroupResponse = UpdateSplitTenderGroupResponse; class ValidateCustomerPaymentProfileRequest extends ANetApiRequest { getJSON() { + var logger = Logger.getLogger('ValidateCustomerPaymentProfileRequest'); logger.debug('Enter ValidateCustomerPaymentProfileRequest getJSON'); utils.delete_null_properties(this, true); var obj = { 'validateCustomerPaymentProfileRequest' : this }; @@ -6611,6 +7745,7 @@ class ValidateCustomerPaymentProfileRequest extends ANetApiRequest { } constructor(obj) { + var logger = Logger.getLogger('ValidateCustomerPaymentProfileRequest'); logger.debug('Enter ValidateCustomerPaymentProfileRequest constructor'); if(arguments.length == 1) { super(obj); @@ -6647,6 +7782,7 @@ module.exports.ValidateCustomerPaymentProfileRequest = ValidateCustomerPaymentPr class ValidateCustomerPaymentProfileResponse extends ANetApiResponse { getJSON() { + var logger = Logger.getLogger('ValidateCustomerPaymentProfileResponse'); logger.debug('Enter ValidateCustomerPaymentProfileResponse getJSON'); utils.delete_null_properties(this, true); var obj = { 'validateCustomerPaymentProfileResponse' : this }; @@ -6655,6 +7791,7 @@ class ValidateCustomerPaymentProfileResponse extends ANetApiResponse { } constructor(obj) { + var logger = Logger.getLogger('ValidateCustomerPaymentProfileResponse'); logger.debug('Enter ValidateCustomerPaymentProfileResponse constructor'); if(arguments.length == 1) { super(obj); @@ -6675,6 +7812,7 @@ module.exports.ValidateCustomerPaymentProfileResponse = ValidateCustomerPaymentP class CustomerAddressExType extends CustomerAddressType { constructor(obj) { + var logger = Logger.getLogger('CustomerAddressExType'); logger.debug('Enter CustomerAddressExType constructor'); if(arguments.length == 1) { super(obj); @@ -6695,6 +7833,7 @@ module.exports.CustomerAddressExType = CustomerAddressExType; class CustomerPaymentProfileExType extends CustomerPaymentProfileType { constructor(obj) { + var logger = Logger.getLogger('CustomerPaymentProfileExType'); logger.debug('Enter CustomerPaymentProfileExType constructor'); if(arguments.length == 1) { super(obj); @@ -6713,8 +7852,30 @@ class CustomerPaymentProfileExType extends CustomerPaymentProfileType { module.exports.CustomerPaymentProfileExType = CustomerPaymentProfileExType; +class CustomerProfileInfoExType extends CustomerProfileExType { + constructor(obj) { + var logger = Logger.getLogger('CustomerProfileInfoExType'); + logger.debug('Enter CustomerProfileInfoExType constructor'); + if(arguments.length == 1) { + super(obj); + if(('profileType' in obj) && (obj.profileType != null)) { this.setProfileType(obj.profileType); } + } + else { + super(); + this.setProfileType(null); + } + logger.debug('Exit CustomerProfileInfoExType constructor'); + } + + setProfileType(p_profileType) { this.profileType = p_profileType; } + getProfileType() { if('profileType' in this) {return this.profileType;} } +} + +module.exports.CustomerProfileInfoExType = CustomerProfileInfoExType; + class CustomerProfileMaskedType extends CustomerProfileExType { constructor(obj) { + var logger = Logger.getLogger('CustomerProfileMaskedType'); logger.debug('Enter CustomerProfileMaskedType constructor'); if(arguments.length == 1) { super(obj); @@ -6728,11 +7889,13 @@ class CustomerProfileMaskedType extends CustomerProfileExType { obj.shipToList.forEach(function(item) {shipToListList.push(new CustomerAddressExType(item));}); this.setShipToList(shipToListList); } + if(('profileType' in obj) && (obj.profileType != null)) { this.setProfileType(obj.profileType); } } else { super(); this.setPaymentProfiles(null); this.setShipToList(null); + this.setProfileType(null); } logger.debug('Exit CustomerProfileMaskedType constructor'); } @@ -6741,6 +7904,8 @@ class CustomerProfileMaskedType extends CustomerProfileExType { getPaymentProfiles() { if('paymentProfiles' in this) {return this.paymentProfiles;} } setShipToList(p_shipToList) { this.shipToList = p_shipToList; } getShipToList() { if('shipToList' in this) {return this.shipToList;} } + setProfileType(p_profileType) { this.profileType = p_profileType; } + getProfileType() { if('profileType' in this) {return this.profileType;} } } module.exports.CustomerProfileMaskedType = CustomerProfileMaskedType; @@ -6761,6 +7926,7 @@ module.exports.ProfileTransAuthOnlyType = ProfileTransAuthOnlyType; class ProfileTransCaptureOnlyType extends ProfileTransOrderType { constructor(obj) { + var logger = Logger.getLogger('ProfileTransCaptureOnlyType'); logger.debug('Enter ProfileTransCaptureOnlyType constructor'); if(arguments.length == 1) { super(obj); @@ -6781,6 +7947,7 @@ module.exports.ProfileTransCaptureOnlyType = ProfileTransCaptureOnlyType; class SubscriptionCustomerProfileType extends CustomerProfileExType { constructor(obj) { + var logger = Logger.getLogger('SubscriptionCustomerProfileType'); logger.debug('Enter SubscriptionCustomerProfileType constructor'); if(arguments.length == 1) { super(obj); @@ -6863,6 +8030,12 @@ const AfdsTransactionEnum = { }; module.exports.AfdsTransactionEnum = AfdsTransactionEnum; +const AuthIndicatorEnum = { + PRE : 'pre', + FINAL : 'final' +}; +module.exports.AuthIndicatorEnum = AuthIndicatorEnum; + const BankAccountTypeEnum = { CHECKING : 'checking', SAVINGS : 'savings', @@ -6890,6 +8063,12 @@ const CustomerPaymentProfileSearchTypeEnum = { }; module.exports.CustomerPaymentProfileSearchTypeEnum = CustomerPaymentProfileSearchTypeEnum; +const CustomerProfileTypeEnum = { + REGULAR : 'regular', + GUEST : 'guest' +}; +module.exports.CustomerProfileTypeEnum = CustomerProfileTypeEnum; + const CustomerTypeEnum = { INDIVIDUAL : 'individual', BUSINESS : 'business' @@ -6934,6 +8113,14 @@ const FDSFilterActionEnum = { }; module.exports.FDSFilterActionEnum = FDSFilterActionEnum; +const MerchantInitTransReasonEnum = { + RESUBMISSION : 'resubmission', + DELAYEDCHARGE : 'delayedCharge', + REAUTHORIZATION : 'reauthorization', + NOSHOW : 'noShow' +}; +module.exports.MerchantInitTransReasonEnum = MerchantInitTransReasonEnum; + const MessageTypeEnum = { OK : 'Ok', ERROR : 'Error' @@ -6964,7 +8151,8 @@ const PaymentMethodsTypeEnum = { PAYPAL : 'Paypal', VISACHECKOUT : 'VisaCheckout', APPLEPAY : 'ApplePay', - ANDROIDPAY : 'AndroidPay' + ANDROIDPAY : 'AndroidPay', + GOOGLEPAY : 'GooglePay' }; module.exports.PaymentMethodsTypeEnum = PaymentMethodsTypeEnum; @@ -7005,7 +8193,11 @@ const SettingNameEnum = { HOSTEDPAYMENTSHIPPINGADDRESSOPTIONS : 'hostedPaymentShippingAddressOptions', HOSTEDPAYMENTSECURITYOPTIONS : 'hostedPaymentSecurityOptions', HOSTEDPAYMENTCUSTOMEROPTIONS : 'hostedPaymentCustomerOptions', - HOSTEDPAYMENTSTYLEOPTIONS : 'hostedPaymentStyleOptions' + HOSTEDPAYMENTSTYLEOPTIONS : 'hostedPaymentStyleOptions', + TYPEEMAILRECEIPT : 'typeEmailReceipt', + HOSTEDPROFILEPAYMENTOPTIONS : 'hostedProfilePaymentOptions', + HOSTEDPROFILESAVEBUTTONTEXT : 'hostedProfileSaveButtonText', + HOSTEDPAYMENTVISACHECKOUTOPTIONS : 'hostedPaymentVisaCheckoutOptions' }; module.exports.SettingNameEnum = SettingNameEnum; diff --git a/lib/apicontrollers.js b/lib/apicontrollers.js index 2a2106d..0d92dcf 100644 --- a/lib/apicontrollers.js +++ b/lib/apicontrollers.js @@ -1,12 +1,13 @@ 'use strict'; var APIOperationBase = require('./apicontrollersbase.js').APIOperationBase; -var logger = require('./logger.js').logger; +const Logger = require('./logger.js'); class ANetApiController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('ANetApiController', externalConfig) logger.debug('Enter ANetApiController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit ANetApiController constructor'); } @@ -25,9 +26,10 @@ class ANetApiController extends APIOperationBase { module.exports.ANetApiController = ANetApiController; class ARBCancelSubscriptionController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('ARBCancelSubscriptionController', externalConfig) logger.debug('Enter ARBCancelSubscriptionController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit ARBCancelSubscriptionController constructor'); } @@ -46,9 +48,10 @@ class ARBCancelSubscriptionController extends APIOperationBase { module.exports.ARBCancelSubscriptionController = ARBCancelSubscriptionController; class ARBCreateSubscriptionController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('ARBCreateSubscriptionController', externalConfig) logger.debug('Enter ARBCreateSubscriptionController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit ARBCreateSubscriptionController constructor'); } @@ -67,9 +70,10 @@ class ARBCreateSubscriptionController extends APIOperationBase { module.exports.ARBCreateSubscriptionController = ARBCreateSubscriptionController; class ARBGetSubscriptionController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('ARBGetSubscriptionController', externalConfig) logger.debug('Enter ARBGetSubscriptionController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit ARBGetSubscriptionController constructor'); } @@ -88,9 +92,10 @@ class ARBGetSubscriptionController extends APIOperationBase { module.exports.ARBGetSubscriptionController = ARBGetSubscriptionController; class ARBGetSubscriptionListController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('ARBGetSubscriptionListController', externalConfig) logger.debug('Enter ARBGetSubscriptionListController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit ARBGetSubscriptionListController constructor'); } @@ -109,9 +114,10 @@ class ARBGetSubscriptionListController extends APIOperationBase { module.exports.ARBGetSubscriptionListController = ARBGetSubscriptionListController; class ARBGetSubscriptionStatusController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('ARBGetSubscriptionStatusController', externalConfig) logger.debug('Enter ARBGetSubscriptionStatusController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit ARBGetSubscriptionStatusController constructor'); } @@ -130,9 +136,10 @@ class ARBGetSubscriptionStatusController extends APIOperationBase { module.exports.ARBGetSubscriptionStatusController = ARBGetSubscriptionStatusController; class ARBUpdateSubscriptionController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('ARBUpdateSubscriptionController', externalConfig) logger.debug('Enter ARBUpdateSubscriptionController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit ARBUpdateSubscriptionController constructor'); } @@ -151,9 +158,10 @@ class ARBUpdateSubscriptionController extends APIOperationBase { module.exports.ARBUpdateSubscriptionController = ARBUpdateSubscriptionController; class AuthenticateTestController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('AuthenticateTestController', externalConfig) logger.debug('Enter AuthenticateTestController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit AuthenticateTestController constructor'); } @@ -172,9 +180,10 @@ class AuthenticateTestController extends APIOperationBase { module.exports.AuthenticateTestController = AuthenticateTestController; class CreateCustomerPaymentProfileController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('CreateCustomerPaymentProfileController', externalConfig) logger.debug('Enter CreateCustomerPaymentProfileController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit CreateCustomerPaymentProfileController constructor'); } @@ -193,9 +202,10 @@ class CreateCustomerPaymentProfileController extends APIOperationBase { module.exports.CreateCustomerPaymentProfileController = CreateCustomerPaymentProfileController; class CreateCustomerProfileController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('CreateCustomerProfileController', externalConfig) logger.debug('Enter CreateCustomerProfileController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit CreateCustomerProfileController constructor'); } @@ -214,9 +224,10 @@ class CreateCustomerProfileController extends APIOperationBase { module.exports.CreateCustomerProfileController = CreateCustomerProfileController; class CreateCustomerProfileFromTransactionController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('CreateCustomerProfileFromTransactionController', externalConfig) logger.debug('Enter CreateCustomerProfileFromTransactionController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit CreateCustomerProfileFromTransactionController constructor'); } @@ -235,9 +246,10 @@ class CreateCustomerProfileFromTransactionController extends APIOperationBase { module.exports.CreateCustomerProfileFromTransactionController = CreateCustomerProfileFromTransactionController; class CreateCustomerProfileTransactionController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('CreateCustomerProfileTransactionController', externalConfig) logger.debug('Enter CreateCustomerProfileTransactionController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit CreateCustomerProfileTransactionController constructor'); } @@ -256,9 +268,10 @@ class CreateCustomerProfileTransactionController extends APIOperationBase { module.exports.CreateCustomerProfileTransactionController = CreateCustomerProfileTransactionController; class CreateCustomerShippingAddressController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('CreateCustomerShippingAddressController', externalConfig) logger.debug('Enter CreateCustomerShippingAddressController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit CreateCustomerShippingAddressController constructor'); } @@ -277,9 +290,10 @@ class CreateCustomerShippingAddressController extends APIOperationBase { module.exports.CreateCustomerShippingAddressController = CreateCustomerShippingAddressController; class CreateTransactionController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('CreateTransactionController', externalConfig) logger.debug('Enter CreateTransactionController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit CreateTransactionController constructor'); } @@ -298,9 +312,10 @@ class CreateTransactionController extends APIOperationBase { module.exports.CreateTransactionController = CreateTransactionController; class DecryptPaymentDataController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('DecryptPaymentDataController', externalConfig) logger.debug('Enter DecryptPaymentDataController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit DecryptPaymentDataController constructor'); } @@ -319,9 +334,10 @@ class DecryptPaymentDataController extends APIOperationBase { module.exports.DecryptPaymentDataController = DecryptPaymentDataController; class DeleteCustomerPaymentProfileController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('DeleteCustomerPaymentProfileController', externalConfig) logger.debug('Enter DeleteCustomerPaymentProfileController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit DeleteCustomerPaymentProfileController constructor'); } @@ -340,9 +356,10 @@ class DeleteCustomerPaymentProfileController extends APIOperationBase { module.exports.DeleteCustomerPaymentProfileController = DeleteCustomerPaymentProfileController; class DeleteCustomerProfileController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('DeleteCustomerProfileController', externalConfig) logger.debug('Enter DeleteCustomerProfileController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit DeleteCustomerProfileController constructor'); } @@ -361,9 +378,10 @@ class DeleteCustomerProfileController extends APIOperationBase { module.exports.DeleteCustomerProfileController = DeleteCustomerProfileController; class DeleteCustomerShippingAddressController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('DeleteCustomerShippingAddressController', externalConfig) logger.debug('Enter DeleteCustomerShippingAddressController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit DeleteCustomerShippingAddressController constructor'); } @@ -382,9 +400,10 @@ class DeleteCustomerShippingAddressController extends APIOperationBase { module.exports.DeleteCustomerShippingAddressController = DeleteCustomerShippingAddressController; class GetAUJobDetailsController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetAUJobDetailsController', externalConfig) logger.debug('Enter GetAUJobDetailsController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetAUJobDetailsController constructor'); } @@ -403,9 +422,10 @@ class GetAUJobDetailsController extends APIOperationBase { module.exports.GetAUJobDetailsController = GetAUJobDetailsController; class GetAUJobSummaryController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetAUJobSummaryController', externalConfig) logger.debug('Enter GetAUJobSummaryController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetAUJobSummaryController constructor'); } @@ -424,9 +444,10 @@ class GetAUJobSummaryController extends APIOperationBase { module.exports.GetAUJobSummaryController = GetAUJobSummaryController; class GetBatchStatisticsController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetBatchStatisticsController', externalConfig) logger.debug('Enter GetBatchStatisticsController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetBatchStatisticsController constructor'); } @@ -445,9 +466,10 @@ class GetBatchStatisticsController extends APIOperationBase { module.exports.GetBatchStatisticsController = GetBatchStatisticsController; class GetCustomerPaymentProfileController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetCustomerPaymentProfileController', externalConfig) logger.debug('Enter GetCustomerPaymentProfileController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetCustomerPaymentProfileController constructor'); } @@ -466,9 +488,10 @@ class GetCustomerPaymentProfileController extends APIOperationBase { module.exports.GetCustomerPaymentProfileController = GetCustomerPaymentProfileController; class GetCustomerPaymentProfileListController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetCustomerPaymentProfileListController', externalConfig) logger.debug('Enter GetCustomerPaymentProfileListController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetCustomerPaymentProfileListController constructor'); } @@ -486,10 +509,33 @@ class GetCustomerPaymentProfileListController extends APIOperationBase { module.exports.GetCustomerPaymentProfileListController = GetCustomerPaymentProfileListController; +class GetCustomerPaymentProfileNonceController extends APIOperationBase { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetCustomerPaymentProfileNonceController', externalConfig) + logger.debug('Enter GetCustomerPaymentProfileNonceController constructor'); + super(apiRequest, externalConfig); + logger.debug('Exit GetCustomerPaymentProfileNonceController constructor'); + } + + validateRequest(){ + logger.debug('Enter validateRequest'); + + logger.debug('Exit validateRequest'); + return; + } + + getRequestType(){ + return 'GetCustomerPaymentProfileNonceRequest'; + } +} + +module.exports.GetCustomerPaymentProfileNonceController = GetCustomerPaymentProfileNonceController; + class GetCustomerProfileController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetCustomerProfileController', externalConfig) logger.debug('Enter GetCustomerProfileController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetCustomerProfileController constructor'); } @@ -508,9 +554,10 @@ class GetCustomerProfileController extends APIOperationBase { module.exports.GetCustomerProfileController = GetCustomerProfileController; class GetCustomerProfileIdsController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetCustomerProfileIdsController', externalConfig) logger.debug('Enter GetCustomerProfileIdsController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetCustomerProfileIdsController constructor'); } @@ -529,9 +576,10 @@ class GetCustomerProfileIdsController extends APIOperationBase { module.exports.GetCustomerProfileIdsController = GetCustomerProfileIdsController; class GetCustomerShippingAddressController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetCustomerShippingAddressController', externalConfig) logger.debug('Enter GetCustomerShippingAddressController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetCustomerShippingAddressController constructor'); } @@ -550,9 +598,10 @@ class GetCustomerShippingAddressController extends APIOperationBase { module.exports.GetCustomerShippingAddressController = GetCustomerShippingAddressController; class GetHostedPaymentPageController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetHostedPaymentPageController', externalConfig) logger.debug('Enter GetHostedPaymentPageController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetHostedPaymentPageController constructor'); } @@ -571,9 +620,10 @@ class GetHostedPaymentPageController extends APIOperationBase { module.exports.GetHostedPaymentPageController = GetHostedPaymentPageController; class GetHostedProfilePageController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetHostedProfilePageController', externalConfig) logger.debug('Enter GetHostedProfilePageController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetHostedProfilePageController constructor'); } @@ -592,9 +642,10 @@ class GetHostedProfilePageController extends APIOperationBase { module.exports.GetHostedProfilePageController = GetHostedProfilePageController; class GetMerchantDetailsController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetMerchantDetailsController', externalConfig) logger.debug('Enter GetMerchantDetailsController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetMerchantDetailsController constructor'); } @@ -613,9 +664,10 @@ class GetMerchantDetailsController extends APIOperationBase { module.exports.GetMerchantDetailsController = GetMerchantDetailsController; class GetSettledBatchListController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetSettledBatchListController', externalConfig) logger.debug('Enter GetSettledBatchListController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetSettledBatchListController constructor'); } @@ -634,9 +686,10 @@ class GetSettledBatchListController extends APIOperationBase { module.exports.GetSettledBatchListController = GetSettledBatchListController; class GetTransactionDetailsController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetTransactionDetailsController', externalConfig) logger.debug('Enter GetTransactionDetailsController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetTransactionDetailsController constructor'); } @@ -655,9 +708,10 @@ class GetTransactionDetailsController extends APIOperationBase { module.exports.GetTransactionDetailsController = GetTransactionDetailsController; class GetTransactionListController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetTransactionListController', externalConfig) logger.debug('Enter GetTransactionListController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetTransactionListController constructor'); } @@ -675,10 +729,33 @@ class GetTransactionListController extends APIOperationBase { module.exports.GetTransactionListController = GetTransactionListController; +class GetTransactionListForCustomerController extends APIOperationBase { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetTransactionListForCustomerController', externalConfig) + logger.debug('Enter GetTransactionListForCustomerController constructor'); + super(apiRequest, externalConfig); + logger.debug('Exit GetTransactionListForCustomerController constructor'); + } + + validateRequest(){ + logger.debug('Enter validateRequest'); + + logger.debug('Exit validateRequest'); + return; + } + + getRequestType(){ + return 'GetTransactionListForCustomerRequest'; + } +} + +module.exports.GetTransactionListForCustomerController = GetTransactionListForCustomerController; + class GetUnsettledTransactionListController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('GetUnsettledTransactionListController', externalConfig) logger.debug('Enter GetUnsettledTransactionListController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit GetUnsettledTransactionListController constructor'); } @@ -697,9 +774,10 @@ class GetUnsettledTransactionListController extends APIOperationBase { module.exports.GetUnsettledTransactionListController = GetUnsettledTransactionListController; class IsAliveController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('IsAliveController', externalConfig) logger.debug('Enter IsAliveController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit IsAliveController constructor'); } @@ -718,9 +796,10 @@ class IsAliveController extends APIOperationBase { module.exports.IsAliveController = IsAliveController; class LogoutController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('LogoutController', externalConfig) logger.debug('Enter LogoutController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit LogoutController constructor'); } @@ -739,9 +818,10 @@ class LogoutController extends APIOperationBase { module.exports.LogoutController = LogoutController; class MobileDeviceLoginController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('MobileDeviceLoginController', externalConfig) logger.debug('Enter MobileDeviceLoginController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit MobileDeviceLoginController constructor'); } @@ -760,9 +840,10 @@ class MobileDeviceLoginController extends APIOperationBase { module.exports.MobileDeviceLoginController = MobileDeviceLoginController; class MobileDeviceRegistrationController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('MobileDeviceRegistrationController', externalConfig) logger.debug('Enter MobileDeviceRegistrationController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit MobileDeviceRegistrationController constructor'); } @@ -781,9 +862,10 @@ class MobileDeviceRegistrationController extends APIOperationBase { module.exports.MobileDeviceRegistrationController = MobileDeviceRegistrationController; class SecurePaymentContainerController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('SecurePaymentContainerController', externalConfig) logger.debug('Enter SecurePaymentContainerController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit SecurePaymentContainerController constructor'); } @@ -802,9 +884,10 @@ class SecurePaymentContainerController extends APIOperationBase { module.exports.SecurePaymentContainerController = SecurePaymentContainerController; class SendCustomerTransactionReceiptController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('SendCustomerTransactionReceiptController', externalConfig) logger.debug('Enter SendCustomerTransactionReceiptController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit SendCustomerTransactionReceiptController constructor'); } @@ -823,9 +906,10 @@ class SendCustomerTransactionReceiptController extends APIOperationBase { module.exports.SendCustomerTransactionReceiptController = SendCustomerTransactionReceiptController; class UpdateCustomerPaymentProfileController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('UpdateCustomerPaymentProfileController', externalConfig) logger.debug('Enter UpdateCustomerPaymentProfileController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit UpdateCustomerPaymentProfileController constructor'); } @@ -844,9 +928,10 @@ class UpdateCustomerPaymentProfileController extends APIOperationBase { module.exports.UpdateCustomerPaymentProfileController = UpdateCustomerPaymentProfileController; class UpdateCustomerProfileController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('UpdateCustomerProfileController', externalConfig) logger.debug('Enter UpdateCustomerProfileController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit UpdateCustomerProfileController constructor'); } @@ -865,9 +950,10 @@ class UpdateCustomerProfileController extends APIOperationBase { module.exports.UpdateCustomerProfileController = UpdateCustomerProfileController; class UpdateCustomerShippingAddressController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('UpdateCustomerShippingAddressController', externalConfig) logger.debug('Enter UpdateCustomerShippingAddressController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit UpdateCustomerShippingAddressController constructor'); } @@ -886,9 +972,10 @@ class UpdateCustomerShippingAddressController extends APIOperationBase { module.exports.UpdateCustomerShippingAddressController = UpdateCustomerShippingAddressController; class UpdateHeldTransactionController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('UpdateHeldTransactionController', externalConfig) logger.debug('Enter UpdateHeldTransactionController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit UpdateHeldTransactionController constructor'); } @@ -906,10 +993,33 @@ class UpdateHeldTransactionController extends APIOperationBase { module.exports.UpdateHeldTransactionController = UpdateHeldTransactionController; +class UpdateMerchantDetailsController extends APIOperationBase { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('UpdateMerchantDetailsController', externalConfig) + logger.debug('Enter UpdateMerchantDetailsController constructor'); + super(apiRequest, externalConfig); + logger.debug('Exit UpdateMerchantDetailsController constructor'); + } + + validateRequest(){ + logger.debug('Enter validateRequest'); + + logger.debug('Exit validateRequest'); + return; + } + + getRequestType(){ + return 'UpdateMerchantDetailsRequest'; + } +} + +module.exports.UpdateMerchantDetailsController = UpdateMerchantDetailsController; + class UpdateSplitTenderGroupController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('UpdateSplitTenderGroupController', externalConfig) logger.debug('Enter UpdateSplitTenderGroupController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit UpdateSplitTenderGroupController constructor'); } @@ -928,9 +1038,10 @@ class UpdateSplitTenderGroupController extends APIOperationBase { module.exports.UpdateSplitTenderGroupController = UpdateSplitTenderGroupController; class ValidateCustomerPaymentProfileController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('ValidateCustomerPaymentProfileController', externalConfig) logger.debug('Enter ValidateCustomerPaymentProfileController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit ValidateCustomerPaymentProfileController constructor'); } diff --git a/lib/apicontrollersbase.js b/lib/apicontrollersbase.js index c9841ad..613b51a 100644 --- a/lib/apicontrollersbase.js +++ b/lib/apicontrollersbase.js @@ -1,19 +1,26 @@ 'use strict'; -var request = require('request'); -var logger = require('./logger.js').logger; +var axios = require('axios'); +var HttpsProxyAgent = require('https-proxy-agent').HttpsProxyAgent; +const Logger = require('./logger.js'); var config = require('./config').config; var constants = require('./constants').constants; +var logger; + class APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + logger = Logger.getLogger('ApiOperationBase', externalConfig); logger.debug('Enter APIOperationBase constructor'); this._request = null; this._response = null; + this._error = null; this._endpoint = constants.endpoint.sandbox; - if(null == apiRequest) + if (externalConfig) config = externalConfig; + + if (null == apiRequest) logger.error('Input request cannot be null'); this._request = apiRequest; @@ -22,34 +29,38 @@ class APIOperationBase { } //abstract - validateRequest(){ + validateRequest() { return; } - validate(){ + validate() { return; } - getResponse(){ + getResponse() { return this._response; } - getResultcode(){ + getError() { + return this._error; + } + + getResultcode() { var resultcode = null; - if(this._response) + if (this._response) resultcode = this._response.resultCode; return resultcode; } - getMessagetype(){ + getMessagetype() { var message = null; - if(this._response){ + if (this._response) { message = this._response.message; } - + return message; } @@ -57,13 +68,13 @@ class APIOperationBase { } setClientId() { - for(var obj in this._request){ - this._request[obj]['clientId'] = config.clientId; + for (var obj in this._request) { + this._request[obj]['clientId'] = config.clientId; break; } } - setEnvironment(env){ + setEnvironment(env) { this._endpoint = env; } @@ -78,42 +89,33 @@ class APIOperationBase { var obj = this; - logger.debug('Request: ' + JSON.stringify(this._request, 2, null)); + logger.debug(JSON.stringify(this._request, 2, null)); - var reqOpts = { - url: this._endpoint, + var axiosConfig = { + baseURL: this._endpoint, method: 'POST', - headers: { - 'Content-Type': 'application/json', - 'Content-Length': this._request.length - }, - json: true, + proxy: false, timeout: config.timeout, - body: this._request + data: JSON.parse(JSON.stringify(this._request)) }; - if(config.proxy.setProxy){ - reqOpts['proxy'] = config.proxy.proxyUrl; + if (config.proxy.setProxy) { + const agent = new HttpsProxyAgent(config.proxy.proxyUrl); + axiosConfig.httpsAgent = agent; } - request(reqOpts, function(error, response, body){ - if(error) { - logger.error(error); - } else - { - //TODO: slice added due to BOM character. remove once BOM character is removed. - var responseObj = JSON.parse(body.slice(1)); - logger.debug('Response: ' + JSON.stringify(responseObj, 2, null)); + axios.request(axiosConfig).then((response) => { + if (typeof response.data !== 'undefined') { + var responseObj = JSON.parse(JSON.stringify(response.data)); + logger.debug(JSON.stringify(responseObj, 2, null)); obj._response = responseObj; - /* - var jsonResponse = JSON.stringify(body); - console.log("escaped body : '" + escape(jsonResponse) + "'"); - console.log("body : '" + jsonResponse + "'"); - logger.debug("Response: " + JSON.stringify(body, 2, null)); - obj._response = body; - */ callback(); + } else { + logger.error("Undefined Response"); } + }).catch(error => { + obj._error = error; + logger.error(error); }); logger.debug('Exit APIOperationBase execute'); diff --git a/lib/config.js b/lib/config.js index bf41e38..342ccc4 100644 --- a/lib/config.js +++ b/lib/config.js @@ -5,7 +5,7 @@ var config = { 'timeout': 120000, 'clientId': 'sdk-node-' + pkg.version, 'logger': { - 'enabled': true, + 'enabled': false, 'location': './', //logging levels - { error: 0, warn: 1, info: 2, verbose: 3, debug: 4, silly: 5 'level': 'debug' diff --git a/lib/constants.js b/lib/constants.js index 4d2374d..d937225 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -3,7 +3,7 @@ var constants = { 'endpoint': { 'sandbox': 'https://apitest.authorize.net/xml/v1/request.api', - 'production': 'https://api.authorize.net/xml/v1/request.api' + 'production': 'https://api2.authorize.net/xml/v1/request.api' } }; diff --git a/lib/logger.js b/lib/logger.js index e9a7d95..b8583bb 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -1,21 +1,103 @@ var winston = require('winston'); +const { format } = require('winston'); +const { combine, timestamp, label, printf } = format; +require('winston-daily-rotate-file'); var config = require('./config').config; -var logger; +var sensitiveFields = ['cardCode', 'cardNumber', 'expirationDate', 'accountNumber', 'nameOnAccount', 'transactionKey', 'email', 'phoneNumber', 'faxNumber', 'dateOfBirth']; -if(config.logger.enabled === true) { - logger = new (winston.Logger)({ - transports: [ - new (winston.transports.File)({filename: config.logger.location + '/sdk-node.log', level: config.logger.level}) - ] - }); +const maskedLoggingFormat = printf(({ level, message, label, timestamp }) => { + if (isJson(message)) { + return `[${timestamp}] [${level.toUpperCase()}] [${label}] : ${maskSensitiveFields(JSON.parse(message))}`; + } else { + return `[${timestamp}] [${level.toUpperCase()}] [${label}] : ${message}`; + } +}); + +function isJson(str) { + try { + JSON.parse(str); + } catch (e) { + return false; + } + return true; } -else { - logger = new (winston.Logger)({ - transports: [] - }); + +function createTransportFromConfig(tempConfig) { + var transports = []; + + var enableLog = tempConfig.logger.enabled; + var loggingLevel = tempConfig.logger.level; + var logDirectory = tempConfig.logger.location; + + transports.push(new winston.transports.DailyRotateFile({ + level: loggingLevel, + filename: 'sdk-node-%DATE%.log', + datePattern: 'YYYY-MM-DD', + zippedArchive: true, + dirname: logDirectory, + silent: !enableLog + })); + + return transports; } -//logging levels - { error: 0, warn: 1, info: 2, verbose: 3, debug: 4, silly: 5 } +exports.getLogger = function (loggerCategory = 'LoggerInstance', mconfig = null) { + var loggerConfig = mconfig ? mconfig : config; + + var enableLog = loggerConfig.logger.enabled; + var loggingLevel = loggerConfig.logger.level; + + var loggerCategoryRandomiser = Math.floor(Math.random() * (1000000000 - 100 + 1)) + 100; + loggerCategory = loggerCategory + loggerCategoryRandomiser; + + var newLogger; + + if (enableLog) { + var appTransports = createTransportFromConfig(loggerConfig); + + newLogger = winston.loggers.get(loggerCategory, { + level: loggingLevel, + format: combine( + label({ label: loggerCategory }), + timestamp(), + maskedLoggingFormat + ), + transports: appTransports + }); + } else { + newLogger = winston.loggers.get(loggerCategory, { + level: loggingLevel, + format: combine( + label({ label: loggerCategory }), + timestamp(), + maskedLoggingFormat + ), + transports: [new winston.transports.Console({ + silent: !enableLog + })] + }); + } + + return newLogger; +} + +function maskSensitiveFields(jsonMsg) { + if (jsonMsg instanceof Object) { + var prop; + + for (prop in jsonMsg) { + var isFieldSensitive = (sensitiveFields.indexOf(prop) > -1); + + if (isFieldSensitive === true) { + jsonMsg[prop] = new Array(jsonMsg[prop].length + 1).join('X'); + } + else if (jsonMsg.hasOwnProperty(prop)) { + maskSensitiveFields(jsonMsg[prop]); + } + } + } + + return JSON.stringify(jsonMsg); +} -module.exports.logger = logger; diff --git a/mappings/Schema.js b/mappings/Schema.js index 5a75408..303a99e 100644 --- a/mappings/Schema.js +++ b/mappings/Schema.js @@ -3,107 +3,86 @@ var Schema_Module_Factory = function () { name: 'Schema', defaultElementNamespaceURI: 'AnetApi\/xml\/v1\/schema\/AnetApiSchema.xsd', typeInfos: [{ - localName: 'ARBUpdateSubscriptionResponse', + localName: 'DeleteCustomerPaymentProfileResponse', typeName: null, - baseTypeInfo: '.ANetApiResponse', - propertyInfos: [{ - name: 'profile', - typeInfo: '.CustomerProfileIdType' - }] + baseTypeInfo: '.ANetApiResponse' }, { - localName: 'GetAUJobDetailsRequest', + localName: 'GetTransactionListResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'month', - required: true - }, { - name: 'modifiedTypeFilter' + name: 'transactions', + typeInfo: '.ArrayOfTransactionSummaryType' }, { - name: 'paging', - typeInfo: '.Paging' + name: 'totalNumInResultSet', + typeInfo: 'Int' }] }, { - localName: 'TransactionResponse.Messages.Message', - typeName: null, + localName: 'ArrayOfProductCode', propertyInfos: [{ - name: 'code' - }, { - name: 'description' + name: 'productCode', + minOccurs: 0, + collection: true }] }, { - localName: 'LineItemType', - typeName: 'lineItemType', + localName: 'CreateCustomerProfileRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'itemId', - required: true - }, { - name: 'name', - required: true - }, { - name: 'description' - }, { - name: 'quantity', - required: true, - typeInfo: 'Decimal' - }, { - name: 'unitPrice', + name: 'profile', required: true, - typeInfo: 'Decimal' + typeInfo: '.CustomerProfileType' }, { - name: 'taxable', - typeInfo: 'Boolean' + name: 'validationMode' }] }, { - localName: 'TransactionRequestType.UserFields', + localName: 'TransactionResponse.Messages', typeName: null, propertyInfos: [{ - name: 'userField', + name: 'message', minOccurs: 0, - maxOccurs: 20, collection: true, - typeInfo: '.UserField' + typeInfo: '.TransactionResponse.Messages.Message' }] }, { - localName: 'GetCustomerProfileResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse', + localName: 'CustomerType', + typeName: 'customerType', propertyInfos: [{ - name: 'profile', - typeInfo: '.CustomerProfileMaskedType' + name: 'type' }, { - name: 'subscriptionIds', - typeInfo: '.SubscriptionIdList' - }] - }, { - localName: 'FingerPrintType', - typeName: 'fingerPrintType', - propertyInfos: [{ - name: 'hashValue', - required: true + name: 'id' }, { - name: 'sequence' + name: 'email' }, { - name: 'timestamp', - required: true + name: 'phoneNumber' }, { - name: 'currencyCode' + name: 'faxNumber' }, { - name: 'amount' + name: 'driversLicense', + typeInfo: '.DriversLicenseType' + }, { + name: 'taxId' }] }, { - localName: 'ProfileTransAuthCaptureType', - typeName: 'profileTransAuthCaptureType', - baseTypeInfo: '.ProfileTransOrderType' + localName: 'CustomerAddressExType', + typeName: 'customerAddressExType', + baseTypeInfo: '.CustomerAddressType', + propertyInfos: [{ + name: 'customerAddressId' + }] }, { - localName: 'UpdateCustomerPaymentProfileResponse', + localName: 'DeleteCustomerShippingAddressRequest', typeName: null, - baseTypeInfo: '.ANetApiResponse', + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'validationDirectResponse' + name: 'customerProfileId', + required: true + }, { + name: 'customerAddressId', + required: true }] }, { - localName: 'TransactionListSorting', + localName: 'CustomerPaymentProfileSorting', propertyInfos: [{ name: 'orderBy', required: true @@ -113,411 +92,515 @@ var Schema_Module_Factory = function () { typeInfo: 'Boolean' }] }, { - localName: 'ArrayOfCustomerPaymentProfileListItemType', - typeName: 'arrayOfCustomerPaymentProfileListItemType', + localName: 'ProfileTransCaptureOnlyType', + typeName: 'profileTransCaptureOnlyType', + baseTypeInfo: '.ProfileTransOrderType', propertyInfos: [{ - name: 'paymentProfile', - minOccurs: 0, - collection: true, - typeInfo: '.CustomerPaymentProfileListItemType' + name: 'approvalCode', + required: true }] }, { - localName: 'GetAUJobSummaryResponse', + localName: 'ARBCancelSubscriptionResponse', typeName: null, - baseTypeInfo: '.ANetApiResponse', - propertyInfos: [{ - name: 'auSummary', - typeInfo: '.ArrayOfAUResponseType' - }] + baseTypeInfo: '.ANetApiResponse' }, { - localName: 'AuDetailsType', - typeName: 'auDetailsType', + localName: 'UpdateSplitTenderGroupRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'customerProfileID', - required: true, - typeInfo: 'Long' - }, { - name: 'customerPaymentProfileID', - required: true, - typeInfo: 'Long' - }, { - name: 'firstName' - }, { - name: 'lastName' - }, { - name: 'updateTimeUTC', - required: true - }, { - name: 'auReasonCode', + name: 'splitTenderId', required: true }, { - name: 'reasonDescription', + name: 'splitTenderStatus', required: true }] }, { - localName: 'CreateCustomerPaymentProfileRequest', + localName: 'KeyManagementScheme.DUKPT.DeviceInfo', typeName: null, - baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'customerProfileId', + name: 'description', + required: true, + elementName: 'Description' + }] + }, { + localName: 'CreditCardMaskedType', + typeName: 'creditCardMaskedType', + propertyInfos: [{ + name: 'cardNumber', required: true }, { - name: 'paymentProfile', - required: true, - typeInfo: '.CustomerPaymentProfileType' + name: 'expirationDate', + required: true }, { - name: 'validationMode' + name: 'cardType' + }, { + name: 'cardArt', + typeInfo: '.CardArt' + }, { + name: 'issuerNumber' + }, { + name: 'isPaymentToken', + typeInfo: 'Boolean' }] }, { - localName: 'KeyManagementScheme.DUKPT.Mode', - typeName: null, + localName: 'ArrayOfLineItem', propertyInfos: [{ - name: 'pin', - elementName: 'PIN' - }, { - name: 'data', - elementName: 'Data' + name: 'lineItem', + minOccurs: 0, + collection: true, + typeInfo: '.LineItemType' }] }, { - localName: 'MerchantAuthenticationType', - typeName: 'merchantAuthenticationType', + localName: 'ProfileTransOrderType', + typeName: 'profileTransOrderType', + baseTypeInfo: '.ProfileTransAmountType', propertyInfos: [{ - name: 'name' + name: 'customerProfileId', + required: true }, { - name: 'transactionKey', + name: 'customerPaymentProfileId', required: true }, { - name: 'sessionToken' + name: 'customerShippingAddressId' }, { - name: 'password', - required: true + name: 'order', + typeInfo: '.OrderExType' }, { - name: 'impersonationAuthentication', - typeInfo: '.ImpersonationAuthenticationType' + name: 'taxExempt', + typeInfo: 'Boolean' }, { - name: 'fingerPrint', - typeInfo: '.FingerPrintType' + name: 'recurringBilling', + typeInfo: 'Boolean' }, { - name: 'clientKey' + name: 'cardCode' }, { - name: 'mobileDeviceId' + name: 'splitTenderId' + }, { + name: 'processingOptions', + typeInfo: '.ProcessingOptions' + }, { + name: 'subsequentAuthInformation', + typeInfo: '.SubsequentAuthInformation' + }, { + name: 'authorizationIndicatorType', + typeInfo: '.AuthorizationIndicatorType' }] }, { - localName: 'CreditCardSimpleType', - typeName: 'creditCardSimpleType', + localName: 'EmailSettingsType', + typeName: 'emailSettingsType', + baseTypeInfo: '.ArrayOfSetting', propertyInfos: [{ - name: 'cardNumber', + name: 'version', + typeInfo: 'Integer', + attributeName: { + localPart: 'version' + }, + type: 'attribute' + }] + }, { + localName: 'TokenMaskedType', + typeName: 'tokenMaskedType', + propertyInfos: [{ + name: 'tokenSource' + }, { + name: 'tokenNumber', required: true }, { name: 'expirationDate', required: true + }, { + name: 'tokenRequestorId' }] }, { - localName: 'TransactionResponse.Errors', + localName: 'KeyManagementScheme.DUKPT.EncryptedData', typeName: null, propertyInfos: [{ - name: 'error', - minOccurs: 0, - collection: true, - typeInfo: '.TransactionResponse.Errors.Error' + name: 'value', + required: true, + elementName: 'Value' }] }, { - localName: 'CreateCustomerShippingAddressResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse', + localName: 'PaymentScheduleType', + typeName: 'paymentScheduleType', propertyInfos: [{ - name: 'customerProfileId' + name: 'interval', + typeInfo: '.PaymentScheduleType.Interval' }, { - name: 'customerAddressId' - }] - }, { - localName: 'MessagesType', - typeName: 'messagesType', - propertyInfos: [{ - name: 'resultCode', - required: true + name: 'startDate', + typeInfo: 'Date' }, { - name: 'message', - required: true, - collection: true, - typeInfo: '.MessagesType.Message' + name: 'totalOccurrences', + typeInfo: 'Short' + }, { + name: 'trialOccurrences', + typeInfo: 'Short' }] }, { - localName: 'SendCustomerTransactionReceiptRequest', + localName: 'UpdateCustomerShippingAddressRequest', typeName: null, baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'transId', + name: 'customerProfileId', required: true }, { - name: 'customerEmail', - required: true + name: 'address', + required: true, + typeInfo: '.CustomerAddressExType' }, { - name: 'emailSettings', - typeInfo: '.EmailSettingsType' + name: 'defaultShippingAddress', + typeInfo: 'Boolean' }] }, { - localName: 'TransactionDetailsType.EmvDetails', - typeName: null, + localName: 'ContactDetailType', propertyInfos: [{ - name: 'tag', - required: true, - collection: true, - typeInfo: '.TransactionDetailsType.EmvDetails.Tag' + name: 'email' + }, { + name: 'firstName' + }, { + name: 'lastName' }] }, { - localName: 'GetMerchantDetailsRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest' - }, { - localName: 'TransactionResponse', - typeName: 'transactionResponse', + localName: 'MerchantContactType', + typeName: 'merchantContactType', propertyInfos: [{ - name: 'responseCode' - }, { - name: 'rawResponseCode' - }, { - name: 'authCode' - }, { - name: 'avsResultCode' - }, { - name: 'cvvResultCode' - }, { - name: 'cavvResultCode' - }, { - name: 'transId' - }, { - name: 'refTransID' - }, { - name: 'transHash' - }, { - name: 'testRequest' - }, { - name: 'accountNumber' - }, { - name: 'entryMode' - }, { - name: 'accountType' - }, { - name: 'splitTenderId' - }, { - name: 'prePaidCard', - typeInfo: '.TransactionResponse.PrePaidCard' - }, { - name: 'messages', - typeInfo: '.TransactionResponse.Messages' - }, { - name: 'errors', - typeInfo: '.TransactionResponse.Errors' - }, { - name: 'splitTenderPayments', - typeInfo: '.TransactionResponse.SplitTenderPayments' + name: 'merchantName' }, { - name: 'userFields', - typeInfo: '.TransactionResponse.UserFields' + name: 'merchantAddress' }, { - name: 'shipTo', - typeInfo: '.NameAndAddressType' + name: 'merchantCity' }, { - name: 'secureAcceptance', - typeInfo: '.TransactionResponse.SecureAcceptance' + name: 'merchantState' }, { - name: 'emvResponse', - typeInfo: '.TransactionResponse.EmvResponse' + name: 'merchantZip' }, { - name: 'transHashSha2' + name: 'merchantPhone' }] }, { - localName: 'OrderExType', - typeName: 'orderExType', - baseTypeInfo: '.OrderType', + localName: 'SecurePaymentContainerResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'purchaseOrderNumber' + name: 'opaqueData', + required: true, + typeInfo: '.OpaqueDataType' }] }, { - localName: 'WebCheckOutDataType.Token', - typeName: null, + localName: 'CcAuthenticationType', + typeName: 'ccAuthenticationType', propertyInfos: [{ - name: 'cardNumber', + name: 'authenticationIndicator', required: true }, { - name: 'expirationDate', + name: 'cardholderAuthenticationValue', required: true - }, { - name: 'cardCode' - }, { - name: 'zip' - }, { - name: 'fullName' }] }, { - localName: 'GetTransactionListRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest', + localName: 'CustomerProfileType', + typeName: 'customerProfileType', + baseTypeInfo: '.CustomerProfileBaseType', propertyInfos: [{ - name: 'batchId' + name: 'paymentProfiles', + minOccurs: 0, + collection: true, + typeInfo: '.CustomerPaymentProfileType' }, { - name: 'sorting', - typeInfo: '.TransactionListSorting' + name: 'shipToList', + minOccurs: 0, + collection: true, + typeInfo: '.CustomerAddressType' }, { - name: 'paging', - typeInfo: '.Paging' + name: 'profileType' }] }, { - localName: 'WebCheckOutDataType', - typeName: 'webCheckOutDataType', + localName: 'AuDetailsType', + typeName: 'auDetailsType', propertyInfos: [{ - name: 'type', + name: 'customerProfileID', + required: true, + typeInfo: 'Long' + }, { + name: 'customerPaymentProfileID', + required: true, + typeInfo: 'Long' + }, { + name: 'firstName' + }, { + name: 'lastName' + }, { + name: 'updateTimeUTC', required: true }, { - name: 'id', + name: 'auReasonCode', required: true }, { - name: 'token', - required: true, - typeInfo: '.WebCheckOutDataType.Token' + name: 'reasonDescription', + required: true }] }, { - localName: 'UpdateCustomerProfileRequest', + localName: 'DecryptPaymentDataResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', - propertyInfos: [{ - name: 'profile', - required: true, - typeInfo: '.CustomerProfileExType' - }] - }, { - localName: 'CreditCardMaskedType', - typeName: 'creditCardMaskedType', + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'cardNumber', - required: true + name: 'shippingInfo', + typeInfo: '.CustomerAddressType' }, { - name: 'expirationDate', - required: true + name: 'billingInfo', + typeInfo: '.CustomerAddressType' }, { - name: 'cardType' + name: 'cardInfo', + typeInfo: '.CreditCardMaskedType' }, { - name: 'cardArt', - typeInfo: '.CardArt' + name: 'paymentDetails', + typeInfo: '.PaymentDetails' }] }, { - localName: 'PaymentScheduleType', - typeName: 'paymentScheduleType', + localName: 'GetBatchStatisticsResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'interval', - typeInfo: '.PaymentScheduleType.Interval' - }, { - name: 'startDate', - typeInfo: 'Date' - }, { - name: 'totalOccurrences', - typeInfo: 'Short' - }, { - name: 'trialOccurrences', - typeInfo: 'Short' + name: 'batch', + typeInfo: '.BatchDetailsType' }] }, { - localName: 'SubscriptionDetail', + localName: 'SubscriptionPaymentType', + typeName: 'subscriptionPaymentType', propertyInfos: [{ name: 'id', required: true, typeInfo: 'Int' }, { - name: 'name' - }, { - name: 'status', - required: true - }, { - name: 'createTimeStampUTC', - required: true, - typeInfo: 'DateTime' - }, { - name: 'firstName' - }, { - name: 'lastName' - }, { - name: 'totalOccurrences', - required: true, - typeInfo: 'Int' - }, { - name: 'pastOccurrences', + name: 'payNum', required: true, typeInfo: 'Int' + }] + }, { + localName: 'CustomerProfileMaskedType', + typeName: 'customerProfileMaskedType', + baseTypeInfo: '.CustomerProfileExType', + propertyInfos: [{ + name: 'paymentProfiles', + minOccurs: 0, + collection: true, + typeInfo: '.CustomerPaymentProfileMaskedType' }, { - name: 'paymentMethod', + name: 'shipToList', + minOccurs: 0, + collection: true, + typeInfo: '.CustomerAddressExType' + }, { + name: 'profileType' + }] + }, { + localName: 'LineItemType', + typeName: 'lineItemType', + propertyInfos: [{ + name: 'itemId', required: true }, { - name: 'accountNumber' + name: 'name', + required: true }, { - name: 'invoice' + name: 'description' }, { - name: 'amount', + name: 'quantity', required: true, typeInfo: 'Decimal' }, { - name: 'currencyCode' - }, { - name: 'customerProfileId', + name: 'unitPrice', required: true, - typeInfo: 'Int' + typeInfo: 'Decimal' }, { - name: 'customerPaymentProfileId', - required: true, - typeInfo: 'Int' + name: 'taxable', + typeInfo: 'Boolean' }, { - name: 'customerShippingProfileId', - typeInfo: 'Int' + name: 'unitOfMeasure' + }, { + name: 'typeOfSupply' + }, { + name: 'taxRate', + typeInfo: 'Decimal' + }, { + name: 'taxAmount', + typeInfo: 'Decimal' + }, { + name: 'nationalTax', + typeInfo: 'Decimal' + }, { + name: 'localTax', + typeInfo: 'Decimal' + }, { + name: 'vatRate', + typeInfo: 'Decimal' + }, { + name: 'alternateTaxId' + }, { + name: 'alternateTaxType' + }, { + name: 'alternateTaxTypeApplied' + }, { + name: 'alternateTaxRate', + typeInfo: 'Decimal' + }, { + name: 'alternateTaxAmount', + typeInfo: 'Decimal' + }, { + name: 'totalAmount', + typeInfo: 'Decimal' + }, { + name: 'commodityCode' + }, { + name: 'productCode' + }, { + name: 'productSKU' + }, { + name: 'discountRate', + typeInfo: 'Decimal' + }, { + name: 'discountAmount', + typeInfo: 'Decimal' + }, { + name: 'taxIncludedInTotal', + typeInfo: 'Boolean' + }, { + name: 'taxIsAfterDiscount', + typeInfo: 'Boolean' }] }, { - localName: 'GetTransactionDetailsResponse', + localName: 'IsAliveResponse', typeName: null, - baseTypeInfo: '.ANetApiResponse', + baseTypeInfo: '.ANetApiResponse' + }, { + localName: 'UpdateCustomerProfileRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'transaction', + name: 'profile', required: true, - typeInfo: '.TransactionDetailsType' + typeInfo: '.CustomerProfileInfoExType' }] }, { - localName: 'ARBCreateSubscriptionResponse', + localName: 'DecryptPaymentDataRequest', typeName: null, - baseTypeInfo: '.ANetApiResponse', + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'subscriptionId' + name: 'opaqueData', + required: true, + typeInfo: '.OpaqueDataType' }, { - name: 'profile', - typeInfo: '.CustomerProfileIdType' + name: 'callId' }] }, { - localName: 'PermissionType', - typeName: 'permissionType', + localName: 'KeyBlock', propertyInfos: [{ - name: 'permissionName' + name: 'value', + required: true, + elementName: 'Value', + typeInfo: '.KeyValue' }] }, { - localName: 'PaymentProfile', - typeName: 'paymentProfile', + localName: 'WebCheckOutDataTypeToken', + typeName: 'webCheckOutDataTypeToken', propertyInfos: [{ - name: 'paymentProfileId', + name: 'cardNumber', + required: true + }, { + name: 'expirationDate', required: true }, { name: 'cardCode' + }, { + name: 'zip' + }, { + name: 'fullName' }] }, { - localName: 'ReturnedItemType', - typeName: 'returnedItemType', + localName: 'PaymentMaskedType', + typeName: 'paymentMaskedType', + propertyInfos: [{ + name: 'creditCard', + required: true, + typeInfo: '.CreditCardMaskedType' + }, { + name: 'bankAccount', + required: true, + typeInfo: '.BankAccountMaskedType' + }, { + name: 'tokenInformation', + required: true, + typeInfo: '.TokenMaskedType' + }] + }, { + localName: 'ArrayOfContactDetail', + propertyInfos: [{ + name: 'contactDetail', + minOccurs: 0, + collection: true, + typeInfo: '.ContactDetailType' + }] + }, { + localName: 'SubscriptionDetail', propertyInfos: [{ name: 'id', + required: true, + typeInfo: 'Int' + }, { + name: 'name' + }, { + name: 'status', required: true }, { - name: 'dateUTC', + name: 'createTimeStampUTC', required: true, typeInfo: 'DateTime' }, { - name: 'dateLocal', + name: 'firstName' + }, { + name: 'lastName' + }, { + name: 'totalOccurrences', required: true, - typeInfo: 'DateTime' + typeInfo: 'Int' + }, { + name: 'pastOccurrences', + required: true, + typeInfo: 'Int' + }, { + name: 'paymentMethod', + required: true + }, { + name: 'accountNumber' + }, { + name: 'invoice' + }, { + name: 'amount', + required: true, + typeInfo: 'Decimal' + }, { + name: 'currencyCode' }, { + name: 'customerProfileId', + required: true, + typeInfo: 'Int' + }, { + name: 'customerPaymentProfileId', + required: true, + typeInfo: 'Int' + }, { + name: 'customerShippingProfileId', + typeInfo: 'Int' + }] + }, { + localName: 'ArrayOfFraudFilterType', + propertyInfos: [{ + name: 'fraudFilter', + required: true, + maxOccurs: 1000, + collection: true + }] + }, { + localName: 'SecurePaymentContainerErrorType', + typeName: 'securePaymentContainerErrorType', + propertyInfos: [{ name: 'code', required: true }, { @@ -525,27 +608,58 @@ var Schema_Module_Factory = function () { required: true }] }, { - localName: 'GetTransactionDetailsRequest', + localName: 'ARBGetSubscriptionStatusResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'transId', - required: true + name: 'status' }] }, { - localName: 'ArrayOfPaymentMethod', + localName: 'TransactionResponse.SplitTenderPayments.SplitTenderPayment', + typeName: null, propertyInfos: [{ - name: 'paymentMethod', - minOccurs: 0, - collection: true + name: 'transId' + }, { + name: 'responseCode' + }, { + name: 'responseToCustomer' + }, { + name: 'authCode' + }, { + name: 'accountNumber' + }, { + name: 'accountType' + }, { + name: 'requestedAmount' + }, { + name: 'approvedAmount' + }, { + name: 'balanceOnCard' }] }, { - localName: 'ARBCancelSubscriptionRequest', + localName: 'DeleteCustomerShippingAddressResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiResponse' + }, { + localName: 'EmvTag', + typeName: 'emvTag', propertyInfos: [{ - name: 'subscriptionId', - required: true + name: 'name' + }, { + name: 'value' + }, { + name: 'formatted' + }] + }, { + localName: 'ARBGetSubscriptionListResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', + propertyInfos: [{ + name: 'totalNumInResultSet', + typeInfo: 'Int' + }, { + name: 'subscriptionDetails', + typeInfo: '.ArrayOfSubscription' }] }, { localName: 'CustomerPaymentProfileListItemType', @@ -569,673 +683,536 @@ var Schema_Module_Factory = function () { name: 'payment', required: true, typeInfo: '.PaymentMaskedType' + }, { + name: 'originalNetworkTransId' + }, { + name: 'originalAuthAmount', + typeInfo: 'Decimal' + }, { + name: 'excludeFromAccountUpdater', + typeInfo: 'Boolean' }] }, { - localName: 'DriversLicenseType', - typeName: 'driversLicenseType', + localName: 'GetCustomerShippingAddressResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'number', - required: true + name: 'defaultShippingAddress', + typeInfo: 'Boolean' }, { - name: 'state', - required: true + name: 'address', + typeInfo: '.CustomerAddressExType' }, { - name: 'dateOfBirth', - required: true + name: 'subscriptionIds', + typeInfo: '.SubscriptionIdList' }] }, { - localName: 'ProfileTransCaptureOnlyType', - typeName: 'profileTransCaptureOnlyType', - baseTypeInfo: '.ProfileTransOrderType', + localName: 'ArrayOfTransactionSummaryType', propertyInfos: [{ - name: 'approvalCode', - required: true + name: 'transaction', + minOccurs: 0, + collection: true, + typeInfo: '.TransactionSummaryType' }] }, { - localName: 'CustomerProfileSummaryType', - typeName: 'customerProfileSummaryType', - propertyInfos: [{ - name: 'customerProfileId' - }, { - name: 'description' - }, { - name: 'merchantCustomerId', - required: true - }, { - name: 'email' - }, { - name: 'createdDate', - required: true, - typeInfo: 'DateTime' - }] + localName: 'SendCustomerTransactionReceiptResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse' }, { - localName: 'KeyManagementScheme.DUKPT.DeviceInfo', + localName: 'ARBCreateSubscriptionResponse', typeName: null, + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'description', - required: true, - elementName: 'Description' + name: 'subscriptionId' + }, { + name: 'profile', + typeInfo: '.CustomerProfileIdType' }] }, { - localName: 'ArrayOfLineItem', + localName: 'ArrayOfReturnedItem', propertyInfos: [{ - name: 'lineItem', + name: 'returnedItem', minOccurs: 0, collection: true, - typeInfo: '.LineItemType' + typeInfo: '.ReturnedItemType' }] }, { - localName: 'ArrayOfTransactionSummaryType', + localName: 'CustomerProfileExType', + typeName: 'customerProfileExType', + baseTypeInfo: '.CustomerProfileBaseType', propertyInfos: [{ - name: 'transaction', - minOccurs: 0, - collection: true, - typeInfo: '.TransactionSummaryType' + name: 'customerProfileId' }] }, { - localName: 'SecurePaymentContainerResponse', + localName: 'GetUnsettledTransactionListRequest', typeName: null, - baseTypeInfo: '.ANetApiResponse', + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'opaqueData', - required: true, - typeInfo: '.OpaqueDataType' + name: 'status' + }, { + name: 'sorting', + typeInfo: '.TransactionListSorting' + }, { + name: 'paging', + typeInfo: '.Paging' }] }, { - localName: 'ARBUpdateSubscriptionRequest', + localName: 'CreateCustomerShippingAddressRequest', typeName: null, baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'subscriptionId', + name: 'customerProfileId', required: true }, { - name: 'subscription', + name: 'address', required: true, - typeInfo: '.ARBSubscriptionType' + typeInfo: '.CustomerAddressType' + }, { + name: 'defaultShippingAddress', + typeInfo: 'Boolean' }] }, { - localName: 'ProfileTransAmountType', - typeName: 'profileTransAmountType', + localName: 'GetTransactionDetailsResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'amount', + name: 'transaction', required: true, - typeInfo: 'Decimal' - }, { - name: 'tax', - typeInfo: '.ExtendedAmountType' + typeInfo: '.TransactionDetailsType' }, { - name: 'shipping', - typeInfo: '.ExtendedAmountType' + name: 'clientId' }, { - name: 'duty', - typeInfo: '.ExtendedAmountType' + name: 'transrefId' + }] + }, { + localName: 'TransactionResponse.EmvResponse', + typeName: null, + propertyInfos: [{ + name: 'tlvData' }, { - name: 'lineItems', - minOccurs: 0, - maxOccurs: 30, - collection: true, - typeInfo: '.LineItemType' + name: 'tags', + typeInfo: '.TransactionResponse.EmvResponse.Tags' }] }, { - localName: 'PaymentEmvType', - typeName: 'paymentEmvType', + localName: 'GetCustomerProfileRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'emvData', - required: true, - typeInfo: 'AnyType' + name: 'customerProfileId' }, { - name: 'emvDescriptor', - required: true, - typeInfo: 'AnyType' + name: 'merchantCustomerId' }, { - name: 'emvVersion', - required: true, - typeInfo: 'AnyType' + name: 'email' + }, { + name: 'unmaskExpirationDate', + typeInfo: 'Boolean' + }, { + name: 'includeIssuerInfo', + typeInfo: 'Boolean' }] }, { - localName: 'OpaqueDataType', - typeName: 'opaqueDataType', + localName: 'CustomerPaymentProfileExType', + typeName: 'customerPaymentProfileExType', + baseTypeInfo: '.CustomerPaymentProfileType', propertyInfos: [{ - name: 'dataDescriptor', + name: 'customerPaymentProfileId' + }] + }, { + localName: 'TransactionDetailsType.EmvDetails.Tag', + typeName: null, + propertyInfos: [{ + name: 'tagId', required: true }, { - name: 'dataValue', + name: 'data', required: true - }, { - name: 'dataKey' }] }, { - localName: 'ProcessorType', - typeName: 'processorType', + localName: 'ListOfAUDetailsType', propertyInfos: [{ - name: 'name', - required: true + name: 'auUpdateOrAuDelete', + minOccurs: 0, + collection: true, + elementTypeInfos: [{ + elementName: 'auUpdate', + typeInfo: '.AuUpdateType' + }, { + elementName: 'auDelete', + typeInfo: '.AuDeleteType' + }], + type: 'elements' }] }, { - localName: 'KeyManagementScheme.DUKPT', + localName: 'CreateCustomerProfileResponse', typeName: null, + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'operation', - required: true, - elementName: 'Operation' + name: 'customerProfileId' }, { - name: 'mode', + name: 'customerPaymentProfileIdList', required: true, - elementName: 'Mode', - typeInfo: '.KeyManagementScheme.DUKPT.Mode' + typeInfo: '.ArrayOfNumericString' }, { - name: 'deviceInfo', + name: 'customerShippingAddressIdList', required: true, - elementName: 'DeviceInfo', - typeInfo: '.KeyManagementScheme.DUKPT.DeviceInfo' + typeInfo: '.ArrayOfNumericString' }, { - name: 'encryptedData', + name: 'validationDirectResponseList', required: true, - elementName: 'EncryptedData', - typeInfo: '.KeyManagementScheme.DUKPT.EncryptedData' + typeInfo: '.ArrayOfString' }] }, { - localName: 'MobileDeviceLoginResponse', + localName: 'GetCustomerPaymentProfileNonceResponse', typeName: null, baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'merchantContact', - required: true, - typeInfo: '.MerchantContactType' - }, { - name: 'userPermissions', - required: true, - typeInfo: '.ArrayOfPermissionType' - }, { - name: 'merchantAccount', - typeInfo: '.TransRetailInfoType' + name: 'opaqueData', + typeInfo: '.OpaqueDataType' }] }, { - localName: 'ProfileTransVoidType', - typeName: 'profileTransVoidType', + localName: 'DeleteCustomerProfileRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'customerProfileId' - }, { - name: 'customerPaymentProfileId' - }, { - name: 'customerShippingAddressId' - }, { - name: 'transId', + name: 'customerProfileId', required: true }] }, { - localName: 'SubscriptionPaymentType', - typeName: 'subscriptionPaymentType', + localName: 'UserField', + typeName: 'userField', propertyInfos: [{ - name: 'id', - required: true, - typeInfo: 'Int' + name: 'name' }, { - name: 'payNum', - required: true, - typeInfo: 'Int' + name: 'value' }] }, { - localName: 'TransactionResponse.Messages', + localName: 'TransactionRequestType.UserFields', typeName: null, propertyInfos: [{ - name: 'message', + name: 'userField', minOccurs: 0, + maxOccurs: 20, collection: true, - typeInfo: '.TransactionResponse.Messages.Message' + typeInfo: '.UserField' }] }, { - localName: 'GetSettledBatchListResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse', + localName: 'ArrayOfSubscription', propertyInfos: [{ - name: 'batchList', - typeInfo: '.ArrayOfBatchDetailsType' + name: 'subscriptionDetail', + minOccurs: 0, + collection: true, + typeInfo: '.SubscriptionDetail' }] }, { - localName: 'ArrayOfReturnedItem', + localName: 'ArrayOfBatchDetailsType', propertyInfos: [{ - name: 'returnedItem', + name: 'batch', minOccurs: 0, collection: true, - typeInfo: '.ReturnedItemType' + typeInfo: '.BatchDetailsType' }] }, { - localName: 'KeyManagementScheme', + localName: 'AuUpdateType', + typeName: 'auUpdateType', + baseTypeInfo: '.AuDetailsType', propertyInfos: [{ - name: 'dukpt', - required: true, - elementName: 'DUKPT', - typeInfo: '.KeyManagementScheme.DUKPT' - }] - }, { - localName: 'EncryptedTrackDataType', - typeName: 'encryptedTrackDataType', - propertyInfos: [{ - name: 'formOfPayment', - required: true, - elementName: 'FormOfPayment', - typeInfo: '.KeyBlock' - }] - }, { - localName: 'PaymentType', - typeName: 'paymentType', - propertyInfos: [{ - name: 'creditCard', - required: true, - typeInfo: '.CreditCardType' - }, { - name: 'bankAccount', - required: true, - typeInfo: '.BankAccountType' - }, { - name: 'trackData', - required: true, - typeInfo: '.CreditCardTrackType' - }, { - name: 'encryptedTrackData', - required: true, - typeInfo: '.EncryptedTrackDataType' - }, { - name: 'payPal', - required: true, - typeInfo: '.PayPalType' - }, { - name: 'opaqueData', + name: 'newCreditCard', required: true, - typeInfo: '.OpaqueDataType' + typeInfo: '.CreditCardMaskedType' }, { - name: 'emv', + name: 'oldCreditCard', required: true, - typeInfo: '.PaymentEmvType' + typeInfo: '.CreditCardMaskedType' }] }, { - localName: 'LogoutRequest', + localName: 'GetHostedProfilePageResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest' + baseTypeInfo: '.ANetApiResponse', + propertyInfos: [{ + name: 'token', + required: true + }] }, { - localName: 'CreateCustomerProfileTransactionRequest', + localName: 'GetHostedPaymentPageResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'transaction', - required: true, - typeInfo: '.ProfileTransactionType' - }, { - name: 'extraOptions' + name: 'token', + required: true }] }, { - localName: 'DeleteCustomerProfileRequest', + localName: 'GetAUJobSummaryRequest', typeName: null, baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'customerProfileId', + name: 'month', required: true }] }, { - localName: 'TransactionResponse.UserFields', - typeName: null, + localName: 'TransRetailInfoType', + typeName: 'transRetailInfoType', propertyInfos: [{ - name: 'userField', - minOccurs: 0, - maxOccurs: 20, - collection: true, - typeInfo: '.UserField' + name: 'marketType' + }, { + name: 'deviceType' + }, { + name: 'customerSignature' + }, { + name: 'terminalNumber' }] }, { - localName: 'CustomerPaymentProfileSorting', + localName: 'CustomerPaymentProfileType', + typeName: 'customerPaymentProfileType', + baseTypeInfo: '.CustomerPaymentProfileBaseType', propertyInfos: [{ - name: 'orderBy', - required: true + name: 'payment', + typeInfo: '.PaymentType' }, { - name: 'orderDescending', - required: true, + name: 'driversLicense', + typeInfo: '.DriversLicenseType' + }, { + name: 'taxId' + }, { + name: 'defaultPaymentProfile', + typeInfo: 'Boolean' + }, { + name: 'subsequentAuthInformation', + typeInfo: '.SubsequentAuthInformation' + }, { + name: 'excludeFromAccountUpdater', typeInfo: 'Boolean' }] }, { - localName: 'MobileDeviceLoginRequest', + localName: 'PaymentScheduleType.Interval', typeName: null, - baseTypeInfo: '.ANetApiRequest' + propertyInfos: [{ + name: 'length', + required: true, + typeInfo: 'Short' + }, { + name: 'unit', + required: true + }] }, { - localName: 'TransactionResponse.PrePaidCard', - typeName: null, + localName: 'FraudInformationType', + typeName: 'fraudInformationType', propertyInfos: [{ - name: 'requestedAmount' + name: 'fraudFilterList', + required: true, + typeInfo: '.ArrayOfFraudFilterType' }, { - name: 'approvedAmount' + name: 'fraudAction', + required: true + }] + }, { + localName: 'MobileDeviceType', + typeName: 'mobileDeviceType', + propertyInfos: [{ + name: 'mobileDeviceId', + required: true }, { - name: 'balanceOnCard' + name: 'description' + }, { + name: 'phoneNumber' + }, { + name: 'devicePlatform' + }, { + name: 'deviceActivation' }] }, { - localName: 'MobileDeviceRegistrationResponse', + localName: 'KeyManagementScheme.DUKPT', typeName: null, - baseTypeInfo: '.ANetApiResponse' - }, { - localName: 'ProfileTransactionType', - typeName: 'profileTransactionType', propertyInfos: [{ - name: 'profileTransAuthCapture', - required: true, - typeInfo: '.ProfileTransAuthCaptureType' - }, { - name: 'profileTransAuthOnly', + name: 'operation', required: true, - typeInfo: '.ProfileTransAuthOnlyType' + elementName: 'Operation' }, { - name: 'profileTransPriorAuthCapture', + name: 'mode', required: true, - typeInfo: '.ProfileTransPriorAuthCaptureType' + elementName: 'Mode', + typeInfo: '.KeyManagementScheme.DUKPT.Mode' }, { - name: 'profileTransCaptureOnly', + name: 'deviceInfo', required: true, - typeInfo: '.ProfileTransCaptureOnlyType' + elementName: 'DeviceInfo', + typeInfo: '.KeyManagementScheme.DUKPT.DeviceInfo' }, { - name: 'profileTransRefund', + name: 'encryptedData', required: true, - typeInfo: '.ProfileTransRefundType' + elementName: 'EncryptedData', + typeInfo: '.KeyManagementScheme.DUKPT.EncryptedData' + }] + }, { + localName: 'MobileDeviceLoginRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest' + }, { + localName: 'CreditCardTrackType', + typeName: 'creditCardTrackType', + propertyInfos: [{ + name: 'track1', + required: true }, { - name: 'profileTransVoid', - required: true, - typeInfo: '.ProfileTransVoidType' + name: 'track2', + required: true }] }, { - localName: 'CustomerPaymentProfileMaskedType', - typeName: 'customerPaymentProfileMaskedType', - baseTypeInfo: '.CustomerPaymentProfileBaseType', + localName: 'ProfileTransRefundType', + typeName: 'profileTransRefundType', + baseTypeInfo: '.ProfileTransAmountType', propertyInfos: [{ name: 'customerProfileId' }, { - name: 'customerPaymentProfileId', - required: true + name: 'customerPaymentProfileId' }, { - name: 'defaultPaymentProfile', - typeInfo: 'Boolean' + name: 'customerShippingAddressId' }, { - name: 'payment', - typeInfo: '.PaymentMaskedType' + name: 'creditCardNumberMasked' }, { - name: 'driversLicense', - typeInfo: '.DriversLicenseMaskedType' + name: 'bankRoutingNumberMasked' }, { - name: 'taxId' + name: 'bankAccountNumberMasked' }, { - name: 'subscriptionIds', - typeInfo: '.SubscriptionIdList' + name: 'order', + typeInfo: '.OrderExType' + }, { + name: 'transId' }] }, { - localName: 'GetSettledBatchListRequest', + localName: 'LogoutRequest', typeName: null, - baseTypeInfo: '.ANetApiRequest', - propertyInfos: [{ - name: 'includeStatistics', - typeInfo: 'Boolean' - }, { - name: 'firstSettlementDate', - typeInfo: 'DateTime' - }, { - name: 'lastSettlementDate', - typeInfo: 'DateTime' - }] + baseTypeInfo: '.ANetApiRequest' }, { - localName: 'DecryptPaymentDataResponse', + localName: 'CreateCustomerProfileTransactionResponse', typeName: null, baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'shippingInfo', - typeInfo: '.CustomerAddressType' - }, { - name: 'billingInfo', - typeInfo: '.CustomerAddressType' - }, { - name: 'cardInfo', - typeInfo: '.CreditCardMaskedType' + name: 'transactionResponse', + typeInfo: '.TransactionResponse' }, { - name: 'paymentDetails', - typeInfo: '.PaymentDetails' + name: 'directResponse' }] }, { - localName: 'AuthenticateTestRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest' - }, { - localName: 'ARBSubscriptionType', + localName: 'TransactionResponse', + typeName: 'transactionResponse', propertyInfos: [{ - name: 'name' + name: 'responseCode' }, { - name: 'paymentSchedule', - typeInfo: '.PaymentScheduleType' + name: 'rawResponseCode' }, { - name: 'amount', - typeInfo: 'Decimal' + name: 'authCode' }, { - name: 'trialAmount', - typeInfo: 'Decimal' - }, { - name: 'payment', - typeInfo: '.PaymentType' - }, { - name: 'order', - typeInfo: '.OrderType' - }, { - name: 'customer', - typeInfo: '.CustomerType' - }, { - name: 'billTo', - typeInfo: '.NameAndAddressType' - }, { - name: 'shipTo', - typeInfo: '.NameAndAddressType' + name: 'avsResultCode' }, { - name: 'profile', - typeInfo: '.CustomerProfileIdType' - }] - }, { - localName: 'CustomerAddressType', - typeName: 'customerAddressType', - baseTypeInfo: '.NameAndAddressType', - propertyInfos: [{ - name: 'phoneNumber' + name: 'cvvResultCode' }, { - name: 'faxNumber' + name: 'cavvResultCode' }, { - name: 'email' - }] - }, { - localName: 'SubscriptionCustomerProfileType', - typeName: 'subscriptionCustomerProfileType', - baseTypeInfo: '.CustomerProfileExType', - propertyInfos: [{ - name: 'paymentProfile', - typeInfo: '.CustomerPaymentProfileMaskedType' + name: 'transId' }, { - name: 'shippingProfile', - typeInfo: '.CustomerAddressExType' - }] - }, { - localName: 'CustomerProfileMaskedType', - typeName: 'customerProfileMaskedType', - baseTypeInfo: '.CustomerProfileExType', - propertyInfos: [{ - name: 'paymentProfiles', - minOccurs: 0, - collection: true, - typeInfo: '.CustomerPaymentProfileMaskedType' + name: 'refTransID' }, { - name: 'shipToList', - minOccurs: 0, - collection: true, - typeInfo: '.CustomerAddressExType' - }] - }, { - localName: 'CardArt', - typeName: 'cardArt', - propertyInfos: [{ - name: 'cardBrand' + name: 'transHash' }, { - name: 'cardImageHeight' + name: 'testRequest' }, { - name: 'cardImageUrl' + name: 'accountNumber' }, { - name: 'cardImageWidth' + name: 'entryMode' }, { - name: 'cardType' - }] - }, { - localName: 'CreateCustomerPaymentProfileResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse', - propertyInfos: [{ - name: 'customerProfileId' + name: 'accountType' }, { - name: 'customerPaymentProfileId' + name: 'splitTenderId' }, { - name: 'validationDirectResponse' - }] - }, { - localName: 'UpdateSplitTenderGroupRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest', - propertyInfos: [{ - name: 'splitTenderId', - required: true + name: 'prePaidCard', + typeInfo: '.TransactionResponse.PrePaidCard' }, { - name: 'splitTenderStatus', - required: true - }] - }, { - localName: 'PaymentDetails', - typeName: 'paymentDetails', - propertyInfos: [{ - name: 'currency' + name: 'messages', + typeInfo: '.TransactionResponse.Messages' }, { - name: 'promoCode' + name: 'errors', + typeInfo: '.TransactionResponse.Errors' }, { - name: 'misc' + name: 'splitTenderPayments', + typeInfo: '.TransactionResponse.SplitTenderPayments' }, { - name: 'giftWrap' + name: 'userFields', + typeInfo: '.TransactionResponse.UserFields' }, { - name: 'discount' + name: 'shipTo', + typeInfo: '.NameAndAddressType' }, { - name: 'tax' + name: 'secureAcceptance', + typeInfo: '.TransactionResponse.SecureAcceptance' }, { - name: 'shippingHandling' + name: 'emvResponse', + typeInfo: '.TransactionResponse.EmvResponse' }, { - name: 'subTotal' + name: 'transHashSha2' }, { - name: 'orderID' + name: 'profile', + typeInfo: '.CustomerProfileIdType' }, { - name: 'amount' - }] - }, { - localName: 'ArrayOfCurrencyCode', - propertyInfos: [{ - name: 'currency', - minOccurs: 0, - collection: true + name: 'networkTransId' }] }, { - localName: 'GetCustomerProfileIdsRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest' - }, { - localName: 'CreateTransactionRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest', + localName: 'ProfileTransAmountType', + typeName: 'profileTransAmountType', propertyInfos: [{ - name: 'transactionRequest', + name: 'amount', required: true, - typeInfo: '.TransactionRequestType' - }] - }, { - localName: 'ProfileTransRefundType', - typeName: 'profileTransRefundType', - baseTypeInfo: '.ProfileTransAmountType', - propertyInfos: [{ - name: 'customerProfileId' - }, { - name: 'customerPaymentProfileId' - }, { - name: 'customerShippingAddressId' - }, { - name: 'creditCardNumberMasked' + typeInfo: 'Decimal' }, { - name: 'bankRoutingNumberMasked' + name: 'tax', + typeInfo: '.ExtendedAmountType' }, { - name: 'bankAccountNumberMasked' + name: 'shipping', + typeInfo: '.ExtendedAmountType' }, { - name: 'order', - typeInfo: '.OrderExType' + name: 'duty', + typeInfo: '.ExtendedAmountType' }, { - name: 'transId' - }] - }, { - localName: 'IsAliveRequest', - typeName: null, - propertyInfos: [{ - name: 'refId' + name: 'lineItems', + minOccurs: 0, + maxOccurs: 30, + collection: true, + typeInfo: '.LineItemType' }] }, { - localName: 'CustomerPaymentProfileBaseType', - typeName: 'customerPaymentProfileBaseType', + localName: 'PayPalType', + typeName: 'payPalType', propertyInfos: [{ - name: 'customerType' + name: 'successUrl' }, { - name: 'billTo', - typeInfo: '.CustomerAddressType' - }] - }, { - localName: 'GetCustomerPaymentProfileRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest', - propertyInfos: [{ - name: 'customerProfileId', - required: true + name: 'cancelUrl' }, { - name: 'customerPaymentProfileId' + name: 'paypalLc' }, { - name: 'unmaskExpirationDate', - typeInfo: 'Boolean' - }] - }, { - localName: 'GetHostedPaymentPageRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest', - propertyInfos: [{ - name: 'transactionRequest', - required: true, - typeInfo: '.TransactionRequestType' + name: 'paypalHdrImg' }, { - name: 'hostedPaymentSettings', - typeInfo: '.ArrayOfSetting' + name: 'paypalPayflowcolor' + }, { + name: 'payerID' }] }, { - localName: 'CreateCustomerShippingAddressRequest', + localName: 'CreateCustomerPaymentProfileResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'customerProfileId', - required: true + name: 'customerProfileId' }, { - name: 'address', - required: true, - typeInfo: '.CustomerAddressType' + name: 'customerPaymentProfileId' }, { - name: 'defaultShippingAddress', - typeInfo: 'Boolean' + name: 'validationDirectResponse' }] }, { - localName: 'SubscriptionIdList', + localName: 'ArrayOfCustomerPaymentProfileListItemType', + typeName: 'arrayOfCustomerPaymentProfileListItemType', propertyInfos: [{ - name: 'subscriptionId', + name: 'paymentProfile', minOccurs: 0, - collection: true - }] - }, { - localName: 'ValidateCustomerPaymentProfileResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse', - propertyInfos: [{ - name: 'directResponse' + collection: true, + typeInfo: '.CustomerPaymentProfileListItemType' }] }, { localName: 'BatchStatisticType', @@ -1312,103 +1289,41 @@ var Schema_Module_Factory = function () { typeInfo: 'Int' }] }, { - localName: 'BatchDetailsType', - typeName: 'batchDetailsType', + localName: 'ExtendedAmountType', + typeName: 'extendedAmountType', propertyInfos: [{ - name: 'batchId', - required: true + name: 'amount', + required: true, + typeInfo: 'Decimal' }, { - name: 'settlementTimeUTC', - typeInfo: 'DateTime' - }, { - name: 'settlementTimeLocal', - typeInfo: 'DateTime' - }, { - name: 'settlementState', - required: true - }, { - name: 'paymentMethod' - }, { - name: 'marketType' - }, { - name: 'product' + name: 'name' }, { - name: 'statistics', - typeInfo: '.ArrayOfBatchStatisticType' + name: 'description' }] }, { - localName: 'DeleteCustomerPaymentProfileRequest', + localName: 'GetBatchStatisticsRequest', typeName: null, baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'customerProfileId', - required: true - }, { - name: 'customerPaymentProfileId', + name: 'batchId', required: true }] }, { - localName: 'TransactionResponse.SplitTenderPayments', - typeName: null, - propertyInfos: [{ - name: 'splitTenderPayment', - minOccurs: 0, - collection: true, - typeInfo: '.TransactionResponse.SplitTenderPayments.SplitTenderPayment' - }] - }, { - localName: 'AuUpdateType', - typeName: 'auUpdateType', - baseTypeInfo: '.AuDetailsType', - propertyInfos: [{ - name: 'newCreditCard', - required: true, - typeInfo: '.CreditCardMaskedType' - }, { - name: 'oldCreditCard', - required: true, - typeInfo: '.CreditCardMaskedType' - }] - }, { - localName: 'UpdateHeldTransactionResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse', - propertyInfos: [{ - name: 'transactionResponse', - typeInfo: '.TransactionResponse' - }] - }, { - localName: 'CreateCustomerProfileTransactionResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse', - propertyInfos: [{ - name: 'transactionResponse', - typeInfo: '.TransactionResponse' - }, { - name: 'directResponse' - }] - }, { - localName: 'CreditCardType', - typeName: 'creditCardType', - baseTypeInfo: '.CreditCardSimpleType', + localName: 'HeldTransactionRequestType', + typeName: 'heldTransactionRequestType', propertyInfos: [{ - name: 'cardCode' - }, { - name: 'isPaymentToken', - typeInfo: 'Boolean' + name: 'action', + required: true }, { - name: 'cryptogram' + name: 'refTransId', + required: true }] }, { - localName: 'TransactionDetailsType', - typeName: 'transactionDetailsType', + localName: 'TransactionSummaryType', + typeName: 'transactionSummaryType', propertyInfos: [{ name: 'transId', required: true - }, { - name: 'refTransId' - }, { - name: 'splitTenderId' }, { name: 'submitTimeUTC', required: true, @@ -1417,319 +1332,246 @@ var Schema_Module_Factory = function () { name: 'submitTimeLocal', required: true, typeInfo: 'DateTime' - }, { - name: 'transactionType', - required: true }, { name: 'transactionStatus', required: true }, { - name: 'responseCode', - required: true, - typeInfo: 'Int' + name: 'invoiceNumber' }, { - name: 'responseReasonCode', - required: true, - typeInfo: 'Int' + name: 'firstName' }, { - name: 'subscription', - typeInfo: '.SubscriptionPaymentType' + name: 'lastName' }, { - name: 'responseReasonDescription', + name: 'accountType', required: true }, { - name: 'authCode' - }, { - name: 'avsResponse', - elementName: 'AVSResponse' - }, { - name: 'cardCodeResponse' - }, { - name: 'cavvResponse', - elementName: 'CAVVResponse' - }, { - name: 'fdsFilterAction', - elementName: 'FDSFilterAction' - }, { - name: 'fdsFilters', - elementName: 'FDSFilters', - typeInfo: '.ArrayOfFDSFilter' - }, { - name: 'batch', - typeInfo: '.BatchDetailsType' - }, { - name: 'order', - typeInfo: '.OrderExType' - }, { - name: 'requestedAmount', - typeInfo: 'Decimal' - }, { - name: 'authAmount', - required: true, - typeInfo: 'Decimal' + name: 'accountNumber', + required: true }, { name: 'settleAmount', required: true, typeInfo: 'Decimal' }, { - name: 'tax', - typeInfo: '.ExtendedAmountType' - }, { - name: 'shipping', - typeInfo: '.ExtendedAmountType' - }, { - name: 'duty', - typeInfo: '.ExtendedAmountType' - }, { - name: 'lineItems', - typeInfo: '.ArrayOfLineItem' - }, { - name: 'prepaidBalanceRemaining', - typeInfo: 'Decimal' - }, { - name: 'taxExempt', - typeInfo: 'Boolean' - }, { - name: 'payment', - required: true, - typeInfo: '.PaymentMaskedType' - }, { - name: 'customer', - typeInfo: '.CustomerDataType' - }, { - name: 'billTo', - typeInfo: '.CustomerAddressType' - }, { - name: 'shipTo', - typeInfo: '.NameAndAddressType' - }, { - name: 'recurringBilling', - typeInfo: 'Boolean' - }, { - name: 'customerIP' + name: 'marketType' }, { name: 'product' - }, { - name: 'entryMode' - }, { - name: 'marketType' }, { name: 'mobileDeviceId' }, { - name: 'customerSignature' + name: 'subscription', + typeInfo: '.SubscriptionPaymentType' }, { - name: 'returnedItems', - typeInfo: '.ArrayOfReturnedItem' + name: 'hasReturnedItems', + typeInfo: 'Boolean' }, { - name: 'solution', - typeInfo: '.SolutionType' + name: 'fraudInformation', + typeInfo: '.FraudInformationType' }, { - name: 'emvDetails', - typeInfo: '.TransactionDetailsType.EmvDetails' + name: 'profile', + typeInfo: '.CustomerProfileIdType' }] }, { - localName: 'ArrayOfPermissionType', + localName: 'ArrayOfPaymentMethod', propertyInfos: [{ - name: 'permission', + name: 'paymentMethod', minOccurs: 0, - collection: true, - typeInfo: '.PermissionType' + collection: true }] }, { - localName: 'ArrayOfFDSFilter', + localName: 'ArbTransaction', + typeName: 'arbTransaction', propertyInfos: [{ - name: 'fdsFilter', - minOccurs: 0, - collection: true, - elementName: 'FDSFilter', - typeInfo: '.FDSFilterType' + name: 'transId' + }, { + name: 'response' + }, { + name: 'submitTimeUTC', + typeInfo: 'DateTime' + }, { + name: 'payNum', + typeInfo: 'Int' + }, { + name: 'attemptNum', + typeInfo: 'Int' }] }, { - localName: 'BankAccountMaskedType', - typeName: 'bankAccountMaskedType', + localName: 'SendCustomerTransactionReceiptRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'accountType' - }, { - name: 'routingNumber', - required: true - }, { - name: 'accountNumber', + name: 'transId', required: true }, { - name: 'nameOnAccount', + name: 'customerEmail', required: true }, { - name: 'echeckType' - }, { - name: 'bankName' + name: 'emailSettings', + typeInfo: '.EmailSettingsType' }] }, { - localName: 'CreateTransactionResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse', + localName: 'ProfileTransAuthCaptureType', + typeName: 'profileTransAuthCaptureType', + baseTypeInfo: '.ProfileTransOrderType' + }, { + localName: 'CreateProfileResponse', + typeName: 'createProfileResponse', propertyInfos: [{ - name: 'transactionResponse', + name: 'messages', required: true, - typeInfo: '.TransactionResponse' + typeInfo: '.MessagesType' }, { - name: 'profileResponse', - typeInfo: '.CreateProfileResponse' + name: 'customerProfileId' + }, { + name: 'customerPaymentProfileIdList', + typeInfo: '.ArrayOfNumericString' + }, { + name: 'customerShippingAddressIdList', + typeInfo: '.ArrayOfNumericString' }] }, { - localName: 'EnumCollection', + localName: 'SecurePaymentContainerRequest', typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'customerProfileSummaryType', + name: 'data', required: true, - typeInfo: '.CustomerProfileSummaryType' - }, { - name: 'paymentSimpleType', - required: true, - typeInfo: '.PaymentSimpleType' - }, { - name: 'accountTypeEnum', - required: true - }, { - name: 'cardTypeEnum', - required: true - }, { - name: 'fdsFilterActionEnum', - required: true, - elementName: 'FDSFilterActionEnum' - }, { - name: 'permissionsEnum', - required: true - }, { - name: 'settingNameEnum', - required: true - }, { - name: 'settlementStateEnum', - required: true - }, { - name: 'transactionStatusEnum', - required: true - }, { - name: 'transactionTypeEnum', - required: true + typeInfo: '.WebCheckOutDataType' }] }, { - localName: 'UpdateCustomerShippingAddressRequest', + localName: 'AuthenticateTestRequest', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiRequest' + }, { + localName: 'SolutionType', + typeName: 'solutionType', propertyInfos: [{ - name: 'customerProfileId', + name: 'id', required: true }, { - name: 'address', - required: true, - typeInfo: '.CustomerAddressExType' + name: 'name' }, { - name: 'defaultShippingAddress', - typeInfo: 'Boolean' + name: 'vendorName' }] }, { - localName: 'GetCustomerProfileRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest', + localName: 'ARBGetSubscriptionListSorting', propertyInfos: [{ - name: 'customerProfileId', + name: 'orderBy', required: true }, { - name: 'unmaskExpirationDate', + name: 'orderDescending', + required: true, typeInfo: 'Boolean' }] }, { - localName: 'TransactionResponse.SecureAcceptance', + localName: 'GetMerchantDetailsRequest', typeName: null, + baseTypeInfo: '.ANetApiRequest' + }, { + localName: 'CustomerProfileIdType', + typeName: 'customerProfileIdType', propertyInfos: [{ - name: 'secureAcceptanceUrl', - elementName: 'SecureAcceptanceUrl' + name: 'customerProfileId', + required: true }, { - name: 'payerID', - elementName: 'PayerID' + name: 'customerPaymentProfileId' }, { - name: 'payerEmail', - elementName: 'PayerEmail' + name: 'customerAddressId' }] }, { - localName: 'EmvTag', - typeName: 'emvTag', + localName: 'PaymentDetails', + typeName: 'paymentDetails', propertyInfos: [{ - name: 'name' + name: 'currency' }, { - name: 'value' + name: 'promoCode' }, { - name: 'formatted' + name: 'misc' + }, { + name: 'giftWrap' + }, { + name: 'discount' + }, { + name: 'tax' + }, { + name: 'shippingHandling' + }, { + name: 'subTotal' + }, { + name: 'orderID' + }, { + name: 'amount' }] }, { - localName: 'CustomerProfileType', - typeName: 'customerProfileType', - baseTypeInfo: '.CustomerProfileBaseType', + localName: 'TransactionResponse.SplitTenderPayments', + typeName: null, propertyInfos: [{ - name: 'paymentProfiles', - minOccurs: 0, - collection: true, - typeInfo: '.CustomerPaymentProfileType' - }, { - name: 'shipToList', + name: 'splitTenderPayment', minOccurs: 0, collection: true, - typeInfo: '.CustomerAddressType' + typeInfo: '.TransactionResponse.SplitTenderPayments.SplitTenderPayment' }] }, { - localName: 'GetUnsettledTransactionListRequest', + localName: 'GetCustomerPaymentProfileListResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'status' - }, { - name: 'sorting', - typeInfo: '.TransactionListSorting' + name: 'totalNumInResultSet', + required: true, + typeInfo: 'Int' }, { - name: 'paging', - typeInfo: '.Paging' + name: 'paymentProfiles', + typeInfo: '.ArrayOfCustomerPaymentProfileListItemType' }] }, { - localName: 'ARBGetSubscriptionListRequest', + localName: 'TransactionResponse.EmvResponse.Tags', typeName: null, - baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'searchType', + name: 'tag', + required: true, + collection: true, + typeInfo: '.EmvTag' + }] + }, { + localName: 'MessagesType.Message', + typeName: null, + propertyInfos: [{ + name: 'code', required: true }, { - name: 'sorting', - typeInfo: '.ARBGetSubscriptionListSorting' - }, { - name: 'paging', - typeInfo: '.Paging' + name: 'text', + required: true }] }, { - localName: 'CustomerAddressExType', - typeName: 'customerAddressExType', - baseTypeInfo: '.CustomerAddressType', + localName: 'AuthorizationIndicatorType', + typeName: 'authorizationIndicatorType', propertyInfos: [{ - name: 'customerAddressId' + name: 'authorizationIndicator' }] }, { - localName: 'BankAccountType', - typeName: 'bankAccountType', + localName: 'TransactionListSorting', propertyInfos: [{ - name: 'accountType' - }, { - name: 'routingNumber', - required: true - }, { - name: 'accountNumber', + name: 'orderBy', required: true }, { - name: 'nameOnAccount', + name: 'orderDescending', + required: true, + typeInfo: 'Boolean' + }] + }, { + localName: 'PaymentProfile', + typeName: 'paymentProfile', + propertyInfos: [{ + name: 'paymentProfileId', required: true }, { - name: 'echeckType' - }, { - name: 'bankName' - }, { - name: 'checkNumber' + name: 'cardCode' + }] + }, { + localName: 'ArrayOfCurrencyCode', + propertyInfos: [{ + name: 'currency', + minOccurs: 0, + collection: true }] }, { localName: 'Paging', @@ -1743,208 +1585,216 @@ var Schema_Module_Factory = function () { typeInfo: 'Int' }] }, { - localName: 'GetHostedPaymentPageResponse', + localName: 'GetCustomerShippingAddressRequest', typeName: null, - baseTypeInfo: '.ANetApiResponse', + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'token', + name: 'customerProfileId', required: true + }, { + name: 'customerAddressId' }] }, { - localName: 'DeleteCustomerShippingAddressResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse' - }, { - localName: 'GetAUJobSummaryRequest', + localName: 'ARBGetSubscriptionStatusRequest', typeName: null, baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'month', + name: 'subscriptionId', required: true }] }, { - localName: 'ARBSubscriptionMaskedType', - propertyInfos: [{ - name: 'name' - }, { - name: 'paymentSchedule', - typeInfo: '.PaymentScheduleType' - }, { - name: 'amount', - typeInfo: 'Decimal' - }, { - name: 'trialAmount', - typeInfo: 'Decimal' - }, { - name: 'status' - }, { - name: 'profile', - typeInfo: '.SubscriptionCustomerProfileType' - }, { - name: 'order', - typeInfo: '.OrderType' - }] - }, { - localName: 'ARBCancelSubscriptionResponse', + localName: 'UpdateSplitTenderGroupResponse', typeName: null, baseTypeInfo: '.ANetApiResponse' }, { - localName: 'UpdateHeldTransactionRequest', + localName: 'CreateTransactionResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'heldTransactionRequest', + name: 'transactionResponse', required: true, - typeInfo: '.HeldTransactionRequestType' - }] - }, { - localName: 'MobileDeviceType', - typeName: 'mobileDeviceType', - propertyInfos: [{ - name: 'mobileDeviceId', - required: true - }, { - name: 'description' - }, { - name: 'phoneNumber' - }, { - name: 'devicePlatform' + typeInfo: '.TransactionResponse' }, { - name: 'deviceActivation' + name: 'profileResponse', + typeInfo: '.CreateProfileResponse' }] }, { - localName: 'GetUnsettledTransactionListResponse', + localName: 'TransactionDetailsType.EmvDetails', typeName: null, - baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'transactions', - typeInfo: '.ArrayOfTransactionSummaryType' - }, { - name: 'totalNumInResultSet', - typeInfo: 'Int' - }] + name: 'tag', + required: true, + collection: true, + typeInfo: '.TransactionDetailsType.EmvDetails.Tag' + }] }, { - localName: 'ARBGetSubscriptionRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest', + localName: 'SubscriptionCustomerProfileType', + typeName: 'subscriptionCustomerProfileType', + baseTypeInfo: '.CustomerProfileExType', propertyInfos: [{ - name: 'subscriptionId', - required: true + name: 'paymentProfile', + typeInfo: '.CustomerPaymentProfileMaskedType' + }, { + name: 'shippingProfile', + typeInfo: '.CustomerAddressExType' }] }, { - localName: 'SecurePaymentContainerRequest', + localName: 'ValidateCustomerPaymentProfileResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'data', - required: true, - typeInfo: '.WebCheckOutDataType' + name: 'directResponse' }] }, { - localName: 'ArrayOfSubscription', + localName: 'ARBGetSubscriptionRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'subscriptionDetail', - minOccurs: 0, - collection: true, - typeInfo: '.SubscriptionDetail' + name: 'subscriptionId', + required: true + }, { + name: 'includeTransactions', + typeInfo: 'Boolean' }] }, { - localName: 'ListOfAUDetailsType', + localName: 'ARBTransactionList', propertyInfos: [{ - name: 'auUpdateOrAuDelete', + name: 'arbTransaction', minOccurs: 0, collection: true, - elementTypeInfos: [{ - elementName: 'auUpdate', - typeInfo: '.AuUpdateType' - }, { - elementName: 'auDelete', - typeInfo: '.AuDeleteType' - }], - type: 'elements' + typeInfo: '.ArbTransaction' }] }, { - localName: 'ANetApiRequest', + localName: 'ProfileTransVoidType', + typeName: 'profileTransVoidType', propertyInfos: [{ - name: 'merchantAuthentication', - required: true, - typeInfo: '.MerchantAuthenticationType' + name: 'customerProfileId' }, { - name: 'clientId' + name: 'customerPaymentProfileId' }, { - name: 'refId' + name: 'customerShippingAddressId' + }, { + name: 'transId', + required: true }] }, { - localName: 'GetCustomerPaymentProfileListResponse', + localName: 'GetTransactionListForCustomerRequest', typeName: null, - baseTypeInfo: '.ANetApiResponse', + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'totalNumInResultSet', - required: true, - typeInfo: 'Int' + name: 'customerProfileId', + required: true }, { - name: 'paymentProfiles', - typeInfo: '.ArrayOfCustomerPaymentProfileListItemType' + name: 'customerPaymentProfileId' + }, { + name: 'sorting', + typeInfo: '.TransactionListSorting' + }, { + name: 'paging', + typeInfo: '.Paging' }] }, { - localName: 'GetAUJobDetailsResponse', + localName: 'GetCustomerPaymentProfileRequest', typeName: null, - baseTypeInfo: '.ANetApiResponse', + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'totalNumInResultSet', - typeInfo: 'Int' + name: 'customerProfileId', + required: true }, { - name: 'auDetails', - typeInfo: '.ListOfAUDetailsType' + name: 'customerPaymentProfileId' + }, { + name: 'unmaskExpirationDate', + typeInfo: 'Boolean' + }, { + name: 'includeIssuerInfo', + typeInfo: 'Boolean' }] }, { - localName: 'FDSFilterType', + localName: 'ArrayOfMarketType', propertyInfos: [{ - name: 'name', - required: true - }, { - name: 'action', - required: true + name: 'marketType', + minOccurs: 0, + collection: true }] }, { - localName: 'GetBatchStatisticsRequest', + localName: 'DeleteCustomerProfileResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiResponse' + }, { + localName: 'ARBGetSubscriptionResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'batchId', - required: true + name: 'subscription', + required: true, + typeInfo: '.ARBSubscriptionMaskedType' }] }, { - localName: 'CustomerPaymentProfileExType', - typeName: 'customerPaymentProfileExType', - baseTypeInfo: '.CustomerPaymentProfileType', + localName: 'PaymentEmvType', + typeName: 'paymentEmvType', propertyInfos: [{ - name: 'customerPaymentProfileId' + name: 'emvData', + required: true, + typeInfo: 'AnyType' + }, { + name: 'emvDescriptor', + required: true, + typeInfo: 'AnyType' + }, { + name: 'emvVersion', + required: true, + typeInfo: 'AnyType' }] }, { - localName: 'CustomerPaymentProfileType', - typeName: 'customerPaymentProfileType', - baseTypeInfo: '.CustomerPaymentProfileBaseType', + localName: 'ProcessingOptions', + typeName: 'processingOptions', propertyInfos: [{ - name: 'payment', - typeInfo: '.PaymentType' + name: 'isFirstRecurringPayment', + typeInfo: 'Boolean' }, { - name: 'driversLicense', - typeInfo: '.DriversLicenseType' + name: 'isFirstSubsequentAuth', + typeInfo: 'Boolean' }, { - name: 'taxId' + name: 'isSubsequentAuth', + typeInfo: 'Boolean' }, { - name: 'defaultPaymentProfile', + name: 'isStoredCredentials', typeInfo: 'Boolean' }] }, { - localName: 'GetBatchStatisticsResponse', + localName: 'IsAliveRequest', typeName: null, - baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'batch', - typeInfo: '.BatchDetailsType' + name: 'refId' + }] + }, { + localName: 'ArrayOfCardType', + propertyInfos: [{ + name: 'cardType', + minOccurs: 0, + maxOccurs: 30, + collection: true + }] + }, { + localName: 'CustomerProfileInfoExType', + typeName: 'customerProfileInfoExType', + baseTypeInfo: '.CustomerProfileExType', + propertyInfos: [{ + name: 'profileType' + }] + }, { + localName: 'EncryptedTrackDataType', + typeName: 'encryptedTrackDataType', + propertyInfos: [{ + name: 'formOfPayment', + required: true, + elementName: 'FormOfPayment', + typeInfo: '.KeyBlock' }] + }, { + localName: 'LogoutResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse' }, { localName: 'CustomerProfilePaymentType', typeName: 'customerProfilePaymentType', @@ -1960,50 +1810,58 @@ var Schema_Module_Factory = function () { name: 'shippingProfileId' }] }, { - localName: 'CreditCardTrackType', - typeName: 'creditCardTrackType', + localName: 'SubMerchantType', + typeName: 'subMerchantType', propertyInfos: [{ - name: 'track1', + name: 'identifier', required: true }, { - name: 'track2', - required: true - }] - }, { - localName: 'LogoutResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse' - }, { - localName: 'UpdateSplitTenderGroupResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse' - }, { - localName: 'PayPalType', - typeName: 'payPalType', - propertyInfos: [{ - name: 'successUrl' + name: 'doingBusinessAs' }, { - name: 'cancelUrl' + name: 'paymentServiceProviderName' }, { - name: 'paypalLc' + name: 'paymentServiceFacilitator' }, { - name: 'paypalHdrImg' + name: 'streetAddress' }, { - name: 'paypalPayflowcolor' + name: 'phone' }, { - name: 'payerID' + name: 'email' + }, { + name: 'postalCode' + }, { + name: 'city' + }, { + name: 'regionCode' + }, { + name: 'countryCode' }] }, { - localName: 'UpdateCustomerShippingAddressResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse' + localName: 'OpaqueDataType', + typeName: 'opaqueDataType', + propertyInfos: [{ + name: 'dataDescriptor', + required: true + }, { + name: 'dataValue', + required: true + }, { + name: 'dataKey' + }, { + name: 'expirationTimeStamp', + typeInfo: 'DateTime' + }] }, { - localName: 'ArrayOfAUResponseType', + localName: 'PaymentSimpleType', + typeName: 'paymentSimpleType', propertyInfos: [{ - name: 'auResponse', - minOccurs: 0, - collection: true, - typeInfo: '.AuResponseType' + name: 'creditCard', + required: true, + typeInfo: '.CreditCardSimpleType' + }, { + name: 'bankAccount', + required: true, + typeInfo: '.BankAccountType' }] }, { localName: 'UpdateCustomerPaymentProfileRequest', @@ -2020,42 +1878,36 @@ var Schema_Module_Factory = function () { name: 'validationMode' }] }, { - localName: 'ProfileTransAuthOnlyType', - typeName: 'profileTransAuthOnlyType', - baseTypeInfo: '.ProfileTransOrderType' - }, { - localName: 'SettingType', - typeName: 'settingType', + localName: 'ARBSubscriptionType', propertyInfos: [{ - name: 'settingName' + name: 'name' }, { - name: 'settingValue' - }] - }, { - localName: 'CreateProfileResponse', - typeName: 'createProfileResponse', - propertyInfos: [{ - name: 'messages', - required: true, - typeInfo: '.MessagesType' + name: 'paymentSchedule', + typeInfo: '.PaymentScheduleType' }, { - name: 'customerProfileId' + name: 'amount', + typeInfo: 'Decimal' }, { - name: 'customerPaymentProfileIdList', - typeInfo: '.ArrayOfNumericString' + name: 'trialAmount', + typeInfo: 'Decimal' }, { - name: 'customerShippingAddressIdList', - typeInfo: '.ArrayOfNumericString' - }] - }, { - localName: 'MessagesType.Message', - typeName: null, - propertyInfos: [{ - name: 'code', - required: true + name: 'payment', + typeInfo: '.PaymentType' }, { - name: 'text', - required: true + name: 'order', + typeInfo: '.OrderType' + }, { + name: 'customer', + typeInfo: '.CustomerType' + }, { + name: 'billTo', + typeInfo: '.NameAndAddressType' + }, { + name: 'shipTo', + typeInfo: '.NameAndAddressType' + }, { + name: 'profile', + typeInfo: '.CustomerProfileIdType' }] }, { localName: 'ImpersonationAuthenticationType', @@ -2068,164 +1920,95 @@ var Schema_Module_Factory = function () { required: true }] }, { - localName: 'ArrayOfSetting', - propertyInfos: [{ - name: 'setting', - minOccurs: 0, - collection: true, - typeInfo: '.SettingType' - }] - }, { - localName: 'CustomerProfileIdType', - typeName: 'customerProfileIdType', - propertyInfos: [{ - name: 'customerProfileId', - required: true - }, { - name: 'customerPaymentProfileId' - }, { - name: 'customerAddressId' - }] - }, { - localName: 'GetHostedProfilePageRequest', + localName: 'GetAUJobSummaryResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'customerProfileId', - required: true - }, { - name: 'hostedProfileSettings', - typeInfo: '.ArrayOfSetting' + name: 'auSummary', + typeInfo: '.ArrayOfAUResponseType' }] }, { - localName: 'TokenMaskedType', - typeName: 'tokenMaskedType', + localName: 'MerchantAuthenticationType', + typeName: 'merchantAuthenticationType', propertyInfos: [{ - name: 'tokenSource' + name: 'name' }, { - name: 'tokenNumber', + name: 'transactionKey', required: true }, { - name: 'expirationDate', - required: true - }] - }, { - localName: 'ArrayOfFraudFilterType', - propertyInfos: [{ - name: 'fraudFilter', - required: true, - maxOccurs: 1000, - collection: true - }] - }, { - localName: 'ProfileTransOrderType', - typeName: 'profileTransOrderType', - baseTypeInfo: '.ProfileTransAmountType', - propertyInfos: [{ - name: 'customerProfileId', - required: true + name: 'sessionToken' }, { - name: 'customerPaymentProfileId', + name: 'password', required: true }, { - name: 'customerShippingAddressId' - }, { - name: 'order', - typeInfo: '.OrderExType' + name: 'impersonationAuthentication', + typeInfo: '.ImpersonationAuthenticationType' }, { - name: 'taxExempt', - typeInfo: 'Boolean' + name: 'fingerPrint', + typeInfo: '.FingerPrintType' }, { - name: 'recurringBilling', - typeInfo: 'Boolean' + name: 'clientKey' }, { - name: 'cardCode' + name: 'accessToken' }, { - name: 'splitTenderId' + name: 'mobileDeviceId' }] }, { - localName: 'UserField', - typeName: 'userField', + localName: 'ArrayOfSetting', propertyInfos: [{ - name: 'name' - }, { - name: 'value' + name: 'setting', + minOccurs: 0, + collection: true, + typeInfo: '.SettingType' }] }, { - localName: 'TransactionRequestType', - typeName: 'transactionRequestType', + localName: 'GetAUJobDetailsResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'transactionType', - required: true - }, { - name: 'amount', - typeInfo: 'Decimal' - }, { - name: 'currencyCode' - }, { - name: 'payment', - typeInfo: '.PaymentType' - }, { - name: 'profile', - typeInfo: '.CustomerProfilePaymentType' - }, { - name: 'solution', - typeInfo: '.SolutionType' - }, { - name: 'callId' - }, { - name: 'terminalNumber' - }, { - name: 'authCode' - }, { - name: 'refTransId' - }, { - name: 'splitTenderId' - }, { - name: 'order', - typeInfo: '.OrderType' - }, { - name: 'lineItems', - typeInfo: '.ArrayOfLineItem' - }, { - name: 'tax', - typeInfo: '.ExtendedAmountType' - }, { - name: 'duty', - typeInfo: '.ExtendedAmountType' - }, { - name: 'shipping', - typeInfo: '.ExtendedAmountType' - }, { - name: 'taxExempt', - typeInfo: 'Boolean' - }, { - name: 'poNumber' - }, { - name: 'customer', - typeInfo: '.CustomerDataType' - }, { - name: 'billTo', - typeInfo: '.CustomerAddressType' - }, { - name: 'shipTo', - typeInfo: '.NameAndAddressType' + name: 'totalNumInResultSet', + typeInfo: 'Int' }, { - name: 'customerIP' + name: 'auDetails', + typeInfo: '.ListOfAUDetailsType' + }] + }, { + localName: 'MobileDeviceLoginResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', + propertyInfos: [{ + name: 'merchantContact', + required: true, + typeInfo: '.MerchantContactType' }, { - name: 'cardholderAuthentication', - typeInfo: '.CcAuthenticationType' + name: 'userPermissions', + required: true, + typeInfo: '.ArrayOfPermissionType' }, { - name: 'retail', + name: 'merchantAccount', typeInfo: '.TransRetailInfoType' + }] + }, { + localName: 'ANetApiRequest', + propertyInfos: [{ + name: 'merchantAuthentication', + required: true, + typeInfo: '.MerchantAuthenticationType' }, { - name: 'employeeId' + name: 'clientId' }, { - name: 'transactionSettings', - typeInfo: '.ArrayOfSetting' + name: 'refId' + }] + }, { + localName: 'CreateCustomerProfileTransactionRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', + propertyInfos: [{ + name: 'transaction', + required: true, + typeInfo: '.ProfileTransactionType' }, { - name: 'userFields', - typeInfo: '.TransactionRequestType.UserFields' + name: 'extraOptions' }] }, { localName: 'GetMerchantDetailsResponse', @@ -2260,857 +2043,1507 @@ var Schema_Module_Factory = function () { name: 'currencies', required: true, typeInfo: '.ArrayOfCurrencyCode' - }] - }, { - localName: 'OrderType', - typeName: 'orderType', - propertyInfos: [{ - name: 'invoiceNumber' }, { - name: 'description' + name: 'publicClientKey' + }, { + name: 'businessInformation', + typeInfo: '.CustomerAddressType' + }, { + name: 'merchantTimeZone' + }, { + name: 'contactDetails', + typeInfo: '.ArrayOfContactDetail' }] }, { - localName: 'PaymentSimpleType', - typeName: 'paymentSimpleType', + localName: 'UpdateHeldTransactionRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'creditCard', - required: true, - typeInfo: '.CreditCardSimpleType' - }, { - name: 'bankAccount', + name: 'heldTransactionRequest', required: true, - typeInfo: '.BankAccountType' + typeInfo: '.HeldTransactionRequestType' }] }, { - localName: 'ValidateCustomerPaymentProfileRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest', + localName: 'ArrayOfLong', propertyInfos: [{ - name: 'customerProfileId', - required: true - }, { - name: 'customerPaymentProfileId', - required: true - }, { - name: 'customerShippingAddressId' - }, { - name: 'cardCode' - }, { - name: 'validationMode', - required: true + name: '_long', + minOccurs: 0, + collection: true, + elementName: 'long', + typeInfo: 'Long' }] }, { - localName: 'CreateCustomerProfileResponse', + localName: 'CreateTransactionRequest', typeName: null, - baseTypeInfo: '.ANetApiResponse', + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'customerProfileId' - }, { - name: 'customerPaymentProfileIdList', - required: true, - typeInfo: '.ArrayOfNumericString' - }, { - name: 'customerShippingAddressIdList', - required: true, - typeInfo: '.ArrayOfNumericString' - }, { - name: 'validationDirectResponseList', + name: 'transactionRequest', required: true, - typeInfo: '.ArrayOfString' + typeInfo: '.TransactionRequestType' }] }, { - localName: 'CustomerProfileBaseType', - typeName: 'customerProfileBaseType', + localName: 'GetCustomerPaymentProfileResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'merchantCustomerId' - }, { - name: 'description' - }, { - name: 'email' + name: 'paymentProfile', + typeInfo: '.CustomerPaymentProfileMaskedType' }] }, { - localName: 'ARBCreateSubscriptionRequest', + localName: 'TransactionResponse.SecureAcceptance', typeName: null, - baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'subscription', - required: true, - typeInfo: '.ARBSubscriptionType' + name: 'secureAcceptanceUrl', + elementName: 'SecureAcceptanceUrl' + }, { + name: 'payerID', + elementName: 'PayerID' + }, { + name: 'payerEmail', + elementName: 'PayerEmail' }] }, { - localName: 'ArrayOfNumericString', + localName: 'GetCustomerProfileIdsResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'numericString', - minOccurs: 0, - collection: true + name: 'ids', + required: true, + typeInfo: '.ArrayOfNumericString' }] }, { - localName: 'SolutionType', - typeName: 'solutionType', + localName: 'CardArt', + typeName: 'cardArt', propertyInfos: [{ - name: 'id', - required: true + name: 'cardBrand' }, { - name: 'name' + name: 'cardImageHeight' }, { - name: 'vendorName' + name: 'cardImageUrl' + }, { + name: 'cardImageWidth' + }, { + name: 'cardType' }] }, { - localName: 'ARBGetSubscriptionStatusResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse', + localName: 'CustomerDataType', + typeName: 'customerDataType', propertyInfos: [{ - name: 'status' + name: 'type' + }, { + name: 'id' + }, { + name: 'email' + }, { + name: 'driversLicense', + typeInfo: '.DriversLicenseType' + }, { + name: 'taxId' }] }, { - localName: 'DeleteCustomerProfileResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse' - }, { - localName: 'SendCustomerTransactionReceiptResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse' - }, { - localName: 'ArrayOfBatchDetailsType', + localName: 'ArrayOfPermissionType', propertyInfos: [{ - name: 'batch', + name: 'permission', minOccurs: 0, collection: true, - typeInfo: '.BatchDetailsType' + typeInfo: '.PermissionType' }] }, { - localName: 'ARBGetSubscriptionListResponse', + localName: 'GetCustomerPaymentProfileNonceRequest', typeName: null, - baseTypeInfo: '.ANetApiResponse', + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'totalNumInResultSet', - typeInfo: 'Int' + name: 'connectedAccessToken', + required: true }, { - name: 'subscriptionDetails', - typeInfo: '.ArrayOfSubscription' + name: 'customerProfileId', + required: true + }, { + name: 'customerPaymentProfileId', + required: true }] }, { - localName: 'KeyBlock', + localName: 'AuDeleteType', + typeName: 'auDeleteType', + baseTypeInfo: '.AuDetailsType', propertyInfos: [{ - name: 'value', + name: 'creditCard', required: true, - elementName: 'Value', - typeInfo: '.KeyValue' + typeInfo: '.CreditCardMaskedType' }] }, { - localName: 'ArrayOfLong', + localName: 'ARBCreateSubscriptionRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: '_long', - minOccurs: 0, - collection: true, - elementName: 'long', - typeInfo: 'Long' + name: 'subscription', + required: true, + typeInfo: '.ARBSubscriptionType' }] }, { - localName: 'ExtendedAmountType', - typeName: 'extendedAmountType', + localName: 'CustomerProfileSummaryType', + typeName: 'customerProfileSummaryType', propertyInfos: [{ - name: 'amount', - required: true, - typeInfo: 'Decimal' - }, { - name: 'name' + name: 'customerProfileId' }, { name: 'description' - }] - }, { - localName: 'IsAliveResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse' - }, { - localName: 'GetHostedProfilePageResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse', - propertyInfos: [{ - name: 'token', + }, { + name: 'merchantCustomerId', required: true - }] - }, { - localName: 'GetTransactionListResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse', - propertyInfos: [{ - name: 'transactions', - typeInfo: '.ArrayOfTransactionSummaryType' }, { - name: 'totalNumInResultSet', - typeInfo: 'Int' + name: 'email' + }, { + name: 'createdDate', + required: true, + typeInfo: 'DateTime' }] }, { - localName: 'SecurePaymentContainerErrorType', - typeName: 'securePaymentContainerErrorType', + localName: 'ARBUpdateSubscriptionRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'code', + name: 'subscriptionId', required: true }, { - name: 'description', - required: true + name: 'subscription', + required: true, + typeInfo: '.ARBSubscriptionType' }] }, { - localName: 'TransactionResponse.Errors.Error', + localName: 'GetCustomerProfileIdsRequest', typeName: null, - propertyInfos: [{ - name: 'errorCode' - }, { - name: 'errorText' - }] + baseTypeInfo: '.ANetApiRequest' }, { - localName: 'GetCustomerPaymentProfileResponse', + localName: 'TransactionResponse.Errors', typeName: null, - baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'paymentProfile', - typeInfo: '.CustomerPaymentProfileMaskedType' + name: 'error', + minOccurs: 0, + collection: true, + typeInfo: '.TransactionResponse.Errors.Error' }] }, { - localName: 'ANetApiResponse', + localName: 'OrderType', + typeName: 'orderType', propertyInfos: [{ - name: 'refId' + name: 'invoiceNumber' }, { - name: 'messages', - required: true, - typeInfo: '.MessagesType' + name: 'description' }, { - name: 'sessionToken' + name: 'discountAmount', + typeInfo: 'Decimal' + }, { + name: 'taxIsAfterDiscount', + typeInfo: 'Boolean' + }, { + name: 'totalTaxTypeCode' + }, { + name: 'purchaserVATRegistrationNumber' + }, { + name: 'merchantVATRegistrationNumber' + }, { + name: 'vatInvoiceReferenceNumber' + }, { + name: 'purchaserCode' + }, { + name: 'summaryCommodityCode' + }, { + name: 'purchaseOrderDateUTC', + typeInfo: 'Date' + }, { + name: 'supplierOrderReference' + }, { + name: 'authorizedContactName' + }, { + name: 'cardAcceptorRefNumber' + }, { + name: 'amexDataTAA1' + }, { + name: 'amexDataTAA2' + }, { + name: 'amexDataTAA3' + }, { + name: 'amexDataTAA4' }] }, { - localName: 'FraudInformationType', - typeName: 'fraudInformationType', + localName: 'ARBCancelSubscriptionRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'fraudFilterList', - required: true, - typeInfo: '.ArrayOfFraudFilterType' - }, { - name: 'fraudAction', + name: 'subscriptionId', required: true }] }, { - localName: 'DriversLicenseMaskedType', - typeName: 'driversLicenseMaskedType', - propertyInfos: [{ - name: 'number', + localName: 'ProfileTransAuthOnlyType', + typeName: 'profileTransAuthOnlyType', + baseTypeInfo: '.ProfileTransOrderType' + }, { + localName: 'GetCustomerPaymentProfileListRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', + propertyInfos: [{ + name: 'searchType', + required: true + }, { + name: 'month', + required: true + }, { + name: 'sorting', + typeInfo: '.CustomerPaymentProfileSorting' + }, { + name: 'paging', + typeInfo: '.Paging' + }] + }, { + localName: 'TransactionRequestType', + typeName: 'transactionRequestType', + propertyInfos: [{ + name: 'transactionType', + required: true + }, { + name: 'amount', + typeInfo: 'Decimal' + }, { + name: 'currencyCode' + }, { + name: 'payment', + typeInfo: '.PaymentType' + }, { + name: 'profile', + typeInfo: '.CustomerProfilePaymentType' + }, { + name: 'solution', + typeInfo: '.SolutionType' + }, { + name: 'callId' + }, { + name: 'terminalNumber' + }, { + name: 'authCode' + }, { + name: 'refTransId' + }, { + name: 'splitTenderId' + }, { + name: 'order', + typeInfo: '.OrderType' + }, { + name: 'lineItems', + typeInfo: '.ArrayOfLineItem' + }, { + name: 'tax', + typeInfo: '.ExtendedAmountType' + }, { + name: 'duty', + typeInfo: '.ExtendedAmountType' + }, { + name: 'shipping', + typeInfo: '.ExtendedAmountType' + }, { + name: 'taxExempt', + typeInfo: 'Boolean' + }, { + name: 'poNumber' + }, { + name: 'customer', + typeInfo: '.CustomerDataType' + }, { + name: 'billTo', + typeInfo: '.CustomerAddressType' + }, { + name: 'shipTo', + typeInfo: '.NameAndAddressType' + }, { + name: 'customerIP' + }, { + name: 'cardholderAuthentication', + typeInfo: '.CcAuthenticationType' + }, { + name: 'retail', + typeInfo: '.TransRetailInfoType' + }, { + name: 'employeeId' + }, { + name: 'transactionSettings', + typeInfo: '.ArrayOfSetting' + }, { + name: 'userFields', + typeInfo: '.TransactionRequestType.UserFields' + }, { + name: 'surcharge', + typeInfo: '.ExtendedAmountType' + }, { + name: 'merchantDescriptor' + }, { + name: 'subMerchant', + typeInfo: '.SubMerchantType' + }, { + name: 'tip', + typeInfo: '.ExtendedAmountType' + }, { + name: 'processingOptions', + typeInfo: '.ProcessingOptions' + }, { + name: 'subsequentAuthInformation', + typeInfo: '.SubsequentAuthInformation' + }, { + name: 'otherTax', + typeInfo: '.OtherTaxType' + }, { + name: 'shipFrom', + typeInfo: '.NameAndAddressType' + }, { + name: 'authorizationIndicatorType', + typeInfo: '.AuthorizationIndicatorType' + }] + }, { + localName: 'ARBUpdateSubscriptionResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', + propertyInfos: [{ + name: 'profile', + typeInfo: '.CustomerProfileIdType' + }] + }, { + localName: 'CreateCustomerPaymentProfileRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', + propertyInfos: [{ + name: 'customerProfileId', + required: true + }, { + name: 'paymentProfile', + required: true, + typeInfo: '.CustomerPaymentProfileType' + }, { + name: 'validationMode' + }] + }, { + localName: 'CustomerPaymentProfileMaskedType', + typeName: 'customerPaymentProfileMaskedType', + baseTypeInfo: '.CustomerPaymentProfileBaseType', + propertyInfos: [{ + name: 'customerProfileId' + }, { + name: 'customerPaymentProfileId', + required: true + }, { + name: 'defaultPaymentProfile', + typeInfo: 'Boolean' + }, { + name: 'payment', + typeInfo: '.PaymentMaskedType' + }, { + name: 'driversLicense', + typeInfo: '.DriversLicenseMaskedType' + }, { + name: 'taxId' + }, { + name: 'subscriptionIds', + typeInfo: '.SubscriptionIdList' + }, { + name: 'originalNetworkTransId' + }, { + name: 'originalAuthAmount', + typeInfo: 'Decimal' + }, { + name: 'excludeFromAccountUpdater', + typeInfo: 'Boolean' + }] + }, { + localName: 'KeyManagementScheme', + propertyInfos: [{ + name: 'dukpt', + required: true, + elementName: 'DUKPT', + typeInfo: '.KeyManagementScheme.DUKPT' + }] + }, { + localName: 'ARBGetSubscriptionListRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', + propertyInfos: [{ + name: 'searchType', + required: true + }, { + name: 'sorting', + typeInfo: '.ARBGetSubscriptionListSorting' + }, { + name: 'paging', + typeInfo: '.Paging' + }] + }, { + localName: 'FingerPrintType', + typeName: 'fingerPrintType', + propertyInfos: [{ + name: 'hashValue', + required: true + }, { + name: 'sequence' + }, { + name: 'timestamp', + required: true + }, { + name: 'currencyCode' + }, { + name: 'amount' + }] + }, { + localName: 'BankAccountMaskedType', + typeName: 'bankAccountMaskedType', + propertyInfos: [{ + name: 'accountType' + }, { + name: 'routingNumber', + required: true + }, { + name: 'accountNumber', + required: true + }, { + name: 'nameOnAccount', + required: true + }, { + name: 'echeckType' + }, { + name: 'bankName' + }] + }, { + localName: 'MessagesType', + typeName: 'messagesType', + propertyInfos: [{ + name: 'resultCode', + required: true + }, { + name: 'message', + required: true, + collection: true, + typeInfo: '.MessagesType.Message' + }] + }, { + localName: 'GetSettledBatchListResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', + propertyInfos: [{ + name: 'batchList', + typeInfo: '.ArrayOfBatchDetailsType' + }] + }, { + localName: 'AuResponseType', + typeName: 'auResponseType', + propertyInfos: [{ + name: 'auReasonCode', + required: true + }, { + name: 'profileCount', + required: true, + typeInfo: 'Long' + }, { + name: 'reasonDescription', + required: true + }] + }, { + localName: 'CustomerProfileBaseType', + typeName: 'customerProfileBaseType', + propertyInfos: [{ + name: 'merchantCustomerId' + }, { + name: 'description' + }, { + name: 'email' + }] + }, { + localName: 'CustomerPaymentProfileBaseType', + typeName: 'customerPaymentProfileBaseType', + propertyInfos: [{ + name: 'customerType' + }, { + name: 'billTo', + typeInfo: '.CustomerAddressType' + }] + }, { + localName: 'DeleteCustomerPaymentProfileRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', + propertyInfos: [{ + name: 'customerProfileId', + required: true + }, { + name: 'customerPaymentProfileId', + required: true + }] + }, { + localName: 'ProfileTransPriorAuthCaptureType', + typeName: 'profileTransPriorAuthCaptureType', + baseTypeInfo: '.ProfileTransAmountType', + propertyInfos: [{ + name: 'customerProfileId' + }, { + name: 'customerPaymentProfileId' + }, { + name: 'customerShippingAddressId' + }, { + name: 'transId', + required: true + }] + }, { + localName: 'NameAndAddressType', + typeName: 'nameAndAddressType', + propertyInfos: [{ + name: 'firstName' + }, { + name: 'lastName' + }, { + name: 'company' + }, { + name: 'address' + }, { + name: 'city' + }, { + name: 'state' + }, { + name: 'zip' + }, { + name: 'country' + }] + }, { + localName: 'AuthenticateTestResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse' + }, { + localName: 'SubsequentAuthInformation', + typeName: 'subsequentAuthInformation', + propertyInfos: [{ + name: 'originalNetworkTransId' + }, { + name: 'originalAuthAmount', + typeInfo: 'Decimal' + }, { + name: 'reason' + }] + }, { + localName: 'GetCustomerProfileResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', + propertyInfos: [{ + name: 'profile', + typeInfo: '.CustomerProfileMaskedType' + }, { + name: 'subscriptionIds', + typeInfo: '.SubscriptionIdList' + }] + }, { + localName: 'PaymentType', + typeName: 'paymentType', + propertyInfos: [{ + name: 'creditCard', + required: true, + typeInfo: '.CreditCardType' + }, { + name: 'bankAccount', + required: true, + typeInfo: '.BankAccountType' + }, { + name: 'trackData', + required: true, + typeInfo: '.CreditCardTrackType' + }, { + name: 'encryptedTrackData', + required: true, + typeInfo: '.EncryptedTrackDataType' + }, { + name: 'payPal', + required: true, + typeInfo: '.PayPalType' + }, { + name: 'opaqueData', + required: true, + typeInfo: '.OpaqueDataType' + }, { + name: 'emv', + required: true, + typeInfo: '.PaymentEmvType' + }, { + name: 'dataSource' + }] + }, { + localName: 'TransactionResponse.Errors.Error', + typeName: null, + propertyInfos: [{ + name: 'errorCode' + }, { + name: 'errorText' + }] + }, { + localName: 'ANetApiResponse', + propertyInfos: [{ + name: 'refId' + }, { + name: 'messages', + required: true, + typeInfo: '.MessagesType' + }, { + name: 'sessionToken' + }] + }, { + localName: 'UpdateHeldTransactionResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse', + propertyInfos: [{ + name: 'transactionResponse', + typeInfo: '.TransactionResponse' + }] + }, { + localName: 'SettingType', + typeName: 'settingType', + propertyInfos: [{ + name: 'settingName' + }, { + name: 'settingValue' + }] + }, { + localName: 'SubscriptionIdList', + propertyInfos: [{ + name: 'subscriptionId', + minOccurs: 0, + collection: true + }] + }, { + localName: 'PermissionType', + typeName: 'permissionType', + propertyInfos: [{ + name: 'permissionName' + }] + }, { + localName: 'GetHostedProfilePageRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', + propertyInfos: [{ + name: 'customerProfileId', required: true }, { - name: 'state', - required: true + name: 'hostedProfileSettings', + typeInfo: '.ArrayOfSetting' + }] + }, { + localName: 'TransactionResponse.Messages.Message', + typeName: null, + propertyInfos: [{ + name: 'code' }, { - name: 'dateOfBirth', - required: true + name: 'description' }] }, { - localName: 'TransactionResponse.EmvResponse.Tags', + localName: 'ArrayOfProcessorType', + propertyInfos: [{ + name: 'processor', + minOccurs: 0, + collection: true, + typeInfo: '.ProcessorType' + }] + }, { + localName: 'UpdateMerchantDetailsRequest', typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'tag', + name: 'isTestMode', required: true, - collection: true, - typeInfo: '.EmvTag' + typeInfo: 'Boolean' }] }, { - localName: 'PaymentScheduleType.Interval', + localName: 'UpdateCustomerProfileResponse', typeName: null, + baseTypeInfo: '.ANetApiResponse' + }, { + localName: 'ReturnedItemType', + typeName: 'returnedItemType', propertyInfos: [{ - name: 'length', + name: 'id', + required: true + }, { + name: 'dateUTC', required: true, - typeInfo: 'Short' + typeInfo: 'DateTime' }, { - name: 'unit', + name: 'dateLocal', + required: true, + typeInfo: 'DateTime' + }, { + name: 'code', + required: true + }, { + name: 'description', required: true }] }, { - localName: 'GetCustomerShippingAddressResponse', + localName: 'CustomerAddressType', + typeName: 'customerAddressType', + baseTypeInfo: '.NameAndAddressType', + propertyInfos: [{ + name: 'phoneNumber' + }, { + name: 'faxNumber' + }, { + name: 'email' + }] + }, { + localName: 'GetHostedPaymentPageRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', + propertyInfos: [{ + name: 'transactionRequest', + required: true, + typeInfo: '.TransactionRequestType' + }, { + name: 'hostedPaymentSettings', + typeInfo: '.ArrayOfSetting' + }] + }, { + localName: 'GetAUJobDetailsRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', + propertyInfos: [{ + name: 'month', + required: true + }, { + name: 'modifiedTypeFilter' + }, { + name: 'paging', + typeInfo: '.Paging' + }] + }, { + localName: 'TransactionResponse.PrePaidCard', + typeName: null, + propertyInfos: [{ + name: 'requestedAmount' + }, { + name: 'approvedAmount' + }, { + name: 'balanceOnCard' + }] + }, { + localName: 'CreateCustomerShippingAddressResponse', typeName: null, baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'defaultShippingAddress', + name: 'customerProfileId' + }, { + name: 'customerAddressId' + }] + }, { + localName: 'TransactionDetailsType', + typeName: 'transactionDetailsType', + propertyInfos: [{ + name: 'transId', + required: true + }, { + name: 'refTransId' + }, { + name: 'splitTenderId' + }, { + name: 'submitTimeUTC', + required: true, + typeInfo: 'DateTime' + }, { + name: 'submitTimeLocal', + required: true, + typeInfo: 'DateTime' + }, { + name: 'transactionType', + required: true + }, { + name: 'transactionStatus', + required: true + }, { + name: 'responseCode', + required: true, + typeInfo: 'Int' + }, { + name: 'responseReasonCode', + required: true, + typeInfo: 'Int' + }, { + name: 'subscription', + typeInfo: '.SubscriptionPaymentType' + }, { + name: 'responseReasonDescription', + required: true + }, { + name: 'authCode' + }, { + name: 'avsResponse', + elementName: 'AVSResponse' + }, { + name: 'cardCodeResponse' + }, { + name: 'cavvResponse', + elementName: 'CAVVResponse' + }, { + name: 'fdsFilterAction', + elementName: 'FDSFilterAction' + }, { + name: 'fdsFilters', + elementName: 'FDSFilters', + typeInfo: '.ArrayOfFDSFilter' + }, { + name: 'batch', + typeInfo: '.BatchDetailsType' + }, { + name: 'order', + typeInfo: '.OrderExType' + }, { + name: 'requestedAmount', + typeInfo: 'Decimal' + }, { + name: 'authAmount', + required: true, + typeInfo: 'Decimal' + }, { + name: 'settleAmount', + required: true, + typeInfo: 'Decimal' + }, { + name: 'tax', + typeInfo: '.ExtendedAmountType' + }, { + name: 'shipping', + typeInfo: '.ExtendedAmountType' + }, { + name: 'duty', + typeInfo: '.ExtendedAmountType' + }, { + name: 'lineItems', + typeInfo: '.ArrayOfLineItem' + }, { + name: 'prepaidBalanceRemaining', + typeInfo: 'Decimal' + }, { + name: 'taxExempt', typeInfo: 'Boolean' }, { - name: 'address', - typeInfo: '.CustomerAddressExType' + name: 'payment', + required: true, + typeInfo: '.PaymentMaskedType' + }, { + name: 'customer', + typeInfo: '.CustomerDataType' + }, { + name: 'billTo', + typeInfo: '.CustomerAddressType' + }, { + name: 'shipTo', + typeInfo: '.NameAndAddressType' + }, { + name: 'recurringBilling', + typeInfo: 'Boolean' + }, { + name: 'customerIP' + }, { + name: 'product' + }, { + name: 'entryMode' + }, { + name: 'marketType' + }, { + name: 'mobileDeviceId' + }, { + name: 'customerSignature' + }, { + name: 'returnedItems', + typeInfo: '.ArrayOfReturnedItem' + }, { + name: 'solution', + typeInfo: '.SolutionType' + }, { + name: 'emvDetails', + typeInfo: '.TransactionDetailsType.EmvDetails' + }, { + name: 'profile', + typeInfo: '.CustomerProfileIdType' + }, { + name: 'surcharge', + typeInfo: '.ExtendedAmountType' + }, { + name: 'employeeId' + }, { + name: 'tip', + typeInfo: '.ExtendedAmountType' + }, { + name: 'otherTax', + typeInfo: '.OtherTaxType' + }, { + name: 'shipFrom', + typeInfo: '.NameAndAddressType' + }, { + name: 'networkTransId' + }, { + name: 'originalNetworkTransId' }, { - name: 'subscriptionIds', - typeInfo: '.SubscriptionIdList' + name: 'originalAuthAmount', + typeInfo: 'Decimal' + }, { + name: 'authorizationIndicator' }] }, { - localName: 'CreateCustomerProfileRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest', + localName: 'DriversLicenseType', + typeName: 'driversLicenseType', propertyInfos: [{ - name: 'profile', - required: true, - typeInfo: '.CustomerProfileType' + name: 'number', + required: true }, { - name: 'validationMode' + name: 'state', + required: true + }, { + name: 'dateOfBirth', + required: true }] }, { - localName: 'ARBGetSubscriptionStatusRequest', + localName: 'ValidateCustomerPaymentProfileRequest', typeName: null, baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'subscriptionId', + name: 'customerProfileId', + required: true + }, { + name: 'customerPaymentProfileId', + required: true + }, { + name: 'customerShippingAddressId' + }, { + name: 'cardCode' + }, { + name: 'validationMode', required: true }] }, { - localName: 'DeleteCustomerPaymentProfileResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse' - }, { - localName: 'TransactionResponse.EmvResponse', + localName: 'GetUnsettledTransactionListResponse', typeName: null, + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'tlvData' + name: 'transactions', + typeInfo: '.ArrayOfTransactionSummaryType' }, { - name: 'tags', - typeInfo: '.TransactionResponse.EmvResponse.Tags' + name: 'totalNumInResultSet', + typeInfo: 'Int' }] }, { - localName: 'TransRetailInfoType', - typeName: 'transRetailInfoType', + localName: 'WebCheckOutDataType', + typeName: 'webCheckOutDataType', propertyInfos: [{ - name: 'marketType' + name: 'type', + required: true }, { - name: 'deviceType' + name: 'id', + required: true }, { - name: 'customerSignature' + name: 'token', + typeInfo: '.WebCheckOutDataTypeToken' + }, { + name: 'bankToken', + typeInfo: '.BankAccountType' }] }, { - localName: 'AuthenticateTestResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse' - }, { - localName: 'DeleteCustomerShippingAddressRequest', - typeName: null, - baseTypeInfo: '.ANetApiRequest', + localName: 'OrderExType', + typeName: 'orderExType', + baseTypeInfo: '.OrderType', propertyInfos: [{ - name: 'customerProfileId', - required: true - }, { - name: 'customerAddressId', - required: true + name: 'purchaseOrderNumber' }] }, { - localName: 'CustomerType', - typeName: 'customerType', + localName: 'CreditCardType', + typeName: 'creditCardType', + baseTypeInfo: '.CreditCardSimpleType', propertyInfos: [{ - name: 'type' - }, { - name: 'id' + name: 'cardCode' }, { - name: 'email' + name: 'isPaymentToken', + typeInfo: 'Boolean' }, { - name: 'phoneNumber' + name: 'cryptogram' }, { - name: 'faxNumber' + name: 'tokenRequestorName' }, { - name: 'driversLicense', - typeInfo: '.DriversLicenseType' + name: 'tokenRequestorId' }, { - name: 'taxId' + name: 'tokenRequestorEci' }] }, { - localName: 'DecryptPaymentDataRequest', + localName: 'TransactionResponse.UserFields', typeName: null, - baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'opaqueData', - required: true, - typeInfo: '.OpaqueDataType' - }, { - name: 'callId' + name: 'userField', + minOccurs: 0, + maxOccurs: 20, + collection: true, + typeInfo: '.UserField' }] }, { - localName: 'PaymentMaskedType', - typeName: 'paymentMaskedType', - propertyInfos: [{ - name: 'creditCard', - required: true, - typeInfo: '.CreditCardMaskedType' - }, { - name: 'bankAccount', - required: true, - typeInfo: '.BankAccountMaskedType' - }, { - name: 'tokenInformation', - required: true, - typeInfo: '.TokenMaskedType' - }] + localName: 'UpdateCustomerShippingAddressResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse' }, { - localName: 'GetCustomerPaymentProfileListRequest', + localName: 'UpdateMerchantDetailsResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', - propertyInfos: [{ - name: 'searchType', - required: true - }, { - name: 'month', - required: true - }, { - name: 'sorting', - typeInfo: '.CustomerPaymentProfileSorting' - }, { - name: 'paging', - typeInfo: '.Paging' - }] + baseTypeInfo: '.ANetApiResponse' }, { - localName: 'TransactionSummaryType', - typeName: 'transactionSummaryType', + localName: 'ARBSubscriptionMaskedType', propertyInfos: [{ - name: 'transId', - required: true - }, { - name: 'submitTimeUTC', - required: true, - typeInfo: 'DateTime' - }, { - name: 'submitTimeLocal', - required: true, - typeInfo: 'DateTime' - }, { - name: 'transactionStatus', - required: true - }, { - name: 'invoiceNumber' - }, { - name: 'firstName' - }, { - name: 'lastName' - }, { - name: 'accountType', - required: true + name: 'name' }, { - name: 'accountNumber', - required: true + name: 'paymentSchedule', + typeInfo: '.PaymentScheduleType' }, { - name: 'settleAmount', - required: true, + name: 'amount', typeInfo: 'Decimal' }, { - name: 'marketType' - }, { - name: 'product' + name: 'trialAmount', + typeInfo: 'Decimal' }, { - name: 'mobileDeviceId' + name: 'status' }, { - name: 'subscription', - typeInfo: '.SubscriptionPaymentType' + name: 'profile', + typeInfo: '.SubscriptionCustomerProfileType' }, { - name: 'hasReturnedItems', - typeInfo: 'Boolean' + name: 'order', + typeInfo: '.OrderType' }, { - name: 'fraudInformation', - typeInfo: '.FraudInformationType' + name: 'arbTransactions', + typeInfo: '.ARBTransactionList' }] }, { - localName: 'ProfileTransPriorAuthCaptureType', - typeName: 'profileTransPriorAuthCaptureType', - baseTypeInfo: '.ProfileTransAmountType', + localName: 'BankAccountType', + typeName: 'bankAccountType', propertyInfos: [{ - name: 'customerProfileId' + name: 'accountType' }, { - name: 'customerPaymentProfileId' + name: 'routingNumber', + required: true }, { - name: 'customerShippingAddressId' + name: 'accountNumber', + required: true }, { - name: 'transId', + name: 'nameOnAccount', required: true + }, { + name: 'echeckType' + }, { + name: 'bankName' + }, { + name: 'checkNumber' }] }, { - localName: 'GetCustomerShippingAddressRequest', + localName: 'GetSettledBatchListRequest', typeName: null, baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'customerProfileId', - required: true + name: 'includeStatistics', + typeInfo: 'Boolean' }, { - name: 'customerAddressId' + name: 'firstSettlementDate', + typeInfo: 'DateTime' + }, { + name: 'lastSettlementDate', + typeInfo: 'DateTime' }] }, { - localName: 'AuDeleteType', - typeName: 'auDeleteType', - baseTypeInfo: '.AuDetailsType', + localName: 'ProfileTransactionType', + typeName: 'profileTransactionType', propertyInfos: [{ - name: 'creditCard', + name: 'profileTransAuthCapture', required: true, - typeInfo: '.CreditCardMaskedType' - }] - }, { - localName: 'AuResponseType', - typeName: 'auResponseType', - propertyInfos: [{ - name: 'auReasonCode', - required: true + typeInfo: '.ProfileTransAuthCaptureType' }, { - name: 'profileCount', + name: 'profileTransAuthOnly', + required: true, + typeInfo: '.ProfileTransAuthOnlyType' + }, { + name: 'profileTransPriorAuthCapture', + required: true, + typeInfo: '.ProfileTransPriorAuthCaptureType' + }, { + name: 'profileTransCaptureOnly', + required: true, + typeInfo: '.ProfileTransCaptureOnlyType' + }, { + name: 'profileTransRefund', required: true, - typeInfo: 'Long' + typeInfo: '.ProfileTransRefundType' }, { - name: 'reasonDescription', - required: true + name: 'profileTransVoid', + required: true, + typeInfo: '.ProfileTransVoidType' }] }, { - localName: 'ArrayOfMarketType', + localName: 'ArrayOfAUResponseType', propertyInfos: [{ - name: 'marketType', + name: 'auResponse', minOccurs: 0, - collection: true + collection: true, + typeInfo: '.AuResponseType' }] }, { - localName: 'ARBGetSubscriptionListSorting', + localName: 'CreateCustomerProfileFromTransactionRequest', + typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'orderBy', + name: 'transId', required: true }, { - name: 'orderDescending', - required: true, - typeInfo: 'Boolean' - }] - }, { - localName: 'CustomerDataType', - typeName: 'customerDataType', - propertyInfos: [{ - name: 'type' + name: 'customer', + typeInfo: '.CustomerProfileBaseType' }, { - name: 'id' + name: 'customerProfileId' }, { - name: 'email' + name: 'defaultPaymentProfile', + typeInfo: 'Boolean' }, { - name: 'driversLicense', - typeInfo: '.DriversLicenseType' + name: 'defaultShippingAddress', + typeInfo: 'Boolean' }, { - name: 'taxId' + name: 'profileType' }] }, { - localName: 'NameAndAddressType', - typeName: 'nameAndAddressType', + localName: 'BatchDetailsType', + typeName: 'batchDetailsType', propertyInfos: [{ - name: 'firstName' + name: 'batchId', + required: true }, { - name: 'lastName' + name: 'settlementTimeUTC', + typeInfo: 'DateTime' }, { - name: 'company' + name: 'settlementTimeLocal', + typeInfo: 'DateTime' }, { - name: 'address' + name: 'settlementState', + required: true }, { - name: 'city' + name: 'paymentMethod' }, { - name: 'state' + name: 'marketType' }, { - name: 'zip' + name: 'product' }, { - name: 'country' + name: 'statistics', + typeInfo: '.ArrayOfBatchStatisticType' }] }, { - localName: 'CustomerProfileExType', - typeName: 'customerProfileExType', - baseTypeInfo: '.CustomerProfileBaseType', + localName: 'FDSFilterType', propertyInfos: [{ - name: 'customerProfileId' + name: 'name', + required: true + }, { + name: 'action', + required: true }] }, { - localName: 'KeyManagementScheme.DUKPT.EncryptedData', - typeName: null, + localName: 'ArrayOfNumericString', propertyInfos: [{ - name: 'value', - required: true, - elementName: 'Value' + name: 'numericString', + minOccurs: 0, + collection: true }] }, { - localName: 'GetCustomerProfileIdsResponse', + localName: 'GetTransactionListRequest', typeName: null, - baseTypeInfo: '.ANetApiResponse', - propertyInfos: [{ - name: 'ids', - required: true, - typeInfo: '.ArrayOfNumericString' - }] - }, { - localName: 'ArrayOfProcessorType', + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'processor', - minOccurs: 0, - collection: true, - typeInfo: '.ProcessorType' + name: 'batchId' + }, { + name: 'sorting', + typeInfo: '.TransactionListSorting' + }, { + name: 'paging', + typeInfo: '.Paging' }] }, { - localName: 'EmailSettingsType', - typeName: 'emailSettingsType', - baseTypeInfo: '.ArrayOfSetting', - propertyInfos: [{ - name: 'version', - typeInfo: 'Integer', - attributeName: { - localPart: 'version' - }, - type: 'attribute' - }] + localName: 'MobileDeviceRegistrationResponse', + typeName: null, + baseTypeInfo: '.ANetApiResponse' }, { - localName: 'KeyValue', + localName: 'OtherTaxType', + typeName: 'otherTaxType', propertyInfos: [{ - name: 'encoding', - required: true, - elementName: 'Encoding' + name: 'nationalTaxAmount', + typeInfo: 'Decimal' }, { - name: 'encryptionAlgorithm', - required: true, - elementName: 'EncryptionAlgorithm' + name: 'localTaxAmount', + typeInfo: 'Decimal' }, { - name: 'scheme', - required: true, - elementName: 'Scheme', - typeInfo: '.KeyManagementScheme' + name: 'alternateTaxAmount', + typeInfo: 'Decimal' + }, { + name: 'alternateTaxId' + }, { + name: 'vatTaxRate', + typeInfo: 'Decimal' + }, { + name: 'vatTaxAmount', + typeInfo: 'Decimal' }] }, { - localName: 'MobileDeviceRegistrationRequest', + localName: 'EnumCollection', typeName: null, - baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'mobileDevice', + name: 'customerProfileSummaryType', required: true, - typeInfo: '.MobileDeviceType' - }] - }, { - localName: 'TransactionResponse.SplitTenderPayments.SplitTenderPayment', - typeName: null, - propertyInfos: [{ - name: 'transId' + typeInfo: '.CustomerProfileSummaryType' }, { - name: 'responseCode' + name: 'paymentSimpleType', + required: true, + typeInfo: '.PaymentSimpleType' }, { - name: 'responseToCustomer' + name: 'accountTypeEnum', + required: true }, { - name: 'authCode' + name: 'cardTypeEnum', + required: true }, { - name: 'accountNumber' + name: 'fdsFilterActionEnum', + required: true, + elementName: 'FDSFilterActionEnum' }, { - name: 'accountType' + name: 'permissionsEnum', + required: true }, { - name: 'requestedAmount' + name: 'settingNameEnum', + required: true }, { - name: 'approvedAmount' + name: 'settlementStateEnum', + required: true }, { - name: 'balanceOnCard' + name: 'transactionStatusEnum', + required: true + }, { + name: 'transactionTypeEnum', + required: true }] }, { - localName: 'MerchantContactType', - typeName: 'merchantContactType', + localName: 'DriversLicenseMaskedType', + typeName: 'driversLicenseMaskedType', propertyInfos: [{ - name: 'merchantName' - }, { - name: 'merchantAddress' - }, { - name: 'merchantCity' - }, { - name: 'merchantState' + name: 'number', + required: true }, { - name: 'merchantZip' + name: 'state', + required: true }, { - name: 'merchantPhone' + name: 'dateOfBirth', + required: true }] }, { - localName: 'CreateCustomerProfileFromTransactionRequest', + localName: 'UpdateCustomerPaymentProfileResponse', typeName: null, - baseTypeInfo: '.ANetApiRequest', + baseTypeInfo: '.ANetApiResponse', propertyInfos: [{ - name: 'transId', + name: 'validationDirectResponse' + }] + }, { + localName: 'CreditCardSimpleType', + typeName: 'creditCardSimpleType', + propertyInfos: [{ + name: 'cardNumber', required: true }, { - name: 'customer', - typeInfo: '.CustomerProfileBaseType' - }, { - name: 'customerProfileId' - }, { - name: 'defaultPaymentProfile', - typeInfo: 'Boolean' - }, { - name: 'defaultShippingAddress', - typeInfo: 'Boolean' + name: 'expirationDate', + required: true }] }, { - localName: 'ArrayOfBatchStatisticType', + localName: 'ArrayOfFDSFilter', propertyInfos: [{ - name: 'statistic', + name: 'fdsFilter', minOccurs: 0, collection: true, - typeInfo: '.BatchStatisticType' + elementName: 'FDSFilter', + typeInfo: '.FDSFilterType' }] }, { - localName: 'ArrayOfString', + localName: 'ArrayOfBatchStatisticType', propertyInfos: [{ - name: 'string', + name: 'statistic', minOccurs: 0, - collection: true - }] - }, { - localName: 'CcAuthenticationType', - typeName: 'ccAuthenticationType', - propertyInfos: [{ - name: 'authenticationIndicator', - required: true - }, { - name: 'cardholderAuthenticationValue', - required: true + collection: true, + typeInfo: '.BatchStatisticType' }] }, { - localName: 'UpdateCustomerProfileResponse', - typeName: null, - baseTypeInfo: '.ANetApiResponse' - }, { - localName: 'TransactionDetailsType.EmvDetails.Tag', + localName: 'GetTransactionDetailsRequest', typeName: null, + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'tagId', - required: true - }, { - name: 'data', + name: 'transId', required: true }] }, { - localName: 'HeldTransactionRequestType', - typeName: 'heldTransactionRequestType', + localName: 'ProcessorType', + typeName: 'processorType', propertyInfos: [{ - name: 'action', + name: 'name', required: true }, { - name: 'refTransId', - required: true + name: 'id', + required: true, + typeInfo: 'Int' + }, { + name: 'cardTypes', + typeInfo: '.ArrayOfCardType' }] }, { - localName: 'ArrayOfProductCode', + localName: 'ArrayOfString', propertyInfos: [{ - name: 'productCode', + name: 'string', minOccurs: 0, collection: true }] }, { - localName: 'ARBGetSubscriptionResponse', + localName: 'MobileDeviceRegistrationRequest', typeName: null, - baseTypeInfo: '.ANetApiResponse', + baseTypeInfo: '.ANetApiRequest', propertyInfos: [{ - name: 'subscription', + name: 'mobileDevice', required: true, - typeInfo: '.ARBSubscriptionMaskedType' + typeInfo: '.MobileDeviceType' + }] + }, { + localName: 'KeyValue', + propertyInfos: [{ + name: 'encoding', + required: true, + elementName: 'Encoding' + }, { + name: 'encryptionAlgorithm', + required: true, + elementName: 'EncryptionAlgorithm' + }, { + name: 'scheme', + required: true, + elementName: 'Scheme', + typeInfo: '.KeyManagementScheme' + }] + }, { + localName: 'KeyManagementScheme.DUKPT.Mode', + typeName: null, + propertyInfos: [{ + name: 'pin', + elementName: 'PIN' + }, { + name: 'data', + elementName: 'Data' }] }, { type: 'enumInfo', - localName: 'TransactionGroupStatusEnum', - values: ['any', 'pendingApproval'] + localName: 'FDSFilterActionEnum', + values: ['reject', 'decline', 'hold', 'authAndHold', 'report'] }, { type: 'enumInfo', - localName: 'SettlementStateEnum', - values: ['settledSuccessfully', 'settlementError', 'pendingSettlement'] + localName: 'MessageTypeEnum', + values: ['Ok', 'Error'] }, { type: 'enumInfo', - localName: 'ValidationModeEnum', - values: ['none', 'testMode', 'liveMode', 'oldLiveMode'] + localName: 'PermissionsEnum', + values: ['API_Merchant_BasicReporting', 'Submit_Charge', 'Submit_Refund', 'Submit_Update', 'Mobile_Admin'] }, { type: 'enumInfo', - localName: 'BankAccountTypeEnum', - values: ['checking', 'savings', 'businessChecking'] + localName: 'CustomerTypeEnum', + values: ['individual', 'business'] }, { type: 'enumInfo', - localName: 'SplitTenderStatusEnum', - values: ['completed', 'held', 'voided'] + localName: 'ARBSubscriptionStatusEnum', + values: ['active', 'expired', 'suspended', 'canceled', 'terminated'] }, { type: 'enumInfo', - localName: 'AfdsTransactionEnum', - values: ['approve', 'decline'] + localName: 'BankAccountTypeEnum', + values: ['checking', 'savings', 'businessChecking'] }, { type: 'enumInfo', - localName: 'EncryptionAlgorithmType', - values: ['TDES', 'AES', 'RSA'] + localName: 'ValidationModeEnum', + values: ['none', 'testMode', 'liveMode', 'oldLiveMode'] }, { type: 'enumInfo', localName: 'CustomerPaymentProfileSearchTypeEnum', values: ['cardsExpiringInMonth'] }, { type: 'enumInfo', - localName: 'FDSFilterActionEnum', - values: ['reject', 'decline', 'hold', 'authAndHold', 'report'] + localName: 'PaymentMethodsTypeEnum', + values: ['Visa', 'MasterCard', 'Discover', 'AmericanExpress', 'DinersClub', 'JCB', 'EnRoute', 'Echeck', 'Paypal', 'VisaCheckout', 'ApplePay', 'AndroidPay', 'GooglePay'] }, { type: 'enumInfo', - localName: 'EncodingType', - values: ['Base64', 'Hex'] + localName: 'AccountTypeEnum', + values: ['Visa', 'MasterCard', 'AmericanExpress', 'Discover', 'JCB', 'DinersClub', 'eCheck'] }, { type: 'enumInfo', - localName: 'CardTypeEnum', - values: ['Visa', 'MasterCard', 'AmericanExpress', 'Discover', 'JCB', 'DinersClub'] + localName: 'PaymentMethodEnum', + values: ['creditCard', 'eCheck', 'payPal'] }, { type: 'enumInfo', - localName: 'DeviceActivationEnum', - values: ['Activate', 'Disable'] + localName: 'SplitTenderStatusEnum', + values: ['completed', 'held', 'voided'] }, { type: 'enumInfo', - localName: 'ARBGetSubscriptionListSearchTypeEnum', - values: ['cardExpiringThisMonth', 'subscriptionActive', 'subscriptionExpiringThisMonth', 'subscriptionInactive'] + localName: 'DeviceActivationEnum', + values: ['Activate', 'Disable'] }, { type: 'enumInfo', localName: 'ARBGetSubscriptionListOrderFieldEnum', values: ['id', 'name', 'status', 'createTimeStampUTC', 'lastName', 'firstName', 'accountNumber', 'amount', 'pastOccurrences'] }, { type: 'enumInfo', - localName: 'CustomerTypeEnum', - values: ['individual', 'business'] + localName: 'EcheckTypeEnum', + values: ['PPD', 'WEB', 'CCD', 'TEL', 'ARC', 'BOC'] }, { type: 'enumInfo', - localName: 'PaymentMethodsTypeEnum', - values: ['Visa', 'MasterCard', 'Discover', 'AmericanExpress', 'DinersClub', 'JCB', 'EnRoute', 'Echeck', 'Paypal', 'VisaCheckout', 'ApplePay', 'AndroidPay'] + localName: 'WebCheckOutTypeEnum', + values: ['PAN', 'TOKEN'] }, { type: 'enumInfo', - localName: 'TransactionListOrderFieldEnum', - values: ['id', 'submitTimeUTC'] + localName: 'AfdsTransactionEnum', + values: ['approve', 'decline'] }, { type: 'enumInfo', - localName: 'EcheckTypeEnum', - values: ['PPD', 'WEB', 'CCD', 'TEL', 'ARC', 'BOC'] + localName: 'AuthIndicatorEnum', + values: ['pre', 'final'] }, { type: 'enumInfo', - localName: 'CustomerPaymentProfileOrderFieldEnum', - values: ['id'] + localName: 'ARBGetSubscriptionListSearchTypeEnum', + values: ['cardExpiringThisMonth', 'subscriptionActive', 'subscriptionExpiringThisMonth', 'subscriptionInactive'] }, { type: 'enumInfo', - localName: 'WebCheckOutTypeEnum', - values: ['PAN', 'TOKEN'] + localName: 'MerchantInitTransReasonEnum', + values: ['resubmission', 'delayedCharge', 'reauthorization', 'noShow'] }, { type: 'enumInfo', - localName: 'AUJobTypeEnum', - values: ['all', 'updates', 'deletes'] + localName: 'TransactionListOrderFieldEnum', + values: ['id', 'submitTimeUTC'] }, { type: 'enumInfo', - localName: 'SettingNameEnum', - values: ['emailCustomer', 'merchantEmail', 'allowPartialAuth', 'headerEmailReceipt', 'footerEmailReceipt', 'recurringBilling', 'duplicateWindow', 'testRequest', 'hostedProfileReturnUrl', 'hostedProfileReturnUrlText', 'hostedProfilePageBorderVisible', 'hostedProfileIFrameCommunicatorUrl', 'hostedProfileHeadingBgColor', 'hostedProfileValidationMode', 'hostedProfileBillingAddressRequired', 'hostedProfileCardCodeRequired', 'hostedProfileBillingAddressOptions', 'hostedProfileManageOptions', 'hostedPaymentIFrameCommunicatorUrl', 'hostedPaymentButtonOptions', 'hostedPaymentReturnOptions', 'hostedPaymentOrderOptions', 'hostedPaymentPaymentOptions', 'hostedPaymentBillingAddressOptions', 'hostedPaymentShippingAddressOptions', 'hostedPaymentSecurityOptions', 'hostedPaymentCustomerOptions', 'hostedPaymentStyleOptions'] + localName: 'CustomerPaymentProfileOrderFieldEnum', + values: ['id'] }, { type: 'enumInfo', - localName: 'AccountTypeEnum', - values: ['Visa', 'MasterCard', 'AmericanExpress', 'Discover', 'JCB', 'DinersClub', 'eCheck'] + localName: 'CustomerProfileTypeEnum', + values: ['regular', 'guest'] }, { type: 'enumInfo', - localName: 'ARBSubscriptionUnitEnum', - values: ['days', 'months'] + localName: 'EncodingType', + values: ['Base64', 'Hex'] }, { type: 'enumInfo', - localName: 'PaymentMethodEnum', - values: ['creditCard', 'eCheck', 'payPal'] + localName: 'EncryptionAlgorithmType', + values: ['TDES', 'AES', 'RSA'] }, { type: 'enumInfo', - localName: 'PermissionsEnum', - values: ['API_Merchant_BasicReporting', 'Submit_Charge', 'Submit_Refund', 'Submit_Update', 'Mobile_Admin'] + localName: 'SettlementStateEnum', + values: ['settledSuccessfully', 'settlementError', 'pendingSettlement'] }, { type: 'enumInfo', - localName: 'ARBSubscriptionStatusEnum', - values: ['active', 'expired', 'suspended', 'canceled', 'terminated'] + localName: 'SettingNameEnum', + values: ['emailCustomer', 'merchantEmail', 'allowPartialAuth', 'headerEmailReceipt', 'footerEmailReceipt', 'recurringBilling', 'duplicateWindow', 'testRequest', 'hostedProfileReturnUrl', 'hostedProfileReturnUrlText', 'hostedProfilePageBorderVisible', 'hostedProfileIFrameCommunicatorUrl', 'hostedProfileHeadingBgColor', 'hostedProfileValidationMode', 'hostedProfileBillingAddressRequired', 'hostedProfileCardCodeRequired', 'hostedProfileBillingAddressOptions', 'hostedProfileManageOptions', 'hostedPaymentIFrameCommunicatorUrl', 'hostedPaymentButtonOptions', 'hostedPaymentReturnOptions', 'hostedPaymentOrderOptions', 'hostedPaymentPaymentOptions', 'hostedPaymentBillingAddressOptions', 'hostedPaymentShippingAddressOptions', 'hostedPaymentSecurityOptions', 'hostedPaymentCustomerOptions', 'hostedPaymentStyleOptions', 'typeEmailReceipt', 'hostedProfilePaymentOptions', 'hostedProfileSaveButtonText', 'hostedPaymentVisaCheckoutOptions'] }, { type: 'enumInfo', localName: 'TransactionStatusEnum', values: ['authorizedPendingCapture', 'capturedPendingSettlement', 'communicationError', 'refundSettledSuccessfully', 'refundPendingSettlement', 'approvedReview', 'declined', 'couldNotVoid', 'expired', 'generalError', 'pendingFinalSettlement', 'pendingSettlement', 'failedReview', 'settledSuccessfully', 'settlementError', 'underReview', 'updatingSettlement', 'voided', 'FDSPendingReview', 'FDSAuthorizedPendingReview', 'returnedItem', 'chargeback', 'chargebackReversal', 'authorizedPendingRelease'] }, { type: 'enumInfo', - localName: 'MessageTypeEnum', - values: ['Ok', 'Error'] + localName: 'AUJobTypeEnum', + values: ['all', 'updates', 'deletes'] }, { type: 'enumInfo', localName: 'TransactionTypeEnum', @@ -3119,274 +3552,301 @@ var Schema_Module_Factory = function () { type: 'enumInfo', localName: 'OperationType', values: ['DECRYPT'] + }, { + type: 'enumInfo', + localName: 'CardTypeEnum', + values: ['Visa', 'MasterCard', 'AmericanExpress', 'Discover', 'JCB', 'DinersClub'] + }, { + type: 'enumInfo', + localName: 'TransactionGroupStatusEnum', + values: ['any', 'pendingApproval'] + }, { + type: 'enumInfo', + localName: 'ARBSubscriptionUnitEnum', + values: ['days', 'months'] }], elementInfos: [{ - elementName: 'sendCustomerTransactionReceiptRequest', - typeInfo: '.SendCustomerTransactionReceiptRequest' + elementName: 'ARBCancelSubscriptionRequest', + typeInfo: '.ARBCancelSubscriptionRequest' }, { - elementName: 'EnumCollection', - typeInfo: '.EnumCollection' + elementName: 'ARBGetSubscriptionRequest', + typeInfo: '.ARBGetSubscriptionRequest' }, { - elementName: 'decryptPaymentDataResponse', - typeInfo: '.DecryptPaymentDataResponse' + elementName: 'updateSplitTenderGroupResponse', + typeInfo: '.UpdateSplitTenderGroupResponse' }, { - elementName: 'ARBCreateSubscriptionRequest', - typeInfo: '.ARBCreateSubscriptionRequest' + elementName: 'getSettledBatchListRequest', + typeInfo: '.GetSettledBatchListRequest' }, { - elementName: 'getCustomerPaymentProfileRequest', - typeInfo: '.GetCustomerPaymentProfileRequest' + elementName: 'getSettledBatchListResponse', + typeInfo: '.GetSettledBatchListResponse' }, { - elementName: 'getHostedProfilePageResponse', - typeInfo: '.GetHostedProfilePageResponse' + elementName: 'createCustomerPaymentProfileRequest', + typeInfo: '.CreateCustomerPaymentProfileRequest' }, { - elementName: 'mobileDeviceLoginRequest', - typeInfo: '.MobileDeviceLoginRequest' + elementName: 'getMerchantDetailsResponse', + typeInfo: '.GetMerchantDetailsResponse' }, { - elementName: 'updateSplitTenderGroupResponse', - typeInfo: '.UpdateSplitTenderGroupResponse' + elementName: 'updateSplitTenderGroupRequest', + typeInfo: '.UpdateSplitTenderGroupRequest' }, { - elementName: 'getBatchStatisticsResponse', - typeInfo: '.GetBatchStatisticsResponse' + elementName: 'decryptPaymentDataRequest', + typeInfo: '.DecryptPaymentDataRequest' }, { - elementName: 'isAliveRequest', - typeInfo: '.IsAliveRequest' + elementName: 'createCustomerProfileResponse', + typeInfo: '.CreateCustomerProfileResponse' }, { - elementName: 'getCustomerProfileRequest', - typeInfo: '.GetCustomerProfileRequest' + elementName: 'getCustomerProfileIdsRequest', + typeInfo: '.GetCustomerProfileIdsRequest' }, { - elementName: 'securePaymentContainerRequest', - typeInfo: '.SecurePaymentContainerRequest' + elementName: 'updateCustomerProfileResponse', + typeInfo: '.UpdateCustomerProfileResponse' }, { - elementName: 'getCustomerPaymentProfileListRequest', - typeInfo: '.GetCustomerPaymentProfileListRequest' + elementName: 'getAUJobSummaryRequest', + typeInfo: '.GetAUJobSummaryRequest' }, { - elementName: 'ARBCreateSubscriptionResponse', - typeInfo: '.ARBCreateSubscriptionResponse' + elementName: 'isAliveResponse', + typeInfo: '.IsAliveResponse' }, { - elementName: 'getHostedPaymentPageResponse', - typeInfo: '.GetHostedPaymentPageResponse' + elementName: 'mobileDeviceRegistrationRequest', + typeInfo: '.MobileDeviceRegistrationRequest' }, { - elementName: 'getAUJobDetailsResponse', - typeInfo: '.GetAUJobDetailsResponse' + elementName: 'logoutResponse', + typeInfo: '.LogoutResponse' }, { - elementName: 'deleteCustomerPaymentProfileResponse', - typeInfo: '.DeleteCustomerPaymentProfileResponse' + elementName: 'EnumCollection', + typeInfo: '.EnumCollection' }, { - elementName: 'authenticateTestRequest', - typeInfo: '.AuthenticateTestRequest' + elementName: 'getTransactionListRequest', + typeInfo: '.GetTransactionListRequest' + }, { + elementName: 'mobileDeviceLoginResponse', + typeInfo: '.MobileDeviceLoginResponse' + }, { + elementName: 'getUnsettledTransactionListResponse', + typeInfo: '.GetUnsettledTransactionListResponse' + }, { + elementName: 'updateCustomerPaymentProfileResponse', + typeInfo: '.UpdateCustomerPaymentProfileResponse' + }, { + elementName: 'ARBGetSubscriptionListRequest', + typeInfo: '.ARBGetSubscriptionListRequest' + }, { + elementName: 'getCustomerPaymentProfileRequest', + typeInfo: '.GetCustomerPaymentProfileRequest' + }, { + elementName: 'getBatchStatisticsResponse', + typeInfo: '.GetBatchStatisticsResponse' + }, { + elementName: 'createCustomerShippingAddressRequest', + typeInfo: '.CreateCustomerShippingAddressRequest' + }, { + elementName: 'getCustomerPaymentProfileResponse', + typeInfo: '.GetCustomerPaymentProfileResponse' }, { - elementName: 'getMerchantDetailsResponse', - typeInfo: '.GetMerchantDetailsResponse' + elementName: 'getHostedProfilePageResponse', + typeInfo: '.GetHostedProfilePageResponse' }, { - elementName: 'logoutResponse', - typeInfo: '.LogoutResponse' + elementName: 'createCustomerPaymentProfileResponse', + typeInfo: '.CreateCustomerPaymentProfileResponse' }, { - elementName: 'ARBCancelSubscriptionResponse', - typeInfo: '.ARBCancelSubscriptionResponse' + elementName: 'getCustomerProfileResponse', + typeInfo: '.GetCustomerProfileResponse' }, { - elementName: 'createCustomerProfileFromTransactionRequest', - typeInfo: '.CreateCustomerProfileFromTransactionRequest' + elementName: 'createCustomerProfileTransactionRequest', + typeInfo: '.CreateCustomerProfileTransactionRequest' }, { elementName: 'getTransactionDetailsResponse', typeInfo: '.GetTransactionDetailsResponse' }, { - elementName: 'deleteCustomerProfileResponse', - typeInfo: '.DeleteCustomerProfileResponse' - }, { - elementName: 'ARBGetSubscriptionStatusRequest', - typeInfo: '.ARBGetSubscriptionStatusRequest' - }, { - elementName: 'createCustomerProfileResponse', - typeInfo: '.CreateCustomerProfileResponse' + elementName: 'deleteCustomerPaymentProfileRequest', + typeInfo: '.DeleteCustomerPaymentProfileRequest' }, { - elementName: 'ARBUpdateSubscriptionResponse', - typeInfo: '.ARBUpdateSubscriptionResponse' + elementName: 'getHostedPaymentPageRequest', + typeInfo: '.GetHostedPaymentPageRequest' }, { elementName: 'validateCustomerPaymentProfileRequest', typeInfo: '.ValidateCustomerPaymentProfileRequest' }, { - elementName: 'getCustomerPaymentProfileListResponse', - typeInfo: '.GetCustomerPaymentProfileListResponse' + elementName: 'getCustomerPaymentProfileNonceRequest', + typeInfo: '.GetCustomerPaymentProfileNonceRequest' }, { - elementName: 'updateCustomerProfileResponse', - typeInfo: '.UpdateCustomerProfileResponse' + elementName: 'logoutRequest', + typeInfo: '.LogoutRequest' }, { - elementName: 'securePaymentContainerResponse', - typeInfo: '.SecurePaymentContainerResponse' + elementName: 'deleteCustomerShippingAddressResponse', + typeInfo: '.DeleteCustomerShippingAddressResponse' }, { - elementName: 'getSettledBatchListRequest', - typeInfo: '.GetSettledBatchListRequest' + elementName: 'getCustomerPaymentProfileListRequest', + typeInfo: '.GetCustomerPaymentProfileListRequest' }, { - elementName: 'updateCustomerPaymentProfileResponse', - typeInfo: '.UpdateCustomerPaymentProfileResponse' + elementName: 'ARBGetSubscriptionStatusResponse', + typeInfo: '.ARBGetSubscriptionStatusResponse' }, { - elementName: 'getCustomerPaymentProfileResponse', - typeInfo: '.GetCustomerPaymentProfileResponse' + elementName: 'sendCustomerTransactionReceiptRequest', + typeInfo: '.SendCustomerTransactionReceiptRequest' }, { - elementName: 'getHostedPaymentPageRequest', - typeInfo: '.GetHostedPaymentPageRequest' + elementName: 'getCustomerShippingAddressRequest', + typeInfo: '.GetCustomerShippingAddressRequest' }, { - elementName: 'getAUJobSummaryRequest', - typeInfo: '.GetAUJobSummaryRequest' + elementName: 'ARBCreateSubscriptionRequest', + typeInfo: '.ARBCreateSubscriptionRequest' }, { - elementName: 'getCustomerProfileIdsResponse', - typeInfo: '.GetCustomerProfileIdsResponse' + elementName: 'securePaymentContainerRequest', + typeInfo: '.SecurePaymentContainerRequest' }, { - elementName: 'updateHeldTransactionResponse', - typeInfo: '.UpdateHeldTransactionResponse' + elementName: 'ARBCreateSubscriptionResponse', + typeInfo: '.ARBCreateSubscriptionResponse' }, { - elementName: 'ARBGetSubscriptionListResponse', - typeInfo: '.ARBGetSubscriptionListResponse' + elementName: 'mobileDeviceRegistrationResponse', + typeInfo: '.MobileDeviceRegistrationResponse' }, { - elementName: 'logoutRequest', - typeInfo: '.LogoutRequest' + elementName: 'getCustomerProfileRequest', + typeInfo: '.GetCustomerProfileRequest' }, { - elementName: 'getTransactionDetailsRequest', - typeInfo: '.GetTransactionDetailsRequest' + elementName: 'getCustomerShippingAddressResponse', + typeInfo: '.GetCustomerShippingAddressResponse' }, { - elementName: 'authenticateTestResponse', - typeInfo: '.AuthenticateTestResponse' + elementName: 'updateCustomerShippingAddressRequest', + typeInfo: '.UpdateCustomerShippingAddressRequest' }, { - elementName: 'isAliveResponse', - typeInfo: '.IsAliveResponse' + elementName: 'getTransactionListResponse', + typeInfo: '.GetTransactionListResponse' }, { - elementName: 'getCustomerProfileIdsRequest', - typeInfo: '.GetCustomerProfileIdsRequest' + elementName: 'deleteCustomerPaymentProfileResponse', + typeInfo: '.DeleteCustomerPaymentProfileResponse' }, { - elementName: 'ARBGetSubscriptionListRequest', - typeInfo: '.ARBGetSubscriptionListRequest' + elementName: 'ARBCancelSubscriptionResponse', + typeInfo: '.ARBCancelSubscriptionResponse' }, { - elementName: 'updateCustomerShippingAddressRequest', - typeInfo: '.UpdateCustomerShippingAddressRequest' + elementName: 'isAliveRequest', + typeInfo: '.IsAliveRequest' }, { - elementName: 'getCustomerShippingAddressResponse', - typeInfo: '.GetCustomerShippingAddressResponse' + elementName: 'updateCustomerPaymentProfileRequest', + typeInfo: '.UpdateCustomerPaymentProfileRequest' }, { - elementName: 'ARBGetSubscriptionRequest', - typeInfo: '.ARBGetSubscriptionRequest' + elementName: 'updateHeldTransactionRequest', + typeInfo: '.UpdateHeldTransactionRequest' }, { - elementName: 'getSettledBatchListResponse', - typeInfo: '.GetSettledBatchListResponse' + elementName: 'validateCustomerPaymentProfileResponse', + typeInfo: '.ValidateCustomerPaymentProfileResponse' }, { - elementName: 'createCustomerPaymentProfileRequest', - typeInfo: '.CreateCustomerPaymentProfileRequest' + elementName: 'createCustomerProfileTransactionResponse', + typeInfo: '.CreateCustomerProfileTransactionResponse' }, { - elementName: 'ARBCancelSubscriptionRequest', - typeInfo: '.ARBCancelSubscriptionRequest' + elementName: 'updateCustomerProfileRequest', + typeInfo: '.UpdateCustomerProfileRequest' }, { - elementName: 'createCustomerProfileTransactionRequest', - typeInfo: '.CreateCustomerProfileTransactionRequest' + elementName: 'createTransactionRequest', + typeInfo: '.CreateTransactionRequest' }, { - elementName: 'getAUJobDetailsRequest', - typeInfo: '.GetAUJobDetailsRequest' + elementName: 'ErrorResponse', + typeInfo: '.ANetApiResponse' }, { - elementName: 'createCustomerShippingAddressResponse', - typeInfo: '.CreateCustomerShippingAddressResponse' + elementName: 'authenticateTestRequest', + typeInfo: '.AuthenticateTestRequest' }, { - elementName: 'sendCustomerTransactionReceiptResponse', - typeInfo: '.SendCustomerTransactionReceiptResponse' + elementName: 'getUnsettledTransactionListRequest', + typeInfo: '.GetUnsettledTransactionListRequest' }, { - elementName: 'deleteCustomerPaymentProfileRequest', - typeInfo: '.DeleteCustomerPaymentProfileRequest' + elementName: 'getHostedPaymentPageResponse', + typeInfo: '.GetHostedPaymentPageResponse' }, { - elementName: 'getBatchStatisticsRequest', - typeInfo: '.GetBatchStatisticsRequest' + elementName: 'getCustomerPaymentProfileListResponse', + typeInfo: '.GetCustomerPaymentProfileListResponse' }, { - elementName: 'updateSplitTenderGroupRequest', - typeInfo: '.UpdateSplitTenderGroupRequest' + elementName: 'updateCustomerShippingAddressResponse', + typeInfo: '.UpdateCustomerShippingAddressResponse' }, { - elementName: 'getHostedProfilePageRequest', - typeInfo: '.GetHostedProfilePageRequest' + elementName: 'getBatchStatisticsRequest', + typeInfo: '.GetBatchStatisticsRequest' }, { - elementName: 'getMerchantDetailsRequest', - typeInfo: '.GetMerchantDetailsRequest' + elementName: 'getAUJobDetailsResponse', + typeInfo: '.GetAUJobDetailsResponse' }, { - elementName: 'deleteCustomerShippingAddressResponse', - typeInfo: '.DeleteCustomerShippingAddressResponse' + elementName: 'getTransactionListForCustomerRequest', + typeInfo: '.GetTransactionListForCustomerRequest' }, { - elementName: 'decryptPaymentDataRequest', - typeInfo: '.DecryptPaymentDataRequest' + elementName: 'ARBUpdateSubscriptionResponse', + typeInfo: '.ARBUpdateSubscriptionResponse' }, { - elementName: 'createTransactionRequest', - typeInfo: '.CreateTransactionRequest' + elementName: 'deleteCustomerProfileRequest', + typeInfo: '.DeleteCustomerProfileRequest' }, { - elementName: 'mobileDeviceLoginResponse', - typeInfo: '.MobileDeviceLoginResponse' + elementName: 'sendCustomerTransactionReceiptResponse', + typeInfo: '.SendCustomerTransactionReceiptResponse' }, { elementName: 'getAUJobSummaryResponse', typeInfo: '.GetAUJobSummaryResponse' }, { - elementName: 'createCustomerPaymentProfileResponse', - typeInfo: '.CreateCustomerPaymentProfileResponse' - }, { - elementName: 'ErrorResponse', - typeInfo: '.ANetApiResponse' + elementName: 'ARBGetSubscriptionStatusRequest', + typeInfo: '.ARBGetSubscriptionStatusRequest' }, { - elementName: 'getCustomerProfileResponse', - typeInfo: '.GetCustomerProfileResponse' + elementName: 'getCustomerProfileIdsResponse', + typeInfo: '.GetCustomerProfileIdsResponse' }, { - elementName: 'updateCustomerPaymentProfileRequest', - typeInfo: '.UpdateCustomerPaymentProfileRequest' + elementName: 'updateMerchantDetailsRequest', + typeInfo: '.UpdateMerchantDetailsRequest' }, { - elementName: 'mobileDeviceRegistrationResponse', - typeInfo: '.MobileDeviceRegistrationResponse' + elementName: 'getMerchantDetailsRequest', + typeInfo: '.GetMerchantDetailsRequest' }, { elementName: 'ARBUpdateSubscriptionRequest', typeInfo: '.ARBUpdateSubscriptionRequest' }, { - elementName: 'createCustomerShippingAddressRequest', - typeInfo: '.CreateCustomerShippingAddressRequest' + elementName: 'updateHeldTransactionResponse', + typeInfo: '.UpdateHeldTransactionResponse' }, { - elementName: 'getCustomerShippingAddressRequest', - typeInfo: '.GetCustomerShippingAddressRequest' + elementName: 'updateMerchantDetailsResponse', + typeInfo: '.UpdateMerchantDetailsResponse' }, { - elementName: 'updateHeldTransactionRequest', - typeInfo: '.UpdateHeldTransactionRequest' + elementName: 'getAUJobDetailsRequest', + typeInfo: '.GetAUJobDetailsRequest' }, { - elementName: 'updateCustomerProfileRequest', - typeInfo: '.UpdateCustomerProfileRequest' + elementName: 'createCustomerProfileFromTransactionRequest', + typeInfo: '.CreateCustomerProfileFromTransactionRequest' }, { - elementName: 'deleteCustomerShippingAddressRequest', - typeInfo: '.DeleteCustomerShippingAddressRequest' + elementName: 'deleteCustomerProfileResponse', + typeInfo: '.DeleteCustomerProfileResponse' }, { - elementName: 'validateCustomerPaymentProfileResponse', - typeInfo: '.ValidateCustomerPaymentProfileResponse' + elementName: 'getCustomerPaymentProfileNonceResponse', + typeInfo: '.GetCustomerPaymentProfileNonceResponse' }, { - elementName: 'updateCustomerShippingAddressResponse', - typeInfo: '.UpdateCustomerShippingAddressResponse' + elementName: 'getTransactionDetailsRequest', + typeInfo: '.GetTransactionDetailsRequest' }, { - elementName: 'getUnsettledTransactionListRequest', - typeInfo: '.GetUnsettledTransactionListRequest' + elementName: 'securePaymentContainerResponse', + typeInfo: '.SecurePaymentContainerResponse' }, { - elementName: 'ARBGetSubscriptionResponse', - typeInfo: '.ARBGetSubscriptionResponse' + elementName: 'createTransactionResponse', + typeInfo: '.CreateTransactionResponse' }, { - elementName: 'createCustomerProfileRequest', - typeInfo: '.CreateCustomerProfileRequest' + elementName: 'ARBGetSubscriptionListResponse', + typeInfo: '.ARBGetSubscriptionListResponse' }, { - elementName: 'getTransactionListResponse', - typeInfo: '.GetTransactionListResponse' + elementName: 'decryptPaymentDataResponse', + typeInfo: '.DecryptPaymentDataResponse' }, { - elementName: 'mobileDeviceRegistrationRequest', - typeInfo: '.MobileDeviceRegistrationRequest' + elementName: 'createCustomerShippingAddressResponse', + typeInfo: '.CreateCustomerShippingAddressResponse' }, { - elementName: 'createCustomerProfileTransactionResponse', - typeInfo: '.CreateCustomerProfileTransactionResponse' + elementName: 'authenticateTestResponse', + typeInfo: '.AuthenticateTestResponse' }, { - elementName: 'deleteCustomerProfileRequest', - typeInfo: '.DeleteCustomerProfileRequest' + elementName: 'createCustomerProfileRequest', + typeInfo: '.CreateCustomerProfileRequest' }, { - elementName: 'getTransactionListRequest', - typeInfo: '.GetTransactionListRequest' + elementName: 'ARBGetSubscriptionResponse', + typeInfo: '.ARBGetSubscriptionResponse' }, { - elementName: 'getUnsettledTransactionListResponse', - typeInfo: '.GetUnsettledTransactionListResponse' + elementName: 'getHostedProfilePageRequest', + typeInfo: '.GetHostedProfilePageRequest' }, { - elementName: 'createTransactionResponse', - typeInfo: '.CreateTransactionResponse' + elementName: 'mobileDeviceLoginRequest', + typeInfo: '.MobileDeviceLoginRequest' }, { - elementName: 'ARBGetSubscriptionStatusResponse', - typeInfo: '.ARBGetSubscriptionStatusResponse' + elementName: 'deleteCustomerShippingAddressRequest', + typeInfo: '.DeleteCustomerShippingAddressRequest' }] }; return { diff --git a/package.json b/package.json index 43ecc0c..ab21788 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,22 @@ { "name": "authorizenet", - "version": "1.0.1", + "version": "1.0.10", "description": "nodejs sdk for Authorize.Net", "main": "lib/authorizenet.js", "directories": { "test": "tests" }, "dependencies": { - "request": "^2.72.0", - "winston": "^2.2.0" + "axios": "1.8.3", + "https-proxy-agent": "^7.0.0", + "winston": "^3.11.0", + "winston-daily-rotate-file": "^4.7.1" }, "devDependencies": { - "eslint": "^2.12.0", - "jsonix": "^2.3.2", "chai": "^3.5.0", - "mocha": "^3.0.2" + "eslint": "^6.6.0", + "jsonix": "^3.0.0", + "mocha": "^8.2.1" }, "scripts": { "test": "mocha" diff --git a/sample-code-node b/sample-code-node new file mode 160000 index 0000000..ef9e5c2 --- /dev/null +++ b/sample-code-node @@ -0,0 +1 @@ +Subproject commit ef9e5c2d9e0379b5f47a0ebcb6847e711fe196ef diff --git a/scripts/ControllerTemplate.jst b/scripts/ControllerTemplate.jst index f3b49f7..c9f339e 100644 --- a/scripts/ControllerTemplate.jst +++ b/scripts/ControllerTemplate.jst @@ -1,7 +1,8 @@ class APICONTROLLERNAMEController extends APIOperationBase { - constructor(apiRequest) { + constructor(apiRequest, externalConfig = null) { + var logger = Logger.getLogger('APICONTROLLERNAMEController', externalConfig) logger.debug('Enter APICONTROLLERNAMEController constructor'); - super(apiRequest); + super(apiRequest, externalConfig); logger.debug('Exit APICONTROLLERNAMEController constructor'); } diff --git a/scripts/generateControllersFromSchema.js b/scripts/generateControllersFromSchema.js index db547e6..6a00571 100644 --- a/scripts/generateControllersFromSchema.js +++ b/scripts/generateControllersFromSchema.js @@ -2,19 +2,17 @@ var schema = require('../mappings/Schema.js').Schema; var controllerSet = new Set(); -for(var i=0;i -1) + if (obj['localName'].indexOf('.') > -1) classDefinition = obj['localName'] + ' = ' + 'class'; else classDefinition = 'class ' + obj['localName']; - if(obj['baseTypeInfo'] != null) + if (obj['baseTypeInfo'] != null) classDefinition += ' extends ' + obj['baseTypeInfo'].slice(1); classDefinition += ' {'; classDefinition += newline; - if((obj['localName'].match('Request'+'$') == 'Request') || (obj['localName'].match('Response'+'$') == 'Response')) - { - if(elementInfo[obj['localName']] != null) { + if ((obj['localName'].match('Request' + '$') == 'Request') || (obj['localName'].match('Response' + '$') == 'Response')) { + if (elementInfo[obj['localName']] != null) { var getJSONfunc = tab.repeat(tabcount) + 'getJSON() { ' + newline; tabcount++; + getJSONfunc += tab.repeat(tabcount) + 'var logger = Logger.getLogger(\'' + obj['localName'] + '\');' + newline; getJSONfunc += tab.repeat(tabcount) + 'logger.debug(\'Enter ' + obj['localName'] + ' getJSON\');' + newline; getJSONfunc += tab.repeat(tabcount) + 'utils.delete_null_properties(this, true);' + newline; getJSONfunc += tab.repeat(tabcount) + 'var obj = { \'' + elementInfo[obj['localName']] + '\' : this };' + newline; @@ -82,7 +82,7 @@ for(i=0;i -1) + if (obj['localName'].indexOf('.') > -1) classDefinition += ';'; - + classDefinition += newline + newline; classDefinition += 'module.exports.' + obj['localName'] + ' = ' + obj['localName'] + ';' + newline; //console.log(classDefinition); - if(obj['baseTypeInfo'] != null) - { - if(baseInfo[obj['baseTypeInfo'].slice(1)] != null) + if (obj['baseTypeInfo'] != null) { + if (baseInfo[obj['baseTypeInfo'].slice(1)] != null) level2ExtendedClasses.push(classDefinition); else level1ExtendedClasses.push(classDefinition); } - else if((obj['localName'].split('.').length - 1) == 1) - { + else if ((obj['localName'].split('.').length - 1) == 1) { //console.log('level 1 : ' + obj['localName']); level1InnerClasses.push(classDefinition); } - else if((obj['localName'].split('.').length - 1) == 2) - { + else if ((obj['localName'].split('.').length - 1) == 2) { //console.log('level 2 : ' + obj['localName']); level2InnerClasses.push(classDefinition); } @@ -250,32 +245,32 @@ for(i=0;i pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy