@tradecafe/offer-service-sdk 0.0.51 → 0.0.52

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.
@@ -0,0 +1,52 @@
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 BulkUpdateDocsCountryDto {
16
+ /**
17
+ * List of matched offer IDs to update
18
+ */
19
+ 'ids': Array<string>;
20
+ /**
21
+ * Destination country code to set on the matched offers
22
+ */
23
+ 'docs_country': string;
24
+ /**
25
+ * User performing the update
26
+ */
27
+ 'user_id': string;
28
+
29
+ static discriminator: string | undefined = undefined;
30
+
31
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
32
+ {
33
+ "name": "ids",
34
+ "baseName": "ids",
35
+ "type": "Array<string>"
36
+ },
37
+ {
38
+ "name": "docs_country",
39
+ "baseName": "docs_country",
40
+ "type": "string"
41
+ },
42
+ {
43
+ "name": "user_id",
44
+ "baseName": "user_id",
45
+ "type": "string"
46
+ } ];
47
+
48
+ static getAttributeTypeMap() {
49
+ return BulkUpdateDocsCountryDto.attributeTypeMap;
50
+ }
51
+ }
52
+
@@ -240,6 +240,10 @@ export class CreateAutomatedOfferDto {
240
240
  */
241
241
  'attachment_file_ids'?: Array<string>;
242
242
  /**
243
+ * Which of attachment_file_ids is the product pic shown on Vendor Portal offer cards
244
+ */
245
+ 'product_pic_file_id'?: string;
246
+ /**
243
247
  * Skip cost matching flag
244
248
  */
245
249
  'skip_cost_matching'?: boolean;
@@ -585,6 +589,11 @@ export class CreateAutomatedOfferDto {
585
589
  "baseName": "attachment_file_ids",
586
590
  "type": "Array<string>"
587
591
  },
592
+ {
593
+ "name": "product_pic_file_id",
594
+ "baseName": "product_pic_file_id",
595
+ "type": "string"
596
+ },
588
597
  {
589
598
  "name": "skip_cost_matching",
590
599
  "baseName": "skip_cost_matching",
@@ -239,6 +239,10 @@ export class CreateOfferDto {
239
239
  */
240
240
  'attachment_file_ids'?: Array<string>;
241
241
  /**
242
+ * Which of attachment_file_ids is the product pic shown on Vendor Portal offer cards
243
+ */
244
+ 'product_pic_file_id'?: string;
245
+ /**
242
246
  * Skip cost matching flag
243
247
  */
244
248
  'skip_cost_matching'?: boolean;
@@ -576,6 +580,11 @@ export class CreateOfferDto {
576
580
  "baseName": "attachment_file_ids",
577
581
  "type": "Array<string>"
578
582
  },
583
+ {
584
+ "name": "product_pic_file_id",
585
+ "baseName": "product_pic_file_id",
586
+ "type": "string"
587
+ },
579
588
  {
580
589
  "name": "skip_cost_matching",
581
590
  "baseName": "skip_cost_matching",
@@ -109,6 +109,14 @@ export class CreateOfferDtoAttributes {
109
109
  */
110
110
  'future_bid_price'?: number;
111
111
  /**
112
+ * Revised index price used to derive the supplier/buyer flat prices when a flat matched offer is created out of a formula deal (WA-22049). It is not an actual index price.
113
+ */
114
+ 'index_price'?: number;
115
+ /**
116
+ * Request Proforma Needed on the matched offers generated out of this offer
117
+ */
118
+ 'proforma_needed'?: boolean;
119
+ /**
112
120
  * Supplier payment terms
113
121
  */
114
122
  'supplier_payment_terms'?: object;
@@ -247,6 +255,16 @@ export class CreateOfferDtoAttributes {
247
255
  "baseName": "future_bid_price",
248
256
  "type": "number"
249
257
  },
258
+ {
259
+ "name": "index_price",
260
+ "baseName": "index_price",
261
+ "type": "number"
262
+ },
263
+ {
264
+ "name": "proforma_needed",
265
+ "baseName": "proforma_needed",
266
+ "type": "boolean"
267
+ },
250
268
  {
251
269
  "name": "supplier_payment_terms",
252
270
  "baseName": "supplier_payment_terms",
package/model/models.ts CHANGED
@@ -7,6 +7,7 @@ export * from './bulkAddRelistingDto';
7
7
  export * from './bulkAddTertiaryCostsDto';
8
8
  export * from './bulkChangeFreightRatesDto';
9
9
  export * from './bulkUpdateDeliveryDatesDto';
10
+ export * from './bulkUpdateDocsCountryDto';
10
11
  export * from './bulkUpdateMatchedDeliveryDatesDto';
11
12
  export * from './costAmountDto';
12
13
  export * from './costAttributesDto';
@@ -69,6 +70,7 @@ import { BulkAddRelistingDto } from './bulkAddRelistingDto';
69
70
  import { BulkAddTertiaryCostsDto } from './bulkAddTertiaryCostsDto';
70
71
  import { BulkChangeFreightRatesDto } from './bulkChangeFreightRatesDto';
71
72
  import { BulkUpdateDeliveryDatesDto } from './bulkUpdateDeliveryDatesDto';
73
+ import { BulkUpdateDocsCountryDto } from './bulkUpdateDocsCountryDto';
72
74
  import { BulkUpdateMatchedDeliveryDatesDto } from './bulkUpdateMatchedDeliveryDatesDto';
73
75
  import { CostAmountDto } from './costAmountDto';
74
76
  import { CostAttributesDto } from './costAttributesDto';
@@ -145,6 +147,7 @@ let typeMap: {[index: string]: any} = {
145
147
  "BulkAddTertiaryCostsDto": BulkAddTertiaryCostsDto,
146
148
  "BulkChangeFreightRatesDto": BulkChangeFreightRatesDto,
147
149
  "BulkUpdateDeliveryDatesDto": BulkUpdateDeliveryDatesDto,
150
+ "BulkUpdateDocsCountryDto": BulkUpdateDocsCountryDto,
148
151
  "BulkUpdateMatchedDeliveryDatesDto": BulkUpdateMatchedDeliveryDatesDto,
149
152
  "CostAmountDto": CostAmountDto,
150
153
  "CostAttributesDto": CostAttributesDto,
@@ -105,6 +105,14 @@ export class OfferAttributesDto {
105
105
  */
106
106
  'future_bid_price'?: number;
107
107
  /**
108
+ * Revised index price used to derive the supplier/buyer flat prices when a flat matched offer is created out of a formula deal (WA-22049). It is not an actual index price.
109
+ */
110
+ 'index_price'?: number;
111
+ /**
112
+ * Request Proforma Needed on the matched offers generated out of this offer
113
+ */
114
+ 'proforma_needed'?: boolean;
115
+ /**
108
116
  * Supplier payment terms
109
117
  */
110
118
  'supplier_payment_terms'?: object;
@@ -243,6 +251,16 @@ export class OfferAttributesDto {
243
251
  "baseName": "future_bid_price",
244
252
  "type": "number"
245
253
  },
254
+ {
255
+ "name": "index_price",
256
+ "baseName": "index_price",
257
+ "type": "number"
258
+ },
259
+ {
260
+ "name": "proforma_needed",
261
+ "baseName": "proforma_needed",
262
+ "type": "boolean"
263
+ },
246
264
  {
247
265
  "name": "supplier_payment_terms",
248
266
  "baseName": "supplier_payment_terms",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradecafe/offer-service-sdk",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "description": "NodeJS client for @tradecafe/offer-service-sdk",
5
5
  "repository": {
6
6
  "type": "git",