@chevre/factory 4.190.0 → 4.191.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.
@@ -30,14 +30,8 @@ export interface IObjectPendingTransaction {
30
30
  transactionNumber?: string;
31
31
  }
32
32
  export declare type IPaymentCard = MoneyTransferActionFactory.IPaymentCard;
33
- /**
34
- * 決済トークン
35
- */
36
- export declare type ITokenizedPaymentCard = string;
37
- /**
38
- * 転送元インターフェース
39
- */
40
- export declare type IFromLocation = IPaymentCard | ITokenizedPaymentCard;
33
+ export import ITokenizedPaymentCard = PayTransactionFactory.ITokenizedPaymentCard;
34
+ export import IFromLocation = PayTransactionFactory.IFromLocation;
41
35
  /**
42
36
  * 転送先インターフェース
43
37
  */
@@ -97,7 +91,6 @@ export interface IObject {
97
91
  /**
98
92
  * 転送先(PaymentCard決済)
99
93
  */
100
- toLocation?: IToLocation;
101
94
  /**
102
95
  * 支払い方法(CreditCard決済)
103
96
  */
@@ -4,7 +4,6 @@ import ActionType from '../../../actionType';
4
4
  import * as MoneyTransferTransactionFactory from '../../../assetTransaction/moneyTransfer';
5
5
  import { IMonetaryAmount } from '../../../monetaryAmount';
6
6
  import * as OrderFactory from '../../../order';
7
- import { PermitType } from '../../../permit';
8
7
  import { IPropertyValue } from '../../../propertyValue';
9
8
  import TransactionType from '../../../transactionType';
10
9
  export declare type IAgent = ActionFactory.IParticipant;
@@ -44,21 +43,8 @@ export interface IPaymentMethodLocation {
44
43
  */
45
44
  additionalProperty: IPropertyValue<string>[];
46
45
  }
47
- /**
48
- * ペイメントカードインターフェース
49
- */
50
- export interface IPaymentCard {
51
- typeOf: PermitType;
52
- identifier: string;
53
- accessCode?: string;
54
- hasNoPermit?: boolean;
55
- issuedThrough: {
56
- /**
57
- * カード発行サービスID
58
- */
59
- id: string;
60
- };
61
- }
46
+ export import IPaymentCard = MoneyTransferTransactionFactory.IPaymentCard;
47
+ export import IFromLocationBeforeStart = MoneyTransferTransactionFactory.IFromLocationBeforeStart;
62
48
  /**
63
49
  * 転送元あるいは転送先の場所インターフェース
64
50
  */
@@ -83,7 +69,7 @@ export interface IAttributes extends ActionFactory.IAttributes<ActionType.Confir
83
69
  /**
84
70
  * 転送元
85
71
  */
86
- fromLocation: ILocation;
72
+ fromLocation: ILocation | IFromLocationBeforeStart;
87
73
  /**
88
74
  * 転送先
89
75
  */
@@ -1,9 +1,9 @@
1
1
  import * as AccountFactory from '../../account';
2
2
  import * as ActionFactory from '../../action';
3
3
  import ActionType from '../../actionType';
4
+ import * as MoneyTransferTransactionFactory from '../../assetTransaction/moneyTransfer';
4
5
  import AssetTransactionType from '../../assetTransactionType';
5
6
  import { IMonetaryAmount } from '../../monetaryAmount';
6
- import { PermitType } from '../../permit';
7
7
  /**
8
8
  * 進行中取引インターフェース
9
9
  */
@@ -22,18 +22,7 @@ export import IAnonymousLocation = AccountFactory.action.moneyTransfer.IAnonymou
22
22
  /**
23
23
  * ペイメントカードインターフェース
24
24
  */
25
- export interface IPaymentCard {
26
- typeOf: PermitType;
27
- identifier: string;
28
- accessCode?: string;
29
- hasNoPermit?: boolean;
30
- issuedThrough: {
31
- /**
32
- * カード発行サービスID
33
- */
34
- id: string;
35
- };
36
- }
25
+ export import IPaymentCard = MoneyTransferTransactionFactory.IPaymentCard;
37
26
  /**
38
27
  * 転送元あるいは転送先の場所インターフェース
39
28
  */
@@ -3,10 +3,40 @@ import * as TransactionFactory from '../assetTransaction';
3
3
  import AssetTransactionType from '../assetTransactionType';
4
4
  import { IExtendId } from '../autoGenerated';
5
5
  import { IMonetaryAmount } from '../monetaryAmount';
6
+ import { OrderType } from '../order';
7
+ import { PermitType } from '../permit';
6
8
  export declare type IAgent = any;
7
9
  export declare type IRecipient = IMoneyTransferRecipient;
8
10
  export declare type IFromLocation = ILocation;
9
11
  export declare type IToLocation = ILocation;
12
+ /**
13
+ * ペイメントカードインターフェース
14
+ */
15
+ export interface IPaymentCard {
16
+ typeOf: PermitType;
17
+ identifier: string;
18
+ accessCode?: string;
19
+ hasNoPermit?: boolean;
20
+ issuedThrough: {
21
+ /**
22
+ * カード発行サービスID
23
+ */
24
+ id: string;
25
+ };
26
+ }
27
+ /**
28
+ * トークン化されたペイメントカードンターフェース
29
+ */
30
+ export declare type ITokenizedPaymentCard = string;
31
+ /**
32
+ * 転送元としての注文インターフェース
33
+ */
34
+ export interface IOrderAsFromLocation {
35
+ typeOf: OrderType;
36
+ confirmationNumber: string;
37
+ orderNumber: string;
38
+ }
39
+ export declare type IFromLocationBeforeStart = IOrderAsFromLocation | IPaymentCard | ITokenizedPaymentCard;
10
40
  /**
11
41
  * 取引対象物インターフェース
12
42
  */
@@ -30,9 +60,31 @@ export interface IObject {
30
60
  pendingTransaction?: IPendingTransaction;
31
61
  }
32
62
  export declare type IObjectWithoutDetail = IObject;
63
+ export interface IObjectBeforeStart {
64
+ /**
65
+ * 金額
66
+ */
67
+ amount: IMonetaryAmount;
68
+ /**
69
+ * 転送元
70
+ */
71
+ fromLocation: IFromLocation | IFromLocationBeforeStart;
72
+ /**
73
+ * 転送先
74
+ */
75
+ toLocation: IToLocation;
76
+ /**
77
+ * 取引説明
78
+ */
79
+ description?: string;
80
+ pendingTransaction?: IPendingTransaction;
81
+ }
33
82
  export interface IStartParamsWithoutDetail extends TransactionFactory.IStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObjectWithoutDetail> {
34
83
  recipient: IRecipient;
35
84
  }
85
+ export interface IStartParamsBeforeStart extends TransactionFactory.IStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObjectBeforeStart> {
86
+ recipient: IRecipient;
87
+ }
36
88
  export interface IStartParams extends TransactionFactory.IStartParams<AssetTransactionType.MoneyTransfer, IAgent, IRecipient, IObject> {
37
89
  recipient: IRecipient;
38
90
  }
@@ -33,6 +33,11 @@ export interface IConfirmParams {
33
33
  }
34
34
  export declare type IResult = any;
35
35
  export declare type IError = any;
36
+ /**
37
+ * ペイメントカードトークン
38
+ */
39
+ export declare type ITokenizedPaymentCard = string;
40
+ export declare type IFromLocation = ITokenizedPaymentCard;
36
41
  /**
37
42
  * クレジットカード決済承認に必要なクレジットカードインターフェース
38
43
  */
@@ -75,6 +80,10 @@ export interface IPaymentMethod {
75
80
  * 決済方法タイプ
76
81
  */
77
82
  typeOf: string;
83
+ /**
84
+ * 出金元ペイメントカード
85
+ */
86
+ fromLocation?: IFromLocation;
78
87
  /**
79
88
  * ムビチケリスト
80
89
  */
@@ -1,10 +1,10 @@
1
1
  import * as waiter from '@waiter/factory';
2
2
  import { IAction as IAuthorizeAction, IAttributes as IAuthorizeActionAttributes } from '../action/authorize';
3
- import { IAttributes as IMoneyTransferActionAttributes, IPaymentCard } from '../action/interact/confirm/moneyTransfer';
3
+ import { IAttributes as IMoneyTransferActionAttributes } from '../action/interact/confirm/moneyTransfer';
4
+ import * as MoneyTransferAssetTransactionFactory from '../assetTransaction/moneyTransfer';
4
5
  import AssetTransactionType from '../assetTransactionType';
5
6
  import { IExtendId } from '../autoGenerated';
6
7
  import { IMonetaryAmount } from '../monetaryAmount';
7
- import * as OrderFactory from '../order';
8
8
  import { IPerson } from '../person';
9
9
  import { IProject } from '../project';
10
10
  import * as TransactionFactory from '../transaction';
@@ -12,19 +12,10 @@ import TransactionType from '../transactionType';
12
12
  export declare type IAgent = TransactionFactory.IAgent;
13
13
  export declare type IRecipient = IPerson | TransactionFactory.ISeller;
14
14
  export import ISeller = TransactionFactory.ISeller;
15
- /**
16
- * トークン化されたペイメントカードンターフェース
17
- */
18
- export declare type ITokenizedPaymentCard = string;
19
- /**
20
- * 転送元としての注文インターフェース
21
- */
22
- export interface IOrderAsFromLocation {
23
- typeOf: OrderFactory.OrderType;
24
- confirmationNumber: string;
25
- orderNumber: string;
26
- }
27
- export declare type IFromLocationBeforeStart = IOrderAsFromLocation | IPaymentCard | ITokenizedPaymentCard;
15
+ export import IPaymentCard = MoneyTransferAssetTransactionFactory.IPaymentCard;
16
+ export import ITokenizedPaymentCard = MoneyTransferAssetTransactionFactory.ITokenizedPaymentCard;
17
+ export import IOrderAsFromLocation = MoneyTransferAssetTransactionFactory.IOrderAsFromLocation;
18
+ export import IFromLocationBeforeStart = MoneyTransferAssetTransactionFactory.IFromLocationBeforeStart;
28
19
  export declare type IFromLocation = IPaymentCard;
29
20
  export declare type IToLocation = IPaymentCard;
30
21
  export interface IObjectPendingTransaction {
@@ -103,7 +94,7 @@ export interface IObject {
103
94
  /**
104
95
  * 転送元
105
96
  */
106
- fromLocation: IFromLocation;
97
+ fromLocation: IFromLocationBeforeStart;
107
98
  /**
108
99
  * 転送先
109
100
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.190.0",
3
+ "version": "4.191.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",