Sha256: c267924b8e3a665516750ad9c7810257fb01d0d9d3e426b0b489d17d46790a57
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require "fortnox/api/repositories/base" require "fortnox/api/models/customer" module Fortnox module API module Repository class Customer < Fortnox::API::Repository::Base CONFIGURATION = Fortnox::API::Repository::Base::Options.new( uri: '/customers/', json_collection_wrapper: 'Customers', json_entity_wrapper: 'Customer', unique_id: 'CustomerNumber', attribute_name_to_json_key_map: { vat_type: 'VATType', vat_number: 'VATNumber', email_invoice_bcc: 'EmailInvoiceBCC', email_invoice_cc: 'EmailInvoiceCC', email_offer_bcc: 'EmailOfferBCC', email_offer_cc: 'EmailOfferCC', email_order_bcc: 'EmailOrderBCC', email_order_cc: 'EmailOrderCC', show_price_vat_included: 'ShowPriceVATIncluded', }, keys_filtered_on_save: [ :url, ] ) MODEL = Fortnox::API::Model::Customer def initialize super( CONFIGURATION ) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fortnox-api-0.1.0 | lib/fortnox/api/repositories/customer.rb |