Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## What
- All messages pushed into RabbitMQ by every service is documented here with necessary exmaples.
- ## Driver Service
- - optional fields are dictated by golang pointer types
- ---
- #### for syncing with drivers_meta
- ##### driver_meta_payload
- ```javascript=
- {
- id: int32,
- city_id: int32,
- driver_type: int32,
- foods_commission_pc: int,
- is_onboard: bool,
- is_profile_picture_verified: bool,
- is_bike_registration_verified: bool,
- is_national_id_verified: bool,
- is_birth_certificate_verified: bool,
- is_driving_license_verified: bool,
- can_do_parcels: bool,
- can_do_people: bool,
- is_address_verified: bool,
- is_cooldown_locked: bool,
- is_freelancer: bool,
- is_logged_in: bool,
- is_open_for_foods: bool,
- is_open_for_parcels: bool,
- is_suspended: bool,
- is_trained: bool,
- is_verified: bool,
- is_open_for_marts: bool,
- is_open_for_people: bool,
- created_at : int64,
- is_open_for_deliveries: bool,
- is_passport_verified: bool,
- max_order_acceptance_amount: *int64,
- learner_number: *string,
- account_number: *string,
- account_type: *string,
- address: *string,
- address_doc_pic: *string,
- applicant_id: *string,
- area: *string,
- bike_registration_number: *string,
- bike_registration_pic: *string,
- birth_certificate_number: *string,
- birth_certificate_pic: *string,
- blood_group: *string,
- driving_license: *string,
- license_pic: *string,
- mart_commission_pc: *int,
- nid: *string,
- nid_pic: *string,
- passport: *string,
- passport_pic: *string,
- reference_nid: *string,
- reference_nid_pic: *string,
- referral_code: *string,
- rides_commission_pc: *int64 ,
- source: *string,
- trainer: *string,
- updated_at: *int64,
- bike_registration_expire_date: *int64,
- driving_license_expire_date: *int64,
- driving_license_issue_date: *int64,
- deleted_at: *int64,
- joined_at: *int64,
- last_location_ping_at: *int64,
- last_logout: *int64,
- }
- ```
- ####
- Emit actions:
- - drivers_meta_update
- - drivers_meta_create
- ---
- #### for syncing with Vehicle
- ```javascript=
- {
- type: string,
- is_registration_verified: bool,
- is_fitness_certificate_verified: bool,
- is_tax_token_verified: bool,
- is_insurance_verified: bool,
- created_at: *int64,
- description: *string,
- car_year: *string,
- car_company: *string,
- car_models: *string,
- picture: *string,
- fitness_certificate: *string,
- tax_token: *string,
- insurance: *string,
- registration_img: *string,
- fitness_certificate_img: *string,
- tax_token_img: *string,
- insurance_img: *string,
- user_id: *int32,
- reg_number: *string,
- is_verified: *bool,
- tax_token_expire_at: *int64,
- insurance_expire_at: *int64,
- registration_expire_at: *int64,
- fitness_certificate_expires_at: *int64,
- updated_at: *int64,
- deleted_at: *int64,
- }
- ```
- ####
- Emit actions:
- - vehicle_update
- - vehicle_create
- ---
Advertisement
Add Comment
Please, Sign In to add comment