Module
client_stubs
Module client_stubs
API
AdServiceAdResponseCallerAdServiceClientCartServiceCartCallerCartServiceClientCartServiceEmptyCallerCheckoutServiceClientCheckoutServicePlaceOrderResponseCallerCurrencyServiceClientCurrencyServiceGetSupportedCurrenciesResponseCallerCurrencyServiceMoneyCallerEmailServiceClientEmailServiceEmptyCallerPaymentServiceChargeResponseCallerPaymentServiceClientProductCatalogServiceClient
ProductCatalogServiceListProductsResponseCallerProductCatalogServiceProductCallerProductCatalogServiceSearchProductsResponseCallerRecommendationServiceClientRecommendationServiceListRecommendationsResponseCallerShippingServiceClientShippingServiceGetQuoteResponseCallerShippingServiceShipOrderResponseCaller
Declarations
Definitions
AdAddItemRequestAddressAdRequestAdResponseCartCartItemChargeRequestChargeResponseContextAddItemRequestContextAdRequestContextAdResponseContextCartContextChargeRequestContextChargeResponseContextCurrencyConversionRequestContextEmptyContextEmptyCartRequestContextGetCartRequestContextGetProductRequestContextGetQuoteRequestContextGetQuoteResponseContextGetSupportedCurrenciesResponseContextListProductsResponseContextListRecommendationsRequestContextListRecommendationsResponseContextMoneyContextPlaceOrderRequestContextPlaceOrderResponseContextProductContextSearchProductsRequestContextSearchProductsResponseContextSendOrderConfirmationRequestContextShipOrderRequestContextShipOrderResponseCreditCardInfoCurrencyConversionRequestEmptyEmptyCartRequestGetCartRequestGetProductRequestGetQuoteRequestGetQuoteResponseGetSupportedCurrenciesResponseListProductsResponseListRecommendationsRequestListRecommendationsResponseMoneyOrderItemOrderResultPlaceOrderRequestPlaceOrderResponseProductSearchProductsRequestSearchProductsResponseSendOrderConfirmationRequestShipOrderRequestShipOrderResponse
asankaabeysinghe/client_stubs
0.1.0
Clients
client_stubs: AdServiceAdResponseCaller
sendAdResponse
Isolated FunctionRemote Function
function sendAdResponse(AdResponse response) returns Error?
Parameters
- response AdResponse -
sendContextAdResponse
Isolated FunctionRemote Function
function sendContextAdResponse(ContextAdResponse response) returns Error?
Parameters
- response ContextAdResponse -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: AdServiceClient
Isolated
GetAds
Isolated FunctionRemote Function
function GetAds(AdRequest|ContextAdRequest req) returns AdResponse|Error
Parameters
- req AdRequest|ContextAdRequest -
GetAdsContext
Isolated FunctionRemote Function
function GetAdsContext(AdRequest|ContextAdRequest req) returns ContextAdResponse|Error
Parameters
- req AdRequest|ContextAdRequest -
client_stubs: CartServiceCartCaller
sendCart
Isolated FunctionRemote Function
Parameters
- response Cart -
sendContextCart
Isolated FunctionRemote Function
function sendContextCart(ContextCart response) returns Error?
Parameters
- response ContextCart -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: CartServiceClient
Isolated
AddItem
Isolated FunctionRemote Function
function AddItem(AddItemRequest|ContextAddItemRequest req) returns Empty|Error
Parameters
AddItemContext
Isolated FunctionRemote Function
function AddItemContext(AddItemRequest|ContextAddItemRequest req) returns ContextEmpty|Error
Parameters
GetCart
Isolated FunctionRemote Function
function GetCart(GetCartRequest|ContextGetCartRequest req) returns Cart|Error
Parameters
GetCartContext
Isolated FunctionRemote Function
function GetCartContext(GetCartRequest|ContextGetCartRequest req) returns ContextCart|Error
Parameters
EmptyCart
Isolated FunctionRemote Function
function EmptyCart(EmptyCartRequest|ContextEmptyCartRequest req) returns Empty|Error
Parameters
EmptyCartContext
Isolated FunctionRemote Function
function EmptyCartContext(EmptyCartRequest|ContextEmptyCartRequest req) returns ContextEmpty|Error
Parameters
client_stubs: CartServiceEmptyCaller
sendEmpty
Isolated FunctionRemote Function
Parameters
- response Empty -
sendContextEmpty
Isolated FunctionRemote Function
function sendContextEmpty(ContextEmpty response) returns Error?
Parameters
- response ContextEmpty -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: CheckoutServiceClient
Isolated
PlaceOrder
Isolated FunctionRemote Function
function PlaceOrder(PlaceOrderRequest|ContextPlaceOrderRequest req) returns PlaceOrderResponse|Error
Parameters
PlaceOrderContext
Isolated FunctionRemote Function
function PlaceOrderContext(PlaceOrderRequest|ContextPlaceOrderRequest req) returns ContextPlaceOrderResponse|Error
Parameters
client_stubs: CheckoutServicePlaceOrderResponseCaller
sendPlaceOrderResponse
Isolated FunctionRemote Function
function sendPlaceOrderResponse(PlaceOrderResponse response) returns Error?
Parameters
- response PlaceOrderResponse -
sendContextPlaceOrderResponse
Isolated FunctionRemote Function
function sendContextPlaceOrderResponse(ContextPlaceOrderResponse response) returns Error?
Parameters
- response ContextPlaceOrderResponse -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: CurrencyServiceClient
Isolated
GetSupportedCurrencies
Isolated FunctionRemote Function
function GetSupportedCurrencies(Empty|ContextEmpty req) returns GetSupportedCurrenciesResponse|Error
Parameters
- req Empty|ContextEmpty -
GetSupportedCurrenciesContext
Isolated FunctionRemote Function
function GetSupportedCurrenciesContext(Empty|ContextEmpty req) returns ContextGetSupportedCurrenciesResponse|Error
Parameters
- req Empty|ContextEmpty -
Convert
Isolated FunctionRemote Function
function Convert(CurrencyConversionRequest|ContextCurrencyConversionRequest req) returns Money|Error
Parameters
ConvertContext
Isolated FunctionRemote Function
function ConvertContext(CurrencyConversionRequest|ContextCurrencyConversionRequest req) returns ContextMoney|Error
Parameters
client_stubs: CurrencyServiceGetSupportedCurrenciesResponseCaller
sendGetSupportedCurrenciesResponse
Isolated FunctionRemote Function
function sendGetSupportedCurrenciesResponse(GetSupportedCurrenciesResponse response) returns Error?
Parameters
- response GetSupportedCurrenciesResponse -
sendContextGetSupportedCurrenciesResponse
Isolated FunctionRemote Function
function sendContextGetSupportedCurrenciesResponse(ContextGetSupportedCurrenciesResponse response) returns Error?
Parameters
- response ContextGetSupportedCurrenciesResponse -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: CurrencyServiceMoneyCaller
sendMoney
Isolated FunctionRemote Function
Parameters
- response Money -
sendContextMoney
Isolated FunctionRemote Function
function sendContextMoney(ContextMoney response) returns Error?
Parameters
- response ContextMoney -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: EmailServiceClient
Isolated
SendOrderConfirmation
Isolated FunctionRemote Function
function SendOrderConfirmation(SendOrderConfirmationRequest|ContextSendOrderConfirmationRequest req) returns Empty|Error
Parameters
SendOrderConfirmationContext
Isolated FunctionRemote Function
function SendOrderConfirmationContext(SendOrderConfirmationRequest|ContextSendOrderConfirmationRequest req) returns ContextEmpty|Error
Parameters
client_stubs: EmailServiceEmptyCaller
sendEmpty
Isolated FunctionRemote Function
Parameters
- response Empty -
sendContextEmpty
Isolated FunctionRemote Function
function sendContextEmpty(ContextEmpty response) returns Error?
Parameters
- response ContextEmpty -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: PaymentServiceChargeResponseCaller
sendChargeResponse
Isolated FunctionRemote Function
function sendChargeResponse(ChargeResponse response) returns Error?
Parameters
- response ChargeResponse -
sendContextChargeResponse
Isolated FunctionRemote Function
function sendContextChargeResponse(ContextChargeResponse response) returns Error?
Parameters
- response ContextChargeResponse -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: PaymentServiceClient
Isolated
Charge
Isolated FunctionRemote Function
function Charge(ChargeRequest|ContextChargeRequest req) returns ChargeResponse|Error
Parameters
ChargeContext
Isolated FunctionRemote Function
function ChargeContext(ChargeRequest|ContextChargeRequest req) returns ContextChargeResponse|Error
Parameters
client_stubs: ProductCatalogServiceClient
Isolated
ListProducts
Isolated FunctionRemote Function
function ListProducts(Empty|ContextEmpty req) returns ListProductsResponse|Error
Parameters
- req Empty|ContextEmpty -
ListProductsContext
Isolated FunctionRemote Function
function ListProductsContext(Empty|ContextEmpty req) returns ContextListProductsResponse|Error
Parameters
- req Empty|ContextEmpty -
GetProduct
Isolated FunctionRemote Function
function GetProduct(GetProductRequest|ContextGetProductRequest req) returns Product|Error
Parameters
GetProductContext
Isolated FunctionRemote Function
function GetProductContext(GetProductRequest|ContextGetProductRequest req) returns ContextProduct|Error
Parameters
SearchProducts
Isolated FunctionRemote Function
function SearchProducts(SearchProductsRequest|ContextSearchProductsRequest req) returns SearchProductsResponse|Error
Parameters
SearchProductsContext
Isolated FunctionRemote Function
function SearchProductsContext(SearchProductsRequest|ContextSearchProductsRequest req) returns ContextSearchProductsResponse|Error
Parameters
client_stubs: ProductCatalogServiceListProductsResponseCaller
sendListProductsResponse
Isolated FunctionRemote Function
function sendListProductsResponse(ListProductsResponse response) returns Error?
Parameters
- response ListProductsResponse -
sendContextListProductsResponse
Isolated FunctionRemote Function
function sendContextListProductsResponse(ContextListProductsResponse response) returns Error?
Parameters
- response ContextListProductsResponse -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: ProductCatalogServiceProductCaller
sendProduct
Isolated FunctionRemote Function
Parameters
- response Product -
sendContextProduct
Isolated FunctionRemote Function
function sendContextProduct(ContextProduct response) returns Error?
Parameters
- response ContextProduct -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: ProductCatalogServiceSearchProductsResponseCaller
sendSearchProductsResponse
Isolated FunctionRemote Function
function sendSearchProductsResponse(SearchProductsResponse response) returns Error?
Parameters
- response SearchProductsResponse -
sendContextSearchProductsResponse
Isolated FunctionRemote Function
function sendContextSearchProductsResponse(ContextSearchProductsResponse response) returns Error?
Parameters
- response ContextSearchProductsResponse -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: RecommendationServiceClient
Isolated
ListRecommendations
Isolated FunctionRemote Function
function ListRecommendations(ListRecommendationsRequest|ContextListRecommendationsRequest req) returns ListRecommendationsResponse|Error
Parameters
ListRecommendationsContext
Isolated FunctionRemote Function
function ListRecommendationsContext(ListRecommendationsRequest|ContextListRecommendationsRequest req) returns ContextListRecommendationsResponse|Error
Parameters
client_stubs: RecommendationServiceListRecommendationsResponseCaller
sendListRecommendationsResponse
Isolated FunctionRemote Function
function sendListRecommendationsResponse(ListRecommendationsResponse response) returns Error?
Parameters
- response ListRecommendationsResponse -
sendContextListRecommendationsResponse
Isolated FunctionRemote Function
function sendContextListRecommendationsResponse(ContextListRecommendationsResponse response) returns Error?
Parameters
- response ContextListRecommendationsResponse -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: ShippingServiceClient
Isolated
GetQuote
Isolated FunctionRemote Function
function GetQuote(GetQuoteRequest|ContextGetQuoteRequest req) returns GetQuoteResponse|Error
Parameters
GetQuoteContext
Isolated FunctionRemote Function
function GetQuoteContext(GetQuoteRequest|ContextGetQuoteRequest req) returns ContextGetQuoteResponse|Error
Parameters
ShipOrder
Isolated FunctionRemote Function
function ShipOrder(ShipOrderRequest|ContextShipOrderRequest req) returns ShipOrderResponse|Error
Parameters
ShipOrderContext
Isolated FunctionRemote Function
function ShipOrderContext(ShipOrderRequest|ContextShipOrderRequest req) returns ContextShipOrderResponse|Error
Parameters
client_stubs: ShippingServiceGetQuoteResponseCaller
sendGetQuoteResponse
Isolated FunctionRemote Function
function sendGetQuoteResponse(GetQuoteResponse response) returns Error?
Parameters
- response GetQuoteResponse -
sendContextGetQuoteResponse
Isolated FunctionRemote Function
function sendContextGetQuoteResponse(ContextGetQuoteResponse response) returns Error?
Parameters
- response ContextGetQuoteResponse -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
client_stubs: ShippingServiceShipOrderResponseCaller
sendShipOrderResponse
Isolated FunctionRemote Function
function sendShipOrderResponse(ShipOrderResponse response) returns Error?
Parameters
- response ShipOrderResponse -
sendContextShipOrderResponse
Isolated FunctionRemote Function
function sendContextShipOrderResponse(ContextShipOrderResponse response) returns Error?
Parameters
- response ContextShipOrderResponse -
sendError
Isolated FunctionRemote Function
Parameters
- response Error -
complete
Isolated FunctionRemote Function
function complete() returns Error?
getId
Isolated Function
function getId() returns int
isCancelled
Isolated Function
function isCancelled() returns boolean
Constants
client_stubs: DEMO_DESC
Records
client_stubs: Ad
Closed record
Fields
- redirect_url string(default "") -
- text string(default "") -
client_stubs: AddItemRequest
Closed record
Fields
- user_id string(default "") -
- item CartItem(default {}) -
client_stubs: Address
Closed record
Fields
- street_address string(default "") -
- city string(default "") -
- state string(default "") -
- country string(default "") -
- zip_code int(default 0) -
client_stubs: AdRequest
Closed record
Fields
- context_keys string[](default []) -
client_stubs: AdResponse
Closed record
Fields
- ads Ad[](default []) -
client_stubs: Cart
Closed record
Fields
- user_id string(default "") -
- items CartItem[](default []) -
client_stubs: CartItem
Closed record
Fields
- product_id string(default "") -
- quantity int(default 0) -
client_stubs: ChargeRequest
Closed record
Fields
- amount Money(default {}) -
- credit_card CreditCardInfo(default {}) -
client_stubs: ChargeResponse
Closed record
Fields
- transaction_id string(default "") -
client_stubs: ContextAddItemRequest
Closed record
Fields
- content AddItemRequest -
client_stubs: ContextAdRequest
Closed record
Fields
- content AdRequest -
client_stubs: ContextAdResponse
Closed record
Fields
- content AdResponse -
client_stubs: ContextCart
Closed record
Fields
- content Cart -
client_stubs: ContextChargeRequest
Closed record
Fields
- content ChargeRequest -
client_stubs: ContextChargeResponse
Closed record
Fields
- content ChargeResponse -
client_stubs: ContextCurrencyConversionRequest
Closed record
Fields
- content CurrencyConversionRequest -
client_stubs: ContextEmpty
Closed record
Fields
- content Empty -
client_stubs: ContextEmptyCartRequest
Closed record
Fields
- content EmptyCartRequest -
client_stubs: ContextGetCartRequest
Closed record
Fields
- content GetCartRequest -
client_stubs: ContextGetProductRequest
Closed record
Fields
- content GetProductRequest -
client_stubs: ContextGetQuoteRequest
Closed record
Fields
- content GetQuoteRequest -
client_stubs: ContextGetQuoteResponse
Closed record
Fields
- content GetQuoteResponse -
client_stubs: ContextGetSupportedCurrenciesResponse
Closed record
Fields
- content GetSupportedCurrenciesResponse -
client_stubs: ContextListProductsResponse
Closed record
Fields
- content ListProductsResponse -
client_stubs: ContextListRecommendationsRequest
Closed record
Fields
- content ListRecommendationsRequest -
client_stubs: ContextListRecommendationsResponse
Closed record
Fields
- content ListRecommendationsResponse -
client_stubs: ContextMoney
Closed record
Fields
- content Money -
client_stubs: ContextPlaceOrderRequest
Closed record
Fields
- content PlaceOrderRequest -
client_stubs: ContextPlaceOrderResponse
Closed record
Fields
- content PlaceOrderResponse -
client_stubs: ContextProduct
Closed record
Fields
- content Product -
client_stubs: ContextSearchProductsRequest
Closed record
Fields
- content SearchProductsRequest -
client_stubs: ContextSearchProductsResponse
Closed record
Fields
- content SearchProductsResponse -
client_stubs: ContextSendOrderConfirmationRequest
Closed record
Fields
- content SendOrderConfirmationRequest -
client_stubs: ContextShipOrderRequest
Closed record
Fields
- content ShipOrderRequest -
client_stubs: ContextShipOrderResponse
Closed record
Fields
- content ShipOrderResponse -
client_stubs: CreditCardInfo
Closed record
Fields
- credit_card_number string(default "") -
- credit_card_cvv int(default 0) -
- credit_card_expiration_year int(default 0) -
- credit_card_expiration_month int(default 0) -
client_stubs: CurrencyConversionRequest
Closed record
Fields
- 'from Money(default {}) -
- to_code string(default "") -
client_stubs: Empty
Closed record
client_stubs: EmptyCartRequest
Closed record
Fields
- user_id string(default "") -
client_stubs: GetCartRequest
Closed record
Fields
- user_id string(default "") -
client_stubs: GetProductRequest
Closed record
Fields
- id string(default "") -
client_stubs: GetQuoteRequest
Closed record
Fields
- address Address(default {}) -
- items CartItem[](default []) -
client_stubs: GetQuoteResponse
Closed record
Fields
- cost_usd Money(default {}) -
client_stubs: GetSupportedCurrenciesResponse
Closed record
Fields
- currency_codes string[](default []) -
client_stubs: ListProductsResponse
Closed record
Fields
- products Product[](default []) -
client_stubs: ListRecommendationsRequest
Closed record
Fields
- user_id string(default "") -
- product_ids string[](default []) -
client_stubs: ListRecommendationsResponse
Closed record
Fields
- product_ids string[](default []) -
client_stubs: Money
Closed record
Fields
- currency_code string(default "") -
- units int(default 0) -
- nanos int(default 0) -
client_stubs: OrderItem
Closed record
Fields
- item CartItem(default {}) -
- cost Money(default {}) -
client_stubs: OrderResult
Closed record
Fields
- order_id string(default "") -
- shipping_tracking_id string(default "") -
- shipping_cost Money(default {}) -
- shipping_address Address(default {}) -
- items OrderItem[](default []) -
client_stubs: PlaceOrderRequest
Closed record
Fields
- user_id string(default "") -
- user_currency string(default "") -
- address Address(default {}) -
- email string(default "") -
- credit_card CreditCardInfo(default {}) -
client_stubs: PlaceOrderResponse
Closed record
Fields
- 'order OrderResult(default {}) -
client_stubs: Product
Closed record
Fields
- id string(default "") -
- name string(default "") -
- description string(default "") -
- picture string(default "") -
- price_usd Money(default {}) -
- categories string[](default []) -
client_stubs: SearchProductsRequest
Closed record
Fields
- query string(default "") -
client_stubs: SearchProductsResponse
Closed record
Fields
- results Product[](default []) -
client_stubs: SendOrderConfirmationRequest
Closed record
Fields
- email string(default "") -
- 'order OrderResult(default {}) -
client_stubs: ShipOrderRequest
Closed record
Fields
- address Address(default {}) -
- items CartItem[](default []) -
client_stubs: ShipOrderResponse
Closed record
Fields
- tracking_id string(default "") -
Import
import asankaabeysinghe/client_stubs;
Metadata
Released date: about 2 years ago
Version: 0.1.0
Compatibility
Platform: any
Ballerina version: 2201.3.0
GraalVM compatible: Yes
Pull count
Total: 0
Current verison: 0
Weekly downloads
Other versions
0.1.0
Dependencies