docusign_esign.models.payment_gateway_account

Docusign eSignature REST API

The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. # noqa: E501

OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git

  1# coding: utf-8
  2
  3"""
  4    Docusign eSignature REST API
  5
  6    The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.  # noqa: E501
  7
  8    OpenAPI spec version: v2.1
  9    Contact: devcenter@docusign.com
 10    Generated by: https://github.com/swagger-api/swagger-codegen.git
 11"""
 12
 13
 14import pprint
 15import re  # noqa: F401
 16
 17import six
 18
 19from docusign_esign.client.configuration import Configuration
 20
 21
 22class PaymentGatewayAccount(object):
 23    """NOTE: This class is auto generated by the swagger code generator program.
 24
 25    Do not edit the class manually.
 26    """
 27
 28    """
 29    Attributes:
 30      swagger_types (dict): The key is attribute name
 31                            and the value is attribute type.
 32      attribute_map (dict): The key is attribute name
 33                            and the value is json key in definition.
 34    """
 35    swagger_types = {
 36        'allow_custom_metadata': 'bool',
 37        'config': 'PaymentGatewayAccountSetting',
 38        'display_name': 'str',
 39        'is_enabled': 'str',
 40        'is_legacy': 'str',
 41        'last_modified': 'str',
 42        'payment_gateway': 'str',
 43        'payment_gateway_account_id': 'str',
 44        'payment_gateway_display_name': 'str',
 45        'pay_pal_legacy_settings': 'PayPalLegacySettings',
 46        'supported_currencies': 'list[str]',
 47        'supported_payment_methods': 'list[str]',
 48        'supported_payment_methods_with_options': 'list[PaymentMethodWithOptions]',
 49        'zero_decimal_currencies': 'list[str]'
 50    }
 51
 52    attribute_map = {
 53        'allow_custom_metadata': 'allowCustomMetadata',
 54        'config': 'config',
 55        'display_name': 'displayName',
 56        'is_enabled': 'isEnabled',
 57        'is_legacy': 'isLegacy',
 58        'last_modified': 'lastModified',
 59        'payment_gateway': 'paymentGateway',
 60        'payment_gateway_account_id': 'paymentGatewayAccountId',
 61        'payment_gateway_display_name': 'paymentGatewayDisplayName',
 62        'pay_pal_legacy_settings': 'payPalLegacySettings',
 63        'supported_currencies': 'supportedCurrencies',
 64        'supported_payment_methods': 'supportedPaymentMethods',
 65        'supported_payment_methods_with_options': 'supportedPaymentMethodsWithOptions',
 66        'zero_decimal_currencies': 'zeroDecimalCurrencies'
 67    }
 68
 69    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 70        """PaymentGatewayAccount - a model defined in Swagger"""  # noqa: E501
 71        if _configuration is None:
 72            _configuration = Configuration()
 73        self._configuration = _configuration
 74
 75        self._allow_custom_metadata = None
 76        self._config = None
 77        self._display_name = None
 78        self._is_enabled = None
 79        self._is_legacy = None
 80        self._last_modified = None
 81        self._payment_gateway = None
 82        self._payment_gateway_account_id = None
 83        self._payment_gateway_display_name = None
 84        self._pay_pal_legacy_settings = None
 85        self._supported_currencies = None
 86        self._supported_payment_methods = None
 87        self._supported_payment_methods_with_options = None
 88        self._zero_decimal_currencies = None
 89        self.discriminator = None
 90
 91        setattr(self, "_{}".format('allow_custom_metadata'), kwargs.get('allow_custom_metadata', None))
 92        setattr(self, "_{}".format('config'), kwargs.get('config', None))
 93        setattr(self, "_{}".format('display_name'), kwargs.get('display_name', None))
 94        setattr(self, "_{}".format('is_enabled'), kwargs.get('is_enabled', None))
 95        setattr(self, "_{}".format('is_legacy'), kwargs.get('is_legacy', None))
 96        setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None))
 97        setattr(self, "_{}".format('payment_gateway'), kwargs.get('payment_gateway', None))
 98        setattr(self, "_{}".format('payment_gateway_account_id'), kwargs.get('payment_gateway_account_id', None))
 99        setattr(self, "_{}".format('payment_gateway_display_name'), kwargs.get('payment_gateway_display_name', None))
100        setattr(self, "_{}".format('pay_pal_legacy_settings'), kwargs.get('pay_pal_legacy_settings', None))
101        setattr(self, "_{}".format('supported_currencies'), kwargs.get('supported_currencies', None))
102        setattr(self, "_{}".format('supported_payment_methods'), kwargs.get('supported_payment_methods', None))
103        setattr(self, "_{}".format('supported_payment_methods_with_options'), kwargs.get('supported_payment_methods_with_options', None))
104        setattr(self, "_{}".format('zero_decimal_currencies'), kwargs.get('zero_decimal_currencies', None))
105
106    @property
107    def allow_custom_metadata(self):
108        """Gets the allow_custom_metadata of this PaymentGatewayAccount.  # noqa: E501
109
110          # noqa: E501
111
112        :return: The allow_custom_metadata of this PaymentGatewayAccount.  # noqa: E501
113        :rtype: bool
114        """
115        return self._allow_custom_metadata
116
117    @allow_custom_metadata.setter
118    def allow_custom_metadata(self, allow_custom_metadata):
119        """Sets the allow_custom_metadata of this PaymentGatewayAccount.
120
121          # noqa: E501
122
123        :param allow_custom_metadata: The allow_custom_metadata of this PaymentGatewayAccount.  # noqa: E501
124        :type: bool
125        """
126
127        self._allow_custom_metadata = allow_custom_metadata
128
129    @property
130    def config(self):
131        """Gets the config of this PaymentGatewayAccount.  # noqa: E501
132
133        This property contains metadata about the payment gateway account's configuration such as the API key, `userId`, and `merchantId` details.  # noqa: E501
134
135        :return: The config of this PaymentGatewayAccount.  # noqa: E501
136        :rtype: PaymentGatewayAccountSetting
137        """
138        return self._config
139
140    @config.setter
141    def config(self, config):
142        """Sets the config of this PaymentGatewayAccount.
143
144        This property contains metadata about the payment gateway account's configuration such as the API key, `userId`, and `merchantId` details.  # noqa: E501
145
146        :param config: The config of this PaymentGatewayAccount.  # noqa: E501
147        :type: PaymentGatewayAccountSetting
148        """
149
150        self._config = config
151
152    @property
153    def display_name(self):
154        """Gets the display_name of this PaymentGatewayAccount.  # noqa: E501
155
156          # noqa: E501
157
158        :return: The display_name of this PaymentGatewayAccount.  # noqa: E501
159        :rtype: str
160        """
161        return self._display_name
162
163    @display_name.setter
164    def display_name(self, display_name):
165        """Sets the display_name of this PaymentGatewayAccount.
166
167          # noqa: E501
168
169        :param display_name: The display_name of this PaymentGatewayAccount.  # noqa: E501
170        :type: str
171        """
172
173        self._display_name = display_name
174
175    @property
176    def is_enabled(self):
177        """Gets the is_enabled of this PaymentGatewayAccount.  # noqa: E501
178
179          # noqa: E501
180
181        :return: The is_enabled of this PaymentGatewayAccount.  # noqa: E501
182        :rtype: str
183        """
184        return self._is_enabled
185
186    @is_enabled.setter
187    def is_enabled(self, is_enabled):
188        """Sets the is_enabled of this PaymentGatewayAccount.
189
190          # noqa: E501
191
192        :param is_enabled: The is_enabled of this PaymentGatewayAccount.  # noqa: E501
193        :type: str
194        """
195
196        self._is_enabled = is_enabled
197
198    @property
199    def is_legacy(self):
200        """Gets the is_legacy of this PaymentGatewayAccount.  # noqa: E501
201
202          # noqa: E501
203
204        :return: The is_legacy of this PaymentGatewayAccount.  # noqa: E501
205        :rtype: str
206        """
207        return self._is_legacy
208
209    @is_legacy.setter
210    def is_legacy(self, is_legacy):
211        """Sets the is_legacy of this PaymentGatewayAccount.
212
213          # noqa: E501
214
215        :param is_legacy: The is_legacy of this PaymentGatewayAccount.  # noqa: E501
216        :type: str
217        """
218
219        self._is_legacy = is_legacy
220
221    @property
222    def last_modified(self):
223        """Gets the last_modified of this PaymentGatewayAccount.  # noqa: E501
224
225          # noqa: E501
226
227        :return: The last_modified of this PaymentGatewayAccount.  # noqa: E501
228        :rtype: str
229        """
230        return self._last_modified
231
232    @last_modified.setter
233    def last_modified(self, last_modified):
234        """Sets the last_modified of this PaymentGatewayAccount.
235
236          # noqa: E501
237
238        :param last_modified: The last_modified of this PaymentGatewayAccount.  # noqa: E501
239        :type: str
240        """
241
242        self._last_modified = last_modified
243
244    @property
245    def payment_gateway(self):
246        """Gets the payment_gateway of this PaymentGatewayAccount.  # noqa: E501
247
248          # noqa: E501
249
250        :return: The payment_gateway of this PaymentGatewayAccount.  # noqa: E501
251        :rtype: str
252        """
253        return self._payment_gateway
254
255    @payment_gateway.setter
256    def payment_gateway(self, payment_gateway):
257        """Sets the payment_gateway of this PaymentGatewayAccount.
258
259          # noqa: E501
260
261        :param payment_gateway: The payment_gateway of this PaymentGatewayAccount.  # noqa: E501
262        :type: str
263        """
264
265        self._payment_gateway = payment_gateway
266
267    @property
268    def payment_gateway_account_id(self):
269        """Gets the payment_gateway_account_id of this PaymentGatewayAccount.  # noqa: E501
270
271          # noqa: E501
272
273        :return: The payment_gateway_account_id of this PaymentGatewayAccount.  # noqa: E501
274        :rtype: str
275        """
276        return self._payment_gateway_account_id
277
278    @payment_gateway_account_id.setter
279    def payment_gateway_account_id(self, payment_gateway_account_id):
280        """Sets the payment_gateway_account_id of this PaymentGatewayAccount.
281
282          # noqa: E501
283
284        :param payment_gateway_account_id: The payment_gateway_account_id of this PaymentGatewayAccount.  # noqa: E501
285        :type: str
286        """
287
288        self._payment_gateway_account_id = payment_gateway_account_id
289
290    @property
291    def payment_gateway_display_name(self):
292        """Gets the payment_gateway_display_name of this PaymentGatewayAccount.  # noqa: E501
293
294          # noqa: E501
295
296        :return: The payment_gateway_display_name of this PaymentGatewayAccount.  # noqa: E501
297        :rtype: str
298        """
299        return self._payment_gateway_display_name
300
301    @payment_gateway_display_name.setter
302    def payment_gateway_display_name(self, payment_gateway_display_name):
303        """Sets the payment_gateway_display_name of this PaymentGatewayAccount.
304
305          # noqa: E501
306
307        :param payment_gateway_display_name: The payment_gateway_display_name of this PaymentGatewayAccount.  # noqa: E501
308        :type: str
309        """
310
311        self._payment_gateway_display_name = payment_gateway_display_name
312
313    @property
314    def pay_pal_legacy_settings(self):
315        """Gets the pay_pal_legacy_settings of this PaymentGatewayAccount.  # noqa: E501
316
317        Reserved for DocuSign.  # noqa: E501
318
319        :return: The pay_pal_legacy_settings of this PaymentGatewayAccount.  # noqa: E501
320        :rtype: PayPalLegacySettings
321        """
322        return self._pay_pal_legacy_settings
323
324    @pay_pal_legacy_settings.setter
325    def pay_pal_legacy_settings(self, pay_pal_legacy_settings):
326        """Sets the pay_pal_legacy_settings of this PaymentGatewayAccount.
327
328        Reserved for DocuSign.  # noqa: E501
329
330        :param pay_pal_legacy_settings: The pay_pal_legacy_settings of this PaymentGatewayAccount.  # noqa: E501
331        :type: PayPalLegacySettings
332        """
333
334        self._pay_pal_legacy_settings = pay_pal_legacy_settings
335
336    @property
337    def supported_currencies(self):
338        """Gets the supported_currencies of this PaymentGatewayAccount.  # noqa: E501
339
340          # noqa: E501
341
342        :return: The supported_currencies of this PaymentGatewayAccount.  # noqa: E501
343        :rtype: list[str]
344        """
345        return self._supported_currencies
346
347    @supported_currencies.setter
348    def supported_currencies(self, supported_currencies):
349        """Sets the supported_currencies of this PaymentGatewayAccount.
350
351          # noqa: E501
352
353        :param supported_currencies: The supported_currencies of this PaymentGatewayAccount.  # noqa: E501
354        :type: list[str]
355        """
356
357        self._supported_currencies = supported_currencies
358
359    @property
360    def supported_payment_methods(self):
361        """Gets the supported_payment_methods of this PaymentGatewayAccount.  # noqa: E501
362
363          # noqa: E501
364
365        :return: The supported_payment_methods of this PaymentGatewayAccount.  # noqa: E501
366        :rtype: list[str]
367        """
368        return self._supported_payment_methods
369
370    @supported_payment_methods.setter
371    def supported_payment_methods(self, supported_payment_methods):
372        """Sets the supported_payment_methods of this PaymentGatewayAccount.
373
374          # noqa: E501
375
376        :param supported_payment_methods: The supported_payment_methods of this PaymentGatewayAccount.  # noqa: E501
377        :type: list[str]
378        """
379
380        self._supported_payment_methods = supported_payment_methods
381
382    @property
383    def supported_payment_methods_with_options(self):
384        """Gets the supported_payment_methods_with_options of this PaymentGatewayAccount.  # noqa: E501
385
386          # noqa: E501
387
388        :return: The supported_payment_methods_with_options of this PaymentGatewayAccount.  # noqa: E501
389        :rtype: list[PaymentMethodWithOptions]
390        """
391        return self._supported_payment_methods_with_options
392
393    @supported_payment_methods_with_options.setter
394    def supported_payment_methods_with_options(self, supported_payment_methods_with_options):
395        """Sets the supported_payment_methods_with_options of this PaymentGatewayAccount.
396
397          # noqa: E501
398
399        :param supported_payment_methods_with_options: The supported_payment_methods_with_options of this PaymentGatewayAccount.  # noqa: E501
400        :type: list[PaymentMethodWithOptions]
401        """
402
403        self._supported_payment_methods_with_options = supported_payment_methods_with_options
404
405    @property
406    def zero_decimal_currencies(self):
407        """Gets the zero_decimal_currencies of this PaymentGatewayAccount.  # noqa: E501
408
409          # noqa: E501
410
411        :return: The zero_decimal_currencies of this PaymentGatewayAccount.  # noqa: E501
412        :rtype: list[str]
413        """
414        return self._zero_decimal_currencies
415
416    @zero_decimal_currencies.setter
417    def zero_decimal_currencies(self, zero_decimal_currencies):
418        """Sets the zero_decimal_currencies of this PaymentGatewayAccount.
419
420          # noqa: E501
421
422        :param zero_decimal_currencies: The zero_decimal_currencies of this PaymentGatewayAccount.  # noqa: E501
423        :type: list[str]
424        """
425
426        self._zero_decimal_currencies = zero_decimal_currencies
427
428    def to_dict(self):
429        """Returns the model properties as a dict"""
430        result = {}
431
432        for attr, _ in six.iteritems(self.swagger_types):
433            value = getattr(self, attr)
434            if isinstance(value, list):
435                result[attr] = list(map(
436                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
437                    value
438                ))
439            elif hasattr(value, "to_dict"):
440                result[attr] = value.to_dict()
441            elif isinstance(value, dict):
442                result[attr] = dict(map(
443                    lambda item: (item[0], item[1].to_dict())
444                    if hasattr(item[1], "to_dict") else item,
445                    value.items()
446                ))
447            else:
448                result[attr] = value
449        if issubclass(PaymentGatewayAccount, dict):
450            for key, value in self.items():
451                result[key] = value
452
453        return result
454
455    def to_str(self):
456        """Returns the string representation of the model"""
457        return pprint.pformat(self.to_dict())
458
459    def __repr__(self):
460        """For `print` and `pprint`"""
461        return self.to_str()
462
463    def __eq__(self, other):
464        """Returns true if both objects are equal"""
465        if not isinstance(other, PaymentGatewayAccount):
466            return False
467
468        return self.to_dict() == other.to_dict()
469
470    def __ne__(self, other):
471        """Returns true if both objects are not equal"""
472        if not isinstance(other, PaymentGatewayAccount):
473            return True
474
475        return self.to_dict() != other.to_dict()
class PaymentGatewayAccount:
 23class PaymentGatewayAccount(object):
 24    """NOTE: This class is auto generated by the swagger code generator program.
 25
 26    Do not edit the class manually.
 27    """
 28
 29    """
 30    Attributes:
 31      swagger_types (dict): The key is attribute name
 32                            and the value is attribute type.
 33      attribute_map (dict): The key is attribute name
 34                            and the value is json key in definition.
 35    """
 36    swagger_types = {
 37        'allow_custom_metadata': 'bool',
 38        'config': 'PaymentGatewayAccountSetting',
 39        'display_name': 'str',
 40        'is_enabled': 'str',
 41        'is_legacy': 'str',
 42        'last_modified': 'str',
 43        'payment_gateway': 'str',
 44        'payment_gateway_account_id': 'str',
 45        'payment_gateway_display_name': 'str',
 46        'pay_pal_legacy_settings': 'PayPalLegacySettings',
 47        'supported_currencies': 'list[str]',
 48        'supported_payment_methods': 'list[str]',
 49        'supported_payment_methods_with_options': 'list[PaymentMethodWithOptions]',
 50        'zero_decimal_currencies': 'list[str]'
 51    }
 52
 53    attribute_map = {
 54        'allow_custom_metadata': 'allowCustomMetadata',
 55        'config': 'config',
 56        'display_name': 'displayName',
 57        'is_enabled': 'isEnabled',
 58        'is_legacy': 'isLegacy',
 59        'last_modified': 'lastModified',
 60        'payment_gateway': 'paymentGateway',
 61        'payment_gateway_account_id': 'paymentGatewayAccountId',
 62        'payment_gateway_display_name': 'paymentGatewayDisplayName',
 63        'pay_pal_legacy_settings': 'payPalLegacySettings',
 64        'supported_currencies': 'supportedCurrencies',
 65        'supported_payment_methods': 'supportedPaymentMethods',
 66        'supported_payment_methods_with_options': 'supportedPaymentMethodsWithOptions',
 67        'zero_decimal_currencies': 'zeroDecimalCurrencies'
 68    }
 69
 70    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 71        """PaymentGatewayAccount - a model defined in Swagger"""  # noqa: E501
 72        if _configuration is None:
 73            _configuration = Configuration()
 74        self._configuration = _configuration
 75
 76        self._allow_custom_metadata = None
 77        self._config = None
 78        self._display_name = None
 79        self._is_enabled = None
 80        self._is_legacy = None
 81        self._last_modified = None
 82        self._payment_gateway = None
 83        self._payment_gateway_account_id = None
 84        self._payment_gateway_display_name = None
 85        self._pay_pal_legacy_settings = None
 86        self._supported_currencies = None
 87        self._supported_payment_methods = None
 88        self._supported_payment_methods_with_options = None
 89        self._zero_decimal_currencies = None
 90        self.discriminator = None
 91
 92        setattr(self, "_{}".format('allow_custom_metadata'), kwargs.get('allow_custom_metadata', None))
 93        setattr(self, "_{}".format('config'), kwargs.get('config', None))
 94        setattr(self, "_{}".format('display_name'), kwargs.get('display_name', None))
 95        setattr(self, "_{}".format('is_enabled'), kwargs.get('is_enabled', None))
 96        setattr(self, "_{}".format('is_legacy'), kwargs.get('is_legacy', None))
 97        setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None))
 98        setattr(self, "_{}".format('payment_gateway'), kwargs.get('payment_gateway', None))
 99        setattr(self, "_{}".format('payment_gateway_account_id'), kwargs.get('payment_gateway_account_id', None))
100        setattr(self, "_{}".format('payment_gateway_display_name'), kwargs.get('payment_gateway_display_name', None))
101        setattr(self, "_{}".format('pay_pal_legacy_settings'), kwargs.get('pay_pal_legacy_settings', None))
102        setattr(self, "_{}".format('supported_currencies'), kwargs.get('supported_currencies', None))
103        setattr(self, "_{}".format('supported_payment_methods'), kwargs.get('supported_payment_methods', None))
104        setattr(self, "_{}".format('supported_payment_methods_with_options'), kwargs.get('supported_payment_methods_with_options', None))
105        setattr(self, "_{}".format('zero_decimal_currencies'), kwargs.get('zero_decimal_currencies', None))
106
107    @property
108    def allow_custom_metadata(self):
109        """Gets the allow_custom_metadata of this PaymentGatewayAccount.  # noqa: E501
110
111          # noqa: E501
112
113        :return: The allow_custom_metadata of this PaymentGatewayAccount.  # noqa: E501
114        :rtype: bool
115        """
116        return self._allow_custom_metadata
117
118    @allow_custom_metadata.setter
119    def allow_custom_metadata(self, allow_custom_metadata):
120        """Sets the allow_custom_metadata of this PaymentGatewayAccount.
121
122          # noqa: E501
123
124        :param allow_custom_metadata: The allow_custom_metadata of this PaymentGatewayAccount.  # noqa: E501
125        :type: bool
126        """
127
128        self._allow_custom_metadata = allow_custom_metadata
129
130    @property
131    def config(self):
132        """Gets the config of this PaymentGatewayAccount.  # noqa: E501
133
134        This property contains metadata about the payment gateway account's configuration such as the API key, `userId`, and `merchantId` details.  # noqa: E501
135
136        :return: The config of this PaymentGatewayAccount.  # noqa: E501
137        :rtype: PaymentGatewayAccountSetting
138        """
139        return self._config
140
141    @config.setter
142    def config(self, config):
143        """Sets the config of this PaymentGatewayAccount.
144
145        This property contains metadata about the payment gateway account's configuration such as the API key, `userId`, and `merchantId` details.  # noqa: E501
146
147        :param config: The config of this PaymentGatewayAccount.  # noqa: E501
148        :type: PaymentGatewayAccountSetting
149        """
150
151        self._config = config
152
153    @property
154    def display_name(self):
155        """Gets the display_name of this PaymentGatewayAccount.  # noqa: E501
156
157          # noqa: E501
158
159        :return: The display_name of this PaymentGatewayAccount.  # noqa: E501
160        :rtype: str
161        """
162        return self._display_name
163
164    @display_name.setter
165    def display_name(self, display_name):
166        """Sets the display_name of this PaymentGatewayAccount.
167
168          # noqa: E501
169
170        :param display_name: The display_name of this PaymentGatewayAccount.  # noqa: E501
171        :type: str
172        """
173
174        self._display_name = display_name
175
176    @property
177    def is_enabled(self):
178        """Gets the is_enabled of this PaymentGatewayAccount.  # noqa: E501
179
180          # noqa: E501
181
182        :return: The is_enabled of this PaymentGatewayAccount.  # noqa: E501
183        :rtype: str
184        """
185        return self._is_enabled
186
187    @is_enabled.setter
188    def is_enabled(self, is_enabled):
189        """Sets the is_enabled of this PaymentGatewayAccount.
190
191          # noqa: E501
192
193        :param is_enabled: The is_enabled of this PaymentGatewayAccount.  # noqa: E501
194        :type: str
195        """
196
197        self._is_enabled = is_enabled
198
199    @property
200    def is_legacy(self):
201        """Gets the is_legacy of this PaymentGatewayAccount.  # noqa: E501
202
203          # noqa: E501
204
205        :return: The is_legacy of this PaymentGatewayAccount.  # noqa: E501
206        :rtype: str
207        """
208        return self._is_legacy
209
210    @is_legacy.setter
211    def is_legacy(self, is_legacy):
212        """Sets the is_legacy of this PaymentGatewayAccount.
213
214          # noqa: E501
215
216        :param is_legacy: The is_legacy of this PaymentGatewayAccount.  # noqa: E501
217        :type: str
218        """
219
220        self._is_legacy = is_legacy
221
222    @property
223    def last_modified(self):
224        """Gets the last_modified of this PaymentGatewayAccount.  # noqa: E501
225
226          # noqa: E501
227
228        :return: The last_modified of this PaymentGatewayAccount.  # noqa: E501
229        :rtype: str
230        """
231        return self._last_modified
232
233    @last_modified.setter
234    def last_modified(self, last_modified):
235        """Sets the last_modified of this PaymentGatewayAccount.
236
237          # noqa: E501
238
239        :param last_modified: The last_modified of this PaymentGatewayAccount.  # noqa: E501
240        :type: str
241        """
242
243        self._last_modified = last_modified
244
245    @property
246    def payment_gateway(self):
247        """Gets the payment_gateway of this PaymentGatewayAccount.  # noqa: E501
248
249          # noqa: E501
250
251        :return: The payment_gateway of this PaymentGatewayAccount.  # noqa: E501
252        :rtype: str
253        """
254        return self._payment_gateway
255
256    @payment_gateway.setter
257    def payment_gateway(self, payment_gateway):
258        """Sets the payment_gateway of this PaymentGatewayAccount.
259
260          # noqa: E501
261
262        :param payment_gateway: The payment_gateway of this PaymentGatewayAccount.  # noqa: E501
263        :type: str
264        """
265
266        self._payment_gateway = payment_gateway
267
268    @property
269    def payment_gateway_account_id(self):
270        """Gets the payment_gateway_account_id of this PaymentGatewayAccount.  # noqa: E501
271
272          # noqa: E501
273
274        :return: The payment_gateway_account_id of this PaymentGatewayAccount.  # noqa: E501
275        :rtype: str
276        """
277        return self._payment_gateway_account_id
278
279    @payment_gateway_account_id.setter
280    def payment_gateway_account_id(self, payment_gateway_account_id):
281        """Sets the payment_gateway_account_id of this PaymentGatewayAccount.
282
283          # noqa: E501
284
285        :param payment_gateway_account_id: The payment_gateway_account_id of this PaymentGatewayAccount.  # noqa: E501
286        :type: str
287        """
288
289        self._payment_gateway_account_id = payment_gateway_account_id
290
291    @property
292    def payment_gateway_display_name(self):
293        """Gets the payment_gateway_display_name of this PaymentGatewayAccount.  # noqa: E501
294
295          # noqa: E501
296
297        :return: The payment_gateway_display_name of this PaymentGatewayAccount.  # noqa: E501
298        :rtype: str
299        """
300        return self._payment_gateway_display_name
301
302    @payment_gateway_display_name.setter
303    def payment_gateway_display_name(self, payment_gateway_display_name):
304        """Sets the payment_gateway_display_name of this PaymentGatewayAccount.
305
306          # noqa: E501
307
308        :param payment_gateway_display_name: The payment_gateway_display_name of this PaymentGatewayAccount.  # noqa: E501
309        :type: str
310        """
311
312        self._payment_gateway_display_name = payment_gateway_display_name
313
314    @property
315    def pay_pal_legacy_settings(self):
316        """Gets the pay_pal_legacy_settings of this PaymentGatewayAccount.  # noqa: E501
317
318        Reserved for DocuSign.  # noqa: E501
319
320        :return: The pay_pal_legacy_settings of this PaymentGatewayAccount.  # noqa: E501
321        :rtype: PayPalLegacySettings
322        """
323        return self._pay_pal_legacy_settings
324
325    @pay_pal_legacy_settings.setter
326    def pay_pal_legacy_settings(self, pay_pal_legacy_settings):
327        """Sets the pay_pal_legacy_settings of this PaymentGatewayAccount.
328
329        Reserved for DocuSign.  # noqa: E501
330
331        :param pay_pal_legacy_settings: The pay_pal_legacy_settings of this PaymentGatewayAccount.  # noqa: E501
332        :type: PayPalLegacySettings
333        """
334
335        self._pay_pal_legacy_settings = pay_pal_legacy_settings
336
337    @property
338    def supported_currencies(self):
339        """Gets the supported_currencies of this PaymentGatewayAccount.  # noqa: E501
340
341          # noqa: E501
342
343        :return: The supported_currencies of this PaymentGatewayAccount.  # noqa: E501
344        :rtype: list[str]
345        """
346        return self._supported_currencies
347
348    @supported_currencies.setter
349    def supported_currencies(self, supported_currencies):
350        """Sets the supported_currencies of this PaymentGatewayAccount.
351
352          # noqa: E501
353
354        :param supported_currencies: The supported_currencies of this PaymentGatewayAccount.  # noqa: E501
355        :type: list[str]
356        """
357
358        self._supported_currencies = supported_currencies
359
360    @property
361    def supported_payment_methods(self):
362        """Gets the supported_payment_methods of this PaymentGatewayAccount.  # noqa: E501
363
364          # noqa: E501
365
366        :return: The supported_payment_methods of this PaymentGatewayAccount.  # noqa: E501
367        :rtype: list[str]
368        """
369        return self._supported_payment_methods
370
371    @supported_payment_methods.setter
372    def supported_payment_methods(self, supported_payment_methods):
373        """Sets the supported_payment_methods of this PaymentGatewayAccount.
374
375          # noqa: E501
376
377        :param supported_payment_methods: The supported_payment_methods of this PaymentGatewayAccount.  # noqa: E501
378        :type: list[str]
379        """
380
381        self._supported_payment_methods = supported_payment_methods
382
383    @property
384    def supported_payment_methods_with_options(self):
385        """Gets the supported_payment_methods_with_options of this PaymentGatewayAccount.  # noqa: E501
386
387          # noqa: E501
388
389        :return: The supported_payment_methods_with_options of this PaymentGatewayAccount.  # noqa: E501
390        :rtype: list[PaymentMethodWithOptions]
391        """
392        return self._supported_payment_methods_with_options
393
394    @supported_payment_methods_with_options.setter
395    def supported_payment_methods_with_options(self, supported_payment_methods_with_options):
396        """Sets the supported_payment_methods_with_options of this PaymentGatewayAccount.
397
398          # noqa: E501
399
400        :param supported_payment_methods_with_options: The supported_payment_methods_with_options of this PaymentGatewayAccount.  # noqa: E501
401        :type: list[PaymentMethodWithOptions]
402        """
403
404        self._supported_payment_methods_with_options = supported_payment_methods_with_options
405
406    @property
407    def zero_decimal_currencies(self):
408        """Gets the zero_decimal_currencies of this PaymentGatewayAccount.  # noqa: E501
409
410          # noqa: E501
411
412        :return: The zero_decimal_currencies of this PaymentGatewayAccount.  # noqa: E501
413        :rtype: list[str]
414        """
415        return self._zero_decimal_currencies
416
417    @zero_decimal_currencies.setter
418    def zero_decimal_currencies(self, zero_decimal_currencies):
419        """Sets the zero_decimal_currencies of this PaymentGatewayAccount.
420
421          # noqa: E501
422
423        :param zero_decimal_currencies: The zero_decimal_currencies of this PaymentGatewayAccount.  # noqa: E501
424        :type: list[str]
425        """
426
427        self._zero_decimal_currencies = zero_decimal_currencies
428
429    def to_dict(self):
430        """Returns the model properties as a dict"""
431        result = {}
432
433        for attr, _ in six.iteritems(self.swagger_types):
434            value = getattr(self, attr)
435            if isinstance(value, list):
436                result[attr] = list(map(
437                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
438                    value
439                ))
440            elif hasattr(value, "to_dict"):
441                result[attr] = value.to_dict()
442            elif isinstance(value, dict):
443                result[attr] = dict(map(
444                    lambda item: (item[0], item[1].to_dict())
445                    if hasattr(item[1], "to_dict") else item,
446                    value.items()
447                ))
448            else:
449                result[attr] = value
450        if issubclass(PaymentGatewayAccount, dict):
451            for key, value in self.items():
452                result[key] = value
453
454        return result
455
456    def to_str(self):
457        """Returns the string representation of the model"""
458        return pprint.pformat(self.to_dict())
459
460    def __repr__(self):
461        """For `print` and `pprint`"""
462        return self.to_str()
463
464    def __eq__(self, other):
465        """Returns true if both objects are equal"""
466        if not isinstance(other, PaymentGatewayAccount):
467            return False
468
469        return self.to_dict() == other.to_dict()
470
471    def __ne__(self, other):
472        """Returns true if both objects are not equal"""
473        if not isinstance(other, PaymentGatewayAccount):
474            return True
475
476        return self.to_dict() != other.to_dict()

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

PaymentGatewayAccount(_configuration=None, **kwargs)
 70    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 71        """PaymentGatewayAccount - a model defined in Swagger"""  # noqa: E501
 72        if _configuration is None:
 73            _configuration = Configuration()
 74        self._configuration = _configuration
 75
 76        self._allow_custom_metadata = None
 77        self._config = None
 78        self._display_name = None
 79        self._is_enabled = None
 80        self._is_legacy = None
 81        self._last_modified = None
 82        self._payment_gateway = None
 83        self._payment_gateway_account_id = None
 84        self._payment_gateway_display_name = None
 85        self._pay_pal_legacy_settings = None
 86        self._supported_currencies = None
 87        self._supported_payment_methods = None
 88        self._supported_payment_methods_with_options = None
 89        self._zero_decimal_currencies = None
 90        self.discriminator = None
 91
 92        setattr(self, "_{}".format('allow_custom_metadata'), kwargs.get('allow_custom_metadata', None))
 93        setattr(self, "_{}".format('config'), kwargs.get('config', None))
 94        setattr(self, "_{}".format('display_name'), kwargs.get('display_name', None))
 95        setattr(self, "_{}".format('is_enabled'), kwargs.get('is_enabled', None))
 96        setattr(self, "_{}".format('is_legacy'), kwargs.get('is_legacy', None))
 97        setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None))
 98        setattr(self, "_{}".format('payment_gateway'), kwargs.get('payment_gateway', None))
 99        setattr(self, "_{}".format('payment_gateway_account_id'), kwargs.get('payment_gateway_account_id', None))
100        setattr(self, "_{}".format('payment_gateway_display_name'), kwargs.get('payment_gateway_display_name', None))
101        setattr(self, "_{}".format('pay_pal_legacy_settings'), kwargs.get('pay_pal_legacy_settings', None))
102        setattr(self, "_{}".format('supported_currencies'), kwargs.get('supported_currencies', None))
103        setattr(self, "_{}".format('supported_payment_methods'), kwargs.get('supported_payment_methods', None))
104        setattr(self, "_{}".format('supported_payment_methods_with_options'), kwargs.get('supported_payment_methods_with_options', None))
105        setattr(self, "_{}".format('zero_decimal_currencies'), kwargs.get('zero_decimal_currencies', None))

PaymentGatewayAccount - a model defined in Swagger

swagger_types = {'allow_custom_metadata': 'bool', 'config': 'PaymentGatewayAccountSetting', 'display_name': 'str', 'is_enabled': 'str', 'is_legacy': 'str', 'last_modified': 'str', 'payment_gateway': 'str', 'payment_gateway_account_id': 'str', 'payment_gateway_display_name': 'str', 'pay_pal_legacy_settings': 'PayPalLegacySettings', 'supported_currencies': 'list[str]', 'supported_payment_methods': 'list[str]', 'supported_payment_methods_with_options': 'list[PaymentMethodWithOptions]', 'zero_decimal_currencies': 'list[str]'}
attribute_map = {'allow_custom_metadata': 'allowCustomMetadata', 'config': 'config', 'display_name': 'displayName', 'is_enabled': 'isEnabled', 'is_legacy': 'isLegacy', 'last_modified': 'lastModified', 'payment_gateway': 'paymentGateway', 'payment_gateway_account_id': 'paymentGatewayAccountId', 'payment_gateway_display_name': 'paymentGatewayDisplayName', 'pay_pal_legacy_settings': 'payPalLegacySettings', 'supported_currencies': 'supportedCurrencies', 'supported_payment_methods': 'supportedPaymentMethods', 'supported_payment_methods_with_options': 'supportedPaymentMethodsWithOptions', 'zero_decimal_currencies': 'zeroDecimalCurrencies'}
allow_custom_metadata

Gets the allow_custom_metadata of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The allow_custom_metadata of this PaymentGatewayAccount. # noqa: E501

config

Gets the config of this PaymentGatewayAccount. # noqa: E501

This property contains metadata about the payment gateway account's configuration such as the API key, userId, and merchantId details. # noqa: E501

Returns

The config of this PaymentGatewayAccount. # noqa: E501

display_name

Gets the display_name of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The display_name of this PaymentGatewayAccount. # noqa: E501

is_enabled

Gets the is_enabled of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The is_enabled of this PaymentGatewayAccount. # noqa: E501

is_legacy

Gets the is_legacy of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The is_legacy of this PaymentGatewayAccount. # noqa: E501

last_modified

Gets the last_modified of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The last_modified of this PaymentGatewayAccount. # noqa: E501

payment_gateway

Gets the payment_gateway of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The payment_gateway of this PaymentGatewayAccount. # noqa: E501

payment_gateway_account_id

Gets the payment_gateway_account_id of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The payment_gateway_account_id of this PaymentGatewayAccount. # noqa: E501

payment_gateway_display_name

Gets the payment_gateway_display_name of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The payment_gateway_display_name of this PaymentGatewayAccount. # noqa: E501

pay_pal_legacy_settings

Gets the pay_pal_legacy_settings of this PaymentGatewayAccount. # noqa: E501

Reserved for DocuSign. # noqa: E501

Returns

The pay_pal_legacy_settings of this PaymentGatewayAccount. # noqa: E501

supported_currencies

Gets the supported_currencies of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The supported_currencies of this PaymentGatewayAccount. # noqa: E501

supported_payment_methods

Gets the supported_payment_methods of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The supported_payment_methods of this PaymentGatewayAccount. # noqa: E501

supported_payment_methods_with_options

Gets the supported_payment_methods_with_options of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The supported_payment_methods_with_options of this PaymentGatewayAccount. # noqa: E501

zero_decimal_currencies

Gets the zero_decimal_currencies of this PaymentGatewayAccount. # noqa: E501

# noqa: E501

Returns

The zero_decimal_currencies of this PaymentGatewayAccount. # noqa: E501

def to_dict(self)
429    def to_dict(self):
430        """Returns the model properties as a dict"""
431        result = {}
432
433        for attr, _ in six.iteritems(self.swagger_types):
434            value = getattr(self, attr)
435            if isinstance(value, list):
436                result[attr] = list(map(
437                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
438                    value
439                ))
440            elif hasattr(value, "to_dict"):
441                result[attr] = value.to_dict()
442            elif isinstance(value, dict):
443                result[attr] = dict(map(
444                    lambda item: (item[0], item[1].to_dict())
445                    if hasattr(item[1], "to_dict") else item,
446                    value.items()
447                ))
448            else:
449                result[attr] = value
450        if issubclass(PaymentGatewayAccount, dict):
451            for key, value in self.items():
452                result[key] = value
453
454        return result

Returns the model properties as a dict

def to_str(self)
456    def to_str(self):
457        """Returns the string representation of the model"""
458        return pprint.pformat(self.to_dict())

Returns the string representation of the model