Skip to content

Commit

Permalink
返品取引のpotentialActionsを最適化
Browse files Browse the repository at this point in the history
通貨転送返却アクションを最適化
  • Loading branch information
ilovegadd committed Feb 3, 2024
1 parent 20a13e6 commit dd43aa8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).

### Changed

- 返品取引のpotentialActionsを最適化
- 通貨転送返却アクションを最適化

### Deprecated

### Removed
Expand Down
5 changes: 4 additions & 1 deletion src/action/transfer/return/moneyTransfer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ export type IRecipient = ActionFactory.IParticipantAsSeller;
/**
* 返却対象は入金アクション
*/
export type IObject = MoneyTransferActionFactory.IAction;
export type IObject = Pick<
MoneyTransferActionFactory.IAction,
'object' | 'typeOf'
>;
export type IResult = any;
// tslint:disable-next-line:no-empty-interface
export interface IPotentialActions {
Expand Down
6 changes: 1 addition & 5 deletions src/action/transfer/return/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as OrderFactory from '../../../order';
import { IAttributes as IReturnPaymentMethodActionAttributes } from '../../transfer/return/paymentMethod';
import * as ReturnActionFactory from '../return';
import { IAttributes as ISendEmailMessageActionAttributes } from '../send/message/email';
import * as ReturnMoneyTransferActionFactory from './moneyTransfer';
import * as ReturnPointAwardActionFactory from './pointAward';

export type IAgent = OrderFactory.IParticipantAsReturner;
Expand All @@ -24,10 +23,7 @@ export interface IPotentialActions {
* refundから移行(2022-08-10~)
*/
returnPaymentMethod: IReturnPaymentMethodActionAttributes[];
/**
* 入金返却アクション
*/
returnMoneyTransfer: ReturnMoneyTransferActionFactory.IAttributes[];
// returnMoneyTransfer: ReturnMoneyTransferActionFactory.IAttributes[]; // 廃止(2024-02-04~)
/**
* ポイントインセンティブ返却アクション
*/
Expand Down

0 comments on commit dd43aa8

Please sign in to comment.