Class: DigiwinDsp::Webhooks::LogisticsUpdate

Inherits:
Event
  • Object
show all
Defined in:
lib/digiwin_dsp/webhooks/logistics_update.rb

Overview

Fired by DSP when a shipment changes state (handed off to carrier, delivered, etc.). See docs/dsp-specs/DSPOOFFICIAL100.yaml under “倉儲貨態更新 wms/logistics/package/update”.

Instance Attribute Summary

Attributes inherited from Event

#digi_header, #raw, #request

Instance Method Summary collapse

Methods inherited from Event

extract_request, #initialize, parse, parse_json

Constructor Details

This class inherits a constructor from DigiwinDsp::Webhooks::Event

Instance Method Details

#distributor_codeObject



14
# File 'lib/digiwin_dsp/webhooks/logistics_update.rb', line 14

def distributor_code = request["distributor_code"]

#form_noObject



9
# File 'lib/digiwin_dsp/webhooks/logistics_update.rb', line 9

def form_no          = request["form_no"]

#func_nameObject



10
# File 'lib/digiwin_dsp/webhooks/logistics_update.rb', line 10

def func_name        = request["func_name"]

#messageObject



15
# File 'lib/digiwin_dsp/webhooks/logistics_update.rb', line 15

def message          = request["message"]

#status_dateObject



11
# File 'lib/digiwin_dsp/webhooks/logistics_update.rb', line 11

def status_date      = request["status_date"]

#status_timeObject



12
# File 'lib/digiwin_dsp/webhooks/logistics_update.rb', line 12

def status_time      = request["status_time"]

#tracking_numberObject



13
# File 'lib/digiwin_dsp/webhooks/logistics_update.rb', line 13

def tracking_number  = request["tracking_number"]