From ae4e153d0249bdc9ac7a2dfd1da45af2d475165d Mon Sep 17 00:00:00 2001 From: Patrick Waters Date: Fri, 14 May 2021 12:36:57 -0500 Subject: [PATCH 1/3] Adding hidden AdditionalNotifications parameter to support sms when using templates --- v2.1/model/model.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/v2.1/model/model.go b/v2.1/model/model.go index 64b07d5..a86735a 100644 --- a/v2.1/model/model.go +++ b/v2.1/model/model.go @@ -11191,6 +11191,19 @@ type Recipients struct { Witnesses []Witness `json:"witnesses,omitempty"` } +// AdditionalNotification is an undocumented option to add additonal notifications options +type AdditionalNotification struct { + // SMS + SecondaryDeliveryMethod string `json:"secondaryDeliveryMethod,omitempty"` + PhoneNumber PhoneNumber `json:"phoneNumber,omitempty"` +} + +// PhoneNumber represents a phone number +type PhoneNumber struct { + CountryCode string `json:"countryCode"` + Number string `json:"number"` +} + // RecipientsUpdateSummary this is the response that the API returns after you update recipients. type RecipientsUpdateSummary struct { // An array of `recipientUpdateResults` objects that contain details about the recipients. @@ -11696,6 +11709,8 @@ type Signer struct { AccessCodeMetadata *PropertyMetadata `json:"accessCodeMetadata,omitempty"` // This Optional attribute indicates that the access code will be added to the email sent to the recipient; this nullifies the Security measure of Access Code on the recipient. AddAccessCodeToEmail string `json:"addAccessCodeToEmail,omitempty"` + // A list of additional notifications + AdditionalNotifications []AdditionalNotification `json:"additionalNotifications,omitempty"` // Optional element. When set to true, the agents recipient associated with this recipient can change the recipient's pre-populated email address. This element is only active if enabled for the account. AgentCanEditEmail DSBool `json:"agentCanEditEmail,omitempty"` // Optional element. When set to **true**, the agents recipient associated with this recipient can change the recipient's pre-populated name. This element is only active if enabled for the account. From 46aaace79e949480690ef719f8e89d5a882ac972 Mon Sep 17 00:00:00 2001 From: Patrick Waters Date: Fri, 14 May 2021 12:47:25 -0500 Subject: [PATCH 2/3] Reworking go mod so I can use it --- go.mod | 10 +++------- go.sum | 37 ++++++++++++++++++++++--------------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/go.mod b/go.mod index b7c3731..ac626fb 100644 --- a/go.mod +++ b/go.mod @@ -1,14 +1,10 @@ -module github.com/jfcote87/esign +module github.com/pwaterz/esign go 1.14 require ( - cloud.google.com/go v0.43.0 // indirect - github.com/hashicorp/golang-lru v0.5.3 // indirect github.com/jfcote87/ctxclient v0.5.1 - github.com/jfcote87/oauth2 v0.2.2 + github.com/jfcote87/esign v0.9.0 + github.com/jfcote87/oauth2 v0.2.3 github.com/jfcote87/testutils v0.1.0 - golang.org/x/net v0.0.0-20190724013045-ca1201d0de80 // indirect - golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e // indirect - google.golang.org/grpc v1.22.1 // indirect ) diff --git a/go.sum b/go.sum index 8dd8837..5d2089c 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,10 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMT cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= cloud.google.com/go v0.40.0/go.mod h1:Tk58MuI9rbLMKlAjeO/bDnteAx7tX2gJIXw4T5Jwlro= -cloud.google.com/go v0.43.0 h1:banaiRPAM8kUVYneOSkhgcDsLzEvL25FinuiSZaH/2w= -cloud.google.com/go v0.43.0/go.mod h1:BOSR3VbTLkk6FDC/TcffxP4NF/FFBGA5ku+jvKOP7pg= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.3 h1:0sMegbmn/8uTwpNkB0q9cLEpZ2W5a6kl+wtBQgPWBJQ= +cloud.google.com/go v0.44.3/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= @@ -19,8 +21,9 @@ github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5y github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= -github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= @@ -28,14 +31,15 @@ github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+ github.com/googleapis/gax-go/v2 v2.0.5 h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/golang-lru v0.5.1 h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.3 h1:YPkqC67at8FYaadspW/6uE0COsBxS2656RLEr8Bppgk= github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/jfcote87/ctxclient v0.5.1 h1:FnL5Y1yhUfFyZzoCDkZAJRSoEGuh0+vDCdEvjUYm0LU= github.com/jfcote87/ctxclient v0.5.1/go.mod h1:f7zOFa74RLJBqXyENHpoOerIWyJ+vYSISilQt4EzSYk= -github.com/jfcote87/oauth2 v0.2.2 h1:eqRvOcF0QYmCwC6LbODOLo5++lEeQoImLuFfbHak2is= -github.com/jfcote87/oauth2 v0.2.2/go.mod h1:DWdh/z6vDUwVcQ8D/oFL8db+kKFlphYCEoDbAZhTdsA= +github.com/jfcote87/esign v0.9.0 h1:tB8RSH6P7Qfqv4iH70gVieWdIE11qiT7pRMRaz0eNjk= +github.com/jfcote87/esign v0.9.0/go.mod h1:DqFRTbH0KbIuTykLGPPnOQvIbZuQHz5TWPLEXwyT3BY= +github.com/jfcote87/oauth2 v0.2.3 h1:bZtLPKeTvpNR3jzvBxciaz3FqBwYN9L6fAJXHpsTNAA= +github.com/jfcote87/oauth2 v0.2.3/go.mod h1:DWdh/z6vDUwVcQ8D/oFL8db+kKFlphYCEoDbAZhTdsA= github.com/jfcote87/testutils v0.0.0-20190527035656-94af7a2b3405/go.mod h1:QFUFPaD1I3QKdKq4d0f1+RokX2LF15Vbgk0lXvTb8HY= github.com/jfcote87/testutils v0.1.0 h1:JOl5eOK6cLDWs6sLEtlaayWrvmtXTrO8bIrveajXxvc= github.com/jfcote87/testutils v0.1.0/go.mod h1:ELCUYlS5UgdA/ZXCq/b+ScC6d566nmkorcmOgWU0C90= @@ -65,8 +69,8 @@ golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80 h1:Ao/3l156eZf2AW5wK8a7/smtodRU+gha3+BeqJ69lRk= -golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7 h1:fHDIZ2oxGnUZRN6WgWFCbYBjH9uqVPRCUVUDhs0wnbA= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= @@ -84,8 +88,8 @@ golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e h1:D5TXcfTk7xF7hvieo4QErS3qqCB4teTffacDWr7CI+0= -golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs= @@ -105,8 +109,10 @@ golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgw golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= google.golang.org/api v0.6.0/go.mod h1:btoxGiFvQNVUZQ8W08zLtrVS08CNpINPEfxXxgJL1Q4= -google.golang.org/api v0.7.0 h1:9sdfJOzWlkqPltHAuzT2Cp+yrBeY1KRVYgms8soxMwM= google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0 h1:jbyannxz0XFD3zdjgrSUsaJbgpH4eTrkdhRChkHPfO8= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= @@ -120,13 +126,14 @@ google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRn google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= google.golang.org/genproto v0.0.0-20190620144150-6af8c5fc6601/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= -google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610 h1:Ygq9/SRJX9+dU0WCIICM8RkWvDw03lvB77hrhJnpxfU= -google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 h1:gSJIx1SDwno+2ElGhA4+qG2zF97qiUzTM+rQ0klBOcE= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= -google.golang.org/grpc v1.22.1 h1:/7cs52RnTJmD43s3uxzlq2U7nqVTd/37viQwMrMNlOM= -google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.0 h1:AzbTB6ux+okLTzP8Ru1Xs41C303zdcfEht7MQnYJt5A= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= From ef65f831af43d3f2fe27996f1e1cb32817e684a5 Mon Sep 17 00:00:00 2001 From: Patrick Waters Date: Fri, 14 May 2021 13:45:59 -0500 Subject: [PATCH 3/3] More re work --- README.md | 14 +++++++------- click/click.go | 4 ++-- click/example_test.go | 4 ++-- connect_test.go | 2 +- doc.go | 2 +- esign_test.go | 6 +++--- examples_test.go | 8 ++++---- gen-esign/main.go | 2 +- gen-esign/templates/model.tmpl | 10 +++++----- gen-esign/templates/service.tmpl | 4 ++-- go.mod | 9 ++++++++- go.sum | 2 -- legacy/example_test.go | 4 ++-- legacy/legacy.go | 4 ++-- oauth2_test.go | 2 +- v2.1/accounts/accounts.go | 12 ++++++------ v2.1/billing/billing.go | 12 ++++++------ v2.1/bulkenvelopes/bulkenvelopes.go | 12 ++++++------ v2.1/cloudstorage/cloudstorage.go | 12 ++++++------ v2.1/connect/connect.go | 12 ++++++------ v2.1/customtabs/customtabs.go | 12 ++++++------ v2.1/diagnostics/diagnostics.go | 12 ++++++------ v2.1/envelopes/envelopes.go | 12 ++++++------ v2.1/folders/folders.go | 12 ++++++------ v2.1/model/model.go | 2 +- v2.1/powerforms/powerforms.go | 12 ++++++------ v2.1/signinggroups/signinggroups.go | 12 ++++++------ v2.1/templates/templates.go | 12 ++++++------ v2.1/uncategorized/uncategorized.go | 12 ++++++------ v2.1/usergroups/usergroups.go | 12 ++++++------ v2.1/users/users.go | 12 ++++++------ v2.1/workspaces/workspaces.go | 12 ++++++------ v2/accounts/accounts.go | 12 ++++++------ v2/authentication/authentication.go | 12 ++++++------ v2/billing/billing.go | 12 ++++++------ v2/bulkenvelopes/bulkenvelopes.go | 12 ++++++------ v2/cloudstorage/cloudstorage.go | 12 ++++++------ v2/connect/connect.go | 12 ++++++------ v2/customtabs/customtabs.go | 12 ++++++------ v2/diagnostics/diagnostics.go | 12 ++++++------ v2/envelopes/envelopes.go | 12 ++++++------ v2/folders/folders.go | 12 ++++++------ v2/future/future.go | 8 ++++---- v2/model/model.go | 2 +- v2/model/model_test.go | 2 +- v2/powerforms/powerforms.go | 12 ++++++------ v2/signinggroups/signinggroups.go | 12 ++++++------ v2/templates/templates.go | 12 ++++++------ v2/uncategorized/uncategorized.go | 12 ++++++------ v2/usergroups/usergroups.go | 12 ++++++------ v2/users/users.go | 12 ++++++------ v2/workspaces/workspaces.go | 12 ++++++------ 52 files changed, 246 insertions(+), 241 deletions(-) diff --git a/README.md b/README.md index 99c0ede..ad02643 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # DocuSign eSignature RestApi v2 and v2.1(Beta) for Go -[![GoDoc](https://godoc.org/github.com/jfcote87/esign?status.svg)](https://godoc.org/github.com/jfcote87/esign) +[![GoDoc](https://godoc.org/github.com/pwaterz/esign?status.svg)](https://godoc.org/github.com/pwaterz/esign) esign provides Go packages for interacting with DocuSign's eSignature RestApi and has been created using the lastest published swagger definition. -Definitions for call payloads and return values are found in {VERSIONID}/model/model.go file. -Docusign has split the API into major categories, and each category has a corresponding package -in the v2 and v2.1 directory. +Definitions for call payloads and return values are found in {VERSIONID}/model/model.go file. +Docusign has split the API into major categories, and each category has a corresponding package +in the v2 and v2.1 directory. The package requires Go 1.7 or above and has been tested with Go 1.9-1.12. @@ -55,9 +55,9 @@ executed via a Do(context.Context) function. A context must be passwed for all Create envelope ```go - import "github.com/jfcote87/esign" - import "github.com/jfcote87/esign/v2/envelope" - import "github.com/jfcote87/esign/v2/model" + import "github.com/pwaterz/esign" + import "github.com/pwaterz/esign/v2/envelope" + import "github.com/pwaterz/esign/v2/model" sv := envelopes.New(credential) diff --git a/click/click.go b/click/click.go index 287d52e..de8c1a9 100644 --- a/click/click.go +++ b/click/click.go @@ -7,7 +7,7 @@ // must be initialized with a scop of click.manageApi documentation for these // functions may be found at: // https://docs.docusign.com/esign/guide/authentication/legacy_auth.htmlpackage -package click // import "github.com/jfcote87/esign/click" +package click // import "github.com/pwaterz/esign/click" import ( "context" @@ -16,7 +16,7 @@ import ( "strings" "time" - "github.com/jfcote87/esign" + "github.com/pwaterz/esign" ) var clickV1 = &esign.APIVersion{ diff --git a/click/example_test.go b/click/example_test.go index b680955..ec4c093 100644 --- a/click/example_test.go +++ b/click/example_test.go @@ -10,8 +10,8 @@ import ( "fmt" "log" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/click" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/click" ) func Example() { diff --git a/connect_test.go b/connect_test.go index 1c2d3ca..ae024a7 100644 --- a/connect_test.go +++ b/connect_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/jfcote87/esign" + "github.com/pwaterz/esign" ) func TestXML(t *testing.T) { diff --git a/doc.go b/doc.go index 8f73807..5c5aaf7 100644 --- a/doc.go +++ b/doc.go @@ -13,4 +13,4 @@ eSignatature REST API as defined in the published api. Api documentation: https://developers.docusign.com/ */ -package esign // import "github.com/jfcote87/esign" +package esign // import "github.com/pwaterz/esign" diff --git a/esign_test.go b/esign_test.go index a96e9cb..093344b 100644 --- a/esign_test.go +++ b/esign_test.go @@ -23,11 +23,11 @@ import ( "time" "github.com/jfcote87/ctxclient" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/folders" - "github.com/jfcote87/esign/v2.1/templates" "github.com/jfcote87/oauth2" "github.com/jfcote87/testutils" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/folders" + "github.com/pwaterz/esign/v2.1/templates" ) type TestCred struct { diff --git a/examples_test.go b/examples_test.go index 2f89c3f..5f9a503 100644 --- a/examples_test.go +++ b/examples_test.go @@ -13,10 +13,10 @@ import ( "log" "os" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/envelopes" - "github.com/jfcote87/esign/v2.1/folders" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/envelopes" + "github.com/pwaterz/esign/v2.1/folders" + "github.com/pwaterz/esign/v2.1/model" ) func ExampleOAuth2Config() { diff --git a/gen-esign/main.go b/gen-esign/main.go index cac0be7..729b0c3 100644 --- a/gen-esign/main.go +++ b/gen-esign/main.go @@ -27,7 +27,7 @@ const ( ) var ( - basePkg = flag.String("basepkg", "github.com/jfcote87/esign", "root package in gopath") + basePkg = flag.String("basepkg", "github.com/pwaterz/esign", "root package in gopath") baseDir = flag.String("src", ".", "src directory") templDir = flag.String("template", "gen-esign/templates", "directory containing output templates.") buildFlag = flag.Bool("build", false, "Compile generated packages.") diff --git a/gen-esign/templates/model.tmpl b/gen-esign/templates/model.tmpl index 80a3498..9f01400 100644 --- a/gen-esign/templates/model.tmpl +++ b/gen-esign/templates/model.tmpl @@ -6,27 +6,27 @@ // Code generated by gen-esign; DO NOT EDIT. // Package model provides definitions for all input -// and output parameters types found in DocuSign's +// and output parameters types found in DocuSign's // OpenAPI (swagger) file. // // Api documentation may be found at: // https://developers.docusign.com/esign-rest-api/{{$docPrefix := .DocPrefix}}{{$docPrefix}}reference -package model // import "github.com/jfcote87/esign/{{.VersionID}}/model"{{$defMap := .DefMap}}{{$fldOverrides := .FldOverrides}} +package model // import "github.com/pwaterz/esign/{{.VersionID}}/model"{{$defMap := .DefMap}}{{$fldOverrides := .FldOverrides}} import ( "fmt" "strings" "time" -) +) -// DSBool is used to fix problem of capitalized and quoted +// DSBool is used to fix problem of capitalized and quoted // booleans in json returned from DocuSign. Unmarshals // "True" and "true" as true, any other value returns false type DSBool bool // UnmarshalJSON checks for "True" or "true" func (d *DSBool) UnmarshalJSON(b []byte) error { - + *d = DSBool(b[0] == 0x22 && (b[1] == 0x54 || b[1] == 0x74)) return nil } diff --git a/gen-esign/templates/service.tmpl b/gen-esign/templates/service.tmpl index 5c3f2ab..f3e4c1b 100644 --- a/gen-esign/templates/service.tmpl +++ b/gen-esign/templates/service.tmpl @@ -21,7 +21,7 @@ // ) // ... // {{.Package}}Service := {{.Package}}.New(esignCredential) -package {{.Package}} // import "github.com/jfcote87/esign/{{$verPrefix}}/{{.Package}}" +package {{.Package}} // import "github.com/pwaterz/esign/{{$verPrefix}}/{{.Package}}" import ({{range .Packages}} {{.}}{{end}} @@ -29,7 +29,7 @@ import ({{range .Packages}} // Service implements DocuSign {{.Service}} Category API operations type Service struct { - credential esign.Credential + credential esign.Credential } // New initializes a {{.Package}} service using cred to authorize ops. diff --git a/go.mod b/go.mod index ac626fb..6523218 100644 --- a/go.mod +++ b/go.mod @@ -3,8 +3,15 @@ module github.com/pwaterz/esign go 1.14 require ( + cloud.google.com/go v0.44.3 // indirect + github.com/google/go-cmp v0.3.1 // indirect + github.com/hashicorp/golang-lru v0.5.3 // indirect github.com/jfcote87/ctxclient v0.5.1 - github.com/jfcote87/esign v0.9.0 github.com/jfcote87/oauth2 v0.2.3 github.com/jfcote87/testutils v0.1.0 + golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7 // indirect + golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a // indirect + google.golang.org/api v0.9.0 // indirect + google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55 // indirect + google.golang.org/grpc v1.23.0 // indirect ) diff --git a/go.sum b/go.sum index 5d2089c..10c59f0 100644 --- a/go.sum +++ b/go.sum @@ -36,8 +36,6 @@ github.com/hashicorp/golang-lru v0.5.3 h1:YPkqC67at8FYaadspW/6uE0COsBxS2656RLEr8 github.com/hashicorp/golang-lru v0.5.3/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/jfcote87/ctxclient v0.5.1 h1:FnL5Y1yhUfFyZzoCDkZAJRSoEGuh0+vDCdEvjUYm0LU= github.com/jfcote87/ctxclient v0.5.1/go.mod h1:f7zOFa74RLJBqXyENHpoOerIWyJ+vYSISilQt4EzSYk= -github.com/jfcote87/esign v0.9.0 h1:tB8RSH6P7Qfqv4iH70gVieWdIE11qiT7pRMRaz0eNjk= -github.com/jfcote87/esign v0.9.0/go.mod h1:DqFRTbH0KbIuTykLGPPnOQvIbZuQHz5TWPLEXwyT3BY= github.com/jfcote87/oauth2 v0.2.3 h1:bZtLPKeTvpNR3jzvBxciaz3FqBwYN9L6fAJXHpsTNAA= github.com/jfcote87/oauth2 v0.2.3/go.mod h1:DWdh/z6vDUwVcQ8D/oFL8db+kKFlphYCEoDbAZhTdsA= github.com/jfcote87/testutils v0.0.0-20190527035656-94af7a2b3405/go.mod h1:QFUFPaD1I3QKdKq4d0f1+RokX2LF15Vbgk0lXvTb8HY= diff --git a/legacy/example_test.go b/legacy/example_test.go index 9289225..d8fd91a 100644 --- a/legacy/example_test.go +++ b/legacy/example_test.go @@ -9,8 +9,8 @@ import ( "fmt" "log" - "github.com/jfcote87/esign/legacy" - "github.com/jfcote87/esign/v2/folders" + "github.com/pwaterz/esign/legacy" + "github.com/pwaterz/esign/v2/folders" ) func Example_config() { diff --git a/legacy/legacy.go b/legacy/legacy.go index cb7e6d8..69edc67 100644 --- a/legacy/legacy.go +++ b/legacy/legacy.go @@ -15,8 +15,8 @@ import ( "net/url" "github.com/jfcote87/ctxclient" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Documentation: https://docs.docusign.com/esign/ diff --git a/oauth2_test.go b/oauth2_test.go index 9ad0fc3..913fd51 100644 --- a/oauth2_test.go +++ b/oauth2_test.go @@ -9,9 +9,9 @@ import ( "net/http" "testing" - "github.com/jfcote87/esign" "github.com/jfcote87/oauth2" "github.com/jfcote87/testutils" + "github.com/pwaterz/esign" ) const tokenSuccessResponse = `{ diff --git a/v2.1/accounts/accounts.go b/v2.1/accounts/accounts.go index 689bc30..c19c4ea 100644 --- a/v2.1/accounts/accounts.go +++ b/v2.1/accounts/accounts.go @@ -22,13 +22,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/accounts" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/accounts" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // accountsService := accounts.New(esignCredential) -package accounts // import "github.com/jfcote87/esign/v2.1/accounts" +package accounts // import "github.com/pwaterz/esign/v2.1/accounts" import ( "context" @@ -37,8 +37,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign Accounts Category API operations diff --git a/v2.1/billing/billing.go b/v2.1/billing/billing.go index c5f670a..a5acc42 100644 --- a/v2.1/billing/billing.go +++ b/v2.1/billing/billing.go @@ -19,13 +19,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/billing" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/billing" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // billingService := billing.New(esignCredential) -package billing // import "github.com/jfcote87/esign/v2.1/billing" +package billing // import "github.com/pwaterz/esign/v2.1/billing" import ( "context" @@ -33,8 +33,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign Billing Category API operations diff --git a/v2.1/bulkenvelopes/bulkenvelopes.go b/v2.1/bulkenvelopes/bulkenvelopes.go index 73abea7..a29e487 100644 --- a/v2.1/bulkenvelopes/bulkenvelopes.go +++ b/v2.1/bulkenvelopes/bulkenvelopes.go @@ -15,13 +15,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/bulkenvelopes" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/bulkenvelopes" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // bulkenvelopesService := bulkenvelopes.New(esignCredential) -package bulkenvelopes // import "github.com/jfcote87/esign/v2.1/bulkenvelopes" +package bulkenvelopes // import "github.com/pwaterz/esign/v2.1/bulkenvelopes" import ( "context" @@ -29,8 +29,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign BulkEnvelopes Category API operations diff --git a/v2.1/cloudstorage/cloudstorage.go b/v2.1/cloudstorage/cloudstorage.go index dcd05cf..2abbe54 100644 --- a/v2.1/cloudstorage/cloudstorage.go +++ b/v2.1/cloudstorage/cloudstorage.go @@ -17,13 +17,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/cloudstorage" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/cloudstorage" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // cloudstorageService := cloudstorage.New(esignCredential) -package cloudstorage // import "github.com/jfcote87/esign/v2.1/cloudstorage" +package cloudstorage // import "github.com/pwaterz/esign/v2.1/cloudstorage" import ( "context" @@ -31,8 +31,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign CloudStorage Category API operations diff --git a/v2.1/connect/connect.go b/v2.1/connect/connect.go index f5e6c17..b84bd37 100644 --- a/v2.1/connect/connect.go +++ b/v2.1/connect/connect.go @@ -32,13 +32,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/connect" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/connect" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // connectService := connect.New(esignCredential) -package connect // import "github.com/jfcote87/esign/v2.1/connect" +package connect // import "github.com/pwaterz/esign/v2.1/connect" import ( "context" @@ -48,8 +48,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign Connect Category API operations diff --git a/v2.1/customtabs/customtabs.go b/v2.1/customtabs/customtabs.go index 5e08a64..1457693 100644 --- a/v2.1/customtabs/customtabs.go +++ b/v2.1/customtabs/customtabs.go @@ -17,21 +17,21 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/customtabs" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/customtabs" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // customtabsService := customtabs.New(esignCredential) -package customtabs // import "github.com/jfcote87/esign/v2.1/customtabs" +package customtabs // import "github.com/pwaterz/esign/v2.1/customtabs" import ( "context" "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign CustomTabs Category API operations diff --git a/v2.1/diagnostics/diagnostics.go b/v2.1/diagnostics/diagnostics.go index 49d0600..032c6f2 100644 --- a/v2.1/diagnostics/diagnostics.go +++ b/v2.1/diagnostics/diagnostics.go @@ -19,21 +19,21 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/diagnostics" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/diagnostics" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // diagnosticsService := diagnostics.New(esignCredential) -package diagnostics // import "github.com/jfcote87/esign/v2.1/diagnostics" +package diagnostics // import "github.com/pwaterz/esign/v2.1/diagnostics" import ( "context" "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign Diagnostics Category API operations diff --git a/v2.1/envelopes/envelopes.go b/v2.1/envelopes/envelopes.go index 6418cb7..41aa765 100644 --- a/v2.1/envelopes/envelopes.go +++ b/v2.1/envelopes/envelopes.go @@ -19,13 +19,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/envelopes" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/envelopes" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // envelopesService := envelopes.New(esignCredential) -package envelopes // import "github.com/jfcote87/esign/v2.1/envelopes" +package envelopes // import "github.com/pwaterz/esign/v2.1/envelopes" import ( "context" @@ -35,8 +35,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign Envelopes Category API operations diff --git a/v2.1/folders/folders.go b/v2.1/folders/folders.go index 739a44f..5f7ec83 100644 --- a/v2.1/folders/folders.go +++ b/v2.1/folders/folders.go @@ -17,13 +17,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/folders" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/folders" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // foldersService := folders.New(esignCredential) -package folders // import "github.com/jfcote87/esign/v2.1/folders" +package folders // import "github.com/pwaterz/esign/v2.1/folders" import ( "context" @@ -32,8 +32,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign Folders Category API operations diff --git a/v2.1/model/model.go b/v2.1/model/model.go index a86735a..81f98bb 100644 --- a/v2.1/model/model.go +++ b/v2.1/model/model.go @@ -11,7 +11,7 @@ // // Api documentation may be found at: // https://developers.docusign.com/esign-rest-api/reference -package model // import "github.com/jfcote87/esign/v2.1/model" +package model // import "github.com/pwaterz/esign/v2.1/model" import ( "fmt" diff --git a/v2.1/powerforms/powerforms.go b/v2.1/powerforms/powerforms.go index 377de0e..30a63df 100644 --- a/v2.1/powerforms/powerforms.go +++ b/v2.1/powerforms/powerforms.go @@ -15,13 +15,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/powerforms" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/powerforms" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // powerformsService := powerforms.New(esignCredential) -package powerforms // import "github.com/jfcote87/esign/v2.1/powerforms" +package powerforms // import "github.com/pwaterz/esign/v2.1/powerforms" import ( "context" @@ -30,8 +30,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign PowerForms Category API operations diff --git a/v2.1/signinggroups/signinggroups.go b/v2.1/signinggroups/signinggroups.go index 183cd0b..c95e1a9 100644 --- a/v2.1/signinggroups/signinggroups.go +++ b/v2.1/signinggroups/signinggroups.go @@ -17,21 +17,21 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/signinggroups" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/signinggroups" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // signinggroupsService := signinggroups.New(esignCredential) -package signinggroups // import "github.com/jfcote87/esign/v2.1/signinggroups" +package signinggroups // import "github.com/pwaterz/esign/v2.1/signinggroups" import ( "context" "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign SigningGroups Category API operations diff --git a/v2.1/templates/templates.go b/v2.1/templates/templates.go index 6004126..fafd582 100644 --- a/v2.1/templates/templates.go +++ b/v2.1/templates/templates.go @@ -23,13 +23,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/templates" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/templates" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // templatesService := templates.New(esignCredential) -package templates // import "github.com/jfcote87/esign/v2.1/templates" +package templates // import "github.com/pwaterz/esign/v2.1/templates" import ( "context" @@ -38,8 +38,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign Templates Category API operations diff --git a/v2.1/uncategorized/uncategorized.go b/v2.1/uncategorized/uncategorized.go index e4c50fc..6f13b87 100644 --- a/v2.1/uncategorized/uncategorized.go +++ b/v2.1/uncategorized/uncategorized.go @@ -15,21 +15,21 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/uncategorized" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/uncategorized" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // uncategorizedService := uncategorized.New(esignCredential) -package uncategorized // import "github.com/jfcote87/esign/v2.1/uncategorized" +package uncategorized // import "github.com/pwaterz/esign/v2.1/uncategorized" import ( "context" "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign Uncategorized Category API operations diff --git a/v2.1/usergroups/usergroups.go b/v2.1/usergroups/usergroups.go index 27f9bda..cc99ca2 100644 --- a/v2.1/usergroups/usergroups.go +++ b/v2.1/usergroups/usergroups.go @@ -21,13 +21,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/usergroups" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/usergroups" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // usergroupsService := usergroups.New(esignCredential) -package usergroups // import "github.com/jfcote87/esign/v2.1/usergroups" +package usergroups // import "github.com/pwaterz/esign/v2.1/usergroups" import ( "context" @@ -35,8 +35,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign UserGroups Category API operations diff --git a/v2.1/users/users.go b/v2.1/users/users.go index e4dc076..9e13075 100644 --- a/v2.1/users/users.go +++ b/v2.1/users/users.go @@ -22,13 +22,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/users" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/users" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // usersService := users.New(esignCredential) -package users // import "github.com/jfcote87/esign/v2.1/users" +package users // import "github.com/pwaterz/esign/v2.1/users" import ( "context" @@ -37,8 +37,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign Users Category API operations diff --git a/v2.1/workspaces/workspaces.go b/v2.1/workspaces/workspaces.go index 03f34d7..88d8b21 100644 --- a/v2.1/workspaces/workspaces.go +++ b/v2.1/workspaces/workspaces.go @@ -15,13 +15,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2.1/workspaces" -// "github.com/jfcote87/esign/v2.1/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2.1/workspaces" +// "github.com/pwaterz/esign/v2.1/model" // ) // ... // workspacesService := workspaces.New(esignCredential) -package workspaces // import "github.com/jfcote87/esign/v2.1/workspaces" +package workspaces // import "github.com/pwaterz/esign/v2.1/workspaces" import ( "context" @@ -30,8 +30,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2.1/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2.1/model" ) // Service implements DocuSign Workspaces Category API operations diff --git a/v2/accounts/accounts.go b/v2/accounts/accounts.go index 89a0133..1791623 100644 --- a/v2/accounts/accounts.go +++ b/v2/accounts/accounts.go @@ -23,13 +23,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/accounts" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/accounts" +// "github.com/pwaterz/esign/v2/model" // ) // ... // accountsService := accounts.New(esignCredential) -package accounts // import "github.com/jfcote87/esign/v2/accounts" +package accounts // import "github.com/pwaterz/esign/v2/accounts" import ( "context" @@ -38,8 +38,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Accounts Category API operations diff --git a/v2/authentication/authentication.go b/v2/authentication/authentication.go index 0dfbd1d..868bb8b 100644 --- a/v2/authentication/authentication.go +++ b/v2/authentication/authentication.go @@ -19,21 +19,21 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/authentication" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/authentication" +// "github.com/pwaterz/esign/v2/model" // ) // ... // authenticationService := authentication.New(esignCredential) -package authentication // import "github.com/jfcote87/esign/v2/authentication" +package authentication // import "github.com/pwaterz/esign/v2/authentication" import ( "context" "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Authentication Category API operations diff --git a/v2/billing/billing.go b/v2/billing/billing.go index a3457ef..cd1d4d7 100644 --- a/v2/billing/billing.go +++ b/v2/billing/billing.go @@ -19,13 +19,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/billing" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/billing" +// "github.com/pwaterz/esign/v2/model" // ) // ... // billingService := billing.New(esignCredential) -package billing // import "github.com/jfcote87/esign/v2/billing" +package billing // import "github.com/pwaterz/esign/v2/billing" import ( "context" @@ -33,8 +33,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Billing Category API operations diff --git a/v2/bulkenvelopes/bulkenvelopes.go b/v2/bulkenvelopes/bulkenvelopes.go index 7e68c42..f54de09 100644 --- a/v2/bulkenvelopes/bulkenvelopes.go +++ b/v2/bulkenvelopes/bulkenvelopes.go @@ -15,13 +15,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/bulkenvelopes" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/bulkenvelopes" +// "github.com/pwaterz/esign/v2/model" // ) // ... // bulkenvelopesService := bulkenvelopes.New(esignCredential) -package bulkenvelopes // import "github.com/jfcote87/esign/v2/bulkenvelopes" +package bulkenvelopes // import "github.com/pwaterz/esign/v2/bulkenvelopes" import ( "context" @@ -29,8 +29,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign BulkEnvelopes Category API operations diff --git a/v2/cloudstorage/cloudstorage.go b/v2/cloudstorage/cloudstorage.go index 03708b2..e865b26 100644 --- a/v2/cloudstorage/cloudstorage.go +++ b/v2/cloudstorage/cloudstorage.go @@ -17,13 +17,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/cloudstorage" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/cloudstorage" +// "github.com/pwaterz/esign/v2/model" // ) // ... // cloudstorageService := cloudstorage.New(esignCredential) -package cloudstorage // import "github.com/jfcote87/esign/v2/cloudstorage" +package cloudstorage // import "github.com/pwaterz/esign/v2/cloudstorage" import ( "context" @@ -31,8 +31,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign CloudStorage Category API operations diff --git a/v2/connect/connect.go b/v2/connect/connect.go index fe54863..b40cff4 100644 --- a/v2/connect/connect.go +++ b/v2/connect/connect.go @@ -32,13 +32,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/connect" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/connect" +// "github.com/pwaterz/esign/v2/model" // ) // ... // connectService := connect.New(esignCredential) -package connect // import "github.com/jfcote87/esign/v2/connect" +package connect // import "github.com/pwaterz/esign/v2/connect" import ( "context" @@ -48,8 +48,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Connect Category API operations diff --git a/v2/customtabs/customtabs.go b/v2/customtabs/customtabs.go index d6ba610..a656e86 100644 --- a/v2/customtabs/customtabs.go +++ b/v2/customtabs/customtabs.go @@ -17,21 +17,21 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/customtabs" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/customtabs" +// "github.com/pwaterz/esign/v2/model" // ) // ... // customtabsService := customtabs.New(esignCredential) -package customtabs // import "github.com/jfcote87/esign/v2/customtabs" +package customtabs // import "github.com/pwaterz/esign/v2/customtabs" import ( "context" "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign CustomTabs Category API operations diff --git a/v2/diagnostics/diagnostics.go b/v2/diagnostics/diagnostics.go index b68f228..b9ab5e0 100644 --- a/v2/diagnostics/diagnostics.go +++ b/v2/diagnostics/diagnostics.go @@ -19,21 +19,21 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/diagnostics" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/diagnostics" +// "github.com/pwaterz/esign/v2/model" // ) // ... // diagnosticsService := diagnostics.New(esignCredential) -package diagnostics // import "github.com/jfcote87/esign/v2/diagnostics" +package diagnostics // import "github.com/pwaterz/esign/v2/diagnostics" import ( "context" "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Diagnostics Category API operations diff --git a/v2/envelopes/envelopes.go b/v2/envelopes/envelopes.go index ec5fe8e..7d9e8d4 100644 --- a/v2/envelopes/envelopes.go +++ b/v2/envelopes/envelopes.go @@ -19,13 +19,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/envelopes" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/envelopes" +// "github.com/pwaterz/esign/v2/model" // ) // ... // envelopesService := envelopes.New(esignCredential) -package envelopes // import "github.com/jfcote87/esign/v2/envelopes" +package envelopes // import "github.com/pwaterz/esign/v2/envelopes" import ( "context" @@ -35,8 +35,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Envelopes Category API operations diff --git a/v2/folders/folders.go b/v2/folders/folders.go index 9760fff..12a68f1 100644 --- a/v2/folders/folders.go +++ b/v2/folders/folders.go @@ -17,13 +17,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/folders" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/folders" +// "github.com/pwaterz/esign/v2/model" // ) // ... // foldersService := folders.New(esignCredential) -package folders // import "github.com/jfcote87/esign/v2/folders" +package folders // import "github.com/pwaterz/esign/v2/folders" import ( "context" @@ -32,8 +32,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Folders Category API operations diff --git a/v2/future/future.go b/v2/future/future.go index 0f44f39..32dacea 100644 --- a/v2/future/future.go +++ b/v2/future/future.go @@ -15,8 +15,8 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign//future" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign//future" // ) // ... // futureService := future.New(esignCredential) @@ -27,8 +27,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Future Category API operations diff --git a/v2/model/model.go b/v2/model/model.go index 055ea07..903d9d4 100644 --- a/v2/model/model.go +++ b/v2/model/model.go @@ -11,7 +11,7 @@ // // Api documentation may be found at: // https://developers.docusign.com/esign-rest-api/reference -package model // import "github.com/jfcote87/esign/v2/model" +package model // import "github.com/pwaterz/esign/v2/model" import ( "fmt" diff --git a/v2/model/model_test.go b/v2/model/model_test.go index 3ce5cd1..c22d8a1 100644 --- a/v2/model/model_test.go +++ b/v2/model/model_test.go @@ -8,7 +8,7 @@ import ( "encoding/json" "testing" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign/v2/model" ) func TestDSBool(t *testing.T) { diff --git a/v2/powerforms/powerforms.go b/v2/powerforms/powerforms.go index 8815828..996fab8 100644 --- a/v2/powerforms/powerforms.go +++ b/v2/powerforms/powerforms.go @@ -15,13 +15,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/powerforms" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/powerforms" +// "github.com/pwaterz/esign/v2/model" // ) // ... // powerformsService := powerforms.New(esignCredential) -package powerforms // import "github.com/jfcote87/esign/v2/powerforms" +package powerforms // import "github.com/pwaterz/esign/v2/powerforms" import ( "context" @@ -30,8 +30,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign PowerForms Category API operations diff --git a/v2/signinggroups/signinggroups.go b/v2/signinggroups/signinggroups.go index b4164e3..452dcc1 100644 --- a/v2/signinggroups/signinggroups.go +++ b/v2/signinggroups/signinggroups.go @@ -17,21 +17,21 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/signinggroups" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/signinggroups" +// "github.com/pwaterz/esign/v2/model" // ) // ... // signinggroupsService := signinggroups.New(esignCredential) -package signinggroups // import "github.com/jfcote87/esign/v2/signinggroups" +package signinggroups // import "github.com/pwaterz/esign/v2/signinggroups" import ( "context" "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign SigningGroups Category API operations diff --git a/v2/templates/templates.go b/v2/templates/templates.go index 9c6b2b1..432893d 100644 --- a/v2/templates/templates.go +++ b/v2/templates/templates.go @@ -23,13 +23,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/templates" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/templates" +// "github.com/pwaterz/esign/v2/model" // ) // ... // templatesService := templates.New(esignCredential) -package templates // import "github.com/jfcote87/esign/v2/templates" +package templates // import "github.com/pwaterz/esign/v2/templates" import ( "context" @@ -38,8 +38,8 @@ import ( "strings" "time" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Templates Category API operations diff --git a/v2/uncategorized/uncategorized.go b/v2/uncategorized/uncategorized.go index a1b0d0e..ac5f0f8 100644 --- a/v2/uncategorized/uncategorized.go +++ b/v2/uncategorized/uncategorized.go @@ -15,21 +15,21 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/uncategorized" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/uncategorized" +// "github.com/pwaterz/esign/v2/model" // ) // ... // uncategorizedService := uncategorized.New(esignCredential) -package uncategorized // import "github.com/jfcote87/esign/v2/uncategorized" +package uncategorized // import "github.com/pwaterz/esign/v2/uncategorized" import ( "context" "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Uncategorized Category API operations diff --git a/v2/usergroups/usergroups.go b/v2/usergroups/usergroups.go index 29eeb99..b8d5a6c 100644 --- a/v2/usergroups/usergroups.go +++ b/v2/usergroups/usergroups.go @@ -21,13 +21,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/usergroups" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/usergroups" +// "github.com/pwaterz/esign/v2/model" // ) // ... // usergroupsService := usergroups.New(esignCredential) -package usergroups // import "github.com/jfcote87/esign/v2/usergroups" +package usergroups // import "github.com/pwaterz/esign/v2/usergroups" import ( "context" @@ -35,8 +35,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign UserGroups Category API operations diff --git a/v2/users/users.go b/v2/users/users.go index 8d72c9d..025f66c 100644 --- a/v2/users/users.go +++ b/v2/users/users.go @@ -22,13 +22,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/users" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/users" +// "github.com/pwaterz/esign/v2/model" // ) // ... // usersService := users.New(esignCredential) -package users // import "github.com/jfcote87/esign/v2/users" +package users // import "github.com/pwaterz/esign/v2/users" import ( "context" @@ -37,8 +37,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Users Category API operations diff --git a/v2/workspaces/workspaces.go b/v2/workspaces/workspaces.go index 43e0876..f0e6782 100644 --- a/v2/workspaces/workspaces.go +++ b/v2/workspaces/workspaces.go @@ -15,13 +15,13 @@ // Usage example: // // import ( -// "github.com/jfcote87/esign" -// "github.com/jfcote87/esign/v2/workspaces" -// "github.com/jfcote87/esign/v2/model" +// "github.com/pwaterz/esign" +// "github.com/pwaterz/esign/v2/workspaces" +// "github.com/pwaterz/esign/v2/model" // ) // ... // workspacesService := workspaces.New(esignCredential) -package workspaces // import "github.com/jfcote87/esign/v2/workspaces" +package workspaces // import "github.com/pwaterz/esign/v2/workspaces" import ( "context" @@ -30,8 +30,8 @@ import ( "net/url" "strings" - "github.com/jfcote87/esign" - "github.com/jfcote87/esign/v2/model" + "github.com/pwaterz/esign" + "github.com/pwaterz/esign/v2/model" ) // Service implements DocuSign Workspaces Category API operations