1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 06:32:40 +01:00

Subscriptions

This commit is contained in:
David Bomba 2021-04-05 08:37:01 +10:00
parent bf71acfe2d
commit c814a754c3
2 changed files with 3 additions and 2 deletions

View File

@ -231,8 +231,8 @@ class SubscriptionService
//hit the webhook to after a successful onboarding //hit the webhook to after a successful onboarding
$body = [ $body = [
'subscription' => $this->subscription->toArray(), 'subscription' => $this->subscription->hashed_id,
'client' => $this->client_subscription->client->toArray(), 'client' => $this->client_subscription->client->hashed_id,
]; ];
$body = array_merge($body, $context); $body = array_merge($body, $context);

View File

@ -65,6 +65,7 @@ class SubscriptionTransformer extends EntityTransformer
'created_at' => (int)$subscription->created_at, 'created_at' => (int)$subscription->created_at,
'updated_at' => (int)$subscription->updated_at, 'updated_at' => (int)$subscription->updated_at,
'archived_at' => (int)$subscription->deleted_at, 'archived_at' => (int)$subscription->deleted_at,
'plan_map' => '', //@deprecated 03/04/2021
]; ];
} }