@cinerino/sdk 10.7.0-alpha.1 → 10.7.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/example/playground/public/lib/bundle.js +233 -75
- package/lib/abstract/chevreAdmin/permit.d.ts +0 -19
- package/lib/abstract/chevreAdmin/permit.js +0 -20
- package/lib/abstract/chevreAdmin/person/ownershipInfo.d.ts +0 -10
- package/lib/abstract/chevreAdmin/person/ownershipInfo.js +0 -21
- package/lib/abstract/chevreAsset/permit.d.ts +0 -19
- package/lib/abstract/chevreAsset/permit.js +0 -20
- package/lib/abstract/chevreAsset/person/ownershipInfo.d.ts +1 -36
- package/lib/abstract/chevreAsset/person/ownershipInfo.js +8 -29
- package/lib/abstract/cinerino/service/product.d.ts +2 -2
- package/lib/bundle.js +230 -63
- package/package.json +2 -2
|
@@ -7479,18 +7479,9 @@ var PaymentProductService = /** @class */ (function (_super) {
|
|
|
7479
7479
|
qs: params,
|
|
7480
7480
|
expectedStatusCodes: [http_status_1.OK]
|
|
7481
7481
|
})
|
|
7482
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
switch (_b.label) {
|
|
7486
|
-
case 0:
|
|
7487
|
-
_a = {};
|
|
7488
|
-
return [4 /*yield*/, response.json()];
|
|
7489
|
-
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
7490
|
-
_a)];
|
|
7491
|
-
}
|
|
7492
|
-
});
|
|
7493
|
-
}); })];
|
|
7482
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
7483
|
+
return [2 /*return*/, response.json()];
|
|
7484
|
+
}); }); })];
|
|
7494
7485
|
});
|
|
7495
7486
|
});
|
|
7496
7487
|
};
|
|
@@ -7769,26 +7760,6 @@ var PermitService = /** @class */ (function (_super) {
|
|
|
7769
7760
|
});
|
|
7770
7761
|
});
|
|
7771
7762
|
};
|
|
7772
|
-
/**
|
|
7773
|
-
* 許可証承認
|
|
7774
|
-
*/
|
|
7775
|
-
PermitService.prototype.authorize = function (params) {
|
|
7776
|
-
var _a;
|
|
7777
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
7778
|
-
var _this = this;
|
|
7779
|
-
return __generator(this, function (_b) {
|
|
7780
|
-
return [2 /*return*/, this.fetch({
|
|
7781
|
-
uri: "/permits/" + String((_a = params.object) === null || _a === void 0 ? void 0 : _a.identifier) + "/authorize",
|
|
7782
|
-
method: 'POST',
|
|
7783
|
-
body: params,
|
|
7784
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
7785
|
-
})
|
|
7786
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
7787
|
-
return [2 /*return*/, response.json()];
|
|
7788
|
-
}); }); })];
|
|
7789
|
-
});
|
|
7790
|
-
});
|
|
7791
|
-
};
|
|
7792
7763
|
return PermitService;
|
|
7793
7764
|
}(service_1.Service));
|
|
7794
7765
|
exports.PermitService = PermitService;
|
|
@@ -8224,27 +8195,6 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
8224
8195
|
});
|
|
8225
8196
|
});
|
|
8226
8197
|
};
|
|
8227
|
-
/**
|
|
8228
|
-
* 所有権に対して承認コードを発行する
|
|
8229
|
-
*/
|
|
8230
|
-
PersonOwnershipInfoService.prototype.authorize = function (params) {
|
|
8231
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8232
|
-
var id;
|
|
8233
|
-
var _this = this;
|
|
8234
|
-
return __generator(this, function (_a) {
|
|
8235
|
-
id = (typeof params.id === 'string') ? params.id : 'me';
|
|
8236
|
-
return [2 /*return*/, this.fetch({
|
|
8237
|
-
uri: "/people/" + id + "/ownershipInfos/" + params.ownershipInfoId + "/authorize",
|
|
8238
|
-
method: 'POST',
|
|
8239
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
8240
|
-
// body: params
|
|
8241
|
-
})
|
|
8242
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8243
|
-
return [2 /*return*/, response.json()];
|
|
8244
|
-
}); }); })];
|
|
8245
|
-
});
|
|
8246
|
-
});
|
|
8247
|
-
};
|
|
8248
8198
|
/**
|
|
8249
8199
|
* マイペイメントカード入出金検索
|
|
8250
8200
|
*/
|
|
@@ -12025,26 +11975,6 @@ var PermitService = /** @class */ (function (_super) {
|
|
|
12025
11975
|
});
|
|
12026
11976
|
});
|
|
12027
11977
|
};
|
|
12028
|
-
/**
|
|
12029
|
-
* 許可証承認
|
|
12030
|
-
*/
|
|
12031
|
-
PermitService.prototype.authorize = function (params) {
|
|
12032
|
-
var _a;
|
|
12033
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
12034
|
-
var _this = this;
|
|
12035
|
-
return __generator(this, function (_b) {
|
|
12036
|
-
return [2 /*return*/, this.fetch({
|
|
12037
|
-
uri: "/permits/" + String((_a = params.object) === null || _a === void 0 ? void 0 : _a.identifier) + "/authorize",
|
|
12038
|
-
method: 'POST',
|
|
12039
|
-
body: params,
|
|
12040
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
12041
|
-
})
|
|
12042
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
12043
|
-
return [2 /*return*/, response.json()];
|
|
12044
|
-
}); }); })];
|
|
12045
|
-
});
|
|
12046
|
-
});
|
|
12047
|
-
};
|
|
12048
11978
|
return PermitService;
|
|
12049
11979
|
}(service_1.Service));
|
|
12050
11980
|
exports.PermitService = PermitService;
|
|
@@ -12227,8 +12157,236 @@ var PersonService = /** @class */ (function (_super) {
|
|
|
12227
12157
|
exports.PersonService = PersonService;
|
|
12228
12158
|
|
|
12229
12159
|
},{"../service":139,"http-status":371}],70:[function(require,module,exports){
|
|
12230
|
-
|
|
12231
|
-
|
|
12160
|
+
"use strict";
|
|
12161
|
+
var __extends = (this && this.__extends) || (function () {
|
|
12162
|
+
var extendStatics = function (d, b) {
|
|
12163
|
+
extendStatics = Object.setPrototypeOf ||
|
|
12164
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
12165
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12166
|
+
return extendStatics(d, b);
|
|
12167
|
+
};
|
|
12168
|
+
return function (d, b) {
|
|
12169
|
+
if (typeof b !== "function" && b !== null)
|
|
12170
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12171
|
+
extendStatics(d, b);
|
|
12172
|
+
function __() { this.constructor = d; }
|
|
12173
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12174
|
+
};
|
|
12175
|
+
})();
|
|
12176
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12177
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
12178
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
12179
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
12180
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12181
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
12182
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
12183
|
+
});
|
|
12184
|
+
};
|
|
12185
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12186
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12187
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
12188
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
12189
|
+
function step(op) {
|
|
12190
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
12191
|
+
while (_) try {
|
|
12192
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
12193
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
12194
|
+
switch (op[0]) {
|
|
12195
|
+
case 0: case 1: t = op; break;
|
|
12196
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
12197
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
12198
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
12199
|
+
default:
|
|
12200
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
12201
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
12202
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
12203
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
12204
|
+
if (t[2]) _.ops.pop();
|
|
12205
|
+
_.trys.pop(); continue;
|
|
12206
|
+
}
|
|
12207
|
+
op = body.call(thisArg, _);
|
|
12208
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
12209
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
12210
|
+
}
|
|
12211
|
+
};
|
|
12212
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
12213
|
+
var t = {};
|
|
12214
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
12215
|
+
t[p] = s[p];
|
|
12216
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
12217
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12218
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
12219
|
+
t[p[i]] = s[p[i]];
|
|
12220
|
+
}
|
|
12221
|
+
return t;
|
|
12222
|
+
};
|
|
12223
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12224
|
+
exports.PersonOwnershipInfoService = void 0;
|
|
12225
|
+
var http_status_1 = require("http-status");
|
|
12226
|
+
var service_1 = require("../../service");
|
|
12227
|
+
/**
|
|
12228
|
+
* 会員所有権サービス
|
|
12229
|
+
*/
|
|
12230
|
+
var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
12231
|
+
__extends(PersonOwnershipInfoService, _super);
|
|
12232
|
+
function PersonOwnershipInfoService() {
|
|
12233
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
12234
|
+
}
|
|
12235
|
+
/**
|
|
12236
|
+
* クレジットカード追加
|
|
12237
|
+
*/
|
|
12238
|
+
PersonOwnershipInfoService.prototype.addCreditCard = function (params) {
|
|
12239
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12240
|
+
var id;
|
|
12241
|
+
var _this = this;
|
|
12242
|
+
return __generator(this, function (_a) {
|
|
12243
|
+
id = 'me';
|
|
12244
|
+
return [2 /*return*/, this.fetch({
|
|
12245
|
+
uri: "/people/" + id + "/paymentMethod/creditCards",
|
|
12246
|
+
method: 'POST',
|
|
12247
|
+
body: params.creditCard,
|
|
12248
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
12249
|
+
qs: { iss: params.iss }
|
|
12250
|
+
})
|
|
12251
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
12252
|
+
return [2 /*return*/, response.json()];
|
|
12253
|
+
}); }); })];
|
|
12254
|
+
});
|
|
12255
|
+
});
|
|
12256
|
+
};
|
|
12257
|
+
/**
|
|
12258
|
+
* クレジットカード検索
|
|
12259
|
+
*/
|
|
12260
|
+
PersonOwnershipInfoService.prototype.searchCreditCards = function (params) {
|
|
12261
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12262
|
+
var id;
|
|
12263
|
+
var _this = this;
|
|
12264
|
+
return __generator(this, function (_a) {
|
|
12265
|
+
id = 'me';
|
|
12266
|
+
return [2 /*return*/, this.fetch({
|
|
12267
|
+
uri: "/people/" + id + "/paymentMethod/creditCards",
|
|
12268
|
+
method: 'GET',
|
|
12269
|
+
qs: { iss: params.iss },
|
|
12270
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
12271
|
+
})
|
|
12272
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
12273
|
+
return [2 /*return*/, response.json()];
|
|
12274
|
+
}); }); })];
|
|
12275
|
+
});
|
|
12276
|
+
});
|
|
12277
|
+
};
|
|
12278
|
+
/**
|
|
12279
|
+
* クレジットカード削除
|
|
12280
|
+
*/
|
|
12281
|
+
PersonOwnershipInfoService.prototype.deleteCreditCard = function (params) {
|
|
12282
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12283
|
+
var id;
|
|
12284
|
+
return __generator(this, function (_a) {
|
|
12285
|
+
switch (_a.label) {
|
|
12286
|
+
case 0:
|
|
12287
|
+
id = 'me';
|
|
12288
|
+
return [4 /*yield*/, this.fetch({
|
|
12289
|
+
uri: "/people/" + id + "/paymentMethod/creditCards/" + String(params.cardSeq),
|
|
12290
|
+
method: 'DELETE',
|
|
12291
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
12292
|
+
qs: { iss: params.iss }
|
|
12293
|
+
})];
|
|
12294
|
+
case 1:
|
|
12295
|
+
_a.sent();
|
|
12296
|
+
return [2 /*return*/];
|
|
12297
|
+
}
|
|
12298
|
+
});
|
|
12299
|
+
});
|
|
12300
|
+
};
|
|
12301
|
+
/**
|
|
12302
|
+
* 所有権検索
|
|
12303
|
+
*/
|
|
12304
|
+
PersonOwnershipInfoService.prototype.search = function (params) {
|
|
12305
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12306
|
+
var id;
|
|
12307
|
+
var _this = this;
|
|
12308
|
+
return __generator(this, function (_a) {
|
|
12309
|
+
id = 'me';
|
|
12310
|
+
return [2 /*return*/, this.fetch({
|
|
12311
|
+
uri: "/people/" + id + "/ownershipInfos",
|
|
12312
|
+
method: 'GET',
|
|
12313
|
+
qs: params,
|
|
12314
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
12315
|
+
})
|
|
12316
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
12317
|
+
var _a;
|
|
12318
|
+
return __generator(this, function (_b) {
|
|
12319
|
+
switch (_b.label) {
|
|
12320
|
+
case 0:
|
|
12321
|
+
_a = {};
|
|
12322
|
+
return [4 /*yield*/, response.json()];
|
|
12323
|
+
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
12324
|
+
_a)];
|
|
12325
|
+
}
|
|
12326
|
+
});
|
|
12327
|
+
}); })];
|
|
12328
|
+
});
|
|
12329
|
+
});
|
|
12330
|
+
};
|
|
12331
|
+
/**
|
|
12332
|
+
* 会員所有権削除
|
|
12333
|
+
*/
|
|
12334
|
+
PersonOwnershipInfoService.prototype.deleteOwnershipInfoById = function (params) {
|
|
12335
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12336
|
+
var id;
|
|
12337
|
+
return __generator(this, function (_a) {
|
|
12338
|
+
switch (_a.label) {
|
|
12339
|
+
case 0:
|
|
12340
|
+
id = 'me';
|
|
12341
|
+
return [4 /*yield*/, this.fetch({
|
|
12342
|
+
uri: "/people/" + id + "/ownershipInfos/" + String(params.ownershipInfoId),
|
|
12343
|
+
method: 'DELETE',
|
|
12344
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
12345
|
+
// qs: { iss: params.iss }
|
|
12346
|
+
})];
|
|
12347
|
+
case 1:
|
|
12348
|
+
_a.sent();
|
|
12349
|
+
return [2 /*return*/];
|
|
12350
|
+
}
|
|
12351
|
+
});
|
|
12352
|
+
});
|
|
12353
|
+
};
|
|
12354
|
+
/**
|
|
12355
|
+
* マイペイメントカード入出金検索
|
|
12356
|
+
*/
|
|
12357
|
+
PersonOwnershipInfoService.prototype.searchPaymentCardMoneyTransferActions = function (params) {
|
|
12358
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12359
|
+
var ownershipInfoId, query, personId;
|
|
12360
|
+
var _this = this;
|
|
12361
|
+
return __generator(this, function (_a) {
|
|
12362
|
+
ownershipInfoId = params.ownershipInfoId, query = __rest(params, ["ownershipInfoId"]);
|
|
12363
|
+
personId = 'me';
|
|
12364
|
+
return [2 /*return*/, this.fetch({
|
|
12365
|
+
uri: "/people/" + personId + "/ownershipInfos/" + ownershipInfoId + "/actions/moneyTransfer",
|
|
12366
|
+
method: 'GET',
|
|
12367
|
+
qs: query,
|
|
12368
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
12369
|
+
})
|
|
12370
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
12371
|
+
var _a;
|
|
12372
|
+
return __generator(this, function (_b) {
|
|
12373
|
+
switch (_b.label) {
|
|
12374
|
+
case 0:
|
|
12375
|
+
_a = {};
|
|
12376
|
+
return [4 /*yield*/, response.json()];
|
|
12377
|
+
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
12378
|
+
_a)];
|
|
12379
|
+
}
|
|
12380
|
+
});
|
|
12381
|
+
}); })];
|
|
12382
|
+
});
|
|
12383
|
+
});
|
|
12384
|
+
};
|
|
12385
|
+
return PersonOwnershipInfoService;
|
|
12386
|
+
}(service_1.Service));
|
|
12387
|
+
exports.PersonOwnershipInfoService = PersonOwnershipInfoService;
|
|
12388
|
+
|
|
12389
|
+
},{"../../service":139,"http-status":371}],71:[function(require,module,exports){
|
|
12232
12390
|
"use strict";
|
|
12233
12391
|
var __extends = (this && this.__extends) || (function () {
|
|
12234
12392
|
var extendStatics = function (d, b) {
|
|
@@ -37,23 +37,4 @@ export declare class PermitService extends Service {
|
|
|
37
37
|
id: string;
|
|
38
38
|
};
|
|
39
39
|
}): Promise<factory.permit.IPermit>;
|
|
40
|
-
/**
|
|
41
|
-
* 許可証承認
|
|
42
|
-
*/
|
|
43
|
-
authorize(params: {
|
|
44
|
-
object: {
|
|
45
|
-
/**
|
|
46
|
-
* 識別子
|
|
47
|
-
* メンバーシップコードなど
|
|
48
|
-
*/
|
|
49
|
-
identifier: string;
|
|
50
|
-
accessCode: string;
|
|
51
|
-
/**
|
|
52
|
-
* 許可証発行元のプロダクト
|
|
53
|
-
*/
|
|
54
|
-
issuedThrough: {
|
|
55
|
-
id: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
}): Promise<IAuthorizeResult>;
|
|
59
40
|
}
|
|
@@ -129,26 +129,6 @@ var PermitService = /** @class */ (function (_super) {
|
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
|
-
/**
|
|
133
|
-
* 許可証承認
|
|
134
|
-
*/
|
|
135
|
-
PermitService.prototype.authorize = function (params) {
|
|
136
|
-
var _a;
|
|
137
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
138
|
-
var _this = this;
|
|
139
|
-
return __generator(this, function (_b) {
|
|
140
|
-
return [2 /*return*/, this.fetch({
|
|
141
|
-
uri: "/permits/" + String((_a = params.object) === null || _a === void 0 ? void 0 : _a.identifier) + "/authorize",
|
|
142
|
-
method: 'POST',
|
|
143
|
-
body: params,
|
|
144
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
145
|
-
})
|
|
146
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
147
|
-
return [2 /*return*/, response.json()];
|
|
148
|
-
}); }); })];
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
};
|
|
152
132
|
return PermitService;
|
|
153
133
|
}(service_1.Service));
|
|
154
134
|
exports.PermitService = PermitService;
|
|
@@ -67,16 +67,6 @@ export declare class PersonOwnershipInfoService extends Service<IOptions> {
|
|
|
67
67
|
id?: string;
|
|
68
68
|
ownershipInfoId: string;
|
|
69
69
|
}): Promise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* 所有権に対して承認コードを発行する
|
|
72
|
-
*/
|
|
73
|
-
authorize(params: {
|
|
74
|
-
/**
|
|
75
|
-
* 未指定の場合`me`がセットされます
|
|
76
|
-
*/
|
|
77
|
-
id?: string;
|
|
78
|
-
ownershipInfoId: string;
|
|
79
|
-
}): Promise<ICodeResponse>;
|
|
80
70
|
/**
|
|
81
71
|
* マイペイメントカード入出金検索
|
|
82
72
|
*/
|
|
@@ -192,27 +192,6 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
192
192
|
});
|
|
193
193
|
});
|
|
194
194
|
};
|
|
195
|
-
/**
|
|
196
|
-
* 所有権に対して承認コードを発行する
|
|
197
|
-
*/
|
|
198
|
-
PersonOwnershipInfoService.prototype.authorize = function (params) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
-
var id;
|
|
201
|
-
var _this = this;
|
|
202
|
-
return __generator(this, function (_a) {
|
|
203
|
-
id = (typeof params.id === 'string') ? params.id : 'me';
|
|
204
|
-
return [2 /*return*/, this.fetch({
|
|
205
|
-
uri: "/people/" + id + "/ownershipInfos/" + params.ownershipInfoId + "/authorize",
|
|
206
|
-
method: 'POST',
|
|
207
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
208
|
-
// body: params
|
|
209
|
-
})
|
|
210
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
211
|
-
return [2 /*return*/, response.json()];
|
|
212
|
-
}); }); })];
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
};
|
|
216
195
|
/**
|
|
217
196
|
* マイペイメントカード入出金検索
|
|
218
197
|
*/
|
|
@@ -33,23 +33,4 @@ export declare class PermitService extends Service {
|
|
|
33
33
|
id: string;
|
|
34
34
|
};
|
|
35
35
|
}): Promise<factory.permit.IPermit>;
|
|
36
|
-
/**
|
|
37
|
-
* 許可証承認
|
|
38
|
-
*/
|
|
39
|
-
authorize(params: {
|
|
40
|
-
object: {
|
|
41
|
-
/**
|
|
42
|
-
* 識別子
|
|
43
|
-
* メンバーシップコードなど
|
|
44
|
-
*/
|
|
45
|
-
identifier: string;
|
|
46
|
-
accessCode: string;
|
|
47
|
-
/**
|
|
48
|
-
* 許可証発行元のプロダクト
|
|
49
|
-
*/
|
|
50
|
-
issuedThrough: {
|
|
51
|
-
id: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
}): Promise<IAuthorizeResult>;
|
|
55
36
|
}
|
|
@@ -101,26 +101,6 @@ var PermitService = /** @class */ (function (_super) {
|
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
|
-
/**
|
|
105
|
-
* 許可証承認
|
|
106
|
-
*/
|
|
107
|
-
PermitService.prototype.authorize = function (params) {
|
|
108
|
-
var _a;
|
|
109
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
110
|
-
var _this = this;
|
|
111
|
-
return __generator(this, function (_b) {
|
|
112
|
-
return [2 /*return*/, this.fetch({
|
|
113
|
-
uri: "/permits/" + String((_a = params.object) === null || _a === void 0 ? void 0 : _a.identifier) + "/authorize",
|
|
114
|
-
method: 'POST',
|
|
115
|
-
body: params,
|
|
116
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
117
|
-
})
|
|
118
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
119
|
-
return [2 /*return*/, response.json()];
|
|
120
|
-
}); }); })];
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
};
|
|
124
104
|
return PermitService;
|
|
125
105
|
}(service_1.Service));
|
|
126
106
|
exports.PermitService = PermitService;
|
|
@@ -13,10 +13,6 @@ export declare class PersonOwnershipInfoService extends Service<IOptions> {
|
|
|
13
13
|
* クレジットカード追加
|
|
14
14
|
*/
|
|
15
15
|
addCreditCard(params: {
|
|
16
|
-
/**
|
|
17
|
-
* `me`は廃止されました(2023-10-04~)
|
|
18
|
-
*/
|
|
19
|
-
id: string;
|
|
20
16
|
/**
|
|
21
17
|
* クレジットカード情報
|
|
22
18
|
* 情報の渡し方にはいくつかパターンがあるので、型を参照すること
|
|
@@ -28,20 +24,12 @@ export declare class PersonOwnershipInfoService extends Service<IOptions> {
|
|
|
28
24
|
* クレジットカード検索
|
|
29
25
|
*/
|
|
30
26
|
searchCreditCards(params: {
|
|
31
|
-
/**
|
|
32
|
-
* `me`は廃止されました(2023-10-04~)
|
|
33
|
-
*/
|
|
34
|
-
id: string;
|
|
35
27
|
iss: string;
|
|
36
28
|
}): Promise<factory.paymentMethod.paymentCard.creditCard.ICheckedCard[]>;
|
|
37
29
|
/**
|
|
38
30
|
* クレジットカード削除
|
|
39
31
|
*/
|
|
40
32
|
deleteCreditCard(params: {
|
|
41
|
-
/**
|
|
42
|
-
* `me`は廃止されました(2023-10-04~)
|
|
43
|
-
*/
|
|
44
|
-
id: string;
|
|
45
33
|
/**
|
|
46
34
|
* カード連番
|
|
47
35
|
*/
|
|
@@ -51,40 +39,17 @@ export declare class PersonOwnershipInfoService extends Service<IOptions> {
|
|
|
51
39
|
/**
|
|
52
40
|
* 所有権検索
|
|
53
41
|
*/
|
|
54
|
-
search(params: Omit<factory.ownershipInfo.ISearchConditions, 'ownedBy' | 'project'>
|
|
55
|
-
/**
|
|
56
|
-
* 未指定の場合`me`がセットされます
|
|
57
|
-
*/
|
|
58
|
-
id?: string;
|
|
59
|
-
}): Promise<ISearchResult<IOwnershipInfoWithDetail[]>>;
|
|
42
|
+
search(params: Omit<factory.ownershipInfo.ISearchConditions, 'ownedBy' | 'project'>): Promise<ISearchResult<IOwnershipInfoWithDetail[]>>;
|
|
60
43
|
/**
|
|
61
44
|
* 会員所有権削除
|
|
62
45
|
*/
|
|
63
46
|
deleteOwnershipInfoById(params: {
|
|
64
|
-
/**
|
|
65
|
-
* 未指定の場合`me`がセットされます
|
|
66
|
-
*/
|
|
67
|
-
id?: string;
|
|
68
47
|
ownershipInfoId: string;
|
|
69
48
|
}): Promise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* 所有権に対して承認コードを発行する
|
|
72
|
-
*/
|
|
73
|
-
authorize(params: {
|
|
74
|
-
/**
|
|
75
|
-
* 未指定の場合`me`がセットされます
|
|
76
|
-
*/
|
|
77
|
-
id?: string;
|
|
78
|
-
ownershipInfoId: string;
|
|
79
|
-
}): Promise<ICodeResponse>;
|
|
80
49
|
/**
|
|
81
50
|
* マイペイメントカード入出金検索
|
|
82
51
|
*/
|
|
83
52
|
searchPaymentCardMoneyTransferActions(params: {
|
|
84
|
-
/**
|
|
85
|
-
* 未指定の場合`me`がセットされます
|
|
86
|
-
*/
|
|
87
|
-
id?: string;
|
|
88
53
|
ownershipInfoId: string;
|
|
89
54
|
limit?: number;
|
|
90
55
|
page?: number;
|
|
@@ -81,7 +81,7 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
81
81
|
var id;
|
|
82
82
|
var _this = this;
|
|
83
83
|
return __generator(this, function (_a) {
|
|
84
|
-
id =
|
|
84
|
+
id = 'me';
|
|
85
85
|
return [2 /*return*/, this.fetch({
|
|
86
86
|
uri: "/people/" + id + "/paymentMethod/creditCards",
|
|
87
87
|
method: 'POST',
|
|
@@ -103,7 +103,7 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
103
103
|
var id;
|
|
104
104
|
var _this = this;
|
|
105
105
|
return __generator(this, function (_a) {
|
|
106
|
-
id =
|
|
106
|
+
id = 'me';
|
|
107
107
|
return [2 /*return*/, this.fetch({
|
|
108
108
|
uri: "/people/" + id + "/paymentMethod/creditCards",
|
|
109
109
|
method: 'GET',
|
|
@@ -125,7 +125,7 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
125
125
|
return __generator(this, function (_a) {
|
|
126
126
|
switch (_a.label) {
|
|
127
127
|
case 0:
|
|
128
|
-
id =
|
|
128
|
+
id = 'me';
|
|
129
129
|
return [4 /*yield*/, this.fetch({
|
|
130
130
|
uri: "/people/" + id + "/paymentMethod/creditCards/" + String(params.cardSeq),
|
|
131
131
|
method: 'DELETE',
|
|
@@ -147,7 +147,7 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
147
147
|
var id;
|
|
148
148
|
var _this = this;
|
|
149
149
|
return __generator(this, function (_a) {
|
|
150
|
-
id =
|
|
150
|
+
id = 'me';
|
|
151
151
|
return [2 /*return*/, this.fetch({
|
|
152
152
|
uri: "/people/" + id + "/ownershipInfos",
|
|
153
153
|
method: 'GET',
|
|
@@ -178,7 +178,7 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
178
178
|
return __generator(this, function (_a) {
|
|
179
179
|
switch (_a.label) {
|
|
180
180
|
case 0:
|
|
181
|
-
id =
|
|
181
|
+
id = 'me';
|
|
182
182
|
return [4 /*yield*/, this.fetch({
|
|
183
183
|
uri: "/people/" + id + "/ownershipInfos/" + String(params.ownershipInfoId),
|
|
184
184
|
method: 'DELETE',
|
|
@@ -192,37 +192,16 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
192
192
|
});
|
|
193
193
|
});
|
|
194
194
|
};
|
|
195
|
-
/**
|
|
196
|
-
* 所有権に対して承認コードを発行する
|
|
197
|
-
*/
|
|
198
|
-
PersonOwnershipInfoService.prototype.authorize = function (params) {
|
|
199
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
-
var id;
|
|
201
|
-
var _this = this;
|
|
202
|
-
return __generator(this, function (_a) {
|
|
203
|
-
id = (typeof params.id === 'string') ? params.id : 'me';
|
|
204
|
-
return [2 /*return*/, this.fetch({
|
|
205
|
-
uri: "/people/" + id + "/ownershipInfos/" + params.ownershipInfoId + "/authorize",
|
|
206
|
-
method: 'POST',
|
|
207
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
208
|
-
// body: params
|
|
209
|
-
})
|
|
210
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
211
|
-
return [2 /*return*/, response.json()];
|
|
212
|
-
}); }); })];
|
|
213
|
-
});
|
|
214
|
-
});
|
|
215
|
-
};
|
|
216
195
|
/**
|
|
217
196
|
* マイペイメントカード入出金検索
|
|
218
197
|
*/
|
|
219
198
|
PersonOwnershipInfoService.prototype.searchPaymentCardMoneyTransferActions = function (params) {
|
|
220
199
|
return __awaiter(this, void 0, void 0, function () {
|
|
221
|
-
var
|
|
200
|
+
var ownershipInfoId, query, personId;
|
|
222
201
|
var _this = this;
|
|
223
202
|
return __generator(this, function (_a) {
|
|
224
|
-
|
|
225
|
-
personId =
|
|
203
|
+
ownershipInfoId = params.ownershipInfoId, query = __rest(params, ["ownershipInfoId"]);
|
|
204
|
+
personId = 'me';
|
|
226
205
|
return [2 /*return*/, this.fetch({
|
|
227
206
|
uri: "/people/" + personId + "/ownershipInfos/" + ownershipInfoId + "/actions/moneyTransfer",
|
|
228
207
|
method: 'GET',
|
|
@@ -12,9 +12,9 @@ export declare class ProductService extends Service {
|
|
|
12
12
|
search(params: Omit<factory.product.ISearchConditions, 'project' | 'typeOf'> & {
|
|
13
13
|
typeOf: {
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* プロダクトタイプ
|
|
16
16
|
*/
|
|
17
|
-
$eq: factory.product.ProductType.EventService | factory.product.ProductType.Product | factory.service.paymentService.PaymentServiceType.CreditCard;
|
|
17
|
+
$eq: factory.product.ProductType.EventService | factory.product.ProductType.Product | factory.product.ProductType.MembershipService | factory.product.ProductType.PaymentCard | factory.service.paymentService.PaymentServiceType.CreditCard;
|
|
18
18
|
};
|
|
19
19
|
}): Promise<{
|
|
20
20
|
data: ISearchProductsResult[];
|
package/lib/bundle.js
CHANGED
|
@@ -8969,26 +8969,6 @@ var PermitService = /** @class */ (function (_super) {
|
|
|
8969
8969
|
});
|
|
8970
8970
|
});
|
|
8971
8971
|
};
|
|
8972
|
-
/**
|
|
8973
|
-
* 許可証承認
|
|
8974
|
-
*/
|
|
8975
|
-
PermitService.prototype.authorize = function (params) {
|
|
8976
|
-
var _a;
|
|
8977
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
8978
|
-
var _this = this;
|
|
8979
|
-
return __generator(this, function (_b) {
|
|
8980
|
-
return [2 /*return*/, this.fetch({
|
|
8981
|
-
uri: "/permits/" + String((_a = params.object) === null || _a === void 0 ? void 0 : _a.identifier) + "/authorize",
|
|
8982
|
-
method: 'POST',
|
|
8983
|
-
body: params,
|
|
8984
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
8985
|
-
})
|
|
8986
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8987
|
-
return [2 /*return*/, response.json()];
|
|
8988
|
-
}); }); })];
|
|
8989
|
-
});
|
|
8990
|
-
});
|
|
8991
|
-
};
|
|
8992
8972
|
return PermitService;
|
|
8993
8973
|
}(service_1.Service));
|
|
8994
8974
|
exports.PermitService = PermitService;
|
|
@@ -9424,27 +9404,6 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
9424
9404
|
});
|
|
9425
9405
|
});
|
|
9426
9406
|
};
|
|
9427
|
-
/**
|
|
9428
|
-
* 所有権に対して承認コードを発行する
|
|
9429
|
-
*/
|
|
9430
|
-
PersonOwnershipInfoService.prototype.authorize = function (params) {
|
|
9431
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
9432
|
-
var id;
|
|
9433
|
-
var _this = this;
|
|
9434
|
-
return __generator(this, function (_a) {
|
|
9435
|
-
id = (typeof params.id === 'string') ? params.id : 'me';
|
|
9436
|
-
return [2 /*return*/, this.fetch({
|
|
9437
|
-
uri: "/people/" + id + "/ownershipInfos/" + params.ownershipInfoId + "/authorize",
|
|
9438
|
-
method: 'POST',
|
|
9439
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
9440
|
-
// body: params
|
|
9441
|
-
})
|
|
9442
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
9443
|
-
return [2 /*return*/, response.json()];
|
|
9444
|
-
}); }); })];
|
|
9445
|
-
});
|
|
9446
|
-
});
|
|
9447
|
-
};
|
|
9448
9407
|
/**
|
|
9449
9408
|
* マイペイメントカード入出金検索
|
|
9450
9409
|
*/
|
|
@@ -13225,26 +13184,6 @@ var PermitService = /** @class */ (function (_super) {
|
|
|
13225
13184
|
});
|
|
13226
13185
|
});
|
|
13227
13186
|
};
|
|
13228
|
-
/**
|
|
13229
|
-
* 許可証承認
|
|
13230
|
-
*/
|
|
13231
|
-
PermitService.prototype.authorize = function (params) {
|
|
13232
|
-
var _a;
|
|
13233
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
13234
|
-
var _this = this;
|
|
13235
|
-
return __generator(this, function (_b) {
|
|
13236
|
-
return [2 /*return*/, this.fetch({
|
|
13237
|
-
uri: "/permits/" + String((_a = params.object) === null || _a === void 0 ? void 0 : _a.identifier) + "/authorize",
|
|
13238
|
-
method: 'POST',
|
|
13239
|
-
body: params,
|
|
13240
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
13241
|
-
})
|
|
13242
|
-
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
13243
|
-
return [2 /*return*/, response.json()];
|
|
13244
|
-
}); }); })];
|
|
13245
|
-
});
|
|
13246
|
-
});
|
|
13247
|
-
};
|
|
13248
13187
|
return PermitService;
|
|
13249
13188
|
}(service_1.Service));
|
|
13250
13189
|
exports.PermitService = PermitService;
|
|
@@ -13427,8 +13366,236 @@ var PersonService = /** @class */ (function (_super) {
|
|
|
13427
13366
|
exports.PersonService = PersonService;
|
|
13428
13367
|
|
|
13429
13368
|
},{"../service":139,"http-status":371}],79:[function(require,module,exports){
|
|
13430
|
-
|
|
13431
|
-
|
|
13369
|
+
"use strict";
|
|
13370
|
+
var __extends = (this && this.__extends) || (function () {
|
|
13371
|
+
var extendStatics = function (d, b) {
|
|
13372
|
+
extendStatics = Object.setPrototypeOf ||
|
|
13373
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
13374
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
13375
|
+
return extendStatics(d, b);
|
|
13376
|
+
};
|
|
13377
|
+
return function (d, b) {
|
|
13378
|
+
if (typeof b !== "function" && b !== null)
|
|
13379
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
13380
|
+
extendStatics(d, b);
|
|
13381
|
+
function __() { this.constructor = d; }
|
|
13382
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13383
|
+
};
|
|
13384
|
+
})();
|
|
13385
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13386
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13387
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
13388
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
13389
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
13390
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13391
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
13392
|
+
});
|
|
13393
|
+
};
|
|
13394
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
13395
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13396
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13397
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
13398
|
+
function step(op) {
|
|
13399
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
13400
|
+
while (_) try {
|
|
13401
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
13402
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
13403
|
+
switch (op[0]) {
|
|
13404
|
+
case 0: case 1: t = op; break;
|
|
13405
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
13406
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
13407
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
13408
|
+
default:
|
|
13409
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
13410
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
13411
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
13412
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
13413
|
+
if (t[2]) _.ops.pop();
|
|
13414
|
+
_.trys.pop(); continue;
|
|
13415
|
+
}
|
|
13416
|
+
op = body.call(thisArg, _);
|
|
13417
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
13418
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
13419
|
+
}
|
|
13420
|
+
};
|
|
13421
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13422
|
+
var t = {};
|
|
13423
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
13424
|
+
t[p] = s[p];
|
|
13425
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
13426
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
13427
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
13428
|
+
t[p[i]] = s[p[i]];
|
|
13429
|
+
}
|
|
13430
|
+
return t;
|
|
13431
|
+
};
|
|
13432
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13433
|
+
exports.PersonOwnershipInfoService = void 0;
|
|
13434
|
+
var http_status_1 = require("http-status");
|
|
13435
|
+
var service_1 = require("../../service");
|
|
13436
|
+
/**
|
|
13437
|
+
* 会員所有権サービス
|
|
13438
|
+
*/
|
|
13439
|
+
var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
13440
|
+
__extends(PersonOwnershipInfoService, _super);
|
|
13441
|
+
function PersonOwnershipInfoService() {
|
|
13442
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
13443
|
+
}
|
|
13444
|
+
/**
|
|
13445
|
+
* クレジットカード追加
|
|
13446
|
+
*/
|
|
13447
|
+
PersonOwnershipInfoService.prototype.addCreditCard = function (params) {
|
|
13448
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13449
|
+
var id;
|
|
13450
|
+
var _this = this;
|
|
13451
|
+
return __generator(this, function (_a) {
|
|
13452
|
+
id = 'me';
|
|
13453
|
+
return [2 /*return*/, this.fetch({
|
|
13454
|
+
uri: "/people/" + id + "/paymentMethod/creditCards",
|
|
13455
|
+
method: 'POST',
|
|
13456
|
+
body: params.creditCard,
|
|
13457
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
13458
|
+
qs: { iss: params.iss }
|
|
13459
|
+
})
|
|
13460
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
13461
|
+
return [2 /*return*/, response.json()];
|
|
13462
|
+
}); }); })];
|
|
13463
|
+
});
|
|
13464
|
+
});
|
|
13465
|
+
};
|
|
13466
|
+
/**
|
|
13467
|
+
* クレジットカード検索
|
|
13468
|
+
*/
|
|
13469
|
+
PersonOwnershipInfoService.prototype.searchCreditCards = function (params) {
|
|
13470
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13471
|
+
var id;
|
|
13472
|
+
var _this = this;
|
|
13473
|
+
return __generator(this, function (_a) {
|
|
13474
|
+
id = 'me';
|
|
13475
|
+
return [2 /*return*/, this.fetch({
|
|
13476
|
+
uri: "/people/" + id + "/paymentMethod/creditCards",
|
|
13477
|
+
method: 'GET',
|
|
13478
|
+
qs: { iss: params.iss },
|
|
13479
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
13480
|
+
})
|
|
13481
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
13482
|
+
return [2 /*return*/, response.json()];
|
|
13483
|
+
}); }); })];
|
|
13484
|
+
});
|
|
13485
|
+
});
|
|
13486
|
+
};
|
|
13487
|
+
/**
|
|
13488
|
+
* クレジットカード削除
|
|
13489
|
+
*/
|
|
13490
|
+
PersonOwnershipInfoService.prototype.deleteCreditCard = function (params) {
|
|
13491
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13492
|
+
var id;
|
|
13493
|
+
return __generator(this, function (_a) {
|
|
13494
|
+
switch (_a.label) {
|
|
13495
|
+
case 0:
|
|
13496
|
+
id = 'me';
|
|
13497
|
+
return [4 /*yield*/, this.fetch({
|
|
13498
|
+
uri: "/people/" + id + "/paymentMethod/creditCards/" + String(params.cardSeq),
|
|
13499
|
+
method: 'DELETE',
|
|
13500
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
13501
|
+
qs: { iss: params.iss }
|
|
13502
|
+
})];
|
|
13503
|
+
case 1:
|
|
13504
|
+
_a.sent();
|
|
13505
|
+
return [2 /*return*/];
|
|
13506
|
+
}
|
|
13507
|
+
});
|
|
13508
|
+
});
|
|
13509
|
+
};
|
|
13510
|
+
/**
|
|
13511
|
+
* 所有権検索
|
|
13512
|
+
*/
|
|
13513
|
+
PersonOwnershipInfoService.prototype.search = function (params) {
|
|
13514
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13515
|
+
var id;
|
|
13516
|
+
var _this = this;
|
|
13517
|
+
return __generator(this, function (_a) {
|
|
13518
|
+
id = 'me';
|
|
13519
|
+
return [2 /*return*/, this.fetch({
|
|
13520
|
+
uri: "/people/" + id + "/ownershipInfos",
|
|
13521
|
+
method: 'GET',
|
|
13522
|
+
qs: params,
|
|
13523
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
13524
|
+
})
|
|
13525
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
13526
|
+
var _a;
|
|
13527
|
+
return __generator(this, function (_b) {
|
|
13528
|
+
switch (_b.label) {
|
|
13529
|
+
case 0:
|
|
13530
|
+
_a = {};
|
|
13531
|
+
return [4 /*yield*/, response.json()];
|
|
13532
|
+
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
13533
|
+
_a)];
|
|
13534
|
+
}
|
|
13535
|
+
});
|
|
13536
|
+
}); })];
|
|
13537
|
+
});
|
|
13538
|
+
});
|
|
13539
|
+
};
|
|
13540
|
+
/**
|
|
13541
|
+
* 会員所有権削除
|
|
13542
|
+
*/
|
|
13543
|
+
PersonOwnershipInfoService.prototype.deleteOwnershipInfoById = function (params) {
|
|
13544
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13545
|
+
var id;
|
|
13546
|
+
return __generator(this, function (_a) {
|
|
13547
|
+
switch (_a.label) {
|
|
13548
|
+
case 0:
|
|
13549
|
+
id = 'me';
|
|
13550
|
+
return [4 /*yield*/, this.fetch({
|
|
13551
|
+
uri: "/people/" + id + "/ownershipInfos/" + String(params.ownershipInfoId),
|
|
13552
|
+
method: 'DELETE',
|
|
13553
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
13554
|
+
// qs: { iss: params.iss }
|
|
13555
|
+
})];
|
|
13556
|
+
case 1:
|
|
13557
|
+
_a.sent();
|
|
13558
|
+
return [2 /*return*/];
|
|
13559
|
+
}
|
|
13560
|
+
});
|
|
13561
|
+
});
|
|
13562
|
+
};
|
|
13563
|
+
/**
|
|
13564
|
+
* マイペイメントカード入出金検索
|
|
13565
|
+
*/
|
|
13566
|
+
PersonOwnershipInfoService.prototype.searchPaymentCardMoneyTransferActions = function (params) {
|
|
13567
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
13568
|
+
var ownershipInfoId, query, personId;
|
|
13569
|
+
var _this = this;
|
|
13570
|
+
return __generator(this, function (_a) {
|
|
13571
|
+
ownershipInfoId = params.ownershipInfoId, query = __rest(params, ["ownershipInfoId"]);
|
|
13572
|
+
personId = 'me';
|
|
13573
|
+
return [2 /*return*/, this.fetch({
|
|
13574
|
+
uri: "/people/" + personId + "/ownershipInfos/" + ownershipInfoId + "/actions/moneyTransfer",
|
|
13575
|
+
method: 'GET',
|
|
13576
|
+
qs: query,
|
|
13577
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
13578
|
+
})
|
|
13579
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
13580
|
+
var _a;
|
|
13581
|
+
return __generator(this, function (_b) {
|
|
13582
|
+
switch (_b.label) {
|
|
13583
|
+
case 0:
|
|
13584
|
+
_a = {};
|
|
13585
|
+
return [4 /*yield*/, response.json()];
|
|
13586
|
+
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
13587
|
+
_a)];
|
|
13588
|
+
}
|
|
13589
|
+
});
|
|
13590
|
+
}); })];
|
|
13591
|
+
});
|
|
13592
|
+
});
|
|
13593
|
+
};
|
|
13594
|
+
return PersonOwnershipInfoService;
|
|
13595
|
+
}(service_1.Service));
|
|
13596
|
+
exports.PersonOwnershipInfoService = PersonOwnershipInfoService;
|
|
13597
|
+
|
|
13598
|
+
},{"../../service":139,"http-status":371}],80:[function(require,module,exports){
|
|
13432
13599
|
"use strict";
|
|
13433
13600
|
var __extends = (this && this.__extends) || (function () {
|
|
13434
13601
|
var extendStatics = function (d, b) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "10.7.0-alpha.
|
|
3
|
+
"version": "10.7.0-alpha.2",
|
|
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.381.0-alpha.
|
|
95
|
+
"@chevre/factory": "4.381.0-alpha.11",
|
|
96
96
|
"debug": "3.2.7",
|
|
97
97
|
"http-status": "1.7.4",
|
|
98
98
|
"idtoken-verifier": "2.0.3",
|