paypal-server-sdk 0.7.0 → 1.0.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.
- checksums.yaml +4 -4
- data/README.md +19 -23
- data/lib/paypal_server_sdk/controllers/base_controller.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57ccf4a802a623251769dc25b3947371457e03c91cf3f40a1644b7073972a09b
|
4
|
+
data.tar.gz: 6f7fa9685e2e524b81e3479b29b3a9c732a13e47d90ccb041d930051d505bf62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b73e8c5b558d9ee4d156a56d2c7aa5bb0ad19f0c56c621d9dbe64bacabfa214f3b55508d86b9db2dc554de7d7aacb717d1edc7f284414513f9ae3b3894e24d
|
7
|
+
data.tar.gz: 67f44b93ff99d35c3e6d86776b083dac1060cff1d56216d46e9f49f9a88caf8b2eebe433c414e1e6aa8184217dd914479b4c8e648c10501667eb5495bbb7d6c3
|
data/README.md
CHANGED
@@ -3,11 +3,7 @@
|
|
3
3
|
|
4
4
|
## Introduction
|
5
5
|
|
6
|
-
###
|
7
|
-
|
8
|
-
This version is considered a **beta release**. While we have done our best to ensure stability and functionality, there may still be bugs, incomplete features, or breaking changes in future updates.
|
9
|
-
|
10
|
-
#### Important Notes
|
6
|
+
### Important Notes
|
11
7
|
|
12
8
|
- **Available Features:** This SDK currently contains only 3 of PayPal's API endpoints. Additional endpoints and functionality will be added in the future.
|
13
9
|
- **API Changes:** Expect potential changes in APIs and features as we finalize the product.
|
@@ -27,20 +23,20 @@ Find out more here: [https://developer.paypal.com/docs/api/orders/v2/](https://d
|
|
27
23
|
Install the gem from the command line:
|
28
24
|
|
29
25
|
```bash
|
30
|
-
gem install paypal-server-sdk -v 0.
|
26
|
+
gem install paypal-server-sdk -v 1.0.0
|
31
27
|
```
|
32
28
|
|
33
29
|
Or add the gem to your Gemfile and run `bundle`:
|
34
30
|
|
35
31
|
```ruby
|
36
|
-
gem 'paypal-server-sdk', '0.
|
32
|
+
gem 'paypal-server-sdk', '1.0.0'
|
37
33
|
```
|
38
34
|
|
39
|
-
For additional gem details, see the [RubyGems page for the paypal-server-sdk gem](https://rubygems.org/gems/paypal-server-sdk/versions/0.
|
35
|
+
For additional gem details, see the [RubyGems page for the paypal-server-sdk gem](https://rubygems.org/gems/paypal-server-sdk/versions/1.0.0).
|
40
36
|
|
41
37
|
## Initialize the API Client
|
42
38
|
|
43
|
-
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
39
|
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/client.md)
|
44
40
|
|
45
41
|
The following parameters are configurable for the API Client:
|
46
42
|
|
@@ -56,8 +52,8 @@ The following parameters are configurable for the API Client:
|
|
56
52
|
| `retry_statuses` | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
|
57
53
|
| `retry_methods` | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
|
58
54
|
| `http_callback` | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
|
59
|
-
| `logging_configuration` | [`LoggingConfiguration`](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
60
|
-
| `client_credentials_auth_credentials` | [`ClientCredentialsAuthCredentials`](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
55
|
+
| `logging_configuration` | [`LoggingConfiguration`](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/logging-configuration.md) | The SDK logging configuration for API calls |
|
56
|
+
| `client_credentials_auth_credentials` | [`ClientCredentialsAuthCredentials`](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/auth/oauth-2-client-credentials-grant.md) | The credential object for OAuth 2 Client Credentials Grant |
|
61
57
|
|
62
58
|
The API client can be initialized as follows:
|
63
59
|
|
@@ -95,22 +91,22 @@ The SDK can be configured to use a different environment for making API calls. A
|
|
95
91
|
|
96
92
|
This API uses the following authentication schemes.
|
97
93
|
|
98
|
-
* [`Oauth2 (OAuth 2 Client Credentials Grant)`](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
94
|
+
* [`Oauth2 (OAuth 2 Client Credentials Grant)`](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/auth/oauth-2-client-credentials-grant.md)
|
99
95
|
|
100
96
|
## List of APIs
|
101
97
|
|
102
|
-
* [Orders](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
103
|
-
* [Payments](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
104
|
-
* [Vault](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
98
|
+
* [Orders](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/controllers/orders.md)
|
99
|
+
* [Payments](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/controllers/payments.md)
|
100
|
+
* [Vault](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/controllers/vault.md)
|
105
101
|
|
106
102
|
## Classes Documentation
|
107
103
|
|
108
|
-
* [Utility Classes](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
109
|
-
* [HttpResponse](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
110
|
-
* [HttpRequest](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
111
|
-
* [ApiResponse](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
112
|
-
* [LoggingConfiguration](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
113
|
-
* [RequestLoggingConfiguration](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
114
|
-
* [ResponseLoggingConfiguration](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
115
|
-
* [Abstract Logger](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.
|
104
|
+
* [Utility Classes](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/utility-classes.md)
|
105
|
+
* [HttpResponse](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/http-response.md)
|
106
|
+
* [HttpRequest](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/http-request.md)
|
107
|
+
* [ApiResponse](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/api-response.md)
|
108
|
+
* [LoggingConfiguration](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/logging-configuration.md)
|
109
|
+
* [RequestLoggingConfiguration](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/request-logging-configuration.md)
|
110
|
+
* [ResponseLoggingConfiguration](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/response-logging-configuration.md)
|
111
|
+
* [Abstract Logger](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/1.0.0/doc/abstract-logger.md)
|
116
112
|
|
@@ -10,7 +10,7 @@ module PaypalServerSdk
|
|
10
10
|
attr_accessor :config, :http_call_back
|
11
11
|
|
12
12
|
def self.user_agent
|
13
|
-
'PayPal REST API Ruby SDK, Version: 0.
|
13
|
+
'PayPal REST API Ruby SDK, Version: 1.0.0, on OS {os-info}'
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.user_agent_parameters
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-server-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apimatic_core_interfaces
|