forked from eriknakata/advcash
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validationSendMoneyToAdvcashCard method
- Loading branch information
Erik Nakata
authored and
Erik Nakata
committed
May 8, 2017
1 parent
df99f39
commit 12c3fc8
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import advcash from '../src/index' | ||
import chai from 'chai' | ||
import chaiAsPromised from 'chai-as-promised' | ||
|
||
const expect = chai.expect | ||
const password = process.env.ADVCASH_PASSWORD | ||
const accountEmail = process.env.ADVCASH_ACCOUNT_EMAIL | ||
const apiName = process.env.ADVCASH_API_NAME | ||
const advcashSoapUrl = process.env.ADVCASH_SOAP_URL | ||
|
||
chai.use(chaiAsPromised) | ||
|
||
describe('Validation Send Money To Advcash Card', () => { | ||
it('Should return a null object', async () => { | ||
const client = await advcash({ password, apiName, accountEmail }) | ||
|
||
const promise = client.validationSendMoneyToAdvcashCard({ | ||
amount: 0.10, | ||
currency: "USD", | ||
email: "[email protected]", | ||
cardType: "PLASTIC", | ||
note: "teste", | ||
savePaymentTemplate: true | ||
}) | ||
|
||
return Promise.all([ | ||
expect(promise).to.eventually.equal(null) | ||
]) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters