This repository was archived by the owner on Jan 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 147
/
Copy pathClientInterface.php
111 lines (89 loc) · 2.71 KB
/
ClientInterface.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/**
* @license Copyright 2011-2014 BitPay Inc., MIT License
* see https://github.com/bitpay/php-bitpay-client/blob/master/LICENSE
*/
namespace Bitpay\Client;
use Bitpay\InvoiceInterface;
use Bitpay\PayoutInterface;
/**
* Sends request(s) to bitpay server
*
* @package Bitpay
*/
interface ClientInterface
{
const TESTNET = '0x6F';
const LIVENET = '0x00';
/**
* These can be changed/updated so when the request is sent to BitPay it
* gives insight into what is making the calls.
*
* @see RFC2616 section 14.43 for User-Agent Format
*/
const NAME = 'BitPay PHP-Client';
const VERSION = '4.0.0';
//public function createApplication(ApplicationInterface $application);
//public function createBill(BillInterface $bill);
//public function getBills($status = null);
//public function getBill($billId);
//public function updateBill(BillInterface $bill);
//public function createAccessToken(AccessTokenInterface $accessToken);
//public function getAccessTokens();
//public function getAccessToken($keyId);
public function getCurrencies();
/**
* @param InvoiceInterface $invoiceId
* @return \Bitpay\Invoice
* @throws \Exception
*/
public function createInvoice(InvoiceInterface $invoice);
//public function getInvoices();
/**
* @param $invoiceId
* @return InvoiceInterface
* @throws \Exception
*/
public function getInvoice($invoiceId);
//public function getLedgers();
//public function getLedger(CurrencyInterface $currency);
//public function getOrgs();
//public function getOrg($orgId);
//public function updateOrg(OrgInterface $org);
/**
* Create a Payout Request on Bitpay
* @param PayoutInterface $payout
* @return PayoutInterface|mixed
* @throws \Exception
*/
public function createPayout(PayoutInterface $payout);
/**
* @param null $status
* @return array
* @throws \Exception
*/
public function getPayouts($status = null);
/**
* @param $payoutId
* @return \Bitpay\Payout
* @throws \Exception
*/
public function getPayout($payoutId);
/**
* @param PayoutInterface
* @return PayoutInterface|mixed
* @throws \Exception
*/
public function deletePayout(PayoutInterface $payout);
//public function updatePayout(PayoutInterface $payout);
//public function getRates();
//public function getRate(CurrencyInterface $currency);
/**
* Get an array of tokens indexed by facade
* @return array
* @throws \Exception
*/
public function getTokens();
//public function getUser();
//public function updateUser(UserInterface $user);
}