reach-api-sdk 1.0.185 → 1.0.186

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.
@@ -28830,6 +28830,24 @@ declare class PublicHealthCheckService {
28830
28830
  getObject(): CancelablePromise<any>;
28831
28831
  }
28832
28832
 
28833
+ /**
28834
+ * Apply discount code model.
28835
+ */
28836
+ type OrderApplyDiscountCode = {
28837
+ /**
28838
+ * Gets or sets the tenant Id.
28839
+ */
28840
+ tenantId: string;
28841
+ /**
28842
+ * Gets or sets the Id.
28843
+ */
28844
+ id: string;
28845
+ /**
28846
+ * Gets or sets the discount code (only used for discount codes).
28847
+ */
28848
+ discountCode: string;
28849
+ };
28850
+
28833
28851
  declare class PublicLeasingService {
28834
28852
  readonly httpRequest: BaseHttpRequest;
28835
28853
  constructor(httpRequest: BaseHttpRequest);
@@ -28857,7 +28875,7 @@ declare class PublicLeasingService {
28857
28875
  xTenantSubdomain?: string;
28858
28876
  }): CancelablePromise<any>;
28859
28877
  /**
28860
- * Refreshes a lease and updates any changes />.
28878
+ * Refreshes a lease and updates any changes.
28861
28879
  * @returns any OK
28862
28880
  * @throws ApiError
28863
28881
  */
@@ -28875,6 +28893,25 @@ declare class PublicLeasingService {
28875
28893
  */
28876
28894
  requestBody?: Order;
28877
28895
  }): CancelablePromise<any>;
28896
+ /**
28897
+ * Applys a discount code and refreshes the lease.
28898
+ * @returns any OK
28899
+ * @throws ApiError
28900
+ */
28901
+ applyDiscountCode({ orderId, xTenantSubdomain, requestBody, }: {
28902
+ /**
28903
+ * The order Id.
28904
+ */
28905
+ orderId: string;
28906
+ /**
28907
+ * The tenants subdomain.
28908
+ */
28909
+ xTenantSubdomain?: string;
28910
+ /**
28911
+ * The discountcode model.
28912
+ */
28913
+ requestBody?: OrderApplyDiscountCode;
28914
+ }): CancelablePromise<any>;
28878
28915
  /**
28879
28916
  * Gets a Reach.Models.Tenant by its subdomain.
28880
28917
  * @returns any OK
@@ -54965,4 +55002,4 @@ type ValidationResultModel = {
54965
55002
  readonly errors?: Array<ValidationError> | null;
54966
55003
  };
54967
55004
 
54968
- export { Activity, ActivityPerformance, ActivityPerformancePage, ActivityPerformancePatch, ActivityPerformancePost, ActivityPerformanceService, ActivityService, ActivityType, AddressComponent, AdvanceBooking, Amenity, AmenityService, AmenityType, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeesService, AutoCompleteResponseModel, AvailabilityIndicator, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, CancellationPoliciesService, CancellationPolicy, CancellationPolicyPage, CancellationPolicyPatch, CancellationPolicyPost, ChatService, CheckoutPlatform, ChoiceMessage, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CourseEmailAttendeesPatch, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionReschedulePatch, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateDeal, CreateEmailSettings, CreateOffer, CreateQuestion, CreateQuestionOption, CreateTemplateDetail, CreateTemplateFieldPermission, CreateVenue, CustomDateRange, CustomDateRangeOption, Customer, CustomerCancellationOption, CustomerEmailPatch, CustomerPage, CustomerPatch, CustomerPost, CustomerStats, CustomerType, CustomersService, DatabaseState, DayOfWeek, Deal, DealActivitiesService, DealActivity, DealActivityPage, DealActivityPatch, DealActivityPost, DealCreate, DealDiscountType, DealPage, DealPatch, DealPost, DealTarget, DealType, DealsService, DescriptionCompletionResponse, DiscountCodeUse, DiscountCodeUsePage, DiscountCodeUsePatch, DiscountCodeUsePost, DiscountCodeUsesService, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, EnglandGolfReportService, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FieldPermission, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HelpersService, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImageLibraryCategory, ImageLibraryCategoryService, ImageLibraryImage, ImageLibraryImageService, ImagePage, ImagePatch, ImagePost, ImageUploadHistory, ImageUploadHistoryPage, ImageUploadHistoryPatch, ImageUploadHistoryPost, ImageUploadHistoryService, ImagesService, InviteStatus, LeasingService, LocationReport, LocationReportPage, LocationReportPatch, LocationReportPost, LocationReportSummary, LocationsReportService, LoqateGeocode, LoqatePlaceResult, LoqatePlacesService, LoqatePrediction, Northeast, NotificationQueue, NotificationQueuePage, NotificationQueuePatch, NotificationQueuePost, NotificationQueueService, NotificationSetting, NotificationSettingPage, NotificationSettingPatch, NotificationSettingPost, NotificationSettingsService, NotificationType, Offer, OfferPage, OfferPatch, OfferPost, OffersService, OpenAPI, OpenAPIConfig, OpenactiveFeedIntermediate, OpenactiveFeedIntermediatePage, OpenactiveFeedIntermediatePatch, OpenactiveFeedIntermediatePost, OpenactiveFeedIntermediateService, OpenactiveFeedItem, OpenactiveFeedItemPage, OpenactiveFeedItemPatch, OpenactiveFeedItemPost, OpenactiveFeedItemService, OpportunityRegister, OpportunityRegisterPage, OpportunityRegisterPatch, OpportunityRegisterPost, OpportunityRegisterService, OpportunityRegisterStatus, OpportunityType, Order, OrderDeal, OrderEmailCustomerPatch, OrderItem, OrderItemDeal, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemReport, OrderItemReportPage, OrderItemReportPatch, OrderItemReportPost, OrderItemReportService, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPatchItem, OrderPost, OrderPostItem, OrderRefresh, OrderSource, OrderStage, OrderToken, OrderTokenPage, OrderTokenPatch, OrderTokenPost, OrderUpdateContact, OrdersService, OrgCourseUtilisation, OrgCourseUtilisationPage, OrgCourseUtilisationPatch, OrgCourseUtilisationPost, OrgCourseUtilisationService, OrganisationApplicationFeeHandling, OrganisationAvailableChannel, OrganisationRefundPolicy, OrganisationTaxMode, OrganisationType, Pagination, Payment, PaymentMethod, PaymentPage, PaymentPatch, PaymentPoliciesService, PaymentPolicy, PaymentPolicyPage, PaymentPolicyPatch, PaymentPolicyPost, PaymentPolicySplitType, PaymentPost, PaymentsService, PeriodsOfWeek, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceAddress, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlatformPayout, PlatformPayoutPage, PlatformPayoutPatch, PlatformPayoutPost, PlatformPayoutsService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, Provider, ProviderCreate, ProviderPage, ProviderPatch, ProviderPost, ProviderType, ProviderTypesService, ProvidersService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicFilestackWebhookService, PublicGenericActivityService, PublicHealthCheckService, PublicLeasingService, PublicNetworksService, PublicOpportunityRegisterService, PublicOrderItemsService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicProvidersService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, QuestionIndex, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundSource, RefundStatus, RegisterReport, RegisterReportPage, RegisterReportPatch, RegisterReportPost, RegisterReportService, RegisterReportSummary, RescheduleLog, RescheduleLogPage, RescheduleLogPatch, RescheduleLogPost, RescheduleLogService, ScheduleStatus, ScheduledSession, ScheduledSessionEmailAttendeesPatch, ScheduledSessionPage, ScheduledSessionPatch, ScheduledSessionPost, ScheduledSessionReschedulePatch, ScheduledSessionSchedule, ScheduledSessionSchedulePage, ScheduledSessionSchedulePatch, ScheduledSessionSchedulePost, ScheduledSessionSearchSortBy, ScheduledSessionsSchedulesService, ScheduledSessionsService, SearchSortOrderDirection, Session, SessionCreate, SessionPage, SessionPatch, SessionPost, SessionType, SessionsService, Slot, SlotAvailabilityStatus, SlotOffer, SlotOfferPage, SlotOfferPatch, SlotOfferPost, SlotOffersService, SlotPage, SlotPatch, SlotPost, SlotSchedule, SlotScheduleOffer, SlotScheduleOfferPage, SlotScheduleOfferPatch, SlotScheduleOfferPost, SlotScheduleOffersService, SlotSchedulePage, SlotSchedulePatch, SlotSchedulePost, SlotSchedulesService, SlotStatus, SlotsService, Southwest, StripeAccount, StripeAccountLinkedEntityType, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StripeSetupRequirement, StripeStatus, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, SurveyDuplicatePost, SurveyPage, SurveyPatch, SurveyPost, SurveyQuestion, SurveyQuestionOption, SurveyQuestionPage, SurveyQuestionPatch, SurveyQuestionPatchOption, SurveyQuestionPost, SurveyQuestionPostOption, SurveyQuestionType, SurveyQuestionsService, SurveyQuestionsTarget, SurveyReportExtended, SurveyReportExtendedPage, SurveyReportExtendedPatch, SurveyReportExtendedPost, SurveyReportExtendedService, SurveyResponseMode, SurveySubmissionModel, SurveySubmit, SurveySubmitAttendee, SurveySubmitQuestions, SurveyType, SurveysService, Tax, Template, TemplateCreate, TemplateDeal, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFieldPermission, TemplateFieldPermissionPage, TemplateFieldPermissionPatch, TemplateFieldPermissionPost, TemplateFieldPermissionsService, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, TenantSetting, TenantTier, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UnsplashSearchResponse, UnsplashService, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPermission, UserPermissionPage, UserPermissionPatch, UserPermissionPost, UserPermissionsService, UserPost, UserProgramme, UserProgrammePage, UserProgrammePatch, UserProgrammePost, UserProgrammesService, UserProvider, UserProviderPage, UserProviderPatch, UserProviderPost, UserProvidersService, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueManager, VenueManagerPage, VenueManagerPatch, VenueManagerPost, VenueManagersService, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePerformance, VenuePerformancePage, VenuePerformancePatch, VenuePerformancePost, VenuePerformanceService, VenuePost, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityReport, WaitlistActivityReportPage, WaitlistActivityReportPatch, WaitlistActivityReportPost, WaitlistActivityReportService, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityReport, WaitlistOpportunityReportPage, WaitlistOpportunityReportPatch, WaitlistOpportunityReportPost, WaitlistOpportunityReportService, WaitlistOpportunityService };
55005
+ export { Activity, ActivityPerformance, ActivityPerformancePage, ActivityPerformancePatch, ActivityPerformancePost, ActivityPerformanceService, ActivityService, ActivityType, AddressComponent, AdvanceBooking, Amenity, AmenityService, AmenityType, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeesService, AutoCompleteResponseModel, AvailabilityIndicator, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, CancellationPoliciesService, CancellationPolicy, CancellationPolicyPage, CancellationPolicyPatch, CancellationPolicyPost, ChatService, CheckoutPlatform, ChoiceMessage, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CourseEmailAttendeesPatch, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionReschedulePatch, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateDeal, CreateEmailSettings, CreateOffer, CreateQuestion, CreateQuestionOption, CreateTemplateDetail, CreateTemplateFieldPermission, CreateVenue, CustomDateRange, CustomDateRangeOption, Customer, CustomerCancellationOption, CustomerEmailPatch, CustomerPage, CustomerPatch, CustomerPost, CustomerStats, CustomerType, CustomersService, DatabaseState, DayOfWeek, Deal, DealActivitiesService, DealActivity, DealActivityPage, DealActivityPatch, DealActivityPost, DealCreate, DealDiscountType, DealPage, DealPatch, DealPost, DealTarget, DealType, DealsService, DescriptionCompletionResponse, DiscountCodeUse, DiscountCodeUsePage, DiscountCodeUsePatch, DiscountCodeUsePost, DiscountCodeUsesService, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, EnglandGolfReportService, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FieldPermission, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HelpersService, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImageLibraryCategory, ImageLibraryCategoryService, ImageLibraryImage, ImageLibraryImageService, ImagePage, ImagePatch, ImagePost, ImageUploadHistory, ImageUploadHistoryPage, ImageUploadHistoryPatch, ImageUploadHistoryPost, ImageUploadHistoryService, ImagesService, InviteStatus, LeasingService, LocationReport, LocationReportPage, LocationReportPatch, LocationReportPost, LocationReportSummary, LocationsReportService, LoqateGeocode, LoqatePlaceResult, LoqatePlacesService, LoqatePrediction, Northeast, NotificationQueue, NotificationQueuePage, NotificationQueuePatch, NotificationQueuePost, NotificationQueueService, NotificationSetting, NotificationSettingPage, NotificationSettingPatch, NotificationSettingPost, NotificationSettingsService, NotificationType, Offer, OfferPage, OfferPatch, OfferPost, OffersService, OpenAPI, OpenAPIConfig, OpenactiveFeedIntermediate, OpenactiveFeedIntermediatePage, OpenactiveFeedIntermediatePatch, OpenactiveFeedIntermediatePost, OpenactiveFeedIntermediateService, OpenactiveFeedItem, OpenactiveFeedItemPage, OpenactiveFeedItemPatch, OpenactiveFeedItemPost, OpenactiveFeedItemService, OpportunityRegister, OpportunityRegisterPage, OpportunityRegisterPatch, OpportunityRegisterPost, OpportunityRegisterService, OpportunityRegisterStatus, OpportunityType, Order, OrderApplyDiscountCode, OrderDeal, OrderEmailCustomerPatch, OrderItem, OrderItemDeal, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemReport, OrderItemReportPage, OrderItemReportPatch, OrderItemReportPost, OrderItemReportService, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, OrderPatchItem, OrderPost, OrderPostItem, OrderRefresh, OrderSource, OrderStage, OrderToken, OrderTokenPage, OrderTokenPatch, OrderTokenPost, OrderUpdateContact, OrdersService, OrgCourseUtilisation, OrgCourseUtilisationPage, OrgCourseUtilisationPatch, OrgCourseUtilisationPost, OrgCourseUtilisationService, OrganisationApplicationFeeHandling, OrganisationAvailableChannel, OrganisationRefundPolicy, OrganisationTaxMode, OrganisationType, Pagination, Payment, PaymentMethod, PaymentPage, PaymentPatch, PaymentPoliciesService, PaymentPolicy, PaymentPolicyPage, PaymentPolicyPatch, PaymentPolicyPost, PaymentPolicySplitType, PaymentPost, PaymentsService, PeriodsOfWeek, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceAddress, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlatformPayout, PlatformPayoutPage, PlatformPayoutPatch, PlatformPayoutPost, PlatformPayoutsService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, Provider, ProviderCreate, ProviderPage, ProviderPatch, ProviderPost, ProviderType, ProviderTypesService, ProvidersService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicFilestackWebhookService, PublicGenericActivityService, PublicHealthCheckService, PublicLeasingService, PublicNetworksService, PublicOpportunityRegisterService, PublicOrderItemsService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicProvidersService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, QuestionIndex, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundSource, RefundStatus, RegisterReport, RegisterReportPage, RegisterReportPatch, RegisterReportPost, RegisterReportService, RegisterReportSummary, RescheduleLog, RescheduleLogPage, RescheduleLogPatch, RescheduleLogPost, RescheduleLogService, ScheduleStatus, ScheduledSession, ScheduledSessionEmailAttendeesPatch, ScheduledSessionPage, ScheduledSessionPatch, ScheduledSessionPost, ScheduledSessionReschedulePatch, ScheduledSessionSchedule, ScheduledSessionSchedulePage, ScheduledSessionSchedulePatch, ScheduledSessionSchedulePost, ScheduledSessionSearchSortBy, ScheduledSessionsSchedulesService, ScheduledSessionsService, SearchSortOrderDirection, Session, SessionCreate, SessionPage, SessionPatch, SessionPost, SessionType, SessionsService, Slot, SlotAvailabilityStatus, SlotOffer, SlotOfferPage, SlotOfferPatch, SlotOfferPost, SlotOffersService, SlotPage, SlotPatch, SlotPost, SlotSchedule, SlotScheduleOffer, SlotScheduleOfferPage, SlotScheduleOfferPatch, SlotScheduleOfferPost, SlotScheduleOffersService, SlotSchedulePage, SlotSchedulePatch, SlotSchedulePost, SlotSchedulesService, SlotStatus, SlotsService, Southwest, StripeAccount, StripeAccountLinkedEntityType, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StripeSetupRequirement, StripeStatus, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, SurveyDuplicatePost, SurveyPage, SurveyPatch, SurveyPost, SurveyQuestion, SurveyQuestionOption, SurveyQuestionPage, SurveyQuestionPatch, SurveyQuestionPatchOption, SurveyQuestionPost, SurveyQuestionPostOption, SurveyQuestionType, SurveyQuestionsService, SurveyQuestionsTarget, SurveyReportExtended, SurveyReportExtendedPage, SurveyReportExtendedPatch, SurveyReportExtendedPost, SurveyReportExtendedService, SurveyResponseMode, SurveySubmissionModel, SurveySubmit, SurveySubmitAttendee, SurveySubmitQuestions, SurveyType, SurveysService, Tax, Template, TemplateCreate, TemplateDeal, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFieldPermission, TemplateFieldPermissionPage, TemplateFieldPermissionPatch, TemplateFieldPermissionPost, TemplateFieldPermissionsService, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, TenantSetting, TenantTier, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UnsplashSearchResponse, UnsplashService, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPermission, UserPermissionPage, UserPermissionPatch, UserPermissionPost, UserPermissionsService, UserPost, UserProgramme, UserProgrammePage, UserProgrammePatch, UserProgrammePost, UserProgrammesService, UserProvider, UserProviderPage, UserProviderPatch, UserProviderPost, UserProvidersService, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueManager, VenueManagerPage, VenueManagerPatch, VenueManagerPost, VenueManagersService, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePerformance, VenuePerformancePage, VenuePerformancePatch, VenuePerformancePost, VenuePerformanceService, VenuePost, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityReport, WaitlistActivityReportPage, WaitlistActivityReportPatch, WaitlistActivityReportPost, WaitlistActivityReportService, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityReport, WaitlistOpportunityReportPage, WaitlistOpportunityReportPatch, WaitlistOpportunityReportPost, WaitlistOpportunityReportService, WaitlistOpportunityService };
package/dist/reach-sdk.js CHANGED
@@ -19490,7 +19490,7 @@ const request = (config, options, axiosClient = axios) => {
19490
19490
  });
19491
19491
  }
19492
19492
  /**
19493
- * Refreshes a lease and updates any changes />.
19493
+ * Refreshes a lease and updates any changes.
19494
19494
  * @returns any OK
19495
19495
  * @throws ApiError
19496
19496
  */
@@ -19517,6 +19517,34 @@ const request = (config, options, axiosClient = axios) => {
19517
19517
  }
19518
19518
  });
19519
19519
  }
19520
+ /**
19521
+ * Applys a discount code and refreshes the lease.
19522
+ * @returns any OK
19523
+ * @throws ApiError
19524
+ */
19525
+ applyDiscountCode({
19526
+ orderId,
19527
+ xTenantSubdomain,
19528
+ requestBody
19529
+ }) {
19530
+ return this.httpRequest.request({
19531
+ method: "POST",
19532
+ url: "/api/public/leases/{orderId}/apply-discount-code",
19533
+ path: {
19534
+ orderId
19535
+ },
19536
+ headers: {
19537
+ x_tenant_subdomain: xTenantSubdomain
19538
+ },
19539
+ body: requestBody,
19540
+ mediaType: "application/json",
19541
+ errors: {
19542
+ 400: `Bad Request`,
19543
+ 422: `Unprocessable Content`,
19544
+ 500: `Internal Server Error`
19545
+ }
19546
+ });
19547
+ }
19520
19548
  /**
19521
19549
  * Gets a Reach.Models.Tenant by its subdomain.
19522
19550
  * @returns any OK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reach-api-sdk",
3
- "version": "1.0.185",
3
+ "version": "1.0.186",
4
4
  "description": "sdk for reach api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -172,6 +172,7 @@ export type { OpportunityRegisterPost } from './models/OpportunityRegisterPost';
172
172
  export { OpportunityRegisterStatus } from './models/OpportunityRegisterStatus';
173
173
  export { OpportunityType } from './models/OpportunityType';
174
174
  export type { Order } from './models/Order';
175
+ export type { OrderApplyDiscountCode } from './models/OrderApplyDiscountCode';
175
176
  export type { OrderDeal } from './models/OrderDeal';
176
177
  export type { OrderEmailCustomerPatch } from './models/OrderEmailCustomerPatch';
177
178
  export type { OrderItem } from './models/OrderItem';
@@ -0,0 +1,22 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+
6
+ /**
7
+ * Apply discount code model.
8
+ */
9
+ export type OrderApplyDiscountCode = {
10
+ /**
11
+ * Gets or sets the tenant Id.
12
+ */
13
+ tenantId: string;
14
+ /**
15
+ * Gets or sets the Id.
16
+ */
17
+ id: string;
18
+ /**
19
+ * Gets or sets the discount code (only used for discount codes).
20
+ */
21
+ discountCode: string;
22
+ };
@@ -3,6 +3,7 @@
3
3
  /* tslint:disable */
4
4
  /* eslint-disable */
5
5
  import type { Order } from '../models/Order';
6
+ import type { OrderApplyDiscountCode } from '../models/OrderApplyDiscountCode';
6
7
  import type { OrderPage } from '../models/OrderPage';
7
8
  import type { OrderPatch } from '../models/OrderPatch';
8
9
  import type { OrderPost } from '../models/OrderPost';
@@ -79,7 +80,7 @@ export class PublicLeasingService {
79
80
  }
80
81
 
81
82
  /**
82
- * Refreshes a lease and updates any changes />.
83
+ * Refreshes a lease and updates any changes.
83
84
  * @returns any OK
84
85
  * @throws ApiError
85
86
  */
@@ -120,6 +121,48 @@ export class PublicLeasingService {
120
121
  });
121
122
  }
122
123
 
124
+ /**
125
+ * Applys a discount code and refreshes the lease.
126
+ * @returns any OK
127
+ * @throws ApiError
128
+ */
129
+ public applyDiscountCode({
130
+ orderId,
131
+ xTenantSubdomain,
132
+ requestBody,
133
+ }: {
134
+ /**
135
+ * The order Id.
136
+ */
137
+ orderId: string;
138
+ /**
139
+ * The tenants subdomain.
140
+ */
141
+ xTenantSubdomain?: string;
142
+ /**
143
+ * The discountcode model.
144
+ */
145
+ requestBody?: OrderApplyDiscountCode;
146
+ }): CancelablePromise<any> {
147
+ return this.httpRequest.request({
148
+ method: 'POST',
149
+ url: '/api/public/leases/{orderId}/apply-discount-code',
150
+ path: {
151
+ orderId: orderId,
152
+ },
153
+ headers: {
154
+ x_tenant_subdomain: xTenantSubdomain,
155
+ },
156
+ body: requestBody,
157
+ mediaType: 'application/json',
158
+ errors: {
159
+ 400: `Bad Request`,
160
+ 422: `Unprocessable Content`,
161
+ 500: `Internal Server Error`,
162
+ },
163
+ });
164
+ }
165
+
123
166
  /**
124
167
  * Gets a Reach.Models.Tenant by its subdomain.
125
168
  * @returns any OK