fix(billing): track cloud payment attribution
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
/* global axios */
|
||||
import ApiClient from '../ApiClient';
|
||||
import { getBillingAttribution } from '../../helper/billingAttribution';
|
||||
|
||||
class EnterpriseAccountAPI extends ApiClient {
|
||||
constructor() {
|
||||
@@ -12,9 +11,7 @@ class EnterpriseAccountAPI extends ApiClient {
|
||||
}
|
||||
|
||||
subscription() {
|
||||
return axios.post(`${this.url}subscription`, {
|
||||
billing_attribution: getBillingAttribution(),
|
||||
});
|
||||
return axios.post(`${this.url}subscription`);
|
||||
}
|
||||
|
||||
getLimits() {
|
||||
|
||||
@@ -42,10 +42,7 @@ describe('#enterpriseAccountAPI', () => {
|
||||
it('#subscription', () => {
|
||||
accountAPI.subscription();
|
||||
expect(axiosMock.post).toHaveBeenCalledWith(
|
||||
'/enterprise/api/v1/subscription',
|
||||
{
|
||||
billing_attribution: { visitor_id: undefined, session_id: undefined },
|
||||
}
|
||||
'/enterprise/api/v1/subscription'
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user