@@ -125,7 +125,7 @@ def get_portfolios(auth_token, audience=None):
125
125
# register_consumer
126
126
# -----------------------------------------------------------------------------
127
127
128
- def register_consumer (audience , consumer_info , auth_token ):
128
+ def register_consumer (consumer_info , auth_token , audience = None ):
129
129
""" Consumers are representations of persons within the Bloom API.
130
130
To order a credit report for a consumer, you first need to submit their information to Bloom.
131
131
https://developers.bloomcredit.io/docs/onboarding-to-first-credit-report#creating-a-consumer
@@ -168,7 +168,7 @@ def register_consumer(audience, consumer_info, auth_token):
168
168
# -----------------------------------------------------------------------------
169
169
# order_credit_data
170
170
# -----------------------------------------------------------------------------
171
- def order_credit_data (audience , consumer_id , portfolio_id , sku , auth_token ):
171
+ def order_credit_data (consumer_id , portfolio_id , sku , auth_token , audience = None ):
172
172
""" Once your consumer is created, you can order a credit report via the
173
173
Bloom API. This order will be made for Bloom to fetch the credit report
174
174
for your order.
@@ -218,7 +218,7 @@ def order_credit_data(audience, consumer_id, portfolio_id, sku, auth_token):
218
218
# get_credit_data
219
219
# -----------------------------------------------------------------------------
220
220
221
- def get_credit_data (audience , order_id , auth_token , outfile = None ):
221
+ def get_credit_data (order_id , auth_token , audience = None , outfile = None ):
222
222
223
223
if coalesce (audience , os .getenv ('BLOOM_AUDIENCE' )) == 'dev-api' :
224
224
url = os .getenv ('BLOOM_SANDBOX_ORDERS_URL' )
0 commit comments