@chevre/factory 4.294.0 → 4.296.0

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.
@@ -68,9 +68,6 @@ export interface IStartParams<T extends AccountTransactionType, TObject extends
68
68
  export interface IPotentialActions {
69
69
  moneyTransfer: MoneyTransferActionFactory.IAttributes;
70
70
  }
71
- /**
72
- * エラー
73
- */
74
71
  /**
75
72
  * 口座取引属性
76
73
  */
@@ -79,12 +76,6 @@ export declare type IAttributes<TStartParams> = TStartParams & {
79
76
  * 取引状態
80
77
  */
81
78
  status: TransactionStatusType;
82
- /**
83
- * 取引結果
84
- */
85
- /**
86
- * 取引エラー
87
- */
88
79
  /**
89
80
  * 取引開始日時
90
81
  */
@@ -93,12 +84,6 @@ export declare type IAttributes<TStartParams> = TStartParams & {
93
84
  * 取引終了日時
94
85
  */
95
86
  endDate?: Date;
96
- /**
97
- * タスクエクスポート日時
98
- */
99
- /**
100
- * タスクエクスポート状態
101
- */
102
87
  /**
103
88
  * 事後に発生するアクション
104
89
  */
@@ -10,10 +10,12 @@ import { IProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecific
10
10
  import { ISeller } from '../../../seller';
11
11
  import { TransactionType } from '../../../transactionType';
12
12
  import * as AuthorizeActionFactory from '../../authorize';
13
+ import { IPointAward } from '../../transfer/moneyTransfer';
13
14
  export declare type IAgent = ActionFactory.IParticipantAsSeller;
14
15
  export declare type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
15
- export declare type IItemOffered = Pick<IProduct, 'project' | 'typeOf' | 'id' | 'name' | 'pointAward'> & {
16
+ export declare type IItemOffered = Pick<IProduct, 'project' | 'typeOf' | 'id' | 'name'> & {
16
17
  serviceOutput: IProductServiceOutput & IPermit;
18
+ pointAward?: IPointAward;
17
19
  };
18
20
  export declare type IAcceptedOfferWithoutDetail = RegisterServiceTransactionFactory.IAcceptedOfferWithoutDetail;
19
21
  export declare type ISellerMakesOffer = Pick<ISeller, 'project' | 'id' | 'name' | 'typeOf'>;
@@ -2,6 +2,7 @@ import * as surfrock from '@surfrock/sdk';
2
2
  import * as ActionFactory from '../../../action';
3
3
  import { OrganizationType } from '../../../organizationType';
4
4
  import { IMovieTicket as IMovieTicketPaymentCard, IServiceOutput as IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
5
+ import { TransactionType } from '../../../transactionType';
5
6
  import * as CheckActionFactory from '../../check';
6
7
  import * as PayActionFactory from '../../trade/pay';
7
8
  export declare type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
@@ -25,19 +26,21 @@ export interface IResult {
25
26
  purchaseNumberAuthIn: IPurchaseNumberAuthIn;
26
27
  purchaseNumberAuthResult: IPurchaseNumberAuthResult;
27
28
  /**
28
- * 認証結果としてのムビチケリスト
29
+ * 認証結果としてのMovieTicketリスト
29
30
  */
30
31
  movieTickets: IMovieTicket[];
31
32
  }
32
33
  export declare type IError = any;
33
- /**
34
- * ムビチケ確認アクション属性
35
- */
34
+ export interface IPurpose {
35
+ typeOf: TransactionType;
36
+ id: string;
37
+ }
36
38
  export interface IAttributes extends CheckActionFactory.IAttributes<IObject, IResult> {
37
39
  agent: IAgent;
38
40
  object: IObject;
41
+ purpose?: IPurpose;
39
42
  }
40
43
  /**
41
- * ムビチケ確認アクション
44
+ * MovieTicket認証アクション
42
45
  */
43
46
  export declare type IAction = ActionFactory.IAction<IAttributes>;
@@ -4,6 +4,7 @@ import { ActionType } from '../../actionType';
4
4
  import * as MoneyTransferTransactionFactory from '../../assetTransaction/moneyTransfer';
5
5
  import { AssetTransactionType } from '../../assetTransactionType';
6
6
  import { IMonetaryAmount } from '../../monetaryAmount';
7
+ import { PermitType } from '../../permit';
7
8
  /**
8
9
  * 進行中取引
9
10
  */
@@ -67,3 +68,35 @@ export interface IAttributes extends ActionFactory.IAttributes<ActionType.MoneyT
67
68
  toLocation: ILocation;
68
69
  }
69
70
  export declare type IAction = ActionFactory.IAction<IAttributes>;
71
+ export declare type IPointAwardAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
72
+ /**
73
+ * ポイント特典
74
+ */
75
+ export interface IPointAward {
76
+ typeOf: ActionType.MoneyTransfer;
77
+ amount?: IPointAwardAmount;
78
+ /**
79
+ * 特典付与先
80
+ */
81
+ toLocation?: {
82
+ typeOf: PermitType.Permit;
83
+ /**
84
+ * カード番号
85
+ */
86
+ identifier: string;
87
+ issuedThrough: {
88
+ /**
89
+ * カード発行サービスID
90
+ */
91
+ id: string;
92
+ };
93
+ };
94
+ description?: string;
95
+ recipient?: IRecipient;
96
+ purpose?: {
97
+ /**
98
+ * 特典識別子
99
+ */
100
+ identifier?: string;
101
+ };
102
+ }
@@ -1,5 +1,5 @@
1
1
  import { IAttributes as IRegisterServiceActionAttributes } from '../action/interact/register/service';
2
- import { IAttributes as IMoneyTransferActionAttributes } from '../action/transfer/moneyTransfer';
2
+ import { IAttributes as IMoneyTransferActionAttributes, IPointAward } from '../action/transfer/moneyTransfer';
3
3
  import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
@@ -63,8 +63,9 @@ export interface IAcceptedOfferWithoutDetail {
63
63
  id: string;
64
64
  itemOffered: IAcceptedItemOffered;
65
65
  }
66
- export interface IItemOffered extends Pick<IProduct, 'id' | 'pointAward' | 'project' | 'serviceOutput' | 'typeOf'> {
66
+ export interface IItemOffered extends Pick<IProduct, 'id' | 'project' | 'serviceOutput' | 'typeOf'> {
67
67
  serviceOutput: IServiceOutput;
68
+ pointAward?: IPointAward;
68
69
  }
69
70
  export interface IAcceptedOffer {
70
71
  typeOf: OfferType.Offer;
@@ -1,9 +1,9 @@
1
1
  import * as ReserveActionFactory from '../action/reserve';
2
+ import { IPointAward } from '../action/transfer/moneyTransfer';
2
3
  import { ActionType } from '../actionType';
3
4
  import * as AssetTransactionFactory from '../assetTransaction';
4
5
  import { AssetTransactionType } from '../assetTransactionType';
5
6
  import { IExtendId } from '../autoGenerated';
6
- import { IPointAward } from '../product';
7
7
  import { IPropertyValue } from '../propertyValue';
8
8
  import * as ReservationFactory from '../reservation';
9
9
  import { IReservationFor as IBusReservationReservationFor } from '../reservation/busReservation';
package/lib/product.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { ActionType } from './actionType';
2
1
  import { ICategoryCode } from './categoryCode';
3
- import { IMonetaryAmount } from './monetaryAmount';
2
+ import { IMultilingualString } from './multilingualString';
4
3
  import { IAddOn as IBaseAddOn, IName as IOfferName, IOffer as IBaseOffer } from './offer';
5
4
  import { OfferType } from './offerType';
6
5
  import { IPermit } from './permit';
@@ -49,38 +48,6 @@ export declare type IServiceOutput = Pick<IPermit, 'typeOf' | 'amount'> & {
49
48
  membershipPointsEarned?: IMembershipPointsEarned;
50
49
  automaticRenewal?: boolean;
51
50
  };
52
- export declare type IPointAwardAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'value'>;
53
- /**
54
- * ポイント特典
55
- */
56
- export interface IPointAward {
57
- typeOf: ActionType.MoneyTransfer;
58
- amount?: IPointAwardAmount;
59
- /**
60
- * 特典付与先
61
- */
62
- toLocation?: {
63
- /**
64
- * Permit
65
- */
66
- typeOf?: string;
67
- /**
68
- * カード番号
69
- */
70
- identifier: string;
71
- issuedThrough: {
72
- /**
73
- * カード発行サービスID
74
- */
75
- id: string;
76
- };
77
- };
78
- description?: string;
79
- recipient?: any;
80
- purpose?: {
81
- identifier?: string;
82
- };
83
- }
84
51
  /**
85
52
  * 外部サービス認証情報
86
53
  */
@@ -96,8 +63,8 @@ export interface IAvailableChannel {
96
63
  serviceUrl?: string;
97
64
  credentials?: ICredentials;
98
65
  }
99
- export declare type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'project' | 'typeOf'>;
100
- export declare type IOffer = Pick<IBaseOffer, 'project' | 'typeOf' | 'priceCurrency' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
66
+ export declare type IServiceType = Pick<ICategoryCode, 'codeValue' | 'inCodeSet' | 'typeOf'>;
67
+ export declare type IOffer = Pick<IBaseOffer, 'typeOf' | 'priceCurrency' | 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough'> & {
101
68
  seller?: {
102
69
  id?: string;
103
70
  };
@@ -111,15 +78,16 @@ export interface IProduct extends Pick<IThing, 'name' | 'description'> {
111
78
  typeOf: ProductType;
112
79
  id?: string;
113
80
  availableChannel?: IAvailableChannel;
81
+ description?: IMultilingualString;
114
82
  /**
115
83
  * Indicates an OfferCatalog listing for this Organization, Person, or Service.
116
84
  */
117
85
  hasOfferCatalog?: IHasOfferCatalog;
86
+ name?: IMultilingualString;
118
87
  /**
119
88
  * An offer to provide this item
120
89
  */
121
90
  offers?: IOffer[];
122
- pointAward?: IPointAward;
123
91
  /**
124
92
  * The product identifier, such as ISBN. For example: meta itemprop="productID" content="isbn:123-456-789".
125
93
  */
@@ -1,10 +1,10 @@
1
- import { ActionType } from './actionType';
1
+ import { IPointAward } from './action/transfer/moneyTransfer';
2
2
  import { ItemAvailability } from './itemAvailability';
3
3
  import { IAddOn, IName, IOffer } from './offer';
4
4
  import { OfferType } from './offerType';
5
5
  import { IAmount as IPermitAmount, IDepositAmount, IPaymentAmount } from './permit';
6
6
  import { IAppliesToMovieTicket, IPriceSpecification as IUnitPriceSpecification } from './priceSpecification/unitPriceSpecification';
7
- import { IPointAwardAmount, IProduct, ProductType } from './product';
7
+ import { IProduct, ProductType } from './product';
8
8
  import { SortType } from './sortType';
9
9
  import { IOfferMerchantReturnPolicy, IOfferMerchantReturnPolicySearchConditions, IOfferMerchantReturnPolicySortOrder } from './unitPriceOffer/merchantReturnPolicy';
10
10
  export declare type IHasMerchantReturnPolicy = (Pick<IOfferMerchantReturnPolicy, 'typeOf' | 'id' | 'identifier' | 'name'> & {
@@ -34,17 +34,7 @@ export interface IItemOffered {
34
34
  /**
35
35
  * 特典
36
36
  */
37
- pointAward?: {
38
- /**
39
- * 付与金額
40
- */
41
- amount?: IPointAwardAmount;
42
- /**
43
- * 特典説明
44
- */
45
- description?: string;
46
- typeOf: ActionType.MoneyTransfer;
47
- };
37
+ pointAward?: Pick<IPointAward, 'amount' | 'description' | 'typeOf'>;
48
38
  }
49
39
  /**
50
40
  * 単価オファーの価格仕様
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.294.0",
3
+ "version": "4.296.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",