boatrace-ninja/purchaser

The Boatrace Ninja Purchaser.

1.0.0 2023-11-07 21:39 UTC

This package is auto-updated.

Last update: 2024-11-07 23:56:31 UTC


README

Latest Stable Version Latest Unstable Version License

Installation

$ composer require boatrace-ninja/purchaser

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

use Boatrace\Ninja\Purchaser;

Purchaser::setDepositAmount(10000)
    ->setSubscriberNumber('xxxxxxxx')
    ->setPersonalIdentificationNumber('xxxx')
    ->setAuthenticationPassword('xxxxxx')
    ->setPurchasePassword('xxxxxx')
    ->setPurchaseUnitAmount(2000)
    ->purchase(24, 12, 3, [12, 13, 14, 15, 16]);

Purchaser::setDepositAmount(10000)
    ->setSubscriberNumber('xxxxxxxx')
    ->setPersonalIdentificationNumber('xxxx')
    ->setAuthenticationPassword('xxxxxx')
    ->setPurchasePassword('xxxxxx')
    ->setPurchaseUnitAmount(2500)
    ->purchase(24, 12, 6, [123, 124, 125, 126]);

Testing

$ npm install selenium-standalone --save-dev
$ npx selenium-standalone install
$ npx selenium-standalone start
$ ./vendor/bin/phpunit

License

The Boatrace Ninja Purchaser is open source software licensed under the MIT license.