-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update generated code for v1317 * Update generated code for v1318 * Update generated code for v1318 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: prathmesh-stripe <[email protected]>
- Loading branch information
1 parent
fb11d83
commit 484f974
Showing
17 changed files
with
160 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v1268 | ||
v1318 |
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
|
||
module Stripe | ||
module ApiVersion | ||
CURRENT = "2024-09-30.acacia" | ||
CURRENT = "2024-10-28.acacia" | ||
end | ||
end |
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
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
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
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
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
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
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
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
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,13 @@ | ||
# File generated from our OpenAPI spec | ||
# frozen_string_literal: true | ||
|
||
module Stripe | ||
module V2 | ||
class EventDestination < APIResource | ||
OBJECT_NAME = "v2.core.event_destination" | ||
def self.object_name | ||
"v2.core.event_destination" | ||
end | ||
end | ||
end | ||
end |
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
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
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
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
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,98 @@ | ||
# File generated from our OpenAPI spec | ||
# frozen_string_literal: true | ||
|
||
module Stripe | ||
module V2 | ||
module Core | ||
class EventDestinationService < StripeService | ||
# Create a new event destination. | ||
def create(params = {}, opts = {}) | ||
request( | ||
method: :post, | ||
path: "/v2/core/event_destinations", | ||
params: params, | ||
opts: opts, | ||
base_address: :api | ||
) | ||
end | ||
|
||
# Delete an event destination. | ||
def delete(id, params = {}, opts = {}) | ||
request( | ||
method: :delete, | ||
path: format("/v2/core/event_destinations/%<id>s", { id: CGI.escape(id) }), | ||
params: params, | ||
opts: opts, | ||
base_address: :api | ||
) | ||
end | ||
|
||
# Disable an event destination. | ||
def disable(id, params = {}, opts = {}) | ||
request( | ||
method: :post, | ||
path: format("/v2/core/event_destinations/%<id>s/disable", { id: CGI.escape(id) }), | ||
params: params, | ||
opts: opts, | ||
base_address: :api | ||
) | ||
end | ||
|
||
# Enable an event destination. | ||
def enable(id, params = {}, opts = {}) | ||
request( | ||
method: :post, | ||
path: format("/v2/core/event_destinations/%<id>s/enable", { id: CGI.escape(id) }), | ||
params: params, | ||
opts: opts, | ||
base_address: :api | ||
) | ||
end | ||
|
||
# Lists all event destinations. | ||
def list(params = {}, opts = {}) | ||
request( | ||
method: :get, | ||
path: "/v2/core/event_destinations", | ||
params: params, | ||
opts: opts, | ||
base_address: :api | ||
) | ||
end | ||
|
||
# Send a `ping` event to an event destination. | ||
def ping(id, params = {}, opts = {}) | ||
request( | ||
method: :post, | ||
path: format("/v2/core/event_destinations/%<id>s/ping", { id: CGI.escape(id) }), | ||
params: params, | ||
opts: opts, | ||
base_address: :api | ||
) | ||
end | ||
|
||
# Retrieves the details of an event destination. | ||
def retrieve(id, params = {}, opts = {}) | ||
request( | ||
method: :get, | ||
path: format("/v2/core/event_destinations/%<id>s", { id: CGI.escape(id) }), | ||
params: params, | ||
opts: opts, | ||
base_address: :api | ||
) | ||
end | ||
|
||
# Update the details of an event destination. | ||
def update(id, params = {}, opts = {}) | ||
request( | ||
method: :post, | ||
path: format("/v2/core/event_destinations/%<id>s", { id: CGI.escape(id) }), | ||
params: params, | ||
opts: opts, | ||
base_address: :api | ||
) | ||
end | ||
end | ||
end | ||
end | ||
end |
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