@chevre/factory 4.329.0-alpha.0 → 4.329.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/action/authorize/offer/product.d.ts +5 -2
- package/lib/action/authorize/offer/seatReservation.d.ts +1 -2
- package/lib/action/authorize/paymentMethod/any.d.ts +2 -1
- package/lib/assetTransaction/registerService.d.ts +4 -2
- package/lib/index.d.ts +7 -3
- package/lib/index.js +6 -2
- package/lib/offer/aggregateOffer.d.ts +19 -0
- package/lib/offer/aggregateOffer.js +2 -0
- package/lib/order.d.ts +4 -2
- package/lib/permit.d.ts +6 -1
- package/lib/product.d.ts +4 -0
- package/lib/reservation.d.ts +1 -1
- package/lib/service/paymentService.d.ts +23 -4
- package/lib/task/syncAggregateOffer.d.ts +25 -0
- package/lib/task/syncAggregateOffer.js +2 -0
- package/lib/task.d.ts +5 -0
- package/lib/taskName.d.ts +4 -0
- package/lib/taskName.js +4 -0
- package/lib/unitPriceOffer.d.ts +10 -17
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import * as RegisterServiceTransactionFactory from '../../../assetTransaction/re
|
|
|
4
4
|
import { AssetTransactionType } from '../../../assetTransactionType';
|
|
5
5
|
import { IOffer } from '../../../offer';
|
|
6
6
|
import * as OrderFactory from '../../../order';
|
|
7
|
-
import { IPermit } from '../../../permit';
|
|
7
|
+
import { IIssuedThroughAsProduct, IPermit } from '../../../permit';
|
|
8
8
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
9
9
|
import { IProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecification } from '../../../product';
|
|
10
10
|
import { ISeller } from '../../../seller';
|
|
@@ -13,8 +13,11 @@ import * as AuthorizeActionFactory from '../../authorize';
|
|
|
13
13
|
import { IPointAward } from '../../transfer/moneyTransfer';
|
|
14
14
|
export declare type IAgent = ActionFactory.IParticipantAsSeller;
|
|
15
15
|
export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
|
|
16
|
+
export declare type IPermitIssuedByProduct = Omit<IPermit, 'issuedThrough'> & {
|
|
17
|
+
issuedThrough?: IIssuedThroughAsProduct;
|
|
18
|
+
};
|
|
16
19
|
export declare type IItemOffered = Pick<IProduct, 'typeOf' | 'id' | 'name'> & {
|
|
17
|
-
serviceOutput: IProductServiceOutput &
|
|
20
|
+
serviceOutput: IProductServiceOutput & IPermitIssuedByProduct;
|
|
18
21
|
pointAward?: IPointAward;
|
|
19
22
|
};
|
|
20
23
|
export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
|
|
@@ -57,12 +57,11 @@ export declare type IAcceptedOfferPriceSpecification = ITicketPriceSpecification
|
|
|
57
57
|
*/
|
|
58
58
|
appliesToMovieTicket?: ReserveTransactionFactory.IAcceptedAppliesToMovieTicket;
|
|
59
59
|
};
|
|
60
|
-
export declare type IAcceptedAddOn = Pick<OfferFactory.IAddOn, 'typeOf' | 'id' | 'priceCurrency'>;
|
|
61
60
|
/**
|
|
62
61
|
* 受け入れられたチケットオファー
|
|
63
62
|
*/
|
|
64
63
|
export declare type IAcceptedOffer4chevre = Pick<ITicketOffer, 'id' | 'identifier' | 'typeOf' | 'priceCurrency' | 'itemOffered' | 'additionalProperty'> & Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'addOn' | 'additionalProperty'> & {
|
|
65
|
-
addOn?: IAcceptedAddOn[];
|
|
64
|
+
addOn?: ReserveTransactionFactory.IAcceptedAddOn[];
|
|
66
65
|
itemOffered?: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
|
|
67
66
|
priceSpecification: IAcceptedOfferPriceSpecification;
|
|
68
67
|
};
|
|
@@ -106,7 +106,7 @@ export interface IResultPaymentMethod {
|
|
|
106
106
|
currency?: string;
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
|
-
export interface
|
|
109
|
+
export interface IResultAsInvoice {
|
|
110
110
|
/**
|
|
111
111
|
* The identifier for the account the payment will be applied to.
|
|
112
112
|
*/
|
|
@@ -141,6 +141,7 @@ export interface IResult {
|
|
|
141
141
|
typeOf: ResultType;
|
|
142
142
|
issuedThrough: IOrderPaymentMethodIssuedThrough;
|
|
143
143
|
}
|
|
144
|
+
export declare type IResult = IResultAsInvoice | IResultAsInvoice[];
|
|
144
145
|
export interface IPurpose {
|
|
145
146
|
typeOf: TransactionType;
|
|
146
147
|
id: string;
|
|
@@ -4,7 +4,7 @@ import * as AssetTransactionFactory from '../assetTransaction';
|
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
6
|
import { OfferType } from '../offerType';
|
|
7
|
-
import { IPermit } from '../permit';
|
|
7
|
+
import { IIssuedThroughAsProduct, IPermit } from '../permit';
|
|
8
8
|
import { IProduct } from '../product';
|
|
9
9
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
10
10
|
export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.RegisterService, IAgent, undefined, IObjectWithoutDetail>;
|
|
@@ -52,7 +52,9 @@ export interface IAcceptedPointAward {
|
|
|
52
52
|
};
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
|
-
export declare type IServiceOutput = IPermit
|
|
55
|
+
export declare type IServiceOutput = Omit<IPermit, 'issuedThrough'> & {
|
|
56
|
+
issuedThrough?: IIssuedThroughAsProduct;
|
|
57
|
+
};
|
|
56
58
|
export interface IAcceptedItemOffered {
|
|
57
59
|
id?: string;
|
|
58
60
|
pointAward?: IAcceptedPointAward;
|
package/lib/index.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ import * as MerchantReturnPolicyFactory from './merchantReturnPolicy';
|
|
|
69
69
|
import * as MonetaryAmountFactory from './monetaryAmount';
|
|
70
70
|
import { IMultilingualString } from './multilingualString';
|
|
71
71
|
import * as OfferFactory from './offer';
|
|
72
|
+
import * as AggregateOfferFactory from './offer/aggregateOffer';
|
|
72
73
|
import * as OfferCatalogFactory from './offerCatalog';
|
|
73
74
|
import * as OfferItemConditionFactory from './offerItemCondition';
|
|
74
75
|
import { OfferType } from './offerType';
|
|
@@ -157,6 +158,7 @@ import * as ReturnPointAwardTaskFactory from './task/returnPointAward';
|
|
|
157
158
|
import * as ReturnReserveTransactionTaskFactory from './task/returnReserveTransaction';
|
|
158
159
|
import * as SendEmailMessageTaskFactory from './task/sendEmailMessage';
|
|
159
160
|
import * as SendOrderTaskFactory from './task/sendOrder';
|
|
161
|
+
import * as SyncAggregateOfferTaskFactory from './task/syncAggregateOffer';
|
|
160
162
|
import * as SyncScreeningRoomsTaskFactory from './task/syncScreeningRooms';
|
|
161
163
|
import * as TriggerWebhookTaskFactory from './task/triggerWebhook';
|
|
162
164
|
import * as UseReservationTaskFactory from './task/useReservation';
|
|
@@ -289,6 +291,7 @@ export declare namespace action {
|
|
|
289
291
|
export import accountTitle = AccountTitleFactory;
|
|
290
292
|
export import accountType = AccountType;
|
|
291
293
|
export import additionalProperty = AdditionalPropertyFactory;
|
|
294
|
+
export import aggregateOffer = AggregateOfferFactory;
|
|
292
295
|
export import authorization = AuthorizationFactory;
|
|
293
296
|
export import categoryCode = CategoryCodeFactory;
|
|
294
297
|
export import clientUser = ClientUserFactory;
|
|
@@ -409,9 +412,9 @@ export import reservationStatusType = ReservationStatusType;
|
|
|
409
412
|
export import reservationType = ReservationType;
|
|
410
413
|
export import seller = SellerFactory;
|
|
411
414
|
export declare namespace task {
|
|
412
|
-
type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.CreateEvent ? CreateEventTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IData : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.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.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IData : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IData : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IData : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IData : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IData : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IData : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IData : T extends TaskName.SendOrder ? SendOrderTaskFactory.IData : T extends TaskName.SyncScreeningRooms ? SyncScreeningRoomsTaskFactory.IData : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IData : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IData : T extends TaskName.UseReservation ? UseReservationTaskFactory.IData : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IData : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IData : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IData : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IData : TaskFactory.IData;
|
|
413
|
-
type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.CreateEvent ? CreateEventTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IAttributes : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.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.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IAttributes : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IAttributes : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IAttributes : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IAttributes : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IAttributes : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IAttributes : T extends TaskName.SendOrder ? SendOrderTaskFactory.IAttributes : T extends TaskName.SyncScreeningRooms ? SyncScreeningRoomsTaskFactory.IAttributes : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IAttributes : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IAttributes : T extends TaskName.UseReservation ? UseReservationTaskFactory.IAttributes : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IAttributes : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IAttributes : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IAttributes : TaskFactory.IAttributes;
|
|
414
|
-
type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.CreateEvent ? CreateEventTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.ITask : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.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.OnResourceUpdated ? OnResourceUpdatedTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.ITask : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.ITask : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.ITask : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.ITask : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.ITask : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.ITask : T extends TaskName.SendOrder ? SendOrderTaskFactory.ITask : T extends TaskName.SyncScreeningRooms ? SyncScreeningRoomsTaskFactory.ITask : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.ITask : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.ITask : T extends TaskName.UseReservation ? UseReservationTaskFactory.ITask : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.ITask : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.ITask : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.ITask : TaskFactory.ITask;
|
|
415
|
+
type IData<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IData : T extends TaskName.CreateEvent ? CreateEventTaskFactory.IData : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IData : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IData : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.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.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IData : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IData : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IData : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IData : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IData : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IData : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IData : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IData : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IData : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IData : T extends TaskName.SendOrder ? SendOrderTaskFactory.IData : T extends TaskName.SyncAggregateOffer ? SyncAggregateOfferTaskFactory.IData : T extends TaskName.SyncScreeningRooms ? SyncScreeningRoomsTaskFactory.IData : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IData : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IData : T extends TaskName.UseReservation ? UseReservationTaskFactory.IData : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IData : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IData : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IData : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IData : TaskFactory.IData;
|
|
416
|
+
type IAttributes<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes : T extends TaskName.CreateEvent ? CreateEventTaskFactory.IAttributes : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.IAttributes : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.IAttributes : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.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.OnResourceUpdated ? OnResourceUpdatedTaskFactory.IAttributes : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.IAttributes : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.IAttributes : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.IAttributes : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.IAttributes : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.IAttributes : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.IAttributes : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.IAttributes : T extends TaskName.SendOrder ? SendOrderTaskFactory.IAttributes : T extends TaskName.SyncAggregateOffer ? SyncAggregateOfferTaskFactory.IAttributes : T extends TaskName.SyncScreeningRooms ? SyncScreeningRoomsTaskFactory.IAttributes : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.IAttributes : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.IAttributes : T extends TaskName.UseReservation ? UseReservationTaskFactory.IAttributes : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.IAttributes : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.IAttributes : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IAttributes : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IAttributes : TaskFactory.IAttributes;
|
|
417
|
+
type ITask<T extends TaskName | string> = T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask : T extends TaskName.CreateEvent ? CreateEventTaskFactory.ITask : T extends TaskName.DeleteTransaction ? DeleteTransactionTaskFactory.ITask : T extends TaskName.GivePointAward ? GivePointAwardTaskFactory.ITask : T extends TaskName.ConfirmMoneyTransfer ? ConfirmMoneyTransferTaskFactory.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.OnResourceUpdated ? OnResourceUpdatedTaskFactory.ITask : T extends TaskName.PlaceOrder ? PlaceOrderTaskFactory.ITask : T extends TaskName.ConfirmRegisterService ? ConfirmRegisterServiceTaskFactory.ITask : T extends TaskName.ConfirmRegisterServiceTransaction ? ConfirmRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.ReturnMoneyTransfer ? ReturnMoneyTransferTaskFactory.ITask : T extends TaskName.ReturnOrder ? ReturnOrderTaskFactory.ITask : T extends TaskName.ReturnPayTransaction ? ReturnPayTransactionTaskFactory.ITask : T extends TaskName.ReturnPointAward ? ReturnPointAwardTaskFactory.ITask : T extends TaskName.ReturnReserveTransaction ? ReturnReserveTransactionTaskFactory.ITask : T extends TaskName.SendEmailMessage ? SendEmailMessageTaskFactory.ITask : T extends TaskName.SendOrder ? SendOrderTaskFactory.ITask : T extends TaskName.SyncAggregateOffer ? SyncAggregateOfferTaskFactory.ITask : T extends TaskName.SyncScreeningRooms ? SyncScreeningRoomsTaskFactory.ITask : T extends TaskName.ConfirmPayTransaction ? ConfirmPayTransactionTaskFactory.ITask : T extends TaskName.TriggerWebhook ? TriggerWebhookTaskFactory.ITask : T extends TaskName.UseReservation ? UseReservationTaskFactory.ITask : T extends TaskName.VoidMoneyTransferTransaction ? VoidMoneyTransferTransactionTaskFactory.ITask : T extends TaskName.VoidPayTransaction ? VoidPayTransactionTaskFactory.ITask : T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.ITask : T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.ITask : TaskFactory.ITask;
|
|
415
418
|
export import ISearchConditions = TaskFactory.ISearchConditions;
|
|
416
419
|
export import IExecutionResult = TaskFactory.IExecutionResult;
|
|
417
420
|
export import aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
|
|
@@ -430,6 +433,7 @@ export declare namespace task {
|
|
|
430
433
|
export import registerService = RegisterServiceTaskFactory;
|
|
431
434
|
export import reserve = ReserveTaskFactory;
|
|
432
435
|
export import sendEmailMessage = SendEmailMessageTaskFactory;
|
|
436
|
+
export import syncAggregateOffer = SyncAggregateOfferTaskFactory;
|
|
433
437
|
export import syncScreeningRooms = SyncScreeningRoomsTaskFactory;
|
|
434
438
|
export import triggerWebhook = TriggerWebhookTaskFactory;
|
|
435
439
|
export import useReservation = UseReservationTaskFactory;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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.quantitativeValue = exports.qualitativeValue = void 0;
|
|
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.quantitativeValue = exports.qualitativeValue = exports.propertyValue = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -66,6 +66,7 @@ var LanguageFactory = require("./language");
|
|
|
66
66
|
var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
|
|
67
67
|
var MonetaryAmountFactory = require("./monetaryAmount");
|
|
68
68
|
var OfferFactory = require("./offer");
|
|
69
|
+
var AggregateOfferFactory = require("./offer/aggregateOffer");
|
|
69
70
|
var OfferCatalogFactory = require("./offerCatalog");
|
|
70
71
|
var OfferItemConditionFactory = require("./offerItemCondition");
|
|
71
72
|
var offerType_1 = require("./offerType");
|
|
@@ -131,6 +132,7 @@ var RefundTaskFactory = require("./task/refund");
|
|
|
131
132
|
var RegisterServiceTaskFactory = require("./task/registerService");
|
|
132
133
|
var ReserveTaskFactory = require("./task/reserve");
|
|
133
134
|
var SendEmailMessageTaskFactory = require("./task/sendEmailMessage");
|
|
135
|
+
var SyncAggregateOfferTaskFactory = require("./task/syncAggregateOffer");
|
|
134
136
|
var SyncScreeningRoomsTaskFactory = require("./task/syncScreeningRooms");
|
|
135
137
|
var TriggerWebhookTaskFactory = require("./task/triggerWebhook");
|
|
136
138
|
var UseReservationTaskFactory = require("./task/useReservation");
|
|
@@ -271,6 +273,7 @@ var action;
|
|
|
271
273
|
exports.accountTitle = AccountTitleFactory;
|
|
272
274
|
exports.accountType = accountType_1.AccountType;
|
|
273
275
|
exports.additionalProperty = AdditionalPropertyFactory;
|
|
276
|
+
exports.aggregateOffer = AggregateOfferFactory;
|
|
274
277
|
exports.authorization = AuthorizationFactory;
|
|
275
278
|
exports.categoryCode = CategoryCodeFactory;
|
|
276
279
|
exports.clientUser = ClientUserFactory;
|
|
@@ -381,6 +384,7 @@ var task;
|
|
|
381
384
|
task.registerService = RegisterServiceTaskFactory;
|
|
382
385
|
task.reserve = ReserveTaskFactory;
|
|
383
386
|
task.sendEmailMessage = SendEmailMessageTaskFactory;
|
|
387
|
+
task.syncAggregateOffer = SyncAggregateOfferTaskFactory;
|
|
384
388
|
task.syncScreeningRooms = SyncScreeningRoomsTaskFactory;
|
|
385
389
|
task.triggerWebhook = TriggerWebhookTaskFactory;
|
|
386
390
|
task.useReservation = UseReservationTaskFactory;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IOffer } from '../offer';
|
|
2
|
+
import { OfferType } from '../offerType';
|
|
3
|
+
import { IUnitPriceOffer } from '../unitPriceOffer';
|
|
4
|
+
export declare type ISubOffer = IUnitPriceOffer;
|
|
5
|
+
/**
|
|
6
|
+
* 集計オファー
|
|
7
|
+
*/
|
|
8
|
+
export interface IAggregateOffer extends Pick<IOffer, 'typeOf' | 'project'> {
|
|
9
|
+
typeOf: OfferType.AggregateOffer;
|
|
10
|
+
highPrice?: number;
|
|
11
|
+
lowPrice?: number;
|
|
12
|
+
offerCount?: number;
|
|
13
|
+
/**
|
|
14
|
+
* サブオファー
|
|
15
|
+
* 基本的に1つの基本オファーが含まれる
|
|
16
|
+
* 条件によるバリエーションが存在する場合、2つ以上のオファーが含まれる
|
|
17
|
+
*/
|
|
18
|
+
offers: ISubOffer[];
|
|
19
|
+
}
|
package/lib/order.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { IOffer } from './offer';
|
|
|
11
11
|
import { OrderStatus } from './orderStatus';
|
|
12
12
|
import { OrganizationType } from './organizationType';
|
|
13
13
|
import { PaymentStatusType } from './paymentStatusType';
|
|
14
|
-
import { IPermit as IBasePermit } from './permit';
|
|
14
|
+
import { IIssuedThroughAsProduct, IPermit as IBasePermit } from './permit';
|
|
15
15
|
import { IPerson, IProfile } from './person';
|
|
16
16
|
import { PersonType } from './personType';
|
|
17
17
|
import { PlaceType } from './placeType';
|
|
@@ -136,7 +136,9 @@ export declare type IEventReservation = Pick<EventReservationFactory.IReservatio
|
|
|
136
136
|
reservedTicket: IReservedTicket;
|
|
137
137
|
};
|
|
138
138
|
export declare type IReservation = IBusReservation | IEventReservation;
|
|
139
|
-
export declare type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | '
|
|
139
|
+
export declare type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | 'name' | 'typeOf' | 'validFor'> & {
|
|
140
|
+
issuedThrough?: IIssuedThroughAsProduct;
|
|
141
|
+
};
|
|
140
142
|
export interface IMoneyTransferPendingTransaction {
|
|
141
143
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
142
144
|
/**
|
package/lib/permit.d.ts
CHANGED
|
@@ -4,10 +4,15 @@ import { IOrganization } from './organization';
|
|
|
4
4
|
import { IProduct } from './product';
|
|
5
5
|
import { IProject } from './project';
|
|
6
6
|
import { IPropertyValue } from './propertyValue';
|
|
7
|
+
import { PaymentServiceType } from './service/paymentService';
|
|
7
8
|
export declare enum PermitType {
|
|
8
9
|
Permit = "Permit"
|
|
9
10
|
}
|
|
10
|
-
export declare type
|
|
11
|
+
export declare type IIssuedThroughAsPaymentService = Pick<IProduct, 'id' | 'serviceType'> & {
|
|
12
|
+
typeOf: PaymentServiceType.CreditCard;
|
|
13
|
+
};
|
|
14
|
+
export declare type IIssuedThroughAsProduct = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'>;
|
|
15
|
+
export declare type IIssuedThrough = IIssuedThroughAsPaymentService | IIssuedThroughAsProduct;
|
|
11
16
|
export declare type IPaymentAccount = Pick<IAccount, 'accountNumber' | 'typeOf'>;
|
|
12
17
|
export declare type IPaymentAccountWithDetail = Pick<IAccount, 'accountNumber' | 'availableBalance' | 'balance' | 'typeOf'>;
|
|
13
18
|
export declare type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
|
package/lib/product.d.ts
CHANGED
|
@@ -245,6 +245,10 @@ export interface ITicketOffer extends Pick<IBaseOffer, 'name' | 'description' |
|
|
|
245
245
|
name: IOfferName;
|
|
246
246
|
priceSpecification: ITicketPriceSpecification;
|
|
247
247
|
itemOffered?: UnitPriceOfferFactory.IItemOffered;
|
|
248
|
+
offerIndex?: number;
|
|
249
|
+
/**
|
|
250
|
+
* カタログ内ソートインデックス
|
|
251
|
+
*/
|
|
248
252
|
sortIndex?: number;
|
|
249
253
|
typeOf: OfferType.Offer;
|
|
250
254
|
}
|
package/lib/reservation.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ export interface IBroker {
|
|
|
166
166
|
identifier?: IPropertyValue<string>[];
|
|
167
167
|
name?: string;
|
|
168
168
|
}
|
|
169
|
-
export declare type IProgramMembershipUsed = IPermit
|
|
169
|
+
export declare type IProgramMembershipUsed = Pick<IPermit, 'identifier' | 'issuedThrough' | 'project' | 'typeOf'>;
|
|
170
170
|
export declare type IServiceTypeOfIssuedThrough = Pick<IServiceType, 'codeValue' | 'inCodeSet' | 'typeOf'>;
|
|
171
171
|
export declare type IServiceLocationContainedInPlace = Pick<MovieTheaterFactory.IPlaceWithoutScreeningRoom, 'typeOf' | 'id' | 'branchCode'> & {
|
|
172
172
|
name?: IMultilingualString;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IInvoice } from '../invoice';
|
|
2
|
+
import { IIssuedThrough, IPermit } from '../permit';
|
|
2
3
|
import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
|
|
3
4
|
import { IOnPaymentStatusChanged, IProject } from '../project';
|
|
4
5
|
import { IPropertyValue } from '../propertyValue';
|
|
@@ -70,13 +71,26 @@ export interface IPaymentMethodAsServiceOutput {
|
|
|
70
71
|
currency: string;
|
|
71
72
|
};
|
|
72
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* 出力されるインボイス
|
|
76
|
+
*/
|
|
73
77
|
export interface IInvoiceAsServiceOutput extends Pick<IInvoice, 'paymentStatus' | 'typeOf'> {
|
|
74
78
|
/**
|
|
75
79
|
* 発行される決済方法
|
|
76
80
|
*/
|
|
77
81
|
paymentMethod?: IPaymentMethodAsServiceOutput;
|
|
78
82
|
}
|
|
79
|
-
|
|
83
|
+
/**
|
|
84
|
+
* 出力されるメンバーシップ
|
|
85
|
+
*/
|
|
86
|
+
export declare type IPermitAsServiceOutput = Pick<IPermit, 'typeOf'> & {
|
|
87
|
+
/**
|
|
88
|
+
* メンバーシップサービス
|
|
89
|
+
* メンバーシップ区分が含まれる
|
|
90
|
+
*/
|
|
91
|
+
issuedThrough: Pick<IIssuedThrough, 'serviceType'>;
|
|
92
|
+
};
|
|
93
|
+
export declare type IServiceOutput = IInvoiceAsServiceOutput | IPermitAsServiceOutput;
|
|
80
94
|
/**
|
|
81
95
|
* 決済サービス
|
|
82
96
|
* {@link https://schema.org/Service}
|
|
@@ -86,19 +100,24 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
|
|
|
86
100
|
typeOf: PaymentServiceType;
|
|
87
101
|
id?: string;
|
|
88
102
|
availableChannel?: IAvailableChannel;
|
|
103
|
+
/**
|
|
104
|
+
* The product identifier, such as ISBN.
|
|
105
|
+
* プロジェクト内でユニークな想定
|
|
106
|
+
*/
|
|
89
107
|
productID: string;
|
|
90
108
|
/**
|
|
91
109
|
* 決済サービス提供者(決済サービスを利用する販売者)
|
|
92
110
|
*/
|
|
93
111
|
provider?: IProvider[];
|
|
94
112
|
/**
|
|
95
|
-
*
|
|
113
|
+
* The tangible thing generated by the service, e.g. a passport, permit, etc.
|
|
114
|
+
* (InvoiceやPermit)
|
|
96
115
|
*/
|
|
97
|
-
serviceOutput?: IServiceOutput;
|
|
116
|
+
serviceOutput?: IServiceOutput | IServiceOutput[];
|
|
98
117
|
/**
|
|
99
118
|
* The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
|
|
100
119
|
* 決済サービスの場合、serviceType.codeValueが決済方法区分
|
|
101
120
|
*/
|
|
102
|
-
serviceType
|
|
121
|
+
serviceType: IServiceType;
|
|
103
122
|
additionalProperty?: IPropertyValue<string>[];
|
|
104
123
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { IExtendId } from '../autoGenerated';
|
|
2
|
+
import { OfferType } from '../offerType';
|
|
3
|
+
import * as TaskFactory from '../task';
|
|
4
|
+
import { TaskName } from '../taskName';
|
|
5
|
+
export interface IData {
|
|
6
|
+
id?: {
|
|
7
|
+
$in: string[];
|
|
8
|
+
};
|
|
9
|
+
identifier?: {
|
|
10
|
+
$in: string[];
|
|
11
|
+
};
|
|
12
|
+
isDeleted: boolean;
|
|
13
|
+
project: {
|
|
14
|
+
id: string;
|
|
15
|
+
};
|
|
16
|
+
typeOf: OfferType.AggregateOffer | OfferType.Offer;
|
|
17
|
+
}
|
|
18
|
+
export interface IAttributes extends TaskFactory.IAttributes {
|
|
19
|
+
name: TaskName.SyncAggregateOffer;
|
|
20
|
+
data: IData;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* オファー同期タスク
|
|
24
|
+
*/
|
|
25
|
+
export declare type ITask = IExtendId<IAttributes>;
|
package/lib/task.d.ts
CHANGED
|
@@ -21,6 +21,11 @@ export interface IExecutor {
|
|
|
21
21
|
*/
|
|
22
22
|
export declare type ITask = IExtendId<IAttributes>;
|
|
23
23
|
export interface IAttributes {
|
|
24
|
+
/**
|
|
25
|
+
* タスク識別子
|
|
26
|
+
* 冗長なタスク作成を回避するために使用(2023-09-01~)
|
|
27
|
+
*/
|
|
28
|
+
identifier?: string;
|
|
24
29
|
project: Pick<IProject, 'id' | 'typeOf'>;
|
|
25
30
|
/**
|
|
26
31
|
* タスク名
|
package/lib/taskName.d.ts
CHANGED
package/lib/taskName.js
CHANGED
package/lib/unitPriceOffer.d.ts
CHANGED
|
@@ -53,17 +53,6 @@ export interface ISettings {
|
|
|
53
53
|
export interface IAdvanceBookingRequirement extends Pick<IQuantitativeValue<UnitCode.Sec>, 'typeOf' | 'minValue' | 'unitCode' | 'description'> {
|
|
54
54
|
}
|
|
55
55
|
export declare type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfStock;
|
|
56
|
-
export declare type ISubOfferPriceSpecification = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'price' | 'typeOf'>;
|
|
57
|
-
export interface ISubOffer extends Pick<IOffer, 'typeOf' | 'identifier' | 'name'> {
|
|
58
|
-
/**
|
|
59
|
-
* コード
|
|
60
|
-
*/
|
|
61
|
-
identifier: string;
|
|
62
|
-
/**
|
|
63
|
-
* 単価仕様
|
|
64
|
-
*/
|
|
65
|
-
priceSpecification: ISubOfferPriceSpecification;
|
|
66
|
-
}
|
|
67
56
|
/**
|
|
68
57
|
* 単価オファー
|
|
69
58
|
*/
|
|
@@ -79,12 +68,6 @@ export interface IUnitPriceOffer extends Pick<IOffer, 'project' | 'typeOf' | 'pr
|
|
|
79
68
|
*/
|
|
80
69
|
identifier: string;
|
|
81
70
|
name: IName;
|
|
82
|
-
/**
|
|
83
|
-
* サブオファー
|
|
84
|
-
* 基本的に1つの基本オファーが含まれる
|
|
85
|
-
* 条件によるバリエーションが存在する場合、2つ以上のオファーが含まれる
|
|
86
|
-
*/
|
|
87
|
-
offers: ISubOffer[];
|
|
88
71
|
/**
|
|
89
72
|
* 単価仕様
|
|
90
73
|
*/
|
|
@@ -99,6 +82,7 @@ export interface IUnitPriceOffer extends Pick<IOffer, 'project' | 'typeOf' | 'pr
|
|
|
99
82
|
* ソート条件
|
|
100
83
|
*/
|
|
101
84
|
export interface ISortOrder {
|
|
85
|
+
identifier?: SortType;
|
|
102
86
|
'priceSpecification.price'?: SortType;
|
|
103
87
|
}
|
|
104
88
|
/**
|
|
@@ -162,6 +146,7 @@ export interface ISearchConditions {
|
|
|
162
146
|
*/
|
|
163
147
|
id?: {
|
|
164
148
|
$eq?: string;
|
|
149
|
+
$in?: string[];
|
|
165
150
|
};
|
|
166
151
|
};
|
|
167
152
|
};
|
|
@@ -258,4 +243,12 @@ export interface ISearchConditions {
|
|
|
258
243
|
* 有効期間設定がない、あるいは、有効期間内
|
|
259
244
|
*/
|
|
260
245
|
onlyValid?: boolean;
|
|
246
|
+
parentOffer?: {
|
|
247
|
+
/**
|
|
248
|
+
* 集計オファーID
|
|
249
|
+
*/
|
|
250
|
+
id?: {
|
|
251
|
+
$in?: string[];
|
|
252
|
+
};
|
|
253
|
+
};
|
|
261
254
|
}
|