Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/edg-l/paypal-rs
/ functions
Functions
44 in github.com/edg-l/paypal-rs
⨍
Functions
44
◇
Types & classes
133
↓ 3 callers
Method
get_access_token
Gets a access token used in all the api calls and saves it.
src/client.rs:175
↓ 2 callers
Method
body
(&self)
src/api/orders.rs:44
↓ 2 callers
Method
make_url
Constructs a url from the target.
src/client.rs:79
↓ 1 callers
Method
access_token_expired
Checks if the access token expired.
src/client.rs:203
↓ 1 callers
Function
create_client
(url: &str)
tests/orders_tests.rs:9
↓ 1 callers
Function
create_client
(url: &str)
tests/auth_tests.rs:5
↓ 1 callers
Method
execute
Executes the given endpoints with the default headers. You must remember to call [Client::get_access_token] first or this may fail due to not being a
src/client.rs:249
↓ 1 callers
Method
execute_ext
Executes the given endpoint with the given headers.
src/client.rs:212
↓ 1 callers
Method
method
(&self)
src/api/orders.rs:40
↓ 1 callers
Method
query
(&self)
src/api/invoice.rs:158
↓ 1 callers
Method
relative_path
(&self)
src/api/orders.rs:36
↓ 1 callers
Method
setup_headers
Sets up the request headers as required on https://developer.paypal.com/docs/api/reference/api-requests/#http-request-headers
src/client.rs:121
Method
body
The body to be used when calling this endpoint.
src/endpoint.rs:27
Method
body
(&self)
src/api/invoice.rs:56
Method
default
()
src/countries.rs:415
Method
default
()
src/data/orders.rs:23
Method
default
()
src/data/common.rs:184
Method
default
()
src/data/invoice.rs:437
Method
endpoint
Returns the endpoint of this environment.
src/client.rs:70
Method
eur
Creates a new amount with the EUR currency.
src/data/orders.rs:158
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/errors.rs:28
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/countries.rs:421
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/data/common.rs:190
Method
from
(e: PaypalError)
src/errors.rs:64
Method
from_str
(s: &str)
src/countries.rs:429
Method
from_str
(s: &str)
src/data/common.rs:198
Function
main
()
examples/invoice.rs:7
Method
method
(&self)
src/api/invoice.rs:52
Method
method
(&self)
src/api/payments.rs:42
Method
new
Returns a new client, you must get_access_token afterwards to interact with the api. # Examples ```no_run use paypal_rs::{Client, PaypalEnv}; #[tok
src/client.rs:107
Method
new
Creates a new amount with the required values.
src/data/orders.rs:149
Method
new
Creates a new amount with the required values.
src/data/invoice.rs:395
Method
new
New constructor.
src/api/orders.rs:24
Method
new
New constructor.
src/api/invoice.rs:36
Method
new
New constructor.
src/api/payments.rs:24
Method
query
The query to be used when calling this endpoint.
src/endpoint.rs:22
Method
relative_path
(&self)
src/api/invoice.rs:48
Method
relative_path
(&self)
src/api/payments.rs:38
Method
source
(&self)
src/errors.rs:54
Function
test_auth
()
tests/auth_tests.rs:14
Function
test_country
()
src/lib.rs:201
Function
test_create_order
()
tests/orders_tests.rs:18
Function
test_currency
()
src/lib.rs:194
Method
usd
Creates a new amount with the USD currency.
src/data/orders.rs:167