Skip to content

Commit

Permalink
Merge pull request #24 from intuit/feature/reconbatchid
Browse files Browse the repository at this point in the history
Feature/reconbatchid : Ignore unknown fields - SDK will ignore any unknown fields going forward
  • Loading branch information
abisalehalliprasan authored Sep 23, 2020
2 parents 5c8c81e + a4cfdf6 commit 77fe1c6
Show file tree
Hide file tree
Showing 17 changed files with 10 additions and 30 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Ignore Mac system files
.DS_store
.lock
.phpunit.result.cache
.idea
# Ignore all text files
*.txt

Expand Down
2 changes: 1 addition & 1 deletion samples/simplestart.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"country" => "US",
"postalCode" => "94086"
],
"expMonth" => "02",
"expMonth" => "12",
"expYear" => "2020",
"cvc" => "123"
],
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/BankAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/CaptureDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/CardPresent.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/Charge.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
8 changes: 6 additions & 2 deletions src/Modules/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ class Context
public $recurring;
public $isEcommerce;
public $tax;
public $reconBatchID;
public $paymentGroupingCode;
public $txnAuthorizationStamp;
public $paymentStatus;
public $merchantAccountNumber;
public $clientTransID;

public function __construct(array $array = array())
{
Expand All @@ -24,8 +30,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/CvcVerification.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/DeviceInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/ECheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/Refund.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/RefundDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/Modules/ZeroDollarVerification.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ public function __construct(array $array = array())
$this->{$name} = $value;
}
}
} else {
throw new \RuntimeException("Property name: [" . $name . "] is not a valid field for: [" . get_class($this) . "]. Please check your keys.");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/TestClientCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ final class TestClientCreator
public static function createInstance()
{
$client = new PaymentClient();
$client->setAccessToken("eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..Haiy8AqhFGlbWfn43gWY9Q.J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VGrTJ4tnvKmLlssZ7D2mJeEqxqVgsxdcfgUFU1PzUrUaUgXWepfvn-L2JJEEQ3D_hYgN6QnVhBzjfXiZXjIFVGYh9VhzILz5Cfap1IHBU6iedjc77eD690IJ9w6H8qwhFQY-t568rcmRg-zRYxiCbwfLqYS4tdZRMO-hNTr7fTd_nLP7Kkh-7o3qE1vvdMJYSDdrKo_aiy_7KjcYewlVIo1yVGnH4pMGbj0r50t3p35gEWs1aj2AvHSBv0_Vp3u_7manJ6bEnjz0qKfsooOFy6FQgMiZzKSMnbe2pk3P197kpca4kZ8XquwPTPJpq4s9Oi8kvZZwiZf9EEsVPgsuk6FH_LPVT7e7w4S4APAQnEY9OSS4c0gtcgMX_mDxKPrByGLa5eUJ4FGAgMYo6robqN3sQKJWOZOUvKAYYUOB6HYiOGZZy8X7aPBtikY_GwsFB0quh8uk0O7vwGwxLZJexPlxhomXuC6yWt5SF9aCIucQGq5Dlr1NOXCA2vb_rTWd3Qcdv_tikSTSYfDxPgQXEbY12TOmewL4Sr_6tyefNoHzaEw4.tmgHoz4YgKQV_3ItKBai0A")
->setEnvironment("sandbox");
return $client;
}
Expand Down

0 comments on commit 77fe1c6

Please sign in to comment.