Skip to content

Commit

Permalink
ISimpleOrderを最適化(customer,sellerを廃止)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovegadd committed Mar 6, 2024
1 parent 54fc48d commit d383341
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -16,7 +16,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
- 施設コンテンツのlocationを最適化(kanaNameを廃止)
- 資産取引を最適化(agent)
- 注文のorderedItem.orderedItemにidを保証
- ISimpleOrderを最適化(customerを廃止)
- ISimpleOrderを最適化(customer,sellerを廃止)

### Deprecated

Expand Down
3 changes: 2 additions & 1 deletion src/action/transfer/give/pointAward.ts
Expand Up @@ -3,7 +3,8 @@ import * as OrderFactory from '../../../order';
import { ObjectType as AuthorizePointAwardActionObjectType } from '../../authorize/award/point';
import * as GiveActionFactory from '../give';

export type IAgent = ActionFactory.IParticipantAsProject;
// export type IAgent = ActionFactory.IParticipantAsProject; // 変更(2024-03-06~)
export type IAgent = ActionFactory.IParticipantAsSeller;
export import ObjectType = AuthorizePointAwardActionObjectType;
/**
* ポイント特典付与対象
Expand Down
6 changes: 3 additions & 3 deletions src/order.ts
Expand Up @@ -285,7 +285,7 @@ export type IParticipantAsReturner = IParticipantAsPerson | IParticipantAsProjec
export type IReturner = Pick<IParticipantAsReturner, 'id' | 'typeOf'>;
export type IIdentifier = IPropertyValue<string>[];
// export type ISimpleCustomer = Pick<ICustomer, 'id' | 'typeOf'>; // 廃止(2024-03-06~)
export type ISimpleSeller = Pick<ISeller, 'id' | 'typeOf' | 'name'>;
// export type ISimpleSeller = Pick<ISeller, 'id' | 'typeOf' | 'name'>; // 廃止(2024-03-06~)
export interface ISimpleOrder {
/**
* object type
Expand All @@ -308,7 +308,7 @@ export interface ISimpleOrder {
* Date order was placed.
*/
orderDate: Date;
seller: ISimpleSeller;
// seller: ISimpleSeller; // 廃止(2024-03-06~)
}
export interface IReservationFor4EventServiceOrderedItem {
location?: {
Expand Down Expand Up @@ -356,7 +356,7 @@ export interface IOrderedItem {
* 注文
* {@link https://schema.org/Order}
*/
export interface IOrder extends Omit<ISimpleOrder, 'customer'> {
export interface IOrder extends ISimpleOrder {
id?: string; // 追加(2023-02-13~)
project: IProject;
additionalProperty?: IPropertyValue<string>[]; // 追加(2023-02-13~)
Expand Down

0 comments on commit d383341

Please sign in to comment.