Skip to content

Commit

Permalink
added endpoints as class attr
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianMindee committed Jun 19, 2023
1 parent e84993d commit cfc1ed6
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/mindee/product/eu/license_plate/license_plate_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ module Product
module EU
# License Plate v1 prediction results.
class LicensePlateV1

@@endpoint_name = 'license_plates'
@@endpoint_version = '1'
@endpoint_name = 'license_plates'
@endpoint_version = '1'

# List of all license plates found in the image.
# @return [Array<Mindee::TextField>]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module Mindee
module Product
# Financial Document v1 prediction results.
class FinancialDocumentV1
@endpoint_name = 'financial_document'
@endpoint_version = '1'

# The purchase category among predefined classes.
# @return [Mindee::ClassificationField]
attr_reader :category
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module Product
module FR
# Bank Account Details v1 prediction results.
class BankAccountDetailsV1
@endpoint_name = 'bank_account_details'
@endpoint_version = '1'

# The International Bank Account Number (IBAN).
# @return [Mindee::TextField]
attr_reader :iban
Expand Down
3 changes: 3 additions & 0 deletions lib/mindee/product/fr/carte_vitale/carte_vitale_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module Product
module FR
# Carte Vitale v1 prediction results.
class CarteVitaleV1
@endpoint_name = 'carte_vitale'
@endpoint_version = '1'

# The given name(s) of the card holder.
# @return [Array<Mindee::TextField>]
attr_reader :given_names
Expand Down
3 changes: 3 additions & 0 deletions lib/mindee/product/fr/id_card/id_card_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module Product
module FR
# Carte Nationale d'Identité v1 prediction results.
class IdCardV1
@endpoint_name = 'idcard_fr'
@endpoint_version = '1'

# The side of the document which is visible.
# @return [Mindee::TextField]
attr_reader :document_side
Expand Down
3 changes: 3 additions & 0 deletions lib/mindee/product/invoice/invoice_v4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module Mindee
module Product
# Invoice document.
class InvoiceV4
@endpoint_name = 'invoices'
@endpoint_version = '4'

# Locale information.
# @return [Mindee::Locale]
attr_reader :locale
Expand Down
3 changes: 3 additions & 0 deletions lib/mindee/product/invoice_splitter/invoice_splitter_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ module Mindee
module Product
# Page Group for Invoice Splitter class
class PageGroup
@endpoint_name = 'invoice_splitter'
@endpoint_version = '1'

# @return[Array<Integer>]
attr_reader :page_indexes

Expand Down
3 changes: 3 additions & 0 deletions lib/mindee/product/passport/passport_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ module Mindee
module Product
# Passport document.
class PassportV1
@endpoint_name = 'passport'
@endpoint_version = '1'

# The country of issue.
# @return [Mindee::TextField]
attr_reader :country
Expand Down
3 changes: 3 additions & 0 deletions lib/mindee/product/proof_of_address/proof_of_address_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ module Mindee
module Product
# Proof of Address v1 prediction results.
class ProofOfAddressV1
@endpoint_name = 'proof_of_address'
@endpoint_version = '1'

# The locale detected on the document.
# @return [Mindee::Locale]
attr_reader :locale
Expand Down
3 changes: 3 additions & 0 deletions lib/mindee/product/receipt/receipt_v4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ module Mindee
module Product
# Receipt document.
class ReceiptV4
@endpoint_name = 'expense_receipts'
@endpoint_version = '4'

# Where the purchase was made, the language, and the currency.
# @return [Mindee::Locale]
attr_reader :locale
Expand Down
3 changes: 3 additions & 0 deletions lib/mindee/product/receipt/receipt_v5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module Mindee
module Product
# Expense Receipt v5 prediction results.
class ReceiptV5
@endpoint_name = 'expense_receipts'
@endpoint_version = '5'

# The purchase category among predefined classes.
# @return [Mindee::ClassificationField]
attr_reader :category
Expand Down
3 changes: 3 additions & 0 deletions lib/mindee/product/us/bank_check/bank_check_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ module Product
module US
# License plate prediction.
class BankCheckV1
@endpoint_name = 'bank_check'
@endpoint_version = '1'

# Payer's bank account number.
# @return [Array<Mindee::TextField>]
attr_reader :account_number
Expand Down

0 comments on commit cfc1ed6

Please sign in to comment.