Skip to content
This repository has been archived by the owner on Feb 12, 2025. It is now read-only.

Commit

Permalink
update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Nov 22, 2021
1 parent 6090944 commit b299b6f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Order.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Name | Type | Description | Notes
**total_amount** | Option<**i32**> | A positive integer in the smallest currency unit (that is, 100 cents for $1.00) representing the total order amount that was or will be charged. This accounts for order items and taxes. | [optional]
**payment_url** | Option<**String**> | A URL of a publicly-accessible webpage to pay for the order. | [optional]
**status_url** | Option<**String**> | A URL of a publicly-accessible webpage to see the order's status. |
**downloads_allowed** | Option<**bool**> | Indicates if the current user is allowed to download content from the attached listing. | [optional]
**payments_allowed** | Option<**bool**> | Indicates if the current user is allowed to make a payment for the order. | [optional]
**address** | Option<[**crate::models::Address**](Address.md)> | | [optional]
**customer** | Option<[**crate::models::Group**](Group.md)> | | [optional]
**listing** | Option<[**crate::models::Listing**](Listing.md)> | | [optional]
Expand Down
2 changes: 2 additions & 0 deletions docs/OrderPostPayload.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Name | Type | Description | Notes
**address_id** | Option<**String**> | ID of the address to associate with the order. UUID Version 4. | [optional]
**customer_id** | Option<**String**> | ID of the customer to associate with the order. UUID Version 4. | [optional]
**notify** | Option<**bool**> | Indicates if the customer and creator notifications should be sent when creating the order. Requires an address and customer to be set in order for the notifications to be sent. | [optional]
**lock_download_for_payment** | Option<**bool**> | Indicates if the downloads for the attached listing should be locked while there is an outstanding balance on the order. | [optional]
**allow_payments_before_fulfillment** | Option<**bool**> | Indicates if the order will allow payments from the customer before the order is marked as fulfilled. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
8 changes: 8 additions & 0 deletions src/models/order.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ pub struct Order {
/// A URL of a publicly-accessible webpage to see the order's status.
#[serde(rename = "status_url")]
pub status_url: Option<String>,
/// Indicates if the current user is allowed to download content from the attached listing.
#[serde(rename = "downloads_allowed", skip_serializing_if = "Option::is_none")]
pub downloads_allowed: Option<bool>,
/// Indicates if the current user is allowed to make a payment for the order.
#[serde(rename = "payments_allowed", skip_serializing_if = "Option::is_none")]
pub payments_allowed: Option<bool>,
#[serde(rename = "address", skip_serializing_if = "Option::is_none")]
pub address: Option<Box<crate::models::Address>>,
#[serde(rename = "customer", skip_serializing_if = "Option::is_none")]
Expand Down Expand Up @@ -65,6 +71,8 @@ impl Order {
total_amount: None,
payment_url: None,
status_url,
downloads_allowed: None,
payments_allowed: None,
address: None,
customer: None,
listing: None,
Expand Down
8 changes: 8 additions & 0 deletions src/models/order_post_payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ pub struct OrderPostPayload {
/// Indicates if the customer and creator notifications should be sent when creating the order. Requires an address and customer to be set in order for the notifications to be sent.
#[serde(rename = "notify", skip_serializing_if = "Option::is_none")]
pub notify: Option<bool>,
/// Indicates if the downloads for the attached listing should be locked while there is an outstanding balance on the order.
#[serde(rename = "lock_download_for_payment", skip_serializing_if = "Option::is_none")]
pub lock_download_for_payment: Option<bool>,
/// Indicates if the order will allow payments from the customer before the order is marked as fulfilled.
#[serde(rename = "allow_payments_before_fulfillment", skip_serializing_if = "Option::is_none")]
pub allow_payments_before_fulfillment: Option<bool>,
}

impl OrderPostPayload {
Expand All @@ -36,6 +42,8 @@ impl OrderPostPayload {
address_id: None,
customer_id: None,
notify: None,
lock_download_for_payment: None,
allow_payments_before_fulfillment: None,
}
}
}
Expand Down

0 comments on commit b299b6f

Please sign in to comment.