merge_accounting_client 1.0.4 → 1.0.5
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 +4 -4
- data/README.md +61 -5
- data/docs/Account.md +12 -8
- data/docs/AccountEndpointRequest.md +18 -0
- data/docs/AccountIntegration.md +1 -1
- data/docs/AccountRequest.md +40 -0
- data/docs/AccountResponse.md +24 -0
- data/docs/AccountingAttachment.md +7 -3
- data/docs/AccountingAttachmentEndpointRequest.md +18 -0
- data/docs/AccountingAttachmentRequest.md +26 -0
- data/docs/AccountingAttachmentResponse.md +24 -0
- data/docs/AccountingPhoneNumberRequest.md +24 -0
- data/docs/AccountsApi.md +163 -5
- data/docs/Address.md +5 -3
- data/docs/AddressesApi.md +4 -2
- data/docs/AttachmentsApi.md +154 -0
- data/docs/BalanceSheet.md +11 -7
- data/docs/BalanceSheetsApi.md +2 -0
- data/docs/CashFlowStatement.md +11 -7
- data/docs/CashFlowStatementsApi.md +2 -0
- data/docs/CommonModelScopeData.md +20 -0
- data/docs/CommonModelScopes.md +20 -0
- data/docs/CommonModelScopesApi.md +157 -0
- data/docs/CommonModelScopesBodyRequest.md +22 -0
- data/docs/CommonModelScopesDisabledModels.md +26 -0
- data/docs/CommonModelScopesDisabledModelsEnabledActionsEnum.md +15 -0
- data/docs/CommonModelScopesPostInnerDeserializerRequest.md +22 -0
- data/docs/CommonModelScopesUpdateSerializer.md +18 -0
- data/docs/CompanyInfo.md +6 -4
- data/docs/CompanyInfoApi.md +0 -4
- data/docs/ConditionSchema.md +30 -0
- data/docs/ConditionTypeEnum.md +15 -0
- data/docs/Contact.md +8 -4
- data/docs/ContactEndpointRequest.md +18 -0
- data/docs/ContactRequest.md +40 -0
- data/docs/ContactResponse.md +24 -0
- data/docs/ContactsApi.md +163 -9
- data/docs/CreditNote.md +12 -8
- data/docs/CreditNoteLineItem.md +7 -3
- data/docs/CreditNotesApi.md +15 -9
- data/docs/DataPassthroughRequest.md +1 -1
- data/docs/EnabledActionsEnum.md +15 -0
- data/docs/EndUserDetailsRequest.md +3 -1
- data/docs/Expense.md +18 -12
- data/docs/ExpenseEndpointRequest.md +18 -0
- data/docs/ExpenseLine.md +11 -5
- data/docs/ExpenseLineRequest.md +38 -0
- data/docs/ExpenseRequest.md +38 -0
- data/docs/ExpenseResponse.md +24 -0
- data/docs/ExpensesApi.md +159 -5
- data/docs/IncomeStatement.md +15 -11
- data/docs/IncomeStatementsApi.md +2 -0
- data/docs/Invoice.md +21 -15
- data/docs/InvoiceLineItem.md +15 -5
- data/docs/InvoiceLineItemRequest.md +15 -3
- data/docs/InvoiceRequest.md +17 -11
- data/docs/InvoicesApi.md +16 -10
- data/docs/Issue.md +9 -7
- data/docs/IssuesApi.md +2 -2
- data/docs/Item.md +11 -7
- data/docs/ItemsApi.md +11 -9
- data/docs/JournalEntriesApi.md +7 -5
- data/docs/JournalEntry.md +18 -10
- data/docs/JournalEntryRequest.md +14 -8
- data/docs/JournalLine.md +6 -4
- data/docs/JournalLineRequest.md +10 -4
- data/docs/LinkToken.md +1 -1
- data/docs/LinkedAccountCondition.md +28 -0
- data/docs/LinkedAccountConditionRequest.md +22 -0
- data/docs/LinkedAccountSelectiveSyncConfiguration.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationListRequest.md +18 -0
- data/docs/LinkedAccountSelectiveSyncConfigurationRequest.md +18 -0
- data/docs/LinkedAccountsApi.md +2 -2
- data/docs/MetaResponse.md +2 -0
- data/docs/MultipartFormFieldRequest.md +1 -1
- data/docs/OperatorSchema.md +20 -0
- data/docs/PaginatedConditionSchemaList.md +22 -0
- data/docs/Payment.md +14 -6
- data/docs/PaymentEndpointRequest.md +18 -0
- data/docs/PaymentRequest.md +34 -0
- data/docs/PaymentResponse.md +24 -0
- data/docs/PaymentsApi.md +159 -5
- data/docs/PostingStatusEnum.md +15 -0
- data/docs/PurchaseOrder.md +19 -13
- data/docs/PurchaseOrderEndpointRequest.md +18 -0
- data/docs/PurchaseOrderLineItem.md +10 -2
- data/docs/PurchaseOrderLineItemRequest.md +44 -0
- data/docs/PurchaseOrderRequest.md +44 -0
- data/docs/PurchaseOrderResponse.md +24 -0
- data/docs/PurchaseOrdersApi.md +167 -9
- data/docs/ReportItem.md +3 -1
- data/docs/SelectiveSyncApi.md +233 -0
- data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
- data/docs/SyncStatus.md +5 -3
- data/docs/TaxRate.md +11 -7
- data/docs/TaxRatesApi.md +2 -0
- data/docs/TrackingCategoriesApi.md +11 -5
- data/docs/TrackingCategory.md +13 -9
- data/docs/Transaction.md +20 -14
- data/docs/TransactionLineItem.md +9 -3
- data/docs/TransactionsApi.md +7 -5
- data/docs/VendorCredit.md +13 -7
- data/docs/VendorCreditLine.md +6 -2
- data/docs/VendorCreditsApi.md +7 -5
- data/lib/merge_accounting_client/api/accounts_api.rb +159 -4
- data/lib/merge_accounting_client/api/addresses_api.rb +9 -2
- data/lib/merge_accounting_client/api/attachments_api.rb +141 -0
- data/lib/merge_accounting_client/api/balance_sheets_api.rb +3 -0
- data/lib/merge_accounting_client/api/cash_flow_statements_api.rb +3 -0
- data/lib/merge_accounting_client/api/common_model_scopes_api.rb +146 -0
- data/lib/merge_accounting_client/api/company_info_api.rb +0 -14
- data/lib/merge_accounting_client/api/contacts_api.rb +159 -18
- data/lib/merge_accounting_client/api/credit_notes_api.rb +27 -18
- data/lib/merge_accounting_client/api/expenses_api.rb +147 -14
- data/lib/merge_accounting_client/api/income_statements_api.rb +3 -0
- data/lib/merge_accounting_client/api/invoices_api.rb +29 -20
- data/lib/merge_accounting_client/api/issues_api.rb +2 -2
- data/lib/merge_accounting_client/api/items_api.rb +21 -18
- data/lib/merge_accounting_client/api/journal_entries_api.rb +9 -14
- data/lib/merge_accounting_client/api/linked_accounts_api.rb +3 -3
- data/lib/merge_accounting_client/api/payments_api.rb +147 -14
- data/lib/merge_accounting_client/api/purchase_orders_api.rb +165 -18
- data/lib/merge_accounting_client/api/selective_sync_api.rb +225 -0
- data/lib/merge_accounting_client/api/tax_rates_api.rb +3 -0
- data/lib/merge_accounting_client/api/tracking_categories_api.rb +21 -4
- data/lib/merge_accounting_client/api/transactions_api.rb +9 -14
- data/lib/merge_accounting_client/api/vendor_credits_api.rb +9 -14
- data/lib/merge_accounting_client/models/account.rb +45 -21
- data/lib/merge_accounting_client/models/account_endpoint_request.rb +223 -0
- data/lib/merge_accounting_client/models/account_integration.rb +1 -1
- data/lib/merge_accounting_client/models/account_request.rb +344 -0
- data/lib/merge_accounting_client/models/account_response.rb +266 -0
- data/lib/merge_accounting_client/models/accounting_attachment.rb +39 -16
- data/lib/merge_accounting_client/models/accounting_attachment_endpoint_request.rb +223 -0
- data/lib/merge_accounting_client/models/accounting_attachment_request.rb +282 -0
- data/lib/merge_accounting_client/models/accounting_attachment_response.rb +266 -0
- data/lib/merge_accounting_client/models/accounting_phone_number_request.rb +256 -0
- data/lib/merge_accounting_client/models/address.rb +16 -5
- data/lib/merge_accounting_client/models/balance_sheet.rb +41 -18
- data/lib/merge_accounting_client/models/cash_flow_statement.rb +41 -18
- data/lib/merge_accounting_client/models/categories_enum.rb +3 -1
- data/lib/merge_accounting_client/models/category_enum.rb +3 -1
- data/lib/merge_accounting_client/models/common_model_scope_data.rb +234 -0
- data/lib/merge_accounting_client/models/common_model_scopes.rb +234 -0
- data/lib/merge_accounting_client/models/common_model_scopes_body_request.rb +274 -0
- data/lib/merge_accounting_client/models/common_model_scopes_disabled_models.rb +283 -0
- data/lib/merge_accounting_client/models/common_model_scopes_disabled_models_enabled_actions_enum.rb +45 -0
- data/lib/merge_accounting_client/models/common_model_scopes_post_inner_deserializer_request.rb +274 -0
- data/lib/merge_accounting_client/models/common_model_scopes_update_serializer.rb +226 -0
- data/lib/merge_accounting_client/models/company_info.rb +29 -17
- data/lib/merge_accounting_client/models/condition_schema.rb +298 -0
- data/lib/merge_accounting_client/models/condition_type_enum.rb +50 -0
- data/lib/merge_accounting_client/models/contact.rb +41 -18
- data/lib/merge_accounting_client/models/contact_endpoint_request.rb +223 -0
- data/lib/merge_accounting_client/models/contact_request.rb +346 -0
- data/lib/merge_accounting_client/models/contact_response.rb +266 -0
- data/lib/merge_accounting_client/models/credit_note.rb +43 -20
- data/lib/merge_accounting_client/models/credit_note_line_item.rb +40 -12
- data/lib/merge_accounting_client/models/data_passthrough_request.rb +1 -0
- data/lib/merge_accounting_client/models/enabled_actions_enum.rb +45 -0
- data/lib/merge_accounting_client/models/end_user_details_request.rb +18 -5
- data/lib/merge_accounting_client/models/expense.rb +91 -38
- data/lib/merge_accounting_client/models/expense_endpoint_request.rb +223 -0
- data/lib/merge_accounting_client/models/expense_line.rb +51 -17
- data/lib/merge_accounting_client/models/expense_line_request.rb +332 -0
- data/lib/merge_accounting_client/models/expense_request.rb +350 -0
- data/lib/merge_accounting_client/models/expense_response.rb +266 -0
- data/lib/merge_accounting_client/models/income_statement.rb +44 -21
- data/lib/merge_accounting_client/models/invoice.rb +94 -42
- data/lib/merge_accounting_client/models/invoice_line_item.rb +99 -26
- data/lib/merge_accounting_client/models/invoice_line_item_request.rb +102 -17
- data/lib/merge_accounting_client/models/invoice_request.rb +85 -32
- data/lib/merge_accounting_client/models/issue.rb +15 -4
- data/lib/merge_accounting_client/models/item.rb +44 -19
- data/lib/merge_accounting_client/models/journal_entry.rb +100 -38
- data/lib/merge_accounting_client/models/journal_entry_request.rb +92 -40
- data/lib/merge_accounting_client/models/journal_line.rb +28 -17
- data/lib/merge_accounting_client/models/journal_line_request.rb +52 -17
- data/lib/merge_accounting_client/models/link_token.rb +0 -5
- data/lib/merge_accounting_client/models/linked_account_condition.rb +282 -0
- data/lib/merge_accounting_client/models/linked_account_condition_request.rb +269 -0
- data/lib/merge_accounting_client/models/linked_account_selective_sync_configuration.rb +221 -0
- data/lib/merge_accounting_client/models/linked_account_selective_sync_configuration_list_request.rb +226 -0
- data/lib/merge_accounting_client/models/linked_account_selective_sync_configuration_request.rb +226 -0
- data/lib/merge_accounting_client/models/meta_response.rb +12 -1
- data/lib/merge_accounting_client/models/multipart_form_field_request.rb +1 -1
- data/lib/merge_accounting_client/models/operator_schema.rb +229 -0
- data/lib/merge_accounting_client/models/paginated_condition_schema_list.rb +240 -0
- data/lib/merge_accounting_client/models/payment.rb +82 -18
- data/lib/merge_accounting_client/models/payment_endpoint_request.rb +223 -0
- data/lib/merge_accounting_client/models/payment_request.rb +328 -0
- data/lib/merge_accounting_client/models/payment_response.rb +266 -0
- data/lib/merge_accounting_client/models/posting_status_enum.rb +45 -0
- data/lib/merge_accounting_client/models/purchase_order.rb +92 -41
- data/lib/merge_accounting_client/models/purchase_order_endpoint_request.rb +223 -0
- data/lib/merge_accounting_client/models/purchase_order_line_item.rb +79 -12
- data/lib/merge_accounting_client/models/purchase_order_line_item_request.rb +422 -0
- data/lib/merge_accounting_client/models/purchase_order_request.rb +383 -0
- data/lib/merge_accounting_client/models/purchase_order_response.rb +266 -0
- data/lib/merge_accounting_client/models/report_item.rb +15 -4
- data/lib/merge_accounting_client/models/selective_sync_configurations_usage_enum.rb +45 -0
- data/lib/merge_accounting_client/models/sync_status.rb +13 -4
- data/lib/merge_accounting_client/models/tax_rate.rb +59 -36
- data/lib/merge_accounting_client/models/tracking_category.rb +62 -38
- data/lib/merge_accounting_client/models/transaction.rb +97 -46
- data/lib/merge_accounting_client/models/transaction_line_item.rb +75 -19
- data/lib/merge_accounting_client/models/vendor_credit.rb +70 -18
- data/lib/merge_accounting_client/models/vendor_credit_line.rb +34 -6
- data/lib/merge_accounting_client/version.rb +1 -1
- data/lib/merge_accounting_client.rb +42 -1
- data/spec/api/accounts_api_spec.rb +30 -2
- data/spec/api/addresses_api_spec.rb +2 -1
- data/spec/api/attachments_api_spec.rb +26 -0
- data/spec/api/balance_sheets_api_spec.rb +1 -0
- data/spec/api/cash_flow_statements_api_spec.rb +1 -0
- data/spec/api/common_model_scopes_api_spec.rb +58 -0
- data/spec/api/company_info_api_spec.rb +0 -2
- data/spec/api/contacts_api_spec.rb +30 -4
- data/spec/api/credit_notes_api_spec.rb +7 -4
- data/spec/api/expenses_api_spec.rb +28 -2
- data/spec/api/income_statements_api_spec.rb +1 -0
- data/spec/api/invoices_api_spec.rb +8 -5
- data/spec/api/issues_api_spec.rb +1 -1
- data/spec/api/items_api_spec.rb +5 -4
- data/spec/api/journal_entries_api_spec.rb +3 -2
- data/spec/api/linked_accounts_api_spec.rb +1 -1
- data/spec/api/payments_api_spec.rb +28 -2
- data/spec/api/purchase_orders_api_spec.rb +32 -4
- data/spec/api/selective_sync_api_spec.rb +72 -0
- data/spec/api/tax_rates_api_spec.rb +1 -0
- data/spec/api/tracking_categories_api_spec.rb +5 -2
- data/spec/api/transactions_api_spec.rb +3 -2
- data/spec/api/vendor_credits_api_spec.rb +3 -2
- data/spec/models/account_endpoint_request_spec.rb +34 -0
- data/spec/models/account_request_spec.rb +100 -0
- data/spec/models/account_response_spec.rb +52 -0
- data/spec/models/account_spec.rb +18 -6
- data/spec/models/accounting_attachment_endpoint_request_spec.rb +34 -0
- data/spec/models/accounting_attachment_request_spec.rb +58 -0
- data/spec/models/accounting_attachment_response_spec.rb +52 -0
- data/spec/models/accounting_attachment_spec.rb +15 -3
- data/spec/models/accounting_phone_number_request_spec.rb +52 -0
- data/spec/models/address_spec.rb +6 -0
- data/spec/models/balance_sheet_spec.rb +15 -3
- data/spec/models/cash_flow_statement_spec.rb +15 -3
- data/spec/models/common_model_scope_data_spec.rb +40 -0
- data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
- data/spec/models/common_model_scopes_disabled_models_enabled_actions_enum_spec.rb +28 -0
- data/spec/models/common_model_scopes_disabled_models_spec.rb +58 -0
- data/spec/models/common_model_scopes_post_inner_deserializer_request_spec.rb +46 -0
- data/spec/models/common_model_scopes_spec.rb +40 -0
- data/spec/models/common_model_scopes_update_serializer_spec.rb +34 -0
- data/spec/models/company_info_spec.rb +12 -6
- data/spec/models/condition_schema_spec.rb +70 -0
- data/spec/models/condition_type_enum_spec.rb +28 -0
- data/spec/models/contact_endpoint_request_spec.rb +34 -0
- data/spec/models/contact_request_spec.rb +100 -0
- data/spec/models/contact_response_spec.rb +52 -0
- data/spec/models/contact_spec.rb +18 -6
- data/spec/models/credit_note_line_item_spec.rb +12 -0
- data/spec/models/credit_note_spec.rb +17 -5
- data/spec/models/enabled_actions_enum_spec.rb +28 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/expense_endpoint_request_spec.rb +34 -0
- data/spec/models/expense_line_request_spec.rb +94 -0
- data/spec/models/expense_line_spec.rb +22 -4
- data/spec/models/expense_request_spec.rb +94 -0
- data/spec/models/expense_response_spec.rb +52 -0
- data/spec/models/expense_spec.rb +30 -12
- data/spec/models/income_statement_spec.rb +15 -3
- data/spec/models/invoice_line_item_request_spec.rb +41 -5
- data/spec/models/invoice_line_item_spec.rb +36 -6
- data/spec/models/invoice_request_spec.rb +26 -8
- data/spec/models/invoice_spec.rb +34 -16
- data/spec/models/issue_spec.rb +6 -0
- data/spec/models/item_spec.rb +18 -6
- data/spec/models/journal_entry_request_spec.rb +25 -7
- data/spec/models/journal_entry_spec.rb +35 -11
- data/spec/models/journal_line_request_spec.rb +22 -4
- data/spec/models/journal_line_spec.rb +10 -4
- data/spec/models/linked_account_condition_request_spec.rb +46 -0
- data/spec/models/linked_account_condition_spec.rb +64 -0
- data/spec/models/linked_account_selective_sync_configuration_list_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_request_spec.rb +34 -0
- data/spec/models/linked_account_selective_sync_configuration_spec.rb +34 -0
- data/spec/models/meta_response_spec.rb +6 -0
- data/spec/models/operator_schema_spec.rb +40 -0
- data/spec/models/paginated_condition_schema_list_spec.rb +46 -0
- data/spec/models/payment_endpoint_request_spec.rb +34 -0
- data/spec/models/payment_request_spec.rb +82 -0
- data/spec/models/payment_response_spec.rb +52 -0
- data/spec/models/payment_spec.rb +28 -4
- data/spec/models/posting_status_enum_spec.rb +28 -0
- data/spec/models/purchase_order_endpoint_request_spec.rb +34 -0
- data/spec/models/purchase_order_line_item_request_spec.rb +112 -0
- data/spec/models/purchase_order_line_item_spec.rb +24 -0
- data/spec/models/purchase_order_request_spec.rb +112 -0
- data/spec/models/purchase_order_response_spec.rb +52 -0
- data/spec/models/purchase_order_spec.rb +34 -16
- data/spec/models/report_item_spec.rb +6 -0
- data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
- data/spec/models/sync_status_spec.rb +6 -0
- data/spec/models/tax_rate_spec.rb +19 -7
- data/spec/models/tracking_category_spec.rb +20 -8
- data/spec/models/transaction_line_item_spec.rb +19 -1
- data/spec/models/transaction_spec.rb +30 -12
- data/spec/models/vendor_credit_line_spec.rb +12 -0
- data/spec/models/vendor_credit_spec.rb +24 -6
- metadata +283 -115
@@ -14,47 +14,59 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MergeAccountingClient
|
17
|
-
# # The VendorCredit Object ### Description The `VendorCredit` object is used to
|
17
|
+
# # The VendorCredit Object ### Description The `VendorCredit` object is an accounts receivable transaction used to show that a customer is owed a gift or refund. A vendor credit will contain information on the amount of credit owed to the customer, the vendor that owes the credit, and the account. ### Usage Example Fetch from the `GET VendorCredit` endpoint and view a company's vendor credits.
|
18
18
|
class VendorCredit
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
21
|
# The third-party API ID of the matching object.
|
22
22
|
attr_accessor :remote_id
|
23
23
|
|
24
|
-
attr_accessor :remote_data
|
25
|
-
|
26
24
|
# The vendor credit's number.
|
27
25
|
attr_accessor :number
|
28
26
|
|
29
27
|
# The vendor credit's transaction date.
|
30
28
|
attr_accessor :transaction_date
|
31
29
|
|
30
|
+
# The vendor that owes the gift or refund.
|
32
31
|
attr_accessor :vendor
|
33
32
|
|
34
33
|
# The vendor credit's total amount.
|
35
34
|
attr_accessor :total_amount
|
36
35
|
|
37
|
-
# The vendor credit's currency.
|
36
|
+
# The vendor credit's currency. * `XUA` - ADB Unit of Account * `AFN` - Afghan Afghani * `AFA` - Afghan Afghani (1927–2002) * `ALL` - Albanian Lek * `ALK` - Albanian Lek (1946–1965) * `DZD` - Algerian Dinar * `ADP` - Andorran Peseta * `AOA` - Angolan Kwanza * `AOK` - Angolan Kwanza (1977–1991) * `AON` - Angolan New Kwanza (1990–2000) * `AOR` - Angolan Readjusted Kwanza (1995–1999) * `ARA` - Argentine Austral * `ARS` - Argentine Peso * `ARM` - Argentine Peso (1881–1970) * `ARP` - Argentine Peso (1983–1985) * `ARL` - Argentine Peso Ley (1970–1983) * `AMD` - Armenian Dram * `AWG` - Aruban Florin * `AUD` - Australian Dollar * `ATS` - Austrian Schilling * `AZN` - Azerbaijani Manat * `AZM` - Azerbaijani Manat (1993–2006) * `BSD` - Bahamian Dollar * `BHD` - Bahraini Dinar * `BDT` - Bangladeshi Taka * `BBD` - Barbadian Dollar * `BYN` - Belarusian Ruble * `BYB` - Belarusian Ruble (1994–1999) * `BYR` - Belarusian Ruble (2000–2016) * `BEF` - Belgian Franc * `BEC` - Belgian Franc (convertible) * `BEL` - Belgian Franc (financial) * `BZD` - Belize Dollar * `BMD` - Bermudan Dollar * `BTN` - Bhutanese Ngultrum * `BOB` - Bolivian Boliviano * `BOL` - Bolivian Boliviano (1863–1963) * `BOV` - Bolivian Mvdol * `BOP` - Bolivian Peso * `BAM` - Bosnia-Herzegovina Convertible Mark * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) * `BWP` - Botswanan Pula * `BRC` - Brazilian Cruzado (1986–1989) * `BRZ` - Brazilian Cruzeiro (1942–1967) * `BRE` - Brazilian Cruzeiro (1990–1993) * `BRR` - Brazilian Cruzeiro (1993–1994) * `BRN` - Brazilian New Cruzado (1989–1990) * `BRB` - Brazilian New Cruzeiro (1967–1986) * `BRL` - Brazilian Real * `GBP` - British Pound * `BND` - Brunei Dollar * `BGL` - Bulgarian Hard Lev * `BGN` - Bulgarian Lev * `BGO` - Bulgarian Lev (1879–1952) * `BGM` - Bulgarian Socialist Lev * `BUK` - Burmese Kyat * `BIF` - Burundian Franc * `XPF` - CFP Franc * `KHR` - Cambodian Riel * `CAD` - Canadian Dollar * `CVE` - Cape Verdean Escudo * `KYD` - Cayman Islands Dollar * `XAF` - Central African CFA Franc * `CLE` - Chilean Escudo * `CLP` - Chilean Peso * `CLF` - Chilean Unit of Account (UF) * `CNX` - Chinese People’s Bank Dollar * `CNY` - Chinese Yuan * `CNH` - Chinese Yuan (offshore) * `COP` - Colombian Peso * `COU` - Colombian Real Value Unit * `KMF` - Comorian Franc * `CDF` - Congolese Franc * `CRC` - Costa Rican Colón * `HRD` - Croatian Dinar * `HRK` - Croatian Kuna * `CUC` - Cuban Convertible Peso * `CUP` - Cuban Peso * `CYP` - Cypriot Pound * `CZK` - Czech Koruna * `CSK` - Czechoslovak Hard Koruna * `DKK` - Danish Krone * `DJF` - Djiboutian Franc * `DOP` - Dominican Peso * `NLG` - Dutch Guilder * `XCD` - East Caribbean Dollar * `DDM` - East German Mark * `ECS` - Ecuadorian Sucre * `ECV` - Ecuadorian Unit of Constant Value * `EGP` - Egyptian Pound * `GQE` - Equatorial Guinean Ekwele * `ERN` - Eritrean Nakfa * `EEK` - Estonian Kroon * `ETB` - Ethiopian Birr * `EUR` - Euro * `XBA` - European Composite Unit * `XEU` - European Currency Unit * `XBB` - European Monetary Unit * `XBC` - European Unit of Account (XBC) * `XBD` - European Unit of Account (XBD) * `FKP` - Falkland Islands Pound * `FJD` - Fijian Dollar * `FIM` - Finnish Markka * `FRF` - French Franc * `XFO` - French Gold Franc * `XFU` - French UIC-Franc * `GMD` - Gambian Dalasi * `GEK` - Georgian Kupon Larit * `GEL` - Georgian Lari * `DEM` - German Mark * `GHS` - Ghanaian Cedi * `GHC` - Ghanaian Cedi (1979–2007) * `GIP` - Gibraltar Pound * `XAU` - Gold * `GRD` - Greek Drachma * `GTQ` - Guatemalan Quetzal * `GWP` - Guinea-Bissau Peso * `GNF` - Guinean Franc * `GNS` - Guinean Syli * `GYD` - Guyanaese Dollar * `HTG` - Haitian Gourde * `HNL` - Honduran Lempira * `HKD` - Hong Kong Dollar * `HUF` - Hungarian Forint * `IMP` - IMP * `ISK` - Icelandic Króna * `ISJ` - Icelandic Króna (1918–1981) * `INR` - Indian Rupee * `IDR` - Indonesian Rupiah * `IRR` - Iranian Rial * `IQD` - Iraqi Dinar * `IEP` - Irish Pound * `ILS` - Israeli New Shekel * `ILP` - Israeli Pound * `ILR` - Israeli Shekel (1980–1985) * `ITL` - Italian Lira * `JMD` - Jamaican Dollar * `JPY` - Japanese Yen * `JOD` - Jordanian Dinar * `KZT` - Kazakhstani Tenge * `KES` - Kenyan Shilling * `KWD` - Kuwaiti Dinar * `KGS` - Kyrgystani Som * `LAK` - Laotian Kip * `LVL` - Latvian Lats * `LVR` - Latvian Ruble * `LBP` - Lebanese Pound * `LSL` - Lesotho Loti * `LRD` - Liberian Dollar * `LYD` - Libyan Dinar * `LTL` - Lithuanian Litas * `LTT` - Lithuanian Talonas * `LUL` - Luxembourg Financial Franc * `LUC` - Luxembourgian Convertible Franc * `LUF` - Luxembourgian Franc * `MOP` - Macanese Pataca * `MKD` - Macedonian Denar * `MKN` - Macedonian Denar (1992–1993) * `MGA` - Malagasy Ariary * `MGF` - Malagasy Franc * `MWK` - Malawian Kwacha * `MYR` - Malaysian Ringgit * `MVR` - Maldivian Rufiyaa * `MVP` - Maldivian Rupee (1947–1981) * `MLF` - Malian Franc * `MTL` - Maltese Lira * `MTP` - Maltese Pound * `MRU` - Mauritanian Ouguiya * `MRO` - Mauritanian Ouguiya (1973–2017) * `MUR` - Mauritian Rupee * `MXV` - Mexican Investment Unit * `MXN` - Mexican Peso * `MXP` - Mexican Silver Peso (1861–1992) * `MDC` - Moldovan Cupon * `MDL` - Moldovan Leu * `MCF` - Monegasque Franc * `MNT` - Mongolian Tugrik * `MAD` - Moroccan Dirham * `MAF` - Moroccan Franc * `MZE` - Mozambican Escudo * `MZN` - Mozambican Metical * `MZM` - Mozambican Metical (1980–2006) * `MMK` - Myanmar Kyat * `NAD` - Namibian Dollar * `NPR` - Nepalese Rupee * `ANG` - Netherlands Antillean Guilder * `TWD` - New Taiwan Dollar * `NZD` - New Zealand Dollar * `NIO` - Nicaraguan Córdoba * `NIC` - Nicaraguan Córdoba (1988–1991) * `NGN` - Nigerian Naira * `KPW` - North Korean Won * `NOK` - Norwegian Krone * `OMR` - Omani Rial * `PKR` - Pakistani Rupee * `XPD` - Palladium * `PAB` - Panamanian Balboa * `PGK` - Papua New Guinean Kina * `PYG` - Paraguayan Guarani * `PEI` - Peruvian Inti * `PEN` - Peruvian Sol * `PES` - Peruvian Sol (1863–1965) * `PHP` - Philippine Peso * `XPT` - Platinum * `PLN` - Polish Zloty * `PLZ` - Polish Zloty (1950–1995) * `PTE` - Portuguese Escudo * `GWE` - Portuguese Guinea Escudo * `QAR` - Qatari Rial * `XRE` - RINET Funds * `RHD` - Rhodesian Dollar * `RON` - Romanian Leu * `ROL` - Romanian Leu (1952–2006) * `RUB` - Russian Ruble * `RUR` - Russian Ruble (1991–1998) * `RWF` - Rwandan Franc * `SVC` - Salvadoran Colón * `WST` - Samoan Tala * `SAR` - Saudi Riyal * `RSD` - Serbian Dinar * `CSD` - Serbian Dinar (2002–2006) * `SCR` - Seychellois Rupee * `SLL` - Sierra Leonean Leone * `XAG` - Silver * `SGD` - Singapore Dollar * `SKK` - Slovak Koruna * `SIT` - Slovenian Tolar * `SBD` - Solomon Islands Dollar * `SOS` - Somali Shilling * `ZAR` - South African Rand * `ZAL` - South African Rand (financial) * `KRH` - South Korean Hwan (1953–1962) * `KRW` - South Korean Won * `KRO` - South Korean Won (1945–1953) * `SSP` - South Sudanese Pound * `SUR` - Soviet Rouble * `ESP` - Spanish Peseta * `ESA` - Spanish Peseta (A account) * `ESB` - Spanish Peseta (convertible account) * `XDR` - Special Drawing Rights * `LKR` - Sri Lankan Rupee * `SHP` - St. Helena Pound * `XSU` - Sucre * `SDD` - Sudanese Dinar (1992–2007) * `SDG` - Sudanese Pound * `SDP` - Sudanese Pound (1957–1998) * `SRD` - Surinamese Dollar * `SRG` - Surinamese Guilder * `SZL` - Swazi Lilangeni * `SEK` - Swedish Krona * `CHF` - Swiss Franc * `SYP` - Syrian Pound * `STN` - São Tomé & Príncipe Dobra * `STD` - São Tomé & Príncipe Dobra (1977–2017) * `TVD` - TVD * `TJR` - Tajikistani Ruble * `TJS` - Tajikistani Somoni * `TZS` - Tanzanian Shilling * `XTS` - Testing Currency Code * `THB` - Thai Baht * `XXX` - The codes assigned for transactions where no currency is involved * `TPE` - Timorese Escudo * `TOP` - Tongan Paʻanga * `TTD` - Trinidad & Tobago Dollar * `TND` - Tunisian Dinar * `TRY` - Turkish Lira * `TRL` - Turkish Lira (1922–2005) * `TMT` - Turkmenistani Manat * `TMM` - Turkmenistani Manat (1993–2009) * `USD` - US Dollar * `USN` - US Dollar (Next day) * `USS` - US Dollar (Same day) * `UGX` - Ugandan Shilling * `UGS` - Ugandan Shilling (1966–1987) * `UAH` - Ukrainian Hryvnia * `UAK` - Ukrainian Karbovanets * `AED` - United Arab Emirates Dirham * `UYW` - Uruguayan Nominal Wage Index Unit * `UYU` - Uruguayan Peso * `UYP` - Uruguayan Peso (1975–1993) * `UYI` - Uruguayan Peso (Indexed Units) * `UZS` - Uzbekistani Som * `VUV` - Vanuatu Vatu * `VES` - Venezuelan Bolívar * `VEB` - Venezuelan Bolívar (1871–2008) * `VEF` - Venezuelan Bolívar (2008–2018) * `VND` - Vietnamese Dong * `VNN` - Vietnamese Dong (1978–1985) * `CHE` - WIR Euro * `CHW` - WIR Franc * `XOF` - West African CFA Franc * `YDD` - Yemeni Dinar * `YER` - Yemeni Rial * `YUN` - Yugoslavian Convertible Dinar (1990–1992) * `YUD` - Yugoslavian Hard Dinar (1966–1990) * `YUM` - Yugoslavian New Dinar (1994–2002) * `YUR` - Yugoslavian Reformed Dinar (1992–1993) * `ZWN` - ZWN * `ZRN` - Zairean New Zaire (1993–1998) * `ZRZ` - Zairean Zaire (1971–1993) * `ZMW` - Zambian Kwacha * `ZMK` - Zambian Kwacha (1968–2012) * `ZWD` - Zimbabwean Dollar (1980–2008) * `ZWR` - Zimbabwean Dollar (2008) * `ZWL` - Zimbabwean Dollar (2009)
|
38
37
|
attr_accessor :currency
|
39
38
|
|
39
|
+
# The vendor credit's exchange rate.
|
40
|
+
attr_accessor :exchange_rate
|
41
|
+
|
42
|
+
# The company the vendor credit belongs to.
|
43
|
+
attr_accessor :company
|
44
|
+
|
40
45
|
attr_accessor :lines
|
41
46
|
|
42
47
|
# Indicates whether or not this object has been deleted by third party webhooks.
|
43
48
|
attr_accessor :remote_was_deleted
|
44
49
|
|
50
|
+
attr_accessor :field_mappings
|
51
|
+
|
52
|
+
attr_accessor :remote_data
|
53
|
+
|
45
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
55
|
def self.attribute_map
|
47
56
|
{
|
48
57
|
:'id' => :'id',
|
49
58
|
:'remote_id' => :'remote_id',
|
50
|
-
:'remote_data' => :'remote_data',
|
51
59
|
:'number' => :'number',
|
52
60
|
:'transaction_date' => :'transaction_date',
|
53
61
|
:'vendor' => :'vendor',
|
54
62
|
:'total_amount' => :'total_amount',
|
55
63
|
:'currency' => :'currency',
|
64
|
+
:'exchange_rate' => :'exchange_rate',
|
65
|
+
:'company' => :'company',
|
56
66
|
:'lines' => :'lines',
|
57
|
-
:'remote_was_deleted' => :'remote_was_deleted'
|
67
|
+
:'remote_was_deleted' => :'remote_was_deleted',
|
68
|
+
:'field_mappings' => :'field_mappings',
|
69
|
+
:'remote_data' => :'remote_data'
|
58
70
|
}
|
59
71
|
end
|
60
72
|
|
@@ -68,14 +80,17 @@ module MergeAccountingClient
|
|
68
80
|
{
|
69
81
|
:'id' => :'String',
|
70
82
|
:'remote_id' => :'String',
|
71
|
-
:'remote_data' => :'Array<RemoteData>',
|
72
83
|
:'number' => :'String',
|
73
84
|
:'transaction_date' => :'Time',
|
74
85
|
:'vendor' => :'String',
|
75
86
|
:'total_amount' => :'Float',
|
76
87
|
:'currency' => :'CurrencyEnum',
|
88
|
+
:'exchange_rate' => :'String',
|
89
|
+
:'company' => :'String',
|
77
90
|
:'lines' => :'Array<VendorCreditLine>',
|
78
|
-
:'remote_was_deleted' => :'Boolean'
|
91
|
+
:'remote_was_deleted' => :'Boolean',
|
92
|
+
:'field_mappings' => :'Hash<String, Object>',
|
93
|
+
:'remote_data' => :'Array<RemoteData>'
|
79
94
|
}
|
80
95
|
end
|
81
96
|
|
@@ -83,12 +98,15 @@ module MergeAccountingClient
|
|
83
98
|
def self.openapi_nullable
|
84
99
|
Set.new([
|
85
100
|
:'remote_id',
|
86
|
-
:'remote_data',
|
87
101
|
:'number',
|
88
102
|
:'transaction_date',
|
89
103
|
:'vendor',
|
90
104
|
:'total_amount',
|
91
105
|
:'currency',
|
106
|
+
:'exchange_rate',
|
107
|
+
:'company',
|
108
|
+
:'field_mappings',
|
109
|
+
:'remote_data'
|
92
110
|
])
|
93
111
|
end
|
94
112
|
|
@@ -115,12 +133,6 @@ module MergeAccountingClient
|
|
115
133
|
self.remote_id = attributes[:'remote_id']
|
116
134
|
end
|
117
135
|
|
118
|
-
if attributes.key?(:'remote_data')
|
119
|
-
if (value = attributes[:'remote_data']).is_a?(Array)
|
120
|
-
self.remote_data = value
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
136
|
if attributes.key?(:'number')
|
125
137
|
self.number = attributes[:'number']
|
126
138
|
end
|
@@ -141,6 +153,14 @@ module MergeAccountingClient
|
|
141
153
|
self.currency = attributes[:'currency']
|
142
154
|
end
|
143
155
|
|
156
|
+
if attributes.key?(:'exchange_rate')
|
157
|
+
self.exchange_rate = attributes[:'exchange_rate']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'company')
|
161
|
+
self.company = attributes[:'company']
|
162
|
+
end
|
163
|
+
|
144
164
|
if attributes.key?(:'lines')
|
145
165
|
if (value = attributes[:'lines']).is_a?(Array)
|
146
166
|
self.lines = value
|
@@ -150,21 +170,50 @@ module MergeAccountingClient
|
|
150
170
|
if attributes.key?(:'remote_was_deleted')
|
151
171
|
self.remote_was_deleted = attributes[:'remote_was_deleted']
|
152
172
|
end
|
173
|
+
|
174
|
+
if attributes.key?(:'field_mappings')
|
175
|
+
if (value = attributes[:'field_mappings']).is_a?(Hash)
|
176
|
+
self.field_mappings = value
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.key?(:'remote_data')
|
181
|
+
if (value = attributes[:'remote_data']).is_a?(Array)
|
182
|
+
self.remote_data = value
|
183
|
+
end
|
184
|
+
end
|
153
185
|
end
|
154
186
|
|
155
187
|
# Show invalid properties with the reasons. Usually used together with valid?
|
156
188
|
# @return Array for valid properties with the reasons
|
157
189
|
def list_invalid_properties
|
158
190
|
invalid_properties = Array.new
|
191
|
+
pattern = Regexp.new(/^-?\d{0,32}(?:\.\d{0,16})?$/)
|
192
|
+
if !@exchange_rate.nil? && @exchange_rate !~ pattern
|
193
|
+
invalid_properties.push("invalid value for \"exchange_rate\", must conform to the pattern #{pattern}.")
|
194
|
+
end
|
195
|
+
|
159
196
|
invalid_properties
|
160
197
|
end
|
161
198
|
|
162
199
|
# Check to see if the all the properties in the model are valid
|
163
200
|
# @return true if the model is valid
|
164
201
|
def valid?
|
202
|
+
return false if !@exchange_rate.nil? && @exchange_rate !~ Regexp.new(/^-?\d{0,32}(?:\.\d{0,16})?$/)
|
165
203
|
true
|
166
204
|
end
|
167
205
|
|
206
|
+
# Custom attribute writer method with validation
|
207
|
+
# @param [Object] exchange_rate Value to be assigned
|
208
|
+
def exchange_rate=(exchange_rate)
|
209
|
+
pattern = Regexp.new(/^-?\d{0,32}(?:\.\d{0,16})?$/)
|
210
|
+
if !exchange_rate.nil? && exchange_rate !~ pattern
|
211
|
+
fail ArgumentError, "invalid value for \"exchange_rate\", must conform to the pattern #{pattern}."
|
212
|
+
end
|
213
|
+
|
214
|
+
@exchange_rate = exchange_rate
|
215
|
+
end
|
216
|
+
|
168
217
|
# Checks equality by comparing each attribute.
|
169
218
|
# @param [Object] Object to be compared
|
170
219
|
def ==(o)
|
@@ -172,14 +221,17 @@ module MergeAccountingClient
|
|
172
221
|
self.class == o.class &&
|
173
222
|
id == o.id &&
|
174
223
|
remote_id == o.remote_id &&
|
175
|
-
remote_data == o.remote_data &&
|
176
224
|
number == o.number &&
|
177
225
|
transaction_date == o.transaction_date &&
|
178
226
|
vendor == o.vendor &&
|
179
227
|
total_amount == o.total_amount &&
|
180
228
|
currency == o.currency &&
|
229
|
+
exchange_rate == o.exchange_rate &&
|
230
|
+
company == o.company &&
|
181
231
|
lines == o.lines &&
|
182
|
-
remote_was_deleted == o.remote_was_deleted
|
232
|
+
remote_was_deleted == o.remote_was_deleted &&
|
233
|
+
field_mappings == o.field_mappings &&
|
234
|
+
remote_data == o.remote_data
|
183
235
|
end
|
184
236
|
|
185
237
|
# @see the `==` method
|
@@ -191,7 +243,7 @@ module MergeAccountingClient
|
|
191
243
|
# Calculates hash code according to all attributes.
|
192
244
|
# @return [Integer] Hash code
|
193
245
|
def hash
|
194
|
-
[id, remote_id,
|
246
|
+
[id, remote_id, number, transaction_date, vendor, total_amount, currency, exchange_rate, company, lines, remote_was_deleted, field_mappings, remote_data].hash
|
195
247
|
end
|
196
248
|
|
197
249
|
# Builds the object from hash
|
@@ -19,26 +19,34 @@ module MergeAccountingClient
|
|
19
19
|
# The third-party API ID of the matching object.
|
20
20
|
attr_accessor :remote_id
|
21
21
|
|
22
|
-
# The
|
22
|
+
# The full value of the credit.
|
23
23
|
attr_accessor :net_amount
|
24
24
|
|
25
25
|
# The line's associated tracking category.
|
26
26
|
attr_accessor :tracking_category
|
27
27
|
|
28
|
+
# The line's associated tracking categories.
|
29
|
+
attr_accessor :tracking_categories
|
30
|
+
|
28
31
|
# The line's description.
|
29
32
|
attr_accessor :description
|
30
33
|
|
31
34
|
# The line's account.
|
32
35
|
attr_accessor :account
|
33
36
|
|
37
|
+
# The company the line belongs to.
|
38
|
+
attr_accessor :company
|
39
|
+
|
34
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
41
|
def self.attribute_map
|
36
42
|
{
|
37
43
|
:'remote_id' => :'remote_id',
|
38
44
|
:'net_amount' => :'net_amount',
|
39
45
|
:'tracking_category' => :'tracking_category',
|
46
|
+
:'tracking_categories' => :'tracking_categories',
|
40
47
|
:'description' => :'description',
|
41
|
-
:'account' => :'account'
|
48
|
+
:'account' => :'account',
|
49
|
+
:'company' => :'company'
|
42
50
|
}
|
43
51
|
end
|
44
52
|
|
@@ -53,8 +61,10 @@ module MergeAccountingClient
|
|
53
61
|
:'remote_id' => :'String',
|
54
62
|
:'net_amount' => :'Float',
|
55
63
|
:'tracking_category' => :'String',
|
64
|
+
:'tracking_categories' => :'Array<String>',
|
56
65
|
:'description' => :'String',
|
57
|
-
:'account' => :'String'
|
66
|
+
:'account' => :'String',
|
67
|
+
:'company' => :'String'
|
58
68
|
}
|
59
69
|
end
|
60
70
|
|
@@ -65,7 +75,8 @@ module MergeAccountingClient
|
|
65
75
|
:'net_amount',
|
66
76
|
:'tracking_category',
|
67
77
|
:'description',
|
68
|
-
:'account'
|
78
|
+
:'account',
|
79
|
+
:'company'
|
69
80
|
])
|
70
81
|
end
|
71
82
|
|
@@ -96,6 +107,12 @@ module MergeAccountingClient
|
|
96
107
|
self.tracking_category = attributes[:'tracking_category']
|
97
108
|
end
|
98
109
|
|
110
|
+
if attributes.key?(:'tracking_categories')
|
111
|
+
if (value = attributes[:'tracking_categories']).is_a?(Array)
|
112
|
+
self.tracking_categories = value
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
99
116
|
if attributes.key?(:'description')
|
100
117
|
self.description = attributes[:'description']
|
101
118
|
end
|
@@ -103,18 +120,27 @@ module MergeAccountingClient
|
|
103
120
|
if attributes.key?(:'account')
|
104
121
|
self.account = attributes[:'account']
|
105
122
|
end
|
123
|
+
|
124
|
+
if attributes.key?(:'company')
|
125
|
+
self.company = attributes[:'company']
|
126
|
+
end
|
106
127
|
end
|
107
128
|
|
108
129
|
# Show invalid properties with the reasons. Usually used together with valid?
|
109
130
|
# @return Array for valid properties with the reasons
|
110
131
|
def list_invalid_properties
|
111
132
|
invalid_properties = Array.new
|
133
|
+
if @tracking_categories.nil?
|
134
|
+
invalid_properties.push('invalid value for "tracking_categories", tracking_categories cannot be nil.')
|
135
|
+
end
|
136
|
+
|
112
137
|
invalid_properties
|
113
138
|
end
|
114
139
|
|
115
140
|
# Check to see if the all the properties in the model are valid
|
116
141
|
# @return true if the model is valid
|
117
142
|
def valid?
|
143
|
+
return false if @tracking_categories.nil?
|
118
144
|
true
|
119
145
|
end
|
120
146
|
|
@@ -126,8 +152,10 @@ module MergeAccountingClient
|
|
126
152
|
remote_id == o.remote_id &&
|
127
153
|
net_amount == o.net_amount &&
|
128
154
|
tracking_category == o.tracking_category &&
|
155
|
+
tracking_categories == o.tracking_categories &&
|
129
156
|
description == o.description &&
|
130
|
-
account == o.account
|
157
|
+
account == o.account &&
|
158
|
+
company == o.company
|
131
159
|
end
|
132
160
|
|
133
161
|
# @see the `==` method
|
@@ -139,7 +167,7 @@ module MergeAccountingClient
|
|
139
167
|
# Calculates hash code according to all attributes.
|
140
168
|
# @return [Integer] Hash code
|
141
169
|
def hash
|
142
|
-
[remote_id, net_amount, tracking_category, description, account].hash
|
170
|
+
[remote_id, net_amount, tracking_category, tracking_categories, description, account, company].hash
|
143
171
|
end
|
144
172
|
|
145
173
|
# Builds the object from hash
|
@@ -22,11 +22,18 @@ require 'merge_accounting_client/models/account_details'
|
|
22
22
|
require 'merge_accounting_client/models/account_details_and_actions'
|
23
23
|
require 'merge_accounting_client/models/account_details_and_actions_integration'
|
24
24
|
require 'merge_accounting_client/models/account_details_and_actions_status_enum'
|
25
|
+
require 'merge_accounting_client/models/account_endpoint_request'
|
25
26
|
require 'merge_accounting_client/models/account_integration'
|
27
|
+
require 'merge_accounting_client/models/account_request'
|
28
|
+
require 'merge_accounting_client/models/account_response'
|
26
29
|
require 'merge_accounting_client/models/account_status_enum'
|
27
30
|
require 'merge_accounting_client/models/account_token'
|
28
31
|
require 'merge_accounting_client/models/accounting_attachment'
|
32
|
+
require 'merge_accounting_client/models/accounting_attachment_endpoint_request'
|
33
|
+
require 'merge_accounting_client/models/accounting_attachment_request'
|
34
|
+
require 'merge_accounting_client/models/accounting_attachment_response'
|
29
35
|
require 'merge_accounting_client/models/accounting_phone_number'
|
36
|
+
require 'merge_accounting_client/models/accounting_phone_number_request'
|
30
37
|
require 'merge_accounting_client/models/address'
|
31
38
|
require 'merge_accounting_client/models/address_type_enum'
|
32
39
|
require 'merge_accounting_client/models/available_actions'
|
@@ -36,8 +43,20 @@ require 'merge_accounting_client/models/categories_enum'
|
|
36
43
|
require 'merge_accounting_client/models/category_enum'
|
37
44
|
require 'merge_accounting_client/models/category_type_enum'
|
38
45
|
require 'merge_accounting_client/models/classification_enum'
|
46
|
+
require 'merge_accounting_client/models/common_model_scope_data'
|
47
|
+
require 'merge_accounting_client/models/common_model_scopes'
|
48
|
+
require 'merge_accounting_client/models/common_model_scopes_body_request'
|
49
|
+
require 'merge_accounting_client/models/common_model_scopes_disabled_models'
|
50
|
+
require 'merge_accounting_client/models/common_model_scopes_disabled_models_enabled_actions_enum'
|
51
|
+
require 'merge_accounting_client/models/common_model_scopes_post_inner_deserializer_request'
|
52
|
+
require 'merge_accounting_client/models/common_model_scopes_update_serializer'
|
39
53
|
require 'merge_accounting_client/models/company_info'
|
54
|
+
require 'merge_accounting_client/models/condition_schema'
|
55
|
+
require 'merge_accounting_client/models/condition_type_enum'
|
40
56
|
require 'merge_accounting_client/models/contact'
|
57
|
+
require 'merge_accounting_client/models/contact_endpoint_request'
|
58
|
+
require 'merge_accounting_client/models/contact_request'
|
59
|
+
require 'merge_accounting_client/models/contact_response'
|
41
60
|
require 'merge_accounting_client/models/country_enum'
|
42
61
|
require 'merge_accounting_client/models/credit_note'
|
43
62
|
require 'merge_accounting_client/models/credit_note_line_item'
|
@@ -46,11 +65,16 @@ require 'merge_accounting_client/models/currency_enum'
|
|
46
65
|
require 'merge_accounting_client/models/data_passthrough_request'
|
47
66
|
require 'merge_accounting_client/models/debug_mode_log'
|
48
67
|
require 'merge_accounting_client/models/debug_model_log_summary'
|
68
|
+
require 'merge_accounting_client/models/enabled_actions_enum'
|
49
69
|
require 'merge_accounting_client/models/encoding_enum'
|
50
70
|
require 'merge_accounting_client/models/end_user_details_request'
|
51
71
|
require 'merge_accounting_client/models/error_validation_problem'
|
52
72
|
require 'merge_accounting_client/models/expense'
|
73
|
+
require 'merge_accounting_client/models/expense_endpoint_request'
|
53
74
|
require 'merge_accounting_client/models/expense_line'
|
75
|
+
require 'merge_accounting_client/models/expense_line_request'
|
76
|
+
require 'merge_accounting_client/models/expense_request'
|
77
|
+
require 'merge_accounting_client/models/expense_response'
|
54
78
|
require 'merge_accounting_client/models/generate_remote_key_request'
|
55
79
|
require 'merge_accounting_client/models/income_statement'
|
56
80
|
require 'merge_accounting_client/models/invoice'
|
@@ -70,17 +94,24 @@ require 'merge_accounting_client/models/journal_entry_response'
|
|
70
94
|
require 'merge_accounting_client/models/journal_line'
|
71
95
|
require 'merge_accounting_client/models/journal_line_request'
|
72
96
|
require 'merge_accounting_client/models/link_token'
|
97
|
+
require 'merge_accounting_client/models/linked_account_condition'
|
98
|
+
require 'merge_accounting_client/models/linked_account_condition_request'
|
99
|
+
require 'merge_accounting_client/models/linked_account_selective_sync_configuration'
|
100
|
+
require 'merge_accounting_client/models/linked_account_selective_sync_configuration_list_request'
|
101
|
+
require 'merge_accounting_client/models/linked_account_selective_sync_configuration_request'
|
73
102
|
require 'merge_accounting_client/models/linked_account_status'
|
74
103
|
require 'merge_accounting_client/models/meta_response'
|
75
104
|
require 'merge_accounting_client/models/method_enum'
|
76
105
|
require 'merge_accounting_client/models/model_operation'
|
77
106
|
require 'merge_accounting_client/models/multipart_form_field_request'
|
107
|
+
require 'merge_accounting_client/models/operator_schema'
|
78
108
|
require 'merge_accounting_client/models/paginated_account_details_and_actions_list'
|
79
109
|
require 'merge_accounting_client/models/paginated_account_list'
|
80
110
|
require 'merge_accounting_client/models/paginated_accounting_attachment_list'
|
81
111
|
require 'merge_accounting_client/models/paginated_balance_sheet_list'
|
82
112
|
require 'merge_accounting_client/models/paginated_cash_flow_statement_list'
|
83
113
|
require 'merge_accounting_client/models/paginated_company_info_list'
|
114
|
+
require 'merge_accounting_client/models/paginated_condition_schema_list'
|
84
115
|
require 'merge_accounting_client/models/paginated_contact_list'
|
85
116
|
require 'merge_accounting_client/models/paginated_credit_note_list'
|
86
117
|
require 'merge_accounting_client/models/paginated_expense_list'
|
@@ -97,8 +128,16 @@ require 'merge_accounting_client/models/paginated_tracking_category_list'
|
|
97
128
|
require 'merge_accounting_client/models/paginated_transaction_list'
|
98
129
|
require 'merge_accounting_client/models/paginated_vendor_credit_list'
|
99
130
|
require 'merge_accounting_client/models/payment'
|
131
|
+
require 'merge_accounting_client/models/payment_endpoint_request'
|
132
|
+
require 'merge_accounting_client/models/payment_request'
|
133
|
+
require 'merge_accounting_client/models/payment_response'
|
134
|
+
require 'merge_accounting_client/models/posting_status_enum'
|
100
135
|
require 'merge_accounting_client/models/purchase_order'
|
136
|
+
require 'merge_accounting_client/models/purchase_order_endpoint_request'
|
101
137
|
require 'merge_accounting_client/models/purchase_order_line_item'
|
138
|
+
require 'merge_accounting_client/models/purchase_order_line_item_request'
|
139
|
+
require 'merge_accounting_client/models/purchase_order_request'
|
140
|
+
require 'merge_accounting_client/models/purchase_order_response'
|
102
141
|
require 'merge_accounting_client/models/purchase_order_status_enum'
|
103
142
|
require 'merge_accounting_client/models/remote_data'
|
104
143
|
require 'merge_accounting_client/models/remote_key'
|
@@ -107,7 +146,7 @@ require 'merge_accounting_client/models/remote_response'
|
|
107
146
|
require 'merge_accounting_client/models/report_item'
|
108
147
|
require 'merge_accounting_client/models/request_format_enum'
|
109
148
|
require 'merge_accounting_client/models/response_type_enum'
|
110
|
-
require 'merge_accounting_client/models/
|
149
|
+
require 'merge_accounting_client/models/selective_sync_configurations_usage_enum'
|
111
150
|
require 'merge_accounting_client/models/status7d1_enum'
|
112
151
|
require 'merge_accounting_client/models/sync_status'
|
113
152
|
require 'merge_accounting_client/models/sync_status_status_enum'
|
@@ -131,6 +170,7 @@ require 'merge_accounting_client/api/attachments_api'
|
|
131
170
|
require 'merge_accounting_client/api/available_actions_api'
|
132
171
|
require 'merge_accounting_client/api/balance_sheets_api'
|
133
172
|
require 'merge_accounting_client/api/cash_flow_statements_api'
|
173
|
+
require 'merge_accounting_client/api/common_model_scopes_api'
|
134
174
|
require 'merge_accounting_client/api/company_info_api'
|
135
175
|
require 'merge_accounting_client/api/contacts_api'
|
136
176
|
require 'merge_accounting_client/api/credit_notes_api'
|
@@ -150,6 +190,7 @@ require 'merge_accounting_client/api/payments_api'
|
|
150
190
|
require 'merge_accounting_client/api/phone_numbers_api'
|
151
191
|
require 'merge_accounting_client/api/purchase_orders_api'
|
152
192
|
require 'merge_accounting_client/api/regenerate_key_api'
|
193
|
+
require 'merge_accounting_client/api/selective_sync_api'
|
153
194
|
require 'merge_accounting_client/api/sync_status_api'
|
154
195
|
require 'merge_accounting_client/api/tax_rates_api'
|
155
196
|
require 'merge_accounting_client/api/tracking_categories_api'
|
@@ -32,10 +32,25 @@ describe 'AccountsApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for accounts_create
|
36
|
+
# Creates an `Account` object with the given values.
|
37
|
+
# @param x_account_token Token identifying the end user.
|
38
|
+
# @param account_endpoint_request
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
|
41
|
+
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
42
|
+
# @return [AccountResponse]
|
43
|
+
describe 'accounts_create test' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
35
49
|
# unit tests for accounts_list
|
36
50
|
# Returns a list of `Account` objects.
|
37
51
|
# @param x_account_token Token identifying the end user.
|
38
52
|
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [String] :company_id If provided, will only return accounts for this company.
|
39
54
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
55
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
56
|
# @option opts [String] :cursor The pagination cursor value.
|
@@ -44,8 +59,9 @@ describe 'AccountsApi' do
|
|
44
59
|
# @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
|
45
60
|
# @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
|
46
61
|
# @option opts [Integer] :page_size Number of results to return per page.
|
47
|
-
# @option opts [String] :remote_fields
|
62
|
+
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
48
63
|
# @option opts [String] :remote_id The API provider's ID for the given object.
|
64
|
+
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
49
65
|
# @return [PaginatedAccountList]
|
50
66
|
describe 'accounts_list test' do
|
51
67
|
it 'should work' do
|
@@ -53,13 +69,25 @@ describe 'AccountsApi' do
|
|
53
69
|
end
|
54
70
|
end
|
55
71
|
|
72
|
+
# unit tests for accounts_meta_post_retrieve
|
73
|
+
# Returns metadata for `Account` POSTs.
|
74
|
+
# @param x_account_token Token identifying the end user.
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @return [MetaResponse]
|
77
|
+
describe 'accounts_meta_post_retrieve test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
56
83
|
# unit tests for accounts_retrieve
|
57
84
|
# Returns an `Account` object with the given `id`.
|
58
85
|
# @param x_account_token Token identifying the end user.
|
59
86
|
# @param id
|
60
87
|
# @param [Hash] opts the optional parameters
|
61
88
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
62
|
-
# @option opts [String] :remote_fields
|
89
|
+
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
90
|
+
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
63
91
|
# @return [Account]
|
64
92
|
describe 'accounts_retrieve test' do
|
65
93
|
it 'should work' do
|
@@ -38,7 +38,8 @@ describe 'AddressesApi' do
|
|
38
38
|
# @param id
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
40
|
# @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
|
41
|
-
# @option opts [String] :remote_fields
|
41
|
+
# @option opts [String] :remote_fields Deprecated. Use show_enum_origins.
|
42
|
+
# @option opts [String] :show_enum_origins Which fields should be returned in non-normalized form.
|
42
43
|
# @return [Address]
|
43
44
|
describe 'addresses_retrieve test' do
|
44
45
|
it 'should work' do
|
@@ -32,10 +32,25 @@ describe 'AttachmentsApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for attachments_create
|
36
|
+
# Creates an `AccountingAttachment` object with the given values.
|
37
|
+
# @param x_account_token Token identifying the end user.
|
38
|
+
# @param accounting_attachment_endpoint_request
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Boolean] :is_debug_mode Whether to include debug fields (such as log file links) in the response.
|
41
|
+
# @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
|
42
|
+
# @return [AccountingAttachmentResponse]
|
43
|
+
describe 'attachments_create test' do
|
44
|
+
it 'should work' do
|
45
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
35
49
|
# unit tests for attachments_list
|
36
50
|
# Returns a list of `AccountingAttachment` objects.
|
37
51
|
# @param x_account_token Token identifying the end user.
|
38
52
|
# @param [Hash] opts the optional parameters
|
53
|
+
# @option opts [String] :company_id If provided, will only return accounting attachments for this company.
|
39
54
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
55
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
56
|
# @option opts [String] :cursor The pagination cursor value.
|
@@ -52,6 +67,17 @@ describe 'AttachmentsApi' do
|
|
52
67
|
end
|
53
68
|
end
|
54
69
|
|
70
|
+
# unit tests for attachments_meta_post_retrieve
|
71
|
+
# Returns metadata for `AccountingAttachment` POSTs.
|
72
|
+
# @param x_account_token Token identifying the end user.
|
73
|
+
# @param [Hash] opts the optional parameters
|
74
|
+
# @return [MetaResponse]
|
75
|
+
describe 'attachments_meta_post_retrieve test' do
|
76
|
+
it 'should work' do
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
55
81
|
# unit tests for attachments_retrieve
|
56
82
|
# Returns an `AccountingAttachment` object with the given `id`.
|
57
83
|
# @param x_account_token Token identifying the end user.
|
@@ -36,6 +36,7 @@ describe 'BalanceSheetsApi' do
|
|
36
36
|
# Returns a list of `BalanceSheet` objects.
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :company_id If provided, will only return balance sheets for this company.
|
39
40
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
41
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
42
|
# @option opts [String] :cursor The pagination cursor value.
|
@@ -36,6 +36,7 @@ describe 'CashFlowStatementsApi' do
|
|
36
36
|
# Returns a list of `CashFlowStatement` objects.
|
37
37
|
# @param x_account_token Token identifying the end user.
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :company_id If provided, will only return cash flow statements for this company.
|
39
40
|
# @option opts [Time] :created_after If provided, will only return objects created after this datetime.
|
40
41
|
# @option opts [Time] :created_before If provided, will only return objects created before this datetime.
|
41
42
|
# @option opts [String] :cursor The pagination cursor value.
|