seven_api 0.5.0 → 0.6.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 (90) hide show
  1. checksums.yaml +4 -4
  2. data/.idea/ruby-client.iml +16 -4
  3. data/README.md +2 -2
  4. data/doc/{Sms77 → SevenApi}/Client.html +222 -222
  5. data/doc/{Sms77 → SevenApi}/Contacts/Action.html +130 -130
  6. data/doc/{Sms77 → SevenApi}/Contacts.html +125 -125
  7. data/doc/{Sms77 → SevenApi}/Endpoint.html +186 -186
  8. data/doc/{Sms77 → SevenApi}/Hooks/Action.html +130 -130
  9. data/doc/{Sms77 → SevenApi}/Hooks/EventType.html +145 -145
  10. data/doc/{Sms77 → SevenApi}/Hooks/RequestMethod.html +130 -130
  11. data/doc/{Sms77 → SevenApi}/Hooks/Validator.html +582 -582
  12. data/doc/{Sms77 → SevenApi}/Hooks.html +125 -125
  13. data/doc/{Sms77 → SevenApi}/Journal/Type.html +135 -135
  14. data/doc/{Sms77 → SevenApi}/Journal/Validator.html +380 -380
  15. data/doc/{Sms77 → SevenApi}/Journal.html +125 -125
  16. data/doc/{Sms77 → SevenApi}/Lookup/Type.html +135 -135
  17. data/doc/{Sms77 → SevenApi}/Lookup.html +125 -125
  18. data/doc/{Sms77 → SevenApi}/Resource.html +857 -857
  19. data/doc/{Sms77 → SevenApi}/Resources/Analytics.html +260 -260
  20. data/doc/{Sms77 → SevenApi}/Resources/Balance.html +243 -243
  21. data/doc/{Sms77 → SevenApi}/Resources/Contacts.html +445 -445
  22. data/doc/{Sms77 → SevenApi}/Resources/Hooks.html +453 -453
  23. data/doc/{Sms77 → SevenApi}/Resources/Journal.html +258 -258
  24. data/doc/{Sms77 → SevenApi}/Resources/Lookup.html +535 -535
  25. data/doc/{Sms77 → SevenApi}/Resources/Pricing.html +260 -260
  26. data/doc/{Sms77 → SevenApi}/Resources/Sms.html +258 -258
  27. data/doc/{Sms77 → SevenApi}/Resources/Status.html +258 -258
  28. data/doc/{Sms77 → SevenApi}/Resources/Subaccounts.html +645 -645
  29. data/doc/{Sms77 → SevenApi}/Resources/ValidateForVoice.html +258 -258
  30. data/doc/{Sms77 → SevenApi}/Resources/Voice.html +258 -258
  31. data/doc/SevenApi/Resources.html +128 -0
  32. data/doc/{Sms77 → SevenApi}/Sms/Type.html +125 -125
  33. data/doc/{Sms77 → SevenApi}/Sms.html +125 -125
  34. data/doc/{Sms77 → SevenApi}/Subaccounts/Action.html +140 -140
  35. data/doc/SevenApi/Subaccounts/Validator.html +490 -0
  36. data/doc/{Sms77 → SevenApi}/Subaccounts.html +125 -125
  37. data/doc/{Sms77 → SevenApi}/Util.html +993 -993
  38. data/doc/{Sms77.html → SevenApi.html} +145 -145
  39. data/doc/_index.html +443 -443
  40. data/doc/class_list.html +51 -51
  41. data/doc/css/full_list.css +58 -58
  42. data/doc/css/style.css +497 -497
  43. data/doc/file.README.html +110 -111
  44. data/doc/file_list.html +56 -56
  45. data/doc/frames.html +17 -17
  46. data/doc/index.html +110 -111
  47. data/doc/js/app.js +314 -314
  48. data/doc/js/full_list.js +216 -216
  49. data/doc/js/jquery.js +3 -3
  50. data/doc/method_list.html +563 -563
  51. data/doc/top-level-namespace.html +109 -109
  52. data/lib/seven_api/client.rb +2 -0
  53. data/lib/seven_api/contacts.rb +0 -5
  54. data/lib/seven_api/endpoint.rb +5 -0
  55. data/lib/seven_api/hooks.rb +1 -0
  56. data/lib/seven_api/lookup.rb +1 -0
  57. data/lib/seven_api/numbers.rb +9 -0
  58. data/lib/seven_api/paginated.rb +10 -0
  59. data/lib/seven_api/rcs.rb +9 -0
  60. data/lib/seven_api/resource.rb +8 -3
  61. data/lib/seven_api/resources/analytics.rb +38 -5
  62. data/lib/seven_api/resources/balance.rb +2 -2
  63. data/lib/seven_api/resources/contacts.rb +36 -18
  64. data/lib/seven_api/resources/groups.rb +57 -0
  65. data/lib/seven_api/resources/hooks.rb +1 -1
  66. data/lib/seven_api/resources/journal.rb +1 -1
  67. data/lib/seven_api/resources/lookup.rb +36 -20
  68. data/lib/seven_api/resources/numbers.rb +70 -0
  69. data/lib/seven_api/resources/pricing.rb +1 -1
  70. data/lib/seven_api/resources/rcs.rb +39 -0
  71. data/lib/seven_api/resources/sms.rb +1 -1
  72. data/lib/seven_api/resources/status.rb +1 -1
  73. data/lib/seven_api/resources/subaccounts.rb +5 -5
  74. data/lib/seven_api/resources/validate_for_voice.rb +1 -1
  75. data/lib/seven_api/resources/voice.rb +1 -1
  76. data/lib/seven_api/version.rb +1 -1
  77. data/seven_api.gemspec +5 -5
  78. data/spec/seven_api/analytics_spec.rb +49 -0
  79. data/spec/seven_api/balance_spec.rb +8 -2
  80. data/spec/seven_api/contacts_spec.rb +52 -81
  81. data/spec/seven_api/groups_spec.rb +74 -0
  82. data/spec/seven_api/lookup_spec.rb +51 -33
  83. data/spec/seven_api/numbers_spec.rb +135 -0
  84. data/spec/seven_api/rcs_spec.rb +99 -0
  85. data/spec/seven_api/sms_spec.rb +2 -2
  86. data/spec/seven_api/voice_spec.rb +2 -2
  87. data/spec/spec_helper.rb +8 -17
  88. metadata +64 -50
  89. data/doc/Sms77/Resources.html +0 -128
  90. data/doc/Sms77/Subaccounts/Validator.html +0 -490
@@ -1,651 +1,651 @@
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: Sms77::Resources::Subaccounts
8
-
9
- &mdash; Documentation by YARD 0.9.27
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "Sms77::Resources::Subaccounts";
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 (S)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Resources.html" title="Sms77::Resources (module)">Resources</a></span></span>
41
- &raquo;
42
- <span class="title">Subaccounts</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: Sms77::Resources::Subaccounts
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="../Resource.html" title="Sms77::Resource (class)">Sms77::Resource</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next"><span class='object_link'><a href="../Resource.html" title="Sms77::Resource (class)">Sms77::Resource</a></span></li>
78
-
79
- <li class="next">Sms77::Resources::Subaccounts</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/sms77/resources/subaccounts.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
-
105
-
106
-
107
- <h2>Constant Summary</h2>
108
-
109
- <h3 class="inherited">Constants inherited
110
- from <span class='object_link'><a href="../Resource.html" title="Sms77::Resource (class)">Sms77::Resource</a></span></h3>
111
- <p class="inherited"><span class='object_link'><a href="../Resource.html#BASE_PATH-constant" title="Sms77::Resource::BASE_PATH (constant)">Sms77::Resource::BASE_PATH</a></span></p>
112
-
113
-
114
-
115
-
116
- <h2>Instance Attribute Summary</h2>
117
-
118
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Resource.html" title="Sms77::Resource (class)">Sms77::Resource</a></span></h3>
119
- <p class="inherited"><span class='object_link'><a href="../Resource.html#api_key-instance_method" title="Sms77::Resource#api_key (method)">#api_key</a></span>, <span class='object_link'><a href="../Resource.html#builder-instance_method" title="Sms77::Resource#builder (method)">#builder</a></span>, <span class='object_link'><a href="../Resource.html#conn-instance_method" title="Sms77::Resource#conn (method)">#conn</a></span>, <span class='object_link'><a href="../Resource.html#endpoint-instance_method" title="Sms77::Resource#endpoint (method)">#endpoint</a></span>, <span class='object_link'><a href="../Resource.html#http_methods-instance_method" title="Sms77::Resource#http_methods (method)">#http_methods</a></span>, <span class='object_link'><a href="../Resource.html#request_methods-instance_method" title="Sms77::Resource#request_methods (method)">#request_methods</a></span>, <span class='object_link'><a href="../Resource.html#sent_with-instance_method" title="Sms77::Resource#sent_with (method)">#sent_with</a></span></p>
120
-
121
-
122
-
123
- <h2>
124
- Instance Method Summary
125
- <small><a href="#" class="summary_toggle">collapse</a></small>
126
- </h2>
127
-
128
- <ul class="summary">
129
-
130
- <li class="public ">
131
- <span class="summary_signature">
132
-
133
- <a href="#create-instance_method" title="#create (instance method)">#<strong>create</strong>(params) &#x21d2; Hash </a>
134
-
135
-
136
-
137
- </span>
138
-
139
-
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
- <span class="summary_desc"><div class='inline'>
148
- <p>Create a subaccount read more: <a href="https://www.sms77.io/en/docs/gateway/http-api/subaccounts/#create-subaccount">www.sms77.io/en/docs/gateway/http-api/subaccounts/#create-subaccount</a>.</p>
149
- </div></span>
150
-
151
- </li>
152
-
153
-
154
- <li class="public ">
155
- <span class="summary_signature">
156
-
157
- <a href="#delete-instance_method" title="#delete (instance method)">#<strong>delete</strong>(params) &#x21d2; Hash </a>
158
-
159
-
160
-
161
- </span>
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
-
170
-
171
- <span class="summary_desc"><div class='inline'>
172
- <p>Delete a subaccount read more: <a href="https://www.sms77.io/en/docs/gateway/http-api/subaccounts/#delete-subaccount">www.sms77.io/en/docs/gateway/http-api/subaccounts/#delete-subaccount</a>.</p>
173
- </div></span>
174
-
175
- </li>
176
-
177
-
178
- <li class="public ">
179
- <span class="summary_signature">
180
-
181
- <a href="#read-instance_method" title="#read (instance method)">#<strong>read</strong>(params = {}) &#x21d2; Hash </a>
182
-
183
-
184
-
185
- </span>
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
-
194
-
195
- <span class="summary_desc"><div class='inline'>
196
- <p>Retrieve all subaccounts read more: <a href="https://www.sms77.io/en/docs/gateway/http-api/subaccounts/#read-subaccounts">www.sms77.io/en/docs/gateway/http-api/subaccounts/#read-subaccounts</a>.</p>
197
- </div></span>
198
-
199
- </li>
200
-
201
-
202
- <li class="public ">
203
- <span class="summary_signature">
204
-
205
- <a href="#transfer_credits-instance_method" title="#transfer_credits (instance method)">#<strong>transfer_credits</strong>(params) &#x21d2; Hash </a>
206
-
207
-
208
-
209
- </span>
210
-
211
-
212
-
213
-
214
-
215
-
216
-
217
-
218
-
219
- <span class="summary_desc"><div class='inline'>
220
- <p>Transfer credits to a subaccount read more: <a href="https://www.sms77.io/en/docs/gateway/http-api/subaccounts/#transfer-credit">www.sms77.io/en/docs/gateway/http-api/subaccounts/#transfer-credit</a>.</p>
221
- </div></span>
222
-
223
- </li>
224
-
225
-
226
- <li class="public ">
227
- <span class="summary_signature">
228
-
229
- <a href="#update-instance_method" title="#update (instance method)">#<strong>update</strong>(params) &#x21d2; Hash </a>
230
-
231
-
232
-
233
- </span>
234
-
235
-
236
-
237
-
238
-
239
-
240
-
241
-
242
-
243
- <span class="summary_desc"><div class='inline'>
244
- <p>Update automatic charging of a subaccount read more: <a href="https://www.sms77.io/en/docs/gateway/http-api/subaccounts/#update-automatic-charging-of-the-subaccount">www.sms77.io/en/docs/gateway/http-api/subaccounts/#update-automatic-charging-of-the-subaccount</a>.</p>
245
- </div></span>
246
-
247
- </li>
248
-
249
-
250
- </ul>
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
-
261
-
262
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Resource.html" title="Sms77::Resource (class)">Sms77::Resource</a></span></h3>
263
- <p class="inherited"><span class='object_link'><a href="../Resource.html#get_endpoint-class_method" title="Sms77::Resource.get_endpoint (method)">get_endpoint</a></span>, <span class='object_link'><a href="../Resource.html#get_http_methods-class_method" title="Sms77::Resource.get_http_methods (method)">get_http_methods</a></span>, <span class='object_link'><a href="../Resource.html#initialize-instance_method" title="Sms77::Resource#initialize (method)">#initialize</a></span></p>
264
- <div id="constructor_details" class="method_details_list">
265
- <h2>Constructor Details</h2>
266
-
267
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Resource.html#initialize-instance_method" title="Sms77::Resource#initialize (method)">Sms77::Resource</a></span></p>
268
-
269
- </div>
270
-
271
-
272
- <div id="instance_method_details" class="method_details_list">
273
- <h2>Instance Method Details</h2>
274
-
275
-
276
- <div class="method_details first">
277
- <h3 class="signature first" id="create-instance_method">
278
-
279
- #<strong>create</strong>(params) &#x21d2; <tt>Hash</tt>
280
-
281
-
282
-
283
-
284
-
285
- </h3><div class="docstring">
286
- <div class="discussion">
287
-
288
- <p>Create a subaccount read more: <a href="https://www.sms77.io/en/docs/gateway/http-api/subaccounts/#create-subaccount">www.sms77.io/en/docs/gateway/http-api/subaccounts/#create-subaccount</a></p>
289
-
290
-
291
- </div>
292
- </div>
293
- <div class="tags">
294
- <p class="tag_title">Parameters:</p>
295
- <ul class="param">
296
-
297
- <li>
298
-
299
- <span class='name'>params</span>
300
-
301
-
302
- <span class='type'>(<tt>Hash</tt>)</span>
303
-
304
-
305
-
306
- </li>
307
-
308
- </ul>
309
-
310
- <p class="tag_title">Returns:</p>
311
- <ul class="return">
312
-
313
- <li>
314
-
315
-
316
- <span class='type'>(<tt>Hash</tt>)</span>
317
-
318
-
319
-
320
- </li>
321
-
322
- </ul>
323
-
324
- </div><table class="source_code">
325
- <tr>
326
- <td>
327
- <pre class="lines">
328
-
329
-
330
- 22
331
- 23
332
- 24
333
- 25
334
- 26</pre>
335
- </td>
336
- <td>
337
- <pre class="code"><span class="info file"># File 'lib/sms77/resources/subaccounts.rb', line 22</span>
338
-
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: SevenApi::Resources::Subaccounts
8
+
9
+ &mdash; Documentation by YARD 0.9.34
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "SevenApi::Resources::Subaccounts";
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 (S)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Resources.html" title="SevenApi::Resources (module)">Resources</a></span></span>
41
+ &raquo;
42
+ <span class="title">Subaccounts</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: SevenApi::Resources::Subaccounts
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="../Resource.html" title="SevenApi::Resource (class)">SevenApi::Resource</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="../Resource.html" title="SevenApi::Resource (class)">SevenApi::Resource</a></span></li>
78
+
79
+ <li class="next">SevenApi::Resources::Subaccounts</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+ <dl>
98
+ <dt>Defined in:</dt>
99
+ <dd>lib/seven_api/resources/subaccounts.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+
105
+
106
+
107
+ <h2>Constant Summary</h2>
108
+
109
+ <h3 class="inherited">Constants inherited
110
+ from <span class='object_link'><a href="../Resource.html" title="SevenApi::Resource (class)">SevenApi::Resource</a></span></h3>
111
+ <p class="inherited"><span class='object_link'><a href="../Resource.html#BASE_PATH-constant" title="SevenApi::Resource::BASE_PATH (constant)">SevenApi::Resource::BASE_PATH</a></span></p>
112
+
113
+
114
+
115
+
116
+ <h2>Instance Attribute Summary</h2>
117
+
118
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Resource.html" title="SevenApi::Resource (class)">SevenApi::Resource</a></span></h3>
119
+ <p class="inherited"><span class='object_link'><a href="../Resource.html#api_key-instance_method" title="SevenApi::Resource#api_key (method)">#api_key</a></span>, <span class='object_link'><a href="../Resource.html#builder-instance_method" title="SevenApi::Resource#builder (method)">#builder</a></span>, <span class='object_link'><a href="../Resource.html#conn-instance_method" title="SevenApi::Resource#conn (method)">#conn</a></span>, <span class='object_link'><a href="../Resource.html#endpoint-instance_method" title="SevenApi::Resource#endpoint (method)">#endpoint</a></span>, <span class='object_link'><a href="../Resource.html#http_methods-instance_method" title="SevenApi::Resource#http_methods (method)">#http_methods</a></span>, <span class='object_link'><a href="../Resource.html#request_methods-instance_method" title="SevenApi::Resource#request_methods (method)">#request_methods</a></span>, <span class='object_link'><a href="../Resource.html#sent_with-instance_method" title="SevenApi::Resource#sent_with (method)">#sent_with</a></span></p>
120
+
121
+
122
+
123
+ <h2>
124
+ Instance Method Summary
125
+ <small><a href="#" class="summary_toggle">collapse</a></small>
126
+ </h2>
127
+
128
+ <ul class="summary">
129
+
130
+ <li class="public ">
131
+ <span class="summary_signature">
132
+
133
+ <a href="#create-instance_method" title="#create (instance method)">#<strong>create</strong>(params) &#x21d2; Hash </a>
134
+
135
+
136
+
137
+ </span>
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+ <span class="summary_desc"><div class='inline'>
148
+ <p>Create a subaccount read more: <a href="https://www.seven.io/en/docs/gateway/http-api/subaccounts/#create-subaccount">www.seven.io/en/docs/gateway/http-api/subaccounts/#create-subaccount</a>.</p>
149
+ </div></span>
150
+
151
+ </li>
152
+
153
+
154
+ <li class="public ">
155
+ <span class="summary_signature">
156
+
157
+ <a href="#delete-instance_method" title="#delete (instance method)">#<strong>delete</strong>(params) &#x21d2; Hash </a>
158
+
159
+
160
+
161
+ </span>
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+ <span class="summary_desc"><div class='inline'>
172
+ <p>Delete a subaccount read more: <a href="https://www.seven.io/en/docs/gateway/http-api/subaccounts/#delete-subaccount">www.seven.io/en/docs/gateway/http-api/subaccounts/#delete-subaccount</a>.</p>
173
+ </div></span>
174
+
175
+ </li>
176
+
177
+
178
+ <li class="public ">
179
+ <span class="summary_signature">
180
+
181
+ <a href="#read-instance_method" title="#read (instance method)">#<strong>read</strong>(params = {}) &#x21d2; Hash </a>
182
+
183
+
184
+
185
+ </span>
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+ <span class="summary_desc"><div class='inline'>
196
+ <p>Retrieve all subaccounts read more: <a href="https://www.seven.io/en/docs/gateway/http-api/subaccounts/#read-subaccounts">www.seven.io/en/docs/gateway/http-api/subaccounts/#read-subaccounts</a>.</p>
197
+ </div></span>
198
+
199
+ </li>
200
+
201
+
202
+ <li class="public ">
203
+ <span class="summary_signature">
204
+
205
+ <a href="#transfer_credits-instance_method" title="#transfer_credits (instance method)">#<strong>transfer_credits</strong>(params) &#x21d2; Hash </a>
206
+
207
+
208
+
209
+ </span>
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+ <span class="summary_desc"><div class='inline'>
220
+ <p>Transfer credits to a subaccount read more: <a href="https://www.seven.io/en/docs/gateway/http-api/subaccounts/#transfer-credit">www.seven.io/en/docs/gateway/http-api/subaccounts/#transfer-credit</a>.</p>
221
+ </div></span>
222
+
223
+ </li>
224
+
225
+
226
+ <li class="public ">
227
+ <span class="summary_signature">
228
+
229
+ <a href="#update-instance_method" title="#update (instance method)">#<strong>update</strong>(params) &#x21d2; Hash </a>
230
+
231
+
232
+
233
+ </span>
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+ <span class="summary_desc"><div class='inline'>
244
+ <p>Update automatic charging of a subaccount read more: <a href="https://www.seven.io/en/docs/gateway/http-api/subaccounts/#update-automatic-charging-of-the-subaccount">www.seven.io/en/docs/gateway/http-api/subaccounts/#update-automatic-charging-of-the-subaccount</a>.</p>
245
+ </div></span>
246
+
247
+ </li>
248
+
249
+
250
+ </ul>
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Resource.html" title="SevenApi::Resource (class)">SevenApi::Resource</a></span></h3>
263
+ <p class="inherited"><span class='object_link'><a href="../Resource.html#get_endpoint-class_method" title="SevenApi::Resource.get_endpoint (method)">get_endpoint</a></span>, <span class='object_link'><a href="../Resource.html#get_http_methods-class_method" title="SevenApi::Resource.get_http_methods (method)">get_http_methods</a></span>, <span class='object_link'><a href="../Resource.html#initialize-instance_method" title="SevenApi::Resource#initialize (method)">#initialize</a></span></p>
264
+ <div id="constructor_details" class="method_details_list">
265
+ <h2>Constructor Details</h2>
266
+
267
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Resource.html#initialize-instance_method" title="SevenApi::Resource#initialize (method)">SevenApi::Resource</a></span></p>
268
+
269
+ </div>
270
+
271
+
272
+ <div id="instance_method_details" class="method_details_list">
273
+ <h2>Instance Method Details</h2>
274
+
275
+
276
+ <div class="method_details first">
277
+ <h3 class="signature first" id="create-instance_method">
278
+
279
+ #<strong>create</strong>(params) &#x21d2; <tt>Hash</tt>
280
+
281
+
282
+
283
+
284
+
285
+ </h3><div class="docstring">
286
+ <div class="discussion">
287
+
288
+ <p>Create a subaccount read more: <a href="https://www.seven.io/en/docs/gateway/http-api/subaccounts/#create-subaccount">www.seven.io/en/docs/gateway/http-api/subaccounts/#create-subaccount</a></p>
289
+
290
+
291
+ </div>
292
+ </div>
293
+ <div class="tags">
294
+ <p class="tag_title">Parameters:</p>
295
+ <ul class="param">
296
+
297
+ <li>
298
+
299
+ <span class='name'>params</span>
300
+
301
+
302
+ <span class='type'>(<tt>Hash</tt>)</span>
303
+
304
+
305
+
306
+ </li>
307
+
308
+ </ul>
309
+
310
+ <p class="tag_title">Returns:</p>
311
+ <ul class="return">
312
+
313
+ <li>
314
+
315
+
316
+ <span class='type'>(<tt>Hash</tt>)</span>
317
+
318
+
319
+
320
+ </li>
321
+
322
+ </ul>
323
+
324
+ </div><table class="source_code">
325
+ <tr>
326
+ <td>
327
+ <pre class="lines">
328
+
329
+
330
+ 22
331
+ 23
332
+ 24
333
+ 25
334
+ 26</pre>
335
+ </td>
336
+ <td>
337
+ <pre class="code"><span class="info file"># File 'lib/seven_api/resources/subaccounts.rb', line 22</span>
338
+
339
339
  <span class='kw'>def</span> <span class='id identifier rubyid_create'>create</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
340
- <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="Sms77::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Validator.html" title="Sms77::Subaccounts::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_create'><span class='object_link'><a href="../Subaccounts/Validator.html#create-class_method" title="Sms77::Subaccounts::Validator.create (method)">create</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
341
-
342
- <span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="Sms77::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html" title="Sms77::Subaccounts::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html#CREATE-constant" title="Sms77::Subaccounts::Action::CREATE (constant)">CREATE</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
343
- <span class='kw'>end</span></pre>
344
- </td>
345
- </tr>
346
- </table>
347
- </div>
348
-
349
- <div class="method_details ">
350
- <h3 class="signature " id="delete-instance_method">
351
-
352
- #<strong>delete</strong>(params) &#x21d2; <tt>Hash</tt>
353
-
354
-
355
-
356
-
357
-
358
- </h3><div class="docstring">
359
- <div class="discussion">
360
-
361
- <p>Delete a subaccount read more: <a href="https://www.sms77.io/en/docs/gateway/http-api/subaccounts/#delete-subaccount">www.sms77.io/en/docs/gateway/http-api/subaccounts/#delete-subaccount</a></p>
362
-
363
-
364
- </div>
365
- </div>
366
- <div class="tags">
367
- <p class="tag_title">Parameters:</p>
368
- <ul class="param">
369
-
370
- <li>
371
-
372
- <span class='name'>params</span>
373
-
374
-
375
- <span class='type'>(<tt>Hash</tt>)</span>
376
-
377
-
378
-
379
- </li>
380
-
381
- </ul>
382
-
383
- <p class="tag_title">Returns:</p>
384
- <ul class="return">
385
-
386
- <li>
387
-
388
-
389
- <span class='type'>(<tt>Hash</tt>)</span>
390
-
391
-
392
-
393
- </li>
394
-
395
- </ul>
396
-
397
- </div><table class="source_code">
398
- <tr>
399
- <td>
400
- <pre class="lines">
401
-
402
-
403
- 32
404
- 33
405
- 34
406
- 35
407
- 36</pre>
408
- </td>
409
- <td>
410
- <pre class="code"><span class="info file"># File 'lib/sms77/resources/subaccounts.rb', line 32</span>
411
-
340
+ <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="SevenApi::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Validator.html" title="SevenApi::Subaccounts::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_create'><span class='object_link'><a href="../Subaccounts/Validator.html#create-class_method" title="SevenApi::Subaccounts::Validator.create (method)">create</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
341
+
342
+ <span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="SevenApi::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html" title="SevenApi::Subaccounts::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html#CREATE-constant" title="SevenApi::Subaccounts::Action::CREATE (constant)">CREATE</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
343
+ <span class='kw'>end</span></pre>
344
+ </td>
345
+ </tr>
346
+ </table>
347
+ </div>
348
+
349
+ <div class="method_details ">
350
+ <h3 class="signature " id="delete-instance_method">
351
+
352
+ #<strong>delete</strong>(params) &#x21d2; <tt>Hash</tt>
353
+
354
+
355
+
356
+
357
+
358
+ </h3><div class="docstring">
359
+ <div class="discussion">
360
+
361
+ <p>Delete a subaccount read more: <a href="https://www.seven.io/en/docs/gateway/http-api/subaccounts/#delete-subaccount">www.seven.io/en/docs/gateway/http-api/subaccounts/#delete-subaccount</a></p>
362
+
363
+
364
+ </div>
365
+ </div>
366
+ <div class="tags">
367
+ <p class="tag_title">Parameters:</p>
368
+ <ul class="param">
369
+
370
+ <li>
371
+
372
+ <span class='name'>params</span>
373
+
374
+
375
+ <span class='type'>(<tt>Hash</tt>)</span>
376
+
377
+
378
+
379
+ </li>
380
+
381
+ </ul>
382
+
383
+ <p class="tag_title">Returns:</p>
384
+ <ul class="return">
385
+
386
+ <li>
387
+
388
+
389
+ <span class='type'>(<tt>Hash</tt>)</span>
390
+
391
+
392
+
393
+ </li>
394
+
395
+ </ul>
396
+
397
+ </div><table class="source_code">
398
+ <tr>
399
+ <td>
400
+ <pre class="lines">
401
+
402
+
403
+ 32
404
+ 33
405
+ 34
406
+ 35
407
+ 36</pre>
408
+ </td>
409
+ <td>
410
+ <pre class="code"><span class="info file"># File 'lib/seven_api/resources/subaccounts.rb', line 32</span>
411
+
412
412
  <span class='kw'>def</span> <span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
413
- <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="Sms77::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Validator.html" title="Sms77::Subaccounts::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_delete'><span class='object_link'><a href="../Subaccounts/Validator.html#delete-class_method" title="Sms77::Subaccounts::Validator.delete (method)">delete</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
414
-
415
- <span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="Sms77::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html" title="Sms77::Subaccounts::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html#DELETE-constant" title="Sms77::Subaccounts::Action::DELETE (constant)">DELETE</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
416
- <span class='kw'>end</span></pre>
417
- </td>
418
- </tr>
419
- </table>
420
- </div>
421
-
422
- <div class="method_details ">
423
- <h3 class="signature " id="read-instance_method">
424
-
425
- #<strong>read</strong>(params = {}) &#x21d2; <tt>Hash</tt>
426
-
427
-
428
-
429
-
430
-
431
- </h3><div class="docstring">
432
- <div class="discussion">
433
-
434
- <p>Retrieve all subaccounts read more: <a href="https://www.sms77.io/en/docs/gateway/http-api/subaccounts/#read-subaccounts">www.sms77.io/en/docs/gateway/http-api/subaccounts/#read-subaccounts</a></p>
435
-
436
-
437
- </div>
438
- </div>
439
- <div class="tags">
440
- <p class="tag_title">Parameters:</p>
441
- <ul class="param">
442
-
443
- <li>
444
-
445
- <span class='name'>params</span>
446
-
447
-
448
- <span class='type'>(<tt>Hash</tt>)</span>
449
-
450
-
451
- <em class="default">(defaults to: <tt>{}</tt>)</em>
452
-
453
-
454
- </li>
455
-
456
- </ul>
457
-
458
- <p class="tag_title">Returns:</p>
459
- <ul class="return">
460
-
461
- <li>
462
-
463
-
464
- <span class='type'>(<tt>Hash</tt>)</span>
465
-
466
-
467
-
468
- </li>
469
-
470
- </ul>
471
-
472
- </div><table class="source_code">
473
- <tr>
474
- <td>
475
- <pre class="lines">
476
-
477
-
478
- 42
479
- 43
480
- 44</pre>
481
- </td>
482
- <td>
483
- <pre class="code"><span class="info file"># File 'lib/sms77/resources/subaccounts.rb', line 42</span>
484
-
413
+ <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="SevenApi::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Validator.html" title="SevenApi::Subaccounts::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_delete'><span class='object_link'><a href="../Subaccounts/Validator.html#delete-class_method" title="SevenApi::Subaccounts::Validator.delete (method)">delete</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
414
+
415
+ <span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="SevenApi::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html" title="SevenApi::Subaccounts::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html#DELETE-constant" title="SevenApi::Subaccounts::Action::DELETE (constant)">DELETE</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
416
+ <span class='kw'>end</span></pre>
417
+ </td>
418
+ </tr>
419
+ </table>
420
+ </div>
421
+
422
+ <div class="method_details ">
423
+ <h3 class="signature " id="read-instance_method">
424
+
425
+ #<strong>read</strong>(params = {}) &#x21d2; <tt>Hash</tt>
426
+
427
+
428
+
429
+
430
+
431
+ </h3><div class="docstring">
432
+ <div class="discussion">
433
+
434
+ <p>Retrieve all subaccounts read more: <a href="https://www.seven.io/en/docs/gateway/http-api/subaccounts/#read-subaccounts">www.seven.io/en/docs/gateway/http-api/subaccounts/#read-subaccounts</a></p>
435
+
436
+
437
+ </div>
438
+ </div>
439
+ <div class="tags">
440
+ <p class="tag_title">Parameters:</p>
441
+ <ul class="param">
442
+
443
+ <li>
444
+
445
+ <span class='name'>params</span>
446
+
447
+
448
+ <span class='type'>(<tt>Hash</tt>)</span>
449
+
450
+
451
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
452
+
453
+
454
+ </li>
455
+
456
+ </ul>
457
+
458
+ <p class="tag_title">Returns:</p>
459
+ <ul class="return">
460
+
461
+ <li>
462
+
463
+
464
+ <span class='type'>(<tt>Hash</tt>)</span>
465
+
466
+
467
+
468
+ </li>
469
+
470
+ </ul>
471
+
472
+ </div><table class="source_code">
473
+ <tr>
474
+ <td>
475
+ <pre class="lines">
476
+
477
+
478
+ 42
479
+ 43
480
+ 44</pre>
481
+ </td>
482
+ <td>
483
+ <pre class="code"><span class="info file"># File 'lib/seven_api/resources/subaccounts.rb', line 42</span>
484
+
485
485
  <span class='kw'>def</span> <span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
486
- <span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="Sms77::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html" title="Sms77::Subaccounts::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html#READ-constant" title="Sms77::Subaccounts::Action::READ (constant)">READ</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
487
- <span class='kw'>end</span></pre>
488
- </td>
489
- </tr>
490
- </table>
491
- </div>
492
-
493
- <div class="method_details ">
494
- <h3 class="signature " id="transfer_credits-instance_method">
495
-
496
- #<strong>transfer_credits</strong>(params) &#x21d2; <tt>Hash</tt>
497
-
498
-
499
-
500
-
501
-
502
- </h3><div class="docstring">
503
- <div class="discussion">
504
-
505
- <p>Transfer credits to a subaccount read more: <a href="https://www.sms77.io/en/docs/gateway/http-api/subaccounts/#transfer-credit">www.sms77.io/en/docs/gateway/http-api/subaccounts/#transfer-credit</a></p>
506
-
507
-
508
- </div>
509
- </div>
510
- <div class="tags">
511
- <p class="tag_title">Parameters:</p>
512
- <ul class="param">
513
-
514
- <li>
515
-
516
- <span class='name'>params</span>
517
-
518
-
519
- <span class='type'>(<tt>Hash</tt>)</span>
520
-
521
-
522
-
523
- </li>
524
-
525
- </ul>
526
-
527
- <p class="tag_title">Returns:</p>
528
- <ul class="return">
529
-
530
- <li>
531
-
532
-
533
- <span class='type'>(<tt>Hash</tt>)</span>
534
-
535
-
536
-
537
- </li>
538
-
539
- </ul>
540
-
541
- </div><table class="source_code">
542
- <tr>
543
- <td>
544
- <pre class="lines">
545
-
546
-
547
- 50
548
- 51
549
- 52
550
- 53
551
- 54</pre>
552
- </td>
553
- <td>
554
- <pre class="code"><span class="info file"># File 'lib/sms77/resources/subaccounts.rb', line 50</span>
555
-
486
+ <span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="SevenApi::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html" title="SevenApi::Subaccounts::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html#READ-constant" title="SevenApi::Subaccounts::Action::READ (constant)">READ</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
487
+ <span class='kw'>end</span></pre>
488
+ </td>
489
+ </tr>
490
+ </table>
491
+ </div>
492
+
493
+ <div class="method_details ">
494
+ <h3 class="signature " id="transfer_credits-instance_method">
495
+
496
+ #<strong>transfer_credits</strong>(params) &#x21d2; <tt>Hash</tt>
497
+
498
+
499
+
500
+
501
+
502
+ </h3><div class="docstring">
503
+ <div class="discussion">
504
+
505
+ <p>Transfer credits to a subaccount read more: <a href="https://www.seven.io/en/docs/gateway/http-api/subaccounts/#transfer-credit">www.seven.io/en/docs/gateway/http-api/subaccounts/#transfer-credit</a></p>
506
+
507
+
508
+ </div>
509
+ </div>
510
+ <div class="tags">
511
+ <p class="tag_title">Parameters:</p>
512
+ <ul class="param">
513
+
514
+ <li>
515
+
516
+ <span class='name'>params</span>
517
+
518
+
519
+ <span class='type'>(<tt>Hash</tt>)</span>
520
+
521
+
522
+
523
+ </li>
524
+
525
+ </ul>
526
+
527
+ <p class="tag_title">Returns:</p>
528
+ <ul class="return">
529
+
530
+ <li>
531
+
532
+
533
+ <span class='type'>(<tt>Hash</tt>)</span>
534
+
535
+
536
+
537
+ </li>
538
+
539
+ </ul>
540
+
541
+ </div><table class="source_code">
542
+ <tr>
543
+ <td>
544
+ <pre class="lines">
545
+
546
+
547
+ 50
548
+ 51
549
+ 52
550
+ 53
551
+ 54</pre>
552
+ </td>
553
+ <td>
554
+ <pre class="code"><span class="info file"># File 'lib/seven_api/resources/subaccounts.rb', line 50</span>
555
+
556
556
  <span class='kw'>def</span> <span class='id identifier rubyid_transfer_credits'>transfer_credits</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
557
- <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="Sms77::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Validator.html" title="Sms77::Subaccounts::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_transfer_credits'><span class='object_link'><a href="../Subaccounts/Validator.html#transfer_credits-class_method" title="Sms77::Subaccounts::Validator.transfer_credits (method)">transfer_credits</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
558
-
559
- <span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="Sms77::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html" title="Sms77::Subaccounts::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html#TRANSFER_CREDITS-constant" title="Sms77::Subaccounts::Action::TRANSFER_CREDITS (constant)">TRANSFER_CREDITS</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
560
- <span class='kw'>end</span></pre>
561
- </td>
562
- </tr>
563
- </table>
564
- </div>
565
-
566
- <div class="method_details ">
567
- <h3 class="signature " id="update-instance_method">
568
-
569
- #<strong>update</strong>(params) &#x21d2; <tt>Hash</tt>
570
-
571
-
572
-
573
-
574
-
575
- </h3><div class="docstring">
576
- <div class="discussion">
577
-
578
- <p>Update automatic charging of a subaccount read more: <a href="https://www.sms77.io/en/docs/gateway/http-api/subaccounts/#update-automatic-charging-of-the-subaccount">www.sms77.io/en/docs/gateway/http-api/subaccounts/#update-automatic-charging-of-the-subaccount</a></p>
579
-
580
-
581
- </div>
582
- </div>
583
- <div class="tags">
584
- <p class="tag_title">Parameters:</p>
585
- <ul class="param">
586
-
587
- <li>
588
-
589
- <span class='name'>params</span>
590
-
591
-
592
- <span class='type'>(<tt>Hash</tt>)</span>
593
-
594
-
595
-
596
- </li>
597
-
598
- </ul>
599
-
600
- <p class="tag_title">Returns:</p>
601
- <ul class="return">
602
-
603
- <li>
604
-
605
-
606
- <span class='type'>(<tt>Hash</tt>)</span>
607
-
608
-
609
-
610
- </li>
611
-
612
- </ul>
613
-
614
- </div><table class="source_code">
615
- <tr>
616
- <td>
617
- <pre class="lines">
618
-
619
-
620
- 60
621
- 61
622
- 62
623
- 63
624
- 64</pre>
625
- </td>
626
- <td>
627
- <pre class="code"><span class="info file"># File 'lib/sms77/resources/subaccounts.rb', line 60</span>
628
-
557
+ <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="SevenApi::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Validator.html" title="SevenApi::Subaccounts::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_transfer_credits'><span class='object_link'><a href="../Subaccounts/Validator.html#transfer_credits-class_method" title="SevenApi::Subaccounts::Validator.transfer_credits (method)">transfer_credits</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
558
+
559
+ <span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="SevenApi::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html" title="SevenApi::Subaccounts::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html#TRANSFER_CREDITS-constant" title="SevenApi::Subaccounts::Action::TRANSFER_CREDITS (constant)">TRANSFER_CREDITS</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
560
+ <span class='kw'>end</span></pre>
561
+ </td>
562
+ </tr>
563
+ </table>
564
+ </div>
565
+
566
+ <div class="method_details ">
567
+ <h3 class="signature " id="update-instance_method">
568
+
569
+ #<strong>update</strong>(params) &#x21d2; <tt>Hash</tt>
570
+
571
+
572
+
573
+
574
+
575
+ </h3><div class="docstring">
576
+ <div class="discussion">
577
+
578
+ <p>Update automatic charging of a subaccount read more: <a href="https://www.seven.io/en/docs/gateway/http-api/subaccounts/#update-automatic-charging-of-the-subaccount">www.seven.io/en/docs/gateway/http-api/subaccounts/#update-automatic-charging-of-the-subaccount</a></p>
579
+
580
+
581
+ </div>
582
+ </div>
583
+ <div class="tags">
584
+ <p class="tag_title">Parameters:</p>
585
+ <ul class="param">
586
+
587
+ <li>
588
+
589
+ <span class='name'>params</span>
590
+
591
+
592
+ <span class='type'>(<tt>Hash</tt>)</span>
593
+
594
+
595
+
596
+ </li>
597
+
598
+ </ul>
599
+
600
+ <p class="tag_title">Returns:</p>
601
+ <ul class="return">
602
+
603
+ <li>
604
+
605
+
606
+ <span class='type'>(<tt>Hash</tt>)</span>
607
+
608
+
609
+
610
+ </li>
611
+
612
+ </ul>
613
+
614
+ </div><table class="source_code">
615
+ <tr>
616
+ <td>
617
+ <pre class="lines">
618
+
619
+
620
+ 60
621
+ 61
622
+ 62
623
+ 63
624
+ 64</pre>
625
+ </td>
626
+ <td>
627
+ <pre class="code"><span class="info file"># File 'lib/seven_api/resources/subaccounts.rb', line 60</span>
628
+
629
629
  <span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
630
- <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="Sms77::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Validator.html" title="Sms77::Subaccounts::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_update'><span class='object_link'><a href="../Subaccounts/Validator.html#update-class_method" title="Sms77::Subaccounts::Validator.update (method)">update</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
631
-
632
- <span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="../../Sms77.html" title="Sms77 (module)">Sms77</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="Sms77::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html" title="Sms77::Subaccounts::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html#UPDATE-constant" title="Sms77::Subaccounts::Action::UPDATE (constant)">UPDATE</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
633
- <span class='kw'>end</span></pre>
634
- </td>
635
- </tr>
636
- </table>
637
- </div>
638
-
639
- </div>
640
-
641
- </div>
642
-
643
- <div id="footer">
644
- Generated on Wed Mar 30 13:55:36 2022 by
645
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
646
- 0.9.27 (ruby-2.7.4).
647
- </div>
648
-
649
- </div>
650
- </body>
630
+ <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="SevenApi::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Validator.html" title="SevenApi::Subaccounts::Validator (module)">Validator</a></span></span><span class='op'>::</span><span class='id identifier rubyid_update'><span class='object_link'><a href="../Subaccounts/Validator.html#update-class_method" title="SevenApi::Subaccounts::Validator.update (method)">update</a></span></span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='rparen'>)</span>
631
+
632
+ <span class='id identifier rubyid_request'>request</span><span class='lparen'>(</span><span class='id identifier rubyid_params'>params</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='lbrace'>{</span> <span class='symbol'>:action</span> <span class='op'>=&gt;</span> <span class='const'><span class='object_link'><a href="../../SevenApi.html" title="SevenApi (module)">SevenApi</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts.html" title="SevenApi::Subaccounts (module)">Subaccounts</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html" title="SevenApi::Subaccounts::Action (module)">Action</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="../Subaccounts/Action.html#UPDATE-constant" title="SevenApi::Subaccounts::Action::UPDATE (constant)">UPDATE</a></span></span> <span class='rbrace'>}</span><span class='rparen'>)</span><span class='rparen'>)</span>
633
+ <span class='kw'>end</span></pre>
634
+ </td>
635
+ </tr>
636
+ </table>
637
+ </div>
638
+
639
+ </div>
640
+
641
+ </div>
642
+
643
+ <div id="footer">
644
+ Generated on Fri Aug 25 14:18:47 2023 by
645
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
646
+ 0.9.34 (ruby-3.2.2).
647
+ </div>
648
+
649
+ </div>
650
+ </body>
651
651
  </html>