C# 클래스 cs_api_dotnet.CaseStackApi

API Access into CaseStack Supply Chain Management Suite. For more infor please visit http://docs.casestack.io/
파일 보기 프로젝트 열기: Propak/cs-api-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetRestClient ( ) : RestSharp.RestClient

메소드 상세

Authenticate() 공개 메소드

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
리턴 void

GetAddress() 공개 메소드

Get Address by ID
public GetAddress ( string addressId ) : Address
addressId string Address ID
리턴 Address

GetCarrier() 공개 메소드

Get Carrier by ID
public GetCarrier ( string carrierId ) : Carrier
carrierId string Carrier ID
리턴 Carrier

GetCustomFields() 공개 메소드

Get Custom Fields for an object type
public GetCustomFields ( string parent ) : CustomFields
parent string
리턴 CustomFields

GetCustomer() 공개 메소드

Get Customer by ID
public GetCustomer ( string customerId ) : Customer
customerId string Customer ID
리턴 Customer

GetShipment() 공개 메소드

Get Shipment by ID
public GetShipment ( int shipmentId ) : Shipment
shipmentId int Shipment ID
리턴 Shipment

LockShipment() 공개 메소드

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
리턴 void

SetShipmentStatus() 공개 메소드

Set status of shipment
public SetShipmentStatus ( int shipmentId, ShipmentStatus status ) : void
shipmentId int Shipment ID
status ShipmentStatus Shipment Status
리턴 void

UseProduction() 공개 메소드

Toggle between production or test environments
public UseProduction ( System.Boolean production ) : void
production System.Boolean Use production environment
리턴 void