@chevre/factory 4.313.0-alpha.4 → 4.313.0-alpha.6

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/index.d.ts CHANGED
@@ -70,6 +70,7 @@ import * as MonetaryAmountFactory from './monetaryAmount';
70
70
  import { IMultilingualString } from './multilingualString';
71
71
  import * as OfferFactory from './offer';
72
72
  import * as OfferCatalogFactory from './offerCatalog';
73
+ import * as OfferItemConditionFactory from './offerItemCondition';
73
74
  import { OfferType } from './offerType';
74
75
  import * as OrderFactory from './order';
75
76
  import { OrderStatus } from './orderStatus';
@@ -322,6 +323,7 @@ export import monetaryAmount = MonetaryAmountFactory;
322
323
  export declare type multilingualString = IMultilingualString;
323
324
  export import offer = OfferFactory;
324
325
  export import offerCatalog = OfferCatalogFactory;
326
+ export import offerItemCondition = OfferItemConditionFactory;
325
327
  export import offerType = OfferType;
326
328
  export import order = OrderFactory;
327
329
  export import orderStatus = OrderStatus;
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
- exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = void 0;
3
+ 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.offerItemCondition = exports.offerCatalog = exports.offer = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
+ exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -67,6 +67,7 @@ var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
67
67
  var MonetaryAmountFactory = require("./monetaryAmount");
68
68
  var OfferFactory = require("./offer");
69
69
  var OfferCatalogFactory = require("./offerCatalog");
70
+ var OfferItemConditionFactory = require("./offerItemCondition");
70
71
  var offerType_1 = require("./offerType");
71
72
  var OrderFactory = require("./order");
72
73
  var orderStatus_1 = require("./orderStatus");
@@ -302,6 +303,7 @@ exports.merchantReturnPolicy = MerchantReturnPolicyFactory;
302
303
  exports.monetaryAmount = MonetaryAmountFactory;
303
304
  exports.offer = OfferFactory;
304
305
  exports.offerCatalog = OfferCatalogFactory;
306
+ exports.offerItemCondition = OfferItemConditionFactory;
305
307
  exports.offerType = offerType_1.OfferType;
306
308
  exports.order = OrderFactory;
307
309
  exports.orderStatus = orderStatus_1.OrderStatus;
@@ -1,4 +1,5 @@
1
1
  import { IMonetaryAmount } from './monetaryAmount';
2
+ import { IOfferItemCondition } from './offerItemCondition';
2
3
  import { IThing } from './thing';
3
4
  export declare enum RefundTypeEnumeration {
4
5
  ExchangeRefund = "ExchangeRefund",
@@ -42,20 +43,24 @@ export declare enum MerchantReturnEnumeration {
42
43
  MerchantReturnUnspecified = "MerchantReturnUnspecified"
43
44
  }
44
45
  export declare type IRestockingFee = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
46
+ export declare type IItemCondition = Pick<IOfferItemCondition, 'typeOf' | 'id'>;
47
+ export declare type ICustomerRemorseReturnFees = ReturnFeesEnumeration;
48
+ export declare type ICustomerRemorseReturnFeesMovieTicket = ReturnFeesEnumeration.FreeReturn | ReturnFeesEnumeration.ReturnFeesCustomerResponsibility;
45
49
  export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
46
50
  typeOf: 'MerchantReturnPolicy';
47
51
  /**
48
52
  * The type of return fees if the product is returned due to customer remorse.
49
53
  */
50
- customerRemorseReturnFees?: ReturnFeesEnumeration;
54
+ customerRemorseReturnFees?: ICustomerRemorseReturnFees;
51
55
  /**
52
56
  * 決済カード着券取消仕様
53
57
  */
54
- customerRemorseReturnFeesMovieTicket?: ReturnFeesEnumeration;
58
+ customerRemorseReturnFeesMovieTicket?: ICustomerRemorseReturnFeesMovieTicket;
55
59
  /**
56
60
  * Are in-store returns offered?
57
61
  */
58
62
  inStoreReturnsOffered?: boolean;
63
+ itemCondition?: IItemCondition;
59
64
  /**
60
65
  * The merchantReturnDays property indicates the number of days (from purchase)
61
66
  * within which relevant merchant return policy is applicable. Supersedes productReturnDays.
@@ -73,7 +78,7 @@ export interface IMerchantReturnPolicy extends Pick<IThing, 'name' | 'url'> {
73
78
  * Use MonetaryAmount to specify a fixed restocking fee for product returns,
74
79
  * or use Number to specify a percentage of the product price paid by the customer.
75
80
  */
76
- restockingFee?: IRestockingFee | number;
81
+ restockingFee?: IRestockingFee;
77
82
  /**
78
83
  * Indicates (via enumerated options) the return fees policy for a MerchantReturnPolicy
79
84
  */
@@ -0,0 +1,47 @@
1
+ import { IMultilingualString } from './multilingualString';
2
+ import { ProductType } from './product';
3
+ import { IProject } from './project';
4
+ import { IQuantitativeValue } from './quantitativeValue';
5
+ import { ReservationType } from './reservationType';
6
+ import { SortType } from './sortType';
7
+ import { UnitCode } from './unitCode';
8
+ declare type IGracePeriodBeforeStart = Pick<IQuantitativeValue<UnitCode.Sec>, 'maxValue' | 'minValue' | 'typeOf' | 'unitCode'>;
9
+ export interface IItemOffered {
10
+ typeOf: ProductType.EventService;
11
+ serviceOutput?: {
12
+ typeOf: ReservationType.EventReservation;
13
+ reservationFor: {
14
+ gracePeriodBeforeStart?: IGracePeriodBeforeStart;
15
+ };
16
+ };
17
+ }
18
+ export interface IOfferItemCondition {
19
+ id?: string;
20
+ identifier: string;
21
+ itemOffered: IItemOffered;
22
+ name: IMultilingualString;
23
+ project: Pick<IProject, 'id' | 'typeOf'>;
24
+ typeOf: 'OfferItemCondition';
25
+ }
26
+ export interface ISortOrder {
27
+ identifier?: SortType;
28
+ }
29
+ export interface ISearchConditions {
30
+ limit?: number;
31
+ page?: number;
32
+ sort?: ISortOrder;
33
+ project?: {
34
+ id?: {
35
+ $eq?: string;
36
+ };
37
+ };
38
+ id?: {
39
+ $eq?: string;
40
+ $in?: string[];
41
+ };
42
+ identifier?: {
43
+ $eq?: string;
44
+ $in?: string[];
45
+ };
46
+ }
47
+ export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/lib/seller.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IMerchantReturnPolicy } from './merchantReturnPolicy';
1
+ import { IMerchantReturnPolicy, IRestockingFee } from './merchantReturnPolicy';
2
2
  import { IMultilingualString } from './multilingualString';
3
3
  import { IOffer } from './offer';
4
4
  import { IOrganization } from './organization';
@@ -8,7 +8,9 @@ import { IPropertyValue } from './propertyValue';
8
8
  import { IQuantitativeValue } from './quantitativeValue';
9
9
  import { SortType } from './sortType';
10
10
  import { UnitCode } from './unitCode';
11
- export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'>;
11
+ export declare type ISellerMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'itemCondition' | 'typeOf' | 'merchantReturnDays' | 'restockingFee' | 'url'> & {
12
+ restockingFee: IRestockingFee;
13
+ };
12
14
  export declare type IHasMerchantReturnPolicy = ISellerMerchantReturnPolicy[];
13
15
  /**
14
16
  * 利用可能決済
@@ -1,9 +1,11 @@
1
- import { IMerchantReturnPolicy } from '../merchantReturnPolicy';
1
+ import { ICustomerRemorseReturnFees, ICustomerRemorseReturnFeesMovieTicket, IMerchantReturnPolicy } from '../merchantReturnPolicy';
2
2
  import { IMultilingualString } from '../multilingualString';
3
3
  import { IProject } from '../project';
4
4
  import { IPropertyValue } from '../propertyValue';
5
5
  import { SortType } from '../sortType';
6
6
  export declare type IOfferMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'typeOf' | 'customerRemorseReturnFees' | 'customerRemorseReturnFeesMovieTicket'> & {
7
+ customerRemorseReturnFees: ICustomerRemorseReturnFees;
8
+ customerRemorseReturnFeesMovieTicket: ICustomerRemorseReturnFeesMovieTicket;
7
9
  project: Pick<IProject, 'id' | 'typeOf'>;
8
10
  additionalProperty?: IPropertyValue<string>[];
9
11
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.313.0-alpha.4",
3
+ "version": "4.313.0-alpha.6",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",