effective_qb_online 0.8.4 → 0.8.5

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: e4a6e26114f3805b82bdbcbc34318059adb74df98bb512ae0615e007afbd51ea
4
- data.tar.gz: f53a3c1ce92f2c00173b9c6f546f73c857aee00727804cd58e92dcfef51b6f2f
3
+ metadata.gz: 00ddf30ebad25aed4701012dc46d99f3b058b0923667d92f2133e388f37d91f9
4
+ data.tar.gz: 1e1f8ee36db0242718778a44380dcb96f39dd388d74b77aec23288ef0423c876
5
5
  SHA512:
6
- metadata.gz: 87d0bebfa848203a06341107077234f66d1c3a54aa749c210c270770af4d42d2e66b258c181dc33cc142e3441e6fab7aab32c938317266f16f1725f8f95d84ee
7
- data.tar.gz: 6470e477febff32df0df7a648df3521f6ea65f1433f244f99ce095a56c1f76f1e1d68ed58b2abd32ad8a3a00f98980cdeb8c459bf751359b1f50a307c111758f
6
+ metadata.gz: d152cbc83ed643d51f03d01a43deb684cb0fecc07ce9519a3ceb7254868986b9ccef55fd6aaf389092d7256b83718edb613a252abe013c3c39dd59e560e09291
7
+ data.tar.gz: 28b6f1227299d67063c0d5a1a28fbf4345a7e017378e17dd49c7f04287224c9504e2f2b4f4a3d6526dd92b7e6f6970367b5b056008f8ba51790ac0705e6648a7
@@ -9,10 +9,12 @@ module Effective
9
9
  @order = resource.order
10
10
 
11
11
  to = EffectiveOrders.qb_online_sync_error_recipients.presence || EffectiveOrders.mailer_admin
12
+ cc = EffectiveQbOnline.sync_error_cc_recipients.presence
13
+
12
14
  subject = subject_for(__method__, "Quickbooks Sync Error - Order ##{@order.to_param}", resource, opts)
13
15
  headers = headers_for(resource, opts)
14
16
 
15
- mail(to: to, subject: subject, **headers)
17
+ mail(to: to, cc: cc, subject: subject, **headers)
16
18
  end
17
19
 
18
20
  end
@@ -12,6 +12,12 @@ EffectiveQbOnline.setup do |config|
12
12
  # https://github.com/ruckus/quickbooks-ruby
13
13
  Quickbooks.sandbox_mode = (ENV['QUICKBOOKS_ONLINE_SANDBOX'].to_s == 'true')
14
14
 
15
+ # Sync Error Email
16
+ # When a sync error occurs, an email is sent to the following addresses:
17
+ # EffectiveOrders.qb_online_sync_error_recipients or EffectiveOrders.mailer_admin
18
+ # You can also specify a list of additional recipients to be cc'd on the email by setting:
19
+ # config.sync_error_cc_recipients = ['"Errors" <errors@example.com>']
20
+
15
21
  # Mailer Settings
16
22
  # Please see config/initializers/effective_resources.rb for default effective_* gem mailer settings
17
23
  #
@@ -1,3 +1,3 @@
1
1
  module EffectiveQbOnline
2
- VERSION = '0.8.4'.freeze
2
+ VERSION = '0.8.5'.freeze
3
3
  end
@@ -10,7 +10,7 @@ module EffectiveQbOnline
10
10
  :qb_realms_table_name, :qb_receipts_table_name, :qb_receipt_items_table_name,
11
11
  :mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_admin, :mailer_subject,
12
12
  :oauth_client_id, :oauth_client_secret,
13
- :layout
13
+ :layout, :sync_error_cc_recipients
14
14
  ]
15
15
  end
16
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_qb_online
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.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: 2025-12-09 00:00:00.000000000 Z
11
+ date: 2025-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails