Method | Description | |
---|---|---|
AddCustomCharge ( |
Add a customer charge for a customer
|
|
AddItem ( string customerCode, string itemCode, int quantityToAdd ) : |
Add an item and set the quantity for a customer Note: if no quantity is specified then it will increment by 1 by default
|
|
CancelSubscription ( string customerCode ) : bool |
Cancel a customer's subscription
|
|
CreateCustomer ( |
Create a new customer based on the passed in CustomerPost object
|
|
GetCustomer ( string customerCode ) : |
Get a particular customer based on a passed in customer code and your product code
|
|
GetCustomers ( ) : List |
Get a list of all customers for your product code
|
|
GetSubscriptionPlans ( ) : List |
Get all of the subscription plans for your product code
|
|
RemoveItem ( string customerCode, string itemCode, int quantityToRemove ) : |
Remove an item and set the quantity for a customer Note: if no quantity is specified then it will decrement by 1 by default
|
|
SetItem ( string customerCode, ProductItemCode itemCode, int quantityToSet ) : |
Set an item count to a specific quantity
|
|
UpdateCustomer ( |
Update a customer
|
|
UpdateCustomerAndSubscription ( |
Update a customer and their subscription
|
|
UpdateSubscription ( |
Update a customer's subscription
|
|
UpdateSubscriptionPartial ( |
Update a customer's subscription with only partial subscription information
|
|
UpdateSubscriptionPlanOnly ( string customerCode, PlanCodeEnum newPlan ) : |
Update a customer's subscription plan
|
Method | Description | |
---|---|---|
CheddarGetter ( ) : System |
The constructor will set the username and password for the CheddarGetter account
|
|
formatMonth ( string ccMonth ) : string |
Will format the string into a acceptable month date format for CG
|
|
getCharges ( System.Xml.Linq.XElement charges ) : List |
Get a list of charges based on a charge XML node in a XElement object
|
|
getCustomerList ( System.Xml.Linq.XDocument customersXML ) : |
Get the customer list and any associated CG errors from a XDocument (customer XML)
|
|
getInvoiceList ( System.Xml.Linq.XElement invoices ) : List |
Get a list of invoices based on an invoice XML node in a XElement object
|
|
getPlanItemsList ( System.Xml.Linq.XElement items ) : List |
Get a list of plan items based on an items XML node in a XElement object
|
|
getRequest ( string urlBase, string urlPath ) : string |
Handles the GET requests
|
|
getSubscriptionItems ( System.Xml.Linq.XElement item ) : List |
Get a list of SubscriptionItem objects based on an item XML node in a XElement object
|
|
getSubscriptionList ( System.Xml.Linq.XElement subscriptions ) : List |
Get a list of subscriptions based on a subscriptions XML node in a XElement object
|
|
getSubscriptionPlanList ( System.Xml.Linq.XElement plans ) : List |
Get a list of subscription plans based on a plan XML node in a XElement object
|
|
postRequest ( string urlBase, string urlPath, string postParams ) : string |
Handles the POST request
|
public static AddCustomCharge ( |
||
customCharge | A CustomerChargePost object with the customer charge and customer code | |
return |
public static AddItem ( string customerCode, string itemCode, int quantityToAdd ) : |
||
customerCode | string | The customer's code to associate the item with |
itemCode | string | The item code of the item which we are adding |
quantityToAdd | int | The number of units to add of this item |
return |
public static CancelSubscription ( string customerCode ) : bool | ||
customerCode | string | The customer code of the customer to cancel |
return | bool |
public static CreateCustomer ( |
||
customer | A CustomerPost object that represents a customer to be created | |
return |
public static GetCustomer ( string customerCode ) : |
||
customerCode | string | A string representing a customer's code in CG |
return |
public static GetSubscriptionPlans ( ) : List |
||
return | List |
public static RemoveItem ( string customerCode, string itemCode, int quantityToRemove ) : |
||
customerCode | string | The customer's code to associate the item with |
itemCode | string | The item code of the item which we are removing |
quantityToRemove | int | The number of units to remove of this item |
return |
public static SetItem ( string customerCode, ProductItemCode itemCode, int quantityToSet ) : |
||
customerCode | string | The customer's code of the customer that will be updated |
itemCode | ProductItemCode | The code of the item that will be updated |
quantityToSet | int | The quantity to set for the item |
return |
public static UpdateCustomer ( |
||
customer | A CustomerPost object that represents the changes to be updated | |
return |
public static UpdateCustomerAndSubscription ( |
||
customer | A CustomerPost object that represents the changes to be updated | |
return |
public static UpdateSubscription ( |
||
customer | A CustomerPost object with the subscription details to update | |
return |
public static UpdateSubscriptionPartial ( |
||
customer | A CustomerPost object with the changes that are to be updated | |
return |
public static UpdateSubscriptionPlanOnly ( string customerCode, PlanCodeEnum newPlan ) : |
||
customerCode | string | The customer's code of the customer to be updated |
newPlan | PlanCodeEnum | The plan to set the customer to |
return |