@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 +0 -1
- package/lib/action/authorize/offer/eventService/coa.d.ts +1 -1
- package/lib/action/authorize/offer/eventService.d.ts +1 -1
- package/lib/action/authorize/paymentMethod/any.d.ts +2 -11
- package/lib/action/interact/confirm/reservation.d.ts +1 -1
- package/lib/action/trade/order.d.ts +4 -10
- package/lib/action/trade/pay.d.ts +2 -2
- package/lib/action/transfer/return/reserveTransaction.d.ts +1 -1
- package/lib/action/transfer/send/order.d.ts +11 -3
- package/lib/assetTransaction/pay.d.ts +14 -9
- package/lib/creativeWork.d.ts +1 -1
- package/lib/error/alreadyInUse.js +2 -1
- package/lib/error/argument.js +2 -1
- package/lib/error/argumentNull.js +2 -1
- package/lib/error/chevre.js +3 -3
- package/lib/error/forbidden.js +2 -1
- package/lib/error/gatewayTimeout.js +2 -1
- package/lib/error/notFound.js +2 -1
- package/lib/error/notImplemented.js +2 -1
- package/lib/error/rateLimitExceeded.js +2 -1
- package/lib/error/serviceUnavailable.js +2 -1
- package/lib/error/unauthorized.js +2 -1
- package/lib/event/screeningEvent.d.ts +1 -1
- package/lib/event/screeningEventSeries.d.ts +1 -1
- package/lib/orderStatus.d.ts +1 -0
- package/lib/orderStatus.js +1 -1
- package/lib/paymentMethod/paymentCard/creditCard.d.ts +13 -3
- package/lib/reservation.d.ts +1 -1
- package/lib/service/paymentService.d.ts +11 -2
- package/lib/task/onAssetTransactionStatusChanged.d.ts +9 -2
- package/lib/task/sendOrder.d.ts +5 -0
- package/lib/transaction/placeOrder.d.ts +3 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@chevre/factory)
|
|
4
4
|
[](https://circleci.com/gh/chevre-jp/factory)
|
|
5
5
|
[](https://coveralls.io/github/chevre-jp/factory?branch=master)
|
|
6
|
-
[](https://david-dm.org/chevre-jp/factory)
|
|
7
6
|
[](https://snyk.io/test/github/chevre-jp/factory)
|
|
8
7
|
[](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
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
22
|
+
export type IResult = IOwnershipInfo<IGood>[];
|
|
15
23
|
export interface IPotentialActions {
|
|
16
24
|
/**
|
|
17
25
|
* 通貨転送アクション
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
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[];
|
package/lib/creativeWork.d.ts
CHANGED
|
@@ -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
|
-
|
|
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);
|
package/lib/error/argument.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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;
|
package/lib/error/chevre.js
CHANGED
|
@@ -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);
|
package/lib/error/forbidden.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
}
|
package/lib/error/notFound.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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';
|
package/lib/orderStatus.d.ts
CHANGED
package/lib/orderStatus.js
CHANGED
|
@@ -8,7 +8,7 @@ var OrderStatus;
|
|
|
8
8
|
(function (OrderStatus) {
|
|
9
9
|
OrderStatus["OrderCancelled"] = "OrderCancelled";
|
|
10
10
|
OrderStatus["OrderDelivered"] = "OrderDelivered";
|
|
11
|
-
|
|
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
|
+
}
|
package/lib/reservation.d.ts
CHANGED
|
@@ -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
|
-
*
|
|
27
|
+
* ショップID
|
|
27
28
|
*/
|
|
28
29
|
shopId?: string;
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
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:
|
|
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:
|
|
31
|
+
object: IObject;
|
|
25
32
|
purpose: IPurposeAsOrder;
|
|
26
33
|
useOnOrderStatusChanged: boolean;
|
|
27
34
|
}
|
package/lib/task/sendOrder.d.ts
CHANGED
|
@@ -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.
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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"
|