@chevre/factory 4.207.0 → 4.210.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,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 = {}));
@@ -177,11 +177,6 @@ export interface IConfirmingReservation {
177
177
  underName?: ReservationFactory.IUnderName;
178
178
  additionalProperty?: IPropertyValue<string>[];
179
179
  }
180
- export interface IPotentialActionsParams {
181
- reserve?: {
182
- potentialActions?: {};
183
- };
184
- }
185
180
  /**
186
181
  * 確定パラメーターインターフェース
187
182
  */
@@ -190,14 +185,10 @@ export interface IConfirmParams {
190
185
  transactionNumber?: string;
191
186
  object?: {
192
187
  /**
193
- * 最終的な予約の属性を指定できます
188
+ * 最終的な予約の属性を指定
194
189
  */
195
190
  reservations: IConfirmingReservation[];
196
191
  };
197
- /**
198
- * 予約確定後アクション
199
- */
200
- potentialActions?: IPotentialActionsParams;
201
192
  }
202
193
  export interface IResult {
203
194
  }
@@ -213,19 +204,14 @@ export interface IObjectWithoutDetail {
213
204
  };
214
205
  }
215
206
  export declare type IReservationFor = IEventReservationReservationFor;
216
- export interface IEventReservationWithAnyReservationFor extends IEventReservation {
217
- reservationFor: any;
218
- }
219
- export interface ISubReservation extends IEventReservationWithAnyReservationFor {
220
- reservationFor: undefined;
221
- }
207
+ export declare type IObjectSubReservation = Omit<IEventReservation, 'reservationFor'>;
222
208
  /**
223
209
  * 取引対象物インターフェース
224
210
  */
225
211
  export interface IObject extends IReservationPackage {
226
212
  acceptedOffer?: IAcceptedOffer4object[];
227
213
  reservationFor?: IReservationFor;
228
- subReservation?: ISubReservation[];
214
+ subReservation?: IObjectSubReservation[];
229
215
  }
230
216
  export interface IPotentialActions {
231
217
  reserve: ReserveActionFactory.IAttributes[];
@@ -42,7 +42,8 @@ export declare type IGoodWithDetail = IReservationWithDetail | IPermit;
42
42
  /**
43
43
  * 所有者インターフェース
44
44
  */
45
- export declare type IOwner = ISeller | ICustomer;
45
+ export declare type IOwner = Omit<ICustomer, 'name'>;
46
+ export declare type IAcquiredFrom = ISeller;
46
47
  export declare type OwnershipInfoType = 'OwnershipInfo';
47
48
  /**
48
49
  * 所有権インターフェース
@@ -68,7 +69,7 @@ export interface IOwnershipInfo<T extends IGood | IGoodWithDetail> {
68
69
  /**
69
70
  * The organization or person from which the product was acquired.
70
71
  */
71
- acquiredFrom?: IOwner;
72
+ acquiredFrom?: IAcquiredFrom;
72
73
  /**
73
74
  * The date and time of obtaining the product.
74
75
  */
@@ -181,8 +181,8 @@ export interface IReservation<T extends IPriceSpecification> extends IThing {
181
181
  additionalTicketText?: string;
182
182
  /**
183
183
  * Who made the reservation.
184
+ * SupersededBy broker(2022-05-13~)
184
185
  */
185
- bookingAgent?: any;
186
186
  /**
187
187
  * Date the reservation was made.
188
188
  */
@@ -1,4 +1,3 @@
1
- import { IOffer } from './offer';
2
1
  import { IOrganization } from './organization';
3
2
  import { OrganizationType } from './organizationType';
4
3
  import { IProject } from './project';
@@ -8,24 +7,23 @@ import { SortType } from './sortType';
8
7
  * 利用可能決済インターフェース
9
8
  */
10
9
  export interface IPaymentAccepted {
10
+ /**
11
+ * 決済方法区分
12
+ */
11
13
  paymentMethodType: string;
12
14
  }
13
- export declare type IMakesOffer = IOffer;
14
15
  /**
15
16
  * サービス提供エリアインターフェース
16
17
  */
17
- export declare type IAreaServed = any;
18
18
  export interface ISeller extends IOrganization {
19
19
  project: IProject;
20
20
  /**
21
21
  * The geographic area where a service or offered item is provided.
22
22
  */
23
- areaServed?: IAreaServed[];
24
23
  branchCode?: string;
25
24
  /**
26
25
  * A pointer to products or services offered by the organization or person.
27
26
  */
28
- makesOffer?: IMakesOffer[];
29
27
  paymentAccepted?: IPaymentAccepted[];
30
28
  typeOf: OrganizationType;
31
29
  }
@@ -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>;
@@ -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 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>;
@@ -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>;
@@ -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.207.0",
3
+ "version": "4.210.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",