Skip to content

Commit

Permalink
プロジェクトにmakesOfferを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Feb 18, 2024
1 parent b1555a7 commit 6ba57ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
### Added

- プロジェクト設定にtokenIssuersを追加
- プロジェクトにmakesOfferを追加

### Changed

Expand Down
12 changes: 12 additions & 0 deletions src/project.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { IBusinessEntityType } from './businessEntityType';
import { IMerchantReturnPolicy } from './merchantReturnPolicy';
import { IAvailableAtOrFrom, IOffer } from './offer';
import { IOrganization } from './organization';
import { OrganizationType } from './organizationType';
import { SortType } from './sortType';
Expand Down Expand Up @@ -77,6 +79,16 @@ export interface ISubscription {

}
export type IHasMerchantReturnPolicy = Pick<IMerchantReturnPolicy, 'sameAs' | 'typeOf'>;
export interface IMakesOffer extends Pick<
IOffer,
'typeOf' | 'availableAtOrFrom'
> {
availableAtOrFrom: IAvailableAtOrFrom[];
/**
* 適用カスタマータイプ
*/
eligibleCustomerType?: IBusinessEntityType[];
}
/**
* プロジェクト
*/
Expand Down
6 changes: 0 additions & 6 deletions src/seller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ export interface IPaymentAccepted {
paymentMethodType: string;
}
export type IEligibleTransactionDuration = Pick<IQuantitativeValue<UnitCode.Sec>, 'maxValue' | 'typeOf' | 'unitCode'>;
// export interface IEligibleMembership {
// /**
// * メンバーシップトークン検証シークレット(2024-01-31~)
// */
// secret?: string;
// }
export interface IMakesOffer extends Pick<
IOffer,
'typeOf' | 'availableAtOrFrom'
Expand Down

0 comments on commit 6ba57ff

Please sign in to comment.