@cinerino/sdk 3.155.0-alpha.1 → 3.155.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.
- package/lib/abstract/chevre/account.d.ts +0 -3
- package/lib/abstract/chevre/account.js +0 -15
- package/lib/abstract/chevre/assetTransaction/cancelReservation.js +22 -8
- package/lib/abstract/chevre/assetTransaction/moneyTransfer.js +13 -10
- package/lib/abstract/chevre/assetTransaction/pay.js +24 -10
- package/lib/abstract/chevre/assetTransaction/refund.js +24 -10
- package/lib/abstract/chevre/assetTransaction/registerService.js +24 -10
- package/lib/abstract/chevre/assetTransaction/reserve.js +24 -10
- package/lib/abstract/chevre/award.js +20 -5
- package/lib/abstract/chevre/customer.js +1 -1
- package/lib/abstract/chevre/event.js +2 -2
- package/lib/abstract/chevre/offer.js +3 -3
- package/lib/abstract/chevre/offerCatalog.js +1 -1
- package/lib/abstract/chevre/order.js +36 -15
- package/lib/abstract/chevre/payment.js +2 -2
- package/lib/abstract/chevre/person/ownershipInfo.js +18 -6
- package/lib/abstract/chevre/product.js +2 -2
- package/lib/abstract/chevre/project.js +10 -7
- package/lib/abstract/chevre/seller.js +1 -1
- package/lib/abstract/chevre/transaction/moneyTransfer.js +1 -1
- package/lib/abstract/chevre/transaction/placeOrder.js +6 -4
- package/lib/abstract/chevre/transaction/returnOrder.js +20 -6
- package/lib/bundle.js +254 -129
- package/package.json +1 -1
|
@@ -122,21 +122,6 @@ var AccountService = /** @class */ (function (_super) {
|
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
|
-
/**
|
|
126
|
-
* 口座を解約する
|
|
127
|
-
*/
|
|
128
|
-
// public async close(params: {
|
|
129
|
-
// /**
|
|
130
|
-
// * 口座番号
|
|
131
|
-
// */
|
|
132
|
-
// accountNumber: string;
|
|
133
|
-
// }): Promise<void> {
|
|
134
|
-
// await this.fetch({
|
|
135
|
-
// uri: `/accounts/${params.accountNumber}/close`,
|
|
136
|
-
// method: 'PUT',
|
|
137
|
-
// expectedStatusCodes: [NO_CONTENT]
|
|
138
|
-
// });
|
|
139
|
-
// }
|
|
140
125
|
/**
|
|
141
126
|
* 口座を検索する
|
|
142
127
|
*/
|
|
@@ -50,6 +50,17 @@ 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
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.CancelReservationAssetTransactionService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -106,14 +117,17 @@ var CancelReservationAssetTransactionService = /** @class */ (function (_super)
|
|
|
106
117
|
*/
|
|
107
118
|
CancelReservationAssetTransactionService.prototype.confirm = function (params) {
|
|
108
119
|
return __awaiter(this, void 0, void 0, function () {
|
|
120
|
+
var id, body;
|
|
109
121
|
return __generator(this, function (_a) {
|
|
110
122
|
switch (_a.label) {
|
|
111
|
-
case 0:
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
123
|
+
case 0:
|
|
124
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
125
|
+
return [4 /*yield*/, this.fetch({
|
|
126
|
+
uri: "/assetTransactions/cancelReservation/" + encodeURIComponent(String(id)) + "/confirm",
|
|
127
|
+
method: 'PUT',
|
|
128
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
129
|
+
body: body
|
|
130
|
+
})];
|
|
117
131
|
case 1:
|
|
118
132
|
_a.sent();
|
|
119
133
|
return [2 /*return*/];
|
|
@@ -131,8 +145,8 @@ var CancelReservationAssetTransactionService = /** @class */ (function (_super)
|
|
|
131
145
|
case 0: return [4 /*yield*/, this.fetch({
|
|
132
146
|
uri: "/assetTransactions/cancelReservation/" + encodeURIComponent(String(params.id)) + "/cancel",
|
|
133
147
|
method: 'PUT',
|
|
134
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
135
|
-
body: params
|
|
148
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
149
|
+
// body: params
|
|
136
150
|
})];
|
|
137
151
|
case 1:
|
|
138
152
|
_a.sent();
|
|
@@ -87,16 +87,19 @@ var MoneyTransferAssetTransactionService = /** @class */ (function (_super) {
|
|
|
87
87
|
*/
|
|
88
88
|
MoneyTransferAssetTransactionService.prototype.confirm = function (params) {
|
|
89
89
|
return __awaiter(this, void 0, void 0, function () {
|
|
90
|
+
var transactionNumber, id;
|
|
90
91
|
return __generator(this, function (_a) {
|
|
91
92
|
switch (_a.label) {
|
|
92
|
-
case 0:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
93
|
+
case 0:
|
|
94
|
+
transactionNumber = params.transactionNumber, id = params.id;
|
|
95
|
+
return [4 /*yield*/, this.fetch({
|
|
96
|
+
uri: (typeof transactionNumber === 'string')
|
|
97
|
+
? "/assetTransactions/" + factory.assetTransactionType.MoneyTransfer + "/" + transactionNumber + "/confirm?transactionNumber=1"
|
|
98
|
+
: "/assetTransactions/" + factory.assetTransactionType.MoneyTransfer + "/" + encodeURIComponent(String(id)) + "/confirm",
|
|
99
|
+
method: 'PUT',
|
|
100
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
101
|
+
// body: params
|
|
102
|
+
})];
|
|
100
103
|
case 1:
|
|
101
104
|
_a.sent();
|
|
102
105
|
return [2 /*return*/];
|
|
@@ -116,8 +119,8 @@ var MoneyTransferAssetTransactionService = /** @class */ (function (_super) {
|
|
|
116
119
|
? "/assetTransactions/" + factory.assetTransactionType.MoneyTransfer + "/" + params.transactionNumber + "/cancel?transactionNumber=1"
|
|
117
120
|
: "/assetTransactions/" + factory.assetTransactionType.MoneyTransfer + "/" + encodeURIComponent(String(params.id)) + "/cancel",
|
|
118
121
|
method: 'PUT',
|
|
119
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
120
|
-
body: params
|
|
122
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
123
|
+
// body: params
|
|
121
124
|
})];
|
|
122
125
|
case 1:
|
|
123
126
|
_a.sent();
|
|
@@ -50,6 +50,17 @@ 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
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.PayAssetTransactionService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -147,16 +158,19 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
|
|
|
147
158
|
*/
|
|
148
159
|
PayAssetTransactionService.prototype.confirm = function (params) {
|
|
149
160
|
return __awaiter(this, void 0, void 0, function () {
|
|
161
|
+
var transactionNumber, id, body;
|
|
150
162
|
return __generator(this, function (_a) {
|
|
151
163
|
switch (_a.label) {
|
|
152
|
-
case 0:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
:
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
164
|
+
case 0:
|
|
165
|
+
transactionNumber = params.transactionNumber, id = params.id, body = __rest(params, ["transactionNumber", "id"]);
|
|
166
|
+
return [4 /*yield*/, this.fetch({
|
|
167
|
+
uri: (typeof transactionNumber === 'string')
|
|
168
|
+
? "/assetTransactions/" + factory.assetTransactionType.Pay + "/" + transactionNumber + "/confirm?transactionNumber=1"
|
|
169
|
+
: "/assetTransactions/" + factory.assetTransactionType.Pay + "/" + encodeURIComponent(String(id)) + "/confirm",
|
|
170
|
+
method: 'PUT',
|
|
171
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
172
|
+
body: body
|
|
173
|
+
})];
|
|
160
174
|
case 1:
|
|
161
175
|
_a.sent();
|
|
162
176
|
return [2 /*return*/];
|
|
@@ -176,8 +190,8 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
|
|
|
176
190
|
? "/assetTransactions/" + factory.assetTransactionType.Pay + "/" + params.transactionNumber + "/cancel?transactionNumber=1"
|
|
177
191
|
: "/assetTransactions/" + factory.assetTransactionType.Pay + "/" + encodeURIComponent(String(params.id)) + "/cancel",
|
|
178
192
|
method: 'PUT',
|
|
179
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
180
|
-
body: params
|
|
193
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
194
|
+
// body: params
|
|
181
195
|
})];
|
|
182
196
|
case 1:
|
|
183
197
|
_a.sent();
|
|
@@ -50,6 +50,17 @@ 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
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.RefundAssetTransactionService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -87,16 +98,19 @@ var RefundAssetTransactionService = /** @class */ (function (_super) {
|
|
|
87
98
|
*/
|
|
88
99
|
RefundAssetTransactionService.prototype.confirm = function (params) {
|
|
89
100
|
return __awaiter(this, void 0, void 0, function () {
|
|
101
|
+
var transactionNumber, id, body;
|
|
90
102
|
return __generator(this, function (_a) {
|
|
91
103
|
switch (_a.label) {
|
|
92
|
-
case 0:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
104
|
+
case 0:
|
|
105
|
+
transactionNumber = params.transactionNumber, id = params.id, body = __rest(params, ["transactionNumber", "id"]);
|
|
106
|
+
return [4 /*yield*/, this.fetch({
|
|
107
|
+
uri: (typeof params.transactionNumber === 'string')
|
|
108
|
+
? "/assetTransactions/" + factory.assetTransactionType.Refund + "/" + transactionNumber + "/confirm?transactionNumber=1"
|
|
109
|
+
: "/assetTransactions/" + factory.assetTransactionType.Refund + "/" + encodeURIComponent(String(id)) + "/confirm",
|
|
110
|
+
method: 'PUT',
|
|
111
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
112
|
+
body: body
|
|
113
|
+
})];
|
|
100
114
|
case 1:
|
|
101
115
|
_a.sent();
|
|
102
116
|
return [2 /*return*/];
|
|
@@ -116,8 +130,8 @@ var RefundAssetTransactionService = /** @class */ (function (_super) {
|
|
|
116
130
|
? "/assetTransactions/" + factory.assetTransactionType.Refund + "/" + params.transactionNumber + "/cancel?transactionNumber=1"
|
|
117
131
|
: "/assetTransactions/" + factory.assetTransactionType.Refund + "/" + encodeURIComponent(String(params.id)) + "/cancel",
|
|
118
132
|
method: 'PUT',
|
|
119
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
120
|
-
body: params
|
|
133
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
134
|
+
// body: params
|
|
121
135
|
})];
|
|
122
136
|
case 1:
|
|
123
137
|
_a.sent();
|
|
@@ -50,6 +50,17 @@ 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
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.RegisterServiceAssetTransactionService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -87,16 +98,19 @@ var RegisterServiceAssetTransactionService = /** @class */ (function (_super) {
|
|
|
87
98
|
*/
|
|
88
99
|
RegisterServiceAssetTransactionService.prototype.confirm = function (params) {
|
|
89
100
|
return __awaiter(this, void 0, void 0, function () {
|
|
101
|
+
var transactionNumber, id, body;
|
|
90
102
|
return __generator(this, function (_a) {
|
|
91
103
|
switch (_a.label) {
|
|
92
|
-
case 0:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
:
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
104
|
+
case 0:
|
|
105
|
+
transactionNumber = params.transactionNumber, id = params.id, body = __rest(params, ["transactionNumber", "id"]);
|
|
106
|
+
return [4 /*yield*/, this.fetch({
|
|
107
|
+
uri: (typeof transactionNumber === 'string')
|
|
108
|
+
? "/assetTransactions/" + factory.assetTransactionType.RegisterService + "/" + transactionNumber + "/confirm?transactionNumber=1"
|
|
109
|
+
: "/assetTransactions/" + factory.assetTransactionType.RegisterService + "/" + encodeURIComponent(String(id)) + "/confirm",
|
|
110
|
+
method: 'PUT',
|
|
111
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
112
|
+
body: body
|
|
113
|
+
})];
|
|
100
114
|
case 1:
|
|
101
115
|
_a.sent();
|
|
102
116
|
return [2 /*return*/];
|
|
@@ -116,8 +130,8 @@ var RegisterServiceAssetTransactionService = /** @class */ (function (_super) {
|
|
|
116
130
|
? "/assetTransactions/" + factory.assetTransactionType.RegisterService + "/" + params.transactionNumber + "/cancel?transactionNumber=1"
|
|
117
131
|
: "/assetTransactions/" + factory.assetTransactionType.RegisterService + "/" + encodeURIComponent(String(params.id)) + "/cancel",
|
|
118
132
|
method: 'PUT',
|
|
119
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
120
|
-
body: params
|
|
133
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
134
|
+
// body: params
|
|
121
135
|
})];
|
|
122
136
|
case 1:
|
|
123
137
|
_a.sent();
|
|
@@ -50,6 +50,17 @@ 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
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.ReserveAssetTransactionService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -104,16 +115,19 @@ var ReserveAssetTransactionService = /** @class */ (function (_super) {
|
|
|
104
115
|
*/
|
|
105
116
|
ReserveAssetTransactionService.prototype.confirm = function (params) {
|
|
106
117
|
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
+
var transactionNumber, id, body;
|
|
107
119
|
return __generator(this, function (_a) {
|
|
108
120
|
switch (_a.label) {
|
|
109
|
-
case 0:
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
121
|
+
case 0:
|
|
122
|
+
transactionNumber = params.transactionNumber, id = params.id, body = __rest(params, ["transactionNumber", "id"]);
|
|
123
|
+
return [4 /*yield*/, this.fetch({
|
|
124
|
+
uri: (typeof transactionNumber === 'string')
|
|
125
|
+
? "/assetTransactions/reserve/" + transactionNumber + "/confirm?transactionNumber=1"
|
|
126
|
+
: "/assetTransactions/reserve/" + encodeURIComponent(String(id)) + "/confirm",
|
|
127
|
+
method: 'PUT',
|
|
128
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
129
|
+
body: body
|
|
130
|
+
})];
|
|
117
131
|
case 1:
|
|
118
132
|
_a.sent();
|
|
119
133
|
return [2 /*return*/];
|
|
@@ -133,8 +147,8 @@ var ReserveAssetTransactionService = /** @class */ (function (_super) {
|
|
|
133
147
|
? "/assetTransactions/reserve/" + params.transactionNumber + "/cancel?transactionNumber=1"
|
|
134
148
|
: "/assetTransactions/reserve/" + encodeURIComponent(String(params.id)) + "/cancel",
|
|
135
149
|
method: 'PUT',
|
|
136
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
137
|
-
body: params
|
|
150
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
151
|
+
// body: params
|
|
138
152
|
})];
|
|
139
153
|
case 1:
|
|
140
154
|
_a.sent();
|
|
@@ -50,6 +50,17 @@ 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
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.AwardService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -86,13 +97,17 @@ var AwardService = /** @class */ (function (_super) {
|
|
|
86
97
|
*/
|
|
87
98
|
AwardService.prototype.voidPointAward = function (params) {
|
|
88
99
|
return __awaiter(this, void 0, void 0, function () {
|
|
100
|
+
var id, body;
|
|
89
101
|
return __generator(this, function (_a) {
|
|
90
102
|
switch (_a.label) {
|
|
91
|
-
case 0:
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
103
|
+
case 0:
|
|
104
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
105
|
+
return [4 /*yield*/, this.fetch({
|
|
106
|
+
uri: "/awards/authorize/" + id + "/void",
|
|
107
|
+
method: 'PUT',
|
|
108
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
109
|
+
body: body
|
|
110
|
+
})];
|
|
96
111
|
case 1:
|
|
97
112
|
_a.sent();
|
|
98
113
|
return [2 /*return*/];
|
|
@@ -102,7 +102,7 @@ var CustomerService = /** @class */ (function (_super) {
|
|
|
102
102
|
return __generator(this, function (_a) {
|
|
103
103
|
id = params.id, query = __rest(params, ["id"]);
|
|
104
104
|
return [2 /*return*/, this.fetch({
|
|
105
|
-
uri: "/customers/" +
|
|
105
|
+
uri: "/customers/" + id,
|
|
106
106
|
method: 'GET',
|
|
107
107
|
qs: query,
|
|
108
108
|
expectedStatusCodes: [http_status_1.OK]
|
|
@@ -266,7 +266,7 @@ var EventService = /** @class */ (function (_super) {
|
|
|
266
266
|
return __generator(this, function (_a) {
|
|
267
267
|
id = params.id, query = __rest(params, ["id"]);
|
|
268
268
|
return [2 /*return*/, this.fetch({
|
|
269
|
-
uri: "/events/" + encodeURIComponent(String(
|
|
269
|
+
uri: "/events/" + encodeURIComponent(String(id)) + "/offers/ticket",
|
|
270
270
|
method: 'GET',
|
|
271
271
|
qs: query,
|
|
272
272
|
expectedStatusCodes: [http_status_1.OK]
|
|
@@ -287,7 +287,7 @@ var EventService = /** @class */ (function (_super) {
|
|
|
287
287
|
return __generator(this, function (_a) {
|
|
288
288
|
id = params.id, query = __rest(params, ["id"]);
|
|
289
289
|
return [2 /*return*/, this.fetch({
|
|
290
|
-
uri: "/events/" + encodeURIComponent(String(
|
|
290
|
+
uri: "/events/" + encodeURIComponent(String(id)) + "/seats",
|
|
291
291
|
method: 'GET',
|
|
292
292
|
qs: query,
|
|
293
293
|
expectedStatusCodes: [http_status_1.OK]
|
|
@@ -247,7 +247,7 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
247
247
|
case 0:
|
|
248
248
|
id = params.id, object = params.object, body = __rest(params, ["id", "object"]);
|
|
249
249
|
return [4 /*yield*/, this.fetch({
|
|
250
|
-
uri: "/offers/" +
|
|
250
|
+
uri: "/offers/" + object.itemOffered.typeOf + "/authorize/" + id + "/void",
|
|
251
251
|
method: 'PUT',
|
|
252
252
|
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
253
253
|
body: body
|
|
@@ -288,7 +288,7 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
288
288
|
return __generator(this, function (_a) {
|
|
289
289
|
id = params.id, body = __rest(params, ["id"]);
|
|
290
290
|
return [2 /*return*/, this.fetch({
|
|
291
|
-
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" +
|
|
291
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + id + "/void",
|
|
292
292
|
method: 'PUT',
|
|
293
293
|
expectedStatusCodes: [http_status_1.OK],
|
|
294
294
|
body: body
|
|
@@ -309,7 +309,7 @@ var OfferService = /** @class */ (function (_super) {
|
|
|
309
309
|
return __generator(this, function (_a) {
|
|
310
310
|
id = params.id, body = __rest(params, ["id"]);
|
|
311
311
|
return [2 /*return*/, this.fetch({
|
|
312
|
-
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" +
|
|
312
|
+
uri: "/offers/" + factory.product.ProductType.EventService + "ByCOA/authorize/" + id,
|
|
313
313
|
method: 'PATCH',
|
|
314
314
|
expectedStatusCodes: [http_status_1.OK],
|
|
315
315
|
body: body
|
|
@@ -187,7 +187,7 @@ var OfferCatalogService = /** @class */ (function (_super) {
|
|
|
187
187
|
return __generator(this, function (_a) {
|
|
188
188
|
id = params.id, query = __rest(params, ["id"]);
|
|
189
189
|
return [2 /*return*/, this.fetch({
|
|
190
|
-
uri: "/offerCatalogs/" + encodeURIComponent(String(
|
|
190
|
+
uri: "/offerCatalogs/" + encodeURIComponent(String(id)) + "/itemListElement",
|
|
191
191
|
method: 'GET',
|
|
192
192
|
qs: query,
|
|
193
193
|
expectedStatusCodes: [http_status_1.OK]
|
|
@@ -50,6 +50,17 @@ 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
|
+
};
|
|
53
64
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
65
|
exports.OrderService = void 0;
|
|
55
66
|
var http_status_1 = require("http-status");
|
|
@@ -194,7 +205,9 @@ var OrderService = /** @class */ (function (_super) {
|
|
|
194
205
|
case 0: return [4 /*yield*/, this.fetch({
|
|
195
206
|
uri: "/orders/" + params.orderNumber + "/" + factory.orderStatus.OrderDelivered,
|
|
196
207
|
method: 'PUT',
|
|
197
|
-
body:
|
|
208
|
+
body: {
|
|
209
|
+
confirmationNumber: params.confirmationNumber
|
|
210
|
+
},
|
|
198
211
|
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
199
212
|
})];
|
|
200
213
|
case 1:
|
|
@@ -209,14 +222,17 @@ var OrderService = /** @class */ (function (_super) {
|
|
|
209
222
|
*/
|
|
210
223
|
OrderService.prototype.returnOrder = function (params) {
|
|
211
224
|
return __awaiter(this, void 0, void 0, function () {
|
|
225
|
+
var dateReturned, orderNumber, returner;
|
|
212
226
|
return __generator(this, function (_a) {
|
|
213
227
|
switch (_a.label) {
|
|
214
|
-
case 0:
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
228
|
+
case 0:
|
|
229
|
+
dateReturned = params.dateReturned, orderNumber = params.orderNumber, returner = params.returner;
|
|
230
|
+
return [4 /*yield*/, this.fetch({
|
|
231
|
+
uri: "/orders/" + orderNumber + "/" + factory.orderStatus.OrderReturned,
|
|
232
|
+
method: 'PUT',
|
|
233
|
+
body: { dateReturned: dateReturned, returner: returner },
|
|
234
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
235
|
+
})];
|
|
220
236
|
case 1:
|
|
221
237
|
_a.sent();
|
|
222
238
|
return [2 /*return*/];
|
|
@@ -229,14 +245,17 @@ var OrderService = /** @class */ (function (_super) {
|
|
|
229
245
|
*/
|
|
230
246
|
OrderService.prototype.updateChangeableAttributes = function (params) {
|
|
231
247
|
return __awaiter(this, void 0, void 0, function () {
|
|
248
|
+
var orderNumber, body;
|
|
232
249
|
return __generator(this, function (_a) {
|
|
233
250
|
switch (_a.label) {
|
|
234
|
-
case 0:
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
251
|
+
case 0:
|
|
252
|
+
orderNumber = params.orderNumber, body = __rest(params, ["orderNumber"]);
|
|
253
|
+
return [4 /*yield*/, this.fetch({
|
|
254
|
+
uri: "/orders/" + orderNumber,
|
|
255
|
+
method: 'PATCH',
|
|
256
|
+
body: body,
|
|
257
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
258
|
+
})];
|
|
240
259
|
case 1:
|
|
241
260
|
_a.sent();
|
|
242
261
|
return [2 /*return*/];
|
|
@@ -333,12 +352,14 @@ var OrderService = /** @class */ (function (_super) {
|
|
|
333
352
|
*/
|
|
334
353
|
OrderService.prototype.searchAcceptedOffersByConfirmationNumber = function (params) {
|
|
335
354
|
return __awaiter(this, void 0, void 0, function () {
|
|
355
|
+
var orderNumber, body;
|
|
336
356
|
var _this = this;
|
|
337
357
|
return __generator(this, function (_a) {
|
|
358
|
+
orderNumber = params.orderNumber, body = __rest(params, ["orderNumber"]);
|
|
338
359
|
return [2 /*return*/, this.fetch({
|
|
339
|
-
uri: "/orders/" +
|
|
360
|
+
uri: "/orders/" + orderNumber + "/acceptedOffersByConfirmationNumber",
|
|
340
361
|
method: 'POST',
|
|
341
|
-
body:
|
|
362
|
+
body: body,
|
|
342
363
|
expectedStatusCodes: [http_status_1.OK]
|
|
343
364
|
})
|
|
344
365
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -200,7 +200,7 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
200
200
|
case 0:
|
|
201
201
|
id = params.id, body = __rest(params, ["id"]);
|
|
202
202
|
return [4 /*yield*/, this.fetch({
|
|
203
|
-
uri: "/payment/" + factory.service.paymentService.PaymentServiceType.FaceToFace + "/authorize/" +
|
|
203
|
+
uri: "/payment/" + factory.service.paymentService.PaymentServiceType.FaceToFace + "/authorize/" + id + "/void",
|
|
204
204
|
method: 'PUT',
|
|
205
205
|
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
206
206
|
body: body
|
|
@@ -223,7 +223,7 @@ var PaymentService = /** @class */ (function (_super) {
|
|
|
223
223
|
case 0:
|
|
224
224
|
id = params.id, object = params.object, body = __rest(params, ["id", "object"]);
|
|
225
225
|
return [4 /*yield*/, this.fetch({
|
|
226
|
-
uri: "/payment/" +
|
|
226
|
+
uri: "/payment/" + object.typeOf + "/authorize/" + id + "/void",
|
|
227
227
|
method: 'PUT',
|
|
228
228
|
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
229
229
|
body: body
|