@chevre/factory 4.351.0-alpha.0 → 4.351.0-alpha.10

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,27 +1,21 @@
1
1
  import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
- import * as OrderFactory from '../../order';
3
+ import { ISimpleOrder } from '../../order';
4
4
  import { TransactionType } from '../../transactionType';
5
5
  import { IAttributes as IGivePointAwardActionAttributes } from '../transfer/give/pointAward';
6
6
  import { IAttributes as ISendOrderActionAttributes } from '../transfer/send/order';
7
7
  export type IAgent = ActionFactory.IParticipant;
8
8
  export type IRecipient = ActionFactory.IParticipant;
9
- export type IObject = OrderFactory.ISimpleOrder;
9
+ export type IObject = ISimpleOrder;
10
10
  export type IResult = any;
11
+ export type ISendOrderPotentialAction = Pick<ISendOrderActionAttributes, 'potentialActions'>;
11
12
  export interface IPotentialActions {
12
13
  /**
13
14
  * ポイント付与アクション
14
15
  * 現時点で複数口座にポイントを付与することはないが、可能性もこめてリストで持っておく
15
16
  */
16
17
  givePointAward?: IGivePointAwardActionAttributes[];
17
- /**
18
- * 決済アクションリスト
19
- * 廃止(2023-02-03~)
20
- */
21
- /**
22
- * 注文配送アクション
23
- */
24
- sendOrder?: ISendOrderActionAttributes;
18
+ sendOrder?: ISendOrderPotentialAction;
25
19
  }
26
20
  export interface IPurpose {
27
21
  typeOf: TransactionType.PlaceOrder;
@@ -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,17 +1,25 @@
1
1
  import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IParticipantAsWebApplication } from '../../../action';
2
2
  import * as OrderFactory from '../../../order';
3
- import * as OwnershipInfoFactory from '../../../ownershipInfo';
3
+ import { IGood, IOwnershipInfo } from '../../../ownershipInfo';
4
4
  import { IAttributes as IMoneyTransferActionAttributes } from '../../interact/confirm/moneyTransfer';
5
5
  import { IAttributes as IRegisterServiceAttributes } from '../../interact/confirm/registerService';
6
6
  import * as SendActionFactory from '../send';
7
7
  import { IAttributes as ISendEmailMessageActionAttributes } from './message/email';
8
8
  export type IAgent = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
9
9
  export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
10
- export type IObject = OrderFactory.ISimpleOrder;
10
+ export type IObject = OrderFactory.ISimpleOrder & {
11
+ /**
12
+ * 配送対象オファー(2024-01-11~)
13
+ */
14
+ acceptedOffers?: {
15
+ limit: number;
16
+ page: number;
17
+ };
18
+ };
11
19
  /**
12
20
  * 注文配送結果としての所有権
13
21
  */
14
- export type IResult = OwnershipInfoFactory.IOwnershipInfo<OwnershipInfoFactory.IGood>[];
22
+ export type IResult = IOwnershipInfo<IGood>[];
15
23
  export interface IPotentialActions {
16
24
  /**
17
25
  * 通貨転送アクション
@@ -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';
@@ -4,6 +4,7 @@
4
4
  export declare enum OrderStatus {
5
5
  OrderCancelled = "OrderCancelled",
6
6
  OrderDelivered = "OrderDelivered",
7
+ OrderInTransit = "OrderInTransit",
7
8
  OrderPaymentDue = "OrderPaymentDue",
8
9
  OrderProcessing = "OrderProcessing",
9
10
  OrderReturned = "OrderReturned"
@@ -8,7 +8,7 @@ var OrderStatus;
8
8
  (function (OrderStatus) {
9
9
  OrderStatus["OrderCancelled"] = "OrderCancelled";
10
10
  OrderStatus["OrderDelivered"] = "OrderDelivered";
11
- // OrderInTransit = 'OrderInTransit',
11
+ OrderStatus["OrderInTransit"] = "OrderInTransit";
12
12
  OrderStatus["OrderPaymentDue"] = "OrderPaymentDue";
13
13
  // OrderPickupAvailable = 'OrderPickupAvailable',
14
14
  // OrderProblem = 'OrderProblem',
@@ -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';
@@ -21,19 +21,28 @@ export interface IPaymentUrlSettings {
21
21
  useCallback?: boolean;
22
22
  useWebhook?: boolean;
23
23
  }
24
+ export type ICallbackType3ds = 'GET' | 'POST';
24
25
  export interface IProviderCredentials {
25
26
  /**
26
- * GMOショップID
27
+ * ショップID
27
28
  */
28
29
  shopId?: string;
29
30
  /**
30
- * GMOショップパス
31
+ * ショップパス
31
32
  */
32
33
  shopPass?: string;
33
34
  /**
34
35
  * トークン認証コード
35
36
  */
36
37
  tokenizationCode?: string;
38
+ /**
39
+ * 3Dセキュア認証後加盟店戻りURL
40
+ */
41
+ returnUrls3ds?: string[];
42
+ /**
43
+ * 3Dセキュアコールバック方法
44
+ */
45
+ callbackType3ds?: ICallbackType3ds;
37
46
  paymentUrl?: IPaymentUrlSettings;
38
47
  /**
39
48
  * 決済カード興行会社コード
@@ -1,11 +1,12 @@
1
1
  import { AssetTransactionType } from '../assetTransactionType';
2
2
  import { IExtendId } from '../autoGenerated';
3
+ import { OrderType } from '../order';
3
4
  import { IProject } from '../project';
4
5
  import * as TaskFactory from '../task';
5
6
  import { TaskName } from '../taskName';
6
7
  import { TransactionStatusType } from '../transactionStatusType';
7
8
  export interface IPurposeAsOrder {
8
- typeOf: 'Order';
9
+ typeOf: OrderType.Order;
9
10
  confirmationNumber: string;
10
11
  orderNumber: string;
11
12
  }
@@ -19,9 +20,15 @@ export interface IObjectAsPayTransaction {
19
20
  };
20
21
  };
21
22
  }
23
+ export interface IObjectAsReserveTransaction {
24
+ typeOf: AssetTransactionType.Reserve | 'COAReserveTransaction';
25
+ transactionNumber: string;
26
+ status: TransactionStatusType.Confirmed;
27
+ }
28
+ export type IObject = IObjectAsPayTransaction | IObjectAsReserveTransaction;
22
29
  export interface IData {
23
30
  project: Pick<IProject, 'id' | 'typeOf'>;
24
- object: IObjectAsPayTransaction;
31
+ object: IObject;
25
32
  purpose: IPurposeAsOrder;
26
33
  useOnOrderStatusChanged: boolean;
27
34
  }
@@ -1,10 +1,15 @@
1
1
  import * as SendOrderActionFactory from '../action/transfer/send/order';
2
2
  import { IExtendId } from '../autoGenerated';
3
+ import { OrderStatus } from '../orderStatus';
3
4
  import { IProject } from '../project';
4
5
  import * as TaskFactory from '../task';
5
6
  import { TaskName } from '../taskName';
6
7
  export type IObject = SendOrderActionFactory.IObject & {
7
8
  confirmationNumber: string;
9
+ /**
10
+ * OrderInTransit導入期の互換性維持対応として
11
+ */
12
+ previousOrderStatus?: OrderStatus.OrderProcessing | OrderStatus.OrderInTransit;
8
13
  };
9
14
  export interface IData {
10
15
  project: Pick<IProject, 'id' | 'typeOf'>;
@@ -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, IPaymentMethodWithoutDetail } 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,8 @@ export interface IPaymentMethodByPaymentUrl {
32
32
  entryTranArgs?: IEntryTranArgs;
33
33
  entryTranResult?: IEntryTranResult;
34
34
  execTranArgs?: IExecTranArgs;
35
- execTranResult?: IExecTranResult;
35
+ execTranResult?: IExecTranResult | IExecTran3dsResult;
36
+ paymentMethod?: IPaymentMethodWithoutDetail;
36
37
  }
37
38
  /**
38
39
  * 注文特典口座
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.10",
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"