@chevre/factory 4.375.0-alpha.20 → 4.375.0-alpha.22
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.
|
@@ -10,11 +10,12 @@ export type IRecipient = Pick<ActionFactory.IParticipantAsCustomer, IRecipientAt
|
|
|
10
10
|
export type IObject = Pick<IReferencedInvoice, 'accountId' | 'issuedThrough' | 'paymentMethod' | 'paymentMethodId' | 'totalPaymentDue' | 'name' | 'additionalProperty'> & Pick<IInvoice, 'typeOf'>;
|
|
11
11
|
export interface IResult {
|
|
12
12
|
}
|
|
13
|
+
export type IPotentialSendEmailMessageAction = Pick<ISendEmailMessageActionAttributes, 'object'>;
|
|
13
14
|
export interface IPotentialActions {
|
|
14
15
|
/**
|
|
15
16
|
* 返金処理完了を通知するEメール送信アクション
|
|
16
17
|
*/
|
|
17
|
-
sendEmailMessage?:
|
|
18
|
+
sendEmailMessage?: IPotentialSendEmailMessageAction[];
|
|
18
19
|
}
|
|
19
20
|
export type IPurpose = ISimpleOrder;
|
|
20
21
|
export interface IInstrument {
|
|
@@ -17,6 +17,8 @@ export type IObject = OrderFactory.ISimpleOrder & {
|
|
|
17
17
|
};
|
|
18
18
|
export type IResult = any;
|
|
19
19
|
export type IPotentialReturnInvoiceAction = Pick<IReturnInvoiceActionAttributes, 'object' | 'potentialActions'>;
|
|
20
|
+
export type IPotentialReturnPointAwardAction = ReturnPointAwardActionFactory.IAttributes;
|
|
21
|
+
export type IPotentialSendEmailMessageAction = Pick<ISendEmailMessageActionAttributes, 'object'>;
|
|
20
22
|
export interface IPotentialActions {
|
|
21
23
|
/**
|
|
22
24
|
* 決済返却アクション
|
|
@@ -26,11 +28,11 @@ export interface IPotentialActions {
|
|
|
26
28
|
/**
|
|
27
29
|
* ポイントインセンティブ返却アクション
|
|
28
30
|
*/
|
|
29
|
-
returnPointAward:
|
|
31
|
+
returnPointAward: IPotentialReturnPointAwardAction[];
|
|
30
32
|
/**
|
|
31
33
|
* Eメール送信アクション
|
|
32
34
|
*/
|
|
33
|
-
sendEmailMessage?:
|
|
35
|
+
sendEmailMessage?: IPotentialSendEmailMessageAction[];
|
|
34
36
|
}
|
|
35
37
|
export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
|
|
36
38
|
agent: IAgent;
|
|
@@ -15,12 +15,9 @@ export interface IResult {
|
|
|
15
15
|
statusMessage?: string;
|
|
16
16
|
}
|
|
17
17
|
export type IPurpose = ISimpleOrder;
|
|
18
|
-
export interface
|
|
19
|
-
}
|
|
20
|
-
export interface IAttributes extends SendActionFactory.IAttributes<IObject, IResult> {
|
|
18
|
+
export interface IAttributes extends Pick<SendActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'sameAs' | 'result' | 'recipient' | 'purpose' | 'project' | 'object' | 'error' | 'agent'> {
|
|
21
19
|
agent: IAgent;
|
|
22
20
|
purpose: IPurpose;
|
|
23
|
-
potentialActions?: IPotentialActions;
|
|
24
21
|
recipient: IRecipient;
|
|
25
22
|
}
|
|
26
23
|
/**
|
|
@@ -2,17 +2,18 @@ import { IAttributes as ISendEmailMessageActionAttributest } from '../action/tra
|
|
|
2
2
|
import { IExtendId } from '../autoGenerated';
|
|
3
3
|
import * as TaskFactory from '../task';
|
|
4
4
|
import { TaskName } from '../taskName';
|
|
5
|
+
export type IActionAttributes = Pick<ISendEmailMessageActionAttributest, 'agent' | 'object' | 'project' | 'purpose' | 'recipient' | 'typeOf'>;
|
|
5
6
|
export interface IData {
|
|
6
7
|
/**
|
|
7
8
|
* Eメール送信アクション属性
|
|
8
9
|
*/
|
|
9
|
-
actionAttributes:
|
|
10
|
+
actionAttributes: IActionAttributes;
|
|
10
11
|
}
|
|
11
12
|
export interface IAttributes extends TaskFactory.IAttributes {
|
|
12
13
|
name: TaskName.SendEmailMessage;
|
|
13
14
|
data: IData;
|
|
14
15
|
}
|
|
15
16
|
/**
|
|
16
|
-
* E
|
|
17
|
+
* Eメール送信タスク
|
|
17
18
|
*/
|
|
18
19
|
export type ITask = IExtendId<IAttributes>;
|