Skip to content

Commit 6564a19

Browse files
authored
Merge pull request SwedbankPay#385 from NullableInt/patch-1
Update CardPaymentRecurRequest.cs
2 parents f8559f3 + 8fb582a commit 6564a19

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed
Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
namespace SwedbankPay.Sdk.PaymentInstruments.Card
22
{
3-
/// <summary>
4-
/// Used to pay a credit card recurring payment.
5-
/// </summary>
6-
public class CardPaymentRecurRequest
7-
{
8-
/// <summary>
9-
/// Instantiates a new <see cref="CardPaymentRecurRequest"/> with the provided parameters.
10-
/// </summary>
11-
/// <param name="intent">The current <seealso cref="PaymentIntent"/> for this payment.</param>
12-
/// <param name="recurrenceToken">A previously authorized recurrence token.</param>
13-
/// <param name="currency">The <seealso cref="Currency"/> the payment is being paid in.</param>
14-
/// <param name="amount">The amount the payer pays.</param>
15-
/// <param name="vatAmount">The <seealso cref="Amount"/> to be paid as Value Added Tax.</param>
16-
/// <param name="description">A textual description of the payment.</param>
17-
/// <param name="userAgent">The payers User Agent.</param>
18-
/// <param name="language">The preferred <seealso cref="Language"/> of the payer.</param>
19-
/// <param name="urls">All relevant <seealso cref="IUrls"/> for this payment.</param>
20-
/// <param name="payeeInfo">Your payee information.</param>
21-
public CardPaymentRecurRequest(PaymentIntent intent,
22-
string recurrenceToken,
23-
Currency currency,
24-
Amount amount,
25-
Amount vatAmount,
26-
string description,
27-
string userAgent,
28-
Language language,
29-
IUrls urls,
30-
IPayeeInfo payeeInfo)
31-
{
32-
Payment = new CardPaymentRecurDetails(Operation.Recur,
33-
intent,
34-
recurrenceToken,
35-
currency,
36-
amount,
37-
vatAmount,
38-
description,
39-
userAgent,
40-
language,
41-
urls,
42-
payeeInfo);
43-
}
3+
/// <summary>
4+
/// Used to pay a credit card recurring payment.
5+
/// </summary>
6+
public class CardPaymentRecurRequest
7+
{
8+
/// <summary>
9+
/// Instantiates a new <see cref="CardPaymentRecurRequest"/> with the provided parameters.
10+
/// </summary>
11+
/// <param name="intent">The current <seealso cref="PaymentIntent"/> for this payment.</param>
12+
/// <param name="recurrenceToken">A previously authorized recurrence token.</param>
13+
/// <param name="currency">The <seealso cref="Currency"/> the payment is being paid in.</param>
14+
/// <param name="amount">The amount the payer pays.</param>
15+
/// <param name="vatAmount">The <seealso cref="Amount"/> to be paid as Value Added Tax.</param>
16+
/// <param name="description">A textual description of the payment.</param>
17+
/// <param name="userAgent">The payers User Agent.</param>
18+
/// <param name="language">The preferred <seealso cref="Language"/> of the payer.</param>
19+
/// <param name="urls">All relevant <seealso cref="IUrls"/> for this payment.</param>
20+
/// <param name="payeeInfo">Your payee information.</param>
21+
public CardPaymentRecurRequest(PaymentIntent intent,
22+
string recurrenceToken,
23+
Currency currency,
24+
Amount amount,
25+
Amount vatAmount,
26+
string description,
27+
string userAgent,
28+
Language language,
29+
IUrls urls,
30+
IPayeeInfo payeeInfo)
31+
{
32+
Payment = new CardPaymentRecurDetails(Operation.Recur,
33+
intent,
34+
recurrenceToken,
35+
currency,
36+
amount,
37+
vatAmount,
38+
description,
39+
userAgent,
40+
language,
41+
urls,
42+
payeeInfo);
43+
}
4444

45-
/// <summary>
46-
/// Hold detailed information about this payment.
47-
/// </summary>
48-
public CardPaymentRecurDetails Payment { get; }
49-
}
50-
}
45+
/// <summary>
46+
/// Hold detailed information about this payment.
47+
/// </summary>
48+
public CardPaymentRecurDetails Payment { get; }
49+
}
50+
}

0 commit comments

Comments
 (0)