import { Observable } from 'rxjs'; import { AgreementInterface, AttachmentInterface, CommonFieldInterface, ConfigInterface, CustomFieldInterface, DurationInterface, FieldInterface, GetOrderRecipientDetailsResponseInterface, GetStatusCountsRequestFiltersInterface, LineItemInterface, ListTagsRequestFiltersInterface, OrderInterface, ProductInterface, RetailSubscriptionGroupInterface, SalesOrderProjectionFilterInterface, UserInterface } from './_internal/interfaces'; import { ListSalesOrderRequestFilters, ListSalesOrderRequestSortOption, ListTagsResponse } from './_internal/objects/api'; import { CommonField, CustomField, Order, Package, ProductActivation } from './_internal/objects/sales-orders'; import { HostService } from './_generated/host.service'; import { Origin, Status } from './_internal/enums'; import { SalesOrdersApiService } from './_internal/sales-orders.api.service'; import { FlattenedValidateLineItemsResponse } from "./interfaces"; import * as i0 from "@angular/core"; export declare class PagedResponse { results: T[]; nextCursor: string; hasMore?: boolean; totalResults?: number; constructor(results: T[], nextCursor: string, hasMore: boolean, totalResults: number); } export declare class SalesOrdersService { private readonly api; private readonly hostService; constructor(api: SalesOrdersApiService, hostService: HostService); create(salespersonId: string, partnerId: string, businessId: string, marketId: string, opportunityIds: string[], requestedActivation: Date, notes: string, packages: Package[], products: ProductInterface[], customFields: CustomField[], commonFields: CommonField[], origin: Origin | undefined, attachments: AttachmentInterface[], extraFields?: FieldInterface[], duration?: DurationInterface, quoteId?: string, tags?: string[]): Observable; createOrder(o: OrderInterface): Observable; get(orderId: string, businessId: string, projectionFilter?: SalesOrderProjectionFilterInterface): Observable; getWithCalculatedTaxes(orderId: string, businessId: string): Observable; duplicate(orderId: string, businessId: string): Observable; list(partnerId: string, filters: ListSalesOrderRequestFilters, sortOption: ListSalesOrderRequestSortOption, cursor: string, pageSize: number): Observable>; approve(businessId: string, orderId: string): Observable; decline(businessId: string, orderId: string, declinedReason: string, declinedReasonIds?: string[]): Observable; archive(businessId: string, orderId: string): Observable; activate(orderId: string, businessId: string, customFields: CustomField[], commonFields: CommonField[], extraFields?: FieldInterface[]): Observable; check(partnerId: string, businessId: string, productId: string, editionId: string, statuses?: Status[]): Observable; getConfig(partnerId: string, marketId: string): Observable; updateConfig(config: ConfigInterface): Observable; deleteConfig(partnerId: string, marketId: string): Observable; createAndSendToCustomer(order: OrderInterface, userID: string, offerExpiry?: Date): Observable; customerCreate(order: OrderInterface): Observable; createDraft(order: OrderInterface): Observable; customerApproveSalesOrder(orderId: string, businessId: string, agreements?: AgreementInterface[]): Observable; getUsers(orderId: string, businessId: string): Observable<{ [key: string]: UserInterface; }>; updateAnswers(orderId: string, businessId: string, customFields: CustomFieldInterface[], commonFields: CommonFieldInterface[], extraFields: FieldInterface[]): Observable; updateTags(orderId: string, businessId: string, tags: string[]): Observable; updateSalesperson(orderId: string, businessId: string, salespersonId: string): Observable; updateNotes(orderId: string, businessId: string, notes: string): Observable; updateRequestedActivation(orderId: string, businessId: string, requestedActivation: Date): Observable; updateContractDuration(orderId: string, businessId: string, contractDuration: DurationInterface): Observable; updateEnforceContractTerm(orderId: string, businessId: string, enforceContractTerm: boolean): Observable; updateCurrentRevenue(orderId: string, businessId: string, lineItems: LineItemInterface[]): Observable; updateLineItems(orderId: string, businessId: string, lineItems: LineItemInterface[]): Observable; listTags(partnerId: string, filters: ListTagsRequestFiltersInterface): Observable; submitDraftSalesOrder(orderId: string, businessId: string, customFields: CustomFieldInterface[], commonFields: CommonFieldInterface[], extraFields: FieldInterface[]): Observable; submitDraftForCustomerApproval(orderId: string, businessId: string, userId: string, customFields: CustomFieldInterface[], commonFields: CommonFieldInterface[], extraFields: FieldInterface[], offerExpiry?: Date): Observable; sendExistingOrderToCustomerForApproval(orderId: string, businessId: string, userId: string, offerExpiry?: Date, orderIsSmbPayable?: boolean): Observable; chargeOrder(orderId: string, businessId: string): Observable; ignoreProductActivationError(orderId: string, businessId: string, productActivationUniqueId: string): Observable; ignoreAllProductActivationErrors(orderId: string, businessId: string): Observable; cancelOrder(orderId: string, businessId: string, notes: string): Observable; requestCancellation(orderId: string, businessId: string, notes: string): Observable; approveCancellation(orderId: string, businessId: string): Observable; declineCancellation(orderId: string, businessId: string, notes: string): Observable; previewOrderActivations(orderId: string, businessId: string): Observable; scheduleActivation(orderId: string, businessId: string, customFields: CustomField[], commonFields: CommonField[], extraFields?: FieldInterface[]): Observable; convertToDraft(orderId: string, businessId: string): Observable; getStatusCounts(partnerId: string, filters: GetStatusCountsRequestFiltersInterface): Observable<{ [key: string]: number; }>; createInvoice(orderId: string, businessId: string): Observable; createAndActivateOrder(order: OrderInterface): Observable; updateCustomerNotes(orderId: string, businessId: string, customerNotes: string): Observable; updateAttachments(orderId: string, businessId: string, attachments: AttachmentInterface[]): Observable; updateCustomerAttachments(orderId: string, businessId: string, attachments: AttachmentInterface[]): Observable; updatePaymentMethodToken(orderId: string, businessId: string, paymentMethodToken: string): Observable; updateCustomerRecipientUserId(orderId: string, businessId: string, customerRecipientUserId: string): Observable; getUploadFileUrl(): string; leaseToAutomations(businessId: string, orderId: string, customFields: CustomField[], commonFields: CommonField[], extraFields: FieldInterface[], actionType: string, declinedReason?: string, declinedReasonIds?: string[]): Observable; createLeasedToAutomationsSalesOrder(order: OrderInterface): Observable; getOrderRecipientDetails(orderToken: string): Observable; validateLineItems(businessId: string, orderId: string): Observable; canOrderBeWholesaleBilled(businessId: string, orderId: string): Observable; deleteSalesOrder(orderId: string, businessId: string): Observable; generateRetailSubscriptionGroupForOrder(orderId: string, businessId: string, retailSubscriptionGroup: RetailSubscriptionGroupInterface): Observable; updateRetailSubscriptionGroupForOrder(orderId: string, businessId: string, retailSubscriptionGroupId: string, retailSubscriptionGroup: RetailSubscriptionGroupInterface): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }