@chevre/factory 4.351.0-alpha.0 → 4.351.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/README.md CHANGED
@@ -3,7 +3,6 @@
3
3
  [![npm (scoped)](https://img.shields.io/npm/v/@chevre/factory.svg)](https://www.npmjs.com/package/@chevre/factory)
4
4
  [![CircleCI](https://circleci.com/gh/chevre-jp/factory.svg?style=shield)](https://circleci.com/gh/chevre-jp/factory)
5
5
  [![Coverage Status](https://coveralls.io/repos/github/chevre-jp/factory/badge.svg?branch=master)](https://coveralls.io/github/chevre-jp/factory?branch=master)
6
- [![Dependency Status](https://img.shields.io/david/chevre-jp/factory.svg)](https://david-dm.org/chevre-jp/factory)
7
6
  [![Known Vulnerabilities](https://snyk.io/test/github/chevre-jp/factory/badge.svg)](https://snyk.io/test/github/chevre-jp/factory)
8
7
  [![npm](https://img.shields.io/npm/dm/@chevre/factory.svg)](https://nodei.co/npm/@chevre/factory/)
9
8
 
@@ -1,4 +1,4 @@
1
- import * as COA from '@motionpicture/coa-service';
1
+ import type * as COA from '@motionpicture/coa-service';
2
2
  export interface ICOATicketInfo {
3
3
  /**
4
4
  * チケットコード
@@ -1,4 +1,4 @@
1
- import * as COA from '@motionpicture/coa-service';
1
+ import type * as COA from '@motionpicture/coa-service';
2
2
  import * as ActionFactory from '../../../action';
3
3
  import { ActionType } from '../../../actionType';
4
4
  import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
@@ -2,10 +2,9 @@ import * as ActionFactory from '../../../action';
2
2
  import * as CheckMovieTicketActionFactory from '../../../action/check/paymentMethod/movieTicket';
3
3
  import { AvailablePaymentMethodType, IMovieTicket } from '../../../action/trade/pay';
4
4
  import { ActionType } from '../../../actionType';
5
- import * as PayTransactionFactory from '../../../assetTransaction/pay';
5
+ import { ICreditCard, IFromLocation, ITokenizedPaymentCard } from '../../../assetTransaction/pay';
6
6
  import { AssetTransactionType } from '../../../assetTransactionType';
7
7
  import { IOrderPaymentMethodIssuedThrough, ITotalPaymentDue } from '../../../order';
8
- import * as CreditCardFactory from '../../../paymentMethod/paymentCard/creditCard';
9
8
  import { PaymentStatusType } from '../../../paymentStatusType';
10
9
  import { IPropertyValue } from '../../../propertyValue';
11
10
  import { TransactionType } from '../../../transactionType';
@@ -23,16 +22,8 @@ export interface IObjectPendingTransaction {
23
22
  id?: string;
24
23
  transactionNumber?: string;
25
24
  }
26
- export import ITokenizedPaymentCard = PayTransactionFactory.ITokenizedPaymentCard;
27
- export import IFromLocation = PayTransactionFactory.IFromLocation;
25
+ export { ICreditCard, IFromLocation, ITokenizedPaymentCard };
28
26
  export import IPurchaseNumberAuthResult = CheckMovieTicketActionFactory.IPurchaseNumberAuthResult;
29
- export import IUnauthorizedCardOfMember = CreditCardFactory.IUnauthorizedCardOfMember;
30
- export import IUncheckedCardRaw = CreditCardFactory.IUncheckedCardRaw;
31
- export import IUncheckedCardTokenized = CreditCardFactory.IUncheckedCardTokenized;
32
- /**
33
- * クレジットカード決済承認アクションに必要なクレジットカード情報
34
- */
35
- export type ICreditCard = IUncheckedCardRaw | IUncheckedCardTokenized | IUnauthorizedCardOfMember;
36
27
  /**
37
28
  * 承認対象
38
29
  */
@@ -1,4 +1,4 @@
1
- import * as COA from '@motionpicture/coa-service';
1
+ import type * as COA from '@motionpicture/coa-service';
2
2
  import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
3
3
  import { AssetTransactionType } from '../../../assetTransactionType';
4
4
  import { ISimpleOrder } from '../../../order';
@@ -1,4 +1,4 @@
1
- import * as GMO from '@motionpicture/gmo-service';
1
+ import type { factory as GMOFactory } from '@motionpicture/gmo-service';
2
2
  import * as AccountFactory from '../../account';
3
3
  import * as ActionFactory from '../../action';
4
4
  import { IAttributes as IReturnOrderActionAttributes } from '../../action/transfer/return/order';
@@ -44,7 +44,7 @@ export interface IPendingTransaction {
44
44
  };
45
45
  };
46
46
  }
47
- export import ICreditCardSales = GMO.factory.credit.IAlterTranResult;
47
+ export type ICreditCardSales = GMOFactory.credit.IAlterTranResult;
48
48
  /**
49
49
  * 決済方法インターフェース
50
50
  */
@@ -1,4 +1,4 @@
1
- import * as COA from '@motionpicture/coa-service';
1
+ import type * as COA from '@motionpicture/coa-service';
2
2
  import * as ActionFactory from '../../../action';
3
3
  import { AssetTransactionType } from '../../../assetTransactionType';
4
4
  import { ISimpleOrder } from '../../../order';
@@ -1,11 +1,11 @@
1
- import * as GMO from '@motionpicture/gmo-service';
1
+ import type { factory as GMOFactory } from '@motionpicture/gmo-service';
2
2
  import { IAction as IPayAction, IAttributes as IPayActionAttributes, ILocation, IMovieTicket, IOrderAsPayPurpose, IPendingTransaction, IPurpose as IPayPurpose, IRecipient as IPayRecipient } from '../action/trade/pay';
3
3
  import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { IMonetaryAmount } from '../monetaryAmount';
7
7
  import { ITotalPaymentDue } from '../order';
8
- import { IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized } from '../paymentMethod/paymentCard/creditCard';
8
+ import { ICreditCard3DS, IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized } from '../paymentMethod/paymentCard/creditCard';
9
9
  import { IOnPaymentStatusChanged } from '../project';
10
10
  import { IPropertyValue } from '../propertyValue';
11
11
  import { PaymentServiceType } from '../service/paymentService';
@@ -19,11 +19,15 @@ export type IFromLocation = ITokenizedPaymentCard;
19
19
  /**
20
20
  * クレジットカード決済承認に必要なクレジットカードインターフェース
21
21
  */
22
- export declare type ICreditCard = IUncheckedCardRaw | IUncheckedCardTokenized | IUnauthorizedCardOfMember;
23
- export import IEntryTranArgs = GMO.factory.credit.IEntryTranArgs;
24
- export import IEntryTranResult = GMO.factory.credit.IEntryTranResult;
25
- export import IExecTranArgs = GMO.factory.credit.IExecTranArgs;
26
- export import IExecTranResult = GMO.factory.credit.IExecTranResult;
22
+ type ICreditCard = (IUncheckedCardRaw | IUncheckedCardTokenized | IUnauthorizedCardOfMember) & ICreditCard3DS;
23
+ export { ICreditCard, ICreditCard3DS, IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized };
24
+ export type IEntryTranArgs = GMOFactory.credit.IEntryTranArgs;
25
+ export type IEntryTranResult = GMOFactory.credit.IEntryTranResult;
26
+ export type IExecTranArgs = GMOFactory.credit.IExecTranArgs;
27
+ export type IExecTranResult = GMOFactory.credit.IExecTranResult;
28
+ export type IExecTran3dsArgs = GMOFactory.credit.IExecTran3dsArgs;
29
+ export type IExecTran3dsResult = GMOFactory.credit.IExecTran3dsResult;
30
+ export type ISecureTran2Result = GMOFactory.credit.ISecureTran2Result;
27
31
  export interface IPaymentMethodAmount extends Pick<IMonetaryAmount, 'currency' | 'typeOf' | 'value'> {
28
32
  value: number;
29
33
  }
@@ -94,8 +98,9 @@ export interface IObject {
94
98
  pendingTransaction?: IPendingTransaction;
95
99
  entryTranArgs?: IEntryTranArgs;
96
100
  entryTranResult?: IEntryTranResult;
97
- execTranArgs?: IExecTranArgs;
98
- execTranResult?: IExecTranResult;
101
+ execTranArgs?: IExecTranArgs | IExecTran3dsArgs;
102
+ execTranResult?: IExecTranResult | IExecTran3dsResult;
103
+ secureTran2Result?: ISecureTran2Result;
99
104
  payAction?: IPayAction;
100
105
  onPaymentStatusChanged?: IOnPaymentStatusChanged;
101
106
  accountsReceivablesByServiceType?: IAccountsReceivableByServiceType[];
@@ -1,4 +1,4 @@
1
- import * as COA from '@motionpicture/coa-service';
1
+ import type * as COA from '@motionpicture/coa-service';
2
2
  import { CreativeWorkType } from './creativeWorkType';
3
3
  import { IPropertyValue } from './propertyValue';
4
4
  import { IThing } from './thing';
@@ -32,7 +32,8 @@ var AlreadyInUseError = /** @class */ (function (_super) {
32
32
  actualMessage = "The specified '".concat(entityName, "' value is already in use for: ").concat(fieldNames.join(', '), ".");
33
33
  }
34
34
  // tslint:disable-next-line:no-single-line-block-comment
35
- _this = _super.call(this, errorCode_1.ErrorCode.AlreadyInUse, actualMessage) /* istanbul ignore next */ || this;
35
+ /* istanbul ignore next */
36
+ _this = _super.call(this, errorCode_1.ErrorCode.AlreadyInUse, actualMessage) || this;
36
37
  _this.entityName = entityName;
37
38
  _this.fieldNames = fieldNames;
38
39
  setPrototypeOf(_this, AlreadyInUseError.prototype);
@@ -32,7 +32,8 @@ var ArgumentError = /** @class */ (function (_super) {
32
32
  actualMessage = "Invalid or missing argument supplied: ".concat(argumentName, ".");
33
33
  }
34
34
  // tslint:disable-next-line:no-single-line-block-comment
35
- _this = _super.call(this, errorCode_1.ErrorCode.Argument, actualMessage) /* istanbul ignore next */ || this;
35
+ /* istanbul ignore next */
36
+ _this = _super.call(this, errorCode_1.ErrorCode.Argument, actualMessage) || this;
36
37
  _this.argumentName = argumentName;
37
38
  setPrototypeOf(_this, ArgumentError.prototype);
38
39
  return _this;
@@ -32,7 +32,8 @@ var ArgumentNullError = /** @class */ (function (_super) {
32
32
  actualMessage = "Missing argument: ".concat(argumentName, ".");
33
33
  }
34
34
  // tslint:disable-next-line:no-single-line-block-comment
35
- _this = _super.call(this, errorCode_1.ErrorCode.ArgumentNull, actualMessage) /* istanbul ignore next */ || this;
35
+ /* istanbul ignore next */
36
+ _this = _super.call(this, errorCode_1.ErrorCode.ArgumentNull, actualMessage) || this;
36
37
  _this.argumentName = argumentName;
37
38
  setPrototypeOf(_this, ArgumentNullError.prototype);
38
39
  return _this;
@@ -23,10 +23,10 @@ var setPrototypeOf = require("setprototypeof");
23
23
  */
24
24
  var ChevreError = /** @class */ (function (_super) {
25
25
  __extends(ChevreError, _super);
26
+ // tslint:disable-next-line:no-single-line-block-comment
27
+ /* istanbul ignore next */
26
28
  function ChevreError(code, message) {
27
- var _this =
28
- // tslint:disable-next-line:no-single-line-block-comment
29
- _super.call(this, message) /* istanbul ignore next */ || this;
29
+ var _this = _super.call(this, message) || this;
30
30
  _this.name = 'ChevreError';
31
31
  _this.reason = code;
32
32
  setPrototypeOf(_this, ChevreError.prototype);
@@ -32,7 +32,8 @@ var ForbiddenError = /** @class */ (function (_super) {
32
32
  actualMessage = 'Forbidden.';
33
33
  }
34
34
  // tslint:disable-next-line:no-single-line-block-comment
35
- _this = _super.call(this, errorCode_1.ErrorCode.Forbidden, actualMessage) /* istanbul ignore next */ || this;
35
+ /* istanbul ignore next */
36
+ _this = _super.call(this, errorCode_1.ErrorCode.Forbidden, actualMessage) || this;
36
37
  setPrototypeOf(_this, ForbiddenError.prototype);
37
38
  return _this;
38
39
  }
@@ -32,7 +32,8 @@ var GatewayTimeoutError = /** @class */ (function (_super) {
32
32
  actualMessage = 'Gateway Timeout';
33
33
  }
34
34
  // tslint:disable-next-line:no-single-line-block-comment
35
- _this = _super.call(this, errorCode_1.ErrorCode.GatewayTimeout, actualMessage) /* istanbul ignore next */ || this;
35
+ /* istanbul ignore next */
36
+ _this = _super.call(this, errorCode_1.ErrorCode.GatewayTimeout, actualMessage) || this;
36
37
  setPrototypeOf(_this, GatewayTimeoutError.prototype);
37
38
  return _this;
38
39
  }
@@ -32,7 +32,8 @@ var NotFoundError = /** @class */ (function (_super) {
32
32
  actualMessage = "Not Found: ".concat(entityName, ".");
33
33
  }
34
34
  // tslint:disable-next-line:no-single-line-block-comment
35
- _this = _super.call(this, errorCode_1.ErrorCode.NotFound, actualMessage) /* istanbul ignore next */ || this;
35
+ /* istanbul ignore next */
36
+ _this = _super.call(this, errorCode_1.ErrorCode.NotFound, actualMessage) || this;
36
37
  _this.entityName = entityName;
37
38
  setPrototypeOf(_this, NotFoundError.prototype);
38
39
  return _this;
@@ -32,7 +32,8 @@ var NotImplementedError = /** @class */ (function (_super) {
32
32
  actualMessage = 'Method is not yet implemented.';
33
33
  }
34
34
  // tslint:disable-next-line:no-single-line-block-comment
35
- _this = _super.call(this, errorCode_1.ErrorCode.NotImplemented, actualMessage) /* istanbul ignore next */ || this;
35
+ /* istanbul ignore next */
36
+ _this = _super.call(this, errorCode_1.ErrorCode.NotImplemented, actualMessage) || this;
36
37
  setPrototypeOf(_this, NotImplementedError.prototype);
37
38
  return _this;
38
39
  }
@@ -32,7 +32,8 @@ var RateLimitExceededError = /** @class */ (function (_super) {
32
32
  actualMessage = 'Rate limit exceeded.';
33
33
  }
34
34
  // tslint:disable-next-line:no-single-line-block-comment
35
- _this = _super.call(this, errorCode_1.ErrorCode.RateLimitExceeded, actualMessage) /* istanbul ignore next */ || this;
35
+ /* istanbul ignore next */
36
+ _this = _super.call(this, errorCode_1.ErrorCode.RateLimitExceeded, actualMessage) || this;
36
37
  setPrototypeOf(_this, RateLimitExceededError.prototype);
37
38
  return _this;
38
39
  }
@@ -32,7 +32,8 @@ var ServiceUnavailableError = /** @class */ (function (_super) {
32
32
  actualMessage = 'Service unavailable temporarily.';
33
33
  }
34
34
  // tslint:disable-next-line:no-single-line-block-comment
35
- _this = _super.call(this, errorCode_1.ErrorCode.ServiceUnavailable, actualMessage) /* istanbul ignore next */ || this;
35
+ /* istanbul ignore next */
36
+ _this = _super.call(this, errorCode_1.ErrorCode.ServiceUnavailable, actualMessage) || this;
36
37
  setPrototypeOf(_this, ServiceUnavailableError.prototype);
37
38
  return _this;
38
39
  }
@@ -32,7 +32,8 @@ var UnauthorizedError = /** @class */ (function (_super) {
32
32
  actualMessage = 'Unauthorized.';
33
33
  }
34
34
  // tslint:disable-next-line:no-single-line-block-comment
35
- _this = _super.call(this, errorCode_1.ErrorCode.Unauthorized, actualMessage) /* istanbul ignore next */ || this;
35
+ /* istanbul ignore next */
36
+ _this = _super.call(this, errorCode_1.ErrorCode.Unauthorized, actualMessage) || this;
36
37
  setPrototypeOf(_this, UnauthorizedError.prototype);
37
38
  return _this;
38
39
  }
@@ -1,4 +1,4 @@
1
- import * as COA from '@motionpicture/coa-service';
1
+ import type * as COA from '@motionpicture/coa-service';
2
2
  import * as EventFactory from '../event';
3
3
  import * as ScreeningEventSeriesFactory from '../event/screeningEventSeries';
4
4
  import { EventType } from '../eventType';
@@ -1,4 +1,4 @@
1
- import * as COA from '@motionpicture/coa-service';
1
+ import type * as COA from '@motionpicture/coa-service';
2
2
  import { ICreativeWork as IMovie } from '../creativeWork/movie';
3
3
  import * as EventFactory from '../event';
4
4
  import { EventType } from '../eventType';
@@ -29,7 +29,7 @@ export interface ICheckedCard extends IPaymentCard {
29
29
  deleteFlag: string;
30
30
  }
31
31
  /**
32
- * 生の有効性確認前GMOカードインターフェース
32
+ * 生の有効性確認前GMOカード
33
33
  */
34
34
  export interface IUncheckedCardRaw {
35
35
  /**
@@ -50,16 +50,26 @@ export interface IUncheckedCardRaw {
50
50
  holderName: string;
51
51
  }
52
52
  /**
53
- * トークン化有効性確認前GMOカードインターフェース
53
+ * トークン化有効性確認前GMOカード
54
54
  */
55
55
  export interface IUncheckedCardTokenized {
56
56
  token: string;
57
57
  }
58
58
  /**
59
- * オーソリ取得前の会員カードインターフェース
59
+ * オーソリ取得前の会員カード
60
60
  */
61
61
  export interface IUnauthorizedCardOfMember {
62
62
  memberId: string;
63
63
  cardSeq: number;
64
64
  cardPass?: string;
65
65
  }
66
+ /**
67
+ * 3DS対応クレジットカード
68
+ */
69
+ export interface ICreditCard3DS {
70
+ /**
71
+ * 加盟店戻りURL
72
+ * 3Dセキュア認証後にお戻しする加盟店様側のURLになります。
73
+ */
74
+ retUrl?: string;
75
+ }
@@ -1,4 +1,4 @@
1
- import * as COA from '@motionpicture/coa-service';
1
+ import type * as COA from '@motionpicture/coa-service';
2
2
  import { CreativeWorkType } from './creativeWorkType';
3
3
  import { IMultilingualString } from './multilingualString';
4
4
  import * as OfferFactory from './offer';
@@ -3,7 +3,7 @@ import { AccountType } from '../accountType';
3
3
  import { IObject as IConfirmReservationObject } from '../action/interact/confirm/reservation';
4
4
  import { IAttributes as IOrderActionAttributes } from '../action/trade/order';
5
5
  import { IObject as IGivePointAwardObject } from '../action/transfer/give/pointAward';
6
- import { IEntryTranArgs, IEntryTranResult, IExecTranArgs, IExecTranResult } from '../assetTransaction/pay';
6
+ import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult } from '../assetTransaction/pay';
7
7
  import { IExtendId } from '../autoGenerated';
8
8
  import { IClientUser } from '../clientUser';
9
9
  import * as OrderFactory from '../order';
@@ -32,7 +32,7 @@ export interface IPaymentMethodByPaymentUrl {
32
32
  entryTranArgs?: IEntryTranArgs;
33
33
  entryTranResult?: IEntryTranResult;
34
34
  execTranArgs?: IExecTranArgs;
35
- execTranResult?: IExecTranResult;
35
+ execTranResult?: IExecTranResult | IExecTran3dsResult;
36
36
  }
37
37
  /**
38
38
  * 注文特典口座
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.351.0-alpha.0",
3
+ "version": "4.351.0-alpha.2",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -42,12 +42,12 @@
42
42
  "license": "UNLICENSED",
43
43
  "devDependencies": {
44
44
  "@types/mocha": "^5.2.7",
45
- "@types/node": "^8.10.51",
45
+ "@types/node": "18.19.4",
46
46
  "@types/request": "^2.48.5",
47
47
  "@types/request-promise-native": "^1.0.17",
48
48
  "coveralls": "^3.0.5",
49
49
  "mocha": "^5.2.0",
50
- "nyc": "12.0.2",
50
+ "nyc": "15.1.0",
51
51
  "rimraf": "^2.6.3",
52
52
  "ts-node": "10.9.1",
53
53
  "tslint": "6.1.3",
@@ -57,7 +57,7 @@
57
57
  "dependencies": {
58
58
  "@aws-sdk/client-cognito-identity-provider": "3.438.0",
59
59
  "@motionpicture/coa-service": "9.2.0",
60
- "@motionpicture/gmo-service": "^5.0.0",
60
+ "@motionpicture/gmo-service": "5.3.0-alpha.0",
61
61
  "@surfrock/sdk": "1.1.0",
62
62
  "@waiter/factory": "2.2.0-alpha.3",
63
63
  "setprototypeof": "1.2.0"