| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 16 | public function adjust_subscription_balance($subscription_id, $amount, $memo): array |
||
| 17 | { |
||
| 18 | $this->options['json'] = [ |
||
|
|
|||
| 19 | 'adjustment' => [ |
||
| 20 | 'amount' => $amount, |
||
| 21 | 'memo' => $memo, |
||
| 22 | ] |
||
| 23 | ]; |
||
| 24 | |||
| 25 | $this->apiEndPoint = "/subscriptions/{$subscription_id}/adjustments.json"; |
||
| 26 | |||
| 27 | $this->verb = 'post'; |
||
| 28 | |||
| 29 | return $this->doChargifyRequest(); |
||
| 30 | } |
||
| 32 |