fk-platform-sdk 1.0.27-beta → 1.0.28-beta

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.
@@ -14,7 +14,7 @@ export declare class OrderConfirmation implements AnalyticsEvent {
14
14
  constructor(fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string, fkh_order_id: string, fkh_order_status: string);
15
15
  getValidator(): EventValidator;
16
16
  }
17
- export declare class ProceedToPayEvent implements AnalyticsEvent {
17
+ export declare class ProceedToPay implements AnalyticsEvent {
18
18
  type: string;
19
19
  private fk_accountid;
20
20
  private fkh_userid;
@@ -33,9 +33,9 @@ var OrderConfirmation = /** @class */ (function () {
33
33
  return OrderConfirmation;
34
34
  }());
35
35
  exports.OrderConfirmation = OrderConfirmation;
36
- var ProceedToPayEvent = /** @class */ (function () {
37
- function ProceedToPayEvent(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method) {
38
- this.type = "Healthcare.ProceedToPayEvent";
36
+ var ProceedToPay = /** @class */ (function () {
37
+ function ProceedToPay(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method) {
38
+ this.type = "Healthcare.ProceedToPay";
39
39
  this.fk_accountid = fk_accountid;
40
40
  this.fkh_userid = fkh_userid;
41
41
  this.token_id = token_id;
@@ -44,16 +44,16 @@ var ProceedToPayEvent = /** @class */ (function () {
44
44
  this.offer_amount = offer_amount;
45
45
  this.payment_method = payment_method;
46
46
  }
47
- ProceedToPayEvent.prototype.getValidator = function () {
48
- var invalidValues = Validator_1.validate(metadataMap, this, "ProceedToPayEvent");
47
+ ProceedToPay.prototype.getValidator = function () {
48
+ var invalidValues = Validator_1.validate(metadataMap, this, "ProceedToPay");
49
49
  return new EventValidator_1.EventValidator(invalidValues);
50
50
  };
51
51
  __decorate([
52
- decorators_1.Positive(metadataMap, "ProceedToPayEvent")
53
- ], ProceedToPayEvent.prototype, "fk_accountid", void 0);
54
- return ProceedToPayEvent;
52
+ decorators_1.Positive(metadataMap, "ProceedToPay")
53
+ ], ProceedToPay.prototype, "fk_accountid", void 0);
54
+ return ProceedToPay;
55
55
  }());
56
- exports.ProceedToPayEvent = ProceedToPayEvent;
56
+ exports.ProceedToPay = ProceedToPay;
57
57
  var UploadPrescription = /** @class */ (function () {
58
58
  function UploadPrescription(fk_accountid, fkh_userid, token_id, pincode, page_name) {
59
59
  this.type = "Healthcare.UploadPrescription";
@@ -68,7 +68,7 @@ var UploadPrescription = /** @class */ (function () {
68
68
  return new EventValidator_1.EventValidator(invalidValues);
69
69
  };
70
70
  __decorate([
71
- decorators_1.Positive(metadataMap, "UploadPrescriprion")
71
+ decorators_1.Positive(metadataMap, "UploadPrescription")
72
72
  ], UploadPrescription.prototype, "fk_accountid", void 0);
73
73
  return UploadPrescription;
74
74
  }());
@@ -49,7 +49,7 @@ export interface TravelAnalyticsHelper {
49
49
  }
50
50
  export interface HealthcareAnalyticsHelper {
51
51
  orderConfirmation: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string, fkh_order_id: string, fkh_order_status: string) => Healthcare.OrderConfirmation;
52
- proceedToPayEvent: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string) => Healthcare.ProceedToPayEvent;
52
+ proceedToPay: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, order_amount: number, offer_amount: number, payment_method: string) => Healthcare.ProceedToPay;
53
53
  uploadPrescription: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, page_name: string) => Healthcare.UploadPrescription;
54
54
  addToCart: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, product_name: string, product_id: string, price: number, quantity: number, source: string) => Healthcare.AddToCart;
55
55
  search: (fk_accountid: string, fkh_userid: string, token_id: string, pincode: string, search_query: string) => Healthcare.Search;
@@ -233,8 +233,8 @@ var SetupHelper = /** @class */ (function () {
233
233
  orderConfirmation: function (fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method, fkh_order_id, fkh_order_status) {
234
234
  return new analytics_1.Healthcare.OrderConfirmation(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method, fkh_order_id, fkh_order_status);
235
235
  },
236
- proceedToPayEvent: function (fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method) {
237
- return new analytics_1.Healthcare.ProceedToPayEvent(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method);
236
+ proceedToPay: function (fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method) {
237
+ return new analytics_1.Healthcare.ProceedToPay(fk_accountid, fkh_userid, token_id, pincode, order_amount, offer_amount, payment_method);
238
238
  },
239
239
  uploadPrescription: function (fk_accountid, fkh_userid, token_id, pincode, page_name) {
240
240
  return new analytics_1.Healthcare.UploadPrescription(fk_accountid, fkh_userid, token_id, pincode, page_name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fk-platform-sdk",
3
- "version": "1.0.27-beta",
3
+ "version": "1.0.28-beta",
4
4
  "description": "SDK to enable external experience integration within flipkart app.",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",