@chevre/factory 4.237.0 → 4.240.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>;
@@ -20,6 +20,10 @@ export declare type IObject = OrderFactory.ISimpleOrder & {
20
20
  };
21
21
  export declare type IResult = any;
22
22
  export interface IPotentialActions {
23
+ /**
24
+ * 設定追加(2022-06-08~)
25
+ */
26
+ useConfirmRefund: boolean;
23
27
  /**
24
28
  * 予約取引返却アクション
25
29
  */
@@ -16,6 +16,7 @@ export declare enum ActionType {
16
16
  PrintAction = "PrintAction",
17
17
  RefundAction = "RefundAction",
18
18
  RegisterAction = "RegisterAction",
19
+ ReplaceAction = "ReplaceAction",
19
20
  ReserveAction = "ReserveAction",
20
21
  ReturnAction = "ReturnAction",
21
22
  SendAction = "SendAction",
@@ -20,6 +20,7 @@ var ActionType;
20
20
  ActionType["PrintAction"] = "PrintAction";
21
21
  ActionType["RefundAction"] = "RefundAction";
22
22
  ActionType["RegisterAction"] = "RegisterAction";
23
+ ActionType["ReplaceAction"] = "ReplaceAction";
23
24
  ActionType["ReserveAction"] = "ReserveAction";
24
25
  ActionType["ReturnAction"] = "ReturnAction";
25
26
  ActionType["SendAction"] = "SendAction";
@@ -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
  */
@@ -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
  * 予約
@@ -1,7 +1,7 @@
1
1
  import { IAttributes as IReturnOrderActionAttributes } from '../action/transfer/return/order';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import { IMerchantReturnPolicy } from '../merchantReturnPolicy';
4
- import { IInformParams, IProject } from '../project';
4
+ import { IProject } from '../project';
5
5
  import * as TransactionFactory from '../transaction';
6
6
  import { TransactionType } from '../transactionType';
7
7
  export declare type IAgent = TransactionFactory.IAgent;
@@ -32,7 +32,7 @@ export interface IReturnableOrder {
32
32
  * 注文返品開始パラメータ
33
33
  */
34
34
  export interface IStartParamsWithoutDetail {
35
- project: IProject;
35
+ project: Omit<IProject, 'settings' | 'name' | 'subscription'>;
36
36
  expires: Date;
37
37
  agent: IAgent;
38
38
  object: {
@@ -52,15 +52,11 @@ export interface IStartParams extends TransactionFactory.IStartParams<Transactio
52
52
  */
53
53
  seller: ISeller;
54
54
  }
55
- /**
56
- * 注文通知パラメータ
57
- */
58
- export declare type IInformOrderParams = IInformParams;
59
55
  declare type ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
60
56
  /**
61
- * クレジットカード返金パラメータ
57
+ * 返金アクションカスタムパラメータ
62
58
  */
63
- export interface IRefundCreditCardParams {
59
+ export interface IRefundParams {
64
60
  object: {
65
61
  object: {
66
62
  paymentMethod: {
@@ -91,12 +87,12 @@ export interface IReturnOrderActionParams {
91
87
  potentialActions?: {
92
88
  /**
93
89
  * クレジットカード返金アクションについてカスタマイズする場合に指定
90
+ * 属性名称がrefundCreditCardであるが、全ての決済方法に適用可能
94
91
  */
95
- refundCreditCard?: IRefundCreditCardParams[];
92
+ refundCreditCard?: IRefundParams[];
96
93
  /**
97
94
  * ムビチケ着券取消を実行するかどうか
98
95
  */
99
- refundMovieTicket?: boolean;
100
96
  /**
101
97
  * Eメール送信アクション
102
98
  */
@@ -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.237.0",
3
+ "version": "4.240.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",