@vendit-dev/thirdparty-adapters 0.4.0-beta.14 β†’ 0.4.0-beta.15

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.
@@ -84,7 +84,7 @@ var AmanoKoreaAdapter = /** @class */ (function () {
84
84
  this.getAccommodationAuthInfo = function (_a) {
85
85
  var accommodationId = _a.accommodationId;
86
86
  return __awaiter(_this, void 0, void 0, function () {
87
- var existingAuth, parsedCredential, _b, authorization, apiHost, lockId, lockHash, newAuth, parsedCredential, err_1;
87
+ var existingAuth, parsedCredential, _b, authorization, apiHost, lotAreaNo, discCodeNo, lockId, lockHash, newAuth, parsedCredential, err_1;
88
88
  return __generator(this, function (_c) {
89
89
  switch (_c.label) {
90
90
  case 0: return [4 /*yield*/, this.redis.get(AmanoKoreaAdapter.indexAccommodation({ accommodationId: accommodationId }))];
@@ -95,10 +95,12 @@ var AmanoKoreaAdapter = /** @class */ (function () {
95
95
  parsedCredential = this.parseJSONSafe(existingAuth);
96
96
  console.log('πŸš€ ~ file: amanoKorea.ts:111 ~ AmanoKoreaAdapter ~ parsedCredential:', parsedCredential);
97
97
  if (parsedCredential === null || parsedCredential === void 0 ? void 0 : parsedCredential.credential) {
98
- _b = this.parseJSONSafe(parsedCredential.credential), authorization = _b.authorization, apiHost = _b.apiHost;
98
+ _b = this.parseJSONSafe(parsedCredential.credential), authorization = _b.authorization, apiHost = _b.apiHost, lotAreaNo = _b.lotAreaNo, discCodeNo = _b.discCodeNo;
99
99
  this.setAuthorization({
100
100
  authorization: authorization,
101
101
  });
102
+ this.lotAreaNo = lotAreaNo;
103
+ this.discCodeNo = discCodeNo;
102
104
  this.API_HOST = apiHost;
103
105
  }
104
106
  return [2 /*return*/, this.parseJSONSafe(existingAuth)];
@@ -128,6 +130,8 @@ var AmanoKoreaAdapter = /** @class */ (function () {
128
130
  this.setAuthorization({
129
131
  authorization: parsedCredential.authorization,
130
132
  });
133
+ this.lotAreaNo = parsedCredential.lotAreaNo;
134
+ this.discCodeNo = parsedCredential.discCodeNo;
131
135
  this.API_HOST = parsedCredential.apiHost;
132
136
  }
133
137
  else {
@@ -207,10 +211,13 @@ var AmanoKoreaAdapter = /** @class */ (function () {
207
211
  // };
208
212
  // λ°©λ¬Έμ°¨λŸ‰ 등둝 λ‚΄μ—­ 쑰회
209
213
  this.getPreDiscountListInfo = function (resources) { return __awaiter(_this, void 0, void 0, function () {
210
- return __generator(this, function (_a) {
214
+ var _a, lotAreaNo, discCodeNo;
215
+ return __generator(this, function (_b) {
216
+ _a = this, lotAreaNo = _a.lotAreaNo, discCodeNo = _a.discCodeNo;
211
217
  return [2 /*return*/, this.callAPI({
212
218
  directory: 'getPreDiscountListInfo.do',
213
- resources: resources,
219
+ resources: __assign(__assign({}, resources), { lotAreaNo: lotAreaNo,
220
+ discCodeNo: discCodeNo }),
214
221
  })];
215
222
  });
216
223
  }); };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendit-dev/thirdparty-adapters",
3
- "version": "0.4.0-beta.14",
3
+ "version": "0.4.0-beta.15",
4
4
  "description": "Third party adapters between v-cloud and other PMS/CMS providers.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {