@cinerino/sdk 5.12.0-alpha.1 → 5.12.0-alpha.2

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.
@@ -181,89 +181,6 @@ var OrderService = /** @class */ (function (_super) {
181
181
  });
182
182
  });
183
183
  };
184
- /**
185
- * 注文取得
186
- */
187
- OrderService.prototype.findByOrderNumber = function (params) {
188
- return __awaiter(this, void 0, void 0, function () {
189
- var _this = this;
190
- return __generator(this, function (_a) {
191
- return [2 /*return*/, this.fetch({
192
- uri: "/orders/" + params.orderNumber,
193
- method: 'GET',
194
- expectedStatusCodes: [http_status_1.OK]
195
- })
196
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
197
- return [2 /*return*/, response.json()];
198
- }); }); })];
199
- });
200
- });
201
- };
202
- /**
203
- * 注文を検索する
204
- */
205
- OrderService.prototype.search = function (params) {
206
- return __awaiter(this, void 0, void 0, function () {
207
- var _this = this;
208
- return __generator(this, function (_a) {
209
- return [2 /*return*/, this.fetch({
210
- uri: '/orders',
211
- method: 'GET',
212
- qs: params,
213
- expectedStatusCodes: [http_status_1.OK]
214
- })
215
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
216
- var _a;
217
- return __generator(this, function (_b) {
218
- switch (_b.label) {
219
- case 0:
220
- _a = {};
221
- return [4 /*yield*/, response.json()];
222
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
223
- _a)];
224
- }
225
- });
226
- }); })];
227
- });
228
- });
229
- };
230
- /**
231
- * 返品者検索
232
- */
233
- OrderService.prototype.findReturner = function (params) {
234
- return __awaiter(this, void 0, void 0, function () {
235
- var _this = this;
236
- return __generator(this, function (_a) {
237
- return [2 /*return*/, this.fetch({
238
- uri: "/orders/" + params.orderNumber + "/returner",
239
- method: 'GET',
240
- expectedStatusCodes: [http_status_1.OK]
241
- })
242
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
243
- return [2 /*return*/, response.json()];
244
- }); }); })];
245
- });
246
- });
247
- };
248
- /**
249
- * 注文オファー検索
250
- */
251
- OrderService.prototype.searchAcceptedOffersByOrderNumber = function (params, conditions) {
252
- return __awaiter(this, void 0, void 0, function () {
253
- var _this = this;
254
- return __generator(this, function (_a) {
255
- return [2 /*return*/, this.fetch({
256
- uri: "/orders/" + params.orderNumber + "/acceptedOffers",
257
- method: 'GET',
258
- expectedStatusCodes: [http_status_1.OK],
259
- qs: conditions
260
- })
261
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
262
- return [2 /*return*/, response.json()];
263
- }); }); })];
264
- });
265
- });
266
- };
267
184
  /**
268
185
  * 確認番号で注文オファー検索
269
186
  */
@@ -283,26 +200,6 @@ var OrderService = /** @class */ (function (_super) {
283
200
  });
284
201
  });
285
202
  };
286
- /**
287
- * 変更可能な属性を更新する
288
- */
289
- OrderService.prototype.updateChangeableAttributes = function (params) {
290
- return __awaiter(this, void 0, void 0, function () {
291
- return __generator(this, function (_a) {
292
- switch (_a.label) {
293
- case 0: return [4 /*yield*/, this.fetch({
294
- uri: "/orders/" + params.orderNumber,
295
- method: 'PATCH',
296
- body: params,
297
- expectedStatusCodes: [http_status_1.NO_CONTENT]
298
- })];
299
- case 1:
300
- _a.sent();
301
- return [2 /*return*/];
302
- }
303
- });
304
- });
305
- };
306
203
  return OrderService;
307
204
  }(service_1.Service));
308
205
  exports.OrderService = OrderService;
@@ -1,70 +1,9 @@
1
1
  import * as factory from '../factory';
2
- import { ISearchResult, Service } from '../service';
3
- import { IUseAction } from './reservation/factory';
2
+ import { Service } from '../service';
4
3
  /**
5
4
  * 予約サービス
6
5
  */
7
6
  export declare class ReservationService extends Service {
8
- /**
9
- * 予約検索
10
- */
11
- search<T extends factory.reservationType>(params: Omit<factory.reservation.ISearchConditions<T>, 'project' | 'provider'>): Promise<{
12
- data: factory.reservation.IReservation<T>[];
13
- }>;
14
- /**
15
- * 予約を使用する
16
- * 注文コードから取得したトークンを利用して、予約に入場記録を追加します
17
- */
18
- useByToken(params: {
19
- object: {
20
- /**
21
- * 予約ID
22
- */
23
- id: string;
24
- };
25
- instrument: {
26
- /**
27
- * トークン
28
- * service.Token.getToken() にて取得したトークンを使用します
29
- */
30
- token: string;
31
- };
32
- location?: {
33
- /**
34
- * 入場ゲートコード
35
- */
36
- identifier?: string;
37
- };
38
- }): Promise<void>;
39
- /**
40
- * 予約に対する入場アクションを検索する
41
- */
42
- searchUseActions(params: {
43
- object: {
44
- /**
45
- * 予約ID
46
- */
47
- id?: string;
48
- };
49
- }): Promise<ISearchResult<IUseAction[]>>;
50
- /**
51
- * 予約取消
52
- * 再定義(2023-08-01~)
53
- */
54
- cancel(params: {
55
- agent: {
56
- /**
57
- * 取消人名称
58
- */
59
- name?: string;
60
- };
61
- object: {
62
- /**
63
- * 予約ID
64
- */
65
- id: string;
66
- };
67
- }): Promise<void>;
68
7
  /**
69
8
  * 注文に含まれる予約照会
70
9
  */
@@ -53,7 +53,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  exports.ReservationService = void 0;
55
55
  var http_status_1 = require("http-status");
56
- var factory = require("../factory");
57
56
  var service_1 = require("../service");
58
57
  /**
59
58
  * 予約サービス
@@ -63,104 +62,6 @@ var ReservationService = /** @class */ (function (_super) {
63
62
  function ReservationService() {
64
63
  return _super !== null && _super.apply(this, arguments) || this;
65
64
  }
66
- /**
67
- * 予約検索
68
- */
69
- ReservationService.prototype.search = function (params) {
70
- return __awaiter(this, void 0, void 0, function () {
71
- var _this = this;
72
- return __generator(this, function (_a) {
73
- return [2 /*return*/, this.fetch({
74
- uri: '/reservations',
75
- method: 'GET',
76
- qs: params,
77
- expectedStatusCodes: [http_status_1.OK]
78
- })
79
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
80
- var _a;
81
- return __generator(this, function (_b) {
82
- switch (_b.label) {
83
- case 0:
84
- _a = {};
85
- return [4 /*yield*/, response.json()];
86
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
87
- _a)];
88
- }
89
- });
90
- }); })];
91
- });
92
- });
93
- };
94
- /**
95
- * 予約を使用する
96
- * 注文コードから取得したトークンを利用して、予約に入場記録を追加します
97
- */
98
- ReservationService.prototype.useByToken = function (params) {
99
- return __awaiter(this, void 0, void 0, function () {
100
- return __generator(this, function (_a) {
101
- switch (_a.label) {
102
- case 0: return [4 /*yield*/, this.fetch({
103
- uri: '/reservations/use',
104
- method: 'POST',
105
- body: params,
106
- expectedStatusCodes: [http_status_1.NO_CONTENT]
107
- })];
108
- case 1:
109
- _a.sent();
110
- return [2 /*return*/];
111
- }
112
- });
113
- });
114
- };
115
- /**
116
- * 予約に対する入場アクションを検索する
117
- */
118
- ReservationService.prototype.searchUseActions = function (params) {
119
- return __awaiter(this, void 0, void 0, function () {
120
- var _this = this;
121
- return __generator(this, function (_a) {
122
- return [2 /*return*/, this.fetch({
123
- uri: "/reservations/" + String(params.object.id) + "/actions/use",
124
- method: 'GET',
125
- qs: params,
126
- expectedStatusCodes: [http_status_1.OK]
127
- })
128
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
129
- var _a;
130
- return __generator(this, function (_b) {
131
- switch (_b.label) {
132
- case 0:
133
- _a = {};
134
- return [4 /*yield*/, response.json()];
135
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
136
- _a)];
137
- }
138
- });
139
- }); })];
140
- });
141
- });
142
- };
143
- /**
144
- * 予約取消
145
- * 再定義(2023-08-01~)
146
- */
147
- ReservationService.prototype.cancel = function (params) {
148
- return __awaiter(this, void 0, void 0, function () {
149
- return __generator(this, function (_a) {
150
- switch (_a.label) {
151
- case 0: return [4 /*yield*/, this.fetch({
152
- uri: "/reservations/" + String(params.object.id) + "/" + factory.reservationStatusType.ReservationCancelled,
153
- method: 'PUT',
154
- body: params,
155
- expectedStatusCodes: [http_status_1.NO_CONTENT]
156
- })];
157
- case 1:
158
- _a.sent();
159
- return [2 /*return*/];
160
- }
161
- });
162
- });
163
- };
164
65
  /**
165
66
  * 注文に含まれる予約照会
166
67
  */