BitPay PHP SDK

ClientTest extends TestCase
in package

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

Constants

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" }'

Methods

exceptionClassProvider()

public static exceptionClassProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

setUp()

public setUp() : void
Tags
throws
ReflectionException

testCancelInvoice()

public testCancelInvoice() : mixed

testCancelInvoiceByGuid()

public testCancelInvoiceByGuid() : mixed

testCancelInvoiceByGuidShouldCatchJsonMapperException()

public testCancelInvoiceByGuidShouldCatchJsonMapperException() : mixed

testCancelInvoiceByGuidShouldCatchRestCliExceptions()

public testCancelInvoiceByGuidShouldCatchRestCliExceptions(string $exceptionClass) : mixed
Parameters
$exceptionClass : string
Tags
dataProvider

exceptionClassProvider

testCancelInvoiceShouldCatchJsonMapperException()

public testCancelInvoiceShouldCatchJsonMapperException() : mixed

testCancelInvoiceShouldCatchRestCliExceptions()

public testCancelInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : mixed
Parameters
$exceptionClass : string
Tags
dataProvider

exceptionClassProvider

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

testCreateInvoiceShouldCatchJsonMapperException()

public testCreateInvoiceShouldCatchJsonMapperException() : mixed

testCreateInvoiceShouldCatchRestCliExceptions()

public testCreateInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : mixed
Parameters
$exceptionClass : string
Tags
dataProvider

exceptionClassProvider

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

testDeliverBillShouldCatchRestCliBitPayException()

public testDeliverBillShouldCatchRestCliBitPayException() : mixed

testDeliverBillShouldCatchRestCliException()

public testDeliverBillShouldCatchRestCliException() : 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
Tags
throws
BitPayException
depends

testWithFileJsonConfig

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
Tags
dataProvider

exceptionClassProvider

testGetInvoicesShouldCatchJsonMapperException()

public testGetInvoicesShouldCatchJsonMapperException() : mixed

testGetInvoicesShouldCatchRestCliExceptions()

public testGetInvoicesShouldCatchRestCliExceptions(string $exceptionClass) : mixed
Parameters
$exceptionClass : string
Tags
dataProvider

exceptionClassProvider

testGetLedgers()

public testGetLedgers() : mixed

testGetLedgerShouldCatchJsonMapperException()

public testGetLedgerShouldCatchJsonMapperException() : mixed

testGetLedgerShouldCatchRestCliBitPayException()

public testGetLedgerShouldCatchRestCliBitPayException() : mixed

testGetLedgerShouldCatchRestCliException()

public testGetLedgerShouldCatchRestCliException() : mixed

testGetLedgersShouldCatchBitPayException()

public testGetLedgersShouldCatchBitPayException() : mixed

testGetLedgersShouldCatchJsonMapperException()

public testGetLedgersShouldCatchJsonMapperException() : mixed

testGetLedgersShouldCatchRestCliException()

public testGetLedgersShouldCatchRestCliException() : mixed

testGetPayout()

public testGetPayout() : mixed
Tags
depends

testWithFileJsonConfig

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
Tags
depends

testWithFileJsonConfig

testGetPayoutShouldHandleRestCliException()

public testGetPayoutShouldHandleRestCliException() : mixed
Tags
depends

testWithFileJsonConfig

testGetPayoutsShouldHandleJsonMapperException()

public testGetPayoutsShouldHandleJsonMapperException() : mixed

testGetPayoutsShouldHandleRestCliBitPayException()

public testGetPayoutsShouldHandleRestCliBitPayException() : mixed
Tags
depends

testWithFileJsonConfig

testGetPayoutsShouldHandleRestCliException()

public testGetPayoutsShouldHandleRestCliException() : mixed

testGetRatesShouldHandleCorruptJson()

public testGetRatesShouldHandleCorruptJson() : mixed

testGetRatesShouldHandleRestCliBitPayException()

public testGetRatesShouldHandleRestCliBitPayException() : mixed

testGetRatesShouldHandleRestCliException()

public testGetRatesShouldHandleRestCliException() : mixed

testGetRefund()

public testGetRefund() : mixed
Tags
depends

testWithFileJsonConfig

testGetRefundByGuid()

public testGetRefundByGuid() : mixed

testGetRefundByGuidShouldCatchRestCliBitPayException()

public testGetRefundByGuidShouldCatchRestCliBitPayException() : mixed
Tags
depends

testWithFileJsonConfig

testGetRefundByGuidShouldCatchRestCliException()

public testGetRefundByGuidShouldCatchRestCliException() : mixed
Tags
depends

testWithFileJsonConfig

testGetRefundByGuidShouldCatchRestCliJsonMapperException()

public testGetRefundByGuidShouldCatchRestCliJsonMapperException() : mixed
Tags
depends

testWithFileJsonConfig

testGetRefunds()

public testGetRefunds() : mixed

testGetRefundShouldCatchRestCliBitPayException()

public testGetRefundShouldCatchRestCliBitPayException() : mixed
Tags
depends

testWithFileJsonConfig

testGetRefundShouldCatchRestCliException()

public testGetRefundShouldCatchRestCliException() : mixed
Tags
depends

testWithFileJsonConfig

testGetRefundShouldCatchRestCliJsonMapperException()

public testGetRefundShouldCatchRestCliJsonMapperException() : mixed
Tags
depends

testWithFileJsonConfig

testGetRefundsShouldCatchJsonMapperException()

public testGetRefundsShouldCatchJsonMapperException() : mixed
Tags
depends

testWithFileJsonConfig

testGetRefundsShouldCatchRestCliBitPayException()

public testGetRefundsShouldCatchRestCliBitPayException() : mixed
Tags
depends

testWithFileJsonConfig

testGetRefundsShouldCatchRestCliException()

public testGetRefundsShouldCatchRestCliException() : mixed
Tags
depends

testWithFileJsonConfig

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

testPayInvoice()

public testPayInvoice() : mixed

testPayInvoiceShouldCatchJsonMapperException()

public testPayInvoiceShouldCatchJsonMapperException() : mixed

testPayInvoiceShouldCatchRestCliExceptions()

public testPayInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : mixed
Parameters
$exceptionClass : string
Tags
dataProvider

exceptionClassProvider

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
Tags
depends

testWithFileJsonConfig

testSendRefundNotificationShouldCatchJsonMapperException()

public testSendRefundNotificationShouldCatchJsonMapperException() : mixed
Tags
depends

testWithFileJsonConfig

testSendRefundNotificationShouldCatchRestCliBitPayException()

public testSendRefundNotificationShouldCatchRestCliBitPayException() : mixed
Tags
depends

testWithFileJsonConfig

testSendRefundNotificationShouldCatchRestCliException()

public testSendRefundNotificationShouldCatchRestCliException() : mixed
Tags
depends

testWithFileJsonConfig

testSubmitPayout()

public testSubmitPayout() : mixed

testSubmitPayoutRecipients()

public testSubmitPayoutRecipients() : mixed

testSubmitPayoutRecipientsShouldCatchJsonMapperException()

public testSubmitPayoutRecipientsShouldCatchJsonMapperException() : mixed
Tags
depends

testWithFileJsonConfig

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
Tags
dataProvider

exceptionClassProvider

testUpdateInvoiceShouldThrowExceptionWhenBothBuyerEmailAndSmsProvided()

public testUpdateInvoiceShouldThrowExceptionWhenBothBuyerEmailAndSmsProvided() : mixed

testUpdateInvoiceShouldThrowExceptionWhenNoSmsCodeProvided()

public testUpdateInvoiceShouldThrowExceptionWhenNoSmsCodeProvided() : mixed

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

testWithDataException()

public testWithDataException() : mixed

testWithFileException()

public testWithFileException() : mixed

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

refreshResourceClients()

private refreshResourceClients() : void
Tags
throws
ReflectionException

        
On this page

Search results