@epilot/pricing-client 3.35.13 → 3.35.14-beta.2

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/dist/openapi.d.ts CHANGED
@@ -97,6 +97,18 @@ declare namespace Components {
97
97
  * The cashback amount as a string with all the decimal places.
98
98
  */
99
99
  cashback_amount_decimal?: string;
100
+ /**
101
+ * The cashback period, for now it's limited to either 0 months or 12 months
102
+ */
103
+ cashback_period?: "0" | "12";
104
+ /**
105
+ * Total amount after cashback is applied.
106
+ */
107
+ after_cashback_amount_total?: number;
108
+ /**
109
+ * Total amount after cashback is applied as a string with all the decimal places.
110
+ */
111
+ after_cashback_amount_total_decimal?: string;
100
112
  /**
101
113
  * The discount percentage, if the applied coupon had a percentage type.
102
114
  */
@@ -244,6 +256,18 @@ declare namespace Components {
244
256
  * The cashback amount as a string with all the decimal places.
245
257
  */
246
258
  cashback_amount_decimal?: string;
259
+ /**
260
+ * The cashback period, for now it's limited to either 0 months or 12 months
261
+ */
262
+ cashback_period?: "0" | "12";
263
+ /**
264
+ * Total amount after cashback is applied.
265
+ */
266
+ after_cashback_amount_total?: number;
267
+ /**
268
+ * Total amount after cashback is applied as a string with all the decimal places.
269
+ */
270
+ after_cashback_amount_total_decimal?: string;
247
271
  /**
248
272
  * The discount percentage, if the applied coupon had a percentage type.
249
273
  */
@@ -907,6 +931,18 @@ declare namespace Components {
907
931
  * The cashback amount as a string with all the decimal places.
908
932
  */
909
933
  cashback_amount_decimal?: string;
934
+ /**
935
+ * The cashback period, for now it's limited to either 0 months or 12 months
936
+ */
937
+ cashback_period?: "0" | "12";
938
+ /**
939
+ * Total amount after cashback is applied.
940
+ */
941
+ after_cashback_amount_total?: number;
942
+ /**
943
+ * Total amount after cashback is applied as a string with all the decimal places.
944
+ */
945
+ after_cashback_amount_total_decimal?: string;
910
946
  /**
911
947
  * The discount percentage, if the applied coupon had a percentage type.
912
948
  */
@@ -996,6 +1032,19 @@ declare namespace Components {
996
1032
  [name: string]: any;
997
1033
  };
998
1034
  }
1035
+ /**
1036
+ * An amount associated with a specific cashback period.
1037
+ */
1038
+ export interface CashbackAmount {
1039
+ /**
1040
+ * The cashback period, for now it's limited to either 0 months or 12 months
1041
+ */
1042
+ cashback_period?: "0" | "12";
1043
+ /**
1044
+ * The sum of all cashbacks for a specific cashback period
1045
+ */
1046
+ amount_total?: number;
1047
+ }
999
1048
  /**
1000
1049
  * A catalog search payload
1001
1050
  * example:
@@ -1231,6 +1280,18 @@ declare namespace Components {
1231
1280
  * The cashback amount as a string with all the decimal places.
1232
1281
  */
1233
1282
  cashback_amount_decimal?: string;
1283
+ /**
1284
+ * The cashback period, for now it's limited to either 0 months or 12 months
1285
+ */
1286
+ cashback_period?: "0" | "12";
1287
+ /**
1288
+ * Total amount after cashback is applied.
1289
+ */
1290
+ after_cashback_amount_total?: number;
1291
+ /**
1292
+ * Total amount after cashback is applied as a string with all the decimal places.
1293
+ */
1294
+ after_cashback_amount_total_decimal?: string;
1234
1295
  /**
1235
1296
  * The discount percentage, if the applied coupon had a percentage type.
1236
1297
  */
@@ -1992,6 +2053,10 @@ declare namespace Components {
1992
2053
  * EUR
1993
2054
  */
1994
2055
  Currency;
2056
+ /**
2057
+ * The cashback period, for now it's limited to either 0 months or 12 months
2058
+ */
2059
+ cashback_period?: "0" | "12";
1995
2060
  active?: boolean;
1996
2061
  /**
1997
2062
  * The prices associated with the coupon. Will hold price entities if hydrated, relations otherwise.
@@ -2075,13 +2140,6 @@ declare namespace Components {
2075
2140
  */
2076
2141
  cause?: string;
2077
2142
  }
2078
- /**
2079
- * An external product & price information (already computed) from an external catalog.
2080
- */
2081
- export interface ExternalCatalogItem {
2082
- pricing_details: /* The result from the calculation of a set of price items. */ PricingDetails;
2083
- _meta: /* Signature meta data payload */ SignatureMeta;
2084
- }
2085
2143
  export interface ExternalCompositePrice {
2086
2144
  /**
2087
2145
  * Fees structure with static and variable amounts
@@ -2330,6 +2388,74 @@ declare namespace Components {
2330
2388
  }[];
2331
2389
  };
2332
2390
  }
2391
+ /**
2392
+ * An external product & price information (already computed) from an external catalog.
2393
+ */
2394
+ export interface ExternalProduct {
2395
+ /**
2396
+ * The ID of the product in the external catalog.
2397
+ */
2398
+ id: string;
2399
+ /**
2400
+ * The name of the product.
2401
+ */
2402
+ name: string;
2403
+ /**
2404
+ * A description of the product.
2405
+ */
2406
+ description?: string;
2407
+ /**
2408
+ * A list of features of the product.
2409
+ */
2410
+ features?: string[];
2411
+ /**
2412
+ * A list of image URLs of the product. RECOMMENDED: Store files in Epilot for advantages such as resizing, versioning, easy access, and maintenance.
2413
+ *
2414
+ */
2415
+ product_image_urls?: string[];
2416
+ /**
2417
+ * A list of file/attachment URLs of the product RECOMMENDED: Store files in Epilot for advantages such as resizing, versioning, easy access, and maintenance.
2418
+ *
2419
+ */
2420
+ product_downloads_urls?: string[];
2421
+ /**
2422
+ * Legal footnotes for the product.
2423
+ */
2424
+ legal_footnotes?: string;
2425
+ /**
2426
+ * Additional notes for the product.
2427
+ */
2428
+ additional_notes?: string[];
2429
+ /**
2430
+ * Recommendation settings for the product.
2431
+ * example:
2432
+ * {
2433
+ * "is_recommended": true,
2434
+ * "recommended_label": "Best Value",
2435
+ * "recommended_color": "#00FF00",
2436
+ * "recommended_label_color": "#FFFFFF"
2437
+ * }
2438
+ */
2439
+ recommendation_settings?: {
2440
+ /**
2441
+ * Flag to enable or disable the recommendation for this product.
2442
+ */
2443
+ is_recommended?: boolean;
2444
+ /**
2445
+ * Label to display when the product is recommended.
2446
+ */
2447
+ recommended_label?: string;
2448
+ /**
2449
+ * Color to display when the product is recommended.
2450
+ */
2451
+ recommended_color?: string;
2452
+ /**
2453
+ * Color of the recommended label.
2454
+ */
2455
+ recommended_label_color?: string;
2456
+ };
2457
+ price: ExternalSimplePrice | ExternalCompositePrice;
2458
+ }
2333
2459
  export interface ExternalSimplePrice {
2334
2460
  /**
2335
2461
  * Fees structure with static and variable amounts
@@ -3355,6 +3481,18 @@ declare namespace Components {
3355
3481
  * The cashback amount as a string with all the decimal places.
3356
3482
  */
3357
3483
  cashback_amount_decimal?: string;
3484
+ /**
3485
+ * The cashback period, for now it's limited to either 0 months or 12 months
3486
+ */
3487
+ cashback_period?: "0" | "12";
3488
+ /**
3489
+ * Total amount after cashback is applied.
3490
+ */
3491
+ after_cashback_amount_total?: number;
3492
+ /**
3493
+ * Total amount after cashback is applied as a string with all the decimal places.
3494
+ */
3495
+ after_cashback_amount_total_decimal?: string;
3358
3496
  /**
3359
3497
  * The discount percentage, if the applied coupon had a percentage type.
3360
3498
  */
@@ -4346,6 +4484,18 @@ declare namespace Components {
4346
4484
  * The cashback amount as a string with all the decimal places.
4347
4485
  */
4348
4486
  cashback_amount_decimal?: string;
4487
+ /**
4488
+ * The cashback period, for now it's limited to either 0 months or 12 months
4489
+ */
4490
+ cashback_period?: "0" | "12";
4491
+ /**
4492
+ * Total amount after cashback is applied.
4493
+ */
4494
+ after_cashback_amount_total?: number;
4495
+ /**
4496
+ * Total amount after cashback is applied as a string with all the decimal places.
4497
+ */
4498
+ after_cashback_amount_total_decimal?: string;
4349
4499
  /**
4350
4500
  * The discount percentage, if the applied coupon had a percentage type.
4351
4501
  */
@@ -4423,6 +4573,18 @@ declare namespace Components {
4423
4573
  * The cashback amount as a string with all the decimal places.
4424
4574
  */
4425
4575
  cashback_amount_decimal?: string;
4576
+ /**
4577
+ * The cashback period, for now it's limited to either 0 months or 12 months
4578
+ */
4579
+ cashback_period?: "0" | "12";
4580
+ /**
4581
+ * Total amount after cashback is applied.
4582
+ */
4583
+ after_cashback_amount_total?: number;
4584
+ /**
4585
+ * Total amount after cashback is applied as a string with all the decimal places.
4586
+ */
4587
+ after_cashback_amount_total_decimal?: string;
4426
4588
  /**
4427
4589
  * The discount percentage, if the applied coupon had a percentage type.
4428
4590
  */
@@ -4497,7 +4659,7 @@ declare namespace Components {
4497
4659
  * The number os results returned.
4498
4660
  */
4499
4661
  hits: number;
4500
- results: /* An external product & price information (already computed) from an external catalog. */ ExternalCatalogItem[];
4662
+ results: /* An external product & price information (already computed) from an external catalog. */ ExternalProduct[];
4501
4663
  }
4502
4664
  /**
4503
4665
  * A search providers payload
@@ -4744,6 +4906,10 @@ declare namespace Components {
4744
4906
  * The aggregated price items tax amount per rate.
4745
4907
  */
4746
4908
  recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
4909
+ /**
4910
+ * The list of cashback sums for each cashback period.
4911
+ */
4912
+ cashbacks?: (/* An amount associated with a specific cashback period. */ CashbackAmount)[];
4747
4913
  /**
4748
4914
  * The aggregated price items recurrences by tax rate
4749
4915
  */
@@ -5471,6 +5637,7 @@ export type BasicAuthCredentials = Components.Schemas.BasicAuthCredentials;
5471
5637
  export type BillingPeriod = Components.Schemas.BillingPeriod;
5472
5638
  export type Cart = Components.Schemas.Cart;
5473
5639
  export type CartDto = Components.Schemas.CartDto;
5640
+ export type CashbackAmount = Components.Schemas.CashbackAmount;
5474
5641
  export type CatalogSearch = Components.Schemas.CatalogSearch;
5475
5642
  export type CatalogSearchResult = Components.Schemas.CatalogSearchResult;
5476
5643
  export type CheckoutCart = Components.Schemas.CheckoutCart;
@@ -5495,13 +5662,13 @@ export type EntityId = Components.Schemas.EntityId;
5495
5662
  export type EntityItem = Components.Schemas.EntityItem;
5496
5663
  export type EntityRelation = Components.Schemas.EntityRelation;
5497
5664
  export type Error = Components.Schemas.Error;
5498
- export type ExternalCatalogItem = Components.Schemas.ExternalCatalogItem;
5499
5665
  export type ExternalCompositePrice = Components.Schemas.ExternalCompositePrice;
5500
5666
  export type ExternalFeeMapping = Components.Schemas.ExternalFeeMapping;
5501
5667
  export type ExternalFeeMappings = Components.Schemas.ExternalFeeMappings;
5502
5668
  export type ExternalFeeMetadata = Components.Schemas.ExternalFeeMetadata;
5503
5669
  export type ExternalPriceFees = Components.Schemas.ExternalPriceFees;
5504
5670
  export type ExternalPriceTotalDetails = Components.Schemas.ExternalPriceTotalDetails;
5671
+ export type ExternalProduct = Components.Schemas.ExternalProduct;
5505
5672
  export type ExternalSimplePrice = Components.Schemas.ExternalSimplePrice;
5506
5673
  export type File = Components.Schemas.File;
5507
5674
  export type GasConcessionType = Components.Schemas.GasConcessionType;
package/dist/openapi.json CHANGED
@@ -4099,6 +4099,24 @@
4099
4099
  "description": "The cashback amount as a string with all the decimal places.",
4100
4100
  "readOnly": true
4101
4101
  },
4102
+ "cashback_period": {
4103
+ "type": "string",
4104
+ "description": "The cashback period, for now it's limited to either 0 months or 12 months",
4105
+ "enum": [
4106
+ "0",
4107
+ "12"
4108
+ ]
4109
+ },
4110
+ "after_cashback_amount_total": {
4111
+ "type": "integer",
4112
+ "description": "Total amount after cashback is applied.",
4113
+ "readOnly": true
4114
+ },
4115
+ "after_cashback_amount_total_decimal": {
4116
+ "type": "string",
4117
+ "description": "Total amount after cashback is applied as a string with all the decimal places.",
4118
+ "readOnly": true
4119
+ },
4102
4120
  "discount_percentage": {
4103
4121
  "type": "integer",
4104
4122
  "description": "The discount percentage, if the applied coupon had a percentage type.",
@@ -4267,6 +4285,24 @@
4267
4285
  "amount_total_decimal"
4268
4286
  ]
4269
4287
  },
4288
+ "CashbackAmount": {
4289
+ "type": "object",
4290
+ "description": "An amount associated with a specific cashback period.",
4291
+ "properties": {
4292
+ "cashback_period": {
4293
+ "type": "string",
4294
+ "description": "The cashback period, for now it's limited to either 0 months or 12 months",
4295
+ "enum": [
4296
+ "0",
4297
+ "12"
4298
+ ]
4299
+ },
4300
+ "amount_total": {
4301
+ "type": "integer",
4302
+ "description": "The sum of all cashbacks for a specific cashback period"
4303
+ }
4304
+ }
4305
+ },
4270
4306
  "RecurrenceAmountWithTax": {
4271
4307
  "type": "object",
4272
4308
  "description": "An amount associated with a specific recurrence.",
@@ -4354,6 +4390,17 @@
4354
4390
  ]
4355
4391
  }
4356
4392
  },
4393
+ "cashbacks": {
4394
+ "type": "array",
4395
+ "description": "The list of cashback sums for each cashback period.",
4396
+ "items": {
4397
+ "oneOf": [
4398
+ {
4399
+ "$ref": "#/components/schemas/CashbackAmount"
4400
+ }
4401
+ ]
4402
+ }
4403
+ },
4357
4404
  "recurrencesByTax": {
4358
4405
  "type": "array",
4359
4406
  "description": "The aggregated price items recurrences by tax rate",
@@ -4986,6 +5033,14 @@
4986
5033
  }
4987
5034
  ]
4988
5035
  },
5036
+ "cashback_period": {
5037
+ "type": "string",
5038
+ "description": "The cashback period, for now it's limited to either 0 months or 12 months",
5039
+ "enum": [
5040
+ "0",
5041
+ "12"
5042
+ ]
5043
+ },
4989
5044
  "active": {
4990
5045
  "type": "boolean"
4991
5046
  },
@@ -5349,7 +5404,7 @@
5349
5404
  "results": {
5350
5405
  "type": "array",
5351
5406
  "items": {
5352
- "$ref": "#/components/schemas/ExternalCatalogItem"
5407
+ "$ref": "#/components/schemas/ExternalProduct"
5353
5408
  }
5354
5409
  }
5355
5410
  },
@@ -5358,20 +5413,97 @@
5358
5413
  "hits"
5359
5414
  ]
5360
5415
  },
5361
- "ExternalCatalogItem": {
5416
+ "ExternalProduct": {
5362
5417
  "type": "object",
5363
5418
  "description": "An external product & price information (already computed) from an external catalog.",
5364
5419
  "properties": {
5365
- "pricing_details": {
5366
- "$ref": "#/components/schemas/PricingDetails"
5420
+ "id": {
5421
+ "type": "string",
5422
+ "description": "The ID of the product in the external catalog."
5367
5423
  },
5368
- "_meta": {
5369
- "$ref": "#/components/schemas/SignatureMeta"
5424
+ "name": {
5425
+ "type": "string",
5426
+ "description": "The name of the product."
5427
+ },
5428
+ "description": {
5429
+ "type": "string",
5430
+ "description": "A description of the product."
5431
+ },
5432
+ "features": {
5433
+ "type": "array",
5434
+ "description": "A list of features of the product.",
5435
+ "items": {
5436
+ "type": "string"
5437
+ }
5438
+ },
5439
+ "product_image_urls": {
5440
+ "type": "array",
5441
+ "items": {
5442
+ "type": "string"
5443
+ },
5444
+ "description": "A list of image URLs of the product. RECOMMENDED: Store files in Epilot for advantages such as resizing, versioning, easy access, and maintenance.\n"
5445
+ },
5446
+ "product_downloads_urls": {
5447
+ "type": "array",
5448
+ "items": {
5449
+ "type": "string"
5450
+ },
5451
+ "description": "A list of file/attachment URLs of the product RECOMMENDED: Store files in Epilot for advantages such as resizing, versioning, easy access, and maintenance.\n"
5452
+ },
5453
+ "legal_footnotes": {
5454
+ "type": "string",
5455
+ "description": "Legal footnotes for the product."
5456
+ },
5457
+ "additional_notes": {
5458
+ "type": "array",
5459
+ "description": "Additional notes for the product.",
5460
+ "items": {
5461
+ "type": "string"
5462
+ }
5463
+ },
5464
+ "recommendation_settings": {
5465
+ "type": "object",
5466
+ "description": "Recommendation settings for the product.",
5467
+ "properties": {
5468
+ "is_recommended": {
5469
+ "type": "boolean",
5470
+ "description": "Flag to enable or disable the recommendation for this product."
5471
+ },
5472
+ "recommended_label": {
5473
+ "type": "string",
5474
+ "description": "Label to display when the product is recommended."
5475
+ },
5476
+ "recommended_color": {
5477
+ "type": "string",
5478
+ "description": "Color to display when the product is recommended."
5479
+ },
5480
+ "recommended_label_color": {
5481
+ "type": "string",
5482
+ "description": "Color of the recommended label."
5483
+ }
5484
+ },
5485
+ "example": {
5486
+ "is_recommended": true,
5487
+ "recommended_label": "Best Value",
5488
+ "recommended_color": "#00FF00",
5489
+ "recommended_label_color": "#FFFFFF"
5490
+ }
5491
+ },
5492
+ "price": {
5493
+ "oneOf": [
5494
+ {
5495
+ "$ref": "#/components/schemas/ExternalSimplePrice"
5496
+ },
5497
+ {
5498
+ "$ref": "#/components/schemas/ExternalCompositePrice"
5499
+ }
5500
+ ]
5370
5501
  }
5371
5502
  },
5372
5503
  "required": [
5373
- "pricing_details",
5374
- "_meta"
5504
+ "price",
5505
+ "name",
5506
+ "id"
5375
5507
  ]
5376
5508
  },
5377
5509
  "ExternalPriceFees": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.35.13",
3
+ "version": "3.35.14-beta.2",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",