-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add payout account crud operations (#123)
- Loading branch information
1 parent
7393f29
commit ad22bc9
Showing
10 changed files
with
197 additions
and
5 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,10 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Craftgate.Model | ||
{ | ||
public enum AccountOwner | ||
{ | ||
[EnumMember(Value = "MERCHANT")] MERCHANT, | ||
[EnumMember(Value = "SUB_MERCHANT_MEMBER")] SUB_MERCHANT_MEMBER, | ||
} | ||
} |
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,9 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Craftgate.Model | ||
{ | ||
public enum PayoutAccountType | ||
{ | ||
[EnumMember(Value = "WISE")] WISE, | ||
} | ||
} |
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,14 @@ | ||
using System; | ||
using Craftgate.Model; | ||
|
||
namespace Craftgate.Request | ||
{ | ||
public class CreatePayoutAccountRequest | ||
{ | ||
public PayoutAccountType Type { get; set; } | ||
public string ExternalAccountId { get; set; } | ||
public Currency Currency { get; set; } | ||
public AccountOwner AccountOwner { get; set; } | ||
public long? SubMerchantMemberId { 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,13 @@ | ||
using Craftgate.Model; | ||
|
||
namespace Craftgate.Request | ||
{ | ||
public class SearchPayoutAccountRequest | ||
{ | ||
public Currency? Currency { get; set; } | ||
public AccountOwner? AccountOwner { get; set; } | ||
public long? SubMerchantMemberId { get; set; } | ||
public int? Page { get; set; } = 0; | ||
public int? Size { get; set; } = 10; | ||
} | ||
} |
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,10 @@ | ||
using Craftgate.Model; | ||
|
||
namespace Craftgate.Request | ||
{ | ||
public class UpdatePayoutAccountRequest | ||
{ | ||
public PayoutAccountType Type { get; set; } | ||
public string ExternalAccountId { 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,8 @@ | ||
using Craftgate.Response.Common; | ||
|
||
namespace Craftgate.Response | ||
{ | ||
public class PayoutAccountListResponse : ListResponse<PayoutAccountResponse> | ||
{ | ||
} | ||
} |
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,12 @@ | ||
namespace Craftgate.Response | ||
{ | ||
public class PayoutAccountResponse | ||
{ | ||
public long Id { get; set; } | ||
public string Type { get; set; } | ||
public string ExternalAccountId { get; set; } | ||
public string Currency { get; set; } | ||
public string AccountOwner { get; set; } | ||
public long? SubMerchantMemberId { 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