@chevre/factory 4.213.0 → 4.216.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.
@@ -1,6 +1,10 @@
1
1
  import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
- export declare type IAgent = ActionFactory.IParticipant;
3
+ import { OrganizationType } from '../../organizationType';
4
+ export interface IAgent {
5
+ id: string;
6
+ typeOf: OrganizationType.Project;
7
+ }
4
8
  export declare type IRecipient = ActionFactory.IParticipant;
5
9
  export declare type IObject = any;
6
10
  export declare type IPurpose = any;
@@ -1,9 +1,14 @@
1
1
  import * as OrderFactory from '../../../order';
2
+ import { OrganizationType } from '../../../organizationType';
2
3
  import { ObjectType as AuthorizePointAwardActionObjectType } from '../../authorize/award/point';
3
4
  import * as GiveActionFactory from '../give';
5
+ export interface IAgent {
6
+ id: string;
7
+ typeOf: OrganizationType.Project;
8
+ }
4
9
  export import ObjectType = AuthorizePointAwardActionObjectType;
5
10
  /**
6
- * ポイント付与対象インターフェース
11
+ * ポイント特典付与対象インターフェース
7
12
  */
8
13
  export interface IObject {
9
14
  typeOf: ObjectType;
@@ -33,14 +38,15 @@ export interface IObject {
33
38
  export declare type IResult = any;
34
39
  /**
35
40
  * 目的は注文
36
- * 注文に対するインセンティブとしてポイントが付与される仕組み
41
+ * 注文に対する特典としてポイントが付与される仕組み
37
42
  */
38
43
  export declare type IPurpose = OrderFactory.ISimpleOrder;
39
44
  export declare type IPotentialActions = any;
40
45
  export interface IAttributes extends GiveActionFactory.IAttributes<IObject, IResult> {
46
+ agent: IAgent;
41
47
  purpose: IPurpose;
42
48
  }
43
49
  /**
44
- * ポイント付与アクションインターフェース
50
+ * ポイント特典付与アクション
45
51
  */
46
52
  export declare type IAction = GiveActionFactory.IAction<IAttributes>;
@@ -1,7 +1,11 @@
1
1
  import * as ActionFactory from '../../../action';
2
+ import { OrganizationType } from '../../../organizationType';
2
3
  import * as MoneyTransferActionFactory from '../moneyTransfer';
3
4
  import * as ReturnActionFactory from '../return';
4
- export declare type IAgent = ActionFactory.IParticipant;
5
+ export interface IAgent {
6
+ id: string;
7
+ typeOf: OrganizationType.Project;
8
+ }
5
9
  export declare type IRecipient = ActionFactory.IParticipant;
6
10
  /**
7
11
  * 返却対象は入金アクション
@@ -11,10 +15,11 @@ export declare type IResult = any;
11
15
  export interface IPotentialActions {
12
16
  }
13
17
  export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
18
+ agent: IAgent;
14
19
  recipient: IRecipient;
15
20
  potentialActions?: IPotentialActions;
16
21
  }
17
22
  /**
18
- * 入金返却アクションインターフェース
23
+ * 入金返却アクション
19
24
  */
20
25
  export declare type IAction = ReturnActionFactory.IAction<IAttributes>;
@@ -41,10 +41,11 @@ export interface IPotentialActions {
41
41
  sendEmailMessage?: ISendEmailMessageActionAttributes[];
42
42
  }
43
43
  export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
44
+ agent: IAgent;
44
45
  recipient: IRecipient;
45
46
  potentialActions?: IPotentialActions;
46
47
  }
47
48
  /**
48
- * 注文返品アクションインターフェース
49
+ * 返品アクション
49
50
  */
50
51
  export declare type IAction = ReturnActionFactory.IAction<IAttributes>;
@@ -1,7 +1,12 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
3
  import * as OrderFactory from '../../../order';
4
+ import { OrganizationType } from '../../../organizationType';
4
5
  import { IAttributes as ISendEmailMessageActionAttributes } from '../../transfer/send/message/email';
6
+ export interface IAgent {
7
+ id: string;
8
+ typeOf: OrganizationType.Project;
9
+ }
5
10
  export declare type IRecipient = ActionFactory.IParticipant;
6
11
  export declare type IObject = OrderFactory.IPaymentMethod;
7
12
  export declare type IResult = any;
@@ -13,11 +18,12 @@ export interface IPotentialActions {
13
18
  }
14
19
  export declare type IPurpose = OrderFactory.ISimpleOrder;
15
20
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.ReturnAction, IObject, IResult> {
21
+ agent: IAgent;
16
22
  recipient: IRecipient;
17
23
  purpose: IPurpose;
18
24
  potentialActions?: IPotentialActions;
19
25
  }
20
26
  /**
21
- * 返金アクションインターフェース
27
+ * 決済返却アクション
22
28
  */
23
29
  export declare type IAction = ActionFactory.IAction<IAttributes>;
@@ -1,8 +1,12 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import { AssetTransactionType } from '../../../assetTransactionType';
3
3
  import { ISimpleOrder } from '../../../order';
4
+ import { OrganizationType } from '../../../organizationType';
4
5
  import * as ReturnActionFactory from '../return';
5
- export declare type IAgent = ActionFactory.IParticipant;
6
+ export interface IAgent {
7
+ id: string;
8
+ typeOf: OrganizationType.Project;
9
+ }
6
10
  export declare type IRecipient = ActionFactory.IParticipant;
7
11
  /**
8
12
  * 入金取引識別子で指定する場合のオブジェクト
@@ -28,11 +32,12 @@ export declare type IResult = any;
28
32
  export interface IPotentialActions {
29
33
  }
30
34
  export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
35
+ agent: IAgent;
31
36
  recipient: IRecipient;
32
37
  potentialActions?: IPotentialActions;
33
38
  purpose: IPurpose;
34
39
  }
35
40
  /**
36
- * ポイントインセンティブ返却アクションインターフェース
41
+ * ポイント特典返却アクション
37
42
  */
38
43
  export declare type IAction = ReturnActionFactory.IAction<IAttributes>;
@@ -4,8 +4,12 @@ import { ActionType } from '../../../actionType';
4
4
  import * as CancelReservationAssetTransactionFactory from '../../../assetTransaction/cancelReservation';
5
5
  import { AssetTransactionType } from '../../../assetTransactionType';
6
6
  import { ISimpleOrder } from '../../../order';
7
+ import { OrganizationType } from '../../../organizationType';
7
8
  import { Identifier as WebAPIIdentifier } from '../../../service/webAPI';
8
- export declare type IAgent = ActionFactory.IParticipant;
9
+ export interface IAgent {
10
+ id: string;
11
+ typeOf: OrganizationType.Project;
12
+ }
9
13
  export declare type IObject4COA = COA.factory.reserve.IStateReserveArgs;
10
14
  export interface IObject4Chevre {
11
15
  typeOf: AssetTransactionType.Reserve;
@@ -17,10 +21,11 @@ export declare type IPurpose = ISimpleOrder;
17
21
  export declare type IResult = any;
18
22
  export declare type IPotentialActions = CancelReservationAssetTransactionFactory.IPotentialActionsParams;
19
23
  export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.ReturnAction, TObject, TResult> {
24
+ agent: IAgent;
20
25
  potentialActions?: IPotentialActions;
21
26
  purpose?: IPurpose;
22
27
  }
23
28
  /**
24
- * キャンセルアクションインターフェース
29
+ * 予約返却アクション
25
30
  */
26
31
  export declare type IAction<TAttributes extends IAttributes<IObject<WebAPIIdentifier>, IResult>> = ActionFactory.IAction<TAttributes>;
@@ -1,7 +1,11 @@
1
1
  import * as ActionFactory from '../../../../action';
2
2
  import { ICreativeWork as IEmailMessage } from '../../../../creativeWork/message/email';
3
+ import { OrganizationType } from '../../../../organizationType';
3
4
  import * as SendActionFactory from '../../send';
4
- export declare type IAgent = ActionFactory.IParticipant;
5
+ export interface IAgent {
6
+ id: string;
7
+ typeOf: OrganizationType.Project;
8
+ }
5
9
  export declare type IRecipient = ActionFactory.IParticipant;
6
10
  /**
7
11
  * オブジェクトインターフェース
@@ -1,16 +1,16 @@
1
- import { IAttributes as IMoneyTransferActionAttributes, ILocation, IPendingTransaction, IRecipient as IMoneyTransferRecipient } from '../action/transfer/moneyTransfer';
1
+ import { IAgent as IMoneyTransferAgent, IAttributes as IMoneyTransferActionAttributes, ILocation, IPendingTransaction, IRecipient as IMoneyTransferRecipient } from '../action/transfer/moneyTransfer';
2
2
  import * as TransactionFactory from '../assetTransaction';
3
3
  import { AssetTransactionType } from '../assetTransactionType';
4
4
  import { IExtendId } from '../autoGenerated';
5
5
  import { IMonetaryAmount } from '../monetaryAmount';
6
6
  import { OrderType } from '../order';
7
7
  import { PermitType } from '../permit';
8
- export declare type IAgent = any;
8
+ export declare type IAgent = IMoneyTransferAgent;
9
9
  export declare type IRecipient = IMoneyTransferRecipient;
10
10
  export declare type IFromLocation = ILocation;
11
11
  export declare type IToLocation = ILocation;
12
12
  /**
13
- * ペイメントカードインターフェース
13
+ * ペイメントカード
14
14
  */
15
15
  export interface IPaymentCard {
16
16
  typeOf: PermitType;
@@ -29,7 +29,7 @@ export interface IPaymentCard {
29
29
  */
30
30
  export declare type ITokenizedPaymentCard = string;
31
31
  /**
32
- * 転送元としての注文インターフェース
32
+ * 転送元としての注文
33
33
  */
34
34
  export interface IOrderAsFromLocation {
35
35
  typeOf: OrderType;
@@ -39,7 +39,7 @@ export interface IOrderAsFromLocation {
39
39
  export declare type IFromLocationBeforeStart = IOrderAsFromLocation | IPaymentCard | ITokenizedPaymentCard;
40
40
  export declare type IToLocationBeforeStart = IOrderAsFromLocation | IPaymentCard;
41
41
  /**
42
- * 取引対象物インターフェース
42
+ * 取引対象物
43
43
  */
44
44
  export interface IObject {
45
45
  /**
@@ -105,12 +105,12 @@ export interface IPotentialActions {
105
105
  */
106
106
  moneyTransfer: IMoneyTransferActionAttributes[];
107
107
  }
108
- export declare type ITransaction = IExtendId<IAttributes>;
109
- /**
110
- * 転送取引インターフェース
111
- */
112
108
  export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
113
109
  }
110
+ /**
111
+ * 転送取引
112
+ */
113
+ export declare type ITransaction = IExtendId<IAttributes>;
114
114
  export interface ISearchConditions extends TransactionFactory.ISearchConditions<AssetTransactionType.MoneyTransfer> {
115
115
  object?: {
116
116
  fromLocation?: {
@@ -4,8 +4,9 @@ import * as TransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { IOnPaymentStatusChanged } from '../project';
7
+ import { ISeller } from '../seller';
7
8
  import { PaymentServiceType } from '../service/paymentService';
8
- export declare type IAgent = any;
9
+ export declare type IAgent = ISeller;
9
10
  export declare type IRecipient = IRefundRecipient;
10
11
  export interface IObjectWithoutDetail {
11
12
  typeOf: PaymentServiceType;
@@ -25,7 +26,7 @@ export interface IPotentialActionsParams {
25
26
  };
26
27
  }
27
28
  /**
28
- * 確定パラメーターインターフェース
29
+ * 確定パラメーター
29
30
  */
30
31
  export interface IConfirmParams {
31
32
  id?: string;
@@ -37,7 +38,7 @@ export declare type IResult = any;
37
38
  export declare type IError = any;
38
39
  export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
39
40
  /**
40
- * 取引対象物インターフェース
41
+ * 取引対象物
41
42
  */
42
43
  export interface IObject {
43
44
  typeOf: PaymentServiceType;
@@ -57,7 +58,7 @@ export interface IPotentialActions {
57
58
  }
58
59
  export declare type ITransaction = IExtendId<IAttributes>;
59
60
  /**
60
- * 返金取引インターフェース
61
+ * 返金取引
61
62
  */
62
63
  export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
63
64
  }
@@ -8,6 +8,6 @@ export interface IAttributes extends TaskFactory.IAttributes {
8
8
  data: IData;
9
9
  }
10
10
  /**
11
- * ポイントインセンティブ付与タスクインターフェース
11
+ * ポイント特典付与タスク
12
12
  */
13
13
  export declare type ITask = IExtendId<IAttributes>;
@@ -1,14 +1,36 @@
1
- import { IParticipant } from '../action';
2
1
  import { ActionType } from '../actionType';
3
2
  import { IExtendId } from '../autoGenerated';
4
- import * as OrderFactory from '../order';
5
- import { IPermit } from '../permit';
3
+ import { OfferType } from '../offerType';
4
+ import { PermitType } from '../permit';
5
+ import { IAdditionalProperty, IIdentifier } from '../person';
6
+ import { PersonType } from '../personType';
7
+ import { ProductType } from '../product';
6
8
  import { IProject } from '../project';
7
9
  import * as TaskFactory from '../task';
8
10
  import { TaskName } from '../taskName';
9
11
  import { IPotentialActionsParams as IOrderPotentialActionsParams } from '../transaction/placeOrder';
10
- export declare type IAgent = IParticipant;
11
- export declare type IAcceptedOffer = Omit<OrderFactory.IAcceptedOffer<IPermit>, 'priceSpecification'>;
12
+ export interface IAgent {
13
+ typeOf: PersonType.Person;
14
+ id: string;
15
+ additionalProperty?: IAdditionalProperty;
16
+ identifier: IIdentifier;
17
+ }
18
+ export interface IAcceptedOffer {
19
+ seller: {
20
+ id: string;
21
+ };
22
+ typeOf: OfferType;
23
+ itemOffered: {
24
+ typeOf: PermitType.Permit;
25
+ name: string;
26
+ issuedThrough: {
27
+ typeOf: ProductType.MembershipService;
28
+ id: string;
29
+ };
30
+ };
31
+ id: string;
32
+ identifier: string;
33
+ }
12
34
  export declare type IPotentialActions = IOrderPotentialActionsParams;
13
35
  export interface IData {
14
36
  agent: IAgent;
@@ -28,6 +50,6 @@ export interface IAttributes extends TaskFactory.IAttributes {
28
50
  data: IData;
29
51
  }
30
52
  /**
31
- * メンバーシップ注文タスクインターフェース
53
+ * メンバーシップ注文タスク
32
54
  */
33
55
  export declare type ITask = IExtendId<IAttributes>;
@@ -60,7 +60,7 @@ export declare enum TaskName {
60
60
  */
61
61
  DeleteMember = "deleteMember",
62
62
  /**
63
- * ポイントインセンティブ付与
63
+ * ポイント特典付与
64
64
  */
65
65
  GivePointAward = "givePointAward",
66
66
  /**
@@ -80,7 +80,7 @@ export declare enum TaskName {
80
80
  */
81
81
  ReturnMoneyTransfer = "returnMoneyTransfer",
82
82
  /**
83
- * ポイントインセンティブ返却
83
+ * ポイント特典返却
84
84
  */
85
85
  ReturnPointAward = "returnPointAward",
86
86
  /**
@@ -64,7 +64,7 @@ var TaskName;
64
64
  */
65
65
  TaskName["DeleteMember"] = "deleteMember";
66
66
  /**
67
- * ポイントインセンティブ付与
67
+ * ポイント特典付与
68
68
  */
69
69
  TaskName["GivePointAward"] = "givePointAward";
70
70
  /**
@@ -84,7 +84,7 @@ var TaskName;
84
84
  */
85
85
  TaskName["ReturnMoneyTransfer"] = "returnMoneyTransfer";
86
86
  /**
87
- * ポイントインセンティブ返却
87
+ * ポイント特典返却
88
88
  */
89
89
  TaskName["ReturnPointAward"] = "returnPointAward";
90
90
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.213.0",
3
+ "version": "4.216.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",