@tradecafe/offer-service-sdk 0.0.49 → 0.0.50
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 +8 -0
- package/dist/model/associatedCostDto.d.ts +16 -0
- package/dist/model/associatedCostDto.js +31 -0
- package/dist/model/associatedCostDto.js.map +1 -0
- package/dist/model/costAmountDto.d.ts +3 -0
- package/dist/model/costAmountDto.js +15 -0
- package/dist/model/costAmountDto.js.map +1 -1
- package/dist/model/costAttributesDto.d.ts +32 -0
- package/dist/model/costAttributesDto.js +101 -0
- package/dist/model/costAttributesDto.js.map +1 -0
- package/dist/model/costAttributesDtoAssociated.d.ts +16 -0
- package/dist/model/costAttributesDtoAssociated.js +31 -0
- package/dist/model/costAttributesDtoAssociated.js.map +1 -0
- package/dist/model/costAttributesDtoDefaultCost.d.ts +18 -0
- package/dist/model/costAttributesDtoDefaultCost.js +41 -0
- package/dist/model/costAttributesDtoDefaultCost.js.map +1 -0
- package/dist/model/costDto.d.ts +15 -1
- package/dist/model/costDto.js +61 -1
- package/dist/model/costDto.js.map +1 -1
- package/dist/model/costDtoAmount.d.ts +17 -0
- package/dist/model/costDtoAmount.js +36 -0
- package/dist/model/costDtoAmount.js.map +1 -0
- package/dist/model/costDtoAttributes.d.ts +32 -0
- package/dist/model/costDtoAttributes.js +101 -0
- package/dist/model/costDtoAttributes.js.map +1 -0
- package/dist/model/costDtoSource.d.ts +2 -1
- package/dist/model/costDtoSource.js +8 -3
- package/dist/model/costDtoSource.js.map +1 -1
- package/dist/model/costSourceDto.d.ts +15 -0
- package/dist/model/costSourceDto.js +26 -0
- package/dist/model/costSourceDto.js.map +1 -0
- package/dist/model/defaultCostDto.d.ts +18 -0
- package/dist/model/defaultCostDto.js +41 -0
- package/dist/model/defaultCostDto.js.map +1 -0
- package/dist/model/models.d.ts +8 -0
- package/dist/model/models.js +24 -0
- package/dist/model/models.js.map +1 -1
- package/model/associatedCostDto.ts +52 -0
- package/model/costAmountDto.ts +28 -1
- package/model/costAttributesDto.ts +174 -0
- package/model/costAttributesDtoAssociated.ts +56 -0
- package/model/costAttributesDtoDefaultCost.ts +74 -0
- package/model/costDto.ts +110 -6
- package/model/costDtoAmount.ts +65 -0
- package/model/costDtoAttributes.ts +178 -0
- package/model/costDtoSource.ts +16 -7
- package/model/costSourceDto.ts +43 -0
- package/model/defaultCostDto.ts +70 -0
- package/model/models.ts +24 -0
- package/package.json +1 -1
package/model/costDtoSource.ts
CHANGED
|
@@ -11,24 +11,33 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
|
-
import {
|
|
14
|
+
import { CostSourceDto } from './costSourceDto';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Cost
|
|
17
|
+
* Cost source
|
|
18
18
|
*/
|
|
19
19
|
export class CostDtoSource {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Source type
|
|
22
22
|
*/
|
|
23
|
-
'
|
|
23
|
+
'type'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Source ID
|
|
26
|
+
*/
|
|
27
|
+
'source_id'?: string;
|
|
24
28
|
|
|
25
29
|
static discriminator: string | undefined = undefined;
|
|
26
30
|
|
|
27
31
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
28
32
|
{
|
|
29
|
-
"name": "
|
|
30
|
-
"baseName": "
|
|
31
|
-
"type": "
|
|
33
|
+
"name": "type",
|
|
34
|
+
"baseName": "type",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "source_id",
|
|
39
|
+
"baseName": "source_id",
|
|
40
|
+
"type": "string"
|
|
32
41
|
} ];
|
|
33
42
|
|
|
34
43
|
static getAttributeTypeMap() {
|
|
@@ -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 CostSourceDto {
|
|
16
|
+
/**
|
|
17
|
+
* Source type
|
|
18
|
+
*/
|
|
19
|
+
'type'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Source ID
|
|
22
|
+
*/
|
|
23
|
+
'source_id'?: string;
|
|
24
|
+
|
|
25
|
+
static discriminator: string | undefined = undefined;
|
|
26
|
+
|
|
27
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
28
|
+
{
|
|
29
|
+
"name": "type",
|
|
30
|
+
"baseName": "type",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "source_id",
|
|
35
|
+
"baseName": "source_id",
|
|
36
|
+
"type": "string"
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return CostSourceDto.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
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 DefaultCostDto {
|
|
16
|
+
/**
|
|
17
|
+
* Cost value
|
|
18
|
+
*/
|
|
19
|
+
'value'?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Cost type
|
|
22
|
+
*/
|
|
23
|
+
'type'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Cost name
|
|
26
|
+
*/
|
|
27
|
+
'name'?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Cost type ID
|
|
30
|
+
*/
|
|
31
|
+
'cost_type_id'?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Currency
|
|
34
|
+
*/
|
|
35
|
+
'currency'?: string;
|
|
36
|
+
|
|
37
|
+
static discriminator: string | undefined = undefined;
|
|
38
|
+
|
|
39
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
40
|
+
{
|
|
41
|
+
"name": "value",
|
|
42
|
+
"baseName": "value",
|
|
43
|
+
"type": "number"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "type",
|
|
47
|
+
"baseName": "type",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "name",
|
|
52
|
+
"baseName": "name",
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "cost_type_id",
|
|
57
|
+
"baseName": "cost_type_id",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "currency",
|
|
62
|
+
"baseName": "currency",
|
|
63
|
+
"type": "string"
|
|
64
|
+
} ];
|
|
65
|
+
|
|
66
|
+
static getAttributeTypeMap() {
|
|
67
|
+
return DefaultCostDto.attributeTypeMap;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
package/model/models.ts
CHANGED
|
@@ -2,13 +2,20 @@ import localVarRequest from 'request';
|
|
|
2
2
|
|
|
3
3
|
export * from './addFutureBidDto';
|
|
4
4
|
export * from './addMatchedDeliveryDateDto';
|
|
5
|
+
export * from './associatedCostDto';
|
|
5
6
|
export * from './bulkAddRelistingDto';
|
|
6
7
|
export * from './bulkAddTertiaryCostsDto';
|
|
7
8
|
export * from './bulkUpdateDeliveryDatesDto';
|
|
8
9
|
export * from './bulkUpdateMatchedDeliveryDatesDto';
|
|
9
10
|
export * from './costAmountDto';
|
|
11
|
+
export * from './costAttributesDto';
|
|
12
|
+
export * from './costAttributesDtoAssociated';
|
|
13
|
+
export * from './costAttributesDtoDefaultCost';
|
|
10
14
|
export * from './costDto';
|
|
15
|
+
export * from './costDtoAmount';
|
|
16
|
+
export * from './costDtoAttributes';
|
|
11
17
|
export * from './costDtoSource';
|
|
18
|
+
export * from './costSourceDto';
|
|
12
19
|
export * from './createAutomatedOfferDto';
|
|
13
20
|
export * from './createMatchedOfferDto';
|
|
14
21
|
export * from './createMatchedOfferDtoAttributes';
|
|
@@ -17,6 +24,7 @@ export * from './createOfferDtoAttributes';
|
|
|
17
24
|
export * from './createOfferDtoFormula';
|
|
18
25
|
export * from './createOfferDtoPacking';
|
|
19
26
|
export * from './createOfferDtoWeight';
|
|
27
|
+
export * from './defaultCostDto';
|
|
20
28
|
export * from './formulaDto';
|
|
21
29
|
export * from './formulaLineDto';
|
|
22
30
|
export * from './generalAddressDto';
|
|
@@ -55,13 +63,20 @@ export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
|
|
55
63
|
|
|
56
64
|
import { AddFutureBidDto } from './addFutureBidDto';
|
|
57
65
|
import { AddMatchedDeliveryDateDto } from './addMatchedDeliveryDateDto';
|
|
66
|
+
import { AssociatedCostDto } from './associatedCostDto';
|
|
58
67
|
import { BulkAddRelistingDto } from './bulkAddRelistingDto';
|
|
59
68
|
import { BulkAddTertiaryCostsDto } from './bulkAddTertiaryCostsDto';
|
|
60
69
|
import { BulkUpdateDeliveryDatesDto } from './bulkUpdateDeliveryDatesDto';
|
|
61
70
|
import { BulkUpdateMatchedDeliveryDatesDto } from './bulkUpdateMatchedDeliveryDatesDto';
|
|
62
71
|
import { CostAmountDto } from './costAmountDto';
|
|
72
|
+
import { CostAttributesDto } from './costAttributesDto';
|
|
73
|
+
import { CostAttributesDtoAssociated } from './costAttributesDtoAssociated';
|
|
74
|
+
import { CostAttributesDtoDefaultCost } from './costAttributesDtoDefaultCost';
|
|
63
75
|
import { CostDto } from './costDto';
|
|
76
|
+
import { CostDtoAmount } from './costDtoAmount';
|
|
77
|
+
import { CostDtoAttributes } from './costDtoAttributes';
|
|
64
78
|
import { CostDtoSource } from './costDtoSource';
|
|
79
|
+
import { CostSourceDto } from './costSourceDto';
|
|
65
80
|
import { CreateAutomatedOfferDto } from './createAutomatedOfferDto';
|
|
66
81
|
import { CreateMatchedOfferDto } from './createMatchedOfferDto';
|
|
67
82
|
import { CreateMatchedOfferDtoAttributes } from './createMatchedOfferDtoAttributes';
|
|
@@ -70,6 +85,7 @@ import { CreateOfferDtoAttributes } from './createOfferDtoAttributes';
|
|
|
70
85
|
import { CreateOfferDtoFormula } from './createOfferDtoFormula';
|
|
71
86
|
import { CreateOfferDtoPacking } from './createOfferDtoPacking';
|
|
72
87
|
import { CreateOfferDtoWeight } from './createOfferDtoWeight';
|
|
88
|
+
import { DefaultCostDto } from './defaultCostDto';
|
|
73
89
|
import { FormulaDto } from './formulaDto';
|
|
74
90
|
import { FormulaLineDto } from './formulaLineDto';
|
|
75
91
|
import { GeneralAddressDto } from './generalAddressDto';
|
|
@@ -122,13 +138,20 @@ let enumsMap: {[index: string]: any} = {
|
|
|
122
138
|
let typeMap: {[index: string]: any} = {
|
|
123
139
|
"AddFutureBidDto": AddFutureBidDto,
|
|
124
140
|
"AddMatchedDeliveryDateDto": AddMatchedDeliveryDateDto,
|
|
141
|
+
"AssociatedCostDto": AssociatedCostDto,
|
|
125
142
|
"BulkAddRelistingDto": BulkAddRelistingDto,
|
|
126
143
|
"BulkAddTertiaryCostsDto": BulkAddTertiaryCostsDto,
|
|
127
144
|
"BulkUpdateDeliveryDatesDto": BulkUpdateDeliveryDatesDto,
|
|
128
145
|
"BulkUpdateMatchedDeliveryDatesDto": BulkUpdateMatchedDeliveryDatesDto,
|
|
129
146
|
"CostAmountDto": CostAmountDto,
|
|
147
|
+
"CostAttributesDto": CostAttributesDto,
|
|
148
|
+
"CostAttributesDtoAssociated": CostAttributesDtoAssociated,
|
|
149
|
+
"CostAttributesDtoDefaultCost": CostAttributesDtoDefaultCost,
|
|
130
150
|
"CostDto": CostDto,
|
|
151
|
+
"CostDtoAmount": CostDtoAmount,
|
|
152
|
+
"CostDtoAttributes": CostDtoAttributes,
|
|
131
153
|
"CostDtoSource": CostDtoSource,
|
|
154
|
+
"CostSourceDto": CostSourceDto,
|
|
132
155
|
"CreateAutomatedOfferDto": CreateAutomatedOfferDto,
|
|
133
156
|
"CreateMatchedOfferDto": CreateMatchedOfferDto,
|
|
134
157
|
"CreateMatchedOfferDtoAttributes": CreateMatchedOfferDtoAttributes,
|
|
@@ -137,6 +160,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
137
160
|
"CreateOfferDtoFormula": CreateOfferDtoFormula,
|
|
138
161
|
"CreateOfferDtoPacking": CreateOfferDtoPacking,
|
|
139
162
|
"CreateOfferDtoWeight": CreateOfferDtoWeight,
|
|
163
|
+
"DefaultCostDto": DefaultCostDto,
|
|
140
164
|
"FormulaDto": FormulaDto,
|
|
141
165
|
"FormulaLineDto": FormulaLineDto,
|
|
142
166
|
"GeneralAddressDto": GeneralAddressDto,
|