Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a0c1adb3-872f-4b04-9c66-72b150225d7f
a4b90609-1bd0-4533-a1b6-c843c7d0a02d
116 changes: 62 additions & 54 deletions README.md

Large diffs are not rendered by default.

74 changes: 69 additions & 5 deletions lib/Api/AccountInformationApi.php

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions lib/Api/ApiStatusApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ private function setRequestBodyProperty(&$body, $property, $value) {
*
* Get API Status
*
* Check whether the API is operational and verify timestamps.
*
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['check'] to see the possible values for this operation
*
* @throws \SnapTrade\ApiException on non-2xx response
Expand All @@ -162,6 +164,8 @@ public function check(
*
* Get API Status
*
* Check whether the API is operational and verify timestamps.
*
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['check'] to see the possible values for this operation
*
* @throws \SnapTrade\ApiException on non-2xx response
Expand Down Expand Up @@ -275,6 +279,8 @@ public function checkWithHttpInfo(string $contentType = self::contentTypes['chec
*
* Get API Status
*
* Check whether the API is operational and verify timestamps.
*
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['check'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand All @@ -300,6 +306,8 @@ function ($response) {
*
* Get API Status
*
* Check whether the API is operational and verify timestamps.
*
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['check'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand Down
80 changes: 60 additions & 20 deletions lib/Api/AuthenticationApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ private function setRequestBodyProperty(&$body, $property, $value) {
/**
* Operation deleteSnapTradeUser
*
* Delete SnapTrade user
* Delete user
*
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
*
* @param string $user_id user_id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSnapTradeUser'] to see the possible values for this operation
Expand All @@ -173,7 +175,9 @@ public function deleteSnapTradeUser(
/**
* Operation deleteSnapTradeUserWithHttpInfo
*
* Delete SnapTrade user
* Delete user
*
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
*
* @param string $user_id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSnapTradeUser'] to see the possible values for this operation
Expand Down Expand Up @@ -357,7 +361,9 @@ public function deleteSnapTradeUserWithHttpInfo($user_id, string $contentType =
/**
* Operation deleteSnapTradeUserAsync
*
* Delete SnapTrade user
* Delete user
*
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
*
* @param string $user_id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSnapTradeUser'] to see the possible values for this operation
Expand All @@ -383,7 +389,9 @@ function ($response) {
/**
* Operation deleteSnapTradeUserAsyncWithHttpInfo
*
* Delete SnapTrade user
* Delete user
*
* Deletes a registered user and all associated data. This action is irreversible. This API is asynchronous and will return a 200 status code if the request is accepted. The user and all associated data will be queued for deletion. Once deleted, a `USER_DELETED` webhook will be sent.
*
* @param string $user_id (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['deleteSnapTradeUser'] to see the possible values for this operation
Expand Down Expand Up @@ -558,7 +566,9 @@ public function deleteSnapTradeUserRequest($user_id, string $contentType = self:
/**
* Operation listSnapTradeUsers
*
* List SnapTrade users
* List all users
*
* Returns a list of all registered user IDs.
*
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSnapTradeUsers'] to see the possible values for this operation
*
Expand All @@ -580,7 +590,9 @@ public function listSnapTradeUsers(
/**
* Operation listSnapTradeUsersWithHttpInfo
*
* List SnapTrade users
* List all users
*
* Returns a list of all registered user IDs.
*
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSnapTradeUsers'] to see the possible values for this operation
*
Expand Down Expand Up @@ -762,7 +774,9 @@ public function listSnapTradeUsersWithHttpInfo(string $contentType = self::conte
/**
* Operation listSnapTradeUsersAsync
*
* List SnapTrade users
* List all users
*
* Returns a list of all registered user IDs.
*
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSnapTradeUsers'] to see the possible values for this operation
*
Expand All @@ -787,7 +801,9 @@ function ($response) {
/**
* Operation listSnapTradeUsersAsyncWithHttpInfo
*
* List SnapTrade users
* List all users
*
* Returns a list of all registered user IDs.
*
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listSnapTradeUsers'] to see the possible values for this operation
*
Expand Down Expand Up @@ -941,6 +957,8 @@ public function listSnapTradeUsersRequest(string $contentType = self::contentTyp
*
* Login user & generate connection link
*
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
*
* @param string $user_id user_id (required)
* @param string $user_secret user_secret (required)
* @param \SnapTrade\Model\SnapTradeLoginUserRequestBody $snap_trade_login_user_request_body snap_trade_login_user_request_body (optional)
Expand All @@ -957,8 +975,8 @@ public function loginSnapTradeUser(
$immediate_redirect = SENTINEL_VALUE,
$custom_redirect = SENTINEL_VALUE,
$reconnect = SENTINEL_VALUE,
$connection_type = SENTINEL_VALUE,
$connection_portal_version = SENTINEL_VALUE,
$connection_type = 'read',
$connection_portal_version = 'v3',

string $contentType = self::contentTypes['loginSnapTradeUser'][0]
)
Expand All @@ -981,6 +999,8 @@ public function loginSnapTradeUser(
*
* Login user & generate connection link
*
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
*
* @param string $user_id (required)
* @param string $user_secret (required)
* @param \SnapTrade\Model\SnapTradeLoginUserRequestBody $snap_trade_login_user_request_body (optional)
Expand Down Expand Up @@ -1169,6 +1189,8 @@ public function loginSnapTradeUserWithHttpInfo($user_id, $user_secret, $snap_tra
*
* Login user & generate connection link
*
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
*
* @param string $user_id (required)
* @param string $user_secret (required)
* @param \SnapTrade\Model\SnapTradeLoginUserRequestBody $snap_trade_login_user_request_body (optional)
Expand All @@ -1184,8 +1206,8 @@ public function loginSnapTradeUserAsync(
$immediate_redirect = SENTINEL_VALUE,
$custom_redirect = SENTINEL_VALUE,
$reconnect = SENTINEL_VALUE,
$connection_type = SENTINEL_VALUE,
$connection_portal_version = SENTINEL_VALUE,
$connection_type = 'read',
$connection_portal_version = 'v3',

string $contentType = self::contentTypes['loginSnapTradeUser'][0]
)
Expand All @@ -1212,6 +1234,8 @@ function ($response) {
*
* Login user & generate connection link
*
* Logs in a SnapTrade user and returns an authenticated connection portal URL for them to use to connect a brokerage account.
*
* @param string $user_id (required)
* @param string $user_secret (required)
* @param \SnapTrade\Model\SnapTradeLoginUserRequestBody $snap_trade_login_user_request_body (optional)
Expand Down Expand Up @@ -1425,7 +1449,9 @@ public function loginSnapTradeUserRequest($user_id, $user_secret, $snap_trade_lo
/**
* Operation registerSnapTradeUser
*
* Create SnapTrade user
* Register user
*
* Registers a new SnapTrade user under your Client ID. A user secret will be automatically generated for you and must be properly stored in your system. Most SnapTrade operations require a user ID and user secret to be passed in as parameters.
*
* @param \SnapTrade\Model\SnapTradeRegisterUserRequestBody $snap_trade_register_user_request_body snap_trade_register_user_request_body (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['registerSnapTradeUser'] to see the possible values for this operation
Expand All @@ -1451,7 +1477,9 @@ public function registerSnapTradeUser(
/**
* Operation registerSnapTradeUserWithHttpInfo
*
* Create SnapTrade user
* Register user
*
* Registers a new SnapTrade user under your Client ID. A user secret will be automatically generated for you and must be properly stored in your system. Most SnapTrade operations require a user ID and user secret to be passed in as parameters.
*
* @param \SnapTrade\Model\SnapTradeRegisterUserRequestBody $snap_trade_register_user_request_body (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['registerSnapTradeUser'] to see the possible values for this operation
Expand Down Expand Up @@ -1635,7 +1663,9 @@ public function registerSnapTradeUserWithHttpInfo($snap_trade_register_user_requ
/**
* Operation registerSnapTradeUserAsync
*
* Create SnapTrade user
* Register user
*
* Registers a new SnapTrade user under your Client ID. A user secret will be automatically generated for you and must be properly stored in your system. Most SnapTrade operations require a user ID and user secret to be passed in as parameters.
*
* @param \SnapTrade\Model\SnapTradeRegisterUserRequestBody $snap_trade_register_user_request_body (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['registerSnapTradeUser'] to see the possible values for this operation
Expand Down Expand Up @@ -1664,7 +1694,9 @@ function ($response) {
/**
* Operation registerSnapTradeUserAsyncWithHttpInfo
*
* Create SnapTrade user
* Register user
*
* Registers a new SnapTrade user under your Client ID. A user secret will be automatically generated for you and must be properly stored in your system. Most SnapTrade operations require a user ID and user secret to be passed in as parameters.
*
* @param \SnapTrade\Model\SnapTradeRegisterUserRequestBody $snap_trade_register_user_request_body (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['registerSnapTradeUser'] to see the possible values for this operation
Expand Down Expand Up @@ -1839,7 +1871,9 @@ public function registerSnapTradeUserRequest($snap_trade_register_user_request_b
/**
* Operation resetSnapTradeUserSecret
*
* Obtain a new user secret for a user
* Rotate user secret
*
* Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
*
* @param \SnapTrade\Model\UserIDandSecret $user_i_dand_secret user_i_dand_secret (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['resetSnapTradeUserSecret'] to see the possible values for this operation
Expand Down Expand Up @@ -1867,7 +1901,9 @@ public function resetSnapTradeUserSecret(
/**
* Operation resetSnapTradeUserSecretWithHttpInfo
*
* Obtain a new user secret for a user
* Rotate user secret
*
* Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
*
* @param \SnapTrade\Model\UserIDandSecret $user_i_dand_secret (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['resetSnapTradeUserSecret'] to see the possible values for this operation
Expand Down Expand Up @@ -2051,7 +2087,9 @@ public function resetSnapTradeUserSecretWithHttpInfo($user_i_dand_secret, string
/**
* Operation resetSnapTradeUserSecretAsync
*
* Obtain a new user secret for a user
* Rotate user secret
*
* Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
*
* @param \SnapTrade\Model\UserIDandSecret $user_i_dand_secret (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['resetSnapTradeUserSecret'] to see the possible values for this operation
Expand Down Expand Up @@ -2082,7 +2120,9 @@ function ($response) {
/**
* Operation resetSnapTradeUserSecretAsyncWithHttpInfo
*
* Obtain a new user secret for a user
* Rotate user secret
*
* Rotates the secret for a SnapTrade user. You might use this if `userSecret` is compromised. Please note that if you call this endpoint and fail to save the new secret, you'll no longer be able to access any data for this user, and your only option will be to delete and recreate the user, then ask them to reconnect.
*
* @param \SnapTrade\Model\UserIDandSecret $user_i_dand_secret (required)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['resetSnapTradeUserSecret'] to see the possible values for this operation
Expand Down
Loading