@cinerino/sdk 3.40.0-alpha.3 → 3.40.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 +75 -8
- package/lib/bundle.js +436 -369
- package/package.json +2 -2
- package/CHANGELOG.md +0 -908
- package/example/.gitignore +0 -1
- package/example/playground/.gitignore +0 -15
|
@@ -8415,6 +8415,36 @@ var PersonService = /** @class */ (function (_super) {
|
|
|
8415
8415
|
});
|
|
8416
8416
|
});
|
|
8417
8417
|
};
|
|
8418
|
+
/**
|
|
8419
|
+
* 注文を検索する
|
|
8420
|
+
*/
|
|
8421
|
+
PersonService.prototype.searchOrders = function (params) {
|
|
8422
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8423
|
+
var id;
|
|
8424
|
+
var _this = this;
|
|
8425
|
+
return __generator(this, function (_a) {
|
|
8426
|
+
id = (typeof params.id === 'string') ? params.id : 'me';
|
|
8427
|
+
return [2 /*return*/, this.fetch({
|
|
8428
|
+
uri: "/people/" + id + "/orders",
|
|
8429
|
+
method: 'GET',
|
|
8430
|
+
qs: params,
|
|
8431
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
8432
|
+
})
|
|
8433
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
8434
|
+
var _a;
|
|
8435
|
+
return __generator(this, function (_b) {
|
|
8436
|
+
switch (_b.label) {
|
|
8437
|
+
case 0:
|
|
8438
|
+
_a = {};
|
|
8439
|
+
return [4 /*yield*/, response.json()];
|
|
8440
|
+
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
8441
|
+
_a)];
|
|
8442
|
+
}
|
|
8443
|
+
});
|
|
8444
|
+
}); })];
|
|
8445
|
+
});
|
|
8446
|
+
});
|
|
8447
|
+
};
|
|
8418
8448
|
/**
|
|
8419
8449
|
* 会員検索
|
|
8420
8450
|
*/
|
|
@@ -8562,10 +8592,12 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
8562
8592
|
*/
|
|
8563
8593
|
PersonOwnershipInfoService.prototype.addCreditCard = function (params) {
|
|
8564
8594
|
return __awaiter(this, void 0, void 0, function () {
|
|
8595
|
+
var id;
|
|
8565
8596
|
var _this = this;
|
|
8566
8597
|
return __generator(this, function (_a) {
|
|
8598
|
+
id = (typeof params.id === 'string') ? params.id : 'me';
|
|
8567
8599
|
return [2 /*return*/, this.fetch({
|
|
8568
|
-
uri: "/people/" +
|
|
8600
|
+
uri: "/people/" + id + "/paymentMethod/creditCards",
|
|
8569
8601
|
method: 'POST',
|
|
8570
8602
|
body: params.creditCard,
|
|
8571
8603
|
expectedStatusCodes: [http_status_1.CREATED],
|
|
@@ -8582,10 +8614,12 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
8582
8614
|
*/
|
|
8583
8615
|
PersonOwnershipInfoService.prototype.searchCreditCards = function (params) {
|
|
8584
8616
|
return __awaiter(this, void 0, void 0, function () {
|
|
8617
|
+
var id;
|
|
8585
8618
|
var _this = this;
|
|
8586
8619
|
return __generator(this, function (_a) {
|
|
8620
|
+
id = (typeof params.id === 'string') ? params.id : 'me';
|
|
8587
8621
|
return [2 /*return*/, this.fetch({
|
|
8588
|
-
uri: "/people/" +
|
|
8622
|
+
uri: "/people/" + id + "/paymentMethod/creditCards",
|
|
8589
8623
|
method: 'GET',
|
|
8590
8624
|
qs: { iss: params.iss },
|
|
8591
8625
|
expectedStatusCodes: [http_status_1.OK]
|
|
@@ -8601,14 +8635,17 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
8601
8635
|
*/
|
|
8602
8636
|
PersonOwnershipInfoService.prototype.deleteCreditCard = function (params) {
|
|
8603
8637
|
return __awaiter(this, void 0, void 0, function () {
|
|
8638
|
+
var id;
|
|
8604
8639
|
return __generator(this, function (_a) {
|
|
8605
8640
|
switch (_a.label) {
|
|
8606
|
-
case 0:
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8641
|
+
case 0:
|
|
8642
|
+
id = (typeof params.id === 'string') ? params.id : 'me';
|
|
8643
|
+
return [4 /*yield*/, this.fetch({
|
|
8644
|
+
uri: "/people/" + id + "/paymentMethod/creditCards/" + String(params.cardSeq),
|
|
8645
|
+
method: 'DELETE',
|
|
8646
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
8647
|
+
qs: { iss: params.iss }
|
|
8648
|
+
})];
|
|
8612
8649
|
case 1:
|
|
8613
8650
|
_a.sent();
|
|
8614
8651
|
return [2 /*return*/];
|
|
@@ -8690,6 +8727,36 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
8690
8727
|
});
|
|
8691
8728
|
});
|
|
8692
8729
|
};
|
|
8730
|
+
/**
|
|
8731
|
+
* マイペイメントカード入出金検索
|
|
8732
|
+
*/
|
|
8733
|
+
PersonOwnershipInfoService.prototype.searchPaymentCardMoneyTransferActions = function (params) {
|
|
8734
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8735
|
+
var id;
|
|
8736
|
+
var _this = this;
|
|
8737
|
+
return __generator(this, function (_a) {
|
|
8738
|
+
id = (typeof params.id === 'string') ? params.id : 'me';
|
|
8739
|
+
return [2 /*return*/, this.fetch({
|
|
8740
|
+
uri: "/people/" + id + "/ownershipInfos/" + params.ownershipInfoId + "/actions/moneyTransfer",
|
|
8741
|
+
method: 'GET',
|
|
8742
|
+
qs: params,
|
|
8743
|
+
expectedStatusCodes: [http_status_1.OK]
|
|
8744
|
+
})
|
|
8745
|
+
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
8746
|
+
var _a;
|
|
8747
|
+
return __generator(this, function (_b) {
|
|
8748
|
+
switch (_b.label) {
|
|
8749
|
+
case 0:
|
|
8750
|
+
_a = {};
|
|
8751
|
+
return [4 /*yield*/, response.json()];
|
|
8752
|
+
case 1: return [2 /*return*/, (_a.data = _b.sent(),
|
|
8753
|
+
_a)];
|
|
8754
|
+
}
|
|
8755
|
+
});
|
|
8756
|
+
}); })];
|
|
8757
|
+
});
|
|
8758
|
+
});
|
|
8759
|
+
};
|
|
8693
8760
|
return PersonOwnershipInfoService;
|
|
8694
8761
|
}(service_1.Service));
|
|
8695
8762
|
exports.PersonOwnershipInfoService = PersonOwnershipInfoService;
|