@vonage/pricing
Advanced tools
Comparing version 1.0.12 to 1.0.13
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -15,26 +6,17 @@ exports.Pricing = void 0; | ||
class Pricing extends server_client_1.Client { | ||
constructor() { | ||
super(...arguments); | ||
this.authType = server_client_1.AuthenticationType.QUERY_KEY_SECRET; | ||
authType = server_client_1.AuthenticationType.QUERY_KEY_SECRET; | ||
async listCountryPricing(type, country) { | ||
const resp = await this.sendGetRequest(`${this.config.restHost}/account/get-pricing/outbound/${type}`, { country }); | ||
return resp.data; | ||
} | ||
listCountryPricing(type, country) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const resp = yield this.sendGetRequest(`${this.config.restHost}/account/get-pricing/outbound/${type}`, { country }); | ||
return resp.data; | ||
}); | ||
async listAllCountriesPricing(type) { | ||
const resp = await this.sendGetRequest(`${this.config.restHost}/account/get-full-pricing/outbound/${type}`); | ||
return resp.data; | ||
} | ||
listAllCountriesPricing(type) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const resp = yield this.sendGetRequest(`${this.config.restHost}/account/get-full-pricing/outbound/${type}`); | ||
return resp.data; | ||
}); | ||
async listPrefixPricing(type, prefix) { | ||
const resp = await this.sendGetRequest(`${this.config.restHost}/account/get-prefix-pricing/outbound/${type}`, { prefix }); | ||
return resp.data; | ||
} | ||
listPrefixPricing(type, prefix) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const resp = yield this.sendGetRequest(`${this.config.restHost}/account/get-prefix-pricing/outbound/${type}`, { prefix }); | ||
return resp.data; | ||
}); | ||
} | ||
} | ||
exports.Pricing = Pricing; | ||
//# sourceMappingURL=pricing.js.map |
{ | ||
"name": "@vonage/pricing", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Vonage API for pricing", | ||
@@ -30,5 +30,5 @@ "homepage": "https://developer.vonage.com", | ||
"dependencies": { | ||
"@vonage/auth": "^1.0.9", | ||
"@vonage/server-client": "^1.0.15", | ||
"@vonage/vetch": "^1.0.10" | ||
"@vonage/auth": "^1.0.10", | ||
"@vonage/server-client": "^1.0.16", | ||
"@vonage/vetch": "^1.0.11" | ||
}, | ||
@@ -35,0 +35,0 @@ "devDependencies": { |
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
10754
92
Updated@vonage/auth@^1.0.10
Updated@vonage/vetch@^1.0.11