Skip to content

Commit df2139a

Browse files
Manuel HuezManuel Huez
authored andcommitted
Fix undefined class
1 parent eb2d436 commit df2139a

12 files changed

Lines changed: 32 additions & 32 deletions

processout/activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def all(self, options = {}):
146146
a = []
147147
body = response.body
148148
for v in body['activities']:
149-
tmp = Activity(self._client)
149+
tmp = processout.Activity(self._client)
150150
tmp.fill_with_data(v)
151151
a.append(tmp)
152152

processout/authorizationrequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def fetch_customer(self, options = {}):
251251

252252
body = response.body
253253
body = body["customer"]
254-
customer = Customer(self._client)
254+
customer = processout.Customer(self._client)
255255
return_values.append(customer.fill_with_data(body))
256256

257257

processout/coupon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def all(self, options = {}):
258258
a = []
259259
body = response.body
260260
for v in body['coupons']:
261-
tmp = Coupon(self._client)
261+
tmp = processout.Coupon(self._client)
262262
tmp.fill_with_data(v)
263263
a.append(tmp)
264264

processout/customer.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def fetch_subscriptions(self, options = {}):
306306
a = []
307307
body = response.body
308308
for v in body['subscriptions']:
309-
tmp = Subscription(self._client)
309+
tmp = processout.Subscription(self._client)
310310
tmp.fill_with_data(v)
311311
a.append(tmp)
312312

@@ -335,7 +335,7 @@ def fetch_tokens(self, options = {}):
335335
a = []
336336
body = response.body
337337
for v in body['tokens']:
338-
tmp = Token(self._client)
338+
tmp = processout.Token(self._client)
339339
tmp.fill_with_data(v)
340340
a.append(tmp)
341341

@@ -363,7 +363,7 @@ def find_token(self, token_id, options = {}):
363363

364364
body = response.body
365365
body = body["token"]
366-
token = Token(self._client)
366+
token = processout.Token(self._client)
367367
return_values.append(token.fill_with_data(body))
368368

369369

@@ -409,7 +409,7 @@ def fetch_transactions(self, options = {}):
409409
a = []
410410
body = response.body
411411
for v in body['transactions']:
412-
tmp = Transaction(self._client)
412+
tmp = processout.Transaction(self._client)
413413
tmp.fill_with_data(v)
414414
a.append(tmp)
415415

@@ -438,7 +438,7 @@ def all(self, options = {}):
438438
a = []
439439
body = response.body
440440
for v in body['customers']:
441-
tmp = Customer(self._client)
441+
tmp = processout.Customer(self._client)
442442
tmp.fill_with_data(v)
443443
a.append(tmp)
444444

processout/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def fetch_webhooks(self, options = {}):
146146
a = []
147147
body = response.body
148148
for v in body['webhooks']:
149-
tmp = Webhook(self._client)
149+
tmp = processout.Webhook(self._client)
150150
tmp.fill_with_data(v)
151151
a.append(tmp)
152152

@@ -175,7 +175,7 @@ def all(self, options = {}):
175175
a = []
176176
body = response.body
177177
for v in body['events']:
178-
tmp = Event(self._client)
178+
tmp = processout.Event(self._client)
179179
tmp.fill_with_data(v)
180180
a.append(tmp)
181181

processout/invoice.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ def authorize(self, source, options = {}):
402402

403403
body = response.body
404404
body = body["transaction"]
405-
transaction = Transaction(self._client)
405+
transaction = processout.Transaction(self._client)
406406
return_values.append(transaction.fill_with_data(body))
407407

408408

@@ -428,7 +428,7 @@ def capture(self, source, options = {}):
428428

429429
body = response.body
430430
body = body["transaction"]
431-
transaction = Transaction(self._client)
431+
transaction = processout.Transaction(self._client)
432432
return_values.append(transaction.fill_with_data(body))
433433

434434

@@ -452,7 +452,7 @@ def fetch_customer(self, options = {}):
452452

453453
body = response.body
454454
body = body["customer"]
455-
customer = Customer(self._client)
455+
customer = processout.Customer(self._client)
456456
return_values.append(customer.fill_with_data(body))
457457

458458

@@ -476,7 +476,7 @@ def assign_customer(self, customer_id, options = {}):
476476

477477
body = response.body
478478
body = body["customer"]
479-
customer = Customer(self._client)
479+
customer = processout.Customer(self._client)
480480
return_values.append(customer.fill_with_data(body))
481481

482482

@@ -500,7 +500,7 @@ def fetch_transaction(self, options = {}):
500500

501501
body = response.body
502502
body = body["transaction"]
503-
transaction = Transaction(self._client)
503+
transaction = processout.Transaction(self._client)
504504
return_values.append(transaction.fill_with_data(body))
505505

506506

@@ -524,7 +524,7 @@ def void(self, options = {}):
524524

525525
body = response.body
526526
body = body["transaction"]
527-
transaction = Transaction(self._client)
527+
transaction = processout.Transaction(self._client)
528528
return_values.append(transaction.fill_with_data(body))
529529

530530

@@ -549,7 +549,7 @@ def all(self, options = {}):
549549
a = []
550550
body = response.body
551551
for v in body['invoices']:
552-
tmp = Invoice(self._client)
552+
tmp = processout.Invoice(self._client)
553553
tmp.fill_with_data(v)
554554
a.append(tmp)
555555

processout/plan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def all(self, options = {}):
242242
a = []
243243
body = response.body
244244
for v in body['plans']:
245-
tmp = Plan(self._client)
245+
tmp = processout.Plan(self._client)
246246
tmp.fill_with_data(v)
247247
a.append(tmp)
248248

processout/product.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def create_invoice(self, options = {}):
257257

258258
body = response.body
259259
body = body["invoice"]
260-
invoice = Invoice(self._client)
260+
invoice = processout.Invoice(self._client)
261261
return_values.append(invoice.fill_with_data(body))
262262

263263

@@ -282,7 +282,7 @@ def all(self, options = {}):
282282
a = []
283283
body = response.body
284284
for v in body['products']:
285-
tmp = Product(self._client)
285+
tmp = processout.Product(self._client)
286286
tmp.fill_with_data(v)
287287
a.append(tmp)
288288

processout/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def fetch_gateway_configurations(self, options = {}):
125125
a = []
126126
body = response.body
127127
for v in body['gateway_configurations']:
128-
tmp = GatewayConfiguration(self._client)
128+
tmp = processout.GatewayConfiguration(self._client)
129129
tmp.fill_with_data(v)
130130
a.append(tmp)
131131

processout/subscription.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def fetch_customer(self, options = {}):
464464

465465
body = response.body
466466
body = body["customer"]
467-
customer = Customer(self._client)
467+
customer = processout.Customer(self._client)
468468
return_values.append(customer.fill_with_data(body))
469469

470470

@@ -489,7 +489,7 @@ def fetch_discounts(self, options = {}):
489489
a = []
490490
body = response.body
491491
for v in body['discounts']:
492-
tmp = Discount(self._client)
492+
tmp = processout.Discount(self._client)
493493
tmp.fill_with_data(v)
494494
a.append(tmp)
495495

@@ -517,7 +517,7 @@ def apply_coupon(self, coupon_id, options = {}):
517517

518518
body = response.body
519519
body = body["discount"]
520-
discount = Discount(self._client)
520+
discount = processout.Discount(self._client)
521521
return_values.append(discount.fill_with_data(body))
522522

523523

@@ -541,7 +541,7 @@ def find_discount(self, discount_id, options = {}):
541541

542542
body = response.body
543543
body = body["discount"]
544-
discount = Discount(self._client)
544+
discount = processout.Discount(self._client)
545545
return_values.append(discount.fill_with_data(body))
546546

547547

@@ -592,7 +592,7 @@ def fetch_transactions(self, options = {}):
592592
a = []
593593
body = response.body
594594
for v in body['transactions']:
595-
tmp = Transaction(self._client)
595+
tmp = processout.Transaction(self._client)
596596
tmp.fill_with_data(v)
597597
a.append(tmp)
598598

@@ -621,7 +621,7 @@ def all(self, options = {}):
621621
a = []
622622
body = response.body
623623
for v in body['subscriptions']:
624-
tmp = Subscription(self._client)
624+
tmp = processout.Subscription(self._client)
625625
tmp.fill_with_data(v)
626626
a.append(tmp)
627627

0 commit comments

Comments
 (0)