add prr option to some methods
This commit is contained in:
		@@ -435,3 +435,22 @@ const (
 | 
			
		||||
	// closed
 | 
			
		||||
	ShitmentCertificateFilterClosed ShipmentCertificateFilterStatus = "closed"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
type PRROptionStatus string
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	// carrying the bulky product using the elevator
 | 
			
		||||
	PRROptionLift PRROptionStatus = "lift"
 | 
			
		||||
 | 
			
		||||
	// carrying the bulky product upstairs
 | 
			
		||||
	PRROptionStairs PRROptionStatus = "stairs"
 | 
			
		||||
 | 
			
		||||
	// the customer canceled the service, 
 | 
			
		||||
	// you don't need to lift the shipment
 | 
			
		||||
	PRROptionNone PRROptionStatus = "none"
 | 
			
		||||
 | 
			
		||||
	// delivery is included in the price. 
 | 
			
		||||
	// According to the offer you need to 
 | 
			
		||||
	// deliver products to the floor
 | 
			
		||||
	PRROptionDeliveryDefault PRROptionStatus = "delivery_default"
 | 
			
		||||
)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										20
									
								
								ozon/fbs.go
									
									
									
									
									
								
							
							
						
						
									
										20
									
								
								ozon/fbs.go
									
									
									
									
									
								
							@@ -92,6 +92,10 @@ type FBSPosting struct {
 | 
			
		||||
 | 
			
		||||
	Products []PostingProduct `json:"products"`
 | 
			
		||||
 | 
			
		||||
	// The parameter is only relevant for bulky products 
 | 
			
		||||
	// with a delivery by a third-party or integrated service
 | 
			
		||||
	PRROption PRROptionStatus `json:"prr_option"`
 | 
			
		||||
 | 
			
		||||
	Requirements FBSRequirements `json:"requirements"`
 | 
			
		||||
 | 
			
		||||
	ShipmentDate       time.Time `json:"shipment_date"`
 | 
			
		||||
@@ -740,6 +744,22 @@ type GetShipmentDataByIdentifierResponse struct {
 | 
			
		||||
		// Delivery service status
 | 
			
		||||
		ProviderStatus string `json:"provider_status"`
 | 
			
		||||
 | 
			
		||||
		// Information on lifting service. Only relevant for bulky products 
 | 
			
		||||
		// with a delivery by a third-party or integrated service
 | 
			
		||||
		PRROption struct {
 | 
			
		||||
			// Lifting service code
 | 
			
		||||
			Code PRROptionStatus `json:"code"`
 | 
			
		||||
 | 
			
		||||
			// Service cost, which Ozon reimburses to the seller
 | 
			
		||||
			Price string `json:"price"`
 | 
			
		||||
 | 
			
		||||
			// Currency
 | 
			
		||||
			CurrencyCode string `json:"currency_code"`
 | 
			
		||||
 | 
			
		||||
			// Floor to which you need to lift the product
 | 
			
		||||
			Floor string `json:"floor"`
 | 
			
		||||
		} `json:"prr_option"`
 | 
			
		||||
 | 
			
		||||
		// Related shipments
 | 
			
		||||
		RelatedPostings struct {
 | 
			
		||||
			RelatedPostingNumbers []string `json:"related_posting_numbers"`
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user