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

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
  */
@@ -2075,13 +2136,6 @@ declare namespace Components {
2075
2136
  */
2076
2137
  cause?: string;
2077
2138
  }
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
2139
  export interface ExternalCompositePrice {
2086
2140
  /**
2087
2141
  * Fees structure with static and variable amounts
@@ -2330,6 +2384,74 @@ declare namespace Components {
2330
2384
  }[];
2331
2385
  };
2332
2386
  }
2387
+ /**
2388
+ * An external product & price information (already computed) from an external catalog.
2389
+ */
2390
+ export interface ExternalProduct {
2391
+ /**
2392
+ * The ID of the product in the external catalog.
2393
+ */
2394
+ id: string;
2395
+ /**
2396
+ * The name of the product.
2397
+ */
2398
+ name: string;
2399
+ /**
2400
+ * A description of the product.
2401
+ */
2402
+ description?: string;
2403
+ /**
2404
+ * A list of features of the product.
2405
+ */
2406
+ features?: string[];
2407
+ /**
2408
+ * A list of image URLs of the product. RECOMMENDED: Store files in Epilot for advantages such as resizing, versioning, easy access, and maintenance.
2409
+ *
2410
+ */
2411
+ product_image_urls?: string[];
2412
+ /**
2413
+ * A list of file/attachment URLs of the product RECOMMENDED: Store files in Epilot for advantages such as resizing, versioning, easy access, and maintenance.
2414
+ *
2415
+ */
2416
+ product_downloads_urls?: string[];
2417
+ /**
2418
+ * Legal footnotes for the product.
2419
+ */
2420
+ legal_footnotes?: string;
2421
+ /**
2422
+ * Additional notes for the product.
2423
+ */
2424
+ additional_notes?: string[];
2425
+ /**
2426
+ * Recommendation settings for the product.
2427
+ * example:
2428
+ * {
2429
+ * "is_recommended": true,
2430
+ * "recommended_label": "Best Value",
2431
+ * "recommended_color": "#00FF00",
2432
+ * "recommended_label_color": "#FFFFFF"
2433
+ * }
2434
+ */
2435
+ recommendation_settings?: {
2436
+ /**
2437
+ * Flag to enable or disable the recommendation for this product.
2438
+ */
2439
+ is_recommended?: boolean;
2440
+ /**
2441
+ * Label to display when the product is recommended.
2442
+ */
2443
+ recommended_label?: string;
2444
+ /**
2445
+ * Color to display when the product is recommended.
2446
+ */
2447
+ recommended_color?: string;
2448
+ /**
2449
+ * Color of the recommended label.
2450
+ */
2451
+ recommended_label_color?: string;
2452
+ };
2453
+ price: ExternalSimplePrice | ExternalCompositePrice;
2454
+ }
2333
2455
  export interface ExternalSimplePrice {
2334
2456
  /**
2335
2457
  * Fees structure with static and variable amounts
@@ -3355,6 +3477,18 @@ declare namespace Components {
3355
3477
  * The cashback amount as a string with all the decimal places.
3356
3478
  */
3357
3479
  cashback_amount_decimal?: string;
3480
+ /**
3481
+ * The cashback period, for now it's limited to either 0 months or 12 months
3482
+ */
3483
+ cashback_period?: "0" | "12";
3484
+ /**
3485
+ * Total amount after cashback is applied.
3486
+ */
3487
+ after_cashback_amount_total?: number;
3488
+ /**
3489
+ * Total amount after cashback is applied as a string with all the decimal places.
3490
+ */
3491
+ after_cashback_amount_total_decimal?: string;
3358
3492
  /**
3359
3493
  * The discount percentage, if the applied coupon had a percentage type.
3360
3494
  */
@@ -4346,6 +4480,18 @@ declare namespace Components {
4346
4480
  * The cashback amount as a string with all the decimal places.
4347
4481
  */
4348
4482
  cashback_amount_decimal?: string;
4483
+ /**
4484
+ * The cashback period, for now it's limited to either 0 months or 12 months
4485
+ */
4486
+ cashback_period?: "0" | "12";
4487
+ /**
4488
+ * Total amount after cashback is applied.
4489
+ */
4490
+ after_cashback_amount_total?: number;
4491
+ /**
4492
+ * Total amount after cashback is applied as a string with all the decimal places.
4493
+ */
4494
+ after_cashback_amount_total_decimal?: string;
4349
4495
  /**
4350
4496
  * The discount percentage, if the applied coupon had a percentage type.
4351
4497
  */
@@ -4423,6 +4569,18 @@ declare namespace Components {
4423
4569
  * The cashback amount as a string with all the decimal places.
4424
4570
  */
4425
4571
  cashback_amount_decimal?: string;
4572
+ /**
4573
+ * The cashback period, for now it's limited to either 0 months or 12 months
4574
+ */
4575
+ cashback_period?: "0" | "12";
4576
+ /**
4577
+ * Total amount after cashback is applied.
4578
+ */
4579
+ after_cashback_amount_total?: number;
4580
+ /**
4581
+ * Total amount after cashback is applied as a string with all the decimal places.
4582
+ */
4583
+ after_cashback_amount_total_decimal?: string;
4426
4584
  /**
4427
4585
  * The discount percentage, if the applied coupon had a percentage type.
4428
4586
  */
@@ -4497,7 +4655,7 @@ declare namespace Components {
4497
4655
  * The number os results returned.
4498
4656
  */
4499
4657
  hits: number;
4500
- results: /* An external product & price information (already computed) from an external catalog. */ ExternalCatalogItem[];
4658
+ results: /* An external product & price information (already computed) from an external catalog. */ ExternalProduct[];
4501
4659
  }
4502
4660
  /**
4503
4661
  * A search providers payload
@@ -4744,6 +4902,10 @@ declare namespace Components {
4744
4902
  * The aggregated price items tax amount per rate.
4745
4903
  */
4746
4904
  recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
4905
+ /**
4906
+ * The list of cashback sums for each cashback period.
4907
+ */
4908
+ cashbacks?: (/* An amount associated with a specific cashback period. */ CashbackAmount)[];
4747
4909
  /**
4748
4910
  * The aggregated price items recurrences by tax rate
4749
4911
  */
@@ -5471,6 +5633,7 @@ export type BasicAuthCredentials = Components.Schemas.BasicAuthCredentials;
5471
5633
  export type BillingPeriod = Components.Schemas.BillingPeriod;
5472
5634
  export type Cart = Components.Schemas.Cart;
5473
5635
  export type CartDto = Components.Schemas.CartDto;
5636
+ export type CashbackAmount = Components.Schemas.CashbackAmount;
5474
5637
  export type CatalogSearch = Components.Schemas.CatalogSearch;
5475
5638
  export type CatalogSearchResult = Components.Schemas.CatalogSearchResult;
5476
5639
  export type CheckoutCart = Components.Schemas.CheckoutCart;
@@ -5495,13 +5658,13 @@ export type EntityId = Components.Schemas.EntityId;
5495
5658
  export type EntityItem = Components.Schemas.EntityItem;
5496
5659
  export type EntityRelation = Components.Schemas.EntityRelation;
5497
5660
  export type Error = Components.Schemas.Error;
5498
- export type ExternalCatalogItem = Components.Schemas.ExternalCatalogItem;
5499
5661
  export type ExternalCompositePrice = Components.Schemas.ExternalCompositePrice;
5500
5662
  export type ExternalFeeMapping = Components.Schemas.ExternalFeeMapping;
5501
5663
  export type ExternalFeeMappings = Components.Schemas.ExternalFeeMappings;
5502
5664
  export type ExternalFeeMetadata = Components.Schemas.ExternalFeeMetadata;
5503
5665
  export type ExternalPriceFees = Components.Schemas.ExternalPriceFees;
5504
5666
  export type ExternalPriceTotalDetails = Components.Schemas.ExternalPriceTotalDetails;
5667
+ export type ExternalProduct = Components.Schemas.ExternalProduct;
5505
5668
  export type ExternalSimplePrice = Components.Schemas.ExternalSimplePrice;
5506
5669
  export type File = Components.Schemas.File;
5507
5670
  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",
@@ -5349,7 +5396,7 @@
5349
5396
  "results": {
5350
5397
  "type": "array",
5351
5398
  "items": {
5352
- "$ref": "#/components/schemas/ExternalCatalogItem"
5399
+ "$ref": "#/components/schemas/ExternalProduct"
5353
5400
  }
5354
5401
  }
5355
5402
  },
@@ -5358,20 +5405,97 @@
5358
5405
  "hits"
5359
5406
  ]
5360
5407
  },
5361
- "ExternalCatalogItem": {
5408
+ "ExternalProduct": {
5362
5409
  "type": "object",
5363
5410
  "description": "An external product & price information (already computed) from an external catalog.",
5364
5411
  "properties": {
5365
- "pricing_details": {
5366
- "$ref": "#/components/schemas/PricingDetails"
5412
+ "id": {
5413
+ "type": "string",
5414
+ "description": "The ID of the product in the external catalog."
5367
5415
  },
5368
- "_meta": {
5369
- "$ref": "#/components/schemas/SignatureMeta"
5416
+ "name": {
5417
+ "type": "string",
5418
+ "description": "The name of the product."
5419
+ },
5420
+ "description": {
5421
+ "type": "string",
5422
+ "description": "A description of the product."
5423
+ },
5424
+ "features": {
5425
+ "type": "array",
5426
+ "description": "A list of features of the product.",
5427
+ "items": {
5428
+ "type": "string"
5429
+ }
5430
+ },
5431
+ "product_image_urls": {
5432
+ "type": "array",
5433
+ "items": {
5434
+ "type": "string"
5435
+ },
5436
+ "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"
5437
+ },
5438
+ "product_downloads_urls": {
5439
+ "type": "array",
5440
+ "items": {
5441
+ "type": "string"
5442
+ },
5443
+ "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"
5444
+ },
5445
+ "legal_footnotes": {
5446
+ "type": "string",
5447
+ "description": "Legal footnotes for the product."
5448
+ },
5449
+ "additional_notes": {
5450
+ "type": "array",
5451
+ "description": "Additional notes for the product.",
5452
+ "items": {
5453
+ "type": "string"
5454
+ }
5455
+ },
5456
+ "recommendation_settings": {
5457
+ "type": "object",
5458
+ "description": "Recommendation settings for the product.",
5459
+ "properties": {
5460
+ "is_recommended": {
5461
+ "type": "boolean",
5462
+ "description": "Flag to enable or disable the recommendation for this product."
5463
+ },
5464
+ "recommended_label": {
5465
+ "type": "string",
5466
+ "description": "Label to display when the product is recommended."
5467
+ },
5468
+ "recommended_color": {
5469
+ "type": "string",
5470
+ "description": "Color to display when the product is recommended."
5471
+ },
5472
+ "recommended_label_color": {
5473
+ "type": "string",
5474
+ "description": "Color of the recommended label."
5475
+ }
5476
+ },
5477
+ "example": {
5478
+ "is_recommended": true,
5479
+ "recommended_label": "Best Value",
5480
+ "recommended_color": "#00FF00",
5481
+ "recommended_label_color": "#FFFFFF"
5482
+ }
5483
+ },
5484
+ "price": {
5485
+ "oneOf": [
5486
+ {
5487
+ "$ref": "#/components/schemas/ExternalSimplePrice"
5488
+ },
5489
+ {
5490
+ "$ref": "#/components/schemas/ExternalCompositePrice"
5491
+ }
5492
+ ]
5370
5493
  }
5371
5494
  },
5372
5495
  "required": [
5373
- "pricing_details",
5374
- "_meta"
5496
+ "price",
5497
+ "name",
5498
+ "id"
5375
5499
  ]
5376
5500
  },
5377
5501
  "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.1",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",