From 6dd903163a05663f52545abfff2aa7b6afbe5421 Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Fri, 20 Oct 2017 17:24:07 -0400 Subject: [PATCH 1/4] bump version to 11.4.0 --- CHANGELOG.md | 8 +++++--- MIGRATING.md | 7 +++++-- Stripe.podspec | 2 +- Stripe/Info.plist | 4 ++-- Stripe/PublicHeaders/STPAPIClient.h | 2 +- VERSION | 2 +- 6 files changed, 15 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1e0cb2d3a3..b80275e1b3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,10 @@ -## 11.x.x 2017-XX-XX - +## 11.4.4 2017-10-20 * Restores `[STPCard brandFromString:]` method which was marked as deprecated in a recent version [#801](https://github.com/stripe/stripe-ios/pull/801) * Adds `[STPBankAccount metadata]` and `[STPCard metadata]` read-only accessors and improves annotation for `[STPSource metadata]` [#808](https://github.com/stripe/stripe-ios/pull/808) -* Un-deprecates `STPBackendAPIAdapter` and all associated methods. +* Un-deprecates `STPBackendAPIAdapter` and all associated methods. [#813](https://github.com/stripe/stripe-ios/pull/813) +* The `STPBackendAPIAdapter` protocol now includes two optional methods, `detachSourceFromCustomer` and `updateCustomerWithShipping`. If you've implemented a class conforming to `STPBackendAPIAdapter`, you may add implementations of these methods to support deleting cards from a customer and saving shipping info to a customer. [#813](https://github.com/stripe/stripe-ios/pull/813) +* Adds the ability to set custom footers on view controllers managed by the SDK. [#792](https://github.com/stripe/stripe-ios/pull/792) +* `STPPaymentMethodsViewController` will now display saved card sources in addition to saved card tokens. [#810](https://github.com/stripe/stripe-ios/pull/810) ## 11.3.0 2017-09-13 * Adds support for creating `STPSourceParams` for P24 source [#779](https://github.com/stripe/stripe-ios/pull/779) diff --git a/MIGRATING.md b/MIGRATING.md index f7544b5bc85..eb778b68921 100644 --- a/MIGRATING.md +++ b/MIGRATING.md @@ -1,6 +1,9 @@ ## Migration Guides -### Migration from versions < 11.3.0 +### Migrating from versions < 11.4.0 +* The `STPBackendAPIAdapter` protocol and all associated methods are no longer deprecated. We still recommend using `STPCustomerContext` to update a Stripe customer object on your behalf, rather than using your own implementation of `STPBackendAPIAdapter`. + +### Migrating from versions < 11.3.0 * Changes to `STPCard`, `STPCardParams`, `STPBankAccount`, and `STPBankAccountParams` * `STPCard` no longer subclasses from `STPCardParams`. You must now specifically create `STPCardParams` objects to create new tokens. * `STPBankAccount` no longer subclasses from `STPBankAccountParams`. @@ -12,7 +15,7 @@ ### Migrating from versions < 11.2.0 * `STPCustomer`'s `shippingAddress` property is now correctly annotated as nullable. Its type is an optional (`STPAddress?`) in Swift. -### Migration from versions < 11.0.0 +### Migrating from versions < 11.0.0 - We've greatly simplified the integration for `STPPaymentContext`. In order to migrate to the new `STPPaymentContext` integration using ephemeral keys, you'll need to: 1. On your backend, add a new endpoint that creates an ephemeral key for the Stripe customer associated with your user, and returns its raw JSON. Note that you should _not_ remove the 3 endpoints you added for your initial PaymentContext integration until you're ready to drop support for previous versions of your app. 2. In your app, make your API client class conform to `STPEphemeralKeyProvider` by adding a method that requests an ephemeral key from the endpoint you added in (1). diff --git a/Stripe.podspec b/Stripe.podspec index 33dfa0334c0..23ac7097b00 100644 --- a/Stripe.podspec +++ b/Stripe.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Stripe' - s.version = '11.3.0' + s.version = '11.4.0' s.summary = 'Stripe is a web-based API for accepting payments online.' s.license = { :type => 'MIT', :file => 'LICENSE' } s.homepage = 'https://stripe.com/docs/mobile/ios' diff --git a/Stripe/Info.plist b/Stripe/Info.plist index cedb4d63c3d..683f58d43dc 100644 --- a/Stripe/Info.plist +++ b/Stripe/Info.plist @@ -13,11 +13,11 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 11.3.0 + 11.4.0 CFBundleSignature ???? CFBundleVersion - 11.3.0 + 11.4.0 NSPrincipalClass diff --git a/Stripe/PublicHeaders/STPAPIClient.h b/Stripe/PublicHeaders/STPAPIClient.h index 7d40693139f..ae52a0f1605 100644 --- a/Stripe/PublicHeaders/STPAPIClient.h +++ b/Stripe/PublicHeaders/STPAPIClient.h @@ -20,7 +20,7 @@ FAUXPAS_IGNORED_IN_FILE(APIAvailability) /** The current version of this library. */ -static NSString *const STPSDKVersion = @"11.3.0"; +static NSString *const STPSDKVersion = @"11.4.0"; @class STPBankAccount, STPBankAccountParams, STPCard, STPCardParams, STPSourceParams, STPToken, STPPaymentConfiguration; diff --git a/VERSION b/VERSION index f628d2eafc5..72773deb895 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -11.3.0 +11.4.0 From 55156c5721c4b60c9fdf28b3b8776073d318449e Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Fri, 20 Oct 2017 17:35:04 -0400 Subject: [PATCH 2/4] fix github-file-prefix option for jazzy 0.8.4 --- ci_scripts/build_documentation.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci_scripts/build_documentation.sh b/ci_scripts/build_documentation.sh index 9dc924e6e55..537d2470d36 100755 --- a/ci_scripts/build_documentation.sh +++ b/ci_scripts/build_documentation.sh @@ -35,7 +35,7 @@ release_version="$(cat "${script_dir}/../VERSION")" info "Executing jazzy..." jazzy \ --config "${script_dir}/../.jazzy.yaml" \ - --github_file_prefix "https://github.com/stripe/stripe-ios/tree/v${release_version}" + --github-file-prefix "https://github.com/stripe/stripe-ios/tree/v${release_version}" # Verify jazzy exit code jazzy_exit_code="$?" From 22299388e61633358b9492037df5919e2d5c6e4b Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Fri, 20 Oct 2017 17:35:09 -0400 Subject: [PATCH 3/4] update documentation --- docs/docs/Categories.html | 10 +- docs/docs/Categories/NSError(Stripe).html | 8 +- .../UINavigationBar(Stripe_Theme).html | 12 +- docs/docs/Classes.html | 80 +++---- docs/docs/Classes/STPAPIClient.html | 38 +-- .../Classes/STPAddCardViewController.html | 55 ++++- docs/docs/Classes/STPAddress.html | 42 ++-- docs/docs/Classes/STPBankAccount.html | 69 ++++-- docs/docs/Classes/STPBankAccountParams.html | 20 +- docs/docs/Classes/STPCard.html | 223 +++++++++++------- docs/docs/Classes/STPCardParams.html | 34 +-- docs/docs/Classes/STPCardValidator.html | 30 +-- docs/docs/Classes/STPCoreViewController.html | 14 +- docs/docs/Classes/STPCustomer.html | 21 +- docs/docs/Classes/STPCustomerContext.html | 10 +- .../docs/Classes/STPCustomerDeserializer.html | 34 +-- docs/docs/Classes/STPFile.html | 18 +- docs/docs/Classes/STPImageLibrary.html | 30 +-- .../STPPaymentActivityIndicatorView.html | 12 +- .../docs/Classes/STPPaymentCardTextField.html | 80 +++---- .../docs/Classes/STPPaymentConfiguration.html | 26 +- docs/docs/Classes/STPPaymentContext.html | 197 ++++++++++++---- .../STPPaymentMethodsViewController.html | 109 +++++++-- docs/docs/Classes/STPPaymentResult.html | 10 +- docs/docs/Classes/STPRedirectContext.html | 20 +- .../STPShippingAddressViewController.html | 16 +- docs/docs/Classes/STPSource.html | 52 ++-- docs/docs/Classes/STPSourceCardDetails.html | 57 ++++- docs/docs/Classes/STPSourceOwner.html | 24 +- docs/docs/Classes/STPSourceParams.html | 46 ++-- docs/docs/Classes/STPSourceReceiver.html | 16 +- docs/docs/Classes/STPSourceRedirect.html | 14 +- .../Classes/STPSourceSEPADebitDetails.html | 20 +- docs/docs/Classes/STPSourceVerification.html | 12 +- docs/docs/Classes/STPTheme.html | 38 +-- docs/docs/Classes/STPToken.html | 18 +- docs/docs/Classes/STPUserInformation.html | 10 +- docs/docs/Classes/Stripe.html | 20 +- docs/docs/Constants.html | 40 ++-- docs/docs/Enums.html | 56 ++--- docs/docs/Enums/STPBankAccountHolderType.html | 16 +- docs/docs/Enums/STPBankAccountStatus.html | 22 +- docs/docs/Enums/STPBillingAddressFields.html | 18 +- docs/docs/Enums/STPCardBrand.html | 26 +- docs/docs/Enums/STPCardFundingType.html | 20 +- docs/docs/Enums/STPCardValidationState.html | 18 +- docs/docs/Enums/STPErrorCode.html | 24 +- docs/docs/Enums/STPFilePurpose.html | 18 +- docs/docs/Enums/STPPaymentMethodType.html | 18 +- docs/docs/Enums/STPPaymentStatus.html | 18 +- docs/docs/Enums/STPRedirectContextState.html | 20 +- docs/docs/Enums/STPShippingStatus.html | 16 +- docs/docs/Enums/STPShippingType.html | 16 +- .../Enums/STPSourceCard3DSecureStatus.html | 20 +- docs/docs/Enums/STPSourceFlow.html | 22 +- docs/docs/Enums/STPSourceRedirectStatus.html | 20 +- docs/docs/Enums/STPSourceStatus.html | 24 +- docs/docs/Enums/STPSourceType.html | 34 +-- docs/docs/Enums/STPSourceUsage.html | 18 +- .../Enums/STPSourceVerificationStatus.html | 20 +- docs/docs/Functions.html | 12 +- docs/docs/Protocols.html | 46 ++-- .../Protocols/STPAPIResponseDecodable.html | 12 +- .../STPAddCardViewControllerDelegate.html | 10 +- docs/docs/Protocols/STPBackendAPIAdapter.html | 221 +++++++++++++++-- .../Protocols/STPEphemeralKeyProvider.html | 8 +- docs/docs/Protocols/STPFormEncodable.html | 12 +- .../STPPaymentCardTextFieldDelegate.html | 28 +-- .../Protocols/STPPaymentContextDelegate.html | 16 +- docs/docs/Protocols/STPPaymentMethod.html | 12 +- ...PPaymentMethodsViewControllerDelegate.html | 14 +- ...ShippingAddressViewControllerDelegate.html | 12 +- docs/docs/Protocols/STPSourceProtocol.html | 8 +- docs/docs/Type Definitions.html | 28 +-- .../Resources/Documents/Categories.html | 10 +- .../Documents/Categories/NSError(Stripe).html | 8 +- .../UINavigationBar(Stripe_Theme).html | 12 +- .../Contents/Resources/Documents/Classes.html | 80 +++---- .../Documents/Classes/STPAPIClient.html | 38 +-- .../Classes/STPAddCardViewController.html | 55 ++++- .../Documents/Classes/STPAddress.html | 42 ++-- .../Documents/Classes/STPBankAccount.html | 69 ++++-- .../Classes/STPBankAccountParams.html | 20 +- .../Resources/Documents/Classes/STPCard.html | 223 +++++++++++------- .../Documents/Classes/STPCardParams.html | 34 +-- .../Documents/Classes/STPCardValidator.html | 30 +-- .../Classes/STPCoreViewController.html | 14 +- .../Documents/Classes/STPCustomer.html | 21 +- .../Documents/Classes/STPCustomerContext.html | 10 +- .../Classes/STPCustomerDeserializer.html | 34 +-- .../Resources/Documents/Classes/STPFile.html | 18 +- .../Documents/Classes/STPImageLibrary.html | 30 +-- .../STPPaymentActivityIndicatorView.html | 12 +- .../Classes/STPPaymentCardTextField.html | 80 +++---- .../Classes/STPPaymentConfiguration.html | 26 +- .../Documents/Classes/STPPaymentContext.html | 197 ++++++++++++---- .../STPPaymentMethodsViewController.html | 109 +++++++-- .../Documents/Classes/STPPaymentResult.html | 10 +- .../Documents/Classes/STPRedirectContext.html | 20 +- .../STPShippingAddressViewController.html | 16 +- .../Documents/Classes/STPSource.html | 52 ++-- .../Classes/STPSourceCardDetails.html | 57 ++++- .../Documents/Classes/STPSourceOwner.html | 24 +- .../Documents/Classes/STPSourceParams.html | 46 ++-- .../Documents/Classes/STPSourceReceiver.html | 16 +- .../Documents/Classes/STPSourceRedirect.html | 14 +- .../Classes/STPSourceSEPADebitDetails.html | 20 +- .../Classes/STPSourceVerification.html | 12 +- .../Resources/Documents/Classes/STPTheme.html | 38 +-- .../Resources/Documents/Classes/STPToken.html | 18 +- .../Documents/Classes/STPUserInformation.html | 10 +- .../Resources/Documents/Classes/Stripe.html | 20 +- .../Resources/Documents/Constants.html | 40 ++-- .../Contents/Resources/Documents/Enums.html | 56 ++--- .../Enums/STPBankAccountHolderType.html | 16 +- .../Documents/Enums/STPBankAccountStatus.html | 22 +- .../Enums/STPBillingAddressFields.html | 18 +- .../Documents/Enums/STPCardBrand.html | 26 +- .../Documents/Enums/STPCardFundingType.html | 20 +- .../Enums/STPCardValidationState.html | 18 +- .../Documents/Enums/STPErrorCode.html | 24 +- .../Documents/Enums/STPFilePurpose.html | 18 +- .../Documents/Enums/STPPaymentMethodType.html | 18 +- .../Documents/Enums/STPPaymentStatus.html | 18 +- .../Enums/STPRedirectContextState.html | 20 +- .../Documents/Enums/STPShippingStatus.html | 16 +- .../Documents/Enums/STPShippingType.html | 16 +- .../Enums/STPSourceCard3DSecureStatus.html | 20 +- .../Documents/Enums/STPSourceFlow.html | 22 +- .../Enums/STPSourceRedirectStatus.html | 20 +- .../Documents/Enums/STPSourceStatus.html | 24 +- .../Documents/Enums/STPSourceType.html | 34 +-- .../Documents/Enums/STPSourceUsage.html | 18 +- .../Enums/STPSourceVerificationStatus.html | 20 +- .../Resources/Documents/Functions.html | 12 +- .../Resources/Documents/Protocols.html | 46 ++-- .../Protocols/STPAPIResponseDecodable.html | 12 +- .../STPAddCardViewControllerDelegate.html | 10 +- .../Protocols/STPBackendAPIAdapter.html | 221 +++++++++++++++-- .../Protocols/STPEphemeralKeyProvider.html | 8 +- .../Documents/Protocols/STPFormEncodable.html | 12 +- .../STPPaymentCardTextFieldDelegate.html | 28 +-- .../Protocols/STPPaymentContextDelegate.html | 16 +- .../Documents/Protocols/STPPaymentMethod.html | 12 +- ...PPaymentMethodsViewControllerDelegate.html | 14 +- ...ShippingAddressViewControllerDelegate.html | 12 +- .../Protocols/STPSourceProtocol.html | 8 +- .../Resources/Documents/Type Definitions.html | 28 +-- .../Contents/Resources/Documents/index.html | 8 +- .../Contents/Resources/Documents/search.json | 2 +- .../Contents/Resources/docSet.dsidx | Bin 155648 -> 155648 bytes docs/docs/docsets/Stripe.tgz | Bin 310940 -> 312533 bytes docs/docs/index.html | 8 +- docs/docs/search.json | 2 +- 154 files changed, 3048 insertions(+), 1948 deletions(-) diff --git a/docs/docs/Categories.html b/docs/docs/Categories.html index 0dc5c756cf4..49c8a0bb495 100644 --- a/docs/docs/Categories.html +++ b/docs/docs/Categories.html @@ -230,7 +230,7 @@