@tradecafe/offer-service-sdk 0.0.45 → 0.0.47
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 +3 -0
- package/api/automatedOffersApi.ts +7 -6
- package/dist/api/automatedOffersApi.d.ts +2 -1
- package/dist/api/automatedOffersApi.js +4 -4
- package/dist/api/automatedOffersApi.js.map +1 -1
- package/dist/model/addMatchedDeliveryDateDto.d.ts +14 -0
- package/dist/model/addMatchedDeliveryDateDto.js +21 -0
- package/dist/model/addMatchedDeliveryDateDto.js.map +1 -0
- package/dist/model/createMatchedOfferDto.d.ts +2 -1
- package/dist/model/createMatchedOfferDto.js +1 -1
- package/dist/model/createMatchedOfferDto.js.map +1 -1
- package/dist/model/createMatchedOfferDtoAttributes.d.ts +34 -0
- package/dist/model/createMatchedOfferDtoAttributes.js +95 -0
- package/dist/model/createMatchedOfferDtoAttributes.js.map +1 -0
- package/dist/model/createOfferDtoAttributes.d.ts +1 -0
- package/dist/model/createOfferDtoAttributes.js +5 -0
- package/dist/model/createOfferDtoAttributes.js.map +1 -1
- package/dist/model/matchedOfferAttributesDto.d.ts +34 -0
- package/dist/model/matchedOfferAttributesDto.js +95 -0
- package/dist/model/matchedOfferAttributesDto.js.map +1 -0
- package/dist/model/models.d.ts +3 -0
- package/dist/model/models.js +11 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/offerAttributesDto.d.ts +1 -0
- package/dist/model/offerAttributesDto.js +5 -0
- package/dist/model/offerAttributesDto.js.map +1 -1
- package/model/addMatchedDeliveryDateDto.ts +34 -0
- package/model/createMatchedOfferDto.ts +3 -5
- package/model/createMatchedOfferDtoAttributes.ts +162 -0
- package/model/createOfferDtoAttributes.ts +9 -0
- package/model/matchedOfferAttributesDto.ts +158 -0
- package/model/models.ts +11 -0
- package/model/offerAttributesDto.ts +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,158 @@
|
|
|
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 MatchedOfferAttributesDto {
|
|
16
|
+
/**
|
|
17
|
+
* Trader user ID
|
|
18
|
+
*/
|
|
19
|
+
'trader_user_id'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Finance term in seconds
|
|
22
|
+
*/
|
|
23
|
+
'finance_term_in_seconds'?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Finance term
|
|
26
|
+
*/
|
|
27
|
+
'finance_term'?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Collection date (Unix timestamp)
|
|
30
|
+
*/
|
|
31
|
+
'collection_date'?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Supplier term date (Unix timestamp)
|
|
34
|
+
*/
|
|
35
|
+
'supplier_term_date'?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Buyer term date (Unix timestamp)
|
|
38
|
+
*/
|
|
39
|
+
'buyer_term_date'?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Supplier anticipated liability
|
|
42
|
+
*/
|
|
43
|
+
'supplier_anticipated_liability'?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Supplier liability date (Unix timestamp)
|
|
46
|
+
*/
|
|
47
|
+
'supplier_liability_date'?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Margin in CAD
|
|
50
|
+
*/
|
|
51
|
+
'margin_cad'?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Revenue in CAD
|
|
54
|
+
*/
|
|
55
|
+
'revenue_cad'?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Confirm index
|
|
58
|
+
*/
|
|
59
|
+
'confirm_index'?: object;
|
|
60
|
+
/**
|
|
61
|
+
* Delivery preference
|
|
62
|
+
*/
|
|
63
|
+
'delivery_preference'?: MatchedOfferAttributesDto.DeliveryPreferenceEnum;
|
|
64
|
+
/**
|
|
65
|
+
* Actual values
|
|
66
|
+
*/
|
|
67
|
+
'actual'?: object;
|
|
68
|
+
/**
|
|
69
|
+
* Extended name map keyed by product_id
|
|
70
|
+
*/
|
|
71
|
+
'extended_name'?: object;
|
|
72
|
+
|
|
73
|
+
static discriminator: string | undefined = undefined;
|
|
74
|
+
|
|
75
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
76
|
+
{
|
|
77
|
+
"name": "trader_user_id",
|
|
78
|
+
"baseName": "trader_user_id",
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "finance_term_in_seconds",
|
|
83
|
+
"baseName": "finance_term_in_seconds",
|
|
84
|
+
"type": "number"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "finance_term",
|
|
88
|
+
"baseName": "finance_term",
|
|
89
|
+
"type": "number"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "collection_date",
|
|
93
|
+
"baseName": "collection_date",
|
|
94
|
+
"type": "number"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "supplier_term_date",
|
|
98
|
+
"baseName": "supplier_term_date",
|
|
99
|
+
"type": "number"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "buyer_term_date",
|
|
103
|
+
"baseName": "buyer_term_date",
|
|
104
|
+
"type": "number"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "supplier_anticipated_liability",
|
|
108
|
+
"baseName": "supplier_anticipated_liability",
|
|
109
|
+
"type": "number"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"name": "supplier_liability_date",
|
|
113
|
+
"baseName": "supplier_liability_date",
|
|
114
|
+
"type": "number"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "margin_cad",
|
|
118
|
+
"baseName": "margin_cad",
|
|
119
|
+
"type": "number"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "revenue_cad",
|
|
123
|
+
"baseName": "revenue_cad",
|
|
124
|
+
"type": "number"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "confirm_index",
|
|
128
|
+
"baseName": "confirm_index",
|
|
129
|
+
"type": "object"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"name": "delivery_preference",
|
|
133
|
+
"baseName": "delivery_preference",
|
|
134
|
+
"type": "MatchedOfferAttributesDto.DeliveryPreferenceEnum"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "actual",
|
|
138
|
+
"baseName": "actual",
|
|
139
|
+
"type": "object"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "extended_name",
|
|
143
|
+
"baseName": "extended_name",
|
|
144
|
+
"type": "object"
|
|
145
|
+
} ];
|
|
146
|
+
|
|
147
|
+
static getAttributeTypeMap() {
|
|
148
|
+
return MatchedOfferAttributesDto.attributeTypeMap;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export namespace MatchedOfferAttributesDto {
|
|
153
|
+
export enum DeliveryPreferenceEnum {
|
|
154
|
+
Length = <any> 'length',
|
|
155
|
+
Cost = <any> 'cost',
|
|
156
|
+
Time = <any> 'time'
|
|
157
|
+
}
|
|
158
|
+
}
|
package/model/models.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import localVarRequest from 'request';
|
|
2
2
|
|
|
3
3
|
export * from './addFutureBidDto';
|
|
4
|
+
export * from './addMatchedDeliveryDateDto';
|
|
4
5
|
export * from './bulkAddRelistingDto';
|
|
5
6
|
export * from './createAutomatedOfferDto';
|
|
6
7
|
export * from './createMatchedOfferDto';
|
|
8
|
+
export * from './createMatchedOfferDtoAttributes';
|
|
7
9
|
export * from './createOfferDto';
|
|
8
10
|
export * from './createOfferDtoAttributes';
|
|
9
11
|
export * from './createOfferDtoFormula';
|
|
@@ -15,6 +17,7 @@ export * from './generalAddressDto';
|
|
|
15
17
|
export * from './healthControllerPing200Response';
|
|
16
18
|
export * from './healthControllerPing200ResponseInfoValue';
|
|
17
19
|
export * from './healthControllerPing503Response';
|
|
20
|
+
export * from './matchedOfferAttributesDto';
|
|
18
21
|
export * from './offerAttributesDto';
|
|
19
22
|
export * from './offerAttributesDtoEstablishment';
|
|
20
23
|
export * from './overwriteItemDto';
|
|
@@ -45,9 +48,11 @@ export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
|
|
45
48
|
|
|
46
49
|
|
|
47
50
|
import { AddFutureBidDto } from './addFutureBidDto';
|
|
51
|
+
import { AddMatchedDeliveryDateDto } from './addMatchedDeliveryDateDto';
|
|
48
52
|
import { BulkAddRelistingDto } from './bulkAddRelistingDto';
|
|
49
53
|
import { CreateAutomatedOfferDto } from './createAutomatedOfferDto';
|
|
50
54
|
import { CreateMatchedOfferDto } from './createMatchedOfferDto';
|
|
55
|
+
import { CreateMatchedOfferDtoAttributes } from './createMatchedOfferDtoAttributes';
|
|
51
56
|
import { CreateOfferDto } from './createOfferDto';
|
|
52
57
|
import { CreateOfferDtoAttributes } from './createOfferDtoAttributes';
|
|
53
58
|
import { CreateOfferDtoFormula } from './createOfferDtoFormula';
|
|
@@ -59,6 +64,7 @@ import { GeneralAddressDto } from './generalAddressDto';
|
|
|
59
64
|
import { HealthControllerPing200Response } from './healthControllerPing200Response';
|
|
60
65
|
import { HealthControllerPing200ResponseInfoValue } from './healthControllerPing200ResponseInfoValue';
|
|
61
66
|
import { HealthControllerPing503Response } from './healthControllerPing503Response';
|
|
67
|
+
import { MatchedOfferAttributesDto } from './matchedOfferAttributesDto';
|
|
62
68
|
import { OfferAttributesDto } from './offerAttributesDto';
|
|
63
69
|
import { OfferAttributesDtoEstablishment } from './offerAttributesDtoEstablishment';
|
|
64
70
|
import { OverwriteItemDto } from './overwriteItemDto';
|
|
@@ -92,18 +98,22 @@ let enumsMap: {[index: string]: any} = {
|
|
|
92
98
|
"CreateAutomatedOfferDto.StatusEnum": CreateAutomatedOfferDto.StatusEnum,
|
|
93
99
|
"CreateAutomatedOfferDto.AutomatedOfferStatusEnum": CreateAutomatedOfferDto.AutomatedOfferStatusEnum,
|
|
94
100
|
"CreateMatchedOfferDto.StatusEnum": CreateMatchedOfferDto.StatusEnum,
|
|
101
|
+
"CreateMatchedOfferDtoAttributes.DeliveryPreferenceEnum": CreateMatchedOfferDtoAttributes.DeliveryPreferenceEnum,
|
|
95
102
|
"CreateOfferDto.TypeEnum": CreateOfferDto.TypeEnum,
|
|
96
103
|
"CreateOfferDto.StatusEnum": CreateOfferDto.StatusEnum,
|
|
97
104
|
"CreateOfferDtoAttributes.DeliveryPreferenceEnum": CreateOfferDtoAttributes.DeliveryPreferenceEnum,
|
|
105
|
+
"MatchedOfferAttributesDto.DeliveryPreferenceEnum": MatchedOfferAttributesDto.DeliveryPreferenceEnum,
|
|
98
106
|
"OfferAttributesDto.DeliveryPreferenceEnum": OfferAttributesDto.DeliveryPreferenceEnum,
|
|
99
107
|
"RelistingDetailDto.StatusEnum": RelistingDetailDto.StatusEnum,
|
|
100
108
|
}
|
|
101
109
|
|
|
102
110
|
let typeMap: {[index: string]: any} = {
|
|
103
111
|
"AddFutureBidDto": AddFutureBidDto,
|
|
112
|
+
"AddMatchedDeliveryDateDto": AddMatchedDeliveryDateDto,
|
|
104
113
|
"BulkAddRelistingDto": BulkAddRelistingDto,
|
|
105
114
|
"CreateAutomatedOfferDto": CreateAutomatedOfferDto,
|
|
106
115
|
"CreateMatchedOfferDto": CreateMatchedOfferDto,
|
|
116
|
+
"CreateMatchedOfferDtoAttributes": CreateMatchedOfferDtoAttributes,
|
|
107
117
|
"CreateOfferDto": CreateOfferDto,
|
|
108
118
|
"CreateOfferDtoAttributes": CreateOfferDtoAttributes,
|
|
109
119
|
"CreateOfferDtoFormula": CreateOfferDtoFormula,
|
|
@@ -115,6 +125,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
115
125
|
"HealthControllerPing200Response": HealthControllerPing200Response,
|
|
116
126
|
"HealthControllerPing200ResponseInfoValue": HealthControllerPing200ResponseInfoValue,
|
|
117
127
|
"HealthControllerPing503Response": HealthControllerPing503Response,
|
|
128
|
+
"MatchedOfferAttributesDto": MatchedOfferAttributesDto,
|
|
118
129
|
"OfferAttributesDto": OfferAttributesDto,
|
|
119
130
|
"OfferAttributesDtoEstablishment": OfferAttributesDtoEstablishment,
|
|
120
131
|
"OverwriteItemDto": OverwriteItemDto,
|
|
@@ -120,6 +120,10 @@ export class OfferAttributesDto {
|
|
|
120
120
|
* Buyer groups
|
|
121
121
|
*/
|
|
122
122
|
'buyer_groups'?: Array<string>;
|
|
123
|
+
/**
|
|
124
|
+
* Extended name map keyed by product_id
|
|
125
|
+
*/
|
|
126
|
+
'extended_name'?: object;
|
|
123
127
|
|
|
124
128
|
static discriminator: string | undefined = undefined;
|
|
125
129
|
|
|
@@ -258,6 +262,11 @@ export class OfferAttributesDto {
|
|
|
258
262
|
"name": "buyer_groups",
|
|
259
263
|
"baseName": "buyer_groups",
|
|
260
264
|
"type": "Array<string>"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "extended_name",
|
|
268
|
+
"baseName": "extended_name",
|
|
269
|
+
"type": "object"
|
|
261
270
|
} ];
|
|
262
271
|
|
|
263
272
|
static getAttributeTypeMap() {
|