# Buildium::LeaseTransactionsApi All URIs are relative to *https://api.buildium.com* | Method | HTTP request | Description | | ------ | ------------ | ----------- | | [**create_lease_auto_allocated_payment**](LeaseTransactionsApi.md#create_lease_auto_allocated_payment) | **POST** /v1/leases/{leaseId}/autoallocatedpayments | Create a payment (auto allocated) | | [**create_lease_charge_recurring_transaction**](LeaseTransactionsApi.md#create_lease_charge_recurring_transaction) | **POST** /v1/leases/{leaseId}/recurringcharges | Create a recurring charge | | [**create_lease_credit**](LeaseTransactionsApi.md#create_lease_credit) | **POST** /v1/leases/{leaseId}/credits | Create a credit | | [**create_lease_credit_recurring_transaction**](LeaseTransactionsApi.md#create_lease_credit_recurring_transaction) | **POST** /v1/leases/{leaseId}/recurringcredits | Create a recurring credit | | [**create_lease_ledger_charge**](LeaseTransactionsApi.md#create_lease_ledger_charge) | **POST** /v1/leases/{leaseId}/charges | Create a charge | | [**create_lease_ledger_deposit_withholding**](LeaseTransactionsApi.md#create_lease_ledger_deposit_withholding) | **POST** /v1/leases/{leaseId}/applieddeposits | Create a deposit withholding | | [**create_lease_ledger_refund**](LeaseTransactionsApi.md#create_lease_ledger_refund) | **POST** /v1/leases/{leaseId}/refunds | Create a refund | | [**create_lease_recurring_payment**](LeaseTransactionsApi.md#create_lease_recurring_payment) | **POST** /v1/leases/{leaseId}/recurringpayments | Create a recurring payment | | [**create_lease_reverse_payment**](LeaseTransactionsApi.md#create_lease_reverse_payment) | **POST** /v1/leases/{leaseId}/reversepayments | Create a payment reversal | | [**create_payment**](LeaseTransactionsApi.md#create_payment) | **POST** /v1/leases/{leaseId}/payments | Create a payment | | [**get_lease_charge_recurring_transaction_by_id**](LeaseTransactionsApi.md#get_lease_charge_recurring_transaction_by_id) | **GET** /v1/leases/{leaseId}/recurringcharges/{transactionId} | Retrieve a recurring charge | | [**get_lease_ledger_refund_by_id**](LeaseTransactionsApi.md#get_lease_ledger_refund_by_id) | **GET** /v1/leases/{leaseId}/refunds/{refundId} | Retrieve a refund | | [**get_lease_ledger_transaction_by_id**](LeaseTransactionsApi.md#get_lease_ledger_transaction_by_id) | **GET** /v1/leases/{leaseId}/transactions/{transactionId} | Retrieve a lease transaction | | [**get_lease_ledgers**](LeaseTransactionsApi.md#get_lease_ledgers) | **GET** /v1/leases/{leaseId}/transactions | Retrieve all lease transactions | | [**get_lease_outstanding_balances**](LeaseTransactionsApi.md#get_lease_outstanding_balances) | **GET** /v1/leases/outstandingbalances | Retrieve all outstanding balances | | [**get_lease_recurring_credit_by_id**](LeaseTransactionsApi.md#get_lease_recurring_credit_by_id) | **GET** /v1/leases/{leaseId}/recurringcredits/{transactionId} | Retrieve a recurring credit | | [**get_lease_recurring_transactions**](LeaseTransactionsApi.md#get_lease_recurring_transactions) | **GET** /v1/leases/{leaseId}/recurringtransactions | Retrieve all recurring transactions | | [**get_recurring_lease_payments_by_id**](LeaseTransactionsApi.md#get_recurring_lease_payments_by_id) | **GET** /v1/leases/{leaseId}/recurringpayments/{paymentId} | Retrieve a recurring payment | | [**update_lease_charge**](LeaseTransactionsApi.md#update_lease_charge) | **PUT** /v1/leases/{leaseId}/charges/{chargeId} | Update a charge | | [**update_lease_ledger_payment**](LeaseTransactionsApi.md#update_lease_ledger_payment) | **PUT** /v1/leases/{leaseId}/payments/{paymentId} | Update a payment | ## create_lease_auto_allocated_payment > create_lease_auto_allocated_payment(lease_id, lease_auto_allocated_payment_post_message) Create a payment (auto allocated) Creates a payment on the lease ledger. Note that the recorded payment will be automatically allocated to the general ledger accounts based on the payment allocation settings. These settings can be found under the Settings > Application Settings > Residents page in your account. If you'd like to specify the GL accounts the payment should apply to, please use the Create a payment endpoint.

Required permission(s):

Rentals > Lease transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | lease_auto_allocated_payment_post_message = Buildium::LeaseAutoAllocatedPaymentPostMessage.new({date: Date.today, payment_method: 'Check', send_email_receipt: false, total_amount: 3.56}) # LeaseAutoAllocatedPaymentPostMessage | begin # Create a payment (auto allocated) result = api_instance.create_lease_auto_allocated_payment(lease_id, lease_auto_allocated_payment_post_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_auto_allocated_payment: #{e}" end ``` #### Using the create_lease_auto_allocated_payment_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_lease_auto_allocated_payment_with_http_info(lease_id, lease_auto_allocated_payment_post_message) ```ruby begin # Create a payment (auto allocated) data, status_code, headers = api_instance.create_lease_auto_allocated_payment_with_http_info(lease_id, lease_auto_allocated_payment_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_auto_allocated_payment_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **lease_auto_allocated_payment_post_message** | [**LeaseAutoAllocatedPaymentPostMessage**](LeaseAutoAllocatedPaymentPostMessage.md) | | | ### Return type [**LeaseTransactionMessage**](LeaseTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_lease_charge_recurring_transaction > create_lease_charge_recurring_transaction(lease_id, charge_recurring_transaction_post_message) Create a recurring charge Creates a recurring charge transaction that will post automatically on the specified lease ledger.

Required permission(s):

Rentals > Lease transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | charge_recurring_transaction_post_message = Buildium::ChargeRecurringTransactionPostMessage.new({gl_account_id: 37, amount: 3.56, first_occurrence_date: Date.today, post_days_in_advance: 37, frequency: 'Monthly'}) # ChargeRecurringTransactionPostMessage | begin # Create a recurring charge result = api_instance.create_lease_charge_recurring_transaction(lease_id, charge_recurring_transaction_post_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_charge_recurring_transaction: #{e}" end ``` #### Using the create_lease_charge_recurring_transaction_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_lease_charge_recurring_transaction_with_http_info(lease_id, charge_recurring_transaction_post_message) ```ruby begin # Create a recurring charge data, status_code, headers = api_instance.create_lease_charge_recurring_transaction_with_http_info(lease_id, charge_recurring_transaction_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_charge_recurring_transaction_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **charge_recurring_transaction_post_message** | [**ChargeRecurringTransactionPostMessage**](ChargeRecurringTransactionPostMessage.md) | | | ### Return type [**LeaseChargeRecurringTransactionMessage**](LeaseChargeRecurringTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_lease_credit > create_lease_credit(lease_id, lease_ledger_credit_post_message) Create a credit Creates a lease ledger credit.

Required permission(s):

Rentals > Lease transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | The lease unique identifier. lease_ledger_credit_post_message = Buildium::LeaseLedgerCreditPostMessage.new({date: Date.today, credit_type: 'WaiveUnpaid', lines: [Buildium::LeaseLedgerCreditLinePostMessage.new({amount: 3.56, gl_account_id: 37})]}) # LeaseLedgerCreditPostMessage | begin # Create a credit result = api_instance.create_lease_credit(lease_id, lease_ledger_credit_post_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_credit: #{e}" end ``` #### Using the create_lease_credit_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_lease_credit_with_http_info(lease_id, lease_ledger_credit_post_message) ```ruby begin # Create a credit data, status_code, headers = api_instance.create_lease_credit_with_http_info(lease_id, lease_ledger_credit_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_credit_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | The lease unique identifier. | | | **lease_ledger_credit_post_message** | [**LeaseLedgerCreditPostMessage**](LeaseLedgerCreditPostMessage.md) | | | ### Return type [**LeaseTransactionMessage**](LeaseTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_lease_credit_recurring_transaction > create_lease_credit_recurring_transaction(lease_id, credit_recurring_transaction_post_message) Create a recurring credit Creates a recurring credit transaction on the specified lease ledger.

Required permission(s):

Rentals > Lease transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | credit_recurring_transaction_post_message = Buildium::CreditRecurringTransactionPostMessage.new({credit_type: 'WaiveUnpaid', post_days_in_advance: 37, frequency: 'Monthly', first_occurrence_date: Date.today}) # CreditRecurringTransactionPostMessage | begin # Create a recurring credit result = api_instance.create_lease_credit_recurring_transaction(lease_id, credit_recurring_transaction_post_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_credit_recurring_transaction: #{e}" end ``` #### Using the create_lease_credit_recurring_transaction_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_lease_credit_recurring_transaction_with_http_info(lease_id, credit_recurring_transaction_post_message) ```ruby begin # Create a recurring credit data, status_code, headers = api_instance.create_lease_credit_recurring_transaction_with_http_info(lease_id, credit_recurring_transaction_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_credit_recurring_transaction_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **credit_recurring_transaction_post_message** | [**CreditRecurringTransactionPostMessage**](CreditRecurringTransactionPostMessage.md) | | | ### Return type [**LeaseRecurringCreditMessage**](LeaseRecurringCreditMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_lease_ledger_charge > > create_lease_ledger_charge(lease_id, lease_charge_post_message) Create a charge Creates a charge transaction on a specific lease ledger.

Required permission(s):

Rentals > Lease transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | lease_charge_post_message = Buildium::LeaseChargePostMessage.new # LeaseChargePostMessage | begin # Create a charge result = api_instance.create_lease_ledger_charge(lease_id, lease_charge_post_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_ledger_charge: #{e}" end ``` #### Using the create_lease_ledger_charge_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> create_lease_ledger_charge_with_http_info(lease_id, lease_charge_post_message) ```ruby begin # Create a charge data, status_code, headers = api_instance.create_lease_ledger_charge_with_http_info(lease_id, lease_charge_post_message) p status_code # => 2xx p headers # => { ... } p data # => > rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_ledger_charge_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **lease_charge_post_message** | [**LeaseChargePostMessage**](LeaseChargePostMessage.md) | | | ### Return type [**Array<LeaseTransactionMessage>**](LeaseTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_lease_ledger_deposit_withholding > create_lease_ledger_deposit_withholding(lease_id, lease_ledger_deposit_withholding_post_message) Create a deposit withholding Withholds a resident deposit by reallocating the funds from a liability account to an income account to cover an expense(s).

Required permission(s):

Rentals > Lease Ledger - `View` `Edit`
Accounting > General Ledger Accounts - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | lease_ledger_deposit_withholding_post_message = Buildium::LeaseLedgerDepositWithholdingPostMessage.new({entry_date: Date.today, deposit_liability_gl_account_id: 37}) # LeaseLedgerDepositWithholdingPostMessage | begin # Create a deposit withholding result = api_instance.create_lease_ledger_deposit_withholding(lease_id, lease_ledger_deposit_withholding_post_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_ledger_deposit_withholding: #{e}" end ``` #### Using the create_lease_ledger_deposit_withholding_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_lease_ledger_deposit_withholding_with_http_info(lease_id, lease_ledger_deposit_withholding_post_message) ```ruby begin # Create a deposit withholding data, status_code, headers = api_instance.create_lease_ledger_deposit_withholding_with_http_info(lease_id, lease_ledger_deposit_withholding_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_ledger_deposit_withholding_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **lease_ledger_deposit_withholding_post_message** | [**LeaseLedgerDepositWithholdingPostMessage**](LeaseLedgerDepositWithholdingPostMessage.md) | | | ### Return type [**LeaseTransactionMessage**](LeaseTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_lease_ledger_refund > create_lease_ledger_refund(lease_id, lease_ledger_refund_post_message) Create a refund Creates a refund.

Required permission(s):

Accounting > Bank Accounts - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | lease_ledger_refund_post_message = Buildium::LeaseLedgerRefundPostMessage.new({date: Date.today, payee_user_ids: [37], bank_account_id: 37, address: Buildium::SaveAddressMessage.new({address_line1: 'address_line1_example', country: 'UnitedStates'}), lines: [Buildium::LeaseLedgerRefundLinePostMessage.new({amount: 3.56, gl_account_id: 37})]}) # LeaseLedgerRefundPostMessage | begin # Create a refund result = api_instance.create_lease_ledger_refund(lease_id, lease_ledger_refund_post_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_ledger_refund: #{e}" end ``` #### Using the create_lease_ledger_refund_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_lease_ledger_refund_with_http_info(lease_id, lease_ledger_refund_post_message) ```ruby begin # Create a refund data, status_code, headers = api_instance.create_lease_ledger_refund_with_http_info(lease_id, lease_ledger_refund_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_ledger_refund_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **lease_ledger_refund_post_message** | [**LeaseLedgerRefundPostMessage**](LeaseLedgerRefundPostMessage.md) | | | ### Return type [**LeaseLedgerRefundMessage**](LeaseLedgerRefundMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_lease_recurring_payment > create_lease_recurring_payment(lease_id, payment_recurring_transaction_post_message) Create a recurring payment Creates a recurring payment that will post automatically on the specified lease ledger.

Required permission(s):

Rentals > Lease Transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | payment_recurring_transaction_post_message = Buildium::PaymentRecurringTransactionPostMessage.new({payment_method: 'Check', first_occurrence_date: Date.today, post_days_in_advance: 37, frequency: 'Monthly'}) # PaymentRecurringTransactionPostMessage | begin # Create a recurring payment result = api_instance.create_lease_recurring_payment(lease_id, payment_recurring_transaction_post_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_recurring_payment: #{e}" end ``` #### Using the create_lease_recurring_payment_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_lease_recurring_payment_with_http_info(lease_id, payment_recurring_transaction_post_message) ```ruby begin # Create a recurring payment data, status_code, headers = api_instance.create_lease_recurring_payment_with_http_info(lease_id, payment_recurring_transaction_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_recurring_payment_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **payment_recurring_transaction_post_message** | [**PaymentRecurringTransactionPostMessage**](PaymentRecurringTransactionPostMessage.md) | | | ### Return type [**LeaseRecurringPaymentMessage**](LeaseRecurringPaymentMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_lease_reverse_payment > create_lease_reverse_payment(lease_id, lease_ledger_reverse_payment_post_message) Create a payment reversal Reverses a lease ledger payment. Note, this action can only be taken on a payment that has been deposited.

Required permission(s):

Rentals > Lease transactions - `View` `Edit`
Accounting > Bank Accounts - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | The lease unique identifier. lease_ledger_reverse_payment_post_message = Buildium::LeaseLedgerReversePaymentPostMessage.new({entry_date: Date.today, payment_transaction_id: 37}) # LeaseLedgerReversePaymentPostMessage | begin # Create a payment reversal result = api_instance.create_lease_reverse_payment(lease_id, lease_ledger_reverse_payment_post_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_reverse_payment: #{e}" end ``` #### Using the create_lease_reverse_payment_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_lease_reverse_payment_with_http_info(lease_id, lease_ledger_reverse_payment_post_message) ```ruby begin # Create a payment reversal data, status_code, headers = api_instance.create_lease_reverse_payment_with_http_info(lease_id, lease_ledger_reverse_payment_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_lease_reverse_payment_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | The lease unique identifier. | | | **lease_ledger_reverse_payment_post_message** | [**LeaseLedgerReversePaymentPostMessage**](LeaseLedgerReversePaymentPostMessage.md) | | | ### Return type [**LeaseTransactionMessage**](LeaseTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## create_payment > create_payment(lease_id, lease_ledger_payment_post_message) Create a payment Creates a lease ledger payment.

Required permission(s):

Rentals > Lease transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | The lease unique identifier. lease_ledger_payment_post_message = Buildium::LeaseLedgerPaymentPostMessage.new({date: Date.today, payment_method: 'Check', send_email_receipt: false, lines: [Buildium::LeaseLedgerPaymentLineSaveMessage.new({amount: 3.56, gl_account_id: 37})]}) # LeaseLedgerPaymentPostMessage | begin # Create a payment result = api_instance.create_payment(lease_id, lease_ledger_payment_post_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_payment: #{e}" end ``` #### Using the create_payment_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> create_payment_with_http_info(lease_id, lease_ledger_payment_post_message) ```ruby begin # Create a payment data, status_code, headers = api_instance.create_payment_with_http_info(lease_id, lease_ledger_payment_post_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->create_payment_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | The lease unique identifier. | | | **lease_ledger_payment_post_message** | [**LeaseLedgerPaymentPostMessage**](LeaseLedgerPaymentPostMessage.md) | | | ### Return type [**LeaseTransactionMessage**](LeaseTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## get_lease_charge_recurring_transaction_by_id > get_lease_charge_recurring_transaction_by_id(lease_id, transaction_id) Retrieve a recurring charge Retrieves a recurring charge.

Required permission(s):

Rentals > Lease transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | transaction_id = 56 # Integer | begin # Retrieve a recurring charge result = api_instance.get_lease_charge_recurring_transaction_by_id(lease_id, transaction_id) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_charge_recurring_transaction_by_id: #{e}" end ``` #### Using the get_lease_charge_recurring_transaction_by_id_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_lease_charge_recurring_transaction_by_id_with_http_info(lease_id, transaction_id) ```ruby begin # Retrieve a recurring charge data, status_code, headers = api_instance.get_lease_charge_recurring_transaction_by_id_with_http_info(lease_id, transaction_id) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_charge_recurring_transaction_by_id_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **transaction_id** | **Integer** | | | ### Return type [**LeaseChargeRecurringTransactionMessage**](LeaseChargeRecurringTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_lease_ledger_refund_by_id > get_lease_ledger_refund_by_id(lease_id, refund_id) Retrieve a refund Retrieves a refund.

Required permission(s):

Accounting > Bank Accounts - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | refund_id = 56 # Integer | begin # Retrieve a refund result = api_instance.get_lease_ledger_refund_by_id(lease_id, refund_id) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_ledger_refund_by_id: #{e}" end ``` #### Using the get_lease_ledger_refund_by_id_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_lease_ledger_refund_by_id_with_http_info(lease_id, refund_id) ```ruby begin # Retrieve a refund data, status_code, headers = api_instance.get_lease_ledger_refund_by_id_with_http_info(lease_id, refund_id) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_ledger_refund_by_id_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **refund_id** | **Integer** | | | ### Return type [**LeaseLedgerRefundMessage**](LeaseLedgerRefundMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_lease_ledger_transaction_by_id > get_lease_ledger_transaction_by_id(lease_id, transaction_id) Retrieve a lease transaction Retrieves a specific lease transaction.

Required permission(s):

Rentals > Lease Transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | transaction_id = 56 # Integer | begin # Retrieve a lease transaction result = api_instance.get_lease_ledger_transaction_by_id(lease_id, transaction_id) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_ledger_transaction_by_id: #{e}" end ``` #### Using the get_lease_ledger_transaction_by_id_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_lease_ledger_transaction_by_id_with_http_info(lease_id, transaction_id) ```ruby begin # Retrieve a lease transaction data, status_code, headers = api_instance.get_lease_ledger_transaction_by_id_with_http_info(lease_id, transaction_id) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_ledger_transaction_by_id_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **transaction_id** | **Integer** | | | ### Return type [**LeaseTransactionMessage**](LeaseTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_lease_ledgers > > get_lease_ledgers(lease_id, opts) Retrieve all lease transactions Retrieves all the transactions for a specific lease.

Required permission(s):

Rentals > Lease transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | opts = { transactiondatefrom: Date.parse('2013-10-20'), # Date | Filters results to any lease transaction whose start date is greater than or equal to the specified value. transactiondateto: Date.parse('2013-10-20'), # Date | Filters results to any lease transaction whose end date is less than or equal to the specified value. transactiontypes: ['Bill'], # Array | Filters results to any lease transaction whose lease transaction type matches the specified status. If no type is specified, lease transactions with any type will be returned. orderby: 'orderby_example', # String | `orderby` indicates the field(s) and direction to sort the results in the response. See Bulk Request Options for more information. offset: 56, # Integer | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. limit: 56 # Integer | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. } begin # Retrieve all lease transactions result = api_instance.get_lease_ledgers(lease_id, opts) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_ledgers: #{e}" end ``` #### Using the get_lease_ledgers_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> get_lease_ledgers_with_http_info(lease_id, opts) ```ruby begin # Retrieve all lease transactions data, status_code, headers = api_instance.get_lease_ledgers_with_http_info(lease_id, opts) p status_code # => 2xx p headers # => { ... } p data # => > rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_ledgers_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **transactiondatefrom** | **Date** | Filters results to any lease transaction whose start date is greater than or equal to the specified value. | [optional] | | **transactiondateto** | **Date** | Filters results to any lease transaction whose end date is less than or equal to the specified value. | [optional] | | **transactiontypes** | [**Array<String>**](String.md) | Filters results to any lease transaction whose lease transaction type matches the specified status. If no type is specified, lease transactions with any type will be returned. | [optional] | | **orderby** | **String** | `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information. | [optional] | | **offset** | **Integer** | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. | [optional] | | **limit** | **Integer** | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. | [optional] | ### Return type [**Array<LeaseTransactionMessage>**](LeaseTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_lease_outstanding_balances > > get_lease_outstanding_balances(opts) Retrieve all outstanding balances Retrieves a list of leases that have outstanding balances. Leases with a zero or credit balance will not be returned in the results.

Required permission(s):

Rentals > Outstanding Balances - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new opts = { entitytype: 'Rental', # String | entityid: 56, # Integer | leasestatuses: ['Active'], # Array | leaseids: [37], # Array | pastdueemail: 'NoEmailAddress', # String | balanceduration: 'TotalBalance', # String | evictionstatus: 'NotEvictionPending', # String | orderby: 'orderby_example', # String | `orderby` indicates the field(s) and direction to sort the results in the response. See Bulk Request Options for more information. offset: 56, # Integer | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. limit: 56 # Integer | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. } begin # Retrieve all outstanding balances result = api_instance.get_lease_outstanding_balances(opts) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_outstanding_balances: #{e}" end ``` #### Using the get_lease_outstanding_balances_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> get_lease_outstanding_balances_with_http_info(opts) ```ruby begin # Retrieve all outstanding balances data, status_code, headers = api_instance.get_lease_outstanding_balances_with_http_info(opts) p status_code # => 2xx p headers # => { ... } p data # => > rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_outstanding_balances_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **entitytype** | **String** | | [optional] | | **entityid** | **Integer** | | [optional] | | **leasestatuses** | [**Array<String>**](String.md) | | [optional] | | **leaseids** | [**Array<Integer>**](Integer.md) | | [optional] | | **pastdueemail** | **String** | | [optional] | | **balanceduration** | **String** | | [optional] | | **evictionstatus** | **String** | | [optional] | | **orderby** | **String** | `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information. | [optional] | | **offset** | **Integer** | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. | [optional] | | **limit** | **Integer** | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. | [optional] | ### Return type [**Array<LeaseOutstandingBalanceMessage>**](LeaseOutstandingBalanceMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_lease_recurring_credit_by_id > get_lease_recurring_credit_by_id(lease_id, transaction_id) Retrieve a recurring credit Retrieves a recurring credit.

Required permission(s):

Rentals > Lease transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | transaction_id = 56 # Integer | begin # Retrieve a recurring credit result = api_instance.get_lease_recurring_credit_by_id(lease_id, transaction_id) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_recurring_credit_by_id: #{e}" end ``` #### Using the get_lease_recurring_credit_by_id_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_lease_recurring_credit_by_id_with_http_info(lease_id, transaction_id) ```ruby begin # Retrieve a recurring credit data, status_code, headers = api_instance.get_lease_recurring_credit_by_id_with_http_info(lease_id, transaction_id) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_recurring_credit_by_id_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **transaction_id** | **Integer** | | | ### Return type [**LeaseRecurringCreditMessage**](LeaseRecurringCreditMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_lease_recurring_transactions > > get_lease_recurring_transactions(lease_id, opts) Retrieve all recurring transactions Retrieves all recurring transactions for a given lease.

Required permission(s):

Rentals > Lease transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | opts = { orderby: 'orderby_example', # String | `orderby` indicates the field(s) and direction to sort the results in the response. See Bulk Request Options for more information. offset: 56, # Integer | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. limit: 56 # Integer | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. } begin # Retrieve all recurring transactions result = api_instance.get_lease_recurring_transactions(lease_id, opts) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_recurring_transactions: #{e}" end ``` #### Using the get_lease_recurring_transactions_with_http_info variant This returns an Array which contains the response data, status code and headers. > >, Integer, Hash)> get_lease_recurring_transactions_with_http_info(lease_id, opts) ```ruby begin # Retrieve all recurring transactions data, status_code, headers = api_instance.get_lease_recurring_transactions_with_http_info(lease_id, opts) p status_code # => 2xx p headers # => { ... } p data # => > rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_lease_recurring_transactions_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **orderby** | **String** | `orderby` indicates the field(s) and direction to sort the results in the response. See <a href=\"#section/API-Overview/Bulk-Request-Options\">Bulk Request Options</a> for more information. | [optional] | | **offset** | **Integer** | `offset` indicates the position of the first record to return. The `offset` is zero-based and the default is 0. | [optional] | | **limit** | **Integer** | `limit` indicates the maximum number of results to be returned in the response. `limit` can range between 1 and 1000 and the default is 50. | [optional] | ### Return type [**Array<RecurringTransactionMessage>**](RecurringTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## get_recurring_lease_payments_by_id > get_recurring_lease_payments_by_id(lease_id, payment_id) Retrieve a recurring payment Retrieves a recurring payment.

Required permission(s):

Rentals > Lease Transactions - `View` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | payment_id = 56 # Integer | begin # Retrieve a recurring payment result = api_instance.get_recurring_lease_payments_by_id(lease_id, payment_id) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_recurring_lease_payments_by_id: #{e}" end ``` #### Using the get_recurring_lease_payments_by_id_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> get_recurring_lease_payments_by_id_with_http_info(lease_id, payment_id) ```ruby begin # Retrieve a recurring payment data, status_code, headers = api_instance.get_recurring_lease_payments_by_id_with_http_info(lease_id, payment_id) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->get_recurring_lease_payments_by_id_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **payment_id** | **Integer** | | | ### Return type [**LeaseRecurringPaymentMessage**](LeaseRecurringPaymentMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: application/json ## update_lease_charge > update_lease_charge(lease_id, charge_id, lease_charge_put_message) Update a charge Updates a charge.

Required permission(s):

Rentals > Lease transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | charge_id = 56 # Integer | lease_charge_put_message = Buildium::LeaseChargePutMessage.new({date: Date.today, lines: [Buildium::LeaseChargeLineSaveMessage.new({amount: 3.56, gl_account_id: 37})]}) # LeaseChargePutMessage | begin # Update a charge result = api_instance.update_lease_charge(lease_id, charge_id, lease_charge_put_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->update_lease_charge: #{e}" end ``` #### Using the update_lease_charge_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> update_lease_charge_with_http_info(lease_id, charge_id, lease_charge_put_message) ```ruby begin # Update a charge data, status_code, headers = api_instance.update_lease_charge_with_http_info(lease_id, charge_id, lease_charge_put_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->update_lease_charge_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **charge_id** | **Integer** | | | | **lease_charge_put_message** | [**LeaseChargePutMessage**](LeaseChargePutMessage.md) | | | ### Return type [**LeaseTransactionMessage**](LeaseTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json ## update_lease_ledger_payment > update_lease_ledger_payment(lease_id, payment_id, lease_ledger_payment_put_message) Update a payment Updates a ledger payment.

Required permission(s):

Rentals > Lease transactions - `View` `Edit` ### Examples ```ruby require 'time' require 'buildium-ruby' # setup authorization Buildium.configure do |config| # Configure API key authorization: clientId config.api_key['clientId'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientId'] = 'Bearer' # Configure API key authorization: clientSecret config.api_key['clientSecret'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) # config.api_key_prefix['clientSecret'] = 'Bearer' end api_instance = Buildium::LeaseTransactionsApi.new lease_id = 56 # Integer | payment_id = 56 # Integer | lease_ledger_payment_put_message = Buildium::LeaseLedgerPaymentPutMessage.new({date: Date.today, payment_method: 'Check', lines: [Buildium::LeaseLedgerPaymentLineSaveMessage.new({amount: 3.56, gl_account_id: 37})]}) # LeaseLedgerPaymentPutMessage | begin # Update a payment result = api_instance.update_lease_ledger_payment(lease_id, payment_id, lease_ledger_payment_put_message) p result rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->update_lease_ledger_payment: #{e}" end ``` #### Using the update_lease_ledger_payment_with_http_info variant This returns an Array which contains the response data, status code and headers. > , Integer, Hash)> update_lease_ledger_payment_with_http_info(lease_id, payment_id, lease_ledger_payment_put_message) ```ruby begin # Update a payment data, status_code, headers = api_instance.update_lease_ledger_payment_with_http_info(lease_id, payment_id, lease_ledger_payment_put_message) p status_code # => 2xx p headers # => { ... } p data # => rescue Buildium::ApiError => e puts "Error when calling LeaseTransactionsApi->update_lease_ledger_payment_with_http_info: #{e}" end ``` ### Parameters | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **lease_id** | **Integer** | | | | **payment_id** | **Integer** | | | | **lease_ledger_payment_put_message** | [**LeaseLedgerPaymentPutMessage**](LeaseLedgerPaymentPutMessage.md) | | | ### Return type [**LeaseTransactionMessage**](LeaseTransactionMessage.md) ### Authorization [clientId](../README.md#clientId), [clientSecret](../README.md#clientSecret) ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json