Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 239
openapi_spec_hash: 49d468466a752f8ea72af00d00683f50
openapi_spec_hash: 7b109b214bd03821baded6e131a8282f
config_hash: 1ca082e374ef7000e2a5971e8da740e0
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public void FieldRoundtrip_Works()
new()
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -519,6 +520,7 @@ public void FieldRoundtrip_Works()
new()
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -1024,6 +1026,7 @@ public void SerializationRoundtrip_Works()
new()
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -1539,6 +1542,7 @@ public void FieldRoundtripThroughSerialization_Works()
new()
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -2047,6 +2051,7 @@ public void FieldRoundtripThroughSerialization_Works()
new()
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -2552,6 +2557,7 @@ public void Validation_Works()
new()
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -3061,6 +3067,7 @@ public void CopyConstructor_Works()
new()
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down
9 changes: 9 additions & 0 deletions src/Increase.Api.Tests/Models/CardDisputes/CardDisputeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public void FieldRoundtrip_Works()
var model = new CardDisputes::CardDispute
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -497,6 +498,7 @@ public void FieldRoundtrip_Works()
};

string expectedID = "card_dispute_h9sc95nbl1cgltpp7men";
string expectedAccountID = "account_in71c4amph0vgo2qllky";
long expectedAmount = 1000;
string expectedCardID = "card_oubs0hwk5rn6knuecxg2";
DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
Expand Down Expand Up @@ -974,6 +976,7 @@ public void FieldRoundtrip_Works()
);

Assert.Equal(expectedID, model.ID);
Assert.Equal(expectedAccountID, model.AccountID);
Assert.Equal(expectedAmount, model.Amount);
Assert.Equal(expectedCardID, model.CardID);
Assert.Equal(expectedCreatedAt, model.CreatedAt);
Expand All @@ -996,6 +999,7 @@ public void SerializationRoundtrip_Works()
var model = new CardDisputes::CardDispute
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -1492,6 +1496,7 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new CardDisputes::CardDispute
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -1981,6 +1986,7 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);

string expectedID = "card_dispute_h9sc95nbl1cgltpp7men";
string expectedAccountID = "account_in71c4amph0vgo2qllky";
long expectedAmount = 1000;
string expectedCardID = "card_oubs0hwk5rn6knuecxg2";
DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
Expand Down Expand Up @@ -2458,6 +2464,7 @@ public void FieldRoundtripThroughSerialization_Works()
);

Assert.Equal(expectedID, deserialized.ID);
Assert.Equal(expectedAccountID, deserialized.AccountID);
Assert.Equal(expectedAmount, deserialized.Amount);
Assert.Equal(expectedCardID, deserialized.CardID);
Assert.Equal(expectedCreatedAt, deserialized.CreatedAt);
Expand All @@ -2480,6 +2487,7 @@ public void Validation_Works()
var model = new CardDisputes::CardDispute
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -2970,6 +2978,7 @@ public void CopyConstructor_Works()
var model = new CardDisputes::CardDispute
{
ID = "card_dispute_h9sc95nbl1cgltpp7men",
AccountID = "account_in71c4amph0vgo2qllky",
Amount = 1000,
CardID = "card_oubs0hwk5rn6knuecxg2",
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public void FieldRoundtrip_Works()
new()
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down Expand Up @@ -95,6 +96,7 @@ public void FieldRoundtrip_Works()
new()
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down Expand Up @@ -185,6 +187,7 @@ public void SerializationRoundtrip_Works()
new()
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down Expand Up @@ -277,6 +280,7 @@ public void FieldRoundtripThroughSerialization_Works()
new()
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down Expand Up @@ -362,6 +366,7 @@ public void FieldRoundtripThroughSerialization_Works()
new()
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down Expand Up @@ -452,6 +457,7 @@ public void Validation_Works()
new()
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down Expand Up @@ -538,6 +544,7 @@ public void CopyConstructor_Works()
new()
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public void FieldRoundtrip_Works()
var model = new CardPurchaseSupplement
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down Expand Up @@ -85,6 +86,7 @@ public void FieldRoundtrip_Works()
};

string expectedID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3";
string expectedAccountID = "account_in71c4amph0vgo2qllky";
string expectedCardPaymentID = "card_payment_nd3k2kacrqjli8482ave";
Invoice expectedInvoice = new()
{
Expand Down Expand Up @@ -155,6 +157,7 @@ public void FieldRoundtrip_Works()
ApiEnum<string, Type> expectedType = Type.CardPurchaseSupplement;

Assert.Equal(expectedID, model.ID);
Assert.Equal(expectedAccountID, model.AccountID);
Assert.Equal(expectedCardPaymentID, model.CardPaymentID);
Assert.Equal(expectedInvoice, model.Invoice);
Assert.NotNull(model.LineItems);
Expand All @@ -174,6 +177,7 @@ public void SerializationRoundtrip_Works()
var model = new CardPurchaseSupplement
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down Expand Up @@ -259,6 +263,7 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new CardPurchaseSupplement
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down Expand Up @@ -337,6 +342,7 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);

string expectedID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3";
string expectedAccountID = "account_in71c4amph0vgo2qllky";
string expectedCardPaymentID = "card_payment_nd3k2kacrqjli8482ave";
Invoice expectedInvoice = new()
{
Expand Down Expand Up @@ -407,6 +413,7 @@ public void FieldRoundtripThroughSerialization_Works()
ApiEnum<string, Type> expectedType = Type.CardPurchaseSupplement;

Assert.Equal(expectedID, deserialized.ID);
Assert.Equal(expectedAccountID, deserialized.AccountID);
Assert.Equal(expectedCardPaymentID, deserialized.CardPaymentID);
Assert.Equal(expectedInvoice, deserialized.Invoice);
Assert.NotNull(deserialized.LineItems);
Expand All @@ -426,6 +433,7 @@ public void Validation_Works()
var model = new CardPurchaseSupplement
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down Expand Up @@ -505,6 +513,7 @@ public void CopyConstructor_Works()
var model = new CardPurchaseSupplement
{
ID = "card_purchase_supplement_ijuc45iym4jchnh2sfk3",
AccountID = "account_in71c4amph0vgo2qllky",
CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
Invoice = new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7296,6 +7296,7 @@ public class InboundFednowTransferDeclineReasonTest : TestBase
[InlineData(DeclinedTransactions::InboundFednowTransferDeclineReason.GroupLocked)]
[InlineData(DeclinedTransactions::InboundFednowTransferDeclineReason.EntityNotActive)]
[InlineData(DeclinedTransactions::InboundFednowTransferDeclineReason.FednowNotEnabled)]
[InlineData(DeclinedTransactions::InboundFednowTransferDeclineReason.TransactionNotAllowed)]
public void Validation_Works(DeclinedTransactions::InboundFednowTransferDeclineReason rawValue)
{
// force implicit conversion because Theory can't do that for us
Expand All @@ -7321,6 +7322,7 @@ public void InvalidEnumValidationThrows_Works()
[InlineData(DeclinedTransactions::InboundFednowTransferDeclineReason.GroupLocked)]
[InlineData(DeclinedTransactions::InboundFednowTransferDeclineReason.EntityNotActive)]
[InlineData(DeclinedTransactions::InboundFednowTransferDeclineReason.FednowNotEnabled)]
[InlineData(DeclinedTransactions::InboundFednowTransferDeclineReason.TransactionNotAllowed)]
public void SerializationRoundtrip_Works(
DeclinedTransactions::InboundFednowTransferDeclineReason rawValue
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public void FieldRoundtrip_Works()
new()
{
ID = "digital_wallet_token_izi62go3h51p369jrie0",
AccountID = "account_in71c4amph0vgo2qllky",
CardID = "card_oubs0hwk5rn6knuecxg2",
Cardholder = new("John Smith"),
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -51,6 +52,7 @@ public void FieldRoundtrip_Works()
new()
{
ID = "digital_wallet_token_izi62go3h51p369jrie0",
AccountID = "account_in71c4amph0vgo2qllky",
CardID = "card_oubs0hwk5rn6knuecxg2",
Cardholder = new("John Smith"),
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -96,6 +98,7 @@ public void SerializationRoundtrip_Works()
new()
{
ID = "digital_wallet_token_izi62go3h51p369jrie0",
AccountID = "account_in71c4amph0vgo2qllky",
CardID = "card_oubs0hwk5rn6knuecxg2",
Cardholder = new("John Smith"),
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -144,6 +147,7 @@ public void FieldRoundtripThroughSerialization_Works()
new()
{
ID = "digital_wallet_token_izi62go3h51p369jrie0",
AccountID = "account_in71c4amph0vgo2qllky",
CardID = "card_oubs0hwk5rn6knuecxg2",
Cardholder = new("John Smith"),
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -185,6 +189,7 @@ public void FieldRoundtripThroughSerialization_Works()
new()
{
ID = "digital_wallet_token_izi62go3h51p369jrie0",
AccountID = "account_in71c4amph0vgo2qllky",
CardID = "card_oubs0hwk5rn6knuecxg2",
Cardholder = new("John Smith"),
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -230,6 +235,7 @@ public void Validation_Works()
new()
{
ID = "digital_wallet_token_izi62go3h51p369jrie0",
AccountID = "account_in71c4amph0vgo2qllky",
CardID = "card_oubs0hwk5rn6knuecxg2",
Cardholder = new("John Smith"),
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down Expand Up @@ -271,6 +277,7 @@ public void CopyConstructor_Works()
new()
{
ID = "digital_wallet_token_izi62go3h51p369jrie0",
AccountID = "account_in71c4amph0vgo2qllky",
CardID = "card_oubs0hwk5rn6knuecxg2",
Cardholder = new("John Smith"),
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Expand Down
Loading