@chevre/factory 8.0.0-alpha.2 → 8.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/chevre/assetTransaction/reserve.d.ts +0 -3
- package/lib/chevre/authorization.d.ts +0 -5
- package/lib/chevre/event/anyEvent.d.ts +2 -8
- package/lib/chevre/event/screeningEvent.d.ts +3 -8
- package/lib/chevre/event/sellerMakesOffer.d.ts +2 -17
- package/lib/chevre/index.d.ts +0 -3
- package/lib/chevre/index.js +3 -5
- package/lib/chevre/offer.d.ts +0 -9
- package/lib/chevre/placeType.d.ts +0 -1
- package/lib/chevre/placeType.js +0 -1
- package/lib/chevre/product.d.ts +1 -1
- package/lib/chevre/reservedCodeValues.js +0 -1
- package/lib/chevre/unitPriceOffer.d.ts +2 -11
- package/package.json +1 -1
- package/lib/chevre/offer/productOffer.d.ts +0 -152
- package/lib/chevre/offer/productOffer.js +0 -2
- package/lib/chevre/place/busStop.d.ts +0 -41
- package/lib/chevre/place/busStop.js +0 -2
|
@@ -106,11 +106,6 @@ export interface IOfferAsObject {
|
|
|
106
106
|
* 2025-10-21~
|
|
107
107
|
*/
|
|
108
108
|
token?: IEventOfferToken;
|
|
109
|
-
/**
|
|
110
|
-
* メンバープログラムティアトークン
|
|
111
|
-
* メンバープログラムティアごとにオファー有効期間が管理されている場合、検証されたトークンに基づいて有効期間が検証されます
|
|
112
|
-
*/
|
|
113
|
-
validForMemberTier?: ITokenizedMemberProgramTier;
|
|
114
109
|
}
|
|
115
110
|
export type IObject = IOrderAsObject | IOwnershipInfoAsObject | IOfferAsObject;
|
|
116
111
|
export interface IAudienceAsPlaceOrder {
|
|
@@ -7,8 +7,8 @@ import { OrganizationType } from '../organizationType';
|
|
|
7
7
|
import { PlaceType } from '../placeType';
|
|
8
8
|
import { IServiceType as IProductServiceType } from '../product';
|
|
9
9
|
import { Identifier as WebAPIIdentifier, IService as IWebAPIService } from '../service/webAPI';
|
|
10
|
-
import {
|
|
11
|
-
export {
|
|
10
|
+
import { ISellerMakesOffer } from './sellerMakesOffer';
|
|
11
|
+
export { ISellerMakesOffer };
|
|
12
12
|
/**
|
|
13
13
|
* 予約集計
|
|
14
14
|
*/
|
|
@@ -161,14 +161,8 @@ export interface IAttributes extends Pick<IBaseAttributes<EventType>, 'additiona
|
|
|
161
161
|
aggregateReservation?: IAggregateReservation;
|
|
162
162
|
organizer: IOrganizer;
|
|
163
163
|
}
|
|
164
|
-
export type IMemberProgramTier4create = Pick<IMemberProgramTier, 'typeOf'>;
|
|
165
164
|
export type ISellerMakesOffer4create = Pick<ISellerMakesOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'typeOf' | 'identifier'> & {
|
|
166
165
|
availableAtOrFrom: Pick<IOfferAvailableAtOrFrom, 'id'>;
|
|
167
|
-
/**
|
|
168
|
-
* 有効なメンバープログラムティア条件
|
|
169
|
-
* メンバープログラムティアごとにプロダクトオファーを管理する場合に指定
|
|
170
|
-
*/
|
|
171
|
-
validForMemberTier?: IMemberProgramTier4create;
|
|
172
166
|
};
|
|
173
167
|
export interface ISeller4create {
|
|
174
168
|
makesOffer: ISellerMakesOffer4create[];
|
|
@@ -8,8 +8,8 @@ import { ProductType } from '../product';
|
|
|
8
8
|
import { TicketType } from '../reservation';
|
|
9
9
|
import { ReservationType } from '../reservationType';
|
|
10
10
|
import { Identifier as WebAPIIdentifier, IService as IWebAPIService } from '../service/webAPI';
|
|
11
|
-
import { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom,
|
|
12
|
-
export { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom,
|
|
11
|
+
import { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, ISellerMakesOffer, IServiceType, IOfferedThrough, ISeller, IEligibleQuantity, ILocation, IName, ISellerMakesOffer4create, ISeller4create, IAttributes as IAnyEventAttributes } from './anyEvent';
|
|
12
|
+
export { IAggregateReservation, IOfferWithAggregateReservation, IAggregateOffer, IOfferAvailableAtOrFrom, ISellerMakesOffer, IServiceType, IOfferedThrough, ISeller, IEligibleQuantity, ILocation, IName, ISellerMakesOffer4create, ISeller4create };
|
|
13
13
|
export interface IServiceOutput {
|
|
14
14
|
typeOf: ReservationType.EventReservation;
|
|
15
15
|
reservedTicket?: {
|
|
@@ -60,13 +60,8 @@ export interface IOffer {
|
|
|
60
60
|
offeredThrough?: IOfferedThrough;
|
|
61
61
|
unacceptedPaymentMethod?: IUnacceptedPaymentMethodType[];
|
|
62
62
|
seller: ISeller;
|
|
63
|
-
/**
|
|
64
|
-
* プロダクトオファーコレクションコード
|
|
65
|
-
* メンバープログラムティアごとにプロダクトオファーを管理する場合に指定
|
|
66
|
-
* 指定した場合、別管理のプロダクトオファーに従います
|
|
67
|
-
*/
|
|
68
|
-
identifier?: string;
|
|
69
63
|
itemOffered: IItemOffered;
|
|
64
|
+
identifier?: never;
|
|
70
65
|
}
|
|
71
66
|
/**
|
|
72
67
|
* 拡張可能なイベントオファー
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { issuer } from '../issuer';
|
|
2
1
|
import { IAvailableAtOrFrom, IOffer } from '../offer';
|
|
3
2
|
import { OfferType } from '../offerType';
|
|
4
3
|
type IOfferAvailableAtOrFrom = Pick<IAvailableAtOrFrom, 'id'>;
|
|
5
|
-
type IMemberProgramTier = Pick<issuer.IMemberProgramTier, 'typeOf'>;
|
|
6
4
|
/**
|
|
7
5
|
* イベントに対する単一オファー
|
|
8
6
|
* 利用可能アプリケーションのみ定義
|
|
@@ -30,22 +28,9 @@ interface ISingleEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' |
|
|
|
30
28
|
validForMemberTier?: never;
|
|
31
29
|
offeredBy?: never;
|
|
32
30
|
}
|
|
33
|
-
/**
|
|
34
|
-
* メンバープログラムティア適用のイベントオファー
|
|
35
|
-
* ティアごとの有効期間はプロダクトオファーで管理される
|
|
36
|
-
*/
|
|
37
|
-
interface IEventOfferForMemberTier extends Pick<ISingleEventOffer, 'typeOf' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'availableAtOrFrom' | 'identifier'> {
|
|
38
|
-
/**
|
|
39
|
-
* 有効なメンバープログラムティア
|
|
40
|
-
* 定義されている場合、オファー承認の際にメンバーシップトークンが必須
|
|
41
|
-
* また、オファーの有効期間がメンバープログラムティアごとのイベントオファーに依存する
|
|
42
|
-
*/
|
|
43
|
-
validForMemberTier: IMemberProgramTier;
|
|
44
|
-
offeredBy?: never;
|
|
45
|
-
}
|
|
46
31
|
/**
|
|
47
32
|
* アプリケーションごとのイベントに対するオファー
|
|
48
33
|
* 基本的に有効期間を定義
|
|
49
34
|
*/
|
|
50
|
-
type ISellerMakesOffer = ISingleEventOffer
|
|
51
|
-
export { ISellerMakesOffer,
|
|
35
|
+
type ISellerMakesOffer = ISingleEventOffer;
|
|
36
|
+
export { ISellerMakesOffer, };
|
package/lib/chevre/index.d.ts
CHANGED
|
@@ -74,7 +74,6 @@ import { IMultilingualString } from './multilingualString';
|
|
|
74
74
|
export * as offer from './offer';
|
|
75
75
|
export * as aggregateOffer from './offer/aggregateOffer';
|
|
76
76
|
export * as eventOffer from './offer/eventOffer';
|
|
77
|
-
export * as productOffer from './offer/productOffer';
|
|
78
77
|
import * as OfferCatalogFactory from './offerCatalog';
|
|
79
78
|
import * as OfferItemConditionFactory from './offerItemCondition';
|
|
80
79
|
import { OfferType } from './offerType';
|
|
@@ -90,7 +89,6 @@ import { PaymentStatusType } from './paymentStatusType';
|
|
|
90
89
|
import * as PermitFactory from './permit';
|
|
91
90
|
import * as PersonFactory from './person';
|
|
92
91
|
import { PersonType } from './personType';
|
|
93
|
-
import * as BusStopFactory from './place/busStop';
|
|
94
92
|
import * as EntranceGateFactory from './place/entranceGate';
|
|
95
93
|
import * as MovieTheaterPlaceFactory from './place/movieTheater';
|
|
96
94
|
import * as ScreeningRoomPlaceFactory from './place/screeningRoom';
|
|
@@ -401,7 +399,6 @@ export import person = PersonFactory;
|
|
|
401
399
|
export import personType = PersonType;
|
|
402
400
|
export import priceCurrency = PriceCurrency;
|
|
403
401
|
export declare namespace place {
|
|
404
|
-
export import busStop = BusStopFactory;
|
|
405
402
|
export import entranceGate = EntranceGateFactory;
|
|
406
403
|
export import movieTheater = MovieTheaterPlaceFactory;
|
|
407
404
|
export import screeningRoom = ScreeningRoomPlaceFactory;
|
package/lib/chevre/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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.
|
|
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 =
|
|
3
|
+
exports.paymentMethod = 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.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.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 = void 0;
|
|
5
5
|
exports.waiter = require("@waiter/factory");
|
|
6
6
|
exports.cognito = require("./cognito");
|
|
7
7
|
exports.account = require("./account");
|
|
@@ -75,7 +75,7 @@ const MovieTicketTypeFactory = require("./movieTicketType");
|
|
|
75
75
|
exports.offer = require("./offer");
|
|
76
76
|
exports.aggregateOffer = require("./offer/aggregateOffer");
|
|
77
77
|
exports.eventOffer = require("./offer/eventOffer");
|
|
78
|
-
|
|
78
|
+
// export * as productOffer from './offer/productOffer'; // discontinue(2026-04-20~)
|
|
79
79
|
const OfferCatalogFactory = require("./offerCatalog");
|
|
80
80
|
const OfferItemConditionFactory = require("./offerItemCondition");
|
|
81
81
|
const offerType_1 = require("./offerType");
|
|
@@ -90,7 +90,6 @@ const paymentStatusType_1 = require("./paymentStatusType");
|
|
|
90
90
|
const PermitFactory = require("./permit");
|
|
91
91
|
const PersonFactory = require("./person");
|
|
92
92
|
const personType_1 = require("./personType");
|
|
93
|
-
const BusStopFactory = require("./place/busStop");
|
|
94
93
|
const EntranceGateFactory = require("./place/entranceGate");
|
|
95
94
|
const MovieTheaterPlaceFactory = require("./place/movieTheater");
|
|
96
95
|
const ScreeningRoomPlaceFactory = require("./place/screeningRoom");
|
|
@@ -392,7 +391,6 @@ exports.personType = personType_1.PersonType;
|
|
|
392
391
|
exports.priceCurrency = priceCurrency_1.PriceCurrency;
|
|
393
392
|
var place;
|
|
394
393
|
(function (place) {
|
|
395
|
-
place.busStop = BusStopFactory;
|
|
396
394
|
place.entranceGate = EntranceGateFactory;
|
|
397
395
|
place.movieTheater = MovieTheaterPlaceFactory;
|
|
398
396
|
place.screeningRoom = ScreeningRoomPlaceFactory;
|
package/lib/chevre/offer.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ICategoryCode } from './categoryCode';
|
|
2
2
|
import { ItemAvailability } from './itemAvailability';
|
|
3
|
-
import { IMonetaryAmount } from './monetaryAmount';
|
|
4
3
|
import { IMultilingualString } from './multilingualString';
|
|
5
4
|
import { OfferType } from './offerType';
|
|
6
5
|
import { OrganizationType } from './organizationType';
|
|
@@ -24,9 +23,6 @@ export interface ICategory {
|
|
|
24
23
|
export type IEligibleCategoryCode = Pick<ICategoryCode, 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'> & {
|
|
25
24
|
id: string;
|
|
26
25
|
};
|
|
27
|
-
export type IEligibleMonetaryAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> & {
|
|
28
|
-
value: number;
|
|
29
|
-
};
|
|
30
26
|
/**
|
|
31
27
|
* 対象サブ予約条件
|
|
32
28
|
*/
|
|
@@ -144,11 +140,6 @@ export interface IOffer extends Pick<IThing, 'name' | 'description' | 'alternate
|
|
|
144
140
|
* 対象座席タイプ
|
|
145
141
|
*/
|
|
146
142
|
eligibleSeatingType?: [IEligibleCategoryCode];
|
|
147
|
-
/**
|
|
148
|
-
* 対象金額
|
|
149
|
-
* 6ポイントで無料、などの設定に使用
|
|
150
|
-
*/
|
|
151
|
-
eligibleMonetaryAmount?: [IEligibleMonetaryAmount];
|
|
152
143
|
/**
|
|
153
144
|
* 対象サブ予約条件
|
|
154
145
|
*/
|
package/lib/chevre/placeType.js
CHANGED
|
@@ -7,7 +7,6 @@ exports.PlaceType = void 0;
|
|
|
7
7
|
var PlaceType;
|
|
8
8
|
(function (PlaceType) {
|
|
9
9
|
PlaceType["AggregatePlace"] = "AggregatePlace";
|
|
10
|
-
PlaceType["BusStop"] = "BusStop";
|
|
11
10
|
PlaceType["EntranceGate"] = "EntranceGate";
|
|
12
11
|
PlaceType["MovieTheater"] = "MovieTheater";
|
|
13
12
|
PlaceType["Place"] = "Place";
|
package/lib/chevre/product.d.ts
CHANGED
|
@@ -336,7 +336,7 @@ export type IMinimizedTicketAddOn = IAddOn4unitPriceOffer;
|
|
|
336
336
|
* プロダクトオファー
|
|
337
337
|
*/
|
|
338
338
|
export interface ITicketOffer extends Pick<IBaseOffer, 'acceptedPaymentMethod' | // add(2023-11-15~)
|
|
339
|
-
'name' | 'description' | 'alternateName' | 'color' | 'typeOf' | 'id' | 'availability' | 'category' | 'eligibleMembershipType' | 'eligibleSeatingType' | '
|
|
339
|
+
'name' | 'description' | 'alternateName' | 'color' | 'typeOf' | 'id' | 'availability' | 'category' | 'eligibleMembershipType' | 'eligibleSeatingType' | 'eligibleSubReservation' | 'eligibleQuantity' | 'offeredThrough' | 'priceCurrency' | 'validFrom' | 'validThrough' | 'validRateLimit' | 'additionalProperty'> {
|
|
340
340
|
addOn?: IMinimizedTicketAddOn[];
|
|
341
341
|
identifier: string;
|
|
342
342
|
name: IOfferName;
|
|
@@ -85,7 +85,6 @@ exports.RESERVED_CODE_VALUES = [
|
|
|
85
85
|
paymentStatusType_1.PaymentStatusType.PaymentPastDue,
|
|
86
86
|
personType_1.PersonType.Person,
|
|
87
87
|
placeType_1.PlaceType.AggregatePlace,
|
|
88
|
-
placeType_1.PlaceType.BusStop,
|
|
89
88
|
placeType_1.PlaceType.MovieTheater,
|
|
90
89
|
placeType_1.PlaceType.Place,
|
|
91
90
|
placeType_1.PlaceType.ScreeningRoom,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAdvanceBookingRequirement as IActualAdvanceBookingRequirement } from './advanceBookingRequirement';
|
|
2
2
|
import { ItemAvailability } from './itemAvailability';
|
|
3
|
-
import { IAddOn, ICategory, IEligibleCategoryCode,
|
|
3
|
+
import { IAddOn, ICategory, IEligibleCategoryCode, IName, IOffer } from './offer';
|
|
4
4
|
import { OfferType } from './offerType';
|
|
5
5
|
import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
|
|
6
6
|
import { IAccounting } from './priceSpecification';
|
|
@@ -60,7 +60,7 @@ export type IAvailability = ItemAvailability.InStock | ItemAvailability.OutOfSto
|
|
|
60
60
|
/**
|
|
61
61
|
* 単価オファー
|
|
62
62
|
*/
|
|
63
|
-
export interface IUnitPriceOffer extends Pick<IOffer, 'acceptedPaymentMethod' | 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | '
|
|
63
|
+
export interface IUnitPriceOffer extends Pick<IOffer, 'acceptedPaymentMethod' | 'project' | 'typeOf' | 'priceCurrency' | 'id' | 'identifier' | 'name' | 'description' | 'alternateName' | 'availability' | 'availableAtOrFrom' | 'itemOffered' | 'priceSpecification' | 'additionalProperty' | 'color' | 'category' | 'eligibleSeatingType' | 'eligibleMembershipType' | 'eligibleSubReservation' | 'validFrom' | 'validThrough' | 'validRateLimit'> {
|
|
64
64
|
/**
|
|
65
65
|
* The amount of time that is required between accepting the offer and the actual usage of the resource or service.
|
|
66
66
|
* 事前予約要件(興行オファー承認日時とイベント開始日時の差)
|
|
@@ -121,7 +121,6 @@ export type ICreateParams = Pick<IUnitPriceOffer, 'acceptedPaymentMethod' | 'eli
|
|
|
121
121
|
* 対象メンバーシップ
|
|
122
122
|
*/
|
|
123
123
|
eligibleMembershipType?: [Pick<IEligibleCategoryCode, 'codeValue'>];
|
|
124
|
-
eligibleMonetaryAmount?: [Pick<IEligibleMonetaryAmount, 'currency' | 'value'>];
|
|
125
124
|
eligibleSeatingType?: [Pick<IEligibleCategoryCode, 'codeValue'>];
|
|
126
125
|
/**
|
|
127
126
|
* 返品ポリシー
|
|
@@ -246,14 +245,6 @@ export interface ISearchConditions {
|
|
|
246
245
|
$eq?: string;
|
|
247
246
|
};
|
|
248
247
|
};
|
|
249
|
-
eligibleMonetaryAmount?: {
|
|
250
|
-
/**
|
|
251
|
-
* 対象通貨区分
|
|
252
|
-
*/
|
|
253
|
-
currency?: {
|
|
254
|
-
$eq?: string;
|
|
255
|
-
};
|
|
256
|
-
};
|
|
257
248
|
eligibleSeatingType?: {
|
|
258
249
|
/**
|
|
259
250
|
* 対象座席区分
|
package/package.json
CHANGED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { issuer } from '../issuer';
|
|
2
|
-
import { ItemAvailability } from '../itemAvailability';
|
|
3
|
-
import { OfferType } from '../offerType';
|
|
4
|
-
import { OrganizationType } from '../organizationType';
|
|
5
|
-
import { SortType } from '../sortType';
|
|
6
|
-
type IValidForMemberTier = Pick<issuer.IMemberProgramTier, 'identifier' | 'typeOf'>;
|
|
7
|
-
interface IAcceptedPaymentMethod {
|
|
8
|
-
typeOf: 'PaymentMethod';
|
|
9
|
-
/**
|
|
10
|
-
* 決済方法区分コード
|
|
11
|
-
*/
|
|
12
|
-
identifier: string;
|
|
13
|
-
}
|
|
14
|
-
interface IOfferedByAsSeller {
|
|
15
|
-
id: string;
|
|
16
|
-
typeOf: OrganizationType.Corporation;
|
|
17
|
-
}
|
|
18
|
-
interface IOfferedByAsProject {
|
|
19
|
-
id: string;
|
|
20
|
-
typeOf: OrganizationType.Project;
|
|
21
|
-
}
|
|
22
|
-
type IOfferedBy = IOfferedByAsSeller | IOfferedByAsProject;
|
|
23
|
-
interface IProductOfferCommonAttributes {
|
|
24
|
-
project: {
|
|
25
|
-
id: string;
|
|
26
|
-
typeOf: OrganizationType.Project;
|
|
27
|
-
};
|
|
28
|
-
typeOf: OfferType.Offer;
|
|
29
|
-
/**
|
|
30
|
-
* プロダクトオファーコード
|
|
31
|
-
* プロダクトオファーコレクション内でユニーク
|
|
32
|
-
*/
|
|
33
|
-
identifier: string;
|
|
34
|
-
itemOffered: {
|
|
35
|
-
typeOf: OfferType.AggregateOffer;
|
|
36
|
-
/**
|
|
37
|
-
* プロダクトオファーコレクションコード
|
|
38
|
-
* オファーコレクションの識別子
|
|
39
|
-
*/
|
|
40
|
-
identifier: string;
|
|
41
|
-
};
|
|
42
|
-
offeredBy: IOfferedBy;
|
|
43
|
-
availability: ItemAvailability.InStock | ItemAvailability.OutOfStock;
|
|
44
|
-
validFrom: Date;
|
|
45
|
-
validThrough: Date;
|
|
46
|
-
}
|
|
47
|
-
interface IProductOfferAcceptedPaymentMethod extends IProductOfferCommonAttributes {
|
|
48
|
-
/**
|
|
49
|
-
* オファー提供プロジェクト
|
|
50
|
-
*/
|
|
51
|
-
offeredBy: IOfferedByAsProject;
|
|
52
|
-
acceptedPaymentMethod: IAcceptedPaymentMethod;
|
|
53
|
-
validForMemberTier?: never;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* メンバープログラムティアで有効なプロダクトオファー
|
|
57
|
-
*/
|
|
58
|
-
interface IProductOfferValidForMemberTier extends IProductOfferCommonAttributes {
|
|
59
|
-
/**
|
|
60
|
-
* オファー提供販売者
|
|
61
|
-
*/
|
|
62
|
-
offeredBy: IOfferedByAsSeller;
|
|
63
|
-
acceptedPaymentMethod?: never;
|
|
64
|
-
/**
|
|
65
|
-
* 有効なメンバープログラムティア
|
|
66
|
-
*/
|
|
67
|
-
validForMemberTier: IValidForMemberTier;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* プロダクトオファー
|
|
71
|
-
* 汎用的なオファー設定
|
|
72
|
-
*/
|
|
73
|
-
type IProductOffer = IProductOfferAcceptedPaymentMethod | IProductOfferValidForMemberTier;
|
|
74
|
-
interface ISearchConditions {
|
|
75
|
-
limit?: number;
|
|
76
|
-
page?: number;
|
|
77
|
-
sort?: {
|
|
78
|
-
validFrom?: SortType;
|
|
79
|
-
};
|
|
80
|
-
project?: {
|
|
81
|
-
id?: {
|
|
82
|
-
$eq?: string;
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
id?: {
|
|
86
|
-
$eq?: string;
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* オファーコード
|
|
90
|
-
*/
|
|
91
|
-
identifier?: {
|
|
92
|
-
$eq?: string;
|
|
93
|
-
$in?: string[];
|
|
94
|
-
};
|
|
95
|
-
itemOffered?: {
|
|
96
|
-
/**
|
|
97
|
-
* オファーコレクションコード
|
|
98
|
-
*/
|
|
99
|
-
identifier?: {
|
|
100
|
-
$eq?: string;
|
|
101
|
-
$in?: string[];
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
offeredBy?: {
|
|
105
|
-
/**
|
|
106
|
-
* オファー提供者ID
|
|
107
|
-
*/
|
|
108
|
-
id?: {
|
|
109
|
-
$eq?: string;
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
seller?: {
|
|
113
|
-
/**
|
|
114
|
-
* 提供販売者ID
|
|
115
|
-
*/
|
|
116
|
-
id?: {
|
|
117
|
-
$eq?: string;
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
validForMemberTier?: {
|
|
121
|
-
identifier?: {
|
|
122
|
-
$eq?: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
validFrom?: {
|
|
126
|
-
$lte?: Date;
|
|
127
|
-
};
|
|
128
|
-
validThrough?: {
|
|
129
|
-
$gte?: Date;
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* メンバープログラムティア有効プロダクトオファー追加パラメータ
|
|
134
|
-
*/
|
|
135
|
-
interface IAddValidForMemberTierParams {
|
|
136
|
-
acceptedPaymentMethod?: never;
|
|
137
|
-
/**
|
|
138
|
-
* プロダクトオファーコード
|
|
139
|
-
* プロダクトオファーコレクション内でユニーク
|
|
140
|
-
*/
|
|
141
|
-
identifier: string;
|
|
142
|
-
validForMemberTier: {
|
|
143
|
-
/**
|
|
144
|
-
* プロダクトオファーコレクションコード
|
|
145
|
-
* オファーコレクションの識別子
|
|
146
|
-
*/
|
|
147
|
-
identifier: string;
|
|
148
|
-
};
|
|
149
|
-
validFrom: Date;
|
|
150
|
-
validThrough: Date;
|
|
151
|
-
}
|
|
152
|
-
export { IProductOffer, IProductOfferAcceptedPaymentMethod, IProductOfferValidForMemberTier, IValidForMemberTier, IAcceptedPaymentMethod, ISearchConditions, IAddValidForMemberTierParams };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { IMultilingualString } from '../multilingualString';
|
|
2
|
-
import { IPlace as IBasePlace } from '../place';
|
|
3
|
-
import { PlaceType } from '../placeType';
|
|
4
|
-
import { SortType } from '../sortType';
|
|
5
|
-
export interface IPlace extends Pick<IBasePlace, 'project' | 'typeOf' | 'id' | 'name' | 'branchCode'> {
|
|
6
|
-
typeOf: PlaceType.BusStop;
|
|
7
|
-
id: string;
|
|
8
|
-
branchCode: string;
|
|
9
|
-
name: IMultilingualString;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* ソート条件
|
|
13
|
-
*/
|
|
14
|
-
export interface ISortOrder {
|
|
15
|
-
branchCode?: SortType;
|
|
16
|
-
}
|
|
17
|
-
export interface ISearchConditions {
|
|
18
|
-
limit?: number;
|
|
19
|
-
page?: number;
|
|
20
|
-
sort?: ISortOrder;
|
|
21
|
-
project?: {
|
|
22
|
-
id?: {
|
|
23
|
-
$eq?: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
id?: {
|
|
27
|
-
$eq?: string;
|
|
28
|
-
$in?: string[];
|
|
29
|
-
};
|
|
30
|
-
branchCode?: {
|
|
31
|
-
$eq?: string;
|
|
32
|
-
$regex?: string;
|
|
33
|
-
$in?: string[];
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* 名称
|
|
37
|
-
*/
|
|
38
|
-
name?: {
|
|
39
|
-
$regex?: string;
|
|
40
|
-
};
|
|
41
|
-
}
|