![]() |
LicenseSpring Management .Net SDK 1.10.1
Easily add Software Licensing to your application
|
Implements ICustomerService
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.Updates customer on all orders from the customer to merge to the customer provided in the first parameter and deletes the customer to merge. | |||||||
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.
| |||||||
Implements ICustomerService
interface.
void LicenseSpring.CustomerService.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. |
Implements LicenseSpring.ICustomerService.
Customer LicenseSpring.CustomerService.CreateCustomer | ( | CreateCustomerDto | dto | ) |
Creates a new customer.
dto | Customer dto with information about new customer. |
Implements LicenseSpring.ICustomerService.
CustomerAccount LicenseSpring.CustomerService.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. |
Implements LicenseSpring.ICustomerService.
CustomerLabel LicenseSpring.CustomerService.CreateCustomerLabel | ( | CustomerLabel | label | ) |
Creates a customer label.
label | Label to create. |
Implements LicenseSpring.ICustomerService.
string LicenseSpring.CustomerService.DeleteCustomer | ( | ulong | customerId | ) |
Deletes the customer.
customerId | The Id of the customer that will be deleted. |
Implements LicenseSpring.ICustomerService.
void LicenseSpring.CustomerService.DeleteCustomerAccount | ( | CustomerAccount | account | ) |
Deletes a customer account.
account | Customer account to delete. The Id field must be set. |
Implements LicenseSpring.ICustomerService.
void LicenseSpring.CustomerService.DeleteCustomerLabel | ( | CustomerLabel | label | ) |
Deletes a customer label.
label | Label to delete. |
Implements LicenseSpring.ICustomerService.
Updates information about a customer.
customer | Customer that was updated. |
Implements LicenseSpring.ICustomerService.
CustomerAccount LicenseSpring.CustomerService.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. |
Implements LicenseSpring.ICustomerService.
CustomerLabel LicenseSpring.CustomerService.EditCustomerLabel | ( | CustomerLabel | label | ) |
Updates information about a customer label.
label | Label that was updated. |
Implements LicenseSpring.ICustomerService.
CustomerAccount[] LicenseSpring.CustomerService.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. |
Implements LicenseSpring.ICustomerService.
CustomerLabel[] LicenseSpring.CustomerService.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. |
Implements LicenseSpring.ICustomerService.
Customer[] LicenseSpring.CustomerService.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. |
Implements LicenseSpring.ICustomerService.
string LicenseSpring.CustomerService.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.
Implements LicenseSpring.ICustomerService.
void LicenseSpring.CustomerService.RemoveLabelFromCustomer | ( | CustomerLabel | label | ) |
Removes a label from customer.
label | Label to be removed. |
Implements LicenseSpring.ICustomerService.