@chevre/factory 8.0.0-alpha.0 → 8.0.0-alpha.2

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.
Files changed (36) hide show
  1. package/lib/chevre/action/authorize/offer/any.d.ts +1 -6
  2. package/lib/chevre/action/authorize/offer/any.js +1 -1
  3. package/lib/chevre/action/update/update/object.d.ts +1 -2
  4. package/lib/chevre/action/update/update/targetCollection.d.ts +1 -2
  5. package/lib/chevre/assetTransactionType.d.ts +0 -5
  6. package/lib/chevre/assetTransactionType.js +0 -5
  7. package/lib/chevre/index.d.ts +9 -26
  8. package/lib/chevre/index.js +1 -30
  9. package/lib/chevre/notification/order.d.ts +6 -2
  10. package/lib/chevre/order.d.ts +5 -13
  11. package/lib/chevre/report/accountingReport.d.ts +2 -2
  12. package/lib/chevre/reservedCodeValues.js +0 -1
  13. package/lib/chevre/task/onAssetTransactionStatusChanged.d.ts +1 -6
  14. package/lib/chevre/taskName.d.ts +0 -12
  15. package/lib/chevre/taskName.js +0 -12
  16. package/package.json +1 -1
  17. package/lib/chevre/action/authorize/offer/product.d.ts +0 -73
  18. package/lib/chevre/action/authorize/offer/product.js +0 -5
  19. package/lib/chevre/action/interact/confirm/registerService.d.ts +0 -27
  20. package/lib/chevre/action/interact/confirm/registerService.js +0 -2
  21. package/lib/chevre/assetTransaction/registerService.d.ts +0 -82
  22. package/lib/chevre/assetTransaction/registerService.js +0 -2
  23. package/lib/chevre/orderExternal.d.ts +0 -12
  24. package/lib/chevre/orderExternal.js +0 -2
  25. package/lib/chevre/task/confirmRegisterService.d.ts +0 -13
  26. package/lib/chevre/task/confirmRegisterService.js +0 -2
  27. package/lib/chevre/task/confirmRegisterServiceTransaction.d.ts +0 -13
  28. package/lib/chevre/task/confirmRegisterServiceTransaction.js +0 -2
  29. package/lib/chevre/task/voidRegisterServiceTransaction.d.ts +0 -24
  30. package/lib/chevre/task/voidRegisterServiceTransaction.js +0 -2
  31. package/lib/chevre/trip/busTrip.d.ts +0 -51
  32. package/lib/chevre/trip/busTrip.js +0 -2
  33. package/lib/chevre/trip.d.ts +0 -13
  34. package/lib/chevre/trip.js +0 -2
  35. package/lib/chevre/tripType.d.ts +0 -7
  36. package/lib/chevre/tripType.js +0 -11
@@ -9,8 +9,7 @@ import { TransactionType } from '../../../transactionType';
9
9
  export type IAgent = IParticipantAsSeller;
10
10
  export type IRecipient = IParticipantAsWebApplication | IParticipantAsPerson;
11
11
  export declare enum ObjectType {
12
- SeatReservation = "SeatReservation",
13
- AggregateOffer = "AggregateOffer"
12
+ SeatReservation = "SeatReservation"
14
13
  }
15
14
  export interface IInstrumentAsCOAReserveTransaction {
16
15
  typeOf: AssetTransactionType.COAReserveTransaction;
@@ -29,10 +28,6 @@ export interface IInstrumentAsReserveTransaction {
29
28
  */
30
29
  transactionNumber: string;
31
30
  }
32
- export interface IInstrumentAsRegisterService {
33
- typeOf: AssetTransactionType.RegisterService;
34
- transactionNumber: string;
35
- }
36
31
  export interface IPurpose {
37
32
  typeOf: TransactionType.PlaceOrder;
38
33
  id: string;
@@ -4,5 +4,5 @@ exports.ObjectType = void 0;
4
4
  var ObjectType;
5
5
  (function (ObjectType) {
6
6
  ObjectType["SeatReservation"] = "SeatReservation";
7
- ObjectType["AggregateOffer"] = "AggregateOffer";
7
+ // AggregateOffer = 'AggregateOffer'
8
8
  })(ObjectType || (exports.ObjectType = ObjectType = {}));
@@ -7,7 +7,6 @@ import { IOrder } from '../../../order';
7
7
  import { IProduct } from '../../../product';
8
8
  import { ReservationType } from '../../../reservationType';
9
9
  import { ISeller } from '../../../seller';
10
- import { TripType } from '../../../tripType';
11
10
  import { IUnitPriceOffer } from '../../../unitPriceOffer';
12
11
  export interface IObjectAsNote {
13
12
  identifier: string;
@@ -42,6 +41,6 @@ export type IObjectAsOrder = Pick<IOrder, 'orderNumber' | 'typeOf'> & {
42
41
  };
43
42
  export interface IObjectAsResourceById {
44
43
  id: string;
45
- typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType | TripType;
44
+ typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType;
46
45
  }
47
46
  export type IObject = IObjectAsOfferCatalog[] | IObjectAsOffer[] | IObjectAsProduct[] | IObjectAsMovie[] | IObjectAsEventSeriesByVersion[] | IObjectAsNote[] | IObjectAsResourceById[] | IObjectAsReservation | IObjectAsEvent4ttts | IObjectAsOrder;
@@ -8,7 +8,6 @@ import { OrderType } from '../../../order';
8
8
  import { IProduct } from '../../../product';
9
9
  import { ReservationType } from '../../../reservationType';
10
10
  import { ISeller } from '../../../seller';
11
- import { TripType } from '../../../tripType';
12
11
  import { IUnitPriceOffer } from '../../../unitPriceOffer';
13
12
  export interface ITargetCollectionAsNote {
14
13
  typeOf: CreativeWorkType.NoteDigitalDocument;
@@ -27,6 +26,6 @@ export interface ITargetCollectionAsEventById {
27
26
  }
28
27
  export interface ITargetCollectionAsResourceById {
29
28
  id: string;
30
- typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType | TripType;
29
+ typeOf: IUnitPriceOffer['typeOf'] | IProduct['typeOf'] | 'ProductModel' | ISeller['typeOf'] | IMovie['typeOf'] | EventType;
31
30
  }
32
31
  export type ITargetCollection = ITargetCollectionAsNote | ITargetCollectionAsReservation | ITargetCollectionAsResource | ITargetCollectionAsResourceById | ITargetCollectionAsEventById[];
@@ -18,11 +18,6 @@ export declare enum AssetTransactionType {
18
18
  * 返金
19
19
  */
20
20
  Refund = "Refund",
21
- /**
22
- * サービス登録
23
- * Service: MembershipService,PaymentCard...
24
- */
25
- RegisterService = "RegisterService",
26
21
  /**
27
22
  * 資産取引docは存在しない
28
23
  */
@@ -22,11 +22,6 @@ var AssetTransactionType;
22
22
  * 返金
23
23
  */
24
24
  AssetTransactionType["Refund"] = "Refund";
25
- /**
26
- * サービス登録
27
- * Service: MembershipService,PaymentCard...
28
- */
29
- AssetTransactionType["RegisterService"] = "RegisterService";
30
25
  /**
31
26
  * 資産取引docは存在しない
32
27
  */
@@ -7,7 +7,6 @@ import * as AcceptPayActionFactory from './action/accept/pay';
7
7
  import * as AuthorizeActionFactory from './action/authorize';
8
8
  import * as AuthorizeInvoiceActionFactory from './action/authorize/invoice';
9
9
  import * as AuthorizeEventServiceOfferActionFactory from './action/authorize/offer/eventService';
10
- import * as AuthorizeProductOfferActionFactory from './action/authorize/offer/product';
11
10
  import * as AuthorizeAnyPaymentActionFactory from './action/authorize/paymentMethod/any';
12
11
  import * as AuthorizeTicketedObjectActionFactory from './action/authorize/ticketedObject';
13
12
  import * as CancelCOAReserveActionFactory from './action/cancel/coaReserve';
@@ -17,7 +16,6 @@ import * as CheckThingActionFactory from './action/check/thing';
17
16
  import * as UseReservationActionFactory from './action/consume/use/reservation';
18
17
  import * as CreateActionFactory from './action/create';
19
18
  import * as ConfirmPayActionFactory from './action/interact/confirm/pay';
20
- import * as ConfirmRegisterServiceActionFactory from './action/interact/confirm/registerService';
21
19
  import * as ConfirmReservationActionFactory from './action/interact/confirm/reservation';
22
20
  import * as InformActionFactory from './action/interact/inform';
23
21
  import * as RegisterActionFactory from './action/interact/register';
@@ -131,8 +129,6 @@ import * as WebAPIServiceFactory from './service/webAPI';
131
129
  import * as ServiceChannelFactory from './serviceChannel';
132
130
  import { SortType } from './sortType';
133
131
  import * as ThingFactory from './thing';
134
- import * as BusTripFactory from './trip/busTrip';
135
- import { TripType } from './tripType';
136
132
  import { UnitCode } from './unitCode';
137
133
  export * as unitPriceOffer from './unitPriceOffer';
138
134
  import * as AccountTitleNotification from './notification/accountTitle';
@@ -164,8 +160,6 @@ import * as CancelReservationTaskFactory from './task/cancelReservation';
164
160
  import * as CheckMovieTicketTaskFactory from './task/checkMovieTicket';
165
161
  import * as CheckResourceTaskFactory from './task/checkResource';
166
162
  import * as ConfirmPayTransactionTaskFactory from './task/confirmPayTransaction';
167
- import * as ConfirmRegisterServiceTaskFactory from './task/confirmRegisterService';
168
- import * as ConfirmRegisterServiceTransactionTaskFactory from './task/confirmRegisterServiceTransaction';
169
163
  import * as ConfirmReserveTransactionTaskFactory from './task/confirmReserveTransaction';
170
164
  import * as CreateAccountingReportTaskFactory from './task/createAccountingReport';
171
165
  import * as DeletePersonTaskFactory from './task/deletePerson';
@@ -197,7 +191,6 @@ import * as TriggerWebhookTaskFactory from './task/triggerWebhook';
197
191
  import * as UseReservationTaskFactory from './task/useReservation';
198
192
  import * as VoidPaymentTaskFactory from './task/voidPayment';
199
193
  import * as VoidPayTransactionTaskFactory from './task/voidPayTransaction';
200
- import * as VoidRegisterServiceTransactionTaskFactory from './task/voidRegisterServiceTransaction';
201
194
  import * as VoidReserveTransactionTaskFactory from './task/voidReserveTransaction';
202
195
  import { TaskName } from './taskName';
203
196
  import { TaskStatus } from './taskStatus';
@@ -205,7 +198,6 @@ import * as AssetTransactionFactory from './assetTransaction';
205
198
  import * as CancelReservationAssetTransactionFactory from './assetTransaction/cancelReservation';
206
199
  import * as PayAssetTransactionFactory from './assetTransaction/pay';
207
200
  import * as RefundAssetTransactionFactory from './assetTransaction/refund';
208
- import * as RegisterServiceAssetTransactionFactory from './assetTransaction/registerService';
209
201
  import * as ReserveAssetTransactionFactory from './assetTransaction/reserve';
210
202
  import { AssetTransactionType } from './assetTransactionType';
211
203
  import { TransactionStatusType } from './transactionStatusType';
@@ -246,7 +238,6 @@ export declare namespace action {
246
238
  }
247
239
  namespace offer {
248
240
  export import eventService = AuthorizeEventServiceOfferActionFactory;
249
- export import product = AuthorizeProductOfferActionFactory;
250
241
  }
251
242
  export import invoice = AuthorizeInvoiceActionFactory;
252
243
  export import ticketedObject = AuthorizeTicketedObjectActionFactory;
@@ -264,7 +255,6 @@ export declare namespace action {
264
255
  export import create = CreateActionFactory;
265
256
  namespace interact {
266
257
  namespace confirm {
267
- export import registerService = ConfirmRegisterServiceActionFactory;
268
258
  export import pay = ConfirmPayActionFactory;
269
259
  export import reservation = ConfirmReservationActionFactory;
270
260
  }
@@ -468,9 +458,9 @@ export import schedule = ScheduleFactory;
468
458
  export import seller = SellerFactory;
469
459
  export import sellerReturnPolicy = SellerReturnPolicyFactory;
470
460
  export declare namespace task {
471
- type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IData : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IData : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IData : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IData : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IData : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.IData : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IData : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IData : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IData : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IData : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IData : T extends TaskName.SendOrder ? SendOrderTaskFactory.IData : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IData : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IData : T extends TaskName.UseReservation ? UseReservationTaskFactory.IData : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IData : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IData : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IData : TaskFactory.IData;
472
- type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IAttributes : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IAttributes : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IAttributes : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IAttributes : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IAttributes : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.IAttributes : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IAttributes : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IAttributes : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IAttributes : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IAttributes : T extends TaskName.SendOrder ? SendOrderTaskFactory.IAttributes : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IAttributes : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IAttributes : T extends TaskName.UseReservation ? UseReservationTaskFactory.IAttributes : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IAttributes : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IAttributes : TaskFactory.ITaskAttributes;
473
- type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.ITask : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.ITask : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.ITask : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.ITask : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.ITask : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.ITask : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.ITask : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.ITask : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.ITask : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.ITask : T extends TaskName.SendOrder ? SendOrderTaskFactory.ITask : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.ITask : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.ITask : T extends TaskName.UseReservation ? UseReservationTaskFactory.ITask : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.ITask : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.ITask : TaskFactory.ITask;
461
+ type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IData : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IData : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IData : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IData : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IData : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.IData : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IData : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IData : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IData : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IData : T extends TaskName.SendOrder ? SendOrderTaskFactory.IData : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IData : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IData : T extends TaskName.UseReservation ? UseReservationTaskFactory.IData : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IData : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IData : TaskFactory.IData;
462
+ type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.IAttributes : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.IAttributes : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.IAttributes : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.IAttributes : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.IAttributes : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.IAttributes : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IAttributes : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IAttributes : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IAttributes : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IAttributes : T extends TaskName.SendOrder ? SendOrderTaskFactory.IAttributes : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IAttributes : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IAttributes : T extends TaskName.UseReservation ? UseReservationTaskFactory.IAttributes : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IAttributes : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IAttributes : TaskFactory.ITaskAttributes;
463
+ type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.CreateAccountingReport ? CreateAccountingReportTaskFactory.ITask : T extends TaskName.DeletePerson ? DeletePersonTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.OnAssetTransactionStatusChanged ? OnAssetTransactionStatusChangedTaskFactory.ITask : T extends TaskName.OnAuthorizationCreated ? OnAuthorizationCreatedTaskFactory.ITask : T extends TaskName.OnEventChanged ? OnEventChangedTaskFactory.ITask : T extends TaskName.OnOrderPaymentCompleted ? OnOrderPaymentCompletedTaskFactory.ITask : T extends TaskName.OnResourceDeleted ? OnResourceDeletedTaskFactory.ITask : T extends TaskName.OnResourceUpdated ? OnResourceUpdatedTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.ITask : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.ITask : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.ITask : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.ITask : T extends TaskName.SendOrder ? SendOrderTaskFactory.ITask : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.ITask : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.ITask : T extends TaskName.UseReservation ? UseReservationTaskFactory.ITask : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.ITask : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.ITask : TaskFactory.ITask;
474
464
  export import ISearchConditions = TaskFactory.ISearchConditions;
475
465
  export import IExecutionResult = TaskFactory.IExecutionResult;
476
466
  export import acceptCOAOffer = AcceptCOAOfferTaskFactory;
@@ -518,24 +508,17 @@ export import sortType = SortType;
518
508
  export import taskName = TaskName;
519
509
  export import taskStatus = TaskStatus;
520
510
  export import thing = ThingFactory;
521
- export declare namespace trip {
522
- type ISearchConditions<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ISearchConditions : never;
523
- type ITrip<T extends TripType> = T extends TripType.BusTrip ? BusTripFactory.ITrip : never;
524
- export import busTrip = BusTripFactory;
525
- }
526
- export import tripType = TripType;
527
511
  export declare namespace assetTransaction {
528
512
  type IProject = AssetTransactionFactory.IProject;
529
- type IStartParams<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.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;
530
- type IAttributes<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.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;
531
- type ITransaction<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.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;
532
- type IResult<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.IResult : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.IResult : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.IResult : T extends AssetTransactionType.RegisterService ? RegisterServiceAssetTransactionFactory.IResult : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.IResult : never;
533
- type IPotentialActions<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.IPotentialActions : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.IPotentialActions : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.IPotentialActions : T extends AssetTransactionType.RegisterService ? RegisterServiceAssetTransactionFactory.IPotentialActions : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.IPotentialActions : never;
534
- type ISearchConditions<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.ISearchConditions : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.ISearchConditions : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.ISearchConditions : T extends AssetTransactionType.RegisterService ? RegisterServiceAssetTransactionFactory.ISearchConditions : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.ISearchConditions : never;
513
+ type IStartParams<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.IStartParams : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.IStartParams : never;
514
+ type IAttributes<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.IAttributes : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.IAttributes : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.IAttributes : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.IAttributes : never;
515
+ type ITransaction<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.ITransaction : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.ITransaction : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.ITransaction : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.ITransaction : never;
516
+ type IResult<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.IResult : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.IResult : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.IResult : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.IResult : never;
517
+ type IPotentialActions<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.IPotentialActions : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.IPotentialActions : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.IPotentialActions : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.IPotentialActions : never;
518
+ type ISearchConditions<T extends AssetTransactionType> = T extends AssetTransactionType.CancelReservation ? CancelReservationAssetTransactionFactory.ISearchConditions : T extends AssetTransactionType.Pay ? PayAssetTransactionFactory.ISearchConditions : T extends AssetTransactionType.Refund ? RefundAssetTransactionFactory.ISearchConditions : T extends AssetTransactionType.Reserve ? ReserveAssetTransactionFactory.ISearchConditions : never;
535
519
  export import cancelReservation = CancelReservationAssetTransactionFactory;
536
520
  export import pay = PayAssetTransactionFactory;
537
521
  export import refund = RefundAssetTransactionFactory;
538
- export import registerService = RegisterServiceAssetTransactionFactory;
539
522
  export import reserve = ReserveAssetTransactionFactory;
540
523
  }
541
524
  export declare namespace transaction {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.errorCode = exports.recipe = exports.errors = exports.unitPriceOffer = exports.project = exports.order = exports.productOffer = exports.eventOffer = exports.aggregateOffer = exports.offer = exports.account = exports.cognito = exports.waiter = void 0;
4
- 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.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservationPackage = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = void 0;
4
+ exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservationPackage = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = exports.paymentStatusType = exports.paymentMethod = void 0;
5
5
  exports.waiter = require("@waiter/factory");
6
6
  exports.cognito = require("./cognito");
7
7
  exports.account = require("./account");
@@ -9,7 +9,6 @@ const AcceptCOAOfferActionFactory = require("./action/accept/coaOffer");
9
9
  const AcceptPayActionFactory = require("./action/accept/pay");
10
10
  const AuthorizeInvoiceActionFactory = require("./action/authorize/invoice");
11
11
  const AuthorizeEventServiceOfferActionFactory = require("./action/authorize/offer/eventService");
12
- const AuthorizeProductOfferActionFactory = require("./action/authorize/offer/product");
13
12
  const AuthorizeAnyPaymentActionFactory = require("./action/authorize/paymentMethod/any");
14
13
  const AuthorizeTicketedObjectActionFactory = require("./action/authorize/ticketedObject");
15
14
  const CancelCOAReserveActionFactory = require("./action/cancel/coaReserve");
@@ -19,7 +18,6 @@ const CheckThingActionFactory = require("./action/check/thing");
19
18
  const UseReservationActionFactory = require("./action/consume/use/reservation");
20
19
  const CreateActionFactory = require("./action/create");
21
20
  const ConfirmPayActionFactory = require("./action/interact/confirm/pay");
22
- const ConfirmRegisterServiceActionFactory = require("./action/interact/confirm/registerService");
23
21
  const ConfirmReservationActionFactory = require("./action/interact/confirm/reservation");
24
22
  const InformActionFactory = require("./action/interact/inform");
25
23
  const RegisterServiceActionFactory = require("./action/interact/register/service");
@@ -129,8 +127,6 @@ const WebAPIServiceFactory = require("./service/webAPI");
129
127
  const ServiceChannelFactory = require("./serviceChannel");
130
128
  const sortType_1 = require("./sortType");
131
129
  const ThingFactory = require("./thing");
132
- const BusTripFactory = require("./trip/busTrip");
133
- const tripType_1 = require("./tripType");
134
130
  const unitCode_1 = require("./unitCode");
135
131
  exports.unitPriceOffer = require("./unitPriceOffer");
136
132
  const AccountTitleNotification = require("./notification/accountTitle");
@@ -189,7 +185,6 @@ const taskStatus_1 = require("./taskStatus");
189
185
  const CancelReservationAssetTransactionFactory = require("./assetTransaction/cancelReservation");
190
186
  const PayAssetTransactionFactory = require("./assetTransaction/pay");
191
187
  const RefundAssetTransactionFactory = require("./assetTransaction/refund");
192
- const RegisterServiceAssetTransactionFactory = require("./assetTransaction/registerService");
193
188
  const ReserveAssetTransactionFactory = require("./assetTransaction/reserve");
194
189
  const assetTransactionType_1 = require("./assetTransactionType");
195
190
  const transactionStatusType_1 = require("./transactionStatusType");
@@ -218,7 +213,6 @@ var action;
218
213
  let offer;
219
214
  (function (offer) {
220
215
  offer.eventService = AuthorizeEventServiceOfferActionFactory;
221
- offer.product = AuthorizeProductOfferActionFactory;
222
216
  })(offer = authorize.offer || (authorize.offer = {}));
223
217
  authorize.invoice = AuthorizeInvoiceActionFactory;
224
218
  authorize.ticketedObject = AuthorizeTicketedObjectActionFactory;
@@ -242,7 +236,6 @@ var action;
242
236
  (function (interact) {
243
237
  let confirm;
244
238
  (function (confirm) {
245
- confirm.registerService = ConfirmRegisterServiceActionFactory;
246
239
  confirm.pay = ConfirmPayActionFactory;
247
240
  confirm.reservation = ConfirmReservationActionFactory;
248
241
  })(confirm = interact.confirm || (interact.confirm = {}));
@@ -344,23 +337,7 @@ exports.creativeWorkType = creativeWorkType_1.CreativeWorkType;
344
337
  exports.customer = CustomerFactory;
345
338
  var event;
346
339
  (function (event) {
347
- // export type ISearchConditions<T extends EventType.ScreeningEvent> =
348
- // T extends EventType.ScreeningEvent ? ScreeningEventFactory.ISearchConditions :
349
- // never;
350
- // export type IAttributes<T extends EventType> =
351
- // T extends EventType.ScreeningEvent ? ScreeningEventFactory.IAttributes :
352
- // never;
353
- // export type IEvent<T extends EventType> =
354
- // T extends EventType.ScreeningEvent ? ScreeningEventFactory.IEvent :
355
- // never;
356
- // export type ICreateParams<T extends EventType> =
357
- // T extends EventType.ScreeningEvent ? ScreeningEventFactory.ICreateParams :
358
- // never;
359
- // export type IUpdateParams<T extends EventType> =
360
- // T extends EventType.ScreeningEvent ? ScreeningEventFactory.IUpdateParams :
361
- // never;
362
340
  event.screeningEvent = ScreeningEventFactory;
363
- // export import screeningEventSeries = ScreeningEventSeriesFactory;
364
341
  })(event || (exports.event = event = {}));
365
342
  exports.eventSeries = ScreeningEventSeriesFactory; // reimplement from event.screeningEventSeries
366
343
  exports.encodingFormat = EncodingFormat;
@@ -504,17 +481,11 @@ exports.sortType = sortType_1.SortType;
504
481
  exports.taskName = taskName_1.TaskName;
505
482
  exports.taskStatus = taskStatus_1.TaskStatus;
506
483
  exports.thing = ThingFactory;
507
- var trip;
508
- (function (trip) {
509
- trip.busTrip = BusTripFactory;
510
- })(trip || (exports.trip = trip = {}));
511
- exports.tripType = tripType_1.TripType;
512
484
  var assetTransaction;
513
485
  (function (assetTransaction) {
514
486
  assetTransaction.cancelReservation = CancelReservationAssetTransactionFactory;
515
487
  assetTransaction.pay = PayAssetTransactionFactory;
516
488
  assetTransaction.refund = RefundAssetTransactionFactory;
517
- assetTransaction.registerService = RegisterServiceAssetTransactionFactory;
518
489
  assetTransaction.reserve = ReserveAssetTransactionFactory;
519
490
  })(assetTransaction || (exports.assetTransaction = assetTransaction = {}));
520
491
  var transaction;
@@ -1,6 +1,10 @@
1
1
  import { IAction as IReturnOrderAction } from '../action/transfer/return/order';
2
- import { IAcceptedOffer, IItemOffered, IOrder } from '../order';
2
+ import { IAcceptedOffer, IOrder } from '../order';
3
3
  import { OrderStatus } from '../orderStatus';
4
+ /**
5
+ * 返品通知
6
+ * add IReturnAction4inform(2025-01-21~)
7
+ */
4
8
  export type IReturnAction4inform = Pick<IReturnOrderAction, 'id' | 'instrument' | 'object' | 'project' | 'typeOf'>;
5
9
  /**
6
10
  * 注文作成通知
@@ -15,7 +19,7 @@ export type IProcessingOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'selle
15
19
  * 配送中通知
16
20
  */
17
21
  export type IInTransitOrder4inform = Pick<IOrder, 'project' | 'typeOf' | 'orderNumber'> & {
18
- acceptedOffers: IAcceptedOffer<IItemOffered>[];
22
+ acceptedOffers: IAcceptedOffer[];
19
23
  id?: string;
20
24
  orderStatus: OrderStatus.OrderInTransit;
21
25
  };
@@ -10,13 +10,12 @@ import { IOffer } from './offer';
10
10
  import { OrderStatus } from './orderStatus';
11
11
  import { OrganizationType } from './organizationType';
12
12
  import { PaymentStatusType } from './paymentStatusType';
13
- import { IIssuedThroughAsProduct, IPermit as IBasePermit } from './permit';
14
13
  import { IPerson, IProfile } from './person';
15
14
  import { PersonType } from './personType';
16
15
  import { PlaceType } from './placeType';
17
16
  import { PriceCurrency } from './priceCurrency';
18
17
  import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
19
- import { IMembershipProduct, IPaymentCardProduct, ProductType } from './product';
18
+ import { ProductType } from './product';
20
19
  import { IPropertyValue } from './propertyValue';
21
20
  import { ICategoryChargePriceComponent, IIssuedThrough, IMovieTicketTypeChargePriceComponent, IOptimizedSuperEventLegacy, IOptimizedWorkPerformedLegacy, IProgramMembershipUsedSearchConditions, IReservation as IRawReservation, IReservationForLegacy, IReservedTicket as IRawReservedTicket, ITicketType, IUnitPriceComponent, IServiceTypeOfIssuedThrough } from './reservation/event';
22
21
  import { ReservationType } from './reservationType';
@@ -197,14 +196,10 @@ export type ICOAEventReservation = Pick<IRawReservation, 'additionalProperty' |
197
196
  * オファー提供アイテムとしての予約
198
197
  */
199
198
  export type IReservation = IEventReservation | ICOAEventReservation;
200
- export type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | 'name' | 'typeOf' | 'validFor'> & {
201
- identifier: string;
202
- issuedThrough?: IIssuedThroughAsProduct;
203
- };
204
199
  /**
205
200
  * 注文アイテム
206
201
  */
207
- export type IItemOffered = IReservation | IPermit;
202
+ export type IItemOffered = IReservation;
208
203
  export { ICategoryChargePriceComponent };
209
204
  export { IMovieTicketTypeChargePriceComponent };
210
205
  export { IUnitPriceComponent };
@@ -217,11 +212,11 @@ export type IOfferOptimized4acceptedOffer = Pick<IOffer, 'typeOf' | 'id' | 'item
217
212
  /**
218
213
  * 受け入れオファー
219
214
  */
220
- export interface IAcceptedOffer<T extends IItemOffered> extends IOfferOptimized4acceptedOffer {
215
+ export interface IAcceptedOffer extends IOfferOptimized4acceptedOffer {
221
216
  /**
222
217
  * オファー対象アイテム
223
218
  */
224
- itemOffered: T;
219
+ itemOffered: IItemOffered;
225
220
  priceSpecification?: ITicketPriceSpecification;
226
221
  /**
227
222
  * 資産取引を特定する番号(2024-01-30~)
@@ -294,16 +289,13 @@ export interface IEventServiceAsOrderedItem {
294
289
  */
295
290
  id?: string;
296
291
  }
297
- export type IProductAsOrderedItem = Pick<IMembershipProduct | IPaymentCardProduct, 'serviceType' | 'typeOf'> & {
298
- id: string;
299
- };
300
292
  /**
301
293
  * 注文アイテム
302
294
  * {@link https://schema.org/OrderItem}
303
295
  */
304
296
  export interface IOrderedItem {
305
297
  typeOf: 'OrderItem';
306
- orderedItem: IProductAsOrderedItem | IEventServiceAsOrderedItem;
298
+ orderedItem: IEventServiceAsOrderedItem;
307
299
  }
308
300
  /**
309
301
  * 注文
@@ -1,6 +1,6 @@
1
1
  import { IAction as IPayAction, IPaymentService as IPayObject } from '../action/trade/pay';
2
2
  import { IAction as IRefundAction, IPaymentService as IRefundObject } from '../action/trade/refund';
3
- import { IAcceptedOffer, ICustomer, IItemOffered, IOrder } from '../order';
3
+ import { IAcceptedOffer, ICustomer, IOrder } from '../order';
4
4
  import { OrganizationType } from '../organizationType';
5
5
  export type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
6
6
  export type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'purpose' | 'startDate' | 'typeOf'> & {
@@ -15,7 +15,7 @@ export type IOptimizedCustomer = Pick<ICustomer, 'additionalProperty' | 'id' | '
15
15
  export type IOrderAsMainEntity = Pick<IOrder, 'broker' | 'confirmationNumber' | 'id' | 'orderDate' | 'orderNumber' | 'orderedItem' | 'paymentMethods' | 'price' | 'priceCurrency' | 'seller' | 'typeOf'> & {
16
16
  numItems: number;
17
17
  customer: IOptimizedCustomer;
18
- acceptedOffers: IAcceptedOffer<IItemOffered>[];
18
+ acceptedOffers: IAcceptedOffer[];
19
19
  };
20
20
  /**
21
21
  * 経理レポート
@@ -31,7 +31,6 @@ exports.RESERVED_CODE_VALUES = [
31
31
  'MoneyTransfer',
32
32
  assetTransactionType_1.AssetTransactionType.Pay,
33
33
  assetTransactionType_1.AssetTransactionType.Refund,
34
- assetTransactionType_1.AssetTransactionType.RegisterService,
35
34
  assetTransactionType_1.AssetTransactionType.Reserve,
36
35
  'Authorization',
37
36
  certificationStatusEnumeration_1.CertificationStatusEnumeration.CertificationActive,
@@ -25,12 +25,7 @@ export interface IObjectAsReserveTransaction {
25
25
  transactionNumber: string;
26
26
  status: TransactionStatusType.Confirmed;
27
27
  }
28
- export interface IObjectAsRegisterServiceTransaction {
29
- typeOf: AssetTransactionType.RegisterService;
30
- transactionNumber: string;
31
- status: TransactionStatusType.Confirmed;
32
- }
33
- export type IObject = IObjectAsPayTransaction | IObjectAsReserveTransaction | IObjectAsRegisterServiceTransaction;
28
+ export type IObject = IObjectAsPayTransaction | IObjectAsReserveTransaction;
34
29
  export interface IData {
35
30
  project: Pick<IProject, 'id' | 'typeOf'>;
36
31
  object: IObject;
@@ -28,18 +28,10 @@ export declare enum TaskName {
28
28
  * リソース検証
29
29
  */
30
30
  CheckResource = "checkResource",
31
- /**
32
- * サービス登録
33
- */
34
- ConfirmRegisterService = "confirmRegisterService",
35
31
  /**
36
32
  * 決済資産取引確定
37
33
  */
38
34
  ConfirmPayTransaction = "confirmPayTransaction",
39
- /**
40
- * サービス登録資産取引確定
41
- */
42
- ConfirmRegisterServiceTransaction = "confirmRegisterServiceTransaction",
43
35
  /**
44
36
  * 予約資産取引確定
45
37
  */
@@ -104,10 +96,6 @@ export declare enum TaskName {
104
96
  * 決済中止
105
97
  */
106
98
  VoidPayTransaction = "voidPayTransaction",
107
- /**
108
- * サービス登録中止
109
- */
110
- VoidRegisterServiceTransaction = "voidRegisterServiceTransaction",
111
99
  /**
112
100
  * 予約中止
113
101
  */
@@ -32,18 +32,10 @@ var TaskName;
32
32
  * リソース検証
33
33
  */
34
34
  TaskName["CheckResource"] = "checkResource";
35
- /**
36
- * サービス登録
37
- */
38
- TaskName["ConfirmRegisterService"] = "confirmRegisterService";
39
35
  /**
40
36
  * 決済資産取引確定
41
37
  */
42
38
  TaskName["ConfirmPayTransaction"] = "confirmPayTransaction";
43
- /**
44
- * サービス登録資産取引確定
45
- */
46
- TaskName["ConfirmRegisterServiceTransaction"] = "confirmRegisterServiceTransaction";
47
39
  /**
48
40
  * 予約資産取引確定
49
41
  */
@@ -113,10 +105,6 @@ var TaskName;
113
105
  * 決済中止
114
106
  */
115
107
  TaskName["VoidPayTransaction"] = "voidPayTransaction";
116
- /**
117
- * サービス登録中止
118
- */
119
- TaskName["VoidRegisterServiceTransaction"] = "voidRegisterServiceTransaction";
120
108
  /**
121
109
  * 予約中止
122
110
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "8.0.0-alpha.0",
3
+ "version": "8.0.0-alpha.2",
4
4
  "main": "./lib/index.js",
5
5
  "types": "./lib/index.d.ts",
6
6
  "files": [
@@ -1,73 +0,0 @@
1
- import { IAction as IBaseAction } from '../../../action';
2
- import { ActionType } from '../../../actionType';
3
- import { IAcceptedOfferWithoutDetail } from '../../../assetTransaction/registerService';
4
- import { IOffer } from '../../../offer';
5
- import { IIssuedThroughAsProduct, IPermit } from '../../../permit';
6
- import { IMembershipProduct, IPaymentCardProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecification } from '../../../product';
7
- import { ISeller } from '../../../seller';
8
- import { IAttributes as IBaseAttributes } from '../../authorize';
9
- import { IAgent, IError, IInstrumentAsRegisterService, IPurpose, IRecipient, IResultAsAggregateOffer, ObjectType } from './any';
10
- export { IAgent, IRecipient, IInstrumentAsRegisterService, IError, IPurpose, ObjectType, IResultAsAggregateOffer };
11
- export type IPermitIssuedByProduct = Omit<IPermit, 'issuedThrough'> & {
12
- issuedThrough?: IIssuedThroughAsProduct;
13
- };
14
- export type IItemOffered = Pick<IMembershipProduct | IPaymentCardProduct, 'typeOf' | 'id' | 'name'> & {
15
- serviceOutput: IProductServiceOutput & IPermitIssuedByProduct;
16
- pointAward?: never;
17
- };
18
- export { IAcceptedOfferWithoutDetail };
19
- export type ISellerMakesOffer = Pick<ISeller, 'id' | 'name' | 'typeOf'>;
20
- export interface IAcceptedOffer extends Pick<IOffer, 'typeOf' | 'id' | 'identifier' | 'itemOffered' | 'name' | 'priceCurrency' | 'seller'> {
21
- /**
22
- * オファーコード
23
- */
24
- identifier?: string;
25
- /**
26
- * オファー対象アイテム
27
- */
28
- itemOffered: IItemOffered;
29
- /**
30
- * 販売者
31
- */
32
- seller: ISellerMakesOffer;
33
- priceSpecification?: ITicketPriceSpecification;
34
- }
35
- /**
36
- * 承認アクションオブジェクト(最適化されたAcceptedOffer)
37
- */
38
- export interface IObjectAsAcceptedOffer {
39
- typeOf: ObjectType.AggregateOffer;
40
- /**
41
- * オファー対象アイテム
42
- */
43
- itemOffered: Pick<IItemOffered, 'id' | 'typeOf'>;
44
- event?: never;
45
- id?: never;
46
- pendingTransaction?: never;
47
- }
48
- export type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
49
- export type IObject = IObjectAsAcceptedOffer;
50
- export interface IResult extends IResultAsAggregateOffer {
51
- /**
52
- * オファー未指定は現時点でありえないので金額は必ず確定
53
- */
54
- price: number;
55
- requestBody?: never;
56
- responseBody?: never;
57
- offers?: never;
58
- itemOffered?: never;
59
- amount?: never;
60
- }
61
- export type IInstrument = IInstrumentAsRegisterService;
62
- export interface IAttributes extends IBaseAttributes<IObject, IResult> {
63
- typeOf: ActionType.AuthorizeAction;
64
- agent: IAgent;
65
- instrument: IInstrument;
66
- recipient: IRecipient;
67
- object: IObject;
68
- purpose: IPurpose;
69
- }
70
- /**
71
- * プロダクトオファー承認アクション
72
- */
73
- export type IAction = IBaseAction<IAttributes>;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ObjectType = void 0;
4
- const any_1 = require("./any");
5
- Object.defineProperty(exports, "ObjectType", { enumerable: true, get: function () { return any_1.ObjectType; } });
@@ -1,27 +0,0 @@
1
- import { IParticipantAsProject } from '../../../action';
2
- import { IConfirmParams } from '../../../assetTransaction/registerService';
3
- import { AssetTransactionType } from '../../../assetTransactionType';
4
- import { ISimpleOrder } from '../../../order';
5
- import { IAction as IBaseAction, IAttributes as IBaseAttributes } from '../confirm';
6
- export type IAgent = IParticipantAsProject;
7
- export type IObject = Pick<IConfirmParams, 'transactionNumber' | 'endDate'> & {
8
- transactionNumber: string;
9
- typeOf: AssetTransactionType.RegisterService;
10
- object?: {
11
- itemOffered?: {
12
- serviceOutput?: {
13
- identifier?: string;
14
- };
15
- };
16
- };
17
- };
18
- export type IPurpose = ISimpleOrder;
19
- export type IResult = any;
20
- export interface IAttributes extends IBaseAttributes<IObject, IResult> {
21
- agent: IAgent;
22
- purpose: IPurpose;
23
- }
24
- /**
25
- * サービス登録確定アクション
26
- */
27
- export type IAction = IBaseAction<IAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,82 +0,0 @@
1
- import { IAttributes as IRegisterServiceActionAttributes } from '../action/interact/register/service';
2
- import { IAgent, ISearchConditions as IBaseSearchConditions, IStartParams as IBaseStartParams, IAttributes as IBaseAttributes } from '../assetTransaction';
3
- import { AssetTransactionType } from '../assetTransactionType';
4
- import { IExtendId } from '../autoGenerated';
5
- import { OfferType } from '../offerType';
6
- import { IIssuedThroughAsProduct, IPermit } from '../permit';
7
- import { IMembershipProduct, IPaymentCardProduct } from '../product';
8
- export { IAgent };
9
- export type IStartParamsWithoutDetail = IBaseStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
10
- /**
11
- * 取引開始パラメーター
12
- * サービス: MembershipService,PaymentCardであればserviceOutputを発行する
13
- */
14
- export type IStartParams = IBaseStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObject>;
15
- /**
16
- * 確定パラメータ
17
- */
18
- export interface IConfirmParams {
19
- id?: string;
20
- transactionNumber?: string;
21
- /**
22
- * 取引確定日時を指定する
23
- * serviceOutputのvalidFromに適用される
24
- */
25
- endDate?: Date;
26
- }
27
- export interface IResult {
28
- }
29
- /**
30
- * エラー
31
- */
32
- export type IError = any;
33
- export type IServiceOutput = Omit<IPermit, 'issuedThrough'> & {
34
- identifier: string;
35
- issuedThrough?: IIssuedThroughAsProduct;
36
- };
37
- export interface IAcceptedItemOffered {
38
- id?: string;
39
- pointAward?: never;
40
- serviceOutput?: IServiceOutput;
41
- }
42
- export interface IAcceptedOfferWithoutDetail {
43
- typeOf: OfferType.Offer;
44
- id: string;
45
- itemOffered: IAcceptedItemOffered;
46
- }
47
- export interface IItemOffered extends Pick<IMembershipProduct | IPaymentCardProduct, 'id' | 'typeOf'> {
48
- serviceOutput: IServiceOutput;
49
- pointAward?: never;
50
- }
51
- export interface IAcceptedOffer {
52
- typeOf: OfferType.Offer;
53
- id: string;
54
- itemOffered: IItemOffered;
55
- }
56
- export type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
57
- export type IObject = IAcceptedOffer[];
58
- export interface IPotentialActions {
59
- moneyTransfer?: never;
60
- registerService: IRegisterServiceActionAttributes[];
61
- }
62
- export interface IAttributes extends IBaseAttributes<IStartParams, IResult, IError, IPotentialActions> {
63
- }
64
- /**
65
- * 取引
66
- */
67
- export type ITransaction = IExtendId<IAttributes>;
68
- export interface ISearchConditions extends IBaseSearchConditions<AssetTransactionType.RegisterService> {
69
- object?: {
70
- itemOffered?: {
71
- serviceOutput?: {
72
- /**
73
- * 発行許可証識別子
74
- */
75
- identifier?: {
76
- $eq?: string;
77
- $in?: string[];
78
- };
79
- };
80
- };
81
- };
82
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { IOrder, IOrderedItem, IProductAsOrderedItem } from './order';
2
- export interface IExternalProductAsOrderedItem extends IProductAsOrderedItem {
3
- name?: {
4
- ja?: string;
5
- };
6
- }
7
- export interface IExternalOrderedItem extends IOrderedItem {
8
- orderedItem: IExternalProductAsOrderedItem;
9
- }
10
- export type IExternalOrder = Pick<IOrder, 'project' | 'typeOf' | 'seller' | 'customer' | 'confirmationNumber' | 'orderNumber' | 'price' | 'priceCurrency' | 'orderDate' | 'name' | 'orderStatus' | 'orderedItem' | 'paymentMethods'> & {
11
- orderedItem?: IExternalOrderedItem[];
12
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { IAttributes as IConfirmRegisterServiceActionAttributes } from '../action/interact/confirm/registerService';
2
- import { IExtendId } from '../autoGenerated';
3
- import { ITaskAttributes } from '../task';
4
- import { TaskName } from '../taskName';
5
- export type IData = IConfirmRegisterServiceActionAttributes;
6
- export interface IAttributes extends ITaskAttributes {
7
- name: TaskName.ConfirmRegisterService;
8
- data: IData;
9
- }
10
- /**
11
- * サービス登録確定タスク
12
- */
13
- export type ITask = IExtendId<IAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { IAttributes as IConfirmRegisterServiceActionAttributes } from '../action/interact/confirm/registerService';
2
- import { IExtendId } from '../autoGenerated';
3
- import { ITaskAttributes } from '../task';
4
- import { TaskName } from '../taskName';
5
- export type IData = IConfirmRegisterServiceActionAttributes;
6
- export interface IAttributes extends ITaskAttributes {
7
- name: TaskName.ConfirmRegisterServiceTransaction;
8
- data: IData;
9
- }
10
- /**
11
- * サービス登録資産取引確定タスク
12
- */
13
- export type ITask = IExtendId<IAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,24 +0,0 @@
1
- import { IPurpose } from '../action/authorize/offer/product';
2
- import { IExtendId } from '../autoGenerated';
3
- import { IProject } from '../project';
4
- import { ITaskAttributes } from '../task';
5
- import { TaskName } from '../taskName';
6
- export interface IData {
7
- agent?: {
8
- id: string;
9
- };
10
- /**
11
- * 承認アクションID指定であれば、指定アクションのみ中止
12
- */
13
- id?: string;
14
- project: Pick<IProject, 'id' | 'typeOf'>;
15
- purpose: IPurpose;
16
- }
17
- export interface IAttributes extends ITaskAttributes {
18
- name: TaskName.VoidRegisterServiceTransaction;
19
- data: IData;
20
- }
21
- /**
22
- * サービス登録中止タスクインターフェース
23
- */
24
- export type ITask = IExtendId<IAttributes>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,51 +0,0 @@
1
- import { IMultilingualString } from '../multilingualString';
2
- import { IPlace as IBusStop } from '../place/busStop';
3
- import { IProject } from '../project';
4
- import { ITrip as IBaseTrip } from '../trip';
5
- import { TripType } from '../tripType';
6
- export type IArrivalBusStop = Pick<IBusStop, 'typeOf' | 'branchCode' | 'name'>;
7
- export type IDepartureBusStop = Pick<IBusStop, 'typeOf' | 'branchCode' | 'name'>;
8
- export interface ITrip extends Pick<IBaseTrip, 'id' | 'name' | 'offers'> {
9
- arrivalBusStop: IArrivalBusStop;
10
- departureBusStop: IDepartureBusStop;
11
- identifier: string;
12
- project: Pick<IProject, 'id' | 'typeOf'>;
13
- typeOf: TripType.BusTrip;
14
- }
15
- export interface ITripWithDetails extends Pick<ITrip, 'id' | 'name' | 'arrivalBusStop' | 'departureBusStop' | 'identifier' | 'typeOf'> {
16
- arrivalTime: Date;
17
- busName: IMultilingualString;
18
- busNumber: string;
19
- departureTime: Date;
20
- }
21
- export type ISortOrder = any;
22
- export interface ISearchConditions {
23
- limit?: number;
24
- page?: number;
25
- sort?: ISortOrder;
26
- project?: {
27
- id?: {
28
- $eq?: string;
29
- };
30
- };
31
- id?: {
32
- $in?: string[];
33
- };
34
- identifier?: {
35
- $eq?: string;
36
- };
37
- name?: {
38
- $regex?: string;
39
- };
40
- typeOf: TripType;
41
- additionalProperty?: {
42
- $elemMatch?: {
43
- name?: {
44
- /**
45
- * 一致する名称の追加特性がひとつでも存在する
46
- */
47
- $eq?: string;
48
- };
49
- };
50
- };
51
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { IThing } from './thing';
2
- import { TripType } from './tripType';
3
- /**
4
- * トリップ
5
- * {@link https://schema.org/Trip}
6
- */
7
- export interface ITrip extends Pick<IThing, 'name'> {
8
- arrivalTime: Date;
9
- departureTime: Date;
10
- id?: string;
11
- offers?: any;
12
- typeOf: TripType;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- /**
2
- * トリップタイプ
3
- */
4
- export declare enum TripType {
5
- BusTrip = "BusTrip",
6
- Trip = "Trip"
7
- }
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TripType = void 0;
4
- /**
5
- * トリップタイプ
6
- */
7
- var TripType;
8
- (function (TripType) {
9
- TripType["BusTrip"] = "BusTrip";
10
- TripType["Trip"] = "Trip";
11
- })(TripType || (exports.TripType = TripType = {}));