-
Notifications
You must be signed in to change notification settings - Fork 23
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 #199 from Mangopay/feature/ideal-and-giropay-mops
Feature/ Ideal and Giropay mops
- Loading branch information
Showing
10 changed files
with
260 additions
and
0 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
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
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 @@ | ||
namespace MangoPay.SDK.Entities.GET | ||
{ | ||
public class PayInGiropayWebDTO: PayInDTO | ||
{ | ||
/// <summary>An optional value to be specified on the user's bank statement.</summary> | ||
public string StatementDescriptor { get; set; } | ||
|
||
/// <summary> The URL to redirect to after the payment, whether the transaction was successful or not | ||
public string ReturnURL { get; set; } | ||
|
||
/// <summary> The URL to which the user is redirected to complete the payment | ||
public string RedirectURL { 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,17 @@ | ||
namespace MangoPay.SDK.Entities.GET | ||
{ | ||
public class PayInIdealWebDTO : PayInDTO | ||
{ | ||
/// <summary>An optional value to be specified on the user's bank statement.</summary> | ||
public string StatementDescriptor { get; set; } | ||
|
||
/// <summary> The URL to redirect to after the payment, whether the transaction was successful or not | ||
public string ReturnURL { get; set; } | ||
|
||
/// <summary> The URL to which the user is redirected to complete the payment | ||
public string RedirectURL { get; set; } | ||
|
||
/// <summary> Name of the end-user’s bank </summary> | ||
public string BankName { 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,35 @@ | ||
namespace MangoPay.SDK.Entities.POST | ||
{ | ||
public class PayInGiropayWebPostDTO : EntityPostBase | ||
{ | ||
public PayInGiropayWebPostDTO(string authorId, Money debitedFunds, Money fees, string creditedWalletId, | ||
string returnUrl, string tag = null, string statementDescriptor = null) | ||
{ | ||
AuthorId = authorId; | ||
DebitedFunds = debitedFunds; | ||
Fees = fees; | ||
CreditedWalletId = creditedWalletId; | ||
ReturnURL = returnUrl; | ||
StatementDescriptor = statementDescriptor; | ||
Tag = tag; | ||
} | ||
|
||
/// <summary>Author identifier.</summary> | ||
public string AuthorId { get; set; } | ||
|
||
/// <summary>Debited funds.</summary> | ||
public Money DebitedFunds { get; set; } | ||
|
||
/// <summary>Fees.</summary> | ||
public Money Fees { get; set; } | ||
|
||
/// <summary>Credited wallet identifier.</summary> | ||
public string CreditedWalletId { get; set; } | ||
|
||
/// <summary> The URL to redirect to after the payment, whether the transaction was successful or not | ||
public string ReturnURL { get; set; } | ||
|
||
/// <summary>An optional value to be specified on the user's bank statement.</summary> | ||
public string StatementDescriptor { 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,39 @@ | ||
namespace MangoPay.SDK.Entities.POST | ||
{ | ||
public class PayInIdealWebPostDTO : EntityPostBase | ||
{ | ||
public PayInIdealWebPostDTO(string authorId, Money debitedFunds, Money fees, string creditedWalletId, | ||
string returnUrl, string bic, string tag = null, string statementDescriptor = null) | ||
{ | ||
AuthorId = authorId; | ||
DebitedFunds = debitedFunds; | ||
Fees = fees; | ||
CreditedWalletId = creditedWalletId; | ||
ReturnURL = returnUrl; | ||
Bic = bic; | ||
StatementDescriptor = statementDescriptor; | ||
Tag = tag; | ||
} | ||
|
||
/// <summary>Author identifier.</summary> | ||
public string AuthorId { get; set; } | ||
|
||
/// <summary>Debited funds.</summary> | ||
public Money DebitedFunds { get; set; } | ||
|
||
/// <summary>Fees.</summary> | ||
public Money Fees { get; set; } | ||
|
||
/// <summary>Credited wallet identifier.</summary> | ||
public string CreditedWalletId { get; set; } | ||
|
||
/// <summary> The URL to redirect to after the payment, whether the transaction was successful or not | ||
public string ReturnURL { get; set; } | ||
|
||
/// <summary> The BIC identifier of the end-user’s bank | ||
public string Bic { get; set; } | ||
|
||
/// <summary>An optional value to be specified on the user's bank statement.</summary> | ||
public string StatementDescriptor { get; set; } | ||
} | ||
} |