sendly 3.15.2 → 3.15.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56c908f29c221c85c90e24d73b43066013f4d3cec54aba6fe7517fb227e045b4
4
- data.tar.gz: d128303727afab0708a108693a8effc1026296ade3b90e2de848286166d8eaea
3
+ metadata.gz: 30d293bb000beb6cf55425cf890c5d1a2aaf1763fd0924200208e64ece66a6aa
4
+ data.tar.gz: b497dc439fab212a7b672f34912164909863dd5e6f3914b33e83d40bded4ca0e
5
5
  SHA512:
6
- metadata.gz: ce1fa34f4d023c436c61fca5edd146f14eb57c8e7b881ed6e34f10d3aa1cfa18a0304fae311251c0c3dcb89ad86b0888ca74297d809d0f7863af6c808371f455
7
- data.tar.gz: 9b1f5393016e47ec383a5436942c4da13f34acf65b95bb764d32aff4b83f615f3394326213926ad56ca2aa3bcfcecb2320ee07286215f1f8c2d7939b2c2457f7
6
+ metadata.gz: 753b7db85a40604103a4036348b2f847328c2cb7bf7ce92614e032854350f6061500a2eaca36342f1245ffdb576441e4525577601a335e766e28ec12cc511a66
7
+ data.tar.gz: c53e4e96bfb502a62250f36852239398c572a2770103fa559d077089e4649d064cbeabd4b04e9acf87260975d99571b1cdd3290539743320be67831d1d00bc85
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sendly (3.15.2)
4
+ sendly (3.15.3)
5
5
  faraday (~> 2.0)
6
6
  faraday-retry (~> 2.0)
7
7
 
@@ -94,5 +94,15 @@ module Sendly
94
94
 
95
95
  @client.delete("/account/keys/#{key_id}")
96
96
  end
97
+
98
+ def transfer_credits(target_organization_id:, amount:)
99
+ raise ArgumentError, "Target organization ID is required" if target_organization_id.nil? || target_organization_id.empty?
100
+ raise ArgumentError, "Amount must be a positive integer" if !amount.is_a?(Integer) || amount <= 0
101
+
102
+ @client.post("/credits/transfer", {
103
+ targetOrganizationId: target_organization_id,
104
+ amount: amount
105
+ })
106
+ end
97
107
  end
98
108
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sendly
4
- VERSION = "3.15.2"
4
+ VERSION = "3.15.3"
5
5
  end
@@ -101,6 +101,15 @@ module Sendly
101
101
  WebhookTestResult.new(response)
102
102
  end
103
103
 
104
+ # Reset the circuit breaker for a webhook
105
+ #
106
+ # @param webhook_id [String] Webhook ID
107
+ # @return [Hash] Reset confirmation with updated webhook
108
+ def reset_circuit(webhook_id)
109
+ validate_webhook_id!(webhook_id)
110
+ @client.post("/webhooks/#{webhook_id}/reset-circuit")
111
+ end
112
+
104
113
  # Rotate the webhook signing secret
105
114
  #
106
115
  # @param webhook_id [String] Webhook ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sendly
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.15.2
4
+ version: 3.15.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sendly
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-02-08 00:00:00.000000000 Z
11
+ date: 2026-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday