@chevre/factory 4.375.0-alpha.2 → 4.375.0-alpha.20

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,6 +1,7 @@
1
1
  import * as ActionFactory from '../../action';
2
2
  import { IAcceptedOfferBeforeAuthorize4COA, IAction as IAuthorizeOfferAction, IObjectWithoutDetail, IPurpose } from '../../action/authorize/offer/eventService';
3
3
  import { ActionType } from '../../actionType';
4
+ import { AssetTransactionType } from '../../assetTransactionType';
4
5
  import { OfferType } from '../../offerType';
5
6
  import { IRecipe, IUpdTmpReserveSeatArgs, IUpdTmpReserveSeatResult } from '../../recipe/acceptCOAOffer';
6
7
  import { Identifier } from '../../service/webAPI';
@@ -62,7 +63,7 @@ export interface IPotentialActions {
62
63
  typeOf: IAuthorizeOfferAction<Identifier.COA>['typeOf'];
63
64
  }
64
65
  export interface IInstrument {
65
- typeOf: 'COAReserveTransaction';
66
+ typeOf: AssetTransactionType.COAReserveTransaction;
66
67
  }
67
68
  export interface IAttributes extends Pick<AcceptActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
68
69
  agent: IAgent;
@@ -3,10 +3,12 @@ import * as ActionFactory from '../../../action';
3
3
  import { ActionType } from '../../../actionType';
4
4
  import * as ReserveTransactionFactory from '../../../assetTransaction/reserve';
5
5
  import { AssetTransactionType } from '../../../assetTransactionType';
6
- import * as ScreeningEventFactory from '../../../event/screeningEvent';
6
+ import { IEvent } from '../../../event/screeningEvent';
7
7
  import * as OfferFactory from '../../../offer';
8
+ import { OfferType } from '../../../offerType';
8
9
  import * as OrderFactory from '../../../order';
9
10
  import { PriceCurrency } from '../../../priceCurrency';
11
+ import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
10
12
  import { ICategoryCodeChargePriceComponent, IMovieTicketTypeChargePriceComponent, ITicketOffer, ITicketPriceSpecification, ITicketUnitPriceComponent } from '../../../product';
11
13
  import * as WebAPIFactory from '../../../service/webAPI';
12
14
  import { TransactionType } from '../../../transactionType';
@@ -17,41 +19,44 @@ export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFact
17
19
  export declare enum ObjectType {
18
20
  SeatReservation = "SeatReservation"
19
21
  }
20
- /**
21
- * IInstrumentAsAssetTransactionへ移行前のinstrument(~2024-03-08)
22
- * @deprecated use IInstrumentAsAssetTransaction
23
- */
24
- export type IInstrument<T extends WebAPIFactory.Identifier> = WebAPIFactory.IService<T> & {
25
- /**
26
- * Chevre->予約取引番号
27
- * COA->仮予約番号
28
- */
29
- transactionNumber?: string;
30
- };
31
22
  export type IInstrumentAsAssetTransaction<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? {
32
- typeOf: 'COAReserveTransaction';
23
+ typeOf: AssetTransactionType.COAReserveTransaction;
33
24
  identifier: T;
34
25
  /**
35
- * Chevre->予約取引番号
36
- * COA->仮予約番号
26
+ * 仮予約番号
27
+ * ある時期(2023-09-12頃)以前では空文字のケースがあるので中止
37
28
  */
38
- transactionNumber?: string;
29
+ transactionNumber: string;
39
30
  } : T extends WebAPIFactory.Identifier.Chevre ? {
40
31
  typeOf: AssetTransactionType.Reserve;
41
32
  identifier: T;
42
33
  /**
43
- * Chevre->予約取引番号
44
- * COA->仮予約番号
34
+ * 予約取引番号
45
35
  */
46
- transactionNumber?: string;
36
+ transactionNumber: string;
47
37
  } : never;
48
38
  export type IRequestBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatArgs : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
49
39
  export type IResponseBody<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? COA.factory.reserve.IUpdTmpReserveSeatResult : T extends WebAPIFactory.Identifier.Chevre ? {} : never;
50
40
  export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IReservation>;
51
- /**
52
- * 承認アクション結果
53
- */
54
- export interface IResult {
41
+ export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
42
+ typeOf: OfferType.Offer;
43
+ id: string;
44
+ includesObject: {
45
+ amountOfThisGood: number;
46
+ };
47
+ /**
48
+ * 取引確定時の検証に必要な情報のみ保管する
49
+ */
50
+ priceSpecification?: Pick<IUnitPriceSpecification, 'eligibleQuantity' | 'eligibleTransactionVolume'>;
51
+ }
52
+ export interface IResultAsAggregateOffer {
53
+ typeOf?: OfferType.AggregateOffer;
54
+ /**
55
+ * オファーIDごとの集計
56
+ */
57
+ offers?: IAcceptedOfferInResult[];
58
+ }
59
+ export interface IResult extends IResultAsAggregateOffer {
55
60
  /**
56
61
  * 決済金額
57
62
  * オファー未指定の場合、金額非確定なので、この属性は存在しない
@@ -63,13 +68,6 @@ export interface IResult {
63
68
  * currencyを口座タイプとして扱う
64
69
  */
65
70
  amount: OrderFactory.ITotalPaymentDue[];
66
- /**
67
- * 外部サービスへのリクエスト
68
- */
69
- /**
70
- * 外部サービスからのレスポンス
71
- */
72
- acceptedOffers?: IResultAcceptedOffer[];
73
71
  }
74
72
  export type ExcludedFieldsFromTicketPriceComponent = 'accounting' | 'id' | 'name' | 'priceCurrency' | 'valueAddedTaxIncluded';
75
73
  export type ITicketPriceComponent = Omit<ICategoryCodeChargePriceComponent, ExcludedFieldsFromTicketPriceComponent> | Omit<IMovieTicketTypeChargePriceComponent, ExcludedFieldsFromTicketPriceComponent> | Omit<ITicketUnitPriceComponent, ExcludedFieldsFromTicketPriceComponent>;
@@ -86,8 +84,7 @@ export type IAcceptedOfferPriceSpecification = Pick<ITicketPriceSpecification, '
86
84
  /**
87
85
  * 受け入れられたチケットオファー
88
86
  */
89
- export type IAcceptedOffer4chevre = Pick<ITicketOffer, 'acceptedPaymentMethod' | // add(2023-11-15~)
90
- 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty'> & {
87
+ export type IAcceptedOffer4chevre = Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty'> & {
91
88
  addOn?: ReserveTransactionFactory.IAcceptedAddOn[];
92
89
  itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
93
90
  priceSpecification: IAcceptedOfferPriceSpecification;
@@ -137,55 +134,42 @@ export interface IObjectWithoutDetail4COA {
137
134
  id: string;
138
135
  };
139
136
  }
140
- export type IAcceptedOffer<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOffer4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOffer4chevre : never;
137
+ export type IAcceptedOffer<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOffer4COA : T extends WebAPIFactory.Identifier.Chevre ? Pick<IAcceptedOffer4chevre, 'acceptedPaymentMethod' | 'id' | 'priceSpecification' | 'typeOf'> : never;
141
138
  export type IAcceptedOfferWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IAcceptedOfferWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IAcceptedOfferWithoutDetail4chevre : never;
142
139
  export type IObjectWithoutDetail<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? IObjectWithoutDetail4COA : T extends WebAPIFactory.Identifier.Chevre ? IObjectWithoutDetail4chevre : never;
143
140
  export type ICOAPendingTransaction = Pick<COA.factory.reserve.IDelTmpReserveArgs, 'theaterCode' | 'dateJouei' | 'titleCode' | 'titleBranchNum' | 'timeBegin' | 'tmpReserveNum'> & {
144
141
  transactionNumber: string;
145
- typeOf: 'COAReserveTransaction';
146
- };
147
- export interface IChevrePendingTransaction {
148
- transactionNumber: string;
149
- typeOf: AssetTransactionType.Reserve;
150
- }
151
- export type IPendingTransaction<T extends WebAPIFactory.Identifier> = T extends WebAPIFactory.Identifier.COA ? ICOAPendingTransaction : T extends WebAPIFactory.Identifier.Chevre ? IChevrePendingTransaction : never;
152
- export type IEvent = Pick<ScreeningEventFactory.IEvent, 'id' | 'typeOf'> & {
153
- offers: {
154
- offeredThrough: ScreeningEventFactory.IOfferedThrough;
155
- };
142
+ typeOf: AssetTransactionType.COAReserveTransaction;
156
143
  };
144
+ export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'> & {};
157
145
  /**
158
146
  * 興行オファー承認アクション対象
159
147
  */
160
- export type IObject<T extends WebAPIFactory.Identifier> = {
148
+ export interface IObject {
161
149
  typeOf: ObjectType;
162
- event?: IEvent;
163
- acceptedOffer: IAcceptedOffer<T>[];
150
+ event?: IEventInObject;
164
151
  /**
165
152
  * recipe有(仮予約時)のCOA興行オファー採用アクションID(2024-06-11~)
166
153
  */
167
154
  id?: string;
168
155
  /**
169
- * 進行中取引
156
+ * COA進行中取引(仮予約削除時に利用)
157
+ * discontinue on Chevre(2024-06-22~)
170
158
  */
171
- pendingTransaction: IPendingTransaction<T>;
172
- /**
173
- * result.acceptedOffers廃止に際して使用有無を保管
174
- */
175
- useResultAcceptedOffers?: boolean;
176
- } & Omit<IObjectWithoutDetail<T>, 'acceptedOffer' | 'reservationFor'>;
159
+ pendingTransaction?: ICOAPendingTransaction;
160
+ }
177
161
  export interface IPurpose {
178
162
  typeOf: TransactionType.PlaceOrder;
179
163
  id: string;
180
164
  }
181
165
  export type IError = any;
182
- export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject<T>, IResult> {
166
+ export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
183
167
  typeOf: ActionType.AuthorizeAction;
184
168
  agent: IAgent;
185
169
  recipient: IRecipient;
186
- object: IObject<T>;
170
+ object: IObject;
187
171
  purpose: IPurpose;
188
- instrument: IInstrument<T> | IInstrumentAsAssetTransaction<T>;
172
+ instrument: IInstrumentAsAssetTransaction<T>;
189
173
  }
190
174
  /**
191
175
  * 興行オファー承認アクション
@@ -18,7 +18,6 @@ export interface IResult {
18
18
  priceCurrency: PriceCurrency;
19
19
  requestBody?: IRequestBody;
20
20
  responseBody: IResponseBody;
21
- acceptedOffers: IResultAcceptedOffer[];
22
21
  }
23
22
  export import IItemOffered = OrderFactory.IMoneyTransfer;
24
23
  export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
@@ -43,7 +43,6 @@ export type IResultAcceptedOffer = OrderFactory.IAcceptedOffer<OrderFactory.IPer
43
43
  export interface IResult {
44
44
  price: number;
45
45
  priceCurrency: PriceCurrency;
46
- acceptedOffers: IResultAcceptedOffer;
47
46
  requestBody: RegisterServiceTransactionFactory.IStartParamsWithoutDetail;
48
47
  responseBody: RegisterServiceTransactionFactory.ITransaction;
49
48
  }
@@ -16,10 +16,7 @@ export declare enum ResultType {
16
16
  }
17
17
  export { ICreditCard, IFromLocation, ITokenizedPaymentCard };
18
18
  export import IPurchaseNumberAuthResult = CheckMovieTicketActionFactory.IPurchaseNumberAuthResult;
19
- /**
20
- * 承認対象
21
- */
22
- export interface IObject {
19
+ export interface IObjectIncludingPaymentMethodDetails {
23
20
  /**
24
21
  * The identifier for the account the payment will be applied to.
25
22
  * MovieTicket->購入管理番号
@@ -79,13 +76,14 @@ export interface IObject {
79
76
  */
80
77
  movieTickets?: IMovieTicket[];
81
78
  }
82
- export type IObjectWithoutDetail = Pick<IObject, 'additionalProperty' | 'amount' | 'issuedThrough' | 'paymentMethod' | 'description' | 'name' | 'creditCard' | 'method' | 'movieTickets' | 'fromLocation'> & {
79
+ export type IObjectWithoutDetail = Pick<IObjectIncludingPaymentMethodDetails, 'additionalProperty' | 'amount' | 'issuedThrough' | 'paymentMethod' | 'description' | 'name' | 'creditCard' | 'method' | 'movieTickets' | 'fromLocation'> & {
83
80
  /**
84
81
  * 外部決済URL発行の場合に指定
85
82
  * CreditCardのみ対応
86
83
  */
87
84
  paymentMethodId?: string;
88
85
  };
86
+ export type IObject = Pick<IObjectIncludingPaymentMethodDetails, 'typeOf' | 'paymentMethodId' | 'accountId'>;
89
87
  export interface IResultPaymentMethod {
90
88
  /**
91
89
  * 決済方法区分
@@ -135,7 +133,7 @@ export interface IResultAsInvoice {
135
133
  }
136
134
  export type IResult = IResultAsInvoice | IResultAsInvoice[];
137
135
  export interface IPurpose {
138
- typeOf: TransactionType;
136
+ typeOf: TransactionType.PlaceOrder;
139
137
  id: string;
140
138
  }
141
139
  export declare enum ServiceIdentifier {
@@ -143,6 +141,7 @@ export declare enum ServiceIdentifier {
143
141
  }
144
142
  export interface IInstrumentAsService {
145
143
  typeOf: 'WebAPI';
144
+ transactionNumber: never;
146
145
  identifier: ServiceIdentifier;
147
146
  }
148
147
  export interface IInstrumentAsAssetTransaction {
@@ -12,7 +12,7 @@ export type IObject4COA = IUpdReserveArgs & {
12
12
  * 取引番号は必須
13
13
  */
14
14
  transactionNumber: string;
15
- typeOf: 'COAReserveTransaction';
15
+ typeOf: AssetTransactionType.COAReserveTransaction;
16
16
  };
17
17
  export type IObject4Chevre = Pick<ReserveTransactionFactory.IConfirmParams, 'transactionNumber' | 'potentialActions'> & {
18
18
  /**
@@ -2,20 +2,26 @@ import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { ISimpleOrder } from '../../order';
4
4
  import { TransactionType } from '../../transactionType';
5
- import { IAttributes as ISendOrderActionAttributes } from '../transfer/send/order';
5
+ import { IAttributes as ISendEmailMessageActionAttributes } from '../transfer/send/message/email';
6
6
  export type IAgent = ActionFactory.IParticipant;
7
7
  export type IRecipient = ActionFactory.IParticipant;
8
8
  export type IObject = ISimpleOrder;
9
- export type IResult = any;
10
- export type ISendOrderPotentialAction = Pick<ISendOrderActionAttributes, 'potentialActions'>;
9
+ export interface IResult {
10
+ }
11
+ export type IPotentialSendEmailMessageAction = Pick<ISendEmailMessageActionAttributes, 'object'>;
12
+ export interface IPotentialSendOrderAction {
13
+ potentialActions?: {
14
+ sendEmailMessage?: IPotentialSendEmailMessageAction[];
15
+ };
16
+ }
11
17
  export interface IPotentialActions {
12
- sendOrder?: ISendOrderPotentialAction;
18
+ sendOrder?: IPotentialSendOrderAction;
13
19
  }
14
20
  export interface IPurpose {
15
21
  typeOf: TransactionType.PlaceOrder;
16
22
  id: string;
17
23
  }
18
- export interface IAttributes extends ActionFactory.IAttributes<ActionType.OrderAction, IObject, IResult> {
24
+ export interface IAttributes extends Pick<ActionFactory.IAttributes<ActionType.OrderAction, IObject, IResult>, 'typeOf' | 'result' | 'purpose' | 'project' | 'potentialActions' | 'object' | 'error' | 'agent'> {
19
25
  potentialActions?: IPotentialActions;
20
26
  purpose?: IPurpose;
21
27
  }
@@ -1,12 +1,15 @@
1
1
  import * as ActionFactory from '../../../action';
2
+ import { AssetTransactionType } from '../../../assetTransactionType';
2
3
  import { IInvoice } from '../../../invoice';
3
4
  import { IReferencedInvoice, ISimpleOrder } from '../../../order';
4
5
  import { IAttributes as ISendEmailMessageActionAttributes } from '../../transfer/send/message/email';
5
6
  import * as ReturnActionFactory from '../return';
6
7
  export type IAgent = ActionFactory.IParticipantAsProject;
7
- export type IRecipient = ActionFactory.IParticipant;
8
+ type IRecipientAttributes = 'id' | 'name' | 'typeOf';
9
+ export type IRecipient = Pick<ActionFactory.IParticipantAsCustomer, IRecipientAttributes> | Pick<ActionFactory.IParticipantAsPerson, IRecipientAttributes> | Pick<ActionFactory.IParticipantAsWebApplication, IRecipientAttributes>;
8
10
  export type IObject = Pick<IReferencedInvoice, 'accountId' | 'issuedThrough' | 'paymentMethod' | 'paymentMethodId' | 'totalPaymentDue' | 'name' | 'additionalProperty'> & Pick<IInvoice, 'typeOf'>;
9
- export type IResult = any;
11
+ export interface IResult {
12
+ }
10
13
  export interface IPotentialActions {
11
14
  /**
12
15
  * 返金処理完了を通知するEメール送信アクション
@@ -14,13 +17,19 @@ export interface IPotentialActions {
14
17
  sendEmailMessage?: ISendEmailMessageActionAttributes[];
15
18
  }
16
19
  export type IPurpose = ISimpleOrder;
17
- export interface IAttributes extends ReturnActionFactory.IAttributes<IObject, IResult> {
20
+ export interface IInstrument {
21
+ typeOf: AssetTransactionType.Refund;
22
+ transactionNumber: string;
23
+ }
24
+ export interface IAttributes extends Pick<ReturnActionFactory.IAttributes<IObject, IResult>, 'agent' | 'error' | 'instrument' | 'object' | 'potentialActions' | 'purpose' | 'recipient' | 'result' | 'project' | 'sameAs' | 'typeOf'> {
18
25
  agent: IAgent;
19
26
  recipient: IRecipient;
20
27
  purpose: IPurpose;
21
28
  potentialActions?: IPotentialActions;
29
+ instrument?: IInstrument;
22
30
  }
23
31
  /**
24
- * 決済返却アクション
32
+ * 請求返却アクション
25
33
  */
26
34
  export type IAction = ReturnActionFactory.IAction<IAttributes>;
35
+ export {};
@@ -1,6 +1,6 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import * as OrderFactory from '../../../order';
3
- import { IAttributes as IReturnPaymentMethodActionAttributes } from '../../transfer/return/paymentMethod';
3
+ import { IAttributes as IReturnInvoiceActionAttributes } from '../../transfer/return/invoice';
4
4
  import * as ReturnActionFactory from '../return';
5
5
  import { IAttributes as ISendEmailMessageActionAttributes } from '../send/message/email';
6
6
  import * as ReturnPointAwardActionFactory from './pointAward';
@@ -16,12 +16,13 @@ export type IObject = OrderFactory.ISimpleOrder & {
16
16
  dateReturned: Date;
17
17
  };
18
18
  export type IResult = any;
19
+ export type IPotentialReturnInvoiceAction = Pick<IReturnInvoiceActionAttributes, 'object' | 'potentialActions'>;
19
20
  export interface IPotentialActions {
20
21
  /**
21
22
  * 決済返却アクション
22
23
  * refundから移行(2022-08-10~)
23
24
  */
24
- returnPaymentMethod: IReturnPaymentMethodActionAttributes[];
25
+ returnPaymentMethod: IPotentialReturnInvoiceAction[];
25
26
  /**
26
27
  * ポイントインセンティブ返却アクション
27
28
  */
@@ -8,7 +8,7 @@ export { IRecipe as IReturnCOAReserveRecipe };
8
8
  export type IAgent = ActionFactory.IParticipantAsProject;
9
9
  export type IRecipient = ActionFactory.IParticipantAsSeller;
10
10
  export type IObject4COA = IStateReserveArgs & {
11
- typeOf: 'COAReserveTransaction';
11
+ typeOf: AssetTransactionType.COAReserveTransaction;
12
12
  };
13
13
  export interface IObject4Chevre {
14
14
  typeOf: AssetTransactionType.Reserve;
@@ -2,7 +2,6 @@ import { IParticipantAsCustomer, IParticipantAsPerson, IParticipantAsProject, IP
2
2
  import * as OrderFactory from '../../../order';
3
3
  import { IGood, IOwnershipInfo } from '../../../ownershipInfo';
4
4
  import * as SendActionFactory from '../send';
5
- import { IAttributes as ISendEmailMessageActionAttributes } from './message/email';
6
5
  export type IAgent = IParticipantAsPerson | IParticipantAsProject | IParticipantAsWebApplication;
7
6
  export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson | IParticipantAsCustomer;
8
7
  export type IObject = OrderFactory.ISimpleOrder & {
@@ -18,18 +17,9 @@ export type IObject = OrderFactory.ISimpleOrder & {
18
17
  * 注文配送結果としての所有権
19
18
  */
20
19
  export type IResult = IOwnershipInfo<IGood>[];
21
- export type ISendEmailMessage = Pick<ISendEmailMessageActionAttributes, 'object'>;
22
- export interface IPotentialActions {
23
- /**
24
- * Eメール送信アクション
25
- * 注文処理後のメッセージ送信として機能しているので注意
26
- */
27
- sendEmailMessage?: ISendEmailMessage[];
28
- }
29
- export interface IAttributes extends SendActionFactory.IAttributes<IObject, IResult> {
20
+ export interface IAttributes extends Pick<SendActionFactory.IAttributes<IObject, IResult>, 'typeOf' | 'result' | 'recipient' | 'project' | 'object' | 'error' | 'agent'> {
30
21
  agent: IAgent;
31
22
  recipient: IRecipient;
32
- potentialActions?: IPotentialActions;
33
23
  }
34
24
  /**
35
25
  * 注文配送アクション
package/lib/action.d.ts CHANGED
@@ -207,19 +207,6 @@ export interface ISearchConditions {
207
207
  $in?: string[];
208
208
  };
209
209
  };
210
- acceptedOffer?: {
211
- itemOffered?: {
212
- serviceOutput?: {
213
- reservedTicket?: {
214
- ticketedSeat?: {
215
- seatNumber?: {
216
- $in?: string[];
217
- };
218
- };
219
- };
220
- };
221
- };
222
- };
223
210
  typeOf?: {
224
211
  $eq?: string;
225
212
  $in?: string[];
@@ -5,7 +5,6 @@ import { OrganizationType } from './organizationType';
5
5
  import { PersonType } from './personType';
6
6
  import { SortType } from './sortType';
7
7
  import { TransactionStatusType } from './transactionStatusType';
8
- import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
9
8
  /**
10
9
  * 販売者主体
11
10
  */
@@ -103,16 +102,6 @@ export type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TSta
103
102
  */
104
103
  endDate?: Date;
105
104
  tasksExportAction?: ITasksExportAction;
106
- /**
107
- * タスクエクスポート日時
108
- * @deprecated use tasksExportAction
109
- */
110
- tasksExportedAt?: Date;
111
- /**
112
- * タスクエクスポート状態
113
- * @deprecated use tasksExportAction
114
- */
115
- tasksExportationStatus: TransactionTasksExportationStatus;
116
105
  /**
117
106
  * 事後に発生するアクション
118
107
  */
@@ -26,5 +26,9 @@ export declare enum AssetTransactionType {
26
26
  * サービス登録
27
27
  * Service: MembershipService,PaymentCard...
28
28
  */
29
- RegisterService = "RegisterService"
29
+ RegisterService = "RegisterService",
30
+ /**
31
+ * 資産取引docは存在しない
32
+ */
33
+ COAReserveTransaction = "COAReserveTransaction"
30
34
  }
@@ -31,4 +31,8 @@ var AssetTransactionType;
31
31
  * Service: MembershipService,PaymentCard...
32
32
  */
33
33
  AssetTransactionType["RegisterService"] = "RegisterService";
34
+ /**
35
+ * 資産取引docは存在しない
36
+ */
37
+ AssetTransactionType["COAReserveTransaction"] = "COAReserveTransaction";
34
38
  })(AssetTransactionType = exports.AssetTransactionType || (exports.AssetTransactionType = {}));
package/lib/index.d.ts CHANGED
@@ -33,9 +33,9 @@ import * as RefundActionFactory from './action/trade/refund';
33
33
  import * as GiveActionFactory from './action/transfer/give';
34
34
  import * as GivePointAwardActionFactory from './action/transfer/give/pointAward';
35
35
  import * as MoneyTransferActionFactory from './action/transfer/moneyTransfer';
36
+ import * as ReturnInvoiceActionFactory from './action/transfer/return/invoice';
36
37
  import * as ReturnMoneyTransferActionFactory from './action/transfer/return/moneyTransfer';
37
38
  import * as ReturnOrderActionFactory from './action/transfer/return/order';
38
- import * as ReturnPaymentMethodActionFactory from './action/transfer/return/paymentMethod';
39
39
  import * as ReturnPointAwardActionFactory from './action/transfer/return/pointAward';
40
40
  import * as ReturnReserveTransactionActionFactory from './action/transfer/return/reserveTransaction';
41
41
  import * as SendEmailMessageActionFactory from './action/transfer/send/message/email';
@@ -189,7 +189,6 @@ import * as RegisterServiceAssetTransactionFactory from './assetTransaction/regi
189
189
  import * as ReserveAssetTransactionFactory from './assetTransaction/reserve';
190
190
  import { AssetTransactionType } from './assetTransactionType';
191
191
  import { TransactionStatusType } from './transactionStatusType';
192
- import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
193
192
  import * as TransactionFactory from './transaction';
194
193
  import * as MoneyTransferTransactionFactory from './transaction/moneyTransfer';
195
194
  import * as PlaceOrderTransactionFactory from './transaction/placeOrder';
@@ -273,9 +272,9 @@ export declare namespace action {
273
272
  * returnはネームスペース名に使えないのでreturnAction
274
273
  */
275
274
  namespace returnAction {
275
+ export import invoice = ReturnInvoiceActionFactory;
276
276
  export import moneyTransfer = ReturnMoneyTransferActionFactory;
277
277
  export import order = ReturnOrderActionFactory;
278
- export import paymentMethod = ReturnPaymentMethodActionFactory;
279
278
  export import pointAward = ReturnPointAwardActionFactory;
280
279
  export import reserveTransaction = ReturnReserveTransactionActionFactory;
281
280
  }
@@ -515,7 +514,6 @@ export declare namespace transaction {
515
514
  }
516
515
  export import transactionType = TransactionType;
517
516
  export import transactionStatusType = TransactionStatusType;
518
- export import transactionTasksExportationStatus = TransactionTasksExportationStatus;
519
517
  export import assetTransactionType = AssetTransactionType;
520
518
  export import unitCode = UnitCode;
521
519
  export import unitPriceOffer = UnitPriceOfferFactory;
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
- exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = void 0;
4
+ exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -33,9 +33,9 @@ var PayActionFactory = require("./action/trade/pay");
33
33
  var RefundActionFactory = require("./action/trade/refund");
34
34
  var GivePointAwardActionFactory = require("./action/transfer/give/pointAward");
35
35
  var MoneyTransferActionFactory = require("./action/transfer/moneyTransfer");
36
+ var ReturnInvoiceActionFactory = require("./action/transfer/return/invoice");
36
37
  var ReturnMoneyTransferActionFactory = require("./action/transfer/return/moneyTransfer");
37
38
  var ReturnOrderActionFactory = require("./action/transfer/return/order");
38
- var ReturnPaymentMethodActionFactory = require("./action/transfer/return/paymentMethod");
39
39
  var ReturnPointAwardActionFactory = require("./action/transfer/return/pointAward");
40
40
  var ReturnReserveTransactionActionFactory = require("./action/transfer/return/reserveTransaction");
41
41
  var SendEmailMessageActionFactory = require("./action/transfer/send/message/email");
@@ -158,7 +158,6 @@ var RegisterServiceAssetTransactionFactory = require("./assetTransaction/registe
158
158
  var ReserveAssetTransactionFactory = require("./assetTransaction/reserve");
159
159
  var assetTransactionType_1 = require("./assetTransactionType");
160
160
  var transactionStatusType_1 = require("./transactionStatusType");
161
- var transactionTasksExportationStatus_1 = require("./transactionTasksExportationStatus");
162
161
  var MoneyTransferTransactionFactory = require("./transaction/moneyTransfer");
163
162
  var PlaceOrderTransactionFactory = require("./transaction/placeOrder");
164
163
  var ReturnOrderTransactionFactory = require("./transaction/returnOrder");
@@ -248,12 +247,12 @@ var action;
248
247
  */
249
248
  var returnAction;
250
249
  (function (returnAction) {
250
+ // tslint:disable-next-line:no-shadowed-variable
251
+ returnAction.invoice = ReturnInvoiceActionFactory;
251
252
  // tslint:disable-next-line:no-shadowed-variable
252
253
  returnAction.moneyTransfer = ReturnMoneyTransferActionFactory;
253
254
  // tslint:disable-next-line:no-shadowed-variable
254
255
  returnAction.order = ReturnOrderActionFactory;
255
- // tslint:disable-next-line:no-shadowed-variable
256
- returnAction.paymentMethod = ReturnPaymentMethodActionFactory;
257
256
  returnAction.pointAward = ReturnPointAwardActionFactory;
258
257
  returnAction.reserveTransaction = ReturnReserveTransactionActionFactory;
259
258
  })(returnAction = transfer.returnAction || (transfer.returnAction = {}));
@@ -449,7 +448,7 @@ var transaction;
449
448
  })(transaction = exports.transaction || (exports.transaction = {}));
450
449
  exports.transactionType = transactionType_1.TransactionType;
451
450
  exports.transactionStatusType = transactionStatusType_1.TransactionStatusType;
452
- exports.transactionTasksExportationStatus = transactionTasksExportationStatus_1.TransactionTasksExportationStatus;
451
+ // export import transactionTasksExportationStatus = TransactionTasksExportationStatus; // discontinue(2024-06-20~)
453
452
  exports.assetTransactionType = assetTransactionType_1.AssetTransactionType;
454
453
  exports.unitCode = unitCode_1.UnitCode;
455
454
  exports.unitPriceOffer = UnitPriceOfferFactory;
@@ -21,7 +21,7 @@ export interface IObjectAsPayTransaction {
21
21
  };
22
22
  }
23
23
  export interface IObjectAsReserveTransaction {
24
- typeOf: AssetTransactionType.Reserve | 'COAReserveTransaction';
24
+ typeOf: AssetTransactionType.Reserve | AssetTransactionType.COAReserveTransaction;
25
25
  transactionNumber: string;
26
26
  status: TransactionStatusType.Confirmed;
27
27
  }
@@ -1,8 +1,8 @@
1
- import { IAttributes as IReturnActionAttributes } from '../action/transfer/return/paymentMethod';
1
+ import { IPotentialReturnInvoiceAction } from '../action/transfer/return/order';
2
2
  import { IExtendId } from '../autoGenerated';
3
3
  import * as TaskFactory from '../task';
4
4
  import { TaskName } from '../taskName';
5
- export type IData = IReturnActionAttributes;
5
+ export type IData = IPotentialReturnInvoiceAction;
6
6
  export interface IAttributes extends TaskFactory.IAttributes {
7
7
  name: TaskName.ReturnPayTransaction;
8
8
  data: IData;
@@ -22,7 +22,7 @@ export type IAgent = TransactionFactory.IAgent & {
22
22
  memberOfToken?: string;
23
23
  memberOfPayload?: IMemberOfPayload;
24
24
  };
25
- export type ICustomer = OrderFactory.ICustomer;
25
+ export type ICustomerInObject = Pick<OrderFactory.ICustomer, 'id' | 'identifier' | 'typeOf'>;
26
26
  export interface IPaymentMethodByPaymentUrl {
27
27
  /**
28
28
  * 決済採用時に発行済の決済方法ID
@@ -39,8 +39,8 @@ export interface IAwardAccount {
39
39
  }
40
40
  export interface IObject {
41
41
  clientUser?: Omit<IClientUser, 'scope' | 'scopes'>;
42
- broker?: OrderFactory.IBroker;
43
- customer?: ICustomer;
42
+ broker?: Pick<OrderFactory.IBroker, 'id' | 'typeOf'>;
43
+ customer?: ICustomerInObject;
44
44
  identifier?: OrderFactory.IIdentifier;
45
45
  /**
46
46
  * 確認番号
@@ -75,7 +75,7 @@ export interface IStartParamsWithoutDetail {
75
75
  };
76
76
  object: {
77
77
  clientUser?: Omit<IClientUser, 'scope' | 'scopes'>;
78
- customer?: ICustomer;
78
+ customer?: ICustomerInObject;
79
79
  passport?: TransactionFactory.IPassportBeforeStart;
80
80
  /**
81
81
  * 注文名称
@@ -156,7 +156,7 @@ export interface IConfirmParams {
156
156
  */
157
157
  result?: IResultParams;
158
158
  }
159
- export type IOrderAsResult = Pick<OrderFactory.IOrder, 'confirmationNumber' | 'identifier' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'orderedItem' | 'paymentMethods' | 'price' | 'priceCurrency' | 'typeOf' | 'url'>;
159
+ export type IOrderAsResult = Pick<OrderFactory.IOrder, 'confirmationNumber' | 'identifier' | 'orderDate' | 'orderNumber' | 'orderStatus' | 'price' | 'priceCurrency' | 'typeOf' | 'url'>;
160
160
  export interface IAuthorizeActionAsResult {
161
161
  id: string;
162
162
  }
@@ -180,12 +180,6 @@ export interface IResult {
180
180
  * オファー数(2024-01-17~)
181
181
  */
182
182
  numAcceptedOffers?: number;
183
- options?: {
184
- /**
185
- * 取引resultの注文オファーを無視する(Orderに適用しない)
186
- */
187
- ignoreAccpetedOffersFromResult?: boolean;
188
- };
189
183
  }
190
184
  /**
191
185
  * エラー
@@ -9,7 +9,6 @@ import { IIdentifier, IPersonAttributes } from './person';
9
9
  import { PersonType } from './personType';
10
10
  import { SortType } from './sortType';
11
11
  import { TransactionStatusType } from './transactionStatusType';
12
- import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
13
12
  import { TransactionType } from './transactionType';
14
13
  export interface IAgentAsWebApplication extends Pick<IWebApplication, 'id' | 'identifier' | 'typeOf'> {
15
14
  name?: string;
@@ -116,16 +115,6 @@ export type IAttributes<TStartParams, TResult, TError, TPotentialActions> = TSta
116
115
  */
117
116
  endDate?: Date;
118
117
  tasksExportAction?: ITasksExportAction;
119
- /**
120
- * タスクエクスポート日時
121
- * @deprecated use tasksExportAction
122
- */
123
- tasksExportedAt?: Date;
124
- /**
125
- * タスクエクスポート状態
126
- * @deprecated use tasksExportAction
127
- */
128
- tasksExportationStatus: TransactionTasksExportationStatus;
129
118
  /**
130
119
  * 事後に発生するアクション
131
120
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.375.0-alpha.2",
3
+ "version": "4.375.0-alpha.20",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,17 +0,0 @@
1
- /**
2
- * 取引タスクエクスポートステータス
3
- */
4
- export declare enum TransactionTasksExportationStatus {
5
- /**
6
- * 未エクスポート
7
- */
8
- Unexported = "Unexported",
9
- /**
10
- * エクスポート中
11
- */
12
- Exporting = "Exporting",
13
- /**
14
- * エクスポート済
15
- */
16
- Exported = "Exported"
17
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionTasksExportationStatus = void 0;
4
- /**
5
- * 取引タスクエクスポートステータス
6
- */
7
- var TransactionTasksExportationStatus;
8
- (function (TransactionTasksExportationStatus) {
9
- /**
10
- * 未エクスポート
11
- */
12
- TransactionTasksExportationStatus["Unexported"] = "Unexported";
13
- /**
14
- * エクスポート中
15
- */
16
- TransactionTasksExportationStatus["Exporting"] = "Exporting";
17
- /**
18
- * エクスポート済
19
- */
20
- TransactionTasksExportationStatus["Exported"] = "Exported";
21
- })(TransactionTasksExportationStatus = exports.TransactionTasksExportationStatus || (exports.TransactionTasksExportationStatus = {}));