-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Payouts new functionality added (#73)
- Loading branch information
Antonio Buedo
authored
Apr 19, 2021
1 parent
7e2aa92
commit 6ac691d
Showing
12 changed files
with
500 additions
and
28 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,18 @@ | ||
using System; | ||
|
||
namespace BitPaySDK.Exceptions | ||
{ | ||
public class PayoutCancellationException : BitPayException | ||
{ | ||
private const string BitPayCode = "BITPAY-PAYOUT-DELETE"; | ||
private const string BitPayMessage = "Failed to create payout batch"; | ||
|
||
public PayoutCancellationException() : base(BitPayCode, BitPayMessage) | ||
{ | ||
} | ||
|
||
public PayoutCancellationException(Exception ex) : base(BitPayCode, BitPayMessage, ex) | ||
{ | ||
} | ||
} | ||
} |
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,18 @@ | ||
using System; | ||
|
||
namespace BitPaySDK.Exceptions | ||
{ | ||
public class PayoutCreationException : BitPayException | ||
{ | ||
private const string BitPayCode = "BITPAY-PAYOUT-CREATE"; | ||
private const string BitPayMessage = "Failed to create payout batch"; | ||
|
||
public PayoutCreationException() : base(BitPayCode, BitPayMessage) | ||
{ | ||
} | ||
|
||
public PayoutCreationException(Exception ex) : base(BitPayCode, BitPayMessage, ex) | ||
{ | ||
} | ||
} | ||
} |
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,28 @@ | ||
using System; | ||
|
||
namespace BitPaySDK.Exceptions | ||
{ | ||
public class PayoutException : BitPayException | ||
{ | ||
private const string BitPayMessage = "An unexpected error occured while trying to manage the payout batch"; | ||
private readonly string _bitpayCode = "BITPAY-PAYOUT-GENERIC"; | ||
|
||
public PayoutException() : base(BitPayMessage) | ||
{ | ||
BitpayCode = _bitpayCode; | ||
} | ||
|
||
public PayoutException(Exception ex) : base(BitPayMessage, ex) | ||
{ | ||
BitpayCode = _bitpayCode; | ||
} | ||
|
||
public PayoutException(string bitpayCode, string message) : base(bitpayCode, message) | ||
{ | ||
} | ||
|
||
public PayoutException(string bitpayCode, string message, Exception cause) : base(bitpayCode, message, cause) | ||
{ | ||
} | ||
} | ||
} |
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,18 @@ | ||
using System; | ||
|
||
namespace BitPaySDK.Exceptions | ||
{ | ||
public class PayoutQueryException : BitPayException | ||
{ | ||
private const string BitPayCode = "BITPAY-PAYOUT-GET"; | ||
private const string BitPayMessage = "Failed to create payout batch"; | ||
|
||
public PayoutQueryException() : base(BitPayCode, BitPayMessage) | ||
{ | ||
} | ||
|
||
public PayoutQueryException(Exception ex) : base(BitPayCode, BitPayMessage, ex) | ||
{ | ||
} | ||
} | ||
} |
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.