reach-api-sdk 1.0.69 → 1.0.70
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.
- package/dist/reach-sdk.d.ts +38 -1
- package/dist/reach-sdk.js +24 -0
- package/package.json +1 -1
- package/src/definition/swagger.yaml +103 -0
- package/src/index.ts +2 -0
- package/src/models/OkResult.ts +8 -0
- package/src/models/OrderEmailCustomerPatch.ts +22 -0
- package/src/services/OrdersService.ts +36 -0
package/dist/reach-sdk.d.ts
CHANGED
|
@@ -13429,6 +13429,28 @@ declare class OrderItemsService {
|
|
|
13429
13429
|
}): CancelablePromise<boolean>;
|
|
13430
13430
|
}
|
|
13431
13431
|
|
|
13432
|
+
type OkResult = {
|
|
13433
|
+
statusCode?: number;
|
|
13434
|
+
};
|
|
13435
|
+
|
|
13436
|
+
/**
|
|
13437
|
+
* Post model for scheduled session rescheduling updates.
|
|
13438
|
+
*/
|
|
13439
|
+
type OrderEmailCustomerPatch = {
|
|
13440
|
+
/**
|
|
13441
|
+
* Gets or sets the tenant Id.
|
|
13442
|
+
*/
|
|
13443
|
+
tenantId: string;
|
|
13444
|
+
/**
|
|
13445
|
+
* Gets or sets the Id.
|
|
13446
|
+
*/
|
|
13447
|
+
id: string;
|
|
13448
|
+
/**
|
|
13449
|
+
* Gets or sets the message body.
|
|
13450
|
+
*/
|
|
13451
|
+
message?: string | null;
|
|
13452
|
+
};
|
|
13453
|
+
|
|
13432
13454
|
/**
|
|
13433
13455
|
* Model for order contact updates.
|
|
13434
13456
|
*/
|
|
@@ -13485,6 +13507,21 @@ declare class OrdersService {
|
|
|
13485
13507
|
*/
|
|
13486
13508
|
requestBody?: Array<string>;
|
|
13487
13509
|
}): CancelablePromise<Order>;
|
|
13510
|
+
/**
|
|
13511
|
+
* Emails the order customer />.
|
|
13512
|
+
* @returns OkResult Success
|
|
13513
|
+
* @throws ApiError
|
|
13514
|
+
*/
|
|
13515
|
+
sendEmail({ orderId, requestBody, }: {
|
|
13516
|
+
/**
|
|
13517
|
+
* The order Id.
|
|
13518
|
+
*/
|
|
13519
|
+
orderId: string;
|
|
13520
|
+
/**
|
|
13521
|
+
* The patch model.
|
|
13522
|
+
*/
|
|
13523
|
+
requestBody?: OrderEmailCustomerPatch;
|
|
13524
|
+
}): CancelablePromise<OkResult>;
|
|
13488
13525
|
/**
|
|
13489
13526
|
* Requests a refund for the order.
|
|
13490
13527
|
* @returns Order Success
|
|
@@ -32373,4 +32410,4 @@ type ValidationResultModel = {
|
|
|
32373
32410
|
readonly errors?: Array<ValidationError> | null;
|
|
32374
32411
|
};
|
|
32375
32412
|
|
|
32376
|
-
export { Activity, ActivityService, ActivityType, AdvanceBooking, Amenity, AmenityService, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeesService, AutoCompleteResponseModel, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, ChatService, ChoiceMessage, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateOffer, CreateQuestion, CreateQuestionOption, CreateVenue, Customer, CustomerCancellationOption, CustomerPage, CustomerPatch, CustomerPost, CustomerStats, CustomerType, CustomersService, DatabaseState, DayOfWeek, DescriptionCompletionResponse, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityPatch, GenericActivityPost, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImagePage, ImagePatch, ImagePost, ImagesService, InviteStatus, LeasingService, 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, OpportunityType, Order, OrderItem, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, 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, PaymentPost, PaymentsService, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicHealthCheckService, PublicLeasingService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundStatus, 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, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, 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, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPost, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePost, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityService };
|
|
32413
|
+
export { Activity, ActivityService, ActivityType, AdvanceBooking, Amenity, AmenityService, ApiClient, ApiError, AppUserRole, ApplicationRole, Attendee, AttendeePage, AttendeePatch, AttendeePost, AttendeesService, AutoCompleteResponseModel, BadEnglandReportService, BaseHttpRequest, BookingService, BookingStatus, CancelError, CancelablePromise, ChatService, ChoiceMessage, CompletionChoice, ContactOnConfirmation, Country, CountryService, Course, CourseBookingCutoff, CourseCreate, CoursePage, CoursePatch, CoursePost, CourseSearchSortBy, CourseSession, CourseSessionPage, CourseSessionPatch, CourseSessionPost, CourseSessionSchedule, CourseSessionSchedulePage, CourseSessionSchedulePatch, CourseSessionSchedulePost, CourseSessionSchedulesService, CourseSessionsService, CourseStatus, CoursesService, CreateOffer, CreateQuestion, CreateQuestionOption, CreateVenue, Customer, CustomerCancellationOption, CustomerPage, CustomerPatch, CustomerPost, CustomerStats, CustomerType, CustomersService, DatabaseState, DayOfWeek, DescriptionCompletionResponse, EmailReminderSchedule, EmailReminderSchedulePage, EmailReminderSchedulePatch, EmailReminderSchedulePost, EmailReminderSchedulesService, EmailSetting, EmailSettingPage, EmailSettingPatch, EmailSettingPost, EmailSettingsService, FacilitiesService, Facility, FacilityIndividual, FacilityIndividualPage, FacilityIndividualPatch, FacilityIndividualPost, FacilityIndividualsService, FacilityIndividualsType, FacilityPage, FacilityPatch, FacilityPost, FilestackImageMetaResponseModel, FilestackService, Gender, GenericActivity, GenericActivityPage, GenericActivityPatch, GenericActivityPost, GenericActivityService, GeocodeResponseModel, GeocodeService, GooglePrediction, HereAddressDetails, HereAutoComplete, HereAutocompleteLookupService, HereLookupResults, HereMapDetails, HerePositionDetails, HttpStatusCode, IOpportunity, Image, ImagePage, ImagePatch, ImagePost, ImagesService, InviteStatus, LeasingService, LoqateGeocode, LoqatePlaceResult, LoqatePlacesService, LoqatePrediction, Northeast, NotificationQueue, NotificationQueuePage, NotificationQueuePatch, NotificationQueuePost, NotificationQueueService, NotificationSetting, NotificationSettingPage, NotificationSettingPatch, NotificationSettingPost, NotificationSettingsService, NotificationType, Offer, OfferPage, OfferPatch, OfferPost, OffersService, OkResult, OpenAPI, OpenAPIConfig, OpenactiveFeedIntermediate, OpenactiveFeedIntermediatePage, OpenactiveFeedIntermediatePatch, OpenactiveFeedIntermediatePost, OpenactiveFeedIntermediateService, OpenactiveFeedItem, OpenactiveFeedItemPage, OpenactiveFeedItemPatch, OpenactiveFeedItemPost, OpenactiveFeedItemService, OpportunityRegister, OpportunityRegisterPage, OpportunityRegisterPatch, OpportunityRegisterPost, OpportunityRegisterService, OpportunityType, Order, OrderEmailCustomerPatch, OrderItem, OrderItemPage, OrderItemPatch, OrderItemPost, OrderItemStatus, OrderItemsService, OrderPage, OrderPatch, 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, PaymentPost, PaymentsService, Permission, PermissionPage, PermissionPatch, PermissionPost, PermissionsService, PlaceDetailsResponseModel, PlaceGeometry, PlaceLocation, PlaceResult, PlaceViewport, PlacesService, PlusCode, Prepayment, Programme, ProgrammePage, ProgrammePatch, ProgrammePost, ProgrammesService, PublicBookingService, PublicCoursesService, PublicCustomersService, PublicFacilitiesService, PublicHealthCheckService, PublicLeasingService, PublicOrderTokensService, PublicOrdersService, PublicProgrammesService, PublicScheduledSessionsService, PublicSessionsService, PublicSlotsService, PublicStripeWebhookService, PublicSurveyCompletionLogsService, PublicSurveyQuestionsService, PublicSurveysService, PublicTenantsService, PublicVenuesService, PublicWaitlistActivityService, PublicWaitlistOpportunityService, ReachEntity, ReachError, ReachOperation, RecentOrderActivityReport, RecentOrderActivityReportPage, RecentOrderActivityReportPatch, RecentOrderActivityReportPost, RecentOrderActivityReportService, RefundStatus, 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, StripeAccountPage, StripeAccountPatch, StripeAccountPost, StripeAccountService, StructuredFormatting, Surface, SurfacesService, Survey, SurveyAnswer, SurveyAnswerPage, SurveyAnswerPatch, SurveyAnswerPost, SurveyAnswersService, SurveyCompletionLog, SurveyCompletionLogPage, SurveyCompletionLogPatch, SurveyCompletionLogPost, SurveyCompletionLogService, SurveyCreate, 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, TemplateDetail, TemplateDetailPage, TemplateDetailPatch, TemplateDetailPost, TemplateDetailsService, TemplateDuplicatePost, TemplateFromPost, TemplateOffer, TemplateOfferPage, TemplateOfferPatch, TemplateOfferPost, TemplateOffersService, TemplatePage, TemplatePatch, TemplatePost, TemplateUseResponse, TemplatesService, Tenant, TenantPage, TenantPatch, TenantPost, TenantWebsiteSetting, TenantWebsiteSettingPage, TenantWebsiteSettingPatch, TenantWebsiteSettingPost, TenantWebsiteSettingsService, TenantsService, Timezone, TimezoneService, TotalRevenueReport, TotalRevenueReportPage, TotalRevenueReportPatch, TotalRevenueReportPost, TotalRevenueReportService, UpdateEmailSettings, UpdateOffer, User, UserPage, UserPatch, UserPost, UserRole, UsersService, ValidationError, ValidationResultModel, Venue, VenueBadmintonEnglandReport, VenueBadmintonEnglandReportPage, VenueBadmintonEnglandReportPatch, VenueBadmintonEnglandReportPost, VenueCreate, VenueOpeningHourUpdate, VenueOpeningHours, VenuePage, VenuePatch, VenuePost, VenuesReport, VenuesReportPage, VenuesReportPatch, VenuesReportPost, VenuesReportService, VenuesService, WaitlistActivity, WaitlistActivityPage, WaitlistActivityPatch, WaitlistActivityPost, WaitlistActivityService, WaitlistOpportunity, WaitlistOpportunityPage, WaitlistOpportunityPatch, WaitlistOpportunityPost, WaitlistOpportunityService };
|
package/dist/reach-sdk.js
CHANGED
|
@@ -8523,6 +8523,30 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
8523
8523
|
}
|
|
8524
8524
|
});
|
|
8525
8525
|
}
|
|
8526
|
+
/**
|
|
8527
|
+
* Emails the order customer />.
|
|
8528
|
+
* @returns OkResult Success
|
|
8529
|
+
* @throws ApiError
|
|
8530
|
+
*/
|
|
8531
|
+
sendEmail({
|
|
8532
|
+
orderId,
|
|
8533
|
+
requestBody
|
|
8534
|
+
}) {
|
|
8535
|
+
return this.httpRequest.request({
|
|
8536
|
+
method: "PATCH",
|
|
8537
|
+
url: "/api/orders/{orderId}/send-email",
|
|
8538
|
+
path: {
|
|
8539
|
+
orderId
|
|
8540
|
+
},
|
|
8541
|
+
body: requestBody,
|
|
8542
|
+
mediaType: "application/json",
|
|
8543
|
+
errors: {
|
|
8544
|
+
400: `Bad Request`,
|
|
8545
|
+
422: `Client Error`,
|
|
8546
|
+
500: `Server Error`
|
|
8547
|
+
}
|
|
8548
|
+
});
|
|
8549
|
+
}
|
|
8526
8550
|
/**
|
|
8527
8551
|
* Requests a refund for the order.
|
|
8528
8552
|
* @returns Order Success
|
package/package.json
CHANGED
|
@@ -24587,6 +24587,81 @@ paths:
|
|
|
24587
24587
|
text/json:
|
|
24588
24588
|
schema:
|
|
24589
24589
|
$ref: '#/components/schemas/ValidationResultModel'
|
|
24590
|
+
'/api/orders/{orderId}/send-email':
|
|
24591
|
+
patch:
|
|
24592
|
+
tags:
|
|
24593
|
+
- Orders
|
|
24594
|
+
summary: Emails the order customer />.
|
|
24595
|
+
operationId: SendEmail
|
|
24596
|
+
parameters:
|
|
24597
|
+
- name: orderId
|
|
24598
|
+
in: path
|
|
24599
|
+
description: The order Id.
|
|
24600
|
+
required: true
|
|
24601
|
+
schema:
|
|
24602
|
+
type: string
|
|
24603
|
+
format: uuid
|
|
24604
|
+
requestBody:
|
|
24605
|
+
description: The patch model.
|
|
24606
|
+
content:
|
|
24607
|
+
application/json:
|
|
24608
|
+
schema:
|
|
24609
|
+
$ref: '#/components/schemas/OrderEmailCustomerPatch'
|
|
24610
|
+
text/json:
|
|
24611
|
+
schema:
|
|
24612
|
+
$ref: '#/components/schemas/OrderEmailCustomerPatch'
|
|
24613
|
+
application/*+json:
|
|
24614
|
+
schema:
|
|
24615
|
+
$ref: '#/components/schemas/OrderEmailCustomerPatch'
|
|
24616
|
+
responses:
|
|
24617
|
+
'200':
|
|
24618
|
+
description: Success
|
|
24619
|
+
content:
|
|
24620
|
+
text/plain:
|
|
24621
|
+
schema:
|
|
24622
|
+
$ref: '#/components/schemas/OkResult'
|
|
24623
|
+
application/json:
|
|
24624
|
+
schema:
|
|
24625
|
+
$ref: '#/components/schemas/OkResult'
|
|
24626
|
+
text/json:
|
|
24627
|
+
schema:
|
|
24628
|
+
$ref: '#/components/schemas/OkResult'
|
|
24629
|
+
'400':
|
|
24630
|
+
description: Bad Request
|
|
24631
|
+
content:
|
|
24632
|
+
text/plain:
|
|
24633
|
+
schema:
|
|
24634
|
+
$ref: '#/components/schemas/ReachError'
|
|
24635
|
+
application/json:
|
|
24636
|
+
schema:
|
|
24637
|
+
$ref: '#/components/schemas/ReachError'
|
|
24638
|
+
text/json:
|
|
24639
|
+
schema:
|
|
24640
|
+
$ref: '#/components/schemas/ReachError'
|
|
24641
|
+
'500':
|
|
24642
|
+
description: Server Error
|
|
24643
|
+
content:
|
|
24644
|
+
text/plain:
|
|
24645
|
+
schema:
|
|
24646
|
+
$ref: '#/components/schemas/ReachError'
|
|
24647
|
+
application/json:
|
|
24648
|
+
schema:
|
|
24649
|
+
$ref: '#/components/schemas/ReachError'
|
|
24650
|
+
text/json:
|
|
24651
|
+
schema:
|
|
24652
|
+
$ref: '#/components/schemas/ReachError'
|
|
24653
|
+
'422':
|
|
24654
|
+
description: Client Error
|
|
24655
|
+
content:
|
|
24656
|
+
text/plain:
|
|
24657
|
+
schema:
|
|
24658
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
24659
|
+
application/json:
|
|
24660
|
+
schema:
|
|
24661
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
24662
|
+
text/json:
|
|
24663
|
+
schema:
|
|
24664
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
24590
24665
|
'/api/orders/{id}/refund':
|
|
24591
24666
|
post:
|
|
24592
24667
|
tags:
|
|
@@ -77289,6 +77364,14 @@ components:
|
|
|
77289
77364
|
nullable: true
|
|
77290
77365
|
additionalProperties: false
|
|
77291
77366
|
description: Post model for offer inserts.
|
|
77367
|
+
OkResult:
|
|
77368
|
+
type: object
|
|
77369
|
+
properties:
|
|
77370
|
+
statusCode:
|
|
77371
|
+
type: integer
|
|
77372
|
+
format: int32
|
|
77373
|
+
default: 0
|
|
77374
|
+
additionalProperties: false
|
|
77292
77375
|
OpenactiveFeedIntermediate:
|
|
77293
77376
|
required:
|
|
77294
77377
|
- dateCreated
|
|
@@ -77855,6 +77938,26 @@ components:
|
|
|
77855
77938
|
$ref: '#/components/schemas/CustomerCancellationOption'
|
|
77856
77939
|
additionalProperties: false
|
|
77857
77940
|
description: Represents an organisation within the Reach application.
|
|
77941
|
+
OrderEmailCustomerPatch:
|
|
77942
|
+
required:
|
|
77943
|
+
- id
|
|
77944
|
+
- tenantId
|
|
77945
|
+
type: object
|
|
77946
|
+
properties:
|
|
77947
|
+
tenantId:
|
|
77948
|
+
type: string
|
|
77949
|
+
description: Gets or sets the tenant Id.
|
|
77950
|
+
format: uuid
|
|
77951
|
+
id:
|
|
77952
|
+
type: string
|
|
77953
|
+
description: Gets or sets the Id.
|
|
77954
|
+
format: uuid
|
|
77955
|
+
message:
|
|
77956
|
+
type: string
|
|
77957
|
+
description: Gets or sets the message body.
|
|
77958
|
+
nullable: true
|
|
77959
|
+
additionalProperties: false
|
|
77960
|
+
description: Post model for scheduled session rescheduling updates.
|
|
77858
77961
|
OrderItem:
|
|
77859
77962
|
required:
|
|
77860
77963
|
- dateCreated
|
package/src/index.ts
CHANGED
|
@@ -110,6 +110,7 @@ export type { Offer } from './models/Offer';
|
|
|
110
110
|
export type { OfferPage } from './models/OfferPage';
|
|
111
111
|
export type { OfferPatch } from './models/OfferPatch';
|
|
112
112
|
export type { OfferPost } from './models/OfferPost';
|
|
113
|
+
export type { OkResult } from './models/OkResult';
|
|
113
114
|
export type { OpenactiveFeedIntermediate } from './models/OpenactiveFeedIntermediate';
|
|
114
115
|
export type { OpenactiveFeedIntermediatePage } from './models/OpenactiveFeedIntermediatePage';
|
|
115
116
|
export type { OpenactiveFeedIntermediatePatch } from './models/OpenactiveFeedIntermediatePatch';
|
|
@@ -124,6 +125,7 @@ export type { OpportunityRegisterPatch } from './models/OpportunityRegisterPatch
|
|
|
124
125
|
export type { OpportunityRegisterPost } from './models/OpportunityRegisterPost';
|
|
125
126
|
export { OpportunityType } from './models/OpportunityType';
|
|
126
127
|
export type { Order } from './models/Order';
|
|
128
|
+
export type { OrderEmailCustomerPatch } from './models/OrderEmailCustomerPatch';
|
|
127
129
|
export type { OrderItem } from './models/OrderItem';
|
|
128
130
|
export type { OrderItemPage } from './models/OrderItemPage';
|
|
129
131
|
export type { OrderItemPatch } from './models/OrderItemPatch';
|
|
@@ -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
|
+
* Post model for scheduled session rescheduling updates.
|
|
8
|
+
*/
|
|
9
|
+
export type OrderEmailCustomerPatch = {
|
|
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 message body.
|
|
20
|
+
*/
|
|
21
|
+
message?: string | null;
|
|
22
|
+
};
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
|
+
import type { OkResult } from '../models/OkResult';
|
|
5
6
|
import type { Order } from '../models/Order';
|
|
7
|
+
import type { OrderEmailCustomerPatch } from '../models/OrderEmailCustomerPatch';
|
|
6
8
|
import type { OrderPage } from '../models/OrderPage';
|
|
7
9
|
import type { OrderPatch } from '../models/OrderPatch';
|
|
8
10
|
import type { OrderPost } from '../models/OrderPost';
|
|
@@ -50,6 +52,40 @@ export class OrdersService {
|
|
|
50
52
|
});
|
|
51
53
|
}
|
|
52
54
|
|
|
55
|
+
/**
|
|
56
|
+
* Emails the order customer />.
|
|
57
|
+
* @returns OkResult Success
|
|
58
|
+
* @throws ApiError
|
|
59
|
+
*/
|
|
60
|
+
public sendEmail({
|
|
61
|
+
orderId,
|
|
62
|
+
requestBody,
|
|
63
|
+
}: {
|
|
64
|
+
/**
|
|
65
|
+
* The order Id.
|
|
66
|
+
*/
|
|
67
|
+
orderId: string;
|
|
68
|
+
/**
|
|
69
|
+
* The patch model.
|
|
70
|
+
*/
|
|
71
|
+
requestBody?: OrderEmailCustomerPatch;
|
|
72
|
+
}): CancelablePromise<OkResult> {
|
|
73
|
+
return this.httpRequest.request({
|
|
74
|
+
method: 'PATCH',
|
|
75
|
+
url: '/api/orders/{orderId}/send-email',
|
|
76
|
+
path: {
|
|
77
|
+
orderId: orderId,
|
|
78
|
+
},
|
|
79
|
+
body: requestBody,
|
|
80
|
+
mediaType: 'application/json',
|
|
81
|
+
errors: {
|
|
82
|
+
400: `Bad Request`,
|
|
83
|
+
422: `Client Error`,
|
|
84
|
+
500: `Server Error`,
|
|
85
|
+
},
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
53
89
|
/**
|
|
54
90
|
* Requests a refund for the order.
|
|
55
91
|
* @returns Order Success
|