| GET | /v1/SalesPackage |
|---|
"use strict";
export class SalesPackage {
/** @param {{ID?:number,PackageName?:string,HashingPower?:string,ControllerType?:number,ControllerQuantity?:number,MinerType?:number,MinerQuantity?:number,Price?:number,Description?:string,ImageURL?:string,SpecialSaleText?:string,ShipPrice?:number,DiscountPrice?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
ID;
/** @type {string} */
PackageName;
/** @type {string} */
HashingPower;
/** @type {number} */
ControllerType;
/** @type {number} */
ControllerQuantity;
/** @type {number} */
MinerType;
/** @type {number} */
MinerQuantity;
/** @type {number} */
Price;
/** @type {string} */
Description;
/** @type {string} */
ImageURL;
/** @type {string} */
SpecialSaleText;
/** @type {number} */
ShipPrice;
/** @type {number} */
DiscountPrice;
}
export class SalesPackageResponse {
/** @param {{ResponseStatus?:ResponseStatus,SalesPackage?:SalesPackage[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {SalesPackage[]} */
SalesPackage = [];
}
export class SalesPackageRequest {
/** @param {{SalesPackage?:SalesPackage[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {SalesPackage[]} */
SalesPackage = [];
}
JavaScript SalesPackageRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
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/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}
]
}