public final class Order extends Object
WebhookOrder
Constructor and Description |
---|
Order(Long id,
List<BackOfficeOrderItem> backOfficeOrderItems,
BackOfficeCustomer customer,
Boolean hasActiveLicenses,
ZonedDateTime createdAt,
ZonedDateTime updatedAt,
String clientOrderId,
com.licensespring.model.order.OrderType type,
Boolean isTest,
Boolean isTrial,
String downloadId,
String language,
String campaignParams,
Integer company,
com.google.gson.JsonElement metadata) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<BackOfficeOrderItem> |
getBackOfficeOrderItems()
List of order items that were made with this order.
|
String |
getCampaignParams()
e.g.
|
String |
getClientOrderId()
This is the same field as
WebhookOrder.getId() . |
Integer |
getCompany()
Leftover for legacy reasons.
|
ZonedDateTime |
getCreatedAt()
The time when this order was created.
|
BackOfficeCustomer |
getCustomer()
Customer who placed the order.
|
String |
getDownloadId()
Used for FastSpring integration.
|
Boolean |
getHasActiveLicenses()
Boolean value indicating does user have active licenses.
|
Long |
getId()
Internal LicenseSpring ID of the order - not to be confused with
WebhookOrder.getId() ,
which is the internal/CRM id of the customer. |
Boolean |
getIsTest()
Indicate whether order is test or not.
|
Boolean |
getIsTrial()
Indicates if items in this order will have licenses that allow trial period.
|
String |
getLanguage()
Language used in the order.
|
com.google.gson.JsonElement |
getMetadata()
A JSON element containing additional metadata information.
|
com.licensespring.model.order.OrderType |
getType()
Only valid Order type is NORMAL.
|
ZonedDateTime |
getUpdatedAt()
The time when this order was updated.
|
int |
hashCode() |
String |
toString() |
public Order(Long id, List<BackOfficeOrderItem> backOfficeOrderItems, BackOfficeCustomer customer, Boolean hasActiveLicenses, ZonedDateTime createdAt, ZonedDateTime updatedAt, String clientOrderId, com.licensespring.model.order.OrderType type, Boolean isTest, Boolean isTrial, String downloadId, String language, String campaignParams, Integer company, com.google.gson.JsonElement metadata)
public Long getId()
WebhookOrder.getId()
,
which is the internal/CRM id of the customer.public List<BackOfficeOrderItem> getBackOfficeOrderItems()
OrderService.getOrder(Long)
.public BackOfficeCustomer getCustomer()
public Boolean getHasActiveLicenses()
public ZonedDateTime getCreatedAt()
public ZonedDateTime getUpdatedAt()
public String getClientOrderId()
WebhookOrder.getId()
. The API calls this "store_id" - however
it is not clear enough, and we renamed it to customOrderId, as it's the CRM/purchase order id
from the client implementing the systempublic com.licensespring.model.order.OrderType getType()
public Boolean getIsTest()
public Boolean getIsTrial()
public String getDownloadId()
public String getLanguage()
public String getCampaignParams()
public Integer getCompany()
getCustomer()
public com.google.gson.JsonElement getMetadata()
Copyright © 2025 Cense Data Inc.. All rights reserved.