@chevre/factory 4.224.0 → 4.225.0
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.d.ts
CHANGED
|
@@ -442,6 +442,8 @@ export declare namespace assetTransaction {
|
|
|
442
442
|
export import reserve = ReserveAssetTransactionFactory;
|
|
443
443
|
}
|
|
444
444
|
export declare namespace transaction {
|
|
445
|
+
export import IAgentProfile = TransactionFactory.IAgentProfile;
|
|
446
|
+
export import IAgent = TransactionFactory.IAgent;
|
|
445
447
|
export import IPassportBeforeStart = TransactionFactory.IPassportBeforeStart;
|
|
446
448
|
export import ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
|
|
447
449
|
export import ISortOrder = TransactionFactory.ISortOrder;
|
|
@@ -2,7 +2,7 @@ import { ActionType } from '../actionType';
|
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import { OfferType } from '../offerType';
|
|
4
4
|
import { PermitType } from '../permit';
|
|
5
|
-
import {
|
|
5
|
+
import { IIdentifier } from '../person';
|
|
6
6
|
import { PersonType } from '../personType';
|
|
7
7
|
import { ProductType } from '../product';
|
|
8
8
|
import { IProject } from '../project';
|
|
@@ -12,7 +12,6 @@ import { IPotentialActionsParams as IOrderPotentialActionsParams } from '../tran
|
|
|
12
12
|
export interface IAgent {
|
|
13
13
|
typeOf: PersonType.Person;
|
|
14
14
|
id: string;
|
|
15
|
-
additionalProperty?: IAdditionalProperty;
|
|
16
15
|
identifier: IIdentifier;
|
|
17
16
|
}
|
|
18
17
|
export interface IAcceptedOffer {
|
|
@@ -12,9 +12,10 @@ import * as WebAPIFactory from '../service/webAPI';
|
|
|
12
12
|
import * as TransactionFactory from '../transaction';
|
|
13
13
|
import { TransactionType } from '../transactionType';
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* 取引人
|
|
16
16
|
*/
|
|
17
17
|
export declare type IAgent = TransactionFactory.IAgent;
|
|
18
|
+
export declare type ICustomer = OrderFactory.ICustomer;
|
|
18
19
|
export interface IPaymentMethodByPaymentUrl {
|
|
19
20
|
/**
|
|
20
21
|
* 決済方法区分
|
|
@@ -30,7 +31,7 @@ export interface IPaymentMethodByPaymentUrl {
|
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
+
* 注文特典口座
|
|
34
35
|
*/
|
|
35
36
|
export interface IAwardAccount {
|
|
36
37
|
typeOf: AccountType.Account;
|
|
@@ -39,7 +40,7 @@ export interface IAwardAccount {
|
|
|
39
40
|
export interface IObject {
|
|
40
41
|
clientUser?: IClientUser;
|
|
41
42
|
broker?: OrderFactory.IBroker;
|
|
42
|
-
customer?:
|
|
43
|
+
customer?: ICustomer;
|
|
43
44
|
identifier?: OrderFactory.IIdentifier;
|
|
44
45
|
/**
|
|
45
46
|
* 確認番号
|
|
@@ -82,7 +83,7 @@ export interface IStartParamsWithoutDetail {
|
|
|
82
83
|
};
|
|
83
84
|
object: {
|
|
84
85
|
clientUser?: IClientUser;
|
|
85
|
-
customer?:
|
|
86
|
+
customer?: ICustomer;
|
|
86
87
|
passport?: TransactionFactory.IPassportBeforeStart;
|
|
87
88
|
/**
|
|
88
89
|
* 注文名称
|
|
@@ -94,7 +95,7 @@ export interface ISeller extends TransactionFactory.ISeller {
|
|
|
94
95
|
id: string;
|
|
95
96
|
}
|
|
96
97
|
/**
|
|
97
|
-
*
|
|
98
|
+
* 取引開始パラメーター
|
|
98
99
|
*/
|
|
99
100
|
export interface IStartParams extends TransactionFactory.IStartParams<TransactionType.PlaceOrder, IAgent, undefined, IObject> {
|
|
100
101
|
/**
|
|
@@ -176,30 +177,27 @@ export interface IConfirmParams {
|
|
|
176
177
|
result?: IResultParams;
|
|
177
178
|
}
|
|
178
179
|
/**
|
|
179
|
-
*
|
|
180
|
+
* 取引結果
|
|
180
181
|
*/
|
|
181
182
|
export interface IResult {
|
|
182
183
|
/**
|
|
183
|
-
*
|
|
184
|
+
* 注文
|
|
184
185
|
*/
|
|
185
186
|
order: OrderFactory.IOrder;
|
|
186
187
|
}
|
|
187
188
|
/**
|
|
188
|
-
*
|
|
189
|
+
* エラー
|
|
189
190
|
*/
|
|
190
191
|
export declare type IError = any;
|
|
191
192
|
export interface IPotentialActions {
|
|
192
193
|
order: IOrderActionAttributes;
|
|
193
194
|
}
|
|
195
|
+
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
196
|
+
}
|
|
194
197
|
/**
|
|
195
|
-
*
|
|
198
|
+
* 注文取引
|
|
196
199
|
*/
|
|
197
200
|
export declare type ITransaction = IExtendId<IAttributes>;
|
|
198
|
-
/**
|
|
199
|
-
* 注文取引インターフェース
|
|
200
|
-
*/
|
|
201
|
-
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
202
|
-
}
|
|
203
201
|
export interface ISearchConditions extends TransactionFactory.ISearchConditions<TransactionType.PlaceOrder> {
|
|
204
202
|
seller?: {
|
|
205
203
|
ids?: string[];
|
|
@@ -10,10 +10,13 @@ import { SortType } from './sortType';
|
|
|
10
10
|
import { TransactionStatusType } from './transactionStatusType';
|
|
11
11
|
import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
|
|
12
12
|
import { TransactionType } from './transactionType';
|
|
13
|
-
export declare type
|
|
14
|
-
export declare type
|
|
13
|
+
export declare type IOmittedProfileAttributes = 'email' | 'telephone' | 'familyName' | 'givenName' | 'age' | 'address' | 'gender' | 'additionalProperty' | 'url';
|
|
14
|
+
export declare type IAgentProfile = Omit<PersonFactory.IProfile, IOmittedProfileAttributes>;
|
|
15
|
+
export declare type IWebApplicationAgent = IWebApplication & IAgentProfile;
|
|
16
|
+
export declare type IPersonAgent = PersonFactory.IPerson;
|
|
17
|
+
export declare type IAgent = Omit<IWebApplicationAgent | PersonFactory.IPerson, IOmittedProfileAttributes>;
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
19
|
+
* 販売者
|
|
17
20
|
* 最適化(2022-05-20~)
|
|
18
21
|
*/
|
|
19
22
|
export declare type ISeller = Omit<SellerFactory.ISeller, 'branchCode' | 'paymentAccepted' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location' | 'url' | 'project'>;
|
|
@@ -44,7 +47,7 @@ export interface IPassportBeforeStart {
|
|
|
44
47
|
secret: string;
|
|
45
48
|
}
|
|
46
49
|
/**
|
|
47
|
-
*
|
|
50
|
+
* 取引開始パラメータ
|
|
48
51
|
*/
|
|
49
52
|
export interface IStartParams<T extends TransactionType, TAgent, TRecipient, TObject> {
|
|
50
53
|
project: IProject;
|
|
@@ -69,10 +72,6 @@ export interface IStartParams<T extends TransactionType, TAgent, TRecipient, TOb
|
|
|
69
72
|
*/
|
|
70
73
|
expires: Date;
|
|
71
74
|
}
|
|
72
|
-
export declare type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
|
|
73
|
-
/**
|
|
74
|
-
* 取引インターフェース
|
|
75
|
-
*/
|
|
76
75
|
export declare type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TStartParams & {
|
|
77
76
|
/**
|
|
78
77
|
* 取引状態
|
|
@@ -111,8 +110,9 @@ export declare type IAttributes<TStartParams, TResult, TError, TPotentialActions
|
|
|
111
110
|
*/
|
|
112
111
|
potentialActions?: TPotentialActions;
|
|
113
112
|
};
|
|
113
|
+
export declare type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
|
|
114
114
|
/**
|
|
115
|
-
*
|
|
115
|
+
* ソート条件
|
|
116
116
|
*/
|
|
117
117
|
export interface ISortOrder {
|
|
118
118
|
startDate?: SortType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chevre/factory",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.225.0",
|
|
4
4
|
"description": "Chevre Factory Library for Javascript",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"typescript": "^4.3.2"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@motionpicture/coa-service": "
|
|
63
|
+
"@motionpicture/coa-service": "9.2.0",
|
|
64
64
|
"@motionpicture/gmo-service": "^5.0.0",
|
|
65
65
|
"@surfrock/sdk": "1.1.0",
|
|
66
66
|
"@waiter/factory": "2.1.0",
|