-
Notifications
You must be signed in to change notification settings - Fork 1
/
get_test.go
39 lines (32 loc) · 1.39 KB
/
get_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package netsuite_test
import (
"testing"
)
func TestGet(t *testing.T) {
// req := client.NewGetRequest()
// req.RequestBody().BaseRef.InternalID = "1568"
// req.RequestBody().BaseRef.TypeID = "171"
// req.RequestBody().BaseRef.Type = "platformCore:CustomRecordRef"
// // req.RequestBody().BaseRef.XSIType = "platformCore:CustomRecordRef"
// // req.RequestBody().BaseRef.Xmlns = "urn:core_2017_1.platform.webservices.netsuite.com"
// req.RequestBody().BaseRef.InternalID = ""
// req.RequestBody().BaseRef.ScriptID = "custbody_exp_type_journal"
// // req.RequestBody().BaseRef.ScriptID = "custbody_journal_memo"
// req.RequestBody().BaseRef.TypeID = ""
// req.RequestBody().BaseRef.Type = "transactionBodyCustomField"
// req.RequestBody().BaseRef.XSIType = "platformCore:CustomizationRef"
// // req.RequestBody().BaseRef.InternalID = "171"
// // req.RequestBody().BaseRef.ScriptID = "customlist_expegroup_journal_type"
// req.RequestBody().BaseRef.ScriptID = "customlist_expegroup_journal_type"
// req.RequestBody().BaseRef.TypeID = ""
// req.RequestBody().BaseRef.Type = "customList"
// req.RequestBody().BaseRef.XSIType = "platformCore:CustomizationRef"
// resp, err := req.Do()
// if err != nil {
// t.Error(err)
// }
// b, _ := json.MarshalIndent(resp, "", " ")
// fmt.Println(string(b))
// log.Println(resp.ReadResponse.Record.Type)
// log.Println(resp.ReadResponse.Record.FieldType)
}