@chevre/factory 5.2.0-alpha.8 → 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.
@@ -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 IPermitAsObjectTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'typeOf'> & {
14
+ export type IPermitAsTypeOfGood = Pick<IPermitAsGood, 'identifier' | 'typeOf'> & {
15
15
  issuedThrough?: IPermitIssuedThroughOfObjectTypeOfGood;
16
16
  };
17
17
  /**
18
18
  * MovieTicket決済サービス発行のチケット
19
19
  */
20
- export type IInvoiceAsObjectTypeOfGood = Pick<IInvoice, 'paymentMethodId' | 'typeOf'> & {
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 IPaymentMethodAsObjectTypeOfGood {
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 type IPermitOwnershipInfoAsObject = Pick<IOwnershipInfo<IPermitAsObjectTypeOfGood>, 'typeOf' | 'typeOfGood'>;
37
- export type IInvoiceOwnershipInfoAsObject = Pick<IOwnershipInfo<IInvoiceAsObjectTypeOfGood>, 'typeOf' | 'typeOfGood'>;
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 IPaymentMethodOwnershipInfoAsObject = Pick<IOwnershipInfo<IPaymentMethodAsObjectTypeOfGood>, 'typeOf' | 'typeOfGood'>;
43
- export type IOwnershipInfoAsObject = IPermitOwnershipInfoAsObject | IInvoiceOwnershipInfoAsObject | IPaymentMethodOwnershipInfoAsObject;
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
  */
@@ -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: IInvoice['paymentMethod']['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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "5.2.0-alpha.8",
3
+ "version": "5.2.0-alpha.9",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",