@chevre/factory 4.229.0 → 4.230.0
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/factory/action/authorize/offer/moneyTransfer.d.ts +1 -2
- package/lib/factory/action.d.ts +4 -3
- package/lib/factory/seller.d.ts +2 -0
- package/lib/factory/transaction/placeOrder.d.ts +1 -3
- package/lib/factory/transaction/returnOrder.d.ts +8 -8
- package/lib/factory/transaction.d.ts +7 -3
- package/package.json +1 -1
|
@@ -4,7 +4,6 @@ import * as MoneyTransferTransactionFactory from '../../../assetTransaction/mone
|
|
|
4
4
|
import { IOffer } from '../../../offer';
|
|
5
5
|
import * as OrderFactory from '../../../order';
|
|
6
6
|
import { PriceCurrency } from '../../../priceCurrency';
|
|
7
|
-
import { ISeller } from '../../../seller';
|
|
8
7
|
import { TransactionType } from '../../../transactionType';
|
|
9
8
|
import * as AuthorizeActionFactory from '../../authorize';
|
|
10
9
|
export declare type IAgent = ActionFactory.IParticipant;
|
|
@@ -21,7 +20,7 @@ export interface IResult {
|
|
|
21
20
|
export import IItemOffered = OrderFactory.IMoneyTransfer;
|
|
22
21
|
export interface IAcceptedOffer extends Omit<IOffer, 'addOn' | 'availability' | 'availableAtOrFrom'> {
|
|
23
22
|
itemOffered: IItemOffered;
|
|
24
|
-
seller:
|
|
23
|
+
seller: ActionFactory.IParticipantAsSeller;
|
|
25
24
|
}
|
|
26
25
|
export declare type IObject = IAcceptedOffer;
|
|
27
26
|
export interface ITransactionPurpose {
|
package/lib/factory/action.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { ActionType } from './actionType';
|
|
|
3
3
|
import { IExtendId } from './autoGenerated';
|
|
4
4
|
import { CreativeWorkType } from './creativeWorkType';
|
|
5
5
|
import { ICustomer } from './customer';
|
|
6
|
-
import { IMultilingualString } from './multilingualString';
|
|
7
6
|
import { OrganizationType } from './organizationType';
|
|
8
7
|
import { IPersonAttributes } from './person';
|
|
9
8
|
import { IProject } from './project';
|
|
@@ -20,7 +19,9 @@ export declare type IParticipantAsPerson = IPersonAttributes & {
|
|
|
20
19
|
name?: string;
|
|
21
20
|
url?: string;
|
|
22
21
|
};
|
|
23
|
-
export declare type IParticipantAsSeller = Omit<ISeller, 'branchCode' | 'paymentAccepted' | 'project' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location'
|
|
22
|
+
export declare type IParticipantAsSeller = Omit<ISeller, 'branchCode' | 'name' | 'paymentAccepted' | 'project' | 'additionalProperty' | 'hasMerchantReturnPolicy' | 'email' | 'telephone' | 'location'> & {
|
|
23
|
+
name?: string;
|
|
24
|
+
};
|
|
24
25
|
export interface IParticipantAsProject {
|
|
25
26
|
typeOf: OrganizationType.Project;
|
|
26
27
|
id: string;
|
|
@@ -28,7 +29,7 @@ export interface IParticipantAsProject {
|
|
|
28
29
|
url?: string;
|
|
29
30
|
}
|
|
30
31
|
export declare type IParticipantAsCustomer = Omit<ICustomer, 'name' | 'branchCode' | 'contactPoint' | 'project' | 'additionalProperty'> & {
|
|
31
|
-
name?: string
|
|
32
|
+
name?: string;
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
35
|
* アクションへの関係者
|
package/lib/factory/seller.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IMultilingualString } from './multilingualString';
|
|
1
2
|
import { IOrganization } from './organization';
|
|
2
3
|
import { OrganizationType } from './organizationType';
|
|
3
4
|
import { IProject } from './project';
|
|
@@ -21,6 +22,7 @@ export interface ISeller extends IOrganization {
|
|
|
21
22
|
* The geographic area where a service or offered item is provided.
|
|
22
23
|
*/
|
|
23
24
|
branchCode?: string;
|
|
25
|
+
name: IMultilingualString;
|
|
24
26
|
/**
|
|
25
27
|
* A pointer to products or services offered by the organization or person.
|
|
26
28
|
*/
|
|
@@ -23,14 +23,14 @@ export declare enum Reason {
|
|
|
23
23
|
Seller = "Seller"
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* 返品可能な注文
|
|
27
27
|
*/
|
|
28
28
|
export interface IReturnableOrder {
|
|
29
29
|
confirmationNumber: string;
|
|
30
30
|
orderNumber: string;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* 注文返品開始パラメータ
|
|
34
34
|
*/
|
|
35
35
|
export interface IStartParamsWithoutDetail {
|
|
36
36
|
project: IProject;
|
|
@@ -45,7 +45,7 @@ export interface IStartParamsWithoutDetail {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* 取引開始パラメータ
|
|
49
49
|
*/
|
|
50
50
|
export interface IStartParams extends TransactionFactory.IStartParams<TransactionType.ReturnOrder, IAgent, undefined, IObject> {
|
|
51
51
|
/**
|
|
@@ -125,7 +125,7 @@ export interface IConfirmParams {
|
|
|
125
125
|
potentialActions?: IPotentialActionsParams;
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* 取引対象物
|
|
129
129
|
*/
|
|
130
130
|
export interface IObject {
|
|
131
131
|
order: IReturnableOrder[];
|
|
@@ -138,12 +138,12 @@ export interface IPotentialActions {
|
|
|
138
138
|
*/
|
|
139
139
|
returnOrder: IReturnOrderActionAttributes[];
|
|
140
140
|
}
|
|
141
|
-
export declare type ITransaction = IExtendId<IAttributes>;
|
|
142
|
-
/**
|
|
143
|
-
* 返品取引インターフェース
|
|
144
|
-
*/
|
|
145
141
|
export interface IAttributes extends TransactionFactory.IAttributes<IStartParams, IResult, IError, IPotentialActions> {
|
|
146
142
|
}
|
|
143
|
+
/**
|
|
144
|
+
* 返品取引
|
|
145
|
+
*/
|
|
146
|
+
export declare type ITransaction = IExtendId<IAttributes>;
|
|
147
147
|
export interface ISearchConditions extends TransactionFactory.ISearchConditions<TransactionType.ReturnOrder> {
|
|
148
148
|
object?: {
|
|
149
149
|
order?: {
|
|
@@ -2,10 +2,11 @@ import * as waiter from '@waiter/factory';
|
|
|
2
2
|
import { IExtendId } from './autoGenerated';
|
|
3
3
|
import * as EmailFactory from './creativeWork/message/email';
|
|
4
4
|
import { ICreativeWork as IWebApplication } from './creativeWork/softwareApplication/webApplication';
|
|
5
|
+
import { IMultilingualString } from './multilingualString';
|
|
6
|
+
import { OrganizationType } from './organizationType';
|
|
5
7
|
import * as PersonFactory from './person';
|
|
6
8
|
import { PersonType } from './personType';
|
|
7
9
|
import { IProject } from './project';
|
|
8
|
-
import * as SellerFactory from './seller';
|
|
9
10
|
import { SortType } from './sortType';
|
|
10
11
|
import { TransactionStatusType } from './transactionStatusType';
|
|
11
12
|
import { TransactionTasksExportationStatus } from './transactionTasksExportationStatus';
|
|
@@ -17,9 +18,12 @@ export declare type IPersonAgent = PersonFactory.IPerson;
|
|
|
17
18
|
export declare type IAgent = Omit<IWebApplicationAgent | PersonFactory.IPerson, IOmittedProfileAttributes>;
|
|
18
19
|
/**
|
|
19
20
|
* 販売者
|
|
20
|
-
* 最適化(2022-05-20~)
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export interface ISeller {
|
|
23
|
+
typeOf: OrganizationType.Corporation;
|
|
24
|
+
id: string;
|
|
25
|
+
name: IMultilingualString;
|
|
26
|
+
}
|
|
23
27
|
/**
|
|
24
28
|
* Eメール送信パラメータ
|
|
25
29
|
*/
|