@chevre/factory 4.204.0 → 4.205.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/trade/pay.d.ts +1 -16
- package/lib/factory/invoice.d.ts +29 -52
- package/lib/factory/invoice.js +48 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import * as ActionFactory from '../../action';
|
|
|
4
4
|
import { IAttributes as IReturnOrderActionAttributes } from '../../action/transfer/return/order';
|
|
5
5
|
import { ActionType } from '../../actionType';
|
|
6
6
|
import { AssetTransactionType } from '../../assetTransactionType';
|
|
7
|
+
import { IPaymentServiceOutput } from '../../invoice';
|
|
7
8
|
import { IMonetaryAmount } from '../../monetaryAmount';
|
|
8
9
|
import { OrderType } from '../../order';
|
|
9
10
|
import { IMovieTicket } from '../../paymentMethod/paymentCard/movieTicket';
|
|
@@ -75,22 +76,6 @@ export interface IPaymentMethod {
|
|
|
75
76
|
*/
|
|
76
77
|
additionalProperty: IPropertyValue<string>[];
|
|
77
78
|
}
|
|
78
|
-
export interface IMovieTicketAsPaymentServiceOutput {
|
|
79
|
-
/**
|
|
80
|
-
* 購入管理番号
|
|
81
|
-
*/
|
|
82
|
-
identifier: string;
|
|
83
|
-
/**
|
|
84
|
-
* 利用対象予約
|
|
85
|
-
*/
|
|
86
|
-
serviceOutput?: {
|
|
87
|
-
/**
|
|
88
|
-
* 予約価格
|
|
89
|
-
*/
|
|
90
|
-
price?: number;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
export declare type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[];
|
|
94
79
|
export interface IPaymentService {
|
|
95
80
|
typeOf: PaymentServiceType;
|
|
96
81
|
/**
|
package/lib/factory/invoice.d.ts
CHANGED
|
@@ -2,26 +2,47 @@ import { IMonetaryAmount } from './monetaryAmount';
|
|
|
2
2
|
import * as OrderFactory from './order';
|
|
3
3
|
import { PaymentStatusType } from './paymentStatusType';
|
|
4
4
|
import * as PersonFactory from './person';
|
|
5
|
-
import { PersonType } from './personType';
|
|
6
|
-
import { IProject } from './project';
|
|
7
5
|
import * as SellerFactory from './seller';
|
|
8
|
-
import {
|
|
6
|
+
import { PaymentServiceType } from './service/paymentService';
|
|
9
7
|
export declare type IBroker = SellerFactory.ISeller | PersonFactory.IPerson;
|
|
10
8
|
export declare type IProvider = SellerFactory.ISeller | PersonFactory.IPerson;
|
|
11
9
|
export interface IReferenceOrder extends OrderFactory.IOrder {
|
|
12
10
|
acceptedOffers: OrderFactory.IAcceptedOffer<any>[];
|
|
13
11
|
}
|
|
12
|
+
export interface IMovieTicketAsPaymentServiceOutput {
|
|
13
|
+
/**
|
|
14
|
+
* 購入管理番号
|
|
15
|
+
*/
|
|
16
|
+
identifier: string;
|
|
17
|
+
/**
|
|
18
|
+
* 利用対象予約
|
|
19
|
+
*/
|
|
20
|
+
serviceOutput?: {
|
|
21
|
+
/**
|
|
22
|
+
* 予約価格
|
|
23
|
+
*/
|
|
24
|
+
price?: number;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export declare type IPaymentServiceOutput = IMovieTicketAsPaymentServiceOutput[];
|
|
28
|
+
/**
|
|
29
|
+
* 決済方法(サービス)
|
|
30
|
+
*/
|
|
31
|
+
export interface IPaymentMethod {
|
|
32
|
+
id: string;
|
|
33
|
+
typeOf: PaymentServiceType;
|
|
34
|
+
serviceOutput?: IPaymentServiceOutput;
|
|
35
|
+
}
|
|
14
36
|
/**
|
|
15
37
|
* インボイスインターフェース
|
|
16
38
|
* {@link https://schema.org/Invoice}
|
|
17
39
|
*/
|
|
18
40
|
export interface IInvoice {
|
|
19
|
-
project: IProject;
|
|
20
41
|
typeOf: 'Invoice';
|
|
21
42
|
/**
|
|
22
43
|
* The identifier for the account the payment will be applied to.
|
|
23
44
|
*/
|
|
24
|
-
accountId
|
|
45
|
+
accountId?: string;
|
|
25
46
|
/**
|
|
26
47
|
* The time interval used to compute the invoice.
|
|
27
48
|
*/
|
|
@@ -54,7 +75,7 @@ export interface IInvoice {
|
|
|
54
75
|
/**
|
|
55
76
|
* The name of the credit card or other method of payment for the order.
|
|
56
77
|
*/
|
|
57
|
-
paymentMethod:
|
|
78
|
+
paymentMethod: IPaymentMethod;
|
|
58
79
|
/**
|
|
59
80
|
* An identifier for the method of payment used (e.g. the last 4 digits of the credit card).
|
|
60
81
|
*/
|
|
@@ -62,7 +83,7 @@ export interface IInvoice {
|
|
|
62
83
|
/**
|
|
63
84
|
* The status of payment; whether the invoice has been paid or not.
|
|
64
85
|
*/
|
|
65
|
-
paymentStatus
|
|
86
|
+
paymentStatus?: PaymentStatusType;
|
|
66
87
|
/**
|
|
67
88
|
* The service provider, service operator, or service performer; the goods producer.
|
|
68
89
|
* Another party (a seller) may offer those services or goods on behalf of the provider.
|
|
@@ -72,7 +93,7 @@ export interface IInvoice {
|
|
|
72
93
|
/**
|
|
73
94
|
* The Order(s) related to this Invoice. One or more Orders may be combined into a single Invoice.
|
|
74
95
|
*/
|
|
75
|
-
referencesOrder
|
|
96
|
+
referencesOrder?: IReferenceOrder;
|
|
76
97
|
/**
|
|
77
98
|
* The date the invoice is scheduled to be paid.
|
|
78
99
|
*/
|
|
@@ -85,50 +106,6 @@ export interface IInvoice {
|
|
|
85
106
|
/**
|
|
86
107
|
* ソート条件インターフェース
|
|
87
108
|
*/
|
|
88
|
-
export interface ISortOrder {
|
|
89
|
-
createdAt?: SortType;
|
|
90
|
-
}
|
|
91
|
-
export interface ICustomerSearchConditions {
|
|
92
|
-
typeOf?: PersonType;
|
|
93
|
-
ids?: string[];
|
|
94
|
-
identifiers?: PersonFactory.IIdentifier;
|
|
95
|
-
/**
|
|
96
|
-
* メールアドレス
|
|
97
|
-
*/
|
|
98
|
-
email?: string;
|
|
99
|
-
/**
|
|
100
|
-
* 電話番号
|
|
101
|
-
*/
|
|
102
|
-
telephone?: string;
|
|
103
|
-
memberOf?: {
|
|
104
|
-
/**
|
|
105
|
-
* 会員番号
|
|
106
|
-
*/
|
|
107
|
-
membershipNumbers?: string[];
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
export interface IReferencesOrderSearchConditions {
|
|
111
|
-
orderNumbers?: string[];
|
|
112
|
-
}
|
|
113
109
|
/**
|
|
114
110
|
* インボイス検索条件インターフェース
|
|
115
111
|
*/
|
|
116
|
-
export interface ISearchConditions {
|
|
117
|
-
limit?: number;
|
|
118
|
-
page?: number;
|
|
119
|
-
sort?: ISortOrder;
|
|
120
|
-
project?: {
|
|
121
|
-
id?: {
|
|
122
|
-
$eq?: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
createdFrom?: Date;
|
|
126
|
-
createdThrough?: Date;
|
|
127
|
-
accountIds?: string[];
|
|
128
|
-
confirmationNumbers?: string[];
|
|
129
|
-
customer?: ICustomerSearchConditions;
|
|
130
|
-
paymentMethods?: string[];
|
|
131
|
-
paymentMethodIds?: string[];
|
|
132
|
-
paymentStatuses?: PaymentStatusType[];
|
|
133
|
-
referencesOrder?: IReferencesOrderSearchConditions;
|
|
134
|
-
}
|
package/lib/factory/invoice.js
CHANGED
|
@@ -1,2 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* ソート条件インターフェース
|
|
5
|
+
*/
|
|
6
|
+
// export interface ISortOrder {
|
|
7
|
+
// createdAt?: SortType;
|
|
8
|
+
// }
|
|
9
|
+
// export interface ICustomerSearchConditions {
|
|
10
|
+
// typeOf?: PersonType;
|
|
11
|
+
// ids?: string[];
|
|
12
|
+
// identifiers?: PersonFactory.IIdentifier;
|
|
13
|
+
// /**
|
|
14
|
+
// * メールアドレス
|
|
15
|
+
// */
|
|
16
|
+
// email?: string;
|
|
17
|
+
// /**
|
|
18
|
+
// * 電話番号
|
|
19
|
+
// */
|
|
20
|
+
// telephone?: string;
|
|
21
|
+
// memberOf?: {
|
|
22
|
+
// /**
|
|
23
|
+
// * 会員番号
|
|
24
|
+
// */
|
|
25
|
+
// membershipNumbers?: string[];
|
|
26
|
+
// };
|
|
27
|
+
// }
|
|
28
|
+
// export interface IReferencesOrderSearchConditions {
|
|
29
|
+
// orderNumbers?: string[];
|
|
30
|
+
// }
|
|
31
|
+
/**
|
|
32
|
+
* インボイス検索条件インターフェース
|
|
33
|
+
*/
|
|
34
|
+
// export interface ISearchConditions {
|
|
35
|
+
// limit?: number;
|
|
36
|
+
// page?: number;
|
|
37
|
+
// sort?: ISortOrder;
|
|
38
|
+
// project?: {
|
|
39
|
+
// id?: { $eq?: string };
|
|
40
|
+
// };
|
|
41
|
+
// createdFrom?: Date;
|
|
42
|
+
// createdThrough?: Date;
|
|
43
|
+
// accountIds?: string[];
|
|
44
|
+
// confirmationNumbers?: string[];
|
|
45
|
+
// customer?: ICustomerSearchConditions;
|
|
46
|
+
// paymentMethods?: string[];
|
|
47
|
+
// paymentMethodIds?: string[];
|
|
48
|
+
// paymentStatuses?: PaymentStatusType[];
|
|
49
|
+
// referencesOrder?: IReferencesOrderSearchConditions;
|
|
50
|
+
// }
|