C# Class cs_api_dotnet.CaseStackApi

API Access into CaseStack Supply Chain Management Suite. For more infor please visit http://docs.casestack.io/
Afficher le fichier Open project: Propak/cs-api-dotnet Class Usage Examples

Méthodes publiques

Méthode Description
Authenticate ( String key, String companyId ) : void

Authenticate API Access. Your credentials are available under the 'Settings > CaseStack API'.

GetAddress ( string addressId ) : Address

Get Address by ID

GetCarrier ( string carrierId ) : Carrier

Get Carrier by ID

GetCustomFields ( string parent ) : CustomFields

Get Custom Fields for an object type

GetCustomer ( string customerId ) : Customer

Get Customer by ID

GetShipment ( int shipmentId ) : Shipment

Get Shipment by ID

LockShipment ( int shipmentId, bool isLocked ) : void

Lock a shipment by ID, makes it read-only from the TMS. The shipment can still be updated via the API

SetShipmentStatus ( int shipmentId, ShipmentStatus status ) : void

Set status of shipment

UseProduction ( System.Boolean production ) : void

Toggle between production or test environments

Private Methods

Méthode Description
GetRestClient ( ) : RestSharp.RestClient

Method Details

Authenticate() public méthode

Authenticate API Access. Your credentials are available under the 'Settings > CaseStack API'.
public Authenticate ( String key, String companyId ) : void
key String Your API Key
companyId String Your Company ID
Résultat void

GetAddress() public méthode

Get Address by ID
public GetAddress ( string addressId ) : Address
addressId string Address ID
Résultat Address

GetCarrier() public méthode

Get Carrier by ID
public GetCarrier ( string carrierId ) : Carrier
carrierId string Carrier ID
Résultat Carrier

GetCustomFields() public méthode

Get Custom Fields for an object type
public GetCustomFields ( string parent ) : CustomFields
parent string
Résultat CustomFields

GetCustomer() public méthode

Get Customer by ID
public GetCustomer ( string customerId ) : Customer
customerId string Customer ID
Résultat Customer

GetShipment() public méthode

Get Shipment by ID
public GetShipment ( int shipmentId ) : Shipment
shipmentId int Shipment ID
Résultat Shipment

LockShipment() public méthode

Lock a shipment by ID, makes it read-only from the TMS. The shipment can still be updated via the API
public LockShipment ( int shipmentId, bool isLocked ) : void
shipmentId int Shipment ID
isLocked bool Lock or Unlock
Résultat void

SetShipmentStatus() public méthode

Set status of shipment
public SetShipmentStatus ( int shipmentId, ShipmentStatus status ) : void
shipmentId int Shipment ID
status ShipmentStatus Shipment Status
Résultat void

UseProduction() public méthode

Toggle between production or test environments
public UseProduction ( System.Boolean production ) : void
production System.Boolean Use production environment
Résultat void