beanie 0.2.0 → 0.2.2
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 +229 -12
- data/beanie.gemspec +1 -1
- data/docs/AddressBlock.md +8 -0
- data/docs/AddressBlockApi.md +175 -0
- data/docs/AddressBlockInput.md +8 -0
- data/docs/AddressBlocksApi.md +117 -0
- data/docs/BankAccount.md +3 -3
- data/docs/BankAccountApi.md +24 -3
- data/docs/BankAccountInput.md +2 -3
- data/docs/BankStatement.md +8 -0
- data/docs/BankStatementApi.md +175 -0
- data/docs/BankStatementData.md +8 -0
- data/docs/BankStatementDataInput.md +8 -0
- data/docs/BankStatementInput.md +8 -0
- data/docs/BankStatementsApi.md +117 -0
- data/docs/BeanieTask.md +8 -0
- data/docs/BeanieTaskApi.md +175 -0
- data/docs/BeanieTaskInput.md +8 -0
- data/docs/BeanieTasksApi.md +117 -0
- data/docs/BillOfMaterial.md +8 -0
- data/docs/BillOfMaterialApi.md +66 -0
- data/docs/BillOfMaterialInput.md +8 -0
- data/docs/BillOfMaterialsApi.md +175 -0
- data/docs/Billable.md +8 -0
- data/docs/BillableApi.md +175 -0
- data/docs/BillableInput.md +8 -0
- data/docs/BillablesApi.md +117 -0
- data/docs/BomItem.md +8 -0
- data/docs/BomItemInput.md +8 -0
- data/docs/CompaniesApi.md +63 -0
- data/docs/Company.md +8 -0
- data/docs/CompanyApi.md +63 -0
- data/docs/Customer.md +8 -0
- data/docs/CustomerAddress.md +8 -0
- data/docs/CustomerAddressApi.md +175 -0
- data/docs/CustomerAddressInput.md +8 -0
- data/docs/CustomerAddressesApi.md +117 -0
- data/docs/CustomerApi.md +175 -0
- data/docs/CustomerInput.md +8 -0
- data/docs/CustomerLedger.md +8 -0
- data/docs/CustomerLedgerInput.md +8 -0
- data/docs/CustomerNote.md +8 -0
- data/docs/CustomerNoteInput.md +8 -0
- data/docs/CustomersApi.md +117 -0
- data/docs/DeliveryNote.md +8 -0
- data/docs/DeliveryNoteApi.md +175 -0
- data/docs/DeliveryNoteInput.md +8 -0
- data/docs/DeliveryNoteItem.md +8 -0
- data/docs/DeliveryNoteItemInput.md +8 -0
- data/docs/DeliveryNotesApi.md +117 -0
- data/docs/Document.md +8 -0
- data/docs/DocumentApi.md +175 -0
- data/docs/DocumentInput.md +8 -0
- data/docs/DocumentsApi.md +117 -0
- data/docs/FixedAsset.md +8 -0
- data/docs/FixedAssetApi.md +175 -0
- data/docs/FixedAssetInput.md +8 -0
- data/docs/FixedAssetsApi.md +117 -0
- data/docs/Journal.md +8 -0
- data/docs/JournalApi.md +175 -0
- data/docs/JournalInput.md +8 -0
- data/docs/JournalItem.md +8 -0
- data/docs/JournalItemInput.md +8 -0
- data/docs/JournalsApi.md +117 -0
- data/docs/NominalAccount.md +8 -0
- data/docs/NominalAccountApi.md +175 -0
- data/docs/NominalAccountCategoriesApi.md +117 -0
- data/docs/NominalAccountCategory.md +8 -0
- data/docs/NominalAccountCategoryApi.md +175 -0
- data/docs/NominalAccountCategoryInput.md +8 -0
- data/docs/NominalAccountInput.md +8 -0
- data/docs/NominalAccountsApi.md +117 -0
- data/docs/Product.md +8 -0
- data/docs/ProductApi.md +175 -0
- data/docs/ProductCategoriesApi.md +117 -0
- data/docs/ProductCategory.md +8 -0
- data/docs/ProductCategoryApi.md +175 -0
- data/docs/ProductCategoryInput.md +8 -0
- data/docs/ProductInput.md +8 -0
- data/docs/ProductPrice.md +8 -0
- data/docs/ProductPriceApi.md +175 -0
- data/docs/ProductPriceInput.md +8 -0
- data/docs/ProductPricesApi.md +117 -0
- data/docs/ProductVariant.md +8 -0
- data/docs/ProductVariantApi.md +175 -0
- data/docs/ProductVariantInput.md +8 -0
- data/docs/ProductVariantsApi.md +117 -0
- data/docs/ProductionOrder.md +8 -0
- data/docs/ProductionOrderApi.md +175 -0
- data/docs/ProductionOrderInput.md +8 -0
- data/docs/ProductionOrderLog.md +8 -0
- data/docs/ProductionOrderLogInput.md +8 -0
- data/docs/ProductionOrdersApi.md +117 -0
- data/docs/ProductsApi.md +117 -0
- data/docs/PurchaseInvoice.md +8 -0
- data/docs/PurchaseInvoiceApi.md +175 -0
- data/docs/PurchaseInvoiceInput.md +8 -0
- data/docs/PurchaseInvoicesApi.md +117 -0
- data/docs/PurchaseOrder.md +8 -0
- data/docs/PurchaseOrderApi.md +175 -0
- data/docs/PurchaseOrderInput.md +8 -0
- data/docs/PurchaseOrderItem.md +8 -0
- data/docs/PurchaseOrderItemInput.md +8 -0
- data/docs/PurchaseOrdersApi.md +117 -0
- data/docs/ReceivedGoods.md +8 -0
- data/docs/ReceivedGoodsApi.md +175 -0
- data/docs/ReceivedGoodsInput.md +8 -0
- data/docs/SalesInvoice.md +8 -0
- data/docs/SalesInvoiceApi.md +175 -0
- data/docs/SalesInvoiceInput.md +8 -0
- data/docs/SalesInvoiceItem.md +8 -0
- data/docs/SalesInvoiceItemInput.md +8 -0
- data/docs/SalesInvoicesApi.md +117 -0
- data/docs/SalesOrder.md +8 -0
- data/docs/SalesOrderApi.md +175 -0
- data/docs/SalesOrderInput.md +8 -0
- data/docs/SalesOrderItem.md +8 -0
- data/docs/SalesOrderItemInput.md +8 -0
- data/docs/SalesOrdersApi.md +117 -0
- data/docs/ShippingCentre.md +8 -0
- data/docs/ShippingCentreApi.md +175 -0
- data/docs/ShippingCentreInput.md +8 -0
- data/docs/ShippingCentresApi.md +117 -0
- data/docs/StockAdjustment.md +8 -0
- data/docs/StockAdjustmentApi.md +175 -0
- data/docs/StockAdjustmentInput.md +8 -0
- data/docs/StockAdjustmentsApi.md +117 -0
- data/docs/StockCategoriesApi.md +117 -0
- data/docs/StockCategory.md +8 -0
- data/docs/StockCategoryApi.md +175 -0
- data/docs/StockCategoryInput.md +8 -0
- data/docs/StockImage.md +8 -0
- data/docs/StockImageApi.md +175 -0
- data/docs/StockImageInput.md +8 -0
- data/docs/StockImagesApi.md +117 -0
- data/docs/StockItem.md +8 -0
- data/docs/StockItemApi.md +175 -0
- data/docs/StockItemInput.md +8 -0
- data/docs/StockItemsApi.md +117 -0
- data/docs/StockLocation.md +8 -0
- data/docs/StockLocationApi.md +175 -0
- data/docs/StockLocationInput.md +8 -0
- data/docs/StockLocationsApi.md +117 -0
- data/docs/StockSupplier.md +8 -0
- data/docs/StockSupplierApi.md +175 -0
- data/docs/StockSupplierInput.md +8 -0
- data/docs/StockSuppliersApi.md +117 -0
- data/docs/Supplier.md +8 -0
- data/docs/SupplierAddress.md +8 -0
- data/docs/SupplierAddressApi.md +175 -0
- data/docs/SupplierAddressInput.md +8 -0
- data/docs/SupplierAddressesApi.md +117 -0
- data/docs/SupplierApi.md +175 -0
- data/docs/SupplierInput.md +8 -0
- data/docs/SupplierNote.md +8 -0
- data/docs/SupplierNoteInput.md +8 -0
- data/docs/SuppliersApi.md +117 -0
- data/docs/VatRecord.md +8 -0
- data/docs/VatRecordApi.md +175 -0
- data/docs/VatRecordInput.md +9 -0
- data/docs/VatRecordsApi.md +117 -0
- data/docs/VatReturn.md +8 -0
- data/docs/VatReturnApi.md +175 -0
- data/docs/VatReturnInput.md +8 -0
- data/docs/VatReturnsApi.md +117 -0
- data/docs/WorkCentre.md +8 -0
- data/docs/WorkCentreApi.md +175 -0
- data/docs/WorkCentreGroup.md +8 -0
- data/docs/WorkCentreGroupApi.md +175 -0
- data/docs/WorkCentreGroupInput.md +8 -0
- data/docs/WorkCentreGroupsApi.md +117 -0
- data/docs/WorkCentreInput.md +8 -0
- data/docs/WorkCentresApi.md +117 -0
- data/lib/beanie.rb +135 -3
- data/lib/beanie/api/address_block_api.rb +183 -0
- data/lib/beanie/api/bank_account_api.rb +4 -4
- data/lib/beanie/api/bank_statement_api.rb +183 -0
- data/lib/beanie/api/beanie_task_api.rb +183 -0
- data/lib/beanie/api/bill_of_materials_api.rb +183 -0
- data/lib/beanie/api/billable_api.rb +183 -0
- data/lib/beanie/api/company_api.rb +77 -0
- data/lib/beanie/api/customer_address_api.rb +183 -0
- data/lib/beanie/api/customer_api.rb +183 -0
- data/lib/beanie/api/delivery_note_api.rb +183 -0
- data/lib/beanie/api/document_api.rb +183 -0
- data/lib/beanie/api/fixed_asset_api.rb +183 -0
- data/lib/beanie/api/journal_api.rb +183 -0
- data/lib/beanie/api/nominal_account_api.rb +183 -0
- data/lib/beanie/api/nominal_account_category_api.rb +183 -0
- data/lib/beanie/api/product_api.rb +183 -0
- data/lib/beanie/api/product_category_api.rb +183 -0
- data/lib/beanie/api/product_price_api.rb +183 -0
- data/lib/beanie/api/product_variant_api.rb +183 -0
- data/lib/beanie/api/production_order_api.rb +183 -0
- data/lib/beanie/api/purchase_invoice_api.rb +183 -0
- data/lib/beanie/api/purchase_order_api.rb +183 -0
- data/lib/beanie/api/received_goods_api.rb +183 -0
- data/lib/beanie/api/sales_invoice_api.rb +183 -0
- data/lib/beanie/api/sales_order_api.rb +183 -0
- data/lib/beanie/api/shipping_centre_api.rb +183 -0
- data/lib/beanie/api/stock_adjustment_api.rb +183 -0
- data/lib/beanie/api/stock_category_api.rb +183 -0
- data/lib/beanie/api/stock_image_api.rb +183 -0
- data/lib/beanie/api/stock_item_api.rb +183 -0
- data/lib/beanie/api/stock_location_api.rb +183 -0
- data/lib/beanie/api/stock_supplier_api.rb +183 -0
- data/lib/beanie/api/supplier_address_api.rb +183 -0
- data/lib/beanie/api/supplier_api.rb +183 -0
- data/lib/beanie/api/vat_record_api.rb +183 -0
- data/lib/beanie/api/vat_return_api.rb +183 -0
- data/lib/beanie/api/work_centre_api.rb +183 -0
- data/lib/beanie/api/work_centre_group_api.rb +183 -0
- data/lib/beanie/api_client.rb +3 -2
- data/lib/beanie/api_error.rb +1 -1
- data/lib/beanie/configuration.rb +8 -1
- data/lib/beanie/models/address_block.rb +188 -0
- data/lib/beanie/models/address_block_input.rb +188 -0
- data/lib/beanie/models/bank_account.rb +34 -35
- data/lib/beanie/models/bank_account_input.rb +23 -31
- data/lib/beanie/models/bank_statement.rb +188 -0
- data/lib/beanie/models/bank_statement_data.rb +188 -0
- data/lib/beanie/models/bank_statement_data_input.rb +188 -0
- data/lib/beanie/models/bank_statement_input.rb +188 -0
- data/lib/beanie/models/beanie_task.rb +188 -0
- data/lib/beanie/models/beanie_task_input.rb +188 -0
- data/lib/beanie/models/bill_of_material.rb +188 -0
- data/lib/beanie/models/bill_of_material_input.rb +188 -0
- data/lib/beanie/models/billable.rb +188 -0
- data/lib/beanie/models/billable_input.rb +188 -0
- data/lib/beanie/models/bom_item.rb +188 -0
- data/lib/beanie/models/bom_item_input.rb +188 -0
- data/lib/beanie/models/company.rb +188 -0
- data/lib/beanie/models/customer.rb +188 -0
- data/lib/beanie/models/customer_address.rb +188 -0
- data/lib/beanie/models/customer_address_input.rb +188 -0
- data/lib/beanie/models/customer_input.rb +188 -0
- data/lib/beanie/models/customer_ledger.rb +188 -0
- data/lib/beanie/models/customer_ledger_input.rb +188 -0
- data/lib/beanie/models/customer_note.rb +188 -0
- data/lib/beanie/models/customer_note_input.rb +188 -0
- data/lib/beanie/models/delivery_note.rb +188 -0
- data/lib/beanie/models/delivery_note_input.rb +188 -0
- data/lib/beanie/models/delivery_note_item.rb +188 -0
- data/lib/beanie/models/delivery_note_item_input.rb +188 -0
- data/lib/beanie/models/document.rb +188 -0
- data/lib/beanie/models/document_input.rb +188 -0
- data/lib/beanie/models/error_model.rb +1 -1
- data/lib/beanie/models/fixed_asset.rb +188 -0
- data/lib/beanie/models/fixed_asset_input.rb +188 -0
- data/lib/beanie/models/journal.rb +188 -0
- data/lib/beanie/models/journal_input.rb +188 -0
- data/lib/beanie/models/journal_item.rb +188 -0
- data/lib/beanie/models/journal_item_input.rb +188 -0
- data/lib/beanie/models/nominal_account.rb +188 -0
- data/lib/beanie/models/nominal_account_category.rb +188 -0
- data/lib/beanie/models/nominal_account_category_input.rb +188 -0
- data/lib/beanie/models/nominal_account_input.rb +188 -0
- data/lib/beanie/models/product.rb +188 -0
- data/lib/beanie/models/product_category.rb +188 -0
- data/lib/beanie/models/product_category_input.rb +188 -0
- data/lib/beanie/models/product_input.rb +188 -0
- data/lib/beanie/models/product_price.rb +188 -0
- data/lib/beanie/models/product_price_input.rb +188 -0
- data/lib/beanie/models/product_variant.rb +188 -0
- data/lib/beanie/models/product_variant_input.rb +188 -0
- data/lib/beanie/models/production_order.rb +188 -0
- data/lib/beanie/models/production_order_input.rb +188 -0
- data/lib/beanie/models/production_order_log.rb +188 -0
- data/lib/beanie/models/production_order_log_input.rb +188 -0
- data/lib/beanie/models/purchase_invoice.rb +188 -0
- data/lib/beanie/models/purchase_invoice_input.rb +188 -0
- data/lib/beanie/models/purchase_order.rb +188 -0
- data/lib/beanie/models/purchase_order_input.rb +188 -0
- data/lib/beanie/models/purchase_order_item.rb +188 -0
- data/lib/beanie/models/purchase_order_item_input.rb +188 -0
- data/lib/beanie/models/received_goods.rb +188 -0
- data/lib/beanie/models/received_goods_input.rb +188 -0
- data/lib/beanie/models/sales_invoice.rb +188 -0
- data/lib/beanie/models/sales_invoice_input.rb +188 -0
- data/lib/beanie/models/sales_invoice_item.rb +188 -0
- data/lib/beanie/models/sales_invoice_item_input.rb +188 -0
- data/lib/beanie/models/sales_order.rb +188 -0
- data/lib/beanie/models/sales_order_input.rb +188 -0
- data/lib/beanie/models/sales_order_item.rb +188 -0
- data/lib/beanie/models/sales_order_item_input.rb +188 -0
- data/lib/beanie/models/shipping_centre.rb +188 -0
- data/lib/beanie/models/shipping_centre_input.rb +188 -0
- data/lib/beanie/models/stock_adjustment.rb +188 -0
- data/lib/beanie/models/stock_adjustment_input.rb +188 -0
- data/lib/beanie/models/stock_category.rb +188 -0
- data/lib/beanie/models/stock_category_input.rb +188 -0
- data/lib/beanie/models/stock_image.rb +188 -0
- data/lib/beanie/models/stock_image_input.rb +188 -0
- data/lib/beanie/models/stock_item.rb +188 -0
- data/lib/beanie/models/stock_item_input.rb +188 -0
- data/lib/beanie/models/stock_location.rb +188 -0
- data/lib/beanie/models/stock_location_input.rb +188 -0
- data/lib/beanie/models/stock_supplier.rb +188 -0
- data/lib/beanie/models/stock_supplier_input.rb +188 -0
- data/lib/beanie/models/supplier.rb +188 -0
- data/lib/beanie/models/supplier_address.rb +188 -0
- data/lib/beanie/models/supplier_address_input.rb +188 -0
- data/lib/beanie/models/supplier_input.rb +188 -0
- data/lib/beanie/models/supplier_note.rb +188 -0
- data/lib/beanie/models/supplier_note_input.rb +188 -0
- data/lib/beanie/models/vat_record.rb +188 -0
- data/lib/beanie/models/vat_record_input.rb +202 -0
- data/lib/beanie/models/vat_return.rb +188 -0
- data/lib/beanie/models/vat_return_input.rb +188 -0
- data/lib/beanie/models/work_centre.rb +188 -0
- data/lib/beanie/models/work_centre_group.rb +188 -0
- data/lib/beanie/models/work_centre_group_input.rb +188 -0
- data/lib/beanie/models/work_centre_input.rb +188 -0
- data/lib/beanie/version.rb +2 -2
- data/spec/api/address_block_api_spec.rb +71 -0
- data/spec/api/bank_account_api_spec.rb +1 -1
- data/spec/api/bank_statement_api_spec.rb +71 -0
- data/spec/api/beanie_task_api_spec.rb +71 -0
- data/spec/api/bill_of_materials_api_spec.rb +71 -0
- data/spec/api/billable_api_spec.rb +71 -0
- data/spec/api/company_api_spec.rb +47 -0
- data/spec/api/customer_address_api_spec.rb +71 -0
- data/spec/api/customer_api_spec.rb +71 -0
- data/spec/api/delivery_note_api_spec.rb +71 -0
- data/spec/api/document_api_spec.rb +71 -0
- data/spec/api/fixed_asset_api_spec.rb +71 -0
- data/spec/api/journal_api_spec.rb +71 -0
- data/spec/api/nominal_account_api_spec.rb +71 -0
- data/spec/api/nominal_account_category_api_spec.rb +71 -0
- data/spec/api/product_api_spec.rb +71 -0
- data/spec/api/product_category_api_spec.rb +71 -0
- data/spec/api/product_price_api_spec.rb +71 -0
- data/spec/api/product_variant_api_spec.rb +71 -0
- data/spec/api/production_order_api_spec.rb +71 -0
- data/spec/api/purchase_invoice_api_spec.rb +71 -0
- data/spec/api/purchase_order_api_spec.rb +71 -0
- data/spec/api/received_goods_api_spec.rb +71 -0
- data/spec/api/sales_invoice_api_spec.rb +71 -0
- data/spec/api/sales_order_api_spec.rb +71 -0
- data/spec/api/shipping_centre_api_spec.rb +71 -0
- data/spec/api/stock_adjustment_api_spec.rb +71 -0
- data/spec/api/stock_category_api_spec.rb +71 -0
- data/spec/api/stock_image_api_spec.rb +71 -0
- data/spec/api/stock_item_api_spec.rb +71 -0
- data/spec/api/stock_location_api_spec.rb +71 -0
- data/spec/api/stock_supplier_api_spec.rb +71 -0
- data/spec/api/supplier_address_api_spec.rb +71 -0
- data/spec/api/supplier_api_spec.rb +71 -0
- data/spec/api/vat_record_api_spec.rb +71 -0
- data/spec/api/vat_return_api_spec.rb +71 -0
- data/spec/api/work_centre_api_spec.rb +71 -0
- data/spec/api/work_centre_group_api_spec.rb +71 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/address_block_input_spec.rb +41 -0
- data/spec/models/address_block_spec.rb +41 -0
- data/spec/models/bank_account_input_spec.rb +3 -9
- data/spec/models/bank_account_spec.rb +9 -9
- data/spec/models/bank_statement_data_input_spec.rb +41 -0
- data/spec/models/bank_statement_data_spec.rb +41 -0
- data/spec/models/bank_statement_input_spec.rb +41 -0
- data/spec/models/bank_statement_spec.rb +41 -0
- data/spec/models/beanie_task_input_spec.rb +41 -0
- data/spec/models/beanie_task_spec.rb +41 -0
- data/spec/models/bill_of_material_input_spec.rb +41 -0
- data/spec/models/bill_of_material_spec.rb +41 -0
- data/spec/models/billable_input_spec.rb +41 -0
- data/spec/models/billable_spec.rb +41 -0
- data/spec/models/bom_item_input_spec.rb +41 -0
- data/spec/models/bom_item_spec.rb +41 -0
- data/spec/models/company_spec.rb +41 -0
- data/spec/models/customer_address_input_spec.rb +41 -0
- data/spec/models/customer_address_spec.rb +41 -0
- data/spec/models/customer_input_spec.rb +41 -0
- data/spec/models/customer_ledger_input_spec.rb +41 -0
- data/spec/models/customer_ledger_spec.rb +41 -0
- data/spec/models/customer_note_input_spec.rb +41 -0
- data/spec/models/customer_note_spec.rb +41 -0
- data/spec/models/customer_spec.rb +41 -0
- data/spec/models/delivery_note_input_spec.rb +41 -0
- data/spec/models/delivery_note_item_input_spec.rb +41 -0
- data/spec/models/delivery_note_item_spec.rb +41 -0
- data/spec/models/delivery_note_spec.rb +41 -0
- data/spec/models/document_input_spec.rb +41 -0
- data/spec/models/document_spec.rb +41 -0
- data/spec/models/error_model_spec.rb +1 -1
- data/spec/models/fixed_asset_input_spec.rb +41 -0
- data/spec/models/fixed_asset_spec.rb +41 -0
- data/spec/models/journal_input_spec.rb +41 -0
- data/spec/models/journal_item_input_spec.rb +41 -0
- data/spec/models/journal_item_spec.rb +41 -0
- data/spec/models/journal_spec.rb +41 -0
- data/spec/models/nominal_account_category_input_spec.rb +41 -0
- data/spec/models/nominal_account_category_spec.rb +41 -0
- data/spec/models/nominal_account_input_spec.rb +41 -0
- data/spec/models/nominal_account_spec.rb +41 -0
- data/spec/models/product_category_input_spec.rb +41 -0
- data/spec/models/product_category_spec.rb +41 -0
- data/spec/models/product_input_spec.rb +41 -0
- data/spec/models/product_price_input_spec.rb +41 -0
- data/spec/models/product_price_spec.rb +41 -0
- data/spec/models/product_spec.rb +41 -0
- data/spec/models/product_variant_input_spec.rb +41 -0
- data/spec/models/product_variant_spec.rb +41 -0
- data/spec/models/production_order_input_spec.rb +41 -0
- data/spec/models/production_order_log_input_spec.rb +41 -0
- data/spec/models/production_order_log_spec.rb +41 -0
- data/spec/models/production_order_spec.rb +41 -0
- data/spec/models/purchase_invoice_input_spec.rb +41 -0
- data/spec/models/purchase_invoice_spec.rb +41 -0
- data/spec/models/purchase_order_input_spec.rb +41 -0
- data/spec/models/purchase_order_item_input_spec.rb +41 -0
- data/spec/models/purchase_order_item_spec.rb +41 -0
- data/spec/models/purchase_order_spec.rb +41 -0
- data/spec/models/received_goods_input_spec.rb +41 -0
- data/spec/models/received_goods_spec.rb +41 -0
- data/spec/models/sales_invoice_input_spec.rb +41 -0
- data/spec/models/sales_invoice_item_input_spec.rb +41 -0
- data/spec/models/sales_invoice_item_spec.rb +41 -0
- data/spec/models/sales_invoice_spec.rb +41 -0
- data/spec/models/sales_order_input_spec.rb +41 -0
- data/spec/models/sales_order_item_input_spec.rb +41 -0
- data/spec/models/sales_order_item_spec.rb +41 -0
- data/spec/models/sales_order_spec.rb +41 -0
- data/spec/models/shipping_centre_input_spec.rb +41 -0
- data/spec/models/shipping_centre_spec.rb +41 -0
- data/spec/models/stock_adjustment_input_spec.rb +41 -0
- data/spec/models/stock_adjustment_spec.rb +41 -0
- data/spec/models/stock_category_input_spec.rb +41 -0
- data/spec/models/stock_category_spec.rb +41 -0
- data/spec/models/stock_image_input_spec.rb +41 -0
- data/spec/models/stock_image_spec.rb +41 -0
- data/spec/models/stock_item_input_spec.rb +41 -0
- data/spec/models/stock_item_spec.rb +41 -0
- data/spec/models/stock_location_input_spec.rb +41 -0
- data/spec/models/stock_location_spec.rb +41 -0
- data/spec/models/stock_supplier_input_spec.rb +41 -0
- data/spec/models/stock_supplier_spec.rb +41 -0
- data/spec/models/supplier_address_input_spec.rb +41 -0
- data/spec/models/supplier_address_spec.rb +41 -0
- data/spec/models/supplier_input_spec.rb +41 -0
- data/spec/models/supplier_note_input_spec.rb +41 -0
- data/spec/models/supplier_note_spec.rb +41 -0
- data/spec/models/supplier_spec.rb +41 -0
- data/spec/models/vat_record_input_spec.rb +47 -0
- data/spec/models/vat_record_spec.rb +41 -0
- data/spec/models/vat_return_input_spec.rb +41 -0
- data/spec/models/vat_return_spec.rb +41 -0
- data/spec/models/work_centre_group_input_spec.rb +41 -0
- data/spec/models/work_centre_group_spec.rb +41 -0
- data/spec/models/work_centre_input_spec.rb +41 -0
- data/spec/models/work_centre_spec.rb +41 -0
- data/spec/spec_helper.rb +1 -1
- metadata +565 -1
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Beanie ERP API
|
|
3
|
+
|
|
4
|
+
#An API specification for interacting with the Beanie ERP system
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 0.2
|
|
7
|
+
Contact: dev@bean.ie
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.0-SNAPSHOT
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module Beanie
|
|
16
|
+
class AddressBlockInput
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
19
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
20
|
+
def self.attribute_map
|
|
21
|
+
{
|
|
22
|
+
:'id' => :'id'
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Attribute type mapping.
|
|
27
|
+
def self.swagger_types
|
|
28
|
+
{
|
|
29
|
+
:'id' => :'Integer'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Initializes the object
|
|
34
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
35
|
+
def initialize(attributes = {})
|
|
36
|
+
return unless attributes.is_a?(Hash)
|
|
37
|
+
|
|
38
|
+
# convert string to symbol for hash key
|
|
39
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
40
|
+
|
|
41
|
+
if attributes.has_key?(:'id')
|
|
42
|
+
self.id = attributes[:'id']
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
47
|
+
# @return Array for valid properties with the reasons
|
|
48
|
+
def list_invalid_properties
|
|
49
|
+
invalid_properties = Array.new
|
|
50
|
+
if @id.nil?
|
|
51
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
invalid_properties
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Check to see if the all the properties in the model are valid
|
|
58
|
+
# @return true if the model is valid
|
|
59
|
+
def valid?
|
|
60
|
+
return false if @id.nil?
|
|
61
|
+
true
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Checks equality by comparing each attribute.
|
|
65
|
+
# @param [Object] Object to be compared
|
|
66
|
+
def ==(o)
|
|
67
|
+
return true if self.equal?(o)
|
|
68
|
+
self.class == o.class &&
|
|
69
|
+
id == o.id
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# @see the `==` method
|
|
73
|
+
# @param [Object] Object to be compared
|
|
74
|
+
def eql?(o)
|
|
75
|
+
self == o
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Calculates hash code according to all attributes.
|
|
79
|
+
# @return [Fixnum] Hash code
|
|
80
|
+
def hash
|
|
81
|
+
[id].hash
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Builds the object from hash
|
|
85
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
86
|
+
# @return [Object] Returns the model itself
|
|
87
|
+
def build_from_hash(attributes)
|
|
88
|
+
return nil unless attributes.is_a?(Hash)
|
|
89
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
90
|
+
if type =~ /\AArray<(.*)>/i
|
|
91
|
+
# check to ensure the input is an array given that the the attribute
|
|
92
|
+
# is documented as an array but the input is not
|
|
93
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
94
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
95
|
+
end
|
|
96
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
97
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
98
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
self
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Deserializes the data based on type
|
|
105
|
+
# @param string type Data type
|
|
106
|
+
# @param string value Value to be deserialized
|
|
107
|
+
# @return [Object] Deserialized data
|
|
108
|
+
def _deserialize(type, value)
|
|
109
|
+
case type.to_sym
|
|
110
|
+
when :DateTime
|
|
111
|
+
DateTime.parse(value)
|
|
112
|
+
when :Date
|
|
113
|
+
Date.parse(value)
|
|
114
|
+
when :String
|
|
115
|
+
value.to_s
|
|
116
|
+
when :Integer
|
|
117
|
+
value.to_i
|
|
118
|
+
when :Float
|
|
119
|
+
value.to_f
|
|
120
|
+
when :BOOLEAN
|
|
121
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
122
|
+
true
|
|
123
|
+
else
|
|
124
|
+
false
|
|
125
|
+
end
|
|
126
|
+
when :Object
|
|
127
|
+
# generic object (usually a Hash), return directly
|
|
128
|
+
value
|
|
129
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
130
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
131
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
132
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
133
|
+
k_type = Regexp.last_match[:k_type]
|
|
134
|
+
v_type = Regexp.last_match[:v_type]
|
|
135
|
+
{}.tap do |hash|
|
|
136
|
+
value.each do |k, v|
|
|
137
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
else # model
|
|
141
|
+
temp_model = Beanie.const_get(type).new
|
|
142
|
+
temp_model.build_from_hash(value)
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Returns the string representation of the object
|
|
147
|
+
# @return [String] String presentation of the object
|
|
148
|
+
def to_s
|
|
149
|
+
to_hash.to_s
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
153
|
+
# @return [Hash] Returns the object in the form of hash
|
|
154
|
+
def to_body
|
|
155
|
+
to_hash
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Returns the object in the form of hash
|
|
159
|
+
# @return [Hash] Returns the object in the form of hash
|
|
160
|
+
def to_hash
|
|
161
|
+
hash = {}
|
|
162
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
163
|
+
value = self.send(attr)
|
|
164
|
+
next if value.nil?
|
|
165
|
+
hash[param] = _to_hash(value)
|
|
166
|
+
end
|
|
167
|
+
hash
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Outputs non-array value in the form of hash
|
|
171
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
172
|
+
# @param [Object] value Any valid value
|
|
173
|
+
# @return [Hash] Returns the value in the form of hash
|
|
174
|
+
def _to_hash(value)
|
|
175
|
+
if value.is_a?(Array)
|
|
176
|
+
value.compact.map { |v| _to_hash(v) }
|
|
177
|
+
elsif value.is_a?(Hash)
|
|
178
|
+
{}.tap do |hash|
|
|
179
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
180
|
+
end
|
|
181
|
+
elsif value.respond_to? :to_hash
|
|
182
|
+
value.to_hash
|
|
183
|
+
else
|
|
184
|
+
value
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#An API specification for interacting with the Beanie ERP system
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 0.
|
|
6
|
+
OpenAPI spec version: 0.2
|
|
7
7
|
Contact: dev@bean.ie
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
|
@@ -13,15 +13,12 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module Beanie
|
|
16
|
-
# Bank account information
|
|
17
16
|
class BankAccount
|
|
18
|
-
attr_accessor :id
|
|
19
|
-
|
|
20
17
|
attr_accessor :name
|
|
21
18
|
|
|
22
19
|
attr_accessor :bank_name
|
|
23
20
|
|
|
24
|
-
attr_accessor :
|
|
21
|
+
attr_accessor :currency_code
|
|
25
22
|
|
|
26
23
|
attr_accessor :swift
|
|
27
24
|
|
|
@@ -39,7 +36,7 @@ module Beanie
|
|
|
39
36
|
|
|
40
37
|
attr_accessor :zip_postcode
|
|
41
38
|
|
|
42
|
-
attr_accessor :
|
|
39
|
+
attr_accessor :country_name
|
|
43
40
|
|
|
44
41
|
attr_accessor :contact_name
|
|
45
42
|
|
|
@@ -49,13 +46,14 @@ module Beanie
|
|
|
49
46
|
|
|
50
47
|
attr_accessor :website
|
|
51
48
|
|
|
49
|
+
attr_accessor :id
|
|
50
|
+
|
|
52
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
53
52
|
def self.attribute_map
|
|
54
53
|
{
|
|
55
|
-
:'id' => :'id',
|
|
56
54
|
:'name' => :'name',
|
|
57
55
|
:'bank_name' => :'bank_name',
|
|
58
|
-
:'
|
|
56
|
+
:'currency_code' => :'currency_code',
|
|
59
57
|
:'swift' => :'swift',
|
|
60
58
|
:'iban' => :'iban',
|
|
61
59
|
:'address1' => :'address1',
|
|
@@ -64,21 +62,21 @@ module Beanie
|
|
|
64
62
|
:'city' => :'city',
|
|
65
63
|
:'state_county' => :'state_county',
|
|
66
64
|
:'zip_postcode' => :'zip_postcode',
|
|
67
|
-
:'
|
|
65
|
+
:'country_name' => :'country_name',
|
|
68
66
|
:'contact_name' => :'contact_name',
|
|
69
67
|
:'phone' => :'phone',
|
|
70
68
|
:'email' => :'email',
|
|
71
|
-
:'website' => :'website'
|
|
69
|
+
:'website' => :'website',
|
|
70
|
+
:'id' => :'id'
|
|
72
71
|
}
|
|
73
72
|
end
|
|
74
73
|
|
|
75
74
|
# Attribute type mapping.
|
|
76
75
|
def self.swagger_types
|
|
77
76
|
{
|
|
78
|
-
:'id' => :'Integer',
|
|
79
77
|
:'name' => :'String',
|
|
80
78
|
:'bank_name' => :'String',
|
|
81
|
-
:'
|
|
79
|
+
:'currency_code' => :'String',
|
|
82
80
|
:'swift' => :'String',
|
|
83
81
|
:'iban' => :'String',
|
|
84
82
|
:'address1' => :'String',
|
|
@@ -87,11 +85,12 @@ module Beanie
|
|
|
87
85
|
:'city' => :'String',
|
|
88
86
|
:'state_county' => :'String',
|
|
89
87
|
:'zip_postcode' => :'String',
|
|
90
|
-
:'
|
|
88
|
+
:'country_name' => :'String',
|
|
91
89
|
:'contact_name' => :'String',
|
|
92
90
|
:'phone' => :'String',
|
|
93
91
|
:'email' => :'String',
|
|
94
|
-
:'website' => :'String'
|
|
92
|
+
:'website' => :'String',
|
|
93
|
+
:'id' => :'Integer'
|
|
95
94
|
}
|
|
96
95
|
end
|
|
97
96
|
|
|
@@ -103,10 +102,6 @@ module Beanie
|
|
|
103
102
|
# convert string to symbol for hash key
|
|
104
103
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
105
104
|
|
|
106
|
-
if attributes.has_key?(:'id')
|
|
107
|
-
self.id = attributes[:'id']
|
|
108
|
-
end
|
|
109
|
-
|
|
110
105
|
if attributes.has_key?(:'name')
|
|
111
106
|
self.name = attributes[:'name']
|
|
112
107
|
end
|
|
@@ -115,8 +110,8 @@ module Beanie
|
|
|
115
110
|
self.bank_name = attributes[:'bank_name']
|
|
116
111
|
end
|
|
117
112
|
|
|
118
|
-
if attributes.has_key?(:'
|
|
119
|
-
self.
|
|
113
|
+
if attributes.has_key?(:'currency_code')
|
|
114
|
+
self.currency_code = attributes[:'currency_code']
|
|
120
115
|
end
|
|
121
116
|
|
|
122
117
|
if attributes.has_key?(:'swift')
|
|
@@ -151,8 +146,8 @@ module Beanie
|
|
|
151
146
|
self.zip_postcode = attributes[:'zip_postcode']
|
|
152
147
|
end
|
|
153
148
|
|
|
154
|
-
if attributes.has_key?(:'
|
|
155
|
-
self.
|
|
149
|
+
if attributes.has_key?(:'country_name')
|
|
150
|
+
self.country_name = attributes[:'country_name']
|
|
156
151
|
end
|
|
157
152
|
|
|
158
153
|
if attributes.has_key?(:'contact_name')
|
|
@@ -170,16 +165,16 @@ module Beanie
|
|
|
170
165
|
if attributes.has_key?(:'website')
|
|
171
166
|
self.website = attributes[:'website']
|
|
172
167
|
end
|
|
168
|
+
|
|
169
|
+
if attributes.has_key?(:'id')
|
|
170
|
+
self.id = attributes[:'id']
|
|
171
|
+
end
|
|
173
172
|
end
|
|
174
173
|
|
|
175
174
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
176
175
|
# @return Array for valid properties with the reasons
|
|
177
176
|
def list_invalid_properties
|
|
178
177
|
invalid_properties = Array.new
|
|
179
|
-
if @id.nil?
|
|
180
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
181
|
-
end
|
|
182
|
-
|
|
183
178
|
if @name.nil?
|
|
184
179
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
185
180
|
end
|
|
@@ -188,8 +183,8 @@ module Beanie
|
|
|
188
183
|
invalid_properties.push('invalid value for "bank_name", bank_name cannot be nil.')
|
|
189
184
|
end
|
|
190
185
|
|
|
191
|
-
if @
|
|
192
|
-
invalid_properties.push('invalid value for "
|
|
186
|
+
if @currency_code.nil?
|
|
187
|
+
invalid_properties.push('invalid value for "currency_code", currency_code cannot be nil.')
|
|
193
188
|
end
|
|
194
189
|
|
|
195
190
|
if @swift.nil?
|
|
@@ -200,18 +195,22 @@ module Beanie
|
|
|
200
195
|
invalid_properties.push('invalid value for "iban", iban cannot be nil.')
|
|
201
196
|
end
|
|
202
197
|
|
|
198
|
+
if @country_name.nil?
|
|
199
|
+
invalid_properties.push('invalid value for "country_name", country_name cannot be nil.')
|
|
200
|
+
end
|
|
201
|
+
|
|
203
202
|
invalid_properties
|
|
204
203
|
end
|
|
205
204
|
|
|
206
205
|
# Check to see if the all the properties in the model are valid
|
|
207
206
|
# @return true if the model is valid
|
|
208
207
|
def valid?
|
|
209
|
-
return false if @id.nil?
|
|
210
208
|
return false if @name.nil?
|
|
211
209
|
return false if @bank_name.nil?
|
|
212
|
-
return false if @
|
|
210
|
+
return false if @currency_code.nil?
|
|
213
211
|
return false if @swift.nil?
|
|
214
212
|
return false if @iban.nil?
|
|
213
|
+
return false if @country_name.nil?
|
|
215
214
|
true
|
|
216
215
|
end
|
|
217
216
|
|
|
@@ -220,10 +219,9 @@ module Beanie
|
|
|
220
219
|
def ==(o)
|
|
221
220
|
return true if self.equal?(o)
|
|
222
221
|
self.class == o.class &&
|
|
223
|
-
id == o.id &&
|
|
224
222
|
name == o.name &&
|
|
225
223
|
bank_name == o.bank_name &&
|
|
226
|
-
|
|
224
|
+
currency_code == o.currency_code &&
|
|
227
225
|
swift == o.swift &&
|
|
228
226
|
iban == o.iban &&
|
|
229
227
|
address1 == o.address1 &&
|
|
@@ -232,11 +230,12 @@ module Beanie
|
|
|
232
230
|
city == o.city &&
|
|
233
231
|
state_county == o.state_county &&
|
|
234
232
|
zip_postcode == o.zip_postcode &&
|
|
235
|
-
|
|
233
|
+
country_name == o.country_name &&
|
|
236
234
|
contact_name == o.contact_name &&
|
|
237
235
|
phone == o.phone &&
|
|
238
236
|
email == o.email &&
|
|
239
|
-
website == o.website
|
|
237
|
+
website == o.website &&
|
|
238
|
+
id == o.id
|
|
240
239
|
end
|
|
241
240
|
|
|
242
241
|
# @see the `==` method
|
|
@@ -248,7 +247,7 @@ module Beanie
|
|
|
248
247
|
# Calculates hash code according to all attributes.
|
|
249
248
|
# @return [Fixnum] Hash code
|
|
250
249
|
def hash
|
|
251
|
-
[
|
|
250
|
+
[name, bank_name, currency_code, swift, iban, address1, address2, address3, city, state_county, zip_postcode, country_name, contact_name, phone, email, website, id].hash
|
|
252
251
|
end
|
|
253
252
|
|
|
254
253
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#An API specification for interacting with the Beanie ERP system
|
|
5
5
|
|
|
6
|
-
OpenAPI spec version: 0.
|
|
6
|
+
OpenAPI spec version: 0.2
|
|
7
7
|
Contact: dev@bean.ie
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
9
|
Swagger Codegen version: 2.4.0-SNAPSHOT
|
|
@@ -13,14 +13,13 @@ Swagger Codegen version: 2.4.0-SNAPSHOT
|
|
|
13
13
|
require 'date'
|
|
14
14
|
|
|
15
15
|
module Beanie
|
|
16
|
+
# Bank account information
|
|
16
17
|
class BankAccountInput
|
|
17
|
-
attr_accessor :id
|
|
18
|
-
|
|
19
18
|
attr_accessor :name
|
|
20
19
|
|
|
21
20
|
attr_accessor :bank_name
|
|
22
21
|
|
|
23
|
-
attr_accessor :
|
|
22
|
+
attr_accessor :currency_code
|
|
24
23
|
|
|
25
24
|
attr_accessor :swift
|
|
26
25
|
|
|
@@ -38,7 +37,7 @@ module Beanie
|
|
|
38
37
|
|
|
39
38
|
attr_accessor :zip_postcode
|
|
40
39
|
|
|
41
|
-
attr_accessor :
|
|
40
|
+
attr_accessor :country_name
|
|
42
41
|
|
|
43
42
|
attr_accessor :contact_name
|
|
44
43
|
|
|
@@ -51,10 +50,9 @@ module Beanie
|
|
|
51
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
52
51
|
def self.attribute_map
|
|
53
52
|
{
|
|
54
|
-
:'id' => :'id',
|
|
55
53
|
:'name' => :'name',
|
|
56
54
|
:'bank_name' => :'bank_name',
|
|
57
|
-
:'
|
|
55
|
+
:'currency_code' => :'currency_code',
|
|
58
56
|
:'swift' => :'swift',
|
|
59
57
|
:'iban' => :'iban',
|
|
60
58
|
:'address1' => :'address1',
|
|
@@ -63,7 +61,7 @@ module Beanie
|
|
|
63
61
|
:'city' => :'city',
|
|
64
62
|
:'state_county' => :'state_county',
|
|
65
63
|
:'zip_postcode' => :'zip_postcode',
|
|
66
|
-
:'
|
|
64
|
+
:'country_name' => :'country_name',
|
|
67
65
|
:'contact_name' => :'contact_name',
|
|
68
66
|
:'phone' => :'phone',
|
|
69
67
|
:'email' => :'email',
|
|
@@ -74,10 +72,9 @@ module Beanie
|
|
|
74
72
|
# Attribute type mapping.
|
|
75
73
|
def self.swagger_types
|
|
76
74
|
{
|
|
77
|
-
:'id' => :'Integer',
|
|
78
75
|
:'name' => :'String',
|
|
79
76
|
:'bank_name' => :'String',
|
|
80
|
-
:'
|
|
77
|
+
:'currency_code' => :'String',
|
|
81
78
|
:'swift' => :'String',
|
|
82
79
|
:'iban' => :'String',
|
|
83
80
|
:'address1' => :'String',
|
|
@@ -86,7 +83,7 @@ module Beanie
|
|
|
86
83
|
:'city' => :'String',
|
|
87
84
|
:'state_county' => :'String',
|
|
88
85
|
:'zip_postcode' => :'String',
|
|
89
|
-
:'
|
|
86
|
+
:'country_name' => :'String',
|
|
90
87
|
:'contact_name' => :'String',
|
|
91
88
|
:'phone' => :'String',
|
|
92
89
|
:'email' => :'String',
|
|
@@ -102,10 +99,6 @@ module Beanie
|
|
|
102
99
|
# convert string to symbol for hash key
|
|
103
100
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
104
101
|
|
|
105
|
-
if attributes.has_key?(:'id')
|
|
106
|
-
self.id = attributes[:'id']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
102
|
if attributes.has_key?(:'name')
|
|
110
103
|
self.name = attributes[:'name']
|
|
111
104
|
end
|
|
@@ -114,8 +107,8 @@ module Beanie
|
|
|
114
107
|
self.bank_name = attributes[:'bank_name']
|
|
115
108
|
end
|
|
116
109
|
|
|
117
|
-
if attributes.has_key?(:'
|
|
118
|
-
self.
|
|
110
|
+
if attributes.has_key?(:'currency_code')
|
|
111
|
+
self.currency_code = attributes[:'currency_code']
|
|
119
112
|
end
|
|
120
113
|
|
|
121
114
|
if attributes.has_key?(:'swift')
|
|
@@ -150,8 +143,8 @@ module Beanie
|
|
|
150
143
|
self.zip_postcode = attributes[:'zip_postcode']
|
|
151
144
|
end
|
|
152
145
|
|
|
153
|
-
if attributes.has_key?(:'
|
|
154
|
-
self.
|
|
146
|
+
if attributes.has_key?(:'country_name')
|
|
147
|
+
self.country_name = attributes[:'country_name']
|
|
155
148
|
end
|
|
156
149
|
|
|
157
150
|
if attributes.has_key?(:'contact_name')
|
|
@@ -175,10 +168,6 @@ module Beanie
|
|
|
175
168
|
# @return Array for valid properties with the reasons
|
|
176
169
|
def list_invalid_properties
|
|
177
170
|
invalid_properties = Array.new
|
|
178
|
-
if @id.nil?
|
|
179
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
180
|
-
end
|
|
181
|
-
|
|
182
171
|
if @name.nil?
|
|
183
172
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
184
173
|
end
|
|
@@ -187,8 +176,8 @@ module Beanie
|
|
|
187
176
|
invalid_properties.push('invalid value for "bank_name", bank_name cannot be nil.')
|
|
188
177
|
end
|
|
189
178
|
|
|
190
|
-
if @
|
|
191
|
-
invalid_properties.push('invalid value for "
|
|
179
|
+
if @currency_code.nil?
|
|
180
|
+
invalid_properties.push('invalid value for "currency_code", currency_code cannot be nil.')
|
|
192
181
|
end
|
|
193
182
|
|
|
194
183
|
if @swift.nil?
|
|
@@ -199,18 +188,22 @@ module Beanie
|
|
|
199
188
|
invalid_properties.push('invalid value for "iban", iban cannot be nil.')
|
|
200
189
|
end
|
|
201
190
|
|
|
191
|
+
if @country_name.nil?
|
|
192
|
+
invalid_properties.push('invalid value for "country_name", country_name cannot be nil.')
|
|
193
|
+
end
|
|
194
|
+
|
|
202
195
|
invalid_properties
|
|
203
196
|
end
|
|
204
197
|
|
|
205
198
|
# Check to see if the all the properties in the model are valid
|
|
206
199
|
# @return true if the model is valid
|
|
207
200
|
def valid?
|
|
208
|
-
return false if @id.nil?
|
|
209
201
|
return false if @name.nil?
|
|
210
202
|
return false if @bank_name.nil?
|
|
211
|
-
return false if @
|
|
203
|
+
return false if @currency_code.nil?
|
|
212
204
|
return false if @swift.nil?
|
|
213
205
|
return false if @iban.nil?
|
|
206
|
+
return false if @country_name.nil?
|
|
214
207
|
true
|
|
215
208
|
end
|
|
216
209
|
|
|
@@ -219,10 +212,9 @@ module Beanie
|
|
|
219
212
|
def ==(o)
|
|
220
213
|
return true if self.equal?(o)
|
|
221
214
|
self.class == o.class &&
|
|
222
|
-
id == o.id &&
|
|
223
215
|
name == o.name &&
|
|
224
216
|
bank_name == o.bank_name &&
|
|
225
|
-
|
|
217
|
+
currency_code == o.currency_code &&
|
|
226
218
|
swift == o.swift &&
|
|
227
219
|
iban == o.iban &&
|
|
228
220
|
address1 == o.address1 &&
|
|
@@ -231,7 +223,7 @@ module Beanie
|
|
|
231
223
|
city == o.city &&
|
|
232
224
|
state_county == o.state_county &&
|
|
233
225
|
zip_postcode == o.zip_postcode &&
|
|
234
|
-
|
|
226
|
+
country_name == o.country_name &&
|
|
235
227
|
contact_name == o.contact_name &&
|
|
236
228
|
phone == o.phone &&
|
|
237
229
|
email == o.email &&
|
|
@@ -247,7 +239,7 @@ module Beanie
|
|
|
247
239
|
# Calculates hash code according to all attributes.
|
|
248
240
|
# @return [Fixnum] Hash code
|
|
249
241
|
def hash
|
|
250
|
-
[
|
|
242
|
+
[name, bank_name, currency_code, swift, iban, address1, address2, address3, city, state_county, zip_postcode, country_name, contact_name, phone, email, website].hash
|
|
251
243
|
end
|
|
252
244
|
|
|
253
245
|
# Builds the object from hash
|