-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #396 from Ecwid/ECWID-134877
ECWID-134877 - added implementation for getApplicationTokenInfo method
- Loading branch information
Showing
4 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/kotlin/com/ecwid/apiclient/v3/dto/application/request/ApplicationTokenRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.ecwid.apiclient.v3.dto.application.request | ||
|
||
import com.ecwid.apiclient.v3.dto.ApiRequest | ||
import com.ecwid.apiclient.v3.impl.RequestInfo | ||
|
||
class ApplicationTokenRequest : ApiRequest { | ||
override fun toRequestInfo() = RequestInfo.createGetRequest( | ||
pathSegments = listOf( | ||
"application", | ||
"token", | ||
) | ||
) | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/kotlin/com/ecwid/apiclient/v3/dto/application/result/ApplicationTokenResult.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.ecwid.apiclient.v3.dto.application.result | ||
|
||
import com.ecwid.apiclient.v3.dto.common.ApiResultDTO | ||
import java.util.* | ||
|
||
data class ApplicationTokenResult( | ||
val permissions: List<String> = emptyList(), | ||
val created: Date = Date(), | ||
val expires: Date = Date(), | ||
) : ApiResultDTO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters