Skip to content

Commit

Permalink
プロダクトIFを最適化
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Dec 16, 2023
1 parent 5f4fb45 commit 34325f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
### Changed

- 施設コンテンツのICreateParamsを最適化
- プロダクトIFを最適化

### Deprecated

Expand Down
14 changes: 9 additions & 5 deletions src/product.ts
Expand Up @@ -2,7 +2,7 @@ import { ICategoryCode } from './categoryCode';
import { IMultilingualString } from './multilingualString';
import { IName as IOfferName, IOffer as IBaseOffer } from './offer';
import { OfferType } from './offerType';
import { IPermit } from './permit';
import { IAmount as IPermitAmount, IPermit } from './permit';
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
import { IPriceSpecification as ICompoundPriceSpecification } from './priceSpecification/compoundPriceSpecification';
import { IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
Expand Down Expand Up @@ -45,10 +45,14 @@ export interface IHasOfferCatalog {
typeOf: 'OfferCatalog';
id: string;
}
export type IMembershipPointsEarned = Pick<IQuantitativeValue<string>, 'name' | 'typeOf' | 'unitText' | 'value'>;
export type IServiceOutput = Pick<IPermit, 'typeOf' | 'amount'> & {
membershipPointsEarned?: IMembershipPointsEarned;
automaticRenewal?: boolean;
// export type IMembershipPointsEarned = Pick<IQuantitativeValue<string>, 'name' | 'typeOf' | 'unitText' | 'value'>;
export type IServiceOutput = Pick<IPermit, 'typeOf'> & {
/**
* ペイメントカードの場合、通貨区分
*/
amount?: Pick<IPermitAmount, 'currency' | 'typeOf'>;
// membershipPointsEarned?: IMembershipPointsEarned; // discontinue(2023-12-17~)
// automaticRenewal?: boolean; // discontinue(2023-12-17~)
};
/**
* 外部サービス認証情報
Expand Down

0 comments on commit 34325f0

Please sign in to comment.