Sha256: 99451227b2d12fdb633663e593c828b4116b26e4e8175d01753d24c5bee9b9df

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

# frozen_string_literal: true

module BrazeRuby
  module Endpoints
    module Catalogs
      # Catalog management
      def create_catalogs(**payload)
        BrazeRuby::REST::CreateCatalogs.new(api_key, braze_url, options, **payload).perform
      end

      def delete_catalog(catalog_name)
        BrazeRuby::REST::DeleteCatalog.new(api_key, braze_url, options, catalog_name).perform
      end

      def list_catalogs
        BrazeRuby::REST::ListCatalogs.new(api_key, braze_url, options).perform
      end

      # Catalog items
      def create_catalog_items(catalog_name, **payload)
        BrazeRuby::REST::CreateCatalogItems.new(api_key, braze_url, options, catalog_name, **payload).perform
      end

      def delete_catalog_items(catalog_name, **payload)
        BrazeRuby::REST::DeleteCatalogItems.new(api_key, braze_url, options, catalog_name, **payload).perform
      end

      def update_catalog_items(catalog_name, **payload)
        BrazeRuby::REST::UpdateCatalogItems.new(api_key, braze_url, options, catalog_name, **payload).perform
      end

      def edit_catalog_items(catalog_name, **payload)
        BrazeRuby::REST::EditCatalogItems.new(api_key, braze_url, options, catalog_name, **payload).perform
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
braze_ruby-0.11.0 lib/braze_ruby/endpoints/catalogs.rb