Skip to content

Commit

Permalink
update stripe version to 2020-03-02
Browse files Browse the repository at this point in the history
  • Loading branch information
fisherdarling authored and dav1do committed Dec 7, 2021
1 parent 5e13bb1 commit ca0a4a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/async.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ impl Client {
let client = hyper::Client::builder().pool_max_idle_per_host(0).build(https);
let mut headers = Headers::default();
// TODO: Automatically determine the latest supported api version in codegen?
headers.stripe_version = Some(ApiVersion::V2019_09_09);
headers.stripe_version = Some(ApiVersion::V2020_03_02);
Client {
host,
client,
secret_key: secret_key.into(),
headers,
headers: Headers::default(),
app_info: Some(AppInfo::default()),
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/resources/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ pub enum ApiVersion {
V2019_08_14,
#[serde(rename = "2019-09-09")]
V2019_09_09,
#[serde(rename = "2020-03-02")]
V2020_03_02,
#[serde(rename = "2020-08-27")]
V2020_08_27,
}

impl ApiVersion {
Expand Down Expand Up @@ -281,6 +285,8 @@ impl ApiVersion {
ApiVersion::V2019_05_16 => "2019-05-16",
ApiVersion::V2019_08_14 => "2019-08-14",
ApiVersion::V2019_09_09 => "2019-09-09",
ApiVersion::V2020_03_02 => "2020-03-02",
ApiVersion::V2020_08_27 => "2020-08-27",
}
}
}
Expand Down

0 comments on commit ca0a4a5

Please sign in to comment.