@chevre/factory 4.232.0 → 4.233.0

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.
@@ -11,30 +11,6 @@ import { IPropertyValue } from '../propertyValue';
11
11
  import { PaymentServiceType } from '../service/paymentService';
12
12
  export import IAgent = AssetTransactionFactory.IAgent;
13
13
  export declare type IRecipient = IPayRecipient;
14
- export declare type IObjectWithoutDetail = IObject;
15
- export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> & {
16
- recipient: IRecipient;
17
- purpose?: IPayPurpose;
18
- };
19
- export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
20
- recipient: IRecipient;
21
- }
22
- export interface IPotentialActionsParams {
23
- pay: {
24
- purpose: IOrderAsPayPurpose;
25
- };
26
- }
27
- /**
28
- * 確定パラメータ
29
- */
30
- export interface IConfirmParams {
31
- id?: string;
32
- transactionNumber?: string;
33
- endDate?: Date;
34
- potentialActions: IPotentialActionsParams;
35
- }
36
- export declare type IResult = any;
37
- export declare type IError = any;
38
14
  /**
39
15
  * ペイメントカードトークン
40
16
  */
@@ -103,6 +79,8 @@ export interface IPaymentMethod {
103
79
  * 取引対象物
104
80
  */
105
81
  export interface IObject {
82
+ accountId: string;
83
+ paymentMethodId: string;
106
84
  typeOf: PaymentServiceType;
107
85
  /**
108
86
  * 発行決済サービスID
@@ -117,14 +95,43 @@ export interface IObject {
117
95
  payAction?: any;
118
96
  onPaymentStatusChanged?: IOnPaymentStatusChanged;
119
97
  }
98
+ export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId'>;
99
+ export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
100
+ recipient: IRecipient;
101
+ purpose?: IPayPurpose;
102
+ };
103
+ export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObject> {
104
+ recipient: IRecipient;
105
+ }
120
106
  export interface IPotentialActions {
121
107
  /**
122
108
  * 決済アクション
123
109
  */
124
110
  pay: IPayActionAttributes[];
125
111
  }
112
+ export interface IPotentialActionsParams {
113
+ pay: {
114
+ purpose: IOrderAsPayPurpose;
115
+ };
116
+ }
117
+ /**
118
+ * 確定パラメータ
119
+ */
120
+ export interface IConfirmParams {
121
+ id?: string;
122
+ transactionNumber?: string;
123
+ endDate?: Date;
124
+ potentialActions: IPotentialActionsParams;
125
+ }
126
+ export declare type IResult = any;
127
+ export declare type IError = any;
126
128
  export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
127
129
  }
128
130
  export declare type ITransaction = IExtendId<IAttributes>;
129
131
  export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Pay> {
132
+ object?: {
133
+ accountId?: {
134
+ $eq?: string;
135
+ };
136
+ };
130
137
  }
@@ -7,15 +7,23 @@ import { IOnPaymentStatusChanged } from '../project';
7
7
  import { PaymentServiceType } from '../service/paymentService';
8
8
  export import IAgent = AssetTransactionFactory.IAgent;
9
9
  export declare type IRecipient = IRefundRecipient;
10
- export interface IObjectWithoutDetail {
10
+ export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
11
+ /**
12
+ * 取引対象物
13
+ */
14
+ export interface IObject {
15
+ accountId: string;
16
+ paymentMethodId: string;
11
17
  typeOf: PaymentServiceType;
12
18
  /**
13
19
  * 発行決済サービスID
14
20
  */
15
21
  id: string;
22
+ onPaymentStatusChanged?: IOnPaymentStatusChanged;
16
23
  paymentMethod: IPaymentMethod;
17
24
  refundFee?: number;
18
25
  }
26
+ export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId' | 'onPaymentStatusChanged'>;
19
27
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
20
28
  export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
21
29
  }
@@ -35,20 +43,6 @@ export interface IConfirmParams {
35
43
  }
36
44
  export declare type IResult = any;
37
45
  export declare type IError = any;
38
- export declare type IAnyPaymentMethod = AvailablePaymentMethodType;
39
- /**
40
- * 取引対象物
41
- */
42
- export interface IObject {
43
- typeOf: PaymentServiceType;
44
- /**
45
- * 発行決済サービスID
46
- */
47
- id: string;
48
- onPaymentStatusChanged?: IOnPaymentStatusChanged;
49
- paymentMethod: IPaymentMethod;
50
- refundFee?: number;
51
- }
52
46
  export interface IPotentialActions {
53
47
  /**
54
48
  * 返金アクション
@@ -62,4 +56,9 @@ export declare type ITransaction = IExtendId<IAttributes>;
62
56
  export interface IAttributes extends AssetTransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
63
57
  }
64
58
  export interface ISearchConditions extends AssetTransactionFactory.ISearchConditions<AssetTransactionType.Refund> {
59
+ object?: {
60
+ accountId?: {
61
+ $eq?: string;
62
+ };
63
+ };
65
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.232.0",
3
+ "version": "4.233.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",