moy_sklad 1.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +13 -0
  6. data/Rakefile +1 -0
  7. data/bin/gencountry +18 -0
  8. data/doc/xml/Company.xml +165 -0
  9. data/doc/xml/CustomEntity.xml +53 -0
  10. data/doc/xml/CustomerOrder.xml +168 -0
  11. data/doc/xml/Good.xml +127 -0
  12. data/doc/xml/GoodFolder.xml +53 -0
  13. data/doc/xml/MOYsklad.xsd +2450 -0
  14. data/doc/xml/PaymentIn.xml +81 -0
  15. data/doc/xml/README.md +1 -0
  16. data/lib/moy_sklad/client/attribute.rb +119 -0
  17. data/lib/moy_sklad/client/base.rb +112 -0
  18. data/lib/moy_sklad/client/collection.rb +52 -0
  19. data/lib/moy_sklad/client/formatter.rb +37 -0
  20. data/lib/moy_sklad/client/resource.rb +56 -0
  21. data/lib/moy_sklad/client.rb +5 -0
  22. data/lib/moy_sklad/configuration.rb +74 -0
  23. data/lib/moy_sklad/model/company.rb +23 -0
  24. data/lib/moy_sklad/model/country.rb +12 -0
  25. data/lib/moy_sklad/model/custom_entity.rb +4 -0
  26. data/lib/moy_sklad/model/customer_order.rb +21 -0
  27. data/lib/moy_sklad/model/data/country_codes.yml +249 -0
  28. data/lib/moy_sklad/model/demand.rb +20 -0
  29. data/lib/moy_sklad/model/good.rb +32 -0
  30. data/lib/moy_sklad/model/good_folder.rb +4 -0
  31. data/lib/moy_sklad/model/payment_in.rb +9 -0
  32. data/lib/moy_sklad/model/supply.rb +20 -0
  33. data/lib/moy_sklad/model/templates/company.builder +132 -0
  34. data/lib/moy_sklad/model/templates/custom_entity.builder +42 -0
  35. data/lib/moy_sklad/model/templates/customer_order.builder +151 -0
  36. data/lib/moy_sklad/model/templates/demand.builder +147 -0
  37. data/lib/moy_sklad/model/templates/good.builder +83 -0
  38. data/lib/moy_sklad/model/templates/good_folder.builder +41 -0
  39. data/lib/moy_sklad/model/templates/payment_in.builder +72 -0
  40. data/lib/moy_sklad/model/templates/supply.builder +144 -0
  41. data/lib/moy_sklad/model.rb +13 -0
  42. data/lib/moy_sklad/nokogiri/document.rb +28 -0
  43. data/lib/moy_sklad/version.rb +3 -0
  44. data/lib/moy_sklad.rb +4 -0
  45. data/moy_sklad.gemspec +28 -0
  46. data/spec/ms_config.rb +44 -0
  47. data/spec/spec_helper.rb +9 -0
  48. data/spec/unit/company_spec.rb +60 -0
  49. data/spec/unit/country_spec.rb +18 -0
  50. data/spec/unit/custom_entity_spec.rb +64 -0
  51. data/spec/unit/customer_order_spec.rb +131 -0
  52. data/spec/unit/demand_spec.rb +53 -0
  53. data/spec/unit/fail_spec.rb +12 -0
  54. data/spec/unit/good_folder_spec.rb +51 -0
  55. data/spec/unit/good_spec.rb +149 -0
  56. data/spec/unit/payment_in_spec.rb +120 -0
  57. data/spec/unit/supply_spec.rb +51 -0
  58. metadata +211 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f5daa533ba17369f57ab9a4395fd5f6bf17912d8
4
+ data.tar.gz: 9ea1ceb830cc2e6a3e99594188f9da7fcba2107f
5
+ SHA512:
6
+ metadata.gz: fbf0c19a234154d449e5fcdacff418d9074dd3b707b511cfb9dcb79a5518b594ad6f28cacbd865f8d245ff3c2c5daea4383dbad12ebb7775058e0108c3a35445
7
+ data.tar.gz: fea86256fbebb3e09c424372a187a352409e52c1fa4ee625a80be333d32b6b5cbc2a3f503690fbea2ebd96317d2276be8b2a0c587654116f4ada1d56232c82b7
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in moy_sklad.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 TODO: Write your name
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,13 @@
1
+ [![Gem Version](https://badge.fury.io/rb/moy_sklad.svg)](http://badge.fury.io/rb/moy_sklad)
2
+
3
+ # MoySklad
4
+
5
+ **Auth (for rspec)**
6
+
7
+ export MSKL_USER="user@domain"
8
+ export MSKL_PASS="password"
9
+
10
+ **Tests**
11
+
12
+ You should set correct uuids in spec/ms_config.rb
13
+
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/gencountry ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bundler/setup'
4
+ require 'moy_sklad'
5
+
6
+ fail "Please provide filename" unless ARGF.argv.length == 1
7
+
8
+ MoySklad.configure do |c|
9
+ c.user_name = ENV['MSKL_USER']
10
+ c.password = ENV['MSKL_PASS']
11
+ end
12
+
13
+ File.open(ARGF.argv[0], "w+") do |f|
14
+ f.write("---\n")
15
+ MoySklad::Model::Country.find(:all).each do |c|
16
+ f.write("\"#{c.code}\": #{c.uuid}\n")
17
+ end
18
+ end
@@ -0,0 +1,165 @@
1
+ <?xml version="1.0"?>
2
+ <company readMode="NONE" changeMode="NEIGHBOUR" updated="2013-11-23T15:44:07" updatedBy="string" name="string" discount="1.051732E7" autoDiscount="1.051732E7" discountCardNumber="string" discountCorrection="1.051732E7" stateUuid="string" employeeUuid="string" priceTypeUuid="string" archived="true" created="2006-08-19T19:27:14+02:00" director="string" chiefAccountant="string" payerVat="false" companyType="INPR">
3
+ <!--Optional:-->
4
+ <accountUuid>string</accountUuid>
5
+ <!--Optional:-->
6
+ <accountId>string</accountId>
7
+ <!--Optional:-->
8
+ <uuid>string</uuid>
9
+ <!--Optional:-->
10
+ <groupUuid>string</groupUuid>
11
+ <!--Optional:-->
12
+ <deleted>2017-05-15T08:41:13</deleted>
13
+ <!--Optional:-->
14
+ <code>string</code>
15
+ <!--Optional:-->
16
+ <externalcode>string</externalcode>
17
+ <!--Optional:-->
18
+ <description>string</description>
19
+ <!--Zero or more repetitions:-->
20
+ <attribute readMode="PARENT" changeMode="ALL" updated="2002-06-24T17:46:32+02:00" updatedBy="string" metadataUuid="string" valueText="string" valueString="string" doubleValue="1.051732E7" longValue="10" booleanValue="true" timeValue="2012-01-07T20:42:56" entityValueUuid="string" agentValueUuid="string" goodValueUuid="string" placeValueUuid="string" consignmentValueUuid="string" contractValueUuid="string" projectValueUuid="string" employeeValueUuid="string" agentUuid="string">
21
+ <!--Optional:-->
22
+ <accountUuid>string</accountUuid>
23
+ <!--Optional:-->
24
+ <accountId>string</accountId>
25
+ <!--Optional:-->
26
+ <uuid>string</uuid>
27
+ <!--Optional:-->
28
+ <groupUuid>string</groupUuid>
29
+ <!--Optional:-->
30
+ <deleted>2014-10-27T10:44:59</deleted>
31
+ <!--Optional:-->
32
+ <file readMode="NEIGHBOUR" changeMode="NEIGHBOUR" updated="2002-11-16T10:03:57+01:00" updatedBy="string" name="string" created="2000-09-14T10:07:34" filename="string" miniatureUuid="string">
33
+ <!--Optional:-->
34
+ <accountUuid>string</accountUuid>
35
+ <!--Optional:-->
36
+ <accountId>string</accountId>
37
+ <!--Optional:-->
38
+ <uuid>string</uuid>
39
+ <!--Optional:-->
40
+ <groupUuid>string</groupUuid>
41
+ <!--Optional:-->
42
+ <deleted>2015-08-24T01:09:23</deleted>
43
+ <!--Optional:-->
44
+ <code>string</code>
45
+ <!--Optional:-->
46
+ <externalcode>string</externalcode>
47
+ <!--Optional:-->
48
+ <description>string</description>
49
+ <!--Optional:-->
50
+ <contents>cHJhZXRlcmVh</contents>
51
+ </file>
52
+ </attribute>
53
+ <!--Optional:-->
54
+ <requisite legalTitle="string" legalAddress="string" actualAddress="string" inn="string" kpp="string" okpo="string" ogrn="string" ogrnip="string" nomerSvidetelstva="string" dataSvidetelstva="2014-06-27T21:41:15+02:00">
55
+ <!--Optional:-->
56
+ <bankAccount readMode="NONE" changeMode="PARENT" updated="2017-04-19T16:38:57+02:00" updatedBy="string" accountNumber="string" bankLocation="string" bankName="string" bic="string" correspondentAccount="string" isDefault="false">
57
+ <!--Optional:-->
58
+ <accountUuid>string</accountUuid>
59
+ <!--Optional:-->
60
+ <accountId>string</accountId>
61
+ <!--Optional:-->
62
+ <uuid>string</uuid>
63
+ <!--Optional:-->
64
+ <groupUuid>string</groupUuid>
65
+ <!--Optional:-->
66
+ <deleted>2000-07-29T03:24:48+02:00</deleted>
67
+ </bankAccount>
68
+ </requisite>
69
+ <!--Zero or more repetitions:-->
70
+ <bankAccount readMode="PARENT" changeMode="NEIGHBOUR" updated="2015-10-10T12:07:56+02:00" updatedBy="string" accountNumber="string" bankLocation="string" bankName="string" bic="string" correspondentAccount="string" isDefault="false">
71
+ <!--Optional:-->
72
+ <accountUuid>string</accountUuid>
73
+ <!--Optional:-->
74
+ <accountId>string</accountId>
75
+ <!--Optional:-->
76
+ <uuid>string</uuid>
77
+ <!--Optional:-->
78
+ <groupUuid>string</groupUuid>
79
+ <!--Optional:-->
80
+ <deleted>2009-04-09T23:42:38</deleted>
81
+ </bankAccount>
82
+ <!--Optional:-->
83
+ <contact address="string" phones="string" faxes="string" mobiles="string" email="string"/>
84
+ <!--Zero or more repetitions:-->
85
+ <contactPerson readMode="ALL" changeMode="NONE" updated="2006-12-05T13:02:31" updatedBy="string" name="string" email="string" phone="string" position="string">
86
+ <!--Optional:-->
87
+ <accountUuid>string</accountUuid>
88
+ <!--Optional:-->
89
+ <accountId>string</accountId>
90
+ <!--Optional:-->
91
+ <uuid>string</uuid>
92
+ <!--Optional:-->
93
+ <groupUuid>string</groupUuid>
94
+ <!--Optional:-->
95
+ <deleted>2016-09-11T15:29:58</deleted>
96
+ <!--Optional:-->
97
+ <code>string</code>
98
+ <!--Optional:-->
99
+ <externalcode>string</externalcode>
100
+ <!--Optional:-->
101
+ <description>string</description>
102
+ </contactPerson>
103
+ <!--Zero or more repetitions:-->
104
+ <agentNewsItem readMode="ALL" changeMode="NONE" updated="2019-03-02T07:02:08" updatedBy="string" moment="2018-04-13T20:36:55">
105
+ <!--Optional:-->
106
+ <accountUuid>string</accountUuid>
107
+ <!--Optional:-->
108
+ <accountId>string</accountId>
109
+ <!--Optional:-->
110
+ <uuid>string</uuid>
111
+ <!--Optional:-->
112
+ <groupUuid>string</groupUuid>
113
+ <!--Optional:-->
114
+ <deleted>2012-01-08T01:21:27+01:00</deleted>
115
+ <!--Optional:-->
116
+ <text>string</text>
117
+ </agentNewsItem>
118
+ <!--Optional:-->
119
+ <tags>
120
+ <!--Zero or more repetitions:-->
121
+ <tag>string</tag>
122
+ </tags>
123
+ <!--Optional:-->
124
+ <sign readMode="SELF" changeMode="PARENT" updated="2002-05-25T16:08:08" updatedBy="string" name="string" created="2005-06-10T02:51:48" filename="string" miniatureUuid="string">
125
+ <!--Optional:-->
126
+ <accountUuid>string</accountUuid>
127
+ <!--Optional:-->
128
+ <accountId>string</accountId>
129
+ <!--Optional:-->
130
+ <uuid>string</uuid>
131
+ <!--Optional:-->
132
+ <groupUuid>string</groupUuid>
133
+ <!--Optional:-->
134
+ <deleted>2015-07-31T16:52:59+02:00</deleted>
135
+ <!--Optional:-->
136
+ <code>string</code>
137
+ <!--Optional:-->
138
+ <externalcode>string</externalcode>
139
+ <!--Optional:-->
140
+ <description>string</description>
141
+ <!--Optional:-->
142
+ <contents>bmltYm9ydW0=</contents>
143
+ </sign>
144
+ <!--Optional:-->
145
+ <stamp readMode="PARENT" changeMode="SELF" updated="2000-02-21T15:46:14+01:00" updatedBy="string" name="string" created="2001-11-25T07:47:05+01:00" filename="string" miniatureUuid="string">
146
+ <!--Optional:-->
147
+ <accountUuid>string</accountUuid>
148
+ <!--Optional:-->
149
+ <accountId>string</accountId>
150
+ <!--Optional:-->
151
+ <uuid>string</uuid>
152
+ <!--Optional:-->
153
+ <groupUuid>string</groupUuid>
154
+ <!--Optional:-->
155
+ <deleted>2010-01-19T12:43:56</deleted>
156
+ <!--Optional:-->
157
+ <code>string</code>
158
+ <!--Optional:-->
159
+ <externalcode>string</externalcode>
160
+ <!--Optional:-->
161
+ <description>string</description>
162
+ <!--Optional:-->
163
+ <contents>bW9udGlz</contents>
164
+ </stamp>
165
+ </company>
@@ -0,0 +1,53 @@
1
+ <?xml version="1.0"?>
2
+ <customEntity readMode="NONE" changeMode="NEIGHBOUR" updated="2013-11-23T15:44:07" updatedBy="string" name="string" entityMetadataUuid="string">
3
+ <!--Optional:-->
4
+ <accountUuid>string</accountUuid>
5
+ <!--Optional:-->
6
+ <accountId>string</accountId>
7
+ <!--Optional:-->
8
+ <uuid>string</uuid>
9
+ <!--Optional:-->
10
+ <groupUuid>string</groupUuid>
11
+ <!--Optional:-->
12
+ <deleted>2014-06-09T17:15:04+02:00</deleted>
13
+ <!--Optional:-->
14
+ <code>string</code>
15
+ <!--Optional:-->
16
+ <externalcode>string</externalcode>
17
+ <!--Optional:-->
18
+ <description>string</description>
19
+ <!--Zero or more repetitions:-->
20
+ <attribute readMode="NEIGHBOUR" changeMode="NEIGHBOUR" updated="2013-05-22T03:02:49+02:00" updatedBy="string" metadataUuid="string" valueText="string" valueString="string" doubleValue="1.051732E7" longValue="10" booleanValue="true" timeValue="2013-12-21T12:32:42+01:00" entityValueUuid="string" agentValueUuid="string" goodValueUuid="string" placeValueUuid="string" consignmentValueUuid="string" contractValueUuid="string" projectValueUuid="string" employeeValueUuid="string" customEntityUuid="string">
21
+ <!--Optional:-->
22
+ <accountUuid>string</accountUuid>
23
+ <!--Optional:-->
24
+ <accountId>string</accountId>
25
+ <!--Optional:-->
26
+ <uuid>string</uuid>
27
+ <!--Optional:-->
28
+ <groupUuid>string</groupUuid>
29
+ <!--Optional:-->
30
+ <deleted>2016-01-01T20:07:42</deleted>
31
+ <!--Optional:-->
32
+ <file readMode="SELF" changeMode="PARENT" updated="2019-08-19T16:35:10" updatedBy="string" name="string" created="2018-02-04T15:35:59+01:00" filename="string" miniatureUuid="string">
33
+ <!--Optional:-->
34
+ <accountUuid>string</accountUuid>
35
+ <!--Optional:-->
36
+ <accountId>string</accountId>
37
+ <!--Optional:-->
38
+ <uuid>string</uuid>
39
+ <!--Optional:-->
40
+ <groupUuid>string</groupUuid>
41
+ <!--Optional:-->
42
+ <deleted>2002-11-16T10:03:57+01:00</deleted>
43
+ <!--Optional:-->
44
+ <code>string</code>
45
+ <!--Optional:-->
46
+ <externalcode>string</externalcode>
47
+ <!--Optional:-->
48
+ <description>string</description>
49
+ <!--Optional:-->
50
+ <contents>YWM=</contents>
51
+ </file>
52
+ </attribute>
53
+ </customEntity>
@@ -0,0 +1,168 @@
1
+ <?xml version="1.0"?>
2
+ <customerOrder readMode="NONE" changeMode="NEIGHBOUR" updated="2013-11-23T15:44:07" updatedBy="string" name="string" stateUuid="string" targetAgentUuid="string" sourceAgentUuid="string" targetStoreUuid="string" sourceStoreUuid="string" applicable="true" projectUuid="string" contractUuid="string" moment="2006-08-19T19:27:14+02:00" targetAccountUuid="string" sourceAccountUuid="string" payerVat="false" retailStoreUuid="string" currencyUuid="string" rate="1.051732E7" vatIncluded="true" created="2017-05-15T08:41:13" createdBy="string" employeeUuid="string" deliveryPlannedMoment="2013-12-21T12:32:42+01:00" reservedSum="1.051732E7">
3
+ <!--Optional:-->
4
+ <accountUuid>string</accountUuid>
5
+ <!--Optional:-->
6
+ <accountId>string</accountId>
7
+ <!--Optional:-->
8
+ <uuid>string</uuid>
9
+ <!--Optional:-->
10
+ <groupUuid>string</groupUuid>
11
+ <!--Optional:-->
12
+ <deleted>2016-01-01T20:07:42</deleted>
13
+ <!--Optional:-->
14
+ <code>string</code>
15
+ <!--Optional:-->
16
+ <externalcode>string</externalcode>
17
+ <!--Optional:-->
18
+ <description>string</description>
19
+ <!--Zero or more repetitions:-->
20
+ <attribute readMode="SELF" changeMode="PARENT" updated="2019-08-19T16:35:10" updatedBy="string" metadataUuid="string" valueText="string" valueString="string" doubleValue="1.051732E7" longValue="10" booleanValue="true" timeValue="2013-06-17T19:14:58" entityValueUuid="string" agentValueUuid="string" goodValueUuid="string" placeValueUuid="string" consignmentValueUuid="string" contractValueUuid="string" projectValueUuid="string" employeeValueUuid="string" operationUuid="string">
21
+ <!--Optional:-->
22
+ <accountUuid>string</accountUuid>
23
+ <!--Optional:-->
24
+ <accountId>string</accountId>
25
+ <!--Optional:-->
26
+ <uuid>string</uuid>
27
+ <!--Optional:-->
28
+ <groupUuid>string</groupUuid>
29
+ <!--Optional:-->
30
+ <deleted>2005-09-12T10:55:02+02:00</deleted>
31
+ <!--Optional:-->
32
+ <file readMode="NONE" changeMode="SELF" updated="2015-08-24T01:09:23" updatedBy="string" name="string" created="2015-06-18T00:07:00+02:00" filename="string" miniatureUuid="string">
33
+ <!--Optional:-->
34
+ <accountUuid>string</accountUuid>
35
+ <!--Optional:-->
36
+ <accountId>string</accountId>
37
+ <!--Optional:-->
38
+ <uuid>string</uuid>
39
+ <!--Optional:-->
40
+ <groupUuid>string</groupUuid>
41
+ <!--Optional:-->
42
+ <deleted>2000-04-21T02:36:55+02:00</deleted>
43
+ <!--Optional:-->
44
+ <code>string</code>
45
+ <!--Optional:-->
46
+ <externalcode>string</externalcode>
47
+ <!--Optional:-->
48
+ <description>string</description>
49
+ <!--Optional:-->
50
+ <contents>cXVpc3F1YW0=</contents>
51
+ </file>
52
+ </attribute>
53
+ <!--Zero or more repetitions:-->
54
+ <document readMode="PARENT" changeMode="PARENT" updated="2008-08-06T16:17:00+02:00" updatedBy="string" name="string" created="2011-12-25T03:49:17" filename="string" miniatureUuid="string" emailedDate="2015-10-10T12:07:56+02:00" publicId="string" operationUuid="string">
55
+ <!--Optional:-->
56
+ <accountUuid>string</accountUuid>
57
+ <!--Optional:-->
58
+ <accountId>string</accountId>
59
+ <!--Optional:-->
60
+ <uuid>string</uuid>
61
+ <!--Optional:-->
62
+ <groupUuid>string</groupUuid>
63
+ <!--Optional:-->
64
+ <deleted>2018-07-19T10:02:25+02:00</deleted>
65
+ <!--Optional:-->
66
+ <code>string</code>
67
+ <!--Optional:-->
68
+ <externalcode>string</externalcode>
69
+ <!--Optional:-->
70
+ <description>string</description>
71
+ <!--Optional:-->
72
+ <contents>YmVsbGE=</contents>
73
+ </document>
74
+ <!--Optional:-->
75
+ <sum sum="1.051732E7" sumInCurrency="1.051732E7"/>
76
+ <!--Optional:-->
77
+ <demandsUuid>
78
+ <!--Zero or more repetitions:-->
79
+ <demandRef>string</demandRef>
80
+ </demandsUuid>
81
+ <!--Optional:-->
82
+ <invoicesOutUuid>
83
+ <!--Zero or more repetitions:-->
84
+ <invoiceOutRef>string</invoiceOutRef>
85
+ </invoicesOutUuid>
86
+ <!--Optional:-->
87
+ <paymentsUuid>
88
+ <!--Zero or more repetitions:-->
89
+ <financeInRef>string</financeInRef>
90
+ </paymentsUuid>
91
+ <!--Zero or more repetitions:-->
92
+ <customerOrderPosition readMode="ALL" changeMode="NONE" discount="1.051732E7" quantity="1.051732E7" goodPackUuid="string" consignmentUuid="string" goodUuid="string" slotUuid="string" vat="10">
93
+ <!--Optional:-->
94
+ <accountUuid>string</accountUuid>
95
+ <!--Optional:-->
96
+ <accountId>string</accountId>
97
+ <!--Optional:-->
98
+ <uuid>string</uuid>
99
+ <!--Optional:-->
100
+ <groupUuid>string</groupUuid>
101
+ <!--Optional:-->
102
+ <basePrice sum="1.051732E7" sumInCurrency="1.051732E7"/>
103
+ <!--Optional:-->
104
+ <price sum="1.051732E7" sumInCurrency="1.051732E7"/>
105
+ <!--Optional:-->
106
+ <things>
107
+ <!--Zero or more repetitions:-->
108
+ <thingRef readMode="SELF" changeMode="SELF" updated="2018-01-21T07:38:03+01:00" updatedBy="string" name="string" goodUuid="string">
109
+ <!--Optional:-->
110
+ <accountUuid>string</accountUuid>
111
+ <!--Optional:-->
112
+ <accountId>string</accountId>
113
+ <!--Optional:-->
114
+ <uuid>string</uuid>
115
+ <!--Optional:-->
116
+ <groupUuid>string</groupUuid>
117
+ <!--Optional:-->
118
+ <deleted>2014-12-08T19:05:08</deleted>
119
+ <!--Optional:-->
120
+ <code>string</code>
121
+ <!--Optional:-->
122
+ <externalcode>string</externalcode>
123
+ <!--Optional:-->
124
+ <description>string</description>
125
+ <!--Zero or more repetitions:-->
126
+ <attribute readMode="NEIGHBOUR" changeMode="ALL" updated="2015-08-04T02:55:16" updatedBy="string" metadataUuid="string" valueText="string" valueString="string" doubleValue="1.051732E7" longValue="10" booleanValue="true" timeValue="2012-01-08T01:21:27+01:00" entityValueUuid="string" agentValueUuid="string" goodValueUuid="string" placeValueUuid="string" consignmentValueUuid="string" contractValueUuid="string" projectValueUuid="string" employeeValueUuid="string" thingUuid="string">
127
+ <!--Optional:-->
128
+ <accountUuid>string</accountUuid>
129
+ <!--Optional:-->
130
+ <accountId>string</accountId>
131
+ <!--Optional:-->
132
+ <uuid>string</uuid>
133
+ <!--Optional:-->
134
+ <groupUuid>string</groupUuid>
135
+ <!--Optional:-->
136
+ <deleted>2017-10-14T14:43:21</deleted>
137
+ <!--Optional:-->
138
+ <file readMode="PARENT" changeMode="SELF" updated="2005-06-10T02:51:48" updatedBy="string" name="string" created="2015-07-31T16:52:59+02:00" filename="string" miniatureUuid="string">
139
+ <!--Optional:-->
140
+ <accountUuid>string</accountUuid>
141
+ <!--Optional:-->
142
+ <accountId>string</accountId>
143
+ <!--Optional:-->
144
+ <uuid>string</uuid>
145
+ <!--Optional:-->
146
+ <groupUuid>string</groupUuid>
147
+ <!--Optional:-->
148
+ <deleted>2017-08-26T06:13:30</deleted>
149
+ <!--Optional:-->
150
+ <code>string</code>
151
+ <!--Optional:-->
152
+ <externalcode>string</externalcode>
153
+ <!--Optional:-->
154
+ <description>string</description>
155
+ <!--Optional:-->
156
+ <contents>cHJlbWVyZQ==</contents>
157
+ </file>
158
+ </attribute>
159
+ </thingRef>
160
+ </things>
161
+ <reserve>1.051732E7</reserve>
162
+ </customerOrderPosition>
163
+ <!--Optional:-->
164
+ <purchaseOrdersUuid>
165
+ <!--Zero or more repetitions:-->
166
+ <purchaseOrderRef>string</purchaseOrderRef>
167
+ </purchaseOrdersUuid>
168
+ </customerOrder>
data/doc/xml/Good.xml ADDED
@@ -0,0 +1,127 @@
1
+ <?xml version="1.0"?>
2
+ <good readMode="NONE" changeMode="NEIGHBOUR" updated="2013-11-23T15:44:07" updatedBy="string" name="string" archived="true" parentUuid="string" productCode="string" vat="10" minPrice="1.051732E7" uomUuid="string" countryUuid="string" supplierUuid="string" salePrice="1.051732E7" saleCurrencyUuid="string" buyCurrencyUuid="string" isSerialTrackable="true" buyPrice="1.051732E7" minimumBalance="1.051732E7" weight="1.051732E7" volume="1.051732E7">
3
+ <!--Optional:-->
4
+ <accountUuid>string</accountUuid>
5
+ <!--Optional:-->
6
+ <accountId>string</accountId>
7
+ <!--Optional:-->
8
+ <uuid>string</uuid>
9
+ <!--Optional:-->
10
+ <groupUuid>string</groupUuid>
11
+ <!--Optional:-->
12
+ <deleted>2018-11-01T06:36:46+01:00</deleted>
13
+ <!--Optional:-->
14
+ <code>string</code>
15
+ <!--Optional:-->
16
+ <externalcode>string</externalcode>
17
+ <!--Optional:-->
18
+ <description>string</description>
19
+ <!--Zero or more repetitions:-->
20
+ <attribute readMode="ALL" changeMode="NEIGHBOUR" updated="2003-08-09T02:18:37+02:00" updatedBy="string" metadataUuid="string" valueText="string" valueString="string" doubleValue="1.051732E7" longValue="10" booleanValue="false" timeValue="2002-06-24T17:46:32+02:00" entityValueUuid="string" agentValueUuid="string" goodValueUuid="string" placeValueUuid="string" consignmentValueUuid="string" contractValueUuid="string" projectValueUuid="string" employeeValueUuid="string" goodUuid="string">
21
+ <!--Optional:-->
22
+ <accountUuid>string</accountUuid>
23
+ <!--Optional:-->
24
+ <accountId>string</accountId>
25
+ <!--Optional:-->
26
+ <uuid>string</uuid>
27
+ <!--Optional:-->
28
+ <groupUuid>string</groupUuid>
29
+ <!--Optional:-->
30
+ <deleted>2016-02-20T15:56:29+01:00</deleted>
31
+ <!--Optional:-->
32
+ <file readMode="NONE" changeMode="ALL" updated="2018-12-28T20:51:14+01:00" updatedBy="string" name="string" created="2017-11-01T09:15:53+01:00" filename="string" miniatureUuid="string">
33
+ <!--Optional:-->
34
+ <accountUuid>string</accountUuid>
35
+ <!--Optional:-->
36
+ <accountId>string</accountId>
37
+ <!--Optional:-->
38
+ <uuid>string</uuid>
39
+ <!--Optional:-->
40
+ <groupUuid>string</groupUuid>
41
+ <!--Optional:-->
42
+ <deleted>2014-06-10T20:33:25+02:00</deleted>
43
+ <!--Optional:-->
44
+ <code>string</code>
45
+ <!--Optional:-->
46
+ <externalcode>string</externalcode>
47
+ <!--Optional:-->
48
+ <description>string</description>
49
+ <!--Optional:-->
50
+ <contents>c3BlbHVuY2lz</contents>
51
+ </file>
52
+ </attribute>
53
+ <!--Zero or more repetitions:-->
54
+ <barcode readMode="NEIGHBOUR" changeMode="NONE" barcode="string" barcodeType="EAN8">
55
+ <!--Optional:-->
56
+ <accountUuid>string</accountUuid>
57
+ <!--Optional:-->
58
+ <accountId>string</accountId>
59
+ <!--Optional:-->
60
+ <uuid>string</uuid>
61
+ <!--Optional:-->
62
+ <groupUuid>string</groupUuid>
63
+ </barcode>
64
+ <!--Optional:-->
65
+ <salePrices>
66
+ <!--Zero or more repetitions:-->
67
+ <price readMode="NONE" changeMode="NONE" currencyUuid="string" priceTypeUuid="string" value="1.051732E7">
68
+ <!--Optional:-->
69
+ <accountUuid>string</accountUuid>
70
+ <!--Optional:-->
71
+ <accountId>string</accountId>
72
+ <!--Optional:-->
73
+ <uuid>string</uuid>
74
+ <!--Optional:-->
75
+ <groupUuid>string</groupUuid>
76
+ </price>
77
+ </salePrices>
78
+ <!--Zero or more repetitions:-->
79
+ <pack readMode="ALL" changeMode="NONE" quantity="1.051732E7" uomUuid="string">
80
+ <!--Optional:-->
81
+ <accountUuid>string</accountUuid>
82
+ <!--Optional:-->
83
+ <accountId>string</accountId>
84
+ <!--Optional:-->
85
+ <uuid>string</uuid>
86
+ <!--Optional:-->
87
+ <groupUuid>string</groupUuid>
88
+ </pack>
89
+ <!--Optional:-->
90
+ <preferences>
91
+ <!--Zero or more repetitions:-->
92
+ <preference readMode="NONE" changeMode="PARENT" slotUuid="string">
93
+ <!--Optional:-->
94
+ <accountUuid>string</accountUuid>
95
+ <!--Optional:-->
96
+ <accountId>string</accountId>
97
+ <!--Optional:-->
98
+ <uuid>string</uuid>
99
+ <!--Optional:-->
100
+ <groupUuid>string</groupUuid>
101
+ </preference>
102
+ </preferences>
103
+ <!--Optional:-->
104
+ <images>
105
+ <!--Zero or more repetitions:-->
106
+ <image readMode="PARENT" changeMode="PARENT" updated="2000-01-06T22:03:12" updatedBy="string" name="string" created="2017-08-18T22:01:40" filename="string" miniatureUuid="string" tinyUuid="string">
107
+ <!--Optional:-->
108
+ <accountUuid>string</accountUuid>
109
+ <!--Optional:-->
110
+ <accountId>string</accountId>
111
+ <!--Optional:-->
112
+ <uuid>string</uuid>
113
+ <!--Optional:-->
114
+ <groupUuid>string</groupUuid>
115
+ <!--Optional:-->
116
+ <deleted>2016-09-11T23:45:33</deleted>
117
+ <!--Optional:-->
118
+ <code>string</code>
119
+ <!--Optional:-->
120
+ <externalcode>string</externalcode>
121
+ <!--Optional:-->
122
+ <description>string</description>
123
+ <!--Optional:-->
124
+ <contents>c2NpcmV0</contents>
125
+ </image>
126
+ </images>
127
+ </good>
@@ -0,0 +1,53 @@
1
+ <?xml version="1.0"?>
2
+ <goodFolder readMode="NONE" changeMode="NEIGHBOUR" updated="2013-11-23T15:44:07" updatedBy="string" name="string" archived="true" parentUuid="string" productCode="string" vat="10">
3
+ <!--Optional:-->
4
+ <accountUuid>string</accountUuid>
5
+ <!--Optional:-->
6
+ <accountId>string</accountId>
7
+ <!--Optional:-->
8
+ <uuid>string</uuid>
9
+ <!--Optional:-->
10
+ <groupUuid>string</groupUuid>
11
+ <!--Optional:-->
12
+ <deleted>2006-08-19T19:27:14+02:00</deleted>
13
+ <!--Optional:-->
14
+ <code>string</code>
15
+ <!--Optional:-->
16
+ <externalcode>string</externalcode>
17
+ <!--Optional:-->
18
+ <description>string</description>
19
+ <!--Zero or more repetitions:-->
20
+ <attribute readMode="NEIGHBOUR" changeMode="ALL" updated="2017-05-15T08:41:13" updatedBy="string" metadataUuid="string" valueText="string" valueString="string" doubleValue="1.051732E7" longValue="10" booleanValue="false" timeValue="2012-09-13T15:00:34+02:00" entityValueUuid="string" agentValueUuid="string" goodValueUuid="string" placeValueUuid="string" consignmentValueUuid="string" contractValueUuid="string" projectValueUuid="string" employeeValueUuid="string" goodUuid="string">
21
+ <!--Optional:-->
22
+ <accountUuid>string</accountUuid>
23
+ <!--Optional:-->
24
+ <accountId>string</accountId>
25
+ <!--Optional:-->
26
+ <uuid>string</uuid>
27
+ <!--Optional:-->
28
+ <groupUuid>string</groupUuid>
29
+ <!--Optional:-->
30
+ <deleted>2009-10-14T09:16:36</deleted>
31
+ <!--Optional:-->
32
+ <file readMode="PARENT" changeMode="NONE" updated="2014-10-27T10:44:59" updatedBy="string" name="string" created="2013-06-17T19:14:58" filename="string" miniatureUuid="string">
33
+ <!--Optional:-->
34
+ <accountUuid>string</accountUuid>
35
+ <!--Optional:-->
36
+ <accountId>string</accountId>
37
+ <!--Optional:-->
38
+ <uuid>string</uuid>
39
+ <!--Optional:-->
40
+ <groupUuid>string</groupUuid>
41
+ <!--Optional:-->
42
+ <deleted>2005-09-12T10:55:02+02:00</deleted>
43
+ <!--Optional:-->
44
+ <code>string</code>
45
+ <!--Optional:-->
46
+ <externalcode>string</externalcode>
47
+ <!--Optional:-->
48
+ <description>string</description>
49
+ <!--Optional:-->
50
+ <contents>Y2FlbHVtcXVl</contents>
51
+ </file>
52
+ </attribute>
53
+ </goodFolder>