simplify 1.2.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a96a3cc9983f666a577ec70105891a6ae1a01f36
4
- data.tar.gz: efdd46a334d6134a7c570d74681d831245a49ffa
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MWM2NTcwY2YyYmMzNGQ2NmJlMjdhYWQ2Njc3NGE2YTUzYzY2NzJjNA==
5
+ data.tar.gz: !binary |-
6
+ ZDZhNzZhZWZmZDcwOWUyOWQ1YjY0ZDJiNDQ4OGYzODg0NzAxNDE3MQ==
5
7
  SHA512:
6
- metadata.gz: d5a4000459bdfe55c6351841759e2d8d206b1225c8a83e477a7d2420d9a015fee748770f0aeee8bdc2d3e9845d1098ba2ccbec6830abb287389ea63f5e8083c7
7
- data.tar.gz: b5b754ac3d89c2693b21e3ecce653b4f24598cc80b90b1f13fb2eb602132e06e9d6617fe74d0a1c221459363daa566dd61d9f0ddb6191d0898d8628362dcc035
8
+ metadata.gz: !binary |-
9
+ MDgxNDZmMGExYjg5ZWQ4NWEwMDE1ZjlmNzA4OTRkNDE3MDRjZDhiMjExODll
10
+ ZGRhZmZlN2I0Y2Q0Nzk2MjAwMGRlNzYxZGRmZTg0M2IxZDI5YzY2OWQ3YThk
11
+ NzI3ZGZiNGZlNTk4OGU0MjEwOTIwNDA0YThiYTVkYzU0OThiODY=
12
+ data.tar.gz: !binary |-
13
+ MzBhOWI4ZGNlYjExODg1ZDZmN2NlMjFhODE4MDY0ODU5OTczOWI2NTk5MTVj
14
+ MTc0NDk1M2E1ZmE4NDBkMTNmYjA4Njg4MzIxMjNjYmQ0M2VlNWY3YTQ4NjM1
15
+ NDE5YjcwNDM3M2UzNzEzODBiZTY5ZjdhOGMwNTY2NTYyZGEwY2I=
data/lib/simplify.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -32,8 +32,10 @@ require File.dirname(__FILE__) + '/simplify/cardtoken'
32
32
  require File.dirname(__FILE__) + '/simplify/chargeback'
33
33
  require File.dirname(__FILE__) + '/simplify/coupon'
34
34
  require File.dirname(__FILE__) + '/simplify/customer'
35
+ require File.dirname(__FILE__) + '/simplify/datatoken'
35
36
  require File.dirname(__FILE__) + '/simplify/deposit'
36
37
  require File.dirname(__FILE__) + '/simplify/event'
38
+ require File.dirname(__FILE__) + '/simplify/fraudcheck'
37
39
  require File.dirname(__FILE__) + '/simplify/invoice'
38
40
  require File.dirname(__FILE__) + '/simplify/invoiceitem'
39
41
  require File.dirname(__FILE__) + '/simplify/tax'
@@ -41,5 +43,6 @@ require File.dirname(__FILE__) + '/simplify/payment'
41
43
  require File.dirname(__FILE__) + '/simplify/plan'
42
44
  require File.dirname(__FILE__) + '/simplify/refund'
43
45
  require File.dirname(__FILE__) + '/simplify/subscription'
46
+ require File.dirname(__FILE__) + '/simplify/transactionreview'
44
47
  require File.dirname(__FILE__) + '/simplify/webhook'
45
48
 
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -60,23 +60,58 @@ class Authorization < Hash
60
60
  # Creates an Authorization object
61
61
  #
62
62
  # parms:: a hash of parameters; valid keys are:
63
- # * <code>amount</code> Amount of the payment (in the smallest unit of your currency). Example: 100 = $1.00USD [min value: 50, max value: 9999900] <b>required </b>
63
+ # * <code>amount</code> Amount of the payment (in the smallest unit of your currency). Example: 100 = $1.00USD <b>required </b>
64
64
  # * <code>card => addressCity</code> City of the cardholder. [max length: 50, min length: 2]
65
65
  # * <code>card => addressCountry</code> Country code (ISO-3166-1-alpha-2 code) of residence of the cardholder. [max length: 2, min length: 2]
66
66
  # * <code>card => addressLine1</code> Address of the cardholder. [max length: 255]
67
67
  # * <code>card => addressLine2</code> Address of the cardholder if needed. [max length: 255]
68
- # * <code>card => addressState</code> State code (USPS code) of residence of the cardholder. [max length: 2, min length: 2]
69
- # * <code>card => addressZip</code> Postal code of the cardholder. The postal code size is between 5 and 9 characters in length and only contains numbers or letters. [max length: 9, min length: 3]
68
+ # * <code>card => addressState</code> State of residence of the cardholder. For the US, this is a 2-digit USPS code. [max length: 255]
69
+ # * <code>card => addressZip</code> Postal code of the cardholder. The postal code size is between 5 and 9 characters in length and only contains numbers or letters. [max length: 32]
70
70
  # * <code>card => cvc</code> CVC security code of the card. This is the code on the back of the card. Example: 123
71
71
  # * <code>card => expMonth</code> Expiration month of the card. Format is MM. Example: January = 01 [min value: 1, max value: 12] <b>required </b>
72
- # * <code>card => expYear</code> Expiration year of the card. Format is YY. Example: 2013 = 13 [max value: 99] <b>required </b>
72
+ # * <code>card => expYear</code> Expiration year of the card. Format is YY. Example: 2013 = 13 [min value: 0, max value: 99] <b>required </b>
73
73
  # * <code>card => name</code> Name as it appears on the card. [max length: 50, min length: 2]
74
74
  # * <code>card => number</code> Card number as it appears on the card. [max length: 19, min length: 13] <b>required </b>
75
75
  # * <code>currency</code> Currency code (ISO-4217) for the transaction. Must match the currency associated with your account. [default: USD] <b>required </b>
76
76
  # * <code>customer</code> ID of customer. If specified, card on file of customer will be used.
77
77
  # * <code>description</code> Free form text field to be used as a description of the payment. This field is echoed back with the payment on any find or list operations. [max length: 1024]
78
+ # * <code>order => commodityCode</code> Standard classification code for products and services. [max length: 5]
79
+ # * <code>order => customer</code> ID of the customer associated with the order.
80
+ # * <code>order => customerEmail</code> Customer email address.
81
+ # * <code>order => customerName</code> Customer name.
82
+ # * <code>order => customerNote</code> Additional notes provided by the customer. [max length: 255]
83
+ # * <code>order => customerReference</code> A merchant reference for the customer.
84
+ # * <code>order => items => amount</code> Cost of the item.
85
+ # * <code>order => items => description</code> Description of the item.
86
+ # * <code>order => items => name</code> Item name.
87
+ # * <code>order => items => product</code> Product information associated with the item.
88
+ # * <code>order => items => quantity</code> Quantity of the item contained in the order [min value: 1, max value: 999999, default: 1] <b>required </b>
89
+ # * <code>order => items => reference</code> A merchant reference for the item. [max length: 255]
90
+ # * <code>order => items => tax</code> Taxes associated with the item.
91
+ # * <code>order => merchantNote</code> Additional notes provided by the merchant. [max length: 255]
92
+ # * <code>order => payment</code> ID of the payment associated with the order.
93
+ # * <code>order => reference</code> A merchant reference for the order. [max length: 255]
94
+ # * <code>order => shippingAddress => city</code> City, town, or municipality. [max length: 255, min length: 2]
95
+ # * <code>order => shippingAddress => country</code> 2-character country code. [max length: 2, min length: 2]
96
+ # * <code>order => shippingAddress => line1</code> Street address. [max length: 255]
97
+ # * <code>order => shippingAddress => line2</code> (Opt) Street address continued. [max length: 255]
98
+ # * <code>order => shippingAddress => name</code> Name of the entity being shipped to. [max length: 255]
99
+ # * <code>order => shippingAddress => state</code> State or province. [max length: 255]
100
+ # * <code>order => shippingAddress => zip</code> Postal code. [max length: 32]
101
+ # * <code>order => shippingFromAddress => city</code> City, town, or municipality. [max length: 255, min length: 2]
102
+ # * <code>order => shippingFromAddress => country</code> 2-character country code. [max length: 2, min length: 2]
103
+ # * <code>order => shippingFromAddress => line1</code> Street address. [max length: 255]
104
+ # * <code>order => shippingFromAddress => line2</code> (Opt) Street address continued. [max length: 255]
105
+ # * <code>order => shippingFromAddress => name</code> Name of the entity performing the shipping. [max length: 255]
106
+ # * <code>order => shippingFromAddress => state</code> State or province. [max length: 255]
107
+ # * <code>order => shippingFromAddress => zip</code> Postal code. [max length: 32]
108
+ # * <code>order => shippingName</code> Name of the entity being shipped to.
109
+ # * <code>order => source</code> Order source. [default: WEB] <b>required </b>
110
+ # * <code>order => status</code> Status of the order. [default: INCOMPLETE] <b>required </b>
78
111
  # * <code>reference</code> Custom reference field to be used with outside systems.
79
112
  # * <code>replayId</code> An identifier that can be sent to uniquely identify a payment request to facilitate retries due to I/O related issues. This identifier must be unique for your account (sandbox or live) across all of your payments. If supplied, we will check for a payment on your account that matches this identifier, and if one is found we will attempt to return an identical response of the original request. [max length: 50, min length: 1]
113
+ # * <code>statementDescription => name</code> Merchant name <b>required </b>
114
+ # * <code>statementDescription => phoneNumber</code> Merchant contact phone number.
80
115
  # * <code>token</code> If specified, card associated with card token will be used. [max length: 255]
81
116
  # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
82
117
  # Returns a Authorization object.
@@ -99,9 +134,9 @@ class Authorization < Hash
99
134
 
100
135
  # Retrieve Authorization objects.
101
136
  # criteria:: a hash of parameters; valid keys are:
102
- # * <code>filter</code> Filters to apply to the list.
103
- # * <code>max</code> Allows up to a max of 50 list items to return. [max value: 50, default: 20]
104
- # * <code>offset</code> Used in pagination of the list. This is the start offset of the page. [default: 0]
137
+ # * <code>filter</code> <table class="filter_list"><tr><td>filter.id</td><td>Filter by the Authorization Id</td></tr><tr><td>filter.replayId</td><td>Filter by the compoundReplayId</td></tr><tr><td>filter.last4</td><td>Filter by the card number (last 4 digits)</td></tr><tr><td>filter.amount</td><td>Filter by the transaction amount (in the smallest unit of your currency)</td></tr><tr><td>filter.text</td><td>Filter by the description of the authorization</td></tr><tr><td>filter.amountMin & filter.amountMax</td><td>The filter amountMin must be used with amountMax to find authorizations with authorization values between the min and max</td></tr><tr><td>filter.dateCreatedMin<sup>*</sup></td><td>Filter by the minimum created date you are searching for - Date in UTC millis</td></tr><tr><td>filter.dateCreatedMax<sup>*</sup></td><td>Filter by the maximum created date you are searching for - Date in UTC millis</td></tr><tr><td>filter.deposit</td><td>Filter by the deposit id</td></tr><tr><td>filter.customer</td><td>Filter using the Id of the customer to find the authorizations for that customer</td></tr><tr><td>filter.status</td><td>Filter by the authorization status text</td></tr><tr><td>filter.authCode</td><td>Filter by the authorization code (Not the authorization ID)</td></tr><tr><td>filter.q</td><td>You can use this to filter by the ID, the authCode or the amount of the authorization</td></tr></table><br><sup>*</sup>Use dateCreatedMin with dateCreatedMax in the same filter if you want to search between two created dates
138
+ # * <code>max</code> Allows up to a max of 50 list items to return. [min value: 0, max value: 50, default: 20]
139
+ # * <code>offset</code> Used in pagination of the list. This is the start offset of the page. [min value: 0, default: 0]
105
140
  # * <code>sorting</code> Allows for ascending or descending sorting of the list. The value maps properties to the sort direction (either <code>asc</code> for ascending or <code>desc</code> for descending). Sortable properties are: <code> dateCreated</code><code> amount</code><code> id</code><code> description</code><code> paymentDate</code>.
106
141
  # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
107
142
  # Returns an object where the <code>list</code> property contains the list of Authorization objects and the <code>total</code>
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -65,11 +65,11 @@ class CardToken < Hash
65
65
  # * <code>card => addressCountry</code> Country code (ISO-3166-1-alpha-2 code) of residence of the cardholder. [max length: 2, min length: 2]
66
66
  # * <code>card => addressLine1</code> Address of the cardholder. [max length: 255]
67
67
  # * <code>card => addressLine2</code> Address of the cardholder if needed. [max length: 255]
68
- # * <code>card => addressState</code> State code (USPS code) of residence of the cardholder. [max length: 2, min length: 2]
69
- # * <code>card => addressZip</code> Postal code of the cardholder. The postal code size is between 5 and 9 in length and only contain numbers or letters. [max length: 9, min length: 3]
68
+ # * <code>card => addressState</code> State of residence of the cardholder. For the US, this is a 2-digit USPS code. [max length: 255]
69
+ # * <code>card => addressZip</code> Postal code of the cardholder. The postal code size is between 5 and 9 in length and only contain numbers or letters. [max length: 32]
70
70
  # * <code>card => cvc</code> CVC security code of the card. This is the code on the back of the card. Example: 123
71
71
  # * <code>card => expMonth</code> Expiration month of the card. Format is MM. Example: January = 01 [min value: 1, max value: 12] <b>required </b>
72
- # * <code>card => expYear</code> Expiration year of the card. Format is YY. Example: 2013 = 13 [max value: 99] <b>required </b>
72
+ # * <code>card => expYear</code> Expiration year of the card. Format is YY. Example: 2013 = 13 [min value: 0, max value: 99] <b>required </b>
73
73
  # * <code>card => name</code> Name as appears on the card. [max length: 50, min length: 2]
74
74
  # * <code>card => number</code> Card number as it appears on the card. [max length: 19, min length: 13] <b>required </b>
75
75
  # * <code>key</code> Key used to create the card token.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -59,9 +59,9 @@ class Chargeback < Hash
59
59
 
60
60
  # Retrieve Chargeback objects.
61
61
  # criteria:: a hash of parameters; valid keys are:
62
- # * <code>filter</code> Filters to apply to the list.
63
- # * <code>max</code> Allows up to a max of 50 list items to return. [max value: 50, default: 20]
64
- # * <code>offset</code> Used in paging of the list. This is the start offset of the page. [default: 0]
62
+ # * <code>filter</code> <table class="filter_list"><tr><td>filter.text</td><td>Filter by the description of the chargeback </td></tr><tr><td>filter.id</td><td>Filter by the chargeback Id</td></tr><tr><td>filter.amount</td><td>Filter by the chargeback amount (in the smallest unit of your currency)</td></tr><tr><td>filter.dateCreatedMin<sup>*</sup></td><td>Filter by the minimum created date you are searching for - Date in UTC millis</td></tr><tr><td>filter.dateCreatedMax<sup>*</sup></td><td>Filter by the maximum created date you are searching for - Date in UTC millis</td></tr><tr><td>filter.chargebackDateMin<sup>*</sup></td><td>Filter by the earliest chargeback date you are searching for - Date in UTC millis</td></tr><tr><td>filter.chargebackDateMax<sup>*</sup></td><td>Filter by the latest chargeback date you are searching for - Date in UTC millis</td></tr><tr><td>filter.deposit</td><td>Filter by the deposit id</td></tr><tr><td>filter.q</td><td>You can use this to filter by the Id, the payment card's last 4 digits or the chargeback amount</td></tr></table><br><sup>*</sup>Use dateCreatedMin with dateCreatedMax (or chargebackDateMin and chargebackDateMax) in the same filter if you want to search between two created dates
63
+ # * <code>max</code> Allows up to a max of 50 list items to return. [min value: 0, max value: 50, default: 20]
64
+ # * <code>offset</code> Used in paging of the list. This is the start offset of the page. [min value: 0, default: 0]
65
65
  # * <code>sorting</code> Allows for ascending or descending sorting of the list. The value maps properties to the sort direction (either <code>asc</code> for ascending or <code>desc</code> for descending). Sortable properties are: <code> id</code><code> amount</code><code> description</code><code> dateCreated</code>.
66
66
  # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
67
67
  # Returns an object where the <code>list</code> property contains the list of Chargeback objects and the <code>total</code>
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -30,7 +30,7 @@ module Simplify
30
30
  # Constants.
31
31
  class Constants
32
32
 
33
- @@version = '1.2.0'
33
+ @@version = '1.7.0'
34
34
  @@api_base_live_url = 'https://api.simplify.com/v1/api'
35
35
  @@api_base_sandbox_url = 'https://sandbox.simplify.com/v1/api'
36
36
  @@oauth_base_url = 'https://www.simplify.com/commerce/oauth';
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -60,12 +60,13 @@ class Coupon < Hash
60
60
  # Creates an Coupon object
61
61
  #
62
62
  # parms:: a hash of parameters; valid keys are:
63
- # * <code>amountOff</code> Amount off of the price of the product in the smallest units of the currency of the merchant. While this field is optional, you must provide either amountOff or percentOff for a coupon. Example: 100 = $1.00USD [min value: 1, max value: 9999900]
63
+ # * <code>amountOff</code> Amount off of the price of the product in the smallest units of the currency of the merchant. While this field is optional, you must provide either amountOff or percentOff for a coupon. Example: 100 = $1.00USD [min value: 1]
64
64
  # * <code>couponCode</code> Code that identifies the coupon to be used. [min length: 2] <b>required </b>
65
65
  # * <code>description</code> A brief section that describes the coupon.
66
- # * <code>durationInMonths</code> Duration in months that the coupon will be applied after it has first been selected. [min value: 1, max value: 9999]
66
+ # * <code>durationInMonths</code> DEPRECATED - Duration in months that the coupon will be applied after it has first been selected. [min value: 1, max value: 9999]
67
67
  # * <code>endDate</code> Last date of the coupon in UTC millis that the coupon can be applied to a subscription. This ends at 23:59:59 of the merchant timezone.
68
68
  # * <code>maxRedemptions</code> Maximum number of redemptions allowed for the coupon. A redemption is defined as when the coupon is applied to the subscription for the first time. [min value: 1]
69
+ # * <code>numTimesApplied</code> The number of times a coupon will be applied on a customer's subscription. [min value: 1, max value: 9999]
69
70
  # * <code>percentOff</code> Percentage off of the price of the product. While this field is optional, you must provide either amountOff or percentOff for a coupon. The percent off is a whole number. [min value: 1, max value: 100]
70
71
  # * <code>startDate</code> First date of the coupon in UTC millis that the coupon can be applied to a subscription. This starts at midnight of the merchant timezone. <b>required </b>
71
72
  # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
@@ -89,10 +90,10 @@ class Coupon < Hash
89
90
 
90
91
  # Retrieve Coupon objects.
91
92
  # criteria:: a hash of parameters; valid keys are:
92
- # * <code>filter</code> Filters to apply to the list.
93
- # * <code>max</code> Allows up to a max of 50 list items to return. [max value: 50, default: 20]
94
- # * <code>offset</code> Used in paging of the list. This is the start offset of the page. [default: 0]
95
- # * <code>sorting</code> Allows for ascending or descending sorting of the list. The value maps properties to the sort direction (either <code>asc</code> for ascending or <code>desc</code> for descending). Sortable properties are: <code> dateCreated</code><code> maxRedemptions</code><code> timesRedeemed</code><code> id</code><code> startDate</code><code> endDate</code><code> percentOff</code><code> couponCode</code><code> durationInMonths</code><code> amountOff</code>.
93
+ # * <code>filter</code> <table class="filter_list"><tr><td>filter.id</td><td>Filter by the coupon Id</td></tr><tr><td>filter.text</td><td>Filter by the coupon code</td></tr><tr><td>filter.dateCreatedMin<sup>*</sup></td><td>Filter by the minimum created date you are searching for - Date in UTC millis</td></tr><tr><td>filter.dateCreatedMax<sup>*</sup></td><td>Filter by the maximum created date you are searching for - Date in UTC millis</td></tr><tr><td>filter.startDateMin</td><td>Filter by the minimum coupon start date you are searching for - Date in UTC millis</td></tr><tr><td>filter.startDateMax</td><td>Filter by the maximum coupon start date you are searching for - Date in UTC millis</td></tr><tr><td>filter.endDateMin</td><td>Filter by the minimum coupon end date you are searching for - Date in UTC millis</td></tr><tr><td>filter.endDateMax</td><td>Filter by the maximum coupon end date you are searching for - Date in UTC millis</td></tr></table><br><sup>*</sup>Use dateCreatedMin with dateCreatedMax in the same filter if you want to search between two created dates
94
+ # * <code>max</code> Allows up to a max of 50 list items to return. [min value: 0, max value: 50, default: 20]
95
+ # * <code>offset</code> Used in paging of the list. This is the start offset of the page. [min value: 0, default: 0]
96
+ # * <code>sorting</code> Allows for ascending or descending sorting of the list. The value maps properties to the sort direction (either <code>asc</code> for ascending or <code>desc</code> for descending). Sortable properties are: <code> dateCreated</code><code> maxRedemptions</code><code> timesRedeemed</code><code> id</code><code> startDate</code><code> endDate</code><code> percentOff</code><code> couponCode</code><code> durationInMonths</code><code> numTimesApplied</code><code> amountOff</code>.
96
97
  # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
97
98
  # Returns an object where the <code>list</code> property contains the list of Coupon objects and the <code>total</code>
98
99
  # property contains the total number of Coupon objects available for the given criteria.
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -64,7 +64,7 @@ class Customer < Hash
64
64
  # * <code>card => addressCountry</code> Country code (ISO-3166-1-alpha-2 code) of residence of the cardholder. <b>required </b>
65
65
  # * <code>card => addressLine1</code> Address of the cardholder <b>required </b>
66
66
  # * <code>card => addressLine2</code> Address of the cardholder if needed. <b>required </b>
67
- # * <code>card => addressState</code> State code (USPS code) of residence of the cardholder. <b>required </b>
67
+ # * <code>card => addressState</code> State of residence of the cardholder. For the US, this is a 2-digit USPS code. <b>required </b>
68
68
  # * <code>card => addressZip</code> Postal code of the cardholder. The postal code size is between 5 and 9 in length and only contain numbers or letters. <b>required </b>
69
69
  # * <code>card => cvc</code> CVC security code of the card. This is the code on the back of the card. Example: 123 <b>required </b>
70
70
  # * <code>card => expMonth</code> Expiration month of the card. Format is MM. Example: January = 01 <b>required </b>
@@ -75,14 +75,18 @@ class Customer < Hash
75
75
  # * <code>email</code> Email address of the customer <b>required </b>
76
76
  # * <code>name</code> Customer name [min length: 2] <b>required </b>
77
77
  # * <code>reference</code> Reference field for external applications use.
78
- # * <code>subscriptions => amount</code> Amount of payment in the smallest unit of your currency. Example: 100 = $1.00USD [min value: 50, max value: 9999900]
78
+ # * <code>subscriptions => amount</code> Amount of payment in the smallest unit of your currency. Example: 100 = $1.00USD
79
+ # * <code>subscriptions => billingCycle</code> How the plan is billed to the customer. Values must be AUTO (indefinitely until the customer cancels) or FIXED (a fixed number of billing cycles). [default: AUTO]
80
+ # * <code>subscriptions => billingCycleLimit</code> The number of fixed billing cycles for a plan. Only used if the billingCycle parameter is set to FIXED. Example: 4
79
81
  # * <code>subscriptions => coupon</code> Coupon associated with the subscription for the customer.
80
82
  # * <code>subscriptions => currency</code> Currency code (ISO-4217). Must match the currency associated with your account. [default: USD]
81
83
  # * <code>subscriptions => customer</code> The customer ID to create the subscription for. Do not supply this when creating a customer.
82
- # * <code>subscriptions => frequency</code> Frequency of payment for the plan. Example: Monthly
84
+ # * <code>subscriptions => frequency</code> Frequency of payment for the plan. Used in conjunction with frequencyPeriod. Valid values are "DAILY", "WEEKLY", "MONTHLY" and "YEARLY".
85
+ # * <code>subscriptions => frequencyPeriod</code> Period of frequency of payment for the plan. Example: if the frequency is weekly, and periodFrequency is 2, then the subscription is billed bi-weekly.
83
86
  # * <code>subscriptions => name</code> Name describing subscription
84
87
  # * <code>subscriptions => plan</code> The plan ID that the subscription should be created from.
85
88
  # * <code>subscriptions => quantity</code> Quantity of the plan for the subscription. [min value: 1]
89
+ # * <code>subscriptions => renewalReminderLeadDays</code> If set, how many days before the next billing cycle that a renewal reminder is sent to the customer. If null, then no emails are sent. Minimum value is 7 if set.
86
90
  # * <code>token</code> If specified, card associated with card token will be used
87
91
  # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
88
92
  # Returns a Customer object.
@@ -105,9 +109,9 @@ class Customer < Hash
105
109
 
106
110
  # Retrieve Customer objects.
107
111
  # criteria:: a hash of parameters; valid keys are:
108
- # * <code>filter</code> Filters to apply to the list.
109
- # * <code>max</code> Allows up to a max of 50 list items to return. [max value: 50, default: 20]
110
- # * <code>offset</code> Used in paging of the list. This is the start offset of the page. [default: 0]
112
+ # * <code>filter</code> <table class="filter_list"><tr><td>filter.id</td><td>Filter by the customer Id</td></tr><tr><td>filter.text</td><td>Can use this to filter by the name, email or reference for the customer</td></tr><tr><td>filter.dateCreatedMin<sup>*</sup></td><td>Filter by the minimum created date you are searching for - Date in UTC millis</td></tr><tr><td>filter.dateCreatedMax<sup>*</sup></td><td>Filter by the maximum created date you are searching for - Date in UTC millis</td></tr></table><br><sup>*</sup>Use dateCreatedMin with dateCreatedMax in the same filter if you want to search between two created dates
113
+ # * <code>max</code> Allows up to a max of 50 list items to return. [min value: 0, max value: 50, default: 20]
114
+ # * <code>offset</code> Used in paging of the list. This is the start offset of the page. [min value: 0, default: 0]
111
115
  # * <code>sorting</code> Allows for ascending or descending sorting of the list. The value maps properties to the sort direction (either <code>asc</code> for ascending or <code>desc</code> for descending). Sortable properties are: <code> dateCreated</code><code> id</code><code> name</code><code> email</code><code> reference</code>.
112
116
  # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
113
117
  # Returns an object where the <code>list</code> property contains the list of Customer objects and the <code>total</code>
@@ -145,7 +149,7 @@ class Customer < Hash
145
149
  # * <code>card => addressCountry</code> Country code (ISO-3166-1-alpha-2 code) of residence of the cardholder. <b>(required)</b>
146
150
  # * <code>card => addressLine1</code> Address of the cardholder. <b>(required)</b>
147
151
  # * <code>card => addressLine2</code> Address of the cardholder if needed. <b>(required)</b>
148
- # * <code>card => addressState</code> State code (USPS code) of residence of the cardholder. <b>(required)</b>
152
+ # * <code>card => addressState</code> State of residence of the cardholder. For the US, this is a 2-digit USPS code. <b>(required)</b>
149
153
  # * <code>card => addressZip</code> Postal code of the cardholder. The postal code size is between 5 and 9 in length and only contain numbers or letters. <b>(required)</b>
150
154
  # * <code>card => cvc</code> CVC security code of the card. This is the code on the back of the card. Example: 123 <b>(required)</b>
151
155
  # * <code>card => expMonth</code> Expiration month of the card. Format is MM. Example: January = 01 <b>(required)</b>
@@ -0,0 +1,91 @@
1
+ #
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
+ # All rights reserved.
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without modification, are
6
+ # permitted provided that the following conditions are met:
7
+ #
8
+ # Redistributions of source code must retain the above copyright notice, this list of
9
+ # conditions and the following disclaimer.
10
+ # Redistributions in binary form must reproduce the above copyright notice, this list of
11
+ # conditions and the following disclaimer in the documentation and/or other materials
12
+ # provided with the distribution.
13
+ # Neither the name of the MasterCard International Incorporated nor the names of its
14
+ # contributors may be used to endorse or promote products derived from this software
15
+ # without specific prior written permission.
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
17
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19
+ # SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21
+ # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22
+ # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23
+ # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24
+ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
+ # SUCH DAMAGE.
26
+ #
27
+
28
+ require 'simplify/paymentsapi'
29
+
30
+ module Simplify
31
+
32
+ # A DataToken object.
33
+ #
34
+ class DataToken < Hash
35
+
36
+ # Authentication object used to access the API (See Simplify::Authentication for details)
37
+ attr_accessor :authentication
38
+
39
+ # Returns the public key used when accessing this object. <b>Deprecated: please use 'authentication' instead.</b>
40
+ def public_key
41
+ return self.authentication.public_key
42
+ end
43
+
44
+ # Sets the public key used when accessing this object. <b>Deprecated: please use 'authentication' instead.</b>
45
+ def public_key=(k)
46
+ return self.authentication.public_key = k
47
+ end
48
+
49
+ # Returns the private key used when accessing this object. <b>Deprecated: please use 'authentication' instead.</b>
50
+ def private_key
51
+ return self.authentication.private_key
52
+ end
53
+
54
+ # Sets the private key used when accessing this object. <b>Deprecated: please use 'authentication' instead.</b>
55
+ def private_key=(k)
56
+ return self.authentication.private_key = k
57
+ end
58
+
59
+
60
+ # Creates an DataToken object
61
+ #
62
+ # parms:: a hash of parameters; valid keys are:
63
+ # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
64
+ # Returns a DataToken object.
65
+ def self.create(parms, *auth)
66
+
67
+ auth_obj = Simplify::PaymentsApi.create_auth_object(auth)
68
+ h = Simplify::PaymentsApi.execute("dataToken", 'create', parms, auth_obj)
69
+ obj = DataToken.new()
70
+ obj.authentication = auth_obj
71
+ obj = obj.merge!(h)
72
+ obj
73
+ end
74
+
75
+ # Retrieve a DataToken object from the API
76
+ #
77
+ # id:: ID of object to retrieve
78
+ # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
79
+ # Returns a DataToken object.
80
+ def self.find(id, *auth)
81
+
82
+ auth_obj = Simplify::PaymentsApi.create_auth_object(auth)
83
+ h = Simplify::PaymentsApi.execute("dataToken", 'show', {"id" => id}, auth_obj)
84
+ obj = DataToken.new()
85
+ obj.authentication = auth_obj
86
+ obj = obj.merge!(h)
87
+ obj
88
+ end
89
+
90
+ end
91
+ end
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -59,9 +59,9 @@ class Deposit < Hash
59
59
 
60
60
  # Retrieve Deposit objects.
61
61
  # criteria:: a hash of parameters; valid keys are:
62
- # * <code>filter</code> Filters to apply to the list.
63
- # * <code>max</code> Allows up to a max of 50 list items to return. [max value: 50, default: 20]
64
- # * <code>offset</code> Used in paging of the list. This is the start offset of the page. [default: 0]
62
+ # * <code>filter</code> <table class="filter_list"><tr><td>filter.id</td><td>Filter by the deposit Id</td></tr><tr><td>filter.amount</td><td>Filter by the deposit amount (in the smallest unit of your currency)</td></tr><tr><td>filter.dateCreatedMin<sup>*</sup></td><td>Filter by the minimum created date you are searching for - Date in UTC millis</td></tr><tr><td>filter.dateCreatedMax<sup>*</sup></td><td>Filter by the maximum created date you are searching for - Date in UTC millis</td></tr><tr><td>filter.depositDateMin</td><td>Filter by the earliest deposit date you are searching for - Date in UTC millis</td></tr><tr><td>filter.depositDateMax</td><td>Filter by the latest deposit date you are searching for - Date in UTC millis</td></tr><tr><td>filter.creditCount</td><td>Filter by the creditCount figure for the deposit</td></tr><tr><td>filter.creditAmount</td><td>Filter by the creditAmount figure for the deposit</td></tr><tr><td>filter.debitCount</td><td>Filter by the debitCount figure for the deposit</td></tr><tr><td>filter.debitAmount</td><td>Filter by the debitAmount figure for the deposit</td></tr><tr><td>filter.netCount</td><td>Filter by the netCount figure for the deposit</td></tr><tr><td>filter.netAmount</td><td>Filter by the netAmount figure for the deposit</td></tr><tr><td>filter.q</td><td>You can use this to filter by different figures or strings - can be the Id, creditAmount or the debitAmount for the deposit</td></tr></table><br><sup>*</sup>Use dateCreatedMin with dateCreatedMax in the same filter if you want to search between two created dates
63
+ # * <code>max</code> Allows up to a max of 50 list items to return. [min value: 0, max value: 50, default: 20]
64
+ # * <code>offset</code> Used in paging of the list. This is the start offset of the page. [min value: 0, default: 0]
65
65
  # * <code>sorting</code> Allows for ascending or descending sorting of the list. The value maps properties to the sort direction (either <code>asc</code> for ascending or <code>desc</code> for descending). Sortable properties are: <code> amount</code><code> dateCreated</code><code> depositDate</code>.
66
66
  # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
67
67
  # Returns an object where the <code>list</code> property contains the list of Deposit objects and the <code>total</code>
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright (c) 2013, 2014 MasterCard International Incorporated
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
3
  # All rights reserved.
4
4
  #
5
5
  # Redistribution and use in source and binary forms, with or without modification, are
@@ -0,0 +1,145 @@
1
+ #
2
+ # Copyright (c) 2013 - 2016 MasterCard International Incorporated
3
+ # All rights reserved.
4
+ #
5
+ # Redistribution and use in source and binary forms, with or without modification, are
6
+ # permitted provided that the following conditions are met:
7
+ #
8
+ # Redistributions of source code must retain the above copyright notice, this list of
9
+ # conditions and the following disclaimer.
10
+ # Redistributions in binary form must reproduce the above copyright notice, this list of
11
+ # conditions and the following disclaimer in the documentation and/or other materials
12
+ # provided with the distribution.
13
+ # Neither the name of the MasterCard International Incorporated nor the names of its
14
+ # contributors may be used to endorse or promote products derived from this software
15
+ # without specific prior written permission.
16
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
17
+ # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18
+ # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
19
+ # SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20
+ # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21
+ # TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
22
+ # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23
+ # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
24
+ # IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25
+ # SUCH DAMAGE.
26
+ #
27
+
28
+ require 'simplify/paymentsapi'
29
+
30
+ module Simplify
31
+
32
+ # A FraudCheck object.
33
+ #
34
+ class FraudCheck < Hash
35
+
36
+ # Authentication object used to access the API (See Simplify::Authentication for details)
37
+ attr_accessor :authentication
38
+
39
+ # Returns the public key used when accessing this object. <b>Deprecated: please use 'authentication' instead.</b>
40
+ def public_key
41
+ return self.authentication.public_key
42
+ end
43
+
44
+ # Sets the public key used when accessing this object. <b>Deprecated: please use 'authentication' instead.</b>
45
+ def public_key=(k)
46
+ return self.authentication.public_key = k
47
+ end
48
+
49
+ # Returns the private key used when accessing this object. <b>Deprecated: please use 'authentication' instead.</b>
50
+ def private_key
51
+ return self.authentication.private_key
52
+ end
53
+
54
+ # Sets the private key used when accessing this object. <b>Deprecated: please use 'authentication' instead.</b>
55
+ def private_key=(k)
56
+ return self.authentication.private_key = k
57
+ end
58
+
59
+
60
+ # Creates an FraudCheck object
61
+ #
62
+ # parms:: a hash of parameters; valid keys are:
63
+ # * <code>amount</code> Amount of the transaction to be checked for fraud (in the smallest unit of your currency). Example: 100 = $1.00USD. This field is required if using “full” or “advanced” mode.
64
+ # * <code>card => addressCity</code> City of the cardholder. [max length: 50, min length: 2]
65
+ # * <code>card => addressCountry</code> Country code (ISO-3166-1-alpha-2 code) of residence of the cardholder. [max length: 2, min length: 2]
66
+ # * <code>card => addressLine1</code> Address of the cardholder. [max length: 255]
67
+ # * <code>card => addressLine2</code> Address of the cardholder if needed. [max length: 255]
68
+ # * <code>card => addressState</code> State of residence of the cardholder. For the US, this is a 2-digit USPS code. [max length: 255]
69
+ # * <code>card => addressZip</code> Postal code of the cardholder. The postal code size is between 5 and 9 characters in length and only contains numbers or letters. [max length: 32]
70
+ # * <code>card => cvc</code> CVC security code of the card. This is the code on the back of the card. Example: 123
71
+ # * <code>card => expMonth</code> Expiration month of the card. Format is MM. Example: January = 01 [min value: 1, max value: 12] <b>required </b>
72
+ # * <code>card => expYear</code> Expiration year of the card. Format is YY. Example: 2013 = 13 [min value: 0, max value: 99] <b>required </b>
73
+ # * <code>card => name</code> Name as it appears on the card. [max length: 50, min length: 2]
74
+ # * <code>card => number</code> Card number as it appears on the card. [max length: 19, min length: 13] <b>required </b>
75
+ # * <code>currency</code> Currency code (ISO-4217) for the transaction to be checked for fraud. This field is required if using “full” or “advanced” mode.
76
+ # * <code>description</code> - Description of the fraud check. [max length: 255]
77
+ # * <code>ipAddress</code> IP Address of the customer for which the fraud check is to be done. [max length: 45]
78
+ # * <code>mode</code> Fraud check mode. “simple” only does an AVS and CVC check; “advanced” does a complete fraud check, running the input against the set up rules. [valid values: simple, advanced, full] <b>required </b>
79
+ # * <code>sessionId</code> Session ID used during data collection. [max length: 255]
80
+ # * <code>token</code> Card token token representing card details for the card to be checked. [max length: 255]
81
+ # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
82
+ # Returns a FraudCheck object.
83
+ def self.create(parms, *auth)
84
+
85
+ auth_obj = Simplify::PaymentsApi.create_auth_object(auth)
86
+ h = Simplify::PaymentsApi.execute("fraudCheck", 'create', parms, auth_obj)
87
+ obj = FraudCheck.new()
88
+ obj.authentication = auth_obj
89
+ obj = obj.merge!(h)
90
+ obj
91
+ end
92
+
93
+ # Retrieve FraudCheck objects.
94
+ # criteria:: a hash of parameters; valid keys are:
95
+ # * <code>filter</code> Filters to apply to the list.
96
+ # * <code>max</code> Allows up to a max of 50 list items to return. [min value: 0, max value: 50, default: 20]
97
+ # * <code>offset</code> Used in paging of the list. This is the start offset of the page. [min value: 0, default: 0]
98
+ # * <code>sorting</code> Allows for ascending or descending sorting of the list. The value maps properties to the sort direction (either <code>asc</code> for ascending or <code>desc</code> for descending). Sortable properties are: <code> amount</code><code> dateCreated</code><code> fraudResult</code>.
99
+ # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
100
+ # Returns an object where the <code>list</code> property contains the list of FraudCheck objects and the <code>total</code>
101
+ # property contains the total number of FraudCheck objects available for the given criteria.
102
+ def self.list(criteria = nil, *auth)
103
+
104
+ auth_obj = Simplify::PaymentsApi.create_auth_object(auth)
105
+ h = Simplify::PaymentsApi.execute("fraudCheck", 'list', criteria, auth_obj)
106
+ obj = FraudCheck.new()
107
+ obj.authentication = auth_obj
108
+ obj = obj.merge!(h)
109
+ obj
110
+
111
+ end
112
+
113
+ # Retrieve a FraudCheck object from the API
114
+ #
115
+ # id:: ID of object to retrieve
116
+ # auth:: Authentication information used for the API call. If no value is passed the global keys Simplify::public_key and Simplify::private_key are used. For backwards compatibility the public and private keys may be passed instead of the authentication object.
117
+ # Returns a FraudCheck object.
118
+ def self.find(id, *auth)
119
+
120
+ auth_obj = Simplify::PaymentsApi.create_auth_object(auth)
121
+ h = Simplify::PaymentsApi.execute("fraudCheck", 'show', {"id" => id}, auth_obj)
122
+ obj = FraudCheck.new()
123
+ obj.authentication = auth_obj
124
+ obj = obj.merge!(h)
125
+ obj
126
+ end
127
+
128
+ # Updates this object
129
+ #
130
+ # The properties that can be updated:
131
+ # * <code>integratorAuthCode</code> Authorization code for the transaction. [max length: 255]
132
+ # * <code>integratorAvsAddressResponse</code> AVS address response. [max length: 255]
133
+ # * <code>integratorAvsZipResponse</code> AVS zip response. [max length: 255]
134
+ # * <code>integratorCvcResponse</code> CVC response. [max length: 255]
135
+ # * <code>integratorDeclineReason</code> Reason for the decline if applicable. [max length: 255]
136
+ # * <code>integratorTransactionRef</code> Reference id for the transaction. [max length: 255] <b>(required)</b>
137
+ # * <code>integratorTransactionStatus</code> Status of the transaction, valid values are "APPROVED", "DECLINED", "SETTLED", "REFUNDED" or "VOIDED".
138
+ def update()
139
+ h = Simplify::PaymentsApi.execute("fraudCheck", 'update', self, self.authentication)
140
+ self.merge!(h)
141
+ self
142
+ end
143
+
144
+ end
145
+ end