@chevre/factory 7.0.0 → 8.0.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/chevre/action/authorize/offer/any.d.ts +1 -6
- package/lib/chevre/action/authorize/offer/any.js +1 -1
- package/lib/chevre/action/interact/register/service.d.ts +1 -2
- package/lib/chevre/action/reserve.d.ts +1 -2
- package/lib/chevre/action/transfer/return/order.d.ts +1 -3
- package/lib/chevre/actionType.d.ts +0 -1
- package/lib/chevre/actionType.js +0 -1
- package/lib/chevre/assetTransaction/reserve.d.ts +2 -23
- package/lib/chevre/assetTransactionType.d.ts +0 -9
- package/lib/chevre/assetTransactionType.js +0 -9
- package/lib/chevre/index.d.ts +9 -37
- package/lib/chevre/index.js +0 -21
- package/lib/chevre/order.d.ts +9 -11
- package/lib/chevre/reservedCodeValues.js +1 -2
- package/lib/chevre/service/paymentService.d.ts +1 -2
- package/lib/chevre/service/paymentService.js +1 -1
- package/lib/chevre/task/onAssetTransactionStatusChanged.d.ts +1 -11
- package/lib/chevre/taskName.d.ts +0 -22
- package/lib/chevre/taskName.js +0 -22
- package/lib/chevre/unitPriceOffer.d.ts +1 -2
- package/package.json +1 -1
- package/lib/chevre/action/authorize/offer/product.d.ts +0 -74
- package/lib/chevre/action/authorize/offer/product.js +0 -5
- package/lib/chevre/action/interact/confirm/registerService.d.ts +0 -27
- package/lib/chevre/action/interact/confirm/registerService.js +0 -2
- package/lib/chevre/action/transfer/give/pointAward.d.ts +0 -50
- package/lib/chevre/action/transfer/give/pointAward.js +0 -7
- package/lib/chevre/action/transfer/give.d.ts +0 -16
- package/lib/chevre/action/transfer/give.js +0 -2
- package/lib/chevre/action/transfer/moneyTransfer.d.ts +0 -99
- package/lib/chevre/action/transfer/moneyTransfer.js +0 -2
- package/lib/chevre/action/transfer/return/pointAward.d.ts +0 -39
- package/lib/chevre/action/transfer/return/pointAward.js +0 -2
- package/lib/chevre/assetTransaction/moneyTransfer.d.ts +0 -136
- package/lib/chevre/assetTransaction/moneyTransfer.js +0 -2
- package/lib/chevre/assetTransaction/registerService.d.ts +0 -104
- package/lib/chevre/assetTransaction/registerService.js +0 -2
- package/lib/chevre/orderExternal.d.ts +0 -12
- package/lib/chevre/orderExternal.js +0 -2
- package/lib/chevre/task/cancelMoneyTransfer.d.ts +0 -18
- package/lib/chevre/task/cancelMoneyTransfer.js +0 -2
- package/lib/chevre/task/confirmRegisterService.d.ts +0 -13
- package/lib/chevre/task/confirmRegisterService.js +0 -2
- package/lib/chevre/task/confirmRegisterServiceTransaction.d.ts +0 -13
- package/lib/chevre/task/confirmRegisterServiceTransaction.js +0 -2
- package/lib/chevre/task/givePointAward.d.ts +0 -13
- package/lib/chevre/task/givePointAward.js +0 -2
- package/lib/chevre/task/moneyTransfer.d.ts +0 -13
- package/lib/chevre/task/moneyTransfer.js +0 -2
- package/lib/chevre/task/returnPointAward.d.ts +0 -13
- package/lib/chevre/task/returnPointAward.js +0 -2
- package/lib/chevre/task/voidRegisterServiceTransaction.d.ts +0 -24
- package/lib/chevre/task/voidRegisterServiceTransaction.js +0 -2
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { IAttributes as IRegisterServiceActionAttributes } from '../action/interact/register/service';
|
|
2
|
-
import { IAttributes as IMoneyTransferActionAttributes, IPointAward } from '../action/transfer/moneyTransfer';
|
|
3
|
-
import { IAgent, ISearchConditions as IBaseSearchConditions, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../assetTransaction';
|
|
4
|
-
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
|
-
import { IExtendId } from '../autoGenerated';
|
|
6
|
-
import { OfferType } from '../offerType';
|
|
7
|
-
import { IIssuedThroughAsProduct, IPermit } from '../permit';
|
|
8
|
-
import { IMembershipProduct, IPaymentCardProduct } from '../product';
|
|
9
|
-
export { IAgent };
|
|
10
|
-
export type IStartParamsWithoutDetail = IBaseStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
|
|
11
|
-
/**
|
|
12
|
-
* 取引開始パラメーター
|
|
13
|
-
* サービス: MembershipService,PaymentCardであればserviceOutputを発行する
|
|
14
|
-
*/
|
|
15
|
-
export type IStartParams = IBaseStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObject>;
|
|
16
|
-
/**
|
|
17
|
-
* 確定パラメータ
|
|
18
|
-
*/
|
|
19
|
-
export interface IConfirmParams {
|
|
20
|
-
id?: string;
|
|
21
|
-
transactionNumber?: string;
|
|
22
|
-
/**
|
|
23
|
-
* 取引確定日時を指定する
|
|
24
|
-
* serviceOutputのvalidFromに適用される
|
|
25
|
-
*/
|
|
26
|
-
endDate?: Date;
|
|
27
|
-
}
|
|
28
|
-
export interface IResult {
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* エラー
|
|
32
|
-
*/
|
|
33
|
-
export type IError = any;
|
|
34
|
-
export interface IAcceptedPointAward {
|
|
35
|
-
purpose?: {
|
|
36
|
-
identifier?: string;
|
|
37
|
-
};
|
|
38
|
-
recipient?: any;
|
|
39
|
-
/**
|
|
40
|
-
* 特典付与先
|
|
41
|
-
*/
|
|
42
|
-
toLocation?: {
|
|
43
|
-
/**
|
|
44
|
-
* カード番号
|
|
45
|
-
*/
|
|
46
|
-
identifier: string;
|
|
47
|
-
issuedThrough: {
|
|
48
|
-
/**
|
|
49
|
-
* カード発行サービスID
|
|
50
|
-
*/
|
|
51
|
-
id: string;
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export type IServiceOutput = Omit<IPermit, 'issuedThrough'> & {
|
|
56
|
-
identifier: string;
|
|
57
|
-
issuedThrough?: IIssuedThroughAsProduct;
|
|
58
|
-
};
|
|
59
|
-
export interface IAcceptedItemOffered {
|
|
60
|
-
id?: string;
|
|
61
|
-
pointAward?: IAcceptedPointAward;
|
|
62
|
-
serviceOutput?: IServiceOutput;
|
|
63
|
-
}
|
|
64
|
-
export interface IAcceptedOfferWithoutDetail {
|
|
65
|
-
typeOf: OfferType.Offer;
|
|
66
|
-
id: string;
|
|
67
|
-
itemOffered: IAcceptedItemOffered;
|
|
68
|
-
}
|
|
69
|
-
export interface IItemOffered extends Pick<IMembershipProduct | IPaymentCardProduct, 'id' | 'typeOf'> {
|
|
70
|
-
serviceOutput: IServiceOutput;
|
|
71
|
-
pointAward?: IPointAward;
|
|
72
|
-
}
|
|
73
|
-
export interface IAcceptedOffer {
|
|
74
|
-
typeOf: OfferType.Offer;
|
|
75
|
-
id: string;
|
|
76
|
-
itemOffered: IItemOffered;
|
|
77
|
-
}
|
|
78
|
-
export type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
|
|
79
|
-
export type IObject = IAcceptedOffer[];
|
|
80
|
-
export interface IPotentialActions {
|
|
81
|
-
moneyTransfer: IMoneyTransferActionAttributes[];
|
|
82
|
-
registerService: IRegisterServiceActionAttributes[];
|
|
83
|
-
}
|
|
84
|
-
export interface IAttributes extends IBaseAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* 取引
|
|
88
|
-
*/
|
|
89
|
-
export type ITransaction = IExtendId<IAttributes>;
|
|
90
|
-
export interface ISearchConditions extends IBaseSearchConditions<AssetTransactionType.RegisterService> {
|
|
91
|
-
object?: {
|
|
92
|
-
itemOffered?: {
|
|
93
|
-
serviceOutput?: {
|
|
94
|
-
/**
|
|
95
|
-
* 発行許可証識別子
|
|
96
|
-
*/
|
|
97
|
-
identifier?: {
|
|
98
|
-
$eq?: string;
|
|
99
|
-
$in?: string[];
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IOrder, IOrderedItem, IProductAsOrderedItem } from './order';
|
|
2
|
-
export interface IExternalProductAsOrderedItem extends IProductAsOrderedItem {
|
|
3
|
-
name?: {
|
|
4
|
-
ja?: string;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export interface IExternalOrderedItem extends IOrderedItem {
|
|
8
|
-
orderedItem: IExternalProductAsOrderedItem;
|
|
9
|
-
}
|
|
10
|
-
export type IExternalOrder = Pick<IOrder, 'project' | 'typeOf' | 'seller' | 'customer' | 'confirmationNumber' | 'orderNumber' | 'price' | 'priceCurrency' | 'orderDate' | 'name' | 'orderStatus' | 'orderedItem' | 'paymentMethods'> & {
|
|
11
|
-
orderedItem?: IExternalOrderedItem[];
|
|
12
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AssetTransactionType } from '../assetTransactionType';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import { ITaskAttributes } from '../task';
|
|
4
|
-
import { TaskName } from '../taskName';
|
|
5
|
-
export interface IData {
|
|
6
|
-
purpose: {
|
|
7
|
-
typeOf: AssetTransactionType;
|
|
8
|
-
id: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
export interface IAttributes extends ITaskAttributes {
|
|
12
|
-
name: TaskName.CancelMoneyTransfer;
|
|
13
|
-
data: IData;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* 通貨転送中止タスクファクトリー
|
|
17
|
-
*/
|
|
18
|
-
export type ITask = IExtendId<IAttributes>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAttributes as IConfirmRegisterServiceActionAttributes } from '../action/interact/confirm/registerService';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import { ITaskAttributes } from '../task';
|
|
4
|
-
import { TaskName } from '../taskName';
|
|
5
|
-
export type IData = IConfirmRegisterServiceActionAttributes;
|
|
6
|
-
export interface IAttributes extends ITaskAttributes {
|
|
7
|
-
name: TaskName.ConfirmRegisterService;
|
|
8
|
-
data: IData;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* サービス登録確定タスク
|
|
12
|
-
*/
|
|
13
|
-
export type ITask = IExtendId<IAttributes>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAttributes as IConfirmRegisterServiceActionAttributes } from '../action/interact/confirm/registerService';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import { ITaskAttributes } from '../task';
|
|
4
|
-
import { TaskName } from '../taskName';
|
|
5
|
-
export type IData = IConfirmRegisterServiceActionAttributes;
|
|
6
|
-
export interface IAttributes extends ITaskAttributes {
|
|
7
|
-
name: TaskName.ConfirmRegisterServiceTransaction;
|
|
8
|
-
data: IData;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* サービス登録資産取引確定タスク
|
|
12
|
-
*/
|
|
13
|
-
export type ITask = IExtendId<IAttributes>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAttributes as IGivePointAwardActionAttributes } from '../action/transfer/give/pointAward';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import { ITaskAttributes } from '../task';
|
|
4
|
-
import { TaskName } from '../taskName';
|
|
5
|
-
export type IData = IGivePointAwardActionAttributes;
|
|
6
|
-
export interface IAttributes extends ITaskAttributes {
|
|
7
|
-
name: TaskName.GivePointAward;
|
|
8
|
-
data: IData;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* ポイント特典付与タスク
|
|
12
|
-
*/
|
|
13
|
-
export type ITask = IExtendId<IAttributes>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAttributes as IMoneyTransferActionAttributes } from '../action/transfer/moneyTransfer';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import { ITaskAttributes } from '../task';
|
|
4
|
-
import { TaskName } from '../taskName';
|
|
5
|
-
export type IData = IMoneyTransferActionAttributes;
|
|
6
|
-
export interface IAttributes extends ITaskAttributes {
|
|
7
|
-
name: TaskName.MoneyTransfer;
|
|
8
|
-
data: IData;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* 通貨転送タスクファクトリー
|
|
12
|
-
*/
|
|
13
|
-
export type ITask = IExtendId<IAttributes>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IAttributes as IReturnPointAwardActionAttributes } from '../action/transfer/return/pointAward';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import { ITaskAttributes } from '../task';
|
|
4
|
-
import { TaskName } from '../taskName';
|
|
5
|
-
export type IData = IReturnPointAwardActionAttributes;
|
|
6
|
-
export interface IAttributes extends ITaskAttributes {
|
|
7
|
-
name: TaskName.ReturnPointAward;
|
|
8
|
-
data: IData;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* ポイントインセンティブ返却タスクインターフェース
|
|
12
|
-
*/
|
|
13
|
-
export type ITask = IExtendId<IAttributes>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { IPurpose } from '../action/authorize/offer/product';
|
|
2
|
-
import { IExtendId } from '../autoGenerated';
|
|
3
|
-
import { IProject } from '../project';
|
|
4
|
-
import { ITaskAttributes } from '../task';
|
|
5
|
-
import { TaskName } from '../taskName';
|
|
6
|
-
export interface IData {
|
|
7
|
-
agent?: {
|
|
8
|
-
id: string;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* 承認アクションID指定であれば、指定アクションのみ中止
|
|
12
|
-
*/
|
|
13
|
-
id?: string;
|
|
14
|
-
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
15
|
-
purpose: IPurpose;
|
|
16
|
-
}
|
|
17
|
-
export interface IAttributes extends ITaskAttributes {
|
|
18
|
-
name: TaskName.VoidRegisterServiceTransaction;
|
|
19
|
-
data: IData;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* サービス登録中止タスクインターフェース
|
|
23
|
-
*/
|
|
24
|
-
export type ITask = IExtendId<IAttributes>;
|