@chevre/factory 4.323.0 → 4.324.0-alpha.1

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.
@@ -5,7 +5,6 @@ import * as OfferFactory from '../offer';
5
5
  import { OfferType } from '../offerType';
6
6
  import { OrganizationType } from '../organizationType';
7
7
  import { PlaceType } from '../placeType';
8
- import { PriceCurrency } from '../priceCurrency';
9
8
  import { IServiceType as IProductServiceType, ProductType } from '../product';
10
9
  import * as ReservationFactory from '../reservation';
11
10
  import { ReservationType } from '../reservationType';
@@ -130,7 +129,6 @@ export import IEligibleQuantity = OfferFactory.IEligibleQuantity;
130
129
  */
131
130
  export interface IOffer {
132
131
  typeOf: OfferType.Offer;
133
- priceCurrency: PriceCurrency.JPY;
134
132
  /**
135
133
  * 情報提供終了日時(オンライン取引アプリケーションの設定)
136
134
  * @deprecated Use seller.makesOffer
@@ -4,7 +4,6 @@ import * as ScreeningEventSeriesFactory from '../event/screeningEventSeries';
4
4
  import { EventType } from '../eventType';
5
5
  import { OfferType } from '../offerType';
6
6
  import { PlaceType } from '../placeType';
7
- import { PriceCurrency } from '../priceCurrency';
8
7
  import { IServiceType as IProductServiceType, ProductType } from '../product';
9
8
  import * as ReservationFactory from '../reservation';
10
9
  import { ReservationType } from '../reservationType';
@@ -62,7 +61,6 @@ export import IEligibleQuantity = AnyEventFactory.IEligibleQuantity;
62
61
  */
63
62
  export interface IOffer {
64
63
  typeOf: OfferType.Offer;
65
- priceCurrency: PriceCurrency.JPY;
66
64
  /**
67
65
  * 情報提供終了日時(オンライン取引アプリケーションの設定)
68
66
  * @deprecated Use seller.makesOffer
@@ -92,7 +90,7 @@ export interface IOffer {
92
90
  unacceptedPaymentMethod?: string[];
93
91
  seller: ISeller;
94
92
  }
95
- export declare type IOffer4COA = Pick<IOffer, 'typeOf' | 'offeredThrough' | 'priceCurrency'> & {
93
+ export declare type IOffer4COA = Pick<IOffer, 'typeOf' | 'offeredThrough'> & {
96
94
  itemOffered: {
97
95
  serviceOutput: Pick<IServiceOutput, 'reservedTicket'>;
98
96
  };
@@ -6,13 +6,11 @@ import { ILanguage } from '../language';
6
6
  import { IMultilingualString } from '../multilingualString';
7
7
  import { OfferType } from '../offerType';
8
8
  import { PlaceType } from '../placeType';
9
- import { PriceCurrency } from '../priceCurrency';
10
9
  /**
11
10
  * 施設コンテンツに対するオファー
12
11
  */
13
12
  export interface IOffer {
14
13
  typeOf: OfferType.Offer;
15
- priceCurrency: PriceCurrency.JPY;
16
14
  /**
17
15
  * 利用不可決済方法区分
18
16
  */
package/lib/event.d.ts CHANGED
@@ -7,7 +7,7 @@ import * as PlaceFactory from './place';
7
7
  import { IProject } from './project';
8
8
  import { IPropertyValue } from './propertyValue';
9
9
  import { SortType } from './sortType';
10
- export declare type IOffer = Omit<OfferFactory.IOffer, 'project'>;
10
+ export declare type IOffer = Pick<OfferFactory.IOffer, 'typeOf' | 'unacceptedPaymentMethod' | 'seller' | 'eligibleQuantity' | 'itemOffered' | 'offeredThrough'>;
11
11
  export interface IAttributes<T extends EventType> {
12
12
  project: Pick<IProject, 'id' | 'typeOf'>;
13
13
  /**
package/lib/invoice.d.ts CHANGED
@@ -66,7 +66,9 @@ export interface IPaymentMethod {
66
66
  typeOf: PaymentServiceType;
67
67
  serviceOutput?: IPaymentServiceOutput;
68
68
  }
69
- export declare type ITotalPaymentDue = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
69
+ export declare type ITotalPaymentDue = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> & {
70
+ value: number;
71
+ };
70
72
  /**
71
73
  * インボイス
72
74
  * {@link https://schema.org/Invoice}
package/lib/offer.d.ts CHANGED
@@ -22,7 +22,9 @@ export interface ICategory {
22
22
  codeValue?: string;
23
23
  }
24
24
  export declare type IEligibleCategoryCode = Pick<ICategoryCode, 'typeOf' | 'id' | 'codeValue' | 'inCodeSet'>;
25
- export declare type IEligibleMonetaryAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
25
+ export declare type IEligibleMonetaryAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'> & {
26
+ value: number;
27
+ };
26
28
  /**
27
29
  * 適用サブ予約条件
28
30
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.323.0",
3
+ "version": "4.324.0-alpha.1",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",