@chevre/factory 5.2.0-alpha.7 → 5.2.0-alpha.9
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/authorization.d.ts
CHANGED
|
@@ -11,13 +11,13 @@ import { SortType } from './sortType';
|
|
|
11
11
|
import { TransactionType } from './transactionType';
|
|
12
12
|
export type IOrderAsObject = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
13
13
|
export type IPermitIssuedThroughOfObjectTypeOfGood = Pick<IPermitIssuedThroughAsFaceToFace, 'typeOf'> | Pick<IPermitIssuedThroughAsCreditCard, 'id' | 'typeOf'> | Pick<IPermitIssuedThroughAsProduct, 'id' | 'typeOf'>;
|
|
14
|
-
export type
|
|
14
|
+
export type IPermitAsTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'typeOf'> & {
|
|
15
15
|
issuedThrough?: IPermitIssuedThroughOfObjectTypeOfGood;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* MovieTicket決済サービス発行のチケット
|
|
19
19
|
*/
|
|
20
|
-
export type
|
|
20
|
+
export type IInvoiceAsTypeOfGood = Pick<IInvoice, 'paymentMethodId' | 'typeOf'> & {
|
|
21
21
|
issuedThrough: {
|
|
22
22
|
id: string;
|
|
23
23
|
typeOf: PaymentServiceType.MovieTicket;
|
|
@@ -27,20 +27,34 @@ export type IInvoiceAsObjectTypeOfGood = Pick<IInvoice, 'paymentMethodId' | 'typ
|
|
|
27
27
|
* 決済サービス発行のチケット
|
|
28
28
|
* new(2025-11-11~)
|
|
29
29
|
*/
|
|
30
|
-
export interface
|
|
30
|
+
export interface IPaymentMethodAsTypeOfGood {
|
|
31
31
|
id: string;
|
|
32
32
|
typeOf: PaymentServiceType.CreditCard | PaymentServiceType.MovieTicket;
|
|
33
33
|
serviceOutput: Pick<IInvoice, 'paymentMethodId' | 'typeOf'>;
|
|
34
34
|
issuedThrough?: never;
|
|
35
35
|
}
|
|
36
|
-
export
|
|
37
|
-
|
|
36
|
+
export interface IFaceToFacePaymentMethodAsTypeOfGood {
|
|
37
|
+
/**
|
|
38
|
+
* 対面決済サービスIDはなし
|
|
39
|
+
*/
|
|
40
|
+
id?: never;
|
|
41
|
+
typeOf: PaymentServiceType.FaceToFace;
|
|
42
|
+
serviceOutput: Pick<IInvoice, 'paymentMethodId' | 'typeOf'>;
|
|
43
|
+
issuedThrough?: never;
|
|
44
|
+
}
|
|
45
|
+
export type IPermitOwnershipInfo = Pick<IOwnershipInfo<IPermitAsTypeOfGood>, 'typeOf' | 'typeOfGood'>;
|
|
46
|
+
export type IInvoiceOwnershipInfo = Pick<IOwnershipInfo<IInvoiceAsTypeOfGood>, 'typeOf' | 'typeOfGood'>;
|
|
38
47
|
/**
|
|
39
48
|
* 決済方法所有権
|
|
40
49
|
* support(2025-11-11~)
|
|
41
50
|
*/
|
|
42
|
-
export type
|
|
43
|
-
|
|
51
|
+
export type IPaymentMethodOwnershipInfo = Pick<IOwnershipInfo<IPaymentMethodAsTypeOfGood>, 'typeOf' | 'typeOfGood'>;
|
|
52
|
+
/**
|
|
53
|
+
* 対面決済方法所有権
|
|
54
|
+
* support(2025-11-12~)
|
|
55
|
+
*/
|
|
56
|
+
export type IFaceToFacePaymentMethodOwnershipInfo = Pick<IOwnershipInfo<IFaceToFacePaymentMethodAsTypeOfGood>, 'typeOf' | 'typeOfGood'>;
|
|
57
|
+
export type IOwnershipInfoAsObject = IPermitOwnershipInfo | IInvoiceOwnershipInfo | IPaymentMethodOwnershipInfo | IFaceToFacePaymentMethodOwnershipInfo;
|
|
44
58
|
/**
|
|
45
59
|
* 承認対象としてのIAMメンバー
|
|
46
60
|
*/
|
|
@@ -26,14 +26,9 @@ interface ISingleEventOffer extends Pick<IOffer, 'typeOf' | 'availabilityEnds' |
|
|
|
26
26
|
*/
|
|
27
27
|
validThrough: Date;
|
|
28
28
|
availableAtOrFrom: IOfferAvailableAtOrFrom;
|
|
29
|
+
identifier?: never;
|
|
29
30
|
validForMemberTier?: never;
|
|
30
31
|
offeredBy?: never;
|
|
31
|
-
/**
|
|
32
|
-
* アプリケーションオファーコード
|
|
33
|
-
* イベント内でユニーク必須
|
|
34
|
-
* オファー発行者を指定する場合、必須
|
|
35
|
-
*/
|
|
36
|
-
identifier?: string;
|
|
37
32
|
}
|
|
38
33
|
/**
|
|
39
34
|
* メンバープログラムティア適用のイベントオファー
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { PersonType } from './personType';
|
|
|
6
6
|
import * as ProductFactory from './product';
|
|
7
7
|
import { IProject } from './project';
|
|
8
8
|
import { ReservationType } from './reservationType';
|
|
9
|
+
import { PaymentServiceType } from './service/paymentService';
|
|
9
10
|
import * as WebAPIFactory from './service/webAPI';
|
|
10
11
|
import { SortType } from './sortType';
|
|
11
12
|
export type IBookingService = Pick<WebAPIFactory.IService<WebAPIFactory.Identifier>, 'identifier' | 'typeOf'>;
|
|
@@ -77,13 +78,21 @@ export interface IPaymentMethodAsGood {
|
|
|
77
78
|
* 決済サービスID
|
|
78
79
|
*/
|
|
79
80
|
id: string;
|
|
80
|
-
typeOf:
|
|
81
|
+
typeOf: PaymentServiceType.CreditCard | PaymentServiceType.MovieTicket;
|
|
82
|
+
serviceOutput: Pick<IInvoice, 'paymentMethodId' | 'typeOf'>;
|
|
83
|
+
}
|
|
84
|
+
export interface IFaceToFacePaymentMethodAsGood {
|
|
85
|
+
/**
|
|
86
|
+
* 対面決済サービスIDはなし
|
|
87
|
+
*/
|
|
88
|
+
id?: never;
|
|
89
|
+
typeOf: PaymentServiceType.FaceToFace;
|
|
81
90
|
serviceOutput: Pick<IInvoice, 'paymentMethodId' | 'typeOf'>;
|
|
82
91
|
}
|
|
83
92
|
/**
|
|
84
93
|
* 所有対象物 (Product or Service)
|
|
85
94
|
*/
|
|
86
|
-
export type IGood = IReservation | IPermitAsGood | InvoiceAsGood | IPaymentMethodAsGood;
|
|
95
|
+
export type IGood = IReservation | IPermitAsGood | InvoiceAsGood | IPaymentMethodAsGood | IFaceToFacePaymentMethodAsGood;
|
|
87
96
|
export interface IOwnerAsOrganization {
|
|
88
97
|
typeOf: OrganizationType.Organization;
|
|
89
98
|
id: string;
|