@chevre/factory 4.347.0-alpha.11 → 4.347.0-alpha.13

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/product.d.ts CHANGED
@@ -7,7 +7,7 @@ import { IPriceSpecification as ICategoryCodeChargeSpecification } from './price
7
7
  import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
8
8
  import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
9
9
  import { IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
10
- import { IProject } from './project';
10
+ import { IOnPaymentStatusChanged, IProject } from './project';
11
11
  import { IPropertyValue } from './propertyValue';
12
12
  import { IQuantitativeValue } from './quantitativeValue';
13
13
  import { SortType } from './sortType';
@@ -63,6 +63,7 @@ export interface IAvailableChannel {
63
63
  typeOf: 'ServiceChannel';
64
64
  serviceUrl?: string;
65
65
  credentials?: ICredentials;
66
+ onPaymentStatusChanged?: IOnPaymentStatusChanged;
66
67
  }
67
68
  export type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'typeOf'>;
68
69
  export type IOffer = Pick<IBaseOffer, 'typeOf' | 'priceCurrency' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
@@ -79,18 +80,22 @@ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
79
80
  typeOf: ProductType;
80
81
  id?: string;
81
82
  availableChannel?: IAvailableChannel;
82
- description?: IMultilingualString;
83
+ /**
84
+ * 説明
85
+ */
86
+ description?: Pick<IMultilingualString, 'en' | 'ja'>;
83
87
  /**
84
88
  * Indicates an OfferCatalog listing for this Organization, Person, or Service.
89
+ * カタログ
85
90
  */
86
91
  hasOfferCatalog?: IHasOfferCatalog;
87
- name?: IMultilingualString;
88
92
  /**
89
- * An offer to provide this item
93
+ * 名称
90
94
  */
91
- offers?: IOffer[];
95
+ name?: Pick<IMultilingualString, 'en' | 'ja'>;
92
96
  /**
93
97
  * The product identifier, such as ISBN. For example: meta itemprop="productID" content="isbn:123-456-789".
98
+ * プロジェクト内でユニークなプロダクトID
94
99
  */
95
100
  productID: string;
96
101
  /**
@@ -99,6 +104,7 @@ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
99
104
  serviceOutput?: IServiceOutput;
100
105
  /**
101
106
  * The type of service being offered, e.g. veterans' benefits, emergency relief, etc.
107
+ * サービスタイプ(興行区分、メンバーシップ区分、決済方法区分)
102
108
  */
103
109
  serviceType?: IServiceType;
104
110
  additionalProperty?: IPropertyValue<string>[];
@@ -1,7 +1,8 @@
1
1
  import { IInvoice } from '../invoice';
2
+ import { IMultilingualString } from '../multilingualString';
2
3
  import { IIssuedThrough, IPermit } from '../permit';
3
4
  import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
4
- import { IOnPaymentStatusChanged, IProject } from '../project';
5
+ import { IProject } from '../project';
5
6
  import { IPropertyValue } from '../propertyValue';
6
7
  import { ISeller } from '../seller';
7
8
  import { IThing } from '../thing';
@@ -54,7 +55,6 @@ export interface IProvider extends Pick<ISeller, 'name' | 'typeOf'> {
54
55
  credentials?: IProviderCredentials;
55
56
  }
56
57
  export type IAvailableChannel = IProductAvailableChannel & {
57
- onPaymentStatusChanged?: IOnPaymentStatusChanged;
58
58
  totalPaymentDue?: {
59
59
  maxValue?: number;
60
60
  };
@@ -100,15 +100,13 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
100
100
  typeOf: PaymentServiceType;
101
101
  id?: string;
102
102
  availableChannel?: IAvailableChannel;
103
+ description?: Pick<IMultilingualString, 'en' | 'ja'>;
104
+ name?: Pick<IMultilingualString, 'en' | 'ja'>;
103
105
  /**
104
106
  * The product identifier, such as ISBN.
105
- * プロジェクト内でユニークな想定
107
+ * プロジェクト内でユニークなプロダクトID
106
108
  */
107
109
  productID: string;
108
- /**
109
- * 決済サービス提供者(決済サービスを利用する販売者)
110
- */
111
- provider?: IProvider[];
112
110
  /**
113
111
  * The tangible thing generated by the service, e.g. a passport, permit, etc.
114
112
  * (InvoiceやPermit)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.347.0-alpha.11",
3
+ "version": "4.347.0-alpha.13",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",