@tradecafe/offer-service-sdk 0.0.47 → 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.
@@ -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 BulkUpdateDeliveryDatesDto {
16
+ /**
17
+ * IDs of matched offers to update
18
+ */
19
+ 'ids': Array<string>;
20
+ /**
21
+ * Delivery start date as unix timestamp
22
+ */
23
+ 'from': number;
24
+ /**
25
+ * Delivery end date as unix timestamp
26
+ */
27
+ 'to': number;
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": "from",
39
+ "baseName": "from",
40
+ "type": "number"
41
+ },
42
+ {
43
+ "name": "to",
44
+ "baseName": "to",
45
+ "type": "number"
46
+ } ];
47
+
48
+ static getAttributeTypeMap() {
49
+ return BulkUpdateDeliveryDatesDto.attributeTypeMap;
50
+ }
51
+ }
52
+
@@ -0,0 +1,34 @@
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 CostAmountDto {
16
+ /**
17
+ * Total amount in CAD
18
+ */
19
+ 'total'?: number;
20
+
21
+ static discriminator: string | undefined = undefined;
22
+
23
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
24
+ {
25
+ "name": "total",
26
+ "baseName": "total",
27
+ "type": "number"
28
+ } ];
29
+
30
+ static getAttributeTypeMap() {
31
+ return CostAmountDto.attributeTypeMap;
32
+ }
33
+ }
34
+
@@ -0,0 +1,86 @@
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 { CostDtoSource } from './costDtoSource';
15
+
16
+ export class CostDto {
17
+ /**
18
+ * Cost ID
19
+ */
20
+ 'type'?: string;
21
+ /**
22
+ * Cost provider
23
+ */
24
+ 'product_id'?: string;
25
+ /**
26
+ * Cost attributes
27
+ */
28
+ 'attributes'?: object | null;
29
+ /**
30
+ * Cost status
31
+ */
32
+ 'updated_by'?: string;
33
+ 'source'?: CostDtoSource;
34
+ /**
35
+ * Product ID
36
+ */
37
+ 'ID'?: string;
38
+ /**
39
+ * Creator ID
40
+ */
41
+ 'creator_id'?: string;
42
+
43
+ static discriminator: string | undefined = undefined;
44
+
45
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
46
+ {
47
+ "name": "type",
48
+ "baseName": "type",
49
+ "type": "string"
50
+ },
51
+ {
52
+ "name": "product_id",
53
+ "baseName": "product_id",
54
+ "type": "string"
55
+ },
56
+ {
57
+ "name": "attributes",
58
+ "baseName": "attributes",
59
+ "type": "object"
60
+ },
61
+ {
62
+ "name": "updated_by",
63
+ "baseName": "updated_by",
64
+ "type": "string"
65
+ },
66
+ {
67
+ "name": "source",
68
+ "baseName": "source",
69
+ "type": "CostDtoSource"
70
+ },
71
+ {
72
+ "name": "ID",
73
+ "baseName": "ID",
74
+ "type": "string"
75
+ },
76
+ {
77
+ "name": "creator_id",
78
+ "baseName": "creator_id",
79
+ "type": "string"
80
+ } ];
81
+
82
+ static getAttributeTypeMap() {
83
+ return CostDto.attributeTypeMap;
84
+ }
85
+ }
86
+
@@ -0,0 +1,38 @@
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 { CostAmountDto } from './costAmountDto';
15
+
16
+ /**
17
+ * Cost amount information
18
+ */
19
+ export class CostDtoSource {
20
+ /**
21
+ * Total amount in CAD
22
+ */
23
+ 'total'?: number;
24
+
25
+ static discriminator: string | undefined = undefined;
26
+
27
+ static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
28
+ {
29
+ "name": "total",
30
+ "baseName": "total",
31
+ "type": "number"
32
+ } ];
33
+
34
+ static getAttributeTypeMap() {
35
+ return CostDtoSource.attributeTypeMap;
36
+ }
37
+ }
38
+
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';
@@ -111,6 +121,11 @@ let typeMap: {[index: string]: any} = {
111
121
  "AddFutureBidDto": AddFutureBidDto,
112
122
  "AddMatchedDeliveryDateDto": AddMatchedDeliveryDateDto,
113
123
  "BulkAddRelistingDto": BulkAddRelistingDto,
124
+ "BulkAddTertiaryCostsDto": BulkAddTertiaryCostsDto,
125
+ "BulkUpdateDeliveryDatesDto": BulkUpdateDeliveryDatesDto,
126
+ "CostAmountDto": CostAmountDto,
127
+ "CostDto": CostDto,
128
+ "CostDtoSource": CostDtoSource,
114
129
  "CreateAutomatedOfferDto": CreateAutomatedOfferDto,
115
130
  "CreateMatchedOfferDto": CreateMatchedOfferDto,
116
131
  "CreateMatchedOfferDtoAttributes": CreateMatchedOfferDtoAttributes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tradecafe/offer-service-sdk",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "NodeJS client for @tradecafe/offer-service-sdk",
5
5
  "repository": {
6
6
  "type": "git",