Skip to content

Commit

Permalink
特典承認アクションを廃止
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Mar 11, 2024
1 parent 6627b95 commit 2851091
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 70 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -17,6 +17,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Removed

- 特典承認アクションを廃止

### Fixed

### Security
Expand Down
46 changes: 0 additions & 46 deletions src/action/authorize/award/point.ts

This file was deleted.

8 changes: 2 additions & 6 deletions src/action/trade/order.ts
Expand Up @@ -2,7 +2,7 @@ import * as ActionFactory from '../../action';
import { ActionType } from '../../actionType';
import { ISimpleOrder } from '../../order';
import { TransactionType } from '../../transactionType';
import { IAttributes as IGivePointAwardActionAttributes } from '../transfer/give/pointAward';
// import { IAttributes as IGivePointAwardActionAttributes } from '../transfer/give/pointAward';
import { IAttributes as ISendOrderActionAttributes } from '../transfer/send/order';

export type IAgent = ActionFactory.IParticipant;
Expand All @@ -11,11 +11,7 @@ export type IObject = ISimpleOrder;
export type IResult = any;
export type ISendOrderPotentialAction = Pick<ISendOrderActionAttributes, 'potentialActions'>;
export interface IPotentialActions {
/**
* ポイント付与アクション
* 現時点で複数口座にポイントを付与することはないが、可能性もこめてリストで持っておく
*/
givePointAward?: IGivePointAwardActionAttributes[];
// givePointAward?: IGivePointAwardActionAttributes[]; // 廃止(2024-03-12~)
// pay?: IPayActionAttributes[]; // 廃止(2023-02-03~)
// sendOrder?: ISendOrderActionAttributes;
sendOrder?: ISendOrderPotentialAction; // optimize(2024-01-16~)
Expand Down
5 changes: 3 additions & 2 deletions src/action/transfer/give/pointAward.ts
@@ -1,11 +1,12 @@
import * as ActionFactory from '../../../action';
import * as OrderFactory from '../../../order';
import { ObjectType as AuthorizePointAwardActionObjectType } from '../../authorize/award/point';
import * as GiveActionFactory from '../give';

// export type IAgent = ActionFactory.IParticipantAsProject; // 変更(2024-03-06~)
export type IAgent = ActionFactory.IParticipantAsSeller;
export import ObjectType = AuthorizePointAwardActionObjectType;
export enum ObjectType {
PointAward = 'PointAward'
}
/**
* ポイント特典付与対象
*/
Expand Down
6 changes: 0 additions & 6 deletions src/index.ts
Expand Up @@ -12,7 +12,6 @@ import * as AccountFactory from './account';

import * as ActionFactory from './action';
import * as AuthorizeActionFactory from './action/authorize';
import * as PointAwardAuthorizeActionFactory from './action/authorize/award/point';
import * as AuthorizeEventServiceOfferActionFactory from './action/authorize/offer/eventService';
import * as AuthorizeMoneyTransferOfferActionFactory from './action/authorize/offer/moneyTransfer';
import * as AuthorizeProductOfferActionFactory from './action/authorize/offer/product';
Expand Down Expand Up @@ -223,15 +222,10 @@ export namespace action {
export import IAction = AuthorizeActionFactory.IAction;
// tslint:disable-next-line:no-shadowed-variable
export import IAttributes = AuthorizeActionFactory.IAttributes;
export namespace award {
export import point = PointAwardAuthorizeActionFactory;
}
// tslint:disable-next-line:no-shadowed-variable
export namespace paymentMethod {
export import any = AuthorizeAnyPaymentActionFactory;
}
export namespace discount {
}
// tslint:disable-next-line:no-shadowed-variable
export namespace offer {
export import eventService = AuthorizeEventServiceOfferActionFactory;
Expand Down
17 changes: 7 additions & 10 deletions src/transaction/placeOrder.ts
Expand Up @@ -2,7 +2,7 @@ import * as waiter from '@waiter/factory';

import { AccountType } from '../accountType';
import { IAttributes as IOrderActionAttributes } from '../action/trade/order';
import { IObject as IGivePointAwardObject } from '../action/transfer/give/pointAward';
// import { IObject as IGivePointAwardObject } from '../action/transfer/give/pointAward';
import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult, IPaymentMethodWithoutDetail } from '../assetTransaction/pay';
import { IExtendId } from '../autoGenerated';
import { IClientUser } from '../clientUser';
Expand Down Expand Up @@ -82,9 +82,9 @@ export interface IObject {
* WAITER許可証
*/
passport?: waiter.passport.IPassport;
potentialActions?: {
givePointAward?: IGivePointAwardParams[];
};
// potentialActions?: {
// givePointAward?: IGivePointAwardParams[]; // 廃止(2024-03-12~)
// };
}
export interface IStartParamsWithoutDetail {
project: Pick<IProject, 'id' | 'typeOf'>;
Expand Down Expand Up @@ -117,12 +117,9 @@ export interface IStartParams extends Pick<
expiresInSeconds: number;
}
type ISendEmailMessageParams = TransactionFactory.ISendEmailMessageParams;
/**
* インセンティブ付与パラメータ
*/
export interface IGivePointAwardParams {
object?: IGivePointAwardObject;
}
// export interface IGivePointAwardParams {
// object?: IGivePointAwardObject;
// }
/**
* 取引確定後アクションパラメータ
*/
Expand Down

0 comments on commit 2851091

Please sign in to comment.