-
Notifications
You must be signed in to change notification settings - Fork 18
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 #81 from buckaroo-it/fix/PS2-1213
PS2-1213: Fix missing part of SDD functionalities in SDK
- Loading branch information
Showing
10 changed files
with
419 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
28 changes: 28 additions & 0 deletions
28
BuckarooSdk/Services/SepaDirectDebit/SepaDirectDebitAuthorizeRequest.cs
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 @@ | ||
namespace BuckarooSdk.Services.SepaDirectDebit | ||
{ | ||
public class SepaDirectDebitAuthorizeRequest | ||
{ | ||
/// <summary> | ||
/// The name of the accountholder for the account on which the direct debit should be performed. | ||
/// </summary> | ||
public string CustomerAccountName { get; set; } | ||
/// <summary> | ||
/// The IBAN for the customer bank account on which the direct debit will be performed. | ||
/// </summary> | ||
public string CustomerIban { get; set; } | ||
/// <summary> | ||
/// The BIC code for the customer bank account on which the direct debit will be performed. | ||
/// </summary> | ||
public string CustomerBic { get; set; } | ||
/// <summary> | ||
/// The mandate reference for the SEPA Direct Debit. It is possible to provide your own unique reference, or use the mandateID from an Emandate, | ||
/// In any case, the MandateReference should always begin with a three digit prefix which can be found in the General Information on the Buckaroo | ||
/// Plaza (My Buckaroo > General). | ||
/// </summary> | ||
public string MandateReference { get; set; } | ||
/// <summary> | ||
/// The signing date of the mandate (dd-mm-yyyy). | ||
/// </summary> | ||
public string MandateDate { get; set; } | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
BuckarooSdk/Services/SepaDirectDebit/SepaDirectDebitAuthorizeResponse.cs
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,34 @@ | ||
namespace BuckarooSdk.Services.SepaDirectDebit | ||
{ | ||
public class SepaDirectDebitAuthorizeResponse : ActionResponse | ||
{ | ||
public override Constants.Services.ServiceNames ServiceNames => Constants.Services.ServiceNames.SepaDirectDebit; | ||
|
||
/// <summary> | ||
/// The BIC code for the customer bank account on which the direct debit will be performed. | ||
/// </summary> | ||
public string CustomerBic { get; set; } | ||
/// <summary> | ||
/// The BIC code for the customer bank account on which the direct debit will be performed. | ||
/// </summary> | ||
public string CustomerIban { get; set; } | ||
/// <summary> | ||
/// The mandate reference used for the direct debit. | ||
/// </summary> | ||
public string MandateReference { get; set; } | ||
/// <summary> | ||
/// The signing date of the mandate that was used. | ||
/// </summary> | ||
public string MandateDate { get; set; } | ||
/// <summary> | ||
/// The expected date on which the direct debit will be collected from the consumer account. This can differ from the input field collectdate, | ||
/// due to a correction for the needed work days to process a direct debit. | ||
/// </summary> | ||
public string CollectDate { get; set; } | ||
/// <summary> | ||
/// Returns the type of direct debit that is going to be performed. Possible values: OnOff: A single directdebit. | ||
/// First: The first of a recurrent sequence. Recurring: The next direct debit in a recurring sequence. | ||
/// </summary> | ||
public string DirectDebitType { get; set; } | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
BuckarooSdk/Services/SepaDirectDebit/SepaDirectDebitExtraInfoRequest.cs
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,49 @@ | ||
namespace BuckarooSdk.Services.SepaDirectDebit | ||
{ | ||
public class SepaDirectDebitExtraInfoRequest : SepaDirectDebitPayRequest | ||
{ | ||
/// The customer ID, giving a unique ID to the customer for the merchant. | ||
/// </summary> | ||
public string CustomerCode { get; set; } | ||
/// <summary> | ||
/// The name of the customer. | ||
/// </summary> | ||
public string CustomerName { get; set; } | ||
/// <summary> | ||
/// The customer referenceparty ID, giving a unique ID to the customer reference party for the merchant. | ||
/// </summary> | ||
public string CustomerReferencePartyCode { get; set; } | ||
/// <summary> | ||
/// The name of the customer reference party. (The person on whose behalf the customer is making a payment) | ||
/// </summary> | ||
public string CustomerReferencePartyName { get; set; } | ||
/// <summary> | ||
/// The street name of the customer. | ||
/// </summary> | ||
public string Street { get; set; } | ||
/// <summary> | ||
/// The house number of the customer. | ||
/// </summary> | ||
public string HouseNumber { get; set; } | ||
/// <summary> | ||
/// The house number suffix of the customer. | ||
/// </summary> | ||
public string HouseNumberSuffix { get; set; } | ||
/// <summary> | ||
/// The zipcode of the customer. | ||
/// </summary> | ||
public string ZipCode { get; set; } | ||
/// <summary> | ||
/// The city of the customer. | ||
/// </summary> | ||
public string City { get; set; } | ||
/// <summary> | ||
/// The country of the customer. | ||
/// </summary> | ||
public string Country { get; set; } | ||
/// <summary> | ||
/// The contract identifier for which the payment is being done. | ||
/// </summary> | ||
public string ContractId { get; set; } | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
BuckarooSdk/Services/SepaDirectDebit/SepaDirectDebitExtraInfoResponse.cs
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,34 @@ | ||
namespace BuckarooSdk.Services.SepaDirectDebit | ||
{ | ||
public class SepaDirectDebitExtraInfoResponse : ActionResponse | ||
{ | ||
public override Constants.Services.ServiceNames ServiceNames => Constants.Services.ServiceNames.SepaDirectDebit; | ||
|
||
/// <summary> | ||
/// The BIC code for the customer bank account on which the direct debit should be performed. | ||
/// </summary> | ||
public string CustomerBic { get; set; } | ||
/// <summary> | ||
/// The IBAN for the customer bank account on which the direct debit will be performed. | ||
/// </summary> | ||
public string CustomerIban { get; set; } | ||
/// <summary> | ||
/// The mandate reference used for the direct debit. | ||
/// </summary> | ||
public string MandateReference { get; set; } | ||
/// <summary> | ||
/// The signing date of the mandate that was used. | ||
/// </summary> | ||
public string MandateDate { get; set; } | ||
/// <summary> | ||
/// The expected date on which the direct debit will be collected from the consumer account. This can differ from the input field collectdate, | ||
/// due to a correction for the needed work days to process a direct debit. | ||
/// </summary> | ||
public string CollectDate { get; set; } | ||
/// <summary> | ||
/// Returns the type of direct debit that is going to be performed. Possible values: OnOff: A single directdebit. | ||
/// First: The first of a recurrent sequence. Recurring: The next direct debit in a recurring sequence. | ||
/// </summary> | ||
public string DirectDebitType { get; set; } | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
BuckarooSdk/Services/SepaDirectDebit/SepaDirectDebitPayRecurrentRequest.cs
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 BuckarooSdk.Services.SepaDirectDebit | ||
{ | ||
public class SepaDirectDebitPayRecurrentRequest | ||
{ | ||
/// <summary> | ||
/// The date (dd-mm-yyyy) on which the direct debit should be collected from the consumer account. | ||
/// Important note: if combined with Credit Management, the collect date should always precede the due date of the invoice, since you don't want to trigger | ||
/// a reminder step before debiting the customer. If however, the collect date is accidentally set after the due date, then the first reminder step will be postponed | ||
/// till the collect date, but only if it's set within 14 days after the due date. | ||
/// If it's set further than that, then our system will perform another check after 14 days and so on. | ||
/// </summary> | ||
public string CollectDate { get; set; } | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
BuckarooSdk/Services/SepaDirectDebit/SepaDirectDebitPayRecurrentResponse.cs
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,34 @@ | ||
namespace BuckarooSdk.Services.SepaDirectDebit | ||
{ | ||
public class SepaDirectDebitPayRecurrentResponse : ActionResponse | ||
{ | ||
public override Constants.Services.ServiceNames ServiceNames => Constants.Services.ServiceNames.SepaDirectDebit; | ||
|
||
/// <summary> | ||
/// The mandate reference used for the direct debit. | ||
/// </summary> | ||
public string MandateReference { get; set; } | ||
/// <summary> | ||
/// The signing date of the mandate that was used. | ||
/// </summary> | ||
public string MandateDate { get; set; } | ||
/// <summary> | ||
/// The IBAN for the customer bank account on which the direct debit will be performed. | ||
/// </summary> | ||
public string CustomerIBAN { get; set; } | ||
/// <summary> | ||
/// The BIC code for the customer bank account on which the direct debit should be performed. | ||
/// </summary> | ||
public string CustomerBIC { get; set; } | ||
/// <summary> | ||
/// The expected date on which the direct debit will be collected from the consumer account. | ||
/// This can differ from the input field collectdate, due to a correction for the needed work days to process a direct debit. | ||
/// </summary> | ||
public string CollectDate { get; set; } | ||
/// <summary> | ||
/// Returns the type of direct debit that is going to be performed. Possible values: OnOff: A single directdebit. First: The first of a recurrent sequence. | ||
/// Recurring: The next direct debit in a recurring sequence. | ||
/// </summary> | ||
public string DirectDebitType { get; set; } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
BuckarooSdk/Services/SepaDirectDebit/SepaDirectDebitPayWithEmandateRequest.cs
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 @@ | ||
namespace BuckarooSdk.Services.SepaDirectDebit | ||
{ | ||
public class SepaDirectDebitPayWithEmandateRequest | ||
{ | ||
/// <summary> | ||
/// This is the MandateID retrieved from a successful Emandate request. | ||
/// </summary> | ||
public string MandateReference { get; set; } | ||
/// <summary> | ||
/// The date (dd-mm-yyyy) on which the direct debit should be collected from the consumer account. | ||
/// Important note: if combined with Credit Management, the collect date should always precede the due date of the invoice, since you don't want to trigger | ||
/// a reminder step before debiting the customer. If however, the collect date is accidentally set after the due date, then the first reminder step will be | ||
/// postponed till the collect date, but only if it's set within 14 days after the due date. If it's set further than that, then our system will perform another | ||
/// check after 14 days and so on. | ||
/// </summary> | ||
public string CollectDate { get; set; } | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
BuckarooSdk/Services/SepaDirectDebit/SepaDirectDebitPayWithEmandateResponse.cs
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,34 @@ | ||
namespace BuckarooSdk.Services.SepaDirectDebit | ||
{ | ||
public class SepaDirectDebitPayWithEmandateResponse : ActionResponse | ||
{ | ||
public override Constants.Services.ServiceNames ServiceNames => Constants.Services.ServiceNames.SepaDirectDebit; | ||
|
||
/// <summary> | ||
/// This is the MandateID from the Emandate. | ||
/// </summary> | ||
public string MandateReference { get; set; } | ||
/// <summary> | ||
/// The signing date of the mandate that was used. | ||
/// </summary> | ||
public string MandateDate { get; set; } | ||
/// <summary> | ||
/// The IBAN number of the customer bank account | ||
/// </summary> | ||
public string CustomerIBAN { get; set; } | ||
/// <summary> | ||
/// The BIC code for the customer bank account on which the direct debit will be performed. | ||
/// </summary> | ||
public string CustomerBIC { get; set; } | ||
/// <summary> | ||
/// The expected date on which the direct debit will be collected from the consumer account. | ||
/// This can differ from the input field collectdate, due to a correction for the needed work days to process a direct debit. | ||
/// </summary> | ||
public string CollectDate { get; set; } | ||
/// <summary> | ||
/// Returns the type of direct debit that is going to be performed. Possible values: OnOff: A single directdebit. First: The first of a recurrent sequence. | ||
/// Recurring: The next direct debit in a recurring sequence. | ||
/// </summary> | ||
public string DirectDebitType { get; set; } | ||
} | ||
} |
Oops, something went wrong.