Skip to content
Merged
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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.30.2"
".": "0.31.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 36
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-15385b754979d87bd7e583f618870246e79d1430a761e5bcd653db78cfab4789.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-60f88b9ae0cedc03dd888b63ca8dec25658c87e6cc3493170114144ca9e070c9.yml
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.31.0 (2024-07-26)

Full Changelog: [v0.30.2...v0.31.0](https://github.com/Finch-API/finch-api-java/compare/v0.30.2...v0.31.0)

### Features

* **api:** add 'payment frequencies' and 'pay group ids' to payment model ([#262](https://github.com/Finch-API/finch-api-java/issues/262)) ([0e1ab3c](https://github.com/Finch-API/finch-api-java/commit/0e1ab3c963b19e8212a76f24546f499794098405))

## 0.30.2 (2024-07-24)

Full Changelog: [v0.30.1...v0.30.2](https://github.com/Finch-API/finch-api-java/compare/v0.30.1...v0.30.2)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.tryfinch.api/finch-java)](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/0.30.2)
[![Maven Central](https://img.shields.io/maven-central/v/com.tryfinch.api/finch-java)](https://central.sonatype.com/artifact/com.tryfinch.api/finch-java/0.31.0)

<!-- x-release-please-end -->

Expand All @@ -25,7 +25,7 @@ The REST API documentation can be found [in the Finch Documentation Center](htt
<!-- x-release-please-start-version -->

```kotlin
implementation("com.tryfinch.api:finch-java:0.30.2")
implementation("com.tryfinch.api:finch-java:0.31.0")
```

#### Maven
Expand All @@ -34,7 +34,7 @@ implementation("com.tryfinch.api:finch-java:0.30.2")
<dependency>
<groupId>com.tryfinch.api</groupId>
<artifactId>finch-java</artifactId>
<version>0.30.2</version>
<version>0.31.0</version>
</dependency>
```

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

allprojects {
group = "com.tryfinch.api"
version = "0.30.2" // x-release-please-version
version = "0.31.0" // x-release-please-version
}

nexusPublishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5406,6 +5406,8 @@ private constructor(
private val employeeTaxes: JsonField<Boolean>,
private val individualIds: JsonField<Boolean>,
private val payPeriod: JsonField<PayPeriod>,
private val payGroupIds: JsonField<Boolean>,
private val payFrequencies: JsonField<Boolean>,
private val additionalProperties: Map<String, JsonValue>,
) {

Expand Down Expand Up @@ -5442,6 +5444,12 @@ private constructor(
fun payPeriod(): Optional<PayPeriod> =
Optional.ofNullable(payPeriod.getNullable("pay_period"))

fun payGroupIds(): Optional<Boolean> =
Optional.ofNullable(payGroupIds.getNullable("pay_group_ids"))

fun payFrequencies(): Optional<Boolean> =
Optional.ofNullable(payFrequencies.getNullable("pay_frequencies"))

@JsonProperty("id") @ExcludeMissing fun _id() = id

@JsonProperty("pay_date") @ExcludeMissing fun _payDate() = payDate
Expand Down Expand Up @@ -5470,6 +5478,12 @@ private constructor(

@JsonProperty("pay_period") @ExcludeMissing fun _payPeriod() = payPeriod

@JsonProperty("pay_group_ids") @ExcludeMissing fun _payGroupIds() = payGroupIds

@JsonProperty("pay_frequencies")
@ExcludeMissing
fun _payFrequencies() = payFrequencies

@JsonAnyGetter
@ExcludeMissing
fun _additionalProperties(): Map<String, JsonValue> = additionalProperties
Expand All @@ -5486,6 +5500,8 @@ private constructor(
employeeTaxes()
individualIds()
payPeriod().map { it.validate() }
payGroupIds()
payFrequencies()
validated = true
}
}
Expand All @@ -5508,6 +5524,8 @@ private constructor(
this.employeeTaxes == other.employeeTaxes &&
this.individualIds == other.individualIds &&
this.payPeriod == other.payPeriod &&
this.payGroupIds == other.payGroupIds &&
this.payFrequencies == other.payFrequencies &&
this.additionalProperties == other.additionalProperties
}

Expand All @@ -5525,14 +5543,16 @@ private constructor(
employeeTaxes,
individualIds,
payPeriod,
payGroupIds,
payFrequencies,
additionalProperties,
)
}
return hashCode
}

override fun toString() =
"SupportedPaymentFields{id=$id, payDate=$payDate, debitDate=$debitDate, companyDebit=$companyDebit, grossPay=$grossPay, netPay=$netPay, employerTaxes=$employerTaxes, employeeTaxes=$employeeTaxes, individualIds=$individualIds, payPeriod=$payPeriod, additionalProperties=$additionalProperties}"
"SupportedPaymentFields{id=$id, payDate=$payDate, debitDate=$debitDate, companyDebit=$companyDebit, grossPay=$grossPay, netPay=$netPay, employerTaxes=$employerTaxes, employeeTaxes=$employeeTaxes, individualIds=$individualIds, payPeriod=$payPeriod, payGroupIds=$payGroupIds, payFrequencies=$payFrequencies, additionalProperties=$additionalProperties}"

companion object {

Expand All @@ -5551,6 +5571,8 @@ private constructor(
private var employeeTaxes: JsonField<Boolean> = JsonMissing.of()
private var individualIds: JsonField<Boolean> = JsonMissing.of()
private var payPeriod: JsonField<PayPeriod> = JsonMissing.of()
private var payGroupIds: JsonField<Boolean> = JsonMissing.of()
private var payFrequencies: JsonField<Boolean> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> =
mutableMapOf()

Expand All @@ -5566,6 +5588,8 @@ private constructor(
this.employeeTaxes = supportedPaymentFields.employeeTaxes
this.individualIds = supportedPaymentFields.individualIds
this.payPeriod = supportedPaymentFields.payPeriod
this.payGroupIds = supportedPaymentFields.payGroupIds
this.payFrequencies = supportedPaymentFields.payFrequencies
additionalProperties(supportedPaymentFields.additionalProperties)
}

Expand Down Expand Up @@ -5647,6 +5671,24 @@ private constructor(
this.payPeriod = payPeriod
}

fun payGroupIds(payGroupIds: Boolean) =
payGroupIds(JsonField.of(payGroupIds))

@JsonProperty("pay_group_ids")
@ExcludeMissing
fun payGroupIds(payGroupIds: JsonField<Boolean>) = apply {
this.payGroupIds = payGroupIds
}

fun payFrequencies(payFrequencies: Boolean) =
payFrequencies(JsonField.of(payFrequencies))

@JsonProperty("pay_frequencies")
@ExcludeMissing
fun payFrequencies(payFrequencies: JsonField<Boolean>) = apply {
this.payFrequencies = payFrequencies
}

fun additionalProperties(additionalProperties: Map<String, JsonValue>) =
apply {
this.additionalProperties.clear()
Expand Down Expand Up @@ -5674,6 +5716,8 @@ private constructor(
employeeTaxes,
individualIds,
payPeriod,
payGroupIds,
payFrequencies,
additionalProperties.toUnmodifiable(),
)
}
Expand Down
Loading