Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
change to holderservice
  • Loading branch information
Jeremy Mill committed Dec 2, 2015
1 parent 4ecef37 commit fd752dc
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
39 changes: 39 additions & 0 deletions TeamDBAwesome/TeamDBAwesome/Controllers/AddPaymentController.cs
@@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace TeamDBAwesome.Controllers
{
public class AddPaymentController : ApiController
{
// GET: api/AddPayment
public IEnumerable<string> Get()
{
return new string[] { "value1", "value2" };
}

// GET: api/AddPayment/5
public string Get(int id)
{
return "value";
}

// POST: api/AddPayment
public void Post([FromBody]string value)
{
}

// PUT: api/AddPayment/5
public void Put(int id, [FromBody]string value)
{
}

// DELETE: api/AddPayment/5
public void Delete(int id)
{
}
}
}
18 changes: 18 additions & 0 deletions TeamDBAwesome/TeamDBAwesome/Models/Payment.cs
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TeamDBAwesome.Models
{
public class Payment
{
public int CustomerId { get; set; }
public string Type { get; set; }
public string token { get; set; }
public string email { get; set; }
public string cardnum { get; set; }
// needs to be in yyyy-mm-dd format
public string expr_date { get; set; }
}
}
1 change: 1 addition & 0 deletions TeamDBAwesome/TeamDBAwesome/TeamDBAwesome.csproj
Expand Up @@ -163,6 +163,7 @@
<Compile Include="Areas\HelpPage\SampleGeneration\SampleDirection.cs" />
<Compile Include="Areas\HelpPage\SampleGeneration\TextSample.cs" />
<Compile Include="Areas\HelpPage\XmlDocumentationProvider.cs" />
<Compile Include="Controllers\AddPaymentController.cs" />
<Compile Include="Controllers\GetCustomerController.cs" />
<Compile Include="Controllers\GetTrackController.cs" />
<Compile Include="Controllers\HomeController.cs" />
Expand Down
2 changes: 2 additions & 0 deletions TeamDBAwesome/TeamDBAwesome/js/HolderService.js
Expand Up @@ -46,6 +46,8 @@
email: null,
//these two only if it's a CC
cardnum: null,
//expr_date needs to be a date type
//YYYY-MM-DD
expr_date: null
}

Expand Down

0 comments on commit fd752dc

Please sign in to comment.