@chevre/factory 4.361.0 → 4.362.0-alpha.1
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/lib/action/interact/confirm/moneyTransfer.d.ts +3 -0
- package/lib/action/interact/confirm/pay.d.ts +3 -0
- package/lib/action/interact/confirm/registerService.d.ts +3 -3
- package/lib/action/interact/confirm/reservation.d.ts +4 -1
- package/lib/action/interact/confirm.d.ts +8 -3
- package/lib/action/trade/order.d.ts +0 -6
- package/lib/action/transfer/give/pointAward.d.ts +3 -2
- package/lib/action/transfer/give/pointAward.js +4 -2
- package/lib/index.d.ts +0 -6
- package/lib/index.js +0 -5
- package/lib/transaction/placeOrder.d.ts +0 -10
- package/package.json +1 -1
- package/lib/action/authorize/award/point.d.ts +0 -44
- package/lib/action/authorize/award/point.js +0 -7
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { IParticipantAsProject } from '../../../action';
|
|
1
2
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
2
3
|
import { ISimpleOrder } from '../../../order';
|
|
3
4
|
import { TransactionType } from '../../../transactionType';
|
|
4
5
|
import * as ConfirmActionFactory from '../confirm';
|
|
6
|
+
export type IAgent = IParticipantAsProject;
|
|
5
7
|
export interface IObject {
|
|
6
8
|
transactionNumber: string;
|
|
7
9
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
@@ -13,6 +15,7 @@ export interface ITransactionPurpose {
|
|
|
13
15
|
}
|
|
14
16
|
export type IPurpose = ITransactionPurpose | ISimpleOrder;
|
|
15
17
|
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
18
|
+
agent: IAgent;
|
|
16
19
|
/**
|
|
17
20
|
* 注文取引から発生した場合はISimpleOrder
|
|
18
21
|
*/
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { IParticipantAsProject } from '../../../action';
|
|
1
2
|
import * as RegisterServiceFactory from '../../../assetTransaction/registerService';
|
|
2
3
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
3
4
|
import { ISimpleOrder } from '../../../order';
|
|
4
5
|
import * as ConfirmActionFactory from '../confirm';
|
|
6
|
+
export type IAgent = IParticipantAsProject;
|
|
5
7
|
export type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNumber' | 'endDate'> & {
|
|
6
8
|
transactionNumber: string;
|
|
7
9
|
typeOf: AssetTransactionType.RegisterService;
|
|
@@ -15,10 +17,8 @@ export type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNu
|
|
|
15
17
|
};
|
|
16
18
|
export type IPurpose = ISimpleOrder;
|
|
17
19
|
export type IResult = any;
|
|
18
|
-
export interface IPotentialActions {
|
|
19
|
-
}
|
|
20
20
|
export interface IAttributes extends ConfirmActionFactory.IAttributes<IObject, IResult> {
|
|
21
|
-
|
|
21
|
+
agent: IAgent;
|
|
22
22
|
purpose: IPurpose;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as COA from '@motionpicture/coa-service';
|
|
2
|
+
import { IParticipantAsProject } from '../../../action';
|
|
2
3
|
import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
|
|
3
4
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
5
|
import { ISimpleOrder } from '../../../order';
|
|
5
6
|
import * as WebAPIFactory from '../../../service/webAPI';
|
|
6
7
|
import * as ConfirmActionFactory from '../confirm';
|
|
8
|
+
export type IAgent = IParticipantAsProject;
|
|
7
9
|
export type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
|
|
8
10
|
transactionNumber: string;
|
|
9
11
|
typeOf: 'COAReserveTransaction';
|
|
@@ -17,10 +19,11 @@ export type IPurpose = ISimpleOrder;
|
|
|
17
19
|
export type IResult = any;
|
|
18
20
|
export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
|
|
19
21
|
export interface IAttributes<T extends WebAPIFactory.Identifier> extends ConfirmActionFactory.IAttributes<IObject<T>, IResult> {
|
|
22
|
+
agent: IAgent;
|
|
20
23
|
instrument: IInstrument<T>;
|
|
21
24
|
purpose: IPurpose;
|
|
22
25
|
}
|
|
23
26
|
/**
|
|
24
|
-
*
|
|
27
|
+
* 予約取引確定アクション
|
|
25
28
|
*/
|
|
26
29
|
export type IAction<T extends WebAPIFactory.Identifier> = ConfirmActionFactory.IAction<IAttributes<T>>;
|
|
@@ -2,16 +2,21 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import * as OrderFactory from '../../order';
|
|
4
4
|
import { TransactionType } from '../../transactionType';
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* 確定アクション主体
|
|
7
|
+
* Projectに統一(2022-05-16~)
|
|
8
|
+
* 決済取引に関してはクライアントによる確定がありうるので拡張(2024-03-11~)
|
|
9
|
+
*/
|
|
10
|
+
export type IAgent = ActionFactory.IParticipantAsPerson | ActionFactory.IParticipantAsProject | ActionFactory.IParticipantAsWebApplication;
|
|
6
11
|
export type IObject = any;
|
|
7
12
|
export interface ITransactionPurpose {
|
|
8
|
-
typeOf: TransactionType;
|
|
13
|
+
typeOf: TransactionType.MoneyTransfer | TransactionType.PlaceOrder;
|
|
9
14
|
id: string;
|
|
10
15
|
}
|
|
11
16
|
export type IPurpose = ITransactionPurpose | OrderFactory.ISimpleOrder;
|
|
12
17
|
export type IResult = any;
|
|
13
18
|
export type IPotentialActions = any;
|
|
14
|
-
export interface IAttributes<TObject, TResult> extends
|
|
19
|
+
export interface IAttributes<TObject, TResult> extends Pick<ActionFactory.IAttributes<ActionType.ConfirmAction, TObject, TResult>, 'agent' | 'error' | 'instrument' | 'object' | 'project' | 'purpose' | 'result' | 'typeOf'> {
|
|
15
20
|
agent: IAgent;
|
|
16
21
|
purpose: IPurpose;
|
|
17
22
|
}
|
|
@@ -2,7 +2,6 @@ import * as ActionFactory from '../../action';
|
|
|
2
2
|
import { ActionType } from '../../actionType';
|
|
3
3
|
import { ISimpleOrder } from '../../order';
|
|
4
4
|
import { TransactionType } from '../../transactionType';
|
|
5
|
-
import { IAttributes as IGivePointAwardActionAttributes } from '../transfer/give/pointAward';
|
|
6
5
|
import { IAttributes as ISendOrderActionAttributes } from '../transfer/send/order';
|
|
7
6
|
export type IAgent = ActionFactory.IParticipant;
|
|
8
7
|
export type IRecipient = ActionFactory.IParticipant;
|
|
@@ -10,11 +9,6 @@ export type IObject = ISimpleOrder;
|
|
|
10
9
|
export type IResult = any;
|
|
11
10
|
export type ISendOrderPotentialAction = Pick<ISendOrderActionAttributes, 'potentialActions'>;
|
|
12
11
|
export interface IPotentialActions {
|
|
13
|
-
/**
|
|
14
|
-
* ポイント付与アクション
|
|
15
|
-
* 現時点で複数口座にポイントを付与することはないが、可能性もこめてリストで持っておく
|
|
16
|
-
*/
|
|
17
|
-
givePointAward?: IGivePointAwardActionAttributes[];
|
|
18
12
|
sendOrder?: ISendOrderPotentialAction;
|
|
19
13
|
}
|
|
20
14
|
export interface IPurpose {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import * as OrderFactory from '../../../order';
|
|
3
|
-
import { ObjectType as AuthorizePointAwardActionObjectType } from '../../authorize/award/point';
|
|
4
3
|
import * as GiveActionFactory from '../give';
|
|
5
4
|
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
6
|
-
export
|
|
5
|
+
export declare enum ObjectType {
|
|
6
|
+
PointAward = "PointAward"
|
|
7
|
+
}
|
|
7
8
|
/**
|
|
8
9
|
* ポイント特典付与対象
|
|
9
10
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ObjectType = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
4
|
+
var ObjectType;
|
|
5
|
+
(function (ObjectType) {
|
|
6
|
+
ObjectType["PointAward"] = "PointAward";
|
|
7
|
+
})(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
|
package/lib/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export import waiter = waiter;
|
|
|
8
8
|
import * as AccountFactory from './account';
|
|
9
9
|
import * as ActionFactory from './action';
|
|
10
10
|
import * as AuthorizeActionFactory from './action/authorize';
|
|
11
|
-
import * as PointAwardAuthorizeActionFactory from './action/authorize/award/point';
|
|
12
11
|
import * as AuthorizeEventServiceOfferActionFactory from './action/authorize/offer/eventService';
|
|
13
12
|
import * as AuthorizeMoneyTransferOfferActionFactory from './action/authorize/offer/moneyTransfer';
|
|
14
13
|
import * as AuthorizeProductOfferActionFactory from './action/authorize/offer/product';
|
|
@@ -207,14 +206,9 @@ export declare namespace action {
|
|
|
207
206
|
namespace authorize {
|
|
208
207
|
export import IAction = AuthorizeActionFactory.IAction;
|
|
209
208
|
export import IAttributes = AuthorizeActionFactory.IAttributes;
|
|
210
|
-
namespace award {
|
|
211
|
-
export import point = PointAwardAuthorizeActionFactory;
|
|
212
|
-
}
|
|
213
209
|
namespace paymentMethod {
|
|
214
210
|
export import any = AuthorizeAnyPaymentActionFactory;
|
|
215
211
|
}
|
|
216
|
-
namespace discount {
|
|
217
|
-
}
|
|
218
212
|
namespace offer {
|
|
219
213
|
export import eventService = AuthorizeEventServiceOfferActionFactory;
|
|
220
214
|
export import moneyTransfer = AuthorizeMoneyTransferOfferActionFactory;
|
package/lib/index.js
CHANGED
|
@@ -10,7 +10,6 @@ var cognito = require("./cognito");
|
|
|
10
10
|
exports.cognito = cognito;
|
|
11
11
|
exports.waiter = waiter;
|
|
12
12
|
var AccountFactory = require("./account");
|
|
13
|
-
var PointAwardAuthorizeActionFactory = require("./action/authorize/award/point");
|
|
14
13
|
var AuthorizeEventServiceOfferActionFactory = require("./action/authorize/offer/eventService");
|
|
15
14
|
var AuthorizeMoneyTransferOfferActionFactory = require("./action/authorize/offer/moneyTransfer");
|
|
16
15
|
var AuthorizeProductOfferActionFactory = require("./action/authorize/offer/product");
|
|
@@ -164,10 +163,6 @@ var action;
|
|
|
164
163
|
(function (action) {
|
|
165
164
|
var authorize;
|
|
166
165
|
(function (authorize) {
|
|
167
|
-
var award;
|
|
168
|
-
(function (award) {
|
|
169
|
-
award.point = PointAwardAuthorizeActionFactory;
|
|
170
|
-
})(award = authorize.award || (authorize.award = {}));
|
|
171
166
|
// tslint:disable-next-line:no-shadowed-variable
|
|
172
167
|
var paymentMethod;
|
|
173
168
|
(function (paymentMethod) {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as waiter from '@waiter/factory';
|
|
2
2
|
import { AccountType } from '../accountType';
|
|
3
3
|
import { IAttributes as IOrderActionAttributes } from '../action/trade/order';
|
|
4
|
-
import { IObject as IGivePointAwardObject } from '../action/transfer/give/pointAward';
|
|
5
4
|
import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult, IPaymentMethodWithoutDetail } from '../assetTransaction/pay';
|
|
6
5
|
import { IExtendId } from '../autoGenerated';
|
|
7
6
|
import { IClientUser } from '../clientUser';
|
|
@@ -79,9 +78,6 @@ export interface IObject {
|
|
|
79
78
|
* WAITER許可証
|
|
80
79
|
*/
|
|
81
80
|
passport?: waiter.passport.IPassport;
|
|
82
|
-
potentialActions?: {
|
|
83
|
-
givePointAward?: IGivePointAwardParams[];
|
|
84
|
-
};
|
|
85
81
|
}
|
|
86
82
|
export interface IStartParamsWithoutDetail {
|
|
87
83
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
@@ -111,12 +107,6 @@ export interface IStartParams extends Pick<TransactionFactory.IStartParams<Trans
|
|
|
111
107
|
expiresInSeconds: number;
|
|
112
108
|
}
|
|
113
109
|
type ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
|
|
114
|
-
/**
|
|
115
|
-
* インセンティブ付与パラメータ
|
|
116
|
-
*/
|
|
117
|
-
export interface IGivePointAwardParams {
|
|
118
|
-
object?: IGivePointAwardObject;
|
|
119
|
-
}
|
|
120
110
|
/**
|
|
121
111
|
* 取引確定後アクションパラメータ
|
|
122
112
|
*/
|
package/package.json
CHANGED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as ActionFactory from '../../../action';
|
|
2
|
-
import { ActionType } from '../../../actionType';
|
|
3
|
-
import { TransactionType } from '../../../transactionType';
|
|
4
|
-
import * as AuthorizeActionFactory from '../../authorize';
|
|
5
|
-
export type IAgent = ActionFactory.IParticipantAsSeller;
|
|
6
|
-
export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
7
|
-
export declare enum ObjectType {
|
|
8
|
-
PointAward = "PointAward"
|
|
9
|
-
}
|
|
10
|
-
export interface IObject {
|
|
11
|
-
typeOf: ObjectType;
|
|
12
|
-
/**
|
|
13
|
-
* 金額
|
|
14
|
-
*/
|
|
15
|
-
amount: number;
|
|
16
|
-
/**
|
|
17
|
-
* 入金先カード番号
|
|
18
|
-
*/
|
|
19
|
-
toAccountNumber: string;
|
|
20
|
-
/**
|
|
21
|
-
* 説明
|
|
22
|
-
*/
|
|
23
|
-
notes?: string;
|
|
24
|
-
}
|
|
25
|
-
export interface IResult {
|
|
26
|
-
amount: number;
|
|
27
|
-
}
|
|
28
|
-
export interface IPurpose {
|
|
29
|
-
typeOf: TransactionType;
|
|
30
|
-
id: string;
|
|
31
|
-
}
|
|
32
|
-
export type IError = any;
|
|
33
|
-
export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
|
|
34
|
-
typeOf: ActionType.AuthorizeAction;
|
|
35
|
-
object: IObject;
|
|
36
|
-
agent: IAgent;
|
|
37
|
-
recipient: IRecipient;
|
|
38
|
-
purpose: IPurpose;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* ポイントインセンティブ承認アクション
|
|
42
|
-
* 注文取引のインセンティブとしてポイントを付与する場合に使用されます。
|
|
43
|
-
*/
|
|
44
|
-
export type IAction = ActionFactory.IAction<IAttributes>;
|