agris 0.13.0 → 0.14.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: b01b1c2bdbf5778087a2ce5a47c9acf25b98e537a78c613115c3d71ecd5b8c16
4
- data.tar.gz: 65f4af5eda9e2bec401b21f83023fb499db85e5b335364a8b6ac5b4fefccc7e0
3
+ metadata.gz: eaf7263670a136c8efbc0a4d437240f566724a756b379242353565ead5934779
4
+ data.tar.gz: 4d18688b7461b704b0984acbce6ca1931f4306d8cc78538d734e6451df486c9e
5
5
  SHA512:
6
- metadata.gz: d736ba6fa4a6292e45074cbfb46f3b46baeba254f5d3d69b003d7c9171c7292b5ea09c70ac9bab03c16eec489f489b897080bf0afc51acdb2673c21f0fc915cd
7
- data.tar.gz: 33348d956029a0d6fcccef8399c15be25d250b9257eb5b3ec01c59e5aa58d0ad297576ffdfeb4748c76fdd93b42b23db8ae8620819055e6dc707fb523271879c
6
+ metadata.gz: 17d60a0f3152ff051da439cd1d0c1ee5d4a184adfb3fc6d7c2ceee42fe5c4976c5affdad456c49acdb51f9667efb6446c6945493832146ca2f380c5ad67d660d
7
+ data.tar.gz: 9a5e180f1d918deaef8c75f9e5ab030b69aa632eaf5827166b5c2221e925632a664de171de8a1438575106230b0a434e0fde7b05fa0a6b73d735527719cdb744
@@ -6,11 +6,13 @@ module Agris
6
6
  autoload :Commodity, 'agris/api/grain/commodity'
7
7
  autoload :CommodityCodes, 'agris/api/grain/commodity_codes'
8
8
  autoload :Contract, 'agris/api/grain/contract'
9
+ autoload :FarmFields, 'agris/api/name/farm_fields'
9
10
  autoload :GradeFactors, 'agris/api/grain/grade_factors'
10
11
  autoload :GrainModule, 'agris/api/grain/grain_module'
11
12
  autoload :PurchaseContracts, 'agris/api/grain/purchase_contracts'
12
13
  autoload :NewContract, 'agris/api/grain/new_contract'
13
14
  autoload :NewContractSchedule, 'agris/api/grain/new_contract_schedule'
15
+ autoload :NewFarmField, 'agris/api/name/new_farm_field'
14
16
  autoload :NewTicket, 'agris/api/grain/new_ticket'
15
17
  autoload :NewTicketApplication, 'agris/api/grain/new_ticket_application'
16
18
  autoload :NewTicketRemark, 'agris/api/grain/new_ticket_remark'
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Agris
4
+ module Api
5
+ module Name
6
+ class FarmFields
7
+ def create_farm_field(farm_field)
8
+ import(farm_field)
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Agris
4
+ module Api
5
+ module Name
6
+ class NewFarmField
7
+ include XmlModel
8
+
9
+ ATTRIBUTE_NAMES = %w(
10
+ name_id
11
+ farm_abbreviation
12
+ farm_status
13
+ farm_description
14
+ field_abbreviation
15
+ field_status
16
+ field_description
17
+ ).freeze
18
+
19
+ attr_accessor(*ATTRIBUTE_NAMES)
20
+
21
+ def initialize(hash = {})
22
+ super
23
+
24
+ @record_type = 'NAMF0'
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
data/lib/agris/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Agris
4
- VERSION = '0.13.0'
4
+ VERSION = '0.14.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Gray
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-08-09 00:00:00.000000000 Z
12
+ date: 2024-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -207,6 +207,8 @@ files:
207
207
  - lib/agris/api/messages/query_order_documents.rb
208
208
  - lib/agris/api/messages/query_purchase_contract_documents.rb
209
209
  - lib/agris/api/messages/query_sales_contract_documents.rb
210
+ - lib/agris/api/name/farm_fields.rb
211
+ - lib/agris/api/name/new_farm_field.rb
210
212
  - lib/agris/api/new_order.rb
211
213
  - lib/agris/api/new_order_remark.rb
212
214
  - lib/agris/api/new_voucher.rb