wco_models 3.1.0.199 → 3.1.0.202

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: 837cf6ed88ef84f33ff11c2d7c52c61b34315b32b40dbdbbfc510a0175db5217
4
- data.tar.gz: fe70cda6b8ef28e62fdea5840f267684d330236ccf1238aa43f0729fe0e8bafc
3
+ metadata.gz: 50dbbfc30e0614de28991d3739705b9b632a0c32ee30d3ef601472b9f31c1226
4
+ data.tar.gz: 58fa465ee5438bbff6b128b2ef9a3a8553a8741dd7cdfe935a78cf7c6326b1c8
5
5
  SHA512:
6
- metadata.gz: 734f9700ff903ef83a3f412d48717952f2d3966025f3b31b7699f984e8ea6b723c7e3dfa685fdd4f4d65956d16bf678da36e00e05b6b9d511fe16e9010ca8e13
7
- data.tar.gz: 1bf89f52c2cd4660e3f65019143b17ebf1d75f48c8c593b6ad51480326793634fe563f157d37db041b8d92973d24734ae3a8ef1eb66fae253c21364d9f36b996
6
+ metadata.gz: 00f3de5db229ff4a4b533867bccb0e1815ad87411fc10bda12cbe83ac29767f89bd7730f8c348f331efc94a0a47b1c02dede82945b54d0a01db8092c3bbe372d
7
+ data.tar.gz: 9df79f5ee0b1791686c10a7a0f610541926aa4803162714a03fab2674106e2b58561372145c6833afc4d909e5a37ab2118e1c2a51ce89c25907c578547ac3dde
@@ -53,6 +53,7 @@ class Wco::InvoicesController < Wco::ApplicationController
53
53
  end
54
54
 
55
55
  def create_stripe
56
+ params[:invoice][:is_stripe] = true
56
57
  @invoice = Wco::Invoice.new params[:invoice].permit!
57
58
  authorize! :create, @invoice
58
59
 
@@ -35,7 +35,7 @@ class Iro::Stock
35
35
  has_many :options, class_name: 'Iro::Option', inverse_of: :stock
36
36
  has_many :priceitems, inverse_of: :stock
37
37
 
38
- belongs_to :user
38
+ belongs_to :profile, class_name: 'Wco::Profile', optional: true
39
39
  LONG_ONLY = 'long-only'
40
40
  LONG_OR_SHORT = 'long-or-short'
41
41
  SHORT_ONLY = 'short-only'
@@ -19,6 +19,7 @@ class Wco::Profile
19
19
  field :show_n_thumbs, type: :integer, default: 8
20
20
 
21
21
  has_many :reports, class_name: 'Wco::Report'
22
+ has_many :stocks, class_name: 'Iro::Stock'
22
23
 
23
24
  belongs_to :leadset, class_name: 'Wco::Leadset', inverse_of: :profile, optional: true
24
25
  has_many :newsitems, class_name: 'Wco::Newsitem'
@@ -24,6 +24,7 @@ class WcoEmail::MessageStub
24
24
  STATUSES = [ STATUS_PENDING, STATUS_PROCESSED, STATUS_FAILED ]
25
25
  field :status, default: STATUS_PENDING
26
26
  scope :pending, ->{ where( status: STATUS_PENDING ) }
27
+ scope :failed, ->{ where( status: STATUS_FAILED ) }
27
28
 
28
29
  field :bucket # 'ish-ses' (current), 'ish-ses-2024'
29
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.199
4
+ version: 3.1.0.202
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-23 00:00:00.000000000 Z
11
+ date: 2025-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ahoy_matey