Skip to content

Commit

Permalink
販売者のmakesOfferにeligibleMembershipを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Jan 31, 2024
1 parent 6cc6a26 commit 071478f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -15,7 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
- 決済サービスプロバイダーのIPaymentUrlSettingsにuse3DSを追加
- 注文オファーにserialNumberを追加
- オファー承認アクションにinstrument.transactionNumberを保証
- IAMメンバーにsettingsを追加
- 販売者のmakesOfferにeligibleMembershipを追加

### Changed

Expand Down
7 changes: 0 additions & 7 deletions src/iam.ts
Expand Up @@ -32,12 +32,6 @@ export interface IRoleSearchConditions {

export type IMemberType = PersonType | CreativeWorkType.WebApplication;
export type IMemberHasRole = Pick<IRole, 'typeOf' | 'roleName'>[];
export interface IMemberSettings {
/**
* メンバーシップトークン検証シークレット(2024-01-31~)
*/
verifySecret?: string;
}
export interface IMemberOfRole {
typeOf: IMemberType;
/**
Expand All @@ -52,7 +46,6 @@ export interface IMemberOfRole {
* プロジェクトメンバー or 販売者メンバー
*/
memberOf: { typeOf: OrganizationType.Corporation | OrganizationType.Project; id: string }; // memberOfを必須化(2023-07-24~)
settings?: IMemberSettings;
}
export interface IMember {
typeOf: RoleType;
Expand Down
7 changes: 7 additions & 0 deletions src/seller.ts
Expand Up @@ -27,6 +27,12 @@ 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 All @@ -40,6 +46,7 @@ export interface IMakesOffer extends Pick<
* 適用取引期間
*/
eligibleTransactionDuration: IEligibleTransactionDuration; // required
eligibleMembership?: IEligibleMembership;
}
export interface ISeller extends Pick<
IOrganization,
Expand Down

0 comments on commit 071478f

Please sign in to comment.