@cinerino/sdk 10.21.0-alpha.3 → 10.21.0-alpha.5

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.
@@ -34,5 +34,17 @@ export declare class PaymentProductService extends Service {
34
34
  deletePaymentServiceById(params: {
35
35
  id: string;
36
36
  }): Promise<void>;
37
+ searchAvailableChannels(params: {
38
+ limit?: number;
39
+ page?: number;
40
+ providesService: {
41
+ typeOf: {
42
+ $eq: factory.service.paymentService.PaymentServiceType.CreditCard | factory.service.paymentService.PaymentServiceType.MovieTicket;
43
+ };
44
+ };
45
+ serviceUrl?: {
46
+ $regex?: string;
47
+ };
48
+ }): Promise<Pick<factory.serviceChannel.IServiceChannel, 'serviceUrl'>[]>;
37
49
  }
38
50
  export {};
@@ -162,6 +162,22 @@ var PaymentProductService = /** @class */ (function (_super) {
162
162
  });
163
163
  });
164
164
  };
165
+ PaymentProductService.prototype.searchAvailableChannels = function (params) {
166
+ return __awaiter(this, void 0, void 0, function () {
167
+ var _this = this;
168
+ return __generator(this, function (_a) {
169
+ return [2 /*return*/, this.fetch({
170
+ uri: '/paymentServices/availableChannels',
171
+ method: 'GET',
172
+ qs: params,
173
+ expectedStatusCodes: [http_status_1.OK]
174
+ })
175
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
176
+ return [2 /*return*/, response.json()];
177
+ }); }); })];
178
+ });
179
+ });
180
+ };
165
181
  return PaymentProductService;
166
182
  }(service_1.Service));
167
183
  exports.PaymentProductService = PaymentProductService;
package/lib/bundle.js CHANGED
@@ -9762,6 +9762,22 @@ var PaymentProductService = /** @class */ (function (_super) {
9762
9762
  });
9763
9763
  });
9764
9764
  };
9765
+ PaymentProductService.prototype.searchAvailableChannels = function (params) {
9766
+ return __awaiter(this, void 0, void 0, function () {
9767
+ var _this = this;
9768
+ return __generator(this, function (_a) {
9769
+ return [2 /*return*/, this.fetch({
9770
+ uri: '/paymentServices/availableChannels',
9771
+ method: 'GET',
9772
+ qs: params,
9773
+ expectedStatusCodes: [http_status_1.OK]
9774
+ })
9775
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
9776
+ return [2 /*return*/, response.json()];
9777
+ }); }); })];
9778
+ });
9779
+ });
9780
+ };
9765
9781
  return PaymentProductService;
9766
9782
  }(service_1.Service));
9767
9783
  exports.PaymentProductService = PaymentProductService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "10.21.0-alpha.3",
3
+ "version": "10.21.0-alpha.5",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -92,7 +92,7 @@
92
92
  "watchify": "^3.11.1"
93
93
  },
94
94
  "dependencies": {
95
- "@chevre/factory": "4.393.0-alpha.2",
95
+ "@chevre/factory": "4.393.0-alpha.4",
96
96
  "debug": "3.2.7",
97
97
  "http-status": "1.7.4",
98
98
  "idtoken-verifier": "2.0.3",