This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ShopifyReturnController { | |
public String orderNumber {get; set;} | |
public String email {get; set;} | |
public List<OrderItem> orderItems {get; private set;} | |
public List<OWrapper> worderItems {get; private set;} | |
public Map<String, String> docLinkFiles {get; private set;} | |
public Integer stepNumber {get; private set;} | |
public String deb {get; private set;} | |
private Id bulkShipmentId; | |
public Boolean isError {get; private set;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page controller="ShopifyReturnController" showHeader="false" cache="false" standardStylesheets="false" docType="html-5.0"> | |
<apex:stylesheet value="{!URLFOR($Resource.ShopifyStyle)}"/> | |
<apex:includeScript value="https://maps.googleapis.com/maps/api/js?key=AIzaSyBmwIWOi6N0KxJEojRIQRSmgYuMg2MY--Q&libraries=places"/> | |
<apex:form id="allForm"> | |
<script> | |
var map; | |
function showMap(address) { | |
var geocoder = new google.maps.Geocoder(); | |
console.log('geocode address', address); | |
geocoder.geocode({'address': address}, function(results, status) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global String mailService { get; set; } | |
global Decimal cost { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.ratesList = zkusps.BulkShipmentInterface.calculateRates(queuedShipment, queuedPackages, specialServices, preference); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zkusps__QueuedShipmentSpecialServices__c specialServices = new zkusps__QueuedShipmentSpecialServices__c(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zkusps__QueuedPackage__c queuedPackage = new zkusps__QueuedPackage__c ( | |
zkusps__DeclaredValue__c = 1, | |
zkusps__WeightPounds__c = 0, | |
zkusps__WeightOunces__c = 2, | |
zkusps__Height__c = 1, | |
zkusps__Length__c = 1, | |
zkusps__Width__c = 1, | |
zkusps__QueuedShipment__c = queuedShipment.Id | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zkusps__EndiciaPreference__c preference = [ | |
SELECT Id, Name, | |
zkusps__MailingFirstName__c, zkusps__MailingLastName__c, | |
zkusps__MailingCompanyName__c, zkusps__MailingCity__c, | |
zkusps__shippingSenderEmailDefault__c, zkusps__shippingSenderPhoneDefault__c, | |
zkusps__MailingState__c, zkusps__MailingZip4__c, | |
zkusps__MailingZip5__c, zkusps__shippingSenderNameDefault__c, | |
zkusps__labelImageTypeDefault__c, zkusps__MailingAddress__c, | |
zkusps__AccountId__c, zkusps__PassPhraseEncrypt__c | |
FROM zkusps__EndiciaPreference__c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public with sharing class CalculateUSPSRates { | |
public List<zkusps.ShipmentRate> ratesList {get; set;} | |
public Account accountRecord {get; set;} | |
public void CalculateUSPSRates() { | |
this.accountRecord = [ | |
SELECT Name, Phone, ShippingStreet, ShippingCity, | |
ShippingPostalCode, ShippingCountry, ShippingState | |
FROM Account |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page Controller="CalculateUSPSRates" action="{! CalculateUSPSRates }"> | |
<apex:form > | |
<apex:pageBlock > | |
<apex:pageBlockSection > | |
<apex:pageBlockTable value="{! ratesList }" var="rate"> | |
<apex:column value="{! rate.shipmentProvider }" headerValue="Shipment Provider"/> | |
<apex:column value="{! rate.mailService }" headerValue="Service Type"/> | |
<apex:column value="{! rate.cost }" headerValue="Cost"/> | |
<apex:column > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global String shipmentProvider { get; set;} | |
global String mailService { get; set; } | |
global String currencyIsoCode { get; set; } | |
global Decimal cost { get; set; } | |
global Decimal negotiatedRates { get; set; } | |
global Integer guaranteedDaysToDelivery {get; set;} | |
global String scheduledDeliveryTime {get; set;} |