@chevre/factory 8.0.0-alpha.5 → 8.0.0-alpha.7
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/trade/pay.d.ts +1 -15
- package/lib/chevre/assetTransaction/pay.d.ts +2 -2
- package/lib/chevre/assetTransaction/reserve.d.ts +1 -2
- package/lib/chevre/authorization.d.ts +2 -22
- package/lib/chevre/index.d.ts +0 -11
- package/lib/chevre/index.js +2 -13
- package/lib/chevre/ownershipInfo.d.ts +2 -3
- package/lib/chevre/permit.d.ts +2 -21
- package/lib/chevre/product.d.ts +5 -69
- package/lib/chevre/product.js +0 -12
- package/lib/chevre/reservation.d.ts +1 -9
- package/lib/chevre/reservedCodeValues.js +3 -7
- package/lib/chevre/service/paymentService.d.ts +3 -3
- package/lib/chevre/taskName.d.ts +0 -1
- package/lib/chevre/taskName.js +1 -1
- package/lib/chevre/transaction/placeOrder.d.ts +0 -8
- package/lib/chevre/unitPriceOffer.d.ts +1 -31
- package/package.json +1 -1
- package/lib/chevre/account/action/moneyTransfer.d.ts +0 -86
- package/lib/chevre/account/action/moneyTransfer.js +0 -2
- package/lib/chevre/account/transaction/deposit.d.ts +0 -27
- package/lib/chevre/account/transaction/deposit.js +0 -2
- package/lib/chevre/account/transaction/transfer.d.ts +0 -32
- package/lib/chevre/account/transaction/transfer.js +0 -2
- package/lib/chevre/account/transaction/withdraw.d.ts +0 -31
- package/lib/chevre/account/transaction/withdraw.js +0 -2
- package/lib/chevre/account/transaction.d.ts +0 -143
- package/lib/chevre/account/transaction.js +0 -2
- package/lib/chevre/account/transactionType.d.ts +0 -17
- package/lib/chevre/account/transactionType.js +0 -21
- package/lib/chevre/account.d.ts +0 -124
- package/lib/chevre/account.js +0 -19
- package/lib/chevre/accountType.d.ts +0 -15
- package/lib/chevre/accountType.js +0 -19
- package/lib/chevre/advanceBookingRequirement.d.ts +0 -60
- package/lib/chevre/advanceBookingRequirement.js +0 -2
- package/lib/chevre/task/accountMoneyTransfer.d.ts +0 -15
- package/lib/chevre/task/accountMoneyTransfer.js +0 -2
- package/lib/chevre/task/cancelAccountMoneyTransfer.d.ts +0 -19
- package/lib/chevre/task/cancelAccountMoneyTransfer.js +0 -2
- package/lib/chevre/task/registerService.d.ts +0 -13
- package/lib/chevre/task/registerService.js +0 -2
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { IAdvanceBookingRequirement as IActualAdvanceBookingRequirement } from './advanceBookingRequirement';
|
|
2
1
|
import { ItemAvailability } from './itemAvailability';
|
|
3
2
|
import { IAddOn, ICategory, IEligibleCategoryCode, IName, IOffer } from './offer';
|
|
4
3
|
import { OfferType } from './offerType';
|
|
5
|
-
import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
|
|
6
4
|
import { IAccounting } from './priceSpecification';
|
|
7
5
|
import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
8
6
|
import { IAddOnProduct, ProductType } from './product';
|
|
@@ -18,20 +16,7 @@ export { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions,
|
|
|
18
16
|
*/
|
|
19
17
|
export interface IItemOffered {
|
|
20
18
|
typeOf: ProductType;
|
|
21
|
-
serviceOutput?:
|
|
22
|
-
/**
|
|
23
|
-
* ペイメントカード初期金額
|
|
24
|
-
*/
|
|
25
|
-
amount?: IPermitAmount;
|
|
26
|
-
/**
|
|
27
|
-
* ペイメントカード入金設定
|
|
28
|
-
*/
|
|
29
|
-
depositAmount?: IDepositAmount;
|
|
30
|
-
/**
|
|
31
|
-
* ペイメントカード決済設定
|
|
32
|
-
*/
|
|
33
|
-
paymentAmount?: IPaymentAmount;
|
|
34
|
-
};
|
|
19
|
+
serviceOutput?: never;
|
|
35
20
|
/**
|
|
36
21
|
* 特典
|
|
37
22
|
*/
|
|
@@ -55,17 +40,11 @@ export interface ISettings {
|
|
|
55
40
|
*/
|
|
56
41
|
includedInAggregateReservation?: boolean;
|
|
57
42
|
}
|
|
58
|
-
export type IAdvanceBookingRequirement = Pick<IActualAdvanceBookingRequirement, 'id' | 'identifier' | 'typeOf'>;
|
|
59
43
|
export type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfStock;
|
|
60
44
|
/**
|
|
61
45
|
* 単価オファー
|
|
62
46
|
*/
|
|
63
47
|
export interface IUnitPriceOffer extends Pick<IOffer, 'acceptedPaymentMethod' | 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | 'eligibleSubReservation' | 'validFrom' | 'validThrough' | 'validRateLimit'> {
|
|
64
|
-
/**
|
|
65
|
-
* The amount of time that is required between accepting the offer and the actual usage of the resource or service.
|
|
66
|
-
* 事前予約要件(興行オファー承認日時とイベント開始日時の差)
|
|
67
|
-
*/
|
|
68
|
-
advanceBookingRequirement?: IAdvanceBookingRequirement;
|
|
69
48
|
availability: IAvailability;
|
|
70
49
|
/**
|
|
71
50
|
* コード
|
|
@@ -109,10 +88,6 @@ export type ICreateParams = Pick<IUnitPriceOffer, 'acceptedPaymentMethod' | 'eli
|
|
|
109
88
|
id: string;
|
|
110
89
|
};
|
|
111
90
|
}[];
|
|
112
|
-
/**
|
|
113
|
-
* 事前予約要件
|
|
114
|
-
*/
|
|
115
|
-
advanceBookingRequirement?: Pick<IActualAdvanceBookingRequirement, 'identifier'>;
|
|
116
91
|
/**
|
|
117
92
|
* カテゴリー
|
|
118
93
|
*/
|
|
@@ -304,11 +279,6 @@ export interface ISearchConditions {
|
|
|
304
279
|
};
|
|
305
280
|
};
|
|
306
281
|
};
|
|
307
|
-
advanceBookingRequirement?: {
|
|
308
|
-
id?: {
|
|
309
|
-
$eq?: string;
|
|
310
|
-
};
|
|
311
|
-
};
|
|
312
282
|
/**
|
|
313
283
|
* 有効期間設定がない、あるいは、有効期間内
|
|
314
284
|
*/
|
package/package.json
CHANGED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { AccountType } from '../../accountType';
|
|
2
|
-
import { IParticipant, IAction as IBaseAction, IAttributes as IBaseAttributes } from '../../action';
|
|
3
|
-
import { ActionType } from '../../actionType';
|
|
4
|
-
import { IMonetaryAmount } from '../../monetaryAmount';
|
|
5
|
-
import { AccountTransactionType } from '../transactionType';
|
|
6
|
-
export type IAgent = Pick<IParticipant, 'name' | 'typeOf'>;
|
|
7
|
-
export type IRecipient = Pick<IParticipant, 'name' | 'typeOf'>;
|
|
8
|
-
/**
|
|
9
|
-
* 口座以外の匿名ロケーション
|
|
10
|
-
*/
|
|
11
|
-
export interface IAnonymousLocation {
|
|
12
|
-
name?: string;
|
|
13
|
-
/**
|
|
14
|
-
* ロケーションタイプ
|
|
15
|
-
*/
|
|
16
|
-
typeOf: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 口座
|
|
20
|
-
*/
|
|
21
|
-
export interface IAccount {
|
|
22
|
-
typeOf: AccountType.Account;
|
|
23
|
-
/**
|
|
24
|
-
* 通貨
|
|
25
|
-
* 不要なので廃止(2023-02-16~)
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* 口座番号
|
|
29
|
-
*/
|
|
30
|
-
accountNumber: string;
|
|
31
|
-
/**
|
|
32
|
-
* 口座名義
|
|
33
|
-
*/
|
|
34
|
-
name?: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* 転送元あるいは転送先
|
|
38
|
-
*/
|
|
39
|
-
export type ILocation = IAnonymousLocation | IAccount;
|
|
40
|
-
/**
|
|
41
|
-
* アクションの目的
|
|
42
|
-
* ここでは、取引が目的となる
|
|
43
|
-
*/
|
|
44
|
-
export interface IPurpose {
|
|
45
|
-
/**
|
|
46
|
-
* 取引タイプ
|
|
47
|
-
*/
|
|
48
|
-
typeOf: AccountTransactionType;
|
|
49
|
-
/**
|
|
50
|
-
* 取引ID
|
|
51
|
-
*/
|
|
52
|
-
id: string;
|
|
53
|
-
/**
|
|
54
|
-
* 取引番号
|
|
55
|
-
*/
|
|
56
|
-
transactionNumber: string;
|
|
57
|
-
}
|
|
58
|
-
export type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'value'>;
|
|
59
|
-
export interface IAttributes extends Pick<IBaseAttributes<ActionType.MoneyTransfer, never, never>, 'project' | 'description'> {
|
|
60
|
-
agent: IAgent;
|
|
61
|
-
recipient?: IRecipient;
|
|
62
|
-
typeOf: ActionType.MoneyTransfer;
|
|
63
|
-
/**
|
|
64
|
-
* どんな取引によって発生した転送アクションか
|
|
65
|
-
*/
|
|
66
|
-
purpose: IPurpose;
|
|
67
|
-
/**
|
|
68
|
-
* 金額
|
|
69
|
-
*/
|
|
70
|
-
amount: IAmount;
|
|
71
|
-
/**
|
|
72
|
-
* 転送元
|
|
73
|
-
*/
|
|
74
|
-
fromLocation: ILocation;
|
|
75
|
-
/**
|
|
76
|
-
* 転送先
|
|
77
|
-
*/
|
|
78
|
-
toLocation: ILocation;
|
|
79
|
-
}
|
|
80
|
-
export type IAction = Pick<IBaseAction<Omit<IAttributes, 'agent' | 'recipient'> & {
|
|
81
|
-
agent: IParticipant;
|
|
82
|
-
object: never;
|
|
83
|
-
}>, 'actionStatus' | 'amount' | 'description' | 'endDate' | 'fromLocation' | 'project' | 'purpose' | 'startDate' | 'toLocation' | 'typeOf' | 'id'> & {
|
|
84
|
-
agent: IAgent;
|
|
85
|
-
recipient?: IRecipient;
|
|
86
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IExtendId } from '../../autoGenerated';
|
|
2
|
-
import { IAccount } from '../action/moneyTransfer';
|
|
3
|
-
import { IStartParams as IBaseStartParams, IObject as IBaseObject, IAttributes as IBaseAttributes, ISimpleAccount, IObjectWithoutDetail as IBaseObjectWithoutDetail } from '../transaction';
|
|
4
|
-
import { AccountTransactionType } from '../transactionType';
|
|
5
|
-
export type IStartParamsWithoutDetail = IBaseStartParams<AccountTransactionType.Deposit, IObjectWithoutDetail>;
|
|
6
|
-
/**
|
|
7
|
-
* 取引開始パラメーター
|
|
8
|
-
*/
|
|
9
|
-
export type IStartParams = IBaseStartParams<AccountTransactionType.Deposit, IObject>;
|
|
10
|
-
export interface IObjectWithoutDetail extends IBaseObjectWithoutDetail {
|
|
11
|
-
toLocation: ISimpleAccount;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 取引対象物
|
|
15
|
-
*/
|
|
16
|
-
export interface IObject extends IBaseObject {
|
|
17
|
-
/**
|
|
18
|
-
* 入金先
|
|
19
|
-
*/
|
|
20
|
-
toLocation: Pick<IAccount, 'accountNumber' | 'name' | 'typeOf'>;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 入金取引属性
|
|
24
|
-
*/
|
|
25
|
-
export interface IAttributes extends IBaseAttributes<IStartParams> {
|
|
26
|
-
}
|
|
27
|
-
export type ITransaction = IExtendId<IAttributes>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { IExtendId } from '../../autoGenerated';
|
|
2
|
-
import { IAccount } from '../action/moneyTransfer';
|
|
3
|
-
import { IStartParams as IBaseStartParams, IObject as IBaseObject, IAttributes as IBaseAttributes, ISimpleAccount, IObjectWithoutDetail as IBaseObjectWithoutDetail } from '../transaction';
|
|
4
|
-
import { AccountTransactionType } from '../transactionType';
|
|
5
|
-
export type IStartParamsWithoutDetail = IBaseStartParams<AccountTransactionType.Transfer, IObjectWithoutDetail>;
|
|
6
|
-
/**
|
|
7
|
-
* 取引開始パラメーター
|
|
8
|
-
*/
|
|
9
|
-
export type IStartParams = IBaseStartParams<AccountTransactionType.Transfer, IObject>;
|
|
10
|
-
export interface IObjectWithoutDetail extends IBaseObjectWithoutDetail {
|
|
11
|
-
fromLocation: ISimpleAccount;
|
|
12
|
-
toLocation: ISimpleAccount;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* 取引対象物
|
|
16
|
-
*/
|
|
17
|
-
export interface IObject extends IBaseObject {
|
|
18
|
-
/**
|
|
19
|
-
* 転送元
|
|
20
|
-
*/
|
|
21
|
-
fromLocation: Pick<IAccount, 'accountNumber' | 'name' | 'typeOf'>;
|
|
22
|
-
/**
|
|
23
|
-
* 転送先
|
|
24
|
-
*/
|
|
25
|
-
toLocation: Pick<IAccount, 'accountNumber' | 'name' | 'typeOf'>;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* 転送取引
|
|
29
|
-
*/
|
|
30
|
-
export interface IAttributes extends IBaseAttributes<IStartParams> {
|
|
31
|
-
}
|
|
32
|
-
export type ITransaction = IExtendId<IAttributes>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { IExtendId } from '../../autoGenerated';
|
|
2
|
-
import { IAccount } from '../action/moneyTransfer';
|
|
3
|
-
import { IStartParams as IBaseStartParams, IObject as IBaseObject, IAttributes as IBaseAttributes, ISimpleAccount, IObjectWithoutDetail as IBaseObjectWithoutDetail } from '../transaction';
|
|
4
|
-
import { AccountTransactionType } from '../transactionType';
|
|
5
|
-
export type IStartParamsWithoutDetail = IBaseStartParams<AccountTransactionType.Withdraw, IObjectWithoutDetail>;
|
|
6
|
-
/**
|
|
7
|
-
* 取引開始パラメーター
|
|
8
|
-
*/
|
|
9
|
-
export type IStartParams = IBaseStartParams<AccountTransactionType.Withdraw, IObject>;
|
|
10
|
-
export interface IObjectWithoutDetail extends IBaseObjectWithoutDetail {
|
|
11
|
-
fromLocation: ISimpleAccount;
|
|
12
|
-
/**
|
|
13
|
-
* 利用可能金額確認をしない場合、force: true
|
|
14
|
-
*/
|
|
15
|
-
force?: boolean;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* 取引対象物
|
|
19
|
-
*/
|
|
20
|
-
export interface IObject extends IBaseObject {
|
|
21
|
-
/**
|
|
22
|
-
* 出金元
|
|
23
|
-
*/
|
|
24
|
-
fromLocation: Pick<IAccount, 'accountNumber' | 'name' | 'typeOf'>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* 出金取引
|
|
28
|
-
*/
|
|
29
|
-
export interface IAttributes extends IBaseAttributes<IStartParams> {
|
|
30
|
-
}
|
|
31
|
-
export type ITransaction = IExtendId<IAttributes>;
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { IExtendId } from '../autoGenerated';
|
|
2
|
-
import { OrganizationType } from '../organizationType';
|
|
3
|
-
import { SortType } from '../sortType';
|
|
4
|
-
import { TransactionStatusType } from '../transactionStatusType';
|
|
5
|
-
import { IAgent, IRecipient, IAttributes as IMoneyTransferActionAttributes } from './action/moneyTransfer';
|
|
6
|
-
import { AccountTransactionType } from './transactionType';
|
|
7
|
-
export { IAgent, IRecipient };
|
|
8
|
-
export interface ISimpleAccount {
|
|
9
|
-
accountNumber: string;
|
|
10
|
-
}
|
|
11
|
-
export interface IProject {
|
|
12
|
-
id: string;
|
|
13
|
-
typeOf: OrganizationType.Project;
|
|
14
|
-
}
|
|
15
|
-
export interface IObjectWithoutDetail {
|
|
16
|
-
amount: {
|
|
17
|
-
value: number;
|
|
18
|
-
};
|
|
19
|
-
description?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface IObject {
|
|
22
|
-
/**
|
|
23
|
-
* 金額
|
|
24
|
-
*/
|
|
25
|
-
amount: {
|
|
26
|
-
value: number;
|
|
27
|
-
};
|
|
28
|
-
description?: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* 口座取引開始パラメータ
|
|
32
|
-
*/
|
|
33
|
-
export interface IStartParams<T extends AccountTransactionType, TObject extends IObject> {
|
|
34
|
-
project: IProject;
|
|
35
|
-
/**
|
|
36
|
-
* 取引タイプ
|
|
37
|
-
*/
|
|
38
|
-
typeOf: T;
|
|
39
|
-
/**
|
|
40
|
-
* 取引識別子
|
|
41
|
-
* 同識別子に対する進行中取引のユニークネスは保証される
|
|
42
|
-
*/
|
|
43
|
-
identifier?: string;
|
|
44
|
-
/**
|
|
45
|
-
* 取引番号
|
|
46
|
-
* サービス使用側が指定するグローバルユニークな番号
|
|
47
|
-
* 必須化(2022-09-26~)
|
|
48
|
-
*/
|
|
49
|
-
transactionNumber: string;
|
|
50
|
-
/**
|
|
51
|
-
* 取引主体
|
|
52
|
-
*/
|
|
53
|
-
agent: IAgent;
|
|
54
|
-
/**
|
|
55
|
-
* 取引物受取者
|
|
56
|
-
*/
|
|
57
|
-
recipient: IRecipient;
|
|
58
|
-
/**
|
|
59
|
-
* 取引対象
|
|
60
|
-
*/
|
|
61
|
-
object: TObject;
|
|
62
|
-
/**
|
|
63
|
-
* 取引進行期限
|
|
64
|
-
*/
|
|
65
|
-
expires: Date;
|
|
66
|
-
}
|
|
67
|
-
export interface IPotentialActions {
|
|
68
|
-
moneyTransfer: IMoneyTransferActionAttributes;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* 口座取引属性
|
|
72
|
-
*/
|
|
73
|
-
export type IAttributes<TStartParams> = TStartParams & {
|
|
74
|
-
/**
|
|
75
|
-
* 取引状態
|
|
76
|
-
*/
|
|
77
|
-
status: TransactionStatusType;
|
|
78
|
-
/**
|
|
79
|
-
* 取引開始日時
|
|
80
|
-
*/
|
|
81
|
-
startDate: Date;
|
|
82
|
-
/**
|
|
83
|
-
* 取引終了日時
|
|
84
|
-
*/
|
|
85
|
-
endDate?: Date;
|
|
86
|
-
/**
|
|
87
|
-
* 事後に発生するアクション
|
|
88
|
-
*/
|
|
89
|
-
potentialActions?: IPotentialActions;
|
|
90
|
-
};
|
|
91
|
-
/**
|
|
92
|
-
* 口座取引
|
|
93
|
-
*/
|
|
94
|
-
export type ITransaction<TStartParams> = IExtendId<IAttributes<TStartParams>>;
|
|
95
|
-
export interface ISortOrder {
|
|
96
|
-
startDate?: SortType;
|
|
97
|
-
}
|
|
98
|
-
export interface ISearchConditions {
|
|
99
|
-
limit?: number;
|
|
100
|
-
page?: number;
|
|
101
|
-
sort?: ISortOrder;
|
|
102
|
-
project?: {
|
|
103
|
-
id?: {
|
|
104
|
-
$eq?: string;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
typeOf?: {
|
|
108
|
-
$eq?: AccountTransactionType;
|
|
109
|
-
};
|
|
110
|
-
status?: {
|
|
111
|
-
$in?: TransactionStatusType[];
|
|
112
|
-
};
|
|
113
|
-
startDate?: {
|
|
114
|
-
$gte?: Date;
|
|
115
|
-
$lte?: Date;
|
|
116
|
-
};
|
|
117
|
-
identifier?: {
|
|
118
|
-
$eq?: string;
|
|
119
|
-
};
|
|
120
|
-
transactionNumber?: {
|
|
121
|
-
$eq?: string;
|
|
122
|
-
};
|
|
123
|
-
object?: {
|
|
124
|
-
fromLocation?: {
|
|
125
|
-
accountNumber?: {
|
|
126
|
-
$eq?: string;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
toLocation?: {
|
|
130
|
-
accountNumber?: {
|
|
131
|
-
$eq?: string;
|
|
132
|
-
};
|
|
133
|
-
};
|
|
134
|
-
location?: {
|
|
135
|
-
/**
|
|
136
|
-
* 口座番号
|
|
137
|
-
*/
|
|
138
|
-
accountNumber?: {
|
|
139
|
-
$eq?: string;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountTransactionType = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* 口座取引タイプ
|
|
6
|
-
*/
|
|
7
|
-
var AccountTransactionType;
|
|
8
|
-
(function (AccountTransactionType) {
|
|
9
|
-
/**
|
|
10
|
-
* 出金取引
|
|
11
|
-
*/
|
|
12
|
-
AccountTransactionType["Withdraw"] = "Withdraw";
|
|
13
|
-
/**
|
|
14
|
-
* 入金取引
|
|
15
|
-
*/
|
|
16
|
-
AccountTransactionType["Deposit"] = "Deposit";
|
|
17
|
-
/**
|
|
18
|
-
* 転送取引
|
|
19
|
-
*/
|
|
20
|
-
AccountTransactionType["Transfer"] = "Transfer";
|
|
21
|
-
})(AccountTransactionType || (exports.AccountTransactionType = AccountTransactionType = {}));
|
package/lib/chevre/account.d.ts
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { AccountTransactionType } from './account/transactionType';
|
|
2
|
-
import { AccountType } from './accountType';
|
|
3
|
-
import { IProject } from './project';
|
|
4
|
-
import { SortType } from './sortType';
|
|
5
|
-
import * as MoneyTransferActionFactory from './account/action/moneyTransfer';
|
|
6
|
-
import { IAgent as IBaseAgent, IRecipient as IBaseRecipient, IPotentialActions as IBasePotentialActions, ISearchConditions as IBaseSearchConditions } from './account/transaction';
|
|
7
|
-
import * as DepositTransactionFactory from './account/transaction/deposit';
|
|
8
|
-
import * as TransferTransactionFactory from './account/transaction/transfer';
|
|
9
|
-
import * as WithdrawTransactionFactory from './account/transaction/withdraw';
|
|
10
|
-
export declare namespace action {
|
|
11
|
-
export import moneyTransfer = MoneyTransferActionFactory;
|
|
12
|
-
}
|
|
13
|
-
export declare namespace transaction {
|
|
14
|
-
type IAgent = IBaseAgent;
|
|
15
|
-
type IRecipient = IBaseRecipient;
|
|
16
|
-
type IPotentialActions = IBasePotentialActions;
|
|
17
|
-
type ISearchConditions = IBaseSearchConditions;
|
|
18
|
-
type IStartParamsWithoutDetail<T extends AccountTransactionType> = T extends AccountTransactionType.Deposit ? DepositTransactionFactory.IStartParamsWithoutDetail : T extends AccountTransactionType.Withdraw ? WithdrawTransactionFactory.IStartParamsWithoutDetail : T extends AccountTransactionType.Transfer ? TransferTransactionFactory.IStartParamsWithoutDetail : never;
|
|
19
|
-
type IStartParams<T extends AccountTransactionType> = T extends AccountTransactionType.Deposit ? DepositTransactionFactory.IStartParams : T extends AccountTransactionType.Withdraw ? WithdrawTransactionFactory.IStartParams : T extends AccountTransactionType.Transfer ? TransferTransactionFactory.IStartParams : never;
|
|
20
|
-
type IAttributes<T> = T extends AccountTransactionType.Deposit ? DepositTransactionFactory.IAttributes : T extends AccountTransactionType.Withdraw ? WithdrawTransactionFactory.IAttributes : T extends AccountTransactionType.Transfer ? TransferTransactionFactory.IAttributes : never;
|
|
21
|
-
type ITransaction<T> = T extends AccountTransactionType.Deposit ? DepositTransactionFactory.ITransaction : T extends AccountTransactionType.Withdraw ? WithdrawTransactionFactory.ITransaction : T extends AccountTransactionType.Transfer ? TransferTransactionFactory.ITransaction : never;
|
|
22
|
-
export import withdraw = WithdrawTransactionFactory;
|
|
23
|
-
export import deposit = DepositTransactionFactory;
|
|
24
|
-
export import transfer = TransferTransactionFactory;
|
|
25
|
-
}
|
|
26
|
-
export import transactionType = AccountTransactionType;
|
|
27
|
-
/**
|
|
28
|
-
* 進行中取引
|
|
29
|
-
*/
|
|
30
|
-
export interface IPendingTransaction {
|
|
31
|
-
typeOf: AccountTransactionType;
|
|
32
|
-
/**
|
|
33
|
-
* 取引ID
|
|
34
|
-
*/
|
|
35
|
-
id: string;
|
|
36
|
-
/**
|
|
37
|
-
* 取引金額
|
|
38
|
-
*/
|
|
39
|
-
amount: number;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* 口座
|
|
43
|
-
*/
|
|
44
|
-
export interface IAccount {
|
|
45
|
-
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
46
|
-
/**
|
|
47
|
-
* 口座種別
|
|
48
|
-
*/
|
|
49
|
-
typeOf: AccountType.Account;
|
|
50
|
-
/**
|
|
51
|
-
* 通貨
|
|
52
|
-
*/
|
|
53
|
-
accountType: string;
|
|
54
|
-
/**
|
|
55
|
-
* 口座番号
|
|
56
|
-
*/
|
|
57
|
-
accountNumber: string;
|
|
58
|
-
/**
|
|
59
|
-
* 口座名義
|
|
60
|
-
*/
|
|
61
|
-
name: string;
|
|
62
|
-
/**
|
|
63
|
-
* 残高
|
|
64
|
-
*/
|
|
65
|
-
balance: number;
|
|
66
|
-
/**
|
|
67
|
-
* 利用可能残高
|
|
68
|
-
*/
|
|
69
|
-
availableBalance: number;
|
|
70
|
-
/**
|
|
71
|
-
* 進行中取引リスト
|
|
72
|
-
*/
|
|
73
|
-
pendingTransactions?: IPendingTransaction[];
|
|
74
|
-
/**
|
|
75
|
-
* 口座開設日時
|
|
76
|
-
*/
|
|
77
|
-
openDate: Date;
|
|
78
|
-
/**
|
|
79
|
-
* 口座閉鎖日時
|
|
80
|
-
*/
|
|
81
|
-
closeDate?: Date;
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* ソート条件
|
|
85
|
-
*/
|
|
86
|
-
export interface ISortOrder {
|
|
87
|
-
/**
|
|
88
|
-
* 開設日時順
|
|
89
|
-
*/
|
|
90
|
-
openDate?: SortType;
|
|
91
|
-
}
|
|
92
|
-
export interface IProjectSearchConditions {
|
|
93
|
-
id?: {
|
|
94
|
-
$eq?: string;
|
|
95
|
-
$ne?: string;
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* 口座検索条件
|
|
100
|
-
*/
|
|
101
|
-
export interface ISearchConditions {
|
|
102
|
-
limit?: number;
|
|
103
|
-
page?: number;
|
|
104
|
-
sort?: ISortOrder;
|
|
105
|
-
accountNumber?: {
|
|
106
|
-
$eq?: string;
|
|
107
|
-
$in?: string[];
|
|
108
|
-
$regex?: string;
|
|
109
|
-
};
|
|
110
|
-
accountNumbers?: string[];
|
|
111
|
-
accountType?: string;
|
|
112
|
-
name?: {
|
|
113
|
-
$regex?: string;
|
|
114
|
-
};
|
|
115
|
-
openDate?: {
|
|
116
|
-
$gte?: Date;
|
|
117
|
-
$lte?: Date;
|
|
118
|
-
};
|
|
119
|
-
project?: IProjectSearchConditions;
|
|
120
|
-
typeOf?: {
|
|
121
|
-
$eq?: string;
|
|
122
|
-
$in?: string[];
|
|
123
|
-
};
|
|
124
|
-
}
|
package/lib/chevre/account.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.transactionType = exports.transaction = exports.action = void 0;
|
|
4
|
-
const transactionType_1 = require("./account/transactionType");
|
|
5
|
-
const MoneyTransferActionFactory = require("./account/action/moneyTransfer");
|
|
6
|
-
const DepositTransactionFactory = require("./account/transaction/deposit");
|
|
7
|
-
const TransferTransactionFactory = require("./account/transaction/transfer");
|
|
8
|
-
const WithdrawTransactionFactory = require("./account/transaction/withdraw");
|
|
9
|
-
var action;
|
|
10
|
-
(function (action) {
|
|
11
|
-
action.moneyTransfer = MoneyTransferActionFactory;
|
|
12
|
-
})(action || (exports.action = action = {}));
|
|
13
|
-
var transaction;
|
|
14
|
-
(function (transaction) {
|
|
15
|
-
transaction.withdraw = WithdrawTransactionFactory;
|
|
16
|
-
transaction.deposit = DepositTransactionFactory;
|
|
17
|
-
transaction.transfer = TransferTransactionFactory;
|
|
18
|
-
})(transaction || (exports.transaction = transaction = {}));
|
|
19
|
-
exports.transactionType = transactionType_1.AccountTransactionType;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 予約済の口座タイプ
|
|
3
|
-
*/
|
|
4
|
-
export declare enum AccountType {
|
|
5
|
-
Account = "Account",
|
|
6
|
-
Checking = "Checking",
|
|
7
|
-
Current = "Current",
|
|
8
|
-
Deposit = "Deposit",
|
|
9
|
-
Loan = "Loan",
|
|
10
|
-
Personal = "Personal",
|
|
11
|
-
Prepaid = "Prepaid",
|
|
12
|
-
Savings = "Savings",
|
|
13
|
-
Transaction = "Transaction",
|
|
14
|
-
Transactional = "Transactional"
|
|
15
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AccountType = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* 予約済の口座タイプ
|
|
6
|
-
*/
|
|
7
|
-
var AccountType;
|
|
8
|
-
(function (AccountType) {
|
|
9
|
-
AccountType["Account"] = "Account";
|
|
10
|
-
AccountType["Checking"] = "Checking";
|
|
11
|
-
AccountType["Current"] = "Current";
|
|
12
|
-
AccountType["Deposit"] = "Deposit";
|
|
13
|
-
AccountType["Loan"] = "Loan";
|
|
14
|
-
AccountType["Personal"] = "Personal";
|
|
15
|
-
AccountType["Prepaid"] = "Prepaid";
|
|
16
|
-
AccountType["Savings"] = "Savings";
|
|
17
|
-
AccountType["Transaction"] = "Transaction";
|
|
18
|
-
AccountType["Transactional"] = "Transactional";
|
|
19
|
-
})(AccountType || (exports.AccountType = AccountType = {}));
|