diff --git a/CHANGELOG.md b/CHANGELOG.md index 592a3aa..80bafaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## [5.6.0](https://github.com/plivo/plivo-go/tree/v5.6.0) (2021-06-15) +- Add stir verification param as part of Get CDR and live call APIs + ## [5.5.2](https://github.com/plivo/plivo-go/tree/v5.5.2) (2021-04-08) - Read origination prefix from voice pricing diff --git a/baseclient.go b/baseclient.go index d3a6168..06a95ef 100644 --- a/baseclient.go +++ b/baseclient.go @@ -13,7 +13,7 @@ import ( "github.com/google/go-querystring/query" ) -const sdkVersion = "5.5.2" +const sdkVersion = "5.6.0" const lookupBaseUrl = "lookup.plivo.com" diff --git a/calls.go b/calls.go index c884f5c..e6842c1 100644 --- a/calls.go +++ b/calls.go @@ -13,34 +13,36 @@ type QueuedCallService struct { } type Call struct { - FromNumber string `json:"from_number,omitempty" url:"from_number,omitempty"` - ToNumber string `json:"to_number,omitempty" url:"to_number,omitempty"` - AnswerURL string `json:"answer_url,omitempty" url:"answer_url,omitempty"` - CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` - ParentCallUUID string `json:"parent_call_uuid,omitempty" url:"parent_call_uuid,omitempty"` - EndTime string `json:"end_time,omitempty" url:"end_time,omitempty"` - TotalAmount string `json:"total_amount,omitempty" url:"total_amount,omitempty"` - CallDirection string `json:"call_direction,omitempty" url:"call_direction,omitempty"` - CallDuration int64 `json:"call_duration,omitempty" url:"call_duration,omitempty"` - MessageURL string `json:"message_url,omitempty" url:"message_url,omitempty"` - ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` - CallState string `json:"call_state,omitempty" url:"call_state,omitempty"` - HangupCauseCode int64 `json:"hangup_cause_code,omitempty" url:"hangup_cause_code,omitempty"` - HangupCauseName string `json:"hangup_cause_name,omitempty" url:"hangup_cause_name,omitempty"` - HangupSource string `json:"hangup_source,omitempty" url:"hangup_source,omitempty"` - TotalRate string `json:"total_rate,omitempty" url:"total_rate,omitempty"` - ConferenceUUID string `json:"conference_uuid,omitempty"` + FromNumber string `json:"from_number,omitempty" url:"from_number,omitempty"` + ToNumber string `json:"to_number,omitempty" url:"to_number,omitempty"` + AnswerURL string `json:"answer_url,omitempty" url:"answer_url,omitempty"` + CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` + ParentCallUUID string `json:"parent_call_uuid,omitempty" url:"parent_call_uuid,omitempty"` + EndTime string `json:"end_time,omitempty" url:"end_time,omitempty"` + TotalAmount string `json:"total_amount,omitempty" url:"total_amount,omitempty"` + CallDirection string `json:"call_direction,omitempty" url:"call_direction,omitempty"` + CallDuration int64 `json:"call_duration,omitempty" url:"call_duration,omitempty"` + MessageURL string `json:"message_url,omitempty" url:"message_url,omitempty"` + ResourceURI string `json:"resource_uri,omitempty" url:"resource_uri,omitempty"` + CallState string `json:"call_state,omitempty" url:"call_state,omitempty"` + HangupCauseCode int64 `json:"hangup_cause_code,omitempty" url:"hangup_cause_code,omitempty"` + HangupCauseName string `json:"hangup_cause_name,omitempty" url:"hangup_cause_name,omitempty"` + HangupSource string `json:"hangup_source,omitempty" url:"hangup_source,omitempty"` + TotalRate string `json:"total_rate,omitempty" url:"total_rate,omitempty"` + ConferenceUUID string `json:"conference_uuid,omitempty"` + StirVerification string `json:"stir_verification,omitempty" url:"stir_verification,omitempty"` } type LiveCall struct { - From string `json:"from,omitempty" url:"from,omitempty"` - To string `json:"to,omitempty" url:"to,omitempty"` - AnswerURL string `json:"answer_url,omitempty" url:"answer_url,omitempty"` - CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` - CallerName string `json:"caller_name,omitempty" url:"caller_name,omitempty"` - ParentCallUUID string `json:"parent_call_uuid,omitempty" url:"parent_call_uuid,omitempty"` - SessionStart string `json:"session_start,omitempty" url:"session_start,omitempty"` - CallStatus string `json:"call_status,omitempty" url:"call_status,omitempty"` + From string `json:"from,omitempty" url:"from,omitempty"` + To string `json:"to,omitempty" url:"to,omitempty"` + AnswerURL string `json:"answer_url,omitempty" url:"answer_url,omitempty"` + CallUUID string `json:"call_uuid,omitempty" url:"call_uuid,omitempty"` + CallerName string `json:"caller_name,omitempty" url:"caller_name,omitempty"` + ParentCallUUID string `json:"parent_call_uuid,omitempty" url:"parent_call_uuid,omitempty"` + SessionStart string `json:"session_start,omitempty" url:"session_start,omitempty"` + CallStatus string `json:"call_status,omitempty" url:"call_status,omitempty"` + StirVerification string `json:"stir_verification,omitempty" url:"stir_verification,omitempty"` } type QueuedCall struct { diff --git a/fixtures/callGetResponse.json b/fixtures/callGetResponse.json index 90f911e..d50217e 100644 --- a/fixtures/callGetResponse.json +++ b/fixtures/callGetResponse.json @@ -13,5 +13,6 @@ "resource_uri": "/v1/Account/MAJHUDTEYWLSIUYTDBCZ/Call/4d04c52e-cea3-4458-bbdb-0bfc314ee7cd/", "to_number": "919999999999", "total_amount": "0.00000", - "total_rate": "0.03570" + "total_rate": "0.03570", + "stir_verification": "Not Applicable" } diff --git a/fixtures/callListResponse.json b/fixtures/callListResponse.json index 3defe0b..47a2950 100644 --- a/fixtures/callListResponse.json +++ b/fixtures/callListResponse.json @@ -23,7 +23,8 @@ "resource_uri": "/v1/Account/MANWVLYTK4ZWU1YTY4ZT/Call/eba53b9e-8fbd-45c1-9444-696d2172fbc8/", "to_number": "14153268174", "total_amount": "0.13600", - "total_rate": "0.00850" + "total_rate": "0.00850", + "stir_verification": "Not Verified" }, { "answer_time": "2015-07-26 16:45:02+05:30", @@ -40,7 +41,8 @@ "resource_uri": "/v1/Account/MANWVLYTK4ZWU1YTY4ZT/Call/eba53b9e-8fbd-45c1-9444-696d2172fbc8/", "to_number": "14153268174", "total_amount": "0.13600", - "total_rate": "0.00850" + "total_rate": "0.00850", + "stir_verification": "Verified" } ] } diff --git a/fixtures/liveCallGetResponse.json b/fixtures/liveCallGetResponse.json index 419c80c..a38d92f 100644 --- a/fixtures/liveCallGetResponse.json +++ b/fixtures/liveCallGetResponse.json @@ -7,5 +7,6 @@ "from": "+918687888990", "request_uuid": "d0a87a1a-b0e9-4ab2-ac07-c22ee87cd04a", "session_start": "2017-05-22 13:17:49.050872", - "to": "919798990001" + "to": "919798990001", + "stir_verification": "Verified" }