Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Increase/increase-kotlin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.0
Choose a base ref
...
head repository: Increase/increase-kotlin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.3.0
Choose a head ref
  • 8 commits
  • 61 files changed
  • 1 contributor

Commits on Jun 9, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ca56eec View commit details
  2. feat(api): add new endpoints + properties + enums (#13)

    - Adds `get /entity_supplemental_documents`
    - Adds `post /simulations/programs`
    stainless-bot committed Jun 9, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    70cd75f View commit details

Commits on Jun 12, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    c912af8 View commit details

Commits on Jun 19, 2023

  1. Copy the full SHA
    49a8a71 View commit details
  2. refactor(api)!: rename return reason enum member (#19)

    # Migration
    Renamed `CHECK_TRUNCATION_ENTRY_RETURN` to `CUSTOMER_ADVISED_NOT_WITHIN_AUTHORIZATION_TERMS`
    stainless-bot committed Jun 19, 2023
    Copy the full SHA
    77624f7 View commit details
  3. Copy the full SHA
    78f1806 View commit details
  4. refactor(api): remove unused properties and enum members (#21)

    Also adds the following enum members
    - `unreadable_image`
    - `endorsement_irregular`
    stainless-bot committed Jun 19, 2023
    Copy the full SHA
    b4fa416 View commit details
  5. Copy the full SHA
    031037e View commit details
Showing with 30,234 additions and 40,227 deletions.
  1. +1 −1 .release-please-manifest.json
  2. +1 −1 .stats.yml
  3. +32 −0 CHANGELOG.md
  4. +3 −3 README.md
  5. +0 −50 bin/check-test-server
  6. +1 −1 build.gradle.kts
  7. +3 −3 buildSrc/src/main/kotlin/increase.publish.gradle.kts
  8. +36 −1 increase-kotlin-core/src/main/kotlin/com/increase/api/models/Account.kt
  9. +12 −3 increase-kotlin-core/src/main/kotlin/com/increase/api/models/AccountCreateParams.kt
  10. +17 −1 increase-kotlin-core/src/main/kotlin/com/increase/api/models/AccountListParams.kt
  11. +398 −7 increase-kotlin-core/src/main/kotlin/com/increase/api/models/AchTransfer.kt
  12. +7,337 −9,398 increase-kotlin-core/src/main/kotlin/com/increase/api/models/AchTransferSimulation.kt
  13. +1,602 −2,647 increase-kotlin-core/src/main/kotlin/com/increase/api/models/CardAuthorizationSimulation.kt
  14. +6 −0 increase-kotlin-core/src/main/kotlin/com/increase/api/models/CheckDeposit.kt
  15. +6 −0 increase-kotlin-core/src/main/kotlin/com/increase/api/models/CheckTransfer.kt
  16. +7 −406 increase-kotlin-core/src/main/kotlin/com/increase/api/models/DeclinedTransaction.kt
  17. +152 −7 increase-kotlin-core/src/main/kotlin/com/increase/api/models/Entity.kt
  18. +203 −0 increase-kotlin-core/src/main/kotlin/com/increase/api/models/EntitySupplementalDocumentListPage.kt
  19. +205 −0 ...se-kotlin-core/src/main/kotlin/com/increase/api/models/EntitySupplementalDocumentListPageAsync.kt
  20. +150 −0 increase-kotlin-core/src/main/kotlin/com/increase/api/models/EntitySupplementalDocumentListParams.kt
  21. +7,337 −9,398 ...n-core/src/main/kotlin/com/increase/api/models/InboundRealTimePaymentsTransferSimulationResult.kt
  22. +3,877 −5,536 increase-kotlin-core/src/main/kotlin/com/increase/api/models/InterestPaymentSimulationResult.kt
  23. +35 −670 increase-kotlin-core/src/main/kotlin/com/increase/api/models/PendingTransaction.kt
  24. +349 −6 increase-kotlin-core/src/main/kotlin/com/increase/api/models/SimulationAchTransferReturnParams.kt
  25. +228 −0 increase-kotlin-core/src/main/kotlin/com/increase/api/models/SimulationProgramCreateParams.kt
  26. +234 −0 increase-kotlin-core/src/main/kotlin/com/increase/api/models/SupplementalDocument.kt
  27. +3,695 −5,351 increase-kotlin-core/src/main/kotlin/com/increase/api/models/Transaction.kt
  28. +0 −57 increase-kotlin-core/src/main/kotlin/com/increase/api/models/TransactionListParams.kt
  29. +3,877 −5,536 increase-kotlin-core/src/main/kotlin/com/increase/api/models/WireTransferSimulation.kt
  30. +3 −0 increase-kotlin-core/src/main/kotlin/com/increase/api/services/async/SimulationServiceAsync.kt
  31. +6 −0 increase-kotlin-core/src/main/kotlin/com/increase/api/services/async/SimulationServiceAsyncImpl.kt
  32. +8 −0 ...core/src/main/kotlin/com/increase/api/services/async/entities/SupplementalDocumentServiceAsync.kt
  33. +31 −0 .../src/main/kotlin/com/increase/api/services/async/entities/SupplementalDocumentServiceAsyncImpl.kt
  34. +20 −0 ...se-kotlin-core/src/main/kotlin/com/increase/api/services/async/simulations/ProgramServiceAsync.kt
  35. +54 −0 ...otlin-core/src/main/kotlin/com/increase/api/services/async/simulations/ProgramServiceAsyncImpl.kt
  36. +3 −0 increase-kotlin-core/src/main/kotlin/com/increase/api/services/blocking/SimulationService.kt
  37. +6 −0 increase-kotlin-core/src/main/kotlin/com/increase/api/services/blocking/SimulationServiceImpl.kt
  38. +8 −0 ...n-core/src/main/kotlin/com/increase/api/services/blocking/entities/SupplementalDocumentService.kt
  39. +31 −0 ...re/src/main/kotlin/com/increase/api/services/blocking/entities/SupplementalDocumentServiceImpl.kt
  40. +20 −0 ...ease-kotlin-core/src/main/kotlin/com/increase/api/services/blocking/simulations/ProgramService.kt
  41. +54 −0 ...-kotlin-core/src/main/kotlin/com/increase/api/services/blocking/simulations/ProgramServiceImpl.kt
  42. +3 −0 increase-kotlin-core/src/test/kotlin/com/increase/api/models/AccountListParamsTest.kt
  43. +2 −0 increase-kotlin-core/src/test/kotlin/com/increase/api/models/AccountTest.kt
  44. +4 −214 increase-kotlin-core/src/test/kotlin/com/increase/api/models/AchTransferSimulationTest.kt
  45. +2 −0 increase-kotlin-core/src/test/kotlin/com/increase/api/models/AchTransferTest.kt
  46. +0 −96 increase-kotlin-core/src/test/kotlin/com/increase/api/models/CardAuthorizationSimulationTest.kt
  47. +0 −24 increase-kotlin-core/src/test/kotlin/com/increase/api/models/DeclinedTransactionTest.kt
  48. +40 −0 ...e-kotlin-core/src/test/kotlin/com/increase/api/models/EntitySupplementalDocumentListParamsTest.kt
  49. +15 −2 increase-kotlin-core/src/test/kotlin/com/increase/api/models/EntityTest.kt
  50. +4 −256 ...re/src/test/kotlin/com/increase/api/models/InboundRealTimePaymentsTransferSimulationResultTest.kt
  51. +4 −192 increase-kotlin-core/src/test/kotlin/com/increase/api/models/InterestPaymentSimulationResultTest.kt
  52. +0 −42 increase-kotlin-core/src/test/kotlin/com/increase/api/models/PendingTransactionTest.kt
  53. +29 −0 increase-kotlin-core/src/test/kotlin/com/increase/api/models/SimulationProgramCreateParamsTest.kt
  54. +24 −0 increase-kotlin-core/src/test/kotlin/com/increase/api/models/SupplementalDocumentTest.kt
  55. +4 −130 increase-kotlin-core/src/test/kotlin/com/increase/api/models/TransactionTest.kt
  56. +4 −180 increase-kotlin-core/src/test/kotlin/com/increase/api/models/WireTransferSimulationTest.kt
  57. +1 −0 increase-kotlin-core/src/test/kotlin/com/increase/api/services/ErrorHandlingTest.kt
  58. +3 −0 increase-kotlin-core/src/test/kotlin/com/increase/api/services/ServiceParamsTest.kt
  59. +17 −0 ...re/src/test/kotlin/com/increase/api/services/blocking/entities/SupplementalDocumentServiceTest.kt
  60. +25 −0 ...-kotlin-core/src/test/kotlin/com/increase/api/services/blocking/simulations/ProgramServiceTest.kt
  61. +5 −8 release-please-config.json
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.2.0"
".": "0.3.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 131
configured_endpoints: 133
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Changelog

## [0.3.0](https://github.com/Increase/increase-kotlin/compare/v0.2.0...v0.3.0) (2023-06-19)


### ⚠ BREAKING CHANGES

* **api:** rename return reason enum member ([#19](https://github.com/Increase/increase-kotlin/issues/19))

### Features

* **api:** add new endpoints + properties + enums ([#13](https://github.com/Increase/increase-kotlin/issues/13)) ([70cd75f](https://github.com/Increase/increase-kotlin/commit/70cd75f5bb256be0483f6467d9c138ce610446c5))


### Bug Fixes

* **metadata:** correct scm URL ([#11](https://github.com/Increase/increase-kotlin/issues/11)) ([ca56eec](https://github.com/Increase/increase-kotlin/commit/ca56eec435984535401181165860314b453bed14))


### Chores

* **internal:** remove unused check-test-server script ([#15](https://github.com/Increase/increase-kotlin/issues/15)) ([c912af8](https://github.com/Increase/increase-kotlin/commit/c912af8d3341aaba8078ef5b23f44b177f276ac6))


### Documentation

* point to github repo instead of email contact ([#20](https://github.com/Increase/increase-kotlin/issues/20)) ([78f1806](https://github.com/Increase/increase-kotlin/commit/78f18063682fc9f41250892ce7ba75fee61e4141))


### Refactors

* **api:** remove unused properties and enum members ([#21](https://github.com/Increase/increase-kotlin/issues/21)) ([b4fa416](https://github.com/Increase/increase-kotlin/commit/b4fa416e21fbed5d1d4e19b72fecea6048214e50))
* **api:** rename return reason enum member ([#19](https://github.com/Increase/increase-kotlin/issues/19)) ([77624f7](https://github.com/Increase/increase-kotlin/commit/77624f7c9d381fb9ee2976b89334b3e955f45f30))

## [0.2.0](https://github.com/Increase/increase-kotlin/compare/v0.1.0...v0.2.0) (2023-05-31)


6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

The Increase Kotlin SDK provides convenient access to the Increase REST API from applications written in Kotlin. It includes helper classes with helpful types and documentation for every request and response property.

This package is currently in beta (pre-v1.0.0). We expect some breaking changes to rarely-used areas of the SDK, and appreciate your [feedback](mailto:dev-feedback@increase.com).
This package is currently in beta (pre-v1.0.0). We expect some breaking changes to rarely-used areas of the SDK, and appreciate your [feedback](https://www.github.com/increase/increase-kotlin/issues).

The Increase Kotlin SDK is similar to the Increase Java SDK but with minor differences that make it more ergonomic for use in Kotlin, such as nullable values instead of `Optional`, `Sequence` instead of `Stream`, and suspend functions instead of `CompletableFuture`.

@@ -21,7 +21,7 @@ The API documentation can be found [here](https://increase.com/documentation).
<!-- x-release-please-start-version -->

```kotlin
implementation("com.increase.api:increase-kotlin:0.2.0")
implementation("com.increase.api:increase-kotlin:0.3.0")
```

#### Maven
@@ -30,7 +30,7 @@ implementation("com.increase.api:increase-kotlin:0.2.0")
<dependency>
<groupId>com.increase.api</groupId>
<artifactId>increase-kotlin</artifactId>
<version>0.2.0</version>
<version>0.3.0</version>
</dependency>
```

50 changes: 0 additions & 50 deletions bin/check-test-server

This file was deleted.

2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ plugins {

allprojects {
group = "com.increase.api"
version = "0.2.0" // x-release-please-version
version = "0.3.0" // x-release-please-version
}

nexusPublishing {
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/increase.publish.gradle.kts
Original file line number Diff line number Diff line change
@@ -33,9 +33,9 @@ configure<PublishingExtension> {
}

scm {
connection.set("scm:git:git://github.com/increase/increase-java.git")
developerConnection.set("scm:git:git://github.com/increase/increase-java.git")
url.set("https://github.com/increase/increase-java")
connection.set("scm:git:git://github.com/increase/increase-kotlin.git")
developerConnection.set("scm:git:git://github.com/increase/increase-kotlin.git")
url.set("https://github.com/increase/increase-kotlin")
}

versionMapping {
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ private constructor(
private val id: JsonField<String>,
private val interestAccrued: JsonField<String>,
private val interestAccruedAt: JsonField<LocalDate>,
private val interestRate: JsonField<String>,
private val name: JsonField<String>,
private val status: JsonField<Status>,
private val type: JsonField<Type>,
@@ -74,6 +75,12 @@ private constructor(
*/
fun interestAccruedAt(): LocalDate? = interestAccruedAt.getNullable("interest_accrued_at")

/**
* The Interest Rate currently being earned on the account, as a string containing a decimal
* number. For example, a 1% interest rate would be represented as "0.01".
*/
fun interestRate(): String = interestRate.getRequired("interest_rate")

/** The name you choose for the Account. */
fun name(): String = name.getRequired("name")

@@ -119,6 +126,12 @@ private constructor(
@ExcludeMissing
fun _interestAccruedAt() = interestAccruedAt

/**
* The Interest Rate currently being earned on the account, as a string containing a decimal
* number. For example, a 1% interest rate would be represented as "0.01".
*/
@JsonProperty("interest_rate") @ExcludeMissing fun _interestRate() = interestRate

/** The name you choose for the Account. */
@JsonProperty("name") @ExcludeMissing fun _name() = name

@@ -141,6 +154,7 @@ private constructor(
id()
interestAccrued()
interestAccruedAt()
interestRate()
name()
status()
type()
@@ -163,6 +177,7 @@ private constructor(
this.id == other.id &&
this.interestAccrued == other.interestAccrued &&
this.interestAccruedAt == other.interestAccruedAt &&
this.interestRate == other.interestRate &&
this.name == other.name &&
this.status == other.status &&
this.type == other.type &&
@@ -180,6 +195,7 @@ private constructor(
id,
interestAccrued,
interestAccruedAt,
interestRate,
name,
status,
type,
@@ -190,7 +206,7 @@ private constructor(
}

override fun toString() =
"Account{createdAt=$createdAt, currency=$currency, entityId=$entityId, informationalEntityId=$informationalEntityId, id=$id, interestAccrued=$interestAccrued, interestAccruedAt=$interestAccruedAt, name=$name, status=$status, type=$type, additionalProperties=$additionalProperties}"
"Account{createdAt=$createdAt, currency=$currency, entityId=$entityId, informationalEntityId=$informationalEntityId, id=$id, interestAccrued=$interestAccrued, interestAccruedAt=$interestAccruedAt, interestRate=$interestRate, name=$name, status=$status, type=$type, additionalProperties=$additionalProperties}"

companion object {

@@ -206,6 +222,7 @@ private constructor(
private var id: JsonField<String> = JsonMissing.of()
private var interestAccrued: JsonField<String> = JsonMissing.of()
private var interestAccruedAt: JsonField<LocalDate> = JsonMissing.of()
private var interestRate: JsonField<String> = JsonMissing.of()
private var name: JsonField<String> = JsonMissing.of()
private var status: JsonField<Status> = JsonMissing.of()
private var type: JsonField<Type> = JsonMissing.of()
@@ -219,6 +236,7 @@ private constructor(
this.id = account.id
this.interestAccrued = account.interestAccrued
this.interestAccruedAt = account.interestAccruedAt
this.interestRate = account.interestRate
this.name = account.name
this.status = account.status
this.type = account.type
@@ -312,6 +330,22 @@ private constructor(
this.interestAccruedAt = interestAccruedAt
}

/**
* The Interest Rate currently being earned on the account, as a string containing a decimal
* number. For example, a 1% interest rate would be represented as "0.01".
*/
fun interestRate(interestRate: String) = interestRate(JsonField.of(interestRate))

/**
* The Interest Rate currently being earned on the account, as a string containing a decimal
* number. For example, a 1% interest rate would be represented as "0.01".
*/
@JsonProperty("interest_rate")
@ExcludeMissing
fun interestRate(interestRate: JsonField<String>) = apply {
this.interestRate = interestRate
}

/** The name you choose for the Account. */
fun name(name: String) = name(JsonField.of(name))

@@ -363,6 +397,7 @@ private constructor(
id,
interestAccrued,
interestAccruedAt,
interestRate,
name,
status,
type,
Original file line number Diff line number Diff line change
@@ -60,7 +60,10 @@ constructor(
/** The identifier for the Entity that will own the Account. */
@JsonProperty("entity_id") fun entityId(): String? = entityId

/** The identifier for the Program that this Account falls under. */
/**
* The identifier for the Program that this Account falls under. Required if you operate
* more than one Program.
*/
@JsonProperty("program_id") fun programId(): String? = programId

/**
@@ -134,7 +137,10 @@ constructor(
@JsonProperty("entity_id")
fun entityId(entityId: String) = apply { this.entityId = entityId }

/** The identifier for the Program that this Account falls under. */
/**
* The identifier for the Program that this Account falls under. Required if you operate
* more than one Program.
*/
@JsonProperty("program_id")
fun programId(programId: String) = apply { this.programId = programId }

@@ -242,7 +248,10 @@ constructor(
/** The identifier for the Entity that will own the Account. */
fun entityId(entityId: String) = apply { this.entityId = entityId }

/** The identifier for the Program that this Account falls under. */
/**
* The identifier for the Program that this Account falls under. Required if you operate
* more than one Program.
*/
fun programId(programId: String) = apply { this.programId = programId }

/**
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ constructor(
private val cursor: String?,
private val limit: Long?,
private val entityId: String?,
private val informationalEntityId: String?,
private val status: Status?,
private val createdAt: CreatedAt?,
private val additionalQueryParams: Map<String, List<String>>,
@@ -28,6 +29,8 @@ constructor(

fun entityId(): String? = entityId

fun informationalEntityId(): String? = informationalEntityId

fun status(): Status? = status

fun createdAt(): CreatedAt? = createdAt
@@ -37,6 +40,9 @@ constructor(
this.cursor?.let { params.put("cursor", listOf(it.toString())) }
this.limit?.let { params.put("limit", listOf(it.toString())) }
this.entityId?.let { params.put("entity_id", listOf(it.toString())) }
this.informationalEntityId?.let {
params.put("informational_entity_id", listOf(it.toString()))
}
this.status?.let { params.put("status", listOf(it.toString())) }
this.createdAt?.forEachQueryParam { key, values -> params.put("created_at.$key", values) }
params.putAll(additionalQueryParams)
@@ -58,6 +64,7 @@ constructor(
this.cursor == other.cursor &&
this.limit == other.limit &&
this.entityId == other.entityId &&
this.informationalEntityId == other.informationalEntityId &&
this.status == other.status &&
this.createdAt == other.createdAt &&
this.additionalQueryParams == other.additionalQueryParams &&
@@ -69,6 +76,7 @@ constructor(
cursor,
limit,
entityId,
informationalEntityId,
status,
createdAt,
additionalQueryParams,
@@ -77,7 +85,7 @@ constructor(
}

override fun toString() =
"AccountListParams{cursor=$cursor, limit=$limit, entityId=$entityId, status=$status, createdAt=$createdAt, additionalQueryParams=$additionalQueryParams, additionalHeaders=$additionalHeaders}"
"AccountListParams{cursor=$cursor, limit=$limit, entityId=$entityId, informationalEntityId=$informationalEntityId, status=$status, createdAt=$createdAt, additionalQueryParams=$additionalQueryParams, additionalHeaders=$additionalHeaders}"

fun toBuilder() = Builder().from(this)

@@ -92,6 +100,7 @@ constructor(
private var cursor: String? = null
private var limit: Long? = null
private var entityId: String? = null
private var informationalEntityId: String? = null
private var status: Status? = null
private var createdAt: CreatedAt? = null
private var additionalQueryParams: MutableMap<String, MutableList<String>> = mutableMapOf()
@@ -101,6 +110,7 @@ constructor(
this.cursor = accountListParams.cursor
this.limit = accountListParams.limit
this.entityId = accountListParams.entityId
this.informationalEntityId = accountListParams.informationalEntityId
this.status = accountListParams.status
this.createdAt = accountListParams.createdAt
additionalQueryParams(accountListParams.additionalQueryParams)
@@ -118,6 +128,11 @@ constructor(
/** Filter Accounts for those belonging to the specified Entity. */
fun entityId(entityId: String) = apply { this.entityId = entityId }

/** Filter Accounts for those belonging to the specified Entity as informational. */
fun informationalEntityId(informationalEntityId: String) = apply {
this.informationalEntityId = informationalEntityId
}

/** Filter Accounts for those with the specified status. */
fun status(status: Status) = apply { this.status = status }

@@ -168,6 +183,7 @@ constructor(
cursor,
limit,
entityId,
informationalEntityId,
status,
createdAt,
additionalQueryParams.mapValues { it.value.toUnmodifiable() }.toUnmodifiable(),
Loading