pub struct HeaderParamsBuilder { /* private fields */ }
Expand description
Builder for HeaderParams
.
Implementations§
Source§impl HeaderParamsBuilder
impl HeaderParamsBuilder
Sourcepub fn merchant_payer_id(&mut self, value: Option<String>) -> &mut Self
pub fn merchant_payer_id(&mut self, value: Option<String>) -> &mut Self
The merchant payer id used on PayPal-Auth-Assertion
Sourcepub fn client_metadata_id(&mut self, value: Option<String>) -> &mut Self
pub fn client_metadata_id(&mut self, value: Option<String>) -> &mut Self
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.
Sourcepub fn partner_attribution_id(&mut self, value: Option<String>) -> &mut Self
pub fn partner_attribution_id(&mut self, value: Option<String>) -> &mut Self
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.
Sourcepub fn request_id(&mut self, value: Option<String>) -> &mut Self
pub fn request_id(&mut self, value: Option<String>) -> &mut Self
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.
Sourcepub fn content_type(&mut self, value: Option<String>) -> &mut Self
pub fn content_type(&mut self, value: Option<String>) -> &mut Self
The media type. Required for operations with a request body.
Sourcepub fn build(&self) -> Result<HeaderParams, HeaderParamsBuilderError>
pub fn build(&self) -> Result<HeaderParams, HeaderParamsBuilderError>
Trait Implementations§
Source§impl Clone for HeaderParamsBuilder
impl Clone for HeaderParamsBuilder
Source§fn clone(&self) -> HeaderParamsBuilder
fn clone(&self) -> HeaderParamsBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more