From 3d0a949a116e7c0595e02d655af078683a596cfe Mon Sep 17 00:00:00 2001 From: Andrzej Rojek Date: Wed, 25 Sep 2013 22:37:42 +0200 Subject: [PATCH 1/3] Updated production API URL --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3850c4c4..9f6575bb 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Then set `api.Config.ClientId` to your MangoPay Client ID and `api.Config.ClientPassword` to your passphrase. `api.Config.BaseUrl` is set to sandbox environment by default. To enable production -environment, set it to `https://mangopay-api.leetchi.com`. +environment, set it to `https://api.mangopay.com`. import com.mangopay.MangoPayApi; From eaf92972663ea3ed57776aa0a4517c80b879ff43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergiusz=20Wo=C5=BAnicki?= Date: Thu, 26 Sep 2013 10:36:12 +0200 Subject: [PATCH 2/3] root url changed for preprod env ...to https://api-preprod.mangopay.com + Reusable removed from Card and CardRegistration --- dist/mangopaysdk.jar | Bin 124236 -> 124171 bytes src/com/mangopay/core/Configuration.java | 2 +- src/com/mangopay/entities/Card.java | 6 ------ .../mangopay/entities/CardRegistration.java | 5 ----- 4 files changed, 1 insertion(+), 12 deletions(-) diff --git a/dist/mangopaysdk.jar b/dist/mangopaysdk.jar index 4b7ccd514c24c3a41f45ef9265d1e3b8cfee0ff3..ea8f048f9b1a02a8be321ceb3eb1a1991eac7070 100644 GIT binary patch delta 3205 zcmZWr3sjWH6`s2bySThT77%cEQC{Wki5d|jh^Zj3!Nk@RBOE=^Vqya;U{o4JT0EFY zME#><>I)5_NlOa}(S?9OYSJK27gUhtLYkFt?AI+wF&fU3tzwh3;bLY;? zwlpaZH7RYA;^h`9LaYeczCPlpt-m}Khv!f5!KC5Cw7(oNVLk-2pMoC3*;x5|Sf=Dk zoz)NXxKg`dz1j|;m^1o?6S0EVMb^-;0d#}vxS2k$Lbv6WT&9p7fbm7)(vL?!ENf{MFe z`6OMzp~dBm3LfX4PiTh|=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94MPoZHQEDNA)hHJ`BKoSQ9u%Ofk@fp(g~ z1J$=?jYaDV3E>uOqn`ZOO4rbU+j8k~w;@1zG#8}!Vh_4Z4Qkq*3o2T4+q!`aSNyh! z>c+uW+P}k*wy;cG$mUaMv(S$lkxtda@?bpsA`x~zKl>TW^#-BroajdLhvk||huNCd zTLsdyNJY8QMcY}szm$EOY+lXAPeuUxYw?Buk9+CHD;n9S7dbZ=-`1x=B z8OvkKr}$c0Z{>$KNybqAgnq@Bc1`gesrrs}4)3s~pHxgi4s?|j+Q6YJRRZcMV|(0M z#rC+-TJ}Zw+Jn?v1m+2Uh!iwY; zZtaTQjpZk4xdmq7Fg9_K*dx!0{KWDRavWvQKaWpAz8HOrM;{tRbpI%b=vO@2c0xqi z*9RxPc8mpYpTeM2XVB1jWAcb(Iehe;nY}^WY)d=#HKzyCsxk1zX?pcU*{r{^4!8x| zbkTA~Q138RY`8x$txM0&Vs5i-sLj-E92TKoyROuj!M>E-!fZ&fCaxDkYscj$_tiM7 z|6(()B8}`+(?>1fOnvpw{vQOYP^$e68S$rMEE`c diff --git a/src/com/mangopay/core/Configuration.java b/src/com/mangopay/core/Configuration.java index 52e13a3e..ffbec95f 100644 --- a/src/com/mangopay/core/Configuration.java +++ b/src/com/mangopay/core/Configuration.java @@ -18,7 +18,7 @@ public class Configuration { /** * Base URL to MangoPay API */ - public String BaseUrl = "https://mangopay-api-inte.leetchi.com"; + public String BaseUrl = "https://api-preprod.mangopay.com"; /** * [INTERNAL USAGE ONLY] Switch debug mode: log all request and response data diff --git a/src/com/mangopay/entities/Card.java b/src/com/mangopay/entities/Card.java index 1a42f1f7..aeced117 100644 --- a/src/com/mangopay/entities/Card.java +++ b/src/com/mangopay/entities/Card.java @@ -46,10 +46,4 @@ public class Card extends EntityBase { * Validity. */ public String Validity; - - /** - * Reusable. - */ - public Boolean Reusable; - } diff --git a/src/com/mangopay/entities/CardRegistration.java b/src/com/mangopay/entities/CardRegistration.java index 3551325b..b6d89c9a 100644 --- a/src/com/mangopay/entities/CardRegistration.java +++ b/src/com/mangopay/entities/CardRegistration.java @@ -52,11 +52,6 @@ public class CardRegistration extends EntityBase { * Status. */ public String Status; - - /** - * Reusable. - */ - public Boolean Reusable; @Override public ArrayList getReadOnlyProperties() { From 4e217a9b6a2327837e5f170e4f0a405635222293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergiusz=20Wo=C5=BAnicki?= Date: Thu, 26 Sep 2013 14:45:58 +0200 Subject: [PATCH 3/3] FileStorageStrategy --- dist/mangopaysdk.jar | Bin 124171 -> 126563 bytes .../mangopay/core/FileStorageStrategy.java | 61 ++++++++++++++++++ src/com/mangopay/core/OAuthToken.java | 3 +- test/com/mangopay/core/TokensTest.java | 3 - 4 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 src/com/mangopay/core/FileStorageStrategy.java diff --git a/dist/mangopaysdk.jar b/dist/mangopaysdk.jar index ea8f048f9b1a02a8be321ceb3eb1a1991eac7070..2328c94dc56d5abfc03f677a654580766a907e3b 100644 GIT binary patch delta 4272 zcmZ`*3s_ZE7GCQD_rT?dye=Sb6cBl)<_neZkxwpySmP@Q>58a4y<{>OGG+M~A9Si+ z&1a(xS<^Ual3a+)oW{md1VjW;6qK3zEd6@S*Gzp*&0721i{yNB@3;5bd;R}fd#!c$ z-skN6Ou2DIQL`4hxS9am0S;Eys$&dqRMt)s+_yz?|LqvV!AdO*lWC$^a2$#H8cbDK z9(TVJ%(8jZLjhiIRHn|_ml^%}JU4)OZd&zgBgB+e98sT@y4a0Lbq@r(NTZo^Tv@u! zRTXJui`}*QO9Q}{2F+(~i1zgoMI7CXz9RG#de-M=UNtZ~ExXE-<@+mlOSxdp1sOtQ zS)BB`V8cx#;}fg4d$T;bqrk*6_Qln5wcW4WkaELo7ODTsTV+PM`no{v(QQV6ZAQ`l z9QtW}JKRLs1@x<5cldef@#kYXGJ++I0dl4F%@*mY`9!XZ4=4Tc9#iM5R6cGAT2!jp zbxzTGt5)3@Uj4WUB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