Skip to content

Commit

Permalink
プロダクト検索条件と決済サービス検索条件を分離
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Dec 26, 2023
1 parent 2cf1f81 commit d071318
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
### Changed

- 集計オファーのISubOfferを最適化
- プロダクト検索条件と決済サービス検索条件を分離

### Deprecated

Expand Down
4 changes: 2 additions & 2 deletions src/product.ts
Expand Up @@ -174,8 +174,8 @@ export interface ISearchConditions {
};
};
typeOf?: {
$eq?: string;
$in?: string[];
$eq?: ProductType;
$in?: ProductType[];
};
offers?: {
$elemMatch?: {
Expand Down
8 changes: 7 additions & 1 deletion src/service/paymentService.ts
@@ -1,7 +1,7 @@
import { IInvoice } from '../invoice';
import { IMultilingualString } from '../multilingualString';
import { IIssuedThrough, IPermit } from '../permit';
import { IAvailableChannel as IProductAvailableChannel, IServiceType } from '../product';
import { IAvailableChannel as IProductAvailableChannel, ISearchConditions as ISearchProductConditions, IServiceType } from '../product';
import { IProject } from '../project';
import { IPropertyValue } from '../propertyValue';
import { ISeller } from '../seller';
Expand Down Expand Up @@ -121,3 +121,9 @@ export interface IService extends Pick<IThing, 'name' | 'description'> {
serviceType: IServiceType;
additionalProperty?: IPropertyValue<string>[];
}
export type ISearchConditions = Omit<ISearchProductConditions, 'typeOf'> & {
typeOf?: {
$eq?: PaymentServiceType;
$in?: PaymentServiceType[];
};
};

0 comments on commit d071318

Please sign in to comment.