@chevre/factory 4.375.0-alpha.2 → 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/index.d.ts +2 -2
- package/lib/index.js +3 -3
- package/lib/task/returnPayTransaction.d.ts +2 -2
- 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
|
*/
|
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/package.json
CHANGED
|
File without changes
|