@tride/gojek-handler
Advanced tools
Comparing version 0.2.1 to 0.2.2
18
index.js
@@ -86,11 +86,3 @@ "use strict"; | ||
booking( | ||
start, | ||
end, | ||
estimate_token, | ||
device_token = "", | ||
gcm_key = "", | ||
origin_note = "", | ||
destination_note = "" | ||
) { | ||
booking(start, end, estimate_token, device_token = "", gcm_key = "") { | ||
let itinerary = { | ||
@@ -100,4 +92,4 @@ activity_source: 2, | ||
destination_lat_long: `${end.lat},${end.long}`, | ||
destination_name: `destination_test`, | ||
destination_note: `${destination_note}`, | ||
destination_name: `${end.name}` || "TRIDE_DESTINATION", | ||
destination_note: `${end.desc}`, | ||
device_token: `${device_token}`, | ||
@@ -108,4 +100,4 @@ estimate_token: estimate_token, | ||
origin_lat_long: `${start.lat},${start.long}`, | ||
origin_name: `origin_test`, | ||
origin_note: `${origin_note}`, | ||
origin_name: start.name || "TRIDE_ORIGIN", | ||
origin_note: `${start.desc}`, | ||
payment_type: 0, | ||
@@ -112,0 +104,0 @@ service_type: 1 |
{ | ||
"name": "@tride/gojek-handler", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Gojek Handler", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
54659
297