Commit f7e26ce 1 parent 1b4d3a3 commit f7e26ce Copy full SHA for f7e26ce
File tree 5 files changed +29
-15
lines changed
5 files changed +29
-15
lines changed Original file line number Diff line number Diff line change 1
1
namespace Stripe
2
2
{
3
+ using System ;
3
4
using Newtonsoft . Json ;
4
5
using Stripe . Infrastructure ;
5
6
6
7
public class PaymentIntentTransferData : StripeEntity
7
8
{
8
- [ JsonProperty ( "amount" ) ]
9
- public long Amount { get ; set ; }
10
-
11
9
#region Expandable Destination (Account)
12
10
[ JsonIgnore ]
13
11
public string DestinationId { get ; set ; }
@@ -29,5 +27,9 @@ internal object InternalDestination
29
27
}
30
28
}
31
29
#endregion
30
+
31
+ [ Obsolete ( "Use ApplicationFeeAmount instead" ) ]
32
+ [ JsonProperty ( "amount" ) ]
33
+ public long ? Amount { get ; set ; }
32
34
}
33
35
}
Original file line number Diff line number Diff line change @@ -6,6 +6,13 @@ namespace Stripe
6
6
7
7
public class PaymentIntentConfirmOptions : BaseOptions
8
8
{
9
+ /// <summary>
10
+ /// The client secret of the PaymentIntent. Required if a publishable key is used to
11
+ /// confirm the payment intent.
12
+ /// </summary>
13
+ [ JsonProperty ( "client_secret" ) ]
14
+ public string ClientSecret { get ; set ; }
15
+
9
16
[ JsonProperty ( "invoice" ) ]
10
17
public string Invoice { get ; set ; }
11
18
@@ -21,6 +28,9 @@ public class PaymentIntentConfirmOptions : BaseOptions
21
28
[ JsonProperty ( "save_payment_method" ) ]
22
29
public bool ? SavePaymentMethod { get ; set ; }
23
30
31
+ [ JsonProperty ( "shipping" ) ]
32
+ public ChargeShippingOptions Shipping { get ; set ; }
33
+
24
34
[ JsonProperty ( "source" ) ]
25
35
public string SourceId { get ; set ; }
26
36
}
Original file line number Diff line number Diff line change @@ -5,18 +5,15 @@ namespace Stripe
5
5
6
6
public class PaymentIntentCreateOptions : PaymentIntentSharedOptions
7
7
{
8
- [ JsonProperty ( "confirm" ) ]
9
- public bool ? Confirm { get ; set ; }
10
-
11
8
[ JsonProperty ( "capture_method" ) ]
12
9
public string CaptureMethod { get ; set ; }
13
10
11
+ [ JsonProperty ( "confirm" ) ]
12
+ public bool ? Confirm { get ; set ; }
13
+
14
14
[ JsonProperty ( "return_url" ) ]
15
15
public string ReturnUrl { get ; set ; }
16
16
17
- [ JsonProperty ( "shipping" ) ]
18
- public ChargeShippingOptions Shipping { get ; set ; }
19
-
20
17
[ JsonProperty ( "statement_descriptor" ) ]
21
18
public string StatementDescriptor { get ; set ; }
22
19
}
Original file line number Diff line number Diff line change @@ -27,15 +27,18 @@ public class PaymentIntentSharedOptions : BaseOptions
27
27
[ JsonProperty ( "on_behalf_of" ) ]
28
28
public string OnBehalfOf { get ; set ; }
29
29
30
- [ JsonProperty ( "payment_method_types" ) ]
31
- public List < string > PaymentMethodTypes { get ; set ; }
32
-
33
30
[ JsonProperty ( "receipt_email" ) ]
34
31
public string ReceiptEmail { get ; set ; }
35
32
33
+ [ JsonProperty ( "payment_method_types" ) ]
34
+ public List < string > PaymentMethodTypes { get ; set ; }
35
+
36
36
[ JsonProperty ( "save_payment_method" ) ]
37
37
public bool ? SavePaymentMethod { get ; set ; }
38
38
39
+ [ JsonProperty ( "shipping" ) ]
40
+ public ChargeShippingOptions Shipping { get ; set ; }
41
+
39
42
[ JsonProperty ( "source" ) ]
40
43
public string SourceId { get ; set ; }
41
44
Original file line number Diff line number Diff line change 1
1
namespace Stripe
2
2
{
3
+ using System ;
3
4
using Newtonsoft . Json ;
4
5
5
6
public class PaymentIntentTransferDataOptions : INestedOptions
6
7
{
7
- [ JsonProperty ( "amount" ) ]
8
- public long ? Amount { get ; set ; }
9
-
10
8
// This is only available on creation and not update
11
9
[ JsonProperty ( "destination" ) ]
12
10
public string Destination { get ; set ; }
11
+
12
+ [ Obsolete ( "Use ApplicationFeeAmount instead" ) ]
13
+ [ JsonProperty ( "amount" ) ]
14
+ public long ? Amount { get ; set ; }
13
15
}
14
16
}
You can’t perform that action at this time.
0 commit comments