1 | <?php |
||
6 | class AsaasController extends AppController |
||
7 | { |
||
8 | |||
9 | protected $endpoint = 'https://www.asaas.com/api/v3'; |
||
10 | |||
11 | public function configuracoes() |
||
24 | |||
25 | public function save() |
||
54 | |||
55 | // \"customer\": \"{CUSTOMER_ID}\", |
||
56 | // \"billingType\": \"BOLETO\", |
||
57 | // \"dueDate\": \"2017-06-10\", |
||
58 | // \"value\": 100, |
||
59 | // \"description\": \"Pedido 056984\", |
||
60 | // \"externalReference\": \"056984\" |
||
61 | public function criar_cobranca($data) |
||
65 | |||
66 | // { |
||
67 | // \"name\": \"Marcelo Almeida\", |
||
68 | // \"email\": \"[email protected]\", |
||
69 | // \"phone\": \"4738010919\", |
||
70 | // \"mobilePhone\": \"4799376637\", |
||
71 | // \"cpfCnpj\": \"24971563792\", |
||
72 | // \"postalCode\": \"01310-000\", |
||
73 | // \"address\": \"Av. Paulista\", |
||
74 | // \"addressNumber\": \"150\", |
||
75 | // \"complement\": \"Sala 201\", |
||
76 | // \"province\": \"Centro\", |
||
77 | // \"externalReference\": \"12987382\", |
||
78 | // \"notificationDisabled\": false, |
||
79 | // \"additionalEmails\": \"[email protected],[email protected]\" |
||
80 | // } |
||
81 | public function criar_cliente($data) |
||
85 | |||
86 | public function request($data, $method, $type='GET') |
||
109 | |||
110 | public function loadToken() |
||
126 | |||
127 | } |