@chevre/factory 4.236.0 → 4.239.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.
package/lib/chevre.d.ts CHANGED
@@ -159,6 +159,7 @@ import * as VoidRegisterServiceTransactionTaskFactory from './factory/task/voidR
159
159
  import * as VoidReserveTransactionTaskFactory from './factory/task/voidReserveTransaction';
160
160
  import { TaskName } from './factory/taskName';
161
161
  import { TaskStatus } from './factory/taskStatus';
162
+ import * as AssetTransactionFactory from './factory/assetTransaction';
162
163
  import * as CancelReservationAssetTransactionFactory from './factory/assetTransaction/cancelReservation';
163
164
  import * as MoneyTransferAssetTransactionFactory from './factory/assetTransaction/moneyTransfer';
164
165
  import * as PayAssetTransactionFactory from './factory/assetTransaction/pay';
@@ -420,6 +421,7 @@ export import taskName = TaskName;
420
421
  export import taskStatus = TaskStatus;
421
422
  export import thing = ThingFactory;
422
423
  export declare namespace assetTransaction {
424
+ type IProject = AssetTransactionFactory.IProject;
423
425
  type IStartParams<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.IStartParams : T extends AssetTransactionType.MoneyTransfer ? MoneyTransferAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.IStartParams : T extends AssetTransactionType.RegisterService ? RegisterServiceAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.IStartParams : never;
424
426
  type IAttributes<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.IAttributes : T extends AssetTransactionType.MoneyTransfer ? MoneyTransferAssetTransactionFactory.IAttributes : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.IAttributes : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.IAttributes : T extends AssetTransactionType.RegisterService ? RegisterServiceAssetTransactionFactory.IAttributes : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.IAttributes : never;
425
427
  type ITransaction<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.ITransaction : T extends AssetTransactionType.MoneyTransfer ? MoneyTransferAssetTransactionFactory.ITransaction : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.ITransaction : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.ITransaction : T extends AssetTransactionType.RegisterService ? RegisterServiceAssetTransactionFactory.ITransaction : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.ITransaction : never;
@@ -1,5 +1,5 @@
1
1
  import { IExtendId } from '../autoGenerated';
2
- import { IProject } from '../project';
2
+ import { OrganizationType } from '../organizationType';
3
3
  import { TransactionStatusType } from '../transactionStatusType';
4
4
  import { TransactionTasksExportationStatus } from '../transactionTasksExportationStatus';
5
5
  import * as MoneyTransferActionFactory from './action/moneyTransfer';
@@ -9,8 +9,12 @@ export import IRecipient = MoneyTransferActionFactory.IRecipient;
9
9
  export interface ISimpleAccount {
10
10
  accountNumber: string;
11
11
  }
12
+ export interface IProject {
13
+ id: string;
14
+ typeOf: OrganizationType.Project;
15
+ }
12
16
  /**
13
- * 取引開始パラメーターインターフェース
17
+ * 口座取引開始パラメータ
14
18
  */
15
19
  export interface IStartParams<T extends AccountTransactionType, TAgent extends IAgent, TRecipient extends IRecipient, TObject> {
16
20
  project: IProject;
@@ -46,11 +50,11 @@ export interface IStartParams<T extends AccountTransactionType, TAgent extends I
46
50
  expires: Date;
47
51
  }
48
52
  /**
49
- * 取引インターフェース
53
+ * 口座取引
50
54
  */
51
55
  export declare type ITransaction<TStartParams, TResult, TError, TPotentialActions> = IExtendId<IAttributes<TStartParams, TResult, TError, TPotentialActions>>;
52
56
  /**
53
- * 取引属性インターフェース
57
+ * 口座取引属性
54
58
  */
55
59
  export declare type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TStartParams & {
56
60
  /**
@@ -66,18 +66,23 @@ export interface IPendingTransaction {
66
66
  typeOf: AssetTransactionType.Reserve;
67
67
  transactionNumber: string;
68
68
  }
69
+ export declare type IEvent = Omit<ScreeningEventFactory.IEvent, 'offers' | 'project' | 'additionalProperty' | 'aggregateEntranceGate' | 'aggregateReservation' | 'aggregateOffer' | 'workPerformed' | 'checkInCount' | 'attendeeCount' | 'eventStatus' | 'hasOfferCatalog' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'alternateName' | 'alternativeHeadline' | 'description' | 'duration' | 'headline' | 'name' | 'location' | 'doorTime' | 'endDate' | 'startDate' | 'coaInfo'> & {
70
+ offers: {
71
+ offeredThrough: ScreeningEventFactory.IOfferedThrough;
72
+ };
73
+ };
69
74
  /**
70
75
  * 承認アクション対象
71
76
  */
72
77
  export declare type IObject<T extends WebAPIFactory.Identifier> = {
73
78
  typeOf: ObjectType;
74
- event?: ScreeningEventFactory.IEvent;
79
+ event?: IEvent;
75
80
  acceptedOffer: IAcceptedOffer<T>[];
76
81
  /**
77
82
  * Chevre進行中取引
78
83
  */
79
84
  pendingTransaction?: IPendingTransaction;
80
- } & Omit<IObjectWithoutDetail<T>, 'acceptedOffer'>;
85
+ } & Omit<IObjectWithoutDetail<T>, 'acceptedOffer' | 'reservationFor'>;
81
86
  export interface IPurpose {
82
87
  typeOf: TransactionType.PlaceOrder;
83
88
  id: string;
@@ -1,18 +1,37 @@
1
1
  import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { AssetTransactionType } from '../../assetTransactionType';
4
- import { IReservation as IEventReservation } from '../../reservation/event';
4
+ import { EventType } from '../../eventType';
5
+ import { ProductType } from '../../product';
6
+ import { ReservationStatusType } from '../../reservationStatusType';
7
+ import { ReservationType } from '../../reservationType';
5
8
  export declare type IAgent = ActionFactory.IParticipantAsProject;
6
9
  /**
7
- * 予約キャンセル対象
10
+ * 予約取消対象
8
11
  */
9
- export declare type IObject = IEventReservation;
12
+ export declare type IObject = IObject4future;
13
+ export interface IObject4future {
14
+ typeOf: ReservationType.EventReservation;
15
+ id: string;
16
+ issuedThrough?: {
17
+ typeOf?: ProductType.EventService;
18
+ };
19
+ reservationFor: {
20
+ typeOf: EventType.ScreeningEvent;
21
+ id: string;
22
+ };
23
+ reservationNumber: string;
24
+ /**
25
+ * previousReservationStatusを変更時に指定するために必要
26
+ */
27
+ reservationStatus: ReservationStatusType;
28
+ }
10
29
  /**
11
- * 予約キャンセル結果
30
+ * 予約取消結果
12
31
  */
13
32
  export declare type IResult = any;
14
33
  /**
15
- * 予約キャンセル目的
34
+ * 予約取消目的
16
35
  */
17
36
  export interface IPurpose {
18
37
  /**
@@ -24,17 +43,14 @@ export interface IPurpose {
24
43
  */
25
44
  id: string;
26
45
  }
27
- export interface IPotentialActions {
28
- }
29
46
  /**
30
47
  * アクション属性
31
48
  */
32
49
  export interface IAttributes extends ActionFactory.IAttributes<ActionType.CancelAction, IObject, IResult> {
33
50
  agent: IAgent;
34
- potentialActions?: IPotentialActions;
35
51
  purpose: IPurpose;
36
52
  }
37
53
  /**
38
- * 予約キャンセルアクション
54
+ * 予約取消アクション
39
55
  */
40
56
  export declare type IAction = ActionFactory.IAction<IAttributes>;
@@ -2,7 +2,6 @@ import { AssetTransactionType } from './assetTransactionType';
2
2
  import { IExtendId } from './autoGenerated';
3
3
  import { OrganizationType } from './organizationType';
4
4
  import { PersonType } from './personType';
5
- import { IProject } from './project';
6
5
  import { SortType } from './sortType';
7
6
  import { IIdentifier } from './thing';
8
7
  import { TransactionStatusType } from './transactionStatusType';
@@ -35,6 +34,10 @@ export interface IAgentAsPerson {
35
34
  * 資産取引主体は販売者or管理者
36
35
  */
37
36
  export declare type IAgent = IAgentAsSeller | IAgentAsPerson;
37
+ export interface IProject {
38
+ id: string;
39
+ typeOf: OrganizationType.Project;
40
+ }
38
41
  /**
39
42
  * 資産取引開始パラメータ
40
43
  */
@@ -66,13 +66,13 @@ export interface ICategoryCode extends IThing {
66
66
  additionalProperty?: IPropertyValue<string>[];
67
67
  paymentMethod?: {
68
68
  /**
69
- * 決済カード区分の場合、対応決済方法
69
+ * 決済カード区分の場合、対応決済方法区分
70
70
  */
71
71
  typeOf?: string;
72
72
  };
73
73
  }
74
74
  /**
75
- * 検索条件インターフェース
75
+ * 検索条件
76
76
  */
77
77
  export interface ISearchConditions {
78
78
  limit?: number;
@@ -101,7 +101,7 @@ export interface ISearchConditions {
101
101
  };
102
102
  paymentMethod?: {
103
103
  /**
104
- * 決済カード区分の場合、対応決済方法
104
+ * 決済カード区分の場合、対応決済方法区分
105
105
  */
106
106
  typeOf?: {
107
107
  $eq?: string;
@@ -2,7 +2,7 @@ import { ICategoryCode } from '../categoryCode';
2
2
  import { IPriceSpecification as BaseSpecification } from '../priceSpecification';
3
3
  import { PriceSpecificationType } from '../priceSpecificationType';
4
4
  /**
5
- * カテゴリーコードチャージ仕様インターフェース
5
+ * 区分加算料金
6
6
  */
7
7
  export declare type IPriceSpecification = BaseSpecification<PriceSpecificationType.CategoryCodeChargeSpecification> & {
8
8
  price: number;
@@ -1,29 +1,28 @@
1
1
  import { IPriceSpecification as BaseSpecification } from '../priceSpecification';
2
2
  import { PriceSpecificationType } from '../priceSpecificationType';
3
3
  import { PaymentServiceType } from '../service/paymentService';
4
- export interface IMovieTicket {
4
+ export interface IAppliesToMovieTicket {
5
5
  typeOf: PaymentServiceType.MovieTicket;
6
6
  /**
7
- * 購入管理番号(ムビチケ購入番号)
7
+ * 購入管理番号
8
8
  */
9
9
  identifier?: string;
10
10
  /**
11
- * pinコード(ムビチケ暗証番号)
11
+ * pinコード
12
12
  */
13
- accessCode?: string;
14
13
  /**
15
14
  * 決済カード区分
16
15
  */
17
- serviceType?: string;
18
- serviceOutput?: {
16
+ serviceType: string;
17
+ serviceOutput: {
19
18
  /**
20
- * 決済方法タイプ
19
+ * 決済方法区分
21
20
  */
22
- typeOf?: string;
21
+ typeOf: string;
23
22
  };
24
23
  }
25
24
  /**
26
- * ムビチケ券種区分チャージ仕様インターフェース
25
+ * 決済カード加算料金
27
26
  */
28
27
  export declare type IPriceSpecification = BaseSpecification<PriceSpecificationType.MovieTicketTypeChargeSpecification> & {
29
28
  price: number;
@@ -32,7 +31,7 @@ export declare type IPriceSpecification = BaseSpecification<PriceSpecificationTy
32
31
  */
33
32
  appliesToVideoFormat: string;
34
33
  /**
35
- * 適用ムビチケ
34
+ * 適用MovieTicket
36
35
  */
37
- appliesToMovieTicket?: IMovieTicket;
36
+ appliesToMovieTicket: IAppliesToMovieTicket;
38
37
  };
@@ -3,9 +3,15 @@ import { IPriceSpecification as BaseSpecification } from '../priceSpecification'
3
3
  import { PriceSpecificationType } from '../priceSpecificationType';
4
4
  import { IQuantitativeValue } from '../quantitativeValue';
5
5
  import { UnitCode } from '../unitCode';
6
- import { IMovieTicket } from './movieTicketTypeChargeSpecification';
6
+ import { IAppliesToMovieTicket as IMovieTicket } from './movieTicketTypeChargeSpecification';
7
+ export declare type IAppliesToMovieTicket = Omit<IMovieTicket, 'accessCode'> & {
8
+ /**
9
+ * 単価オファー設定としては存在しないが、予約あるいは注文の価格仕様としては必須
10
+ */
11
+ identifier?: string;
12
+ };
7
13
  /**
8
- * 単価仕様インターフェース
14
+ * 単価仕様
9
15
  */
10
16
  export declare type IPriceSpecification = BaseSpecification<PriceSpecificationType.UnitPriceSpecification> & {
11
17
  price: number;
@@ -14,9 +20,9 @@ export declare type IPriceSpecification = BaseSpecification<PriceSpecificationTy
14
20
  */
15
21
  referenceQuantity: IQuantitativeValue<UnitCode>;
16
22
  /**
17
- * 適用ムビチケ
23
+ * 適用MovieTicket
18
24
  */
19
- appliesToMovieTicket?: IMovieTicket;
25
+ appliesToMovieTicket?: IAppliesToMovieTicket;
20
26
  /**
21
27
  * 適用アドオン
22
28
  * アドオンを指定された場合に適用される
@@ -7,6 +7,7 @@ import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from '../p
7
7
  import { IPriceSpecification as IUnitPriceSpecification } from '../priceSpecification/unitPriceSpecification';
8
8
  import { IProject } from '../project';
9
9
  import * as ReservationFactory from '../reservation';
10
+ import { ReservationStatusType } from '../reservationStatusType';
10
11
  import { ReservationType } from '../reservationType';
11
12
  export declare type IOptimizedSuperEvent = Omit<ISuperEvent, 'subtitleLanguage' | 'dubLanguage' | 'organizer' | 'offers' | 'endDate' | 'startDate' | 'doorDate' | 'eventStatus'>;
12
13
  export interface IReservationFor {
@@ -45,6 +46,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
45
46
  id: string;
46
47
  reservationFor: IReservationFor;
47
48
  reservationNumber: string;
49
+ reservationStatus: ReservationStatusType;
48
50
  reservedTicket: ReservationFactory.ITicket;
49
51
  subReservation?: ISubReservation[];
50
52
  typeOf: ReservationType.EventReservation;
@@ -160,7 +160,12 @@ export interface ITicket {
160
160
  coaTicketInfo?: ICOATicketInfoWithDetails;
161
161
  coaReserveAmount?: number;
162
162
  }
163
- export declare type IBroker = IUnderName;
163
+ export interface IBroker {
164
+ typeOf: PersonType.Person;
165
+ id: string;
166
+ identifier?: IPropertyValue<string>[];
167
+ name?: string;
168
+ }
164
169
  export declare type IProgramMembershipUsed = IPermit;
165
170
  /**
166
171
  * 予約
@@ -6,7 +6,6 @@ import { IMultilingualString } from './multilingualString';
6
6
  import { OrganizationType } from './organizationType';
7
7
  import { IIdentifier, IPersonAttributes } from './person';
8
8
  import { PersonType } from './personType';
9
- import { IProject } from './project';
10
9
  import { SortType } from './sortType';
11
10
  import { TransactionStatusType } from './transactionStatusType';
12
11
  import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
@@ -52,6 +51,10 @@ export interface IPassportBeforeStart {
52
51
  */
53
52
  secret: string;
54
53
  }
54
+ export interface IProject {
55
+ id: string;
56
+ typeOf: OrganizationType.Project;
57
+ }
55
58
  /**
56
59
  * 取引開始パラメータ
57
60
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.236.0",
3
+ "version": "4.239.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",