-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from gocardless/template-changes
release v1.38.0
- Loading branch information
Showing
48 changed files
with
958 additions
and
89 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,5 +2,5 @@ | |
|
||
from .client import Client | ||
|
||
__version__ = '1.37.0' | ||
__version__ = '1.38.0' | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
# WARNING: Do not edit by hand, this file was generated by Crank: | ||
# | ||
# https://github.com/gocardless/crank | ||
# | ||
|
||
class SchemeIdentifier(object): | ||
"""A thin wrapper around a scheme_identifier, providing easy access to its | ||
attributes. | ||
Example: | ||
scheme_identifier = client.scheme_identifiers.get() | ||
scheme_identifier.id | ||
""" | ||
|
||
def __init__(self, attributes, api_response): | ||
self.attributes = attributes | ||
self.api_response = api_response | ||
|
||
@property | ||
def address_line1(self): | ||
return self.attributes.get('address_line1') | ||
|
||
|
||
@property | ||
def address_line2(self): | ||
return self.attributes.get('address_line2') | ||
|
||
|
||
@property | ||
def address_line3(self): | ||
return self.attributes.get('address_line3') | ||
|
||
|
||
@property | ||
def can_specify_mandate_reference(self): | ||
return self.attributes.get('can_specify_mandate_reference') | ||
|
||
|
||
@property | ||
def city(self): | ||
return self.attributes.get('city') | ||
|
||
|
||
@property | ||
def country_code(self): | ||
return self.attributes.get('country_code') | ||
|
||
|
||
@property | ||
def created_at(self): | ||
return self.attributes.get('created_at') | ||
|
||
|
||
@property | ||
def currency(self): | ||
return self.attributes.get('currency') | ||
|
||
|
||
@property | ||
def email(self): | ||
return self.attributes.get('email') | ||
|
||
|
||
@property | ||
def id(self): | ||
return self.attributes.get('id') | ||
|
||
|
||
@property | ||
def minimum_advance_notice(self): | ||
return self.attributes.get('minimum_advance_notice') | ||
|
||
|
||
@property | ||
def name(self): | ||
return self.attributes.get('name') | ||
|
||
|
||
@property | ||
def phone_number(self): | ||
return self.attributes.get('phone_number') | ||
|
||
|
||
@property | ||
def postal_code(self): | ||
return self.attributes.get('postal_code') | ||
|
||
|
||
@property | ||
def reference(self): | ||
return self.attributes.get('reference') | ||
|
||
|
||
@property | ||
def region(self): | ||
return self.attributes.get('region') | ||
|
||
|
||
@property | ||
def scheme(self): | ||
return self.attributes.get('scheme') | ||
|
||
|
||
@property | ||
def status(self): | ||
return self.attributes.get('status') | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# WARNING: Do not edit by hand, this file was generated by Crank: | ||
# | ||
# https://github.com/gocardless/crank | ||
# | ||
|
||
class VerificationDetail(object): | ||
"""A thin wrapper around a verification_detail, providing easy access to its | ||
attributes. | ||
Example: | ||
verification_detail = client.verification_details.get() | ||
verification_detail.id | ||
""" | ||
|
||
def __init__(self, attributes, api_response): | ||
self.attributes = attributes | ||
self.api_response = api_response | ||
|
||
@property | ||
def address_line1(self): | ||
return self.attributes.get('address_line1') | ||
|
||
|
||
@property | ||
def address_line2(self): | ||
return self.attributes.get('address_line2') | ||
|
||
|
||
@property | ||
def address_line3(self): | ||
return self.attributes.get('address_line3') | ||
|
||
|
||
@property | ||
def city(self): | ||
return self.attributes.get('city') | ||
|
||
|
||
@property | ||
def company_number(self): | ||
return self.attributes.get('company_number') | ||
|
||
|
||
@property | ||
def description(self): | ||
return self.attributes.get('description') | ||
|
||
|
||
@property | ||
def directors(self): | ||
return self.attributes.get('directors') | ||
|
||
|
||
@property | ||
def links(self): | ||
return self.Links(self.attributes.get('links')) | ||
|
||
|
||
@property | ||
def postal_code(self): | ||
return self.attributes.get('postal_code') | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
class Links(object): | ||
"""Wrapper for the response's 'links' attribute.""" | ||
|
||
def __init__(self, attributes): | ||
self.attributes = attributes | ||
|
||
@property | ||
def creditor(self): | ||
return self.attributes.get('creditor') | ||
|
||
|
||
|
||
|
||
|
This file contains 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
Oops, something went wrong.