@chevre/factory 5.4.0-alpha.1 → 5.4.0-alpha.3
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.
|
@@ -152,7 +152,12 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Scr
|
|
|
152
152
|
export type IEvent = EventFactory.IEvent<IAttributes>;
|
|
153
153
|
export type IOffers4create = Pick<ISingleOffer, 'unacceptedPaymentMethod'> & {
|
|
154
154
|
typeOf?: never;
|
|
155
|
-
} | Pick<IAggregateOffer, 'typeOf'
|
|
155
|
+
} | Pick<IAggregateOffer, 'typeOf'> & {
|
|
156
|
+
unacceptedPaymentMethod?: never;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* 施設コンテンツ作成パラメータ
|
|
160
|
+
*/
|
|
156
161
|
export type ICreateParams = Pick<IAttributes, 'typeOf' | 'name' | 'duration' | 'endDate' | 'headline' | 'startDate' | 'additionalProperty' | 'kanaName' | 'eventStatus' | 'description'> & {
|
|
157
162
|
subtitleLanguage?: Pick<ILanguage, 'name'>;
|
|
158
163
|
dubLanguage?: Pick<ILanguage, 'name'>;
|
package/lib/index.d.ts
CHANGED
|
@@ -86,6 +86,7 @@ import * as MonetaryAmountFactory from './monetaryAmount';
|
|
|
86
86
|
import * as MovieTicketTypeFactory from './movieTicketType';
|
|
87
87
|
import { IMultilingualString } from './multilingualString';
|
|
88
88
|
import * as OfferFactory from './offer';
|
|
89
|
+
import * as AcceptedPaymentMethodOfferFactory from './offer/acceptedPaymentMethod';
|
|
89
90
|
import * as AggregateOfferFactory from './offer/aggregateOffer';
|
|
90
91
|
import * as EventOfferFactory from './offer/eventOffer';
|
|
91
92
|
import * as ProductOfferFactory from './offer/productOffer';
|
|
@@ -238,6 +239,7 @@ import { ErrorCode } from './errorCode';
|
|
|
238
239
|
import * as errors from './errors';
|
|
239
240
|
export import errors = errors;
|
|
240
241
|
export import errorCode = ErrorCode;
|
|
242
|
+
export import acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
|
|
241
243
|
export import account = AccountFactory;
|
|
242
244
|
export import actionStatusType = ActionStatusType;
|
|
243
245
|
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.
|
|
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.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = void 0;
|
|
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.acceptedPaymentMethodOffer = exports.errorCode = exports.errors = exports.waiter = exports.cognito = 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.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.project = 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
|
*/
|
|
@@ -86,6 +86,7 @@ var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
|
|
|
86
86
|
var MonetaryAmountFactory = require("./monetaryAmount");
|
|
87
87
|
var MovieTicketTypeFactory = require("./movieTicketType");
|
|
88
88
|
var OfferFactory = require("./offer");
|
|
89
|
+
var AcceptedPaymentMethodOfferFactory = require("./offer/acceptedPaymentMethod");
|
|
89
90
|
var AggregateOfferFactory = require("./offer/aggregateOffer");
|
|
90
91
|
var EventOfferFactory = require("./offer/eventOffer");
|
|
91
92
|
var ProductOfferFactory = require("./offer/productOffer");
|
|
@@ -212,6 +213,7 @@ var errorCode_1 = require("./errorCode");
|
|
|
212
213
|
var errors = require("./errors");
|
|
213
214
|
exports.errors = errors;
|
|
214
215
|
exports.errorCode = errorCode_1.ErrorCode;
|
|
216
|
+
exports.acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
|
|
215
217
|
exports.account = AccountFactory;
|
|
216
218
|
exports.actionStatusType = actionStatusType_1.ActionStatusType;
|
|
217
219
|
exports.actionType = actionType_1.ActionType;
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* オファーコード
|
|
73
|
+
*/
|
|
74
|
+
identifier?: {
|
|
75
|
+
$eq?: string;
|
|
76
|
+
$in?: string[];
|
|
77
|
+
};
|
|
78
|
+
itemOffered?: {
|
|
79
|
+
/**
|
|
80
|
+
* 提供リソースID
|
|
81
|
+
*/
|
|
82
|
+
id?: {
|
|
83
|
+
$eq?: string;
|
|
84
|
+
$in?: string[];
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
acceptedPaymentMethod?: {
|
|
88
|
+
/**
|
|
89
|
+
* 決済サービスID
|
|
90
|
+
*/
|
|
91
|
+
id?: {
|
|
92
|
+
$eq?: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
seller?: {
|
|
96
|
+
/**
|
|
97
|
+
* 提供販売者ID
|
|
98
|
+
*/
|
|
99
|
+
id?: {
|
|
100
|
+
$eq?: string;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
validFrom?: {
|
|
104
|
+
$lte?: Date;
|
|
105
|
+
};
|
|
106
|
+
validThrough?: {
|
|
107
|
+
$gte?: Date;
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export { IAcceptedPaymentMethodOffer, ISearchConditions };
|