-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlugAPIClient.php
128 lines (124 loc) · 3.75 KB
/
PlugAPIClient.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?php
/*
* PlugAPILib
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
*/
namespace PlugHacker\PlugAPILib;
use PlugHacker\PlugAPILib\Controllers;
/**
* PlugAPILib client class
*/
class PlugAPIClient
{
/**
* Constructor with authentication and configuration parameters
*/
public function __construct(
$clientId = null,
$secretKey = null,
$basicAuthUserName = null,
$basicAuthPassword = null
) {
Configuration::$clientId = $clientId ? $clientId : Configuration::$clientId;
Configuration::$secretKey = $secretKey ? $secretKey : Configuration::$secretKey;
Configuration::$basicAuthUserName = $basicAuthUserName ? $basicAuthUserName : Configuration::$basicAuthUserName;
Configuration::$basicAuthPassword = $basicAuthPassword ? $basicAuthPassword : Configuration::$basicAuthPassword;
}
/**
* Singleton access to Subscriptions controller
* @return Controllers\SubscriptionsController The *Singleton* instance
*/
public function getSubscriptions()
{
return Controllers\SubscriptionsController::getInstance();
}
/**
* Singleton access to Orders controller
* @return Controllers\OrdersController The *Singleton* instance
*/
public function getOrders()
{
return Controllers\OrdersController::getInstance();
}
/**
* Singleton access to Webhook controller
* @return Controllers\WebhooksController The *Singleton* instance
*/
public function getWebooks()
{
return Controllers\WebhooksController::getInstance();
}
/**
* Singleton access to Plans controller
* @return Controllers\PlansController The *Singleton* instance
*/
public function getPlans()
{
return Controllers\PlansController::getInstance();
}
/**
* Singleton access to Invoices controller
* @return Controllers\InvoicesController The *Singleton* instance
*/
public function getInvoices()
{
return Controllers\InvoicesController::getInstance();
}
/**
* Singleton access to Customers controller
* @return Controllers\CustomersController The *Singleton* instance
*/
public function getCustomers()
{
return Controllers\CustomersController::getInstance();
}
/**
* Singleton access to Charges controller
* @return Controllers\ChargesController The *Singleton* instance
*/
public function getCharges()
{
return Controllers\ChargesController::getInstance();
}
/**
* Singleton access to Recipients controller
* @return Controllers\RecipientsController The *Singleton* instance
*/
public function getRecipients()
{
return Controllers\RecipientsController::getInstance();
}
/**
* Singleton access to Tokens controller
* @return Controllers\TokensController The *Singleton* instance
*/
public function getTokens()
{
return Controllers\TokensController::getInstance();
}
/**
* Singleton access to Sellers controller
* @return Controllers\SellersController The *Singleton* instance
*/
public function getSellers()
{
return Controllers\SellersController::getInstance();
}
/**
* Singleton access to Transactions controller
* @return Controllers\TransactionsController The *Singleton* instance
*/
public function getTransactions()
{
return Controllers\TransactionsController::getInstance();
}
/**
* Singleton access to Transfers controller
* @return Controllers\TransfersController The *Singleton* instance
*/
public function getTransfers()
{
return Controllers\TransfersController::getInstance();
}
}