@tradecafe/offer-service-sdk 0.0.52 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +4 -0
- package/api/matchedOffersApi.ts +207 -0
- package/dist/api/matchedOffersApi.d.ts +27 -0
- package/dist/api/matchedOffersApi.js +255 -57
- package/dist/api/matchedOffersApi.js.map +1 -1
- package/dist/model/bulkChangeSellPriceItemDto.d.ts +20 -0
- package/dist/model/bulkChangeSellPriceItemDto.js +46 -0
- package/dist/model/bulkChangeSellPriceItemDto.js.map +1 -0
- package/dist/model/bulkChangeSellPricesDto.d.ts +18 -0
- package/dist/model/bulkChangeSellPricesDto.js +36 -0
- package/dist/model/bulkChangeSellPricesDto.js.map +1 -0
- package/dist/model/bulkChangeSellingTraderDto.d.ts +16 -0
- package/dist/model/bulkChangeSellingTraderDto.js +31 -0
- package/dist/model/bulkChangeSellingTraderDto.js.map +1 -0
- package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.d.ts +19 -0
- package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.js +46 -0
- package/dist/model/bulkUpdateBuyerSpecialInstructionsDto.js.map +1 -0
- package/dist/model/models.d.ts +4 -0
- package/dist/model/models.js +12 -0
- package/dist/model/models.js.map +1 -1
- package/model/bulkChangeSellPriceItemDto.ts +62 -0
- package/model/bulkChangeSellPricesDto.ts +50 -0
- package/model/bulkChangeSellingTraderDto.ts +43 -0
- package/model/bulkUpdateBuyerSpecialInstructionsDto.ts +61 -0
- package/model/models.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TradeCafé Offer Service
|
|
3
|
+
* Offer Service allows supplies to submit product offers into the TradeCafe platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
import { CostDto } from './costDto';
|
|
15
|
+
|
|
16
|
+
export class BulkChangeSellPriceItemDto {
|
|
17
|
+
'matched_offer_id': string;
|
|
18
|
+
'costs': Array<CostDto>;
|
|
19
|
+
'margin': number;
|
|
20
|
+
'finance_term': number;
|
|
21
|
+
'margin_cad': number;
|
|
22
|
+
'revenue_cad': number;
|
|
23
|
+
|
|
24
|
+
static discriminator: string | undefined = undefined;
|
|
25
|
+
|
|
26
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
27
|
+
{
|
|
28
|
+
"name": "matched_offer_id",
|
|
29
|
+
"baseName": "matched_offer_id",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "costs",
|
|
34
|
+
"baseName": "costs",
|
|
35
|
+
"type": "Array<CostDto>"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "margin",
|
|
39
|
+
"baseName": "margin",
|
|
40
|
+
"type": "number"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "finance_term",
|
|
44
|
+
"baseName": "finance_term",
|
|
45
|
+
"type": "number"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "margin_cad",
|
|
49
|
+
"baseName": "margin_cad",
|
|
50
|
+
"type": "number"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "revenue_cad",
|
|
54
|
+
"baseName": "revenue_cad",
|
|
55
|
+
"type": "number"
|
|
56
|
+
} ];
|
|
57
|
+
|
|
58
|
+
static getAttributeTypeMap() {
|
|
59
|
+
return BulkChangeSellPriceItemDto.attributeTypeMap;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TradeCafé Offer Service
|
|
3
|
+
* Offer Service allows supplies to submit product offers into the TradeCafe platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
import { BulkChangeSellPriceItemDto } from './bulkChangeSellPriceItemDto';
|
|
15
|
+
|
|
16
|
+
export class BulkChangeSellPricesDto {
|
|
17
|
+
'supplier_offer_id': string;
|
|
18
|
+
'price': number;
|
|
19
|
+
'items': Array<BulkChangeSellPriceItemDto>;
|
|
20
|
+
'user_id': string;
|
|
21
|
+
|
|
22
|
+
static discriminator: string | undefined = undefined;
|
|
23
|
+
|
|
24
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
25
|
+
{
|
|
26
|
+
"name": "supplier_offer_id",
|
|
27
|
+
"baseName": "supplier_offer_id",
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "price",
|
|
32
|
+
"baseName": "price",
|
|
33
|
+
"type": "number"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "items",
|
|
37
|
+
"baseName": "items",
|
|
38
|
+
"type": "Array<BulkChangeSellPriceItemDto>"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "user_id",
|
|
42
|
+
"baseName": "user_id",
|
|
43
|
+
"type": "string"
|
|
44
|
+
} ];
|
|
45
|
+
|
|
46
|
+
static getAttributeTypeMap() {
|
|
47
|
+
return BulkChangeSellPricesDto.attributeTypeMap;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TradeCafé Offer Service
|
|
3
|
+
* Offer Service allows supplies to submit product offers into the TradeCafe platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class BulkChangeSellingTraderDto {
|
|
16
|
+
'ids': Array<string>;
|
|
17
|
+
'trader_user_id': string;
|
|
18
|
+
'user_id': string;
|
|
19
|
+
|
|
20
|
+
static discriminator: string | undefined = undefined;
|
|
21
|
+
|
|
22
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
23
|
+
{
|
|
24
|
+
"name": "ids",
|
|
25
|
+
"baseName": "ids",
|
|
26
|
+
"type": "Array<string>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "trader_user_id",
|
|
30
|
+
"baseName": "trader_user_id",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "user_id",
|
|
35
|
+
"baseName": "user_id",
|
|
36
|
+
"type": "string"
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return BulkChangeSellingTraderDto.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TradeCafé Offer Service
|
|
3
|
+
* Offer Service allows supplies to submit product offers into the TradeCafe platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { RequestFile } from './models';
|
|
14
|
+
|
|
15
|
+
export class BulkUpdateBuyerSpecialInstructionsDto {
|
|
16
|
+
'ids': Array<string>;
|
|
17
|
+
'body': string;
|
|
18
|
+
'visibility': number;
|
|
19
|
+
'user_id': string;
|
|
20
|
+
'note_id': string;
|
|
21
|
+
'account': number;
|
|
22
|
+
|
|
23
|
+
static discriminator: string | undefined = undefined;
|
|
24
|
+
|
|
25
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
26
|
+
{
|
|
27
|
+
"name": "ids",
|
|
28
|
+
"baseName": "ids",
|
|
29
|
+
"type": "Array<string>"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "body",
|
|
33
|
+
"baseName": "body",
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "visibility",
|
|
38
|
+
"baseName": "visibility",
|
|
39
|
+
"type": "number"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "user_id",
|
|
43
|
+
"baseName": "user_id",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "note_id",
|
|
48
|
+
"baseName": "note_id",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "account",
|
|
53
|
+
"baseName": "account",
|
|
54
|
+
"type": "number"
|
|
55
|
+
} ];
|
|
56
|
+
|
|
57
|
+
static getAttributeTypeMap() {
|
|
58
|
+
return BulkUpdateBuyerSpecialInstructionsDto.attributeTypeMap;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
package/model/models.ts
CHANGED
|
@@ -6,6 +6,10 @@ export * from './associatedCostDto';
|
|
|
6
6
|
export * from './bulkAddRelistingDto';
|
|
7
7
|
export * from './bulkAddTertiaryCostsDto';
|
|
8
8
|
export * from './bulkChangeFreightRatesDto';
|
|
9
|
+
export * from './bulkChangeSellPriceItemDto';
|
|
10
|
+
export * from './bulkChangeSellPricesDto';
|
|
11
|
+
export * from './bulkChangeSellingTraderDto';
|
|
12
|
+
export * from './bulkUpdateBuyerSpecialInstructionsDto';
|
|
9
13
|
export * from './bulkUpdateDeliveryDatesDto';
|
|
10
14
|
export * from './bulkUpdateDocsCountryDto';
|
|
11
15
|
export * from './bulkUpdateMatchedDeliveryDatesDto';
|
|
@@ -69,6 +73,10 @@ import { AssociatedCostDto } from './associatedCostDto';
|
|
|
69
73
|
import { BulkAddRelistingDto } from './bulkAddRelistingDto';
|
|
70
74
|
import { BulkAddTertiaryCostsDto } from './bulkAddTertiaryCostsDto';
|
|
71
75
|
import { BulkChangeFreightRatesDto } from './bulkChangeFreightRatesDto';
|
|
76
|
+
import { BulkChangeSellPriceItemDto } from './bulkChangeSellPriceItemDto';
|
|
77
|
+
import { BulkChangeSellPricesDto } from './bulkChangeSellPricesDto';
|
|
78
|
+
import { BulkChangeSellingTraderDto } from './bulkChangeSellingTraderDto';
|
|
79
|
+
import { BulkUpdateBuyerSpecialInstructionsDto } from './bulkUpdateBuyerSpecialInstructionsDto';
|
|
72
80
|
import { BulkUpdateDeliveryDatesDto } from './bulkUpdateDeliveryDatesDto';
|
|
73
81
|
import { BulkUpdateDocsCountryDto } from './bulkUpdateDocsCountryDto';
|
|
74
82
|
import { BulkUpdateMatchedDeliveryDatesDto } from './bulkUpdateMatchedDeliveryDatesDto';
|
|
@@ -146,6 +154,10 @@ let typeMap: {[index: string]: any} = {
|
|
|
146
154
|
"BulkAddRelistingDto": BulkAddRelistingDto,
|
|
147
155
|
"BulkAddTertiaryCostsDto": BulkAddTertiaryCostsDto,
|
|
148
156
|
"BulkChangeFreightRatesDto": BulkChangeFreightRatesDto,
|
|
157
|
+
"BulkChangeSellPriceItemDto": BulkChangeSellPriceItemDto,
|
|
158
|
+
"BulkChangeSellPricesDto": BulkChangeSellPricesDto,
|
|
159
|
+
"BulkChangeSellingTraderDto": BulkChangeSellingTraderDto,
|
|
160
|
+
"BulkUpdateBuyerSpecialInstructionsDto": BulkUpdateBuyerSpecialInstructionsDto,
|
|
149
161
|
"BulkUpdateDeliveryDatesDto": BulkUpdateDeliveryDatesDto,
|
|
150
162
|
"BulkUpdateDocsCountryDto": BulkUpdateDocsCountryDto,
|
|
151
163
|
"BulkUpdateMatchedDeliveryDatesDto": BulkUpdateMatchedDeliveryDatesDto,
|