Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Oba.Services.API.Models.Request;
namespace Oba.Services.API.Models.Response
{
public class PdvResponse
using Google.Apis.Auth.OAuth2.Responses;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Oba.Services.API.Models.Request
{
public class Header
@carneirocorp
carneirocorp / PdvController.cs
Created October 2, 2020 15:33
Controller comunicação com PDV
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.ApplicationInsights;
using Microsoft.ApplicationInsights.Extensibility;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using MongoDB.Bson.IO;
using Oba.Services.API.Config;
@carneirocorp
carneirocorp / controller.cs
Created October 2, 2020 15:30
Controller
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;
using Oba.Services.API.Config;
using Oba.Services.API.Data;
using Oba.Services.API.Models;
<d:query xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="http://www.opengis.net/gml" m:type="Microsoft.Office.Server.Search.REST.SearchResult">
<d:ElapsedTime m:type="Edm.Int32">52</d:ElapsedTime>
<d:PrimaryQueryResult m:type="Microsoft.Office.Server.Search.REST.QueryResult">
<d:CustomResults m:type="Collection(Microsoft.Office.Server.Search.REST.CustomResult)"/>
<d:QueryId>04e634d7-e644-463b-b442-78ba35f60207</d:QueryId>
<d:QueryRuleId m:type="Edm.Guid">00000000-0000-0000-0000-000000000000</d:QueryRuleId>
<d:RefinementResults m:null="true"/>
<d:RelevantResults m:type="Microsoft.Office.Server.Search.REST.RelevantResults">
<d:GroupTemplateId m:null="true"/>
<d:ItemTemplateId m:null="true"/>
{
"_id" : "21484",
"CreatedAt" : {
"$date" : 1597800435631
},
"DeletedAt" : null,
"AlternativeOption" : "Substituir por produto similar",
"ScheduleDescription" : "19/8/2020 - das 08:00 - 19:00",
"DeliveryMessage" : "Agendamento de entrega",
"Products" : [
Finalidade: pagamento
=====================
POST /api/pdv/payment
Payload:
{
orderId: number,
finalPrice: number,
comments: string,
@carneirocorp
carneirocorp / gist:9f9458b3c2938655c9bf9305d4a86899
Created February 26, 2019 22:26
lista com twoway binding
<tbody>
<tr *ngFor="let item of contrato.contractItemViewModels; let in = index" >
<td>{{ item.contractItem }}</td>
<td>{{ item.productCode }}</td>
<td>{{ item.shortDescription }}</td>
<td>{{ item.value | currency:'BRL' }}</td>
<td><input type="number" class="form-control" [(ngModel)]="contrato.contractItemViewModels[in].stockPlanned" [ngModelOptions]="{standalone: true}" /></td>
<td><input type="number" class="form-control" [(ngModel)]="contrato.contractItemViewModels[in].stockCustomer" [ngModelOptions]="{standalone: true}" /></td>
<td><input type="number" class="form-control" [(ngModel)]="contrato.contractItemViewModels[in].stockControl" [ngModelOptions]="{standalone: true}" /></td>
</tr>
@carneirocorp
carneirocorp / privacy.html
Created December 24, 2018 22:46
AI Extractor policy
<h1>Privacy Policy</h1>
<p>Effective date: December 24, 2018</p>
<p>AC Consultoria ("us", "we", or "our") operates the https://about.me/carneirinho website (the "Service").</p>
<p>This page informs you of our policies regarding the collection, use, and disclosure of personal data when you use our Service and the choices you have associated with that data. Our Privacy Policy for AC Consultoria is based on the <a href="https://www.freeprivacypolicy.com/blog/sample-privacy-policy-template/">Free Privacy Policy Template Website</a>.</p>