@chevre/factory 4.375.0-alpha.1 → 4.375.0-alpha.3
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/action/transfer/return/{paymentMethod.d.ts → invoice.d.ts} +13 -4
- package/lib/action/transfer/return/order.d.ts +3 -2
- package/lib/assetTransaction.d.ts +12 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +3 -3
- package/lib/task/returnPayTransaction.d.ts +2 -2
- package/lib/transaction.d.ts +8 -6
- package/package.json +1 -1
- /package/lib/action/transfer/return/{paymentMethod.js → invoice.js} +0 -0
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
|
+
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
2
3
|
import { IInvoice } from '../../../invoice';
|
|
3
4
|
import { IReferencedInvoice, ISimpleOrder } from '../../../order';
|
|
4
5
|
import { IAttributes as ISendEmailMessageActionAttributes } from '../../transfer/send/message/email';
|
|
5
6
|
import * as ReturnActionFactory from '../return';
|
|
6
7
|
export type IAgent = ActionFactory.IParticipantAsProject;
|
|
7
|
-
|
|
8
|
+
type IRecipientAttributes = 'id' | 'name' | 'typeOf';
|
|
9
|
+
export type IRecipient = Pick<ActionFactory.IParticipantAsCustomer, IRecipientAttributes> | Pick<ActionFactory.IParticipantAsPerson, IRecipientAttributes> | Pick<ActionFactory.IParticipantAsWebApplication, IRecipientAttributes>;
|
|
8
10
|
export type IObject = Pick<IReferencedInvoice, 'accountId' | 'issuedThrough' | 'paymentMethod' | 'paymentMethodId' | 'totalPaymentDue' | 'name' | 'additionalProperty'> & Pick<IInvoice, 'typeOf'>;
|
|
9
|
-
export
|
|
11
|
+
export interface IResult {
|
|
12
|
+
}
|
|
10
13
|
export interface IPotentialActions {
|
|
11
14
|
/**
|
|
12
15
|
* 返金処理完了を通知するEメール送信アクション
|
|
@@ -14,13 +17,19 @@ export interface IPotentialActions {
|
|
|
14
17
|
sendEmailMessage?: ISendEmailMessageActionAttributes[];
|
|
15
18
|
}
|
|
16
19
|
export type IPurpose = ISimpleOrder;
|
|
17
|
-
export interface
|
|
20
|
+
export interface IInstrument {
|
|
21
|
+
typeOf: AssetTransactionType.Refund;
|
|
22
|
+
transactionNumber: string;
|
|
23
|
+
}
|
|
24
|
+
export interface IAttributes extends Pick<ReturnActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
|
|
18
25
|
agent: IAgent;
|
|
19
26
|
recipient: IRecipient;
|
|
20
27
|
purpose: IPurpose;
|
|
21
28
|
potentialActions?: IPotentialActions;
|
|
29
|
+
instrument?: IInstrument;
|
|
22
30
|
}
|
|
23
31
|
/**
|
|
24
|
-
*
|
|
32
|
+
* 請求返却アクション
|
|
25
33
|
*/
|
|
26
34
|
export type IAction = ReturnActionFactory.IAction<IAttributes>;
|
|
35
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ActionFactory from '../../../action';
|
|
2
2
|
import * as OrderFactory from '../../../order';
|
|
3
|
-
import { IAttributes as
|
|
3
|
+
import { IAttributes as IReturnInvoiceActionAttributes } from '../../transfer/return/invoice';
|
|
4
4
|
import * as ReturnActionFactory from '../return';
|
|
5
5
|
import { IAttributes as ISendEmailMessageActionAttributes } from '../send/message/email';
|
|
6
6
|
import * as ReturnPointAwardActionFactory from './pointAward';
|
|
@@ -16,12 +16,13 @@ export type IObject = OrderFactory.ISimpleOrder & {
|
|
|
16
16
|
dateReturned: Date;
|
|
17
17
|
};
|
|
18
18
|
export type IResult = any;
|
|
19
|
+
export type IPotentialReturnInvoiceAction = Pick<IReturnInvoiceActionAttributes, 'agent' | 'project' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'typeOf'>;
|
|
19
20
|
export interface IPotentialActions {
|
|
20
21
|
/**
|
|
21
22
|
* 決済返却アクション
|
|
22
23
|
* refundから移行(2022-08-10~)
|
|
23
24
|
*/
|
|
24
|
-
returnPaymentMethod:
|
|
25
|
+
returnPaymentMethod: IPotentialReturnInvoiceAction[];
|
|
25
26
|
/**
|
|
26
27
|
* ポイントインセンティブ返却アクション
|
|
27
28
|
*/
|
|
@@ -105,10 +105,12 @@ export type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TSta
|
|
|
105
105
|
tasksExportAction?: ITasksExportAction;
|
|
106
106
|
/**
|
|
107
107
|
* タスクエクスポート日時
|
|
108
|
+
* @deprecated use tasksExportAction
|
|
108
109
|
*/
|
|
109
110
|
tasksExportedAt?: Date;
|
|
110
111
|
/**
|
|
111
112
|
* タスクエクスポート状態
|
|
113
|
+
* @deprecated use tasksExportAction
|
|
112
114
|
*/
|
|
113
115
|
tasksExportationStatus: TransactionTasksExportationStatus;
|
|
114
116
|
/**
|
|
@@ -145,8 +147,12 @@ export interface ISearchConditions<T extends AssetTransactionType> {
|
|
|
145
147
|
ids?: string[];
|
|
146
148
|
/**
|
|
147
149
|
* ステータスリスト
|
|
150
|
+
* @deprecated use tasksExportAction
|
|
148
151
|
*/
|
|
149
152
|
statuses?: TransactionStatusType[];
|
|
153
|
+
status?: {
|
|
154
|
+
$in?: TransactionStatusType[];
|
|
155
|
+
};
|
|
150
156
|
/**
|
|
151
157
|
* 開始日時(から)
|
|
152
158
|
*/
|
|
@@ -170,5 +176,10 @@ export interface ISearchConditions<T extends AssetTransactionType> {
|
|
|
170
176
|
$eq?: string;
|
|
171
177
|
$in?: string[];
|
|
172
178
|
};
|
|
173
|
-
|
|
179
|
+
tasksExportAction?: {
|
|
180
|
+
actionStatus?: {
|
|
181
|
+
$eq?: ActionStatusType;
|
|
182
|
+
$in?: ActionStatusType[];
|
|
183
|
+
};
|
|
184
|
+
};
|
|
174
185
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -33,9 +33,9 @@ import * as RefundActionFactory from './action/trade/refund';
|
|
|
33
33
|
import * as GiveActionFactory from './action/transfer/give';
|
|
34
34
|
import * as GivePointAwardActionFactory from './action/transfer/give/pointAward';
|
|
35
35
|
import * as MoneyTransferActionFactory from './action/transfer/moneyTransfer';
|
|
36
|
+
import * as ReturnInvoiceActionFactory from './action/transfer/return/invoice';
|
|
36
37
|
import * as ReturnMoneyTransferActionFactory from './action/transfer/return/moneyTransfer';
|
|
37
38
|
import * as ReturnOrderActionFactory from './action/transfer/return/order';
|
|
38
|
-
import * as ReturnPaymentMethodActionFactory from './action/transfer/return/paymentMethod';
|
|
39
39
|
import * as ReturnPointAwardActionFactory from './action/transfer/return/pointAward';
|
|
40
40
|
import * as ReturnReserveTransactionActionFactory from './action/transfer/return/reserveTransaction';
|
|
41
41
|
import * as SendEmailMessageActionFactory from './action/transfer/send/message/email';
|
|
@@ -273,9 +273,9 @@ export declare namespace action {
|
|
|
273
273
|
* returnはネームスペース名に使えないのでreturnAction
|
|
274
274
|
*/
|
|
275
275
|
namespace returnAction {
|
|
276
|
+
export import invoice = ReturnInvoiceActionFactory;
|
|
276
277
|
export import moneyTransfer = ReturnMoneyTransferActionFactory;
|
|
277
278
|
export import order = ReturnOrderActionFactory;
|
|
278
|
-
export import paymentMethod = ReturnPaymentMethodActionFactory;
|
|
279
279
|
export import pointAward = ReturnPointAwardActionFactory;
|
|
280
280
|
export import reserveTransaction = ReturnReserveTransactionActionFactory;
|
|
281
281
|
}
|
package/lib/index.js
CHANGED
|
@@ -33,9 +33,9 @@ var PayActionFactory = require("./action/trade/pay");
|
|
|
33
33
|
var RefundActionFactory = require("./action/trade/refund");
|
|
34
34
|
var GivePointAwardActionFactory = require("./action/transfer/give/pointAward");
|
|
35
35
|
var MoneyTransferActionFactory = require("./action/transfer/moneyTransfer");
|
|
36
|
+
var ReturnInvoiceActionFactory = require("./action/transfer/return/invoice");
|
|
36
37
|
var ReturnMoneyTransferActionFactory = require("./action/transfer/return/moneyTransfer");
|
|
37
38
|
var ReturnOrderActionFactory = require("./action/transfer/return/order");
|
|
38
|
-
var ReturnPaymentMethodActionFactory = require("./action/transfer/return/paymentMethod");
|
|
39
39
|
var ReturnPointAwardActionFactory = require("./action/transfer/return/pointAward");
|
|
40
40
|
var ReturnReserveTransactionActionFactory = require("./action/transfer/return/reserveTransaction");
|
|
41
41
|
var SendEmailMessageActionFactory = require("./action/transfer/send/message/email");
|
|
@@ -248,12 +248,12 @@ var action;
|
|
|
248
248
|
*/
|
|
249
249
|
var returnAction;
|
|
250
250
|
(function (returnAction) {
|
|
251
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
252
|
+
returnAction.invoice = ReturnInvoiceActionFactory;
|
|
251
253
|
// tslint:disable-next-line:no-shadowed-variable
|
|
252
254
|
returnAction.moneyTransfer = ReturnMoneyTransferActionFactory;
|
|
253
255
|
// tslint:disable-next-line:no-shadowed-variable
|
|
254
256
|
returnAction.order = ReturnOrderActionFactory;
|
|
255
|
-
// tslint:disable-next-line:no-shadowed-variable
|
|
256
|
-
returnAction.paymentMethod = ReturnPaymentMethodActionFactory;
|
|
257
257
|
returnAction.pointAward = ReturnPointAwardActionFactory;
|
|
258
258
|
returnAction.reserveTransaction = ReturnReserveTransactionActionFactory;
|
|
259
259
|
})(returnAction = transfer.returnAction || (transfer.returnAction = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IPotentialReturnInvoiceAction } from '../action/transfer/return/order';
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
-
export type IData =
|
|
5
|
+
export type IData = IPotentialReturnInvoiceAction;
|
|
6
6
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
7
7
|
name: TaskName.ReturnPayTransaction;
|
|
8
8
|
data: IData;
|
package/lib/transaction.d.ts
CHANGED
|
@@ -118,10 +118,12 @@ export type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TSta
|
|
|
118
118
|
tasksExportAction?: ITasksExportAction;
|
|
119
119
|
/**
|
|
120
120
|
* タスクエクスポート日時
|
|
121
|
+
* @deprecated use tasksExportAction
|
|
121
122
|
*/
|
|
122
123
|
tasksExportedAt?: Date;
|
|
123
124
|
/**
|
|
124
125
|
* タスクエクスポート状態
|
|
126
|
+
* @deprecated use tasksExportAction
|
|
125
127
|
*/
|
|
126
128
|
tasksExportationStatus: TransactionTasksExportationStatus;
|
|
127
129
|
/**
|
|
@@ -155,8 +157,12 @@ export interface ISearchConditions<T extends TransactionType> {
|
|
|
155
157
|
ids?: string[];
|
|
156
158
|
/**
|
|
157
159
|
* ステータスリスト
|
|
160
|
+
* @deprecated use tasksExportAction
|
|
158
161
|
*/
|
|
159
162
|
statuses?: TransactionStatusType[];
|
|
163
|
+
status?: {
|
|
164
|
+
$in?: TransactionStatusType[];
|
|
165
|
+
};
|
|
160
166
|
/**
|
|
161
167
|
* 開始日時(から)
|
|
162
168
|
*/
|
|
@@ -174,18 +180,14 @@ export interface ISearchConditions<T extends TransactionType> {
|
|
|
174
180
|
*/
|
|
175
181
|
endThrough?: Date;
|
|
176
182
|
agent?: {
|
|
177
|
-
typeOf?: PersonType;
|
|
183
|
+
typeOf?: PersonType.Person | IWebApplication['typeOf'];
|
|
178
184
|
ids?: string[];
|
|
179
185
|
identifiers?: IIdentifier;
|
|
180
|
-
givenName?: string;
|
|
181
|
-
familyName?: string;
|
|
182
|
-
telephone?: string;
|
|
183
|
-
email?: string;
|
|
184
186
|
};
|
|
185
|
-
tasksExportationStatuses?: TransactionTasksExportationStatus[];
|
|
186
187
|
tasksExportAction?: {
|
|
187
188
|
actionStatus?: {
|
|
188
189
|
$eq?: ActionStatusType;
|
|
190
|
+
$in?: ActionStatusType[];
|
|
189
191
|
};
|
|
190
192
|
};
|
|
191
193
|
}
|
package/package.json
CHANGED
|
File without changes
|