#[non_exhaustive]pub struct DynamicCardVerificationCodeBuilder { /* private fields */ }
Expand description
A builder for DynamicCardVerificationCode
.
Implementations§
source§impl DynamicCardVerificationCodeBuilder
impl DynamicCardVerificationCodeBuilder
sourcepub fn unpredictable_number(self, input: impl Into<String>) -> Self
pub fn unpredictable_number(self, input: impl Into<String>) -> Self
A random number generated by the issuer.
This field is required.sourcepub fn set_unpredictable_number(self, input: Option<String>) -> Self
pub fn set_unpredictable_number(self, input: Option<String>) -> Self
A random number generated by the issuer.
sourcepub fn get_unpredictable_number(&self) -> &Option<String>
pub fn get_unpredictable_number(&self) -> &Option<String>
A random number generated by the issuer.
sourcepub fn pan_sequence_number(self, input: impl Into<String>) -> Self
pub fn pan_sequence_number(self, input: impl Into<String>) -> Self
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN).
This field is required.sourcepub fn set_pan_sequence_number(self, input: Option<String>) -> Self
pub fn set_pan_sequence_number(self, input: Option<String>) -> Self
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN).
sourcepub fn get_pan_sequence_number(&self) -> &Option<String>
pub fn get_pan_sequence_number(&self) -> &Option<String>
A number that identifies and differentiates payment cards with the same Primary Account Number (PAN).
sourcepub fn application_transaction_counter(self, input: impl Into<String>) -> Self
pub fn application_transaction_counter(self, input: impl Into<String>) -> Self
The transaction counter value that comes from the terminal.
This field is required.sourcepub fn set_application_transaction_counter(self, input: Option<String>) -> Self
pub fn set_application_transaction_counter(self, input: Option<String>) -> Self
The transaction counter value that comes from the terminal.
sourcepub fn get_application_transaction_counter(&self) -> &Option<String>
pub fn get_application_transaction_counter(&self) -> &Option<String>
The transaction counter value that comes from the terminal.
sourcepub fn track_data(self, input: impl Into<String>) -> Self
pub fn track_data(self, input: impl Into<String>) -> Self
The data on the two tracks of magnetic cards used for financial transactions. This includes the cardholder name, PAN, expiration date, bank ID (BIN) and several other numbers the issuing bank uses to validate the data received.
This field is required.sourcepub fn set_track_data(self, input: Option<String>) -> Self
pub fn set_track_data(self, input: Option<String>) -> Self
The data on the two tracks of magnetic cards used for financial transactions. This includes the cardholder name, PAN, expiration date, bank ID (BIN) and several other numbers the issuing bank uses to validate the data received.
sourcepub fn get_track_data(&self) -> &Option<String>
pub fn get_track_data(&self) -> &Option<String>
The data on the two tracks of magnetic cards used for financial transactions. This includes the cardholder name, PAN, expiration date, bank ID (BIN) and several other numbers the issuing bank uses to validate the data received.
sourcepub fn build(self) -> Result<DynamicCardVerificationCode, BuildError>
pub fn build(self) -> Result<DynamicCardVerificationCode, BuildError>
Consumes the builder and constructs a DynamicCardVerificationCode
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DynamicCardVerificationCodeBuilder
impl Clone for DynamicCardVerificationCodeBuilder
source§fn clone(&self) -> DynamicCardVerificationCodeBuilder
fn clone(&self) -> DynamicCardVerificationCodeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DynamicCardVerificationCodeBuilder
impl Default for DynamicCardVerificationCodeBuilder
source§fn default() -> DynamicCardVerificationCodeBuilder
fn default() -> DynamicCardVerificationCodeBuilder
source§impl PartialEq for DynamicCardVerificationCodeBuilder
impl PartialEq for DynamicCardVerificationCodeBuilder
source§fn eq(&self, other: &DynamicCardVerificationCodeBuilder) -> bool
fn eq(&self, other: &DynamicCardVerificationCodeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.