Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

objetivo
Esta API tem a finalidade de mostrar as informações das 20 primeiras ordens da paginação mandada ( caso não sege informada a paginação ela será 1 por padrão, e caso quantidade de ordens não seja informada ele fica como 20 por paginação) ou mostrar as \ informações de uma ordem em especificas
Esta API recebe os parâmetros da requisição enviada pela ccp/api/v2/purchaseOrderLines fazendo a primeira comunicação necessárias nos métodos e encaminhando o que foi solicitado por meio de parâmetros para ccp/rules/purchaseOrderLinesV2 para ser feito as devidas consultas utilizando as regras de negocio.

...

pi-query

RequisitoNenhum.

Descrição






Repassa o parâmetro do tipo de evento recebido pela API de comunicação para o script de negocio (ccp/rules/purchaseOrderLinesV2) chamando o métodopi-query-v2.

  • ccp/api/v2/purchaseOrderLinesV2: API de comunicação para a requisição das ordens de compra.
  • ccp/rules/purchaseOrderLinesV2.p: script com as regras de negocio que atribui aos campos os valores que irão ser retornados.
  • ccp/rules/purchaseOrderLinesV2.i: Interface que tem os campos que serão retornados.

Parâmetro

Tipo

Input/Output

Descrição

oInput

JsonObject

INPUT

Parâmetros para busca de ordens.

  • queryParams: 
    • page: Informar: numero da paginação.
    • pageSize informa a quantidade de campos que será retornado por cada paginação
Exemplo

{

    "queryParams": {

    "page": 1,

         "pageSize": 15 20

  },
}

oOutput

JsonObject

OUTPUT

Retorno contendo o as informações de todos as ordens na paginação escolhida:

{
  "total": 20,
  "hasNext": true,
  "items":[
    {"orderType": 1, "orderNumber": 190876, "businessUnit": "01", "totalPriceInDefaultCurrency": 2881.2,…},
    {"orderType": 1, "orderNumber": 191204, "businessUnit": "99", "totalPriceInDefaultCurrency": 1.0,…},
    {"orderType": 1, "orderNumber": 190858, "businessUnit": "01", "totalPriceInDefaultCurrency": 176.0,…},
    {"orderType": 1, "orderNumber": 181265, "businessUnit": "", "totalPriceInDefaultCurrency": 534.24,…},
    {"orderType": 1, "orderNumber": 181264, "businessUnit": "01", "totalPriceInDefaultCurrency": 1252.4,…},
    {"orderType": 1, "orderNumber": 0, "businessUnit": "01", "totalPriceInDefaultCurrency": 0.0,…},
    {"orderType": 2, "orderNumber": 0, "businessUnit": "99", "totalPriceInDefaultCurrency": 0.0,…},
    {"orderType": 1, "orderNumber": 0, "businessUnit": "01", "totalPriceInDefaultCurrency": 623.12,…},
    {"orderType": 1, "orderNumber": 181221, "businessUnit": "01", "totalPriceInDefaultCurrency": 270.0,…},
    {"orderType": 1, "orderNumber": 1019, "businessUnit": "01", "totalPriceInDefaultCurrency": 300.0,…},
    {"orderType": 1, "orderNumber": 181266, "businessUnit": "01", "totalPriceInDefaultCurrency": 34.6236,…},
    {"orderType": 1, "orderNumber": 181267, "businessUnit": "01", "totalPriceInDefaultCurrency": 34.6236,…},
    {"orderType": 1, "orderNumber": 181268, "businessUnit": "01", "totalPriceInDefaultCurrency": 34.6236,…},
    {"orderType": 1, "orderNumber": 181272, "businessUnit": "01", "totalPriceInDefaultCurrency": 242.00022,…},
    {"orderType": 1, "orderNumber": 181273, "businessUnit": "01", "totalPriceInDefaultCurrency": 3520.0,…},
    {"orderType": 1, "orderNumber": 190858, "businessUnit": "01", "totalPriceInDefaultCurrency": 100.0,…},
    {"orderType": 1, "orderNumber": 190858, "businessUnit": "01", "totalPriceInDefaultCurrency": 7260.0,…},
    {"orderType": 1, "orderNumber": 181275, "businessUnit": "01", "totalPriceInDefaultCurrency": 6600.0,…},
    {"orderType": 1, "orderNumber": 181276, "businessUnit": "01", "totalPriceInDefaultCurrency": 6000.0,…},
    {"orderType": 1, "orderNumber": 181277, "businessUnit": "01", "totalPriceInDefaultCurrency": 6000.0,…}
  ]
}

lHasNext,

number

OUTPUT

Informa um valor booleano se tem ou não uma próxima pagina

RowErrors

Temp-table

OUTPUT

Informações sobre os erros ocorridos durante o processo de busca dos dados.

Retorno

Retorna uma busca das ordens seguindo a paginação escolhida ou erros ocorridos durante a busca