chore: use string instead
This commit is contained in:
parent
77da2380f7
commit
8c20218e87
|
|
@ -47,8 +47,8 @@ impl Client {
|
|||
let sub_link_req = SubscriptionLinkRequest {
|
||||
workspace_subscription_plan,
|
||||
recurring_interval,
|
||||
workspace_id,
|
||||
success_url,
|
||||
workspace_id: workspace_id.to_string(),
|
||||
success_url: success_url.to_string(),
|
||||
with_test_clock: None,
|
||||
};
|
||||
|
||||
|
|
@ -57,7 +57,7 @@ impl Client {
|
|||
|
||||
pub async fn create_subscription_v2(
|
||||
&self,
|
||||
sub_link_req: &SubscriptionLinkRequest<'_>,
|
||||
sub_link_req: &SubscriptionLinkRequest,
|
||||
) -> Result<String, AppResponseError> {
|
||||
let url = format!(
|
||||
"{}/billing/api/v1/subscription-link",
|
||||
|
|
|
|||
|
|
@ -150,11 +150,11 @@ pub enum Currency {
|
|||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct SubscriptionLinkRequest<'a> {
|
||||
pub struct SubscriptionLinkRequest {
|
||||
pub workspace_subscription_plan: SubscriptionPlan,
|
||||
pub recurring_interval: RecurringInterval,
|
||||
pub workspace_id: &'a str,
|
||||
pub success_url: &'a str,
|
||||
pub workspace_id: String,
|
||||
pub success_url: String,
|
||||
pub with_test_clock: Option<bool>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue