Guest User

Untitled

a guest
Mar 6th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.08 KB | None | 0 0
  1. ## What
  2.  
  3. All messages pushed into RabbitMQ by every service is documented here with necessary exmaples.
  4.  
  5.  
  6. ## Driver Service
  7.  
  8. - optional fields are dictated by golang pointer types
  9.  
  10.  
  11. ---
  12. #### for syncing with drivers_meta
  13.  
  14. ##### driver_meta_payload
  15. ```javascript=
  16. {
  17. id: int32,
  18. city_id: int32,
  19. driver_type: int32,
  20. foods_commission_pc: int,
  21. is_onboard: bool,
  22. is_profile_picture_verified: bool,
  23. is_bike_registration_verified: bool,
  24. is_national_id_verified: bool,
  25. is_birth_certificate_verified: bool,
  26. is_driving_license_verified: bool,
  27. can_do_parcels: bool,
  28. can_do_people: bool,
  29. is_address_verified: bool,
  30. is_cooldown_locked: bool,
  31. is_freelancer: bool,
  32. is_logged_in: bool,
  33. is_open_for_foods: bool,
  34. is_open_for_parcels: bool,
  35. is_suspended: bool,
  36. is_trained: bool,
  37. is_verified: bool,
  38. is_open_for_marts: bool,
  39. is_open_for_people: bool,
  40. created_at : int64,
  41. is_open_for_deliveries: bool,
  42. is_passport_verified: bool,
  43.  
  44. max_order_acceptance_amount: *int64,
  45.  
  46. learner_number: *string,
  47. account_number: *string,
  48. account_type: *string,
  49. address: *string,
  50. address_doc_pic: *string,
  51. applicant_id: *string,
  52. area: *string,
  53. bike_registration_number: *string,
  54. bike_registration_pic: *string,
  55. birth_certificate_number: *string,
  56. birth_certificate_pic: *string,
  57. blood_group: *string,
  58. driving_license: *string,
  59. license_pic: *string,
  60. mart_commission_pc: *int,
  61. nid: *string,
  62. nid_pic: *string,
  63. passport: *string,
  64. passport_pic: *string,
  65. reference_nid: *string,
  66. reference_nid_pic: *string,
  67. referral_code: *string,
  68. rides_commission_pc: *int64 ,
  69. source: *string,
  70. trainer: *string,
  71. updated_at: *int64,
  72. bike_registration_expire_date: *int64,
  73. driving_license_expire_date: *int64,
  74. driving_license_issue_date: *int64,
  75. deleted_at: *int64,
  76. joined_at: *int64,
  77. last_location_ping_at: *int64,
  78. last_logout: *int64,
  79. }
  80. ```
  81.  
  82. ####
  83. Emit actions:
  84. - drivers_meta_update
  85. - drivers_meta_create
  86.  
  87.  
  88.  
  89. ---
  90.  
  91. #### for syncing with Vehicle
  92.  
  93. ```javascript=
  94. {
  95. type: string,
  96. is_registration_verified: bool,
  97. is_fitness_certificate_verified: bool,
  98. is_tax_token_verified: bool,
  99. is_insurance_verified: bool,
  100.  
  101. created_at: *int64,
  102. description: *string,
  103. car_year: *string,
  104. car_company: *string,
  105. car_models: *string,
  106. picture: *string,
  107. fitness_certificate: *string,
  108. tax_token: *string,
  109. insurance: *string,
  110. registration_img: *string,
  111. fitness_certificate_img: *string,
  112. tax_token_img: *string,
  113. insurance_img: *string,
  114. user_id: *int32,
  115. reg_number: *string,
  116. is_verified: *bool,
  117. tax_token_expire_at: *int64,
  118. insurance_expire_at: *int64,
  119. registration_expire_at: *int64,
  120. fitness_certificate_expires_at: *int64,
  121. updated_at: *int64,
  122. deleted_at: *int64,
  123. }
  124. ```
  125. ####
  126. Emit actions:
  127. - vehicle_update
  128. - vehicle_create
  129.  
  130. ---
Advertisement
Add Comment
Please, Sign In to add comment