Skip to content

[VS-155] Create availability notifications and necessary components - #1

Merged
tamaraStrzeszewska23 merged 11 commits into
developfrom
VS-155
Jul 29, 2026
Merged

[VS-155] Create availability notifications and necessary components#1
tamaraStrzeszewska23 merged 11 commits into
developfrom
VS-155

Conversation

@tamaraStrzeszewska23

@tamaraStrzeszewska23 tamaraStrzeszewska23 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

[VS-155](https://yesbizuteria.atlassian.net/browse/VS-155)
Create availability_notification model, controller, service, migration, decorator for variant. All base scope.

Flow:

  1. POST api/v3/availability_notifications
    {
    "availability_notification": {
    "variant": {
    "sku": "NS55332-BZ044-ONO000-000",
    "options": {
    "size": ";1", // first option
    "color" : "2", // second option
    "whatever" : "3" // nth option
    }
    },
    "email": "jan@kowalski.com"
    }
    }

  2. Availability notification gets written to db
    3 (optional). After create callback schedules sync job

@tamaraStrzeszewska23 tamaraStrzeszewska23 self-assigned this Jul 8, 2026
t.string :receiver_email, null: false
t.references :variant, null: false, foreign_key: { to_table: :spree_variants }

if t.respond_to?(:jsonb)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a potrzebujemy variant_options skoro podpięcie do konkretnego variantu juz nam mówi jakie ma opcje?

@tamaraStrzeszewska23
tamaraStrzeszewska23 merged commit ff9d285 into develop Jul 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants