@chevre/factory 4.293.0 → 4.295.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'>;
@@ -1,13 +1,11 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import * as CheckMovieTicketActionFactory from '../../../action/check/paymentMethod/movieTicket';
3
- import { ITotalPaymentDue } from '../../../action/trade/pay';
4
- import * as MoneyTransferActionFactory from '../../../action/transfer/moneyTransfer';
3
+ import { IMovieTicket, ITotalPaymentDue } from '../../../action/trade/pay';
5
4
  import { ActionType } from '../../../actionType';
6
5
  import * as PayTransactionFactory from '../../../assetTransaction/pay';
7
6
  import { AssetTransactionType } from '../../../assetTransactionType';
8
7
  import { IPaymentMethodIssuedThrough } from '../../../order';
9
8
  import * as CreditCardFactory from '../../../paymentMethod/paymentCard/creditCard';
10
- import * as MovieTicketFactory from '../../../paymentMethod/paymentCard/movieTicket';
11
9
  import { PaymentStatusType } from '../../../paymentStatusType';
12
10
  import { IPropertyValue } from '../../../propertyValue';
13
11
  import { TransactionType } from '../../../transactionType';
@@ -29,13 +27,8 @@ export interface IObjectPendingTransaction {
29
27
  id?: string;
30
28
  transactionNumber?: string;
31
29
  }
32
- export declare type IPaymentCard = MoneyTransferActionFactory.IPaymentCard;
33
30
  export import ITokenizedPaymentCard = PayTransactionFactory.ITokenizedPaymentCard;
34
31
  export import IFromLocation = PayTransactionFactory.IFromLocation;
35
- /**
36
- * 転送先
37
- */
38
- export declare type IToLocation = IPaymentCard;
39
32
  export import IPurchaseNumberAuthResult = CheckMovieTicketActionFactory.IPurchaseNumberAuthResult;
40
33
  export import IUnauthorizedCardOfMember = CreditCardFactory.IUnauthorizedCardOfMember;
41
34
  export import IUncheckedCardRaw = CreditCardFactory.IUncheckedCardRaw;
@@ -44,7 +37,6 @@ export import IUncheckedCardTokenized = CreditCardFactory.IUncheckedCardTokenize
44
37
  * クレジットカード決済承認アクションに必要なクレジットカード情報
45
38
  */
46
39
  export declare type ICreditCard = IUncheckedCardRaw | IUncheckedCardTokenized | IUnauthorizedCardOfMember;
47
- export import IMovieTicket = MovieTicketFactory.IMovieTicket;
48
40
  /**
49
41
  * 承認対象
50
42
  */
@@ -85,18 +77,14 @@ export interface IObject {
85
77
  */
86
78
  id: string;
87
79
  };
88
- notes?: string;
89
80
  /**
90
- * 進行中取引(Account決済)
81
+ * 進行中取引(ペイメントカード決済)
91
82
  */
92
83
  pendingTransaction?: IObjectPendingTransaction;
93
84
  /**
94
85
  * 転送元(PaymentCard決済)
95
86
  */
96
87
  fromLocation?: IFromLocation;
97
- /**
98
- * 転送先(PaymentCard決済)
99
- */
100
88
  /**
101
89
  * 支払い方法(CreditCard決済)
102
90
  */
@@ -110,7 +98,6 @@ export interface IObject {
110
98
  */
111
99
  movieTickets?: IMovieTicket[];
112
100
  }
113
- export declare type IPaymentServiceOutput = IMovieTicket[];
114
101
  export interface IResult {
115
102
  /**
116
103
  * The identifier for the account the payment will be applied to.
@@ -146,26 +133,6 @@ export interface IResult {
146
133
  additionalProperty?: IPropertyValue<string>[];
147
134
  typeOf: ResultType;
148
135
  issuedThrough: IPaymentMethodIssuedThrough;
149
- /**
150
- * 転送元(PaymentCard決済)
151
- */
152
- fromLocation?: IFromLocation;
153
- /**
154
- * 転送先(PaymentCard決済)
155
- */
156
- toLocation?: IToLocation;
157
- /**
158
- * CreditCard決済の場合
159
- */
160
- entryTranArgs?: PayTransactionFactory.IEntryTranArgs;
161
- /**
162
- * CreditCard決済の場合
163
- */
164
- execTranResult?: PayTransactionFactory.IExecTranResult;
165
- /**
166
- * 承認時のムビチケ認証レスポンス(MovieTicket決済)
167
- */
168
- purchaseNumberAuthResult?: IPurchaseNumberAuthResult;
169
136
  }
170
137
  export interface IPurpose {
171
138
  typeOf: TransactionType;
@@ -1,13 +1,13 @@
1
1
  import * as surfrock from '@surfrock/sdk';
2
2
  import * as ActionFactory from '../../../action';
3
3
  import { OrganizationType } from '../../../organizationType';
4
- import { IServiceOutput as IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
4
+ import { IMovieTicket as IMovieTicketPaymentCard, IServiceOutput as IMovieTicketServiceOutput } from '../../../paymentMethod/paymentCard/movieTicket';
5
5
  import * as CheckActionFactory from '../../check';
6
6
  import * as PayActionFactory from '../../trade/pay';
7
7
  export declare type IAgent = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
8
8
  export declare type IPurchaseNumberAuthIn = surfrock.service.auth.factory.IPurchaseNumberAuthIn;
9
9
  export declare type IPurchaseNumberAuthResult = surfrock.service.auth.factory.IPurchaseNumberAuthResult;
10
- export declare type IMovieTicket = Omit<PayActionFactory.IMovieTicket, 'serviceOutput'> & {
10
+ export declare type IMovieTicket = Omit<IMovieTicketPaymentCard, 'project' | 'serviceOutput'> & {
11
11
  serviceOutput: Pick<IMovieTicketServiceOutput, 'reservationFor'>;
12
12
  };
13
13
  export interface IPaymentService extends Pick<PayActionFactory.IPaymentService, 'id' | 'typeOf' | 'paymentMethod'> {
@@ -75,7 +75,7 @@ export interface IPaymentMethod {
75
75
  */
76
76
  additionalProperty: IPropertyValue<string>[];
77
77
  }
78
- export declare type IMovieTicket = Omit<IMovieTicketPaymentCard, 'project'>;
78
+ export declare type IMovieTicket = Pick<IMovieTicketPaymentCard, 'accessCode' | 'category' | 'identifier' | 'serviceOutput' | 'serviceType' | 'typeOf'>;
79
79
  export interface IPaymentService {
80
80
  typeOf: PaymentServiceType;
81
81
  /**
@@ -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,10 +1,9 @@
1
1
  import * as GMO from '@motionpicture/gmo-service';
2
- import { IAction as IPayAction, IAttributes as IPayActionAttributes, ILocation, IOrderAsPayPurpose, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient, ITotalPaymentDue } from '../action/trade/pay';
2
+ import { IAction as IPayAction, IAttributes as IPayActionAttributes, ILocation, IMovieTicket, IOrderAsPayPurpose, IPayPurpose, IPendingTransaction, IRecipient as IPayRecipient, ITotalPaymentDue } from '../action/trade/pay';
3
3
  import * as AssetTransactionFactory from '../assetTransaction';
4
4
  import { AssetTransactionType } from '../assetTransactionType';
5
5
  import { IExtendId } from '../autoGenerated';
6
6
  import { IUnauthorizedCardOfMember, IUncheckedCardRaw, IUncheckedCardTokenized } from '../paymentMethod/paymentCard/creditCard';
7
- import { IMovieTicket } from '../paymentMethod/paymentCard/movieTicket';
8
7
  import { IOnPaymentStatusChanged } from '../project';
9
8
  import { IPropertyValue } from '../propertyValue';
10
9
  import { PaymentServiceType } from '../service/paymentService';
@@ -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';
@@ -1,6 +1,6 @@
1
1
  import { IMonetaryAmount } from '../monetaryAmount';
2
2
  import { IPaymentMethod } from '../paymentMethod';
3
- export declare type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'currency' | 'validThrough' | 'value'>;
3
+ export declare type IAmount = Pick<IMonetaryAmount, 'typeOf' | 'validThrough'>;
4
4
  /**
5
5
  * payment card interface
6
6
  */
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.293.0",
3
+ "version": "4.295.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",