use serde::{Deserialize, Serialize};
use super::wire;
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq)]
#[serde(
from = "wire::GetBillingStatusResponse",
into = "wire::GetBillingStatusResponse"
)]
pub struct GetBillingStatusResponse {
pub payment_method_saved: bool,
}
impl From<wire::GetBillingStatusResponse> for GetBillingStatusResponse {
fn from(value: wire::GetBillingStatusResponse) -> Self {
Self {
payment_method_saved: value.payment_method_saved,
}
}
}
impl From<GetBillingStatusResponse> for wire::GetBillingStatusResponse {
fn from(value: GetBillingStatusResponse) -> Self {
Self {
payment_method_saved: value.payment_method_saved,
}
}
}