Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CheckoutSession::retrieve_line_items parameters and associated stuct visibility #560

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ pub use {
#[rustfmt::skip]
#[cfg(feature = "checkout")]
pub use {
checkout::checkout_session_ext::*,
generated::checkout::{
checkout_session::*,
payment_link::*,
Expand Down
6 changes: 3 additions & 3 deletions src/resources/checkout_session_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::client::{Client, Response};
use crate::ids::CheckoutSessionId;
use crate::params::Expand;
use crate::resources::CheckoutSession;
use crate::{CheckoutSessionItem, List};
use crate::{CheckoutSessionItem, CheckoutSessionItemId, List};

/// The parameters for `CheckoutSession::retrieve_line_items`.
#[derive(Clone, Debug, serde::Serialize, Default)]
Expand All @@ -12,7 +12,7 @@ pub struct RetrieveCheckoutSessionLineItems {
/// `ending_before` is an object ID that defines your place in the list.
/// For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
#[serde(skip_serializing_if = "Option::is_none")]
pub ending_before: Option<CheckoutSessionId>,
pub ending_before: Option<CheckoutSessionItemId>,

/// A limit on the number of objects to be returned.
///
Expand All @@ -25,7 +25,7 @@ pub struct RetrieveCheckoutSessionLineItems {
/// `starting_after` is an object ID that defines your place in the list.
/// For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
#[serde(skip_serializing_if = "Option::is_none")]
pub starting_after: Option<CheckoutSessionId>,
pub starting_after: Option<CheckoutSessionItemId>,
}

impl CheckoutSession {
Expand Down