diff --git a/spec/swagger.yaml b/spec/swagger.yaml index 78055e4..50548b8 100644 --- a/spec/swagger.yaml +++ b/spec/swagger.yaml @@ -9,6 +9,21 @@ info: # CHANGE LOG + ### **2023-02-25** + + #### İrsaliye + + - İrsaliye üzerine `postal_code`, `company_city`, `company_district`, + `company_address`, `company_postal_code`, `order_no`, `order_date`, + `carrier_legal_name`, `carrier_tax_number`, `carrier_license_plate`, + `trailer_license_plates` ve `drivers_info` alanları eklendi. + + - İrsaliye için `download_e_documents`, `archive`, `unarchive`, `print`, + `update_print_info`, `mark_as_printed`, `link_invoices`, `unlink_invoices`, + `legalize`, `resend`, `pdf`, `ubl`, `e_despatch`, `preview`, `response_html` + ve `validate_e_despatch` endpointleri eklendi. + + ### **2023-02-20** #### Konaklama Vergisi @@ -10254,28 +10269,6 @@ paths: type: array items: $ref: '#/definitions/ShipmentDocument' - included: - type: array - items: - type: object - properties: - id: - type: string - maxLength: 255 - type: - type: string - maxLength: 255 - description: Type of the resource - enum: - - contacts - - tags - - stock_movements - - sales_invoices - - purchase_bills - attributes: - type: object - relationships: - type: object meta: $ref: '#/definitions/ListMeta' '400': @@ -10439,28 +10432,6 @@ paths: properties: data: $ref: '#/definitions/ShipmentDocument' - included: - type: array - items: - type: object - properties: - id: - type: string - maxLength: 255 - type: - type: string - maxLength: 255 - description: Type of the resource - enum: - - contacts - - tags - - stock_movements - - sales_invoices - - purchase_bills - attributes: - type: object - relationships: - type: object '400': description: Bad Request schema: @@ -10540,28 +10511,6 @@ paths: properties: data: $ref: '#/definitions/ShipmentDocument' - included: - type: array - items: - type: object - properties: - id: - type: string - maxLength: 255 - type: - type: string - maxLength: 255 - description: Type of the resource - enum: - - contacts - - tags - - stock_movements - - sales_invoices - - purchase_bills - attributes: - type: object - relationships: - type: object '400': description: Bad Request schema: @@ -10723,28 +10672,6 @@ paths: properties: data: $ref: '#/definitions/ShipmentDocument' - included: - type: array - items: - type: object - properties: - id: - type: string - maxLength: 255 - type: - type: string - maxLength: 255 - description: Type of the resource - enum: - - contacts - - tags - - stock_movements - - sales_invoices - - purchase_bills - attributes: - type: object - relationships: - type: object '400': description: Bad Request schema: @@ -10846,83 +10773,40 @@ paths: type: array items: $ref: '#/definitions/Error' - '/{company_id}/stock_movements': + '/{company_id}/shipment_documents/{id}/archive': parameters: - name: company_id type: integer description: Firma ID in: path required: true - get: + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + patch: tags: - - StockMovements - operationId: listStockMovements - summary: Index - description: >- - Tüm stok hareketlerini listeler. Her irsaliye oluşturulurken stok - hareketi de oluşturulur. Buna ilave olarak, irsaliyeli satış faturası - veya irsaliyeli alış faturası oluşturulduğunda stok takibi yapılan bir - ürün içeren her fatura kalemine karşılık otomatik olarak bir stok - hareketi oluşur. + - ShipmentDocuments + operationId: archiveShipmentDocument + summary: Archive + description: '' parameters: - - name: sort - type: string - in: query - description: 'Sortable parameters - *Available: id, date*' - default: id - - name: 'page[number]' - type: integer - in: query - description: Page Number - default: 1 - - name: 'page[size]' - type: integer - in: query - description: Page Size - default: 15 - minimum: 1 - maximum: 25 - name: include type: string in: query description: >- Response ile birlikte geri dönmesini istediğiniz ilişkiler - - *Available: product, source, contact, warehouse* + *Available: contact, stock_movements, stock_movements.product, tags, + invoices* responses: '200': - description: Stok hareketleri + description: İrsaliye schema: type: object properties: data: - type: array - items: - $ref: '#/definitions/StockMovement' - included: - type: array - items: - type: object - properties: - id: - type: string - maxLength: 255 - type: - type: string - maxLength: 255 - description: Type of the resource - enum: - - warehouses - - products - - shipment_documents - - sales_invoice_details - - purchase_bill_details - - contacts - attributes: - type: object - relationships: - type: object - meta: - $ref: '#/definitions/ListMeta' + $ref: '#/definitions/ShipmentDocument' '400': description: Bad Request schema: @@ -10968,18 +10852,23 @@ paths: type: array items: $ref: '#/definitions/Error' - '/{company_id}/stock_updates': + '/{company_id}/shipment_documents/{id}/unarchive': parameters: - name: company_id type: integer description: Firma ID in: path required: true - post: + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + patch: tags: - - StockUpdates - operationId: createStockUpdate - summary: Create + - ShipmentDocuments + operationId: unarchiveShipmentDocument + summary: Unarchive description: '' parameters: - name: include @@ -10987,84 +10876,1440 @@ paths: in: query description: >- Response ile birlikte geri dönmesini istediğiniz ilişkiler - - *Available: details, details.product, details.warehouse* - - name: stock_update_form + *Available: contact, stock_movements, stock_movements.product, tags, + invoices* + responses: + '200': + description: İrsaliye schema: type: object - required: - - data properties: data: - type: object - properties: - id: - type: string - maxLength: 255 - type: - type: string - maxLength: 255 - description: Type of the resource - enum: - - stock_updates - attributes: - $ref: '#/definitions/StockUpdateAttributes' - relationships: - type: object - properties: - details: - type: object - properties: - data: - type: array - items: - type: object - properties: - id: - type: string - maxLength: 255 - type: - type: string - maxLength: 255 - description: Type of the resource - enum: - - stock_update_details - attributes: - $ref: '#/definitions/StockUpdateDetailAttributes' - relationships: - type: object - properties: - product: - type: object - properties: - data: - type: object - properties: - id: - type: string - maxLength: 255 - type: - type: string - maxLength: 255 - description: Type of the resource - enum: - - products - warehouse: - type: object - properties: - data: - type: object - properties: - id: - type: string - maxLength: 255 - type: - type: string - maxLength: 255 - description: Type of the resource - enum: - - warehouses - in: body - required: true + $ref: '#/definitions/ShipmentDocument' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/print': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + get: + tags: + - ShipmentDocuments + operationId: printShipmentDocument + summary: Print + description: '' + responses: + '200': + description: İrsaliye PDF ya da stream + schema: + type: string + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/update_print_info': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + patch: + tags: + - ShipmentDocuments + operationId: updatePrintInfoShipmentDocument + summary: Update print info + description: '' + parameters: + - name: include + type: string + in: query + description: >- + Response ile birlikte geri dönmesini istediğiniz ilişkiler - + *Available: contact, stock_movements, stock_movements.product, tags, + invoices* + - name: shipment_documents_update_print_info + schema: + type: object + required: + - data + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - shipment_documents + attributes: + $ref: '#/definitions/ShipmentDocumentUpdatePrintInfoAttributes' + in: body + required: true + responses: + '200': + description: İrsaliye + schema: + type: object + properties: + data: + $ref: '#/definitions/ShipmentDocument' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/mark_as_printed': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + patch: + tags: + - ShipmentDocuments + operationId: markAsPrintedShipmentDocument + summary: Mark as printed + description: '' + parameters: + - name: include + type: string + in: query + description: >- + Response ile birlikte geri dönmesini istediğiniz ilişkiler - + *Available: contact, stock_movements, stock_movements.product, tags, + invoices* + - name: shipment_documents_mark_as_printed + schema: + type: object + required: + - data + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - shipment_documents + template_id: + type: integer + description: Yazdırma Şablonu ID + attributes: + $ref: '#/definitions/ShipmentDocumentMarkAsPrintedAttributes' + in: body + required: true + responses: + '200': + description: İrsaliye + schema: + type: object + properties: + data: + $ref: '#/definitions/ShipmentDocument' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/link_invoices': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + post: + tags: + - ShipmentDocuments + operationId: linkShipmentDocumentWithInvoices + summary: Link with invoices + description: '' + parameters: + - name: include + type: string + in: query + description: >- + Response ile birlikte geri dönmesini istediğiniz ilişkiler - + *Available: invoices* + - name: shipment_documents_link + schema: + type: object + required: + - data + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - shipment_documents + invoice_ids: + description: Eşleştirmek istediğiniz fatura ID'leri + type: array + items: + type: integer + invoice_type: + description: Fatura tipi + type: string + enum: + - purchase_bills + - sales_invoices + in: body + required: true + responses: + '201': + description: İrsaliye + schema: + type: object + properties: + data: + $ref: '#/definitions/ShipmentDocument' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/unlink_invoices': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + delete: + tags: + - ShipmentDocuments + operationId: unlinkShipmentDocumentWithInvoices + summary: Unlink with invoices + description: '' + parameters: + - name: include + type: string + in: query + description: >- + Response ile birlikte geri dönmesini istediğiniz ilişkiler - + *Available: invoices* + - name: shipment_documents_link + schema: + type: object + required: + - data + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - shipment_documents + invoice_ids: + description: Eşleştirmek istediğiniz fatura ID'leri + type: array + items: + type: integer + invoice_type: + description: Fatura tipi + type: string + enum: + - purchase_bills + - sales_invoices + in: body + required: true + responses: + '200': + description: İrsaliye + schema: + type: object + properties: + data: + $ref: '#/definitions/ShipmentDocument' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/e_despatch': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + get: + tags: + - ShipmentDocuments + operationId: showEDespatch + summary: Show E-Despatch + description: '' + responses: + '200': + description: E-İrsaliye + schema: + type: object + properties: + data: + $ref: '#/definitions/EDespatch' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/pdf': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + get: + tags: + - ShipmentDocuments + operationId: pdfEDespatch + summary: PDF E-Despatch + description: '' + parameters: + - name: in_place + type: boolean + in: query + description: >- + PDF'e yönlendirmek için true ya da PDF içeriğini JSON formatında + almak için false + default: false + responses: + '200': + description: E-İrsaliye + schema: + type: object + properties: + data: + $ref: '#/definitions/EDespatch' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/ubl': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + get: + tags: + - ShipmentDocuments + operationId: ublEDespatches + summary: UBL E-Despatches + description: '' + responses: + '200': + description: Zipped E-İrsaliye UBL + schema: + type: string + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/legalize': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + post: + tags: + - ShipmentDocuments + operationId: legalizeEDespatches + summary: Legalize E-Despatches + description: '' + responses: + '201': + description: E-İrsaliye + schema: + type: object + properties: + data: + $ref: '#/definitions/EDespatch' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/resend': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + patch: + tags: + - ShipmentDocuments + operationId: resendEDespatches + summary: Resend E-Despatches + description: '' + responses: + '201': + description: E-İrsaliye + schema: + type: object + properties: + data: + $ref: '#/definitions/EDespatch' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/preview': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + get: + tags: + - ShipmentDocuments + operationId: previewEDespatches + summary: Preview E-Despatches + description: '' + responses: + '200': + description: E-İrsaliye as PDF + schema: + type: string + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/response_html': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + get: + tags: + - ShipmentDocuments + operationId: responseHtmlEDespatch + summary: Response HTML E-Despatch + description: '' + parameters: + - name: in_place + type: boolean + in: query + description: >- + iFrame olarak almak için true ya da JSON içinde HTML formatında + almak için false + default: false + responses: + '200': + description: E-İrsaliye as HTML + schema: + type: string + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/{id}/validate_e_despatch': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + - name: id + type: integer + description: İrsaliye ID + in: path + required: true + post: + tags: + - ShipmentDocuments + operationId: validateEDespatch + summary: Validate E-Despatch HTML E-Despatch + description: '' + responses: + '200': + description: No content + schema: {} + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/shipment_documents/download_e_documents': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + get: + tags: + - ShipmentDocuments + operationId: downloadShipmentDocuments + summary: Download e-documents + description: '' + parameters: + - name: 'filter[flow_type]' + type: string + in: query + description: '' + - name: 'filter[invoice_status]' + type: string + in: query + description: '' + - name: 'filter[archived]' + type: boolean + in: query + description: '' + - name: sort + type: string + in: query + description: >- + Sortable parameters - *Available: id, issue_date, description, + inflow* + default: id + - name: 'page[number]' + type: integer + in: query + description: Page Number + default: 1 + - name: 'page[size]' + type: integer + in: query + description: Page Size + default: 15 + minimum: 1 + maximum: 25 + responses: + '200': + description: E-Documents Download URL + schema: + type: object + properties: + data: + $ref: '#/definitions/ShipmentDocumentDownloadEDocument' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/stock_movements': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + get: + tags: + - StockMovements + operationId: listStockMovements + summary: Index + description: >- + Tüm stok hareketlerini listeler. Her irsaliye oluşturulurken stok + hareketi de oluşturulur. Buna ilave olarak, irsaliyeli satış faturası + veya irsaliyeli alış faturası oluşturulduğunda stok takibi yapılan bir + ürün içeren her fatura kalemine karşılık otomatik olarak bir stok + hareketi oluşur. + parameters: + - name: sort + type: string + in: query + description: 'Sortable parameters - *Available: id, date*' + default: id + - name: 'page[number]' + type: integer + in: query + description: Page Number + default: 1 + - name: 'page[size]' + type: integer + in: query + description: Page Size + default: 15 + minimum: 1 + maximum: 25 + - name: include + type: string + in: query + description: >- + Response ile birlikte geri dönmesini istediğiniz ilişkiler - + *Available: product, source, contact, warehouse* + responses: + '200': + description: Stok hareketleri + schema: + type: object + properties: + data: + type: array + items: + $ref: '#/definitions/StockMovement' + included: + type: array + items: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - warehouses + - products + - shipment_documents + - sales_invoice_details + - purchase_bill_details + - contacts + attributes: + type: object + relationships: + type: object + meta: + $ref: '#/definitions/ListMeta' + '400': + description: Bad Request + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '401': + description: Unauthorized + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '403': + description: Forbidden + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '404': + description: Not Found + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '422': + description: Unprocessable Entity + schema: + type: object + properties: + errors: + type: array + items: + $ref: '#/definitions/Error' + '/{company_id}/stock_updates': + parameters: + - name: company_id + type: integer + description: Firma ID + in: path + required: true + post: + tags: + - StockUpdates + operationId: createStockUpdate + summary: Create + description: '' + parameters: + - name: include + type: string + in: query + description: >- + Response ile birlikte geri dönmesini istediğiniz ilişkiler - + *Available: details, details.product, details.warehouse* + - name: stock_update_form + schema: + type: object + required: + - data + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - stock_updates + attributes: + $ref: '#/definitions/StockUpdateAttributes' + relationships: + type: object + properties: + details: + type: object + properties: + data: + type: array + items: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - stock_update_details + attributes: + $ref: '#/definitions/StockUpdateDetailAttributes' + relationships: + type: object + properties: + product: + type: object + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - products + warehouse: + type: object + properties: + data: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - warehouses + in: body + required: true responses: '201': description: Stok güncelleme @@ -14376,6 +15621,44 @@ definitions: relationships: {} required: - attributes + EDespatchAttributes: + type: object + properties: + id: + type: string + readOnly: true + type: + type: string + readOnly: true + attributes: + type: object + properties: + uuid: + type: string + env_uuid: + type: string + gib_status_code: + type: string + despatch_no: + type: string + readOnly: true + EDespatch: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - EDespatch + attributes: + $ref: '#/definitions/EDespatchAttributes' + relationships: {} + required: + - attributes EDocumentCommonFormAttributes: type: object properties: @@ -16831,6 +18114,26 @@ definitions: type: string readOnly: false description: Adres + postal_code: + type: string + readOnly: false + description: Posta kodu + company_city: + type: string + readOnly: false + description: Şirket ili + company_district: + type: string + readOnly: false + description: Şirket ilçesi + company_address: + type: string + readOnly: false + description: Şirket adresi + company_postal_code: + type: string + readOnly: false + description: Şirket posta kodu issue_date: type: string format: date @@ -16841,6 +18144,47 @@ definitions: format: date-time readOnly: false description: Fiili sevk tarihi + order_no: + type: string + readOnly: false + description: Sipariş numarası + order_date: + type: string + format: date + readOnly: false + description: Sipariş tarihi + carrier_legal_name: + type: string + readOnly: false + description: Kargo firması ismi + carrier_tax_number: + type: string + readOnly: false + description: Kargo firması vergi numarası + carrier_license_plate: + type: string + readOnly: false + description: Kargo firması araç plakası + trailer_license_plates: + type: string + readOnly: false + description: Kargo römork araç plakaları + drivers_info: + type: array + items: + type: object + properties: + full_name: + type: string + description: Şöför adı + tckn: + type: string + description: TC kimlik numarası + passport_no: + type: string + description: Pasaport numarası + readOnly: false + description: Şöför bilgileri procurement_number: type: string readOnly: false @@ -16933,6 +18277,87 @@ definitions: - purchase_bills required: - attributes + ShipmentDocumentDownloadEDocumentAttributes: + type: object + properties: + result_url: + type: string + readOnly: true + jid: + type: string + readOnly: true + ShipmentDocumentDownloadEDocument: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - shipment_documents_download_e_document + attributes: + $ref: '#/definitions/ShipmentDocumentDownloadEDocumentAttributes' + relationships: {} + required: + - attributes + ShipmentDocumentMarkAsPrintedAttributes: + allOf: + - type: object + properties: + procurement_number: + description: İrsaliye Numarası + type: string + ShipmentDocumentMarkAsPrinted: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - shipment_documents + attributes: + $ref: '#/definitions/ShipmentDocumentMarkAsPrintedAttributes' + relationships: {} + required: + - attributes + ShipmentDocumentUpdatePrintInfoAttributes: + allOf: + - type: object + properties: + print_note: + description: Yazdırma notu + type: string + shipment_date: + description: İrsaliye tarihi + type: string + format: date-time + invoice_no: + description: Fatura ID + type: string + ShipmentDocumentUpdatePrintInfo: + type: object + properties: + id: + type: string + maxLength: 255 + type: + type: string + maxLength: 255 + description: Type of the resource + enum: + - shipment_documents + attributes: + $ref: '#/definitions/ShipmentDocumentUpdatePrintInfoAttributes' + relationships: {} + required: + - attributes StockMovementAttributes: type: object properties: