Skip to content

Commit

Permalink
Add PurchasePreview.ConfirmLink
Browse files Browse the repository at this point in the history
* Added `purchasepreview:confirm` link to PurchasePreview resource
* Added confirm callback url properties to NewPurchasePreview
  • Loading branch information
akilburge committed Dec 15, 2015
1 parent 91b718a commit a3cb1af
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
6 changes: 5 additions & 1 deletion ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
### New in 0.5.0 (Releases 2015/11/23)
### New in 0.6.0 (Released 2015/12/15)
* ApiException.Message now returns actual error information from the API
* `purchasepreview:confirm` link added to PurchasePreview resource

### New in 0.5.0 (Released 2015/11/23)
* BearerAuthenticationHandler gets a `client_credentials` token automatically if
the token store doesn't have a token yet

Expand Down
8 changes: 4 additions & 4 deletions SolutionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
[assembly: AssemblyProductAttribute("GogoKit")]
[assembly: AssemblyCompanyAttribute("viagogo")]
[assembly: AssemblyCopyrightAttribute("Copyright viagogo 2015")]
[assembly: AssemblyVersionAttribute("0.5.0")]
[assembly: AssemblyFileVersionAttribute("0.5.0")]
[assembly: AssemblyInformationalVersionAttribute("0.5.0")]
[assembly: AssemblyVersionAttribute("0.6.0")]
[assembly: AssemblyFileVersionAttribute("0.6.0")]
[assembly: AssemblyInformationalVersionAttribute("0.6.0")]
[assembly: ComVisibleAttribute(false)]
namespace System {
internal static class AssemblyVersionInformation {
internal const string Version = "0.5.0";
internal const string Version = "0.6.0";
}
}
6 changes: 6 additions & 0 deletions src/GogoKit/Models/Request/NewPurchasePreview.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,11 @@ public class NewPurchasePreview

[DataMember(Name = "coupons")]
public string[] Coupons { get; set; }

[DataMember(Name = "confirm_complete_callback")]
public string ConfirmCompleteCallbackUrl { get; set; }

[DataMember(Name = "confirm_cancelled_callback")]
public string ConfirmCancelledCallbackUrl { get; set; }
}
}
3 changes: 3 additions & 0 deletions src/GogoKit/Models/Response/PurchasePreview.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public class PurchasePreview : Resource
[DataMember(Name = "estimated_total_charge")]
public Money EstimatedTotalCharge { get; set; }

[Rel("purchasepreview:confirm")]
public Link ConfirmLink { get; set; }

[Rel("purchasepreview:createpurchase")]
public Link CreatePurchaseLink { get; set; }

Expand Down

0 comments on commit a3cb1af

Please sign in to comment.