Options
All
  • Public
  • Public/Protected
  • All
Menu

This event is sent on a change in order status and or relevant fields, meaning it will be sent even if there is no status change but a field related to the current status has changed.

Hierarchy

Index

Constructors

Properties

_eid: string

Event unique id

_type: EventType

Event type

_v: string

Event format version / API version

appointmentEnd: Date

Installation appointment time end

appointmentStart: Date

Installation appointment time start

customer: Customer
customerBilling: CustomerBilling

The order billing address

documents: OrderDocumentation[]

Documentation for order completion and/or other order related events.

Not that, one documentation type can be have several files present.

extPartnerId: string

The partner-side internal order id (mapped from job.partner_eid__c).

externalId: string

The order external id, if set by the API integrator

finishTimestamp: Date

The time installer finished working on a order.

remarks

Keep in mind that this timestamp might differ from the actual appointment as it represents the time when the installer has submitted all the documentation regarding the order, not the exact time the actual work has been finished.

invoicingExternalId: string

The order invoicing external id, if set by the API integrator

opportunityId?: string

The opportunity (deal) the job belongs to. The opportunity groups the jobs of an order and carries the order-level arrangement with the brand, so it is the level at which "what kind of business is this" is decided — a Mehrplatz opportunity is a multi-site project, whatever the single job happens to look like.

Optional because a payload built before the relation was loaded has neither, and because not every job need have an opportunity. Prefer the id for anything that must stay stable; the name is free text that S4C read.

remark

Since v1.4.0

opportunityName?: string
orderId: string

The order ID

orderNumber: string

The order number used for communication (email, protocols, etc.)

orderType: OrderType
products: default[]

Products included in the order.

projectId: string

The ID of the project this order belongs to

remark

Since v1.1.0

projectName: string

The name of the project this order belongs to

remark

Since v1.1.0

serviceTotalMinutes: number

Total scheduled service time for this order in minutes.

services: default[]

Services included in the order.

shippingAddress: Address

The order installation address

startTimestamp: Date

The time installer started working on an order.

status: OrderStatus
substatuses: JobSubstatus[]

The substatuses of the Job. See JobSubstatus for why each entry is an object rather than a string.

remark

Since v1.2.0

Generated using TypeDoc