Skip to content

Commit

Permalink
renaming in fields in ReportPayload
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosmin Rentea committed Apr 18, 2017
1 parent 3049d21 commit d26755a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/sms/nexmo_sms_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ type NexmoMessageReport struct {
}

type ReportPayload struct {
OrderId string `json:"order_id,omitempty"`
MessageId string `json:"message_id"`
OrderID string `json:"order_id,omitempty"`
MessageID string `json:"message_id"`
SmsText string `json:"sms_text"`
SmsRequestTime string `json:"sms_request_time"`
SmsResponseTime string `json:"sms_response_time"`
Expand Down Expand Up @@ -206,8 +206,8 @@ func (ns *NexmoSender) Send(msg *protocol.Message) error {
&ReportEvent{
Type: "tour_arrival_estimate_nexmo_v2",
Payload: ReportPayload{
MessageId: msg.CorrelationID(),
OrderId: nexmoSMS.ClientRef,
MessageID: msg.CorrelationID(),
OrderID: nexmoSMS.ClientRef,
SmsText: nexmoSMS.Text,
},
})
Expand Down

0 comments on commit d26755a

Please sign in to comment.