Signal-iOS/SignalMessaging/Subscriptions
Evan Hahn 35c314bde5
Clean up donation configuration request
This change should have no user impact.

This changes a few things about
`OWSRequestFactory.donationConfigurationRequest()`:

- Adds tests
- Converts it to Swift
- Renames it to `donationConfiguration()`
- Makes it an unauthenticated request

I'm most concerned about that last thing, because it's a behavior
change. However, I think this is safe because:

1. I tested it in a simulator and it works

2. [Android appears to do the same thing][0]

3. A normal `curl` works just fine:

   ```
   curl --insecure 'https://chat.signal.org/v1/subscription/configuration'
   ```

[0]: 657c5d2bce/libsignal/service/src/main/java/org/whispersystems/signalservice/internal/push/PushServiceSocket.java (L1074)
2023-01-25 13:10:22 -06:00
..
CachedBadge.swift Change license to AGPL 2022-10-13 08:25:37 -05:00
DonationMode.swift Only allow PayPal for one-time and gift donations 2022-12-01 14:39:03 -08:00
DonationPaymentMethod.swift PayPal recurring donations 2023-01-18 14:48:50 -08:00
DonationUtilities.swift Change error string for minimum donation amount 2022-12-12 15:46:32 -06:00
Paypal.swift One-time donations via PayPal 2022-12-01 14:39:03 -08:00
Paypal+API.swift PayPal recurring donations 2023-01-18 14:48:50 -08:00
Paypal+WebAuthentication.swift Fix compilation errors for PayPal code 2023-01-18 17:49:30 -06:00
PreparedGiftPayment.swift Fix compilation errors for PayPal code 2023-01-18 17:49:30 -06:00
Stripe.swift Remove unnecessary throws from Stripe method 2023-01-17 13:57:32 -06:00
Stripe+3DSecure.swift Support 3D Secure for card donations 2022-11-29 16:07:44 -06:00
Stripe+PaymentMethod.swift Add skeleton credit/debit card donation support 2022-11-22 09:07:36 -06:00
Stripe+StripeError.swift Show better errors for credit/debit card failures 2022-12-13 15:45:24 -06:00
Stripe+Subscriptions.swift PayPal recurring donations 2023-01-18 14:48:50 -08:00
SubscriptionManager.swift Remove unused parameter from subscription method 2023-01-21 16:13:41 -06:00
SubscriptionManager+DonationConfiguration.swift Clean up donation configuration request 2023-01-25 13:10:22 -06:00