Skip to content

Commit

Permalink
イベントに対するオファー集計タスクを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Mar 24, 2024
1 parent b877679 commit a8c02b4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Added

- イベントに対するオファー集計タスクを追加

### Changed

- 経理レポートの返金アクションをFailedActionStatusに対応
Expand Down
2 changes: 1 addition & 1 deletion src/action/authorize/paymentMethod/any.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export interface IObject {
export type IObjectWithoutDetail = Pick<
IObject,
'additionalProperty' | 'amount' | 'issuedThrough' | 'paymentMethod'
| 'name' | 'creditCard' | 'method' | 'movieTickets' | 'fromLocation'
| 'description' | 'name' | 'creditCard' | 'method' | 'movieTickets' | 'fromLocation'
> & {
/**
* 外部決済URL発行の場合に指定
Expand Down
6 changes: 2 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ import * as UnitPriceOfferFactory from './unitPriceOffer';

import * as TaskFactory from './task';
import * as AccountMoneyTransferTaskFactory from './task/accountMoneyTransfer';
import * as AggregateOffersTaskFactory from './task/aggregateOffers';
import * as AggregateScreeningEventTaskFactory from './task/aggregateScreeningEvent';
import * as AggregateUseActionsOnEventTaskFactory from './task/aggregateUseActionsOnEvent';
import * as CancelAccountMoneyTransferTaskFactory from './task/cancelAccountMoneyTransfer';
Expand Down Expand Up @@ -586,7 +587,6 @@ export namespace task {
T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IData :
T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IData :
TaskFactory.IData;

export type IAttributes<T extends TaskName | string> =
T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.IAttributes :
T extends TaskName.CreateEvent ? CreateEventTaskFactory.IAttributes :
Expand Down Expand Up @@ -617,7 +617,6 @@ export namespace task {
T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.IAttributes :
T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.IAttributes :
TaskFactory.IAttributes;

export type ITask<T extends TaskName | string> =
T extends TaskName.ConfirmReserveTransaction ? ConfirmReserveTransactionTaskFactory.ITask :
T extends TaskName.CreateEvent ? CreateEventTaskFactory.ITask :
Expand Down Expand Up @@ -648,11 +647,10 @@ export namespace task {
T extends TaskName.VoidRegisterServiceTransaction ? VoidRegisterServiceTransactionTaskFactory.ITask :
T extends TaskName.VoidReserveTransaction ? VoidReserveTransactionTaskFactory.ITask :
TaskFactory.ITask;

export import ISearchConditions = TaskFactory.ISearchConditions;

export import IExecutionResult = TaskFactory.IExecutionResult;

export import aggregateOffers = AggregateOffersTaskFactory;
export import aggregateScreeningEvent = AggregateScreeningEventTaskFactory;
export import aggregateUseActionsOnEvent = AggregateUseActionsOnEventTaskFactory;
export import cancelMoneyTransfer = CancelMoneyTransferTaskFactory;
Expand Down
17 changes: 17 additions & 0 deletions src/task/aggregateOffers.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { IExtendId } from '../autoGenerated';
import { EventType } from '../eventType';
import * as TaskFactory from '../task';
import { TaskName } from '../taskName';

export interface IData {
typeOf: EventType.ScreeningEvent;
id: string;
}
export interface IAttributes extends TaskFactory.IAttributes {
name: TaskName.AggregateOffers;
data: IData;
}
/**
* オファー集計タスク
*/
export type ITask = IExtendId<IAttributes>;
1 change: 1 addition & 0 deletions src/taskName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export enum TaskName {
* 口座転送
*/
AccountMoneyTransfer = 'accountMoneyTransfer',
AggregateOffers = 'aggregateOffers',
AggregateScreeningEvent = 'aggregateScreeningEvent',
AggregateUseActionsOnEvent = 'aggregateUseActionsOnEvent',
/**
Expand Down

0 comments on commit a8c02b4

Please sign in to comment.