stripe 10.5.0.pre.beta.1 → 10.6.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/resources/account.rb +8 -0
  6. data/lib/stripe/resources/apps/secret.rb +2 -0
  7. data/lib/stripe/resources/capital/financing_offer.rb +4 -0
  8. data/lib/stripe/resources/charge.rb +10 -0
  9. data/lib/stripe/resources/checkout/session.rb +8 -0
  10. data/lib/stripe/resources/climate/order.rb +8 -0
  11. data/lib/stripe/resources/credit_note.rb +4 -0
  12. data/lib/stripe/resources/customer.rb +16 -0
  13. data/lib/stripe/resources/dispute.rb +6 -0
  14. data/lib/stripe/resources/financial_connections/account.rb +10 -0
  15. data/lib/stripe/resources/gift_cards/card.rb +1 -0
  16. data/lib/stripe/resources/gift_cards/transaction.rb +4 -0
  17. data/lib/stripe/resources/identity/verification_session.rb +44 -0
  18. data/lib/stripe/resources/invoice.rb +38 -0
  19. data/lib/stripe/resources/issuing/authorization.rb +17 -0
  20. data/lib/stripe/resources/issuing/card.rb +8 -0
  21. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +6 -0
  22. data/lib/stripe/resources/issuing/dispute.rb +2 -0
  23. data/lib/stripe/resources/issuing/personalization_design.rb +6 -0
  24. data/lib/stripe/resources/issuing/transaction.rb +4 -0
  25. data/lib/stripe/resources/order.rb +8 -0
  26. data/lib/stripe/resources/payment_intent.rb +118 -0
  27. data/lib/stripe/resources/payment_link.rb +2 -0
  28. data/lib/stripe/resources/payment_method.rb +28 -0
  29. data/lib/stripe/resources/payment_method_domain.rb +12 -0
  30. data/lib/stripe/resources/payout.rb +8 -0
  31. data/lib/stripe/resources/quote.rb +22 -0
  32. data/lib/stripe/resources/quote_phase.rb +2 -0
  33. data/lib/stripe/resources/refund.rb +8 -0
  34. data/lib/stripe/resources/review.rb +2 -0
  35. data/lib/stripe/resources/setup_intent.rb +36 -0
  36. data/lib/stripe/resources/source.rb +2 -0
  37. data/lib/stripe/resources/subscription.rb +14 -0
  38. data/lib/stripe/resources/subscription_schedule.rb +6 -0
  39. data/lib/stripe/resources/tax/calculation.rb +2 -0
  40. data/lib/stripe/resources/tax/form.rb +2 -0
  41. data/lib/stripe/resources/tax/transaction.rb +4 -0
  42. data/lib/stripe/resources/terminal/reader.rb +18 -0
  43. data/lib/stripe/resources/test_helpers/test_clock.rb +2 -0
  44. data/lib/stripe/resources/topup.rb +2 -0
  45. data/lib/stripe/resources/treasury/financial_account.rb +4 -0
  46. data/lib/stripe/resources/treasury/inbound_transfer.rb +8 -0
  47. data/lib/stripe/resources/treasury/outbound_payment.rb +8 -0
  48. data/lib/stripe/resources/treasury/outbound_transfer.rb +8 -0
  49. data/lib/stripe/resources/treasury/received_credit.rb +1 -0
  50. data/lib/stripe/resources/treasury/received_debit.rb +1 -0
  51. data/lib/stripe/version.rb +1 -1
  52. metadata +2 -2
@@ -14,6 +14,7 @@ module Stripe
14
14
 
15
15
  OBJECT_NAME = "topup"
16
16
 
17
+ # Cancels a top-up. Only pending top-ups can be canceled.
17
18
  def cancel(params = {}, opts = {})
18
19
  request_stripe_object(
19
20
  method: :post,
@@ -23,6 +24,7 @@ module Stripe
23
24
  )
24
25
  end
25
26
 
27
+ # Cancels a top-up. Only pending top-ups can be canceled.
26
28
  def self.cancel(topup, params = {}, opts = {})
27
29
  request_stripe_object(
28
30
  method: :post,
@@ -12,6 +12,7 @@ module Stripe
12
12
 
13
13
  OBJECT_NAME = "treasury.financial_account"
14
14
 
15
+ # Retrieves Features information associated with the FinancialAccount.
15
16
  def retrieve_features(params = {}, opts = {})
16
17
  request_stripe_object(
17
18
  method: :get,
@@ -21,6 +22,7 @@ module Stripe
21
22
  )
22
23
  end
23
24
 
25
+ # Updates the Features associated with a FinancialAccount.
24
26
  def update_features(params = {}, opts = {})
25
27
  request_stripe_object(
26
28
  method: :post,
@@ -30,6 +32,7 @@ module Stripe
30
32
  )
31
33
  end
32
34
 
35
+ # Retrieves Features information associated with the FinancialAccount.
33
36
  def self.retrieve_features(financial_account, params = {}, opts = {})
34
37
  request_stripe_object(
35
38
  method: :get,
@@ -39,6 +42,7 @@ module Stripe
39
42
  )
40
43
  end
41
44
 
45
+ # Updates the Features associated with a FinancialAccount.
42
46
  def self.update_features(financial_account, params = {}, opts = {})
43
47
  request_stripe_object(
44
48
  method: :post,
@@ -10,6 +10,7 @@ module Stripe
10
10
 
11
11
  OBJECT_NAME = "treasury.inbound_transfer"
12
12
 
13
+ # Cancels an InboundTransfer.
13
14
  def cancel(params = {}, opts = {})
14
15
  request_stripe_object(
15
16
  method: :post,
@@ -19,6 +20,7 @@ module Stripe
19
20
  )
20
21
  end
21
22
 
23
+ # Cancels an InboundTransfer.
22
24
  def self.cancel(inbound_transfer, params = {}, opts = {})
23
25
  request_stripe_object(
24
26
  method: :post,
@@ -35,6 +37,7 @@ module Stripe
35
37
  class TestHelpers < APIResourceTestHelpers
36
38
  RESOURCE_CLASS = InboundTransfer
37
39
 
40
+ # Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
38
41
  def self.fail(id, params = {}, opts = {})
39
42
  request_stripe_object(
40
43
  method: :post,
@@ -44,6 +47,7 @@ module Stripe
44
47
  )
45
48
  end
46
49
 
50
+ # Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
47
51
  def self.return_inbound_transfer(id, params = {}, opts = {})
48
52
  request_stripe_object(
49
53
  method: :post,
@@ -53,6 +57,7 @@ module Stripe
53
57
  )
54
58
  end
55
59
 
60
+ # Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
56
61
  def self.succeed(id, params = {}, opts = {})
57
62
  request_stripe_object(
58
63
  method: :post,
@@ -62,6 +67,7 @@ module Stripe
62
67
  )
63
68
  end
64
69
 
70
+ # Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
65
71
  def fail(params = {}, opts = {})
66
72
  @resource.request_stripe_object(
67
73
  method: :post,
@@ -71,6 +77,7 @@ module Stripe
71
77
  )
72
78
  end
73
79
 
80
+ # Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
74
81
  def return_inbound_transfer(params = {}, opts = {})
75
82
  @resource.request_stripe_object(
76
83
  method: :post,
@@ -80,6 +87,7 @@ module Stripe
80
87
  )
81
88
  end
82
89
 
90
+ # Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
83
91
  def succeed(params = {}, opts = {})
84
92
  @resource.request_stripe_object(
85
93
  method: :post,
@@ -12,6 +12,7 @@ module Stripe
12
12
 
13
13
  OBJECT_NAME = "treasury.outbound_payment"
14
14
 
15
+ # Cancel an OutboundPayment.
15
16
  def cancel(params = {}, opts = {})
16
17
  request_stripe_object(
17
18
  method: :post,
@@ -21,6 +22,7 @@ module Stripe
21
22
  )
22
23
  end
23
24
 
25
+ # Cancel an OutboundPayment.
24
26
  def self.cancel(id, params = {}, opts = {})
25
27
  request_stripe_object(
26
28
  method: :post,
@@ -37,6 +39,7 @@ module Stripe
37
39
  class TestHelpers < APIResourceTestHelpers
38
40
  RESOURCE_CLASS = OutboundPayment
39
41
 
42
+ # Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
40
43
  def self.fail(id, params = {}, opts = {})
41
44
  request_stripe_object(
42
45
  method: :post,
@@ -46,6 +49,7 @@ module Stripe
46
49
  )
47
50
  end
48
51
 
52
+ # Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
49
53
  def self.post(id, params = {}, opts = {})
50
54
  request_stripe_object(
51
55
  method: :post,
@@ -55,6 +59,7 @@ module Stripe
55
59
  )
56
60
  end
57
61
 
62
+ # Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
58
63
  def self.return_outbound_payment(id, params = {}, opts = {})
59
64
  request_stripe_object(
60
65
  method: :post,
@@ -64,6 +69,7 @@ module Stripe
64
69
  )
65
70
  end
66
71
 
72
+ # Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
67
73
  def fail(params = {}, opts = {})
68
74
  @resource.request_stripe_object(
69
75
  method: :post,
@@ -73,6 +79,7 @@ module Stripe
73
79
  )
74
80
  end
75
81
 
82
+ # Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
76
83
  def post(params = {}, opts = {})
77
84
  @resource.request_stripe_object(
78
85
  method: :post,
@@ -82,6 +89,7 @@ module Stripe
82
89
  )
83
90
  end
84
91
 
92
+ # Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
85
93
  def return_outbound_payment(params = {}, opts = {})
86
94
  @resource.request_stripe_object(
87
95
  method: :post,
@@ -12,6 +12,7 @@ module Stripe
12
12
 
13
13
  OBJECT_NAME = "treasury.outbound_transfer"
14
14
 
15
+ # An OutboundTransfer can be canceled if the funds have not yet been paid out.
15
16
  def cancel(params = {}, opts = {})
16
17
  request_stripe_object(
17
18
  method: :post,
@@ -21,6 +22,7 @@ module Stripe
21
22
  )
22
23
  end
23
24
 
25
+ # An OutboundTransfer can be canceled if the funds have not yet been paid out.
24
26
  def self.cancel(outbound_transfer, params = {}, opts = {})
25
27
  request_stripe_object(
26
28
  method: :post,
@@ -37,6 +39,7 @@ module Stripe
37
39
  class TestHelpers < APIResourceTestHelpers
38
40
  RESOURCE_CLASS = OutboundTransfer
39
41
 
42
+ # Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
40
43
  def self.fail(outbound_transfer, params = {}, opts = {})
41
44
  request_stripe_object(
42
45
  method: :post,
@@ -46,6 +49,7 @@ module Stripe
46
49
  )
47
50
  end
48
51
 
52
+ # Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
49
53
  def self.post(outbound_transfer, params = {}, opts = {})
50
54
  request_stripe_object(
51
55
  method: :post,
@@ -55,6 +59,7 @@ module Stripe
55
59
  )
56
60
  end
57
61
 
62
+ # Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
58
63
  def self.return_outbound_transfer(outbound_transfer, params = {}, opts = {})
59
64
  request_stripe_object(
60
65
  method: :post,
@@ -64,6 +69,7 @@ module Stripe
64
69
  )
65
70
  end
66
71
 
72
+ # Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
67
73
  def fail(params = {}, opts = {})
68
74
  @resource.request_stripe_object(
69
75
  method: :post,
@@ -73,6 +79,7 @@ module Stripe
73
79
  )
74
80
  end
75
81
 
82
+ # Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
76
83
  def post(params = {}, opts = {})
77
84
  @resource.request_stripe_object(
78
85
  method: :post,
@@ -82,6 +89,7 @@ module Stripe
82
89
  )
83
90
  end
84
91
 
92
+ # Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
85
93
  def return_outbound_transfer(params = {}, opts = {})
86
94
  @resource.request_stripe_object(
87
95
  method: :post,
@@ -16,6 +16,7 @@ module Stripe
16
16
  class TestHelpers < APIResourceTestHelpers
17
17
  RESOURCE_CLASS = ReceivedCredit
18
18
 
19
+ # Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredits initiated by third parties.
19
20
  def self.create(params = {}, opts = {})
20
21
  request_stripe_object(
21
22
  method: :post,
@@ -16,6 +16,7 @@ module Stripe
16
16
  class TestHelpers < APIResourceTestHelpers
17
17
  RESOURCE_CLASS = ReceivedDebit
18
18
 
19
+ # Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebits initiated by third parties.
19
20
  def self.create(params = {}, opts = {})
20
21
  request_stripe_object(
21
22
  method: :post,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "10.5.0-beta.1"
4
+ VERSION = "10.6.0-beta.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.5.0.pre.beta.1
4
+ version: 10.6.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-22 00:00:00.000000000 Z
11
+ date: 2024-01-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
14
14
  for details.