@cinerino/sdk 3.144.2 → 3.146.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.
@@ -2306,7 +2306,6 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
2306
2306
  method: 'POST',
2307
2307
  body: params,
2308
2308
  expectedStatusCodes: [http_status_1.OK]
2309
- // qs: { iss: params.iss }
2310
2309
  })
2311
2310
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2312
2311
  return [2 /*return*/, response.json()];
@@ -2326,7 +2325,6 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
2326
2325
  method: 'POST',
2327
2326
  body: params,
2328
2327
  expectedStatusCodes: [http_status_1.OK]
2329
- // qs: { iss: params.iss }
2330
2328
  })
2331
2329
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2332
2330
  return [2 /*return*/, response.json()];
@@ -5986,60 +5984,6 @@ var PaymentService = /** @class */ (function (_super) {
5986
5984
  });
5987
5985
  });
5988
5986
  };
5989
- /**
5990
- * MovieTicket認証
5991
- */
5992
- // public async checkMovieTicket(
5993
- // params: {
5994
- // object: {
5995
- // /**
5996
- // * 決済サービスID
5997
- // */
5998
- // id: string;
5999
- // paymentMethod: {
6000
- // /**
6001
- // * 決済方法区分
6002
- // */
6003
- // typeOf: string;
6004
- // };
6005
- // movieTickets: factory.action.check.paymentMethod.movieTicket.IMovieTicketResult[];
6006
- // /**
6007
- // * 販売者
6008
- // */
6009
- // seller: { id: string };
6010
- // };
6011
- // }
6012
- // ): Promise<ICheckMovieTicketResult> {
6013
- // return this.fetch({
6014
- // uri: `/payment/${factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,
6015
- // method: 'POST',
6016
- // expectedStatusCodes: [OK],
6017
- // body: params
6018
- // })
6019
- // .then(async (response) => response.json());
6020
- // }
6021
- /**
6022
- * ペイメントカード認証
6023
- */
6024
- // public async checkPaymentCard(params: {
6025
- // object: {
6026
- // typeOf: factory.permit.PermitType.Permit;
6027
- // identifier: string;
6028
- // accessCode: string;
6029
- // /**
6030
- // * 許可証発行元のプロダクト
6031
- // */
6032
- // issuedThrough: { id: string };
6033
- // };
6034
- // }): Promise<factory.paymentMethod.paymentCard.IPaymentCard> {
6035
- // return this.fetch({
6036
- // uri: `/payment/${factory.product.ProductType.PaymentCard}/check`,
6037
- // method: 'POST',
6038
- // expectedStatusCodes: [OK],
6039
- // body: params
6040
- // })
6041
- // .then(async (response) => response.json());
6042
- // }
6043
5987
  /**
6044
5988
  * 対面決済承認取消
6045
5989
  */
@@ -11821,9 +11765,7 @@ var PaymentService = /** @class */ (function (_super) {
11821
11765
  /**
11822
11766
  * MovieTicket認証
11823
11767
  */
11824
- PaymentService.prototype.checkMovieTicket = function (
11825
- // params: factory.action.check.paymentMethod.movieTicket.IObject
11826
- params) {
11768
+ PaymentService.prototype.checkMovieTicket = function (params) {
11827
11769
  return __awaiter(this, void 0, void 0, function () {
11828
11770
  var _this = this;
11829
11771
  return __generator(this, function (_a) {
@@ -301,8 +301,8 @@ async function main() {
301
301
  };
302
302
  }),
303
303
  seller: { id: String(transaction.seller.id) }
304
-
305
- }
304
+ },
305
+ purpose: { id: transaction.id, typeOf: transaction.typeOf }
306
306
  });
307
307
  console.log('movie ticket:', checkMovieTicketAction);
308
308
  const checkMovieTicketActionResult = checkMovieTicketAction;
@@ -147,7 +147,8 @@ async function main() {
147
147
  };
148
148
  }),
149
149
  seller: { id: String(transaction.seller.id) }
150
- }
150
+ },
151
+ purpose: { id: transaction.id, typeOf: transaction.typeOf }
151
152
  });
152
153
  console.log('movie ticket:', checkMovieTicketAction);
153
154
  const checkMovieTicketActionResult = checkMovieTicketAction;
@@ -19,11 +19,11 @@ export declare class PayAssetTransactionService extends Service {
19
19
  /**
20
20
  * 決済ロケーション発行
21
21
  */
22
- publishPaymentUrl(params: factory.assetTransaction.pay.IStartParamsWithoutDetail & {}): Promise<IPublishPaymentUrlResult>;
22
+ publishPaymentUrl(params: factory.assetTransaction.pay.IStartParamsWithoutDetail): Promise<IPublishPaymentUrlResult>;
23
23
  /**
24
24
  * 取引開始
25
25
  */
26
- start(params: factory.assetTransaction.pay.IStartParamsWithoutDetail & {}): Promise<factory.assetTransaction.pay.ITransaction>;
26
+ start(params: factory.assetTransaction.pay.IStartParamsWithoutDetail): Promise<factory.assetTransaction.pay.ITransaction>;
27
27
  /**
28
28
  * 取引確定
29
29
  */
@@ -116,7 +116,6 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
116
116
  method: 'POST',
117
117
  body: params,
118
118
  expectedStatusCodes: [http_status_1.OK]
119
- // qs: { iss: params.iss }
120
119
  })
121
120
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
122
121
  return [2 /*return*/, response.json()];
@@ -136,7 +135,6 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
136
135
  method: 'POST',
137
136
  body: params,
138
137
  expectedStatusCodes: [http_status_1.OK]
139
- // qs: { iss: params.iss }
140
138
  })
141
139
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
142
140
  return [2 /*return*/, response.json()];
@@ -7,7 +7,7 @@ export declare class CommentService extends Service {
7
7
  /**
8
8
  * 作成
9
9
  */
10
- create(params: Pick<factory.creativeWork.comment.IComment, 'about' | 'author' | 'additionalProperty' | 'text'>): Promise<factory.creativeWork.comment.IComment>;
10
+ create(params: Pick<factory.creativeWork.comment.IComment, 'about' | 'author' | 'additionalProperty' | 'mentions' | 'text'>): Promise<factory.creativeWork.comment.IComment>;
11
11
  /**
12
12
  * 検索
13
13
  */
@@ -14,10 +14,11 @@ export interface IAuthorizeResult {
14
14
  */
15
15
  id: string;
16
16
  }
17
+ /**
18
+ * 認証結果としてのMovieTicket
19
+ */
20
+ export declare type IMovieTicketAsCheckResult = Pick<factory.action.check.paymentMethod.movieTicket.IMovieTicket, 'accessCode' | 'amount' | 'category' | 'identifier' | 'serviceType' | 'typeOf'>;
17
21
  export interface ICheckMovieTicketResult {
18
22
  purchaseNumberAuthResult: factory.action.check.paymentMethod.movieTicket.IPurchaseNumberAuthResult;
19
- /**
20
- * 認証結果としてのムビチケリスト
21
- */
22
- movieTickets: factory.action.check.paymentMethod.movieTicket.IMovieTicket[];
23
+ movieTickets: IMovieTicketAsCheckResult[];
23
24
  }
@@ -40,12 +40,6 @@ export declare class PaymentService extends Service {
40
40
  object: factory.action.authorize.paymentMethod.any.IObject;
41
41
  purpose: IPurpose;
42
42
  }): Promise<IPublishPaymentUrlResult>;
43
- /**
44
- * MovieTicket認証
45
- */
46
- /**
47
- * ペイメントカード認証
48
- */
49
43
  /**
50
44
  * 対面決済承認取消
51
45
  */
@@ -158,60 +158,6 @@ var PaymentService = /** @class */ (function (_super) {
158
158
  });
159
159
  });
160
160
  };
161
- /**
162
- * MovieTicket認証
163
- */
164
- // public async checkMovieTicket(
165
- // params: {
166
- // object: {
167
- // /**
168
- // * 決済サービスID
169
- // */
170
- // id: string;
171
- // paymentMethod: {
172
- // /**
173
- // * 決済方法区分
174
- // */
175
- // typeOf: string;
176
- // };
177
- // movieTickets: factory.action.check.paymentMethod.movieTicket.IMovieTicketResult[];
178
- // /**
179
- // * 販売者
180
- // */
181
- // seller: { id: string };
182
- // };
183
- // }
184
- // ): Promise<ICheckMovieTicketResult> {
185
- // return this.fetch({
186
- // uri: `/payment/${factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,
187
- // method: 'POST',
188
- // expectedStatusCodes: [OK],
189
- // body: params
190
- // })
191
- // .then(async (response) => response.json());
192
- // }
193
- /**
194
- * ペイメントカード認証
195
- */
196
- // public async checkPaymentCard(params: {
197
- // object: {
198
- // typeOf: factory.permit.PermitType.Permit;
199
- // identifier: string;
200
- // accessCode: string;
201
- // /**
202
- // * 許可証発行元のプロダクト
203
- // */
204
- // issuedThrough: { id: string };
205
- // };
206
- // }): Promise<factory.paymentMethod.paymentCard.IPaymentCard> {
207
- // return this.fetch({
208
- // uri: `/payment/${factory.product.ProductType.PaymentCard}/check`,
209
- // method: 'POST',
210
- // expectedStatusCodes: [OK],
211
- // body: params
212
- // })
213
- // .then(async (response) => response.json());
214
- // }
215
161
  /**
216
162
  * 対面決済承認取消
217
163
  */
@@ -63,6 +63,7 @@ export declare class PaymentService extends Service {
63
63
  id: string;
64
64
  };
65
65
  };
66
+ purpose: IPurpose;
66
67
  }): Promise<ICheckMovieTicketResult>;
67
68
  /**
68
69
  * ペイメントカード認証
@@ -161,9 +161,7 @@ var PaymentService = /** @class */ (function (_super) {
161
161
  /**
162
162
  * MovieTicket認証
163
163
  */
164
- PaymentService.prototype.checkMovieTicket = function (
165
- // params: factory.action.check.paymentMethod.movieTicket.IObject
166
- params) {
164
+ PaymentService.prototype.checkMovieTicket = function (params) {
167
165
  return __awaiter(this, void 0, void 0, function () {
168
166
  var _this = this;
169
167
  return __generator(this, function (_a) {
package/lib/bundle.js CHANGED
@@ -2306,7 +2306,6 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
2306
2306
  method: 'POST',
2307
2307
  body: params,
2308
2308
  expectedStatusCodes: [http_status_1.OK]
2309
- // qs: { iss: params.iss }
2310
2309
  })
2311
2310
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2312
2311
  return [2 /*return*/, response.json()];
@@ -2326,7 +2325,6 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
2326
2325
  method: 'POST',
2327
2326
  body: params,
2328
2327
  expectedStatusCodes: [http_status_1.OK]
2329
- // qs: { iss: params.iss }
2330
2328
  })
2331
2329
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
2332
2330
  return [2 /*return*/, response.json()];
@@ -5986,60 +5984,6 @@ var PaymentService = /** @class */ (function (_super) {
5986
5984
  });
5987
5985
  });
5988
5986
  };
5989
- /**
5990
- * MovieTicket認証
5991
- */
5992
- // public async checkMovieTicket(
5993
- // params: {
5994
- // object: {
5995
- // /**
5996
- // * 決済サービスID
5997
- // */
5998
- // id: string;
5999
- // paymentMethod: {
6000
- // /**
6001
- // * 決済方法区分
6002
- // */
6003
- // typeOf: string;
6004
- // };
6005
- // movieTickets: factory.action.check.paymentMethod.movieTicket.IMovieTicketResult[];
6006
- // /**
6007
- // * 販売者
6008
- // */
6009
- // seller: { id: string };
6010
- // };
6011
- // }
6012
- // ): Promise<ICheckMovieTicketResult> {
6013
- // return this.fetch({
6014
- // uri: `/payment/${factory.service.paymentService.PaymentServiceType.MovieTicket}/check`,
6015
- // method: 'POST',
6016
- // expectedStatusCodes: [OK],
6017
- // body: params
6018
- // })
6019
- // .then(async (response) => response.json());
6020
- // }
6021
- /**
6022
- * ペイメントカード認証
6023
- */
6024
- // public async checkPaymentCard(params: {
6025
- // object: {
6026
- // typeOf: factory.permit.PermitType.Permit;
6027
- // identifier: string;
6028
- // accessCode: string;
6029
- // /**
6030
- // * 許可証発行元のプロダクト
6031
- // */
6032
- // issuedThrough: { id: string };
6033
- // };
6034
- // }): Promise<factory.paymentMethod.paymentCard.IPaymentCard> {
6035
- // return this.fetch({
6036
- // uri: `/payment/${factory.product.ProductType.PaymentCard}/check`,
6037
- // method: 'POST',
6038
- // expectedStatusCodes: [OK],
6039
- // body: params
6040
- // })
6041
- // .then(async (response) => response.json());
6042
- // }
6043
5987
  /**
6044
5988
  * 対面決済承認取消
6045
5989
  */
@@ -11821,9 +11765,7 @@ var PaymentService = /** @class */ (function (_super) {
11821
11765
  /**
11822
11766
  * MovieTicket認証
11823
11767
  */
11824
- PaymentService.prototype.checkMovieTicket = function (
11825
- // params: factory.action.check.paymentMethod.movieTicket.IObject
11826
- params) {
11768
+ PaymentService.prototype.checkMovieTicket = function (params) {
11827
11769
  return __awaiter(this, void 0, void 0, function () {
11828
11770
  var _this = this;
11829
11771
  return __generator(this, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.144.2",
3
+ "version": "3.146.0",
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
- "@chevre/factory": "4.295.0",
100
+ "@chevre/factory": "4.298.0",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",
@@ -1,82 +0,0 @@
1
- // tslint:disable:no-console
2
- /**
3
- * 決済カード照会
4
- */
5
- // tslint:disable-next-line:no-implicit-dependencies
6
- // import * as moment from 'moment';
7
- import * as client from '../../../lib/index';
8
- // import * as auth from '../authAsAdmin';
9
-
10
- const projectId = 'cinerino';
11
-
12
- const authClient = new client.auth.ClientCredentials({
13
- domain: <string>process.env.TEST_AUTHORIZE_SERVER_DOMAIN,
14
- clientId: <string>process.env.TEST_CLIENT_ID,
15
- clientSecret: <string>process.env.TEST_CLIENT_SECRET,
16
- scopes: [],
17
- state: ''
18
- });
19
-
20
- const paymentService = new client.service.Payment({
21
- endpoint: <string>process.env.API_ENDPOINT,
22
- auth: authClient,
23
- project: { id: projectId }
24
- });
25
-
26
- const movieTickets = [
27
- {
28
- typeOf: 'MovieTicket',
29
- identifier: '2686741478',
30
- accessCode: '3896'
31
- }
32
- // {
33
- // typeOf: 'MGTicket',
34
- // identifier: "AA5919737",
35
- // accessCode: "49256768349",
36
- // }
37
- ];
38
-
39
- export async function main() {
40
- // ムビチケ認証
41
- const checkMovieTicketResult = await paymentService.checkMovieTicket({
42
- object: {
43
- id: '5f9a52994f3709000abe6417',
44
- paymentMethod: {
45
- typeOf: movieTickets[0].typeOf
46
- },
47
- movieTickets: movieTickets.map((movieTicket) => {
48
- return {
49
- ...movieTicket,
50
- project: { id: projectId, typeOf: client.factory.organizationType.Project },
51
- category: { codeValue: '' }, // 情報空でよし
52
- serviceType: '', // 情報空でよし
53
- serviceOutput: {
54
- reservationFor: {
55
- typeOf: client.factory.eventType.ScreeningEvent,
56
- id: 'bkz5a0isy'
57
- },
58
- reservedTicket: {
59
- ticketedSeat: {
60
- typeOf: client.factory.placeType.Seat,
61
- seatingType: '', // 情報空でよし
62
- seatNumber: '', // 情報空でよし
63
- seatRow: '', // 情報空でよし
64
- seatSection: '' // 情報空でよし
65
- }
66
- }
67
- }
68
- };
69
- }),
70
- seller: { id: '59d20831e53ebc2b4e774466' }
71
- }
72
- });
73
- console.log('movie ticket:', checkMovieTicketResult.movieTickets);
74
- console.log(checkMovieTicketResult.movieTickets.length, 'movieTickets found');
75
- console.log('purchaseNumberAuthResult:', checkMovieTicketResult.purchaseNumberAuthResult);
76
- }
77
-
78
- main()
79
- .then(() => {
80
- console.log('success!');
81
- })
82
- .catch(console.error);