@chevre/factory 5.2.0-alpha.4 → 5.2.0-alpha.6
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 +17 -2
- package/lib/ownershipInfo.d.ts +14 -1
- package/package.json +1 -1
package/lib/authorization.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export type IPermitAsObjectTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'type
|
|
|
15
15
|
issuedThrough?: IPermitIssuedThroughOfObjectTypeOfGood;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
|
-
* 決済サービス発行のチケット
|
|
18
|
+
* MovieTicket決済サービス発行のチケット
|
|
19
19
|
*/
|
|
20
20
|
export type IInvoiceAsObjectTypeOfGood = Pick<IInvoice, 'paymentMethodId' | 'typeOf'> & {
|
|
21
21
|
issuedThrough: {
|
|
@@ -23,9 +23,24 @@ export type IInvoiceAsObjectTypeOfGood = Pick<IInvoice, 'paymentMethodId' | 'typ
|
|
|
23
23
|
typeOf: PaymentServiceType.MovieTicket;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* 決済サービス発行のチケット
|
|
28
|
+
* new(2025-11-11~)
|
|
29
|
+
*/
|
|
30
|
+
export interface IPaymentMethodAsObjectTypeOfGood {
|
|
31
|
+
id: string;
|
|
32
|
+
typeOf: PaymentServiceType.CreditCard | PaymentServiceType.MovieTicket;
|
|
33
|
+
serviceOutput: Pick<IInvoice, 'paymentMethodId' | 'typeOf'>;
|
|
34
|
+
issuedThrough?: never;
|
|
35
|
+
}
|
|
26
36
|
export type IPermitOwnershipInfoAsObject = Pick<IOwnershipInfo<IPermitAsObjectTypeOfGood>, 'typeOf' | 'typeOfGood'>;
|
|
27
37
|
export type IInvoiceOwnershipInfoAsObject = Pick<IOwnershipInfo<IInvoiceAsObjectTypeOfGood>, 'typeOf' | 'typeOfGood'>;
|
|
28
|
-
|
|
38
|
+
/**
|
|
39
|
+
* 決済方法所有権
|
|
40
|
+
* support(2025-11-11~)
|
|
41
|
+
*/
|
|
42
|
+
export type IPaymentMethodOwnershipInfoAsObject = Pick<IOwnershipInfo<IPaymentMethodAsObjectTypeOfGood>, 'typeOf' | 'typeOfGood'>;
|
|
43
|
+
export type IOwnershipInfoAsObject = IPermitOwnershipInfoAsObject | IInvoiceOwnershipInfoAsObject | IPaymentMethodOwnershipInfoAsObject;
|
|
29
44
|
/**
|
|
30
45
|
* 承認対象としてのIAMメンバー
|
|
31
46
|
*/
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export type IPermitAsGood = Pick<PermitFactory.IPermit, 'identifier' | 'typeOf'
|
|
|
60
60
|
/**
|
|
61
61
|
* 所有対象としての請求
|
|
62
62
|
* 決済承認時にチケットとして利用される
|
|
63
|
+
* @deprecated use IPaymentMethodAsGood
|
|
63
64
|
*/
|
|
64
65
|
export type InvoiceAsGood = Pick<IInvoice, 'paymentMethodId' | 'typeOf'> & {
|
|
65
66
|
issuedThrough: {
|
|
@@ -67,10 +68,22 @@ export type InvoiceAsGood = Pick<IInvoice, 'paymentMethodId' | 'typeOf'> & {
|
|
|
67
68
|
typeOf: IInvoice['paymentMethod']['typeOf'];
|
|
68
69
|
};
|
|
69
70
|
};
|
|
71
|
+
/**
|
|
72
|
+
* 所有対象としての決済方法
|
|
73
|
+
* 決済承認時にチケットとして利用される
|
|
74
|
+
*/
|
|
75
|
+
export interface IPaymentMethodAsGood {
|
|
76
|
+
/**
|
|
77
|
+
* 決済サービスID
|
|
78
|
+
*/
|
|
79
|
+
id: string;
|
|
80
|
+
typeOf: IInvoice['paymentMethod']['typeOf'];
|
|
81
|
+
serviceOutput: Pick<IInvoice, 'paymentMethodId' | 'typeOf'>;
|
|
82
|
+
}
|
|
70
83
|
/**
|
|
71
84
|
* 所有対象物 (Product or Service)
|
|
72
85
|
*/
|
|
73
|
-
export type IGood = IReservation | IPermitAsGood | InvoiceAsGood;
|
|
86
|
+
export type IGood = IReservation | IPermitAsGood | InvoiceAsGood | IPaymentMethodAsGood;
|
|
74
87
|
export interface IOwnerAsOrganization {
|
|
75
88
|
typeOf: OrganizationType.Organization;
|
|
76
89
|
id: string;
|