@vendasta/meetings 1.15.5 → 1.15.6

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.
@@ -184,6 +184,12 @@ var NotificationType;
184
184
  NotificationType[NotificationType["SMS"] = 1] = "SMS";
185
185
  NotificationType[NotificationType["BOTH"] = 2] = "BOTH";
186
186
  })(NotificationType || (NotificationType = {}));
187
+ var PaymentCollectionMode;
188
+ (function (PaymentCollectionMode) {
189
+ PaymentCollectionMode[PaymentCollectionMode["PAYMENT_COLLECTION_MODE_INVALID"] = 0] = "PAYMENT_COLLECTION_MODE_INVALID";
190
+ PaymentCollectionMode[PaymentCollectionMode["FULL_UPFRONT"] = 1] = "FULL_UPFRONT";
191
+ PaymentCollectionMode[PaymentCollectionMode["PAY_AT_SERVICE"] = 2] = "PAY_AT_SERVICE";
192
+ })(PaymentCollectionMode || (PaymentCollectionMode = {}));
187
193
  var RegistrationCutOffUnit;
188
194
  (function (RegistrationCutOffUnit) {
189
195
  RegistrationCutOffUnit[RegistrationCutOffUnit["REGISTRATION_CUTOFF_DAYS"] = 0] = "REGISTRATION_CUTOFF_DAYS";
@@ -2242,6 +2248,47 @@ class EventTypeDateRange {
2242
2248
  return toReturn;
2243
2249
  }
2244
2250
  }
2251
+ class EventTypePaymentSettings {
2252
+ static fromProto(proto) {
2253
+ let m = new EventTypePaymentSettings();
2254
+ m = Object.assign(m, proto);
2255
+ if (proto.collectionMode) {
2256
+ m.collectionMode = enumStringToValue$9(PaymentCollectionMode, proto.collectionMode);
2257
+ }
2258
+ if (proto.price) {
2259
+ m.price = parseInt(proto.price, 10);
2260
+ }
2261
+ return m;
2262
+ }
2263
+ constructor(kwargs) {
2264
+ if (!kwargs) {
2265
+ return;
2266
+ }
2267
+ Object.assign(this, kwargs);
2268
+ }
2269
+ toApiJson() {
2270
+ const toReturn = {};
2271
+ if (typeof this.acceptPayments !== 'undefined') {
2272
+ toReturn['acceptPayments'] = this.acceptPayments;
2273
+ }
2274
+ if (typeof this.inventoryItemId !== 'undefined') {
2275
+ toReturn['inventoryItemId'] = this.inventoryItemId;
2276
+ }
2277
+ if (typeof this.collectionMode !== 'undefined') {
2278
+ toReturn['collectionMode'] = this.collectionMode;
2279
+ }
2280
+ if (typeof this.inventoryItemName !== 'undefined') {
2281
+ toReturn['inventoryItemName'] = this.inventoryItemName;
2282
+ }
2283
+ if (typeof this.price !== 'undefined') {
2284
+ toReturn['price'] = this.price;
2285
+ }
2286
+ if (typeof this.currency !== 'undefined') {
2287
+ toReturn['currency'] = this.currency;
2288
+ }
2289
+ return toReturn;
2290
+ }
2291
+ }
2245
2292
  class Field {
2246
2293
  static fromProto(proto) {
2247
2294
  let m = new Field();
@@ -2346,6 +2393,9 @@ class MeetingType {
2346
2393
  if (proto.redirectDelaySeconds) {
2347
2394
  m.redirectDelaySeconds = parseInt(proto.redirectDelaySeconds, 10);
2348
2395
  }
2396
+ if (proto.paymentSettings) {
2397
+ m.paymentSettings = EventTypePaymentSettings.fromProto(proto.paymentSettings);
2398
+ }
2349
2399
  if (proto.dailyMeetingLimit) {
2350
2400
  m.dailyMeetingLimit = parseInt(proto.dailyMeetingLimit, 10);
2351
2401
  }
@@ -2473,6 +2523,9 @@ class MeetingType {
2473
2523
  if (typeof this.redirectDelaySeconds !== 'undefined') {
2474
2524
  toReturn['redirectDelaySeconds'] = this.redirectDelaySeconds;
2475
2525
  }
2526
+ if (typeof this.paymentSettings !== 'undefined' && this.paymentSettings !== null) {
2527
+ toReturn['paymentSettings'] = 'toApiJson' in this.paymentSettings ? this.paymentSettings.toApiJson() : this.paymentSettings;
2528
+ }
2476
2529
  if (typeof this.dailyMeetingLimitEnabled !== 'undefined') {
2477
2530
  toReturn['dailyMeetingLimitEnabled'] = this.dailyMeetingLimitEnabled;
2478
2531
  }
@@ -7533,6 +7586,9 @@ class EventTypeSummary {
7533
7586
  if (proto.bufferDurationBeforeMeeting) {
7534
7587
  m.bufferDurationBeforeMeeting = parseInt(proto.bufferDurationBeforeMeeting, 10);
7535
7588
  }
7589
+ if (proto.paymentSettings) {
7590
+ m.paymentSettings = EventTypePaymentSettings.fromProto(proto.paymentSettings);
7591
+ }
7536
7592
  return m;
7537
7593
  }
7538
7594
  constructor(kwargs) {
@@ -7597,6 +7653,9 @@ class EventTypeSummary {
7597
7653
  if (typeof this.bufferDurationBeforeMeeting !== 'undefined') {
7598
7654
  toReturn['bufferDurationBeforeMeeting'] = this.bufferDurationBeforeMeeting;
7599
7655
  }
7656
+ if (typeof this.paymentSettings !== 'undefined' && this.paymentSettings !== null) {
7657
+ toReturn['paymentSettings'] = 'toApiJson' in this.paymentSettings ? this.paymentSettings.toApiJson() : this.paymentSettings;
7658
+ }
7600
7659
  return toReturn;
7601
7660
  }
7602
7661
  }
@@ -11246,6 +11305,7 @@ function MeetingTypeFromApi(req) {
11246
11305
  redirectEnabled: req.meetingTypeApi.redirectEnabled || false,
11247
11306
  redirectUrl: req.meetingTypeApi.redirectUrl || "",
11248
11307
  redirectDelaySeconds: req.meetingTypeApi.redirectDelaySeconds || 0,
11308
+ paymentSettings: req.meetingTypeApi.paymentSettings || undefined,
11249
11309
  dailyMeetingLimitEnabled: req.meetingTypeApi.dailyMeetingLimitEnabled || false,
11250
11310
  dailyMeetingLimit: req.meetingTypeApi.dailyMeetingLimit || 0,
11251
11311
  };
@@ -11291,6 +11351,7 @@ function MeetingTypeToApi(req) {
11291
11351
  redirectEnabled: m.redirectEnabled || false,
11292
11352
  redirectUrl: m.redirectUrl || undefined,
11293
11353
  redirectDelaySeconds: m.redirectDelaySeconds || 0,
11354
+ paymentSettings: m.paymentSettings || undefined,
11294
11355
  dailyMeetingLimitEnabled: m.dailyMeetingLimitEnabled || false,
11295
11356
  dailyMeetingLimit: m.dailyMeetingLimit || 0,
11296
11357
  };
@@ -12520,5 +12581,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
12520
12581
  * Generated bundle index. Do not edit.
12521
12582
  */
12522
12583
 
12523
- export { BookBatchMeetingResponse, BookedMeetingV2, BookingSource, CalendarMember, CalendarSource, CalendarType, CalendarView, CheckFeatureFlagRequest, CheckFeatureFlagResponse, Contact$1 as Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FeatureFlagFieldType, FormFieldType, GetServiceV2Response, GuestGetBookedMeetingResponseV2, GuestService, HostBookBatchMeetingResponse, HostListBatchAvailableTimeSlotsResponse, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, ListBatchAvailableTimeSlotsResponse, ListBookedMeetingsV2Response, ListGuestBookedMeetingsResponse, MeetingDetail, MeetingLocation, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, NotificationType, OnBoardingState, PagedResponse, RegistrationCutOffUnit, RelativeTimeUnit, ServiceEventType, ServiceGroup, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
12584
+ export { BookBatchMeetingResponse, BookedMeetingV2, BookingSource, CalendarMember, CalendarSource, CalendarType, CalendarView, CheckFeatureFlagRequest, CheckFeatureFlagResponse, Contact$1 as Contact, CreateCalendarRequest, CreateCalendarResponse, DateRangeType, DayOfWeek, FeatureFlagFieldType, FormFieldType, GetServiceV2Response, GuestGetBookedMeetingResponseV2, GuestService, HostBookBatchMeetingResponse, HostListBatchAvailableTimeSlotsResponse, HostService, KnownCalendarApplicationContextKeys, KnownCalendarExternalIntegrations, ListBatchAvailableTimeSlotsResponse, ListBookedMeetingsV2Response, ListGuestBookedMeetingsResponse, MeetingDetail, MeetingLocation, MeetingLocationType, MeetingSource, MeetingSourceInfo, MeetingSourceListResponse, MeetingSourceOrigin, MeetingSourceQuery, MeetingSourceStatus, MeetingsService, NotificationType, OnBoardingState, PagedResponse, PaymentCollectionMode, RegistrationCutOffUnit, RelativeTimeUnit, ServiceEventType, ServiceGroup, TeamEventMeetingType, WeekdayAvailability, WellKnownFormFieldIds, WellKnownMeetingMetadataKeys, addMetadataToBookingLink, durationFromString, durationStringToMinutes, durationToString, meetingSchedulerIdToMetadataKey, newBusinessCenterApplicationContextProperties, newPartnerCenterApplicationContextProperties, newSalesCenterApplicationContextProperties };
12524
12585
  //# sourceMappingURL=vendasta-meetings.mjs.map