![]() |
LicenseSpring Management .Net SDK 1.10.1
Easily add Software Licensing to your application
|
CustomerService interface. More...
Public Member Functions | |
void | AddLabelToCustomer (uint labelId, ulong customerId) |
Adds a label to customer. | |
Customer | CreateCustomer (CreateCustomerDto dto) |
Creates a new customer. | |
CustomerAccount | CreateCustomerAccount (CustomerAccount account) |
Creates a customer account if requesting manager has access permissions to it. | |
CustomerLabel | CreateCustomerLabel (CustomerLabel label) |
Creates a customer label. | |
string | DeleteCustomer (ulong customerId) |
Deletes the customer. | |
void | DeleteCustomerAccount (CustomerAccount account) |
Deletes a customer account. | |
void | DeleteCustomerLabel (CustomerLabel label) |
Deletes a customer label. | |
Customer | EditCustomer (Customer customer) |
Updates information about a customer. | |
CustomerAccount | EditCustomerAccount (CustomerAccount account) |
Updates a customer account if requesting manager has access permissions to it. | |
CustomerLabel | EditCustomerLabel (CustomerLabel label) |
Updates information about a customer label. | |
CustomerAccount[] | ListCustomerAccounts (BaseListDto dto, out uint count) |
Shows all customer accounts the requesting manager has access permissions to. | |
CustomerLabel[] | ListCustomerLabels (BaseListDto dto, out uint count) |
Returns all customer labels. | |
Customer[] | ListCustomers (ListCustomersRequestDto dto, out uint count) |
Returns all customers. | |
string | MergeCustomers (ulong customerId, ulong customerToMergeId) |
Merges once customer into another if requesting manager has access permissions to it. | |
void | RemoveLabelFromCustomer (CustomerLabel label) |
Removes a label from customer. | |
![]() | |
void | Initialize (ManagementConfiguration configuration) |
Initialize management service with given configuration. | |
bool | IsInitialized () |
Check whether management service has been initialized. | |
bool | IsOnline (bool throwExceptions=false) |
Helper method, it checks connection to the LicenseSpring platform. | |
CustomerService interface.
void LicenseSpring.ICustomerService.AddLabelToCustomer | ( | uint | labelId, |
ulong | customerId | ||
) |
Adds a label to customer.
labelId | Id of the label to add. |
customerId | Id of the customer to be updated. |
Implemented in LicenseSpring.CustomerService.
Customer LicenseSpring.ICustomerService.CreateCustomer | ( | CreateCustomerDto | dto | ) |
Creates a new customer.
dto | Customer dto with information about new customer. |
Implemented in LicenseSpring.CustomerService.
CustomerAccount LicenseSpring.ICustomerService.CreateCustomerAccount | ( | CustomerAccount | account | ) |
Creates a customer account if requesting manager has access permissions to it.
account | Customer account to create. The Code field is required and must be unique. |
Implemented in LicenseSpring.CustomerService.
CustomerLabel LicenseSpring.ICustomerService.CreateCustomerLabel | ( | CustomerLabel | label | ) |
Creates a customer label.
label | Label to create. |
Implemented in LicenseSpring.CustomerService.
string LicenseSpring.ICustomerService.DeleteCustomer | ( | ulong | customerId | ) |
Deletes the customer.
customerId | The Id of the customer that will be deleted. |
Implemented in LicenseSpring.CustomerService.
void LicenseSpring.ICustomerService.DeleteCustomerAccount | ( | CustomerAccount | account | ) |
Deletes a customer account.
account | Customer account to delete. The Id field must be set. |
Implemented in LicenseSpring.CustomerService.
void LicenseSpring.ICustomerService.DeleteCustomerLabel | ( | CustomerLabel | label | ) |
Deletes a customer label.
label | Label to delete. |
Implemented in LicenseSpring.CustomerService.
Updates information about a customer.
customer | Customer that was updated. |
Implemented in LicenseSpring.CustomerService.
CustomerAccount LicenseSpring.ICustomerService.EditCustomerAccount | ( | CustomerAccount | account | ) |
Updates a customer account if requesting manager has access permissions to it.
account | Customer account with updated fields. The Id field must be set; if the Code field is set, it must be unique. |
Implemented in LicenseSpring.CustomerService.
CustomerLabel LicenseSpring.ICustomerService.EditCustomerLabel | ( | CustomerLabel | label | ) |
Updates information about a customer label.
label | Label that was updated. |
Implemented in LicenseSpring.CustomerService.
CustomerAccount[] LicenseSpring.ICustomerService.ListCustomerAccounts | ( | BaseListDto | dto, |
out uint | count | ||
) |
Shows all customer accounts the requesting manager has access permissions to.
dto | Data transfer object that is used for searching through all customer accounts. |
count | Quantity of customers, use for iteration of the result pages. |
Implemented in LicenseSpring.CustomerService.
CustomerLabel[] LicenseSpring.ICustomerService.ListCustomerLabels | ( | BaseListDto | dto, |
out uint | count | ||
) |
Returns all customer labels.
dto | Data transfer object that is used for searching through all customer labels. |
count | Quantity of customers, use for iteration of the result pages. |
Implemented in LicenseSpring.CustomerService.
Customer[] LicenseSpring.ICustomerService.ListCustomers | ( | ListCustomersRequestDto | dto, |
out uint | count | ||
) |
Returns all customers.
dto | Data transfer object that is used for searching through all customers. |
count | Quantity of customers, use for iteration of the result pages. |
Implemented in LicenseSpring.CustomerService.
string LicenseSpring.ICustomerService.MergeCustomers | ( | ulong | customerId, |
ulong | customerToMergeId | ||
) |
Merges once customer into another if requesting manager has access permissions to it.
Updates customer on all orders from the customer to merge to the customer provided in the first parameter and deletes the customer to merge.
customerId | The Id of the customer that will be merged and saved. |
customerToMergeId | The Id of the customer that will be merged and deleted. |
Implemented in LicenseSpring.CustomerService.
void LicenseSpring.ICustomerService.RemoveLabelFromCustomer | ( | CustomerLabel | label | ) |
Removes a label from customer.
label | Label to be removed. |
Implemented in LicenseSpring.CustomerService.