omniacare
Version:
CHR OmniaCare API SDK for NodeJS
33 lines (27 loc) • 760 B
JavaScript
;
var chai = require('chai'),
expect = chai.expect,
should = chai.should();
chai.config.includeStack = true;
var omniacare = require('../');
omniacare.configure({host: 'omniacare.local'});
describe('SDK', function() {
describe('Payment', function() {
if (process.env.NOCK_OFF !== true) {
require('./mocks/payment');
}
it('create success', function(done) {
omniacare.payment.create({
'AccountID': '5051598',
'PaymentAmount': 1.12,
'BatchID': 656404,
'RemittanceClassID': 3,
'AdjustmentCodeID': 100046
})
.then(function(data) {
expect(data.Adjustments.Adjustment[0].$.AdjustmentID).equal('13946251');
})
.then(done,done);
})
});
});