예제 #1
0
파일: Class13.cs 프로젝트: unionjl/CyberAIO
 // Token: 0x060000AD RID: 173 RVA: 0x0000B5A4 File Offset: 0x000097A4
 public void method_3()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4("Getting delivery method ID", "#c2c2c2", true, false);
             HttpResponseMessage httpResponseMessage = this.class70_0.method_5(string.Format("https://prod.jdgroupmesh.cloud/stores/{0}/carts/{1}/deliveryOptionsForProposedAddress?deliverylocale={2}&q={3}", new object[]
             {
                 this.string_0,
                 this.string_5,
                 Class167.smethod_0((string)this.jtoken_1["delivery"]["country"], false),
                 (string)this.jtoken_1["delivery"]["zip"]
             }), true);
             httpResponseMessage.EnsureSuccessStatusCode();
             this.string_8 = httpResponseMessage.smethod_0()["deliveryMethods"][0]["ID"].ToString();
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4("Error getting delivery method", "#c2c2c2", true, false);
             Thread.Sleep(GClass0.int_1);
             continue;
         }
         break;
     }
 }
예제 #2
0
    // Token: 0x06000ECA RID: 3786 RVA: 0x000452C4 File Offset: 0x000434C4
    private Class156 method_6(char char_1, bool bool_0)
    {
        this.int_0++;
        this.method_17("Path ended with open indexer.");
        if (this.string_0[this.int_0] != '(')
        {
            throw new JsonException("Unexpected character while parsing path indexer: " + this.string_0[this.int_0].ToString());
        }
        this.int_0++;
        Class167 class167_ = this.method_10();

        this.int_0++;
        this.method_17("Path ended with open indexer.");
        this.method_5();
        if (this.string_0[this.int_0] != char_1)
        {
            throw new JsonException("Unexpected character while parsing path indexer: " + this.string_0[this.int_0].ToString());
        }
        if (!bool_0)
        {
            Class162 @class = new Class162();
            @class.method_1(class167_);
            return(@class);
        }
        Class163 class2 = new Class163();

        class2.method_1(class167_);
        return(class2);
    }
예제 #3
0
파일: Class84.cs 프로젝트: unionjl/CyberAIO
 // Token: 0x0600033C RID: 828 RVA: 0x0001BC94 File Offset: 0x00019E94
 public void method_2()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4("Submitting payment", "orange", true, false);
             JObject jobject = JObject.Parse("{ \"data\": { \"user\": { \"first_name\": \"\", \"last_name\": \"\", \"email\": \"\", \"countryOfResidence\": \"GB\", \"country\": \"GB\", \"nationality\": \"GB\" }, \"billing_address\": { \"line1\": \"\", \"city\": \"\", \"state\": \"\", \"postal_code\": \"\", \"country\": \"GB\" }, \"shipping_address\": { \"first_name\": \"\", \"last_name\": \"\", \"line1\": \"\", \"country\": \"\" }, \"phone\": { \"type\": \"Mobile\", \"number\": \"\", \"countryCode\": \"44\" }, \"marketing_optin\": true, \"shipping_address_validation\": false, \"prox_flow\": false, \"testParams\": {}, \"content_identifier\": \"GB:en:3.0.16:undefined\", \"frs_optin_flow_applicable\": false, \"frs_optin_active_flow\": false, \"flow_eligibility_data\": { \"is_unbranded\": false, \"merchant_preferences\": { \"id\": \"\", \"meta\": { \"populated\": true }, \"auto_return\": { \"enabled\": false }, \"pdt\": { \"enabled\": false }, \"account_optional\": { \"enabled\": true }, \"merchant_blacklist\": { \"enabled\": false }, \"merchant_vertical_high_risk\": { \"enabled\": true }, \"charset\": \"windows-1252\" }, \"merchant_country\": \"US\" }, \"card\": { \"type\": \"\", \"number\": \"\", \"security_code\": \"\", \"expiry_month\": \"\", \"expiry_year\": \"\" }, \"skipInitiateAuth\": true }, \"meta\": { \"token\": \"\", \"calc\": \"\", \"csci\": \"\", \"locale\": { \"country\": \"GB\", \"language\": \"en\" }, \"state\": \"ui_checkout_guest\", \"app_name\": \"xoonboardingnodeweb\" } }");
             jobject["data"]["user"]["first_name"]              = this.jtoken_0["billing"]["first_name"];
             jobject["data"]["user"]["last_name"]               = this.jtoken_0["billing"]["last_name"];
             jobject["data"]["user"]["email"]                   = this.jtoken_0["payment"]["email"];
             jobject["data"]["billing_address"]["line1"]        = this.jtoken_0["billing"]["addr1"];
             jobject["data"]["billing_address"]["city"]         = this.jtoken_0["billing"]["city"];
             jobject["data"]["billing_address"]["state"]        = Class167.smethod_1((string)this.jtoken_0["billing"]["country"], (string)this.jtoken_0["billing"]["state"]);
             jobject["data"]["billing_address"]["postal_code"]  = this.jtoken_0["billing"]["zip"];
             jobject["data"]["billing_address"]["country"]      = Class167.smethod_0((string)this.jtoken_0["billing"]["country"], false);
             jobject["data"]["shipping_address"]["first_name"]  = this.jtoken_0["delivery"]["first_name"];
             jobject["data"]["shipping_address"]["last_name"]   = this.jtoken_0["delivery"]["last_name"];
             jobject["data"]["shipping_address"]["line1"]       = this.jtoken_0["delivery"]["addr1"];
             jobject["data"]["shipping_address"]["city"]        = this.jtoken_0["delivery"]["city"];
             jobject["data"]["shipping_address"]["state"]       = Class167.smethod_1((string)this.jtoken_0["delivery"]["country"], (string)this.jtoken_0["delivery"]["state"]);
             jobject["data"]["shipping_address"]["postal_code"] = this.jtoken_0["delivery"]["zip"];
             jobject["data"]["shipping_address"]["country"]     = Class167.smethod_0((string)this.jtoken_0["delivery"]["country"], false);
             jobject["data"]["phone"]["number"]                 = this.jtoken_0["payment"]["phone"];
             jobject["data"]["card"]["type"]          = "MASTERCARD";
             jobject["data"]["card"]["number"]        = this.jtoken_0["payment"]["card"]["number"].ToString().Replace(" ", string.Empty);
             jobject["data"]["card"]["expiry_month"]  = this.jtoken_0["payment"]["card"]["exp_month"];
             jobject["data"]["card"]["expiry_year"]   = this.jtoken_0["payment"]["card"]["exp_year"];
             jobject["data"]["card"]["security_code"] = this.jtoken_0["payment"]["card"]["cvv"];
             jobject["data"]["flow_eligibility_data"]["merchant_preferences"]["id"] = this.string_4;
             jobject["meta"]["token"] = this.string_1;
             jobject["meta"]["calc"]  = this.string_2;
             jobject["meta"]["csci"]  = this.string_3;
             this.class70_0.method_9("https://www.paypal.com/webapps/xoonboarding/api/onboard/guest", jobject, false);
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4("Error submitting payment", "#c2c2c2", true, false);
             Thread.Sleep(GClass0.int_1);
             continue;
         }
         break;
     }
 }
예제 #4
0
 // Token: 0x0600060A RID: 1546 RVA: 0x000337C4 File Offset: 0x000319C4
 public void method_8()
 {
     this.dictionary_0["order[billing_name]"]      = (string)this.jtoken_0["billing"]["first_name"] + " " + (string)this.jtoken_0["billing"]["last_name"];
     this.dictionary_0["order[email]"]             = (string)this.jtoken_0["payment"]["email"];
     this.dictionary_0["order[tel]"]               = (string)this.jtoken_0["payment"]["phone"];
     this.dictionary_0["order[billing_address]"]   = (string)this.jtoken_0["billing"]["addr1"];
     this.dictionary_0["order[billing_address_2]"] = (string)this.jtoken_0["billing"]["addr2"];
     this.dictionary_0["order[billing_city]"]      = (string)this.jtoken_0["billing"]["city"];
     this.dictionary_0["order[billing_zip]"]       = (string)this.jtoken_0["billing"]["zip"];
     this.dictionary_0["order[billing_country]"]   = Class167.smethod_0((string)this.jtoken_0["billing"]["country"], true);
     this.dictionary_0["order[billing_state]"]     = Class167.smethod_1((string)this.jtoken_0["billing"]["country"], (string)this.jtoken_0["billing"]["state"]);
     this.dictionary_0["order[terms]"]             = "1";
     this.dictionary_0[(this.string_6 == "EU") ? "credit_card[cnb]" : "credit_card[nlb]"] = ((string)this.jtoken_0["payment"]["card"]["number"]).Replace(" ", string.Empty);
     this.dictionary_0["credit_card[month]"] = (string)this.jtoken_0["payment"]["card"]["exp_month"];
     this.dictionary_0["credit_card[year]"]  = (string)this.jtoken_0["payment"]["card"]["exp_year"];
     this.dictionary_0[(this.string_6 == "EU") ? "credit_card[vval]" : "credit_card[rvv]"] = (string)this.jtoken_0["payment"]["card"]["cvv"];
 }
예제 #5
0
파일: Class13.cs 프로젝트: unionjl/CyberAIO
 // Token: 0x060000B5 RID: 181 RVA: 0x0000BF3C File Offset: 0x0000A13C
 private void method_11()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4("Collecting delivery data", "#c2c2c2", true, false);
             JObject jobject = new JObject();
             jobject["firstName"] = this.jtoken_1["delivery"]["first_name"];
             jobject["lastName"]  = this.jtoken_1["delivery"]["last_name"];
             jobject["email"]     = this.jtoken_1["payment"]["email"];
             jobject["phone"]     = this.jtoken_1["payment"]["phone"];
             jobject["enrolledForEmailMarketing"] = false;
             jobject["isGuest"] = true;
             JObject jobject2 = jobject;
             JObject jobject3 = new JObject();
             jobject3["firstName"] = this.jtoken_1["delivery"]["first_name"];
             jobject3["lastName"]  = this.jtoken_1["delivery"]["last_name"];
             jobject3["address1"]  = this.jtoken_1["delivery"]["addr1"];
             jobject3["address2"]  = this.jtoken_1["delivery"]["addr2"];
             jobject3["country"]   = this.jtoken_1["delivery"]["country"];
             jobject3["locale"]    = Class167.smethod_0((string)this.jtoken_1["delivery"]["country"], false);
             jobject3["state"]     = Class167.smethod_1((string)this.jtoken_1["delivery"]["country"], (string)this.jtoken_1["delivery"]["state"]);
             jobject3["postcode"]  = this.jtoken_1["delivery"]["zip"];
             jobject3["town"]      = this.jtoken_1["delivery"]["city"];
             jobject3["isPrimaryBillingAddress"] = false;
             jobject3["isPrimaryAddress"]        = true;
             JObject jobject4 = jobject3;
             JObject jobject5 = new JObject();
             jobject5["firstName"] = this.jtoken_1["billing"]["first_name"];
             jobject5["lastName"]  = this.jtoken_1["billing"]["last_name"];
             jobject5["address1"]  = this.jtoken_1["billing"]["addr1"];
             jobject5["address2"]  = this.jtoken_1["billing"]["addr2"];
             jobject5["country"]   = this.jtoken_1["billing"]["first_ncountryame"];
             jobject5["locale"]    = Class167.smethod_0((string)this.jtoken_1["billing"]["country"], false);
             jobject5["state"]     = Class167.smethod_1((string)this.jtoken_1["billing"]["country"], (string)this.jtoken_1["billing"]["state"]);
             jobject5["postcode"]  = this.jtoken_1["billing"]["zip"];
             jobject5["town"]      = this.jtoken_1["billing"]["city"];
             jobject5["isPrimaryBillingAddress"] = true;
             jobject5["isPrimaryAddress"]        = false;
             JObject jobject6 = jobject5;
             jobject2["addresses"] = new JArray(new object[]
             {
                 jobject4,
                 jobject6
             });
             HttpResponseMessage httpResponseMessage = this.class70_0.method_9(string.Format("https://prod.jdgroupmesh.cloud/stores/{0}/customers", this.string_0), jobject2, true);
             if (httpResponseMessage.StatusCode == HttpStatusCode.Conflict)
             {
                 this.class4_0.method_0("Invalid info", "red", false);
             }
             httpResponseMessage.EnsureSuccessStatusCode();
             this.string_6 = httpResponseMessage.smethod_0()["ID"].ToString();
             this.string_7 = httpResponseMessage.smethod_0()["addresses"][0]["ID"].ToString();
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4("Error collecting delivery data", "#c2c2c2", true, false);
             Thread.Sleep(GClass0.int_1);
             continue;
         }
         break;
     }
 }
예제 #6
0
파일: Class13.cs 프로젝트: unionjl/CyberAIO
 // Token: 0x060000B4 RID: 180 RVA: 0x00003283 File Offset: 0x00001483
 private bool method_10(JToken jtoken_2)
 {
     return(Class167.smethod_2(this.string_4, jtoken_2["name"].ToString()));
 }
예제 #7
0
    // Token: 0x06000ECE RID: 3790 RVA: 0x000454CC File Offset: 0x000436CC
    private Class167 method_10()
    {
        Class167 @class = null;
        Class168 class2 = null;

        while (this.int_0 < this.string_0.Length)
        {
            object object_  = this.method_9();
            object object_2 = null;
            if (this.string_0[this.int_0] == ')' || this.string_0[this.int_0] == '|')
            {
                goto IL_67;
            }
            if (this.string_0[this.int_0] == '&')
            {
                goto IL_67;
            }
            Enum10 enum10_ = this.method_15();
            object_2 = this.method_9();
IL_6A:
            Class169 class3 = new Class169();
            class3.method_3(object_);
            class3.method_1(enum10_);
            class3.method_5(object_2);
            Class169 class4 = class3;
            if (this.string_0[this.int_0] == ')')
            {
                if (class2 != null)
                {
                    class2.method_2().Add(class4);
                    return(@class);
                }
                return(class4);
            }
            else
            {
                if (this.string_0[this.int_0] == '&')
                {
                    if (!this.method_14("&&"))
                    {
                        throw this.method_8();
                    }
                    if (class2 == null || class2.method_0() != (Enum10)8)
                    {
                        Class168 class5 = new Class168();
                        class5.method_1((Enum10)8);
                        Class168 class6 = class5;
                        if (class2 != null)
                        {
                            class2.method_2().Add(class6);
                        }
                        class2 = class6;
                        if (@class == null)
                        {
                            @class = class2;
                        }
                    }
                    class2.method_2().Add(class4);
                }
                if (this.string_0[this.int_0] != '|')
                {
                    continue;
                }
                if (this.method_14("||"))
                {
                    if (class2 == null || class2.method_0() != (Enum10)9)
                    {
                        Class168 class7 = new Class168();
                        class7.method_1((Enum10)9);
                        Class168 class8 = class7;
                        if (class2 != null)
                        {
                            class2.method_2().Add(class8);
                        }
                        class2 = class8;
                        if (@class == null)
                        {
                            @class = class2;
                        }
                    }
                    class2.method_2().Add(class4);
                    continue;
                }
                throw this.method_8();
            }
IL_67:
            enum10_ = (Enum10)3;
            goto IL_6A;
        }
        throw new JsonException("Path ended with open query.");
    }
예제 #8
0
 // Token: 0x0600015B RID: 347 RVA: 0x0000ED5C File Offset: 0x0000CF5C
 public void method_5(bool bool_2)
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4("Submitting shipping", "#c2c2c2", true, false);
             JObject jobject      = new JObject();
             string  propertyName = "order";
             JObject jobject2     = new JObject();
             jobject2["bill_address_attributes"] = new JObject();
             jobject2["ship_address_attributes"] = new JObject();
             jobject2["email"] = this.jtoken_1["payment"]["email"];
             jobject2["state_lock_version"] = "0";
             object key = "firstname";
             jobject2["bill_address_attributes"][key] = this.jtoken_1["billing"]["first_name"];
             object key2 = "lastname";
             jobject2["bill_address_attributes"][key2] = this.jtoken_1["billing"]["last_name"];
             object key3 = "address1";
             jobject2["bill_address_attributes"][key3] = this.jtoken_1["billing"]["addr1"];
             object key4 = "address2";
             jobject2["bill_address_attributes"][key4] = this.jtoken_1["billing"]["addr2"];
             object key5 = "city";
             jobject2["bill_address_attributes"][key5] = this.jtoken_1["billing"]["city"];
             object key6 = "country_id";
             jobject2["bill_address_attributes"][key6] = this.method_1((string)this.jtoken_1["billing"]["country"]);
             object key7 = "zipcode";
             jobject2["bill_address_attributes"][key7] = this.jtoken_1["billing"]["zip"];
             object key8 = "phone";
             jobject2["bill_address_attributes"][key8] = this.jtoken_1["payment"]["phone"];
             object key9 = "state_name";
             jobject2["bill_address_attributes"][key9] = Class167.smethod_1((string)this.jtoken_1["billing"]["country"], (string)this.jtoken_1["billing"]["state"]);
             object key10 = "firstname";
             jobject2["ship_address_attributes"][key10] = this.jtoken_1["delivery"]["first_name"];
             object key11 = "lastname";
             jobject2["ship_address_attributes"][key11] = this.jtoken_1["delivery"]["last_name"];
             object key12 = "address1";
             jobject2["ship_address_attributes"][key12] = this.jtoken_1["delivery"]["addr1"];
             object key13 = "address2";
             jobject2["ship_address_attributes"][key13] = this.jtoken_1["delivery"]["addr2"];
             object key14 = "city";
             jobject2["ship_address_attributes"][key14] = this.jtoken_1["delivery"]["city"];
             object key15 = "country_id";
             jobject2["ship_address_attributes"][key15] = this.method_1((string)this.jtoken_1["delivery"]["country"]);
             object key16 = "state_name";
             jobject2["ship_address_attributes"][key16] = Class167.smethod_1((string)this.jtoken_1["delivery"]["country"], (string)this.jtoken_1["delivery"]["state"]);
             object key17 = "zipcode";
             jobject2["ship_address_attributes"][key17] = this.jtoken_1["delivery"]["zip"];
             object key18 = "phone";
             jobject2["ship_address_attributes"][key18] = this.jtoken_1["payment"]["phone"];
             object key19 = "shipping";
             jobject2["ship_address_attributes"][key19] = "true";
             jobject2["terms_and_conditions"]           = "yes";
             jobject[propertyName] = jobject2;
             JObject             jobject_            = jobject;
             HttpResponseMessage httpResponseMessage = this.class70_0.method_12("https://www.antonioli.eu/en/GB/checkout/update/address", jobject_, bool_2);
             if (httpResponseMessage.smethod_3().Contains("order_ship_address_attributes_state"))
             {
                 this.class4_0.method_0("Invalid shipping", "red", false);
             }
             if (bool_2)
             {
                 HtmlDocument htmlDocument = new HtmlDocument();
                 htmlDocument.LoadHtml(httpResponseMessage.smethod_3());
                 this.string_10 = htmlDocument.DocumentNode.SelectSingleNode("//meta[@name='CART_PATH']").Attributes["content"].Value.Split(new char[]
                 {
                     '/'
                 })[4];
                 this.string_7 = httpResponseMessage.smethod_3().Replace(" ", string.Empty).Split(new string[]
                 {
                     "Spree.current_order_id=\""
                 }, StringSplitOptions.None)[1].Split(new char[]
                 {
                     '"'
                 })[0];
                 this.string_6 = htmlDocument.DocumentNode.SelectSingleNode("//span[@class='amount']").InnerText.Replace(" ", string.Empty).Replace("€", string.Empty);
             }
             else
             {
                 this.string_10 = httpResponseMessage.Headers.Location.ToString().Split(new char[]
                 {
                     '/'
                 })[4];
             }
             this.class4_0.method_4("Detected region: " + this.string_10, "#c2c2c2", true, false);
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4("Error submitting shipping", "#c2c2c2", true, false);
             Thread.Sleep(GClass0.int_0);
             continue;
         }
         break;
     }
 }
예제 #9
0
 // Token: 0x06000227 RID: 551 RVA: 0x000134FC File Offset: 0x000116FC
 public void method_4()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4("Submitting shipping", "#c2c2c2", true, false);
             Dictionary <string, string> dictionary = Class70.smethod_1();
             dictionary["SynchronizerToken"] = this.string_3;
             dictionary["billing_Address3"]  = string.Empty;
             dictionary["isshippingaddress"] = string.Empty;
             dictionary["billing_Title"]     = "common.account.salutation.mr.text";
             dictionary["billing_FirstName"] = (string)this.jtoken_0["billing"]["first_name"];
             dictionary["billing_LastName"]  = (string)this.jtoken_0["billing"]["last_name"];
             dictionary["billing_Address1"]  = (string)this.jtoken_0["billing"]["addr1"];
             dictionary["billing_Address2"]  = (this.jtoken_0["billing"]["addr1"].ToString().Split(new char[]
             {
                 ' '
             })[0].smethod_0() ? this.jtoken_0["billing"]["addr1"].ToString().Split(new char[]
             {
                 ' '
             })[0] : "0");
             dictionary["billing_Address3"]         = (string)this.jtoken_0["billing"]["addr2"];
             dictionary["billing_City"]             = (string)this.jtoken_0["billing"]["city"];
             dictionary["billing_PostalCode"]       = (string)this.jtoken_0["billing"]["zip"];
             dictionary["billing_CountryCode"]      = Class167.smethod_0((string)this.jtoken_0["billing"]["country"], false);
             dictionary["billing_PhoneHome"]        = (string)this.jtoken_0["payment"]["phone"];
             dictionary["billing_BirthdayRequired"] = "true";
             dictionary["billing_Birthday_Day"]     = "01";
             dictionary["billing_Birthday_Month"]   = "01";
             dictionary["billing_Birthday_Year"]    = "1990";
             dictionary["email_Email"] = (string)this.jtoken_0["payment"]["email"];
             dictionary["billing_ShippingAddressSameAsBilling"] = string.Empty;
             dictionary["isshippingaddress"]  = string.Empty;
             dictionary["shipping_Title"]     = "common.account.salutation.mr.text";
             dictionary["shipping_FirstName"] = (string)this.jtoken_0["delivery"]["first_name"];
             dictionary["shipping_LastName"]  = (string)this.jtoken_0["delivery"]["last_name"];
             dictionary["shipping_Address1"]  = (string)this.jtoken_0["delivery"]["addr1"];
             dictionary["shipping_Address2"]  = (this.jtoken_0["delivery"]["addr1"].ToString().Split(new char[]
             {
                 ' '
             })[0].smethod_0() ? this.jtoken_0["delivery"]["addr1"].ToString().Split(new char[]
             {
                 ' '
             })[0] : "0");
             dictionary["shipping_Address3"]                       = (string)this.jtoken_0["delivery"]["addr2"];
             dictionary["shipping_City"]                           = (string)this.jtoken_0["delivery"]["city"];
             dictionary["shipping_PostalCode"]                     = (string)this.jtoken_0["delivery"]["zip"];
             dictionary["shipping_CountryCode"]                    = Class167.smethod_0((string)this.jtoken_0["delivery"]["country"], false);
             dictionary["shipping_PhoneHome"]                      = (string)this.jtoken_0["payment"]["phone"];
             dictionary["promotionCode"]                           = string.Empty;
             dictionary["PaymentServiceSelection"]                 = "dMKsFf0SbRcAAAFNHN88qNaq";
             dictionary["UserDeviceTypeForPaymentRedirect"]        = "Desktop";
             dictionary["UserDeviceFingerprintForPaymentRedirect"] = "0400bpNfiPCR/AUNf94lis1zttlRfx+VM0Kfnrp/XmcfWoVVgr+Rt2dAZDYKGojTbbj7Ay36XoqtPmZFXM8jbbY2/zc5J3xnltE7Kq6IhM8HltvDlnXzDbRRZMFlj8uo417+TgsSA5y2mIsp2U5yrYp+5igWriMua6v6UX8EvCKxLeADvSEJLLdt5Y3XI2c5FEWnEFb7LoXxcUNydzLtG4iIzgeXlR0StWcKxwwBzmqrQiWxH1ZPRIwM6njw/ujAyYdbGKZt5JLThTvosS1xgSAgNfLEMokGoGJxgu1y04HLnOzU8XBpd1sDgWA73rYZtIsVyoA80pXCaXawrwf88vayC9C1UJgA1BQZQ4JudHOlf1KSnrbJSNyIsWB9R+WFa6fdxifyrThRovESnjwNVGXSgGQ8InPsuf6/kpMgG84gzO5PMQF00uJew9XqxzJ4y+q4+f7ypk+EO6/K3oOxQXYZs5cTbAHNea+iljAlWwXHcT+hgN6tJA4p1nA+k9XRlIy/cY2AmTS50PVkkRWvZSWgvJFEYUMEnFwrc5V3eY0fJJ82UD3fyk93hC6Bo0qhcOVgxA9x3qRKbjM42PnqoOsl8d3pZ/WuuaUQfveZj4MPqv5NOao4N+06jVc4K6FMki+uv9eOvsyvTBVVGK66EXEuaD0YLXuOWeFzAIsjF5E9P9gJB/s4Mwp5boWRHa+7AHqtF/5t+EKgbjXypamhTYJ5p2IPArjDreTC6uFgohzG6thap+9nixWCRWREjH59g5/QSzKz6zFbyZbyxPMQMv7YZ9mxtLKX2QfncSs2NHNZzALZjVp/OGcTE5Ppv736RSsQQEdu2XYvr46icoEUIBl9dJXAAYR3cfgvWnUHhXIkRJtofM5fO4/4C0OCbnRzpX9Skp62yUjciLFgfUflhWun3cYn8q04UaLxEp48DVRl0oBkPCJz7Ln+v5KTIBvOIMzuTzEBdNLiXsPV6scyeMvquPn+8qZPhDuvyt6DsUF2GbOXE2wBzXmvopYwJVsFx3E/58zGq/hZ0ZoyseD0G1/ThxEIvsJRqGfF9spFd7LTpxjhrt64WqIxSK+Vx63F6egN3u5bh8qtOMZhKoST0dhOCOCSU0oZPWNEfF9hXdZ4DRRkrbXWcoCj3I1znntcmg8XIiroNPn6uMT9rxZ7qeEFWXvYjosNCV2dXBYj5IxcLNnvxD/oqMJgm1d3aCEiD23NlOpKlXmV+KS2uervLu8rEx2v132icTYH9sO5D0viD2MsPiZXdNCqfEJwopp3NVIs753xO5Dlr7rXIj00GhUM5orPJVs30sKGZpQRyqKemuLh5VgYvHz52A5oR/IjU+bZjD2O3xUgB+ZtAeHicfLGEKOaSzC6VU9YFFAN6Q1x80WrOPxkUl4i0OeEAjcm7IafMZnevnJtZXgW8Ti68OEwdR5bFcY0rffe2F6NwUwl9obF7jnnc2OUoJ66f15nH1qFVYK/kbdnQGQ2ChqI0224+wMt+l6KrT5mRVzPI222Nv83OSd8Z5bROyquiITPB5bbw5Z18w20UWTBZY/LqONe/k4LEgOctpiLm7rt2eh0RPb1qSJ4QkEi4ePC0vr6rGjmiuv6Xcf4KsKcyM+vwDgHEslOao6gdlb4DUQ/VC4QLgeTp/wvJgFL36CNErrskd0rffV0eXh8dt4Fc+Wqw46CU3fMAd2G/BPPj9Gxv852VX+8flCx6w8epyEV4N7/nQa6Bmocq+j+UE+Ck+l6uGF9YNpL0WZ9Juyy";
             dictionary["ShippingMethodUUID"]                      = "nS2sFf0L12MAAAFZ6j3hqc5n";
             dictionary["termsAndConditions"]                      = "on";
             dictionary["email_Newsletter"]                        = "true";
             dictionary["GDPRDataComplianceRequired"]              = "true";
             dictionary["sendOrder"] = string.Empty;
             HttpResponseMessage httpResponseMessage_ = this.class70_0.method_7(string.Format("https://{0}/INTERSHOP/web/WFS/Footlocker-Footlocker_GB-Site/en_GB/-/GBP/ViewCheckoutOverview-Dispatch", this.string_4), dictionary, true);
             if (httpResponseMessage_.smethod_3().Contains("Checkout is currently not possible"))
             {
                 throw new Exception();
             }
             HtmlDocument htmlDocument = new HtmlDocument();
             htmlDocument.LoadHtml(httpResponseMessage_.smethod_3());
             foreach (HtmlNode htmlNode in ((IEnumerable <HtmlNode>)htmlDocument.DocumentNode.SelectNodes("//form//input")))
             {
                 if (htmlNode.Attributes.Contains("value") && htmlNode.Attributes.Contains("name"))
                 {
                     this.dictionary_1[htmlNode.Attributes["name"].Value] = htmlNode.Attributes["value"].Value;
                 }
             }
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4("Error submitting shipping", "#c2c2c2", true, false);
             Thread.Sleep(Settings.Default.retry_delay);
             continue;
         }
         break;
     }
 }
 public abstract void Visit(Class167 c);
 public override void Visit(Class167 c) { }
예제 #12
0
 public void method_1(Class167 class167_1)
 {
     this.class167_0 = class167_1;
 }
예제 #13
0
 // Token: 0x06000610 RID: 1552 RVA: 0x00005EAE File Offset: 0x000040AE
 private bool method_14(JToken jtoken_2)
 {
     return(Class167.smethod_2(this.string_9, jtoken_2["name"].ToString().smethod_3().ToLower()));
 }
예제 #14
0
 // Token: 0x0600060B RID: 1547 RVA: 0x00033B08 File Offset: 0x00031D08
 public void method_9()
 {
     this.class4_0.method_4("Building checkout form", "#c2c2c2", true, false);
     for (;;)
     {
         try
         {
             HttpResponseMessage httpResponseMessage = this.class70_0.method_5("https://www.supremenewyork.com/checkout", false);
             if (httpResponseMessage.StatusCode == HttpStatusCode.Found)
             {
                 this.class4_0.method_4("Waiting for restock", "#c2c2c2", true, false);
                 this.method_1();
                 break;
             }
             httpResponseMessage.EnsureSuccessStatusCode();
             HtmlDocument htmlDocument = new HtmlDocument();
             htmlDocument.LoadHtml(httpResponseMessage.smethod_3());
             this.dictionary_0 = Class70.smethod_1();
             foreach (HtmlNode htmlNode in ((IEnumerable <HtmlNode>)htmlDocument.DocumentNode.SelectNodes("//form//input")))
             {
                 this.dictionary_0[htmlNode.Attributes["name"].Value] = (htmlNode.Attributes.Contains("value") ? htmlNode.Attributes["value"].Value : string.Empty);
             }
             if (this.string_6 == "EU")
             {
                 HtmlNodeCollection htmlNodeCollection  = htmlDocument.DocumentNode.SelectNodes("//form//input");
                 HtmlNodeCollection htmlNodeCollection2 = htmlDocument.DocumentNode.SelectNodes("//form//select");
                 this.dictionary_0[htmlNodeCollection[2].Attributes["name"].Value]  = (string)this.jtoken_0["billing"]["first_name"] + " " + (string)this.jtoken_0["billing"]["last_name"];
                 this.dictionary_0[htmlNodeCollection[3].Attributes["name"].Value]  = (string)this.jtoken_0["payment"]["email"];
                 this.dictionary_0[htmlNodeCollection[4].Attributes["name"].Value]  = (string)this.jtoken_0["payment"]["phone"];
                 this.dictionary_0[htmlNodeCollection[5].Attributes["name"].Value]  = (string)this.jtoken_0["billing"]["addr1"];
                 this.dictionary_0[htmlNodeCollection[6].Attributes["name"].Value]  = (string)this.jtoken_0["billing"]["addr2"];
                 this.dictionary_0[htmlNodeCollection[8].Attributes["name"].Value]  = (string)this.jtoken_0["billing"]["city"];
                 this.dictionary_0[htmlNodeCollection[9].Attributes["name"].Value]  = (string)this.jtoken_0["billing"]["zip"];
                 this.dictionary_0[htmlNodeCollection2[0].Attributes["name"].Value] = Class167.smethod_0((string)this.jtoken_0["billing"]["country"], true);
                 this.dictionary_0[htmlNodeCollection[10].Attributes["name"].Value] = htmlNodeCollection[10].Attributes["value"].Value;
                 this.dictionary_0[htmlNodeCollection[13].Attributes["name"].Value] = ((string)this.jtoken_0["payment"]["card"]["number"]).Replace(" ", string.Empty);
                 this.dictionary_0[htmlNodeCollection2[2].Attributes["name"].Value] = (string)this.jtoken_0["payment"]["card"]["exp_month"];
                 this.dictionary_0[htmlNodeCollection2[3].Attributes["name"].Value] = (string)this.jtoken_0["payment"]["card"]["exp_year"];
                 this.dictionary_0[htmlNodeCollection[14].Attributes["name"].Value] = (string)this.jtoken_0["payment"]["card"]["cvv"];
                 this.dictionary_0[htmlNodeCollection[15].Attributes["name"].Value] = "1";
             }
             else
             {
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//input[@type='text']")[0].Attributes["name"].Value]  = (string)this.jtoken_0["billing"]["first_name"] + " " + (string)this.jtoken_0["billing"]["last_name"];
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//input[@type='email']")[0].Attributes["name"].Value] = (string)this.jtoken_0["payment"]["email"];
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//input[@type='text']")[1].Attributes["name"].Value]  = (string)this.jtoken_0["payment"]["phone"];
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//input[@type='text']")[2].Attributes["name"].Value]  = (string)this.jtoken_0["billing"]["addr1"];
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//input[@type='text']")[3].Attributes["name"].Value]  = (string)this.jtoken_0["billing"]["addr2"];
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//input[@type='text']")[5].Attributes["name"].Value]  = (string)this.jtoken_0["billing"]["city"];
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//input[@type='text']")[4].Attributes["name"].Value]  = (string)this.jtoken_0["billing"]["zip"];
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//select")[0].Attributes["name"].Value] = Class167.smethod_1((string)this.jtoken_0["billing"]["country"], (string)this.jtoken_0["billing"]["state"]);
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//select")[1].Attributes["name"].Value] = Class167.smethod_0((string)this.jtoken_0["billing"]["country"], true);
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//input[@type='text']")[6].Attributes["name"].Value] = ((string)this.jtoken_0["payment"]["card"]["number"]).Replace(" ", string.Empty);
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//select")[2].Attributes["name"].Value] = (string)this.jtoken_0["payment"]["card"]["exp_month"];
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//select")[3].Attributes["name"].Value] = (string)this.jtoken_0["payment"]["card"]["exp_year"];
                 this.dictionary_0[htmlDocument.DocumentNode.SelectNodes("//form//input[@type='text']")[7].Attributes["name"].Value] = (string)this.jtoken_0["payment"]["card"]["cvv"];
             }
             this.dictionary_0["order[terms]"] = "1";
             break;
         }
         catch (ThreadAbortException)
         {
             break;
         }
         catch
         {
             this.class4_0.method_4("Error loading checkout", "#c2c2c2", true, false);
             Thread.Sleep(GClass0.int_1);
         }
     }
 }
예제 #15
0
    // Token: 0x06000505 RID: 1285 RVA: 0x0002B6EC File Offset: 0x000298EC
    public static Class144 smethod_1(object object_0, Type type_0)
    {
        Class144 @class = object_0 as Class144;

        if (@class != null)
        {
            return(@class);
        }
        if (type_0 == null)
        {
            if (object_0 == null)
            {
                return(new Class171());
            }
            type_0 = object_0.GetType();
        }
        type_0 = Class107.smethod_1(type_0);
        if (type_0 == Class28.type_0)
        {
            @class = new Class171();
            if (object_0 != null && object_0.GetType() != Class28.type_0)
            {
                @class.method_1(object_0.GetType());
            }
        }
        else if (Class104.smethod_0 <Array>(type_0))
        {
            @class = new Class145();
        }
        else if (Class104.smethod_0 <string>(type_0))
        {
            @class = new Class148();
        }
        else if (Class104.smethod_0 <IntPtr>(type_0))
        {
            @class = new Class151();
        }
        else if (Class104.smethod_0 <UIntPtr>(type_0))
        {
            @class = new Class162();
        }
        else if (Class104.smethod_0 <ulong>(type_0))
        {
            @class = new Class170();
        }
        else if (Class104.smethod_0 <uint>(type_0))
        {
            @class = new Class168();
        }
        else if (Class104.smethod_0 <ushort>(type_0))
        {
            @class = new Class164();
        }
        else if (Class104.smethod_0 <long>(type_0))
        {
            @class = new Class161();
        }
        else if (Class104.smethod_0 <int>(type_0))
        {
            @class = new Class150();
        }
        else if (Class104.smethod_0 <short>(type_0))
        {
            @class = new Class146();
        }
        else if (Class104.smethod_0 <byte>(type_0))
        {
            @class = new Class169();
        }
        else if (Class104.smethod_0 <sbyte>(type_0))
        {
            @class = new Class166();
        }
        else if (Class104.smethod_0 <double>(type_0))
        {
            @class = new Class163();
        }
        else if (Class104.smethod_0 <float>(type_0))
        {
            @class = new Class167();
        }
        else if (Class104.smethod_0 <bool>(type_0))
        {
            @class = new Class149();
        }
        else if (Class104.smethod_0 <char>(type_0))
        {
            @class = new Class160();
        }
        else if (Class28.smethod_0(type_0))
        {
            Class171 class2 = new Class171();
            class2.method_1(type_0);
            @class = class2;
        }
        else
        {
            if (Class104.smethod_0 <Enum>(type_0))
            {
                Enum enum_;
                if (object_0 == null)
                {
                    if (type_0 == Class28.type_2)
                    {
                        enum_ = null;
                    }
                    else
                    {
                        enum_ = (Enum)Activator.CreateInstance(type_0);
                    }
                }
                else if (type_0 == Class28.type_2 && object_0 is Enum)
                {
                    enum_ = (Enum)object_0;
                }
                else
                {
                    enum_ = (Enum)Enum.ToObject(type_0, object_0);
                }
                return(new Class165(enum_));
            }
            if (Class104.smethod_0 <ValueType>(type_0))
            {
                if (object_0 == null)
                {
                    object object_;
                    if (type_0 == Class28.type_3)
                    {
                        object_ = null;
                    }
                    else
                    {
                        object_ = Activator.CreateInstance(type_0);
                    }
                    @class = new Class159(object_);
                }
                else
                {
                    if (object_0.GetType() != type_0)
                    {
                        try
                        {
                            object_0 = Convert.ChangeType(object_0, type_0);
                        }
                        catch
                        {
                        }
                    }
                    @class = new Class159(object_0);
                }
                return(@class);
            }
            @class = new Class171();
        }
        if (object_0 != null)
        {
            @class.vmethod_1(object_0);
        }
        return(@class);
    }
예제 #16
0
 // Token: 0x0600052D RID: 1325 RVA: 0x0002D7D4 File Offset: 0x0002B9D4
 public void method_5()
 {
     for (;;)
     {
         try
         {
             this.class4_0.method_4("Submitting shipping", "#c2c2c2", true, false);
             JObject jobject = new JObject();
             jobject["order"] = new JObject();
             jobject["order"]["bill_address_attributes"] = new JObject();
             jobject["order"]["ship_address_attributes"] = new JObject();
             jobject["order"]["email"] = this.jtoken_1["payment"]["email"];
             jobject["order"]["state_lock_version"] = "0";
             jobject["order"]["bill_address_attributes"]["firstname"]  = this.jtoken_1["billing"]["first_name"];
             jobject["order"]["bill_address_attributes"]["lastname"]   = this.jtoken_1["billing"]["last_name"];
             jobject["order"]["bill_address_attributes"]["address1"]   = this.jtoken_1["billing"]["addr1"];
             jobject["order"]["bill_address_attributes"]["address2"]   = this.jtoken_1["billing"]["addr2"];
             jobject["order"]["bill_address_attributes"]["city"]       = this.jtoken_1["billing"]["city"];
             jobject["order"]["bill_address_attributes"]["country_id"] = this.method_1((string)this.jtoken_1["billing"]["country"]);
             jobject["order"]["bill_address_attributes"]["zipcode"]    = this.jtoken_1["billing"]["zip"];
             jobject["order"]["bill_address_attributes"]["phone"]      = this.jtoken_1["payment"]["phone"];
             jobject["order"]["bill_address_attributes"]["state_name"] = Class167.smethod_1((string)this.jtoken_1["billing"]["country"], (string)this.jtoken_1["billing"]["state"]);
             jobject["order"]["ship_address_attributes"]["firstname"]  = this.jtoken_1["delivery"]["first_name"];
             jobject["order"]["ship_address_attributes"]["lastname"]   = this.jtoken_1["delivery"]["last_name"];
             jobject["order"]["ship_address_attributes"]["address1"]   = this.jtoken_1["delivery"]["addr1"];
             jobject["order"]["ship_address_attributes"]["address2"]   = this.jtoken_1["delivery"]["addr2"];
             jobject["order"]["ship_address_attributes"]["city"]       = this.jtoken_1["delivery"]["city"];
             jobject["order"]["ship_address_attributes"]["country_id"] = this.method_1((string)this.jtoken_1["delivery"]["country"]);
             jobject["order"]["ship_address_attributes"]["state_name"] = Class167.smethod_1((string)this.jtoken_1["delivery"]["country"], (string)this.jtoken_1["delivery"]["state"]);
             jobject["order"]["ship_address_attributes"]["zipcode"]    = this.jtoken_1["delivery"]["zip"];
             jobject["order"]["ship_address_attributes"]["phone"]      = this.jtoken_1["payment"]["phone"];
             jobject["order"]["ship_address_attributes"]["shipping"]   = "true";
             jobject["order"]["terms_and_conditions"] = "yes";
             HttpResponseMessage httpResponseMessage = this.class70_0.method_12("https://www.off---white.com/en/GB/checkout/update/address", jobject, true);
             httpResponseMessage.EnsureSuccessStatusCode();
             if (httpResponseMessage.smethod_3().Contains("order_ship_address_attributes_state"))
             {
                 this.class4_0.method_0("Invalid shipping", "red", false);
             }
             HtmlDocument htmlDocument = new HtmlDocument();
             htmlDocument.LoadHtml(httpResponseMessage.smethod_3());
             this.string_4  = htmlDocument.DocumentNode.SelectSingleNode("//input[@name='order[shipments_attributes][0][selected_shipping_rate_id]']").Attributes["value"].Value;
             this.string_5  = htmlDocument.DocumentNode.SelectSingleNode("//input[@name='order[shipments_attributes][0][id]']").Attributes["value"].Value;
             this.string_10 = htmlDocument.DocumentNode.SelectSingleNode("//meta[@name='CART_PATH']").Attributes["content"].Value.Split(new char[]
             {
                 '/'
             })[4];
             this.string_7 = httpResponseMessage.smethod_3().Replace(" ", string.Empty).Split(new string[]
             {
                 "Spree.current_order_id=\""
             }, StringSplitOptions.None)[1].Split(new char[]
             {
                 '"'
             })[0];
             this.string_6 = htmlDocument.DocumentNode.SelectSingleNode("//span[@class='amount']").InnerText.Replace(" ", string.Empty).Replace("€", string.Empty);
             this.class4_0.method_4("Detected region: " + this.string_10, "#c2c2c2", true, false);
             this.class4_0.method_7(htmlDocument.DocumentNode.SelectSingleNode("//td[@class='description']//strong").InnerText, "#c2c2c2");
         }
         catch (ThreadAbortException)
         {
         }
         catch
         {
             this.class4_0.method_4("Error submitting shipping", "#c2c2c2", true, false);
             Thread.Sleep(GClass0.int_0);
             continue;
         }
         break;
     }
 }