11package smsto
22
3+ import "time"
4+
35// SmsSendSingleResponse is the response after sending a single SMS message
46type SmsSendSingleResponse struct {
57 Message string `json:"message"`
@@ -15,3 +17,31 @@ type SmsSendSingleRequest struct {
1517 SenderID * string `json:"sender_id,omitempty"`
1618 CallbackURL * string `json:"callback_url,omitempty"`
1719}
20+
21+ // SmsMessage is the details of an SMS message that was sent out
22+ type SmsMessage struct {
23+ ID int `json:"id"`
24+ SecondaryID string `json:"_id"`
25+ CampaignID interface {} `json:"campaign_id"`
26+ UserID int `json:"user_id"`
27+ SenderID string `json:"sender_id"`
28+ Message string `json:"message"`
29+ To string `json:"to"`
30+ Status string `json:"status"`
31+ ClientCost int `json:"client_cost"`
32+ CallbackURL string `json:"callback_url"`
33+ ScheduledFor interface {} `json:"scheduled_for"`
34+ Timezone interface {} `json:"timezone"`
35+ CreatedAt time.Time `json:"created_at"`
36+ UpdatedAt time.Time `json:"updated_at"`
37+ SentAt string `json:"sent_at"`
38+ MessageID interface {} `json:"message_id"`
39+ SmsCount int `json:"sms_count"`
40+ FinalCallbackSent int `json:"final_callback_sent"`
41+ IsAPI int `json:"is_api"`
42+ A2Code interface {} `json:"a2_code"`
43+ OptOut interface {} `json:"optout"`
44+ FailedReason string `json:"failed_reason"`
45+ Campaign interface {} `json:"campaign"`
46+ Provider interface {} `json:"provider"`
47+ }
0 commit comments