@chevre/factory 4.177.0-alpha.1 → 4.178.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,18 +1,36 @@
1
1
  import * as ActionFactory from '../../../action';
2
- import * as GivePointAwardActionFactory from '../give/pointAward';
2
+ import AssetTransactionType from '../../../assetTransactionType';
3
+ import { ISimpleOrder } from '../../../order';
3
4
  import * as ReturnActionFactory from '../return';
4
5
  export declare type IAgent = ActionFactory.IParticipant;
5
6
  export declare type IRecipient = ActionFactory.IParticipant;
6
7
  /**
7
- * 返却対象はポイントインセンティブ付与アクション
8
+ * 入金取引識別子で指定する場合のオブジェクト
8
9
  */
9
- export declare type IObject = GivePointAwardActionFactory.IAction;
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 declare type IObject = IObjectByTransactionIdentifier | IObjectByTransactionFromLocationIdentifier;
26
+ export declare type IPurpose = ISimpleOrder;
10
27
  export declare type IResult = any;
11
28
  export interface IPotentialActions {
12
29
  }
13
30
  export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
14
31
  recipient: IRecipient;
15
32
  potentialActions?: IPotentialActions;
33
+ purpose: IPurpose;
16
34
  }
17
35
  /**
18
36
  * ポイントインセンティブ返却アクションインターフェース
@@ -3,6 +3,7 @@ import * as ActionFactory from '../../../action';
3
3
  import ActionType from '../../../actionType';
4
4
  import * as CancelReservationAssetTransactionFactory from '../../../assetTransaction/cancelReservation';
5
5
  import AssetTransactionType from '../../../assetTransactionType';
6
+ import { ISimpleOrder } from '../../../order';
6
7
  import { Identifier as WebAPIIdentifier } from '../../../service/webAPI';
7
8
  export declare type IAgent = ActionFactory.IParticipant;
8
9
  export declare type IObject4COA = COA.factory.reserve.IStateReserveArgs;
@@ -12,7 +13,7 @@ export interface IObject4Chevre {
12
13
  transactionNumber?: string;
13
14
  }
14
15
  export declare type IObject<T extends WebAPIIdentifier> = T extends WebAPIIdentifier.COA ? IObject4COA : IObject4Chevre;
15
- export declare type IPurpose = any;
16
+ export declare type IPurpose = ISimpleOrder;
16
17
  export declare type IResult = any;
17
18
  export declare type IPotentialActions = CancelReservationAssetTransactionFactory.IPotentialActionsParams;
18
19
  export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes<ActionType.ReturnAction, TObject, TResult> {
@@ -8,6 +8,6 @@ export interface IAttributes<TObject, TResult> extends ActionFactory.IAttributes
8
8
  recipient: ActionFactory.IParticipant;
9
9
  }
10
10
  /**
11
- * 返却アクションインたーフェース
11
+ * 返却アクションインターフェース
12
12
  */
13
13
  export declare type IAction<TAttributes extends IAttributes<IObject, IResult>> = ActionFactory.IAction<TAttributes>;
@@ -51,4 +51,21 @@ export declare type ITransaction = IExtendId<IAttributes>;
51
51
  export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
52
52
  }
53
53
  export interface ISearchConditions extends TransactionFactory.ISearchConditions<AssetTransactionType.MoneyTransfer> {
54
+ object?: {
55
+ fromLocation?: {
56
+ identifier?: {
57
+ $eq?: string;
58
+ };
59
+ };
60
+ toLocation?: {
61
+ identifier?: {
62
+ $eq?: string;
63
+ };
64
+ };
65
+ pendingTransaction?: {
66
+ identifier?: {
67
+ $eq?: string;
68
+ };
69
+ };
70
+ };
54
71
  }
@@ -138,7 +138,17 @@ export interface ISearchConditions {
138
138
  * 所有者
139
139
  */
140
140
  ownedBy?: {
141
- id?: string;
141
+ id?: string | {
142
+ $in?: string[];
143
+ };
144
+ memberOf?: {
145
+ membershipNumber?: {
146
+ $in?: string[];
147
+ };
148
+ };
149
+ typeOf?: {
150
+ $eq?: string;
151
+ };
142
152
  };
143
153
  ownedFromGte?: Date;
144
154
  ownedFromLte?: Date;
@@ -69,7 +69,6 @@ export interface ISettings {
69
69
  sendgridApiKey?: string;
70
70
  transactionWebhookUrls?: string[];
71
71
  useMyCreditCards?: boolean;
72
- useTransactionClientUser?: boolean;
73
72
  useUsernameAsGMOMemberId?: boolean;
74
73
  }
75
74
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.177.0-alpha.1",
3
+ "version": "4.178.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",