| GET | /v1/SalesPackage |
|---|
export class SalesPackage
{
public ID: number;
public PackageName: string;
public HashingPower: string;
public ControllerType: number;
public ControllerQuantity: number;
public MinerType: number;
public MinerQuantity: number;
public Price: number;
public Description: string;
public ImageURL: string;
public SpecialSaleText: string;
public ShipPrice: number;
public DiscountPrice: number;
public constructor(init?: Partial<SalesPackage>) { (Object as any).assign(this, init); }
}
export class SalesPackageResponse
{
public ResponseStatus: ResponseStatus;
public SalesPackage: SalesPackage[] = [];
public constructor(init?: Partial<SalesPackageResponse>) { (Object as any).assign(this, init); }
}
export class SalesPackageRequest
{
public SalesPackage: SalesPackage[] = [];
public constructor(init?: Partial<SalesPackageRequest>) { (Object as any).assign(this, init); }
}
TypeScript SalesPackageRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/SalesPackage HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"SalesPackage":[{"ID":0,"PackageName":"String","HashingPower":"String","ControllerType":0,"ControllerQuantity":0,"MinerType":0,"MinerQuantity":0,"Price":0,"Description":"String","ImageURL":"String","SpecialSaleText":"String","ShipPrice":0,"DiscountPrice":0}]}