@chevre/factory 4.375.0-alpha.13 → 4.375.0-alpha.15

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.
@@ -16,10 +16,7 @@ export declare enum ResultType {
16
16
  }
17
17
  export { ICreditCard, IFromLocation, ITokenizedPaymentCard };
18
18
  export import IPurchaseNumberAuthResult = CheckMovieTicketActionFactory.IPurchaseNumberAuthResult;
19
- /**
20
- * 承認対象
21
- */
22
- export interface IObject {
19
+ export interface IObjectIncludingPaymentMethodDetails {
23
20
  /**
24
21
  * The identifier for the account the payment will be applied to.
25
22
  * MovieTicket->購入管理番号
@@ -79,13 +76,14 @@ export interface IObject {
79
76
  */
80
77
  movieTickets?: IMovieTicket[];
81
78
  }
82
- export type IObjectWithoutDetail = Pick<IObject, 'additionalProperty' | 'amount' | 'issuedThrough' | 'paymentMethod' | 'description' | 'name' | 'creditCard' | 'method' | 'movieTickets' | 'fromLocation'> & {
79
+ export type IObjectWithoutDetail = Pick<IObjectIncludingPaymentMethodDetails, 'additionalProperty' | 'amount' | 'issuedThrough' | 'paymentMethod' | 'description' | 'name' | 'creditCard' | 'method' | 'movieTickets' | 'fromLocation'> & {
83
80
  /**
84
81
  * 外部決済URL発行の場合に指定
85
82
  * CreditCardのみ対応
86
83
  */
87
84
  paymentMethodId?: string;
88
85
  };
86
+ export type IObject = Pick<IObjectIncludingPaymentMethodDetails, 'accountId' | 'additionalProperty' | 'amount' | 'description' | 'fromLocation' | 'issuedThrough' | 'name' | 'paymentMethod' | 'paymentMethodId' | 'typeOf'>;
89
87
  export interface IResultPaymentMethod {
90
88
  /**
91
89
  * 決済方法区分
@@ -2,20 +2,26 @@ import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { ISimpleOrder } from '../../order';
4
4
  import { TransactionType } from '../../transactionType';
5
- import { IAttributes as ISendOrderActionAttributes } from '../transfer/send/order';
5
+ import { IAttributes as ISendEmailMessageActionAttributes } from '../transfer/send/message/email';
6
6
  export type IAgent = ActionFactory.IParticipant;
7
7
  export type IRecipient = ActionFactory.IParticipant;
8
8
  export type IObject = ISimpleOrder;
9
- export type IResult = any;
10
- export type ISendOrderPotentialAction = Pick<ISendOrderActionAttributes, 'potentialActions'>;
9
+ export interface IResult {
10
+ }
11
+ export type IPotentialSendEmailMessageAction = Pick<ISendEmailMessageActionAttributes, 'object'>;
12
+ export interface IPotentialSendOrderAction {
13
+ potentialActions?: {
14
+ sendEmailMessage?: IPotentialSendEmailMessageAction[];
15
+ };
16
+ }
11
17
  export interface IPotentialActions {
12
- sendOrder?: ISendOrderPotentialAction;
18
+ sendOrder?: IPotentialSendOrderAction;
13
19
  }
14
20
  export interface IPurpose {
15
21
  typeOf: TransactionType.PlaceOrder;
16
22
  id: string;
17
23
  }
18
- export interface IAttributes extends ActionFactory.IAttributes<ActionType.OrderAction, IObject, IResult> {
24
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.OrderAction, IObject, IResult>, 'typeOf' | 'result' | 'purpose' | 'project' | 'potentialActions' | 'object' | 'error' | 'agent'> {
19
25
  potentialActions?: IPotentialActions;
20
26
  purpose?: IPurpose;
21
27
  }
@@ -2,7 +2,6 @@ import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IP
2
2
  import * as OrderFactory from '../../../order';
3
3
  import { IGood, IOwnershipInfo } from '../../../ownershipInfo';
4
4
  import * as SendActionFactory from '../send';
5
- import { IAttributes as ISendEmailMessageActionAttributes } from './message/email';
6
5
  export type IAgent = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
7
6
  export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
8
7
  export type IObject = OrderFactory.ISimpleOrder & {
@@ -18,18 +17,9 @@ export type IObject = OrderFactory.ISimpleOrder & {
18
17
  * 注文配送結果としての所有権
19
18
  */
20
19
  export type IResult = IOwnershipInfo<IGood>[];
21
- export type ISendEmailMessage = Pick<ISendEmailMessageActionAttributes, 'object'>;
22
- export interface IPotentialActions {
23
- /**
24
- * Eメール送信アクション
25
- * 注文処理後のメッセージ送信として機能しているので注意
26
- */
27
- sendEmailMessage?: ISendEmailMessage[];
28
- }
29
- export interface IAttributes extends SendActionFactory.IAttributes<IObject, IResult> {
20
+ export interface IAttributes extends Pick<SendActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'result' | 'recipient' | 'project' | 'object' | 'error' | 'agent'> {
30
21
  agent: IAgent;
31
22
  recipient: IRecipient;
32
- potentialActions?: IPotentialActions;
33
23
  }
34
24
  /**
35
25
  * 注文配送アクション
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.375.0-alpha.13",
3
+ "version": "4.375.0-alpha.15",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",