Skip to content

Commit

Permalink
Merge pull request #586 from recurly/v3-v2021-02-25-1661191136
Browse files Browse the repository at this point in the history
Fixes bug with put_dunning_campaign_bulk_update
  • Loading branch information
douglasmiller authored Aug 23, 2022
2 parents d01c772 + 1b95958 commit 0ff88a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14922,6 +14922,8 @@ paths:
"$ref": "#/components/schemas/Error"
x-code-samples: []
"/dunning_campaigns/{dunning_campaign_id}/bulk_update":
parameters:
- "$ref": "#/components/parameters/dunning_campaign_id"
put:
tags:
- dunning_campaigns
Expand Down Expand Up @@ -20774,7 +20776,7 @@ components:
zero then a `method_id` or `method_code` is required.
address_id:
type: string
titpe: Shipping address ID
title: Shipping address ID
description: Assign a shipping address from the account's existing shipping
addresses. If this and address are both present, address will take precedence.
address:
Expand Down
6 changes: 4 additions & 2 deletions recurly/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4346,12 +4346,14 @@ def get_dunning_campaign(self, dunning_campaign_id, **options):
path = self._interpolate_path("/dunning_campaigns/%s", dunning_campaign_id)
return self._make_request("GET", path, None, **options)

def put_dunning_campaign_bulk_update(self, body, **options):
def put_dunning_campaign_bulk_update(self, dunning_campaign_id, body, **options):
"""Assign a dunning campaign to multiple plans
Parameters
----------
dunning_campaign_id : str
Dunning Campaign ID, e.g. `e28zov4fw0v2`.
body : dict
The request body. It should follow the schema of DunningCampaignsBulkUpdate.
Expand All @@ -4368,7 +4370,7 @@ def put_dunning_campaign_bulk_update(self, body, **options):
A list of updated plans.
"""
path = self._interpolate_path(
"/dunning_campaigns/%s/bulk_update",
"/dunning_campaigns/%s/bulk_update", dunning_campaign_id
)
return self._make_request("PUT", path, body, **options)

Expand Down

0 comments on commit 0ff88a4

Please sign in to comment.