agris 0.10.0 → 0.12.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: f685c848393fcf756e8b1de2b1bc4ee1b1b1811c1e53acb0a7c50761acb26ada
4
- data.tar.gz: 5ff24d955f352c328cae3c1d8e5b614eecf373ba8d5d96f2d1ba750ad5a59853
3
+ metadata.gz: 83de61e6c3ece173301e410d1456ce90358d7a937128afc827511a1e77a71193
4
+ data.tar.gz: c98b57cb7f8faac2bbe8e9d40d0ccba57232a2135aca99e166f01e5f6f6ed04c
5
5
  SHA512:
6
- metadata.gz: 94ee3b6fa696446b431b968560885072ff19b113c536d6a22c9f8cdaae8e510eb7d428034be1f785c7b6ce47b9de4bd07ffb234cf3587f6f28ad6b04b74d5c46
7
- data.tar.gz: 8596be46f4a51f27329995331e576474d20a246e411b537ead9138e07dc38e100f6337881aa6be3a5f69517f4bff7d025dbecea9e6c6bcba602051e22dbe3d81
6
+ metadata.gz: a533f4ded640940595787d167a6d56c8f1494bac2b1ccc50df8dcb1405857c90f00a9f3a3ae60a063890262c01db5658d18c4a88101265b4643035df0ae65fa4
7
+ data.tar.gz: aff4b153e10fb10daf9d57fcf52a60e2641aa8ed465f6dd899ae4de62d828b76148d76228fb3e61066fc1506c36630ae137dc10a664ad6697f90da0ecfa2f9bc
@@ -82,6 +82,11 @@ module Agris
82
82
  freight_exchange_rate_date
83
83
  primary_schedule
84
84
  option_quantity
85
+ tran_code_1
86
+ tran_code_2
87
+ tran_code_3
88
+ tran_code_4
89
+ tran_code_5
85
90
  ).freeze
86
91
 
87
92
  attr_accessor(*ATTRIBUTE_NAMES)
@@ -92,23 +97,8 @@ module Agris
92
97
  @record_type = 'GRNC1'
93
98
  end
94
99
 
95
- def add_trans_code(trans_code)
96
- @trans_codes ||= []
97
- @trans_codes << trans_code
98
-
99
- self
100
- end
101
-
102
- def trans_codes
103
- @trans_codes || []
104
- end
105
-
106
100
  def records
107
- [self] + trans_codes
108
- end
109
-
110
- def xml_ignore_attributes
111
- %i(trans_codes)
101
+ [self]
112
102
  end
113
103
  end
114
104
  end
@@ -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
data/lib/agris/version.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Agris
3
- VERSION = '0.10.0'
4
+ VERSION = '0.12.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.10.0
4
+ version: 0.12.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-02-28 00:00:00.000000000 Z
12
+ date: 2024-03-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -174,11 +174,11 @@ files:
174
174
  - lib/agris/api/grain/grain_module.rb
175
175
  - lib/agris/api/grain/new_contract.rb
176
176
  - lib/agris/api/grain/new_contract_schedule.rb
177
- - lib/agris/api/grain/new_contract_schedule_transcode.rb
178
177
  - lib/agris/api/grain/new_ticket.rb
179
178
  - lib/agris/api/grain/new_ticket_application.rb
180
179
  - lib/agris/api/grain/new_ticket_remark.rb
181
180
  - lib/agris/api/grain/purchase_contracts.rb
181
+ - lib/agris/api/grain/rates.rb
182
182
  - lib/agris/api/grain/sales_contracts.rb
183
183
  - lib/agris/api/grain/specific_commodity_code_extract.rb
184
184
  - lib/agris/api/grain/specific_contract_extract.rb
@@ -215,7 +215,6 @@ files:
215
215
  - lib/agris/api/post_result.rb
216
216
  - lib/agris/api/remark.rb
217
217
  - lib/agris/api/support.rb
218
- - lib/agris/api/tran_code.rb
219
218
  - lib/agris/client.rb
220
219
  - lib/agris/context.rb
221
220
  - lib/agris/credentials.rb
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
- module Agris
3
- module Api
4
- module Grain
5
- class NewContractScheduleTranscode
6
- include XmlModel
7
-
8
- ATTRIBUTE_NAMES = %w(
9
- number
10
- code
11
- description
12
- ).freeze
13
-
14
- attr_reader :record_type
15
-
16
- def initialize(hash = {})
17
- super
18
-
19
- @record_type = 'GRNC2'
20
- end
21
- end
22
- end
23
- end
24
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
- module Agris
3
- module Api
4
- class TranCode
5
- include XmlModel
6
-
7
- ATTRIBUTE_NAMES = %w(
8
- num
9
- label
10
- code
11
- description
12
- ).freeze
13
-
14
- attr_reader(*ATTRIBUTE_NAMES)
15
- end
16
- end
17
- end