effective_orders 6.14.4 → 6.14.6

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: 3dc467f3312d3856f5343d19a15ac620e07561dbd7bd753fb0436c34b74723ce
4
- data.tar.gz: 5684c01ee91cb52af4d78c6231d21f64c1ad14f9ed562fd03d8bbacb45dccb59
3
+ metadata.gz: c08de0ca2663c0056e1333cd3b84053de84ebcc259c633d6456ad550560d9b8f
4
+ data.tar.gz: d46ec9f6a3f9820d56d8743db2a3dcd69cf518caabe7d65e881eee4c9a8d1236
5
5
  SHA512:
6
- metadata.gz: df7d61c8cf858251e6999387856e95a951718e7a6353342f34e6fa114e573a5b27370360c323161943aedb7f28dc4436da6b5ac782a68c91e734f22550a5dd94
7
- data.tar.gz: 1d12a7f3836a74b6feca7b9f30ba38f4ce8426972c80fd72cf1587de587517ad4d949ab6b99cb4daf9a2ac5d7aee4b8a99756b23cdc7cb9057c8d2e1aff34c5a
6
+ metadata.gz: fa17f89db73c185e09a8eb5611733c7bcac269196b5994ddfe656a2a3f64d212d3fe9b93b3a3d90fbc6d72be776fe64b3b929e81d7e0000ef20b1b599c01051e
7
+ data.tar.gz: 3bf57c8be6cfad3887b9f943a32d9300487b7bfae3ae34f898d0f148a06c2eab5294933b6c7b62e016542952b7e78c9478400e757ea99b7992a93ecd4e534102
@@ -139,6 +139,20 @@ module ActsAsPurchasable
139
139
  purchased_orders.any? { |order| order.purchased_by_id == user.id }
140
140
  end
141
141
 
142
+ def purchased_before?(date)
143
+ return false unless purchased?
144
+ return false unless purchased_at.present?
145
+
146
+ purchased_at < date
147
+ end
148
+
149
+ def purchased_after?(date)
150
+ return false unless purchased?
151
+ return false unless purchased_at.present?
152
+
153
+ purchased_at >= date
154
+ end
155
+
142
156
  def purchased_download_url # Override me if this is a digital purchase.
143
157
  false
144
158
  end
@@ -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)
@@ -10,7 +10,7 @@ en:
10
10
  send_buyer_receipt_confirm: 'Send receipt to @resource.emails_send_to?'
11
11
 
12
12
  datatables:
13
- admin/report_transactions_datatable: 'Individual Transactions'
14
- admin/report_transactions_grouped_by_name_datatable: 'Transactions Grouped By Name'
15
- admin/report_transactions_grouped_by_qb_name_datatable: 'Transactions Grouped By Quickbooks Name'
16
- admin/report_payment_providers_datatable: 'Payment Providers'
13
+ admin/report_transactions_datatable: 'Report: Individual Transactions'
14
+ admin/report_transactions_grouped_by_name_datatable: 'Report: Transactions By Name'
15
+ admin/report_transactions_grouped_by_qb_name_datatable: 'Report: Transactions By Quickbooks Name'
16
+ admin/report_payment_providers_datatable: 'Report: Payment Providers'
@@ -1,3 +1,3 @@
1
1
  module EffectiveOrders
2
- VERSION = '6.14.4'.freeze
2
+ VERSION = '6.14.6'.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.4
4
+ version: 6.14.6
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-29 00:00:00.000000000 Z
11
+ date: 2024-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails