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

Bump GraphQL API Version #1457

Merged
merged 3 commits into from
Nov 8, 2024
Merged
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
13 changes: 7 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
## unreleased (v7)
* Breaking Changes
* Bump minimum supported deployment target to iOS 16+
* `countryCodeAlpha2` now returns a 2 character country code instead of a 3 character country code
* BraintreePayPalNativeCheckout
* Remove entire PayPal Native Checkout module
* BraintreeVenmo
* Update `BTVenmoRequest` to make all properties accessible on the initializer only vs via the dot syntax.
* BraintreeSEPADirectDebit
* Update `BTSEPADirectDebitRequest` to make all properties accessible on the initializer only vs via the dot syntax.
* BraintreeLocalPayment
* Update `BTLocalPaymentRequest` to make all properties accessible on the initializer only vs via the dot syntax.
* BraintreeVenmo
* Update `BTVenmoRequest` to make all properties accessible on the initializer only vs via the dot syntax.
* BraintreeSEPADirectDebit
* Update `BTSEPADirectDebitRequest` to make all properties accessible on the initializer only vs via the dot syntax.
* BraintreeLocalPayment
* Update `BTLocalPaymentRequest` to make all properties accessible on the initializer only vs via the dot syntax.

## unreleased
* BraintreePayPal
Expand Down
2 changes: 1 addition & 1 deletion Sources/BraintreeCore/BTCoreConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import Foundation

static let apiVersion: String = "2016-10-07"

static let graphQLVersion: String = "2018-03-06"
static let graphQLVersion: String = "2024-11-05"

// swiftlint:disable force_unwrapping
static let payPalProductionURL = URL(string: "https://api.paypal.com")!
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/BraintreeCoreTests/BTGraphQLHTTP_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ final class BTGraphQLHTTP_Tests: XCTestCase {
http?.post("", configuration: fakeConfiguration, parameters: nil) { body, _, _ in
let httpRequest = BTHTTPTestProtocol.parseRequestFromTestResponseBody(body!)
let requestHeaders = httpRequest.allHTTPHeaderFields
XCTAssertEqual(requestHeaders!["Braintree-Version"], "2018-03-06")
XCTAssertEqual(requestHeaders!["Braintree-Version"], "2024-11-05")
expectation.fulfill()
}

Expand Down
Loading