-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from mwarzybok-sumoheavy/feature/SP-736
SP-736 Type Review: C#
- Loading branch information
Showing
9 changed files
with
213 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) 2019 BitPay. | ||
// All rights reserved. | ||
|
||
using System; | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace BitPay.Models.Invoice | ||
{ | ||
public class InvoiceRefundAddresses | ||
{ | ||
public InvoiceRefundAddresses(string type, DateTime date) | ||
{ | ||
Type = type; | ||
Date = date; | ||
} | ||
|
||
[JsonProperty(PropertyName = "type")] | ||
public string Type { get; set; } | ||
|
||
[JsonProperty(PropertyName = "date")] | ||
public DateTime Date { get; set; } | ||
|
||
[JsonProperty(PropertyName = "tag")] | ||
public int? Tag { get; set; } | ||
|
||
[JsonProperty(PropertyName = "email")] | ||
public string? Email { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Copyright (c) 2019 BitPay. | ||
// All rights reserved. | ||
|
||
using System.Collections.Generic; | ||
using System.Numerics; | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace BitPay.Models.Invoice | ||
{ | ||
public class InvoiceWebhook | ||
{ | ||
[JsonProperty(PropertyName = "id")] | ||
public string? Id { get; set; } | ||
|
||
[JsonProperty(PropertyName = "url")] | ||
public string? Url { get; set; } | ||
|
||
[JsonProperty(PropertyName = "posData")] | ||
public string? PosData { get; set; } | ||
|
||
[JsonProperty(PropertyName = "status")] | ||
public string? Status { get; set; } | ||
|
||
[JsonProperty(PropertyName = "price")] | ||
public double? Price { get; set; } | ||
|
||
[JsonProperty(PropertyName = "currency")] | ||
public string? Currency { get; set; } | ||
|
||
[JsonProperty(PropertyName = "invoiceTime")] | ||
public string? InvoiceTime { get; set; } | ||
|
||
[JsonProperty(PropertyName = "currencyTime")] | ||
public string? CurrencyTime { get; set; } | ||
|
||
[JsonProperty(PropertyName = "exceptionStatus")] | ||
public string? ExceptionStatus { get; set; } | ||
|
||
[JsonProperty(PropertyName = "buyerFields")] | ||
public BuyerFields? BuyerFields { get; set; } | ||
|
||
[JsonProperty(PropertyName = "paymentSubtotals")] | ||
public Dictionary<string, BigInteger>? PaymentSubtotals { get; set; } | ||
|
||
[JsonProperty(PropertyName = "paymentTotals")] | ||
public Dictionary<string, BigInteger>? PaymentTotals { get; set; } | ||
|
||
[JsonProperty(PropertyName = "exchangeRates")] | ||
public Dictionary<string, Dictionary<string, decimal>>? ExchangeRates { get; set; } | ||
|
||
[JsonProperty(PropertyName = "amountPaid")] | ||
public double? AmountPaid { get; set; } | ||
|
||
[JsonProperty(PropertyName = "orderId")] | ||
public string? OrderId { get; set; } | ||
|
||
[JsonProperty(PropertyName = "transactionCurrency")] | ||
public string? TransactionCurrency { get; set; } | ||
|
||
[JsonProperty(PropertyName = "inInvoiceId")] | ||
public string? InInvoiceId { get; set; } | ||
|
||
[JsonProperty(PropertyName = "inPaymentRequest")] | ||
public string? InPaymentRequest { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.