effective_orders 6.14.3 → 6.14.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90eb0604e60b1612f7314c0c8222c2e1a80becac8847215da234ff36163cc49b
4
- data.tar.gz: dcac26bd290696e1ceffa36f33a28d6e037b898e3219e288a2bae77afa1c1d6e
3
+ metadata.gz: c14a71184f0f26d2fedfda94481247d0e86b4e5fa1a7e36112e9d50db58655e1
4
+ data.tar.gz: 8217ba0469e9633e4ad9fe3c920a13579c002a60bc418150e8bdc0232aecba97
5
5
  SHA512:
6
- metadata.gz: ec4b565fec0d10db7336d6d3187f55b4ed9bc19d49ee951a502eb5a0dcfec157a54e0f9f46d2ebeaf8001a31c28074bda9680f4abed3d7b1b386fc00f5f943c0
7
- data.tar.gz: 57f0f4b9de6de32cbd22ce3eae12de21b278223edc41e6b87d3791308031c9ee0def6da7c14151eef916079ba6dcb695f287a227e10f52d4f915480ac9f13f94
6
+ metadata.gz: fad58aa3a38cb6c495ff49218116c0b962afd924eb22291242be65bb373cd20049c531ee399db93d77beaf91f0a97fa1bded143bf903ca2c51a9f140e52fb034
7
+ data.tar.gz: 688fc081887fa4ff17297d7db8f69e3ab54d96c0e30f33555cc69761c55d25ccc4491b7491c29f908a757823d64407d3ba5a6627be125c1fcd513210a5a2589e
@@ -200,6 +200,18 @@ module Effective
200
200
  encode ? Base64.encode64(retval.to_json) : retval
201
201
  end
202
202
 
203
+ def webhook_subscribe(params)
204
+ post('/events/subscribe', params: params)
205
+ end
206
+
207
+ def webhook_unsubscribe(params)
208
+ post('/events/unsubscribe', params: params)
209
+ end
210
+
211
+ def webhook_test(params)
212
+ post('/events/test', params: params)
213
+ end
214
+
203
215
  protected
204
216
 
205
217
  def create_payment_params(order, payment_intent)
@@ -725,7 +725,7 @@ module Effective
725
725
 
726
726
  run_purchasable_callbacks(:after_purchase)
727
727
  end
728
- rescue ActiveRecord::RecordInvalid => e
728
+ rescue => e
729
729
  Effective::Order.transaction do
730
730
  save!(validate: false)
731
731
  update_purchasables_purchased_order!
@@ -802,7 +802,7 @@ module Effective
802
802
  save!(validate: validate)
803
803
  run_purchasable_callbacks(:after_defer)
804
804
  end
805
- rescue ActiveRecord::RecordInvalid => e
805
+ rescue => e
806
806
  self.status = status_was
807
807
  error = e.message
808
808
  end
@@ -842,7 +842,7 @@ module Effective
842
842
  run_purchasable_callbacks(:before_decline)
843
843
  save!(validate: validate)
844
844
  run_purchasable_callbacks(:after_decline)
845
- rescue ActiveRecord::RecordInvalid => e
845
+ rescue => e
846
846
  self.status = status_was
847
847
  error = e.message
848
848
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '6.14.3'.freeze
2
+ VERSION = '6.14.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.14.3
4
+ version: 6.14.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-01 00:00:00.000000000 Z
11
+ date: 2024-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails