@chevre/factory 4.324.0-alpha.3 → 4.324.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/invoice.d.ts +4 -4
- package/lib/order.d.ts +10 -8
- package/lib/transaction/placeOrder.d.ts +1 -1
- package/package.json +1 -1
package/lib/invoice.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { IMonetaryAmount } from './monetaryAmount';
|
|
2
2
|
import * as OrderFactory from './order';
|
|
3
3
|
import { PaymentStatusType } from './paymentStatusType';
|
|
4
|
-
import
|
|
4
|
+
import { IPerson } from './person';
|
|
5
5
|
import { IAccounting } from './priceSpecification';
|
|
6
6
|
import { IPriceSpecification as ICategoryCodeChargeSpecification } from './priceSpecification/categoryCodeChargeSpecification';
|
|
7
7
|
import { IAppliesToMovieTicket, IPriceSpecification as IMovieTicketTypeChargeSpecification } from './priceSpecification/movieTicketTypeChargeSpecification';
|
|
8
8
|
import { IAppliesToAddOn as IUnitPriceSpecAppliesToAddOn, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
|
|
9
9
|
import { IPriceSpecification } from './reservation/event';
|
|
10
|
-
import
|
|
10
|
+
import { ISeller } from './seller';
|
|
11
11
|
import { PaymentServiceType } from './service/paymentService';
|
|
12
|
-
export declare type IBroker =
|
|
13
|
-
export declare type IProvider =
|
|
12
|
+
export declare type IBroker = Pick<ISeller, 'id' | 'typeOf'> | IPerson;
|
|
13
|
+
export declare type IProvider = Pick<ISeller, 'id' | 'typeOf'> | IPerson;
|
|
14
14
|
export interface IReferenceOrder extends OrderFactory.IOrder {
|
|
15
15
|
acceptedOffers: OrderFactory.IAcceptedOffer<OrderFactory.IItemOffered>[];
|
|
16
16
|
}
|
package/lib/order.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { IMultilingualString } from './multilingualString';
|
|
|
10
10
|
import { IOffer } from './offer';
|
|
11
11
|
import { OrderStatus } from './orderStatus';
|
|
12
12
|
import { OrganizationType } from './organizationType';
|
|
13
|
-
import
|
|
13
|
+
import { IPermit as IBasePermit } from './permit';
|
|
14
14
|
import { IPerson, IProfile } from './person';
|
|
15
15
|
import { PersonType } from './personType';
|
|
16
16
|
import { PlaceType } from './placeType';
|
|
@@ -24,6 +24,7 @@ import { IProgramMembershipUsedSearchConditions, ITicket, ITicketType } from './
|
|
|
24
24
|
import * as BusReservationFactory from './reservation/busReservation';
|
|
25
25
|
import * as EventReservationFactory from './reservation/event';
|
|
26
26
|
import { ReservationType } from './reservationType';
|
|
27
|
+
import { ISeller as IBaseSeller } from './seller';
|
|
27
28
|
import { ICreditCardAsPaymentServiceOutput, PaymentServiceType } from './service/paymentService';
|
|
28
29
|
import { SortType } from './sortType';
|
|
29
30
|
import { IUnitPriceOfferPriceSpecification } from './unitPriceOffer';
|
|
@@ -123,7 +124,7 @@ export declare type IEventReservation = Pick<EventReservationFactory.IReservatio
|
|
|
123
124
|
reservedTicket: IReservedTicket;
|
|
124
125
|
};
|
|
125
126
|
export declare type IReservation = IBusReservation | IEventReservation;
|
|
126
|
-
export declare type IPermit = Pick<
|
|
127
|
+
export declare type IPermit = Pick<IBasePermit, 'amount' | 'identifier' | 'issuedThrough' | 'name' | 'typeOf' | 'validFor'>;
|
|
127
128
|
export interface IMoneyTransferPendingTransaction {
|
|
128
129
|
typeOf: AssetTransactionType.MoneyTransfer;
|
|
129
130
|
/**
|
|
@@ -180,9 +181,8 @@ export interface IAcceptedOffer<T extends IItemOffered> extends IOfferOptimized4
|
|
|
180
181
|
/**
|
|
181
182
|
* 販売者
|
|
182
183
|
*/
|
|
183
|
-
export interface ISeller {
|
|
184
|
+
export interface ISeller extends Pick<IBaseSeller, 'typeOf' | 'additionalProperty'> {
|
|
184
185
|
id: string;
|
|
185
|
-
typeOf: OrganizationType.Corporation;
|
|
186
186
|
name: string;
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
@@ -206,15 +206,12 @@ export declare type IParticipantAsReturner = IParticipantAsPerson | IParticipant
|
|
|
206
206
|
export declare type IReturner = Pick<IParticipantAsReturner, 'id' | 'typeOf'>;
|
|
207
207
|
export declare type IIdentifier = IPropertyValue<string>[];
|
|
208
208
|
export declare type ISimpleCustomer = Pick<ICustomer, 'id' | 'typeOf'>;
|
|
209
|
+
export declare type ISimpleSeller = Pick<ISeller, 'id' | 'typeOf' | 'name'>;
|
|
209
210
|
export interface ISimpleOrder {
|
|
210
211
|
/**
|
|
211
212
|
* object type
|
|
212
213
|
*/
|
|
213
214
|
typeOf: OrderType;
|
|
214
|
-
/**
|
|
215
|
-
* The party taking the order (e.g. Amazon.com is a merchant for many sellers). Also accepts a string (e.g. "Amazon.com").
|
|
216
|
-
*/
|
|
217
|
-
seller: ISeller;
|
|
218
215
|
/**
|
|
219
216
|
* Party placing the order.
|
|
220
217
|
*/
|
|
@@ -235,6 +232,7 @@ export interface ISimpleOrder {
|
|
|
235
232
|
* Date order was placed.
|
|
236
233
|
*/
|
|
237
234
|
orderDate: Date;
|
|
235
|
+
seller: ISimpleSeller;
|
|
238
236
|
}
|
|
239
237
|
export interface IReservationFor4EventServiceOrderedItem {
|
|
240
238
|
location?: {
|
|
@@ -331,6 +329,10 @@ export interface IOrder extends Omit<ISimpleOrder, 'customer'> {
|
|
|
331
329
|
* Returner
|
|
332
330
|
*/
|
|
333
331
|
returner?: IReturner;
|
|
332
|
+
/**
|
|
333
|
+
* The party taking the order (e.g. Amazon.com is a merchant for many sellers). Also accepts a string (e.g. "Amazon.com").
|
|
334
|
+
*/
|
|
335
|
+
seller: ISeller;
|
|
334
336
|
/**
|
|
335
337
|
* URL (recommended for confirmation cards/ Search Answers)
|
|
336
338
|
* URL of the Order, typically a link to the merchant's website where the user can retrieve further details about an order.
|
|
@@ -91,7 +91,7 @@ export interface IStartParamsWithoutDetail {
|
|
|
91
91
|
name?: string;
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
|
-
export declare type ISeller = TransactionFactory.ISeller
|
|
94
|
+
export declare type ISeller = TransactionFactory.ISeller & Pick<OrderFactory.ISeller, 'additionalProperty'>;
|
|
95
95
|
/**
|
|
96
96
|
* 取引開始パラメーター
|
|
97
97
|
*/
|