dodo_payments 0.1.1

This is Unoffical SDK of dodopayments.com
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::super::common::structs::*;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

#[serde_with::skip_serializing_none]
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct CreateOneTimePaymentResponse {
    pub client_secret: String,
    pub customer: CustomerLimitedDetailsResponse,
    pub discount_id: Option<String>,
    pub expires_on: Option<String>,
    pub metadata: HashMap<String, String>,
    pub payment_id: String,
    pub payment_link: Option<String>,
    pub product_cart: Option<Vec<ProductItem>>,
    pub total_amount: i32,
}