Skip to content

Commit

Permalink
interim checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
dipanjanb authored and sayan-rudder committed Sep 30, 2019
1 parent 4b2a99e commit 6afedd0
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions rudder-client-javascript/RudderClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,22 +652,9 @@ class CheckoutStepCompletedEvent extends CheckoutEvent {
}
}

//Parent class of "checkout started" and "order completed" events
//Parent class of checkout and order events
class OrderEvent {
constructor(){
this.order = null; //order details as part of the checkout
}
build(){
var eventProperty = new RudderProperty();
eventProperty.setPropertyMap(this.order);
return eventProperty;
}

//Generic setter methods to enable builder pattern
setOrder(order){
this.order = order;
return this;
}

}
//Class representing "checkout started" event
Expand Down

0 comments on commit 6afedd0

Please sign in to comment.