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

Update to the upstream v2.12.1 #20

Open
wants to merge 42 commits into
base: jalexander/v2.10.0
Choose a base branch
from

Conversation

jalexander
Copy link

@jalexander jalexander commented Nov 21, 2024

This PR updates our stripity_stripe fork to v2.12.1. This is part of an effort to bring our forked version of the library closer to the latest upstream version of the library.

This matches all of the changes from upstream, except I added the properties back in that we are still using in massdriver.

Testing this locally by installing the commit ID from this PR.

snewcomer and others added 30 commits November 21, 2024 12:01
…fields, and add support for some missing objects (beam-community#602)

* Remove /issuing/card_details endpoint interactions

The endpoint /issuing/card_details has been removed from the Stripe API.
These details can be found at /issuing/cards/retrieve with the appropriate
'expand' parameters.

* Remove Issuing Disputes

Since Issuing Disputes are no longer available in the Stripe API, remove
the issuing disputes module and references to issuing disputes in
issuing transaction.

* add support for Stripe Mandate core resource

* add support for File Link core resource

* update core resources structs

* add converter support for order_item, usage_record

* remove deprecated fields from, add missing fields to issuing objects

* add support for Credit Note Line Items, Customer Balance Transactions

* remove deprecated fields, add 'threshold reason', alphabetize struct fields

* add support for usage_record_summary object

* remove incorrect field from recipient fixture for test warning

* fix typespecs for struct and update/4

* list login_link as supported object

* fix typespec for list/3

* fix typespecs, struct fields for subscriptions objects

* add missing struct fields to connect objects

* adjust typespec to match library style, add missing struct fields

* add missing 'deleted' field to stripe objects

* update stripe-mock version

* ignore coverage reports in /cover

* fix to actually test Stripe.Relay.Product module

* add prices api

Co-authored-by: Ianko Leite <[email protected]>
Co-authored-by: ianko <[email protected]>
This had to be done instead of extracting out the headers in options for
all functions that call request.

Co-authored-by: Elijah Kim <[email protected]>
…mmunity#658)

* Introduce Stripe.WebhookPlug helper for handling webhook events

* Upgrade ex_doc ~> 0.23.0
When creating a klarna source you need a client_token
provided by stripe to use with klarna's sdk. The
"missing" body is, e.g.

klarna: %{
     client_token: "eyJhbGciOiJSUzI1NiIsImtpZCI...",
     pay_later_asset_urls_descriptive: "https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg",
     pay_later_asset_urls_standard: "https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg",
     pay_later_name: "Pay later.",
     pay_over_time_asset_urls_descriptive: "https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg",
     pay_over_time_asset_urls_standard: "https://x.klarnacdn.net/payment-method/assets/badges/generic/klarna.svg",
     pay_over_time_name: "Slice it.",
     payment_method_categories: "pay_over_time,pay_later",
     purchase_country: "NO"
   },

By adding this extra key, we get this information out.
* add fields to session struct

* match type spec
* Add application to webhook_endpoint

* Add stripe verification session endpoints

* Fix typespecs

* Add parans to typespecs

* Doc update

* Adding stripe verification report endpoints

* Fix docs
flowerett and others added 12 commits November 21, 2024 13:14
add changes between 2.10 and 2.12.1
* Added missing optional fields on create spec

* fixed incoming invoice pattern match to accept customer_details
* Adds expiry feature

* Fixes tests

* Upgrades stripe-mock to a version that recognizes session expiry

* Fixes container version URL

* Uses official stripe image
Besides other documentation changes, this commit includes all relevant
documents to the generated HTML doc for HexDocs.pm and leverages on
latest features of ExDoc.
* add :active, :description, :url as optional parameters for "Update a product" endpoint

* add remaining param to "Update a product" endpoint
* Allow webhook event handler to return an error state

* Update webhook plug tests with :error events
@jalexander jalexander requested a review from a team November 21, 2024 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.