@chevre/factory 4.381.0-alpha.2 → 4.381.0-alpha.3
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.
|
@@ -21,7 +21,17 @@ export type IStartParamsWithoutDetail = AssetTransactionFactory.IStartParams<Ass
|
|
|
21
21
|
* 取引開始パラメータ
|
|
22
22
|
*/
|
|
23
23
|
export type IStartParams = AssetTransactionFactory.IStartParams<AssetTransactionType.Reserve, IAgent, undefined, IObject>;
|
|
24
|
-
export interface
|
|
24
|
+
export interface IPermitIssuedThroughFaceToFace {
|
|
25
|
+
/**
|
|
26
|
+
* メンバーシップコード
|
|
27
|
+
*/
|
|
28
|
+
identifier: string;
|
|
29
|
+
issuedThrough: {
|
|
30
|
+
typeOf: PaymentServiceType.FaceToFace;
|
|
31
|
+
};
|
|
32
|
+
typeOf: PermitType.Permit;
|
|
33
|
+
}
|
|
34
|
+
export interface IPermitIssuedThroughMembershipService {
|
|
25
35
|
accessCode?: string;
|
|
26
36
|
/**
|
|
27
37
|
* メンバーシップコード
|
|
@@ -32,7 +42,7 @@ export interface IProgramMembershipUsedAsPermit {
|
|
|
32
42
|
* メンバーシップ発行サービスID
|
|
33
43
|
*/
|
|
34
44
|
id: string;
|
|
35
|
-
typeOf: ProductType.MembershipService | PaymentServiceType.CreditCard
|
|
45
|
+
typeOf: ProductType.MembershipService | PaymentServiceType.CreditCard;
|
|
36
46
|
};
|
|
37
47
|
typeOf: PermitType.Permit;
|
|
38
48
|
}
|
|
@@ -50,7 +60,7 @@ export type ITokenizedProgramMembershipUsed = string;
|
|
|
50
60
|
/**
|
|
51
61
|
* 適用メンバーシップ
|
|
52
62
|
*/
|
|
53
|
-
export type IAcceptedProgramMembershipUsed =
|
|
63
|
+
export type IAcceptedProgramMembershipUsed = IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService | IProgramMembershipUsedAsTicket | ITokenizedProgramMembershipUsed;
|
|
54
64
|
export type IAcceptedSubReservation = ISubReservation4eventReservation;
|
|
55
65
|
export interface IAcceptedPointAward {
|
|
56
66
|
typeOf: ActionType.MoneyTransfer;
|
package/lib/authorization.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { CreativeWorkType } from './creativeWorkType';
|
|
|
2
2
|
import { IMember, IMemberOfRole } from './iam';
|
|
3
3
|
import { IOrder } from './order';
|
|
4
4
|
import { OrganizationType } from './organizationType';
|
|
5
|
-
import { IOwnershipInfo, IPermitAsGood,
|
|
5
|
+
import { IOwnershipInfo, IPermitAsGood, IPermitIssuedThroughAsFaceToFace, IPermitIssuedThroughAsProduct, IReservation } from './ownershipInfo';
|
|
6
6
|
import { PersonType } from './personType';
|
|
7
7
|
import { IProject } from './project';
|
|
8
8
|
import { SortType } from './sortType';
|
|
9
9
|
export type IOrderAsObject = Pick<IOrder, 'orderNumber' | 'typeOf'>;
|
|
10
|
-
export type IPermitIssuedThroughOfObjectTypeOfGood = Pick<
|
|
10
|
+
export type IPermitIssuedThroughOfObjectTypeOfGood = Pick<IPermitIssuedThroughAsFaceToFace, 'typeOf'> | Pick<IPermitIssuedThroughAsProduct, 'id' | 'typeOf'>;
|
|
11
11
|
export type IPermitAsObjectTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'typeOf'> & {
|
|
12
12
|
issuedThrough?: IPermitIssuedThroughOfObjectTypeOfGood;
|
|
13
13
|
};
|
package/lib/ownershipInfo.d.ts
CHANGED
|
@@ -52,7 +52,9 @@ export interface IEventReservationAsGood {
|
|
|
52
52
|
*/
|
|
53
53
|
export type IReservation = IBusReservationAsGood | IEventReservationAsGood;
|
|
54
54
|
export type IReservationWithDetail = (IEventReservationAsGood & IEventReservation) | (IBusReservationAsGood & IBusReservation);
|
|
55
|
-
export type
|
|
55
|
+
export type IPermitIssuedThroughAsFaceToFace = Pick<PermitFactory.IIssuedThroughAsFaceToFace, 'typeOf'>;
|
|
56
|
+
export type IPermitIssuedThroughAsProduct = Pick<PermitFactory.IIssuedThroughAsProduct, 'id' | 'typeOf' | 'serviceType'> | Pick<PermitFactory.IIssuedThroughAsCreditCard, 'id' | 'typeOf' | 'serviceType'>;
|
|
57
|
+
export type IPermitIssuedThrough = IPermitIssuedThroughAsFaceToFace | IPermitIssuedThroughAsProduct;
|
|
56
58
|
export type IPermitAsGood = Pick<PermitFactory.IPermit, 'identifier' | 'typeOf' | 'name' | 'validFor'> & {
|
|
57
59
|
identifier: string;
|
|
58
60
|
issuedThrough?: IPermitIssuedThrough;
|
package/lib/permit.d.ts
CHANGED
|
@@ -8,18 +8,21 @@ import { PaymentServiceType } from './service/paymentService';
|
|
|
8
8
|
export declare enum PermitType {
|
|
9
9
|
Permit = "Permit"
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export interface IIssuedThroughAsFaceToFace {
|
|
12
|
+
typeOf: PaymentServiceType.FaceToFace;
|
|
13
|
+
}
|
|
14
|
+
export type IIssuedThroughAsCreditCard = Pick<IProduct, 'id' | 'serviceType'> & {
|
|
12
15
|
/**
|
|
13
16
|
* 決済サービスID
|
|
14
17
|
*/
|
|
15
18
|
id: string;
|
|
16
|
-
typeOf: PaymentServiceType.CreditCard
|
|
19
|
+
typeOf: PaymentServiceType.CreditCard;
|
|
17
20
|
};
|
|
18
21
|
export type IIssuedThroughAsProduct = Pick<IProduct, 'id' | 'serviceType' | 'typeOf'> & {
|
|
19
22
|
id: string;
|
|
20
23
|
typeOf: ProductType.MembershipService | ProductType.PaymentCard;
|
|
21
24
|
};
|
|
22
|
-
export type IIssuedThrough =
|
|
25
|
+
export type IIssuedThrough = IIssuedThroughAsFaceToFace | IIssuedThroughAsCreditCard | IIssuedThroughAsProduct;
|
|
23
26
|
export type IPaymentAccount = Pick<IAccount, 'accountNumber' | 'typeOf'>;
|
|
24
27
|
export type IPaymentAccountWithDetail = Pick<IAccount, 'accountNumber' | 'availableBalance' | 'balance' | 'typeOf'>;
|
|
25
28
|
export type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
|
package/lib/reservation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IInvoice } from '../invoice';
|
|
2
2
|
import { IMultilingualString } from '../multilingualString';
|
|
3
|
-
import {
|
|
3
|
+
import { IIssuedThroughAsCreditCard, IPermit } from '../permit';
|
|
4
4
|
import { IAvailableChannel as IProductAvailableChannel, ISearchConditions as ISearchProductConditions, IServiceType } from '../product';
|
|
5
5
|
import { IProject } from '../project';
|
|
6
6
|
import { IPropertyValue } from '../propertyValue';
|
|
@@ -98,7 +98,7 @@ export type IPermitAsServiceOutput = Pick<IPermit, 'typeOf'> & {
|
|
|
98
98
|
* メンバーシップサービス
|
|
99
99
|
* メンバーシップ区分が含まれる
|
|
100
100
|
*/
|
|
101
|
-
issuedThrough: Pick<
|
|
101
|
+
issuedThrough: Pick<IIssuedThroughAsCreditCard, 'serviceType'>;
|
|
102
102
|
};
|
|
103
103
|
export type IServiceOutput = IInvoiceAsServiceOutput | IPermitAsServiceOutput;
|
|
104
104
|
/**
|