agris 0.6.0 → 0.8.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0633d8511060aaa7dd3fff4519fd9f3cf293d708ee069ed66028d51b80ce2862
|
4
|
+
data.tar.gz: b74491cd7e83d21250f0d35746c7ae4be34b1bf871c1b8468035f22b39c2d1c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fa26483332572cb8167424f077029b359065d8c7bfec990e5048f3719e8395458c157cc5cfe1155a67578e5e7d78f1cbb5e989ce3af48aa5bcc4b665a1edbb5
|
7
|
+
data.tar.gz: 490bb74e1e0688abce4d4d31d7764d9d366a2e9ffce5dd685262dc452d93f91559429774a834cdd29d77bb6610386f3b510b05ba7182ea0e6b18b2bc673fe136
|
@@ -58,14 +58,18 @@ module Agris
|
|
58
58
|
self
|
59
59
|
end
|
60
60
|
|
61
|
-
def
|
62
|
-
|
61
|
+
def schedules
|
62
|
+
@schedules || []
|
63
63
|
end
|
64
64
|
|
65
65
|
def remarks
|
66
66
|
@remarks || []
|
67
67
|
end
|
68
68
|
|
69
|
+
def records
|
70
|
+
[self] + schedules + remarks
|
71
|
+
end
|
72
|
+
|
69
73
|
def xml_ignore_attributes
|
70
74
|
%i(schedules remarks)
|
71
75
|
end
|
@@ -73,14 +77,3 @@ module Agris
|
|
73
77
|
end
|
74
78
|
end
|
75
79
|
end
|
76
|
-
|
77
|
-
# I. reserved 1
|
78
|
-
# V. DISC TABLES
|
79
|
-
# X. ADD UPDATE OPTION
|
80
|
-
# Z. reserved 2
|
81
|
-
# AD. UPDATE FLD SELECT
|
82
|
-
# AF. FIRST 20 DISCOUNT TAB
|
83
|
-
# AG. LAST 20 DISCOUNT TABL
|
84
|
-
# AH. reserved 3
|
85
|
-
# AI. reserved 4
|
86
|
-
|
@@ -5,8 +5,6 @@ module Agris
|
|
5
5
|
class NewContractSchedule
|
6
6
|
include XmlModel
|
7
7
|
|
8
|
-
apply_status
|
9
|
-
|
10
8
|
ATTRIBUTE_NAMES = %w(
|
11
9
|
price_status
|
12
10
|
apply_name_id
|
@@ -94,27 +92,26 @@ module Agris
|
|
94
92
|
|
95
93
|
@record_type = 'GRNC1'
|
96
94
|
end
|
95
|
+
|
96
|
+
def add_trans_code(trans_code)
|
97
|
+
@trans_codes ||= []
|
98
|
+
@trans_codes << trans_code
|
99
|
+
|
100
|
+
self
|
101
|
+
end
|
102
|
+
|
103
|
+
def trans_codes
|
104
|
+
@trans_codes || []
|
105
|
+
end
|
106
|
+
|
107
|
+
def records
|
108
|
+
[self] + trans_codes
|
109
|
+
end
|
110
|
+
|
111
|
+
def xml_ignore_attributes
|
112
|
+
%i(trans_codes)
|
113
|
+
end
|
97
114
|
end
|
98
115
|
end
|
99
116
|
end
|
100
117
|
end
|
101
|
-
|
102
|
-
# salesperson_code
|
103
|
-
# merchandiser_code
|
104
|
-
|
105
|
-
# H. tran code 1
|
106
|
-
# I. tran code 2
|
107
|
-
# J. tran code 3
|
108
|
-
# K. tran code 4
|
109
|
-
# L. tran code 5
|
110
|
-
# AX. UPDATE FLD SELECT 1
|
111
|
-
# AY. UPDATE FLD SELECT 2
|
112
|
-
# AZ. UPDATE FLD SELECT 3
|
113
|
-
# BA. DISC TABLES
|
114
|
-
# BL. TRANSPORT MODE
|
115
|
-
# CH. FIRST 20 DISCOUNT TAB
|
116
|
-
# CK. LAST 20 DISCOUNT TABL
|
117
|
-
# CL. reserved 1
|
118
|
-
# CM. reserved 2
|
119
|
-
# CN. reserved 3
|
120
|
-
# CO. reserved 4
|
@@ -0,0 +1,24 @@
|
|
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
|
data/lib/agris/version.rb
CHANGED
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.
|
4
|
+
version: 0.8.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-
|
12
|
+
date: 2024-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
@@ -174,6 +174,7 @@ 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
|
177
178
|
- lib/agris/api/grain/new_ticket.rb
|
178
179
|
- lib/agris/api/grain/new_ticket_application.rb
|
179
180
|
- lib/agris/api/grain/new_ticket_remark.rb
|