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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c08de0ca2663c0056e1333cd3b84053de84ebcc259c633d6456ad550560d9b8f
|
4
|
+
data.tar.gz: d46ec9f6a3f9820d56d8743db2a3dcd69cf518caabe7d65e881eee4c9a8d1236
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
15
|
-
admin/report_transactions_grouped_by_qb_name_datatable: 'Transactions
|
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'
|
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
|
+
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-
|
11
|
+
date: 2024-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|