diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountCollectionFlowCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountCollectionFlowCreateParams.kt index 2f27a82e..afae8bd9 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountCollectionFlowCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountCollectionFlowCreateParams.kt @@ -327,11 +327,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -339,6 +339,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): AccountCollectionFlowCreateParams = AccountCollectionFlowCreateParams( checkNotNull(counterpartyId) { "`counterpartyId` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountCollectionFlowUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountCollectionFlowUpdateParams.kt index 199b6917..a5173498 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountCollectionFlowUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountCollectionFlowUpdateParams.kt @@ -288,11 +288,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -300,6 +300,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): AccountCollectionFlowUpdateParams = AccountCollectionFlowUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountDetailCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountDetailCreateParams.kt index 1fd47687..8476a0cd 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountDetailCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountDetailCreateParams.kt @@ -324,11 +324,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -336,6 +336,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): AccountDetailCreateParams = AccountDetailCreateParams( checkNotNull(accountsType) { "`accountsType` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountDetailDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountDetailDeleteParams.kt index 8edd6606..c5a07964 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountDetailDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/AccountDetailDeleteParams.kt @@ -203,11 +203,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -215,6 +215,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): AccountDetailDeleteParams = AccountDetailDeleteParams( checkNotNull(accountsType) { "`accountsType` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BalanceReportCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BalanceReportCreateParams.kt index 5dabf81f..14d8d6cd 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BalanceReportCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BalanceReportCreateParams.kt @@ -367,11 +367,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -379,6 +379,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): BalanceReportCreateParams = BalanceReportCreateParams( checkNotNull(internalAccountId) { diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BalanceReportDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BalanceReportDeleteParams.kt index c45a6601..b59da89c 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BalanceReportDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BalanceReportDeleteParams.kt @@ -193,11 +193,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -205,6 +205,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): BalanceReportDeleteParams = BalanceReportDeleteParams( checkNotNull(internalAccountId) { diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BulkRequestCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BulkRequestCreateParams.kt index 06069845..4cdf89ad 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BulkRequestCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/BulkRequestCreateParams.kt @@ -368,11 +368,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -380,6 +380,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): BulkRequestCreateParams = BulkRequestCreateParams( checkNotNull(actionType) { "`actionType` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ConnectionLegalEntityCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ConnectionLegalEntityCreateParams.kt index e5937679..70618667 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ConnectionLegalEntityCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ConnectionLegalEntityCreateParams.kt @@ -311,11 +311,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -323,6 +323,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ConnectionLegalEntityCreateParams = ConnectionLegalEntityCreateParams( checkNotNull(connectionId) { "`connectionId` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ConnectionLegalEntityUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ConnectionLegalEntityUpdateParams.kt index 0b58e58f..d8791421 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ConnectionLegalEntityUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ConnectionLegalEntityUpdateParams.kt @@ -277,11 +277,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -289,6 +289,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ConnectionLegalEntityUpdateParams = ConnectionLegalEntityUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyCollectAccountParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyCollectAccountParams.kt index b14d940c..304d89f5 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyCollectAccountParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyCollectAccountParams.kt @@ -412,11 +412,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -424,6 +424,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): CounterpartyCollectAccountParams = CounterpartyCollectAccountParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyCreateParams.kt index ba33b1e3..8ee75cdb 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyCreateParams.kt @@ -510,11 +510,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -522,6 +522,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): CounterpartyCreateParams = CounterpartyCreateParams( name, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyDeleteParams.kt index fdd3d9b7..618dc2d9 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyDeleteParams.kt @@ -183,11 +183,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -195,6 +195,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): CounterpartyDeleteParams = CounterpartyDeleteParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyUpdateParams.kt index d5d602ea..c9b42e66 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/CounterpartyUpdateParams.kt @@ -403,11 +403,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -415,6 +415,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): CounterpartyUpdateParams = CounterpartyUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentCreateParams.kt index b2f47efe..fb437d19 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentCreateParams.kt @@ -794,11 +794,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -806,6 +806,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ExpectedPaymentCreateParams = ExpectedPaymentCreateParams( amountLowerBound, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentDeleteParams.kt index 890602d6..917a5f40 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentDeleteParams.kt @@ -183,11 +183,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -195,6 +195,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ExpectedPaymentDeleteParams = ExpectedPaymentDeleteParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentUpdateParams.kt index 9b740c85..3f05b5e0 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExpectedPaymentUpdateParams.kt @@ -729,11 +729,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -741,6 +741,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ExpectedPaymentUpdateParams = ExpectedPaymentUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountCompleteVerificationParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountCompleteVerificationParams.kt index 3a033436..7604725a 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountCompleteVerificationParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountCompleteVerificationParams.kt @@ -283,11 +283,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -295,6 +295,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ExternalAccountCompleteVerificationParams = ExternalAccountCompleteVerificationParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountCreateParams.kt index 0ef44c05..50fb7126 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountCreateParams.kt @@ -584,11 +584,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -596,6 +596,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ExternalAccountCreateParams = ExternalAccountCreateParams( counterpartyId, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountDeleteParams.kt index 5e7087cf..7a1881ad 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountDeleteParams.kt @@ -183,11 +183,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -195,6 +195,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ExternalAccountDeleteParams = ExternalAccountDeleteParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountUpdateParams.kt index b4789f83..bc337896 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountUpdateParams.kt @@ -419,11 +419,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -431,6 +431,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ExternalAccountUpdateParams = ExternalAccountUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountVerifyParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountVerifyParams.kt index c53c1fd1..03b43fc1 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountVerifyParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ExternalAccountVerifyParams.kt @@ -401,11 +401,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -413,6 +413,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ExternalAccountVerifyParams = ExternalAccountVerifyParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ForeignExchangeQuoteCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ForeignExchangeQuoteCreateParams.kt index cb4ad4dc..8807074f 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ForeignExchangeQuoteCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ForeignExchangeQuoteCreateParams.kt @@ -395,11 +395,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -407,6 +407,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ForeignExchangeQuoteCreateParams = ForeignExchangeQuoteCreateParams( checkNotNull(internalAccountId) { diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/IncomingPaymentDetailCreateAsyncParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/IncomingPaymentDetailCreateAsyncParams.kt index 665e0c52..d22f69c2 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/IncomingPaymentDetailCreateAsyncParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/IncomingPaymentDetailCreateAsyncParams.kt @@ -425,11 +425,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -437,6 +437,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): IncomingPaymentDetailCreateAsyncParams = IncomingPaymentDetailCreateAsyncParams( amount, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/IncomingPaymentDetailUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/IncomingPaymentDetailUpdateParams.kt index e2fa9702..feb11029 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/IncomingPaymentDetailUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/IncomingPaymentDetailUpdateParams.kt @@ -283,11 +283,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -295,6 +295,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): IncomingPaymentDetailUpdateParams = IncomingPaymentDetailUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InternalAccountCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InternalAccountCreateParams.kt index 8f0d3639..aac09966 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InternalAccountCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InternalAccountCreateParams.kt @@ -449,11 +449,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -461,6 +461,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): InternalAccountCreateParams = InternalAccountCreateParams( checkNotNull(connectionId) { "`connectionId` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InternalAccountUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InternalAccountUpdateParams.kt index 41f87dc0..677cd374 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InternalAccountUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InternalAccountUpdateParams.kt @@ -376,11 +376,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -388,6 +388,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): InternalAccountUpdateParams = InternalAccountUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceAddPaymentOrderParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceAddPaymentOrderParams.kt index a667d43b..8a836bcd 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceAddPaymentOrderParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceAddPaymentOrderParams.kt @@ -191,11 +191,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -203,6 +203,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): InvoiceAddPaymentOrderParams = InvoiceAddPaymentOrderParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceCreateParams.kt index 3d67dbdc..e2e02e73 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceCreateParams.kt @@ -1021,11 +1021,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -1033,6 +1033,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): InvoiceCreateParams = InvoiceCreateParams( checkNotNull(counterpartyId) { "`counterpartyId` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemCreateParams.kt index f7d1b557..6c707922 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemCreateParams.kt @@ -447,11 +447,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -459,6 +459,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): InvoiceLineItemCreateParams = InvoiceLineItemCreateParams( checkNotNull(invoiceId) { "`invoiceId` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemDeleteParams.kt index e3faa2f4..e4481e3a 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemDeleteParams.kt @@ -191,11 +191,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -203,6 +203,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): InvoiceLineItemDeleteParams = InvoiceLineItemDeleteParams( checkNotNull(invoiceId) { "`invoiceId` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemUpdateParams.kt index f7036737..eeec816b 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceLineItemUpdateParams.kt @@ -455,11 +455,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -467,6 +467,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): InvoiceLineItemUpdateParams = InvoiceLineItemUpdateParams( checkNotNull(invoiceId) { "`invoiceId` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceUpdateParams.kt index df1d2268..40ab98c0 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/InvoiceUpdateParams.kt @@ -1032,11 +1032,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -1044,6 +1044,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): InvoiceUpdateParams = InvoiceUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorCreateParams.kt index eaa47eeb..b83394ed 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorCreateParams.kt @@ -348,11 +348,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -360,6 +360,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountBalanceMonitorCreateParams = LedgerAccountBalanceMonitorCreateParams( checkNotNull(alertCondition) { "`alertCondition` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorDeleteParams.kt index 70496f50..c7b3d0c4 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorDeleteParams.kt @@ -187,11 +187,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -199,6 +199,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountBalanceMonitorDeleteParams = LedgerAccountBalanceMonitorDeleteParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorUpdateParams.kt index ddca7be7..0fc0db22 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountBalanceMonitorUpdateParams.kt @@ -311,11 +311,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -323,6 +323,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountBalanceMonitorUpdateParams = LedgerAccountBalanceMonitorUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryAddLedgerAccountParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryAddLedgerAccountParams.kt index 4e1ac013..207d23c4 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryAddLedgerAccountParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryAddLedgerAccountParams.kt @@ -197,11 +197,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -209,6 +209,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountCategoryAddLedgerAccountParams = LedgerAccountCategoryAddLedgerAccountParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryAddNestedCategoryParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryAddNestedCategoryParams.kt index ba6bb90c..e2d2fb24 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryAddNestedCategoryParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryAddNestedCategoryParams.kt @@ -198,11 +198,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -210,6 +210,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountCategoryAddNestedCategoryParams = LedgerAccountCategoryAddNestedCategoryParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryCreateParams.kt index 694ce2e0..d9e2b54b 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryCreateParams.kt @@ -447,11 +447,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -459,6 +459,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountCategoryCreateParams = LedgerAccountCategoryCreateParams( checkNotNull(currency) { "`currency` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryDeleteParams.kt index 63a3171b..dc5aafdb 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryDeleteParams.kt @@ -184,11 +184,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -196,6 +196,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountCategoryDeleteParams = LedgerAccountCategoryDeleteParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryRemoveLedgerAccountParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryRemoveLedgerAccountParams.kt index 115c2fa7..b5842b3a 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryRemoveLedgerAccountParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryRemoveLedgerAccountParams.kt @@ -200,11 +200,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -212,6 +212,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountCategoryRemoveLedgerAccountParams = LedgerAccountCategoryRemoveLedgerAccountParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryRemoveNestedCategoryParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryRemoveNestedCategoryParams.kt index a6e16b6a..fdf484c5 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryRemoveNestedCategoryParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryRemoveNestedCategoryParams.kt @@ -198,11 +198,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -210,6 +210,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountCategoryRemoveNestedCategoryParams = LedgerAccountCategoryRemoveNestedCategoryParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryUpdateParams.kt index a4b71767..ad580ec9 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCategoryUpdateParams.kt @@ -326,11 +326,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -338,6 +338,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountCategoryUpdateParams = LedgerAccountCategoryUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCreateParams.kt index ef765d49..d453abbc 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountCreateParams.kt @@ -508,11 +508,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -520,6 +520,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountCreateParams = LedgerAccountCreateParams( checkNotNull(currency) { "`currency` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountDeleteParams.kt index 4f28d1dc..e1120ae8 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountDeleteParams.kt @@ -183,11 +183,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -195,6 +195,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountDeleteParams = LedgerAccountDeleteParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountSettlementCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountSettlementCreateParams.kt index 21b1c12a..68e71fda 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountSettlementCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountSettlementCreateParams.kt @@ -510,11 +510,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -522,6 +522,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountSettlementCreateParams = LedgerAccountSettlementCreateParams( checkNotNull(contraLedgerAccountId) { diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountSettlementUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountSettlementUpdateParams.kt index cf94991f..83a34c61 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountSettlementUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountSettlementUpdateParams.kt @@ -341,11 +341,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -353,6 +353,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountSettlementUpdateParams = LedgerAccountSettlementUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountStatementCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountStatementCreateParams.kt index 953aa77f..dba86e62 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountStatementCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountStatementCreateParams.kt @@ -407,11 +407,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -419,6 +419,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountStatementCreateParams = LedgerAccountStatementCreateParams( checkNotNull(effectiveAtLowerBound) { diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountUpdateParams.kt index f0b40774..9d937ee0 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerAccountUpdateParams.kt @@ -324,11 +324,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -336,6 +336,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerAccountUpdateParams = LedgerAccountUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerCreateParams.kt index db2035d8..8139f4b6 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerCreateParams.kt @@ -310,11 +310,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -322,6 +322,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerCreateParams = LedgerCreateParams( checkNotNull(name) { "`name` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerDeleteParams.kt index c27da16b..e73320aa 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerDeleteParams.kt @@ -183,11 +183,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -195,6 +195,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerDeleteParams = LedgerDeleteParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEntryUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEntryUpdateParams.kt index af7805ae..e30c07ff 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEntryUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEntryUpdateParams.kt @@ -279,11 +279,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -291,6 +291,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerEntryUpdateParams = LedgerEntryUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEventHandlerCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEventHandlerCreateParams.kt index 89fd84f8..de1aad19 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEventHandlerCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEventHandlerCreateParams.kt @@ -399,11 +399,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -411,6 +411,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerEventHandlerCreateParams = LedgerEventHandlerCreateParams( checkNotNull(ledgerTransactionTemplate) { diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEventHandlerDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEventHandlerDeleteParams.kt index 66afc4f4..b239c790 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEventHandlerDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerEventHandlerDeleteParams.kt @@ -183,11 +183,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -195,6 +195,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerEventHandlerDeleteParams = LedgerEventHandlerDeleteParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionCreateParams.kt index 1bc8fa9e..e5696daf 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionCreateParams.kt @@ -500,11 +500,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -512,6 +512,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerTransactionCreateParams = LedgerTransactionCreateParams( checkNotNull(ledgerEntries) { "`ledgerEntries` is required but was not set" } diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionCreateReversalParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionCreateReversalParams.kt index 856a1f57..f5468be7 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionCreateReversalParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionCreateReversalParams.kt @@ -460,11 +460,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -472,6 +472,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerTransactionCreateReversalParams = LedgerTransactionCreateReversalParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionUpdateParams.kt index b8523a74..e166708d 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerTransactionUpdateParams.kt @@ -455,11 +455,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -467,6 +467,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerTransactionUpdateParams = LedgerTransactionUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerUpdateParams.kt index b3f5609b..d6e41cc8 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerUpdateParams.kt @@ -324,11 +324,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -336,6 +336,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerUpdateParams = LedgerUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerableEventCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerableEventCreateParams.kt index c42f15dc..3739c3f4 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerableEventCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LedgerableEventCreateParams.kt @@ -330,11 +330,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -342,6 +342,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LedgerableEventCreateParams = LedgerableEventCreateParams( checkNotNull(name) { "`name` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityAssociationCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityAssociationCreateParams.kt index f0b19290..f987fb2d 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityAssociationCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityAssociationCreateParams.kt @@ -403,11 +403,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -415,6 +415,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LegalEntityAssociationCreateParams = LegalEntityAssociationCreateParams( checkNotNull(parentLegalEntityId) { diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityCreateParams.kt index 518f0922..63a99de6 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityCreateParams.kt @@ -639,11 +639,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -651,6 +651,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LegalEntityCreateParams = LegalEntityCreateParams( checkNotNull(legalEntityType) { "`legalEntityType` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityUpdateParams.kt index 9c898a33..4fd22eca 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LegalEntityUpdateParams.kt @@ -523,11 +523,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -535,6 +535,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LegalEntityUpdateParams = LegalEntityUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LineItemUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LineItemUpdateParams.kt index d2fc915b..2f40027a 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LineItemUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/LineItemUpdateParams.kt @@ -301,11 +301,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -313,6 +313,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): LineItemUpdateParams = LineItemUpdateParams( checkNotNull(itemizableType) { "`itemizableType` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentFlowCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentFlowCreateParams.kt index fb5e1ccb..d9c14f24 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentFlowCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentFlowCreateParams.kt @@ -416,11 +416,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -428,6 +428,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): PaymentFlowCreateParams = PaymentFlowCreateParams( checkNotNull(amount) { "`amount` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentFlowUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentFlowUpdateParams.kt index c5f5bb94..6b9cc623 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentFlowUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentFlowUpdateParams.kt @@ -286,11 +286,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -298,6 +298,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): PaymentFlowUpdateParams = PaymentFlowUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderCreateAsyncParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderCreateAsyncParams.kt index 43001919..1b1b6614 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderCreateAsyncParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderCreateAsyncParams.kt @@ -1356,11 +1356,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -1368,6 +1368,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): PaymentOrderCreateAsyncParams = PaymentOrderCreateAsyncParams( checkNotNull(amount) { "`amount` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderCreateParams.kt index 348a92a6..14bcfebb 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderCreateParams.kt @@ -1394,11 +1394,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -1406,6 +1406,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): PaymentOrderCreateParams = PaymentOrderCreateParams( checkNotNull(amount) { "`amount` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderReversalCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderReversalCreateParams.kt index fbde2345..0989d93a 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderReversalCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderReversalCreateParams.kt @@ -361,11 +361,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -373,6 +373,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): PaymentOrderReversalCreateParams = PaymentOrderReversalCreateParams( checkNotNull(paymentOrderId) { "`paymentOrderId` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderUpdateParams.kt index 70d0cfa1..e9a7d6f7 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/PaymentOrderUpdateParams.kt @@ -1354,11 +1354,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -1366,6 +1366,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): PaymentOrderUpdateParams = PaymentOrderUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ReturnCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ReturnCreateParams.kt index ef0a5f1a..726eacf6 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ReturnCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/ReturnCreateParams.kt @@ -410,11 +410,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -422,6 +422,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): ReturnCreateParams = ReturnCreateParams( returnableId, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/RoutingDetailCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/RoutingDetailCreateParams.kt index 32cdf8b9..d533749a 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/RoutingDetailCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/RoutingDetailCreateParams.kt @@ -358,11 +358,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -370,6 +370,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): RoutingDetailCreateParams = RoutingDetailCreateParams( checkNotNull(accountsType) { "`accountsType` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/RoutingDetailDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/RoutingDetailDeleteParams.kt index 285ea027..0ab233d1 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/RoutingDetailDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/RoutingDetailDeleteParams.kt @@ -203,11 +203,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -215,6 +215,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): RoutingDetailDeleteParams = RoutingDetailDeleteParams( checkNotNull(accountsType) { "`accountsType` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionCreateParams.kt index aabe5763..8f72118a 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionCreateParams.kt @@ -509,11 +509,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -521,6 +521,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): TransactionCreateParams = TransactionCreateParams( checkNotNull(amount) { "`amount` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionDeleteParams.kt index bb32e7e9..ab6c8bb9 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionDeleteParams.kt @@ -183,11 +183,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -195,6 +195,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): TransactionDeleteParams = TransactionDeleteParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionLineItemCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionLineItemCreateParams.kt index afe6e2a5..5754299f 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionLineItemCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionLineItemCreateParams.kt @@ -319,11 +319,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -331,6 +331,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): TransactionLineItemCreateParams = TransactionLineItemCreateParams( checkNotNull(amount) { "`amount` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionLineItemDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionLineItemDeleteParams.kt index 4e19533a..77e63c5a 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionLineItemDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionLineItemDeleteParams.kt @@ -184,11 +184,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -196,6 +196,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): TransactionLineItemDeleteParams = TransactionLineItemDeleteParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionUpdateParams.kt index 74e60e15..d42eeaa5 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/TransactionUpdateParams.kt @@ -281,11 +281,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -293,6 +293,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): TransactionUpdateParams = TransactionUpdateParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountCreateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountCreateParams.kt index 28bc1efc..53c45f03 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountCreateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountCreateParams.kt @@ -534,11 +534,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -546,6 +546,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): VirtualAccountCreateParams = VirtualAccountCreateParams( checkNotNull(internalAccountId) { diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountDeleteParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountDeleteParams.kt index 027c4c9b..3294c31c 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountDeleteParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountDeleteParams.kt @@ -183,11 +183,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -195,6 +195,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): VirtualAccountDeleteParams = VirtualAccountDeleteParams( checkNotNull(id) { "`id` is required but was not set" }, diff --git a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountUpdateParams.kt b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountUpdateParams.kt index 00ba8178..6b77468a 100644 --- a/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountUpdateParams.kt +++ b/modern-treasury-java-core/src/main/kotlin/com/moderntreasury/api/models/VirtualAccountUpdateParams.kt @@ -334,11 +334,11 @@ constructor( fun additionalBodyProperties(additionalBodyProperties: Map) = apply { this.additionalBodyProperties.clear() - this.additionalBodyProperties.putAll(additionalBodyProperties) + putAllAdditionalBodyProperties(additionalBodyProperties) } fun putAdditionalBodyProperty(key: String, value: JsonValue) = apply { - this.additionalBodyProperties.put(key, value) + additionalBodyProperties.put(key, value) } fun putAllAdditionalBodyProperties(additionalBodyProperties: Map) = @@ -346,6 +346,14 @@ constructor( this.additionalBodyProperties.putAll(additionalBodyProperties) } + fun removeAdditionalBodyProperty(key: String) = apply { + additionalBodyProperties.remove(key) + } + + fun removeAllAdditionalBodyProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalBodyProperty) + } + fun build(): VirtualAccountUpdateParams = VirtualAccountUpdateParams( checkNotNull(id) { "`id` is required but was not set" },