Menu

## ClientTest extends TestCase
in package

ClientTest.php : 70

### 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

ClientTest.php : 82
`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

ClientTest.php : 77
`private mixed CORRECT_JSON_STRING = '[ { "currency": "EUR", "balance": 0 }, { "currency": "USD", "balance": 2389.82 }, { "currency": "BTC", "balance": 0.000287 } ]'`

#### CORRUPT_JSON_STRING

ClientTest.php : 74
`private mixed CORRUPT_JSON_STRING = '{"code":"USD""name":"US Dollar","rate":21205.85}'`

#### MERCHANT_TOKEN

ClientTest.php : 72
`private mixed MERCHANT_TOKEN = 'kQLZ7C9YKPSnMCC4EJwrqRHXuQkLzL1W8DfZCh37DHb'`

#### PAYOUT_TOKEN

ClientTest.php : 73
`private mixed PAYOUT_TOKEN = 'kQLZ7C9YKPSnMCC4EJwrqRHXuQkLzL1W8DfZCh37DHb'`

#### TEST_INVOICE_GUID

ClientTest.php : 76
`private mixed TEST_INVOICE_GUID = 'chc9kj52-04g0-4b6f-941d-3a844e352758'`

#### TEST_INVOICE_ID

ClientTest.php : 75
`private mixed TEST_INVOICE_ID = 'UZjwcYkWAKfTMn9J1yyfs4'`

#### UPDATE_REFUND_JSON_STRING

ClientTest.php : 98
`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()

ClientTest.php : 3494
`public static exceptionClassProvider() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### setUp()

ClientTest.php : 117
`public setUp() : void`

##### Tags

throws
  ReflectionException

#### testCancelInvoice()

ClientTest.php : 3084
`public testCancelInvoice() : mixed`

#### testCancelInvoiceByGuid()

ClientTest.php : 3132
`public testCancelInvoiceByGuid() : mixed`

#### testCancelInvoiceByGuidShouldCatchJsonMapperException()

ClientTest.php : 3177
`public testCancelInvoiceByGuidShouldCatchJsonMapperException() : mixed`

#### testCancelInvoiceByGuidShouldCatchRestCliExceptions()

ClientTest.php : 3158
`public testCancelInvoiceByGuidShouldCatchRestCliExceptions(string $exceptionClass) : mixed`

##### Parameters

$exceptionClass : string

##### Tags

dataProvider

  exceptionClassProvider

#### testCancelInvoiceShouldCatchJsonMapperException()

ClientTest.php : 3118
`public testCancelInvoiceShouldCatchJsonMapperException() : mixed`

#### testCancelInvoiceShouldCatchRestCliExceptions()

ClientTest.php : 3104
`public testCancelInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : mixed`

##### Parameters

$exceptionClass : string

##### Tags

dataProvider

  exceptionClassProvider

#### testCancelPayout()

ClientTest.php : 1963
`public testCancelPayout() : mixed`

#### testCancelPayoutGroup()

ClientTest.php : 2194
`public testCancelPayoutGroup() : void`

#### testCancelPayoutShouldCatchRestCliBitPayException()

ClientTest.php : 1977
`public testCancelPayoutShouldCatchRestCliBitPayException() : mixed`

#### testCancelPayoutShouldCatchRestCliException()

ClientTest.php : 1991
`public testCancelPayoutShouldCatchRestCliException() : mixed`

#### testCancelPayoutShouldCatchUnexistentPropertyError()

ClientTest.php : 2005
`public testCancelPayoutShouldCatchUnexistentPropertyError() : mixed`

#### testCancelRefund()

ClientTest.php : 2304
`public testCancelRefund() : mixed`

#### testCancelRefundByGuid()

ClientTest.php : 2368
`public testCancelRefundByGuid() : mixed`

#### testCancelRefundByGuidShouldCatchJsonMapperException()

ClientTest.php : 2418
`public testCancelRefundByGuidShouldCatchJsonMapperException() : mixed`

#### testCancelRefundByGuidShouldCatchRestCliBitPayException()

ClientTest.php : 2386
`public testCancelRefundByGuidShouldCatchRestCliBitPayException() : mixed`

#### testCancelRefundByGuidShouldCatchRestCliException()

ClientTest.php : 2402
`public testCancelRefundByGuidShouldCatchRestCliException() : mixed`

#### testCancelRefundShouldCatchJsonMapperException()

ClientTest.php : 2354
`public testCancelRefundShouldCatchJsonMapperException() : mixed`

#### testCancelRefundShouldCatchRestCliBitPayException()

ClientTest.php : 2322
`public testCancelRefundShouldCatchRestCliBitPayException() : mixed`

#### testCancelRefundShouldCatchRestCliException()

ClientTest.php : 2338
`public testCancelRefundShouldCatchRestCliException() : mixed`

#### testCreateBill()

ClientTest.php : 196
`public testCreateBill() : mixed`

#### testCreateBillException()

ClientTest.php : 225
`public testCreateBillException() : mixed`

#### testCreateBillShouldCatchJsonMapperException()

ClientTest.php : 271
`public testCreateBillShouldCatchJsonMapperException() : mixed`

#### testCreateBillShouldCatchRestCliException()

ClientTest.php : 248
`public testCreateBillShouldCatchRestCliException() : mixed`

#### testCreateInvoice()

ClientTest.php : 3246
`public testCreateInvoice() : mixed`

##### Tags

throws
  BitPayException

#### testCreateInvoiceShouldCatchJsonMapperException()

ClientTest.php : 3283
`public testCreateInvoiceShouldCatchJsonMapperException() : mixed`

#### testCreateInvoiceShouldCatchRestCliExceptions()

ClientTest.php : 3269
`public testCreateInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : mixed`

##### Parameters

$exceptionClass : string

##### Tags

dataProvider

  exceptionClassProvider

#### testCreatePayoutGroup()

ClientTest.php : 2154
`public testCreatePayoutGroup() : void`

#### testCreateRefund()

ClientTest.php : 2218
`public testCreateRefund() : mixed`

#### testCreateRefundShouldCatchJsonMapperException()

ClientTest.php : 2285
`public testCreateRefundShouldCatchJsonMapperException() : mixed`

#### testCreateRefundShouldCatchRestCliBitPayException()

ClientTest.php : 2243
`public testCreateRefundShouldCatchRestCliBitPayException() : mixed`

#### testCreateRefundShouldCatchRestCliException()

ClientTest.php : 2264
`public testCreateRefundShouldCatchRestCliException() : mixed`

#### testDeletePayoutRecipient()

ClientTest.php : 1152
`public testDeletePayoutRecipient() : mixed`

#### testDeletePayoutRecipientShouldCatchJsonDecodeException()

ClientTest.php : 1208
`public testDeletePayoutRecipientShouldCatchJsonDecodeException() : mixed`

#### testDeletePayoutRecipientShouldCatchRestCliBitPayException()

ClientTest.php : 1172
`public testDeletePayoutRecipientShouldCatchRestCliBitPayException() : mixed`

#### testDeletePayoutRecipientShouldCatchRestCliException()

ClientTest.php : 1190
`public testDeletePayoutRecipientShouldCatchRestCliException() : mixed`

#### testDeliverBill()

ClientTest.php : 596
`public testDeliverBill() : mixed`

##### Tags

throws
  BitPayException

#### testDeliverBillShouldCatchRestCliBitPayException()

ClientTest.php : 615
`public testDeliverBillShouldCatchRestCliBitPayException() : mixed`

#### testDeliverBillShouldCatchRestCliException()

ClientTest.php : 633
`public testDeliverBillShouldCatchRestCliException() : mixed`

#### testGetBill()

ClientTest.php : 296
`public testGetBill() : mixed`

#### testGetBills()

ClientTest.php : 370
`public testGetBills() : mixed`

#### testGetBillShouldCatchJsonMapperException()

ClientTest.php : 352
`public testGetBillShouldCatchJsonMapperException() : mixed`

#### testGetBillShouldCatchRestCliBitPayException()

ClientTest.php : 318
`public testGetBillShouldCatchRestCliBitPayException() : mixed`

#### testGetBillShouldCatchRestCliException()

ClientTest.php : 335
`public testGetBillShouldCatchRestCliException() : mixed`

#### testGetBillsShouldCatchJsonMapperException()

ClientTest.php : 399
`public testGetBillsShouldCatchJsonMapperException() : mixed`

#### testGetBillsShouldCatchRestCliBitPayException()

ClientTest.php : 418
`public testGetBillsShouldCatchRestCliBitPayException() : mixed`

#### testGetBillsShouldCatchRestCliException()

ClientTest.php : 440
`public testGetBillsShouldCatchRestCliException() : mixed`

##### Tags

throws
  BitPayException
depends

  testWithFileJsonConfig

#### testGetCurrencyPairRate()

ClientTest.php : 1437
`public testGetCurrencyPairRate() : mixed`

#### testGetCurrencyPairRateShouldCatchRestCliBitPayException()

ClientTest.php : 1458
`public testGetCurrencyPairRateShouldCatchRestCliBitPayException() : mixed`

#### testGetCurrencyPairRateShouldReturnExceptionWhenNoDataInJson()

ClientTest.php : 1486
`public testGetCurrencyPairRateShouldReturnExceptionWhenNoDataInJson() : mixed`

#### testGetCurrencyPairRateShouldThrowExceptionWhenResponseIsException()

ClientTest.php : 1472
`public testGetCurrencyPairRateShouldThrowExceptionWhenResponseIsException() : mixed`

#### testGetCurrencyRates()

ClientTest.php : 1365
`public testGetCurrencyRates() : mixed`

#### testGetCurrencyRatesShouldFailWhenDataInvalid()

ClientTest.php : 1419
`public testGetCurrencyRatesShouldFailWhenDataInvalid() : mixed`

#### testGetCurrencyRatesShouldHandleRestCliBitPayException()

ClientTest.php : 1385
`public testGetCurrencyRatesShouldHandleRestCliBitPayException() : mixed`

#### testGetCurrencyRatesShouldHandleRestCliException()

ClientTest.php : 1402
`public testGetCurrencyRatesShouldHandleRestCliException() : mixed`

#### testGetInvoice()

ClientTest.php : 2855
`public testGetInvoice() : mixed`

#### testGetInvoiceByGuid()

ClientTest.php : 2874
`public testGetInvoiceByGuid() : mixed`

#### testGetInvoices()

ClientTest.php : 2930
`public testGetInvoices() : mixed`

#### testGetInvoiceShouldCatchJsonMapperException()

ClientTest.php : 2913
`public testGetInvoiceShouldCatchJsonMapperException() : mixed`

#### testGetInvoiceShouldCatchRestCliExceptions()

ClientTest.php : 2896
`public testGetInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : void`

##### Parameters

$exceptionClass : string

##### Tags

dataProvider

  exceptionClassProvider

#### testGetInvoicesShouldCatchJsonMapperException()

ClientTest.php : 3000
`public testGetInvoicesShouldCatchJsonMapperException() : mixed`

#### testGetInvoicesShouldCatchRestCliExceptions()

ClientTest.php : 2969
`public testGetInvoicesShouldCatchRestCliExceptions(string $exceptionClass) : mixed`

##### Parameters

$exceptionClass : string

##### Tags

dataProvider

  exceptionClassProvider

#### testGetLedger()

ClientTest.php : 651
`public testGetLedger() : mixed`

#### testGetLedgers()

ClientTest.php : 730
`public testGetLedgers() : mixed`

#### testGetLedgerShouldCatchJsonMapperException()

ClientTest.php : 711
`public testGetLedgerShouldCatchJsonMapperException() : mixed`

#### testGetLedgerShouldCatchRestCliBitPayException()

ClientTest.php : 697
`public testGetLedgerShouldCatchRestCliBitPayException() : mixed`

#### testGetLedgerShouldCatchRestCliException()

ClientTest.php : 680
`public testGetLedgerShouldCatchRestCliException() : mixed`

#### testGetLedgersShouldCatchBitPayException()

ClientTest.php : 751
`public testGetLedgersShouldCatchBitPayException() : mixed`

#### testGetLedgersShouldCatchJsonMapperException()

ClientTest.php : 773
`public testGetLedgersShouldCatchJsonMapperException() : mixed`

#### testGetLedgersShouldCatchRestCliException()

ClientTest.php : 762
`public testGetLedgersShouldCatchRestCliException() : mixed`

#### testGetPayout()

ClientTest.php : 1803
`public testGetPayout() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetPayoutRecipient()

ClientTest.php : 884
`public testGetPayoutRecipient() : mixed`

#### testGetPayoutRecipients()

ClientTest.php : 955
`public testGetPayoutRecipients() : mixed`

#### testGetPayoutRecipientShouldHandleJsonMapperException()

ClientTest.php : 937
`public testGetPayoutRecipientShouldHandleJsonMapperException() : mixed`

#### testGetPayoutRecipientShouldHandleRestCliBitPayException()

ClientTest.php : 903
`public testGetPayoutRecipientShouldHandleRestCliBitPayException() : mixed`

#### testGetPayoutRecipientShouldHandleRestCliException()

ClientTest.php : 920
`public testGetPayoutRecipientShouldHandleRestCliException() : mixed`

#### testGetPayoutRecipientsShouldHandleJsonMapperException()

ClientTest.php : 1032
`public testGetPayoutRecipientsShouldHandleJsonMapperException() : mixed`

#### testGetPayoutRecipientsShouldHandleRestCliBitPayException()

ClientTest.php : 982
`public testGetPayoutRecipientsShouldHandleRestCliBitPayException() : mixed`

#### testGetPayoutRecipientsShouldHandleRestCliException()

ClientTest.php : 1007
`public testGetPayoutRecipientsShouldHandleRestCliException() : mixed`

#### testGetPayouts()

ClientTest.php : 1872
`public testGetPayouts() : mixed`

#### testGetPayoutShouldHandleJsonMapperException()

ClientTest.php : 1837
`public testGetPayoutShouldHandleJsonMapperException() : mixed`

#### testGetPayoutShouldHandleRestCliBitPayException()

ClientTest.php : 1821
`public testGetPayoutShouldHandleRestCliBitPayException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetPayoutShouldHandleRestCliException()

ClientTest.php : 1856
`public testGetPayoutShouldHandleRestCliException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetPayoutsShouldHandleJsonMapperException()

ClientTest.php : 1942
`public testGetPayoutsShouldHandleJsonMapperException() : mixed`

#### testGetPayoutsShouldHandleRestCliBitPayException()

ClientTest.php : 1900
`public testGetPayoutsShouldHandleRestCliBitPayException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetPayoutsShouldHandleRestCliException()

ClientTest.php : 1921
`public testGetPayoutsShouldHandleRestCliException() : mixed`

#### testGetRates()

ClientTest.php : 1300
`public testGetRates() : mixed`

#### testGetRatesShouldHandleCorruptJson()

ClientTest.php : 1349
`public testGetRatesShouldHandleCorruptJson() : mixed`

#### testGetRatesShouldHandleRestCliBitPayException()

ClientTest.php : 1319
`public testGetRatesShouldHandleRestCliBitPayException() : mixed`

#### testGetRatesShouldHandleRestCliException()

ClientTest.php : 1334
`public testGetRatesShouldHandleRestCliException() : mixed`

#### testGetRefund()

ClientTest.php : 2636
`public testGetRefund() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetRefundByGuid()

ClientTest.php : 2710
`public testGetRefundByGuid() : mixed`

#### testGetRefundByGuidShouldCatchRestCliBitPayException()

ClientTest.php : 2733
`public testGetRefundByGuidShouldCatchRestCliBitPayException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetRefundByGuidShouldCatchRestCliException()

ClientTest.php : 2751
`public testGetRefundByGuidShouldCatchRestCliException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetRefundByGuidShouldCatchRestCliJsonMapperException()

ClientTest.php : 2769
`public testGetRefundByGuidShouldCatchRestCliJsonMapperException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetRefunds()

ClientTest.php : 2560
`public testGetRefunds() : mixed`

#### testGetRefundShouldCatchRestCliBitPayException()

ClientTest.php : 2659
`public testGetRefundShouldCatchRestCliBitPayException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetRefundShouldCatchRestCliException()

ClientTest.php : 2677
`public testGetRefundShouldCatchRestCliException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetRefundShouldCatchRestCliJsonMapperException()

ClientTest.php : 2695
`public testGetRefundShouldCatchRestCliJsonMapperException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetRefundsShouldCatchJsonMapperException()

ClientTest.php : 2617
`public testGetRefundsShouldCatchJsonMapperException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetRefundsShouldCatchRestCliBitPayException()

ClientTest.php : 2580
`public testGetRefundsShouldCatchRestCliBitPayException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetRefundsShouldCatchRestCliException()

ClientTest.php : 2598
`public testGetRefundsShouldCatchRestCliException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testGetSettlement()

ClientTest.php : 1625
`public testGetSettlement() : mixed`

#### testGetSettlementReconciliationReport()

ClientTest.php : 1704
`public testGetSettlementReconciliationReport() : mixed`

#### testGetSettlementReconciliationReportShouldCatchJsonMapperException()

ClientTest.php : 1777
`public testGetSettlementReconciliationReportShouldCatchJsonMapperException() : mixed`

#### testGetSettlementReconciliationReportShouldCatchRestCliBitPayException()

ClientTest.php : 1733
`public testGetSettlementReconciliationReportShouldCatchRestCliBitPayException() : mixed`

#### testGetSettlementReconciliationReportShouldCatchRestCliException()

ClientTest.php : 1755
`public testGetSettlementReconciliationReportShouldCatchRestCliException() : mixed`

#### testGetSettlements()

ClientTest.php : 1502
`public testGetSettlements() : mixed`

#### testGetSettlementShouldCatchJsonMapperException()

ClientTest.php : 1685
`public testGetSettlementShouldCatchJsonMapperException() : mixed`

#### testGetSettlementShouldHandleRestCliBitPayException()

ClientTest.php : 1651
`public testGetSettlementShouldHandleRestCliBitPayException() : mixed`

#### testGetSettlementShouldHandleRestCliException()

ClientTest.php : 1668
`public testGetSettlementShouldHandleRestCliException() : mixed`

#### testGetSettlementsShouldCatchJsonMapperException()

ClientTest.php : 1595
`public testGetSettlementsShouldCatchJsonMapperException() : mixed`

#### testGetSettlementsShouldCatchRestCliBitPayException()

ClientTest.php : 1537
`public testGetSettlementsShouldCatchRestCliBitPayException() : mixed`

#### testGetSettlementsShouldCatchRestCliException()

ClientTest.php : 1566
`public testGetSettlementsShouldCatchRestCliException() : mixed`

#### testGetSupportedWallets()

ClientTest.php : 3429
`public testGetSupportedWallets() : mixed`

#### testGetSupportedWalletsShouldCatchJsonMapperException()

ClientTest.php : 3479
`public testGetSupportedWalletsShouldCatchJsonMapperException() : mixed`

#### testGetSupportedWalletsShouldCatchRestCliBitPayException()

ClientTest.php : 3449
`public testGetSupportedWalletsShouldCatchRestCliBitPayException() : mixed`

#### testGetSupportedWalletsShouldCatchRestCliException()

ClientTest.php : 3464
`public testGetSupportedWalletsShouldCatchRestCliException() : mixed`

#### testGetTokens()

ClientTest.php : 181
`public testGetTokens() : void`

#### testPayInvoice()

ClientTest.php : 3196
`public testPayInvoice() : mixed`

#### testPayInvoiceShouldCatchJsonMapperException()

ClientTest.php : 3230
`public testPayInvoiceShouldCatchJsonMapperException() : mixed`

#### testPayInvoiceShouldCatchRestCliExceptions()

ClientTest.php : 3217
`public testPayInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : mixed`

##### Parameters

$exceptionClass : string

##### Tags

dataProvider

  exceptionClassProvider

#### testRequestInvoiceNotificationShouldCatchJsonMapperException()

ClientTest.php : 3067
`public testRequestInvoiceNotificationShouldCatchJsonMapperException() : mixed`

#### testRequestInvoiceNotificationShouldReturnFalseOnFailure()

ClientTest.php : 3050
`public testRequestInvoiceNotificationShouldReturnFalseOnFailure() : mixed`

#### testRequestInvoiceNotificationShouldReturnTrueOnSuccess()

ClientTest.php : 3031
`public testRequestInvoiceNotificationShouldReturnTrueOnSuccess() : mixed`

#### testRequestNotification()

ClientTest.php : 2099
`public testRequestNotification() : mixed`

#### testRequestNotificationShouldCatchJsonException()

ClientTest.php : 2141
`public testRequestNotificationShouldCatchJsonException() : mixed`

#### testRequestNotificationShouldCatchRestCliBitPayException()

ClientTest.php : 2113
`public testRequestNotificationShouldCatchRestCliBitPayException() : mixed`

#### testRequestNotificationShouldCatchRestCliException()

ClientTest.php : 2127
`public testRequestNotificationShouldCatchRestCliException() : mixed`

#### testRequestPayoutRecipientNotification()

ClientTest.php : 1226
`public testRequestPayoutRecipientNotification() : mixed`

#### testRequestPayoutRecipientNotificationShouldCatchJsonDecodeException()

ClientTest.php : 1282
`public testRequestPayoutRecipientNotificationShouldCatchJsonDecodeException() : mixed`

#### testRequestPayoutRecipientNotificationShouldCatchRestCliBitPayException()

ClientTest.php : 1246
`public testRequestPayoutRecipientNotificationShouldCatchRestCliBitPayException() : mixed`

#### testRequestPayoutRecipientNotificationShouldCatchRestCliException()

ClientTest.php : 1264
`public testRequestPayoutRecipientNotificationShouldCatchRestCliException() : mixed`

#### testSendRefundNotification()

ClientTest.php : 2787
`public testSendRefundNotification() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testSendRefundNotificationShouldCatchJsonMapperException()

ClientTest.php : 2841
`public testSendRefundNotificationShouldCatchJsonMapperException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testSendRefundNotificationShouldCatchRestCliBitPayException()

ClientTest.php : 2805
`public testSendRefundNotificationShouldCatchRestCliBitPayException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testSendRefundNotificationShouldCatchRestCliException()

ClientTest.php : 2823
`public testSendRefundNotificationShouldCatchRestCliException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testSubmitPayout()

ClientTest.php : 2018
`public testSubmitPayout() : mixed`

#### testSubmitPayoutRecipients()

ClientTest.php : 786
`public testSubmitPayoutRecipients() : mixed`

#### testSubmitPayoutRecipientsShouldCatchJsonMapperException()

ClientTest.php : 859
`public testSubmitPayoutRecipientsShouldCatchJsonMapperException() : mixed`

##### Tags

depends

  testWithFileJsonConfig

#### testSubmitPayoutRecipientsShouldCatchRestCliBitPayException()

ClientTest.php : 810
`public testSubmitPayoutRecipientsShouldCatchRestCliBitPayException() : mixed`

#### testSubmitPayoutRecipientsShouldCatchRestCliException()

ClientTest.php : 833
`public testSubmitPayoutRecipientsShouldCatchRestCliException() : mixed`

#### testSubmitPayoutShouldCatchJsonMapperException()

ClientTest.php : 2079
`public testSubmitPayoutShouldCatchJsonMapperException() : mixed`

#### testSubmitPayoutShouldCatchRestCliBitPayException()

ClientTest.php : 2039
`public testSubmitPayoutShouldCatchRestCliBitPayException() : mixed`

#### testSubmitPayoutShouldCatchRestCliException()

ClientTest.php : 2059
`public testSubmitPayoutShouldCatchRestCliException() : mixed`

#### testUpdateBill()

ClientTest.php : 458
`public testUpdateBill() : mixed`

#### testUpdateBillShouldCatchJsonMapperException()

ClientTest.php : 558
`public testUpdateBillShouldCatchJsonMapperException() : mixed`

#### testUpdateBillShouldCatchRestCliBitPayException()

ClientTest.php : 492
`public testUpdateBillShouldCatchRestCliBitPayException() : mixed`

#### testUpdateBillShouldCatchRestCliException()

ClientTest.php : 525
`public testUpdateBillShouldCatchRestCliException() : mixed`

#### testUpdateInvoice()

ClientTest.php : 3396
`public testUpdateInvoice() : mixed`

#### testUpdateInvoiceShouldCatchJsonMapperException()

ClientTest.php : 3328
`public testUpdateInvoiceShouldCatchJsonMapperException() : mixed`

#### testUpdateInvoiceShouldCatchRestCliExceptions()

ClientTest.php : 3300
`public testUpdateInvoiceShouldCatchRestCliExceptions(string $exceptionClass) : mixed`

##### Parameters

$exceptionClass : string

##### Tags

dataProvider

  exceptionClassProvider

#### testUpdateInvoiceShouldThrowExceptionWhenBothBuyerEmailAndSmsProvided()

ClientTest.php : 3356
`public testUpdateInvoiceShouldThrowExceptionWhenBothBuyerEmailAndSmsProvided() : mixed`

#### testUpdateInvoiceShouldThrowExceptionWhenNoSmsCodeProvided()

ClientTest.php : 3376
`public testUpdateInvoiceShouldThrowExceptionWhenNoSmsCodeProvided() : mixed`

#### testUpdatePayoutRecipient()

ClientTest.php : 1061
`public testUpdatePayoutRecipient() : mixed`

##### Tags

throws
  PayoutRecipientUpdateException

#### testUpdatePayoutRecipientShouldCatchJsonMapperException()

ClientTest.php : 1128
`public testUpdatePayoutRecipientShouldCatchJsonMapperException() : mixed`

#### testUpdatePayoutRecipientShouldCatchRestCliBitPayException()

ClientTest.php : 1084
`public testUpdatePayoutRecipientShouldCatchRestCliBitPayException() : mixed`

#### testUpdatePayoutRecipientShouldCatchRestCliException()

ClientTest.php : 1106
`public testUpdatePayoutRecipientShouldCatchRestCliException() : mixed`

#### testUpdateRefund()

ClientTest.php : 2432
`public testUpdateRefund() : mixed`

#### testUpdateRefundBuGuidShouldCatchRestCliBitPayException()

ClientTest.php : 2514
`public testUpdateRefundBuGuidShouldCatchRestCliBitPayException() : mixed`

#### testUpdateRefundBuGuidShouldCatchRestCliException()

ClientTest.php : 2529
`public testUpdateRefundBuGuidShouldCatchRestCliException() : mixed`

#### testUpdateRefundByGuid()

ClientTest.php : 2495
`public testUpdateRefundByGuid() : mixed`

#### testUpdateRefundByGuidShouldCatchJsonMapperException()

ClientTest.php : 2544
`public testUpdateRefundByGuidShouldCatchJsonMapperException() : mixed`

#### testUpdateRefundShouldCatchJsonMapperException()

ClientTest.php : 2479
`public testUpdateRefundShouldCatchJsonMapperException() : mixed`

#### testUpdateRefundShouldCatchRestCliBitPayException()

ClientTest.php : 2449
`public testUpdateRefundShouldCatchRestCliBitPayException() : mixed`

#### testUpdateRefundShouldCatchRestCliException()

ClientTest.php : 2464
`public testUpdateRefundShouldCatchRestCliException() : mixed`

#### testWithData()

ClientTest.php : 126
`public testWithData() : mixed`

##### Tags

throws
  BitPayException

#### testWithDataException()

ClientTest.php : 139
`public testWithDataException() : mixed`

#### testWithFileException()

ClientTest.php : 174
`public testWithFileException() : mixed`

#### testWithFileJsonConfig()

ClientTest.php : 156
`public testWithFileJsonConfig() : Client`

##### Tags

throws
  BitPayException

##### Return values

Client

#### testWithFileYmlConfig()

ClientTest.php : 167
`public testWithFileYmlConfig() : mixed`

##### Tags

throws
  BitPayException

#### getClient()

ClientTest.php : 3502
`private getClient(RESTcli $restCli) : mixed`

##### Parameters

$restCli : RESTcli

#### getInvoiceRefundParams()

ClientTest.php : 3538
`private getInvoiceRefundParams() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getPayoutParams()

ClientTest.php : 3526
`private getPayoutParams() : array<string|int, mixed>`

##### Return values

array<string|int, mixed>

#### getRestCliMock()

ClientTest.php : 3521
`private getRestCliMock() : mixed`

#### getTestedClassInstance()

ClientTest.php : 3513
`private getTestedClassInstance() : Client`

##### Return values

Client

#### refreshResourceClients()

ClientTest.php : 3555
`private refreshResourceClients() : void`

##### Tags

throws
  ReflectionException

## Search results