@chevre/factory 4.259.0-alpha.9 → 4.259.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/lib/chevre.d.ts +0 -7
  2. package/lib/chevre.js +3 -5
  3. package/lib/factory/account/action/moneyTransfer.d.ts +1 -1
  4. package/lib/factory/account.d.ts +1 -1
  5. package/lib/factory/accountTitle.d.ts +1 -1
  6. package/lib/factory/action/authorize/offer/product.d.ts +5 -1
  7. package/lib/factory/action/authorize/offer/seatReservation.d.ts +16 -5
  8. package/lib/factory/action/interact/confirm/registerService.d.ts +1 -1
  9. package/lib/factory/action/interact/confirm/reservation.d.ts +1 -1
  10. package/lib/factory/action.d.ts +2 -2
  11. package/lib/factory/assetTransaction/pay.d.ts +1 -1
  12. package/lib/factory/assetTransaction/refund.d.ts +1 -1
  13. package/lib/factory/authorization.d.ts +1 -1
  14. package/lib/factory/categoryCode.d.ts +6 -4
  15. package/lib/factory/creativeWork/message/email.d.ts +2 -2
  16. package/lib/factory/creativeWork/movie.d.ts +1 -1
  17. package/lib/factory/creativeWork.d.ts +1 -1
  18. package/lib/factory/customer.d.ts +1 -1
  19. package/lib/factory/event/screeningEvent.d.ts +10 -6
  20. package/lib/factory/event/screeningEventSeries.d.ts +3 -3
  21. package/lib/factory/event.d.ts +3 -3
  22. package/lib/factory/merchantReturnPolicy.d.ts +1 -1
  23. package/lib/factory/monetaryAmount.d.ts +1 -1
  24. package/lib/factory/offer.d.ts +7 -24
  25. package/lib/factory/offerCatalog.d.ts +9 -6
  26. package/lib/factory/order.d.ts +2 -3
  27. package/lib/factory/organization.d.ts +1 -1
  28. package/lib/factory/paymentMethod.d.ts +2 -2
  29. package/lib/factory/permit.d.ts +2 -2
  30. package/lib/factory/place.d.ts +2 -2
  31. package/lib/factory/priceSpecification/categoryCodeChargeSpecification.d.ts +2 -1
  32. package/lib/factory/priceSpecification/movieTicketTypeChargeSpecification.d.ts +0 -3
  33. package/lib/factory/priceSpecification/unitPriceSpecification.d.ts +2 -2
  34. package/lib/factory/priceSpecification.d.ts +1 -1
  35. package/lib/factory/product.d.ts +2 -1
  36. package/lib/factory/programMembership.d.ts +1 -1
  37. package/lib/factory/quantitativeValue.d.ts +1 -1
  38. package/lib/factory/report/accountingReport.d.ts +14 -8
  39. package/lib/factory/reservation/event.d.ts +1 -1
  40. package/lib/factory/reservation.d.ts +4 -5
  41. package/lib/factory/seller.d.ts +2 -2
  42. package/lib/factory/service/paymentService.d.ts +6 -4
  43. package/lib/factory/task/importEventCapacitiesFromCOA.d.ts +1 -1
  44. package/lib/factory/task/importEventsFromCOA.d.ts +1 -1
  45. package/lib/factory/task/importOffersFromCOA.d.ts +1 -1
  46. package/lib/factory/task/orderProgramMembership.d.ts +1 -1
  47. package/lib/factory/task/placeOrder.d.ts +1 -1
  48. package/lib/factory/task/sendOrder.d.ts +1 -1
  49. package/lib/factory/task/voidMoneyTransferTransaction.d.ts +1 -1
  50. package/lib/factory/task/voidPayTransaction.d.ts +1 -1
  51. package/lib/factory/task/voidRegisterServiceTransaction.d.ts +1 -1
  52. package/lib/factory/task/voidReserveTransaction.d.ts +1 -1
  53. package/lib/factory/task.d.ts +1 -1
  54. package/lib/factory/transaction/moneyTransfer.d.ts +1 -1
  55. package/lib/factory/transaction/placeOrder.d.ts +1 -1
  56. package/lib/factory/transaction/returnOrder.d.ts +1 -1
  57. package/package.json +1 -1
  58. package/lib/factory/service.d.ts +0 -4
  59. package/lib/factory/service.js +0 -16
  60. package/lib/factory/serviceType.d.ts +0 -9
  61. package/lib/factory/serviceType.js +0 -2
package/lib/chevre.d.ts CHANGED
@@ -106,10 +106,8 @@ import * as ReservationPackageFactory from './factory/reservation/reservationPac
106
106
  import { ReservationStatusType } from './factory/reservationStatusType';
107
107
  import { ReservationType } from './factory/reservationType';
108
108
  import * as SellerFactory from './factory/seller';
109
- import * as ServiceFactory from './factory/service';
110
109
  import * as PaymentServiceFactory from './factory/service/paymentService';
111
110
  import * as WebAPIServiceFactory from './factory/service/webAPI';
112
- import * as ServiceTypeFactory from './factory/serviceType';
113
111
  import { SortType } from './factory/sortType';
114
112
  import * as ThingFactory from './factory/thing';
115
113
  import { UnitCode } from './factory/unitCode';
@@ -407,14 +405,9 @@ export declare namespace task {
407
405
  export import cancelAccountMoneyTransfer = CancelAccountMoneyTransferTaskFactory;
408
406
  }
409
407
  export declare namespace service {
410
- export import IHasOfferCatalog = ServiceFactory.IHasOfferCatalog;
411
- export import IPointAward = ServiceFactory.IPointAward;
412
- export import IService = ServiceFactory.IProduct;
413
- export import IServiceOutput = ServiceFactory.IServiceOutput;
414
408
  export import paymentService = PaymentServiceFactory;
415
409
  export import webAPI = WebAPIServiceFactory;
416
410
  }
417
- export import serviceType = ServiceTypeFactory;
418
411
  export import sortType = SortType;
419
412
  export import taskName = TaskName;
420
413
  export import taskStatus = TaskStatus;
package/lib/chevre.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = 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.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.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
- exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = void 0;
4
+ exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -31,8 +31,6 @@ var PayActionFactory = require("./factory/action/trade/pay");
31
31
  var RefundActionFactory = require("./factory/action/trade/refund");
32
32
  var GivePointAwardActionFactory = require("./factory/action/transfer/give/pointAward");
33
33
  var MoneyTransferActionFactory = require("./factory/action/transfer/moneyTransfer");
34
- // import * as PrintActionFactory from './factory/action/transfer/print';
35
- // import * as PrintTicketActionFactory from './factory/action/transfer/print/ticket';
36
34
  var ReturnMoneyTransferActionFactory = require("./factory/action/transfer/return/moneyTransfer");
37
35
  var ReturnOrderActionFactory = require("./factory/action/transfer/return/order");
38
36
  var ReturnPaymentMethodActionFactory = require("./factory/action/transfer/return/paymentMethod");
@@ -99,7 +97,7 @@ var reservationType_1 = require("./factory/reservationType");
99
97
  var SellerFactory = require("./factory/seller");
100
98
  var PaymentServiceFactory = require("./factory/service/paymentService");
101
99
  var WebAPIServiceFactory = require("./factory/service/webAPI");
102
- var ServiceTypeFactory = require("./factory/serviceType");
100
+ // import * as ServiceTypeFactory from './factory/serviceType';
103
101
  var sortType_1 = require("./factory/sortType");
104
102
  var ThingFactory = require("./factory/thing");
105
103
  var unitCode_1 = require("./factory/unitCode");
@@ -390,7 +388,7 @@ var service;
390
388
  service.paymentService = PaymentServiceFactory;
391
389
  service.webAPI = WebAPIServiceFactory;
392
390
  })(service = exports.service || (exports.service = {}));
393
- exports.serviceType = ServiceTypeFactory;
391
+ // export import serviceType = ServiceTypeFactory;
394
392
  exports.sortType = sortType_1.SortType;
395
393
  exports.taskName = taskName_1.TaskName;
396
394
  exports.taskStatus = taskStatus_1.TaskStatus;
@@ -10,7 +10,7 @@ export declare type IRecipient = ActionFactory.IParticipant;
10
10
  /**
11
11
  * 口座以外の匿名場所インターフェース
12
12
  */
13
- export interface IAnonymousLocation extends IThing {
13
+ export interface IAnonymousLocation extends Pick<IThing, 'identifier' | 'name'> {
14
14
  /**
15
15
  * ロケーションタイプ
16
16
  */
@@ -52,7 +52,7 @@ export interface IPendingTransaction {
52
52
  * 口座
53
53
  */
54
54
  export interface IAccount {
55
- project: IProject;
55
+ project: Pick<IProject, 'id' | 'typeOf'>;
56
56
  /**
57
57
  * 口座種別
58
58
  */
@@ -12,7 +12,7 @@ export interface IDefinedTerm {
12
12
  * {@link https://pending.schema.org/CategoryCode}
13
13
  */
14
14
  export interface IAccountTitle {
15
- project: IProject;
15
+ project: Pick<IProject, 'id' | 'typeOf'>;
16
16
  typeOf: 'AccountTitle';
17
17
  /**
18
18
  * A short textual code that uniquely identifies the value.
@@ -14,7 +14,11 @@ export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | Ac
14
14
  export declare type IItemOffered = Pick<IProduct, 'project' | 'typeOf' | 'id' | 'name' | 'serviceOutput' | 'pointAward'>;
15
15
  export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
16
16
  export declare type ISellerMakesOffer = Pick<ISeller, 'project' | 'id' | 'name' | 'typeOf'>;
17
- export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'price' | 'availability' | 'availableAtOrFrom'> {
17
+ export interface IAcceptedOffer extends Pick<IOffer, 'project' | 'typeOf' | 'id' | 'identifier' | 'itemOffered' | 'name' | 'priceCurrency' | 'priceSpecification' | 'seller'> {
18
+ /**
19
+ * オファーコード
20
+ */
21
+ identifier?: string;
18
22
  /**
19
23
  * オファー対象アイテム
20
24
  */
@@ -64,7 +64,18 @@ export declare type IAcceptedOffer4chevre = Pick<ScreeningEventFactory.ITicketOf
64
64
  };
65
65
  export declare type IAcceptedOfferWithoutDetail4chevre = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail;
66
66
  export declare type IObjectWithoutDetail4chevre = ReserveTransactionFactory.IObjectWithoutDetail;
67
- export declare type IAcceptedOffer4COA = ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail & OfferFactory.seatReservation.IOfferWithDetails;
67
+ /**
68
+ * COAイベント受入オファー
69
+ */
70
+ export declare type IAcceptedOffer4COA = Pick<ReserveTransactionFactory.IAcceptedTicketOfferWithoutDetail, 'id' | 'itemOffered' | 'additionalProperty'> & Pick<OfferFactory.IOffer, 'typeOf' | 'id' | 'identifier' | 'name' | 'priceCurrency' | 'seller' | 'additionalProperty' | 'eligibleMonetaryAmount'> & {
71
+ itemOffered: ReserveTransactionFactory.IAcceptedTicketOfferItemOffered;
72
+ ticketInfo: OfferFactory.seatReservation.ICOATicketInfoWithDetails;
73
+ /**
74
+ * COAイベントでは、priceSpecificationで価格を表現しきれないので、numberとしてのpriceが必要
75
+ */
76
+ price: number;
77
+ priceSpecification?: OfferFactory.ITicketPriceSpecification;
78
+ };
68
79
  export declare type IAcceptedOfferWithoutDetail4COA = OfferFactory.seatReservation.ICOAOffer;
69
80
  export interface IObjectWithoutDetail4COA {
70
81
  acceptedOffer: IAcceptedOfferWithoutDetail4COA[];
@@ -79,7 +90,7 @@ export interface IPendingTransaction {
79
90
  typeOf: AssetTransactionType.Reserve;
80
91
  transactionNumber: string;
81
92
  }
82
- export declare type IEvent = Omit<ScreeningEventFactory.IEvent, 'offers' | 'project' | 'additionalProperty' | 'aggregateEntranceGate' | 'aggregateReservation' | 'aggregateOffer' | 'workPerformed' | 'checkInCount' | 'attendeeCount' | 'eventStatus' | 'hasOfferCatalog' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity' | 'alternateName' | 'alternativeHeadline' | 'description' | 'duration' | 'headline' | 'name' | 'location' | 'doorTime' | 'endDate' | 'startDate' | 'coaInfo'> & {
93
+ export declare type IEvent = Pick<ScreeningEventFactory.IEvent, 'id' | 'typeOf'> & {
83
94
  offers: {
84
95
  offeredThrough: ScreeningEventFactory.IOfferedThrough;
85
96
  };
@@ -104,9 +115,6 @@ export interface IPurpose {
104
115
  * authorize action error interface
105
116
  */
106
117
  export declare type IError = any;
107
- /**
108
- * 座席予約承認アクション
109
- */
110
118
  export interface IAttributes<T extends WebAPIFactory.Identifier> extends AuthorizeActionFactory.IAttributes<IObject<T>, IResult<T>> {
111
119
  typeOf: ActionType.AuthorizeAction;
112
120
  agent: IAgent;
@@ -115,4 +123,7 @@ export interface IAttributes<T extends WebAPIFactory.Identifier> extends Authori
115
123
  purpose: IPurpose;
116
124
  instrument: IInstrument<T>;
117
125
  }
126
+ /**
127
+ * イベントオファー承認アクション
128
+ */
118
129
  export declare type IAction<T extends WebAPIFactory.Identifier> = ActionFactory.IAction<IAttributes<T>>;
@@ -3,7 +3,7 @@ import { AssetTransactionType } from '../../../assetTransactionType';
3
3
  import { ISimpleOrder } from '../../../order';
4
4
  import * as OrderProgramMembershipFactory from '../../../task/orderProgramMembership';
5
5
  import * as ConfirmActionFactory from '../confirm';
6
- export declare type IObject = Omit<RegisterServiceFactory.IConfirmParams, 'id'> & {
6
+ export declare type IObject = Pick<RegisterServiceFactory.IConfirmParams, 'transactionNumber' | 'endDate'> & {
7
7
  transactionNumber?: string;
8
8
  typeOf: AssetTransactionType.RegisterService;
9
9
  object?: {
@@ -8,7 +8,7 @@ export declare type IObject4COA = COA.factory.reserve.IUpdReserveArgs & {
8
8
  transactionNumber: string;
9
9
  typeOf: 'COAReserveTransaction';
10
10
  };
11
- export declare type IObject4Chevre = Omit<ReserveTransactionFactory.IConfirmParams, 'id'> & {
11
+ export declare type IObject4Chevre = Pick<ReserveTransactionFactory.IConfirmParams, 'transactionNumber' | 'object' | 'potentialActions'> & {
12
12
  transactionNumber: string;
13
13
  typeOf: AssetTransactionType.Reserve;
14
14
  };
@@ -13,7 +13,7 @@ export interface IParticipantAsWebApplication {
13
13
  name?: string;
14
14
  url?: string;
15
15
  }
16
- export declare type IParticipantAsPerson = Omit<IPersonAttributes, 'identifier' | 'memberOf'> & {
16
+ export declare type IParticipantAsPerson = Pick<IPersonAttributes, 'id' | 'typeOf'> & {
17
17
  name?: string;
18
18
  url?: string;
19
19
  };
@@ -54,7 +54,7 @@ export declare type IAdditionalProperty = IPropertyValue<string>[];
54
54
  */
55
55
  export interface IAttributes<T extends ActionType, TObject, TResult> {
56
56
  identifier?: string;
57
- project: IProject;
57
+ project: Pick<IProject, 'id' | 'typeOf'>;
58
58
  /**
59
59
  * A property-value pair representing an additional characteristics of the entitity,
60
60
  * e.g. a product feature or another characteristic for which there is no matching property in schema.org.
@@ -95,7 +95,7 @@ export interface IObject {
95
95
  payAction?: any;
96
96
  onPaymentStatusChanged?: IOnPaymentStatusChanged;
97
97
  }
98
- export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId'>;
98
+ export declare type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMethod'>;
99
99
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Pay, IAgent, IRecipient, IObjectWithoutDetail> & {
100
100
  recipient: IRecipient;
101
101
  purpose?: IPayPurpose;
@@ -23,7 +23,7 @@ export interface IObject {
23
23
  paymentMethod: IPaymentMethod;
24
24
  refundFee?: number;
25
25
  }
26
- export declare type IObjectWithoutDetail = Omit<IObject, 'accountId' | 'paymentMethodId' | 'onPaymentStatusChanged'>;
26
+ export declare type IObjectWithoutDetail = Pick<IObject, 'typeOf' | 'id' | 'paymentMethod' | 'refundFee'>;
27
27
  export declare type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObjectWithoutDetail>;
28
28
  export interface IStartParams extends AssetTransactionFactory.IStartParams<AssetTransactionType.Refund, IAgent, IRecipient, IObject> {
29
29
  }
@@ -4,7 +4,7 @@ import { SortType } from './sortType';
4
4
  * 承認インターフェース
5
5
  */
6
6
  export interface IAuthorization {
7
- project: IProject;
7
+ project: Pick<IProject, 'id' | 'typeOf'>;
8
8
  typeOf: 'Authorization';
9
9
  code: string;
10
10
  object: any;
@@ -1,3 +1,4 @@
1
+ import { IMultilingualString } from './multilingualString';
1
2
  import { IProject } from './project';
2
3
  import { IPropertyValue } from './propertyValue';
3
4
  import { SortType } from './sortType';
@@ -51,20 +52,21 @@ export declare enum CategorySetIdentifier {
51
52
  /**
52
53
  * {@link https://schema.org/CategoryCodeSet}
53
54
  */
54
- export interface ICategoryCodeSet extends IThing {
55
+ export interface ICategoryCodeSet {
55
56
  typeOf: 'CategoryCodeSet';
56
57
  identifier: CategorySetIdentifier;
57
58
  }
58
59
  /**
59
60
  * {@link https://schema.org/CategoryCode}
60
61
  */
61
- export interface ICategoryCode extends IThing {
62
- project: IProject;
62
+ export interface ICategoryCode extends Pick<IThing, 'color' | 'image' | 'name'> {
63
+ additionalProperty?: IPropertyValue<string>[];
64
+ project: Pick<IProject, 'id' | 'typeOf'>;
63
65
  id?: string;
64
66
  typeOf: 'CategoryCode';
65
67
  codeValue: string;
66
68
  inCodeSet: ICategoryCodeSet;
67
- additionalProperty?: IPropertyValue<string>[];
69
+ name: IMultilingualString;
68
70
  paymentMethod?: {
69
71
  /**
70
72
  * 決済カード区分の場合、対応決済方法区分
@@ -13,13 +13,13 @@ export declare enum AboutIdentifier {
13
13
  OnOrderReturned = "OnOrderReturned",
14
14
  OnEventStatusChanged = "OnEventStatusChanged"
15
15
  }
16
- export interface IAbout extends IThing {
16
+ export interface IAbout extends Pick<IThing, 'name'> {
17
17
  typeOf: 'Thing';
18
18
  identifier: AboutIdentifier;
19
19
  name: string;
20
20
  }
21
21
  export interface IAttributes {
22
- project?: IProject;
22
+ project?: Pick<IProject, 'id' | 'typeOf'>;
23
23
  typeOf: CreativeWorkType.EmailMessage;
24
24
  sender: IParticipant;
25
25
  toRecipient: IParticipant;
@@ -20,7 +20,7 @@ export interface IDistributor {
20
20
  * {@link https://schema.org/Movie}
21
21
  */
22
22
  export interface ICreativeWork extends CreativeWorkFactory.ICreativeWork {
23
- project: IProject;
23
+ project: Pick<IProject, 'id' | 'typeOf'>;
24
24
  identifier: string;
25
25
  /**
26
26
  * The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
@@ -10,7 +10,7 @@ export declare type IContentRating = COA.factory.master.IKubunNameResult | strin
10
10
  * 作品インターフェース
11
11
  * {@link https://schema.org/CreativeWork}
12
12
  */
13
- export interface ICreativeWork extends IThing {
13
+ export interface ICreativeWork extends Pick<IThing, 'name' | 'identifier'> {
14
14
  typeOf: CreativeWorkType;
15
15
  id?: string;
16
16
  alternativeHeadline?: string;
@@ -16,7 +16,7 @@ export interface IContactPoint {
16
16
  * 顧客
17
17
  */
18
18
  export interface ICustomer extends IOrganization {
19
- project: IProject;
19
+ project: Pick<IProject, 'id' | 'typeOf'>;
20
20
  /**
21
21
  * 顧客コード
22
22
  */
@@ -8,12 +8,12 @@ import { OfferType } from '../offerType';
8
8
  import { OrganizationType } from '../organizationType';
9
9
  import { PlaceType } from '../placeType';
10
10
  import { PriceCurrency } from '../priceCurrency';
11
+ import { IServiceType as IProductServiceType } from '../product';
11
12
  import { IProject } from '../project';
12
13
  import { IQuantitativeValue } from '../quantitativeValue';
13
14
  import * as ReservationFactory from '../reservation';
14
15
  import { ReservationType } from '../reservationType';
15
16
  import * as WebAPIFactory from '../service/webAPI';
16
- import { IServiceType } from '../serviceType';
17
17
  import { IThing } from '../thing';
18
18
  import { UnitCode } from '../unitCode';
19
19
  /**
@@ -30,7 +30,7 @@ export interface IAggregateReservation {
30
30
  /**
31
31
  * 予約集計つきオファー
32
32
  */
33
- export interface IOfferWithAggregateReservation extends IThing {
33
+ export interface IOfferWithAggregateReservation extends Pick<IThing, 'name'> {
34
34
  typeOf: OfferType.Offer;
35
35
  id?: string;
36
36
  identifier?: string;
@@ -81,6 +81,9 @@ export interface IServiceOutput {
81
81
  };
82
82
  };
83
83
  }
84
+ export declare type IServiceType = IProductServiceType & {
85
+ id?: string;
86
+ };
84
87
  /**
85
88
  * イベントのサービス
86
89
  */
@@ -104,7 +107,7 @@ export interface ISeller {
104
107
  * イベントに対するオファー
105
108
  */
106
109
  export interface IOffer {
107
- project: IProject;
110
+ project: Pick<IProject, 'id' | 'typeOf'>;
108
111
  typeOf: OfferType.Offer;
109
112
  priceCurrency: PriceCurrency.JPY;
110
113
  /**
@@ -132,6 +135,7 @@ export interface IOffer {
132
135
  unacceptedPaymentMethod?: string[];
133
136
  seller: ISeller;
134
137
  }
138
+ export declare type IOffer4COA = Pick<IOffer, 'project' | 'typeOf' | 'offeredThrough' | 'priceCurrency'>;
135
139
  export import ITicketPriceComponent = OfferFactory.ITicketPriceComponent;
136
140
  export import ITicketPriceSpecification = OfferFactory.ITicketPriceSpecification;
137
141
  /**
@@ -212,7 +216,7 @@ export declare type ICOAOffer = COA.factory.reserve.IUpdReserveTicket & {
212
216
  };
213
217
  export declare type IWorkPerformed = ScreeningEventSeriesFactory.IWorkPerformed;
214
218
  export interface ILocation {
215
- project: IProject;
219
+ project: Pick<IProject, 'id' | 'typeOf'>;
216
220
  /**
217
221
  * 場所タイプ
218
222
  */
@@ -234,7 +238,7 @@ export interface ILocation {
234
238
  */
235
239
  maximumAttendeeCapacity?: number;
236
240
  }
237
- export declare type ISuperEvent = Omit<ScreeningEventSeriesFactory.IEvent, 'eventStatus' | 'offers'>;
241
+ export declare type ISuperEvent = Omit<ScreeningEventSeriesFactory.IEvent, 'eventStatus' | 'offers' | 'organizer'>;
238
242
  export declare type IName = IMultilingualString;
239
243
  /**
240
244
  * イベント属性
@@ -275,7 +279,7 @@ export interface IAttributes extends EventFactory.IAttributes<EventType.Screenin
275
279
  /**
276
280
  * 販売情報
277
281
  */
278
- offers?: IOffer;
282
+ offers?: IOffer | IOffer4COA;
279
283
  /**
280
284
  * 発券数
281
285
  */
@@ -13,7 +13,7 @@ import { IProject } from '../project';
13
13
  * 施設コンテンツに対するオファー
14
14
  */
15
15
  export interface IOffer {
16
- project: IProject;
16
+ project: Pick<IProject, 'id' | 'typeOf'>;
17
17
  typeOf: OfferType.Offer;
18
18
  priceCurrency: PriceCurrency.JPY;
19
19
  unacceptedPaymentMethod?: string[];
@@ -67,7 +67,7 @@ export interface ICOAInfo {
67
67
  dateMvtkBegin: string;
68
68
  }
69
69
  export interface ILocation {
70
- project: IProject;
70
+ project: Pick<IProject, 'id' | 'typeOf'>;
71
71
  typeOf: PlaceType.MovieTheater;
72
72
  /**
73
73
  * 施設ID
@@ -86,7 +86,7 @@ export interface ILocation {
86
86
  */
87
87
  kanaName?: string;
88
88
  }
89
- export interface IAttributes extends Omit<EventFactory.IAttributes<EventType.ScreeningEventSeries>, 'alternateName' | 'doorTime' | 'hasOfferCatalog' | 'maximumAttendeeCapacity' | 'remainingAttendeeCapacity'> {
89
+ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.ScreeningEventSeries>, 'project' | 'typeOf' | 'identifier' | 'name' | 'alternativeHeadline' | 'description' | 'duration' | 'endDate' | 'eventStatus' | 'headline' | 'location' | 'offers' | 'startDate' | 'workPerformed' | 'additionalProperty'> {
90
90
  /**
91
91
  * 字幕利用可能言語
92
92
  */
@@ -13,7 +13,7 @@ export interface IHasOfferCatalog {
13
13
  identifier?: string;
14
14
  }
15
15
  export interface IAttributes<T extends EventType> {
16
- project: IProject;
16
+ project: Pick<IProject, 'id' | 'typeOf'>;
17
17
  /**
18
18
  * イベントタイプ
19
19
  */
@@ -86,13 +86,13 @@ export interface IAttributes<T extends EventType> {
86
86
  additionalProperty?: IPropertyValue<string>[];
87
87
  }
88
88
  /**
89
- * イベントインターフェース
89
+ * イベント
90
90
  */
91
91
  export declare type IEvent<T extends IAttributes<EventType>> = T & {
92
92
  id: string;
93
93
  };
94
94
  /**
95
- * ソート条件インターフェース
95
+ * ソート条件
96
96
  */
97
97
  export interface ISortOrder {
98
98
  startDate?: SortType;
@@ -41,7 +41,7 @@ export declare enum MerchantReturnEnumeration {
41
41
  */
42
42
  MerchantReturnUnspecified = "MerchantReturnUnspecified"
43
43
  }
44
- export interface IMerchantReturnPolicy extends IThing {
44
+ export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
45
45
  typeOf: 'MerchantReturnPolicy';
46
46
  /**
47
47
  * The type of return fees if the product is returned due to customer remorse.
@@ -3,7 +3,7 @@ import { IThing } from './thing';
3
3
  * 金額インターフェース
4
4
  * {@link https://schema.org/MonetaryAmount}
5
5
  */
6
- export interface IMonetaryAmount extends IThing {
6
+ export interface IMonetaryAmount extends Pick<IThing, 'name'> {
7
7
  typeOf: 'MonetaryAmount';
8
8
  /**
9
9
  * The currency in which the monetary amount is expressed.
@@ -32,7 +32,7 @@ export interface ICategory {
32
32
  * アドオンインターフェース
33
33
  */
34
34
  export declare type IAddOn = IOffer;
35
- export declare type IEligibleCategoryCode = ICategoryCode;
35
+ export declare type IEligibleCategoryCode = Pick<ICategoryCode, 'project' | 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'>;
36
36
  export declare type IEligibleMonetaryAmount = IMonetaryAmount;
37
37
  /**
38
38
  * 適用サブ予約条件インターフェース
@@ -52,7 +52,7 @@ export interface IEligibleSubReservation {
52
52
  /**
53
53
  * 販売者インターフェース
54
54
  */
55
- export interface ISeller extends IThing {
55
+ export interface ISeller {
56
56
  typeOf?: string;
57
57
  id?: string;
58
58
  }
@@ -80,7 +80,7 @@ export interface IAvailableAtOrFrom {
80
80
  * to stream a TV show over the internet, to repair a motorcycle, or to loan a book.
81
81
  * {@link https://schema.org/Offer}
82
82
  */
83
- export interface IOffer extends IThing {
83
+ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternateName' | 'color' | 'identifier'> {
84
84
  project: Pick<IProject, 'id' | 'typeOf'>;
85
85
  typeOf: OfferType;
86
86
  id?: string;
@@ -145,7 +145,6 @@ export interface IOffer extends IThing {
145
145
  /**
146
146
  * オファーが有効となる地域
147
147
  */
148
- eligibleRegion?: any;
149
148
  hasMerchantReturnPolicy?: IHasMerchantReturnPolicy;
150
149
  /**
151
150
  * The item being offered.
@@ -236,7 +235,10 @@ export interface IItemOffered {
236
235
  /**
237
236
  * 単価オファーインターフェース
238
237
  */
239
- export interface IUnitPriceOffer extends IOffer {
238
+ export interface IUnitPriceOffer extends Omit<IOffer, 'seller'> {
239
+ /**
240
+ * コード
241
+ */
240
242
  identifier: string;
241
243
  /**
242
244
  * 単価仕様
@@ -385,23 +387,4 @@ export declare namespace seatReservation {
385
387
  export import ICOATicketInfo = SeatReservationOfferFactory.ICOATicketInfo;
386
388
  export import ICOATicketInfoWithDetails = SeatReservationOfferFactory.ICOATicketInfoWithDetails;
387
389
  export import ICOAOffer = SeatReservationOfferFactory.IOffer;
388
- /**
389
- * 座席予約供給情報(詳細つき)インターフェース
390
- */
391
- interface IOfferWithDetails extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
392
- /**
393
- * seat section
394
- */
395
- seatSection: string;
396
- /**
397
- * seat number
398
- */
399
- seatNumber: string;
400
- /**
401
- * ticket info
402
- */
403
- ticketInfo: ICOATicketInfoWithDetails;
404
- price: number;
405
- priceSpecification?: ITicketPriceSpecification;
406
- }
407
390
  }
@@ -1,10 +1,13 @@
1
1
  import { IMultilingualString } from './multilingualString';
2
2
  import { OfferType } from './offerType';
3
+ import { IServiceType as IProductServiceType } from './product';
3
4
  import { IProject } from './project';
4
5
  import { IPropertyValue } from './propertyValue';
5
- import { IServiceType } from './serviceType';
6
6
  import { SortType } from './sortType';
7
7
  import { IThing } from './thing';
8
+ export declare type IServiceType = IProductServiceType & {
9
+ id?: string;
10
+ };
8
11
  export interface IItemOffered {
9
12
  typeOf: string;
10
13
  serviceType?: IServiceType;
@@ -14,10 +17,10 @@ export interface IItemListElement {
14
17
  id: string;
15
18
  }
16
19
  /**
17
- * オファーカタログインターフェース
20
+ * オファーカタログ
18
21
  */
19
- export interface IOfferCatalog extends IThing {
20
- project: IProject;
22
+ export interface IOfferCatalog extends Pick<IThing, 'name' | 'description' | 'alternateName'> {
23
+ project: Pick<IProject, 'id' | 'typeOf'>;
21
24
  typeOf: 'OfferCatalog';
22
25
  id?: string;
23
26
  identifier: string;
@@ -27,13 +30,13 @@ export interface IOfferCatalog extends IThing {
27
30
  additionalProperty?: IPropertyValue<string>[];
28
31
  }
29
32
  /**
30
- * ソート条件インターフェース
33
+ * ソート条件
31
34
  */
32
35
  export interface ISortOrder {
33
36
  identifier?: SortType;
34
37
  }
35
38
  /**
36
- * オファーカタログ検索条件インターフェース
39
+ * オファーカタログ検索条件
37
40
  */
38
41
  export interface ISearchConditions {
39
42
  limit?: number;
@@ -16,12 +16,11 @@ import { IPerson, IProfile } from './person';
16
16
  import { PersonType } from './personType';
17
17
  import { PlaceType } from './placeType';
18
18
  import { PriceCurrency } from './priceCurrency';
19
- import { IProduct, ProductType } from './product';
19
+ import { IProduct, IServiceType, ProductType } from './product';
20
20
  import { IPropertyValue } from './propertyValue';
21
21
  import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './reservation';
22
22
  import * as EventReservationFactory from './reservation/event';
23
23
  import { ReservationType } from './reservationType';
24
- import { IServiceType } from './serviceType';
25
24
  import { SortType } from './sortType';
26
25
  import { IThing } from './thing';
27
26
  export interface IProject {
@@ -181,7 +180,7 @@ export declare type IBroker = IPerson;
181
180
  */
182
181
  export declare type IReturner = IParticipant;
183
182
  export declare type IIdentifier = IPropertyValue<string>[];
184
- export interface ISimpleOrder extends IThing {
183
+ export interface ISimpleOrder extends Pick<IThing, 'name'> {
185
184
  project: IProject;
186
185
  /**
187
186
  * object type
@@ -7,7 +7,7 @@ export declare type IParentOrganization = IOrganization;
7
7
  /**
8
8
  * 組織インターフェース
9
9
  */
10
- export interface IOrganization extends IThing {
10
+ export interface IOrganization extends Pick<IThing, 'name' | 'url'> {
11
11
  typeOf: string;
12
12
  id?: string;
13
13
  email?: string;
@@ -3,8 +3,8 @@ import { IThing } from './thing';
3
3
  /**
4
4
  * payment method interface
5
5
  */
6
- export interface IPaymentMethod extends IThing {
7
- project: IProject;
6
+ export interface IPaymentMethod extends Pick<IThing, 'name'> {
7
+ project: Pick<IProject, 'id' | 'typeOf'>;
8
8
  typeOf: string;
9
9
  identifier: string;
10
10
  }
@@ -13,8 +13,8 @@ export declare type IIssuedThrough = Pick<IProduct, 'id' | 'project' | 'serviceT
13
13
  * A permit issued by an organization, e.g. a parking pass.
14
14
  * {@link https://schema.org/Permit}
15
15
  */
16
- export interface IPermit extends IThing {
17
- project: IProject;
16
+ export interface IPermit extends Pick<IThing, 'name'> {
17
+ project: Pick<IProject, 'id' | 'typeOf'>;
18
18
  typeOf: PermitType;
19
19
  identifier?: string;
20
20
  accessCode?: string;
@@ -6,8 +6,8 @@ import { IThing } from './thing';
6
6
  /**
7
7
  * 場所インターフェース
8
8
  */
9
- export interface IPlace extends IThing {
10
- project: IProject;
9
+ export interface IPlace extends Pick<IThing, 'identifier' | 'name'> {
10
+ project: Pick<IProject, 'id' | 'typeOf'>;
11
11
  typeOf: PlaceType;
12
12
  id?: string;
13
13
  address?: IMultilingualString;
@@ -1,6 +1,7 @@
1
1
  import { ICategoryCode } from '../categoryCode';
2
2
  import { IPriceSpecification as BaseSpecification } from '../priceSpecification';
3
3
  import { PriceSpecificationType } from '../priceSpecificationType';
4
+ export declare type IAppliesToCategoryCode = Pick<ICategoryCode, 'project' | 'typeOf' | 'codeValue' | 'inCodeSet'>;
4
5
  /**
5
6
  * 区分加算料金
6
7
  */
@@ -10,5 +11,5 @@ export declare type IPriceSpecification = BaseSpecification<PriceSpecificationTy
10
11
  * 適用カテゴリーコード
11
12
  * AND適用条件
12
13
  */
13
- appliesToCategoryCode: ICategoryCode[];
14
+ appliesToCategoryCode: IAppliesToCategoryCode[];
14
15
  };
@@ -7,9 +7,6 @@ import { PaymentServiceType } from '../service/paymentService';
7
7
  */
8
8
  export interface IAppliesToMovieTicket {
9
9
  typeOf: PaymentServiceType.MovieTicket;
10
- /**
11
- * 購入管理番号
12
- */
13
10
  /**
14
11
  * 決済カード区分
15
12
  */
@@ -3,8 +3,8 @@ import { IPriceSpecification as BaseSpecification } from '../priceSpecification'
3
3
  import { PriceSpecificationType } from '../priceSpecificationType';
4
4
  import { IQuantitativeValue } from '../quantitativeValue';
5
5
  import { UnitCode } from '../unitCode';
6
- import { IAppliesToMovieTicket as IMovieTicket } from './movieTicketTypeChargeSpecification';
7
- export declare type IAppliesToMovieTicket = Omit<IMovieTicket, 'accessCode'> & {
6
+ import { IAppliesToMovieTicket as IMovieTicketTypeChargeSpecAppliesToMovieTicket } from './movieTicketTypeChargeSpecification';
7
+ export declare type IAppliesToMovieTicket = Pick<IMovieTicketTypeChargeSpecAppliesToMovieTicket, 'typeOf' | 'serviceType' | 'serviceOutput'> & {
8
8
  /**
9
9
  * 単価オファー設定としては存在しないが、予約あるいは注文の価格仕様としては必須
10
10
  */
@@ -28,7 +28,7 @@ export interface IAccounting {
28
28
  * 価格仕様インターフェース
29
29
  */
30
30
  export interface IPriceSpecification<T extends PriceSpecificationType> {
31
- project: IProject;
31
+ project: Pick<IProject, 'id' | 'typeOf'>;
32
32
  id?: string;
33
33
  typeOf: T;
34
34
  name?: string | IMultilingualString;
@@ -1,11 +1,11 @@
1
1
  import { ActionType } from './actionType';
2
+ import { ICategoryCode } from './categoryCode';
2
3
  import { IMonetaryAmount } from './monetaryAmount';
3
4
  import { IOffer } from './offer';
4
5
  import { IPermit } from './permit';
5
6
  import { IProject } from './project';
6
7
  import { IPropertyValue } from './propertyValue';
7
8
  import { IQuantitativeValue } from './quantitativeValue';
8
- import { IServiceType } from './serviceType';
9
9
  import { SortType } from './sortType';
10
10
  import { IThing } from './thing';
11
11
  /**
@@ -83,6 +83,7 @@ export interface IAvailableChannel {
83
83
  serviceUrl?: string;
84
84
  credentials?: ICredentials;
85
85
  }
86
+ export declare type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'project' | 'typeOf'>;
86
87
  /**
87
88
  * プロダクトインターフェース
88
89
  * {@link https://schema.org/Product}
@@ -7,7 +7,7 @@ export declare enum ProgramMembershipType {
7
7
  * (e.g. "StarAliance"), traveler clubs (e.g. "AAA"), purchase clubs ("Safeway Club"), etc.
8
8
  * {@link https://schema.org/ProgramMembership}
9
9
  */
10
- export interface IProgramMembership extends IThing {
10
+ export interface IProgramMembership extends Pick<IThing, 'name'> {
11
11
  typeOf: ProgramMembershipType;
12
12
  /**
13
13
  * A unique identifier for the membership.
@@ -8,7 +8,7 @@ export declare enum StringValue {
8
8
  * A point value or interval for product characteristics and other purposes.
9
9
  * {@link https://schema.org/QuantitativeValue}
10
10
  */
11
- export interface IQuantitativeValue<T extends UnitCode> extends IThing {
11
+ export interface IQuantitativeValue<T extends UnitCode> extends Pick<IThing, 'name'> {
12
12
  /**
13
13
  * The upper value of some characteristic or property.
14
14
  */
@@ -1,21 +1,27 @@
1
- import { IAction as IPayAction } from '../action/trade/pay';
2
- import { IAction as IRefundAction } from '../action/trade/refund';
1
+ import { IAction as IPayAction, IPaymentService as IPayObject } from '../action/trade/pay';
2
+ import { IAction as IRefundAction, IPaymentService as IRefundObject } from '../action/trade/refund';
3
3
  import { IOrder } from '../order';
4
- export declare type IExpludedActionAttributes = 'additionalProperty' | 'agent' | 'description' | 'error' | 'identifier' | 'instrument' | 'potentialActions' | 'recipient' | 'result';
5
- export declare type IOptimizedPayAction = Omit<IPayAction, IExpludedActionAttributes>;
6
- export declare type IOptimizedRefundAction = Omit<IRefundAction, IExpludedActionAttributes>;
4
+ export declare type IPayActionObject = Pick<IPayObject, 'id' | 'paymentMethod' | 'typeOf'>;
5
+ export declare type IOptimizedPayAction = Pick<IPayAction, 'actionStatus' | 'endDate' | 'id' | 'project' | 'purpose' | 'startDate' | 'typeOf'> & {
6
+ object: IPayActionObject[];
7
+ };
8
+ export declare type IRefundActionObject = Pick<IRefundObject, 'id' | 'paymentMethod' | 'typeOf'>;
9
+ export declare type IOptimizedRefundAction = Pick<IRefundAction, 'actionStatus' | 'endDate' | 'id' | 'project' | 'purpose' | 'startDate' | 'typeOf'> & {
10
+ object: IRefundActionObject[];
11
+ };
7
12
  export declare type IAction = IOptimizedPayAction | IOptimizedRefundAction;
13
+ export declare type IOrderAsMainEntity = IOrder;
8
14
  /**
9
- * 経理レポートインターフェース
15
+ * 経理レポート
10
16
  */
11
17
  export interface IReport {
12
18
  mainEntity: IAction;
13
19
  isPartOf: {
14
- mainEntity: IOrder;
20
+ mainEntity: IOrderAsMainEntity;
15
21
  };
16
22
  }
17
23
  /**
18
- * 経理レポート検索条件
24
+ * 検索条件
19
25
  */
20
26
  export interface ISearchConditions {
21
27
  limit?: number;
@@ -31,7 +31,7 @@ export interface IReservationFor {
31
31
  coaInfo?: ICOAInfo;
32
32
  location: IEventLocation;
33
33
  name: IEventName;
34
- project: IProject;
34
+ project: Pick<IProject, 'id' | 'typeOf'>;
35
35
  startDate: Date;
36
36
  superEvent: IOptimizedSuperEvent;
37
37
  typeOf: EventType.ScreeningEvent;
@@ -11,12 +11,11 @@ import { PlaceType } from './placeType';
11
11
  import { PriceCurrency } from './priceCurrency';
12
12
  import { IPriceSpecification as IGenericPriceSpecification } from './priceSpecification';
13
13
  import { PriceSpecificationType } from './priceSpecificationType';
14
- import { ProductType } from './product';
14
+ import { IServiceType, ProductType } from './product';
15
15
  import { IProject } from './project';
16
16
  import { IPropertyValue } from './propertyValue';
17
17
  import { ReservationStatusType } from './reservationStatusType';
18
18
  import { ReservationType } from './reservationType';
19
- import { IServiceType } from './serviceType';
20
19
  import { SortType } from './sortType';
21
20
  import { IThing } from './thing';
22
21
  export declare type TicketType = 'Ticket';
@@ -29,7 +28,7 @@ export interface ITicketType {
29
28
  identifier: string;
30
29
  name?: string | IMultilingualString;
31
30
  priceCurrency: PriceCurrency;
32
- project: IProject;
31
+ project: Pick<IProject, 'id' | 'typeOf'>;
33
32
  typeOf: OfferType;
34
33
  validRateLimit?: OfferFactory.IValidRateLimit;
35
34
  }
@@ -179,8 +178,8 @@ export interface IIssuedThrough {
179
178
  * For offers of tickets, restaurant reservations, flights, or rental cars, use Offer.
180
179
  * {@link https://schema.org/Reservation}
181
180
  */
182
- export interface IReservation<T extends IPriceSpecification> extends IThing {
183
- project: IProject;
181
+ export interface IReservation<T extends IPriceSpecification> extends Pick<IThing, 'identifier' | 'name'> {
182
+ project: Pick<IProject, 'id' | 'typeOf'>;
184
183
  /**
185
184
  * type of object
186
185
  */
@@ -5,7 +5,7 @@ import { OrganizationType } from './organizationType';
5
5
  import { IProject } from './project';
6
6
  import { IPropertyValue } from './propertyValue';
7
7
  import { SortType } from './sortType';
8
- export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee'>;
8
+ export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'>;
9
9
  export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
10
10
  /**
11
11
  * 利用可能決済インターフェース
@@ -17,7 +17,7 @@ export interface IPaymentAccepted {
17
17
  paymentMethodType: string;
18
18
  }
19
19
  export interface ISeller extends Pick<IOrganization, 'typeOf' | 'id' | 'location' | 'telephone' | 'additionalProperty' | 'name' | 'url'> {
20
- project: IProject;
20
+ project: Pick<IProject, 'id' | 'typeOf'>;
21
21
  /**
22
22
  * The geographic area where a service or offered item is provided.
23
23
  */
@@ -1,8 +1,7 @@
1
1
  import { IOrganization } from '../organization';
2
- import { IAvailableChannel } from '../product';
3
- import { IProject } from '../project';
2
+ import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
3
+ import { IOnPaymentStatusChanged, IProject } from '../project';
4
4
  import { IPropertyValue } from '../propertyValue';
5
- import { IServiceType } from '../serviceType';
6
5
  import { IThing } from '../thing';
7
6
  export declare enum PaymentServiceType {
8
7
  CreditCard = "CreditCard",
@@ -37,12 +36,15 @@ export interface IProviderCredentials {
37
36
  */
38
37
  stCd?: string;
39
38
  }
40
- export interface IProvider extends IOrganization {
39
+ export interface IProvider extends Pick<IOrganization, 'id' | 'name' | 'typeOf'> {
41
40
  /**
42
41
  * 販売者の決済サービス利用時資格情報
43
42
  */
44
43
  credentials?: IProviderCredentials;
45
44
  }
45
+ export declare type IAvailableChannel = IProductAvailableChannel & {
46
+ onPaymentStatusChanged?: IOnPaymentStatusChanged;
47
+ };
46
48
  /**
47
49
  * 決済サービスインターフェース
48
50
  * {@link https://schema.org/Service}
@@ -3,7 +3,7 @@ import { IProject } from '../project';
3
3
  import * as TaskFactory from '../task';
4
4
  import { TaskName } from '../taskName';
5
5
  export interface IData {
6
- project: IProject;
6
+ project: Pick<IProject, 'id' | 'typeOf'>;
7
7
  /**
8
8
  * 施設コード
9
9
  */
@@ -3,7 +3,7 @@ import { IProject } from '../project';
3
3
  import * as TaskFactory from '../task';
4
4
  import { TaskName } from '../taskName';
5
5
  export interface IData {
6
- project: IProject;
6
+ project: Pick<IProject, 'id' | 'typeOf'>;
7
7
  /**
8
8
  * 施設コード
9
9
  */
@@ -3,7 +3,7 @@ import { IProject } from '../project';
3
3
  import * as TaskFactory from '../task';
4
4
  import { TaskName } from '../taskName';
5
5
  export interface IData {
6
- project: IProject;
6
+ project: Pick<IProject, 'id' | 'typeOf'>;
7
7
  theaterCode: string;
8
8
  }
9
9
  export interface IAttributes extends TaskFactory.IAttributes {
@@ -41,7 +41,7 @@ export interface IData {
41
41
  * 注文取引確定後アクション
42
42
  */
43
43
  potentialActions?: IPotentialActions;
44
- project: IProject;
44
+ project: Pick<IProject, 'id' | 'typeOf'>;
45
45
  typeOf: ActionType.OrderAction;
46
46
  }
47
47
  export interface IAttributes extends TaskFactory.IAttributes {
@@ -4,7 +4,7 @@ import { IProject } from '../project';
4
4
  import * as TaskFactory from '../task';
5
5
  import { TaskName } from '../taskName';
6
6
  export interface IData {
7
- project: IProject;
7
+ project: Pick<IProject, 'id' | 'typeOf'>;
8
8
  object: {
9
9
  confirmationNumber: string;
10
10
  orderNumber: string;
@@ -4,7 +4,7 @@ import { IProject } from '../project';
4
4
  import * as TaskFactory from '../task';
5
5
  import { TaskName } from '../taskName';
6
6
  export interface IData {
7
- project: IProject;
7
+ project: Pick<IProject, 'id' | 'typeOf'>;
8
8
  object: SendOrderActionFactory.IObject;
9
9
  potentialActions?: SendOrderActionFactory.IPotentialActions;
10
10
  }
@@ -11,7 +11,7 @@ export interface IData {
11
11
  * 承認アクションID指定であれば、指定アクションのみ中止
12
12
  */
13
13
  id?: string;
14
- project: IProject;
14
+ project: Pick<IProject, 'id' | 'typeOf'>;
15
15
  purpose: IPurpose;
16
16
  }
17
17
  export interface IAttributes extends TaskFactory.IAttributes {
@@ -11,7 +11,7 @@ export interface IData {
11
11
  * 承認アクションID指定であれば、指定アクションのみ中止
12
12
  */
13
13
  id?: string;
14
- project: IProject;
14
+ project: Pick<IProject, 'id' | 'typeOf'>;
15
15
  purpose: IPurpose;
16
16
  }
17
17
  export interface IAttributes extends TaskFactory.IAttributes {
@@ -11,7 +11,7 @@ export interface IData {
11
11
  * 承認アクションID指定であれば、指定アクションのみ中止
12
12
  */
13
13
  id?: string;
14
- project: IProject;
14
+ project: Pick<IProject, 'id' | 'typeOf'>;
15
15
  purpose: IPurpose;
16
16
  }
17
17
  export interface IAttributes extends TaskFactory.IAttributes {
@@ -11,7 +11,7 @@ export interface IData {
11
11
  * 承認アクションID指定であれば、指定アクションのみ中止
12
12
  */
13
13
  id?: string;
14
- project: IProject;
14
+ project: Pick<IProject, 'id' | 'typeOf'>;
15
15
  purpose: IPurpose;
16
16
  }
17
17
  export interface IAttributes extends TaskFactory.IAttributes {
@@ -16,7 +16,7 @@ export interface IExecutionResult {
16
16
  */
17
17
  export declare type ITask = IExtendId<IAttributes>;
18
18
  export interface IAttributes {
19
- project: IProject;
19
+ project: Pick<IProject, 'id' | 'typeOf'>;
20
20
  /**
21
21
  * タスク名
22
22
  */
@@ -33,7 +33,7 @@ export interface IObjectPendingTransaction {
33
33
  identifier?: string;
34
34
  }
35
35
  export interface IStartParamsWithoutDetail {
36
- project: IProject;
36
+ project: Pick<IProject, 'id' | 'typeOf'>;
37
37
  /**
38
38
  * 取引期限
39
39
  */
@@ -75,7 +75,7 @@ export interface IObject {
75
75
  };
76
76
  }
77
77
  export interface IStartParamsWithoutDetail {
78
- project: IProject;
78
+ project: Pick<IProject, 'id' | 'typeOf'>;
79
79
  expires: Date;
80
80
  agent: IAgent;
81
81
  seller: {
@@ -32,7 +32,7 @@ export interface IReturnableOrder {
32
32
  * 注文返品開始パラメータ
33
33
  */
34
34
  export interface IStartParamsWithoutDetail {
35
- project: Omit<IProject, 'settings' | 'name' | 'subscription'>;
35
+ project: Pick<IProject, 'id' | 'typeOf'>;
36
36
  expires: Date;
37
37
  agent: IAgent;
38
38
  object: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.259.0-alpha.9",
3
+ "version": "4.259.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,4 +0,0 @@
1
- /**
2
- * サービスファクトリー
3
- */
4
- export * from './product';
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- /**
14
- * サービスファクトリー
15
- */
16
- __exportStar(require("./product"), exports);
@@ -1,9 +0,0 @@
1
- import { ICategoryCode, ISearchConditions as ICategoryCodeSearchConditions } from './categoryCode';
2
- /**
3
- * サービスタイプインターフェース
4
- */
5
- export declare type IServiceType = ICategoryCode;
6
- /**
7
- * 検索条件インターフェース
8
- */
9
- export declare type ISearchConditions = ICategoryCodeSearchConditions;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });