@cinerino/sdk 7.3.0-alpha.0 → 7.3.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.
@@ -3394,7 +3394,7 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
3394
3394
  return _super !== null && _super.apply(this, arguments) || this;
3395
3395
  }
3396
3396
  /**
3397
- * 決済方法認証
3397
+ * 決済カード認証
3398
3398
  */
3399
3399
  PayAssetTransactionService.prototype.check = function (params) {
3400
3400
  return __awaiter(this, void 0, void 0, function () {
@@ -126,7 +126,7 @@ async function main() {
126
126
 
127
127
  // 決済承認
128
128
  console.log('authorizing credit card payment...');
129
- const creditCardPaymentAuth = await authorizeCreditCardAsyncForcibly({
129
+ let creditCardPaymentAuth = await authorizeCreditCardAsyncForcibly({
130
130
  object: {
131
131
  amount: amount,
132
132
  paymentMethod: 'CreditCard',
@@ -139,7 +139,30 @@ async function main() {
139
139
  console.log('credit card payment authorized', creditCardPaymentAuth.id);
140
140
  // throw new Error('force error');
141
141
 
142
- // 購入情報確認時間
142
+ // tslint:disable-next-line:no-magic-numbers
143
+ await wait(3000);
144
+ await paymentService.voidTransaction({
145
+ id: creditCardPaymentAuth.id,
146
+ object: {
147
+ typeOf: client.factory.service.paymentService.PaymentServiceType.CreditCard
148
+ },
149
+ purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder }
150
+ });
151
+ console.log('authorizePayment voided');
152
+
153
+ console.log('authorizing credit card payment...');
154
+ creditCardPaymentAuth = await authorizeCreditCardAsyncForcibly({
155
+ object: {
156
+ amount: amount,
157
+ paymentMethod: 'CreditCard',
158
+ method: '1',
159
+ creditCard,
160
+ issuedThrough: { id: PAYMENT_SERVICE_ID }
161
+ },
162
+ purpose: { id: transaction.id, typeOf: client.factory.transactionType.PlaceOrder }
163
+ })({ paymentService });
164
+ console.log('credit card payment authorized', creditCardPaymentAuth.id);
165
+
143
166
  // tslint:disable-next-line:no-magic-numbers
144
167
  await wait(3000);
145
168
 
@@ -1,3 +1,4 @@
1
+ import { ICheckMovieTicketResult } from '../../chevrePay/payment/factory';
1
2
  import * as factory from '../../factory';
2
3
  import { Service } from '../../service';
3
4
  export interface IPublishPaymentUrlResult {
@@ -9,9 +10,11 @@ export interface IPublishPaymentUrlResult {
9
10
  */
10
11
  export declare class PayAssetTransactionService extends Service {
11
12
  /**
12
- * 決済方法認証
13
+ * 決済カード認証
13
14
  */
14
- check(params: factory.action.check.paymentMethod.movieTicket.IAttributes): Promise<factory.action.check.paymentMethod.movieTicket.IAction>;
15
+ check(params: factory.action.check.paymentMethod.movieTicket.IAttributes): Promise<{
16
+ result: ICheckMovieTicketResult;
17
+ }>;
15
18
  /**
16
19
  * 決済ロケーション無効化
17
20
  */
@@ -75,7 +75,7 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
75
75
  return _super !== null && _super.apply(this, arguments) || this;
76
76
  }
77
77
  /**
78
- * 決済方法認証
78
+ * 決済カード認証
79
79
  */
80
80
  PayAssetTransactionService.prototype.check = function (params) {
81
81
  return __awaiter(this, void 0, void 0, function () {
package/lib/bundle.js CHANGED
@@ -5644,7 +5644,7 @@ var PayAssetTransactionService = /** @class */ (function (_super) {
5644
5644
  return _super !== null && _super.apply(this, arguments) || this;
5645
5645
  }
5646
5646
  /**
5647
- * 決済方法認証
5647
+ * 決済カード認証
5648
5648
  */
5649
5649
  PayAssetTransactionService.prototype.check = function (params) {
5650
5650
  return __awaiter(this, void 0, void 0, function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "7.3.0-alpha.0",
3
+ "version": "7.3.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.375.0-alpha.5",
95
+ "@chevre/factory": "4.375.0-alpha.11",
96
96
  "debug": "^3.2.6",
97
97
  "http-status": "^1.4.2",
98
98
  "idtoken-verifier": "^2.0.3",