agris 0.11.0 → 0.13.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: 4ca59aa46ef40059a98f12291e6433e2dd81e310c552f45816c4f5f0b64f15d1
4
- data.tar.gz: adc82e55c4d84649bf5a3758900d3076c1b4521fe5396a1be4d73dda21149787
3
+ metadata.gz: b01b1c2bdbf5778087a2ce5a47c9acf25b98e537a78c613115c3d71ecd5b8c16
4
+ data.tar.gz: 65f4af5eda9e2bec401b21f83023fb499db85e5b335364a8b6ac5b4fefccc7e0
5
5
  SHA512:
6
- metadata.gz: a3fb735daf4a387d809a32ed37e466b38ba32575f4649ad86d2c231b609c00fb185b641f1b8471299877f77a712cf4dd0ca52574d634d60cc87aa0dddcdf2f83
7
- data.tar.gz: 9aa2ed7a02355c603b57ebcc9d7bdf75aa537f20e7062bd7bec85e86a13ab621da82fcf4de3feb1113057371a1d8bcc13db7d046421e4bfdf34e28468088134d
6
+ metadata.gz: d736ba6fa4a6292e45074cbfb46f3b46baeba254f5d3d69b003d7c9171c7292b5ea09c70ac9bab03c16eec489f489b897080bf0afc51acdb2673c21f0fc915cd
7
+ data.tar.gz: 33348d956029a0d6fcccef8399c15be25d250b9257eb5b3ec01c59e5aa58d0ad297576ffdfeb4748c76fdd93b42b23db8ae8620819055e6dc707fb523271879c
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Agris
4
+ module Api
5
+ module Grain
6
+ class Rates
7
+ include XmlModel
8
+
9
+ ATTRIBUTE_NAMES = %w(
10
+ rate_1
11
+ rate_2
12
+ rate_3
13
+ rate_4
14
+ rate_type_1
15
+ rate_type_2
16
+ rate_type_3
17
+ rate_type_4
18
+ code_1
19
+ code_2
20
+ code_3
21
+ code_4
22
+ table_1
23
+ table_2
24
+ table_3
25
+ table_4
26
+ ).freeze
27
+
28
+ attr_reader :record_type
29
+ attr_accessor(*ATTRIBUTE_NAMES)
30
+
31
+ def initialize(hash = {})
32
+ super
33
+
34
+ @record_type = 'GRNT1R'
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -14,13 +14,11 @@ module Agris
14
14
  autoload :NewTicket, 'agris/api/grain/new_ticket'
15
15
  autoload :NewTicketApplication, 'agris/api/grain/new_ticket_application'
16
16
  autoload :NewTicketRemark, 'agris/api/grain/new_ticket_remark'
17
+ autoload :Rates, 'agris/api/grain/rates'
17
18
  autoload :SalesContracts, 'agris/api/grain/sales_contracts'
18
- autoload :SpecificCommodityCodeExtract,
19
- 'agris/api/grain/specific_commodity_code_extract'
20
- autoload :SpecificContractExtract,
21
- 'agris/api/grain/specific_contract_extract'
22
- autoload :Tickets,
23
- 'agris/api/grain/tickets'
19
+ autoload :SpecificCommodityCodeExtract, 'agris/api/grain/specific_commodity_code_extract'
20
+ autoload :SpecificContractExtract, 'agris/api/grain/specific_contract_extract'
21
+ autoload :Tickets, 'agris/api/grain/tickets'
24
22
  end
25
23
  end
26
24
  end
@@ -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
data/lib/agris/version.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Agris
3
- VERSION = '0.11.0'
4
+ VERSION = '0.13.0'
4
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.11.0
4
+ version: 0.13.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-07 00:00:00.000000000 Z
12
+ date: 2024-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -178,6 +178,7 @@ files:
178
178
  - lib/agris/api/grain/new_ticket_application.rb
179
179
  - lib/agris/api/grain/new_ticket_remark.rb
180
180
  - lib/agris/api/grain/purchase_contracts.rb
181
+ - lib/agris/api/grain/rates.rb
181
182
  - lib/agris/api/grain/sales_contracts.rb
182
183
  - lib/agris/api/grain/specific_commodity_code_extract.rb
183
184
  - lib/agris/api/grain/specific_contract_extract.rb