moysklad 0.1.5 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60b1773384cb062bd5ba282688d93547178fc33a
4
- data.tar.gz: c01d5f3812455b4b96d1f03d32fd95bba8ec77e6
3
+ metadata.gz: e78e745906fbc7c530ee2d111cc02bd22d35dbbd
4
+ data.tar.gz: d4e99beec22a3728f3383160bab5a87ce3aadbde
5
5
  SHA512:
6
- metadata.gz: 1e5b2f3edddbc94ccc9c21b252cb2fd8321a7a5b6ccb9fd683cee3e18b5ac860c7636fdab3ccc9fe6d25df12da2291f3493721f8fee97f2640357bd631458ce4
7
- data.tar.gz: e3cbdc929452013f2333cb186f12148f828c7cb3624c53f65a8a6578503cd3ae7826c2b8bcb1d1be4392c84158c0c9aa8c4ffffffebf25d0ce013de0db56be8b
6
+ metadata.gz: 67702f20702ba52dabe89677ce9828c14b0acf94b99928f8d0cb410712fa37fa8b395f1689e83ec9d8e4e98ac5663b9622b0a223c1025c38b666a4102c8ed7e2
7
+ data.tar.gz: 0136b8e1d5dbff429ce15e3641c6400b6f119a48182ee2bf5435e85b3220c244eea18caa019b9885d26c5337205875a8a63ee3bdd060b1f05efbb4ef1850650c
@@ -1,3 +1,13 @@
1
+ ## 0.2.0 / 2014-12-20
2
+
3
+ * Добавил сущность PriceType и ресурс price_types
4
+ * Переименовал Metadata в EmbeddedEntityMetadata
5
+
6
+ ## 0.1.5 / 2014-12-05
7
+
8
+ * Больше документации.
9
+ * Зависимости перенесены из Gemfile в gemspec. Спасибо @wyde19
10
+
1
11
  ## 0.1.4 / 2014-12-04
2
12
 
3
13
  * Universe.build для ленивого создания вселенной
data/README.md CHANGED
@@ -160,7 +160,7 @@ universe.features.findWhere goodUuid: uuid
160
160
 
161
161
  ```ruby
162
162
  universe.resources_list
163
- # => [:stock, :metadata, :custom_entity_metadata, :goods, :good_folders, :uoms, :countries,
163
+ # => [:stock, :embedded_entity_metadata, :custom_entity_metadata, :goods, :good_folders, :uoms, :countries,
164
164
  :features, :custom_entities, :customer_orders, :warehouses, :companies,
165
165
  :consignments, :my_companies]
166
166
  ```
@@ -171,14 +171,14 @@ universe.resources_list
171
171
  Например если вы хотите получить все виды свойств товаров, то это можно сделать следующим образом.
172
172
 
173
173
  ```ruby
174
- universe.metadata.subresource_by_name(:GoodFolder).all
174
+ universe.embedded_entity_metadata.subresource_by_name(:GoodFolder).all
175
175
  # => [Moysklad::Entities::AttributeMetadata, Moysklad::Entities::AttributeMetadata]
176
176
  ```
177
177
 
178
178
  Или получить конкретное свойство:
179
179
 
180
180
  ```ruby
181
- universe.metadata.subresource_by_name(:GoodFolder).find uuid
181
+ universe.embedded_entity_metadata.subresource_by_name(:GoodFolder).find uuid
182
182
  # => Moysklad::Entities::AttributeMetadata
183
183
  ```
184
184
 
@@ -213,7 +213,7 @@ attribute.is_dictionary?
213
213
  Получаем вид свойства:
214
214
 
215
215
  ```ruby
216
- attribute.metadata universe
216
+ attribute.embedded_entity_metadata universe
217
217
  # Client: GET exchange/rest/ms/xml/Metadata/list {}
218
218
  # => [Moysklad::Entities::AttributeMetadata]
219
219
  ```
@@ -221,7 +221,7 @@ attribute.metadata universe
221
221
  Получаем описание пользовательского справочника к которому принадлежит свойства
222
222
 
223
223
  ```ruby
224
- dictionary = attribute.metadata(universe).dictionatyMetadata(universe)
224
+ dictionary = attribute.embedded_entity_metadata(universe).dictionatyMetadata(universe)
225
225
  # Client: GET exchange/rest/ms/xml/CustomEntityMetadata/uuid {}
226
226
  # => [Moysklad::Entities::CustomEntityMetadata]
227
227
  ```
@@ -245,7 +245,7 @@ dictionary.entities(universe)
245
245
 
246
246
  1. Добавляем в фикстуры пример выгрузки из API для тестирования и отладки:
247
247
 
248
- MS_LOGON=логин MS_PASSWORD=пароль ./script/rest.sh Country list > ./spec/fixtures/Country_list.raw
248
+ MS_LOGON=логин MS_PASSWORD=пароль ./scripts/rest.sh Country list > ./spec/fixtures/Country_list.raw
249
249
 
250
250
  2. Создаем сущность на основе уже существующей, например good.rb
251
251
 
@@ -31,6 +31,7 @@ module Moysklad
31
31
  AttributeMetadata
32
32
  EmbeddedEntityMetadata
33
33
  Price
34
+ PriceType
34
35
  StockTO
35
36
  Company
36
37
  Warehouse
@@ -15,7 +15,7 @@ module Moysklad::Entities
15
15
  # @return Moysklad::Entities::AttributeMetadata
16
16
  #
17
17
  def metadata universe
18
- universe.metadata.subresource_by_name(:GoodFolder).find metadataUuid
18
+ universe.embedded_entity_metadata.subresource_by_name(:GoodFolder).find metadataUuid
19
19
  end
20
20
 
21
21
  # Название свойства, полученное из AttributeMetadata
@@ -31,7 +31,7 @@ module Moysklad::Entities
31
31
  #
32
32
  # @return Moysklad::Entities::EmbeddedEntityMetadata
33
33
  def entityMetadata universe
34
- universe.metadata.find entityMetadataUuid
34
+ universe.embedded_entity_metadata.find entityMetadataUuid
35
35
  end
36
36
 
37
37
  end
@@ -0,0 +1,13 @@
1
+ module Moysklad::Entities
2
+ class PriceType < Base
3
+ include CommonObject
4
+ include Moysklad::Entities::XmlFix
5
+ tag 'priceType'
6
+
7
+ attribute :updated, Time
8
+ attribute :updatedBy, String
9
+ attribute :name, String
10
+
11
+ attribute :index, Integer
12
+ end
13
+ end
@@ -8,5 +8,11 @@ module Moysklad::Entities
8
8
  attribute :currencyUuid, String
9
9
  attribute :priceTypeUuid, String
10
10
  attribute :value, Float
11
+
12
+ def priceType universe
13
+ cache :priceType, universe do
14
+ universe.price_types.find priceTypeUuid
15
+ end
16
+ end
11
17
  end
12
18
  end
@@ -11,13 +11,13 @@ module Moysklad::Resources
11
11
  require_relative 'resources/base'
12
12
  require_relative 'resources/indexed'
13
13
  require_relative 'resources/stock'
14
- require_relative 'resources/metadata'
14
+ require_relative 'resources/embedded_entity_metadata'
15
+ require_relative 'resources/embedded_entity_metadata_indexed'
15
16
  require_relative 'resources/custom_entity_metadata'
16
- require_relative 'resources/metadata_indexed'
17
17
  require_relative 'resources/subresource'
18
18
 
19
19
  # Простые ресурсы, которые создаются автоматически
20
- %w{Goods GoodFolders Uoms Countries Features CustomEntities CustomerOrders Warehouses Companies Consignments MyCompanies}.each do |klass_name|
20
+ %w{Goods GoodFolders Uoms PriceType Countries Features CustomEntities CustomerOrders Warehouses Companies Consignments MyCompanies}.each do |klass_name|
21
21
  const_set klass_name, Class.new( Base )
22
22
  end
23
23
 
@@ -1,19 +1,19 @@
1
1
  module Moysklad::Resources
2
- class Metadata < Base
2
+ class EmbeddedEntityMetadata < Base
3
3
  def self.entity_class
4
4
  Moysklad::Entities::EmbeddedEntityMetadata
5
5
  end
6
6
 
7
7
  def self.type
8
- 'Metadata'
8
+ 'EmbeddedEntityMetadata'
9
9
  end
10
10
 
11
11
  def self.pluralized_type
12
- :metadata
12
+ :embedded_entity_metadata
13
13
  end
14
14
 
15
15
  def self.indexed *args
16
- Moysklad::Resources::MetadataIndexed.new new(*args)
16
+ Moysklad::Resources::EmbeddedEntityMetadataIndexed.new new(*args)
17
17
  end
18
18
 
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Moysklad::Resources
2
- class MetadataIndexed < Indexed
2
+ class EmbeddedEntityMetadataIndexed < Indexed
3
3
  def subresource_by_name name
4
4
  Subresource.new findWhere(name: name.to_s).attributeMetadata
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module Moysklad
2
- VERSION = "0.1.5"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -0,0 +1,15 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/1.6.2
3
+ Date: Mon, 22 Dec 2014 16:26:04 GMT
4
+ Content-Type: application/xml
5
+ Transfer-Encoding: chunked
6
+ Connection: close
7
+ Vary: Accept-Encoding
8
+ Cache-Control: max-age=0
9
+ Expires: Mon, 22 Dec 2014 16:26:04 GMT
10
+ Strict-Transport-Security: max-age=15552000
11
+
12
+ <?xml version="1.0" encoding="UTF-8"?>
13
+ <collection total="36" start="0" count="1000">
14
+ <embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="CommissionReportIn" updated="2014-09-19T02:17:24.188+04:00" updatedBy="system@" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2c1e3136-3f83-11e4-aef7-002590a32f46</uuid><code>CommissionReportIn</code><externalcode>2c1e3154-3f83-11e4-aef8-002590a32f46</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Agent" updated="2014-07-28T18:48:06.655+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f73dd66-1666-11e4-b82f-002590a28eca</uuid><code>Agent</code><externalcode>t3ZUHrUwjoep91VKBW2Nm3</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Consignment" updated="2014-07-28T18:48:06.660+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f748c94-1666-11e4-6a17-002590a28eca</uuid><code>Consignment</code><externalcode>vjIDweNpjqOvXsbrSu14I2</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="GoodFolder" updated="2014-11-26T18:50:55.533+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f74e33d-1666-11e4-3c42-002590a28eca</uuid><code>GoodFolder</code><externalcode>Z35jypBFhA6BvLZXd48xd0</externalcode><description></description><attributeMetadata attrType="ID_CUSTOM" dictionaryMetadataUuid="b6a0973b-7493-11e4-90a2-8ecb0037a8aa" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" position="0" required="false" name="Цвет покрытий" updated="2014-11-25T14:43:30.375+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>ffdf0643-7493-11e4-90a2-8ecb0037b75b</uuid><externalcode>m_AbriorjvuXdhLlDzl2H0</externalcode><description></description></attributeMetadata><attributeMetadata attrType="ID_CUSTOM" dictionaryMetadataUuid="58081a5e-7498-11e4-90a2-8ecb0038d311" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" position="1" required="false" name="Вставки" updated="2014-11-25T14:43:57.056+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>5abf49e6-7498-11e4-90a2-8ecb0038d40f</uuid><externalcode>wtm98fGwhL2u-zTlxD3532</externalcode><description></description></attributeMetadata><attributeMetadata attrType="ID_CUSTOM" dictionaryMetadataUuid="9978eb26-7498-11e4-90a2-8ecb0038dee3" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" position="2" required="false" name="Цвета вставок" updated="2014-11-25T14:48:15.791+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>f4f71c9a-7498-11e4-90a2-8ecb0038ef89</uuid><externalcode>wkQ5a9pjhmq2FIBaujeg11</externalcode><description></description></attributeMetadata><attributeMetadata attrType="ID_CUSTOM" dictionaryMetadataUuid="0d626630-7499-11e4-90a2-8ecb0038f4ce" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" position="3" required="false" name="Цвет нити" updated="2014-11-25T14:50:10.956+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>399bc334-7499-11e4-90a2-8ecb0038fee7</uuid><externalcode>MNDC1am2gIGSwQ63kWLZm3</externalcode><description></description></attributeMetadata><attributeMetadata attrType="STRING" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" feature="true" position="4" required="false" name="Размер" updated="2014-11-26T18:50:55.533+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>0df9737e-1c88-11e4-d7f2-002590a28eca</uuid><externalcode>eVgbJGp9jqimu0XKxEfr42</externalcode></attributeMetadata><attributeMetadata attrType="STRING" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" feature="true" position="5" required="false" name="Артикул производителя" updated="2014-11-26T18:50:55.533+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>e9268de8-2e22-11e4-e6f1-002590a28eca</uuid><externalcode>XV-GKGtTjti0mkabL4bce3</externalcode></attributeMetadata><attributeMetadata attrType="STRING" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" feature="true" position="6" required="false" name="Материал" updated="2014-11-26T18:50:55.533+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>e9269053-2e22-11e4-4fbe-002590a28eca</uuid><externalcode>21hUU6IchHiGCY0urqb4s1</externalcode></attributeMetadata><attributeMetadata attrType="STRING" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" feature="true" position="7" required="false" name="Вставка" updated="2014-11-26T18:50:55.533+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>e9269168-2e22-11e4-d2b5-002590a28eca</uuid><externalcode>Ipq_DI1YhUe0-ZCQc8X6i0</externalcode></attributeMetadata><attributeMetadata attrType="STRING" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" feature="true" position="8" required="false" name="Покрытие" updated="2014-11-26T18:50:55.533+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>e9269299-2e22-11e4-bd51-002590a28eca</uuid><externalcode>Ct6LNwn8jgyLGKn7NrTXs2</externalcode></attributeMetadata><attributeMetadata attrType="STRING" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" feature="true" position="9" required="false" name="Цвет вставки" updated="2014-11-26T18:50:55.533+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>e92693a9-2e22-11e4-7084-002590a28eca</uuid><externalcode>RsoGjzkNiKOZxPkSjikkb1</externalcode></attributeMetadata><attributeMetadata attrType="STRING" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" feature="true" position="10" required="false" name="Цвет нити" updated="2014-11-26T18:50:55.533+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>3e4cee33-4a6a-11e4-7a07-673c002cf421</uuid><externalcode>RdGmGYPLjsaBwdweNCjWp1</externalcode></attributeMetadata><attributeMetadata attrType="STRING" entityMetadataUuid="2f74e33d-1666-11e4-3c42-002590a28eca" feature="true" position="11" required="false" name="Артикул" updated="2014-11-26T18:50:55.533+03:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>dc410ce3-505a-11e4-90a2-8eca00496371</uuid><externalcode>RsWjh8l6hUqMUZ0vecNZX3</externalcode></attributeMetadata></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Thing" updated="2014-07-28T18:48:06.663+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f7512b0-1666-11e4-82f9-002590a28eca</uuid><code>Thing</code><externalcode>sZnAJ4fajUaYEhleHUy1c2</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Warehouse" updated="2014-07-28T18:48:06.664+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f7538e8-1666-11e4-5247-002590a28eca</uuid><code>Warehouse</code><externalcode>50hQR8kLgg_uhQ06ojxA-1</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Project" updated="2014-07-28T18:48:06.666+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f756746-1666-11e4-3ae3-002590a28eca</uuid><code>Project</code><externalcode>OFW5FsDMgHaBpuWwkaV6S1</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Contract" updated="2014-07-28T18:48:06.667+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f75959d-1666-11e4-b6da-002590a28eca</uuid><code>Contract</code><externalcode>tYww4hkwizSz4K2rpfzsy0</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Employee" updated="2014-07-28T18:48:06.668+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f75c222-1666-11e4-83bd-002590a28eca</uuid><code>Employee</code><externalcode>mlc7ZbMGhKO4IfZvaNsu42</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="PurchaseOrder" updated="2014-07-28T18:48:06.669+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f75eb22-1666-11e4-d054-002590a28eca</uuid><code>PurchaseOrder</code><externalcode>2GBPTk4xjby01NYv-EgIa3</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="InvoiceIn" updated="2014-07-28T18:48:06.670+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f761720-1666-11e4-545d-002590a28eca</uuid><code>InvoiceIn</code><externalcode>ddaZr5KQj02TT_89xCLXs1</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Supply" updated="2014-07-28T18:48:06.671+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f763f0c-1666-11e4-066a-002590a28eca</uuid><code>Supply</code><externalcode>xPA0uKS3haKfGbBeCTV5T0</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="PurchaseReturn" updated="2014-07-28T18:48:06.673+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f768ddb-1666-11e4-bf2f-002590a28eca</uuid><code>PurchaseReturn</code><externalcode>QRYEVrMGj3Wdx7ATGACSq0</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="FactureIn" updated="2014-07-28T18:48:06.674+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f76bbcd-1666-11e4-40ea-002590a28eca</uuid><code>FactureIn</code><externalcode>iwcMAYzDhb_878Kyb7arj0</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="CustomerOrder" updated="2014-07-28T18:48:06.676+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f770b91-1666-11e4-ee04-002590a28eca</uuid><code>CustomerOrder</code><externalcode>yngVBmLBiH2raQPGX7hFr2</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="InvoiceOut" updated="2014-07-28T18:48:06.678+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f773c81-1666-11e4-c077-002590a28eca</uuid><code>InvoiceOut</code><externalcode>VIYmbwefiLeNMi7rpq-lo2</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Demand" updated="2014-07-28T18:48:06.679+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f776a12-1666-11e4-ee75-002590a28eca</uuid><code>Demand</code><externalcode>F8E6Kay5hKKkvg2zn3rSO3</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="RetailDemand" updated="2014-07-28T18:48:06.681+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f77b707-1666-11e4-c029-002590a28eca</uuid><code>RetailDemand</code><externalcode>R1uHi0Exj8GdblX31Q3yp3</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="SalesReturn" updated="2014-07-28T18:48:06.682+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f77e660-1666-11e4-7ee5-002590a28eca</uuid><code>SalesReturn</code><externalcode>rY3T7Ydcio6R0cC1eo3h52</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="RetailSalesReturn" updated="2014-07-28T18:48:06.683+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f7810d5-1666-11e4-32b3-002590a28eca</uuid><code>RetailSalesReturn</code><externalcode>citbnTMajYiOUV6fxtgB53</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="FactureOut" updated="2014-07-28T18:48:06.685+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f786f4b-1666-11e4-364c-002590a28eca</uuid><code>FactureOut</code><externalcode>kQwtkNymjki2l0nODE3oA1</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="PriceList" updated="2014-07-28T18:48:06.687+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f789c05-1666-11e4-1f39-002590a28eca</uuid><code>PriceList</code><externalcode>HSNgMR0Min6bl1ZSPUtPW2</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Loss" updated="2014-07-28T18:48:06.688+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f78d04f-1666-11e4-8b8e-002590a28eca</uuid><code>Loss</code><externalcode>Q2k7BpHiiim58a3Y5PHgY2</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Enter" updated="2014-07-28T18:48:06.689+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f790686-1666-11e4-3031-002590a28eca</uuid><code>Enter</code><externalcode>QIFk5Tllhj6BrTiNsiTLq0</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Move" updated="2014-07-28T18:48:06.690+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f7934b8-1666-11e4-540c-002590a28eca</uuid><code>Move</code><externalcode>hBkdBKWMjWu7wUXdtzjzW3</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Inventory" updated="2014-07-28T18:48:06.692+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f795f5e-1666-11e4-d15e-002590a28eca</uuid><code>Inventory</code><externalcode>t-9NV9_-j5WybOloKtNhw0</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="Processing" updated="2014-07-28T18:48:06.693+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f798eaa-1666-11e4-2862-002590a28eca</uuid><code>Processing</code><externalcode>YDbIQeQDgXaJelnNMiQ5I1</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="ProcessingOrder" updated="2014-07-28T18:48:06.694+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f79bb4d-1666-11e4-8107-002590a28eca</uuid><code>ProcessingOrder</code><externalcode>8knk1mU4jUW-9gvwk_DH61</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="InternalOrder" updated="2014-07-28T18:48:06.695+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f79ea69-1666-11e4-61e7-002590a28eca</uuid><code>InternalOrder</code><externalcode>W1eHF2Alg0_TWbVRLAuD91</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="PaymentIn" updated="2014-07-28T18:48:06.696+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f7a1b69-1666-11e4-4267-002590a28eca</uuid><code>PaymentIn</code><externalcode>V6AM4Jy_iTG5IdhkL0jR40</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="CashIn" updated="2014-07-28T18:48:06.698+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f7a4bf9-1666-11e4-2c59-002590a28eca</uuid><code>CashIn</code><externalcode>mJ1RNMqLiRi9Ll7lrGEsy0</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="RetailCashIn" updated="2014-07-28T18:48:06.700+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f7aacd8-1666-11e4-3ac3-002590a28eca</uuid><code>RetailCashIn</code><externalcode>xIpbrJVihFiK8zYCJH1vU1</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="RetailCashOut" updated="2014-07-28T18:48:06.704+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f7b5130-1666-11e4-9313-002590a28eca</uuid><code>RetailCashOut</code><externalcode>emk_CfZWgCqlPXVMmR-C90</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="PaymentOut" updated="2014-07-28T18:48:06.705+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f7b808f-1666-11e4-a38d-002590a28eca</uuid><code>PaymentOut</code><externalcode>MosWxTkMgVu9FjNWlXr2K2</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="CashOut" updated="2014-07-28T18:48:06.707+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f7bb202-1666-11e4-1fd8-002590a28eca</uuid><code>CashOut</code><externalcode>9qhuFXZVjZGMcWoM_Pdk-1</externalcode></embeddedEntityMetadata><embeddedEntityMetadata uniqueCode="false" codeValueType="0" independentNameGenerator="false" partialReserve="false" editOnlyByAuthor="false" noEditFromOtherPlaceSource="false" noApplicableFromOtherPlaceSource="false" noEditFromOtherPlaceTarget="false" noApplicableFromOtherPlaceTarget="false" editablePeriod="ALL" editableCalendarDays="0" editableWorkDays="0" name="CommissionReportOut" updated="2014-09-19T02:17:24.188+04:00" updatedBy="system@" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>67235a0e-3f83-11e4-9c66-002590a32f46</uuid><code>CommissionReportOut</code><externalcode>67235a36-3f83-11e4-9c67-002590a32f46</externalcode></embeddedEntityMetadata>
15
+ </collection>
@@ -0,0 +1,14 @@
1
+ HTTP/1.1 200 OK
2
+ Server: nginx/1.6.2
3
+ Date: Mon, 22 Dec 2014 16:03:00 GMT
4
+ Content-Type: application/xml
5
+ Content-Length: 439
6
+ Connection: close
7
+ Cache-Control: max-age=0
8
+ Expires: Mon, 22 Dec 2014 16:03:00 GMT
9
+ Strict-Transport-Security: max-age=15552000
10
+
11
+ <?xml version="1.0" encoding="UTF-8"?>
12
+ <collection total="1" start="0" count="1000">
13
+ <priceType index="0" name="Цена продажи" updated="2014-07-28T18:48:06.728+04:00" updatedBy="admin@wannabejewelry" readMode="ALL" changeMode="ALL"><accountUuid>2f678846-1666-11e4-1e95-002590a28eca</accountUuid><accountId>2f678846-1666-11e4-1e95-002590a28eca</accountId><uuid>2f7ee9c7-1666-11e4-5b14-002590a28eca</uuid></priceType>
14
+ </collection>
@@ -1,12 +1,12 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Moysklad::Entities::AttributeMetadata do
4
- let(:metadata_resource) { Moysklad::Resources::Metadata.indexed client: client }
4
+ let(:metadata_resource) { Moysklad::Resources::EmbeddedEntityMetadata.indexed client: client }
5
5
  let(:subresource) { metadata_resource.subresource_by_name :GoodFolder }
6
6
  let(:attribute_metadata) { subresource.items.first }
7
7
 
8
8
  before do
9
- stub_rest :Metadata, :list, 0
9
+ stub_rest :EmbeddedEntityMetadata, :list, 0
10
10
  stub_rest :CustomEntityMetadata, :list, 0
11
11
  end
12
12
 
@@ -5,7 +5,7 @@ describe Moysklad::Entities::Attribute do
5
5
 
6
6
  before do
7
7
  stub_rest :Good, good_uuid
8
- stub_rest :Metadata, :list, 0
8
+ stub_rest :EmbeddedEntityMetadata, :list, 0
9
9
  stub_rest :CustomEntity, :list, 0
10
10
  end
11
11
 
@@ -1,15 +1,15 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe Moysklad::Resources::MetadataIndexed do
3
+ describe Moysklad::Resources::EmbeddedEntityMetadataIndexed do
4
4
 
5
5
  let(:article_uuid) { 'dc410ce3-505a-11e4-90a2-8eca00496371' }
6
6
 
7
7
  before do
8
- stub_rest :Metadata, :list, 0
8
+ stub_rest :EmbeddedEntityMetadata, :list, 0
9
9
  end
10
10
 
11
11
  describe 'subresource' do
12
- let(:metadata_resource) { Moysklad::Resources::Metadata.indexed client: client }
12
+ let(:metadata_resource) { Moysklad::Resources::EmbeddedEntityMetadata.indexed client: client }
13
13
  subject { metadata_resource.subresource_by_name :GoodFolder }
14
14
 
15
15
  it { expect(subject).to be_a Moysklad::Resources::Subresource }
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ describe Moysklad::Resources::EmbeddedEntityMetadata do
4
+ describe do
5
+ subject { described_class.new client: client }
6
+ it 'should get list' do
7
+ expect(subject.send(:list_path)).to eq "exchange/rest/ms/xml/EmbeddedEntityMetadata/list"
8
+ end
9
+ end
10
+
11
+ end
@@ -5,6 +5,6 @@ describe Moysklad::Resources do
5
5
  expect(Moysklad::Resources).to be_a Module
6
6
 
7
7
  expect(Moysklad::Resources.resources).to include(Moysklad::Resources::Features)
8
- expect(Moysklad::Resources.resources).to include(Moysklad::Resources::Metadata)
8
+ expect(Moysklad::Resources.resources).to include(Moysklad::Resources::EmbeddedEntityMetadata)
9
9
  end
10
10
  end
@@ -14,7 +14,7 @@ describe Moysklad::Universe do
14
14
  end
15
15
 
16
16
  it do
17
- expect(subject.metadata.resource).to be_a Moysklad::Resources::Metadata
17
+ expect(subject.embedded_entity_metadata.resource).to be_a Moysklad::Resources::EmbeddedEntityMetadata
18
18
  end
19
19
 
20
20
  it do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moysklad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danil Pismenny
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-05 00:00:00.000000000 Z
11
+ date: 2014-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -253,6 +253,7 @@ files:
253
253
  - lib/moysklad/entities/my_company.rb
254
254
  - lib/moysklad/entities/page.rb
255
255
  - lib/moysklad/entities/price.rb
256
+ - lib/moysklad/entities/price_type.rb
256
257
  - lib/moysklad/entities/sale_price.rb
257
258
  - lib/moysklad/entities/sale_prices.rb
258
259
  - lib/moysklad/entities/slot.rb
@@ -263,9 +264,9 @@ files:
263
264
  - lib/moysklad/resources.rb
264
265
  - lib/moysklad/resources/base.rb
265
266
  - lib/moysklad/resources/custom_entity_metadata.rb
267
+ - lib/moysklad/resources/embedded_entity_metadata.rb
268
+ - lib/moysklad/resources/embedded_entity_metadata_indexed.rb
266
269
  - lib/moysklad/resources/indexed.rb
267
- - lib/moysklad/resources/metadata.rb
268
- - lib/moysklad/resources/metadata_indexed.rb
269
270
  - lib/moysklad/resources/stock.rb
270
271
  - lib/moysklad/resources/subresource.rb
271
272
  - lib/moysklad/resources/where_filter.rb
@@ -284,12 +285,14 @@ files:
284
285
  - spec/fixtures/Country_list.raw
285
286
  - spec/fixtures/CustomEntityMetadata_list.raw
286
287
  - spec/fixtures/CustomEntity_list.raw
288
+ - spec/fixtures/EmbeddedEntityMetadata_list.raw
287
289
  - spec/fixtures/Feature_list.raw
288
290
  - spec/fixtures/Feature_list_1000.raw
289
291
  - spec/fixtures/Good_e932ebe1-2e22-11e4-9406-002590a28eca.raw
290
292
  - spec/fixtures/Good_eb77ad57-2e22-11e4-4030-002590a28eca.raw
291
293
  - spec/fixtures/Goods_list.raw
292
294
  - spec/fixtures/Metadata_list.raw
295
+ - spec/fixtures/PriceType_list.raw
293
296
  - spec/fixtures/Stock.raw
294
297
  - spec/fixtures/Stock_showConsignments.raw
295
298
  - spec/fixtures/Uom_list.raw
@@ -316,10 +319,10 @@ files:
316
319
  - spec/lib/moysklad/resources/base_spec.rb
317
320
  - spec/lib/moysklad/resources/countries_spec.rb
318
321
  - spec/lib/moysklad/resources/custom_entity_metadata_spec.rb
322
+ - spec/lib/moysklad/resources/embedded_entity_metadata_indexed_spec.rb
323
+ - spec/lib/moysklad/resources/embedded_entity_metadata_spec.rb
319
324
  - spec/lib/moysklad/resources/good_folders_spec.rb
320
325
  - spec/lib/moysklad/resources/indexed_spec.rb
321
- - spec/lib/moysklad/resources/metadata_indexed_spec.rb
322
- - spec/lib/moysklad/resources/metadata_spec.rb
323
326
  - spec/lib/moysklad/resources/stock_spec.rb
324
327
  - spec/lib/moysklad/resources/subresource_spec.rb
325
328
  - spec/lib/moysklad/resources/warehouses_spec.rb
@@ -364,12 +367,14 @@ test_files:
364
367
  - spec/fixtures/Country_list.raw
365
368
  - spec/fixtures/CustomEntityMetadata_list.raw
366
369
  - spec/fixtures/CustomEntity_list.raw
370
+ - spec/fixtures/EmbeddedEntityMetadata_list.raw
367
371
  - spec/fixtures/Feature_list.raw
368
372
  - spec/fixtures/Feature_list_1000.raw
369
373
  - spec/fixtures/Good_e932ebe1-2e22-11e4-9406-002590a28eca.raw
370
374
  - spec/fixtures/Good_eb77ad57-2e22-11e4-4030-002590a28eca.raw
371
375
  - spec/fixtures/Goods_list.raw
372
376
  - spec/fixtures/Metadata_list.raw
377
+ - spec/fixtures/PriceType_list.raw
373
378
  - spec/fixtures/Stock.raw
374
379
  - spec/fixtures/Stock_showConsignments.raw
375
380
  - spec/fixtures/Uom_list.raw
@@ -396,10 +401,10 @@ test_files:
396
401
  - spec/lib/moysklad/resources/base_spec.rb
397
402
  - spec/lib/moysklad/resources/countries_spec.rb
398
403
  - spec/lib/moysklad/resources/custom_entity_metadata_spec.rb
404
+ - spec/lib/moysklad/resources/embedded_entity_metadata_indexed_spec.rb
405
+ - spec/lib/moysklad/resources/embedded_entity_metadata_spec.rb
399
406
  - spec/lib/moysklad/resources/good_folders_spec.rb
400
407
  - spec/lib/moysklad/resources/indexed_spec.rb
401
- - spec/lib/moysklad/resources/metadata_indexed_spec.rb
402
- - spec/lib/moysklad/resources/metadata_spec.rb
403
408
  - spec/lib/moysklad/resources/stock_spec.rb
404
409
  - spec/lib/moysklad/resources/subresource_spec.rb
405
410
  - spec/lib/moysklad/resources/warehouses_spec.rb
@@ -1,15 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Moysklad::Resources::Metadata do
4
- it 'should be loaded' do
5
- expect(Moysklad::Resources::Metadata).to be_a Class
6
- end
7
-
8
- describe do
9
- subject { Moysklad::Resources::Metadata.new client: client }
10
- it 'should get list' do
11
- expect(subject.send(:list_path)).to eq "exchange/rest/ms/xml/Metadata/list"
12
- end
13
- end
14
-
15
- end