@cinerino/sdk 3.28.0-alpha.1 → 3.28.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/CHANGELOG.md +2 -0
- package/example/playground/public/lib/bundle.js +17 -9
- package/example/src/chevre/searchCreditCards.ts +1 -0
- package/example/src/chevre/transaction/processPayCreditCard.ts +1 -0
- package/example/src/chevre/transaction/processPayMGTicket.ts +1 -0
- package/example/src/chevre/transaction/processPayMovieTicket.ts +1 -0
- package/example/src/chevre/transaction/processPublishPaymentUrl.ts +1 -0
- package/lib/bundle.js +17 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5500,7 +5500,8 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
|
|
|
5500
5500
|
uri: "/assetTransactions/" + factory.assetTransactionType.Pay + "/publishPaymentUrl",
|
|
5501
5501
|
method: 'POST',
|
|
5502
5502
|
body: params,
|
|
5503
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
5503
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
5504
|
+
qs: { iss: params.iss }
|
|
5504
5505
|
})
|
|
5505
5506
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
5506
5507
|
return [2 /*return*/, response.json()];
|
|
@@ -5519,7 +5520,8 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
|
|
|
5519
5520
|
uri: "/assetTransactions/" + factory.assetTransactionType.Pay + "/start",
|
|
5520
5521
|
method: 'POST',
|
|
5521
5522
|
body: params,
|
|
5522
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
5523
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
5524
|
+
qs: { iss: params.iss }
|
|
5523
5525
|
})
|
|
5524
5526
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
5525
5527
|
return [2 /*return*/, response.json()];
|
|
@@ -8207,7 +8209,8 @@ var PersonService = /** @class */ (function (_super) {
|
|
|
8207
8209
|
return [2 /*return*/, this.fetch({
|
|
8208
8210
|
uri: "/people/" + id + "/profile",
|
|
8209
8211
|
method: 'GET',
|
|
8210
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
8212
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
8213
|
+
qs: { iss: params.iss }
|
|
8211
8214
|
})
|
|
8212
8215
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8213
8216
|
return [2 /*return*/, response.json()];
|
|
@@ -8229,7 +8232,8 @@ var PersonService = /** @class */ (function (_super) {
|
|
|
8229
8232
|
uri: "/people/" + id + "/profile",
|
|
8230
8233
|
method: 'PATCH',
|
|
8231
8234
|
body: params,
|
|
8232
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
8235
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
8236
|
+
qs: { iss: params.iss }
|
|
8233
8237
|
})];
|
|
8234
8238
|
case 1:
|
|
8235
8239
|
_a.sent();
|
|
@@ -8278,7 +8282,8 @@ var PersonService = /** @class */ (function (_super) {
|
|
|
8278
8282
|
return [2 /*return*/, this.fetch({
|
|
8279
8283
|
uri: "/people/" + id,
|
|
8280
8284
|
method: 'GET',
|
|
8281
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
8285
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
8286
|
+
qs: { iss: params.iss }
|
|
8282
8287
|
})
|
|
8283
8288
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8284
8289
|
return [2 /*return*/, response.json()];
|
|
@@ -8300,7 +8305,8 @@ var PersonService = /** @class */ (function (_super) {
|
|
|
8300
8305
|
uri: "/people/" + id,
|
|
8301
8306
|
method: 'DELETE',
|
|
8302
8307
|
body: params,
|
|
8303
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
8308
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
8309
|
+
qs: { iss: params.iss }
|
|
8304
8310
|
})];
|
|
8305
8311
|
case 1:
|
|
8306
8312
|
_a.sent();
|
|
@@ -8389,7 +8395,8 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
8389
8395
|
uri: "/people/" + String(params.id) + "/paymentMethod/creditCards",
|
|
8390
8396
|
method: 'POST',
|
|
8391
8397
|
body: params.creditCard,
|
|
8392
|
-
expectedStatusCodes: [http_status_1.CREATED]
|
|
8398
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8399
|
+
qs: { iss: params.iss }
|
|
8393
8400
|
})
|
|
8394
8401
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8395
8402
|
return [2 /*return*/, response.json()];
|
|
@@ -8407,7 +8414,7 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
8407
8414
|
return [2 /*return*/, this.fetch({
|
|
8408
8415
|
uri: "/people/" + String(params.id) + "/paymentMethod/creditCards",
|
|
8409
8416
|
method: 'GET',
|
|
8410
|
-
qs: {},
|
|
8417
|
+
qs: { iss: params.iss },
|
|
8411
8418
|
expectedStatusCodes: [http_status_1.OK]
|
|
8412
8419
|
})
|
|
8413
8420
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -8426,7 +8433,8 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
8426
8433
|
case 0: return [4 /*yield*/, this.fetch({
|
|
8427
8434
|
uri: "/people/" + String(params.id) + "/paymentMethod/creditCards/" + String(params.cardSeq),
|
|
8428
8435
|
method: 'DELETE',
|
|
8429
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
8436
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
8437
|
+
qs: { iss: params.iss }
|
|
8430
8438
|
})];
|
|
8431
8439
|
case 1:
|
|
8432
8440
|
_a.sent();
|
|
@@ -35,6 +35,7 @@ async function main() {
|
|
|
35
35
|
|
|
36
36
|
console.log('starting transaction...transactionNumber:', transactionNumber);
|
|
37
37
|
const transaction = await payService.start({
|
|
38
|
+
iss: '',
|
|
38
39
|
project: { typeOf: client.factory.organizationType.Project, id: project.id },
|
|
39
40
|
typeOf: client.factory.assetTransactionType.Pay,
|
|
40
41
|
transactionNumber: transactionNumber,
|
|
@@ -34,6 +34,7 @@ async function main() {
|
|
|
34
34
|
|
|
35
35
|
console.log('starting transaction...transactionNumber:', transactionNumber);
|
|
36
36
|
const transaction = await payService.start({
|
|
37
|
+
iss: '',
|
|
37
38
|
project: { typeOf: client.factory.organizationType.Project, id: project.id },
|
|
38
39
|
typeOf: client.factory.assetTransactionType.Pay,
|
|
39
40
|
transactionNumber: transactionNumber,
|
|
@@ -35,6 +35,7 @@ async function main() {
|
|
|
35
35
|
|
|
36
36
|
console.log('starting transaction...transactionNumber:', transactionNumber);
|
|
37
37
|
const transaction = await payService.start({
|
|
38
|
+
iss: '',
|
|
38
39
|
project: { typeOf: client.factory.organizationType.Project, id: project.id },
|
|
39
40
|
typeOf: client.factory.assetTransactionType.Pay,
|
|
40
41
|
transactionNumber: transactionNumber,
|
|
@@ -34,6 +34,7 @@ async function main() {
|
|
|
34
34
|
|
|
35
35
|
console.log('starting transaction...transactionNumber:', transactionNumber);
|
|
36
36
|
const publishResult = await payService.publishPaymentUrl({
|
|
37
|
+
iss: '',
|
|
37
38
|
project: { id: project.id, typeOf: client.factory.organizationType.Project },
|
|
38
39
|
typeOf: client.factory.assetTransactionType.Pay,
|
|
39
40
|
transactionNumber: transactionNumber,
|
package/lib/bundle.js
CHANGED
|
@@ -5500,7 +5500,8 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
|
|
|
5500
5500
|
uri: "/assetTransactions/" + factory.assetTransactionType.Pay + "/publishPaymentUrl",
|
|
5501
5501
|
method: 'POST',
|
|
5502
5502
|
body: params,
|
|
5503
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
5503
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
5504
|
+
qs: { iss: params.iss }
|
|
5504
5505
|
})
|
|
5505
5506
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
5506
5507
|
return [2 /*return*/, response.json()];
|
|
@@ -5519,7 +5520,8 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
|
|
|
5519
5520
|
uri: "/assetTransactions/" + factory.assetTransactionType.Pay + "/start",
|
|
5520
5521
|
method: 'POST',
|
|
5521
5522
|
body: params,
|
|
5522
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
5523
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
5524
|
+
qs: { iss: params.iss }
|
|
5523
5525
|
})
|
|
5524
5526
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
5525
5527
|
return [2 /*return*/, response.json()];
|
|
@@ -8207,7 +8209,8 @@ var PersonService = /** @class */ (function (_super) {
|
|
|
8207
8209
|
return [2 /*return*/, this.fetch({
|
|
8208
8210
|
uri: "/people/" + id + "/profile",
|
|
8209
8211
|
method: 'GET',
|
|
8210
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
8212
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
8213
|
+
qs: { iss: params.iss }
|
|
8211
8214
|
})
|
|
8212
8215
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8213
8216
|
return [2 /*return*/, response.json()];
|
|
@@ -8229,7 +8232,8 @@ var PersonService = /** @class */ (function (_super) {
|
|
|
8229
8232
|
uri: "/people/" + id + "/profile",
|
|
8230
8233
|
method: 'PATCH',
|
|
8231
8234
|
body: params,
|
|
8232
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
8235
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
8236
|
+
qs: { iss: params.iss }
|
|
8233
8237
|
})];
|
|
8234
8238
|
case 1:
|
|
8235
8239
|
_a.sent();
|
|
@@ -8278,7 +8282,8 @@ var PersonService = /** @class */ (function (_super) {
|
|
|
8278
8282
|
return [2 /*return*/, this.fetch({
|
|
8279
8283
|
uri: "/people/" + id,
|
|
8280
8284
|
method: 'GET',
|
|
8281
|
-
expectedStatusCodes: [http_status_1.OK]
|
|
8285
|
+
expectedStatusCodes: [http_status_1.OK],
|
|
8286
|
+
qs: { iss: params.iss }
|
|
8282
8287
|
})
|
|
8283
8288
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8284
8289
|
return [2 /*return*/, response.json()];
|
|
@@ -8300,7 +8305,8 @@ var PersonService = /** @class */ (function (_super) {
|
|
|
8300
8305
|
uri: "/people/" + id,
|
|
8301
8306
|
method: 'DELETE',
|
|
8302
8307
|
body: params,
|
|
8303
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
8308
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
8309
|
+
qs: { iss: params.iss }
|
|
8304
8310
|
})];
|
|
8305
8311
|
case 1:
|
|
8306
8312
|
_a.sent();
|
|
@@ -8389,7 +8395,8 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
8389
8395
|
uri: "/people/" + String(params.id) + "/paymentMethod/creditCards",
|
|
8390
8396
|
method: 'POST',
|
|
8391
8397
|
body: params.creditCard,
|
|
8392
|
-
expectedStatusCodes: [http_status_1.CREATED]
|
|
8398
|
+
expectedStatusCodes: [http_status_1.CREATED],
|
|
8399
|
+
qs: { iss: params.iss }
|
|
8393
8400
|
})
|
|
8394
8401
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
8395
8402
|
return [2 /*return*/, response.json()];
|
|
@@ -8407,7 +8414,7 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
8407
8414
|
return [2 /*return*/, this.fetch({
|
|
8408
8415
|
uri: "/people/" + String(params.id) + "/paymentMethod/creditCards",
|
|
8409
8416
|
method: 'GET',
|
|
8410
|
-
qs: {},
|
|
8417
|
+
qs: { iss: params.iss },
|
|
8411
8418
|
expectedStatusCodes: [http_status_1.OK]
|
|
8412
8419
|
})
|
|
8413
8420
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
@@ -8426,7 +8433,8 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
|
|
|
8426
8433
|
case 0: return [4 /*yield*/, this.fetch({
|
|
8427
8434
|
uri: "/people/" + String(params.id) + "/paymentMethod/creditCards/" + String(params.cardSeq),
|
|
8428
8435
|
method: 'DELETE',
|
|
8429
|
-
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
8436
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT],
|
|
8437
|
+
qs: { iss: params.iss }
|
|
8430
8438
|
})];
|
|
8431
8439
|
case 1:
|
|
8432
8440
|
_a.sent();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "3.28.0-alpha.
|
|
3
|
+
"version": "3.28.0-alpha.2",
|
|
4
4
|
"description": "Cinerino SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"watchify": "^3.11.1"
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
|
-
"@cinerino/api-abstract-client": "3.28.0-alpha.
|
|
100
|
+
"@cinerino/api-abstract-client": "3.28.0-alpha.2",
|
|
101
101
|
"debug": "^3.2.6",
|
|
102
102
|
"http-status": "^1.4.2",
|
|
103
103
|
"idtoken-verifier": "^2.0.3",
|