stripe 17.1.0.pre.alpha.2 → 17.1.0.pre.alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/object_types.rb +2 -0
  3. data/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +18 -0
  4. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +15 -0
  5. data/lib/stripe/params/delegated_checkout/requested_session_expire_params.rb +15 -0
  6. data/lib/stripe/params/delegated_checkout/requested_session_retrieve_params.rb +15 -0
  7. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +15 -0
  8. data/lib/stripe/params/identity/blocklist_entry_create_params.rb +29 -0
  9. data/lib/stripe/params/identity/blocklist_entry_disable_params.rb +15 -0
  10. data/lib/stripe/params/identity/blocklist_entry_list_params.rb +62 -0
  11. data/lib/stripe/params/identity/blocklist_entry_retrieve_params.rb +15 -0
  12. data/lib/stripe/params/identity/verification_report_list_params.rb +4 -0
  13. data/lib/stripe/params.rb +9 -0
  14. data/lib/stripe/resources/delegated_checkout/requested_session.rb +107 -0
  15. data/lib/stripe/resources/identity/blocklist_entry.rb +116 -0
  16. data/lib/stripe/resources/identity/verification_report.rb +4 -0
  17. data/lib/stripe/resources.rb +2 -0
  18. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +63 -0
  19. data/lib/stripe/services/delegated_checkout_service.rb +13 -0
  20. data/lib/stripe/services/identity/blocklist_entry_service.rb +71 -0
  21. data/lib/stripe/services/identity_service.rb +2 -1
  22. data/lib/stripe/services/v1_services.rb +2 -1
  23. data/lib/stripe/services.rb +3 -0
  24. data/lib/stripe/version.rb +1 -1
  25. data/rbi/stripe.rbi +495 -1
  26. metadata +15 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c8f68fdbcd3a872f55548e1fd5d1183ae60ba5a38ee5e9b46fdaefc5eda96b9
4
- data.tar.gz: 6786509799e12e695b99bd64101882a093a15dfd4ef2acae83d04ef73b86a294
3
+ metadata.gz: bad6b2dc86d6faf74d1d7cad6d2d35a1d0b925d0cbedad6c6330d8836ac432fb
4
+ data.tar.gz: caa94896b3b153a1ec9298b7a37e244c5f86210f2b9842075afc89960cab197c
5
5
  SHA512:
6
- metadata.gz: 823fd911752510560ef0e26482ddd3fdefa81805464fd2562f5a4c179f29506802dd5ab760325037ace38dd3c8b378c30935105511870dd954ee560783fdbfd4
7
- data.tar.gz: 65e5ba225b3f13b8c076f944f31994048285b72b55e029089f6e8f77d37972a093333f60acffb2e7e9808b04eb650fe559d9e45ac25079afd10c2db76484b9e3
6
+ metadata.gz: 4b687ecdc1a8750128e15a4dfd203ad5d5794886783e86aef7372522f837007099748cba30650fd1d0e7827910fb2436a26ca275f8c74fe8bc99eae032e85ff4
7
+ data.tar.gz: 6e0b960c852b8477cb955a2fbab9e8f127d23fe5fc4d505e62b88009aeb93c12deb6beca105f2db46d5fa8b25500b390741b0aa4a1e67d80ce11e734f468d896
@@ -59,6 +59,7 @@ module Stripe
59
59
  CustomerBalanceTransaction.object_name => CustomerBalanceTransaction,
60
60
  CustomerCashBalanceTransaction.object_name => CustomerCashBalanceTransaction,
61
61
  CustomerSession.object_name => CustomerSession,
62
+ DelegatedCheckout::RequestedSession.object_name => DelegatedCheckout::RequestedSession,
62
63
  Discount.object_name => Discount,
63
64
  Dispute.object_name => Dispute,
64
65
  Entitlements::ActiveEntitlement.object_name => Entitlements::ActiveEntitlement,
@@ -80,6 +81,7 @@ module Stripe
80
81
  Forwarding::Request.object_name => Forwarding::Request,
81
82
  FundingInstructions.object_name => FundingInstructions,
82
83
  FxQuote.object_name => FxQuote,
84
+ Identity::BlocklistEntry.object_name => Identity::BlocklistEntry,
83
85
  Identity::VerificationReport.object_name => Identity::VerificationReport,
84
86
  Identity::VerificationSession.object_name => Identity::VerificationSession,
85
87
  Invoice.object_name => Invoice,
@@ -0,0 +1,18 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module DelegatedCheckout
6
+ class RequestedSessionConfirmParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+ # The PaymentMethod to use with the requested session.
10
+ attr_accessor :payment_method
11
+
12
+ def initialize(expand: nil, payment_method: nil)
13
+ @expand = expand
14
+ @payment_method = payment_method
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module DelegatedCheckout
6
+ class RequestedSessionCreateParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module DelegatedCheckout
6
+ class RequestedSessionExpireParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module DelegatedCheckout
6
+ class RequestedSessionRetrieveParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module DelegatedCheckout
6
+ class RequestedSessionUpdateParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,29 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Identity
6
+ class BlocklistEntryCreateParams < ::Stripe::RequestParams
7
+ # When true, the created BlocklistEntry will be used to retroactively unverify matching verifications.
8
+ attr_accessor :check_existing_verifications
9
+ # The type of blocklist entry to be created.
10
+ attr_accessor :entry_type
11
+ # Specifies which fields in the response should be expanded.
12
+ attr_accessor :expand
13
+ # The identifier of the VerificationReport to create the BlocklistEntry from.
14
+ attr_accessor :verification_report
15
+
16
+ def initialize(
17
+ check_existing_verifications: nil,
18
+ entry_type: nil,
19
+ expand: nil,
20
+ verification_report: nil
21
+ )
22
+ @check_existing_verifications = check_existing_verifications
23
+ @entry_type = entry_type
24
+ @expand = expand
25
+ @verification_report = verification_report
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Identity
6
+ class BlocklistEntryDisableParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,62 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Identity
6
+ class BlocklistEntryListParams < ::Stripe::RequestParams
7
+ class Created < ::Stripe::RequestParams
8
+ # Minimum value to filter by (exclusive)
9
+ attr_accessor :gt
10
+ # Minimum value to filter by (inclusive)
11
+ attr_accessor :gte
12
+ # Maximum value to filter by (exclusive)
13
+ attr_accessor :lt
14
+ # Maximum value to filter by (inclusive)
15
+ attr_accessor :lte
16
+
17
+ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
18
+ @gt = gt
19
+ @gte = gte
20
+ @lt = lt
21
+ @lte = lte
22
+ end
23
+ end
24
+ # Only return BlocklistEntries that were created during the given date interval.
25
+ attr_accessor :created
26
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
27
+ attr_accessor :ending_before
28
+ # Specifies which fields in the response should be expanded.
29
+ attr_accessor :expand
30
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
31
+ attr_accessor :limit
32
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
33
+ attr_accessor :starting_after
34
+ # Only return blocklist entries with the specified status.
35
+ attr_accessor :status
36
+ # Only return blocklist entries of the specified type.
37
+ attr_accessor :type
38
+ # Only return blocklist entries created from this verification report.
39
+ attr_accessor :verification_report
40
+
41
+ def initialize(
42
+ created: nil,
43
+ ending_before: nil,
44
+ expand: nil,
45
+ limit: nil,
46
+ starting_after: nil,
47
+ status: nil,
48
+ type: nil,
49
+ verification_report: nil
50
+ )
51
+ @created = created
52
+ @ending_before = ending_before
53
+ @expand = expand
54
+ @limit = limit
55
+ @starting_after = starting_after
56
+ @status = status
57
+ @type = type
58
+ @verification_report = verification_report
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Identity
6
+ class BlocklistEntryRetrieveParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -21,6 +21,8 @@ module Stripe
21
21
  @lte = lte
22
22
  end
23
23
  end
24
+ # Only return VerificationReports that were blocked by this BlocklistEntry id.
25
+ attr_accessor :blocked_by_entry
24
26
  # A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
25
27
  attr_accessor :client_reference_id
26
28
  # Only return VerificationReports that were created during the given date interval.
@@ -39,6 +41,7 @@ module Stripe
39
41
  attr_accessor :verification_session
40
42
 
41
43
  def initialize(
44
+ blocked_by_entry: nil,
42
45
  client_reference_id: nil,
43
46
  created: nil,
44
47
  ending_before: nil,
@@ -48,6 +51,7 @@ module Stripe
48
51
  type: nil,
49
52
  verification_session: nil
50
53
  )
54
+ @blocked_by_entry = blocked_by_entry
51
55
  @client_reference_id = client_reference_id
52
56
  @created = created
53
57
  @ending_before = ending_before
data/lib/stripe/params.rb CHANGED
@@ -156,6 +156,11 @@ require "stripe/params/customer_tax_id_delete_params"
156
156
  require "stripe/params/customer_tax_id_list_params"
157
157
  require "stripe/params/customer_tax_id_retrieve_params"
158
158
  require "stripe/params/customer_update_params"
159
+ require "stripe/params/delegated_checkout/requested_session_confirm_params"
160
+ require "stripe/params/delegated_checkout/requested_session_create_params"
161
+ require "stripe/params/delegated_checkout/requested_session_expire_params"
162
+ require "stripe/params/delegated_checkout/requested_session_retrieve_params"
163
+ require "stripe/params/delegated_checkout/requested_session_update_params"
159
164
  require "stripe/params/dispute_close_params"
160
165
  require "stripe/params/dispute_list_params"
161
166
  require "stripe/params/dispute_retrieve_params"
@@ -206,6 +211,10 @@ require "stripe/params/forwarding/request_retrieve_params"
206
211
  require "stripe/params/fx_quote_create_params"
207
212
  require "stripe/params/fx_quote_list_params"
208
213
  require "stripe/params/fx_quote_retrieve_params"
214
+ require "stripe/params/identity/blocklist_entry_create_params"
215
+ require "stripe/params/identity/blocklist_entry_disable_params"
216
+ require "stripe/params/identity/blocklist_entry_list_params"
217
+ require "stripe/params/identity/blocklist_entry_retrieve_params"
209
218
  require "stripe/params/identity/verification_report_list_params"
210
219
  require "stripe/params/identity/verification_report_retrieve_params"
211
220
  require "stripe/params/identity/verification_session_cancel_params"
@@ -0,0 +1,107 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module DelegatedCheckout
6
+ # A requested session is a session that has been requested by a customer.
7
+ class RequestedSession < APIResource
8
+ extend Stripe::APIOperations::Create
9
+ include Stripe::APIOperations::Save
10
+
11
+ OBJECT_NAME = "delegated_checkout.requested_session"
12
+ def self.object_name
13
+ "delegated_checkout.requested_session"
14
+ end
15
+
16
+ class FulfillmentDetails < ::Stripe::StripeObject
17
+ def self.inner_class_types
18
+ @inner_class_types = {}
19
+ end
20
+
21
+ def self.field_remappings
22
+ @field_remappings = {}
23
+ end
24
+ end
25
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
26
+ attr_reader :currency
27
+ # The customer for this requested session.
28
+ attr_reader :customer
29
+ # Attribute for field fulfillment_details
30
+ attr_reader :fulfillment_details
31
+ # Unique identifier for the object.
32
+ attr_reader :id
33
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
34
+ attr_reader :livemode
35
+ # String representing the object's type. Objects of the same type share the same value.
36
+ attr_reader :object
37
+
38
+ # Confirms a requested session
39
+ def confirm(params = {}, opts = {})
40
+ request_stripe_object(
41
+ method: :post,
42
+ path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/confirm", { requested_session: CGI.escape(self["id"]) }),
43
+ params: params,
44
+ opts: opts
45
+ )
46
+ end
47
+
48
+ # Confirms a requested session
49
+ def self.confirm(requested_session, params = {}, opts = {})
50
+ request_stripe_object(
51
+ method: :post,
52
+ path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/confirm", { requested_session: CGI.escape(requested_session) }),
53
+ params: params,
54
+ opts: opts
55
+ )
56
+ end
57
+
58
+ # Creates a requested session
59
+ def self.create(params = {}, opts = {})
60
+ request_stripe_object(
61
+ method: :post,
62
+ path: "/v1/delegated_checkout/requested_sessions",
63
+ params: params,
64
+ opts: opts
65
+ )
66
+ end
67
+
68
+ # Expires a requested session
69
+ def expire(params = {}, opts = {})
70
+ request_stripe_object(
71
+ method: :post,
72
+ path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/expire", { requested_session: CGI.escape(self["id"]) }),
73
+ params: params,
74
+ opts: opts
75
+ )
76
+ end
77
+
78
+ # Expires a requested session
79
+ def self.expire(requested_session, params = {}, opts = {})
80
+ request_stripe_object(
81
+ method: :post,
82
+ path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/expire", { requested_session: CGI.escape(requested_session) }),
83
+ params: params,
84
+ opts: opts
85
+ )
86
+ end
87
+
88
+ # Updates a requested session
89
+ def self.update(requested_session, params = {}, opts = {})
90
+ request_stripe_object(
91
+ method: :post,
92
+ path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s", { requested_session: CGI.escape(requested_session) }),
93
+ params: params,
94
+ opts: opts
95
+ )
96
+ end
97
+
98
+ def self.inner_class_types
99
+ @inner_class_types = { fulfillment_details: FulfillmentDetails }
100
+ end
101
+
102
+ def self.field_remappings
103
+ @field_remappings = {}
104
+ end
105
+ end
106
+ end
107
+ end
@@ -0,0 +1,116 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Identity
6
+ # A BlocklistEntry represents an entry in our identity verification blocklist.
7
+ # It helps prevent fraudulent users from repeatedly attempting verification with similar information.
8
+ # When you create a BlocklistEntry, we store data from a specified VerificationReport,
9
+ # such as document details or facial biometrics.
10
+ # This allows us to compare future verification attempts against these entries.
11
+ # If a match is found, we categorize the new verification as unverified.
12
+ #
13
+ # To learn more, see [Identity Verification Blocklist](https://stripe.com/docs/identity/review-tools#block-list)
14
+ class BlocklistEntry < APIResource
15
+ extend Stripe::APIOperations::Create
16
+ extend Stripe::APIOperations::List
17
+
18
+ OBJECT_NAME = "identity.blocklist_entry"
19
+ def self.object_name
20
+ "identity.blocklist_entry"
21
+ end
22
+
23
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
24
+ attr_reader :created
25
+ # Time at which you disabled the BlocklistEntry. Measured in seconds since the Unix epoch.
26
+ attr_reader :disabled_at
27
+ # Time at which the BlocklistEntry expires. Measured in seconds since the Unix epoch.
28
+ attr_reader :expires_at
29
+ # Unique identifier for the object.
30
+ attr_reader :id
31
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
32
+ attr_reader :livemode
33
+ # String representing the object's type. Objects of the same type share the same value.
34
+ attr_reader :object
35
+ # The current status of the BlocklistEntry.
36
+ attr_reader :status
37
+ # The type of BlocklistEntry.
38
+ attr_reader :type
39
+ # The verification report the BlocklistEntry was created from.
40
+ attr_reader :verification_report
41
+ # The verification session the BlocklistEntry was created from.
42
+ attr_reader :verification_session
43
+
44
+ # Creates a BlocklistEntry object from a verification report.
45
+ #
46
+ # A blocklist entry prevents future identity verifications that match the same identity information.
47
+ # You can create blocklist entries from verification reports that contain document extracted data
48
+ # or a selfie.
49
+ #
50
+ # Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#add-a-blocklist-entry)
51
+ def self.create(params = {}, opts = {})
52
+ request_stripe_object(
53
+ method: :post,
54
+ path: "/v1/identity/blocklist_entries",
55
+ params: params,
56
+ opts: opts
57
+ )
58
+ end
59
+
60
+ # Disables a BlocklistEntry object.
61
+ #
62
+ # After a BlocklistEntry is disabled, it will no longer block future verifications that match
63
+ # the same information. This action is irreversible. To re-enable it, a new BlocklistEntry
64
+ # must be created using the same verification report.
65
+ #
66
+ # Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#disable-a-blocklist-entry)
67
+ def disable(params = {}, opts = {})
68
+ request_stripe_object(
69
+ method: :post,
70
+ path: format("/v1/identity/blocklist_entries/%<id>s/disable", { id: CGI.escape(self["id"]) }),
71
+ params: params,
72
+ opts: opts
73
+ )
74
+ end
75
+
76
+ # Disables a BlocklistEntry object.
77
+ #
78
+ # After a BlocklistEntry is disabled, it will no longer block future verifications that match
79
+ # the same information. This action is irreversible. To re-enable it, a new BlocklistEntry
80
+ # must be created using the same verification report.
81
+ #
82
+ # Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#disable-a-blocklist-entry)
83
+ def self.disable(id, params = {}, opts = {})
84
+ request_stripe_object(
85
+ method: :post,
86
+ path: format("/v1/identity/blocklist_entries/%<id>s/disable", { id: CGI.escape(id) }),
87
+ params: params,
88
+ opts: opts
89
+ )
90
+ end
91
+
92
+ # Returns a list of BlocklistEntry objects associated with your account.
93
+ #
94
+ # The blocklist entries are returned sorted by creation date, with the most recently created
95
+ # entries appearing first.
96
+ #
97
+ # Related guide: [Identity Verification Blocklist](https://docs.stripe.com/docs/identity/review-tools#block-list)
98
+ def self.list(params = {}, opts = {})
99
+ request_stripe_object(
100
+ method: :get,
101
+ path: "/v1/identity/blocklist_entries",
102
+ params: params,
103
+ opts: opts
104
+ )
105
+ end
106
+
107
+ def self.inner_class_types
108
+ @inner_class_types = {}
109
+ end
110
+
111
+ def self.field_remappings
112
+ @field_remappings = {}
113
+ end
114
+ end
115
+ end
116
+ end
@@ -141,6 +141,8 @@ module Stripe
141
141
  attr_reader :unparsed_place_of_birth
142
142
  # Sex as it appears in the document.
143
143
  attr_reader :unparsed_sex
144
+ # If document was not verified due to extracted data being on the blocklist, this is the token of the BlocklistEntry that blocked it
145
+ attr_reader :blocked_by_entry
144
146
 
145
147
  def self.inner_class_types
146
148
  @inner_class_types = {
@@ -341,6 +343,8 @@ module Stripe
341
343
  attr_reader :selfie
342
344
  # Status of this `selfie` check.
343
345
  attr_reader :status
346
+ # If selfie was not verified due to being on the blocklist, this is the token of the BlocklistEntry that blocked it
347
+ attr_reader :blocked_by_entry
344
348
 
345
349
  def self.inner_class_types
346
350
  @inner_class_types = { error: Error }
@@ -48,6 +48,7 @@ require "stripe/resources/customer"
48
48
  require "stripe/resources/customer_balance_transaction"
49
49
  require "stripe/resources/customer_cash_balance_transaction"
50
50
  require "stripe/resources/customer_session"
51
+ require "stripe/resources/delegated_checkout/requested_session"
51
52
  require "stripe/resources/discount"
52
53
  require "stripe/resources/dispute"
53
54
  require "stripe/resources/entitlements/active_entitlement"
@@ -68,6 +69,7 @@ require "stripe/resources/financial_connections/transaction"
68
69
  require "stripe/resources/forwarding/request"
69
70
  require "stripe/resources/funding_instructions"
70
71
  require "stripe/resources/fx_quote"
72
+ require "stripe/resources/identity/blocklist_entry"
71
73
  require "stripe/resources/identity/verification_report"
72
74
  require "stripe/resources/identity/verification_session"
73
75
  require "stripe/resources/invoice"
@@ -0,0 +1,63 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module DelegatedCheckout
6
+ class RequestedSessionService < StripeService
7
+ # Confirms a requested session
8
+ def confirm(requested_session, params = {}, opts = {})
9
+ request(
10
+ method: :post,
11
+ path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/confirm", { requested_session: CGI.escape(requested_session) }),
12
+ params: params,
13
+ opts: opts,
14
+ base_address: :api
15
+ )
16
+ end
17
+
18
+ # Creates a requested session
19
+ def create(params = {}, opts = {})
20
+ request(
21
+ method: :post,
22
+ path: "/v1/delegated_checkout/requested_sessions",
23
+ params: params,
24
+ opts: opts,
25
+ base_address: :api
26
+ )
27
+ end
28
+
29
+ # Expires a requested session
30
+ def expire(requested_session, params = {}, opts = {})
31
+ request(
32
+ method: :post,
33
+ path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s/expire", { requested_session: CGI.escape(requested_session) }),
34
+ params: params,
35
+ opts: opts,
36
+ base_address: :api
37
+ )
38
+ end
39
+
40
+ # Retrieves a requested session
41
+ def retrieve(requested_session, params = {}, opts = {})
42
+ request(
43
+ method: :get,
44
+ path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s", { requested_session: CGI.escape(requested_session) }),
45
+ params: params,
46
+ opts: opts,
47
+ base_address: :api
48
+ )
49
+ end
50
+
51
+ # Updates a requested session
52
+ def update(requested_session, params = {}, opts = {})
53
+ request(
54
+ method: :post,
55
+ path: format("/v1/delegated_checkout/requested_sessions/%<requested_session>s", { requested_session: CGI.escape(requested_session) }),
56
+ params: params,
57
+ opts: opts,
58
+ base_address: :api
59
+ )
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class DelegatedCheckoutService < StripeService
6
+ attr_reader :requested_sessions
7
+
8
+ def initialize(requestor)
9
+ super
10
+ @requested_sessions = Stripe::DelegatedCheckout::RequestedSessionService.new(@requestor)
11
+ end
12
+ end
13
+ end