square-connect
Version:
JavaScript client library for the Square Connect v2 API
51 lines (44 loc) • 1.03 kB
JavaScript
/**
* Square Connect API
* Client library for accessing the Square Connect APIs
*
* OpenAPI spec version: 2.0
* Contact: developers@squareup.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.3.0-SNAPSHOT
*
*/
var ApiClient = require('../ApiClient');
/**
* Enum class CardType.
* @enum {}
* @readonly
*/
var exports = {
/**
* value: "UNKNOWN_CARD_TYPE"
* @const
*/
"UNKNOWN_CARD_TYPE": "UNKNOWN_CARD_TYPE",
/**
* value: "CREDIT"
* @const
*/
"CREDIT": "CREDIT",
/**
* value: "DEBIT"
* @const
*/
"DEBIT": "DEBIT"};
/**
* Returns a <code>CardType</code> enum value from a Javascript object name.
* @param {Object} data The plain JavaScript object containing the name of the enum value.
* @return {module:model/CardType} The enum <code>CardType</code> value.
*/
exports.constructFromObject = function(object) {
return object;
}
module.exports = exports;