gandi_v5 0.2.0 → 0.3.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.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +1 -1
  4. data/.travis.yml +9 -0
  5. data/CHANGELOG.md +15 -0
  6. data/FUNDING.yml +10 -0
  7. data/README.md +7 -17
  8. data/gandi_v5.gemspec +3 -2
  9. data/lib/gandi_v5.rb +24 -10
  10. data/lib/gandi_v5/billing.rb +0 -2
  11. data/lib/gandi_v5/billing/info.rb +0 -2
  12. data/lib/gandi_v5/data.rb +0 -2
  13. data/lib/gandi_v5/data/converter.rb +0 -4
  14. data/lib/gandi_v5/domain.rb +159 -17
  15. data/lib/gandi_v5/domain/availability.rb +0 -3
  16. data/lib/gandi_v5/domain/availability/product.rb +0 -3
  17. data/lib/gandi_v5/domain/live_dns.rb +42 -0
  18. data/lib/gandi_v5/domain/renewal_information.rb +0 -3
  19. data/lib/gandi_v5/email.rb +0 -4
  20. data/lib/gandi_v5/email/forward.rb +108 -0
  21. data/lib/gandi_v5/email/mailbox.rb +0 -2
  22. data/lib/gandi_v5/error.rb +0 -2
  23. data/lib/gandi_v5/live_dns.rb +0 -4
  24. data/lib/gandi_v5/live_dns/domain.rb +1 -144
  25. data/lib/gandi_v5/live_dns/has_zone_records.rb +153 -0
  26. data/lib/gandi_v5/live_dns/zone.rb +1 -146
  27. data/lib/gandi_v5/organization.rb +28 -5
  28. data/lib/gandi_v5/version.rb +1 -1
  29. data/spec/.rubocop.yml +1 -1
  30. data/spec/features/domain_spec.rb +1 -1
  31. data/spec/fixtures/bodies/GandiV5_Billing/{info.yaml → info.yml} +0 -0
  32. data/spec/fixtures/bodies/GandiV5_Domain/{get.yaml → fetch.yml} +0 -0
  33. data/spec/fixtures/bodies/GandiV5_Domain/{fetch_contacts.yaml → fetch_contacts.yml} +0 -0
  34. data/spec/fixtures/bodies/GandiV5_Domain/fetch_glue_records.yml +7 -0
  35. data/spec/fixtures/bodies/GandiV5_Domain/fetch_livedns.yml +6 -0
  36. data/spec/fixtures/bodies/GandiV5_Domain/fetch_name_servers.yml +2 -0
  37. data/spec/fixtures/bodies/GandiV5_Domain/{renewal_info.yaml → fetch_renewal_info.yml} +0 -3
  38. data/spec/fixtures/bodies/GandiV5_Domain/{restore_info.yaml → fetch_restore_info.yml} +0 -0
  39. data/spec/fixtures/bodies/GandiV5_Domain/{list.yaml → list.yml} +1 -0
  40. data/spec/fixtures/bodies/GandiV5_Domain_Availability/{fetch.yaml → fetch.yml} +0 -0
  41. data/spec/fixtures/bodies/GandiV5_Domain_TLD/{fetch.yaml → fetch.yml} +0 -0
  42. data/spec/fixtures/bodies/GandiV5_Domain_TLD/{list.yaml → list.yml} +0 -0
  43. data/spec/fixtures/bodies/GandiV5_Email_Forward/list.yml +6 -0
  44. data/spec/fixtures/bodies/GandiV5_Email_Mailbox/{get.yaml → fetch.yml} +0 -0
  45. data/spec/fixtures/bodies/GandiV5_Email_Mailbox/{list.yaml → list.yml} +0 -0
  46. data/spec/fixtures/bodies/GandiV5_Email_Slot/{get.yaml → fetch.yml} +0 -0
  47. data/spec/fixtures/bodies/GandiV5_Email_Slot/{list.yaml → list.yml} +0 -0
  48. data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain/{get.yaml → fetch.yml} +0 -0
  49. data/spec/fixtures/bodies/GandiV5_LiveDNS_Domain/{list.yaml → list.yml} +0 -0
  50. data/spec/fixtures/bodies/GandiV5_LiveDNS_Zone/{get.yaml → fetch.yml} +0 -0
  51. data/spec/fixtures/bodies/GandiV5_LiveDNS_Zone/{list.yaml → list.yml} +0 -0
  52. data/spec/fixtures/bodies/GandiV5_LiveDNS_Zone_Snapshot/{fetch.yaml → fetch.yml} +0 -0
  53. data/spec/fixtures/bodies/GandiV5_LiveDNS_Zone_Snapshot/{list.yaml → list.yml} +0 -0
  54. data/spec/fixtures/bodies/GandiV5_Organization/{get.yaml → fetch.yml} +0 -0
  55. data/spec/fixtures/bodies/GandiV5_Organization/list.yml +7 -0
  56. data/spec/fixtures/vcr/Domain_features/List_domains.yml +2 -1
  57. data/spec/spec_helper.rb +2 -2
  58. data/spec/units/gandi_v5/billing_spec.rb +2 -2
  59. data/spec/units/gandi_v5/domain/availability_spec.rb +1 -1
  60. data/spec/units/gandi_v5/domain/live_dns_spec.rb +45 -0
  61. data/spec/units/gandi_v5/domain/tld_spec.rb +2 -2
  62. data/spec/units/gandi_v5/domain_spec.rb +241 -22
  63. data/spec/units/gandi_v5/email/forward_spec.rb +121 -0
  64. data/spec/units/gandi_v5/email/mailbox_spec.rb +3 -3
  65. data/spec/units/gandi_v5/email/slot_spec.rb +3 -3
  66. data/spec/units/gandi_v5/live_dns/domain_spec.rb +3 -3
  67. data/spec/units/gandi_v5/live_dns/zone/snapshot_spec.rb +2 -2
  68. data/spec/units/gandi_v5/live_dns/zone_spec.rb +2 -2
  69. data/spec/units/gandi_v5/organization_spec.rb +38 -1
  70. metadata +51 -77
  71. data/doc/GandiV5.html +0 -1183
  72. data/doc/GandiV5/Billing.html +0 -293
  73. data/doc/GandiV5/Billing/Info.html +0 -641
  74. data/doc/GandiV5/Billing/Info/Prepaid.html +0 -817
  75. data/doc/GandiV5/Data.html +0 -785
  76. data/doc/GandiV5/Data/ClassMethods.html +0 -223
  77. data/doc/GandiV5/Data/Converter.html +0 -433
  78. data/doc/GandiV5/Data/Converter/ArrayOf.html +0 -413
  79. data/doc/GandiV5/Data/Converter/Symbol.html +0 -322
  80. data/doc/GandiV5/Data/Converter/Time.html +0 -330
  81. data/doc/GandiV5/Domain.html +0 -16847
  82. data/doc/GandiV5/Domain/AutoRenew.html +0 -1237
  83. data/doc/GandiV5/Domain/Availability.html +0 -1020
  84. data/doc/GandiV5/Domain/Availability/Product.html +0 -988
  85. data/doc/GandiV5/Domain/Availability/Product/Period.html +0 -220
  86. data/doc/GandiV5/Domain/Availability/Product/Price.html +0 -1031
  87. data/doc/GandiV5/Domain/Availability/Tax.html +0 -440
  88. data/doc/GandiV5/Domain/Contact.html +0 -4459
  89. data/doc/GandiV5/Domain/Contract.html +0 -520
  90. data/doc/GandiV5/Domain/Dates.html +0 -1313
  91. data/doc/GandiV5/Domain/RenewalInformation.html +0 -1147
  92. data/doc/GandiV5/Domain/RestoreInformation.html +0 -339
  93. data/doc/GandiV5/Domain/SharingSpace.html +0 -437
  94. data/doc/GandiV5/Domain/TLD.html +0 -1565
  95. data/doc/GandiV5/Email.html +0 -144
  96. data/doc/GandiV5/Email/Mailbox.html +0 -6307
  97. data/doc/GandiV5/Email/Mailbox/Responder.html +0 -1560
  98. data/doc/GandiV5/Email/Offer.html +0 -514
  99. data/doc/GandiV5/Email/Slot.html +0 -4244
  100. data/doc/GandiV5/Error.html +0 -151
  101. data/doc/GandiV5/Error/GandiError.html +0 -270
  102. data/doc/GandiV5/LiveDNS.html +0 -300
  103. data/doc/GandiV5/LiveDNS/Domain.html +0 -2984
  104. data/doc/GandiV5/LiveDNS/RecordSet.html +0 -1593
  105. data/doc/GandiV5/LiveDNS/Zone.html +0 -8891
  106. data/doc/GandiV5/LiveDNS/Zone/Snapshot.html +0 -1556
  107. data/doc/GandiV5/Organization.html +0 -2341
  108. data/doc/_index.html +0 -474
  109. data/doc/class_list.html +0 -51
  110. data/doc/css/common.css +0 -1
  111. data/doc/css/full_list.css +0 -58
  112. data/doc/css/style.css +0 -496
  113. data/doc/file.README.html +0 -175
  114. data/doc/file_list.html +0 -56
  115. data/doc/frames.html +0 -17
  116. data/doc/index.html +0 -175
  117. data/doc/js/app.js +0 -303
  118. data/doc/js/full_list.js +0 -216
  119. data/doc/js/jquery.js +0 -4
  120. data/doc/method_list.html +0 -2427
  121. data/doc/top-level-namespace.html +0 -110
@@ -1,293 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: GandiV5::Billing
8
-
9
- &mdash; Documentation by YARD 0.9.19
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "GandiV5::Billing";
19
- relpath = '../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (B)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span>
41
- &raquo;
42
- <span class="title">Billing</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: GandiV5::Billing
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">GandiV5::Billing</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dl>
96
- <dt>Defined in:</dt>
97
- <dd>lib/gandi_v5/billing.rb<span class="defines">,<br />
98
- lib/gandi_v5/billing/info.rb,<br /> lib/gandi_v5/billing/info/prepaid.rb</span>
99
- </dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>Gandi Billing API.</p>
108
-
109
-
110
- </div>
111
- </div>
112
- <div class="tags">
113
-
114
-
115
- <p class="tag_title">See Also:</p>
116
- <ul class="see">
117
-
118
- <li><a href="https://api.gandi.net/docs/billing" target="_parent" title="https://api.gandi.net/docs/billing">https://api.gandi.net/docs/billing</a></li>
119
-
120
- </ul>
121
-
122
- </div><h2>Defined Under Namespace</h2>
123
- <p class="children">
124
-
125
-
126
-
127
-
128
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Billing/Info.html" title="GandiV5::Billing::Info (class)">Info</a></span>
129
-
130
-
131
- </p>
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
- <h2>
141
- Class Method Summary
142
- <small><a href="#" class="summary_toggle">collapse</a></small>
143
- </h2>
144
-
145
- <ul class="summary">
146
-
147
- <li class="public ">
148
- <span class="summary_signature">
149
-
150
- <a href="#info-class_method" title="info (class method)">.<strong>info</strong>(sharing_id = nil) &#x21d2; GandiV5::Billing::Info </a>
151
-
152
-
153
-
154
- </span>
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
- <span class="summary_desc"><div class='inline'>
165
- <p>Get account info (defaults to currently authenticated user).</p>
166
- </div></span>
167
-
168
- </li>
169
-
170
-
171
- </ul>
172
-
173
-
174
-
175
-
176
- <div id="class_method_details" class="method_details_list">
177
- <h2>Class Method Details</h2>
178
-
179
-
180
- <div class="method_details first">
181
- <h3 class="signature first" id="info-class_method">
182
-
183
- .<strong>info</strong>(sharing_id = nil) &#x21d2; <tt><span class='object_link'><a href="Billing/Info.html" title="GandiV5::Billing::Info (class)">GandiV5::Billing::Info</a></span></tt>
184
-
185
-
186
-
187
-
188
-
189
- </h3><div class="docstring">
190
- <div class="discussion">
191
-
192
- <p>Get account info (defaults to currently authenticated user).</p>
193
-
194
-
195
- </div>
196
- </div>
197
- <div class="tags">
198
- <p class="tag_title">Parameters:</p>
199
- <ul class="param">
200
-
201
- <li>
202
-
203
- <span class='name'>url</span>
204
-
205
-
206
- <span class='type'>(<tt>sharing_id</tt>)</span>
207
-
208
-
209
-
210
- &mdash;
211
- <div class='inline'>
212
- <p>the Sharing ID of the organisation to get info for defaults to the user the api key belomgs to.</p>
213
- </div>
214
-
215
- </li>
216
-
217
- </ul>
218
-
219
- <p class="tag_title">Returns:</p>
220
- <ul class="return">
221
-
222
- <li>
223
-
224
-
225
- <span class='type'>(<tt><span class='object_link'><a href="Billing/Info.html" title="GandiV5::Billing::Info (class)">GandiV5::Billing::Info</a></span></tt>)</span>
226
-
227
-
228
-
229
- </li>
230
-
231
- </ul>
232
- <p class="tag_title">Raises:</p>
233
- <ul class="raise">
234
-
235
- <li>
236
-
237
-
238
- <span class='type'>(<tt><span class='object_link'><a href="Error/GandiError.html" title="GandiV5::Error::GandiError (class)">GandiV5::Error::GandiError</a></span></tt>)</span>
239
-
240
-
241
-
242
- &mdash;
243
- <div class='inline'>
244
- <p>if Gandi returns an error.</p>
245
- </div>
246
-
247
- </li>
248
-
249
- </ul>
250
-
251
- <p class="tag_title">See Also:</p>
252
- <ul class="see">
253
-
254
- <li><a href="https://api.gandi.net/docs/billing#get-v5-billing-info" target="_parent" title="https://api.gandi.net/docs/billing#get-v5-billing-info">https://api.gandi.net/docs/billing#get-v5-billing-info</a></li>
255
-
256
- </ul>
257
-
258
- </div><table class="source_code">
259
- <tr>
260
- <td>
261
- <pre class="lines">
262
-
263
-
264
- 15
265
- 16
266
- 17
267
- 18</pre>
268
- </td>
269
- <td>
270
- <pre class="code"><span class="info file"># File 'lib/gandi_v5/billing.rb', line 15</span>
271
-
272
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_info'>info</span><span class='lparen'>(</span><span class='id identifier rubyid_sharing_id'>sharing_id</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
273
- <span class='id identifier rubyid__response'>_response</span><span class='comma'>,</span> <span class='id identifier rubyid_data'>data</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='period'>.</span><span class='id identifier rubyid_get'><span class='object_link'><a href="../GandiV5.html#get-class_method" title="GandiV5.get (method)">get</a></span></span> <span class='id identifier rubyid_url'>url</span><span class='lparen'>(</span><span class='id identifier rubyid_sharing_id'>sharing_id</span><span class='rparen'>)</span>
274
- <span class='const'><span class='object_link'><a href="../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="GandiV5::Billing (class)">Billing</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Billing/Info.html" title="GandiV5::Billing::Info (class)">Info</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from_gandi'><span class='object_link'><a href="Data.html#from_gandi-instance_method" title="GandiV5::Data#from_gandi (method)">from_gandi</a></span></span> <span class='id identifier rubyid_data'>data</span>
275
- <span class='kw'>end</span></pre>
276
- </td>
277
- </tr>
278
- </table>
279
- </div>
280
-
281
- </div>
282
-
283
- </div>
284
-
285
- <div id="footer">
286
- Generated on Mon Jul 22 16:44:26 2019 by
287
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
288
- 0.9.19 (ruby-2.6.3).
289
- </div>
290
-
291
- </div>
292
- </body>
293
- </html>
@@ -1,641 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: GandiV5::Billing::Info
8
-
9
- &mdash; Documentation by YARD 0.9.19
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "GandiV5::Billing::Info";
19
- relpath = '../../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../../_index.html">Index (I)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Billing.html" title="GandiV5::Billing (class)">Billing</a></span></span>
41
- &raquo;
42
- <span class="title">Info</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: GandiV5::Billing::Info
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">GandiV5::Billing::Info</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
- <dl>
91
- <dt>Includes:</dt>
92
- <dd><span class='object_link'><a href="../Data.html" title="GandiV5::Data (module)">Data</a></span></dd>
93
- </dl>
94
-
95
-
96
-
97
-
98
-
99
-
100
- <dl>
101
- <dt>Defined in:</dt>
102
- <dd>lib/gandi_v5/billing/info.rb<span class="defines">,<br />
103
- lib/gandi_v5/billing/info/prepaid.rb</span>
104
- </dd>
105
- </dl>
106
-
107
- </div>
108
-
109
- <h2>Overview</h2><div class="docstring">
110
- <div class="discussion">
111
-
112
- <p>Account&#39;s information.</p>
113
-
114
-
115
- </div>
116
- </div>
117
- <div class="tags">
118
-
119
-
120
- </div><h2>Defined Under Namespace</h2>
121
- <p class="children">
122
-
123
-
124
-
125
-
126
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="Info/Prepaid.html" title="GandiV5::Billing::Info::Prepaid (class)">Prepaid</a></span>
127
-
128
-
129
- </p>
130
-
131
-
132
-
133
-
134
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
135
- <ul class="summary">
136
-
137
- <li class="public ">
138
- <span class="summary_signature">
139
-
140
- <a href="#annual_balance-instance_method" title="#annual_balance (instance method)">#<strong>annual_balance</strong> &#x21d2; Numeric </a>
141
-
142
-
143
-
144
- </span>
145
-
146
-
147
-
148
-
149
- <span class="note title readonly">readonly</span>
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
- <span class="summary_desc"><div class='inline'>
160
- <p>Amount of purchased over the past 12 months since the request.</p>
161
- </div></span>
162
-
163
- </li>
164
-
165
-
166
- <li class="public ">
167
- <span class="summary_signature">
168
-
169
- <a href="#grid-instance_method" title="#grid (instance method)">#<strong>grid</strong> &#x21d2; String </a>
170
-
171
-
172
-
173
- </span>
174
-
175
-
176
-
177
-
178
- <span class="note title readonly">readonly</span>
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
- <span class="summary_desc"><div class='inline'>
189
- <p>Price rate that is applied depending on the amount purchased over the last 12 months.</p>
190
- </div></span>
191
-
192
- </li>
193
-
194
-
195
- <li class="public ">
196
- <span class="summary_signature">
197
-
198
- <a href="#outstanding_amount-instance_method" title="#outstanding_amount (instance method)">#<strong>outstanding_amount</strong> &#x21d2; Numeric </a>
199
-
200
-
201
-
202
- </span>
203
-
204
-
205
-
206
-
207
- <span class="note title readonly">readonly</span>
208
-
209
-
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
- <span class="summary_desc"><div class='inline'>
218
- <p>Amount of outstanding orders (payment by terms) since the last invoice.</p>
219
- </div></span>
220
-
221
- </li>
222
-
223
-
224
- <li class="public ">
225
- <span class="summary_signature">
226
-
227
- <a href="#prepaid-instance_method" title="#prepaid (instance method)">#<strong>prepaid</strong> &#x21d2; nil, Gandiv5::Billing::Info::Prepaid </a>
228
-
229
-
230
-
231
- </span>
232
-
233
-
234
-
235
-
236
- <span class="note title readonly">readonly</span>
237
-
238
-
239
-
240
-
241
-
242
-
243
-
244
-
245
-
246
- <span class="summary_desc"><div class='inline'></div></span>
247
-
248
- </li>
249
-
250
-
251
- <li class="public ">
252
- <span class="summary_signature">
253
-
254
- <a href="#prepaid_monthly_invoice-instance_method" title="#prepaid_monthly_invoice (instance method)">#<strong>prepaid_monthly_invoice</strong> &#x21d2; nil, Boolean </a>
255
-
256
-
257
-
258
- </span>
259
-
260
-
261
-
262
-
263
- <span class="note title readonly">readonly</span>
264
-
265
-
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
- <span class="summary_desc"><div class='inline'>
274
- <p>Whether orders are gathered into a single monthly invoice.</p>
275
- </div></span>
276
-
277
- </li>
278
-
279
-
280
- </ul>
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
- <h2>Method Summary</h2>
293
-
294
- <h3 class="inherited">Methods included from <span class='object_link'><a href="../Data.html" title="GandiV5::Data (module)">Data</a></span></h3>
295
- <p class="inherited"><span class='object_link'><a href="../Data.html#from_gandi-instance_method" title="GandiV5::Data#from_gandi (method)">#from_gandi</a></span>, <span class='object_link'><a href="../Data.html#included-class_method" title="GandiV5::Data.included (method)">included</a></span>, <span class='object_link'><a href="../Data.html#initialize-instance_method" title="GandiV5::Data#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Data.html#to_gandi-instance_method" title="GandiV5::Data#to_gandi (method)">#to_gandi</a></span>, <span class='object_link'><a href="../Data.html#to_h-instance_method" title="GandiV5::Data#to_h (method)">#to_h</a></span>, <span class='object_link'><a href="../Data.html#values_at-instance_method" title="GandiV5::Data#values_at (method)">#values_at</a></span></p>
296
-
297
- <div id="instance_attr_details" class="attr_details">
298
- <h2>Instance Attribute Details</h2>
299
-
300
-
301
- <span id=""></span>
302
- <div class="method_details first">
303
- <h3 class="signature first" id="annual_balance-instance_method">
304
-
305
- #<strong>annual_balance</strong> &#x21d2; <tt>Numeric</tt> <span class="extras">(readonly)</span>
306
-
307
-
308
-
309
-
310
-
311
- </h3><div class="docstring">
312
- <div class="discussion">
313
-
314
- <p>Returns amount of purchased over the past 12 months since the request.</p>
315
-
316
-
317
- </div>
318
- </div>
319
- <div class="tags">
320
-
321
- <p class="tag_title">Returns:</p>
322
- <ul class="return">
323
-
324
- <li>
325
-
326
-
327
- <span class='type'>(<tt>Numeric</tt>)</span>
328
-
329
-
330
-
331
- &mdash;
332
- <div class='inline'>
333
- <p>amount of purchased over the past 12 months since the request.</p>
334
- </div>
335
-
336
- </li>
337
-
338
- </ul>
339
-
340
- </div><table class="source_code">
341
- <tr>
342
- <td>
343
- <pre class="lines">
344
-
345
-
346
- 19
347
- 20
348
- 21
349
- 22
350
- 23
351
- 24</pre>
352
- </td>
353
- <td>
354
- <pre class="code"><span class="info file"># File 'lib/gandi_v5/billing/info.rb', line 19</span>
355
-
356
- <span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="GandiV5::Billing::Info (class)">Info</a></span></span>
357
- <span class='id identifier rubyid_include'>include</span> <span class='const'><span class='object_link'><a href="../../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Data.html" title="GandiV5::Data (module)">Data</a></span></span>
358
-
359
- <span class='id identifier rubyid_members'>members</span> <span class='symbol'>:annual_balance</span><span class='comma'>,</span> <span class='symbol'>:grid</span><span class='comma'>,</span> <span class='symbol'>:outstanding_amount</span><span class='comma'>,</span> <span class='symbol'>:prepaid_monthly_invoice</span>
360
- <span class='id identifier rubyid_member'>member</span> <span class='symbol'>:prepaid</span><span class='comma'>,</span> <span class='label'>converter:</span> <span class='const'><span class='object_link'><a href="../../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Billing.html" title="GandiV5::Billing (class)">Billing</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="GandiV5::Billing::Info (class)">Info</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Info/Prepaid.html" title="GandiV5::Billing::Info::Prepaid (class)">Prepaid</a></span></span>
361
- <span class='kw'>end</span></pre>
362
- </td>
363
- </tr>
364
- </table>
365
- </div>
366
-
367
-
368
- <span id=""></span>
369
- <div class="method_details ">
370
- <h3 class="signature " id="grid-instance_method">
371
-
372
- #<strong>grid</strong> &#x21d2; <tt>String</tt> <span class="extras">(readonly)</span>
373
-
374
-
375
-
376
-
377
-
378
- </h3><div class="docstring">
379
- <div class="discussion">
380
-
381
- <p>Returns price rate that is applied depending on the amount purchased over the last 12 months.</p>
382
-
383
-
384
- </div>
385
- </div>
386
- <div class="tags">
387
-
388
- <p class="tag_title">Returns:</p>
389
- <ul class="return">
390
-
391
- <li>
392
-
393
-
394
- <span class='type'>(<tt>String</tt>)</span>
395
-
396
-
397
-
398
- &mdash;
399
- <div class='inline'>
400
- <p>price rate that is applied depending on the amount purchased over the last 12 months.</p>
401
- </div>
402
-
403
- </li>
404
-
405
- </ul>
406
-
407
- </div><table class="source_code">
408
- <tr>
409
- <td>
410
- <pre class="lines">
411
-
412
-
413
- 19
414
- 20
415
- 21
416
- 22
417
- 23
418
- 24</pre>
419
- </td>
420
- <td>
421
- <pre class="code"><span class="info file"># File 'lib/gandi_v5/billing/info.rb', line 19</span>
422
-
423
- <span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="GandiV5::Billing::Info (class)">Info</a></span></span>
424
- <span class='id identifier rubyid_include'>include</span> <span class='const'><span class='object_link'><a href="../../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Data.html" title="GandiV5::Data (module)">Data</a></span></span>
425
-
426
- <span class='id identifier rubyid_members'>members</span> <span class='symbol'>:annual_balance</span><span class='comma'>,</span> <span class='symbol'>:grid</span><span class='comma'>,</span> <span class='symbol'>:outstanding_amount</span><span class='comma'>,</span> <span class='symbol'>:prepaid_monthly_invoice</span>
427
- <span class='id identifier rubyid_member'>member</span> <span class='symbol'>:prepaid</span><span class='comma'>,</span> <span class='label'>converter:</span> <span class='const'><span class='object_link'><a href="../../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Billing.html" title="GandiV5::Billing (class)">Billing</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="GandiV5::Billing::Info (class)">Info</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Info/Prepaid.html" title="GandiV5::Billing::Info::Prepaid (class)">Prepaid</a></span></span>
428
- <span class='kw'>end</span></pre>
429
- </td>
430
- </tr>
431
- </table>
432
- </div>
433
-
434
-
435
- <span id=""></span>
436
- <div class="method_details ">
437
- <h3 class="signature " id="outstanding_amount-instance_method">
438
-
439
- #<strong>outstanding_amount</strong> &#x21d2; <tt>Numeric</tt> <span class="extras">(readonly)</span>
440
-
441
-
442
-
443
-
444
-
445
- </h3><div class="docstring">
446
- <div class="discussion">
447
-
448
- <p>Returns amount of outstanding orders (payment by terms) since the last invoice.</p>
449
-
450
-
451
- </div>
452
- </div>
453
- <div class="tags">
454
-
455
- <p class="tag_title">Returns:</p>
456
- <ul class="return">
457
-
458
- <li>
459
-
460
-
461
- <span class='type'>(<tt>Numeric</tt>)</span>
462
-
463
-
464
-
465
- &mdash;
466
- <div class='inline'>
467
- <p>amount of outstanding orders (payment by terms) since the last invoice.</p>
468
- </div>
469
-
470
- </li>
471
-
472
- </ul>
473
-
474
- </div><table class="source_code">
475
- <tr>
476
- <td>
477
- <pre class="lines">
478
-
479
-
480
- 19
481
- 20
482
- 21
483
- 22
484
- 23
485
- 24</pre>
486
- </td>
487
- <td>
488
- <pre class="code"><span class="info file"># File 'lib/gandi_v5/billing/info.rb', line 19</span>
489
-
490
- <span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="GandiV5::Billing::Info (class)">Info</a></span></span>
491
- <span class='id identifier rubyid_include'>include</span> <span class='const'><span class='object_link'><a href="../../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Data.html" title="GandiV5::Data (module)">Data</a></span></span>
492
-
493
- <span class='id identifier rubyid_members'>members</span> <span class='symbol'>:annual_balance</span><span class='comma'>,</span> <span class='symbol'>:grid</span><span class='comma'>,</span> <span class='symbol'>:outstanding_amount</span><span class='comma'>,</span> <span class='symbol'>:prepaid_monthly_invoice</span>
494
- <span class='id identifier rubyid_member'>member</span> <span class='symbol'>:prepaid</span><span class='comma'>,</span> <span class='label'>converter:</span> <span class='const'><span class='object_link'><a href="../../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Billing.html" title="GandiV5::Billing (class)">Billing</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="GandiV5::Billing::Info (class)">Info</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Info/Prepaid.html" title="GandiV5::Billing::Info::Prepaid (class)">Prepaid</a></span></span>
495
- <span class='kw'>end</span></pre>
496
- </td>
497
- </tr>
498
- </table>
499
- </div>
500
-
501
-
502
- <span id=""></span>
503
- <div class="method_details ">
504
- <h3 class="signature " id="prepaid-instance_method">
505
-
506
- #<strong>prepaid</strong> &#x21d2; <tt>nil</tt>, <tt>Gandiv5::Billing::Info::Prepaid</tt> <span class="extras">(readonly)</span>
507
-
508
-
509
-
510
-
511
-
512
- </h3><div class="docstring">
513
- <div class="discussion">
514
-
515
-
516
- </div>
517
- </div>
518
- <div class="tags">
519
-
520
- <p class="tag_title">Returns:</p>
521
- <ul class="return">
522
-
523
- <li>
524
-
525
-
526
- <span class='type'>(<tt>nil</tt>, <tt>Gandiv5::Billing::Info::Prepaid</tt>)</span>
527
-
528
-
529
-
530
- </li>
531
-
532
- </ul>
533
-
534
- </div><table class="source_code">
535
- <tr>
536
- <td>
537
- <pre class="lines">
538
-
539
-
540
- 19
541
- 20
542
- 21
543
- 22
544
- 23
545
- 24</pre>
546
- </td>
547
- <td>
548
- <pre class="code"><span class="info file"># File 'lib/gandi_v5/billing/info.rb', line 19</span>
549
-
550
- <span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="GandiV5::Billing::Info (class)">Info</a></span></span>
551
- <span class='id identifier rubyid_include'>include</span> <span class='const'><span class='object_link'><a href="../../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Data.html" title="GandiV5::Data (module)">Data</a></span></span>
552
-
553
- <span class='id identifier rubyid_members'>members</span> <span class='symbol'>:annual_balance</span><span class='comma'>,</span> <span class='symbol'>:grid</span><span class='comma'>,</span> <span class='symbol'>:outstanding_amount</span><span class='comma'>,</span> <span class='symbol'>:prepaid_monthly_invoice</span>
554
- <span class='id identifier rubyid_member'>member</span> <span class='symbol'>:prepaid</span><span class='comma'>,</span> <span class='label'>converter:</span> <span class='const'><span class='object_link'><a href="../../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Billing.html" title="GandiV5::Billing (class)">Billing</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="GandiV5::Billing::Info (class)">Info</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Info/Prepaid.html" title="GandiV5::Billing::Info::Prepaid (class)">Prepaid</a></span></span>
555
- <span class='kw'>end</span></pre>
556
- </td>
557
- </tr>
558
- </table>
559
- </div>
560
-
561
-
562
- <span id=""></span>
563
- <div class="method_details ">
564
- <h3 class="signature " id="prepaid_monthly_invoice-instance_method">
565
-
566
- #<strong>prepaid_monthly_invoice</strong> &#x21d2; <tt>nil</tt>, <tt>Boolean</tt> <span class="extras">(readonly)</span>
567
-
568
-
569
-
570
-
571
-
572
- </h3><div class="docstring">
573
- <div class="discussion">
574
-
575
- <p>Returns whether orders are gathered into a single monthly invoice.</p>
576
-
577
-
578
- </div>
579
- </div>
580
- <div class="tags">
581
-
582
- <p class="tag_title">Returns:</p>
583
- <ul class="return">
584
-
585
- <li>
586
-
587
-
588
- <span class='type'>(<tt>nil</tt>, <tt>Boolean</tt>)</span>
589
-
590
-
591
-
592
- &mdash;
593
- <div class='inline'>
594
- <p>whether orders are gathered into a single monthly invoice.</p>
595
- </div>
596
-
597
- </li>
598
-
599
- </ul>
600
-
601
- </div><table class="source_code">
602
- <tr>
603
- <td>
604
- <pre class="lines">
605
-
606
-
607
- 19
608
- 20
609
- 21
610
- 22
611
- 23
612
- 24</pre>
613
- </td>
614
- <td>
615
- <pre class="code"><span class="info file"># File 'lib/gandi_v5/billing/info.rb', line 19</span>
616
-
617
- <span class='kw'>class</span> <span class='const'><span class='object_link'><a href="" title="GandiV5::Billing::Info (class)">Info</a></span></span>
618
- <span class='id identifier rubyid_include'>include</span> <span class='const'><span class='object_link'><a href="../../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Data.html" title="GandiV5::Data (module)">Data</a></span></span>
619
-
620
- <span class='id identifier rubyid_members'>members</span> <span class='symbol'>:annual_balance</span><span class='comma'>,</span> <span class='symbol'>:grid</span><span class='comma'>,</span> <span class='symbol'>:outstanding_amount</span><span class='comma'>,</span> <span class='symbol'>:prepaid_monthly_invoice</span>
621
- <span class='id identifier rubyid_member'>member</span> <span class='symbol'>:prepaid</span><span class='comma'>,</span> <span class='label'>converter:</span> <span class='const'><span class='object_link'><a href="../../GandiV5.html" title="GandiV5 (class)">GandiV5</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Billing.html" title="GandiV5::Billing (class)">Billing</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="GandiV5::Billing::Info (class)">Info</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="Info/Prepaid.html" title="GandiV5::Billing::Info::Prepaid (class)">Prepaid</a></span></span>
622
- <span class='kw'>end</span></pre>
623
- </td>
624
- </tr>
625
- </table>
626
- </div>
627
-
628
- </div>
629
-
630
-
631
- </div>
632
-
633
- <div id="footer">
634
- Generated on Mon Jul 22 16:44:27 2019 by
635
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
636
- 0.9.19 (ruby-2.6.3).
637
- </div>
638
-
639
- </div>
640
- </body>
641
- </html>