@cinerino/sdk 10.21.0-alpha.2 → 10.21.0-alpha.4

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;