@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
package/lib/chevre/taskName.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ export declare enum TaskName {
|
|
|
18
18
|
* 口座転送中止
|
|
19
19
|
*/
|
|
20
20
|
CancelAccountMoneyTransfer = "cancelAccountMoneyTransfer",
|
|
21
|
-
CancelMoneyTransfer = "cancelMoneyTransfer",
|
|
22
21
|
CancelReservation = "cancelReservation",
|
|
23
22
|
CancelPendingReservation = "cancelPendingReservation",
|
|
24
23
|
/**
|
|
@@ -29,18 +28,10 @@ export declare enum TaskName {
|
|
|
29
28
|
* リソース検証
|
|
30
29
|
*/
|
|
31
30
|
CheckResource = "checkResource",
|
|
32
|
-
/**
|
|
33
|
-
* サービス登録
|
|
34
|
-
*/
|
|
35
|
-
ConfirmRegisterService = "confirmRegisterService",
|
|
36
31
|
/**
|
|
37
32
|
* 決済資産取引確定
|
|
38
33
|
*/
|
|
39
34
|
ConfirmPayTransaction = "confirmPayTransaction",
|
|
40
|
-
/**
|
|
41
|
-
* サービス登録資産取引確定
|
|
42
|
-
*/
|
|
43
|
-
ConfirmRegisterServiceTransaction = "confirmRegisterServiceTransaction",
|
|
44
35
|
/**
|
|
45
36
|
* 予約資産取引確定
|
|
46
37
|
*/
|
|
@@ -51,16 +42,11 @@ export declare enum TaskName {
|
|
|
51
42
|
CreateAccountingReport = "createAccountingReport",
|
|
52
43
|
DeletePerson = "deletePerson",
|
|
53
44
|
DeleteTransaction = "deleteTransaction",
|
|
54
|
-
/**
|
|
55
|
-
* ポイント特典付与
|
|
56
|
-
*/
|
|
57
|
-
GivePointAward = "givePointAward",
|
|
58
45
|
HandleNotification = "handleNotification",
|
|
59
46
|
ImportEventCapacitiesFromCOA = "importEventCapacitiesFromCOA",
|
|
60
47
|
ImportEventsFromCOA = "importEventsFromCOA",
|
|
61
48
|
ImportOffersFromCOA = "importOffersFromCOA",
|
|
62
49
|
InvalidatePaymentUrl = "invalidatePaymentUrl",
|
|
63
|
-
MoneyTransfer = "moneyTransfer",
|
|
64
50
|
OnAssetTransactionStatusChanged = "onAssetTransactionStatusChanged",
|
|
65
51
|
OnAuthorizationCreated = "onAuthorizationCreated",
|
|
66
52
|
OnEventChanged = "onEventChanged",
|
|
@@ -90,10 +76,6 @@ export declare enum TaskName {
|
|
|
90
76
|
* 決済資産取引返却
|
|
91
77
|
*/
|
|
92
78
|
ReturnPayTransaction = "returnPayTransaction",
|
|
93
|
-
/**
|
|
94
|
-
* ポイント特典返却
|
|
95
|
-
*/
|
|
96
|
-
ReturnPointAward = "returnPointAward",
|
|
97
79
|
/**
|
|
98
80
|
* 予約資産取引返却
|
|
99
81
|
*/
|
|
@@ -114,10 +96,6 @@ export declare enum TaskName {
|
|
|
114
96
|
* 決済中止
|
|
115
97
|
*/
|
|
116
98
|
VoidPayTransaction = "voidPayTransaction",
|
|
117
|
-
/**
|
|
118
|
-
* サービス登録中止
|
|
119
|
-
*/
|
|
120
|
-
VoidRegisterServiceTransaction = "voidRegisterServiceTransaction",
|
|
121
99
|
/**
|
|
122
100
|
* 予約中止
|
|
123
101
|
*/
|
package/lib/chevre/taskName.js
CHANGED
|
@@ -22,7 +22,6 @@ var TaskName;
|
|
|
22
22
|
* 口座転送中止
|
|
23
23
|
*/
|
|
24
24
|
TaskName["CancelAccountMoneyTransfer"] = "cancelAccountMoneyTransfer";
|
|
25
|
-
TaskName["CancelMoneyTransfer"] = "cancelMoneyTransfer";
|
|
26
25
|
TaskName["CancelReservation"] = "cancelReservation";
|
|
27
26
|
TaskName["CancelPendingReservation"] = "cancelPendingReservation";
|
|
28
27
|
/**
|
|
@@ -33,18 +32,10 @@ var TaskName;
|
|
|
33
32
|
* リソース検証
|
|
34
33
|
*/
|
|
35
34
|
TaskName["CheckResource"] = "checkResource";
|
|
36
|
-
/**
|
|
37
|
-
* サービス登録
|
|
38
|
-
*/
|
|
39
|
-
TaskName["ConfirmRegisterService"] = "confirmRegisterService";
|
|
40
35
|
/**
|
|
41
36
|
* 決済資産取引確定
|
|
42
37
|
*/
|
|
43
38
|
TaskName["ConfirmPayTransaction"] = "confirmPayTransaction";
|
|
44
|
-
/**
|
|
45
|
-
* サービス登録資産取引確定
|
|
46
|
-
*/
|
|
47
|
-
TaskName["ConfirmRegisterServiceTransaction"] = "confirmRegisterServiceTransaction";
|
|
48
39
|
/**
|
|
49
40
|
* 予約資産取引確定
|
|
50
41
|
*/
|
|
@@ -59,16 +50,11 @@ var TaskName;
|
|
|
59
50
|
// CreateEvent = 'createEvent', // discontinue(2026-02-14~)
|
|
60
51
|
TaskName["DeletePerson"] = "deletePerson";
|
|
61
52
|
TaskName["DeleteTransaction"] = "deleteTransaction";
|
|
62
|
-
/**
|
|
63
|
-
* ポイント特典付与
|
|
64
|
-
*/
|
|
65
|
-
TaskName["GivePointAward"] = "givePointAward";
|
|
66
53
|
TaskName["HandleNotification"] = "handleNotification";
|
|
67
54
|
TaskName["ImportEventCapacitiesFromCOA"] = "importEventCapacitiesFromCOA";
|
|
68
55
|
TaskName["ImportEventsFromCOA"] = "importEventsFromCOA";
|
|
69
56
|
TaskName["ImportOffersFromCOA"] = "importOffersFromCOA";
|
|
70
57
|
TaskName["InvalidatePaymentUrl"] = "invalidatePaymentUrl";
|
|
71
|
-
TaskName["MoneyTransfer"] = "moneyTransfer";
|
|
72
58
|
TaskName["OnAssetTransactionStatusChanged"] = "onAssetTransactionStatusChanged";
|
|
73
59
|
TaskName["OnAuthorizationCreated"] = "onAuthorizationCreated";
|
|
74
60
|
TaskName["OnEventChanged"] = "onEventChanged";
|
|
@@ -99,10 +85,6 @@ var TaskName;
|
|
|
99
85
|
* 決済資産取引返却
|
|
100
86
|
*/
|
|
101
87
|
TaskName["ReturnPayTransaction"] = "returnPayTransaction";
|
|
102
|
-
/**
|
|
103
|
-
* ポイント特典返却
|
|
104
|
-
*/
|
|
105
|
-
TaskName["ReturnPointAward"] = "returnPointAward";
|
|
106
88
|
/**
|
|
107
89
|
* 予約資産取引返却
|
|
108
90
|
*/
|
|
@@ -123,10 +105,6 @@ var TaskName;
|
|
|
123
105
|
* 決済中止
|
|
124
106
|
*/
|
|
125
107
|
TaskName["VoidPayTransaction"] = "voidPayTransaction";
|
|
126
|
-
/**
|
|
127
|
-
* サービス登録中止
|
|
128
|
-
*/
|
|
129
|
-
TaskName["VoidRegisterServiceTransaction"] = "voidRegisterServiceTransaction";
|
|
130
108
|
/**
|
|
131
109
|
* 予約中止
|
|
132
110
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { IPointAward } from './action/transfer/moneyTransfer';
|
|
2
1
|
import { IAdvanceBookingRequirement as IActualAdvanceBookingRequirement } from './advanceBookingRequirement';
|
|
3
2
|
import { ItemAvailability } from './itemAvailability';
|
|
4
3
|
import { IAddOn, ICategory, IEligibleCategoryCode, IEligibleMonetaryAmount, IName, IOffer } from './offer';
|
|
@@ -36,7 +35,7 @@ export interface IItemOffered {
|
|
|
36
35
|
/**
|
|
37
36
|
* 特典
|
|
38
37
|
*/
|
|
39
|
-
pointAward?:
|
|
38
|
+
pointAward?: never;
|
|
40
39
|
}
|
|
41
40
|
/**
|
|
42
41
|
* 単価オファーの価格仕様
|
package/package.json
CHANGED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { IAction as IBaseAction } from '../../../action';
|
|
2
|
-
import { ActionType } from '../../../actionType';
|
|
3
|
-
import { IAcceptedOfferWithoutDetail } from '../../../assetTransaction/registerService';
|
|
4
|
-
import { IOffer } from '../../../offer';
|
|
5
|
-
import { IIssuedThroughAsProduct, IPermit } from '../../../permit';
|
|
6
|
-
import { IMembershipProduct, IPaymentCardProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecification } from '../../../product';
|
|
7
|
-
import { ISeller } from '../../../seller';
|
|
8
|
-
import { IAttributes as IBaseAttributes } from '../../authorize';
|
|
9
|
-
import { IPointAward } from '../../transfer/moneyTransfer';
|
|
10
|
-
import { IAgent, IError, IInstrumentAsRegisterService, IPurpose, IRecipient, IResultAsAggregateOffer, ObjectType } from './any';
|
|
11
|
-
export { IAgent, IRecipient, IInstrumentAsRegisterService, IError, IPurpose, ObjectType, IResultAsAggregateOffer };
|
|
12
|
-
export type IPermitIssuedByProduct = Omit<IPermit, 'issuedThrough'> & {
|
|
13
|
-
issuedThrough?: IIssuedThroughAsProduct;
|
|
14
|
-
};
|
|
15
|
-
export type IItemOffered = Pick<IMembershipProduct | IPaymentCardProduct, 'typeOf' | 'id' | 'name'> & {
|
|
16
|
-
serviceOutput: IProductServiceOutput & IPermitIssuedByProduct;
|
|
17
|
-
pointAward?: IPointAward;
|
|
18
|
-
};
|
|
19
|
-
export { IAcceptedOfferWithoutDetail };
|
|
20
|
-
export type ISellerMakesOffer = Pick<ISeller, 'id' | 'name' | 'typeOf'>;
|
|
21
|
-
export interface IAcceptedOffer extends Pick<IOffer, 'typeOf' | 'id' | 'identifier' | 'itemOffered' | 'name' | 'priceCurrency' | 'seller'> {
|
|
22
|
-
/**
|
|
23
|
-
* オファーコード
|
|
24
|
-
*/
|
|
25
|
-
identifier?: string;
|
|
26
|
-
/**
|
|
27
|
-
* オファー対象アイテム
|
|
28
|
-
*/
|
|
29
|
-
itemOffered: IItemOffered;
|
|
30
|
-
/**
|
|
31
|
-
* 販売者
|
|
32
|
-
*/
|
|
33
|
-
seller: ISellerMakesOffer;
|
|
34
|
-
priceSpecification?: ITicketPriceSpecification;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* 承認アクションオブジェクト(最適化されたAcceptedOffer)
|
|
38
|
-
*/
|
|
39
|
-
export interface IObjectAsAcceptedOffer {
|
|
40
|
-
typeOf: ObjectType.AggregateOffer;
|
|
41
|
-
/**
|
|
42
|
-
* オファー対象アイテム
|
|
43
|
-
*/
|
|
44
|
-
itemOffered: Pick<IItemOffered, 'id' | 'typeOf'>;
|
|
45
|
-
event?: never;
|
|
46
|
-
id?: never;
|
|
47
|
-
pendingTransaction?: never;
|
|
48
|
-
}
|
|
49
|
-
export type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
|
|
50
|
-
export type IObject = IObjectAsAcceptedOffer;
|
|
51
|
-
export interface IResult extends IResultAsAggregateOffer {
|
|
52
|
-
/**
|
|
53
|
-
* オファー未指定は現時点でありえないので金額は必ず確定
|
|
54
|
-
*/
|
|
55
|
-
price: number;
|
|
56
|
-
requestBody?: never;
|
|
57
|
-
responseBody?: never;
|
|
58
|
-
offers?: never;
|
|
59
|
-
itemOffered?: never;
|
|
60
|
-
amount?: never;
|
|
61
|
-
}
|
|
62
|
-
export type IInstrument = IInstrumentAsRegisterService;
|
|
63
|
-
export interface IAttributes extends IBaseAttributes<IObject, IResult> {
|
|
64
|
-
typeOf: ActionType.AuthorizeAction;
|
|
65
|
-
agent: IAgent;
|
|
66
|
-
instrument: IInstrument;
|
|
67
|
-
recipient: IRecipient;
|
|
68
|
-
object: IObject;
|
|
69
|
-
purpose: IPurpose;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* プロダクトオファー承認アクション
|
|
73
|
-
*/
|
|
74
|
-
export type IAction = IBaseAction<IAttributes>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IParticipantAsProject } from '../../../action';
|
|
2
|
-
import { IConfirmParams } from '../../../assetTransaction/registerService';
|
|
3
|
-
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
4
|
-
import { ISimpleOrder } from '../../../order';
|
|
5
|
-
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../confirm';
|
|
6
|
-
export type IAgent = IParticipantAsProject;
|
|
7
|
-
export type IObject = Pick<IConfirmParams, 'transactionNumber' | 'endDate'> & {
|
|
8
|
-
transactionNumber: string;
|
|
9
|
-
typeOf: AssetTransactionType.RegisterService;
|
|
10
|
-
object?: {
|
|
11
|
-
itemOffered?: {
|
|
12
|
-
serviceOutput?: {
|
|
13
|
-
identifier?: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
export type IPurpose = ISimpleOrder;
|
|
19
|
-
export type IResult = any;
|
|
20
|
-
export interface IAttributes extends IBaseAttributes<IObject, IResult> {
|
|
21
|
-
agent: IAgent;
|
|
22
|
-
purpose: IPurpose;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* サービス登録確定アクション
|
|
26
|
-
*/
|
|
27
|
-
export type IAction = IBaseAction<IAttributes>;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { IParticipantAsSeller } from '../../../action';
|
|
2
|
-
import { ISimpleOrder } from '../../../order';
|
|
3
|
-
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../give';
|
|
4
|
-
export type IAgent = IParticipantAsSeller;
|
|
5
|
-
export declare enum ObjectType {
|
|
6
|
-
PointAward = "PointAward"
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* ポイント特典付与対象
|
|
10
|
-
*/
|
|
11
|
-
export interface IObject {
|
|
12
|
-
typeOf: ObjectType;
|
|
13
|
-
/**
|
|
14
|
-
* 入金識別子
|
|
15
|
-
*/
|
|
16
|
-
identifier?: string;
|
|
17
|
-
amount: number;
|
|
18
|
-
/**
|
|
19
|
-
* 入金先カード
|
|
20
|
-
*/
|
|
21
|
-
toLocation: {
|
|
22
|
-
/**
|
|
23
|
-
* 入金先カード番号
|
|
24
|
-
* 口座番号ではないので注意
|
|
25
|
-
*/
|
|
26
|
-
accountNumber: string;
|
|
27
|
-
issuedThrough: {
|
|
28
|
-
/**
|
|
29
|
-
* カード発行サービスID
|
|
30
|
-
*/
|
|
31
|
-
id: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
description: string;
|
|
35
|
-
}
|
|
36
|
-
export type IResult = any;
|
|
37
|
-
/**
|
|
38
|
-
* 目的は注文
|
|
39
|
-
* 注文に対する特典としてポイントが付与される仕組み
|
|
40
|
-
*/
|
|
41
|
-
export type IPurpose = ISimpleOrder;
|
|
42
|
-
export type IPotentialActions = any;
|
|
43
|
-
export interface IAttributes extends IBaseAttributes<IObject, IResult> {
|
|
44
|
-
agent: IAgent;
|
|
45
|
-
purpose: IPurpose;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* ポイント特典付与アクション
|
|
49
|
-
*/
|
|
50
|
-
export type IAction = IBaseAction<IAttributes>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IParticipant, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
2
|
-
import { ActionType } from '../../actionType';
|
|
3
|
-
export type IAgent = IParticipant;
|
|
4
|
-
export type IRecipient = IParticipant;
|
|
5
|
-
export type IObject = any;
|
|
6
|
-
export type IResult = any;
|
|
7
|
-
export type ILocation = any;
|
|
8
|
-
export interface IAttributes<TObject, TResult> extends IBaseAttributes<ActionType.GiveAction, TObject, TResult> {
|
|
9
|
-
recipient: IRecipient;
|
|
10
|
-
fromLocation?: ILocation;
|
|
11
|
-
toLocation?: ILocation;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 付与アクションインターフェース
|
|
15
|
-
*/
|
|
16
|
-
export type IAction<TAttributes extends IAttributes<IObject, IResult>> = IBaseAction<TAttributes>;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { AccountTransactionType } from '../../account/transactionType';
|
|
2
|
-
import { IParticipantAsProject, IParticipantAsPerson, IParticipantAsSeller, IParticipant, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
3
|
-
import { ActionType } from '../../actionType';
|
|
4
|
-
import { IPaymentCard } from '../../assetTransaction/moneyTransfer';
|
|
5
|
-
import { AssetTransactionType } from '../../assetTransactionType';
|
|
6
|
-
import { IMonetaryAmount } from '../../monetaryAmount';
|
|
7
|
-
import { PermitType } from '../../permit';
|
|
8
|
-
/**
|
|
9
|
-
* 進行中取引
|
|
10
|
-
*/
|
|
11
|
-
export interface IPendingTransaction {
|
|
12
|
-
typeOf: AccountTransactionType;
|
|
13
|
-
identifier?: string;
|
|
14
|
-
transactionNumber: string;
|
|
15
|
-
}
|
|
16
|
-
export type IAgent = IParticipantAsProject | IParticipantAsPerson | IParticipantAsSeller;
|
|
17
|
-
export type IRecipient = IParticipant;
|
|
18
|
-
/**
|
|
19
|
-
* 匿名ロケーション
|
|
20
|
-
*/
|
|
21
|
-
export interface IAnonymousLocation {
|
|
22
|
-
id?: string;
|
|
23
|
-
identifier?: string;
|
|
24
|
-
name?: string;
|
|
25
|
-
typeOf: string;
|
|
26
|
-
}
|
|
27
|
-
export { IPaymentCard };
|
|
28
|
-
/**
|
|
29
|
-
* 転送元あるいは転送先の場所インターフェース
|
|
30
|
-
*/
|
|
31
|
-
export type ILocation = IAnonymousLocation | IPaymentCard;
|
|
32
|
-
export interface IObject {
|
|
33
|
-
typeOf: AccountTransactionType;
|
|
34
|
-
transactionNumber?: string;
|
|
35
|
-
/**
|
|
36
|
-
* 取引承認済の場合、進行中取引
|
|
37
|
-
*/
|
|
38
|
-
pendingTransaction?: IPendingTransaction;
|
|
39
|
-
}
|
|
40
|
-
export type IResult = any;
|
|
41
|
-
export type IPotentialActions = any;
|
|
42
|
-
export interface ITransactionPurpose {
|
|
43
|
-
typeOf: AssetTransactionType;
|
|
44
|
-
id: string;
|
|
45
|
-
identifier?: string;
|
|
46
|
-
}
|
|
47
|
-
export type IPurpose = ITransactionPurpose;
|
|
48
|
-
export type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
|
|
49
|
-
export interface IAttributes extends IBaseAttributes<ActionType.MoneyTransfer, IObject, IResult> {
|
|
50
|
-
typeOf: ActionType.MoneyTransfer;
|
|
51
|
-
agent: IAgent;
|
|
52
|
-
recipient: IRecipient;
|
|
53
|
-
purpose: IPurpose;
|
|
54
|
-
/**
|
|
55
|
-
* 金額
|
|
56
|
-
*/
|
|
57
|
-
amount: IAmount;
|
|
58
|
-
/**
|
|
59
|
-
* 転送元
|
|
60
|
-
*/
|
|
61
|
-
fromLocation: ILocation;
|
|
62
|
-
/**
|
|
63
|
-
* 転送先
|
|
64
|
-
*/
|
|
65
|
-
toLocation: ILocation;
|
|
66
|
-
}
|
|
67
|
-
export type IAction = IBaseAction<IAttributes>;
|
|
68
|
-
export type IPointAwardAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
|
|
69
|
-
/**
|
|
70
|
-
* ポイント特典
|
|
71
|
-
*/
|
|
72
|
-
export interface IPointAward {
|
|
73
|
-
typeOf: ActionType.MoneyTransfer;
|
|
74
|
-
amount?: IPointAwardAmount;
|
|
75
|
-
/**
|
|
76
|
-
* 特典付与先
|
|
77
|
-
*/
|
|
78
|
-
toLocation?: {
|
|
79
|
-
typeOf: PermitType.Permit;
|
|
80
|
-
/**
|
|
81
|
-
* カード番号
|
|
82
|
-
*/
|
|
83
|
-
identifier: string;
|
|
84
|
-
issuedThrough: {
|
|
85
|
-
/**
|
|
86
|
-
* カード発行サービスID
|
|
87
|
-
*/
|
|
88
|
-
id: string;
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
description?: string;
|
|
92
|
-
recipient?: IRecipient;
|
|
93
|
-
purpose?: {
|
|
94
|
-
/**
|
|
95
|
-
* 特典識別子
|
|
96
|
-
*/
|
|
97
|
-
identifier?: string;
|
|
98
|
-
};
|
|
99
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { IParticipantAsProject, IParticipantAsSeller } from '../../../action';
|
|
2
|
-
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
3
|
-
import { ISimpleOrder } from '../../../order';
|
|
4
|
-
import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../return';
|
|
5
|
-
export type IAgent = IParticipantAsProject;
|
|
6
|
-
export type IRecipient = IParticipantAsSeller;
|
|
7
|
-
/**
|
|
8
|
-
* 入金取引識別子で指定する場合のオブジェクト
|
|
9
|
-
*/
|
|
10
|
-
export interface IObjectByTransactionIdentifier {
|
|
11
|
-
typeOf: AssetTransactionType.MoneyTransfer;
|
|
12
|
-
identifier: string;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 出金元番号で指定する場合のオブジェクト
|
|
16
|
-
*/
|
|
17
|
-
export interface IObjectByTransactionFromLocationIdentifier {
|
|
18
|
-
typeOf: AssetTransactionType.MoneyTransfer;
|
|
19
|
-
object: {
|
|
20
|
-
fromLocation: {
|
|
21
|
-
identifier: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export type IObject = IObjectByTransactionIdentifier | IObjectByTransactionFromLocationIdentifier;
|
|
26
|
-
export type IPurpose = ISimpleOrder;
|
|
27
|
-
export type IResult = any;
|
|
28
|
-
export interface IPotentialActions {
|
|
29
|
-
}
|
|
30
|
-
export interface IAttributes extends IBaseAttributes<IObject, IResult> {
|
|
31
|
-
agent: IAgent;
|
|
32
|
-
recipient: IRecipient;
|
|
33
|
-
potentialActions?: IPotentialActions;
|
|
34
|
-
purpose: IPurpose;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* ポイント特典返却アクション
|
|
38
|
-
*/
|
|
39
|
-
export type IAction = IBaseAction<IAttributes>;
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { IAmount as IMoneyTransferAmount, IAttributes as IMoneyTransferActionAttributes, ILocation, IPendingTransaction, IRecipient as IMoneyTransferRecipient } from '../action/transfer/moneyTransfer';
|
|
2
|
-
import { IAgent, ISearchConditions as IBaseSearchConditions, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../assetTransaction';
|
|
3
|
-
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
|
-
import { IExtendId } from '../autoGenerated';
|
|
5
|
-
import { OrderType } from '../order';
|
|
6
|
-
import { PermitType } from '../permit';
|
|
7
|
-
export { IAgent };
|
|
8
|
-
export type IRecipient = IMoneyTransferRecipient & {
|
|
9
|
-
name: string;
|
|
10
|
-
};
|
|
11
|
-
export type IFromLocation = ILocation;
|
|
12
|
-
export type IToLocation = ILocation;
|
|
13
|
-
/**
|
|
14
|
-
* ペイメントカード
|
|
15
|
-
*/
|
|
16
|
-
export interface IPaymentCard {
|
|
17
|
-
typeOf: PermitType;
|
|
18
|
-
identifier: string;
|
|
19
|
-
accessCode?: string;
|
|
20
|
-
hasNoPermit?: boolean;
|
|
21
|
-
issuedThrough: {
|
|
22
|
-
/**
|
|
23
|
-
* カード発行サービスID
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* トークン化されたペイメントカードンターフェース
|
|
30
|
-
*/
|
|
31
|
-
export type ITokenizedPaymentCard = string;
|
|
32
|
-
/**
|
|
33
|
-
* 転送元としての注文
|
|
34
|
-
*/
|
|
35
|
-
export interface IOrderAsFromLocation {
|
|
36
|
-
typeOf: OrderType;
|
|
37
|
-
confirmationNumber: string;
|
|
38
|
-
orderNumber: string;
|
|
39
|
-
}
|
|
40
|
-
export type IFromLocationBeforeStart = IOrderAsFromLocation | IPaymentCard | ITokenizedPaymentCard;
|
|
41
|
-
export type IToLocationBeforeStart = IOrderAsFromLocation | IPaymentCard;
|
|
42
|
-
/**
|
|
43
|
-
* 取引対象物
|
|
44
|
-
*/
|
|
45
|
-
export interface IObject {
|
|
46
|
-
/**
|
|
47
|
-
* 金額
|
|
48
|
-
*/
|
|
49
|
-
amount: IMoneyTransferAmount;
|
|
50
|
-
/**
|
|
51
|
-
* 転送元
|
|
52
|
-
*/
|
|
53
|
-
fromLocation: IFromLocation;
|
|
54
|
-
/**
|
|
55
|
-
* 転送先
|
|
56
|
-
*/
|
|
57
|
-
toLocation: IToLocation;
|
|
58
|
-
/**
|
|
59
|
-
* 取引説明
|
|
60
|
-
*/
|
|
61
|
-
description?: string;
|
|
62
|
-
pendingTransaction: IPendingTransaction;
|
|
63
|
-
/**
|
|
64
|
-
* 負の残高でも強制的に出金するかどうか
|
|
65
|
-
*/
|
|
66
|
-
force?: boolean;
|
|
67
|
-
}
|
|
68
|
-
export type IObjectWithoutDetail = IObject;
|
|
69
|
-
export interface IObjectBeforeStart {
|
|
70
|
-
/**
|
|
71
|
-
* 金額
|
|
72
|
-
*/
|
|
73
|
-
amount: IMoneyTransferAmount;
|
|
74
|
-
/**
|
|
75
|
-
* 転送元
|
|
76
|
-
*/
|
|
77
|
-
fromLocation: IFromLocation | IFromLocationBeforeStart;
|
|
78
|
-
/**
|
|
79
|
-
* 転送先
|
|
80
|
-
*/
|
|
81
|
-
toLocation: IToLocation | IToLocationBeforeStart;
|
|
82
|
-
/**
|
|
83
|
-
* 取引説明
|
|
84
|
-
*/
|
|
85
|
-
description?: string;
|
|
86
|
-
/**
|
|
87
|
-
* 口座取引タイプの確認ために指定
|
|
88
|
-
*/
|
|
89
|
-
pendingTransaction: Pick<IPendingTransaction, 'typeOf'>;
|
|
90
|
-
/**
|
|
91
|
-
* 負の残高でも強制的に出金するかどうか
|
|
92
|
-
*/
|
|
93
|
-
force?: boolean;
|
|
94
|
-
}
|
|
95
|
-
export interface IStartParamsWithoutDetail extends IBaseStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObjectWithoutDetail> {
|
|
96
|
-
recipient: IRecipient;
|
|
97
|
-
}
|
|
98
|
-
export interface IStartParamsBeforeStart extends IBaseStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObjectBeforeStart> {
|
|
99
|
-
recipient: IRecipient;
|
|
100
|
-
}
|
|
101
|
-
export interface IStartParams extends IBaseStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObject> {
|
|
102
|
-
recipient: IRecipient;
|
|
103
|
-
}
|
|
104
|
-
export type IResult = any;
|
|
105
|
-
export type IError = any;
|
|
106
|
-
export interface IPotentialActions {
|
|
107
|
-
/**
|
|
108
|
-
* 通貨転送アクション
|
|
109
|
-
*/
|
|
110
|
-
moneyTransfer: IMoneyTransferActionAttributes[];
|
|
111
|
-
}
|
|
112
|
-
export interface IAttributes extends IBaseAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* 転送取引
|
|
116
|
-
*/
|
|
117
|
-
export type ITransaction = IExtendId<IAttributes>;
|
|
118
|
-
export interface ISearchConditions extends IBaseSearchConditions<AssetTransactionType.MoneyTransfer> {
|
|
119
|
-
object?: {
|
|
120
|
-
fromLocation?: {
|
|
121
|
-
identifier?: {
|
|
122
|
-
$eq?: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
toLocation?: {
|
|
126
|
-
identifier?: {
|
|
127
|
-
$eq?: string;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
pendingTransaction?: {
|
|
131
|
-
identifier?: {
|
|
132
|
-
$eq?: string;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
}
|