@chevre/factory 4.180.0 → 4.181.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.
@@ -1,6 +1,7 @@
1
+ import { IPermit } from '../../../permit';
1
2
  import { IAttributes as IMoneyTransferActionAttributes } from '../../transfer/moneyTransfer';
2
3
  import * as RegisterActionFactory from '../register';
3
- export declare type IObject = any;
4
+ export declare type IObject = IPermit;
4
5
  export declare type IResult = any;
5
6
  export interface IPotentialActions {
6
7
  moneyTransfer: IMoneyTransferActionAttributes[];
@@ -27,6 +27,14 @@ export interface IPendingTransaction {
27
27
  typeOf: AccountFactory.transactionType;
28
28
  id: string;
29
29
  transactionNumber?: string;
30
+ object: {
31
+ fromLocation?: {
32
+ /**
33
+ * 口座番号
34
+ */
35
+ accountNumber: string;
36
+ };
37
+ };
30
38
  }
31
39
  export import ICreditCardSales = GMO.factory.credit.IAlterTranResult;
32
40
  /**
@@ -53,7 +53,13 @@ export interface IAcceptedPointAward {
53
53
  /**
54
54
  * カード番号
55
55
  */
56
- identifier?: string;
56
+ identifier: string;
57
+ issuedThrough: {
58
+ /**
59
+ * カード発行サービスID
60
+ */
61
+ id: string;
62
+ };
57
63
  };
58
64
  }
59
65
  export interface IAcceptedItemOffered {
@@ -66,10 +72,13 @@ export interface IAcceptedOfferWithoutDetail {
66
72
  id: string;
67
73
  itemOffered: IAcceptedItemOffered;
68
74
  }
75
+ export interface IItemOffered extends IProduct {
76
+ serviceOutput: IServiceOutput;
77
+ }
69
78
  export interface IAcceptedOffer {
70
79
  typeOf: OfferType.Offer;
71
80
  id: string;
72
- itemOffered: IProduct;
81
+ itemOffered: IItemOffered;
73
82
  }
74
83
  export declare type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
75
84
  export declare type IObject = IAcceptedOffer[];
@@ -1,4 +1,5 @@
1
1
  import * as ReserveActionFactory from '../action/reserve';
2
+ import ActionType from '../actionType';
2
3
  import * as TransactionFactory from '../assetTransaction';
3
4
  import AssetTransactionType from '../assetTransactionType';
4
5
  import { IExtendId } from '../autoGenerated';
@@ -24,7 +25,16 @@ export interface IAgent {
24
25
  }
25
26
  export interface IAcceptedProgramMembershipUsedAsObject {
26
27
  accessCode?: string;
27
- identifier?: string;
28
+ /**
29
+ * メンバーシップコード
30
+ */
31
+ identifier: string;
32
+ issuedThrough: {
33
+ /**
34
+ * メンバーシップ発行サービスID
35
+ */
36
+ id: string;
37
+ };
28
38
  }
29
39
  /**
30
40
  * トークン化された適用メンバーシップ
@@ -36,6 +46,7 @@ export declare type ITokenizedAcceptedProgramMembershipUsed = string;
36
46
  export declare type IAcceptedProgramMembershipUsed = IAcceptedProgramMembershipUsedAsObject | ITokenizedAcceptedProgramMembershipUsed;
37
47
  export declare type IAcceptedSubReservation = ISubReservation4eventReservation;
38
48
  export interface IAcceptedPointAward {
49
+ typeOf: ActionType.MoneyTransfer;
39
50
  recipient?: any;
40
51
  /**
41
52
  * 特典付与先
@@ -44,7 +55,13 @@ export interface IAcceptedPointAward {
44
55
  /**
45
56
  * カード番号
46
57
  */
47
- identifier?: string;
58
+ identifier: string;
59
+ issuedThrough: {
60
+ /**
61
+ * カード発行サービスID
62
+ */
63
+ id: string;
64
+ };
48
65
  };
49
66
  }
50
67
  /**
@@ -15,6 +15,7 @@ export declare enum PermitType {
15
15
  export interface IPermit extends IThing {
16
16
  project: IProject;
17
17
  typeOf: PermitType;
18
+ identifier?: string;
18
19
  accessCode?: string;
19
20
  additionalProperty?: IPropertyValue<string>[];
20
21
  amount?: IMonetaryAmount;
@@ -53,7 +53,13 @@ export interface IPointAward {
53
53
  /**
54
54
  * カード番号
55
55
  */
56
- identifier?: string;
56
+ identifier: string;
57
+ issuedThrough: {
58
+ /**
59
+ * カード発行サービスID
60
+ */
61
+ id: string;
62
+ };
57
63
  };
58
64
  description?: string;
59
65
  recipient?: any;
@@ -61,6 +67,21 @@ export interface IPointAward {
61
67
  identifier?: string;
62
68
  };
63
69
  }
70
+ /**
71
+ * 外部サービス認証情報
72
+ */
73
+ export interface ICredentials {
74
+ siteId?: string;
75
+ sitePass?: string;
76
+ authorizeServerDomain?: string;
77
+ clientId?: string;
78
+ clientSecret?: string;
79
+ }
80
+ export interface IAvailableChannel {
81
+ typeOf: 'ServiceChannel';
82
+ serviceUrl?: string;
83
+ credentials?: ICredentials;
84
+ }
64
85
  /**
65
86
  * プロダクトインターフェース
66
87
  * {@link https://schema.org/Product}
@@ -69,6 +90,7 @@ export interface IProduct extends IThing {
69
90
  project: IProject;
70
91
  typeOf: ProductType;
71
92
  id?: string;
93
+ availableChannel?: IAvailableChannel;
72
94
  /**
73
95
  * Indicates an OfferCatalog listing for this Organization, Person, or Service.
74
96
  */
@@ -1,22 +1,8 @@
1
1
  import { IOrganization } from '../organization';
2
+ import { IAvailableChannel } from '../product';
2
3
  import { IProject } from '../project';
3
4
  import { IServiceType } from '../serviceType';
4
5
  import { IThing } from '../thing';
5
- /**
6
- * 外部サービス認証情報
7
- */
8
- export interface ICredentials {
9
- siteId?: string;
10
- sitePass?: string;
11
- authorizeServerDomain?: string;
12
- clientId?: string;
13
- clientSecret?: string;
14
- }
15
- export interface IAvailableChannel {
16
- typeOf: 'ServiceChannel';
17
- serviceUrl?: string;
18
- credentials?: ICredentials;
19
- }
20
6
  export declare enum PaymentServiceType {
21
7
  CreditCard = "CreditCard",
22
8
  FaceToFace = "FaceToFace",
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PaymentServiceType = void 0;
4
+ // export interface IServiceOutput {
5
+ // /**
6
+ // * 決済方法タイプ
7
+ // */
8
+ // typeOf: string;
9
+ // }
4
10
  var PaymentServiceType;
5
11
  (function (PaymentServiceType) {
6
12
  PaymentServiceType["CreditCard"] = "CreditCard";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.180.0",
3
+ "version": "4.181.0-alpha.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",