ClientTest
extends TestCase
Table of Contents
Constants
-
CANCEL_REFUND_JSON_STRING
= '{
"id": "WoE46gSLkJQS48RJEiNw3L",
"invoice": "Hpqc63wvE1ZjzeeH4kEycF",
"reference": "Test refund",
"status": "cancelled",
"amount": 10,
"transactionCurrency": "BTC",
"transactionAmount": 0.000594,
"transactionRefundFee": 0.000002,
"currency": "USD",
"lastRefundNotification": "2021-08-29T20:45:35.368Z",
"refundFee": 0.04,
"immediate": false,
"buyerPaysRefundFee": false,
"requestDate": "2021-08-29T20:45:34.000Z"
}'
-
CORRECT_JSON_STRING
= '[
{ "currency": "EUR", "balance": 0 },
{ "currency": "USD", "balance": 2389.82 },
{ "currency": "BTC", "balance": 0.000287 }
]'
-
CORRUPT_JSON_STRING
= '{"code":"USD""name":"US Dollar","rate":21205.85}'
-
MERCHANT_TOKEN
= 'kQLZ7C9YKPSnMCC4EJwrqRHXuQkLzL1W8DfZCh37DHb'
-
PAYOUT_TOKEN
= 'kQLZ7C9YKPSnMCC4EJwrqRHXuQkLzL1W8DfZCh37DHb'
-
TEST_INVOICE_GUID
= 'chc9kj52-04g0-4b6f-941d-3a844e352758'
-
TEST_INVOICE_ID
= 'UZjwcYkWAKfTMn9J1yyfs4'
-
UPDATE_REFUND_JSON_STRING
= '{"id": "WoE46gSLkJQS48RJEiNw3L",
"invoice": "Hpqc63wvE1ZjzeeH4kEycF",
"reference": "Test refund",
"status": "created",
"amount": 10,
"transactionCurrency": "BTC",
"transactionAmount": 0.000594,
"transactionRefundFee": 0.000002,
"currency": "USD",
"lastRefundNotification": "2021-08-29T20:45:35.368Z",
"refundFee": 0.04,
"immediate": false,
"buyerPaysRefundFee": false,
"requestDate": "2021-08-29T20:45:34.000Z"
}'
Methods
-
exceptionClassProvider()
: array<string|int, mixed>
-
setUp()
: void
-
testCancelInvoice()
: mixed
-
testCancelInvoiceByGuid()
: mixed
-
testCancelInvoiceByGuidShouldCatchJsonMapperException()
: mixed
-
testCancelInvoiceByGuidShouldCatchRestCliExceptions()
: mixed
-
testCancelInvoiceShouldCatchJsonMapperException()
: mixed
-
testCancelInvoiceShouldCatchRestCliExceptions()
: mixed
-
testCancelPayout()
: mixed
-
testCancelPayoutGroup()
: void
-
testCancelPayoutShouldCatchRestCliBitPayException()
: mixed
-
testCancelPayoutShouldCatchRestCliException()
: mixed
-
testCancelPayoutShouldCatchUnexistentPropertyError()
: mixed
-
testCancelRefund()
: mixed
-
testCancelRefundByGuid()
: mixed
-
testCancelRefundByGuidShouldCatchJsonMapperException()
: mixed
-
testCancelRefundByGuidShouldCatchRestCliBitPayException()
: mixed
-
testCancelRefundByGuidShouldCatchRestCliException()
: mixed
-
testCancelRefundShouldCatchJsonMapperException()
: mixed
-
testCancelRefundShouldCatchRestCliBitPayException()
: mixed
-
testCancelRefundShouldCatchRestCliException()
: mixed
-
testCreateBill()
: mixed
-
testCreateBillException()
: mixed
-
testCreateBillShouldCatchJsonMapperException()
: mixed
-
testCreateBillShouldCatchRestCliException()
: mixed
-
testCreateInvoice()
: mixed
-
testCreateInvoiceShouldCatchJsonMapperException()
: mixed
-
testCreateInvoiceShouldCatchRestCliExceptions()
: mixed
-
testCreatePayoutGroup()
: void
-
testCreateRefund()
: mixed
-
testCreateRefundShouldCatchJsonMapperException()
: mixed
-
testCreateRefundShouldCatchRestCliBitPayException()
: mixed
-
testCreateRefundShouldCatchRestCliException()
: mixed
-
testDeletePayoutRecipient()
: mixed
-
testDeletePayoutRecipientShouldCatchJsonDecodeException()
: mixed
-
testDeletePayoutRecipientShouldCatchRestCliBitPayException()
: mixed
-
testDeletePayoutRecipientShouldCatchRestCliException()
: mixed
-
testDeliverBill()
: mixed
-
testDeliverBillShouldCatchRestCliBitPayException()
: mixed
-
testDeliverBillShouldCatchRestCliException()
: mixed
-
testGetBill()
: mixed
-
testGetBills()
: mixed
-
testGetBillShouldCatchJsonMapperException()
: mixed
-
testGetBillShouldCatchRestCliBitPayException()
: mixed
-
testGetBillShouldCatchRestCliException()
: mixed
-
testGetBillsShouldCatchJsonMapperException()
: mixed
-
testGetBillsShouldCatchRestCliBitPayException()
: mixed
-
testGetBillsShouldCatchRestCliException()
: mixed
-
testGetCurrencyPairRate()
: mixed
-
testGetCurrencyPairRateShouldCatchRestCliBitPayException()
: mixed
-
testGetCurrencyPairRateShouldReturnExceptionWhenNoDataInJson()
: mixed
-
testGetCurrencyPairRateShouldThrowExceptionWhenResponseIsException()
: mixed
-
testGetCurrencyRates()
: mixed
-
testGetCurrencyRatesShouldFailWhenDataInvalid()
: mixed
-
testGetCurrencyRatesShouldHandleRestCliBitPayException()
: mixed
-
testGetCurrencyRatesShouldHandleRestCliException()
: mixed
-
testGetInvoice()
: mixed
-
testGetInvoiceByGuid()
: mixed
-
testGetInvoices()
: mixed
-
testGetInvoiceShouldCatchJsonMapperException()
: mixed
-
testGetInvoiceShouldCatchRestCliExceptions()
: void
-
testGetInvoicesShouldCatchJsonMapperException()
: mixed
-
testGetInvoicesShouldCatchRestCliExceptions()
: mixed
-
testGetLedger()
: mixed
-
testGetLedgers()
: mixed
-
testGetLedgerShouldCatchJsonMapperException()
: mixed
-
testGetLedgerShouldCatchRestCliBitPayException()
: mixed
-
testGetLedgerShouldCatchRestCliException()
: mixed
-
testGetLedgersShouldCatchBitPayException()
: mixed
-
testGetLedgersShouldCatchJsonMapperException()
: mixed
-
testGetLedgersShouldCatchRestCliException()
: mixed
-
testGetPayout()
: mixed
-
testGetPayoutRecipient()
: mixed
-
testGetPayoutRecipients()
: mixed
-
testGetPayoutRecipientShouldHandleJsonMapperException()
: mixed
-
testGetPayoutRecipientShouldHandleRestCliBitPayException()
: mixed
-
testGetPayoutRecipientShouldHandleRestCliException()
: mixed
-
testGetPayoutRecipientsShouldHandleJsonMapperException()
: mixed
-
testGetPayoutRecipientsShouldHandleRestCliBitPayException()
: mixed
-
testGetPayoutRecipientsShouldHandleRestCliException()
: mixed
-
testGetPayouts()
: mixed
-
testGetPayoutShouldHandleJsonMapperException()
: mixed
-
testGetPayoutShouldHandleRestCliBitPayException()
: mixed
-
testGetPayoutShouldHandleRestCliException()
: mixed
-
testGetPayoutsShouldHandleJsonMapperException()
: mixed
-
testGetPayoutsShouldHandleRestCliBitPayException()
: mixed
-
testGetPayoutsShouldHandleRestCliException()
: mixed
-
testGetRates()
: mixed
-
testGetRatesShouldHandleCorruptJson()
: mixed
-
testGetRatesShouldHandleRestCliBitPayException()
: mixed
-
testGetRatesShouldHandleRestCliException()
: mixed
-
testGetRefund()
: mixed
-
testGetRefundByGuid()
: mixed
-
testGetRefundByGuidShouldCatchRestCliBitPayException()
: mixed
-
testGetRefundByGuidShouldCatchRestCliException()
: mixed
-
testGetRefundByGuidShouldCatchRestCliJsonMapperException()
: mixed
-
testGetRefunds()
: mixed
-
testGetRefundShouldCatchRestCliBitPayException()
: mixed
-
testGetRefundShouldCatchRestCliException()
: mixed
-
testGetRefundShouldCatchRestCliJsonMapperException()
: mixed
-
testGetRefundsShouldCatchJsonMapperException()
: mixed
-
testGetRefundsShouldCatchRestCliBitPayException()
: mixed
-
testGetRefundsShouldCatchRestCliException()
: mixed
-
testGetSettlement()
: mixed
-
testGetSettlementReconciliationReport()
: mixed
-
testGetSettlementReconciliationReportShouldCatchJsonMapperException()
: mixed
-
testGetSettlementReconciliationReportShouldCatchRestCliBitPayException()
: mixed
-
testGetSettlementReconciliationReportShouldCatchRestCliException()
: mixed
-
testGetSettlements()
: mixed
-
testGetSettlementShouldCatchJsonMapperException()
: mixed
-
testGetSettlementShouldHandleRestCliBitPayException()
: mixed
-
testGetSettlementShouldHandleRestCliException()
: mixed
-
testGetSettlementsShouldCatchJsonMapperException()
: mixed
-
testGetSettlementsShouldCatchRestCliBitPayException()
: mixed
-
testGetSettlementsShouldCatchRestCliException()
: mixed
-
testGetSupportedWallets()
: mixed
-
testGetSupportedWalletsShouldCatchJsonMapperException()
: mixed
-
testGetSupportedWalletsShouldCatchRestCliBitPayException()
: mixed
-
testGetSupportedWalletsShouldCatchRestCliException()
: mixed
-
testGetTokens()
: void
-
testPayInvoice()
: mixed
-
testPayInvoiceShouldCatchJsonMapperException()
: mixed
-
testPayInvoiceShouldCatchRestCliExceptions()
: mixed
-
testRequestInvoiceNotificationShouldCatchJsonMapperException()
: mixed
-
testRequestInvoiceNotificationShouldReturnFalseOnFailure()
: mixed
-
testRequestInvoiceNotificationShouldReturnTrueOnSuccess()
: mixed
-
testRequestNotification()
: mixed
-
testRequestNotificationShouldCatchJsonException()
: mixed
-
testRequestNotificationShouldCatchRestCliBitPayException()
: mixed
-
testRequestNotificationShouldCatchRestCliException()
: mixed
-
testRequestPayoutRecipientNotification()
: mixed
-
testRequestPayoutRecipientNotificationShouldCatchJsonDecodeException()
: mixed
-
testRequestPayoutRecipientNotificationShouldCatchRestCliBitPayException()
: mixed
-
testRequestPayoutRecipientNotificationShouldCatchRestCliException()
: mixed
-
testSendRefundNotification()
: mixed
-
testSendRefundNotificationShouldCatchJsonMapperException()
: mixed
-
testSendRefundNotificationShouldCatchRestCliBitPayException()
: mixed
-
testSendRefundNotificationShouldCatchRestCliException()
: mixed
-
testSubmitPayout()
: mixed
-
testSubmitPayoutRecipients()
: mixed
-
testSubmitPayoutRecipientsShouldCatchJsonMapperException()
: mixed
-
testSubmitPayoutRecipientsShouldCatchRestCliBitPayException()
: mixed
-
testSubmitPayoutRecipientsShouldCatchRestCliException()
: mixed
-
testSubmitPayoutShouldCatchJsonMapperException()
: mixed
-
testSubmitPayoutShouldCatchRestCliBitPayException()
: mixed
-
testSubmitPayoutShouldCatchRestCliException()
: mixed
-
testUpdateBill()
: mixed
-
testUpdateBillShouldCatchJsonMapperException()
: mixed
-
testUpdateBillShouldCatchRestCliBitPayException()
: mixed
-
testUpdateBillShouldCatchRestCliException()
: mixed
-
testUpdateInvoice()
: mixed
-
testUpdateInvoiceShouldCatchJsonMapperException()
: mixed
-
testUpdateInvoiceShouldCatchRestCliExceptions()
: mixed
-
testUpdateInvoiceShouldThrowExceptionWhenBothBuyerEmailAndSmsProvided()
: mixed
-
testUpdateInvoiceShouldThrowExceptionWhenNoSmsCodeProvided()
: mixed
-
testUpdatePayoutRecipient()
: mixed
-
testUpdatePayoutRecipientShouldCatchJsonMapperException()
: mixed
-
testUpdatePayoutRecipientShouldCatchRestCliBitPayException()
: mixed
-
testUpdatePayoutRecipientShouldCatchRestCliException()
: mixed
-
testUpdateRefund()
: mixed
-
testUpdateRefundBuGuidShouldCatchRestCliBitPayException()
: mixed
-
testUpdateRefundBuGuidShouldCatchRestCliException()
: mixed
-
testUpdateRefundByGuid()
: mixed
-
testUpdateRefundByGuidShouldCatchJsonMapperException()
: mixed
-
testUpdateRefundShouldCatchJsonMapperException()
: mixed
-
testUpdateRefundShouldCatchRestCliBitPayException()
: mixed
-
testUpdateRefundShouldCatchRestCliException()
: mixed
-
testWithData()
: mixed
-
testWithDataException()
: mixed
-
testWithFileException()
: mixed
-
testWithFileJsonConfig()
: Client
-
testWithFileYmlConfig()
: mixed
-
getClient()
: mixed
-
getInvoiceRefundParams()
: array<string|int, mixed>
-
getPayoutParams()
: array<string|int, mixed>
-
getRestCliMock()
: mixed
-
getTestedClassInstance()
: Client
-
refreshResourceClients()
: void
CANCEL_REFUND_JSON_STRING
private
mixed
CANCEL_REFUND_JSON_STRING
= '{
"id": "WoE46gSLkJQS48RJEiNw3L",
"invoice": "Hpqc63wvE1ZjzeeH4kEycF",
"reference": "Test refund",
"status": "cancelled",
"amount": 10,
"transactionCurrency": "BTC",
"transactionAmount": 0.000594,
"transactionRefundFee": 0.000002,
"currency": "USD",
"lastRefundNotification": "2021-08-29T20:45:35.368Z",
"refundFee": 0.04,
"immediate": false,
"buyerPaysRefundFee": false,
"requestDate": "2021-08-29T20:45:34.000Z"
}'
CORRECT_JSON_STRING
private
mixed
CORRECT_JSON_STRING
= '[
{ "currency": "EUR", "balance": 0 },
{ "currency": "USD", "balance": 2389.82 },
{ "currency": "BTC", "balance": 0.000287 }
]'
CORRUPT_JSON_STRING
private
mixed
CORRUPT_JSON_STRING
= '{"code":"USD""name":"US Dollar","rate":21205.85}'
MERCHANT_TOKEN
private
mixed
MERCHANT_TOKEN
= 'kQLZ7C9YKPSnMCC4EJwrqRHXuQkLzL1W8DfZCh37DHb'
PAYOUT_TOKEN
private
mixed
PAYOUT_TOKEN
= 'kQLZ7C9YKPSnMCC4EJwrqRHXuQkLzL1W8DfZCh37DHb'
TEST_INVOICE_GUID
private
mixed
TEST_INVOICE_GUID
= 'chc9kj52-04g0-4b6f-941d-3a844e352758'
TEST_INVOICE_ID
private
mixed
TEST_INVOICE_ID
= 'UZjwcYkWAKfTMn9J1yyfs4'
UPDATE_REFUND_JSON_STRING
private
mixed
UPDATE_REFUND_JSON_STRING
= '{"id": "WoE46gSLkJQS48RJEiNw3L",
"invoice": "Hpqc63wvE1ZjzeeH4kEycF",
"reference": "Test refund",
"status": "created",
"amount": 10,
"transactionCurrency": "BTC",
"transactionAmount": 0.000594,
"transactionRefundFee": 0.000002,
"currency": "USD",
"lastRefundNotification": "2021-08-29T20:45:35.368Z",
"refundFee": 0.04,
"immediate": false,
"buyerPaysRefundFee": false,
"requestDate": "2021-08-29T20:45:34.000Z"
}'
exceptionClassProvider()
public
static exceptionClassProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>
setUp()
public
setUp() : void
-
throws
-
ReflectionException
testCancelInvoice()
public
testCancelInvoice() : mixed
testCancelInvoiceByGuid()
public
testCancelInvoiceByGuid() : mixed
testCancelInvoiceByGuidShouldCatchJsonMapperException()
public
testCancelInvoiceByGuidShouldCatchJsonMapperException() : mixed
testCancelInvoiceByGuidShouldCatchRestCliExceptions()
public
testCancelInvoiceByGuidShouldCatchRestCliExceptions(string $exceptionClass) : mixed
Parameters
-
$exceptionClass
: string
-
-
dataProvider
-
testCancelInvoiceShouldCatchJsonMapperException()
public
testCancelInvoiceShouldCatchJsonMapperException() : mixed
testCancelInvoiceShouldCatchRestCliExceptions()
public
testCancelInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : mixed
Parameters
-
$exceptionClass
: string
-
-
dataProvider
-
testCancelPayout()
public
testCancelPayout() : mixed
testCancelPayoutGroup()
public
testCancelPayoutGroup() : void
testCancelPayoutShouldCatchRestCliBitPayException()
public
testCancelPayoutShouldCatchRestCliBitPayException() : mixed
testCancelPayoutShouldCatchRestCliException()
public
testCancelPayoutShouldCatchRestCliException() : mixed
testCancelPayoutShouldCatchUnexistentPropertyError()
public
testCancelPayoutShouldCatchUnexistentPropertyError() : mixed
testCancelRefund()
public
testCancelRefund() : mixed
testCancelRefundByGuid()
public
testCancelRefundByGuid() : mixed
testCancelRefundByGuidShouldCatchJsonMapperException()
public
testCancelRefundByGuidShouldCatchJsonMapperException() : mixed
testCancelRefundByGuidShouldCatchRestCliBitPayException()
public
testCancelRefundByGuidShouldCatchRestCliBitPayException() : mixed
testCancelRefundByGuidShouldCatchRestCliException()
public
testCancelRefundByGuidShouldCatchRestCliException() : mixed
testCancelRefundShouldCatchJsonMapperException()
public
testCancelRefundShouldCatchJsonMapperException() : mixed
testCancelRefundShouldCatchRestCliBitPayException()
public
testCancelRefundShouldCatchRestCliBitPayException() : mixed
testCancelRefundShouldCatchRestCliException()
public
testCancelRefundShouldCatchRestCliException() : mixed
testCreateBill()
public
testCreateBill() : mixed
testCreateBillException()
public
testCreateBillException() : mixed
testCreateBillShouldCatchJsonMapperException()
public
testCreateBillShouldCatchJsonMapperException() : mixed
testCreateBillShouldCatchRestCliException()
public
testCreateBillShouldCatchRestCliException() : mixed
testCreateInvoice()
public
testCreateInvoice() : mixed
-
throws
-
BitPayException
testCreateInvoiceShouldCatchJsonMapperException()
public
testCreateInvoiceShouldCatchJsonMapperException() : mixed
testCreateInvoiceShouldCatchRestCliExceptions()
public
testCreateInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : mixed
Parameters
-
$exceptionClass
: string
-
-
dataProvider
-
testCreatePayoutGroup()
public
testCreatePayoutGroup() : void
testCreateRefund()
public
testCreateRefund() : mixed
testCreateRefundShouldCatchJsonMapperException()
public
testCreateRefundShouldCatchJsonMapperException() : mixed
testCreateRefundShouldCatchRestCliBitPayException()
public
testCreateRefundShouldCatchRestCliBitPayException() : mixed
testCreateRefundShouldCatchRestCliException()
public
testCreateRefundShouldCatchRestCliException() : mixed
testDeletePayoutRecipient()
public
testDeletePayoutRecipient() : mixed
testDeletePayoutRecipientShouldCatchJsonDecodeException()
public
testDeletePayoutRecipientShouldCatchJsonDecodeException() : mixed
testDeletePayoutRecipientShouldCatchRestCliBitPayException()
public
testDeletePayoutRecipientShouldCatchRestCliBitPayException() : mixed
testDeletePayoutRecipientShouldCatchRestCliException()
public
testDeletePayoutRecipientShouldCatchRestCliException() : mixed
testDeliverBill()
public
testDeliverBill() : mixed
-
throws
-
BitPayException
testDeliverBillShouldCatchRestCliBitPayException()
public
testDeliverBillShouldCatchRestCliBitPayException() : mixed
testDeliverBillShouldCatchRestCliException()
public
testDeliverBillShouldCatchRestCliException() : mixed
testGetBill()
public
testGetBill() : mixed
testGetBills()
public
testGetBills() : mixed
testGetBillShouldCatchJsonMapperException()
public
testGetBillShouldCatchJsonMapperException() : mixed
testGetBillShouldCatchRestCliBitPayException()
public
testGetBillShouldCatchRestCliBitPayException() : mixed
testGetBillShouldCatchRestCliException()
public
testGetBillShouldCatchRestCliException() : mixed
testGetBillsShouldCatchJsonMapperException()
public
testGetBillsShouldCatchJsonMapperException() : mixed
testGetBillsShouldCatchRestCliBitPayException()
public
testGetBillsShouldCatchRestCliBitPayException() : mixed
testGetBillsShouldCatchRestCliException()
public
testGetBillsShouldCatchRestCliException() : mixed
-
throws
-
BitPayException
-
depends
-
testGetCurrencyPairRate()
public
testGetCurrencyPairRate() : mixed
testGetCurrencyPairRateShouldCatchRestCliBitPayException()
public
testGetCurrencyPairRateShouldCatchRestCliBitPayException() : mixed
testGetCurrencyPairRateShouldReturnExceptionWhenNoDataInJson()
public
testGetCurrencyPairRateShouldReturnExceptionWhenNoDataInJson() : mixed
testGetCurrencyPairRateShouldThrowExceptionWhenResponseIsException()
public
testGetCurrencyPairRateShouldThrowExceptionWhenResponseIsException() : mixed
testGetCurrencyRates()
public
testGetCurrencyRates() : mixed
testGetCurrencyRatesShouldFailWhenDataInvalid()
public
testGetCurrencyRatesShouldFailWhenDataInvalid() : mixed
testGetCurrencyRatesShouldHandleRestCliBitPayException()
public
testGetCurrencyRatesShouldHandleRestCliBitPayException() : mixed
testGetCurrencyRatesShouldHandleRestCliException()
public
testGetCurrencyRatesShouldHandleRestCliException() : mixed
testGetInvoice()
public
testGetInvoice() : mixed
testGetInvoiceByGuid()
public
testGetInvoiceByGuid() : mixed
testGetInvoices()
public
testGetInvoices() : mixed
testGetInvoiceShouldCatchJsonMapperException()
public
testGetInvoiceShouldCatchJsonMapperException() : mixed
testGetInvoiceShouldCatchRestCliExceptions()
public
testGetInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : void
Parameters
-
$exceptionClass
: string
-
-
dataProvider
-
testGetInvoicesShouldCatchJsonMapperException()
public
testGetInvoicesShouldCatchJsonMapperException() : mixed
testGetInvoicesShouldCatchRestCliExceptions()
public
testGetInvoicesShouldCatchRestCliExceptions(string $exceptionClass) : mixed
Parameters
-
$exceptionClass
: string
-
-
dataProvider
-
testGetLedger()
public
testGetLedger() : mixed
testGetLedgers()
public
testGetLedgers() : mixed
testGetLedgerShouldCatchJsonMapperException()
public
testGetLedgerShouldCatchJsonMapperException() : mixed
testGetLedgerShouldCatchRestCliBitPayException()
public
testGetLedgerShouldCatchRestCliBitPayException() : mixed
testGetLedgerShouldCatchRestCliException()
public
testGetLedgerShouldCatchRestCliException() : mixed
public
testGetLedgersShouldCatchBitPayException() : mixed
public
testGetLedgersShouldCatchJsonMapperException() : mixed
public
testGetLedgersShouldCatchRestCliException() : mixed
testGetPayout()
public
testGetPayout() : mixed
-
depends
-
testGetPayoutRecipient()
public
testGetPayoutRecipient() : mixed
testGetPayoutRecipients()
public
testGetPayoutRecipients() : mixed
testGetPayoutRecipientShouldHandleJsonMapperException()
public
testGetPayoutRecipientShouldHandleJsonMapperException() : mixed
testGetPayoutRecipientShouldHandleRestCliBitPayException()
public
testGetPayoutRecipientShouldHandleRestCliBitPayException() : mixed
testGetPayoutRecipientShouldHandleRestCliException()
public
testGetPayoutRecipientShouldHandleRestCliException() : mixed
testGetPayoutRecipientsShouldHandleJsonMapperException()
public
testGetPayoutRecipientsShouldHandleJsonMapperException() : mixed
testGetPayoutRecipientsShouldHandleRestCliBitPayException()
public
testGetPayoutRecipientsShouldHandleRestCliBitPayException() : mixed
testGetPayoutRecipientsShouldHandleRestCliException()
public
testGetPayoutRecipientsShouldHandleRestCliException() : mixed
testGetPayouts()
public
testGetPayouts() : mixed
testGetPayoutShouldHandleJsonMapperException()
public
testGetPayoutShouldHandleJsonMapperException() : mixed
testGetPayoutShouldHandleRestCliBitPayException()
public
testGetPayoutShouldHandleRestCliBitPayException() : mixed
-
depends
-
testGetPayoutShouldHandleRestCliException()
public
testGetPayoutShouldHandleRestCliException() : mixed
-
depends
-
testGetPayoutsShouldHandleJsonMapperException()
public
testGetPayoutsShouldHandleJsonMapperException() : mixed
testGetPayoutsShouldHandleRestCliBitPayException()
public
testGetPayoutsShouldHandleRestCliBitPayException() : mixed
-
depends
-
testGetPayoutsShouldHandleRestCliException()
public
testGetPayoutsShouldHandleRestCliException() : mixed
testGetRates()
public
testGetRates() : mixed
testGetRatesShouldHandleCorruptJson()
public
testGetRatesShouldHandleCorruptJson() : mixed
testGetRatesShouldHandleRestCliBitPayException()
public
testGetRatesShouldHandleRestCliBitPayException() : mixed
testGetRatesShouldHandleRestCliException()
public
testGetRatesShouldHandleRestCliException() : mixed
testGetRefund()
public
testGetRefund() : mixed
-
depends
-
testGetRefundByGuid()
public
testGetRefundByGuid() : mixed
testGetRefundByGuidShouldCatchRestCliBitPayException()
public
testGetRefundByGuidShouldCatchRestCliBitPayException() : mixed
-
depends
-
testGetRefundByGuidShouldCatchRestCliException()
public
testGetRefundByGuidShouldCatchRestCliException() : mixed
-
depends
-
testGetRefundByGuidShouldCatchRestCliJsonMapperException()
public
testGetRefundByGuidShouldCatchRestCliJsonMapperException() : mixed
-
depends
-
testGetRefunds()
public
testGetRefunds() : mixed
testGetRefundShouldCatchRestCliBitPayException()
public
testGetRefundShouldCatchRestCliBitPayException() : mixed
-
depends
-
testGetRefundShouldCatchRestCliException()
public
testGetRefundShouldCatchRestCliException() : mixed
-
depends
-
testGetRefundShouldCatchRestCliJsonMapperException()
public
testGetRefundShouldCatchRestCliJsonMapperException() : mixed
-
depends
-
testGetRefundsShouldCatchJsonMapperException()
public
testGetRefundsShouldCatchJsonMapperException() : mixed
-
depends
-
testGetRefundsShouldCatchRestCliBitPayException()
public
testGetRefundsShouldCatchRestCliBitPayException() : mixed
-
depends
-
testGetRefundsShouldCatchRestCliException()
public
testGetRefundsShouldCatchRestCliException() : mixed
-
depends
-
testGetSettlement()
public
testGetSettlement() : mixed
testGetSettlementReconciliationReport()
public
testGetSettlementReconciliationReport() : mixed
testGetSettlementReconciliationReportShouldCatchJsonMapperException()
public
testGetSettlementReconciliationReportShouldCatchJsonMapperException() : mixed
testGetSettlementReconciliationReportShouldCatchRestCliBitPayException()
public
testGetSettlementReconciliationReportShouldCatchRestCliBitPayException() : mixed
testGetSettlementReconciliationReportShouldCatchRestCliException()
public
testGetSettlementReconciliationReportShouldCatchRestCliException() : mixed
testGetSettlements()
public
testGetSettlements() : mixed
testGetSettlementShouldCatchJsonMapperException()
public
testGetSettlementShouldCatchJsonMapperException() : mixed
testGetSettlementShouldHandleRestCliBitPayException()
public
testGetSettlementShouldHandleRestCliBitPayException() : mixed
testGetSettlementShouldHandleRestCliException()
public
testGetSettlementShouldHandleRestCliException() : mixed
testGetSettlementsShouldCatchJsonMapperException()
public
testGetSettlementsShouldCatchJsonMapperException() : mixed
testGetSettlementsShouldCatchRestCliBitPayException()
public
testGetSettlementsShouldCatchRestCliBitPayException() : mixed
testGetSettlementsShouldCatchRestCliException()
public
testGetSettlementsShouldCatchRestCliException() : mixed
testGetSupportedWallets()
public
testGetSupportedWallets() : mixed
testGetSupportedWalletsShouldCatchJsonMapperException()
public
testGetSupportedWalletsShouldCatchJsonMapperException() : mixed
testGetSupportedWalletsShouldCatchRestCliBitPayException()
public
testGetSupportedWalletsShouldCatchRestCliBitPayException() : mixed
testGetSupportedWalletsShouldCatchRestCliException()
public
testGetSupportedWalletsShouldCatchRestCliException() : mixed
testGetTokens()
public
testGetTokens() : void
testPayInvoice()
public
testPayInvoice() : mixed
testPayInvoiceShouldCatchJsonMapperException()
public
testPayInvoiceShouldCatchJsonMapperException() : mixed
testPayInvoiceShouldCatchRestCliExceptions()
public
testPayInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : mixed
Parameters
-
$exceptionClass
: string
-
-
dataProvider
-
testRequestInvoiceNotificationShouldCatchJsonMapperException()
public
testRequestInvoiceNotificationShouldCatchJsonMapperException() : mixed
testRequestInvoiceNotificationShouldReturnFalseOnFailure()
public
testRequestInvoiceNotificationShouldReturnFalseOnFailure() : mixed
testRequestInvoiceNotificationShouldReturnTrueOnSuccess()
public
testRequestInvoiceNotificationShouldReturnTrueOnSuccess() : mixed
testRequestNotification()
public
testRequestNotification() : mixed
testRequestNotificationShouldCatchJsonException()
public
testRequestNotificationShouldCatchJsonException() : mixed
testRequestNotificationShouldCatchRestCliBitPayException()
public
testRequestNotificationShouldCatchRestCliBitPayException() : mixed
testRequestNotificationShouldCatchRestCliException()
public
testRequestNotificationShouldCatchRestCliException() : mixed
testRequestPayoutRecipientNotification()
public
testRequestPayoutRecipientNotification() : mixed
testRequestPayoutRecipientNotificationShouldCatchJsonDecodeException()
public
testRequestPayoutRecipientNotificationShouldCatchJsonDecodeException() : mixed
testRequestPayoutRecipientNotificationShouldCatchRestCliBitPayException()
public
testRequestPayoutRecipientNotificationShouldCatchRestCliBitPayException() : mixed
testRequestPayoutRecipientNotificationShouldCatchRestCliException()
public
testRequestPayoutRecipientNotificationShouldCatchRestCliException() : mixed
testSendRefundNotification()
public
testSendRefundNotification() : mixed
-
depends
-
testSendRefundNotificationShouldCatchJsonMapperException()
public
testSendRefundNotificationShouldCatchJsonMapperException() : mixed
-
depends
-
testSendRefundNotificationShouldCatchRestCliBitPayException()
public
testSendRefundNotificationShouldCatchRestCliBitPayException() : mixed
-
depends
-
testSendRefundNotificationShouldCatchRestCliException()
public
testSendRefundNotificationShouldCatchRestCliException() : mixed
-
depends
-
testSubmitPayout()
public
testSubmitPayout() : mixed
testSubmitPayoutRecipients()
public
testSubmitPayoutRecipients() : mixed
testSubmitPayoutRecipientsShouldCatchJsonMapperException()
public
testSubmitPayoutRecipientsShouldCatchJsonMapperException() : mixed
-
depends
-
testSubmitPayoutRecipientsShouldCatchRestCliBitPayException()
public
testSubmitPayoutRecipientsShouldCatchRestCliBitPayException() : mixed
testSubmitPayoutRecipientsShouldCatchRestCliException()
public
testSubmitPayoutRecipientsShouldCatchRestCliException() : mixed
testSubmitPayoutShouldCatchJsonMapperException()
public
testSubmitPayoutShouldCatchJsonMapperException() : mixed
testSubmitPayoutShouldCatchRestCliBitPayException()
public
testSubmitPayoutShouldCatchRestCliBitPayException() : mixed
testSubmitPayoutShouldCatchRestCliException()
public
testSubmitPayoutShouldCatchRestCliException() : mixed
testUpdateBill()
public
testUpdateBill() : mixed
testUpdateBillShouldCatchJsonMapperException()
public
testUpdateBillShouldCatchJsonMapperException() : mixed
testUpdateBillShouldCatchRestCliBitPayException()
public
testUpdateBillShouldCatchRestCliBitPayException() : mixed
testUpdateBillShouldCatchRestCliException()
public
testUpdateBillShouldCatchRestCliException() : mixed
testUpdateInvoice()
public
testUpdateInvoice() : mixed
testUpdateInvoiceShouldCatchJsonMapperException()
public
testUpdateInvoiceShouldCatchJsonMapperException() : mixed
testUpdateInvoiceShouldCatchRestCliExceptions()
public
testUpdateInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : mixed
Parameters
-
$exceptionClass
: string
-
-
dataProvider
-
testUpdateInvoiceShouldThrowExceptionWhenBothBuyerEmailAndSmsProvided()
public
testUpdateInvoiceShouldThrowExceptionWhenBothBuyerEmailAndSmsProvided() : mixed
testUpdateInvoiceShouldThrowExceptionWhenNoSmsCodeProvided()
public
testUpdateInvoiceShouldThrowExceptionWhenNoSmsCodeProvided() : mixed
testUpdatePayoutRecipient()
public
testUpdatePayoutRecipient() : mixed
-
throws
-
PayoutRecipientUpdateException
testUpdatePayoutRecipientShouldCatchJsonMapperException()
public
testUpdatePayoutRecipientShouldCatchJsonMapperException() : mixed
testUpdatePayoutRecipientShouldCatchRestCliBitPayException()
public
testUpdatePayoutRecipientShouldCatchRestCliBitPayException() : mixed
testUpdatePayoutRecipientShouldCatchRestCliException()
public
testUpdatePayoutRecipientShouldCatchRestCliException() : mixed
testUpdateRefund()
public
testUpdateRefund() : mixed
testUpdateRefundBuGuidShouldCatchRestCliBitPayException()
public
testUpdateRefundBuGuidShouldCatchRestCliBitPayException() : mixed
testUpdateRefundBuGuidShouldCatchRestCliException()
public
testUpdateRefundBuGuidShouldCatchRestCliException() : mixed
testUpdateRefundByGuid()
public
testUpdateRefundByGuid() : mixed
testUpdateRefundByGuidShouldCatchJsonMapperException()
public
testUpdateRefundByGuidShouldCatchJsonMapperException() : mixed
testUpdateRefundShouldCatchJsonMapperException()
public
testUpdateRefundShouldCatchJsonMapperException() : mixed
testUpdateRefundShouldCatchRestCliBitPayException()
public
testUpdateRefundShouldCatchRestCliBitPayException() : mixed
testUpdateRefundShouldCatchRestCliException()
public
testUpdateRefundShouldCatchRestCliException() : mixed
testWithData()
public
testWithData() : mixed
-
throws
-
BitPayException
testWithDataException()
public
testWithDataException() : mixed
testWithFileException()
public
testWithFileException() : mixed
testWithFileJsonConfig()
public
testWithFileJsonConfig() : Client
-
throws
-
BitPayException
testWithFileYmlConfig()
public
testWithFileYmlConfig() : mixed
-
throws
-
BitPayException
getClient()
private
getClient(RESTcli $restCli) : mixed
Parameters
-
$restCli
: RESTcli
-
getInvoiceRefundParams()
private
getInvoiceRefundParams() : array<string|int, mixed>
Return values
array<string|int, mixed>
getPayoutParams()
private
getPayoutParams() : array<string|int, mixed>
Return values
array<string|int, mixed>
getRestCliMock()
private
getRestCliMock() : mixed
getTestedClassInstance()
private
getTestedClassInstance() : Client
refreshResourceClients()
private
refreshResourceClients() : void
-
throws
-
ReflectionException