Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
theedov committed Jul 31, 2024
1 parent 190ba9e commit b2ff21a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/Model/OFF/ProductConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public struct ProductQueryConfiguration {
var languages: [OpenFoodFactsLanguage]
var fields: [ProductField]?

init(barcode: String,
public init(barcode: String,
languages: [OpenFoodFactsLanguage] = [],
country: OpenFoodFactsCountry? = nil,
fields: [ProductField]? = nil) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Model/OFF/ProductField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Foundation

enum ProductField: String {
public enum ProductField: String {
case barcode = "code"
case name = "product_name"
case nameInLanguages = "product_name_"
Expand Down
6 changes: 3 additions & 3 deletions Sources/Model/OFF/ProductResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public struct ProductResponse: Decodable {
/// Possible value for [result.id]: product not found
static let resultProductNotFound = "product_not_found"

let barcode: String?
let status: String?
let product: Product?
public let barcode: String?
public let status: String?
public let product: Product?

enum CodingKeys: String, CodingKey {
case barcode = "code"
Expand Down

0 comments on commit b2ff21a

Please sign in to comment.