MCPcopy Index your code

hub / github.com/edg-l/paypal-rs / functions

Functions44 in github.com/edg-l/paypal-rs

↓ 3 callersMethodget_access_token
Gets a access token used in all the api calls and saves it.
src/client.rs:175
↓ 2 callersMethodbody
(&self)
src/api/orders.rs:44
↓ 2 callersMethodmake_url
Constructs a url from the target.
src/client.rs:79
↓ 1 callersMethodaccess_token_expired
Checks if the access token expired.
src/client.rs:203
↓ 1 callersFunctioncreate_client
(url: &str)
tests/orders_tests.rs:9
↓ 1 callersFunctioncreate_client
(url: &str)
tests/auth_tests.rs:5
↓ 1 callersMethodexecute
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 callersMethodexecute_ext
Executes the given endpoint with the given headers.
src/client.rs:212
↓ 1 callersMethodmethod
(&self)
src/api/orders.rs:40
↓ 1 callersMethodquery
(&self)
src/api/invoice.rs:158
↓ 1 callersMethodrelative_path
(&self)
src/api/orders.rs:36
↓ 1 callersMethodsetup_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
Methodbody
The body to be used when calling this endpoint.
src/endpoint.rs:27
Methodbody
(&self)
src/api/invoice.rs:56
Methoddefault
()
src/countries.rs:415
Methoddefault
()
src/data/orders.rs:23
Methoddefault
()
src/data/common.rs:184
Methoddefault
()
src/data/invoice.rs:437
Methodendpoint
Returns the endpoint of this environment.
src/client.rs:70
Methodeur
Creates a new amount with the EUR currency.
src/data/orders.rs:158
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/errors.rs:28
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/countries.rs:421
Methodfmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/data/common.rs:190
Methodfrom
(e: PaypalError)
src/errors.rs:64
Methodfrom_str
(s: &str)
src/countries.rs:429
Methodfrom_str
(s: &str)
src/data/common.rs:198
Functionmain
()
examples/invoice.rs:7
Methodmethod
(&self)
src/api/invoice.rs:52
Methodmethod
(&self)
src/api/payments.rs:42
Methodnew
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
Methodnew
Creates a new amount with the required values.
src/data/orders.rs:149
Methodnew
Creates a new amount with the required values.
src/data/invoice.rs:395
Methodnew
New constructor.
src/api/orders.rs:24
Methodnew
New constructor.
src/api/invoice.rs:36
Methodnew
New constructor.
src/api/payments.rs:24
Methodquery
The query to be used when calling this endpoint.
src/endpoint.rs:22
Methodrelative_path
(&self)
src/api/invoice.rs:48
Methodrelative_path
(&self)
src/api/payments.rs:38
Methodsource
(&self)
src/errors.rs:54
Functiontest_auth
()
tests/auth_tests.rs:14
Functiontest_country
()
src/lib.rs:201
Functiontest_create_order
()
tests/orders_tests.rs:18
Functiontest_currency
()
src/lib.rs:194
Methodusd
Creates a new amount with the USD currency.
src/data/orders.rs:167