@@ -61,8 +61,8 @@ package main
6161
6262import (
6363 " context"
64- bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v6 "
65- " github.com/codatio/client-sdk-go/bank-feeds/v6 /pkg/models/shared"
64+ bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v7 "
65+ " github.com/codatio/client-sdk-go/bank-feeds/v7 /pkg/models/shared"
6666 " log"
6767)
6868
@@ -112,6 +112,7 @@ func main() {
112112* [ Create] ( docs/sdks/companies/README.md#create ) - Create company
113113* [ Delete] ( docs/sdks/companies/README.md#delete ) - Delete a company
114114* [ Get] ( docs/sdks/companies/README.md#get ) - Get company
115+ * [ GetAccessToken] ( docs/sdks/companies/README.md#getaccesstoken ) - Get company access token
115116* [ List] ( docs/sdks/companies/README.md#list ) - List companies
116117* [ Update] ( docs/sdks/companies/README.md#update ) - Update company
117118
@@ -134,7 +135,8 @@ func main() {
134135
135136### [ SourceAccounts] ( docs/sdks/sourceaccounts/README.md )
136137
137- * [ Create] ( docs/sdks/sourceaccounts/README.md#create ) - Create source account
138+ * [ Create] ( docs/sdks/sourceaccounts/README.md#create ) - Create single source account
139+ * [ CreateBatch] ( docs/sdks/sourceaccounts/README.md#createbatch ) - Create source accounts
138140* [ Delete] ( docs/sdks/sourceaccounts/README.md#delete ) - Delete source account
139141* [ DeleteCredentials] ( docs/sdks/sourceaccounts/README.md#deletecredentials ) - Delete all source account credentials
140142* [ GenerateCredentials] ( docs/sdks/sourceaccounts/README.md#generatecredentials ) - Generate source account credentials
@@ -148,6 +150,7 @@ func main() {
148150### [ Transactions] ( docs/sdks/transactions/README.md )
149151
150152* [ Create] ( docs/sdks/transactions/README.md#create ) - Create bank transactions
153+ * [ GetCreateModel] ( docs/sdks/transactions/README.md#getcreatemodel ) - Get create bank transactions model
151154* [ GetCreateOperation] ( docs/sdks/transactions/README.md#getcreateoperation ) - Get create operation
152155* [ ListCreateOperations] ( docs/sdks/transactions/README.md#listcreateoperations ) - List create operations
153156
@@ -171,9 +174,9 @@ package main
171174
172175import (
173176 " context"
174- bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v6 "
175- " github.com/codatio/client-sdk-go/bank-feeds/v6 /pkg/models/shared"
176- " github.com/codatio/client-sdk-go/bank-feeds/v6 /pkg/retry"
177+ bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v7 "
178+ " github.com/codatio/client-sdk-go/bank-feeds/v7 /pkg/models/shared"
179+ " github.com/codatio/client-sdk-go/bank-feeds/v7 /pkg/retry"
177180 " log"
178181 " pkg/models/operations"
179182)
@@ -216,9 +219,9 @@ package main
216219
217220import (
218221 " context"
219- bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v6 "
220- " github.com/codatio/client-sdk-go/bank-feeds/v6 /pkg/models/shared"
221- " github.com/codatio/client-sdk-go/bank-feeds/v6 /pkg/retry"
222+ bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v7 "
223+ " github.com/codatio/client-sdk-go/bank-feeds/v7 /pkg/models/shared"
224+ " github.com/codatio/client-sdk-go/bank-feeds/v7 /pkg/retry"
222225 " log"
223226)
224227
@@ -267,10 +270,10 @@ By Default, an API error will return `sdkerrors.SDKError`. When custom error res
267270
268271For example, the ` Create ` function may return the following errors:
269272
270- | Error Type | Status Code | Content Type |
271- | --------------------------------- | --------------------------------- | ----------------- ---------------- |
272- | sdkerrors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
273- | sdkerrors.SDKError | 4XX, 5XX | \* /\* |
273+ | Error Type | Status Code | Content Type |
274+ | ---------------------- | --------------------------------- | ---------------- |
275+ | sdkerrors.ErrorMessage | 400, 401, 402, 403, 429, 500, 503 | application/json |
276+ | sdkerrors.SDKError | 4XX, 5XX | \* /\* |
274277
275278### Example
276279
@@ -280,9 +283,9 @@ package main
280283import (
281284 " context"
282285 " errors"
283- bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v6 "
284- " github.com/codatio/client-sdk-go/bank-feeds/v6 /pkg/models/sdkerrors"
285- " github.com/codatio/client-sdk-go/bank-feeds/v6 /pkg/models/shared"
286+ bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v7 "
287+ " github.com/codatio/client-sdk-go/bank-feeds/v7 /pkg/models/sdkerrors"
288+ " github.com/codatio/client-sdk-go/bank-feeds/v7 /pkg/models/shared"
286289 " log"
287290)
288291
@@ -322,60 +325,16 @@ func main() {
322325<!-- Start Server Selection [server] -->
323326## Server Selection
324327
325- ### Select Server by Index
326-
327- You can override the default server globally using the ` WithServerIndex ` option when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:
328-
329- | # | Server | Variables |
330- | - | ------ | --------- |
331- | 0 | ` https://api.codat.io ` | None |
332-
333- #### Example
334-
335- ``` go
336- package main
337-
338- import (
339- " context"
340- bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v6"
341- " github.com/codatio/client-sdk-go/bank-feeds/v6/pkg/models/shared"
342- " log"
343- )
344-
345- func main () {
346- s := bankfeeds.New (
347- bankfeeds.WithServerIndex (0 ),
348- bankfeeds.WithSecurity (shared.Security {
349- AuthHeader: " Basic BASE_64_ENCODED(API_KEY)" ,
350- }),
351- )
352-
353- ctx := context.Background ()
354- res , err := s.Companies .Create (ctx, &shared.CompanyRequestBody {
355- Description: bankfeeds.String (" Requested early access to the new financing scheme." ),
356- Name: " Technicalium" ,
357- })
358- if err != nil {
359- log.Fatal (err)
360- }
361- if res.Company != nil {
362- // handle response
363- }
364- }
365-
366- ```
367-
368-
369328### Override Server URL Per-Client
370329
371- The default server can also be overridden globally using the ` WithServerURL ` option when initializing the SDK client instance. For example:
330+ The default server can also be overridden globally using the ` WithServerURL(serverURL string) ` option when initializing the SDK client instance. For example:
372331``` go
373332package main
374333
375334import (
376335 " context"
377- bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v6 "
378- " github.com/codatio/client-sdk-go/bank-feeds/v6 /pkg/models/shared"
336+ bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v7 "
337+ " github.com/codatio/client-sdk-go/bank-feeds/v7 /pkg/models/shared"
379338 " log"
380339)
381340
@@ -443,18 +402,18 @@ This can be a convenient way to configure timeouts, cookies, proxies, custom hea
443402
444403This SDK supports the following security scheme globally:
445404
446- | Name | Type | Scheme |
447- | ------------ | ------------ | ----- ------- |
448- | ` AuthHeader ` | apiKey | API key |
405+ | Name | Type | Scheme |
406+ | ------------ | ------ | ------- |
407+ | ` AuthHeader ` | apiKey | API key |
449408
450409You can configure it using the ` WithSecurity ` option when initializing the SDK client instance. For example:
451410``` go
452411package main
453412
454413import (
455414 " context"
456- bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v6 "
457- " github.com/codatio/client-sdk-go/bank-feeds/v6 /pkg/models/shared"
415+ bankfeeds " github.com/codatio/client-sdk-go/bank-feeds/v7 "
416+ " github.com/codatio/client-sdk-go/bank-feeds/v7 /pkg/models/shared"
458417 " log"
459418)
460419
0 commit comments