@chevre/factory 4.347.0-alpha.7 → 4.347.0-alpha.9

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.
Files changed (2) hide show
  1. package/lib/product.d.ts +11 -6
  2. package/package.json +1 -1
package/lib/product.d.ts CHANGED
@@ -2,7 +2,7 @@ import { ICategoryCode } from './categoryCode';
2
2
  import { IMultilingualString } from './multilingualString';
3
3
  import { IName as IOfferName, IOffer as IBaseOffer } from './offer';
4
4
  import { OfferType } from './offerType';
5
- import { IPermit } from './permit';
5
+ import { IAmount as IPermitAmount, IPermit } from './permit';
6
6
  import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
7
7
  import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
8
8
  import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
@@ -43,10 +43,11 @@ export interface IHasOfferCatalog {
43
43
  typeOf: 'OfferCatalog';
44
44
  id: string;
45
45
  }
46
- export type IMembershipPointsEarned = Pick<IQuantitativeValue<string>, 'name' | 'typeOf' | 'unitText' | 'value'>;
47
- export type IServiceOutput = Pick<IPermit, 'typeOf' | 'amount'> & {
48
- membershipPointsEarned?: IMembershipPointsEarned;
49
- automaticRenewal?: boolean;
46
+ export type IServiceOutput = Pick<IPermit, 'typeOf'> & {
47
+ /**
48
+ * ペイメントカードの場合、通貨区分
49
+ */
50
+ amount?: Pick<IPermitAmount, 'currency' | 'typeOf'>;
50
51
  };
51
52
  /**
52
53
  * 外部サービス認証情報
@@ -103,7 +104,11 @@ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
103
104
  additionalProperty?: IPropertyValue<string>[];
104
105
  }
105
106
  export type ICreateParams = Pick<IProduct, 'typeOf' | 'productID' | 'name' | 'description' | 'availableChannel' | 'serviceOutput'> & {
106
- hasOfferCatalog?: Pick<IHasOfferCatalog, 'id'> | {
107
+ hasOfferCatalog?: {
108
+ /**
109
+ * IDを指定する場合
110
+ */
111
+ id?: string;
107
112
  /**
108
113
  * カタログコードを指定する場合
109
114
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.347.0-alpha.7",
3
+ "version": "4.347.0-alpha.9",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",