|
| 1 | +<!DOCTYPE html> |
| 2 | + |
| 3 | +<html lang="en"> |
| 4 | +<head> |
| 5 | +<meta charset="UTF-8"> |
| 6 | +<meta name="viewport" content="width=device-width, initial-scale=1"> |
| 7 | + |
| 8 | +<title>class EasyPost::Services::CustomerPortal - EasyPost Ruby Docs</title> |
| 9 | + |
| 10 | + |
| 11 | + <meta name="keywords" content="ruby,class,EasyPost::Services::CustomerPortal"> |
| 12 | + |
| 13 | + |
| 14 | + <meta name="description" content="Documentation for the EasyPost::Services::CustomerPortal class"> |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +<script type="text/javascript"> |
| 21 | + var rdoc_rel_prefix = "../../"; |
| 22 | + var index_rel_prefix = "../../"; |
| 23 | +</script> |
| 24 | + |
| 25 | +<script src="../../js/navigation.js" defer></script> |
| 26 | +<script src="../../js/search.js" defer></script> |
| 27 | +<script src="../../js/search_index.js" defer></script> |
| 28 | +<script src="../../js/searcher.js" defer></script> |
| 29 | +<script src="../../js/darkfish.js" defer></script> |
| 30 | + |
| 31 | +<link href="../../css/fonts.css" rel="stylesheet"> |
| 32 | +<link href="../../css/rdoc.css" rel="stylesheet"> |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +<body id="top" role="document" class="class"> |
| 37 | +<div id="navigation-toggle" role="button" tabindex="0" aria-label="Toggle sidebar" aria-expanded="true" aria-controls="navigation"> |
| 38 | + <span aria-hidden="true">☰</span> |
| 39 | +</div> |
| 40 | + |
| 41 | + |
| 42 | +<nav id="navigation" role="navigation"> |
| 43 | + <div id="project-navigation"> |
| 44 | + <div id="home-section" role="region" title="Quick navigation" class="nav-section"> |
| 45 | + <h2> |
| 46 | + <a href="../../index.html" rel="home">Home</a> |
| 47 | + </h2> |
| 48 | + |
| 49 | + <div id="table-of-contents-navigation"> |
| 50 | + <a href="../../table_of_contents.html#pages">Pages</a> |
| 51 | + <a href="../../table_of_contents.html#classes">Classes</a> |
| 52 | + <a href="../../table_of_contents.html#methods">Methods</a> |
| 53 | + </div> |
| 54 | +</div> |
| 55 | + |
| 56 | + <div id="search-section" role="search" class="project-section initially-hidden"> |
| 57 | + <form action="#" method="get" accept-charset="utf-8"> |
| 58 | + <div id="search-field-wrapper"> |
| 59 | + <input id="search-field" role="combobox" aria-label="Search" |
| 60 | + aria-autocomplete="list" aria-controls="search-results" |
| 61 | + type="text" name="search" placeholder="Search (/) for a class, method, ..." spellcheck="false" |
| 62 | + title="Type to search, Up and Down to navigate, Enter to load"> |
| 63 | + </div> |
| 64 | + |
| 65 | + <ul id="search-results" aria-label="Search Results" |
| 66 | + aria-busy="false" aria-expanded="false" |
| 67 | + aria-atomic="false" class="initially-hidden"></ul> |
| 68 | + </form> |
| 69 | +</div> |
| 70 | + |
| 71 | + </div> |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +<div id="parent-class-section" class="nav-section"> |
| 79 | + <h3>Ancestors</h3> |
| 80 | + <ul><li><a href="Service.html">EasyPost::Services::Service</a><ul><li>Object</li></ul></li></ul> |
| 81 | +</div> |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + <div class="nav-section"> |
| 92 | + <h3>Instance Methods</h3> |
| 93 | + <ul class="link-list" role="directory"> |
| 94 | + |
| 95 | + <li ><a href="#method-i-create_account_link">create_account_link</a></li> |
| 96 | + |
| 97 | + </ul> |
| 98 | + </div> |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + <footer id="validator-badges" role="contentinfo"> |
| 103 | + <p><a href="https://validator.w3.org/check/referer">Validate</a></p> |
| 104 | + <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.15.1.</p> |
| 105 | + <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p> |
| 106 | +</footer> |
| 107 | + |
| 108 | +</nav> |
| 109 | + |
| 110 | +<main role="main" aria-labelledby="class-EasyPost::Services::CustomerPortal"> |
| 111 | + |
| 112 | + |
| 113 | + <ol role="navigation" aria-label="Breadcrumb navigation" class="breadcrumb"> |
| 114 | + |
| 115 | + <li> |
| 116 | + |
| 117 | + <a href="../../EasyPost.html">EasyPost</a><span>::</span> |
| 118 | + |
| 119 | + </li> |
| 120 | + |
| 121 | + <li> |
| 122 | + |
| 123 | + <a href="../../EasyPost/Services.html">Services</a><span>::</span> |
| 124 | + |
| 125 | + </li> |
| 126 | + |
| 127 | + <li> |
| 128 | + |
| 129 | + <span>CustomerPortal</span> |
| 130 | + |
| 131 | + </li> |
| 132 | + |
| 133 | + </ol> |
| 134 | + |
| 135 | + |
| 136 | + <h1 id="class-EasyPost::Services::CustomerPortal" class="anchor-link class"> |
| 137 | + class EasyPost::Services::CustomerPortal |
| 138 | + </h1> |
| 139 | + |
| 140 | + <section class="description"> |
| 141 | + |
| 142 | + </section> |
| 143 | + |
| 144 | + |
| 145 | + <section id="5Buntitled-5D" class="documentation-section anchor-link"> |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + |
| 155 | + <section id="public-instance-5Buntitled-5D-method-details" class="method-section anchor-link"> |
| 156 | + <header> |
| 157 | + <h3>Public Instance Methods</h3> |
| 158 | + </header> |
| 159 | + |
| 160 | + |
| 161 | + <div id="method-i-create_account_link" class="method-detail anchor-link "> |
| 162 | + <div class="method-header"> |
| 163 | + |
| 164 | + <div class="method-heading"> |
| 165 | + <a href="#method-i-create_account_link" title="Link to this method"> |
| 166 | + <span class="method-name">create_account_link</span> |
| 167 | + <span class="method-args">(params = {})</span> |
| 168 | + </a> |
| 169 | + </div> |
| 170 | + |
| 171 | + </div> |
| 172 | + |
| 173 | + |
| 174 | + <div class="method-controls"> |
| 175 | + <details class="method-source-toggle"> |
| 176 | + <summary>Source</summary> |
| 177 | + </details> |
| 178 | + </div> |
| 179 | + |
| 180 | + |
| 181 | + |
| 182 | + <div class="method-description"> |
| 183 | + |
| 184 | + <div class="method-source-code" id="create_account_link-source"> |
| 185 | + <pre><span class="ruby-comment"># File lib/easypost/services/customer_portal.rb, line 5</span> |
| 186 | +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">create_account_link</span>(<span class="ruby-identifier">params</span> = {}) |
| 187 | + <span class="ruby-identifier">response</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">make_request</span>(<span class="ruby-value">:post</span>, <span class="ruby-string">'customer_portal/account_link'</span>, <span class="ruby-identifier">params</span>) |
| 188 | + |
| 189 | + <span class="ruby-constant">EasyPost</span><span class="ruby-operator">::</span><span class="ruby-constant">InternalUtilities</span><span class="ruby-operator">::</span><span class="ruby-constant">Json</span>.<span class="ruby-identifier">convert_json_to_object</span>(<span class="ruby-identifier">response</span>) |
| 190 | +<span class="ruby-keyword">end</span></pre> |
| 191 | + </div> |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + <p>Create a Portal Session</p> |
| 196 | + |
| 197 | + |
| 198 | + </div> |
| 199 | + |
| 200 | + |
| 201 | + |
| 202 | + |
| 203 | + |
| 204 | + </div> |
| 205 | + |
| 206 | + |
| 207 | + </section> |
| 208 | + |
| 209 | + </section> |
| 210 | + |
| 211 | +</main> |
| 212 | +</body> |
| 213 | + |
0 commit comments