tfso 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98744f403581da4bd3149461ce06032b613f38f57a73d02f0007b4784fd2736b
4
- data.tar.gz: '094ee08aae3da0e3bb11facfd0a15df90ee69c60b295d54e9608091f8c9cb295'
3
+ metadata.gz: 580629da3765be6e48e898bf68d9651b57f37e0fa0d56708dd51f324d9321a99
4
+ data.tar.gz: 941191ba3f192dba0362533cfd3a22e7011ff16c3773b566c6d8b9633fc37cc4
5
5
  SHA512:
6
- metadata.gz: b53604b0a3555077809790d88a35c31d67221b5fa855b8b9579bc83682ba836997aa08c25968f558f69faca27e1c6e766bd5c23acf5b2e650add2a4827ea51d0
7
- data.tar.gz: 415d871f87609b330429f9ad4a5088db37930480c20026ec07bc38ae8025d68d417d46672f11fa9b420d2a7637aac1613ae7fac1a1c50342903cd1ef13ce0ccb
6
+ metadata.gz: 71c2a1ce1d322a7288146efd09e4654b7a23a0ad6896329f6f037920721488bed49c2029ba58595f75644cd7ff542aad934ae6badfc62387629b19175d291337
7
+ data.tar.gz: df5bbb911873323fe5f9b2856920d6bdc61313729a2b972f110d74a33dcd2e11fcb35eb8fec36573d3930c93be9c02b17bcc942cc947ec9d28ccf1ca83643017
data/README.md CHANGED
@@ -41,7 +41,7 @@ company_attributes = {
41
41
  DistributionMethod: 'EMail'
42
42
  }
43
43
  }
44
- company = tfso_company.create( tfso_company.transform_attributes(company_attributes) )
44
+ company = tfso_company.create(tfso_company.transform_attributes(company_attributes))
45
45
  puts company[:id]
46
46
  ```
47
47
 
@@ -40,13 +40,11 @@ module TFSO
40
40
  end
41
41
  end
42
42
 
43
- def create(invoice, items)
44
- response = savon_client.call(:save_invoices, message: {invoices: [{InvoiceOrder: transform_attributes(invoice, items) }] }, cookies: @cookies)
43
+ def create(order_attributes)
44
+ response = savon_client.call(:save_invoices, message: {invoices: [{InvoiceOrder: order_attributes }] }, cookies: @cookies)
45
45
  response.body[:save_invoices_response][:save_invoices_result][:invoice_order]
46
46
  end
47
47
 
48
- private
49
-
50
48
  def transform_attributes(invoice, items)
51
49
  state = case invoice[:state]
52
50
  when :invoice
@@ -1,3 +1,3 @@
1
1
  module TFSO
2
- VERSION = "0.7.0"
2
+ VERSION = "0.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tfso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Espen Antonsen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-31 00:00:00.000000000 Z
11
+ date: 2019-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -124,8 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubyforge_project:
128
- rubygems_version: 2.7.7
127
+ rubygems_version: 3.0.3
129
128
  signing_key:
130
129
  specification_version: 4
131
130
  summary: Ruby API Wrapper for 24SevenOffice.