voltaria_sdk 2.48.1 → 2.49.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98d8062c8e8ad1f13de75ea77385e369965906290d2ae67746ca9fa8417c94bf
4
- data.tar.gz: b7aaa948a7ab140fdae8d4c8b202a41ce5c249ae7a1807a47f38143f9a5778a4
3
+ metadata.gz: 043d2c4c5b9240421efcfabd63915890116aefd60f7085acb28930d2bdb28604
4
+ data.tar.gz: 1ba1a9be1eebf8002ab1f5583e2a70b0873a19a5593ff946f4fb6dc112900561
5
5
  SHA512:
6
- metadata.gz: 1993e14a60979414ab349d4db6f10b91816a146d45233304e8f2d0dc150b6edfeb5f6b71f34b46620fcac1884ff528068353a91832785ff137528c1ec026cb93
7
- data.tar.gz: 0af10019825dc99bf52c468507f68af6d98426673b5e086b0afd993c29b72387348a3b7f45ced4aa7615d82741d7ecc3f4a08b4e665535a571ce0b1115888e70
6
+ metadata.gz: abb9a01d43a95dca6ef53420e3ea40eb9fb153b3baa3ab48fcbdb715675d8af072296489a4a7696b7131bc9e2c8391f1285f98f4ee9689de57fba8781310f98b
7
+ data.tar.gz: 2b79199e897c70c15f798849994ec1367a86b69687d55daaa7324c0938f404740abf169e74af21b4fe96af9d109fe093ebc584f294b843884598a34696e25f9d
@@ -5,6 +5,8 @@ module Voltaria
5
5
  class LoanInstallmentCreatePayload < Internal::Types::Model
6
6
  field :expected_repayment_at, -> { String }, optional: false, nullable: false
7
7
  field :amount, -> { Voltaria::Types::LoanInstallmentCreatePayloadAmount }, optional: false, nullable: false
8
+ field :principal, -> { Voltaria::Types::LoanInstallmentCreatePayloadPrincipal }, optional: true, nullable: false
9
+ field :interest, -> { Voltaria::Types::LoanInstallmentCreatePayloadInterest }, optional: true, nullable: false
8
10
  end
9
11
  end
10
12
  end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Voltaria
4
+ module Types
5
+ # The interest part of the installment amount. Only when creating a loan with repayment_method custom, together with
6
+ # principal
7
+ class LoanInstallmentCreatePayloadInterest < Internal::Types::Model
8
+ extend Voltaria::Internal::Types::Union
9
+
10
+ member -> { Integer }
11
+ member -> { String }
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Voltaria
4
+ module Types
5
+ # The principal part of the installment amount. Only when creating a loan with repayment_method custom, together
6
+ # with interest
7
+ class LoanInstallmentCreatePayloadPrincipal < Internal::Types::Model
8
+ extend Voltaria::Internal::Types::Union
9
+
10
+ member -> { Integer }
11
+ member -> { String }
12
+ end
13
+ end
14
+ end
@@ -7,6 +7,7 @@ module Voltaria
7
7
 
8
8
  PMT = "pmt"
9
9
  CONSTANT_PRINCIPAL = "constant_principal"
10
+ CUSTOM = "custom"
10
11
  end
11
12
  end
12
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Voltaria
4
- VERSION = "2.48.1"
4
+ VERSION = "2.49.1"
5
5
  end
data/lib/voltaria.rb CHANGED
@@ -55,6 +55,8 @@ require_relative "voltaria/types/currency_enum"
55
55
  require_relative "voltaria/types/available_funding"
56
56
  require_relative "voltaria/types/bulk_loan_item_payload_amount"
57
57
  require_relative "voltaria/types/loan_installment_create_payload_amount"
58
+ require_relative "voltaria/types/loan_installment_create_payload_principal"
59
+ require_relative "voltaria/types/loan_installment_create_payload_interest"
58
60
  require_relative "voltaria/types/loan_installment_create_payload"
59
61
  require_relative "voltaria/types/loan_repayment_method_enum"
60
62
  require_relative "voltaria/types/bulk_loan_item_payload"
data/reference.md CHANGED
@@ -4563,7 +4563,7 @@ client.loans.create_loan(
4563
4563
  <dl>
4564
4564
  <dd>
4565
4565
 
4566
- **repayment_method:** `Voltaria::Types::LoanRepaymentMethodEnum` — How each installment is split into principal and interest: pmt (amortising) or constant_principal (loan amount divided equally across installments, the rest is interest)
4566
+ **repayment_method:** `Voltaria::Types::LoanRepaymentMethodEnum` — How each installment is split into principal and interest: pmt (amortising), constant_principal (loan amount divided equally across installments, the rest is interest) or custom (you send each installment's principal and interest; total principal must equal the loan amount, and the loan amount and installments cannot be changed later)
4567
4567
 
4568
4568
  </dd>
4569
4569
  </dl>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voltaria_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.48.1
4
+ version: 2.49.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Voltaria
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-10-17 00:00:00.000000000 Z
11
+ date: 2026-10-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: The Voltaria Ruby library provides convenient access to the Voltaria
14
14
  API from Ruby.
@@ -214,6 +214,8 @@ files:
214
214
  - lib/voltaria/types/limit_request_status_enum.rb
215
215
  - lib/voltaria/types/loan_installment_create_payload.rb
216
216
  - lib/voltaria/types/loan_installment_create_payload_amount.rb
217
+ - lib/voltaria/types/loan_installment_create_payload_interest.rb
218
+ - lib/voltaria/types/loan_installment_create_payload_principal.rb
217
219
  - lib/voltaria/types/loan_installment_response.rb
218
220
  - lib/voltaria/types/loan_investor_response.rb
219
221
  - lib/voltaria/types/loan_payment_status_enum.rb