@cinerino/sdk 10.22.0-alpha.2 → 11.0.0-alpha.0
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.
- package/example/playground/public/lib/bundle.js +8153 -6839
- package/lib/abstract/chevre/event.d.ts +1 -1
- package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.d.ts +0 -3
- package/lib/abstract/chevreAdmin/assetTransaction/cancelReservation.js +0 -12
- package/lib/abstract/chevreAdmin/authorization.d.ts +0 -4
- package/lib/abstract/chevreAdmin/authorization.js +0 -19
- package/lib/abstract/chevreAdmin/creativeWork.d.ts +1 -16
- package/lib/abstract/chevreAdmin/creativeWork.js +0 -89
- package/lib/abstract/chevreAdmin/customer.d.ts +1 -20
- package/lib/abstract/chevreAdmin/customer.js +0 -58
- package/lib/abstract/chevreAdmin/event.d.ts +0 -35
- package/lib/abstract/chevreAdmin/event.js +0 -82
- package/lib/abstract/chevreAdmin/eventSeries.d.ts +0 -60
- package/lib/abstract/chevreAdmin/eventSeries.js +0 -112
- package/lib/abstract/chevreAdmin/me.d.ts +0 -8
- package/lib/abstract/chevreAdmin/me.js +0 -18
- package/lib/abstract/chevreAdmin/member.d.ts +0 -14
- package/lib/abstract/chevreAdmin/member.js +0 -66
- package/lib/abstract/chevreAdmin/offer.d.ts +0 -12
- package/lib/abstract/chevreAdmin/offer.js +0 -39
- package/lib/abstract/chevreAdmin/offerCatalog.d.ts +0 -70
- package/lib/abstract/chevreAdmin/offerCatalog.js +0 -160
- package/lib/abstract/chevreAdmin/offerCatalogItem.d.ts +0 -40
- package/lib/abstract/chevreAdmin/offerCatalogItem.js +0 -98
- package/lib/abstract/chevreAdmin/order.d.ts +1 -79
- package/lib/abstract/chevreAdmin/order.js +0 -125
- package/lib/abstract/chevreAdmin/product.d.ts +0 -36
- package/lib/abstract/chevreAdmin/product.js +0 -129
- package/lib/abstract/chevreAdmin/reservation.d.ts +1 -10
- package/lib/abstract/chevreAdmin/reservation.js +0 -20
- package/lib/abstract/chevreAdmin.d.ts +0 -504
- package/lib/abstract/chevreAdmin.js +60 -1177
- package/lib/abstract/chevreConsole/authorization.d.ts +72 -0
- package/lib/abstract/chevreConsole/authorization.js +86 -0
- package/lib/abstract/chevreConsole/creativeWork.d.ts +22 -0
- package/lib/abstract/chevreConsole/creativeWork.js +156 -0
- package/lib/abstract/chevreConsole/customer.d.ts +31 -0
- package/lib/abstract/chevreConsole/customer.js +125 -0
- package/lib/abstract/chevreConsole/event.d.ts +43 -0
- package/lib/abstract/chevreConsole/event.js +149 -0
- package/lib/abstract/chevreConsole/eventSeries.d.ts +67 -0
- package/lib/abstract/chevreConsole/eventSeries.js +180 -0
- package/lib/abstract/chevreConsole/me.d.ts +28 -0
- package/lib/abstract/chevreConsole/me.js +124 -0
- package/lib/abstract/chevreConsole/member.d.ts +22 -0
- package/lib/abstract/chevreConsole/member.js +134 -0
- package/lib/abstract/chevreConsole/offer.d.ts +34 -0
- package/lib/abstract/chevreConsole/offer.js +125 -0
- package/lib/abstract/chevreConsole/offerCatalog.d.ts +77 -0
- package/lib/abstract/chevreConsole/offerCatalog.js +227 -0
- package/lib/abstract/chevreConsole/offerCatalogItem.d.ts +63 -0
- package/lib/abstract/chevreConsole/offerCatalogItem.js +181 -0
- package/lib/abstract/chevreConsole/order.d.ts +86 -0
- package/lib/abstract/chevreConsole/order.js +192 -0
- package/lib/abstract/chevreConsole/product.d.ts +45 -0
- package/lib/abstract/chevreConsole/product.js +196 -0
- package/lib/abstract/chevreConsole/reservation.d.ts +15 -0
- package/lib/abstract/chevreConsole/reservation.js +87 -0
- package/lib/abstract/chevreConsole.d.ts +634 -0
- package/lib/abstract/chevreConsole.js +1445 -0
- package/lib/abstract/cinerino/service/event.d.ts +1 -1
- package/lib/abstract/cloud/admin/order.d.ts +1 -1
- package/lib/abstract/cloud/admin/reservation.d.ts +1 -1
- package/lib/abstract/index.d.ts +3 -1
- package/lib/abstract/index.js +24 -1
- package/lib/bundle.js +8191 -6877
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -1
- package/package.json +1 -1
- package/example/src/chevre/adminMovies.ts +0 -45
- package/example/src/chevre/adminProjectHasMerchantReturnPolicy.ts +0 -30
- package/example/src/chevre/adminSearchIssuers.ts +0 -32
- package/example/src/chevre/adminSearchSellers.ts +0 -32
- package/example/src/chevre/adminSearchTickets.ts +0 -32
- package/example/src/chevre/assetTransaction/processMoneyTransfer.ts +0 -74
- package/example/src/chevre/assetTransaction/processRegisterService.ts +0 -70
- package/example/src/chevre/assetTransaction/processReserve.ts +0 -193
- package/example/src/chevre/findPerson.ts +0 -33
- package/example/src/chevre/searchMessages.ts +0 -34
- package/example/src/chevre/searchTransactions.ts +0 -36
- /package/lib/abstract/{chevreAdmin → chevreConsole}/account.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/account.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTitle.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTitle.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTransaction.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountTransaction.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountingReport.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/accountingReport.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/action.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/action.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/additionalProperty.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/additionalProperty.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/advanceBookingRequirement.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/advanceBookingRequirement.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateOffer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateOffer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateReservation.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregateReservation.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregation.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/aggregation.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/moneyTransfer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/moneyTransfer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/pay.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/pay.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/registerService.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/registerService.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/reserve.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction/reserve.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/assetTransaction.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/categoryCode.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/categoryCode.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/comment.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/comment.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/customerType.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/customerType.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/emailMessage.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/emailMessage.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/event/factory.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/event/factory.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/eventOffer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/eventOffer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/hasMerchantReturnPolicy.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/hasMerchantReturnPolicy.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/iam.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/iam.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/identity.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/identity.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/identityProvider.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/identityProvider.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/issuer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/issuer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/memberProgram.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/memberProgram.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/merchantReturnPolicy.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/merchantReturnPolicy.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/message.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/message.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/offerItemCondition.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/offerItemCondition.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/order/factory.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/order/factory.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/ownershipInfo.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/ownershipInfo.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentService.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentService.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentServiceChannel.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/paymentServiceChannel.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/pendingReservation.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/pendingReservation.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/permission.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/permission.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/permit.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/permit.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/person/ownershipInfo.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/person/ownershipInfo.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/person.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/person.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/place/hasPOS.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/place/hasPOS.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/place.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/place.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/priceSpecification.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/priceSpecification.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/productModel.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/productModel.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/project.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/project.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/projectMakesOffer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/projectMakesOffer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/reservation/factory.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/reservation/factory.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/seller/factory.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/seller/factory.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/seller.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/seller.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/sellerReturnPolicy.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/sellerReturnPolicy.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/task.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/task.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/ticket.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/ticket.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/token.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/token.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/moneyTransfer.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/moneyTransfer.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/placeOrder.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/placeOrder.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/returnOrder.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction/returnOrder.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transaction.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transactionNumber.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/transactionNumber.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/trip.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/trip.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/userPool.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/userPool.js +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/webSite.d.ts +0 -0
- /package/lib/abstract/{chevreAdmin → chevreConsole}/webSite.js +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { IAcceptedOffer, IOrderAsSearchResult, IOrderAsSearchWithUnwindAcceptedOffersResult, IReturner, ISearchOrdersOptions, IUpdateChangeableAttributesParams } from '../chevreConsole/order/factory';
|
|
1
2
|
import * as factory from '../factory';
|
|
2
|
-
import { IAcceptedOffer, IExternalOrder, IOrderAsSearchResult, IOrderAsSearchWithUnwindAcceptedOffersResult, IReturner, ISearchOrdersOptions, IUpdateChangeableAttributesParams } from './order/factory';
|
|
3
3
|
import { ISearchResult, Service } from '../service';
|
|
4
4
|
declare type IKeyOfProjection = keyof factory.order.IOrder | '_id';
|
|
5
5
|
/**
|
|
@@ -13,74 +13,6 @@ declare type IProjection = {
|
|
|
13
13
|
* 注文サービス
|
|
14
14
|
*/
|
|
15
15
|
export declare class OrderService extends Service {
|
|
16
|
-
/**
|
|
17
|
-
* 取引なしに作成する
|
|
18
|
-
*/
|
|
19
|
-
createWithoutTransaction(params: IExternalOrder): Promise<IExternalOrder>;
|
|
20
|
-
/**
|
|
21
|
-
* 決済取引確定
|
|
22
|
-
*/
|
|
23
|
-
confirmPayTransaction(params: {
|
|
24
|
-
object: {
|
|
25
|
-
transactionNumber: string;
|
|
26
|
-
object: {
|
|
27
|
-
paymentMethod: {
|
|
28
|
-
identifier: string;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
purpose: {
|
|
33
|
-
/**
|
|
34
|
-
* 確認番号
|
|
35
|
-
*/
|
|
36
|
-
confirmationNumber: string;
|
|
37
|
-
/**
|
|
38
|
-
* 注文番号
|
|
39
|
-
*/
|
|
40
|
-
orderNumber: string;
|
|
41
|
-
};
|
|
42
|
-
}): Promise<void>;
|
|
43
|
-
/**
|
|
44
|
-
* 決済取引中止
|
|
45
|
-
*/
|
|
46
|
-
voidPayTransaction(params: {
|
|
47
|
-
object: {
|
|
48
|
-
transactionNumber: string;
|
|
49
|
-
};
|
|
50
|
-
purpose: {
|
|
51
|
-
/**
|
|
52
|
-
* 確認番号
|
|
53
|
-
*/
|
|
54
|
-
confirmationNumber: string;
|
|
55
|
-
/**
|
|
56
|
-
* 注文番号
|
|
57
|
-
*/
|
|
58
|
-
orderNumber: string;
|
|
59
|
-
};
|
|
60
|
-
}): Promise<void>;
|
|
61
|
-
/**
|
|
62
|
-
* 注文を処理する
|
|
63
|
-
*/
|
|
64
|
-
processOrder(params: {
|
|
65
|
-
object: {
|
|
66
|
-
/**
|
|
67
|
-
* 確認番号
|
|
68
|
-
*/
|
|
69
|
-
confirmationNumber: string;
|
|
70
|
-
/**
|
|
71
|
-
* 注文番号
|
|
72
|
-
*/
|
|
73
|
-
orderNumber: string;
|
|
74
|
-
};
|
|
75
|
-
}): Promise<void>;
|
|
76
|
-
/**
|
|
77
|
-
* 返品
|
|
78
|
-
*/
|
|
79
|
-
returnOrder(params: {
|
|
80
|
-
orderNumber: string;
|
|
81
|
-
dateReturned: Date;
|
|
82
|
-
returner: factory.order.IReturner;
|
|
83
|
-
}): Promise<void>;
|
|
84
16
|
/**
|
|
85
17
|
* 変更可能な属性を更新する
|
|
86
18
|
*/
|
|
@@ -135,15 +67,5 @@ export declare class OrderService extends Service {
|
|
|
135
67
|
limit?: number;
|
|
136
68
|
page?: number;
|
|
137
69
|
}): Promise<IAcceptedOffer[]>;
|
|
138
|
-
/**
|
|
139
|
-
* 注文に対するアクションを検索する
|
|
140
|
-
*/
|
|
141
|
-
searchActionsByOrderNumber(params: {
|
|
142
|
-
/**
|
|
143
|
-
* 注文番号
|
|
144
|
-
*/
|
|
145
|
-
orderNumber: string;
|
|
146
|
-
sort: factory.action.ISortOrder;
|
|
147
|
-
}): Promise<factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>[]>;
|
|
148
70
|
}
|
|
149
71
|
export {};
|
|
@@ -64,7 +64,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
64
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
65
|
exports.OrderService = void 0;
|
|
66
66
|
var http_status_1 = require("http-status");
|
|
67
|
-
var factory = require("../factory");
|
|
68
67
|
var service_1 = require("../service");
|
|
69
68
|
/**
|
|
70
69
|
* 注文サービス
|
|
@@ -74,111 +73,6 @@ var OrderService = /** @class */ (function (_super) {
|
|
|
74
73
|
function OrderService() {
|
|
75
74
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
76
75
|
}
|
|
77
|
-
/**
|
|
78
|
-
* 取引なしに作成する
|
|
79
|
-
*/
|
|
80
|
-
OrderService.prototype.createWithoutTransaction = function (params) {
|
|
81
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
82
|
-
var _this = this;
|
|
83
|
-
return __generator(this, function (_a) {
|
|
84
|
-
return [2 /*return*/, this.fetch({
|
|
85
|
-
uri: "/orders",
|
|
86
|
-
method: 'POST',
|
|
87
|
-
body: params,
|
|
88
|
-
expectedStatusCodes: [http_status_1.CREATED]
|
|
89
|
-
})
|
|
90
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
91
|
-
return [2 /*return*/, response.json()];
|
|
92
|
-
}); }); })];
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* 決済取引確定
|
|
98
|
-
*/
|
|
99
|
-
OrderService.prototype.confirmPayTransaction = function (params) {
|
|
100
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
101
|
-
return __generator(this, function (_a) {
|
|
102
|
-
switch (_a.label) {
|
|
103
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
104
|
-
uri: "/orders/" + params.purpose.orderNumber + "/confirmPayTransaction",
|
|
105
|
-
method: 'PUT',
|
|
106
|
-
body: params,
|
|
107
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
108
|
-
})];
|
|
109
|
-
case 1:
|
|
110
|
-
_a.sent();
|
|
111
|
-
return [2 /*return*/];
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
};
|
|
116
|
-
/**
|
|
117
|
-
* 決済取引中止
|
|
118
|
-
*/
|
|
119
|
-
OrderService.prototype.voidPayTransaction = function (params) {
|
|
120
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
121
|
-
return __generator(this, function (_a) {
|
|
122
|
-
switch (_a.label) {
|
|
123
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
124
|
-
uri: "/orders/" + params.purpose.orderNumber + "/voidPayTransaction",
|
|
125
|
-
method: 'PUT',
|
|
126
|
-
body: params,
|
|
127
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
128
|
-
})];
|
|
129
|
-
case 1:
|
|
130
|
-
_a.sent();
|
|
131
|
-
return [2 /*return*/];
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* 注文を処理する
|
|
138
|
-
*/
|
|
139
|
-
OrderService.prototype.processOrder = function (params) {
|
|
140
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
141
|
-
var _a, confirmationNumber, orderNumber;
|
|
142
|
-
return __generator(this, function (_b) {
|
|
143
|
-
switch (_b.label) {
|
|
144
|
-
case 0:
|
|
145
|
-
_a = params.object, confirmationNumber = _a.confirmationNumber, orderNumber = _a.orderNumber;
|
|
146
|
-
return [4 /*yield*/, this.fetch({
|
|
147
|
-
uri: "/orders/" + orderNumber + "/processOrder",
|
|
148
|
-
method: 'POST',
|
|
149
|
-
body: { confirmationNumber: confirmationNumber },
|
|
150
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
151
|
-
})];
|
|
152
|
-
case 1:
|
|
153
|
-
_b.sent();
|
|
154
|
-
return [2 /*return*/];
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
};
|
|
159
|
-
/**
|
|
160
|
-
* 返品
|
|
161
|
-
*/
|
|
162
|
-
OrderService.prototype.returnOrder = function (params) {
|
|
163
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
164
|
-
var dateReturned, orderNumber, returner;
|
|
165
|
-
return __generator(this, function (_a) {
|
|
166
|
-
switch (_a.label) {
|
|
167
|
-
case 0:
|
|
168
|
-
dateReturned = params.dateReturned, orderNumber = params.orderNumber, returner = params.returner;
|
|
169
|
-
return [4 /*yield*/, this.fetch({
|
|
170
|
-
uri: "/orders/" + orderNumber + "/" + factory.orderStatus.OrderReturned,
|
|
171
|
-
method: 'PUT',
|
|
172
|
-
body: { dateReturned: dateReturned, returner: returner },
|
|
173
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
174
|
-
})];
|
|
175
|
-
case 1:
|
|
176
|
-
_a.sent();
|
|
177
|
-
return [2 /*return*/];
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
});
|
|
181
|
-
};
|
|
182
76
|
/**
|
|
183
77
|
* 変更可能な属性を更新する
|
|
184
78
|
*/
|
|
@@ -286,25 +180,6 @@ var OrderService = /** @class */ (function (_super) {
|
|
|
286
180
|
});
|
|
287
181
|
});
|
|
288
182
|
};
|
|
289
|
-
/**
|
|
290
|
-
* 注文に対するアクションを検索する
|
|
291
|
-
*/
|
|
292
|
-
OrderService.prototype.searchActionsByOrderNumber = function (params) {
|
|
293
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
294
|
-
var _this = this;
|
|
295
|
-
return __generator(this, function (_a) {
|
|
296
|
-
return [2 /*return*/, this.fetch({
|
|
297
|
-
uri: "/orders/" + params.orderNumber + "/actions",
|
|
298
|
-
method: 'GET',
|
|
299
|
-
qs: params,
|
|
300
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
301
|
-
})
|
|
302
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
303
|
-
return [2 /*return*/, response.json()];
|
|
304
|
-
}); }); })];
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
};
|
|
308
183
|
return OrderService;
|
|
309
184
|
}(service_1.Service));
|
|
310
185
|
exports.OrderService = OrderService;
|
|
@@ -2,48 +2,12 @@ import * as factory from '../factory';
|
|
|
2
2
|
import { Service } from '../service';
|
|
3
3
|
export declare type IProductWithoutCredentials = Omit<factory.product.IProduct, 'availableChannel'>;
|
|
4
4
|
export declare type ISearchProductsResult = IProductWithoutCredentials;
|
|
5
|
-
declare type IKeyOfProjection = keyof factory.product.IProduct | '_id';
|
|
6
|
-
declare type IProjection = {
|
|
7
|
-
[key in IKeyOfProjection]?: 1;
|
|
8
|
-
};
|
|
9
5
|
/**
|
|
10
6
|
* プロダクトサービス
|
|
11
7
|
*/
|
|
12
8
|
export declare class ProductService extends Service {
|
|
13
|
-
/**
|
|
14
|
-
* プロダクト作成
|
|
15
|
-
*/
|
|
16
|
-
createProduct(params: factory.product.ICreateParams): Promise<{
|
|
17
|
-
id: string;
|
|
18
|
-
}>;
|
|
19
|
-
/**
|
|
20
|
-
* プロダクトタイプでなければ作成
|
|
21
|
-
*/
|
|
22
|
-
createIfNotExist(params: factory.product.ICreateParams): Promise<{
|
|
23
|
-
id: string;
|
|
24
|
-
}>;
|
|
25
9
|
/**
|
|
26
10
|
* プロダクトコードによる冪等置換
|
|
27
11
|
*/
|
|
28
12
|
upsertByProductId(params: factory.product.ICreateParams[]): Promise<void>;
|
|
29
|
-
/**
|
|
30
|
-
* プロダクト検索
|
|
31
|
-
*/
|
|
32
|
-
searchProducts(params: Omit<factory.product.ISearchConditions, 'project'> & {
|
|
33
|
-
$projection?: IProjection;
|
|
34
|
-
}): Promise<{
|
|
35
|
-
data: IProductWithoutCredentials[];
|
|
36
|
-
}>;
|
|
37
|
-
findProductById(params: {
|
|
38
|
-
id: string;
|
|
39
|
-
} & {
|
|
40
|
-
$projection?: IProjection;
|
|
41
|
-
}): Promise<factory.product.IProduct>;
|
|
42
|
-
updateProduct(params: factory.product.ICreateParams & {
|
|
43
|
-
id: string;
|
|
44
|
-
}): Promise<void>;
|
|
45
|
-
deleteProductById(params: {
|
|
46
|
-
id: string;
|
|
47
|
-
}): Promise<void>;
|
|
48
13
|
}
|
|
49
|
-
export {};
|
|
@@ -50,17 +50,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50
50
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
54
|
-
var t = {};
|
|
55
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
56
|
-
t[p] = s[p];
|
|
57
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
58
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
59
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
60
|
-
t[p[i]] = s[p[i]];
|
|
61
|
-
}
|
|
62
|
-
return t;
|
|
63
|
-
};
|
|
64
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
65
54
|
exports.ProductService = void 0;
|
|
66
55
|
var http_status_1 = require("http-status");
|
|
@@ -73,45 +62,6 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
73
62
|
function ProductService() {
|
|
74
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
75
64
|
}
|
|
76
|
-
/**
|
|
77
|
-
* プロダクト作成
|
|
78
|
-
*/
|
|
79
|
-
ProductService.prototype.createProduct = function (params) {
|
|
80
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
-
var _this = this;
|
|
82
|
-
return __generator(this, function (_a) {
|
|
83
|
-
return [2 /*return*/, this.fetch({
|
|
84
|
-
uri: '/products',
|
|
85
|
-
method: 'POST',
|
|
86
|
-
body: params,
|
|
87
|
-
expectedStatusCodes: [http_status_1.CREATED]
|
|
88
|
-
})
|
|
89
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
90
|
-
return [2 /*return*/, response.json()];
|
|
91
|
-
}); }); })];
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* プロダクトタイプでなければ作成
|
|
97
|
-
*/
|
|
98
|
-
ProductService.prototype.createIfNotExist = function (params) {
|
|
99
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
-
var _this = this;
|
|
101
|
-
return __generator(this, function (_a) {
|
|
102
|
-
return [2 /*return*/, this.fetch({
|
|
103
|
-
uri: '/products',
|
|
104
|
-
method: 'POST',
|
|
105
|
-
body: params,
|
|
106
|
-
qs: { createIfNotExist: true },
|
|
107
|
-
expectedStatusCodes: [http_status_1.CREATED]
|
|
108
|
-
})
|
|
109
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
110
|
-
return [2 /*return*/, response.json()];
|
|
111
|
-
}); }); })];
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
65
|
/**
|
|
116
66
|
* プロダクトコードによる冪等置換
|
|
117
67
|
*/
|
|
@@ -132,85 +82,6 @@ var ProductService = /** @class */ (function (_super) {
|
|
|
132
82
|
});
|
|
133
83
|
});
|
|
134
84
|
};
|
|
135
|
-
/**
|
|
136
|
-
* プロダクト検索
|
|
137
|
-
*/
|
|
138
|
-
ProductService.prototype.searchProducts = function (params) {
|
|
139
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
140
|
-
var _this = this;
|
|
141
|
-
return __generator(this, function (_a) {
|
|
142
|
-
return [2 /*return*/, this.fetch({
|
|
143
|
-
uri: '/products',
|
|
144
|
-
method: 'GET',
|
|
145
|
-
qs: params,
|
|
146
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
147
|
-
})
|
|
148
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
149
|
-
var _a;
|
|
150
|
-
return __generator(this, function (_b) {
|
|
151
|
-
switch (_b.label) {
|
|
152
|
-
case 0:
|
|
153
|
-
_a = {};
|
|
154
|
-
return [4 /*yield*/, response.json()];
|
|
155
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
156
|
-
_a)];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
}); })];
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
};
|
|
163
|
-
ProductService.prototype.findProductById = function (params) {
|
|
164
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
165
|
-
var id, query;
|
|
166
|
-
var _this = this;
|
|
167
|
-
return __generator(this, function (_a) {
|
|
168
|
-
id = params.id, query = __rest(params, ["id"]);
|
|
169
|
-
return [2 /*return*/, this.fetch({
|
|
170
|
-
uri: "/products/" + encodeURIComponent(String(id)),
|
|
171
|
-
method: 'GET',
|
|
172
|
-
expectedStatusCodes: [http_status_1.OK],
|
|
173
|
-
qs: query
|
|
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
|
-
};
|
|
181
|
-
ProductService.prototype.updateProduct = function (params) {
|
|
182
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
183
|
-
return __generator(this, function (_a) {
|
|
184
|
-
switch (_a.label) {
|
|
185
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
186
|
-
uri: "/products/" + encodeURIComponent(String(params.id)),
|
|
187
|
-
method: 'PUT',
|
|
188
|
-
body: params,
|
|
189
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
190
|
-
})];
|
|
191
|
-
case 1:
|
|
192
|
-
_a.sent();
|
|
193
|
-
return [2 /*return*/];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
};
|
|
198
|
-
ProductService.prototype.deleteProductById = function (params) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
-
return __generator(this, function (_a) {
|
|
201
|
-
switch (_a.label) {
|
|
202
|
-
case 0: return [4 /*yield*/, this.fetch({
|
|
203
|
-
uri: "/products/" + encodeURIComponent(String(params.id)),
|
|
204
|
-
method: 'DELETE',
|
|
205
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
206
|
-
})];
|
|
207
|
-
case 1:
|
|
208
|
-
_a.sent();
|
|
209
|
-
return [2 /*return*/];
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
});
|
|
213
|
-
};
|
|
214
85
|
return ProductService;
|
|
215
86
|
}(service_1.Service));
|
|
216
87
|
exports.ProductService = ProductService;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as factory from '../factory';
|
|
2
|
+
import { ITicket, IUseAction } from '../chevreConsole/reservation/factory';
|
|
2
3
|
import { Service } from '../service';
|
|
3
|
-
import { ITicket, IUseAction } from './reservation/factory';
|
|
4
4
|
export interface IUseActionResult {
|
|
5
5
|
id: string;
|
|
6
6
|
}
|
|
@@ -29,15 +29,6 @@ export declare class ReservationService extends Service {
|
|
|
29
29
|
*/
|
|
30
30
|
page: number;
|
|
31
31
|
}): Promise<factory.reservation.IReservation<T>[]>;
|
|
32
|
-
/**
|
|
33
|
-
* 予約部分更新
|
|
34
|
-
*/
|
|
35
|
-
update(params: {
|
|
36
|
-
id: string;
|
|
37
|
-
update: {
|
|
38
|
-
additionalTicketText?: string;
|
|
39
|
-
};
|
|
40
|
-
}): Promise<void>;
|
|
41
32
|
/**
|
|
42
33
|
* 予約を使用する(入場する)
|
|
43
34
|
*/
|
|
@@ -92,26 +92,6 @@ var ReservationService = /** @class */ (function (_super) {
|
|
|
92
92
|
});
|
|
93
93
|
});
|
|
94
94
|
};
|
|
95
|
-
/**
|
|
96
|
-
* 予約部分更新
|
|
97
|
-
*/
|
|
98
|
-
ReservationService.prototype.update = 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/" + encodeURIComponent(String(params.id)),
|
|
104
|
-
method: 'PATCH',
|
|
105
|
-
body: params.update,
|
|
106
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
107
|
-
})];
|
|
108
|
-
case 1:
|
|
109
|
-
_a.sent();
|
|
110
|
-
return [2 /*return*/];
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
95
|
/**
|
|
116
96
|
* 予約を使用する(入場する)
|
|
117
97
|
*/
|