Skip to content

Releases: maxio-com/ab-python-sdk

6.0.0

13 Dec 15:55
e9b12a5
Compare
Choose a tag to compare
  • AdvancedBillingClient was slightly reworked:

    • domain parameter has been removed.
    • subdomain parameter changed name to site
    • Environment has changed. Now it's either default US, or EU for Advanced Billing eu hosting. The default is US. SDK is now supporting EU hosted accounts.
  • Coupon fixes:

    • renamed CreateOrUpdateCoupon to CouponRequest
    • renamed CreateOrUpdatePercentageCouponPercentage to CouponPayloadPercentage
    • changed CreateOrUpdateCouponCoupon to CouponPayload
    • There're no longer 2 distinct models for Flat amount and Percentage coupon. They're merged into CouponPayload. Using it, specify either amount_in_cents or percentage property
    • code, name, description, amount_in_cents and percentage are not required properties in CouponPayload model. It means they're not send as nulls if unset. It enables patching coupon with updateCoupon without specifying these properties values. Previous version enforced setting them.
    • CouponPayload end_date changes type from datetime to date. Response coupon end_date is still datetime (its calculated as end of the day)
    • update_coupon now throws ErrorListResponseException
    • added currency_prices for Coupon response. Note you need to specify suitable query parameters to access it
    • added currency_prices query parameter for read_coupon and find_coupon
    • added some missing descriptions
    • changed Coupon amount_in_cents to long
    • changed CouponCurrency price to nullable double and id to nullable Integer
    • create_or_update_coupon_currency_prices now throws ErrorStringMapResponseException
  • Subscription Fixes:

    • added SubscriptionResponse for purge_subscription operation
    • purge_subscription now throws SubscriptionResponseErrorException
    • update_prepaid_subscription_configuration now throws ApiException when the status code is 422
  • Components fixes:

    • removed PrepaidComponentPricePoint. Use CreatePrepaidComponentPricePoint when creating price points for PrepaidComponent together with component instead
    • added prepaid-specific properties to ComponentPricePoint (response model)
    • removed upgrade_charge and downgrade_credit from EbbComponent, OnOffComponent and MeteredComponent request models (not applicable for this type of component)
    • removed deprecated price_in_cents from component request models
    • removed prices from OnOffComponent request model (unit_price should be used)
    • Fixed ComponentPricePoint expiration_interval_unit type
    • corrected some descriptions
    • Define exceptions for create component price points operations
  • Currency Prices fixes:

    • add currency_prices query parameter to read_component_price_point
    • UpdateCurrencyPrice price is now double instead of int
    • Add price_id and price_point_id to CurrencyPrice
    • Return verbose exception message for currency prices operations
  • Events fixes:

    • Added EventKey enum and filled it with missing event types
    • merged SubscriptionGroupSignupFailure and SubscriptionGroupSignupFailure and SubscriptionGroupSignupSuccess into SubscriptionGroupSignupEventData.
    • documented key to event_specific_data mappings.
    • removed EventType used in events endpoints for filter. EventKey should be used instead.
  • Misc:

    • Added missing properties and types for Invoice
    • fixed record_event and bulk_record_events. Now they work with default environment, with subdomain specified during client initialization. They no longer need subdomain provided to the method execution
    • Fixed types for models required for update subscription group and add subscription to group operations
    • Make initiate_delayed_cancellation and cancel_dunning throw ErrorListResponseException on 422 error
    • added processing Invoice Status
    • Fix errors for Subscription Notes
    • Add error model for list_offers
    • Use date/date_time instead of string for filtering when listing products and product families
    • Now it's possible to list archived product price points using archived property with list_product_price_points

Full Changelog: 5.2.0...6.0.0

5.2.0

17 Oct 14:50
1a58248
Compare
Choose a tag to compare

What's Changed

  • Added tax_exempt_reason and default_auto_renewal_profile_id to Customer
  • Added received_on to InvoicePayment and CreateInvoicePayment
  • Added product_price_point_id and product_price_point_handle to UpdateSubscription
  • Improved some properties descriptions

Full Changelog: 5.1.0...5.2.0

5.1.0

27 Sep 10:52
41057bb
Compare
Choose a tag to compare

What's Changed

  • Add imported to subscription cancellation_method
  • Add id filter to List Products API

Full Changelog: 5.0.1...5.1.0

5.0.1

02 Sep 07:29
4a6dd54
Compare
Choose a tag to compare

What's Changed

Full Changelog: 5.0.0...5.0.1

5.0.0

21 Aug 14:29
b3bfa41
Compare
Choose a tag to compare

What's Changed

  • DE-934 Setup test on a new site by @michalpierog in #46
  • [DE-932] Release 5.0.0 by @maciej-nedza in #47
  • DE-921 DE-922 Fix problem with interval units - interval units now can be nullable in various contexts, ExtendedIntervalUnit was renamed to ExpirationIntervalUnit, now ExpirationIntervalUnit is used in SubscriptionCustomPrice, CreatePrepaidComponentPricePoint, CreateProductPricePoint, CreateOrUpdateProduct, PrepaidComponent, ProductPricePoint and Product for expirationIntervalUnit property. This enum has additional value of never (this has not changed)
  • DE-921 DE-924 Reworked vaults - CurrentVault enum was renamed to AllVaults and filled with previously missing values. BankAccountVault was filled with missing values. ApplePayVault was added with the vault supporting this payment method. CreditCardVault was added with vaults supporting this payment method. PayPalVault was added with vaults supporting this payment method. Models for respective payment profiles types now use respective enums.
  • DE-910 Distinguish response payment profiles based on the paymentType. PaymentProfileResponsePaymentProfile was renamed to PaymentProfile.ApplePayPaymentProfile, and PayPalPaymentProfile were added as possible PaymentProfile in PaymentProfileResponse. Fixed a bug, when response payment profile couldn't be deserialized due to missing fields.
  • Added publicUrlExpires_on to the Invoice
  • Added achLateReject to the InvoiceRefund
  • Added tax-related properties to InvoiceTaxComponentBreakout and InvoiceTax
  • SUB-4037 Add taxIncluded to ComponentCustomPrice. Added request model for Activate Event-Based Component endpoint, SubscriptionComponentActivateEventBasedComponent
    productFamilyId in endpoint paths parameters is now string, to enable searching by both handle and id
  • [DE-932] Rename Chargify API by @michalpierog in #48

Full Changelog: 4.0.0...5.0.0

4.0.0

01 Jul 08:59
c458534
Compare
Choose a tag to compare

What's Changed

  • Increase timeout to 120s by default (DE-874)
  • Ability to create products using the product family handle - productFamilyId in createProduct method is now String instead of number (SUB-3996 )
  • Add API endpoints for finding price points by handle. Move PricePoint methods from ComponentsController to ComponentPricePointsController (IN-3434)

PRs

Full Changelog: 3.0.1...4.0.0

3.0.1

17 Jun 13:41
fe41131
Compare
Choose a tag to compare

What's Changed

  • Fixed union type imports in exception models

PRs:

Full Changelog: 3.0.0...3.0.1

3.0.0

05 Jun 11:45
6791546
Compare
Choose a tag to compare

What's Changed

  • Removed redundant container classes
  • Changed structure of filters in some list endpoints
  • Made some properties nullable
  • Added fixes for Subscription Invoice Account endpoints
  • ListSubscriptionComponents include query parameter becomes list with additional possible value, HISTORIC_USAGES
  • Set usage ids, events ids and invoice event ids as longs
  • Add new invoice event data types
  • Add handle parameter for create product family request body
  • Add in_use query parameter for listing subscription components
  • Remove default collection method value
  • Reorganize Invoice Event structure:
    • Invoice Event is now union type
    • Invoice Event Data is no longer union type. Each Invoice Event has it's own invoice_data with a concrete type
  • Remove some redundant models

PRs:

  • [DE-771] Objects for filters in list requests, remove redundant container classes by @maciej-nedza in #35
  • [DE-827] Set new long types, new invoice event types, fix test env by @maciej-nedza in #37
  • [DE-801] Fix invoice events structure by @maciej-nedza in #40
  • [DE-801] Improve organization description by @maciej-nedza in #41

Full Changelog: 2.0.0...3.0.0

2.0.0

21 Mar 09:56
c946062
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.0.0...2.0.0

1.0.0

05 Feb 11:07
14c0251
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.0.4...1.0.0