@tradecafe/offer-service-sdk 0.0.46 → 0.0.48
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 +5 -0
- package/api/matchedOffersApi.ts +145 -0
- package/dist/api/matchedOffersApi.d.ts +18 -0
- package/dist/api/matchedOffersApi.js +187 -51
- package/dist/api/matchedOffersApi.js.map +1 -1
- package/dist/model/bulkAddTertiaryCostsDto.d.ts +16 -0
- package/dist/model/bulkAddTertiaryCostsDto.js +26 -0
- package/dist/model/bulkAddTertiaryCostsDto.js.map +1 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.d.ts +16 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.js +31 -0
- package/dist/model/bulkUpdateDeliveryDatesDto.js.map +1 -0
- package/dist/model/costAmountDto.d.ts +14 -0
- package/dist/model/costAmountDto.js +21 -0
- package/dist/model/costAmountDto.js.map +1 -0
- package/dist/model/costDto.d.ts +21 -0
- package/dist/model/costDto.js +51 -0
- package/dist/model/costDto.js.map +1 -0
- package/dist/model/costDtoSource.d.ts +14 -0
- package/dist/model/costDtoSource.js +21 -0
- package/dist/model/costDtoSource.js.map +1 -0
- package/dist/model/createMatchedOfferDtoAttributes.d.ts +20 -0
- package/dist/model/createMatchedOfferDtoAttributes.js +74 -0
- package/dist/model/createMatchedOfferDtoAttributes.js.map +1 -1
- package/dist/model/matchedOfferAttributesDto.d.ts +20 -0
- package/dist/model/matchedOfferAttributesDto.js +74 -0
- package/dist/model/matchedOfferAttributesDto.js.map +1 -1
- package/dist/model/models.d.ts +5 -0
- package/dist/model/models.js +17 -0
- package/dist/model/models.js.map +1 -1
- package/model/bulkAddTertiaryCostsDto.ts +44 -0
- package/model/bulkUpdateDeliveryDatesDto.ts +52 -0
- package/model/costAmountDto.ts +34 -0
- package/model/costDto.ts +86 -0
- package/model/costDtoSource.ts +38 -0
- package/model/createMatchedOfferDtoAttributes.ts +124 -0
- package/model/matchedOfferAttributesDto.ts +124 -0
- package/model/models.ts +17 -0
- package/package.json +1 -1
|
@@ -13,6 +13,58 @@
|
|
|
13
13
|
import { RequestFile } from './models';
|
|
14
14
|
|
|
15
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;
|
|
16
68
|
/**
|
|
17
69
|
* Extended name map keyed by product_id
|
|
18
70
|
*/
|
|
@@ -21,6 +73,71 @@ export class MatchedOfferAttributesDto {
|
|
|
21
73
|
static discriminator: string | undefined = undefined;
|
|
22
74
|
|
|
23
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
|
+
},
|
|
24
141
|
{
|
|
25
142
|
"name": "extended_name",
|
|
26
143
|
"baseName": "extended_name",
|
|
@@ -32,3 +149,10 @@ export class MatchedOfferAttributesDto {
|
|
|
32
149
|
}
|
|
33
150
|
}
|
|
34
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
|
@@ -3,6 +3,11 @@ import localVarRequest from 'request';
|
|
|
3
3
|
export * from './addFutureBidDto';
|
|
4
4
|
export * from './addMatchedDeliveryDateDto';
|
|
5
5
|
export * from './bulkAddRelistingDto';
|
|
6
|
+
export * from './bulkAddTertiaryCostsDto';
|
|
7
|
+
export * from './bulkUpdateDeliveryDatesDto';
|
|
8
|
+
export * from './costAmountDto';
|
|
9
|
+
export * from './costDto';
|
|
10
|
+
export * from './costDtoSource';
|
|
6
11
|
export * from './createAutomatedOfferDto';
|
|
7
12
|
export * from './createMatchedOfferDto';
|
|
8
13
|
export * from './createMatchedOfferDtoAttributes';
|
|
@@ -50,6 +55,11 @@ export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
|
|
50
55
|
import { AddFutureBidDto } from './addFutureBidDto';
|
|
51
56
|
import { AddMatchedDeliveryDateDto } from './addMatchedDeliveryDateDto';
|
|
52
57
|
import { BulkAddRelistingDto } from './bulkAddRelistingDto';
|
|
58
|
+
import { BulkAddTertiaryCostsDto } from './bulkAddTertiaryCostsDto';
|
|
59
|
+
import { BulkUpdateDeliveryDatesDto } from './bulkUpdateDeliveryDatesDto';
|
|
60
|
+
import { CostAmountDto } from './costAmountDto';
|
|
61
|
+
import { CostDto } from './costDto';
|
|
62
|
+
import { CostDtoSource } from './costDtoSource';
|
|
53
63
|
import { CreateAutomatedOfferDto } from './createAutomatedOfferDto';
|
|
54
64
|
import { CreateMatchedOfferDto } from './createMatchedOfferDto';
|
|
55
65
|
import { CreateMatchedOfferDtoAttributes } from './createMatchedOfferDtoAttributes';
|
|
@@ -98,9 +108,11 @@ let enumsMap: {[index: string]: any} = {
|
|
|
98
108
|
"CreateAutomatedOfferDto.StatusEnum": CreateAutomatedOfferDto.StatusEnum,
|
|
99
109
|
"CreateAutomatedOfferDto.AutomatedOfferStatusEnum": CreateAutomatedOfferDto.AutomatedOfferStatusEnum,
|
|
100
110
|
"CreateMatchedOfferDto.StatusEnum": CreateMatchedOfferDto.StatusEnum,
|
|
111
|
+
"CreateMatchedOfferDtoAttributes.DeliveryPreferenceEnum": CreateMatchedOfferDtoAttributes.DeliveryPreferenceEnum,
|
|
101
112
|
"CreateOfferDto.TypeEnum": CreateOfferDto.TypeEnum,
|
|
102
113
|
"CreateOfferDto.StatusEnum": CreateOfferDto.StatusEnum,
|
|
103
114
|
"CreateOfferDtoAttributes.DeliveryPreferenceEnum": CreateOfferDtoAttributes.DeliveryPreferenceEnum,
|
|
115
|
+
"MatchedOfferAttributesDto.DeliveryPreferenceEnum": MatchedOfferAttributesDto.DeliveryPreferenceEnum,
|
|
104
116
|
"OfferAttributesDto.DeliveryPreferenceEnum": OfferAttributesDto.DeliveryPreferenceEnum,
|
|
105
117
|
"RelistingDetailDto.StatusEnum": RelistingDetailDto.StatusEnum,
|
|
106
118
|
}
|
|
@@ -109,6 +121,11 @@ let typeMap: {[index: string]: any} = {
|
|
|
109
121
|
"AddFutureBidDto": AddFutureBidDto,
|
|
110
122
|
"AddMatchedDeliveryDateDto": AddMatchedDeliveryDateDto,
|
|
111
123
|
"BulkAddRelistingDto": BulkAddRelistingDto,
|
|
124
|
+
"BulkAddTertiaryCostsDto": BulkAddTertiaryCostsDto,
|
|
125
|
+
"BulkUpdateDeliveryDatesDto": BulkUpdateDeliveryDatesDto,
|
|
126
|
+
"CostAmountDto": CostAmountDto,
|
|
127
|
+
"CostDto": CostDto,
|
|
128
|
+
"CostDtoSource": CostDtoSource,
|
|
112
129
|
"CreateAutomatedOfferDto": CreateAutomatedOfferDto,
|
|
113
130
|
"CreateMatchedOfferDto": CreateMatchedOfferDto,
|
|
114
131
|
"CreateMatchedOfferDtoAttributes": CreateMatchedOfferDtoAttributes,
|