usps-ruby-client 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 905fbeac9ca32a16da34b2d05b5fff6f8da6a6be7c43a106e21ed211baba6009
4
- data.tar.gz: 55d68eb569dc6fdf59936325ced2c66a7126f89387858155f6da8101fbfffa1c
3
+ metadata.gz: 93b3177558290889727e879ad55a26317fee396d90d85708a080f98c574cc89c
4
+ data.tar.gz: 646fff5b3dfac909b958bc73bc947b65009f4722e7d768c0dd7a5f4098ad7cc3
5
5
  SHA512:
6
- metadata.gz: 6635afa2a146f0aaf2fd4343894123ae4f0f726d61988127642c0c73d4c391ca16d93d30dc80281071050ddfafed997143e37138d842f6b4646a3c7d513a7839
7
- data.tar.gz: 5252edd86fec07850f0f6f08a4c0b1105fe7155c34607a6824705587733e5bfc4043fc0adc62c62ba2714838d6db053d0785c3f39e60c0079fef1d53390b8dc0
6
+ metadata.gz: 664deaf1f138db490a4e2b3e031affdba7278f52bf9ddd43c690e858467d402411d06e02c9701c156433ba382af78c8e64a2648974d0519705ef6ab00e5d514c
7
+ data.tar.gz: acbb29769273646f8e4e4d973e0ded3884024c3fea04fa5acc7f3159b04e37f9b30cc5366a525b97f1ab068d34ed0961c7fc25d828ff2771f464c690038ca89d
@@ -25,7 +25,7 @@ namespace :usps do
25
25
  row_data = {}
26
26
  columns.each_with_index do |k, i|
27
27
  row_data[k.to_s.gsub(/[[:space:]]+/, ' ').strip] =
28
- row[i].is_a? String ? row[i].to_s.gsub(/[[:space:]]+/, ' ').strip : row[i]
28
+ row[i].is_a?(String) ? row[i].to_s.gsub(/[[:space:]]+/, ' ').strip : row[i]
29
29
  end
30
30
  row_data
31
31
  end
@@ -6,57 +6,32 @@ module Usps
6
6
  module Api
7
7
  module Endpoints
8
8
  module CarrierPickupSchedule
9
- #
10
- # Package Pickup Schedule API
11
- #
12
9
  # The Package Pickup Schedule API schedules a
13
10
  # Package Pickup and provides the user a confirmation number for the scheduled
14
11
  # pickup. Prior to making a Pickup Schedule call, it is recommended to use
15
12
  # the Pickup Availability API to confirm that service is available.
16
- #
17
- # @option option [(Alias)] :CarrierPickupScheduleRequest (Required)
18
- # @option option [String] :FirstName (Required)
19
- # - Only alpha characters, apostrophes, spaces, periods, and hyphens "-" may be used. For example: <FirstName>John</FirstName>
20
- # @option option [String] :LastName (Required)
21
- # - Only alpha characters, apostrophes, spaces, periods and hyphens "-" may be used. For example: <LastName>Doe</LastName>
22
- # @option option [String] :FirmName (Optional)
23
- # - Only alpha and numeric characters, apostrophes, spaces, hyphens "-" and ampersands "&" may be used. Use this tag for a firm or company name. Some firms/companies that have their own ZIP codes require the use of firm name to properly identify their address. Note: FirmName is Optional except if the First Name and Last Name tags are null. For example: <FirmName>ABC Company</FirmName>
24
- # @option option [String] :SuiteOrApt (Required)
25
- # - Apartment or suite number. Optional except if needed to uniquely identify an address at a multiple dwelling address, for example, an apartment building. For example: <SuiteOrApt>Suite 777</SuiteOrApt>
26
- # @option option [String] :Address2 (Required)
27
- # - Street address. For example: <Address2>1390 Market Street</Address2>
28
- # @option option [String] :Urbanization (Required)
29
- # - Use this tag for Urbanization (for Puerto Rico only). ZIP Code prefixes 006 to 009, if area is so designated.
30
- # @option option [String] :City (Required)
31
- # - City name. Either ZIP5 or City and State are required. For example: <City>Houston</City>
32
- # @option option [String] :State (Required)
33
- # - State abbreviation. Either ZIP5 or City and State are required. For example: <State>TX</State>
34
- # @option option [String] :ZIP5 (Required)
35
- # - 5-digit ZIP Code. Either ZIP5 or City and State are required. For example: <ZIP5>77058</ZIP5>
36
- # @option option [String] :ZIP4 (Required)
37
- # - Use this tag for a 4 digit ZIP Code. For example: <ZIP4>1234</ZIP4>
38
- # @option option [String] :Phone (Required)
39
- # - Two formats are allowed: (###) 123-4567 or ###-123-4567. For example: <Phone>5555551234</Phone> or <Phone>555-555-1234</Phone>
40
- # @option option [String] :Extension (Optional)
41
- # - Optional value for Phone Extension. For example: <Extension>201</Extension>
42
- # @option option [(Group)] :Package (Required)
43
- # - No values entered with this tag. <ServiceType> and <Count> tags are embedded under this. Refer to the XML request example section, below, to see how these embedded tags are formatted. If the <Count> for a service type is zero, you do not need to encode a <Package> but you must have at least one <Package> with embedded <ServiceType> and <Count> tags.
44
- # @option option [String] :ServiceType (Required)
45
- # - This tag is embedded under the <Package> tag. If your pickup contains more than one Service Type, use additional <Package> tags for each service type with the accompanying <ServiceType> and <Count> tags. Refer to the XML Request Example below to see how these embedded tags are formatted. For example: <ServiceType>PriorityMailExpress</ServiceType>
46
- # @option option [String] :Count (Required)
47
- # - This tag is embedded under the <Package> tag. Enter the number of packages for the accompanying <ServiceType> tag. Maximum characters allowed: 3 or 999 packages. If your pickup contains more than one Service Type, use additional <Package> tags for each service type with the accompanying <ServiceType> and <Count> tags. Refer to the XML request example section, below, to see how these embedded tags are formatted. For example: <Count>2</Count>
48
- # @option option [String] :EstimatedWeight (Required)
49
- # - Enter the estimated aggregate weight (in pounds) of all packages being picked up. For example: <EstimatedWeight>14</EstimatedWeight>
50
- # @option option [String] :PackageLocation (Required)
51
- # - Enter one of the following values: Note: "Other" requires information in the value for the <SpecialInstructions> tag. For example: <PackageLocation>Front Door</PackageLocation>
52
- # @option option [String] :SpecialInstructions (Optional)
53
- # - Value Required when PackageLocation is “Other”. Only alpha, numeric, commas, periods, apostrophes, _, &, -, ( ), ?, #, / +, @ and space characters may be used. For example: <SpecialInstructions>Packages are behind the screen door.</SpecialInstructions>
54
- # @option option [String] :EmailAddress (Optional)
55
- # - If provided, email notifications will be sent confirming package pickup, or request changes and cancellations. Maximum characters allowed: 50. For example: <EmailAddress>cpapple@email.com</EmailAddress>
56
-
57
- #
58
- # @see
59
- def carrier_pickup_schedule(options = {})
13
+ # @param [Hash] options
14
+ # @option options [required, Hash] carrier_pickup_schedule_request
15
+ # * *:first_name* (required, String) — Only alpha characters, apostrophes, spaces, periods, and hyphens "-" may be used. For example: <FirstName>John</FirstName>
16
+ # * *:last_name* (required, String) — Only alpha characters, apostrophes, spaces, periods and hyphens "-" may be used. For example: <LastName>Doe</LastName>
17
+ # * *:firm_name* (String) — Only alpha and numeric characters, apostrophes, spaces, hyphens "-" and ampersands "&" may be used. Use this tag for a firm or company name. Some firms/companies that have their own ZIP codes require the use of firm name to properly identify their address. Note: FirmName is Optional except if the First Name and Last Name tags are null. For example: <FirmName>ABC Company</FirmName>
18
+ # * *:suite_or_apt* (required, String) Apartment or suite number. Optional except if needed to uniquely identify an address at a multiple dwelling address, for example, an apartment building. For example: <SuiteOrApt>Suite 777</SuiteOrApt>
19
+ # * *:address2* (required, String) — Street address. For example: <Address2>1390 Market Street</Address2>
20
+ # * *:urbanization* (required, String) Use this tag for Urbanization (for Puerto Rico only). ZIP Code prefixes 006 to 009, if area is so designated.
21
+ # * *:city* (required, String) — City name. Either ZIP5 or City and State are required. For example: <City>Houston</City>
22
+ # * *:state* (required, String) State abbreviation. Either ZIP5 or City and State are required. For example: <State>TX</State>
23
+ # * *:zip5* (required, String) — 5-digit ZIP Code. Either ZIP5 or City and State are required. For example: <ZIP5>77058</ZIP5>
24
+ # * *:zip4* (required, String) — Use this tag for a 4 digit ZIP Code. For example: <ZIP4>1234</ZIP4>
25
+ # * *:phone* (required, String) — Two formats are allowed: (###) 123-4567 or ###-123-4567. For example: <Phone>5555551234</Phone> or <Phone>555-555-1234</Phone>
26
+ # * *:extension* (String) Optional value for Phone Extension. For example: <Extension>201</Extension>
27
+ # * *:package* (required, Hash) — No values entered with this tag. <ServiceType> and <Count> tags are embedded under this. Refer to the XML request example section, below, to see how these embedded tags are formatted. If the <Count> for a service type is zero, you do not need to encode a <Package> but you must have at least one <Package> with embedded <ServiceType> and <Count> tags.
28
+ # * *:service_type* (required, String) — This tag is embedded under the <Package> tag. If your pickup contains more than one Service Type, use additional <Package> tags for each service type with the accompanying <ServiceType> and <Count> tags. Refer to the XML Request Example below to see how these embedded tags are formatted. For example: <ServiceType>PriorityMailExpress</ServiceType>
29
+ # * *:count* (required, String) — This tag is embedded under the <Package> tag. Enter the number of packages for the accompanying <ServiceType> tag. Maximum characters allowed: 3 or 999 packages. If your pickup contains more than one Service Type, use additional <Package> tags for each service type with the accompanying <ServiceType> and <Count> tags. Refer to the XML request example section, below, to see how these embedded tags are formatted. For example: <Count>2</Count>
30
+ # * *:estimated_weight* (required, String) Enter the estimated aggregate weight (in pounds) of all packages being picked up. For example: <EstimatedWeight>14</EstimatedWeight>
31
+ # * *:package_location* (required, String) — Enter one of the following values: Note: "Other" requires information in the value for the <SpecialInstructions> tag. For example: <PackageLocation>Front Door</PackageLocation>
32
+ # * *:special_instructions* (String) Value Required when PackageLocation is “Other”. Only alpha, numeric, commas, periods, apostrophes, _, &, -, ( ), ?, #, / +, @ and space characters may be used. For example: <SpecialInstructions>Packages are behind the screen door.</SpecialInstructions>
33
+ # * *:email_address* (String) — If provided, email notifications will be sent confirming package pickup, or request changes and cancellations. Maximum characters allowed: 50. For example: <EmailAddress>cpapple@email.com</EmailAddress>
34
+ def carrier_pickup_schedule(options = {})
60
35
  throw ArgumentError.new('Required arguments :carrier_pickup_schedule_request missing') if options[:carrier_pickup_schedule_request].nil?
61
36
  throw ArgumentError.new('Required arguments :carrier_pickup_schedule_request, :first_name missing') if options[:carrier_pickup_schedule_request][:first_name].nil?
62
37
  throw ArgumentError.new('Required arguments :carrier_pickup_schedule_request, :last_name missing') if options[:carrier_pickup_schedule_request][:last_name].nil?
@@ -6,20 +6,13 @@ module Usps
6
6
  module Api
7
7
  module Endpoints
8
8
  module CityStateLookup
9
- #
10
- # CityStateLookup API
11
- #
12
9
  # City/State Lookup API
13
10
  # returns the city and state corresponding to the given ZIP Code. The CityStateLookup API processes up to five lookups per request.
14
- #
15
- # @option option [(Alias)] :CityStateLookupRequest (Required)
16
- # - API= CityStateLookupRequest
17
- # @option option [(Group)] :ZipCode (Required)
18
- # @option option [Integer] :Zip5 (Required)
19
-
20
- #
21
- # @see
22
- def city_state_lookup(options = {})
11
+ # @param [Hash] options
12
+ # @option options [required, Hash] city_state_lookup_request API= CityStateLookupRequest
13
+ # * *:zip_code* (required, Hash) —
14
+ # * *:zip5* (required, Integer)
15
+ def city_state_lookup(options = {})
23
16
  throw ArgumentError.new('Required arguments :city_state_lookup_request missing') if options[:city_state_lookup_request].nil?
24
17
  throw ArgumentError.new('Required arguments :city_state_lookup_request, :zip_code missing') if options[:city_state_lookup_request][:zip_code].nil?
25
18
  throw ArgumentError.new('Required arguments :city_state_lookup_request, :zip_code, :zip5 missing') if options[:city_state_lookup_request][:zip_code][:zip5].nil?
@@ -6,226 +6,117 @@ module Usps
6
6
  module Api
7
7
  module Endpoints
8
8
  module EVSExpressMailIntl
9
- #
10
- # eVS Priority Mail Express International Label API
11
- #
12
9
  # The
13
10
  # eVS Priority Mail Express International Label API lets customers generate eVS
14
11
  # Priority Mail Express International labels and integrated customs forms.
15
- #
16
- # @option option [(Alias)] :eVSExpressMailIntlRequest (Required)
17
- # @option option [Empty] :Option (Optional)
18
- # - For future use.
19
- # @option option [String] :Revision (Optional)
20
- # - Use of value 2 Required as of January 2011. For example: <Revision>2</Revision>
21
- # @option option [(Group)] :ImageParameters (Optional)
22
- # - Groups alternate image options.
23
- # @option option [String] :ImageParameter (Optional)
24
- # - Returns alternate label image. Only alternate 4’’x6’’ size label image may be requested at this time. · 4X6LABEL - (4X6 on a full page 8.5/11” background) · 4X6LABELL- (Landscape – true size 4X6; image rotated, not on an 8.5 x 11 background page) · 4X6LABELP - (Portrait – true size 4X6, not on an 8.5 x 11 background page) · 4X6ZPL203DPI - (ZPL - Zebra Programming Language) format. When using this enumeration, <ImageType> is required - this tag cannot be left blank. Integrators should use either “TIF” or “PDF” for ZPL – neither value will impact the label image itself, but it must be included in the request to return a successful response. · 4X6ZPL300DPI - Prints a label formatted for ZPL printers in 300 dpi. When using this enumeration, <ImageType> is required - this tag cannot be left blank. Integrators should use either “TIF” or “PDF” for ZPL – neither value will impact the label image itself, but it must be included in the request to return a successful response. For example: <ImageParameter>4X6LABEL</ImageParameter>
25
- # @option option [String] :FromFirstName (Required)
26
- # - Both FromFirstName and FromLastName are Required if FromFirmName is left blank. Maximum Length: 32 characters total for First, Middle, and Last Names with space after first and middle name. For example: <FromFirstName>John</FromFirstName>
27
- # @option option [String] :FromMiddleInitial (Optional)
28
- # - Middle Initial. Maximum Length: 32 characters total for First, Middle, and Last Names with space after first and middle name. For example: <FromMiddleInitial>L</FromMiddleInitial>
29
- # @option option [String] :FromLastName (Required)
30
- # - Both FromFirstName and FromLastName are Required if FromFirmName is left blank. Maximum Length: 32 characters total for First, Middle, and Last Names with space after first and middle name. For example: <FromLastName>Doe</FromLastName>
31
- # @option option [String] :FromFirm (Required)
32
- # - FromFirm is Required if FromFirstName and FromLastName are left blank. For example: <FromFirm>ABC Corp</FromFirm>
33
- # @option option [String] :FromAddress1 (Optional)
34
- # - Use this tag for a suite or apartment number only. Either Address1 or Address2 is Required. For example: <FromAddress1>Suite 101 </FromAddress1>
35
- # @option option [String] :FromAddress2 (Required)
36
- # - Use this tag for the primary address line. For example: <FromAddress2>10 Elm Street </FromAddress2>
37
- # @option option [String] :FromUrbanization (Optional)
38
- # - Use this tag for Puerto Rico only. ZIP Code prefixes 006 to 009, if area is so designated. For example: <FromUrbanization>URB Caparra Ter</FromUrbanization>
39
- # @option option [String] :FromCity (Required)
40
- # - For example: <FromCity>Bristol</FromCity>
41
- # @option option [String] :FromState (Required)
42
- # - Use 2-letter USPS state abbreviation. For example: <FromState>CT</FromState>
43
- # @option option [String] :FromZip5 (Required)
44
- # - Input tag exactly as presented, not all caps. 5 digits Required. For example: <FromZip5>06010</FromZip5>
45
- # @option option [String] :FromZip4 (Optional)
46
- # - Input tag exactly as presented, not all caps. If value is entered, 4 digits Required. This is the ZIP+4 extension. For example: <FromZip4>5678</FromZip4>
47
- # @option option [String] :FromPhone (Required)
48
- # - 10 digits Required (including area code), with no punctuation. Use format: 2125551234 For example: <FromPhone>5555555555</FromPhone>
49
- # @option option [String] :FromCustomsReference (Optional)
50
- # - Enter a value for the "Sender's Customs Reference" that will appear on the label. The text entered is any reference number that the sender wishes to use. For example: <FromCustomsReference></FromCustomsReference>
51
- # @option option [String] :ToName (Optional)
52
- # - Deprecated. See “ToFirstName” and “ToLastName” tags.
53
- # @option option [String] :ToFirstName (Required)
54
- # - Both ToFirstName and ToLastName are Required if ToFirm is left blank. For example: <ToFirstName>John</ToFirstName>
55
- # @option option [String] :ToLastName (Required)
56
- # - Both ToFirstName and ToLastName are Required if ToFirm is left blank. For example: <ToLastName>Doe</ToLastName>
57
- # @option option [String] :ToFirm (Required)
58
- # - ToFirm is Required if ToFirstName and ToLastName are left blank. For example: <ToFirm>ABC Co</ToFirm>
59
- # @option option [String] :ToAddress1 (Optional)
60
- # - Three address lines are provided, but only 1 is Required. Use as many as needed for complete address. For example: <ToAddress1> 60 Carlton St</ToAddress1>
61
- # @option option [String] :ToAddress2 (Required)
62
- # - Three address lines are provided, but only 1 is Required. Use as many as needed for complete address.
63
- # @option option [String] :ToAddress3 (Optional)
64
- # - Three address lines are provided, but only 1 is Required. Use as many as needed for complete address.
65
- # @option option [String] :ToCity (Required)
66
- # - Recipient's city. For example: <ToCity>Toronto</ToCity>
67
- # @option option [String] :ToProvince (Optional)
68
- # - Enter the province for the recipient. For example: <ToProvince>ON</ToProvince>
69
- # @option option [String] :ToCountry (Required)
70
- # - The country name entered must match an entry from the USPS-approved International Index of Countries and Localities. See the Index of Countries and Localities. Using a country name not on the list will result in a request failure. For example: <ToCountry>Canada</ToCountry>
71
- # @option option [String] :ToPostalCode (Required)
72
- # - Enter the postal code for the recipient. For example: <ToPostalCode> M5B 1J2</ToPostalCode>
73
- # @option option [String] :ToPOBoxFlag (Required)
74
- # - Indicates whether the destination address is a Post Office Box. For example: <ToPOBoxFlag>N</ToPOBoxFlag>
75
- # @option option [String] :ToPhone (Optional)
76
- # - No format checking is done on international phone numbers. Required when <ToPOBoxFlag>Y</ToPOBoxFlag> For example: <ToPhone>011 52 (322) 222-0069</ToPhone>
77
- # @option option [String] :ToFax (Optional)
78
- # - No format checking is done on international fax numbers. For example: <ToFax>011 52 (322) 222-0074</ToFax>
79
- # @option option [String] :ToEmail (Optional)
80
- # - Complete valid e-mail address is Required if tag is used. For example: <ToEmail>cpapple@email.com</ToEmail>
81
- # @option option [String] :ImportersReferenceNumber (Optional)
82
- # - Enter a value for the "Importer's Customs Reference" that will appear on the label. The text entered is any reference number that the recipient wishes to use. For example: <ToCustomsReference>Order 23432</ToCustomsReference>
83
- # @option option [String] :NonDeliveryOption (Optional)
84
- # - In case package is undeliverable, enter one of the following: "RETURN" for package to be returned to <FromAddress> above. "REDIRECT" to return package to address specified below in <AltReturn> tags. "ABANDON" to dispose of undeliverable package. For example: <NonDeliveryOption>RETURN</NonDeliveryOption>
85
- # @option option [String] :RedirectName (Optional)
86
- # - Enter a value for the recipient's name.
87
- # @option option [String] :RedirectEmail (Optional)
88
- # - Complete valid e-mail address is required if tag is used.
89
- # @option option [String] :RedirectSMS (Optional)
90
- # - This value must be a syntactically valid SMS number.
91
- # @option option [String] :RedirectAddress (Optional)
92
- # - Enter the redirect address. This is a free form field.
93
- # @option option [String] :RedirectCity (Optional)
94
- # - Redirect city. For example: <RedirectCity>ANYTOWN</RedirectCity>
95
- # @option option [String] :RedirectState (Optional)
96
- # - Redirect state. For example: <RedirectState>MN</RedirectState>
97
- # @option option [String] :RedirectZipCode (Optional)
98
- # - Redirect ZIP code. For example: <RedirectZipCode>12345</RedirectZipCode>
99
- # @option option [String] :RedirectZip4 (Optional)
100
- # - Redirect ZIP+4 extension. For example: <RedirectZip4>01234</RedirectZip4>
101
- # @option option [String] :Container (Optional)
102
- # - Container type.
103
- # @option option [(Group)] :ShippingContents (Required)
104
- # @option option [(Group)] :ItemDetail (Optional)
105
- # @option option [String] :Description (Required)
106
- # - Description of the item. For example: <Description>Policy guidelines document</Description>
107
- # @option option [integer] :Quantity (Required)
108
- # - Quantity of the item. Integer value Required. For example: <Quantity>1</Quantity>
109
- # @option option [decimal] :Value (Required)
110
- # - The data entered with this tag provides the value of the set of items. If the item is 2 boxes of 50 pens and the value of each box is $10.00, "20.00" (2 boxes x $10.00) should be entered. If the value of each pen is .25 then "25.00" (100 pens x .25) should be entered. For example: <Value>55.00</Value>
111
- # @option option [integer] :NetPounds (Required)
112
- # - Provide the pounds component of the weight of the individual item listed with <Description>. For example: <NetPounds>1</NetPounds>
113
- # @option option [decimal] :NetOunces (Required)
114
- # - Provide the ounces component of the weight of the individual item listed with <Description>. For example: <NetOunces>5</NetOunces>
115
- # @option option [String] :HSTariffNumber (Required)
116
- # - For commercial items only. If known, the HS tariff number must be based on the Harmonized Commodity Description and Coding System developed by the World Customs Organization. For example: <HSTariffNumber>490110</HSTariffNumber>
117
- # @option option [String] :CountryOfOrigin (Required)
118
- # - For commercial items only. Country of Origin means the country where the goods originated, e.g. were produced, manufactured, or assembled. It is recommended you supply this information and attach an invoice to the outside to accelerate customs clearance in processing the items. The country name entered must match an entry from the USPS-approved International Index of Countries and Localities or be "United States". http://pe.usps.gov/text/Imm/immctry.htm – click on the link for “International Country Listings”. Using a country name not on the list will result in a request failure. For example: <CountryOfOrigin>United States</CountryOfOrigin>
119
- # @option option [String] :InsuredNumber (Optional)
120
- # - For backward compatibility; not validated.
121
- # @option option [String] :InsuredAmount (Optional)
122
- # - Use this tag for entering an insurance amount, if known. For example: <InsuredAmount>100.00</InsuredAmount>
123
- # @option option [String] :Postage (Optional)
124
- # - Use this tag for entering a postage amount, if known. If the tag is present, but the value is blank, the postage will be automatically calculated. For example: <Postage>10.50</Postage>
125
- # @option option [integer] :GrossPounds (Required)
126
- # - Gross pounds and ounces together represent the total package weight, including packing material. For example, a package weighing 3 lbs 8 ounces would have "3" entered here and "8" entered with the <GrossOunces> tag. The Web Tool will check for maximum shipping weight of 70 pounds. Allowable weight may change based on the service used to send package and the destination country. For example: <GrossPounds>4</GrossPounds>
127
- # @option option [integer] :GrossOunces (Required)
128
- # - Enter the ounces component of the total package weight with this tag. For example: <GrossOunces>0</GrossOunces>
129
- # @option option [String] :ContentType (Required)
130
- # - Specifies the content of the package or envelope. For example: <ContentType>DOCUMENTS</ContentType> Note : “NONNEGOTIABLEDOCUMENT” and “DOCUMENTS” both signify mailable non-negotiable documents and are insured automatically for up to $100, though Insurance will not be returned as an extra service. Additional Insurance cannot be purchased. Any non-document <ContentType> values are insured automatically for up to $200. Additional Insurance can be purchased for values $200 and greater.
131
- # @option option [String] :ContentTypeOther (Optional)
132
- # - Required when <ContentType>OTHER<ContentType>.
133
- # @option option [String] :Agreement (Required)
134
- # - Requires a value of “Y” to print <FromFirstName/> and <FromLastName/> in Signature Box along with Current Date (Central Time USA). Any other value returns an error.
135
- # @option option [String] :Comments (Optional)
136
- # - Enter any comments. For example: <Comments> eVSExpressMailIntl</Comments>
137
- # @option option [String] :LicenseNumber (Optional)
138
- # - Enter license number, if known or if included in package. For example: <LicenseNumber>LIC-24356879</LicenseNumber>
139
- # @option option [String] :CertificateNumber (Optional)
140
- # - Enter certificate number, if known or if included in package. For example: <CertificateNumber>CERT-97865342</CertificateNumber>
141
- # @option option [String] :InvoiceNumber (Optional)
142
- # - Enter invoice number, if known or if included in package. For example: <InvoiceNumber>INV-040903</InvoiceNumber>
143
- # @option option [String] :ImageType (Required)
144
- # - Label Image Type. Note: All <ImageType> values are ignored when <ImageParameter> = “4X6ZPL203DPI” or “4X6ZPL300DPI”. For example: <ImageType>PDF</ImageType>
145
- # @option option [String] :ImageLayout (Optional)
146
- # - Controls how the multipage form is returned in the response tags. "ONEPERFILE" returns one page per response tag while “ALLINONEFILE” returns all pages in a single response tag. The “TRIM” options conserve page space if possible, by combining two form parts on a single page. For example: <ImageLayout>ONEPERFILE<ImageLayout>
147
- # @option option [String] :CustomerRefNo (Optional)
148
- # - Written to Postal Manifest Detail record. For example: <CustomerRefNo>Ref 369246</CustomerRefNo>
149
- # @option option [String] :CustomerRefNo2 (Optional)
150
- # - Written to Postal Manifest Detail record. For example: <CustomerRefNo2>ACT369246</CustomerRefNo2>
151
- # @option option [String] :POZipCode (Optional)
152
- # - ZIP Code of Post Office or collection box where item is mailed. May be different than FromZip5. This tag will take precedence over FromZip5 when provided. For example: <POZipCode>00962</POZipCode>
153
- # @option option [String] :LabelDate (Optional)
154
- # - Date the mail will enter the mail stream. No more than 3 days in the future. Default is day of request. For example: <LabelDate>09/28/2010</LabelDate>
155
- # @option option [] :EMCAAccount (Optional)
156
- # - For future use. USPS Corporate Account
157
- # @option option [String] :HoldForManifest (Optional)
158
- # - Restricted use. Holds manifest record for possible inclusion in SCAN request.
159
- # @option option [String] :EELPFC (Optional)
160
- # - Exemption and Exclusion Legend or PFC Code. Please refer to the International Mail Manual for further information: http://pe.usps.gov/text/imm/immc5_007.htm. For example: <EELPFC>30.37a</EELPFC>
161
- # @option option [String] :PriceOptions (Optional)
162
- # - Indicates if commercial-base price should be returned. For commercial-base price eligibility, please reference the Domestic Mail Manual at http://pe.usps.com/.
163
- # @option option [String] :Length (Optional)
164
- # - Value must be numeric. Units are inches. If partial dimensions are provided, an error response will return. Length, Width, Height are required for accurate pricing of a rectangular package when any dimension of the item exceeds 12 inches. In addition, Girth is required only for a non-rectangular package in addition to Length, Width, Height when any dimension of the package exceeds 12 inches. For rectangular packages, the Girth dimension must be left blank as this dimension is to only be used for non-rectangular packages. Please reference https://about.usps.com/postalbulletin/2018/pb22509/html/updt_002.htm for more details on dimensional weight pricing
165
- # @option option [String] :Width (Optional)
166
- # - Value must be numeric. Units are inches. If partial dimensions are provided, an error response will return. Length, Width, Height are required for accurate pricing of a rectangular package when any dimension of the item exceeds 12 inches. In addition, Girth is required only for a non-rectangular package in addition to Length, Width, Height when any dimension of the package exceeds 12 inches. For rectangular packages, the Girth dimension must be left blank as this dimension is to only be used for non-rectangular packages. Please reference https://about.usps.com/postalbulletin/2018/pb22509/html/updt_002.htm for more details on dimensional weight pricing
167
- # @option option [String] :Height (Optional)
168
- # - Value must be numeric. Units are inches. If partial dimensions are provided, an error response will return. Length, Width, Height are required for accurate pricing of a rectangular package when any dimension of the item exceeds 12 inches. In addition, Girth is required only for a non-rectangular package in addition to Length, Width, Height when any dimension of the package exceeds 12 inches. For rectangular packages, the Girth dimension must be left blank as this dimension is to only be used for non-rectangular packages. Please reference https://about.usps.com/postalbulletin/2018/pb22509/html/updt_002.htm for more details on dimensional weight pricing
169
- # @option option [String] :Girth (Optional)
170
- # - Value must be numeric. Units are inches. If partial dimensions are provided, an error response will return. Length, Width, Height are required for accurate pricing of a rectangular package when any dimension of the item exceeds 12 inches. In addition, Girth is required only for a non-rectangular package in addition to Length, Width, Height when any dimension of the package exceeds 12 inches. For rectangular packages, the Girth dimension must be left blank as this dimension is to only be used for non-rectangular packages. Please reference https://about.usps.com/postalbulletin/2018/pb22509/html/updt_002.htm for more details on dimensional weight pricing
171
- # @option option [String] :LabelTime (Optional)
172
- # - Available if <Revision>= 2. LabelTime is used in conjunction with LabelDate to determine the Guarantee
173
- # @option option [String] :MeterPaymentFlag (Optional)
174
- # - Meter payment indicator
175
- # @option option [String] :ActionCode (Optional)
176
- # - Used to specify the action code.Value is passed to Shipping Partner Event file via the shipment manifest. · M0 – Mailer Owner · S0 – Service Provider For example: <ActionCode>M0</ActionCode>
177
- # @option option [Boolean] :OptOutOfSPE (Optional)
178
- # - Allows a customer to opt out of SPE file creation. “false” WILL create a SPE file. Note: This request tag is case sensitive.
179
- # @option option [String] :PermitNumber (Optional)
180
- # - Number associated with a mailing permit. The permit is permission to use a certain postage payment method for bulk and commercial mailings
181
- # @option option [String] :AccountZipCode (Optional)
182
- # - ZIP of Account Post Office where mailed if different from <FromZip5>. Written to Postal Manifest Detail record. Must be valid ZIP Code. For example: <AccountZipCode>00962</AccountZipCode>
183
- # @option option [String] :ImportersReferenceType (Optional)
184
- # - Tax code / VAT no. / Importer Code.
185
- # @option option [String] :ImportersTelephoneNumber (Optional)
186
- # - For Importer: 10 digits (including area code), with no punctuation. Use format: 2125551234 For example: <ImportersTelephoneNumber>5555555555</ImportersTelephoneNumber>
187
- # @option option [String] :ImportersFaxNumber (Optional)
188
- # - For Importer: No format checking is done on international fax numbers. For example: <ImportersFaxNumber>011 52 (322) 222-0074</ImportersFaxNumber>
189
- # @option option [String] :ImportersEmail (Optional)
190
- # - For Importer: Complete valid e-mail address is Required if tag is used. For example: <ImportersEmail>cpapple@email.com</ImportersEmail>
191
- # @option option [Boolean] :Machinable (Optional)
192
- # - Indicates whether the item is machinable. For example: <Machinable>false</Machinable>
193
- # @option option [String] :DestinationRateIndicator (Required)
194
- # - Required for destination entry packages enter either “I” or “N”. · I= International Service Center (ISC) · N = None
195
- # @option option [String] :MID (Optional)
196
- # - Mailer ID (MID), Represents Mail Owner MID. Located in position #13 in the Detail 1 record of the Shipping Services File v2.0. For example: <MID>847654321</ MID>
197
- # @option option [String] :LogisticsManagerMID (Optional)
198
- # - The MID of the company that manages the mailing. Located in position #12 in the Detail 1 record of the Shipping Services File v2.0. Note: If LogisticsManagerMID is populated, either CRID or MID must also be populated. For example: <LogisticsManagerMID>489001< / LogisticsManagerMID>
199
- # @option option [String] :CRID (Optional)
200
- # - Customer Registration ID, Represents Mail Owner CRID. Located in position #20 in the Detail 1 record of the Shipping Services File v2.0. For example: <CRID>544762</ CRID>
201
- # @option option [String] :VendorCode (Optional)
202
- # - Code from vendor software to identify the developer of the shipping system. Located in position #15 in the Detail 1 record of the Shipping Services File v2.0. For example: <VendorCode>1234<VendorCode>
203
- # @option option [String] :VendorProductVersionNumber (Optional)
204
- # - Shipping software’s product version number. Located in position #16 in the Detail 1 record of the Shipping Services File v2.0. For example: <VendorProductVersionNumber>5.02.1B</ VendorProductVersionNumber>
205
- # @option option [String] :ePostageMailerReporting (Optional)
206
- # - Verifies Sender Information, sender fields must match From information when <ePostageMailerReporting>=1 · 1 - (ePostage sender information in SSF) · 2 - (ePostage sender information through DES) · 3 - (ePostage sender information using child MID)
207
- # @option option [String] :SenderFirstName (Optional)
208
- # - First Name of Sender. For example: <SenderFirstName>Adam </SenderFirstName> Required when <ePostageMailerReporting>=1
209
- # @option option [String] :SenderLastName (Optional)
210
- # - Last Name of Sender. For example: <SenderLastName>Smith </SenderLastName> Required when <ePostageMailerReporting>=1
211
- # @option option [String] :SenderBusinessName (Optional)
212
- # - Values for Sender Business Name must be sent. For example: <SenderBusinessName>USPS</SenderBusinessName>
213
- # @option option [String] :SenderAddress1 (Optional)
214
- # - Sender address line. Use this tag for full address (Address1 and Address2) Must match Address1 and Address2 or will produce an error. For example: <SenderAddress1>STE 150 10 Elm Street </SenderAddress1> Required when <ePostageMailerReporting>=1
215
- # @option option [String] :SenderCity (Optional)
216
- # - Sender city. For example: <SenderCity>BETHESDA</SenderCity>Required when <ePostageMailerReporting>=1
217
- # @option option [String] :SenderState (Optional)
218
- # - Sender state. For example: <SenderState>MD</SenderState> Required when <ePostageMailerReporting>=1
219
- # @option option [String] :SenderZip5 (Optional)
220
- # - Sender ZIP code. For example: <SenderZip5>20212</SenderZip5> Required when <ePostageMailerReporting>=1
221
- # @option option [String] :SenderPhone (Optional)
222
- # - Sender Phone #. 10 digits Required (including area code), with no punctuation. For example: <SenderPhone>2125551234</SenderPhone> Required when <ePostageMailerReporting>=1
223
- # @option option [String] :SenderEmail (Optional)
224
- # - E-mail Address of Sender. Valid e-mail addresses must be used. For example: <SenderEMail>cpapple@email.com</SenderEMail> Required when <ePostageMailerReporting>=1
225
-
226
- #
227
- # @see
228
- def e_vs_express_mail_intl(options = {})
12
+ # @param [Hash] options
13
+ # @option options [required, Hash] e_vs_express_mail_intl_request
14
+ # * *:option* (Empty) For future use.
15
+ # * *:revision* (String) — Use of value 2 Required as of January 2011. For example: <Revision>2</Revision>
16
+ # * *:image_parameters* (Hash) Groups alternate image options.
17
+ # * *:image_parameter* (String) — Returns alternate label image. Only alternate 4’’x6’’ size label image may be requested at this time. · 4X6LABEL - (4X6 on a full page 8.5/11” background) · 4X6LABELL- (Landscape – true size 4X6; image rotated, not on an 8.5 x 11 background page) · 4X6LABELP - (Portrait – true size 4X6, not on an 8.5 x 11 background page) · 4X6ZPL203DPI - (ZPL - Zebra Programming Language) format. When using this enumeration, <ImageType> is required - this tag cannot be left blank. Integrators should use either “TIF” or “PDF” for ZPL – neither value will impact the label image itself, but it must be included in the request to return a successful response. · 4X6ZPL300DPI - Prints a label formatted for ZPL printers in 300 dpi. When using this enumeration, <ImageType> is required - this tag cannot be left blank. Integrators should use either “TIF” or “PDF” for ZPL – neither value will impact the label image itself, but it must be included in the request to return a successful response. For example: <ImageParameter>4X6LABEL</ImageParameter>
18
+ # * *:from_first_name* (required, String) — Both FromFirstName and FromLastName are Required if FromFirmName is left blank. Maximum Length: 32 characters total for First, Middle, and Last Names with space after first and middle name. For example: <FromFirstName>John</FromFirstName>
19
+ # * *:from_middle_initial* (String) Middle Initial. Maximum Length: 32 characters total for First, Middle, and Last Names with space after first and middle name. For example: <FromMiddleInitial>L</FromMiddleInitial>
20
+ # * *:from_last_name* (required, String) — Both FromFirstName and FromLastName are Required if FromFirmName is left blank. Maximum Length: 32 characters total for First, Middle, and Last Names with space after first and middle name. For example: <FromLastName>Doe</FromLastName>
21
+ # * *:from_firm* (required, String) FromFirm is Required if FromFirstName and FromLastName are left blank. For example: <FromFirm>ABC Corp</FromFirm>
22
+ # * *:from_address1* (String) — Use this tag for a suite or apartment number only. Either Address1 or Address2 is Required. For example: <FromAddress1>Suite 101 </FromAddress1>
23
+ # * *:from_address2* (required, String) Use this tag for the primary address line. For example: <FromAddress2>10 Elm Street </FromAddress2>
24
+ # * *:from_urbanization* (String) — Use this tag for Puerto Rico only. ZIP Code prefixes 006 to 009, if area is so designated. For example: <FromUrbanization>URB Caparra Ter</FromUrbanization>
25
+ # * *:from_city* (required, String) For example: <FromCity>Bristol</FromCity>
26
+ # * *:from_state* (required, String) — Use 2-letter USPS state abbreviation. For example: <FromState>CT</FromState>
27
+ # * *:from_zip5* (required, String) Input tag exactly as presented, not all caps. 5 digits Required. For example: <FromZip5>06010</FromZip5>
28
+ # * *:from_zip4* (String) — Input tag exactly as presented, not all caps. If value is entered, 4 digits Required. This is the ZIP+4 extension. For example: <FromZip4>5678</FromZip4>
29
+ # * *:from_phone* (required, String) — 10 digits Required (including area code), with no punctuation. Use format: 2125551234 For example: <FromPhone>5555555555</FromPhone>
30
+ # * *:from_customs_reference* (String) — Enter a value for the "Sender's Customs Reference" that will appear on the label. The text entered is any reference number that the sender wishes to use. For example: <FromCustomsReference></FromCustomsReference>
31
+ # * *:to_name* (String) Deprecated. See “ToFirstName” and “ToLastName” tags.
32
+ # * *:to_first_name* (required, String) — Both ToFirstName and ToLastName are Required if ToFirm is left blank. For example: <ToFirstName>John</ToFirstName>
33
+ # * *:to_last_name* (required, String) Both ToFirstName and ToLastName are Required if ToFirm is left blank. For example: <ToLastName>Doe</ToLastName>
34
+ # * *:to_firm* (required, String) — ToFirm is Required if ToFirstName and ToLastName are left blank. For example: <ToFirm>ABC Co</ToFirm>
35
+ # * *:to_address1* (String) Three address lines are provided, but only 1 is Required. Use as many as needed for complete address. For example: <ToAddress1> 60 Carlton St</ToAddress1>
36
+ # * *:to_address2* (required, String) Three address lines are provided, but only 1 is Required. Use as many as needed for complete address.
37
+ # * *:to_address3* (String) — Three address lines are provided, but only 1 is Required. Use as many as needed for complete address.
38
+ # * *:to_city* (required, String) — Recipient's city. For example: <ToCity>Toronto</ToCity>
39
+ # * *:to_province* (String) Enter the province for the recipient. For example: <ToProvince>ON</ToProvince>
40
+ # * *:to_country* (required, String) — The country name entered must match an entry from the USPS-approved International Index of Countries and Localities. See the Index of Countries and Localities. Using a country name not on the list will result in a request failure. For example: <ToCountry>Canada</ToCountry>
41
+ # * *:to_postal_code* (required, String) Enter the postal code for the recipient. For example: <ToPostalCode> M5B 1J2</ToPostalCode>
42
+ # * *:to_po_box_flag* (required, String) — Indicates whether the destination address is a Post Office Box. For example: <ToPOBoxFlag>N</ToPOBoxFlag>
43
+ # * *:to_phone* (String) No format checking is done on international phone numbers. Required when <ToPOBoxFlag>Y</ToPOBoxFlag> For example: <ToPhone>011 52 (322) 222-0069</ToPhone>
44
+ # * *:to_fax* (String) — No format checking is done on international fax numbers. For example: <ToFax>011 52 (322) 222-0074</ToFax>
45
+ # * *:to_email* (String) Complete valid e-mail address is Required if tag is used. For example: <ToEmail>cpapple@email.com</ToEmail>
46
+ # * *:importers_reference_number* (String) — Enter a value for the "Importer's Customs Reference" that will appear on the label. The text entered is any reference number that the recipient wishes to use. For example: <ToCustomsReference>Order 23432</ToCustomsReference>
47
+ # * *:non_delivery_option* (String) In case package is undeliverable, enter one of the following: "RETURN" for package to be returned to <FromAddress> above. "REDIRECT" to return package to address specified below in <AltReturn> tags. "ABANDON" to dispose of undeliverable package. For example: <NonDeliveryOption>RETURN</NonDeliveryOption>
48
+ # * *:redirect_name* (String) Enter a value for the recipient's name.
49
+ # * *:redirect_email* (String) — Complete valid e-mail address is required if tag is used.
50
+ # * *:redirect_sms* (String) This value must be a syntactically valid SMS number.
51
+ # * *:redirect_address* (String) Enter the redirect address. This is a free form field.
52
+ # * *:redirect_city* (String) — Redirect city. For example: <RedirectCity>ANYTOWN</RedirectCity>
53
+ # * *:redirect_state* (String) Redirect state. For example: <RedirectState>MN</RedirectState>
54
+ # * *:redirect_zip_code* (String) — Redirect ZIP code. For example: <RedirectZipCode>12345</RedirectZipCode>
55
+ # * *:redirect_zip4* (String) Redirect ZIP+4 extension. For example: <RedirectZip4>01234</RedirectZip4>
56
+ # * *:container* (String) Container type.
57
+ # * *:shipping_contents* (required, Hash)
58
+ # * *:item_detail* (Hash)
59
+ # * *:description* (required, String) Description of the item. For example: <Description>Policy guidelines document</Description>
60
+ # * *:quantity* (required, integer) — Quantity of the item. Integer value Required. For example: <Quantity>1</Quantity>
61
+ # * *:value* (required, decimal) The data entered with this tag provides the value of the set of items. If the item is 2 boxes of 50 pens and the value of each box is $10.00, "20.00" (2 boxes x $10.00) should be entered. If the value of each pen is .25 then "25.00" (100 pens x .25) should be entered. For example: <Value>55.00</Value>
62
+ # * *:net_pounds* (required, integer) — Provide the pounds component of the weight of the individual item listed with <Description>. For example: <NetPounds>1</NetPounds>
63
+ # * *:net_ounces* (required, decimal) — Provide the ounces component of the weight of the individual item listed with <Description>. For example: <NetOunces>5</NetOunces>
64
+ # * *:hs_tariff_number* (required, String) — For commercial items only. If known, the HS tariff number must be based on the Harmonized Commodity Description and Coding System developed by the World Customs Organization. For example: <HSTariffNumber>490110</HSTariffNumber>
65
+ # * *:country_of_origin* (required, String) — For commercial items only. Country of Origin means the country where the goods originated, e.g. were produced, manufactured, or assembled. It is recommended you supply this information and attach an invoice to the outside to accelerate customs clearance in processing the items. The country name entered must match an entry from the USPS-approved International Index of Countries and Localities or be "United States". http://pe.usps.gov/text/Imm/immctry.htm – click on the link for “International Country Listings”. Using a country name not on the list will result in a request failure. For example: <CountryOfOrigin>United States</CountryOfOrigin>
66
+ # * *:insured_number* (String) For backward compatibility; not validated.
67
+ # * *:insured_amount* (String) Use this tag for entering an insurance amount, if known. For example: <InsuredAmount>100.00</InsuredAmount>
68
+ # * *:postage* (String) — Use this tag for entering a postage amount, if known. If the tag is present, but the value is blank, the postage will be automatically calculated. For example: <Postage>10.50</Postage>
69
+ # * *:gross_pounds* (required, integer) — Gross pounds and ounces together represent the total package weight, including packing material. For example, a package weighing 3 lbs 8 ounces would have "3" entered here and "8" entered with the <GrossOunces> tag. The Web Tool will check for maximum shipping weight of 70 pounds. Allowable weight may change based on the service used to send package and the destination country. For example: <GrossPounds>4</GrossPounds>
70
+ # * *:gross_ounces* (required, integer) — Enter the ounces component of the total package weight with this tag. For example: <GrossOunces>0</GrossOunces>
71
+ # * *:content_type* (required, String) — Specifies the content of the package or envelope. For example: <ContentType>DOCUMENTS</ContentType> Note : “NONNEGOTIABLEDOCUMENT” and “DOCUMENTS” both signify mailable non-negotiable documents and are insured automatically for up to $100, though Insurance will not be returned as an extra service. Additional Insurance cannot be purchased. Any non-document <ContentType> values are insured automatically for up to $200. Additional Insurance can be purchased for values $200 and greater.
72
+ # * *:content_type_other* (String) Required when <ContentType>OTHER<ContentType>.
73
+ # * *:agreement* (required, String) Requires a value of “Y” to print <FromFirstName/> and <FromLastName/> in Signature Box along with Current Date (Central Time USA). Any other value returns an error.
74
+ # * *:comments* (String) — Enter any comments. For example: <Comments> eVSExpressMailIntl</Comments>
75
+ # * *:license_number* (String) Enter license number, if known or if included in package. For example: <LicenseNumber>LIC-24356879</LicenseNumber>
76
+ # * *:certificate_number* (String) — Enter certificate number, if known or if included in package. For example: <CertificateNumber>CERT-97865342</CertificateNumber>
77
+ # * *:invoice_number* (String) Enter invoice number, if known or if included in package. For example: <InvoiceNumber>INV-040903</InvoiceNumber>
78
+ # * *:image_type* (required, String) — Label Image Type. Note: All <ImageType> values are ignored when <ImageParameter> = “4X6ZPL203DPI” or “4X6ZPL300DPI”. For example: <ImageType>PDF</ImageType>
79
+ # * *:image_layout* (String) Controls how the multipage form is returned in the response tags. "ONEPERFILE" returns one page per response tag while “ALLINONEFILE” returns all pages in a single response tag. The “TRIM” options conserve page space if possible, by combining two form parts on a single page. For example: <ImageLayout>ONEPERFILE<ImageLayout>
80
+ # * *:customer_ref_no* (String) — Written to Postal Manifest Detail record. For example: <CustomerRefNo>Ref 369246</CustomerRefNo>
81
+ # * *:customer_ref_no2* (String) Written to Postal Manifest Detail record. For example: <CustomerRefNo2>ACT369246</CustomerRefNo2>
82
+ # * *:po_zip_code* (String) — ZIP Code of Post Office or collection box where item is mailed. May be different than FromZip5. This tag will take precedence over FromZip5 when provided. For example: <POZipCode>00962</POZipCode>
83
+ # * *:label_date* (String) Date the mail will enter the mail stream. No more than 3 days in the future. Default is day of request. For example: <LabelDate>09/28/2010</LabelDate>
84
+ # * *:emca_account* () For future use. USPS Corporate Account
85
+ # * *:hold_for_manifest* (String) Restricted use. Holds manifest record for possible inclusion in SCAN request.
86
+ # * *:eelpfc* (String) — Exemption and Exclusion Legend or PFC Code. Please refer to the International Mail Manual for further information: http://pe.usps.gov/text/imm/immc5_007.htm. For example: <EELPFC>30.37a</EELPFC>
87
+ # * *:price_options* (String) — Indicates if commercial-base price should be returned. For commercial-base price eligibility, please reference the Domestic Mail Manual at http://pe.usps.com/.
88
+ # * *:length* (String) Value must be numeric. Units are inches. If partial dimensions are provided, an error response will return. Length, Width, Height are required for accurate pricing of a rectangular package when any dimension of the item exceeds 12 inches. In addition, Girth is required only for a non-rectangular package in addition to Length, Width, Height when any dimension of the package exceeds 12 inches. For rectangular packages, the Girth dimension must be left blank as this dimension is to only be used for non-rectangular packages. Please reference https://about.usps.com/postalbulletin/2018/pb22509/html/updt_002.htm for more details on dimensional weight pricing
89
+ # * *:width* (String) — Value must be numeric. Units are inches. If partial dimensions are provided, an error response will return. Length, Width, Height are required for accurate pricing of a rectangular package when any dimension of the item exceeds 12 inches. In addition, Girth is required only for a non-rectangular package in addition to Length, Width, Height when any dimension of the package exceeds 12 inches. For rectangular packages, the Girth dimension must be left blank as this dimension is to only be used for non-rectangular packages. Please reference https://about.usps.com/postalbulletin/2018/pb22509/html/updt_002.htm for more details on dimensional weight pricing
90
+ # * *:height* (String) Value must be numeric. Units are inches. If partial dimensions are provided, an error response will return. Length, Width, Height are required for accurate pricing of a rectangular package when any dimension of the item exceeds 12 inches. In addition, Girth is required only for a non-rectangular package in addition to Length, Width, Height when any dimension of the package exceeds 12 inches. For rectangular packages, the Girth dimension must be left blank as this dimension is to only be used for non-rectangular packages. Please reference https://about.usps.com/postalbulletin/2018/pb22509/html/updt_002.htm for more details on dimensional weight pricing
91
+ # * *:girth* (String) — Value must be numeric. Units are inches. If partial dimensions are provided, an error response will return. Length, Width, Height are required for accurate pricing of a rectangular package when any dimension of the item exceeds 12 inches. In addition, Girth is required only for a non-rectangular package in addition to Length, Width, Height when any dimension of the package exceeds 12 inches. For rectangular packages, the Girth dimension must be left blank as this dimension is to only be used for non-rectangular packages. Please reference https://about.usps.com/postalbulletin/2018/pb22509/html/updt_002.htm for more details on dimensional weight pricing
92
+ # * *:label_time* (String) Available if <Revision>= 2. LabelTime is used in conjunction with LabelDate to determine the Guarantee
93
+ # * *:meter_payment_flag* (String) Meter payment indicator
94
+ # * *:action_code* (String) — Used to specify the action code.Value is passed to Shipping Partner Event file via the shipment manifest. · M0 – Mailer Owner · S0 – Service Provider For example: <ActionCode>M0</ActionCode>
95
+ # * *:opt_out_of_spe* (Boolean) — Allows a customer to opt out of SPE file creation. “false” WILL create a SPE file. Note: This request tag is case sensitive.
96
+ # * *:permit_number* (String) Number associated with a mailing permit. The permit is permission to use a certain postage payment method for bulk and commercial mailings
97
+ # * *:account_zip_code* (String) — ZIP of Account Post Office where mailed if different from <FromZip5>. Written to Postal Manifest Detail record. Must be valid ZIP Code. For example: <AccountZipCode>00962</AccountZipCode>
98
+ # * *:importers_reference_type* (String) Tax code / VAT no. / Importer Code.
99
+ # * *:importers_telephone_number* (String) — For Importer: 10 digits (including area code), with no punctuation. Use format: 2125551234 For example: <ImportersTelephoneNumber>5555555555</ImportersTelephoneNumber>
100
+ # * *:importers_fax_number* (String) — For Importer: No format checking is done on international fax numbers. For example: <ImportersFaxNumber>011 52 (322) 222-0074</ImportersFaxNumber>
101
+ # * *:importers_email* (String) — For Importer: Complete valid e-mail address is Required if tag is used. For example: <ImportersEmail>cpapple@email.com</ImportersEmail>
102
+ # * *:machinable* (Boolean) — Indicates whether the item is machinable. For example: <Machinable>false</Machinable>
103
+ # * *:destination_rate_indicator* (required, String) Required for destination entry packages enter either “I” or “N”. · I= International Service Center (ISC) · N = None
104
+ # * *:mid* (String) Mailer ID (MID), Represents Mail Owner MID. Located in position #13 in the Detail 1 record of the Shipping Services File v2.0. For example: <MID>847654321</ MID>
105
+ # * *:logistics_manager_mid* (String) — The MID of the company that manages the mailing. Located in position #12 in the Detail 1 record of the Shipping Services File v2.0. Note: If LogisticsManagerMID is populated, either CRID or MID must also be populated. For example: <LogisticsManagerMID>489001< / LogisticsManagerMID>
106
+ # * *:crid* (String) — Customer Registration ID, Represents Mail Owner CRID. Located in position #20 in the Detail 1 record of the Shipping Services File v2.0. For example: <CRID>544762</ CRID>
107
+ # * *:vendor_code* (String) Code from vendor software to identify the developer of the shipping system. Located in position #15 in the Detail 1 record of the Shipping Services File v2.0. For example: <VendorCode>1234<VendorCode>
108
+ # * *:vendor_product_version_number* (String) — Shipping software’s product version number. Located in position #16 in the Detail 1 record of the Shipping Services File v2.0. For example: <VendorProductVersionNumber>5.02.1B</ VendorProductVersionNumber>
109
+ # * *:e_postage_mailer_reporting* (String) Verifies Sender Information, sender fields must match From information when <ePostageMailerReporting>=1 · 1 - (ePostage sender information in SSF) · 2 - (ePostage sender information through DES) · 3 - (ePostage sender information using child MID)
110
+ # * *:sender_first_name* (String) — First Name of Sender. For example: <SenderFirstName>Adam </SenderFirstName> Required when <ePostageMailerReporting>=1
111
+ # * *:sender_last_name* (String) Last Name of Sender. For example: <SenderLastName>Smith </SenderLastName> Required when <ePostageMailerReporting>=1
112
+ # * *:sender_business_name* (String) — Values for Sender Business Name must be sent. For example: <SenderBusinessName>USPS</SenderBusinessName>
113
+ # * *:sender_address1* (String) Sender address line. Use this tag for full address (Address1 and Address2) Must match Address1 and Address2 or will produce an error. For example: <SenderAddress1>STE 150 10 Elm Street </SenderAddress1> Required when <ePostageMailerReporting>=1
114
+ # * *:sender_city* (String) — Sender city. For example: <SenderCity>BETHESDA</SenderCity>Required when <ePostageMailerReporting>=1
115
+ # * *:sender_state* (String) Sender state. For example: <SenderState>MD</SenderState> Required when <ePostageMailerReporting>=1
116
+ # * *:sender_zip5* (String) — Sender ZIP code. For example: <SenderZip5>20212</SenderZip5> Required when <ePostageMailerReporting>=1
117
+ # * *:sender_phone* (String) — Sender Phone #. 10 digits Required (including area code), with no punctuation. For example: <SenderPhone>2125551234</SenderPhone> Required when <ePostageMailerReporting>=1
118
+ # * *:sender_email* (String) — E-mail Address of Sender. Valid e-mail addresses must be used. For example: <SenderEMail>cpapple@email.com</SenderEMail> Required when <ePostageMailerReporting>=1
119
+ def e_vs_express_mail_intl(options = {})
229
120
  throw ArgumentError.new('Required arguments :e_vs_express_mail_intl_request missing') if options[:e_vs_express_mail_intl_request].nil?
230
121
 
231
122
  request = build_request(:e_vs_express_mail_intl, options)