@chevre/factory 6.2.0-alpha.5 → 6.2.0-alpha.7
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/consume/use/reservation.d.ts +2 -2
- package/lib/action/reserve.d.ts +1 -1
- package/lib/assetTransaction/cancelReservation.d.ts +1 -1
- package/lib/assetTransaction/reserve.d.ts +1 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +2 -4
- package/lib/notification/reservation.d.ts +2 -2
- package/lib/order.d.ts +2 -2
- package/lib/recipe/authorizeInvoice.d.ts +5 -5
- package/lib/recipe/authorizeInvoice3ds.d.ts +3 -3
- package/lib/recipe/payCreditCard.d.ts +6 -6
- package/lib/recipe/publishPaymentUrl.d.ts +7 -7
- package/lib/recipe/refundCreditCard.d.ts +6 -6
- package/lib/reservation/event.d.ts +12 -2
- package/package.json +2 -2
- package/lib/offer/acceptedPaymentMethod.d.ts +0 -111
- package/lib/offer/acceptedPaymentMethod.js +0 -2
|
@@ -2,7 +2,7 @@ import { IParticipantAsPerson, IParticipantAsWebApplication } from '../../../act
|
|
|
2
2
|
import { IOrder } from '../../../order';
|
|
3
3
|
import { PlaceType } from '../../../placeType';
|
|
4
4
|
import { ITicket, TicketType } from '../../../reservation';
|
|
5
|
-
import { IIssuedThrough, IReservation,
|
|
5
|
+
import { IIssuedThrough, IReservation, IReservationForLegacy } from '../../../reservation/event';
|
|
6
6
|
import * as UseActionFactory from '../use';
|
|
7
7
|
export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
|
|
8
8
|
/**
|
|
@@ -11,7 +11,7 @@ export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
|
|
|
11
11
|
*/
|
|
12
12
|
export interface IReservationAsObject extends Pick<IReservation, 'id' | 'reservationNumber' | 'typeOf'> {
|
|
13
13
|
issuedThrough: Pick<IIssuedThrough, 'id' | 'typeOf'>;
|
|
14
|
-
reservationFor: Pick<
|
|
14
|
+
reservationFor: Pick<IReservationForLegacy, 'id' | 'typeOf'>;
|
|
15
15
|
reservedTicket: Pick<ITicket, 'identifier' | 'ticketedSeat' | 'typeOf'> & {
|
|
16
16
|
ticketType?: never;
|
|
17
17
|
};
|
package/lib/action/reserve.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ActionType } from '../actionType';
|
|
|
3
3
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
4
4
|
import { IOrder } from '../order';
|
|
5
5
|
import { IAvailableReservationStatusType } from '../reservation';
|
|
6
|
-
import {
|
|
6
|
+
import { IReservationForLegacy as IEventReservationFor } from '../reservation/event';
|
|
7
7
|
import { ReservationType } from '../reservationType';
|
|
8
8
|
import { ITransaction as IPlaceOrder } from '../transaction/placeOrder';
|
|
9
9
|
import { IAttributes as IMoneyTransferActionAttributes } from './transfer/moneyTransfer';
|
|
@@ -3,7 +3,7 @@ import * as AssetTransactionFactory from '../assetTransaction';
|
|
|
3
3
|
import { ITransaction as IReserveTransaction } from '../assetTransaction/reserve';
|
|
4
4
|
import { AssetTransactionType } from '../assetTransactionType';
|
|
5
5
|
import { IExtendId } from '../autoGenerated';
|
|
6
|
-
import { IReservation as IEventReservation,
|
|
6
|
+
import { IReservation as IEventReservation, IReservationForLegacy as IEventReservationFor } from '../reservation/event';
|
|
7
7
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
8
8
|
export import IAgent = AssetTransactionFactory.IAgent;
|
|
9
9
|
export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<AssetTransactionType.CancelReservation, IAgent, undefined, IObjectWithoutDetail>;
|
|
@@ -9,7 +9,7 @@ import { PermitType } from '../permit';
|
|
|
9
9
|
import { ProductType } from '../product';
|
|
10
10
|
import { IPropertyValue } from '../propertyValue';
|
|
11
11
|
import * as ReservationFactory from '../reservation';
|
|
12
|
-
import { IIssuedThrough as IEventReservationIssuedThrough, IPrice as IReservationPrice, IReservation as IEventReservation,
|
|
12
|
+
import { IIssuedThrough as IEventReservationIssuedThrough, IPrice as IReservationPrice, IReservation as IEventReservation, IReservationForLegacy as IEventReservationReservationFor, IReservedTicket, ISubReservation as ISubReservation4eventReservation, ITicketType } from '../reservation/event';
|
|
13
13
|
import { IReservation as IReservationPackage } from '../reservation/reservationPackage';
|
|
14
14
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
15
15
|
import { ReservationType } from '../reservationType';
|
package/lib/index.d.ts
CHANGED
|
@@ -81,7 +81,6 @@ import * as MonetaryAmountFactory from './monetaryAmount';
|
|
|
81
81
|
import * as MovieTicketTypeFactory from './movieTicketType';
|
|
82
82
|
import { IMultilingualString } from './multilingualString';
|
|
83
83
|
import * as OfferFactory from './offer';
|
|
84
|
-
import * as AcceptedPaymentMethodOfferFactory from './offer/acceptedPaymentMethod';
|
|
85
84
|
import * as AggregateOfferFactory from './offer/aggregateOffer';
|
|
86
85
|
import * as EventOfferFactory from './offer/eventOffer';
|
|
87
86
|
import * as ProductOfferFactory from './offer/productOffer';
|
|
@@ -230,7 +229,6 @@ import { TransactionType } from './transactionType';
|
|
|
230
229
|
import { ErrorCode } from './errorCode';
|
|
231
230
|
export * as errors from './errors';
|
|
232
231
|
export import errorCode = ErrorCode;
|
|
233
|
-
export import acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
|
|
234
232
|
export import account = AccountFactory;
|
|
235
233
|
export import actionStatusType = ActionStatusType;
|
|
236
234
|
export import actionType = ActionType;
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = 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.eventOffer = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.
|
|
4
|
-
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.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.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person =
|
|
3
|
+
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.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.eventOffer = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.project = exports.cognito = exports.waiter = void 0;
|
|
4
|
+
exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.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.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = void 0;
|
|
5
5
|
/**
|
|
6
6
|
* factory
|
|
7
7
|
*/
|
|
@@ -81,7 +81,6 @@ var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
|
|
|
81
81
|
var MonetaryAmountFactory = require("./monetaryAmount");
|
|
82
82
|
var MovieTicketTypeFactory = require("./movieTicketType");
|
|
83
83
|
var OfferFactory = require("./offer");
|
|
84
|
-
var AcceptedPaymentMethodOfferFactory = require("./offer/acceptedPaymentMethod");
|
|
85
84
|
var AggregateOfferFactory = require("./offer/aggregateOffer");
|
|
86
85
|
var EventOfferFactory = require("./offer/eventOffer");
|
|
87
86
|
var ProductOfferFactory = require("./offer/productOffer");
|
|
@@ -212,7 +211,6 @@ var errorCode_1 = require("./errorCode");
|
|
|
212
211
|
exports.errors = require("./errors");
|
|
213
212
|
// export import errors = errors;
|
|
214
213
|
exports.errorCode = errorCode_1.ErrorCode;
|
|
215
|
-
exports.acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
|
|
216
214
|
exports.account = AccountFactory;
|
|
217
215
|
exports.actionStatusType = actionStatusType_1.ActionStatusType;
|
|
218
216
|
exports.actionType = actionType_1.ActionType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionType } from '../actionType';
|
|
2
2
|
import { IProvider, ITicket, IUnderName } from '../reservation';
|
|
3
|
-
import { IIssuedThrough, IReservation as IEventReservation,
|
|
3
|
+
import { IIssuedThrough, IReservation as IEventReservation, IReservationForLegacy, IPrice } from '../reservation/event';
|
|
4
4
|
import { ReservationStatusType } from '../reservationStatusType';
|
|
5
5
|
import { ReservationType } from '../reservationType';
|
|
6
6
|
import { ISubReservationReservedTicket } from '../assetTransaction/reserve';
|
|
@@ -18,7 +18,7 @@ export interface IReservationPackage4informConfirmed {
|
|
|
18
18
|
issuedThrough: IIssuedThrough;
|
|
19
19
|
project: IProject;
|
|
20
20
|
provider: IProvider;
|
|
21
|
-
reservationFor:
|
|
21
|
+
reservationFor: IReservationForLegacy;
|
|
22
22
|
reservationNumber: string;
|
|
23
23
|
reservationStatus: ReservationStatusType.ReservationConfirmed;
|
|
24
24
|
subReservation: ISubReservation4inform[];
|
package/lib/order.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export type ISuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id
|
|
|
98
98
|
export type ICOASuperEvent = Pick<EventReservationFactory.IOptimizedSuperEvent, 'id' | 'location' | 'name' | 'soundFormat' | 'typeOf' | 'headline'> & Pick<IEventSeries, 'identifier' | 'alternativeHeadline' | 'duration' | 'coaInfo'> & {
|
|
99
99
|
workPerformed: IWorkPerformed;
|
|
100
100
|
};
|
|
101
|
-
export type IEventAsReservationFor = Omit<EventReservationFactory.
|
|
101
|
+
export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationForLegacy, 'superEvent' | 'identifier' | 'coaInfo'> & {
|
|
102
102
|
superEvent: ISuperEvent;
|
|
103
103
|
/**
|
|
104
104
|
* COA予約でのみ使用されている
|
|
@@ -113,7 +113,7 @@ export type IEventAsReservationFor = Omit<EventReservationFactory.IReservationFo
|
|
|
113
113
|
/**
|
|
114
114
|
* COAの場合のイベント
|
|
115
115
|
*/
|
|
116
|
-
export type ICOAEventAsReservationFor = Omit<EventReservationFactory.
|
|
116
|
+
export type ICOAEventAsReservationFor = Omit<EventReservationFactory.IReservationForLegacy, 'superEvent' | 'identifier' | 'coaInfo'> & {
|
|
117
117
|
superEvent: ICOASuperEvent;
|
|
118
118
|
/**
|
|
119
119
|
* COA予約でのみ使用されている
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GMOFactory } from '@gmopg/factory';
|
|
2
2
|
import * as RecipeFactory from '../recipe';
|
|
3
|
-
export type IEntryTranArgs =
|
|
4
|
-
export type IEntryTranResult =
|
|
5
|
-
export type IExecTranArgs =
|
|
6
|
-
export type IExecTranResult =
|
|
3
|
+
export type IEntryTranArgs = GMOFactory.service.credit.IEntryTranArgs;
|
|
4
|
+
export type IEntryTranResult = GMOFactory.service.credit.IEntryTranResult;
|
|
5
|
+
export type IExecTranArgs = GMOFactory.service.credit.IExecTranArgs;
|
|
6
|
+
export type IExecTranResult = GMOFactory.service.credit.IExecTranResult;
|
|
7
7
|
export interface IDirectionEntryTran extends RecipeFactory.IHowToDirection {
|
|
8
8
|
beforeMedia?: IEntryTranArgs;
|
|
9
9
|
afterMedia?: IEntryTranResult;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GMOFactory } from '@gmopg/factory';
|
|
2
2
|
import * as RecipeFactory from '../recipe';
|
|
3
|
-
export type ISecureTran2Args =
|
|
4
|
-
export type ISecureTran2Result =
|
|
3
|
+
export type ISecureTran2Args = GMOFactory.service.credit.ISecureTran2Args;
|
|
4
|
+
export type ISecureTran2Result = GMOFactory.service.credit.ISecureTran2Result;
|
|
5
5
|
export interface IDirectionSecureTran2 extends RecipeFactory.IHowToDirection {
|
|
6
6
|
beforeMedia?: ISecureTran2Args;
|
|
7
7
|
afterMedia?: ISecureTran2Result;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GMOFactory } from '@gmopg/factory';
|
|
2
2
|
import * as RecipeFactory from '../recipe';
|
|
3
|
-
export type IOptionalSiteArgs =
|
|
4
|
-
export type ISearchTradeArgs =
|
|
5
|
-
export type ISearchTradeResult =
|
|
6
|
-
export type IAlterTranArgs =
|
|
7
|
-
export type IAlterTranResult =
|
|
3
|
+
export type IOptionalSiteArgs = GMOFactory.service.credit.IOptionalSiteArgs;
|
|
4
|
+
export type ISearchTradeArgs = GMOFactory.service.credit.ISearchTradeArgs & IOptionalSiteArgs;
|
|
5
|
+
export type ISearchTradeResult = GMOFactory.service.credit.ISearchTradeResult;
|
|
6
|
+
export type IAlterTranArgs = GMOFactory.service.credit.IAlterTranArgs & IOptionalSiteArgs;
|
|
7
|
+
export type IAlterTranResult = GMOFactory.service.credit.IAlterTranResult;
|
|
8
8
|
export interface IDirectionSearchTrade extends RecipeFactory.IHowToDirection {
|
|
9
9
|
beforeMedia?: ISearchTradeArgs;
|
|
10
10
|
afterMedia?: ISearchTradeResult;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GMOFactory } from '@gmopg/factory';
|
|
2
2
|
import * as RecipeFactory from '../recipe';
|
|
3
|
-
export type IEntryTranArgs =
|
|
4
|
-
export type IEntryTranResult =
|
|
5
|
-
export type IExecTranArgs =
|
|
6
|
-
export type IExecTranResult =
|
|
7
|
-
export type IExecTran3dsArgs =
|
|
8
|
-
export type IExecTran3dsResult =
|
|
3
|
+
export type IEntryTranArgs = GMOFactory.service.credit.IEntryTranArgs;
|
|
4
|
+
export type IEntryTranResult = GMOFactory.service.credit.IEntryTranResult;
|
|
5
|
+
export type IExecTranArgs = GMOFactory.service.credit.IExecTranArgs;
|
|
6
|
+
export type IExecTranResult = GMOFactory.service.credit.IExecTranResult;
|
|
7
|
+
export type IExecTran3dsArgs = GMOFactory.service.credit.IExecTran3dsArgs;
|
|
8
|
+
export type IExecTran3dsResult = GMOFactory.service.credit.IExecTran3dsResult;
|
|
9
9
|
export interface IDirectionEntryTran extends RecipeFactory.IHowToDirection {
|
|
10
10
|
beforeMedia?: IEntryTranArgs;
|
|
11
11
|
afterMedia?: IEntryTranResult;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { GMOFactory } from '@gmopg/factory';
|
|
2
2
|
import * as RecipeFactory from '../recipe';
|
|
3
3
|
export interface IResultAsError {
|
|
4
4
|
name: string;
|
|
5
5
|
message: string;
|
|
6
6
|
}
|
|
7
|
-
export type IOptionalSiteArgs =
|
|
8
|
-
export type ISearchTradeArgs =
|
|
9
|
-
export type ISearchTradeResult =
|
|
10
|
-
export type IAlterTranArgs =
|
|
11
|
-
export type IAlterTranResult =
|
|
7
|
+
export type IOptionalSiteArgs = GMOFactory.service.credit.IOptionalSiteArgs;
|
|
8
|
+
export type ISearchTradeArgs = GMOFactory.service.credit.ISearchTradeArgs & IOptionalSiteArgs;
|
|
9
|
+
export type ISearchTradeResult = GMOFactory.service.credit.ISearchTradeResult | IResultAsError;
|
|
10
|
+
export type IAlterTranArgs = GMOFactory.service.credit.IAlterTranArgs & IOptionalSiteArgs;
|
|
11
|
+
export type IAlterTranResult = GMOFactory.service.credit.IAlterTranResult | IResultAsError;
|
|
12
12
|
export interface IDirectionSearchTrade extends RecipeFactory.IHowToDirection {
|
|
13
13
|
beforeMedia?: ISearchTradeArgs;
|
|
14
14
|
afterMedia?: ISearchTradeResult;
|
|
@@ -42,7 +42,7 @@ export type IOptimizedSuperEvent = Pick<ISuperEvent, 'additionalProperty' | 'id'
|
|
|
42
42
|
/**
|
|
43
43
|
* 予約対象イベント
|
|
44
44
|
*/
|
|
45
|
-
export interface
|
|
45
|
+
export interface IReservationForLegacy {
|
|
46
46
|
endDate: Date;
|
|
47
47
|
id: string;
|
|
48
48
|
location: IEventLocation;
|
|
@@ -60,6 +60,16 @@ export interface IReservationFor {
|
|
|
60
60
|
*/
|
|
61
61
|
coaInfo?: never;
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* 最小化された予約対象イベント
|
|
65
|
+
* 2026-04-05~
|
|
66
|
+
*/
|
|
67
|
+
export interface IReservationForMinimized {
|
|
68
|
+
id: string;
|
|
69
|
+
startDate: Date;
|
|
70
|
+
typeOf: EventType.ScreeningEvent;
|
|
71
|
+
endDate: Date;
|
|
72
|
+
}
|
|
63
73
|
export type ICategoryChargePriceComponent = Pick<ICategoryCodeChargeSpecification, 'accounting' | 'appliesToCategoryCode' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
64
74
|
export type IMovieTicketTypeChargePriceComponent = Pick<IMovieTicketTypeChargeSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToVideoFormat' | 'name' | 'price' | 'priceCurrency' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
65
75
|
export type IUnitPriceComponent = Pick<IUnitPriceOfferPriceSpecification, 'accounting' | 'appliesToMovieTicket' | 'appliesToAddOn' | 'name' | 'price' | 'priceCurrency' | 'referenceQuantity' | 'typeOf' | 'valueAddedTaxIncluded'>;
|
|
@@ -105,7 +115,7 @@ export interface IReservation extends ReservationFactory.IReservation<IPriceSpec
|
|
|
105
115
|
bookingTime: Date;
|
|
106
116
|
id: string;
|
|
107
117
|
issuedThrough: IIssuedThrough;
|
|
108
|
-
reservationFor:
|
|
118
|
+
reservationFor: IReservationForMinimized;
|
|
109
119
|
reservationNumber: string;
|
|
110
120
|
reservationStatus: ReservationStatusType.ReservationCancelled | ReservationStatusType.ReservationConfirmed;
|
|
111
121
|
reservedTicket: IReservedTicket;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chevre/factory",
|
|
3
|
-
"version": "6.2.0-alpha.
|
|
3
|
+
"version": "6.2.0-alpha.7",
|
|
4
4
|
"description": "Chevre Factory Library for Javascript",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@aws-sdk/client-cognito-identity-provider": "3.438.0",
|
|
46
46
|
"@coasystems/factory": "1.0.0-alpha.0",
|
|
47
|
-
"@
|
|
47
|
+
"@gmopg/factory": "1.0.0-alpha.0",
|
|
48
48
|
"@surfrock/factory": "1.0.0-alpha.1",
|
|
49
49
|
"@waiter/factory": "2.2.0",
|
|
50
50
|
"setprototypeof": "1.2.0"
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { EventType } from '../eventType';
|
|
2
|
-
import { IOffer } from '../offer';
|
|
3
|
-
import { OfferType } from '../offerType';
|
|
4
|
-
import { OrganizationType } from '../organizationType';
|
|
5
|
-
import { PaymentServiceType } from '../service/paymentService';
|
|
6
|
-
import { SortType } from '../sortType';
|
|
7
|
-
interface ISeller {
|
|
8
|
-
id: string;
|
|
9
|
-
typeOf: OrganizationType.Corporation;
|
|
10
|
-
}
|
|
11
|
-
interface IAcceptedPaymentMethod {
|
|
12
|
-
typeOf: PaymentServiceType.CreditCard | PaymentServiceType.MovieTicket;
|
|
13
|
-
/**
|
|
14
|
-
* 決済サービスID
|
|
15
|
-
*/
|
|
16
|
-
id: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 対応決済方法オファー
|
|
20
|
-
*/
|
|
21
|
-
interface IAcceptedPaymentMethodOffer extends Pick<IOffer, 'typeOf' | 'validFrom' | 'validThrough'> {
|
|
22
|
-
project: {
|
|
23
|
-
id: string;
|
|
24
|
-
typeOf: OrganizationType.Project;
|
|
25
|
-
};
|
|
26
|
-
seller: ISeller;
|
|
27
|
-
typeOf: OfferType.Offer;
|
|
28
|
-
/**
|
|
29
|
-
* いつから承認可能か
|
|
30
|
-
*/
|
|
31
|
-
validFrom: Date;
|
|
32
|
-
/**
|
|
33
|
-
* いつまで承認可能か
|
|
34
|
-
*/
|
|
35
|
-
validThrough: Date;
|
|
36
|
-
id: string;
|
|
37
|
-
/**
|
|
38
|
-
* オファーコード
|
|
39
|
-
* 提供リソースID内でユニーク必須
|
|
40
|
-
*/
|
|
41
|
-
identifier: string;
|
|
42
|
-
/**
|
|
43
|
-
* オファーの提供リソース
|
|
44
|
-
*/
|
|
45
|
-
itemOffered: {
|
|
46
|
-
/**
|
|
47
|
-
* リソースID
|
|
48
|
-
*/
|
|
49
|
-
id: string;
|
|
50
|
-
typeOf: EventType.ScreeningEventSeries;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* 対応決済方法
|
|
54
|
-
*/
|
|
55
|
-
acceptedPaymentMethod: IAcceptedPaymentMethod;
|
|
56
|
-
}
|
|
57
|
-
interface ISearchConditions {
|
|
58
|
-
limit?: number;
|
|
59
|
-
page?: number;
|
|
60
|
-
sort?: {
|
|
61
|
-
validFrom?: SortType;
|
|
62
|
-
};
|
|
63
|
-
project?: {
|
|
64
|
-
id?: {
|
|
65
|
-
$eq?: string;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
id?: {
|
|
69
|
-
$eq?: string;
|
|
70
|
-
$in?: string[];
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* オファーコード
|
|
74
|
-
*/
|
|
75
|
-
identifier?: {
|
|
76
|
-
$eq?: string;
|
|
77
|
-
$in?: string[];
|
|
78
|
-
};
|
|
79
|
-
itemOffered?: {
|
|
80
|
-
/**
|
|
81
|
-
* 提供リソースID
|
|
82
|
-
*/
|
|
83
|
-
id?: {
|
|
84
|
-
$eq?: string;
|
|
85
|
-
$in?: string[];
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
acceptedPaymentMethod?: {
|
|
89
|
-
/**
|
|
90
|
-
* 決済サービスID
|
|
91
|
-
*/
|
|
92
|
-
id?: {
|
|
93
|
-
$eq?: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
seller?: {
|
|
97
|
-
/**
|
|
98
|
-
* 提供販売者ID
|
|
99
|
-
*/
|
|
100
|
-
id?: {
|
|
101
|
-
$eq?: string;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
validFrom?: {
|
|
105
|
-
$lte?: Date;
|
|
106
|
-
};
|
|
107
|
-
validThrough?: {
|
|
108
|
-
$gte?: Date;
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
export { IAcceptedPaymentMethodOffer, ISearchConditions };
|