@chevre/factory 4.399.0-alpha.17 → 4.399.0-alpha.18

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.
@@ -260,7 +260,21 @@ export interface IResult {
260
260
  * エラー
261
261
  */
262
262
  export type IError = any;
263
- export type ITokenizedMemberProgramTier = string;
263
+ /**
264
+ * トークン化されたメンバープログラムティア
265
+ */
266
+ export interface ITokenizedMemberProgramTier {
267
+ /**
268
+ * ティアトークン
269
+ */
270
+ token: string;
271
+ isTierOf: {
272
+ /**
273
+ * メンバープログラムコード
274
+ */
275
+ identifier: string;
276
+ };
277
+ }
264
278
  export interface IObjectWithoutDetail {
265
279
  acceptedOffer?: IAcceptedTicketOfferWithoutDetail[];
266
280
  broker?: ReservationFactory.IBroker;
@@ -268,7 +282,7 @@ export interface IObjectWithoutDetail {
268
282
  id: string;
269
283
  offers?: {
270
284
  /**
271
- * メンバーシップトークン
285
+ * メンバープログラムティアトークン
272
286
  * メンバープログラムティアごとにオファー有効期間が管理されている場合、検証されたトークンに基づいて有効期間が検証されます
273
287
  */
274
288
  validForMemberTier?: ITokenizedMemberProgramTier;
@@ -2,7 +2,7 @@ import * as EventFactory from '../event';
2
2
  import { EventType } from '../eventType';
3
3
  import { IMultilingualString } from '../multilingualString';
4
4
  import * as OfferFactory from '../offer';
5
- import { IEventOffer } from '../offer/eventOffer';
5
+ import { IEventOffer, IMemberProgramTier } from '../offer/eventOffer';
6
6
  import { OfferType } from '../offerType';
7
7
  import { OrganizationType } from '../organizationType';
8
8
  import { PlaceType } from '../placeType';
@@ -224,11 +224,7 @@ export interface IAttributes extends Pick<EventFactory.IAttributes<EventType.Eve
224
224
  * イベント
225
225
  */
226
226
  export type IEvent = EventFactory.IEvent<IAttributes>;
227
- export interface IMemberProgramTier4create {
228
- isTierOf: {
229
- identifier: string;
230
- };
231
- }
227
+ export type IMemberProgramTier4create = Pick<IMemberProgramTier, 'typeOf'>;
232
228
  export type ISellerMakesOffer4create = Pick<IEventOffer, 'availabilityEnds' | 'availabilityStarts' | 'validFrom' | 'validThrough' | 'typeOf'> & {
233
229
  availableAtOrFrom: Pick<IOfferAvailableAtOrFrom, 'id'>;
234
230
  /**
@@ -2,7 +2,7 @@ import { issuer } from '../issuer';
2
2
  import { IAvailableAtOrFrom, IOffer } from '../offer';
3
3
  import { OfferType } from '../offerType';
4
4
  type IOfferAvailableAtOrFrom = Pick<IAvailableAtOrFrom, 'id'>;
5
- type IMemberProgramTier = Pick<issuer.IMemberProgramTier, 'isTierOf' | 'typeOf'>;
5
+ type IMemberProgramTier = Pick<issuer.IMemberProgramTier, 'typeOf'>;
6
6
  /**
7
7
  * イベントに対する単一オファー
8
8
  * 利用可能アプリケーションのみ定義
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.399.0-alpha.17",
3
+ "version": "4.399.0-alpha.18",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",