agris 0.12.0 → 0.14.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
  SHA256:
3
- metadata.gz: 83de61e6c3ece173301e410d1456ce90358d7a937128afc827511a1e77a71193
4
- data.tar.gz: c98b57cb7f8faac2bbe8e9d40d0ccba57232a2135aca99e166f01e5f6f6ed04c
3
+ metadata.gz: eaf7263670a136c8efbc0a4d437240f566724a756b379242353565ead5934779
4
+ data.tar.gz: 4d18688b7461b704b0984acbce6ca1931f4306d8cc78538d734e6451df486c9e
5
5
  SHA512:
6
- metadata.gz: a533f4ded640940595787d167a6d56c8f1494bac2b1ccc50df8dcb1405857c90f00a9f3a3ae60a063890262c01db5658d18c4a88101265b4643035df0ae65fa4
7
- data.tar.gz: aff4b153e10fb10daf9d57fcf52a60e2641aa8ed465f6dd899ae4de62d828b76148d76228fb3e61066fc1506c36630ae137dc10a664ad6697f90da0ecfa2f9bc
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'
@@ -24,7 +24,7 @@ module Agris
24
24
  :@endofprocessoption => 1,
25
25
  :@altnameidonfile => 'N',
26
26
  :@usecurdate4outofrange => 'N',
27
- :@reportoption => 1,
27
+ :@reportoption => 0,
28
28
  :@usefile => false
29
29
  }
30
30
  end
@@ -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.12.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.12.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-03-22 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