-
Notifications
You must be signed in to change notification settings - Fork 2
/
urls.go
38 lines (30 loc) · 1.66 KB
/
urls.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package periodorder
import "github.com/Huawei/gophercloud"
//GET /v1.0/{domain_id}/common/order-mgr/orders/detail
func getQueryOrderListURL(client *gophercloud.ServiceClient, domainId string) string {
return client.ServiceURL(domainId, "common/order-mgr/orders/detail")
}
//GET /v1.0/{domain_id}/common/order-mgr/orders/{order_id}
func getQueryOrderDetailURL(client *gophercloud.ServiceClient, domainId string, orderId string) string {
return client.ServiceURL(domainId, "common/order-mgr/orders", orderId)
}
//POST /v1.0/{domain_id}/customer/order-mgr/order/pay
func getPayPeriodOrderURL(client *gophercloud.ServiceClient, domainId string) string {
return client.ServiceURL(domainId, "customer/order-mgr/order/pay")
}
//DELETE /v1.0/{domain_id}/customer/order-mgr/orders/{order_id}
func getUnsubscribePeriodOrderURL(client *gophercloud.ServiceClient, domainId string, orderId string) string {
return client.ServiceURL(domainId, "customer/order-mgr/orders", orderId)
}
//PUT /v1.0/{domain_id}/customer/order-mgr/orders/actions
func getCancelOrderURL(client *gophercloud.ServiceClient, domainId string) string {
return client.ServiceURL(domainId, "customer/order-mgr/orders/actions")
}
//GET /v1.0/{domain_id}/common/order-mgr/orders-resource/{order_id}
func getQueryResourceStatusByOrderIdURL(client *gophercloud.ServiceClient, domainId string, orderId string) string {
return client.ServiceURL(domainId, "common/order-mgr/orders-resource", orderId)
}
//GET /v1.0/{domain_id}/common/order-mgr/orders/refund-order
func getQueryRefundOrderAmountURL(client *gophercloud.ServiceClient, domainId string) string {
return client.ServiceURL(domainId, "common/order-mgr/orders/refund-order")
}