pub struct HeaderParams {
pub merchant_payer_id: Option<String>,
pub client_metadata_id: Option<String>,
pub partner_attribution_id: Option<String>,
pub request_id: Option<String>,
pub content_type: Option<String>,
}
Expand description
Represents the optional header values used on paypal requests.
https://developer.paypal.com/docs/api/reference/api-requests/#paypal-auth-assertion
Fields§
§merchant_payer_id: Option<String>
The merchant payer id used on PayPal-Auth-Assertion
client_metadata_id: Option<String>
Verifies that the payment originates from a valid, user-consented device and application. Reduces fraud and decreases declines. Transactions that do not include a client metadata ID are not eligible for PayPal Seller Protection.
partner_attribution_id: Option<String>
Identifies the caller as a PayPal partner. To receive revenue attribution, specify a unique build notation (BN) code. BN codes provide tracking on all transactions that originate or are associated with a particular partner.
request_id: Option<String>
Contains a unique user-generated ID that the server stores for a period of time. Use this header to enforce idempotency on REST API POST calls. You can make these calls any number of times without concern that the server creates or completes an action on a resource more than once. You can retry calls that fail with network timeouts or the HTTP 500 status code. You can retry calls for as long as the server stores the ID.
content_type: Option<String>
The media type. Required for operations with a request body.
Trait Implementations§
Source§impl Clone for HeaderParams
impl Clone for HeaderParams
Source§fn clone(&self) -> HeaderParams
fn clone(&self) -> HeaderParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more