@chevre/factory 4.393.0-alpha.6 → 4.393.0-alpha.7

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.
@@ -92,7 +92,12 @@ export interface IPaymentService {
92
92
  serviceOutput?: IPaymentServiceOutput;
93
93
  }
94
94
  export type IObject = [IPaymentService];
95
- export type IInformPayment = Pick<IInformActionAttributes<{}>, 'recipient' | 'purpose'>;
95
+ export type IInformPayment = Pick<IInformActionAttributes<{}>, 'recipient' | 'purpose'> & {
96
+ /**
97
+ * potentialAction id
98
+ */
99
+ id?: string;
100
+ };
96
101
  export interface IPotentialActions {
97
102
  add2report: boolean;
98
103
  informPayment?: IInformPayment[];
@@ -29,7 +29,12 @@ export interface IResult {
29
29
  transactionNumber: string;
30
30
  };
31
31
  }
32
- export type IInformPayment = Pick<IInformActionAttributes<{}>, 'recipient' | 'purpose'>;
32
+ export type IInformPayment = Pick<IInformActionAttributes<{}>, 'recipient' | 'purpose'> & {
33
+ /**
34
+ * potentialAction id
35
+ */
36
+ id?: string;
37
+ };
33
38
  export interface IPotentialActions {
34
39
  add2report: boolean;
35
40
  informPayment?: IInformPayment[];
@@ -7,7 +7,7 @@ import { ITotalPaymentDue } from '../order';
7
7
  import { ICreditCard3DS, IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized } from '../paymentMethod/paymentCard/creditCard';
8
8
  import { IOnPaymentStatusChanged } from '../product';
9
9
  import { IPropertyValue } from '../propertyValue';
10
- import { PaymentServiceType } from '../service/paymentService';
10
+ import { IPotentialAction as IPotentialInformAction, PaymentServiceType } from '../service/paymentService';
11
11
  export import IAgent = AssetTransactionFactory.IAgent;
12
12
  export type IRecipient = IPayRecipient;
13
13
  /**
@@ -108,6 +108,7 @@ export interface IPaymentMethodWithoutDetail extends IPaymentMethod {
108
108
  export interface IObjectWithoutDetail extends Pick<IObject, 'typeOf' | 'id' | 'paymentMethod'> {
109
109
  paymentMethod: IPaymentMethodWithoutDetail;
110
110
  }
111
+ export type IPotentialAction = IPotentialInformAction;
111
112
  export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
112
113
  location?: ILocation;
113
114
  recipient: IRecipient;
@@ -116,6 +117,7 @@ export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<Ass
116
117
  export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
117
118
  location?: ILocation;
118
119
  recipient: IRecipient;
120
+ potentialAction?: IPotentialAction[];
119
121
  }
120
122
  export interface IOptimizedPayAction4order {
121
123
  object: {
@@ -159,6 +161,7 @@ export interface IConfirmParams {
159
161
  export type IResult = any;
160
162
  export type IError = any;
161
163
  export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
164
+ potentialAction?: IPotentialAction[];
162
165
  }
163
166
  export type ITransaction = IExtendId<IAttributes>;
164
167
  export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Pay> {
@@ -4,7 +4,7 @@ import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { IOnPaymentStatusChanged } from '../product';
7
- import { PaymentServiceType } from '../service/paymentService';
7
+ import { IPotentialAction as IPotentialInformAction, PaymentServiceType } from '../service/paymentService';
8
8
  export import IAgent = AssetTransactionFactory.IAgent;
9
9
  export type IRecipient = IRefundRecipient;
10
10
  /**
@@ -23,8 +23,10 @@ export interface IObject {
23
23
  refundFee?: number;
24
24
  }
25
25
  export type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMethod' | 'refundFee'>;
26
+ export type IPotentialAction = IPotentialInformAction;
26
27
  export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
27
28
  export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
29
+ potentialAction?: IPotentialAction[];
28
30
  }
29
31
  export type IRefundPurpose = IPurposeAsReturnAction;
30
32
  export interface IPotentialActionsParams {
@@ -55,6 +57,7 @@ export type ITransaction = IExtendId<IAttributes>;
55
57
  * 返金取引
56
58
  */
57
59
  export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
60
+ potentialAction?: IPotentialAction[];
58
61
  }
59
62
  export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Refund> {
60
63
  object?: {
@@ -7,6 +7,10 @@ export type IPotentialInformAction = Pick<IInformActionAttributes<IObject>, 'obj
7
7
  * 通知識別子(2024-10-24~)
8
8
  */
9
9
  identifier?: string;
10
+ /**
11
+ * potentialAction id
12
+ */
13
+ id?: string;
10
14
  };
11
15
  export type IData = IPotentialInformAction;
12
16
  export interface IAttributes extends TaskFactory.IAttributes {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.393.0-alpha.6",
3
+ "version": "4.393.0-alpha.7",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",