@cinerino/sdk 15.0.0-alpha.19 → 15.0.0-alpha.20
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.
|
@@ -37,15 +37,38 @@ export type IFindParams = Pick<factory.order.ISearchConditions, 'confirmationNum
|
|
|
37
37
|
* min: 1
|
|
38
38
|
*/
|
|
39
39
|
page: number;
|
|
40
|
-
customer?: Pick<factory.order.ICustomerSearchConditions, '
|
|
40
|
+
customer?: Pick<factory.order.ICustomerSearchConditions, 'identifiers' | 'ids'> & {
|
|
41
|
+
givenName?: {
|
|
42
|
+
$eq?: string;
|
|
43
|
+
$regex?: string;
|
|
44
|
+
};
|
|
45
|
+
familyName?: {
|
|
46
|
+
$eq?: string;
|
|
47
|
+
$regex?: string;
|
|
48
|
+
};
|
|
49
|
+
email?: {
|
|
50
|
+
$eq?: string;
|
|
51
|
+
$regex?: string;
|
|
52
|
+
};
|
|
53
|
+
telephone?: string;
|
|
54
|
+
};
|
|
41
55
|
/**
|
|
42
56
|
* 決済方法
|
|
43
57
|
*/
|
|
44
|
-
paymentMethods?: Pick<factory.order.IPaymentMethodsSearchConditions, 'accountIds' | '
|
|
58
|
+
paymentMethods?: Pick<factory.order.IPaymentMethodsSearchConditions, 'accountIds' | 'paymentMethodIds'> & {
|
|
45
59
|
/**
|
|
46
60
|
* 決済方法区分コード
|
|
47
61
|
*/
|
|
48
62
|
typeOfs?: string[];
|
|
63
|
+
/**
|
|
64
|
+
* 追加特性
|
|
65
|
+
*/
|
|
66
|
+
additionalProperty?: {
|
|
67
|
+
/**
|
|
68
|
+
* すべてに一致する
|
|
69
|
+
*/
|
|
70
|
+
$all?: factory.order.IIdentifier;
|
|
71
|
+
};
|
|
49
72
|
};
|
|
50
73
|
/**
|
|
51
74
|
* オファー
|
|
@@ -82,7 +105,6 @@ export type IFindParams = Pick<factory.order.ISearchConditions, 'confirmationNum
|
|
|
82
105
|
};
|
|
83
106
|
export type IAcceptedOffer = factory.order.IAcceptedOffer;
|
|
84
107
|
export type IReturner = Pick<factory.iam.IMemberOfRole, 'typeOf' | 'id' | 'name'>;
|
|
85
|
-
export type IExternalOrder = Pick<factory.order.IOrder, 'project' | 'typeOf' | 'seller' | 'customer' | 'confirmationNumber' | 'orderNumber' | 'price' | 'priceCurrency' | 'orderDate' | 'name' | 'orderStatus' | 'orderedItem' | 'paymentMethods'>;
|
|
86
108
|
export interface IUpdateChangeableAttributesParams {
|
|
87
109
|
confirmationNumber: string;
|
|
88
110
|
orderNumber: string;
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
2
|
import { Service } from '../service';
|
|
3
|
-
import { IExternalOrder } from './order/factory';
|
|
4
3
|
/**
|
|
5
4
|
* 注文サービス
|
|
6
5
|
*/
|
|
7
6
|
export declare class OrderService extends Service {
|
|
8
|
-
/**
|
|
9
|
-
* 取引なしに作成する
|
|
10
|
-
*/
|
|
11
|
-
createWithoutTransaction(params: IExternalOrder): Promise<IExternalOrder>;
|
|
12
7
|
/**
|
|
13
8
|
* 決済取引確定
|
|
14
9
|
*/
|
|
@@ -7,18 +7,6 @@ const service_1 = require("../service");
|
|
|
7
7
|
* 注文サービス
|
|
8
8
|
*/
|
|
9
9
|
class OrderService extends service_1.Service {
|
|
10
|
-
/**
|
|
11
|
-
* 取引なしに作成する
|
|
12
|
-
*/
|
|
13
|
-
async createWithoutTransaction(params) {
|
|
14
|
-
return this.fetch({
|
|
15
|
-
uri: `/orders`,
|
|
16
|
-
method: 'POST',
|
|
17
|
-
body: params,
|
|
18
|
-
expectedStatusCodes: [http_status_1.status.CREATED]
|
|
19
|
-
})
|
|
20
|
-
.then(async (response) => response.json());
|
|
21
|
-
}
|
|
22
10
|
/**
|
|
23
11
|
* 決済取引確定
|
|
24
12
|
*/
|