ultracart_api 4.0.32.rc → 4.0.33.rc
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/AffiliateApi.md +16 -22
- data/docs/AutoOrderApi.md +64 -88
- data/docs/ChannelPartnerApi.md +40 -55
- data/docs/ChargebackApi.md +40 -55
- data/docs/CheckoutApi.md +152 -294
- data/docs/CouponApi.md +152 -209
- data/docs/CustomerApi.md +136 -192
- data/docs/FulfillmentApi.md +48 -66
- data/docs/GiftCertificateApi.md +64 -88
- data/docs/IntegrationLogApi.md +40 -55
- data/docs/ItemApi.md +72 -99
- data/docs/OauthApi.md +16 -32
- data/docs/OrderApi.md +184 -253
- data/docs/SsoApi.md +32 -44
- data/docs/StorefrontApi.md +1134 -2345
- data/docs/TaxApi.md +224 -308
- data/docs/UserApi.md +88 -121
- data/docs/WebhookApi.md +64 -88
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
data/docs/OauthApi.md
CHANGED
@@ -21,23 +21,15 @@ The final leg in the OAuth process which exchanges the specified access token fo
|
|
21
21
|
```ruby
|
22
22
|
require 'time'
|
23
23
|
require 'ultracart_api'
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
32
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
33
|
-
|
34
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
35
|
-
config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
|
36
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
37
|
-
# config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
|
38
|
-
end
|
24
|
+
require 'json'
|
25
|
+
require 'yaml'
|
26
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
27
|
+
|
28
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
29
|
+
# As such, this might not be the best way to use this object.
|
30
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
39
31
|
|
40
|
-
|
32
|
+
api = UltracartClient::OauthApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
41
33
|
client_id = 'client_id_example' # String | The OAuth application client_id.
|
42
34
|
grant_type = 'grant_type_example' # String | Type of grant
|
43
35
|
opts = {
|
@@ -110,23 +102,15 @@ Revokes the OAuth application associated with the specified client_id and token.
|
|
110
102
|
```ruby
|
111
103
|
require 'time'
|
112
104
|
require 'ultracart_api'
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
# Configure OAuth2 access token for authorization: ultraCartOauth
|
121
|
-
config.access_token = 'YOUR ACCESS TOKEN'
|
122
|
-
|
123
|
-
# Configure API key authorization: ultraCartSimpleApiKey
|
124
|
-
config.api_key['ultraCartSimpleApiKey'] = 'YOUR API KEY'
|
125
|
-
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
126
|
-
# config.api_key_prefix['ultraCartSimpleApiKey'] = 'Bearer'
|
127
|
-
end
|
105
|
+
require 'json'
|
106
|
+
require 'yaml'
|
107
|
+
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
108
|
+
|
109
|
+
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
110
|
+
# As such, this might not be the best way to use this object.
|
111
|
+
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
128
112
|
|
129
|
-
|
113
|
+
api = UltracartClient::OauthApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
130
114
|
client_id = 'client_id_example' # String | The OAuth application client_id.
|
131
115
|
token = 'token_example' # String | The OAuth access token that is to be revoked..
|
132
116
|
|