Align SDK with 2026-06-29 API changes (Issuing, Payment Setups, Platforms ACH)#218
Merged
Merged
Conversation
Issuing cards: - CardRequest: add activation_date; UpdateCardRequest: add activation_date + revocation_date - Remove schedule-revocation endpoint (client methods + ScheduleCardRevocationRequest) [BREAKING] Issuing cardholders: - Remove document field from CardholderRequest + CardholderDocument (kept shared DocumentType) [BREAKING] Issuing disputes: - New IssuingDisputeFraudDetails + IssuingDisputeFraudType (11-value enum) - Add fraud_details to CreateDisputeRequest and EscalateDisputeRequest - New AmendDisputeRequest + amend_dispute (POST .../amend) - Add deprecated submit_dispute + SubmitDisputeRequest (POST .../submit) Payment Setups (Beta): - PaymentSetupsRequest: add billing_descriptor, presentment_details, terminal (+ sub-models) - New Bacs/CardPresent/PayByBank/Stablecoin payment-method configs - New PaymentSetupAmountAllocation (+ commission) wired onto Order.amount_allocations - KlarnaAccountHolder: replace billing_address with name (spec correction) Platforms/Accounts: - New InstrumentDetailsAch + InstrumentAccountType (savings/checking) Tests: serialization roundtrips for all new/changed properties (fraud_type value-by-value), amend/submit client unit tests, ACH + setup serialization specs; updated conftest and card/klarna integration tests.
david-ruiz-cko
previously approved these changes
Jul 3, 2026
Swagger defines a fixed enum ['select_bank'] for PayByBankAction.type. Introduce PayByBankActionType(str, Enum) and use it instead of a plain str, per coding standards for fixed value sets. Serialization is unchanged.
|
david-ruiz-cko
approved these changes
Jul 3, 2026
Merged
armando-rodriguez-cko
added a commit
that referenced
this pull request
Jul 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Aligns the Python SDK with the 2026-06-29 swagger changes across Issuing, Payment Setups (Beta) and Platforms/Accounts.
Changes
Issuing — Cards
CardRequest: addactivation_date.UpdateCardRequest: addactivation_date+revocation_date.schedule-revocationendpoint —schedule_card_revocation/delete_card_revocationclient methods andScheduleCardRevocationRequest. Revocation scheduling now goes throughUpdateCardRequest.revocation_date.Issuing — Cardholders
documentfromCardholderRequestand deletedCardholderDocument(kept the sharedcommon.enums.DocumentType).Issuing — Disputes
IssuingDisputeFraudDetails+IssuingDisputeFraudType(11-value enum).fraud_detailstoCreateDisputeRequestandEscalateDisputeRequest.AmendDisputeRequest+amend_dispute(POST /issuing/disputes/{id}/amend, not deprecated).submit_dispute(deprecated) +SubmitDisputeRequest— endpoint is stilldeprecated: truein the spec and was previously missing from the SDK.Payment Setups (Beta)
PaymentSetupsRequest: addedbilling_descriptor,presentment_details,terminal+ sub-models (PaymentSetupis the request body).latest_paymentis readOnly → not modelled.Bacs/CardPresent/PayByBank/Stablecoinpayment-method configs + nested types, wired intoPaymentMethods.PaymentSetupAmountAllocation(+AmountAllocationCommission) onOrder.amount_allocations.KlarnaAccountHolder.billing_address→name(matches the current spec; the old shape was wrong).Platforms / Accounts
InstrumentDetailsAch+InstrumentAccountType(savings/checking).Tests
fraud_typecovered value-by-value (all 11).amend/submitclient unit tests; ACH + setup serialization specs; updatedconftestand card/klarna integration tests.Breaking changes (for release notes)
documentfield andCardholderDocument.