Skip to content

Commit

Permalink
Sync iOS to v0.35
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbark committed Nov 15, 2023
1 parent 7dc1632 commit 8157ef7
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ class AddressSheetView: UIView {
switch (presentationStyle) {
case "fullscreen":
return .fullScreen
case "pageSheet":
return .pageSheet
case "formSheet":
return .formSheet
case "automatic":
return .automatic
case "overFullScreen":
return .overFullScreen
case "popover":
fallthrough
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ class CustomerSheetUtils {
switch (string) {
case "fullscreen":
return .fullScreen
case "pageSheet":
return .pageSheet
case "formSheet":
return .formSheet
case "automatic":
return .automatic
case "overFullScreen":
return .overFullScreen
case "popover":
fallthrough
default:
Expand Down
2 changes: 2 additions & 0 deletions packages/stripe_ios/ios/Classes/Stripe Sdk/Mappers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ class Mappers {
case STPPaymentMethodType.payPal: return "PayPal"
case STPPaymentMethodType.affirm: return "Affirm"
case STPPaymentMethodType.cashApp: return "CashApp"
case STPPaymentMethodType.revolutPay: return "RevolutPay"

Check warning on line 296 in packages/stripe_ios/ios/Classes/Stripe Sdk/Mappers.swift

View workflow job for this annotation

GitHub Actions / Typo CI

RevolutPay

"RevolutPay" is a typo. Did you mean "RevoltPay"?

Check warning on line 296 in packages/stripe_ios/ios/Classes/Stripe Sdk/Mappers.swift

View workflow job for this annotation

GitHub Actions / Typo CI

revolutPay

"revolutPay" is a typo. Did you mean "revoltPay"?
case STPPaymentMethodType.unknown: return "Unknown"
default: return "Unknown"
}
Expand Down Expand Up @@ -324,6 +325,7 @@ class Mappers {
case "PayPal": return STPPaymentMethodType.payPal
case "Affirm": return STPPaymentMethodType.affirm
case "CashApp": return STPPaymentMethodType.cashApp
case "RevolutPay": return STPPaymentMethodType.revolutPay

Check warning on line 328 in packages/stripe_ios/ios/Classes/Stripe Sdk/Mappers.swift

View workflow job for this annotation

GitHub Actions / Typo CI

RevolutPay

"RevolutPay" is a typo. Did you mean "RevoltPay"?

Check warning on line 328 in packages/stripe_ios/ios/Classes/Stripe Sdk/Mappers.swift

View workflow job for this annotation

GitHub Actions / Typo CI

revolutPay

"revolutPay" is a typo. Did you mean "revoltPay"?
default: return STPPaymentMethodType.unknown
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ class PaymentMethodFactory {
return try createAffirmPaymentMethodParams()
case STPPaymentMethodType.cashApp:
return try createCashAppPaymentMethodParams()
case STPPaymentMethodType.revolutPay:

Check warning on line 60 in packages/stripe_ios/ios/Classes/Stripe Sdk/PaymentMethodFactory.swift

View workflow job for this annotation

GitHub Actions / Typo CI

revolutPay

"revolutPay" is a typo. Did you mean "revoltPay"?
return try createRevolutPayPaymentMethodParams()
// case STPPaymentMethodType.weChatPay:
// return try createWeChatPayPaymentMethodParams()
default:
Expand Down Expand Up @@ -110,6 +112,8 @@ class PaymentMethodFactory {
return nil
case STPPaymentMethodType.cashApp:
return nil
case STPPaymentMethodType.revolutPay:

Check warning on line 115 in packages/stripe_ios/ios/Classes/Stripe Sdk/PaymentMethodFactory.swift

View workflow job for this annotation

GitHub Actions / Typo CI

revolutPay

"revolutPay" is a typo. Did you mean "revoltPay"?
return nil
default:
throw PaymentMethodError.paymentNotSupported
}
Expand Down Expand Up @@ -378,6 +382,11 @@ class PaymentMethodFactory {
let params = STPPaymentMethodCashAppParams()
return STPPaymentMethodParams(cashApp: params, billingDetails: billingDetailsParams, metadata: nil)
}

private func createRevolutPayPaymentMethodParams() throws -> STPPaymentMethodParams {
let params = STPPaymentMethodRevolutPayParams()
return STPPaymentMethodParams(revolutPay: params, billingDetails: billingDetailsParams, metadata: nil)

Check warning on line 388 in packages/stripe_ios/ios/Classes/Stripe Sdk/PaymentMethodFactory.swift

View workflow job for this annotation

GitHub Actions / Typo CI

revolutPay

"revolutPay" is a typo. Did you mean "revoltPay"?
}

func createMandateData() -> STPMandateDataParams? {
if let mandateParams = paymentMethodData?["mandateData"] as? NSDictionary {
Expand Down
2 changes: 1 addition & 1 deletion packages/stripe_ios/ios/stripe_ios.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint stripe_ios.podspec' to validate before publishing.
#
stripe_version = '~> 23.16.0'
stripe_version = '~> 23.18.0'
Pod::Spec.new do |s|
s.name = 'stripe_ios'
s.version = '0.0.1'
Expand Down

0 comments on commit 8157ef7

Please sign in to comment.