ns8-protect-models
Advanced tools
Comparing version 1.0.9 to 1.0.10
import { Shop } from './Shop'; | ||
import { ServiceIntegration } from './ServiceIntegration'; | ||
import { ServiceIntegrationType } from './ServiceIntegrationType'; | ||
export declare class Merchant { | ||
@@ -7,2 +8,3 @@ id: string; | ||
serviceIntegrations: ServiceIntegration[]; | ||
getServiceIntegrationToken(type: ServiceIntegrationType): string; | ||
} |
@@ -17,2 +17,7 @@ "use strict"; | ||
let Merchant = class Merchant { | ||
getServiceIntegrationToken(type) { | ||
return this.serviceIntegrations | ||
.find((integration) => integration.type === type) | ||
.token; | ||
} | ||
}; | ||
@@ -19,0 +24,0 @@ __decorate([ |
{ | ||
"name": "ns8-protect-models", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Core data model classes defined by protect and shared with consumers like switchboard", | ||
@@ -5,0 +5,0 @@ "types": "lib/index.d.ts", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
76669
1041