From 1117126f61cc800123d0621fb0e4726afc6c6501 Mon Sep 17 00:00:00 2001 From: SAJIDA SIDDIQUI <sajida.siddiqui@wisc.edu> Date: Mon, 6 Nov 2023 10:33:42 -0600 Subject: [PATCH] Upload New File --- post-alma-invoice_swagger.json | 358 +++++++++++++++++++++++++++++++++ 1 file changed, 358 insertions(+) create mode 100644 post-alma-invoice_swagger.json diff --git a/post-alma-invoice_swagger.json b/post-alma-invoice_swagger.json new file mode 100644 index 0000000..38c72a8 --- /dev/null +++ b/post-alma-invoice_swagger.json @@ -0,0 +1,358 @@ +{ + "swagger" : "2.0", + "info" : { + "description" : null, + "version" : "1.0.0", + "title" : null, + "termsOfService" : null, + "contact" : null, + "license" : null + }, + "host" : "api-na.hosted.exlibrisgroup.com", + "basePath" : "/almaws/v1/acq/invoices", + "schemes" : [ "https" ], + "paths" : { + "/{invoice_id}" : { + "post" : { + "tags" : [ "post-alma-invoice" ], + "summary" : null, + "description" : null, + "operationId" : "post-alma-invoice", + "produces" : [ "application/json" ], + "consumes" : [ "application/json" ], + "parameters" : [ { + "name" : "op", + "in" : "query", + "description" : null, + "required" : false, + "type" : "string" + }, { + "name" : "apikey", + "in" : "query", + "description" : null, + "required" : false, + "type" : "string" + }, { + "name" : "invoice_id", + "in" : "path", + "description" : null, + "required" : false, + "type" : "string" + } ], + "responses" : { + "200" : { + "description" : "successful operation", + "schema" : { + "$ref" : "#/definitions/post-alma-invoice" + } + } + } + } + } + }, + "definitions" : { + "post-alma-invoice##vendor" : { + "properties" : { + "value" : { + "type" : "string" + }, + "desc" : { + "type" : "string" + } + } + }, + "post-alma-invoice##currency" : { + "properties" : { + "value" : { + "type" : "string" + }, + "desc" : { + "type" : "string" + } + } + }, + "post-alma-invoice##owner" : { + "properties" : { + "value" : { + "type" : "string" + } + } + }, + "post-alma-invoice##payment##payment_status" : { + "properties" : { + "value" : { + "type" : "string" + }, + "desc" : { + "type" : "string" + } + } + }, + "post-alma-invoice##payment##voucher_currency" : { + "properties" : { + "value" : { + "type" : "string" + }, + "desc" : { + "type" : "string" + } + } + }, + "post-alma-invoice##payment" : { + "properties" : { + "prepaid" : { + "type" : "boolean" + }, + "internal_copy" : { + "type" : "boolean" + }, + "payment_status" : { + "$ref" : "#/definitions/post-alma-invoice##payment##payment_status" + }, + "voucher_date" : { + "type" : "string" + }, + "voucher_number" : { + "type" : "string" + }, + "voucher_amount" : { + "type" : "string" + }, + "voucher_currency" : { + "$ref" : "#/definitions/post-alma-invoice##payment##voucher_currency" + } + } + }, + "post-alma-invoice##payment_method" : { + "properties" : { + "value" : { + "type" : "string" + }, + "desc" : { + "type" : "string" + } + } + }, + "post-alma-invoice##creation_form" : { + "properties" : { + "value" : { + "type" : "string" + }, + "desc" : { + "type" : "string" + } + } + }, + "post-alma-invoice##invoice_status" : { + "properties" : { + "value" : { + "type" : "string" + }, + "desc" : { + "type" : "string" + } + } + }, + "post-alma-invoice##invoice_approval_status" : { + "properties" : { + "value" : { + "type" : "string" + }, + "desc" : { + "type" : "string" + } + } + }, + "post-alma-invoice##additional_charges" : { + "properties" : { + "shipment" : { + "type" : "number", + "format" : "double" + }, + "overhead" : { + "type" : "number", + "format" : "double" + }, + "insurance" : { + "type" : "number", + "format" : "double" + }, + "discount" : { + "type" : "number", + "format" : "double" + }, + "use_pro_rata" : { + "type" : "boolean" + } + } + }, + "post-alma-invoice##invoice_vat##type" : { + "properties" : { + "value" : { + "type" : "string" + }, + "desc" : { + "type" : "string" + } + } + }, + "post-alma-invoice##invoice_vat##vat_code" : { + "properties" : { + "value" : { + "type" : "string" + } + } + }, + "post-alma-invoice##invoice_vat" : { + "properties" : { + "percentage" : { + "type" : "number", + "format" : "double" + }, + "type" : { + "$ref" : "#/definitions/post-alma-invoice##invoice_vat##type" + }, + "report_tax" : { + "type" : "boolean" + }, + "vat_per_invoice_line" : { + "type" : "boolean" + }, + "vat_code" : { + "$ref" : "#/definitions/post-alma-invoice##invoice_vat##vat_code" + }, + "vat_amount" : { + "type" : "number", + "format" : "int32" + }, + "expended_from_fund" : { + "type" : "boolean" + } + } + }, + "post-alma-invoice##alert" : { + "properties" : { + "value" : { + "type" : "string" + }, + "desc" : { + "type" : "string" + } + } + }, + "post-alma-invoice##note" : { + "properties" : { + "content" : { + "type" : "string" + }, + "creation_date" : { + "type" : "string" + }, + "created_by" : { + "type" : "string" + } + } + }, + "post-alma-invoice##number_of_lines" : { + "properties" : { + "value" : { + "type" : "number", + "format" : "int32" + }, + "link" : { + "type" : "string" + } + } + }, + "post-alma-invoice" : { + "properties" : { + "id" : { + "type" : "string" + }, + "number" : { + "type" : "string" + }, + "vendor" : { + "$ref" : "#/definitions/post-alma-invoice##vendor" + }, + "currency" : { + "$ref" : "#/definitions/post-alma-invoice##currency" + }, + "owner" : { + "$ref" : "#/definitions/post-alma-invoice##owner" + }, + "payment" : { + "$ref" : "#/definitions/post-alma-invoice##payment" + }, + "invoice_date" : { + "type" : "string" + }, + "vendor_account" : { + "type" : "string" + }, + "total_amount" : { + "type" : "number", + "format" : "double" + }, + "total_invoice_lines_amount" : { + "type" : "number", + "format" : "double" + }, + "vendor_contact_person" : { + "type" : "string" + }, + "payment_method" : { + "$ref" : "#/definitions/post-alma-invoice##payment_method" + }, + "reference_number" : { + "type" : "string" + }, + "creation_form" : { + "$ref" : "#/definitions/post-alma-invoice##creation_form" + }, + "invoice_status" : { + "$ref" : "#/definitions/post-alma-invoice##invoice_status" + }, + "invoice_workflow_status" : { + "type" : "string" + }, + "invoice_approval_status" : { + "$ref" : "#/definitions/post-alma-invoice##invoice_approval_status" + }, + "approved_by" : { + "type" : "string" + }, + "approval_date" : { + "type" : "string" + }, + "additional_charges" : { + "$ref" : "#/definitions/post-alma-invoice##additional_charges" + }, + "invoice_vat" : { + "$ref" : "#/definitions/post-alma-invoice##invoice_vat" + }, + "explicit_ratio" : { + "type" : "string" + }, + "alert" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/post-alma-invoice##alert" + } + }, + "note" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/post-alma-invoice##note" + } + }, + "number_of_lines" : { + "$ref" : "#/definitions/post-alma-invoice##number_of_lines" + }, + "link" : { + "type" : "string" + } + } + } + } +} \ No newline at end of file -- GitLab