@tradecafe/offer-service-sdk 0.0.57 → 0.0.62
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 +9 -0
- package/api/apis.ts +3 -1
- package/api/matchedOffersApi.ts +329 -0
- package/api/promoTextsApi.ts +426 -0
- package/dist/api/apis.d.ts +3 -1
- package/dist/api/apis.js +3 -1
- package/dist/api/apis.js.map +1 -1
- package/dist/api/matchedOffersApi.d.ts +43 -0
- package/dist/api/matchedOffersApi.js +406 -84
- package/dist/api/matchedOffersApi.js.map +1 -1
- package/dist/api/promoTextsApi.d.ts +67 -0
- package/dist/api/promoTextsApi.js +436 -0
- package/dist/api/promoTextsApi.js.map +1 -0
- package/dist/model/archivePromoTextDto.d.ts +14 -0
- package/dist/model/archivePromoTextDto.js +21 -0
- package/dist/model/archivePromoTextDto.js.map +1 -0
- package/dist/model/bulkCancelPromotionDto.d.ts +16 -0
- package/dist/model/bulkCancelPromotionDto.js +31 -0
- package/dist/model/bulkCancelPromotionDto.js.map +1 -0
- package/dist/model/bulkChangeDestinationLocationDto.d.ts +16 -0
- package/dist/model/bulkChangeDestinationLocationDto.js +31 -0
- package/dist/model/bulkChangeDestinationLocationDto.js.map +1 -0
- package/dist/model/bulkPromoteDto.d.ts +17 -0
- package/dist/model/bulkPromoteDto.js +36 -0
- package/dist/model/bulkPromoteDto.js.map +1 -0
- package/dist/model/createPromoTextDto.d.ts +17 -0
- package/dist/model/createPromoTextDto.js +31 -0
- package/dist/model/createPromoTextDto.js.map +1 -0
- package/dist/model/models.d.ts +8 -0
- package/dist/model/models.js +25 -0
- package/dist/model/models.js.map +1 -1
- package/dist/model/promoTextPairDto.d.ts +24 -0
- package/dist/model/promoTextPairDto.js +41 -0
- package/dist/model/promoTextPairDto.js.map +1 -0
- package/dist/model/searchPromoTextDto.d.ts +15 -0
- package/dist/model/searchPromoTextDto.js +26 -0
- package/dist/model/searchPromoTextDto.js.map +1 -0
- package/dist/model/updatePromoTextDto.d.ts +17 -0
- package/dist/model/updatePromoTextDto.js +31 -0
- package/dist/model/updatePromoTextDto.js.map +1 -0
- package/model/archivePromoTextDto.ts +34 -0
- package/model/bulkCancelPromotionDto.ts +49 -0
- package/model/bulkChangeDestinationLocationDto.ts +43 -0
- package/model/bulkPromoteDto.ts +55 -0
- package/model/createPromoTextDto.ts +53 -0
- package/model/models.ts +25 -0
- package/model/promoTextPairDto.ts +60 -0
- package/model/searchPromoTextDto.ts +43 -0
- package/model/updatePromoTextDto.ts +47 -0
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
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 BulkPromoteDto {
|
|
16
|
+
'ids': Array<string>;
|
|
17
|
+
/**
|
|
18
|
+
* Promo text the trader picked; must not be archived
|
|
19
|
+
*/
|
|
20
|
+
'promo_text_id': string;
|
|
21
|
+
/**
|
|
22
|
+
* The language pair chosen within that promo text
|
|
23
|
+
*/
|
|
24
|
+
'pair_id': string;
|
|
25
|
+
'user_id': string;
|
|
26
|
+
|
|
27
|
+
static discriminator: string | undefined = undefined;
|
|
28
|
+
|
|
29
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
30
|
+
{
|
|
31
|
+
"name": "ids",
|
|
32
|
+
"baseName": "ids",
|
|
33
|
+
"type": "Array<string>"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "promo_text_id",
|
|
37
|
+
"baseName": "promo_text_id",
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "pair_id",
|
|
42
|
+
"baseName": "pair_id",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "user_id",
|
|
47
|
+
"baseName": "user_id",
|
|
48
|
+
"type": "string"
|
|
49
|
+
} ];
|
|
50
|
+
|
|
51
|
+
static getAttributeTypeMap() {
|
|
52
|
+
return BulkPromoteDto.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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 { PromoTextPairDto } from './promoTextPairDto';
|
|
15
|
+
|
|
16
|
+
export class CreatePromoTextDto {
|
|
17
|
+
/**
|
|
18
|
+
* Canonical English name, shown in the trader dropdown
|
|
19
|
+
*/
|
|
20
|
+
'name': string;
|
|
21
|
+
/**
|
|
22
|
+
* Language pairs. When omitted, the first pair is seeded from the name in English.
|
|
23
|
+
*/
|
|
24
|
+
'texts'?: Array<PromoTextPairDto>;
|
|
25
|
+
/**
|
|
26
|
+
* Acting user, supplied by the auctioneer
|
|
27
|
+
*/
|
|
28
|
+
'user_id': string;
|
|
29
|
+
|
|
30
|
+
static discriminator: string | undefined = undefined;
|
|
31
|
+
|
|
32
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
33
|
+
{
|
|
34
|
+
"name": "name",
|
|
35
|
+
"baseName": "name",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "texts",
|
|
40
|
+
"baseName": "texts",
|
|
41
|
+
"type": "Array<PromoTextPairDto>"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "user_id",
|
|
45
|
+
"baseName": "user_id",
|
|
46
|
+
"type": "string"
|
|
47
|
+
} ];
|
|
48
|
+
|
|
49
|
+
static getAttributeTypeMap() {
|
|
50
|
+
return CreatePromoTextDto.attributeTypeMap;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
package/model/models.ts
CHANGED
|
@@ -2,15 +2,19 @@ import localVarRequest from 'request';
|
|
|
2
2
|
|
|
3
3
|
export * from './addFutureBidDto';
|
|
4
4
|
export * from './addMatchedDeliveryDateDto';
|
|
5
|
+
export * from './archivePromoTextDto';
|
|
5
6
|
export * from './associatedCostDto';
|
|
6
7
|
export * from './bulkAddRelistingDto';
|
|
7
8
|
export * from './bulkAddTertiaryCostsDto';
|
|
9
|
+
export * from './bulkCancelPromotionDto';
|
|
10
|
+
export * from './bulkChangeDestinationLocationDto';
|
|
8
11
|
export * from './bulkChangeFreightRatesDto';
|
|
9
12
|
export * from './bulkChangeIncotermDto';
|
|
10
13
|
export * from './bulkChangeSellPriceItemDto';
|
|
11
14
|
export * from './bulkChangeSellPricesDto';
|
|
12
15
|
export * from './bulkChangeSellingTraderDto';
|
|
13
16
|
export * from './bulkDeleteBuyerSpecialInstructionsDto';
|
|
17
|
+
export * from './bulkPromoteDto';
|
|
14
18
|
export * from './bulkUpdateBuyerSpecialInstructionsDto';
|
|
15
19
|
export * from './bulkUpdateDeliveryDatesDto';
|
|
16
20
|
export * from './bulkUpdateDocsCountryDto';
|
|
@@ -32,6 +36,7 @@ export * from './createOfferDtoAttributes';
|
|
|
32
36
|
export * from './createOfferDtoFormula';
|
|
33
37
|
export * from './createOfferDtoPacking';
|
|
34
38
|
export * from './createOfferDtoWeight';
|
|
39
|
+
export * from './createPromoTextDto';
|
|
35
40
|
export * from './defaultCostDto';
|
|
36
41
|
export * from './formulaDto';
|
|
37
42
|
export * from './formulaLineDto';
|
|
@@ -46,12 +51,15 @@ export * from './overwriteItemDto';
|
|
|
46
51
|
export * from './overwriteItemDtoWeight';
|
|
47
52
|
export * from './packing';
|
|
48
53
|
export * from './pinActionDto';
|
|
54
|
+
export * from './promoTextPairDto';
|
|
49
55
|
export * from './relistingConfigDto';
|
|
50
56
|
export * from './relistingDetailDto';
|
|
51
57
|
export * from './relistingDetailDtoRandomConfig';
|
|
52
58
|
export * from './relistingRandomConfigDto';
|
|
59
|
+
export * from './searchPromoTextDto';
|
|
53
60
|
export * from './updateFutureBidDto';
|
|
54
61
|
export * from './updateMatchedDeliveryDateDto';
|
|
62
|
+
export * from './updatePromoTextDto';
|
|
55
63
|
export * from './userPin';
|
|
56
64
|
export * from './weight';
|
|
57
65
|
export * from './weightDto';
|
|
@@ -71,15 +79,19 @@ export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
|
|
71
79
|
|
|
72
80
|
import { AddFutureBidDto } from './addFutureBidDto';
|
|
73
81
|
import { AddMatchedDeliveryDateDto } from './addMatchedDeliveryDateDto';
|
|
82
|
+
import { ArchivePromoTextDto } from './archivePromoTextDto';
|
|
74
83
|
import { AssociatedCostDto } from './associatedCostDto';
|
|
75
84
|
import { BulkAddRelistingDto } from './bulkAddRelistingDto';
|
|
76
85
|
import { BulkAddTertiaryCostsDto } from './bulkAddTertiaryCostsDto';
|
|
86
|
+
import { BulkCancelPromotionDto } from './bulkCancelPromotionDto';
|
|
87
|
+
import { BulkChangeDestinationLocationDto } from './bulkChangeDestinationLocationDto';
|
|
77
88
|
import { BulkChangeFreightRatesDto } from './bulkChangeFreightRatesDto';
|
|
78
89
|
import { BulkChangeIncotermDto } from './bulkChangeIncotermDto';
|
|
79
90
|
import { BulkChangeSellPriceItemDto } from './bulkChangeSellPriceItemDto';
|
|
80
91
|
import { BulkChangeSellPricesDto } from './bulkChangeSellPricesDto';
|
|
81
92
|
import { BulkChangeSellingTraderDto } from './bulkChangeSellingTraderDto';
|
|
82
93
|
import { BulkDeleteBuyerSpecialInstructionsDto } from './bulkDeleteBuyerSpecialInstructionsDto';
|
|
94
|
+
import { BulkPromoteDto } from './bulkPromoteDto';
|
|
83
95
|
import { BulkUpdateBuyerSpecialInstructionsDto } from './bulkUpdateBuyerSpecialInstructionsDto';
|
|
84
96
|
import { BulkUpdateDeliveryDatesDto } from './bulkUpdateDeliveryDatesDto';
|
|
85
97
|
import { BulkUpdateDocsCountryDto } from './bulkUpdateDocsCountryDto';
|
|
@@ -101,6 +113,7 @@ import { CreateOfferDtoAttributes } from './createOfferDtoAttributes';
|
|
|
101
113
|
import { CreateOfferDtoFormula } from './createOfferDtoFormula';
|
|
102
114
|
import { CreateOfferDtoPacking } from './createOfferDtoPacking';
|
|
103
115
|
import { CreateOfferDtoWeight } from './createOfferDtoWeight';
|
|
116
|
+
import { CreatePromoTextDto } from './createPromoTextDto';
|
|
104
117
|
import { DefaultCostDto } from './defaultCostDto';
|
|
105
118
|
import { FormulaDto } from './formulaDto';
|
|
106
119
|
import { FormulaLineDto } from './formulaLineDto';
|
|
@@ -115,12 +128,15 @@ import { OverwriteItemDto } from './overwriteItemDto';
|
|
|
115
128
|
import { OverwriteItemDtoWeight } from './overwriteItemDtoWeight';
|
|
116
129
|
import { Packing } from './packing';
|
|
117
130
|
import { PinActionDto } from './pinActionDto';
|
|
131
|
+
import { PromoTextPairDto } from './promoTextPairDto';
|
|
118
132
|
import { RelistingConfigDto } from './relistingConfigDto';
|
|
119
133
|
import { RelistingDetailDto } from './relistingDetailDto';
|
|
120
134
|
import { RelistingDetailDtoRandomConfig } from './relistingDetailDtoRandomConfig';
|
|
121
135
|
import { RelistingRandomConfigDto } from './relistingRandomConfigDto';
|
|
136
|
+
import { SearchPromoTextDto } from './searchPromoTextDto';
|
|
122
137
|
import { UpdateFutureBidDto } from './updateFutureBidDto';
|
|
123
138
|
import { UpdateMatchedDeliveryDateDto } from './updateMatchedDeliveryDateDto';
|
|
139
|
+
import { UpdatePromoTextDto } from './updatePromoTextDto';
|
|
124
140
|
import { UserPin } from './userPin';
|
|
125
141
|
import { Weight } from './weight';
|
|
126
142
|
import { WeightDto } from './weightDto';
|
|
@@ -148,21 +164,26 @@ let enumsMap: {[index: string]: any} = {
|
|
|
148
164
|
"CreateOfferDtoAttributes.DeliveryPreferenceEnum": CreateOfferDtoAttributes.DeliveryPreferenceEnum,
|
|
149
165
|
"MatchedOfferAttributesDto.DeliveryPreferenceEnum": MatchedOfferAttributesDto.DeliveryPreferenceEnum,
|
|
150
166
|
"OfferAttributesDto.DeliveryPreferenceEnum": OfferAttributesDto.DeliveryPreferenceEnum,
|
|
167
|
+
"PromoTextPairDto.LanguageEnum": PromoTextPairDto.LanguageEnum,
|
|
151
168
|
"RelistingDetailDto.StatusEnum": RelistingDetailDto.StatusEnum,
|
|
152
169
|
}
|
|
153
170
|
|
|
154
171
|
let typeMap: {[index: string]: any} = {
|
|
155
172
|
"AddFutureBidDto": AddFutureBidDto,
|
|
156
173
|
"AddMatchedDeliveryDateDto": AddMatchedDeliveryDateDto,
|
|
174
|
+
"ArchivePromoTextDto": ArchivePromoTextDto,
|
|
157
175
|
"AssociatedCostDto": AssociatedCostDto,
|
|
158
176
|
"BulkAddRelistingDto": BulkAddRelistingDto,
|
|
159
177
|
"BulkAddTertiaryCostsDto": BulkAddTertiaryCostsDto,
|
|
178
|
+
"BulkCancelPromotionDto": BulkCancelPromotionDto,
|
|
179
|
+
"BulkChangeDestinationLocationDto": BulkChangeDestinationLocationDto,
|
|
160
180
|
"BulkChangeFreightRatesDto": BulkChangeFreightRatesDto,
|
|
161
181
|
"BulkChangeIncotermDto": BulkChangeIncotermDto,
|
|
162
182
|
"BulkChangeSellPriceItemDto": BulkChangeSellPriceItemDto,
|
|
163
183
|
"BulkChangeSellPricesDto": BulkChangeSellPricesDto,
|
|
164
184
|
"BulkChangeSellingTraderDto": BulkChangeSellingTraderDto,
|
|
165
185
|
"BulkDeleteBuyerSpecialInstructionsDto": BulkDeleteBuyerSpecialInstructionsDto,
|
|
186
|
+
"BulkPromoteDto": BulkPromoteDto,
|
|
166
187
|
"BulkUpdateBuyerSpecialInstructionsDto": BulkUpdateBuyerSpecialInstructionsDto,
|
|
167
188
|
"BulkUpdateDeliveryDatesDto": BulkUpdateDeliveryDatesDto,
|
|
168
189
|
"BulkUpdateDocsCountryDto": BulkUpdateDocsCountryDto,
|
|
@@ -184,6 +205,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
184
205
|
"CreateOfferDtoFormula": CreateOfferDtoFormula,
|
|
185
206
|
"CreateOfferDtoPacking": CreateOfferDtoPacking,
|
|
186
207
|
"CreateOfferDtoWeight": CreateOfferDtoWeight,
|
|
208
|
+
"CreatePromoTextDto": CreatePromoTextDto,
|
|
187
209
|
"DefaultCostDto": DefaultCostDto,
|
|
188
210
|
"FormulaDto": FormulaDto,
|
|
189
211
|
"FormulaLineDto": FormulaLineDto,
|
|
@@ -198,12 +220,15 @@ let typeMap: {[index: string]: any} = {
|
|
|
198
220
|
"OverwriteItemDtoWeight": OverwriteItemDtoWeight,
|
|
199
221
|
"Packing": Packing,
|
|
200
222
|
"PinActionDto": PinActionDto,
|
|
223
|
+
"PromoTextPairDto": PromoTextPairDto,
|
|
201
224
|
"RelistingConfigDto": RelistingConfigDto,
|
|
202
225
|
"RelistingDetailDto": RelistingDetailDto,
|
|
203
226
|
"RelistingDetailDtoRandomConfig": RelistingDetailDtoRandomConfig,
|
|
204
227
|
"RelistingRandomConfigDto": RelistingRandomConfigDto,
|
|
228
|
+
"SearchPromoTextDto": SearchPromoTextDto,
|
|
205
229
|
"UpdateFutureBidDto": UpdateFutureBidDto,
|
|
206
230
|
"UpdateMatchedDeliveryDateDto": UpdateMatchedDeliveryDateDto,
|
|
231
|
+
"UpdatePromoTextDto": UpdatePromoTextDto,
|
|
207
232
|
"UserPin": UserPin,
|
|
208
233
|
"Weight": Weight,
|
|
209
234
|
"WeightDto": WeightDto,
|
|
@@ -0,0 +1,60 @@
|
|
|
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 PromoTextPairDto {
|
|
16
|
+
/**
|
|
17
|
+
* Existing pair to update. Omitted for a new pair, which is assigned one.
|
|
18
|
+
*/
|
|
19
|
+
'pair_id'?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Promo copy as the buyer sees it
|
|
22
|
+
*/
|
|
23
|
+
'text': string;
|
|
24
|
+
/**
|
|
25
|
+
* Vendor Portal locale
|
|
26
|
+
*/
|
|
27
|
+
'language': PromoTextPairDto.LanguageEnum;
|
|
28
|
+
|
|
29
|
+
static discriminator: string | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
32
|
+
{
|
|
33
|
+
"name": "pair_id",
|
|
34
|
+
"baseName": "pair_id",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "text",
|
|
39
|
+
"baseName": "text",
|
|
40
|
+
"type": "string"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "language",
|
|
44
|
+
"baseName": "language",
|
|
45
|
+
"type": "PromoTextPairDto.LanguageEnum"
|
|
46
|
+
} ];
|
|
47
|
+
|
|
48
|
+
static getAttributeTypeMap() {
|
|
49
|
+
return PromoTextPairDto.attributeTypeMap;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export namespace PromoTextPairDto {
|
|
54
|
+
export enum LanguageEnum {
|
|
55
|
+
En = <any> 'en',
|
|
56
|
+
EsMx = <any> 'es-mx',
|
|
57
|
+
FrCa = <any> 'fr-ca',
|
|
58
|
+
ZhCn = <any> 'zh-cn'
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -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 SearchPromoTextDto {
|
|
16
|
+
/**
|
|
17
|
+
* Archived promo texts. Defaults to false — the trader dropdown never shows them.
|
|
18
|
+
*/
|
|
19
|
+
'archived'?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Case-insensitive match on the promo name
|
|
22
|
+
*/
|
|
23
|
+
'name'?: string;
|
|
24
|
+
|
|
25
|
+
static discriminator: string | undefined = undefined;
|
|
26
|
+
|
|
27
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
28
|
+
{
|
|
29
|
+
"name": "archived",
|
|
30
|
+
"baseName": "archived",
|
|
31
|
+
"type": "boolean"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "name",
|
|
35
|
+
"baseName": "name",
|
|
36
|
+
"type": "string"
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return SearchPromoTextDto.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { PromoTextPairDto } from './promoTextPairDto';
|
|
15
|
+
|
|
16
|
+
export class UpdatePromoTextDto {
|
|
17
|
+
'name'?: string;
|
|
18
|
+
'texts'?: Array<PromoTextPairDto>;
|
|
19
|
+
/**
|
|
20
|
+
* Acting user, supplied by the auctioneer
|
|
21
|
+
*/
|
|
22
|
+
'user_id': string;
|
|
23
|
+
|
|
24
|
+
static discriminator: string | undefined = undefined;
|
|
25
|
+
|
|
26
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
27
|
+
{
|
|
28
|
+
"name": "name",
|
|
29
|
+
"baseName": "name",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "texts",
|
|
34
|
+
"baseName": "texts",
|
|
35
|
+
"type": "Array<PromoTextPairDto>"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "user_id",
|
|
39
|
+
"baseName": "user_id",
|
|
40
|
+
"type": "string"
|
|
41
|
+
} ];
|
|
42
|
+
|
|
43
|
+
static getAttributeTypeMap() {
|
|
44
|
+
return UpdatePromoTextDto.attributeTypeMap;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|