upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
121 lines (96 loc) • 4.22 kB
JavaScript
/*
* OpenAPI definition
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 3.0.79
*
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', '../../src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.UpstoxClient);
}
}(this, function(expect, UpstoxClient) {
'use strict';
var instance;
describe('(package)', function() {
describe('MutualFundOrderData', function() {
beforeEach(function() {
instance = new UpstoxClient.MutualFundOrderData();
});
it('should create an instance of MutualFundOrderData', function() {
expect(instance).to.be.a(UpstoxClient.MutualFundOrderData);
});
it('should have the property status (base name: "status")', function() {
expect(instance).to.have.property('status');
});
it('should have the property folio (base name: "folio")', function() {
expect(instance).to.have.property('folio');
});
it('should have the property fund (base name: "fund")', function() {
expect(instance).to.have.property('fund');
});
it('should have the property amount (base name: "amount")', function() {
expect(instance).to.have.property('amount');
});
it('should have the property variety (base name: "variety")', function() {
expect(instance).to.have.property('variety');
});
it('should have the property quantity (base name: "quantity")', function() {
expect(instance).to.have.property('quantity');
});
it('should have the property price (base name: "price")', function() {
expect(instance).to.have.property('price');
});
it('should have the property orderId (base name: "order_id")', function() {
expect(instance).to.have.property('orderId');
});
it('should have the property exchangeOrderId (base name: "exchange_order_id")', function() {
expect(instance).to.have.property('exchangeOrderId');
});
it('should have the property instrumentKey (base name: "instrument_key")', function() {
expect(instance).to.have.property('instrumentKey');
});
it('should have the property statusMessage (base name: "status_message")', function() {
expect(instance).to.have.property('statusMessage');
});
it('should have the property orderTimestamp (base name: "order_timestamp")', function() {
expect(instance).to.have.property('orderTimestamp');
});
it('should have the property exchangeTimestamp (base name: "exchange_timestamp")', function() {
expect(instance).to.have.property('exchangeTimestamp');
});
it('should have the property settlementId (base name: "settlement_id")', function() {
expect(instance).to.have.property('settlementId');
});
it('should have the property transactionType (base name: "transaction_type")', function() {
expect(instance).to.have.property('transactionType');
});
it('should have the property purchaseType (base name: "purchase_type")', function() {
expect(instance).to.have.property('purchaseType');
});
it('should have the property lastPrice (base name: "last_price")', function() {
expect(instance).to.have.property('lastPrice');
});
it('should have the property averagePrice (base name: "average_price")', function() {
expect(instance).to.have.property('averagePrice');
});
it('should have the property lastPriceDate (base name: "last_price_date")', function() {
expect(instance).to.have.property('lastPriceDate');
});
});
});
}));