Skip to content

Commit

Permalink
予約使用アクションをinstrument.ticketTokenに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Feb 27, 2024
1 parent 8c2d0d7 commit 3d16356
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Changed

- 予約使用アクションをinstrument.ticketTokenに対応

### Deprecated

### Removed
Expand Down
14 changes: 10 additions & 4 deletions src/action/consume/use/reservation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import * as UseActionFactory from '../use';

export type IAgent = IParticipantAsPerson | IParticipantAsWebApplication;
export type IReservationAsObject = Pick<IReservation, 'id' | 'issuedThrough' | 'reservationFor' | 'reservationNumber' | 'reservedTicket' | 'typeOf'>;
// オブジェクト最適化(2023-01-30~)
export type IObject = IReservationAsObject[];
// tslint:disable-next-line:no-empty-interface
export interface IResult { }
Expand All @@ -17,16 +16,23 @@ export interface ILocation {
*/
identifier: string;
}
export type IPotentialActions = any;
// export type IPotentialActions = any;
export interface IInstrument {
/**
* JWT
*/
token?: string;
/**
* 承認コード
*/
ticketToken?: string; // add(2024-02-28~)
typeOf: ObjectType.Ticket;
}
export interface IAttributes extends UseActionFactory.IAttributes<IObject, IResult> {
agent: IAgent;
instrument?: IInstrument;
instrument: IInstrument;
location?: ILocation;
potentialActions?: IPotentialActions;
// potentialActions?: IPotentialActions;
}
/**
* 予約使用アクション
Expand Down

0 comments on commit 3d16356

Please sign in to comment.