@chevre/factory 4.208.0 → 4.211.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.
@@ -1,16 +1,16 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
+ import * as MoneyTransferTransactionFactory from '../../../assetTransaction/moneyTransfer';
3
4
  import { IOffer } from '../../../offer';
4
5
  import * as OrderFactory from '../../../order';
5
6
  import { PriceCurrency } from '../../../priceCurrency';
6
7
  import { ISeller } from '../../../seller';
7
8
  import { TransactionType } from '../../../transactionType';
8
9
  import * as AuthorizeActionFactory from '../../authorize';
9
- import { IPendingTransaction as ConfirmMoneyTransferPendingTransaction } from '../../interact/confirm/moneyTransfer';
10
10
  export declare type IAgent = ActionFactory.IParticipant;
11
11
  export declare type IRecipient = ActionFactory.IParticipant;
12
12
  export declare type IRequestBody = any;
13
- export declare type IResponseBody = ConfirmMoneyTransferPendingTransaction;
13
+ export declare type IResponseBody = MoneyTransferTransactionFactory.ITransaction;
14
14
  export import IPendingTransaction = OrderFactory.IMoneyTransferPendingTransaction;
15
15
  export interface IResult {
16
16
  price: number;
@@ -1,83 +1,39 @@
1
- import * as AccountFactory from '../../../account';
2
1
  import * as ActionFactory from '../../../action';
3
2
  import { ActionType } from '../../../actionType';
4
- import * as MoneyTransferTransactionFactory from '../../../assetTransaction/moneyTransfer';
5
3
  import { AssetTransactionType } from '../../../assetTransactionType';
6
- import { IMonetaryAmount } from '../../../monetaryAmount';
7
4
  import { ISimpleOrder } from '../../../order';
8
- import { IPropertyValue } from '../../../propertyValue';
9
5
  import { TransactionType } from '../../../transactionType';
10
6
  export declare type IAgent = ActionFactory.IParticipant;
11
7
  export declare type IRecipient = ActionFactory.IParticipant;
12
- export declare type IPendingTransaction = MoneyTransferTransactionFactory.ITransaction;
13
8
  /**
14
9
  * 匿名ロケーションインターフェース
15
10
  */
16
- export import IAnonymousLocation = AccountFactory.action.moneyTransfer.IAnonymousLocation;
17
- export declare type AvailablePaymentMethodType = string;
18
11
  /**
19
12
  * 決済方法インターフェース
20
13
  */
21
- export interface IPaymentMethodLocation {
22
- /**
23
- * The identifier for the account the payment will be applied to.
24
- */
25
- accountId?: string;
26
- /**
27
- * 決済方法タイプ
28
- */
29
- typeOf: AvailablePaymentMethodType;
30
- /**
31
- * 決済方法名
32
- */
33
- name: string;
34
- /**
35
- * An identifier for the method of payment used (e.g.the last 4 digits of the credit card).
36
- */
37
- paymentMethodId: string;
38
- /**
39
- * The total amount due.
40
- */
41
- totalPaymentDue?: IMonetaryAmount;
42
- /**
43
- * 追加特性
44
- */
45
- additionalProperty: IPropertyValue<string>[];
46
- }
47
- export import IPaymentCard = MoneyTransferTransactionFactory.IPaymentCard;
48
- export import IFromLocationBeforeStart = MoneyTransferTransactionFactory.IFromLocationBeforeStart;
49
14
  /**
50
15
  * 転送元あるいは転送先の場所インターフェース
51
16
  */
52
- export declare type ILocation = IAnonymousLocation | IPaymentMethodLocation | IPaymentCard;
53
17
  export interface IObject {
54
- pendingTransaction: IPendingTransaction;
18
+ pendingTransaction: {
19
+ /**
20
+ * 資産取引ID
21
+ */
22
+ id: string;
23
+ };
24
+ transactionNumber: string;
55
25
  typeOf: AssetTransactionType.MoneyTransfer;
56
26
  }
57
- export interface IPotentialActions {
58
- }
59
- export interface IResult {
60
- }
27
+ export declare type IResult = any;
61
28
  export interface ITransactionPurpose {
62
29
  typeOf: TransactionType;
63
30
  id: string;
64
31
  }
65
32
  export declare type IPurpose = ITransactionPurpose | ISimpleOrder;
66
33
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.ConfirmAction, IObject, IResult> {
67
- typeOf: ActionType.ConfirmAction;
68
- potentialActions?: IPotentialActions;
69
34
  purpose: IPurpose;
70
- /**
71
- * 金額
72
- */
73
- amount: IMonetaryAmount;
74
- /**
75
- * 転送元
76
- */
77
- fromLocation: ILocation | IFromLocationBeforeStart;
78
- /**
79
- * 転送先
80
- */
81
- toLocation: ILocation;
82
35
  }
36
+ /**
37
+ * 通貨転送確定アクション
38
+ */
83
39
  export declare type IAction = ActionFactory.IAction<IAttributes>;
@@ -1,37 +1,29 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
- import { IPaymentMethod, ISimpleOrder } from '../../../order';
4
- import * as MovieTicketFactory from '../../../paymentMethod/paymentCard/movieTicket';
3
+ import { AssetTransactionType } from '../../../assetTransactionType';
4
+ import { ISimpleOrder } from '../../../order';
5
5
  import { IInstrument } from '../../authorize/paymentMethod/any';
6
- export import IMovieTicket = MovieTicketFactory.IMovieTicket;
7
6
  export declare type IAgent = ActionFactory.IParticipant;
8
7
  export declare type IRecipient = ActionFactory.IParticipant;
9
8
  export declare type IPurpose = ISimpleOrder;
10
- export declare enum ObjectType {
11
- PaymentMethod = "PaymentMethod"
12
- }
13
- export interface IPaymentService {
14
- typeOf: ObjectType;
9
+ export interface IPayAssetTransaction {
10
+ typeOf: AssetTransactionType.Pay;
15
11
  /**
16
12
  * 決済方法
13
+ * 必要最低限に(2022-05-16~)
17
14
  */
18
- paymentMethod: IPaymentMethod;
19
- /**
20
- * ムビチケリスト
21
- */
22
- movieTickets?: IMovieTicket[];
23
- }
24
- export declare type IObject = IPaymentService[];
25
- export interface IPotentialActions {
26
- }
27
- export interface IResult {
15
+ paymentMethod: {
16
+ paymentMethodId: string;
17
+ };
18
+ transactionNumber?: string;
28
19
  }
20
+ export declare type IObject = IPayAssetTransaction[];
21
+ export declare type IResult = any;
29
22
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.ConfirmAction, IObject, IResult> {
30
- instrument?: IInstrument;
31
- potentialActions?: IPotentialActions;
23
+ instrument: IInstrument;
32
24
  purpose: IPurpose;
33
25
  }
34
26
  /**
35
- * 決済確定アクションインターフェース
27
+ * 決済確定アクション
36
28
  */
37
29
  export declare type IAction = ActionFactory.IAction<IAttributes>;
@@ -1,7 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObjectType = void 0;
4
- var ObjectType;
5
- (function (ObjectType) {
6
- ObjectType["PaymentMethod"] = "PaymentMethod";
7
- })(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
@@ -7,9 +7,8 @@ import * as OrderProgramMembershipFactory from '../../../task/orderProgramMember
7
7
  export declare type IObject = RegisterServiceFactory.IConfirmParams & {
8
8
  typeOf: AssetTransactionType.RegisterService;
9
9
  };
10
- export interface IResult {
11
- }
12
10
  export declare type IPurpose = ISimpleOrder;
11
+ export declare type IResult = any;
13
12
  export interface IPotentialActions {
14
13
  orderProgramMembership?: OrderProgramMembershipFactory.IAttributes[];
15
14
  }
@@ -18,6 +17,6 @@ export interface IAttributes extends ActionFactory.IAttributes<ActionType.Confir
18
17
  purpose: IPurpose;
19
18
  }
20
19
  /**
21
- * サービス登録確定アクションインターフェース
20
+ * サービス登録確定アクション
22
21
  */
23
22
  export declare type IAction = ActionFactory.IAction<IAttributes>;
@@ -6,24 +6,22 @@ import { ISimpleOrder } from '../../../order';
6
6
  import * as WebAPIFactory from '../../../service/webAPI';
7
7
  import * as ConfirmActionFactory from '../confirm';
8
8
  export declare type IAgent = ActionFactory.IParticipant;
9
- export declare type IObject4COA = COA.factory.reserve.IUpdReserveArgs;
9
+ export declare type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
10
+ typeOf: 'COAReserveTransaction';
11
+ };
10
12
  export declare type IObject4Chevre = ReserveTransactionFactory.IConfirmParams & {
11
13
  typeOf: AssetTransactionType.Reserve;
12
14
  };
13
15
  export declare type IObject<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObject4COA : IObject4Chevre;
14
16
  export declare type IPurpose = ISimpleOrder;
15
- export interface IResult {
16
- }
17
- export interface IPotentialActions {
18
- }
17
+ export declare type IResult = any;
19
18
  export declare type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T>;
20
19
  export interface IAttributes<T extends WebAPIFactory.Identifier> extends ConfirmActionFactory.IAttributes<IObject<T>, IResult> {
21
20
  agent: IAgent;
22
- instrument?: IInstrument<T>;
23
- potentialActions?: IPotentialActions;
21
+ instrument: IInstrument<T>;
24
22
  purpose: IPurpose;
25
23
  }
26
24
  /**
27
- * 予約確定アクションインターフェース
25
+ * 予約確定アクション
28
26
  */
29
27
  export declare type IAction<T extends WebAPIFactory.Identifier> = ConfirmActionFactory.IAction<IAttributes<T>>;
@@ -5,7 +5,6 @@ import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { OfferType } from '../offerType';
7
7
  import { IProduct, IServiceOutput } from '../product';
8
- import { IInformParams } from '../project';
9
8
  export declare type IStartParamsWithoutDetail = TransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
10
9
  /**
11
10
  * 取引開始パラメーターインターフェース
@@ -18,22 +17,17 @@ export interface IAgent {
18
17
  name: string;
19
18
  url?: string;
20
19
  }
21
- export interface IPotentialActionsParams {
22
- registerService?: {
23
- potentialActions?: {
24
- informServiceOutput?: IInformParams[];
25
- };
26
- };
27
- }
28
20
  /**
29
21
  * 確定パラメーターインターフェース
30
22
  */
31
23
  export interface IConfirmParams {
32
24
  id?: string;
33
25
  transactionNumber?: string;
26
+ /**
27
+ * 取引確定日時を指定する
28
+ * serviceOutputのvalidFromに適用される
29
+ */
34
30
  endDate?: Date;
35
- object?: any;
36
- potentialActions?: IPotentialActionsParams;
37
31
  }
38
32
  export interface IResult {
39
33
  }
@@ -1,7 +1,7 @@
1
1
  import { IParticipant } from './action';
2
2
  import { IPaymentMethodIssuedThrough } from './action/authorize/paymentMethod/any';
3
- import { IPaymentCard } from './action/interact/confirm/moneyTransfer';
4
3
  import { ActionType } from './actionType';
4
+ import { IPaymentCard } from './assetTransaction/moneyTransfer';
5
5
  import { AssetTransactionType } from './assetTransactionType';
6
6
  import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
7
7
  import { ICustomer as ICustomerOrganization } from './customer';
@@ -89,6 +89,9 @@ export declare type IReservation = EventReservationFactory.IReservation;
89
89
  export declare type IPermit = PermitFactory.IPermit;
90
90
  export interface IMoneyTransferPendingTransaction {
91
91
  typeOf: AssetTransactionType.MoneyTransfer;
92
+ /**
93
+ * 資産取引番号
94
+ */
92
95
  transactionNumber: string;
93
96
  }
94
97
  export interface IMoneyTransfer {
@@ -102,8 +105,11 @@ export interface IMoneyTransfer {
102
105
  * 転送先
103
106
  */
104
107
  toLocation: IPaymentCard;
105
- object?: {
106
- pendingTransaction?: IMoneyTransferPendingTransaction;
108
+ object: {
109
+ /**
110
+ * 入金処理の資産取引
111
+ */
112
+ pendingTransaction: IMoneyTransferPendingTransaction;
107
113
  };
108
114
  name?: string;
109
115
  }
@@ -22,6 +22,6 @@ export interface IAttributes extends TaskFactory.IAttributes {
22
22
  data: IData;
23
23
  }
24
24
  /**
25
- * 予約取消タスクインターフェース
25
+ * 予約取消確定タスク
26
26
  */
27
27
  export declare type ITask = IExtendId<IAttributes>;
@@ -1,13 +1,13 @@
1
- import { IAttributes as IMoneyTransferActionAttributes } from '../action/interact/confirm/moneyTransfer';
1
+ import { IAttributes as IConfirmMoneyTransferActionAttributes } from '../action/interact/confirm/moneyTransfer';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import * as TaskFactory from '../task';
4
4
  import { TaskName } from '../taskName';
5
- export declare type IData = IMoneyTransferActionAttributes;
5
+ export declare type IData = IConfirmMoneyTransferActionAttributes;
6
6
  export interface IAttributes extends TaskFactory.IAttributes {
7
7
  name: TaskName.ConfirmMoneyTransfer;
8
8
  data: IData;
9
9
  }
10
10
  /**
11
- * 通貨転送タスクファクトリー
11
+ * 通貨転送確定タスク
12
12
  */
13
13
  export declare type ITask = IExtendId<IAttributes>;
@@ -1,13 +1,13 @@
1
- import { IAttributes as IPayActionAttributes } from '../action/interact/confirm/pay';
1
+ import { IAttributes as IConfirmPayActionAttributes } from '../action/interact/confirm/pay';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import * as TaskFactory from '../task';
4
4
  import { TaskName } from '../taskName';
5
- export declare type IData = IPayActionAttributes;
5
+ export declare type IData = IConfirmPayActionAttributes;
6
6
  export interface IAttributes extends TaskFactory.IAttributes {
7
7
  name: TaskName.ConfirmPay;
8
8
  data: IData;
9
9
  }
10
10
  /**
11
- * 決済タスクインターフェース
11
+ * 決済確定タスク
12
12
  */
13
13
  export declare type ITask = IExtendId<IAttributes>;
@@ -8,6 +8,6 @@ export interface IAttributes extends TaskFactory.IAttributes {
8
8
  data: IData;
9
9
  }
10
10
  /**
11
- * 返金タスクインターフェース
11
+ * 返金確定タスク
12
12
  */
13
13
  export declare type ITask = IExtendId<IAttributes>;
@@ -1,13 +1,13 @@
1
- import { IAttributes as IRegisterServiceActionAttributes } from '../action/interact/confirm/registerService';
1
+ import { IAttributes as IConfirmRegisterServiceActionAttributes } from '../action/interact/confirm/registerService';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import * as TaskFactory from '../task';
4
4
  import { TaskName } from '../taskName';
5
- export declare type IData = IRegisterServiceActionAttributes;
5
+ export declare type IData = IConfirmRegisterServiceActionAttributes;
6
6
  export interface IAttributes extends TaskFactory.IAttributes {
7
7
  name: TaskName.ConfirmRegisterService;
8
8
  data: IData;
9
9
  }
10
10
  /**
11
- * サービス登録タスクインターフェース
11
+ * サービス登録確定タスク
12
12
  */
13
13
  export declare type ITask = IExtendId<IAttributes>;
@@ -9,6 +9,6 @@ export interface IAttributes extends TaskFactory.IAttributes {
9
9
  data: IData;
10
10
  }
11
11
  /**
12
- * 予約確定タスクインターフェース
12
+ * 予約確定タスク
13
13
  */
14
14
  export declare type ITask = IExtendId<IAttributes>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.208.0",
3
+ "version": "4.211.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",