@overmap-ai/core 1.0.40-projects-licensing.1 → 1.0.40-projects-licensing.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6458,6 +6458,21 @@ class LicenseService extends BaseApiService {
6458
6458
  return result;
6459
6459
  });
6460
6460
  }
6461
+ async getLicense(license) {
6462
+ return this.enqueueRequest({
6463
+ description: "Get license",
6464
+ method: HttpMethod.GET,
6465
+ url: `/billing/${license.offline_id}/`,
6466
+ isAuthNeeded: true,
6467
+ blockers: [
6468
+ license.organization_owner ? license.organization_owner.toString() : license.user_owner ? license.user_owner.toString() : ""
6469
+ ],
6470
+ blocks: []
6471
+ }).then((result) => {
6472
+ this.client.store.dispatch(updateLicense(result));
6473
+ return result;
6474
+ });
6475
+ }
6461
6476
  async pauseLicense(license) {
6462
6477
  return this.enqueueRequest({
6463
6478
  description: "Pause license",